{"version":3,"sources":["1-popper.js","10-jsvectormap.js","11-world.js","12-choices.js","13-highcharts.src.js","14-tempus-dominus.js","15-sweetalert2.js","16-quill.js","17-tagify.js","18-highlight.js","19-event-calendar.min.js","2-bootstrap.js","20-fslightbox.js","21-jkanban.js","22-nouislider.js","3-feather.js","4-simple-scrollbar.js","5-chart.umd.js","6-apexcharts.js","7-claendar.js","8-img-fix.js","9-vis-timeline-graph2d.min.js"],"names":[],"mappings":"AAAA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1DA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjCA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;ACAA","file":"plugins.bundle.js","sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],t):t((e=\"undefined\"!=typeof globalThis?globalThis:e||self).Popper={})}(this,function(e){\"use strict\";function b(e){var t;return null==e?window:\"[object Window]\"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function h(e){return e instanceof b(e).Element||e instanceof Element}function f(e){return e instanceof b(e).HTMLElement||e instanceof HTMLElement}function i(e){return\"undefined\"!=typeof ShadowRoot&&(e instanceof b(e).ShadowRoot||e instanceof ShadowRoot)}var P=Math.max,k=Math.min,w=Math.round;function a(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(e){return e.brand+\"/\"+e.version}).join(\" \"):navigator.userAgent}function S(){return!/^((?!chrome|android).)*safari/i.test(a())}function l(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&f(e)&&(o=0p[E]&&(j=V(j)),V(j)),E=[];if(r&&E.push(S[x]<=0),o&&E.push(S[j]<=0,S[O]<=0),E.every(function(e){return e})){y=w,g=!1;break}c.set(w,E)}if(g)for(var P=h?3:1;0t.length)&&(e=t.length);for(var i=0,s=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[i++]}};throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var x=function(){function t(){}return t.prototype.dispose=function(){this._tooltip?s(this._tooltip):this.shape.remove();for(var t,e=k(Object.getOwnPropertyNames(this));!(t=e()).done;)this[t.value]=null},t}(),M={getLabelText:function(t,e){var i;if(e)return\"function\"==typeof e.render?(i=[],this.config&&this.config.marker&&i.push(this.config.marker),i.push(t),e.render.apply(this,i)):t},getLabelOffsets:function(t,e){return\"function\"==typeof e.offsets?e.offsets(t):Array.isArray(e.offsets)?e.offsets[t]:[0,0]},setStyle:function(t,e){this.shape.setStyle(t,e)},remove:function(){this.shape.remove(),this.label&&this.label.remove()},hover:function(t){this._setStatus(\"isHovered\",t)},select:function(t){this._setStatus(\"isSelected\",t)},_setStatus:function(t,e){this.shape[t]=e,this.shape.updateStyle(),this[t]=e,this.label&&(this.label[t]=e,this.label.updateStyle())}},j=function(h){function t(t){var e=t.map,i=t.code,s=t.path,a=t.style,n=t.label,r=t.labelStyle,t=t.labelsGroup,o=h.call(this)||this,e=(o._map=e,o.shape=o._createRegion(s,i,a),o.shape.getBBox()),s=o.getLabelText(i,n);return n&&s&&(a=o.getLabelOffsets(i,n),o.labelX=e.x+e.width/2+a[0],o.labelY=e.y+e.height/2+a[1],o.label=o._map.canvas.createText({text:s,textAnchor:\"middle\",alignmentBaseline:\"central\",dataCode:i,x:o.labelX,y:o.labelY},r,t),o.label.addClass(\"jvm-region jvm-element\")),o}b(t,h);var e=t.prototype;return e._createRegion=function(t,e,i){return(t=this._map.canvas.createPath({d:t,dataCode:e},i)).addClass(\"jvm-region jvm-element\"),t},e.updateLabelPosition=function(){this.label&&this.label.set({x:this.labelX*this._map.scale+this._map.transX*this._map.scale,y:this.labelY*this._map.scale+this._map.transY*this._map.scale})},t}(x);e(j,M);var L=function(c){function t(t){var e=t.index,i=t.map,s=t.style,a=t.x1,n=t.y1,r=t.x2,o=t.y2,h=t.group,t=t.config,l=c.call(this)||this;return l.config=t,l.shape=i.canvas.createLine({x1:a,y1:n,x2:r,y2:o,dataIndex:e},s,h),l.shape.addClass(\"jvm-line\"),l}return b(t,c),t.prototype.setStyle=function(t,e){this.shape.setStyle(t,e)},t}(x);var C=function(l){function t(t){var e=t.index,i=t.style,s=t.label,a=t.cx,n=t.cy,r=t.map,o=t.group,h=l.call(this)||this;return h._map=r,h._isImage=!!i.initial.image,h.config=t,h.shape=r.canvas[h._isImage?\"createImage\":\"createCircle\"]({dataIndex:e,cx:a,cy:n},i,o),h.shape.addClass(\"jvm-marker jvm-element\"),h._isImage&&h.updateLabelPosition(),s&&h._createLabel(h.config),h}b(t,l);var e=t.prototype;return e.updateLabelPosition=function(){this.label&&this.label.set({x:this._labelX*this._map.scale+this._offsets[0]+this._map.transX*this._map.scale+5+(this._isImage?(this.shape.width||0)/2:this.shape.node.r.baseVal.value),y:this._labelY*this._map.scale+this._map.transY*this._map.scale+this._offsets[1]})},e._createLabel=function(t){var e=t.index,i=t.map,s=t.label,a=t.labelsGroup,n=t.cx,r=t.cy,o=t.marker,t=t.isRecentlyCreated,h=this.getLabelText(e,s);this._labelX=n/i.scale-i.transX,this._labelY=r/i.scale-i.transY,this._offsets=t&&o.offsets?o.offsets:this.getLabelOffsets(e,s),this.label=i.canvas.createText({text:h,dataIndex:e,x:this._labelX,y:this._labelY,dy:\"0.6ex\"},i.params.markerLabelStyle,a),this.label.addClass(\"jvm-marker jvm-element\"),t&&this.updateLabelPosition()},t}(x);e(C,M);var O=function(){function t(t){this._options=t=void 0===t?{}:t,this._map=this._options.map,this._series=this._options.series,this._body=l(\"div\",\"jvm-legend\"),this._options.cssClass&&this._body.setAttribute(\"class\",this._options.cssClass),(t.vertical?this._map.legendVertical:this._map.legendHorizontal).appendChild(this._body),this.render()}return t.prototype.render=function(){var t,e,i,s=this._series.scale.getTicks(),a=l(\"div\",\"jvm-legend-inner\");this._body.innderHTML=\"\",this._options.title&&(i=l(\"div\",\"jvm-legend-title\",this._options.title),this._body.appendChild(i)),this._body.appendChild(a);for(var n,r=0;r>10||1,i=(e*=75,a.container.getBoundingClientRect()),s=t.pageX-i.left-window.pageXOffset,i=t.pageY-i.top-window.pageYOffset,e=Math.pow(1+n.params.zoomOnScrollSpeed/1e3,-1.5*e);n.tooltip&&n.tooltip.hide(),n._setScale(n.scale*e,s,i),t.preventDefault()})},_setupElementEvents:function(){var e,i,s,a=this,t=this.container;g.on(t,\"mousemove\",function(t){2s[1].pageX?s[1].pageX+(s[0].pageX-s[1].pageX)/2:s[0].pageX+(s[1].pageX-s[0].pageX)/2,l=s[0].pageY>s[1].pageY?s[1].pageY+(s[0].pageY-s[1].pageY)/2:s[0].pageY+(s[1].pageY-s[0].pageY)/2,h-=i.left,l-=i.top,a=u.scale,n=Math.sqrt(Math.pow(s[0].pageX-s[1].pageX,2)+Math.pow(s[0].pageY-s[1].pageY,2)))),c=s.length}var a,n,r,o,h,l,c,u=this;g.on(u.container,\"touchstart\",t),g.on(u.container,\"touchmove\",t)},_createRegions:function(){var t,e;for(t in this._regionLabelsGroup=this._regionLabelsGroup||this.canvas.createGroup(\"jvm-regions-labels-group\"),this.mapData.paths)e=new j({map:this,code:t,path:this.mapData.paths[t].path,style:c({},this.params.regionStyle),labelStyle:this.params.regionLabelStyle,labelsGroup:this._regionLabelsGroup,label:this.params.labels&&this.params.labels.regions}),this.regions[t]={config:this.mapData.paths[t],element:e}},_createLines:function(t,e,i){void 0===i&&(i=!1);var s,a=!1,n=!1;for(s in this.linesGroup=this.linesGroup||this.canvas.createGroup(\"jvm-lines-group\"),t){var r,o=t[s];for(r in e){var h=i?e[r].config:e[r];h.name===o.from&&(a=this.getMarkerPosition(h)),h.name===o.to&&(n=this.getMarkerPosition(h))}!1!==a&&!1!==n&&(this.lines[u(o.from,o.to)]=new L({index:s,map:this,style:c({initial:this.params.lineStyle},{initial:o.style||{}},!0),x1:a.x,y1:a.y,x2:n.x,y2:n.y,group:this.linesGroup,config:o}))}},_createMarkers:function(t,e){var i,s,a,n,r=this;for(n in void 0===t&&(t={}),void 0===e&&(e=!1),this._markersGroup=this._markersGroup||this.canvas.createGroup(\"jvm-markers-group\"),this._markerLabelsGroup=this._markerLabelsGroup||this.canvas.createGroup(\"jvm-markers-labels-group\"),t)if(i=t[n],s=this.getMarkerPosition(i),a=i.coords.join(\":\"),s){if(e){if(Object.keys(this.markers).filter(function(t){return r.markers[t]._uid===a}).length)continue;n=Object.keys(this.markers).length}s=new C({index:n,map:this,style:c(this.params.markerStyle,{initial:i.style||{}},!0),label:this.params.labels&&this.params.labels.markers,labelsGroup:this._markerLabelsGroup,cx:s.x,cy:s.y,group:this._markersGroup,marker:i,isRecentlyCreated:e}),this.markers[n]&&this.removeMarkers([n]),this.markers[n]={_uid:a,config:i,element:s}}},_createSeries:function(){for(var t in this.series={markers:[],regions:[]},this.params.series)for(var e=0;ee?this.transY=e:this.transYt?this.transX=t:this.transXthis.defaultWidth/this.defaultHeight?(this.baseScale=this.height/this.defaultHeight,this.baseTransX=Math.abs(this.width-this.defaultWidth*this.baseScale)/(2*this.baseScale)):(this.baseScale=this.width/this.defaultWidth,this.baseTransY=Math.abs(this.height-this.defaultHeight*this.baseScale)/(2*this.baseScale)),this.scale*=this.baseScale/t,this.transX*=this.baseScale/t,this.transY*=this.baseScale/t},_setScale:function(t,e,i,s,a){var n,r,o,h,l,c,u,p,d,f=this,m=0,g=Math.abs(Math.round(60*(t-this.scale)/Math.max(t,this.scale)));t>this.params.zoomMax*this.baseScale?t=this.params.zoomMax*this.baseScale:t(i=s[a].bbox)[0].x&&ti[0].y&&ethis.max&&(this.max=e),e=n?(n=t?this._searchChoices(e):0,this.passedElement.triggerEvent(g.EVENTS.search,{value:e,resultCount:n})):i&&(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))))},E.prototype._canAddItem=function(e,t){var i,n=!0,s=\"function\"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;return this._isSelectOneElement||(i=(0,m.existsInArray)(e,t),0=t.offsetWidth:e.offsetXthis._highlightPosition?i[this._highlightPosition]:i[i.length-1])||i[0],e.classList.add(this.config.classNames.highlightedState),e.setAttribute(\"aria-selected\",\"true\"),this.passedElement.triggerEvent(g.EVENTS.highlightChoice,{el:e}),this.dropdown.isActive)&&(this.input.setActiveDescendant(e.id),this.containerOuter.setActiveDescendant(e.id))},E.prototype._addItem=function(e){var t=e.value,i=e.label,i=void 0===i?null:i,n=e.choiceId,n=void 0===n?-1:n,s=e.groupId,s=void 0===s?-1:s,o=e.customProperties,o=void 0===o?{}:o,r=e.placeholder,r=void 0!==r&&r,e=e.keyCode,e=void 0===e?-1:e,t=\"string\"==typeof t?t.trim():t,a=this._store.items,i=i||t,n=n||-1,c=0<=s?this._store.getGroupById(s):null,a=a?a.length+1:1;this.config.prependValue&&(t=this.config.prependValue+t.toString()),this.config.appendValue&&(t+=this.config.appendValue.toString()),this._store.dispatch((0,l.addItem)({value:t,label:i,id:a,choiceId:n,groupId:s,customProperties:o,placeholder:r,keyCode:e})),this._isSelectOneElement&&this.removeActiveItems(a),this.passedElement.triggerEvent(g.EVENTS.addItem,{id:a,value:t,label:i,customProperties:o,groupValue:c&&c.value?c.value:null,keyCode:e})},E.prototype._removeItem=function(e){var t=e.id,i=e.value,n=e.label,s=e.customProperties,o=e.choiceId,e=e.groupId,e=e&&0<=e?this._store.getGroupById(e):null;t&&o&&(this._store.dispatch((0,l.removeItem)(t,o)),this.passedElement.triggerEvent(g.EVENTS.removeItem,{id:t,value:i,label:n,customProperties:s,groupValue:e&&e.value?e.value:null}))},E.prototype._addChoice=function(e){var t,i,n=e.value,s=e.label,o=e.isSelected,o=void 0!==o&&o,r=e.isDisabled,r=void 0!==r&&r,a=e.groupId,a=void 0===a?-1:a,c=e.customProperties,c=void 0===c?{}:c,l=e.placeholder,l=void 0!==l&&l,e=e.keyCode,e=void 0===e?-1:e;null!=n&&(s=(void 0===s?null:s)||n,t=(t=this._store.choices)?t.length+1:1,i=\"\".concat(this._baseId,\"-\").concat(this._idNames.itemChoice,\"-\").concat(t),this._store.dispatch((0,h.addChoice)({id:t,groupId:a,elementId:i,value:n,label:s,disabled:r,customProperties:c,placeholder:l,keyCode:e})),o)&&this._addItem({value:n,label:s,choiceId:t,customProperties:c,placeholder:l,keyCode:e})},E.prototype._addGroup=function(e){var i=this,t=e.group,n=e.id,s=e.valueKey,o=void 0===s?\"value\":s,s=e.labelKey,r=void 0===s?\"label\":s,e=(0,m.isType)(\"Object\",t)?t.choices:Array.from(t.getElementsByTagName(\"OPTION\")),a=n||Math.floor((new Date).valueOf()*Math.random()),s=t.disabled||!1;e?(this._store.dispatch((0,c.addGroup)({value:t.label,id:a,active:!0,disabled:s})),e.forEach(function(e){var t=e.disabled||e.parentNode&&e.parentNode.disabled;i._addChoice({value:e[o],label:(0,m.isType)(\"Object\",e)?e[r]:e.innerHTML,isSelected:e.selected,isDisabled:t,groupId:a,customProperties:e.customProperties,placeholder:e.placeholder})})):this._store.dispatch((0,c.addGroup)({value:t.label,id:t.id,active:!1,disabled:t.disabled}))},E.prototype._getTemplate=function(e){for(var t=[],i=1;i\"'.concat((0,n.sanitise)(e),'\"')},maxItemText:function(e){return\"Only \".concat(e,\" values can be added\")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:\"\",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},18:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},978:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},948:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},359:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},285:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},533:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},187:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var s=Object.getOwnPropertyDescriptor(t,i);s&&(\"get\"in s?t.__esModule:!s.writable&&!s.configurable)||(s={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,s)}:function(e,t,i,n){e[n=void 0===n?i:n]=t[i]}),s=this&&this.__exportStar||function(e,t){for(var i in e)\"default\"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,\"__esModule\",{value:!0}),s(i(18),t),s(i(978),t),s(i(948),t),s(i(359),t),s(i(285),t),s(i(533),t),s(i(287),t),s(i(132),t),s(i(837),t),s(i(598),t),s(i(369),t),s(i(37),t),s(i(47),t),s(i(923),t),s(i(876),t)},287:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},132:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},837:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},598:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},37:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},369:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},47:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},923:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},876:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},799:function(e,i){Object.defineProperty(i,\"__esModule\",{value:!0}),i.parseCustomProperties=i.diff=i.cloneObject=i.existsInArray=i.dispatchEvent=i.sortByScore=i.sortByAlpha=i.strToEl=i.sanitise=i.isScrolledIntoView=i.getAdjacentEl=i.wrap=i.isType=i.getType=i.generateId=i.generateChars=i.getRandomNumber=void 0;var t;i.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},i.generateChars=function(e){return Array.from({length:e},function(){return(0,i.getRandomNumber)(0,36).toString(36)}).join(\"\")},i.generateId=function(e,t){e=(e=e.id||e.name&&\"\".concat(e.name,\"-\").concat((0,i.generateChars)(2))||(0,i.generateChars)(4)).replace(/(:|\\.|\\[|\\]|,)/g,\"\");return e=\"\".concat(t,\"-\").concat(e)},i.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},i.isType=function(e,t){return null!=t&&(0,i.getType)(t)===e},i.wrap=function(e,t){return void 0===t&&(t=document.createElement(\"div\")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},i.getAdjacentEl=function(e,t,i){for(var n=\"\".concat(0<(i=void 0===i?1:i)?\"next\":\"previous\",\"ElementSibling\"),s=e[n];s;){if(s.matches(t))return s;s=s[n]}return s},i.isScrolledIntoView=function(e,t,i){return!!e&&(0<(i=void 0===i?1:i)?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},i.sanitise=function(e){return\"string\"!=typeof e?e:e.replace(/&/g,\"&\").replace(/>/g,\">\").replace(/{e=o(e);t+=e.weight,this._keys.push(e),this._keyMap[e.id]=e,t+=e.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function o(e){let t=null,i=null,n=null,s=1,o=null;if(u(e)||l(e))n=e,t=g(e),i=v(e);else{if(!a.call(e,\"name\"))throw new Error(\"Missing name property in key\");var r=e.name;if(n=r,a.call(e,\"weight\")&&(s=e.weight)<=0)throw new Error(`Property 'weight' in key '${r}' must be a positive integer`);t=g(r),i=v(r),o=e.getFn}return{path:t,id:i,weight:s,src:n,getFn:o}}function g(e){return l(e)?e:e.split(\".\")}function v(e){return l(e)?e.join(\".\"):e}var L={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(f(e))if(i[n]){var s=e[i[n]];if(f(s))if(n===i.length-1&&(u(s)||d(s)||h(s)))o.push(c(s));else if(l(s)){r=!0;for(let e=0,t=s.length;e{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,u(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){var t=this.size();u(e)?this._addString(e,t):this._addObject(e,t)}removeAt(i){this.records.splice(i,1);for(let e=i,t=this.size();e{let i=e.getFn?e.getFn(a):this.getFn(a,e.path);if(f(i))if(l(i)){var n,s=[];const o=[{nestedArrIndex:-1,value:i}];for(;o.length;){const{nestedArrIndex:r,value:i}=o.pop();f(i)&&(u(i)&&!m(i)?(n={v:i,i:r,n:this.norm.get(i)},s.push(n)):l(i)&&i.forEach((e,t)=>{o.push({nestedArrIndex:t,value:e})}))}c.$[t]=s}else u(i)&&!m(i)&&(e={v:i,n:this.norm.get(i)},c.$[t]=e)}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function _(e,t,{getFn:i=L.getFn,fieldNormWeight:n=L.fieldNormWeight}={}){i=new r({getFn:i,fieldNormWeight:n});return i.setKeys(e.map(o)),i.setSources(t),i.create(),i}function A(e,{errors:t=0,currentLocation:i=0,expectedLocation:n=0,distance:s=L.distance,ignoreLocation:o=L.ignoreLocation}={}){t/=e.length;return o?t:(e=Math.abs(n-i),s?t+e/s:e?1:t)}function R(s,o,r,{location:e=L.location,distance:a=L.distance,threshold:t=L.threshold,findAllMatches:c=L.findAllMatches,minMatchCharLength:i=L.minMatchCharLength,includeMatches:n=L.includeMatches,ignoreLocation:l=L.ignoreLocation}={}){if(32=i;--e){var C=e-1,T=r[s.charAt(C)];if(g&&(v[C]=+!!T),I[e]=(I[e+1]<<1|1)&T,n&&(I[e]|=(y[e+1]|y[e])<<1|1|y[e+1]),I[e]&S&&(E=A(o,{errors:n,currentLocation:C,expectedLocation:d,distance:a,ignoreLocation:l}))<=p){if(p=E,(f=C)<=d)break;i=Math.max(1,2*d-f)}}if(A(o,{errors:n+1,currentLocation:d,expectedLocation:d,distance:a,ignoreLocation:l})>p)break;y=I}e={isMatch:0<=f,score:Math.max(.001,E)};return g&&((t=function(e=[],t=L.minMatchCharLength){var i=[];let n=-1,s=0;for(var o=e.length;s=t&&i.push([n,r]),n=-1)}return e[s-1]&&s-n>=t&&i.push([n,s-1]),i}(v,i)).length?n&&(e.indices=t):e.isMatch=!1),e}class y{constructor(e,{location:t=L.location,threshold:i=L.threshold,distance:n=L.distance,includeMatches:s=L.includeMatches,findAllMatches:o=L.findAllMatches,minMatchCharLength:r=L.minMatchCharLength,isCaseSensitive:a=L.isCaseSensitive,ignoreLocation:c=L.ignoreLocation}={}){if(this.options={location:t,threshold:i,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:a,ignoreLocation:c},this.pattern=a?e:e.toLowerCase(),this.chunks=[],this.pattern.length){var l=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(i){var n={};for(let e=0,t=i.length;e{var{isMatch:e,score:t,indices:i}=R(n,e,t,{location:o+i,distance:r,threshold:a,findAllMatches:c,minMatchCharLength:l,includeMatches:s,ignoreLocation:h});e&&(p=!0),d+=t,e&&i&&(u=[...u,...i])});var t={isMatch:p,score:p?d/this.chunks.length:1};return p&&s&&(t.indices=u),t}}class E{constructor(e){this.pattern=e}static isMultiMatch(e){return b(e,this.multiRegex)}static isSingleMatch(e){return b(e,this.singleRegex)}search(){}}function b(e,t){e=e.match(t);return e?e[1]:null}class S extends E{constructor(e,{location:t=L.location,threshold:i=L.threshold,distance:n=L.distance,includeMatches:s=L.includeMatches,findAllMatches:o=L.findAllMatches,minMatchCharLength:r=L.minMatchCharLength,isCaseSensitive:a=L.isCaseSensitive,ignoreLocation:c=L.ignoreLocation}={}){super(e),this._bitapSearch=new y(e,{location:t,threshold:i,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:a,ignoreLocation:c})}static get type(){return\"fuzzy\"}static get multiRegex(){return/^\"(.*)\"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class O extends E{constructor(e){super(e)}static get type(){return\"include\"}static get multiRegex(){return/^'\"(.*)\"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0;for(var i,n=[],s=this.pattern.length;-1<(i=e.indexOf(this.pattern,t));)t=i+s,n.push([i,t-1]);var o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const I=[class extends E{constructor(e){super(e)}static get type(){return\"exact\"}static get multiRegex(){return/^=\"(.*)\"$/}static get singleRegex(){return/^=(.*)$/}search(e){e=e===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},O,class extends E{constructor(e){super(e)}static get type(){return\"prefix-exact\"}static get multiRegex(){return/^\\^\"(.*)\"$/}static get singleRegex(){return/^\\^(.*)$/}search(e){e=e.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends E{constructor(e){super(e)}static get type(){return\"inverse-prefix-exact\"}static get multiRegex(){return/^!\\^\"(.*)\"$/}static get singleRegex(){return/^!\\^(.*)$/}search(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends E{constructor(e){super(e)}static get type(){return\"inverse-suffix-exact\"}static get multiRegex(){return/^!\"(.*)\"\\$$/}static get singleRegex(){return/^!(.*)\\$$/}search(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends E{constructor(e){super(e)}static get type(){return\"suffix-exact\"}static get multiRegex(){return/^\"(.*)\"\\$$/}static get singleRegex(){return/^(.*)\\$$/}search(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends E{constructor(e){super(e)}static get type(){return\"inverse-exact\"}static get multiRegex(){return/^!\"(.*)\"$/}static get singleRegex(){return/^!(.*)$/}search(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},S],C=I.length,K=/ +(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)/;const H=new Set([S.type,O.type]);class Y{constructor(e,{isCaseSensitive:t=L.isCaseSensitive,includeMatches:i=L.includeMatches,minMatchCharLength:n=L.minMatchCharLength,ignoreLocation:s=L.ignoreLocation,findAllMatches:o=L.findAllMatches,location:r=L.location,threshold:a=L.threshold,distance:c=L.distance}={}){var h;this.query=null,this.options={isCaseSensitive:t,includeMatches:i,minMatchCharLength:n,findAllMatches:o,ignoreLocation:s,location:r,threshold:a,distance:c},this.pattern=t?e:e.toLowerCase(),this.query=([i,h={}]=[this.pattern,this.options],i.split(\"|\").map(e=>{var n=e.trim().split(K).filter(e=>e&&!!e.trim()),s=[];for(let i=0,e=n.length;i!(!e[M.AND]&&!e[M.OR]),x=t=>({[M.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function D(e,r,{auto:a=!0}={}){const c=t=>{var e=Object.keys(t),i=!!t[P.PATH];if(!i&&1{e=t[e];l(e)&&e.forEach(e=>{o.children.push(c(e))})}),o};return N(e)||(e=x(e)),c(e)}function V(e,n){e=e.matches;n.matches=[],f(e)&&e.forEach(e=>{var t,i;f(e.indices)&&e.indices.length&&({indices:i,value:t}=e,i={indices:i,value:t},e.key&&(i.key=e.key.src),-1!1){var n=[];for(let e=0,t=this._docs.length;e{let n=1;e.matches.forEach(({key:e,norm:t,score:i})=>{e=e?e.weight:null;n*=Math.pow(0===i&&e?Number.EPSILON:i,(e||1)*(s?1:t))}),e.score=n}),o&&c.sort(r),d(t)&&-1{var e=t[\"idx\"];const i={item:l[e],refIndex:e};return h.length&&h.forEach(e=>{e(t,i)}),i})}}_searchStringList(e){const r=w(e,this.options);e=this._myIndex.records;const a=[];return e.forEach(({v:e,i:t,n:i})=>{var n,s,o;f(e)&&({isMatch:n,score:s,indices:o}=r.searchIn(e),n)&&a.push({item:e,idx:t,matches:[{score:s,value:e,norm:i,indices:o}]})}),a}_searchLogical(e){const n=D(e,this.options),a=(i,n,s)=>{var e,t;if(!i.children)return{keyId:t,searcher:e}=i,(t=this._findMatches({key:this._keyStore.get(t),value:this._myIndex.getValueForItemAtKeyId(n,t),searcher:e}))&&t.length?[{idx:s,item:n,matches:t}]:[];var o=[];for(let e=0,t=i.children.length;e{var i;f(e)&&(i=a(n,e,t)).length&&(s[t]||(s[t]={idx:t,item:e,matches:[]},o.push(s[t])),i.forEach(({matches:e})=>{s[t].matches.push(...e)}))}),o}_searchObjectList(e){const s=w(e,this.options),{keys:t,records:i}=this._myIndex,o=[];return i.forEach(({$:n,i:e})=>{if(f(n)){let i=[];t.forEach((e,t)=>{i.push(...this._findMatches({key:e,value:n[t],searcher:s}))}),i.length&&o.push({idx:e,item:n,matches:i})}}),o}_findMatches({key:r,value:e,searcher:a}){if(!f(e))return[];let c=[];var t,i,n,s;return l(e)?e.forEach(({v:e,i:t,n:i})=>{var n,s,o;f(e)&&({isMatch:n,score:s,indices:o}=a.searchIn(e),n)&&c.push({score:s,key:r,value:e,idx:t,norm:i,indices:o})}):({v:e,n:t}=e,{isMatch:i,score:n,indices:s}=a.searchIn(e),i&&c.push({score:n,key:r,value:e,norm:t,indices:s})),c}}j.version=\"6.6.2\",j.createIndex=_,j.parseIndex=function(e,{getFn:t=L.getFn,fieldNormWeight:i=L.fieldNormWeight}={}){var{keys:e,records:n}=e;return(t=new r({getFn:t,fieldNormWeight:i})).setKeys(e),t.setIndexRecords(n),t},j.config=L,j.parseQuery=D,t=[Y],T.push(...t)},791:function(e,t,i){function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function o(e){e=function(e,t){if(\"object\"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return(\"string\"===t?String:Number)(e);if(\"object\"!==n(i=i.call(e,t||\"default\")))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}(e,\"string\");return\"symbol\"===n(e)?e:String(e)}function r(t,e){var i,n=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)),n}function a(n){for(var e=1;ei&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]>16,(65280&n)>>8,255&n,1]:4===s&&(i=[(3840&n)>>4|(3840&n)>>8,(240&n)>>4|240&n,(15&n)<<4|15&n,1])),!i)for(o=a.parsers.length;o--&&!i;)(e=(r=a.parsers[o]).regex.exec(t))&&(i=r.parse(e));i&&(this.rgba=i)},a.prototype.get=function(i){var o,t=this.input,e=this.rgba;return\"object\"==typeof t&&void 0!==this.stops?((o=r(t)).stops=[].slice.call(o.stops),this.stops.forEach(function(t,e){o.stops[e]=[o.stops[e][0],t.get(i)]}),o):e&&s(e[0])?\"rgb\"===i||!i&&1===e[3]?\"rgb(\"+e[0]+\",\"+e[1]+\",\"+e[2]+\")\":\"a\"===i?\"\".concat(e[3]):\"rgba(\"+e.join(\",\")+\")\":t},a.prototype.brighten=function(e){var t=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(s(e)&&0!==e)for(var i=0;i<3;i++)t[i]+=o(255*e),t[i]<0&&(t[i]=0),255=S.second?0:d*Math.floor(n.get(\"Milliseconds\",a)/d)),c>=S.second&&n.set(\"Seconds\",a,c>=S.minute?0:d*Math.floor(n.get(\"Seconds\",a)/d)),c>=S.minute&&n.set(\"Minutes\",a,c>=S.hour?0:d*Math.floor(n.get(\"Minutes\",a)/d)),c>=S.hour&&n.set(\"Hours\",a,c>=S.day?0:d*Math.floor(n.get(\"Hours\",a)/d)),c>=S.day&&n.set(\"Date\",a,c>=S.month?1:Math.max(1,d*Math.floor(n.get(\"Date\",a)/d))),c>=S.month&&(n.set(\"Month\",a,c>=S.year?0:d*Math.floor(n.get(\"Month\",a)/d)),p=n.get(\"FullYear\",a)),c>=S.year&&n.set(\"FullYear\",a,p-=p%d),c===S.week&&(s=n.get(\"Day\",a),n.set(\"Date\",a,n.get(\"Date\",a)-s+o+(s4*S.month||n.getTimezoneOffset(e)!==n.getTimezoneOffset(i)),a.getTime()),y=1;mt){a=h;break}if(n[a]&&r.substr(n[a])!==s.substr(n[a]))break;\"week\"!==a&&(h=a)}return this.resolveDTLFormat(o[a]).main},a}),e(t,\"Core/Defaults.js\",[t[\"Core/Chart/ChartDefaults.js\"],t[\"Core/Color/Color.js\"],t[\"Core/Globals.js\"],t[\"Core/Color/Palettes.js\"],t[\"Core/Time.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,o,r,s){var e=e.parse,n=i.isTouchDevice,a=i.svg,h=s.merge,l={colors:o.colors,symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],shortMonths:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],weekdays:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],decimalPoint:\".\",numericSymbols:[\"k\",\"M\",\"G\",\"T\",\"P\",\"E\"],resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},caption:{margin:15,text:\"\",align:\"left\",verticalAlign:\"bottom\"},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,className:\"highcharts-no-tooltip\",layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",cursor:\"pointer\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",headerShape:\"callout\",hideDelay:500,padding:8,shape:\"callout\",shared:!1,snap:n?25:10,headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',backgroundColor:e(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",whiteSpace:\"nowrap\"},useHTML:!1},credits:{enabled:!0,href:\"https://www.highcharts.com?credits\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}},c=(l.chart.styledMode=!1,new r(h(l.global,l.time)));return{defaultOptions:l,defaultTime:c,getOptions:function(){return l},setOptions:function(t){return h(!0,l,t),(t.time||t.global)&&(i.time?i.time.update(h(l.global,l.time,t.global,t.time)):i.time=c),l}}}),e(t,\"Core/Animation/Fx.js\",[t[\"Core/Color/Color.js\"],t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var o=t.parse,h=e.win,u=i.isNumber,l=i.objectEach;function c(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return c.prototype.dSetter=function(){var t=this.paths,e=t&&t[0],i=t&&t[1],o=this.now||0,r=[];if(1!==o&&e&&i)if(e.length===i.length&&o<1)for(var s=0;s=n+this.startTime?(this.now=this.end,this.pos=1,this.update(),a[this.prop]=!0,e=!0,l(a,function(t){!0!==t&&(e=!1)}),e&&s&&s.call(r),1):(this.pos=o.easing((i-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),0)));return t},c.prototype.initPath=function(t,e,i){var o,r,s,n,a=t.startX,h=t.endX,i=i.slice(),l=t.isArea,c=l?2:1,t=e&&e.slice();if(!t)return[i,i];function d(t,e){for(;t.lengtht[p].pos&&(t[p-1].size+=t[p].size,t[p-1].targets=t[p-1].targets.concat(t[p].targets),t[p-1].align=.5,t[p-1].pos+t[p-1].size>o&&(t[p-1].pos=o-t[p-1].size),t.splice(p,1),l=!0)}return n.push.apply(n,c),p=0,t.some(function(t){var e=0;return(t.targets||[]).some(function(){return n[p].pos=t.pos+e,void 0!==r&&Math.abs(n[p].pos-n[p].target)>r?(n.slice(0,p+1).forEach(function(t){return delete t.pos}),n.reducedLen=(n.reducedLen||o)-.1*o,n.reducedLen>.1*o&&i(n,o,r),!0):(e+=n[p].size,p++,!1)})}),g(n,h),n},e}),e(t,\"Core/Renderer/SVG/SVGElement.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Color/Color.js\"],t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"]],function(t,m,s,e){var n=t.animate,a=t.animObject,c=t.stop,g=s.deg2rad,h=s.doc,l=(s.noop,s.svg),d=s.SVG_NS,i=s.win,p=e.addEvent,y=e.attr,o=e.createElement,v=e.css,x=e.defined,u=e.erase,b=e.extend,S=e.fireEvent,k=e.isArray,C=e.isFunction,f=(e.isNumber,e.isString),M=e.merge,w=e.objectEach,T=e.pick,A=e.pInt,P=(e.removeEvent,e.syncTimeout),L=e.uniqueKey,t=(O.prototype._defaultGetter=function(t){t=T(this[t+\"Value\"],this[t],this.element?this.element.getAttribute(t):null,0);return t=/^[\\-0-9\\.]+$/.test(t)?parseFloat(t):t},O.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},O.prototype.add=function(t){var e,i=this.renderer,o=this.element;return t&&(this.parentGroup=t),void 0!==this.textStr&&\"text\"===this.element.nodeName&&i.buildText(this),this.added=!0,(e=t&&!t.handleZ&&!this.zIndex?e:this.zIndexSetter())||(t?t.element:i.box).appendChild(o),this.onAdd&&this.onAdd(),this},O.prototype.addClass=function(t,e){var i=!e&&this.attr(\"class\")||\"\";return(t=(t||\"\").split(/ /g).reduce(function(t,e){return-1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(\" \"))!==i&&this.attr(\"class\",t),this},O.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},O.prototype.align=function(t,e,i){var o,r,s={},n=this.renderer,a=n.alignedObjects,a=(t?(this.alignOptions=t,this.alignByTranslate=e,i&&!f(i)||(this.alignTo=h=i||\"renderer\",u(a,this),a.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,h=this.alignTo),i=T(i,n[h],\"scrollablePlotBox\"===h?n.plotBox:void 0,n),t.align),h=t.verticalAlign,n=(i.x||0)+(t.x||0),l=(i.y||0)+(t.y||0);return\"right\"===a?o=1:\"center\"===a&&(o=2),o&&(n+=(i.width-(t.width||0))/o),s[e?\"translateX\":\"x\"]=Math.round(n),\"bottom\"===h?r=1:\"middle\"===h&&(r=2),r&&(l+=(i.height-(t.height||0))/r),s[e?\"translateY\":\"y\"]=Math.round(l),this[this.placed?\"animate\":\"attr\"](s),this.placed=!0,this.alignAttr=s,this},O.prototype.alignSetter=function(t){var e={left:\"start\",center:\"middle\",right:\"end\"};e[t]&&(this.alignValue=t,this.element.setAttribute(\"text-anchor\",e[t]))},O.prototype.animate=function(t,e,i){var o=this,r=a(T(e,this.renderer.globalAnimation,!0)),e=r.defer;return T(h.hidden,h.msHidden,h.webkitHidden,!1)&&(r.duration=0),0!==r.duration?(i&&(r.complete=i),P(function(){o.element&&n(o,t,r)},e)):(this.attr(t,void 0,i||r.complete),w(t,function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this},O.prototype.applyTextOutline=function(t){var i,e,o=this.element,t=(t=-1!==t.indexOf(\"contrast\")?t.replace(/contrast/g,this.renderer.getContrast(o.style.fill)):t).split(\" \"),r=t[t.length-1],t=t[0];t&&\"none\"!==t&&s.svg&&(this.fakeTS=!0,t=t.replace(/(^[\\d\\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline(),i=h.createElementNS(d,\"tspan\"),y(i,{class:\"highcharts-text-outline\",fill:r,stroke:r,\"stroke-width\":t,\"stroke-linejoin\":\"round\"}),r=o.querySelector(\"textPath\")||o,[].forEach.call(r.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&[\"fill\",\"stroke\",\"stroke-width\",\"stroke\"].forEach(function(t){return e.removeAttribute(t)}),i.appendChild(e)}),e=0,[].forEach.call(r.querySelectorAll(\"text tspan\"),function(t){e+=Number(t.getAttribute(\"dy\"))}),(t=h.createElementNS(d,\"tspan\")).textContent=\"​\",y(t,{x:Number(o.getAttribute(\"x\")),dy:-e}),i.appendChild(t),r.insertBefore(i,r.firstChild))},O.prototype.attr=function(i,t,e,o){var r,s,n,a=this.element,h=this.symbolCustomAttribs,l=this;return\"string\"==typeof i&&void 0!==t&&(r=i,(i={})[r]=t),\"string\"==typeof i?l=(this[i+\"Getter\"]||this._defaultGetter).call(this,i,a):(w(i,function(t,e){n=!1,o||c(this,e),this.symbolName&&-1!==h.indexOf(e)&&(s||(this.symbolAttr(i),s=!0),n=!0),!this.rotation||\"x\"!==e&&\"y\"!==e||(this.doTransform=!0),n||((n=this[e+\"Setter\"]||this._defaultSetter).call(this,t,e,a),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(e)&&this.updateShadows(e,t,n))},this),this.afterSetters()),e&&e.call(this),l},O.prototype.clip=function(t){return this.attr(\"clip-path\",t?\"url(\"+this.renderer.url+\"#\"+t.id+\")\":\"none\")},O.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),x(t.strokeWidth)&&(t.strokeWidth=e),t},O.prototype.complexColor=function(t,i,o){var r,s,n,a,h,l,c,d,p,u,f=this.renderer,g=[];S(this.renderer,\"complexColor\",{args:arguments},function(){var e;t.radialGradient?r=\"radialGradient\":t.linearGradient&&(r=\"linearGradient\"),r&&(s=t[r],a=f.gradients,h=t.stops,d=o.radialReference,k(s)&&(t[r]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:\"userSpaceOnUse\"}),\"radialGradient\"===r&&d&&!x(s.gradientUnits)&&(s=M(n=s,f.getRadialAttr(d,n),{gradientUnits:\"userSpaceOnUse\"})),w(s,function(t,e){\"id\"!==e&&g.push(e,t)}),w(h,function(t){g.push(t)}),g=g.join(\",\"),a[g]?p=a[g].attr(\"id\"):(s.id=p=L(),(e=a[g]=f.createElement(r).attr(s).add(f.defs)).radAttr=n,e.stops=[],h.forEach(function(t){c=0===t[1].indexOf(\"rgba\")?(c=m.parse(t[1]),l=c.get(\"rgb\"),c.get(\"a\")):(l=t[1],1);t=f.createElement(\"stop\").attr({offset:t[0],\"stop-color\":l,\"stop-opacity\":c}).add(e);e.stops.push(t)})),u=\"url(\"+f.url+\"#\"+p+\")\",o.setAttribute(i,u),o.gradient=g,t.toString=function(){return u})})},O.prototype.css=function(t){var e,i,o=this.styles,r={},s=this.element,n=!o;return t.color&&(t.fill=t.color),o&&w(t,function(t,e){o&&o[e]!==t&&(r[e]=t,n=!0)}),n&&(null===(t=o?b(o,r):t).width||\"auto\"===t.width?delete this.textWidth:\"text\"===s.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=A(t.width)),this.styles=t,e&&!l&&this.renderer.forExport&&delete t.width,i=M(t),s.namespaceURI===this.SVG_NS&&[\"textOutline\",\"textOverflow\",\"width\"].forEach(function(t){return i&&delete i[t]}),v(s,i),this.added)&&(\"text\"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline)&&this.applyTextOutline(t.textOutline),this},O.prototype.dashstyleSetter=function(t){var e=this[\"stroke-width\"];if(\"inherit\"===e&&(e=1),t=t&&t.toLowerCase()){for(var i=t.replace(\"shortdashdotdot\",\"3,1,1,1,1,1,\").replace(\"shortdashdot\",\"3,1,1,1\").replace(\"shortdot\",\"1,1,\").replace(\"shortdash\",\"3,1,\").replace(\"longdash\",\"8,3,\").replace(/dot/g,\"1,3,\").replace(\"dash\",\"4,3,\").replace(/,$/,\"\").split(\",\"),o=i.length;o--;)i[o]=\"\"+A(i[o])*T(e,NaN);t=i.join(\",\").replace(/NaN/g,\"none\"),this.element.setAttribute(\"stroke-dasharray\",t)}},O.prototype.destroy=function(){var t,e,i,o=this,r=o.element||{},s=o.renderer,n=r.ownerSVGElement,a=s.isSVG&&\"SPAN\"===r.nodeName&&o.parentGroup||void 0;if(r.onclick=r.onmouseout=r.onmouseover=r.onmousemove=r.point=null,c(o),o.clipPath&&n&&(i=o.clipPath,[].forEach.call(n.querySelectorAll(\"[clip-path],[CLIP-PATH]\"),function(t){-1]*>/g,\"\").replace(/</g,\"<\").replace(/>/g,\">\")},O.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},O.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},O.prototype.updateShadows=function(t,e,i){var o=this.shadows;if(o)for(var r=o.length;r--;)i.call(o[r],\"height\"===t?Math.max(e-(o[r].cutHeight||0),0):\"d\"===t?this.d:e,t,o[r])},O.prototype.updateTransform=function(){var t=this,e=t.element,i=t.matrix,o=t.rotation,o=void 0===o?0:o,r=t.scaleX,s=t.scaleY,n=t.translateX,t=t.translateY,n=[\"translate(\"+(void 0===n?0:n)+\",\"+(void 0===t?0:t)+\")\"];x(i)&&n.push(\"matrix(\"+i.join(\",\")+\")\"),o&&n.push(\"rotate(\"+o+\" \"+T(this.rotationOriginX,e.getAttribute(\"x\"),0)+\" \"+T(this.rotationOriginY,e.getAttribute(\"y\")||0)+\")\"),(x(r)||x(s))&&n.push(\"scale(\"+T(r,1)+\" \"+T(s,1)+\")\"),n.length&&!(this.text||this).textPath&&e.setAttribute(\"transform\",n.join(\" \"))},O.prototype.visibilitySetter=function(t,e,i){\"inherit\"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},O.prototype.xGetter=function(t){return\"circle\"===this.element.nodeName&&(\"x\"===t?t=\"cx\":\"y\"===t&&(t=\"cy\")),this._defaultGetter(t)},O.prototype.zIndexSetter=function(t,e){var i,o,r,s,n,a=this.renderer,h=this.parentGroup,l=(h||a).element||a.box,c=this.element,d=l===a.box,p=!1,a=this.added;if(x(t)?(c.setAttribute(\"data-z-index\",t),this[e]===(t=+t)&&(a=!1)):x(this[e])&&c.removeAttribute(\"data-z-index\"),this[e]=t,a){for((t=this.zIndex)&&h&&(h.handleZ=!0),n=(i=l.childNodes).length-1;0<=n&&!p;n--)r=(o=i[n]).getAttribute(\"data-z-index\"),s=!x(r),o!==c&&(t<0&&s&&!d&&!n?(l.insertBefore(c,i[n]),p=!0):(A(r)<=t||s&&(!x(t)||0<=t))&&(l.insertBefore(c,i[n+1]||null),p=!0));p||(l.insertBefore(c,i[d?3:0]||null),p=!0)}return p},O);function O(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=d,this.symbolCustomAttribs=[\"x\",\"y\",\"width\",\"height\",\"r\",\"start\",\"end\",\"innerR\",\"anchorX\",\"anchorY\",\"rounded\"]}return t.prototype.strokeSetter=t.prototype.fillSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t}),e(t,\"Core/Renderer/RendererRegistry.js\",[t[\"Core/Globals.js\"]],function(o){var t,r,s;return(r=t=t||{}).rendererTypes={},r.getRendererType=function(t){return void 0===t&&(t=s),r.rendererTypes[t]||r.rendererTypes[s]},r.registerRendererType=function(t,e,i){r.rendererTypes[t]=e,s&&!i||(s=t,o.Renderer=e)},t}),e(t,\"Core/Renderer/SVG/SVGLabel.js\",[t[\"Core/Renderer/SVG/SVGElement.js\"],t[\"Core/Utilities.js\"]],function(t,e){var o,p,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=e.defined,n=e.extend,a=e.isNumber,r=e.merge,h=e.pick,l=e.removeEvent;function u(t,e,i,o,r,s,n,a,h,l){var c,d=p.call(this)||this;return d.paddingLeftSetter=d.paddingSetter,d.paddingRightSetter=d.paddingSetter,d.init(t,\"g\"),d.textStr=e,d.x=i,d.y=o,d.anchorX=s,d.anchorY=n,d.baseline=h,d.className=l,d.addClass(\"button\"===l?\"highcharts-no-tooltip\":\"highcharts-label\"),l&&d.addClass(\"highcharts-\"+l),d.text=t.text(void 0,0,0,a).attr({zIndex:1}),\"string\"==typeof r&&((c=/^url\\((.*?)\\)$/.test(r))||d.renderer.symbols[r])&&(d.symbolKey=r),d.bBox=u.emptyBBox,d.padding=3,d.baselineOffset=0,d.needsBox=t.styledMode||c,d.deferredAttr={},d.alignFactor=0,d}return i(u,p=t),u.prototype.alignSetter=function(t){t={left:0,center:.5,right:1}[t];t!==this.alignFactor&&(this.alignFactor=t,this.bBox)&&a(this.xSetting)&&this.attr({x:this.xSetting})},u.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},u.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},u.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},u.prototype.css=function(e){var i;return e&&(i={},e=r(e),u.textProps.forEach(function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])}),this.text.css(i),\"fontSize\"in i||\"fontWeight\"in i?this.updateTextPadding():(\"width\"in i||\"textOverflow\"in i)&&this.updateBoxSize()),t.prototype.css.call(this,e)},u.prototype.destroy=function(){l(this.element,\"mouseenter\"),l(this.element,\"mouseleave\"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},u.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},u.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=h(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},u.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this[\"stroke-width\"]?parseInt(this[\"stroke-width\"],10):0)%2/2},u.prototype.heightSetter=function(t){this.heightSetting=t},u.prototype.onAdd=function(){this.text.add(this),this.attr({text:h(this.textStr,\"\"),x:this.x||0,y:this.y||0}),this.box&&s(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},u.prototype.paddingSetter=function(t,e){a(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},u.prototype.rSetter=function(t,e){this.boxAttr(e,t)},u.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box)&&this.box.shadow(t),this},u.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},u.prototype[\"stroke-widthSetter\"]=function(t,e){t&&(this.needsBox=!0),this[\"stroke-width\"]=t,this.boxAttr(e,t)},u.prototype[\"text-alignSetter\"]=function(t){this.textAlign=t},u.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},u.prototype.updateBoxSize=function(){var t=this.text,e=t.element.style,i={},o=this.padding,r=this.bBox=a(this.widthSetting)&&a(this.heightSetting)&&!this.textAlign||!s(t.textStr)?u.emptyBBox:t.getBBox(),e=(this.width=this.getPaddedWidth(),this.height=(this.heightSetting||r.height||0)+2*o,this.renderer.fontMetrics(e&&e.fontSize,t));this.baselineOffset=o+Math.min((this.text.firstLineMetrics||e).b,r.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&!t.textPath&&(this.box||((o=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass((\"button\"===this.className?\"\":\"highcharts-label-box\")+(this.className?\" highcharts-\"+this.className+\"-box\":\"\")),o.add(this)),r=this.getCrispAdjust(),i.x=r,i.y=(this.baseline?-this.baselineOffset:0)+r,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(n(i,this.deferredAttr)),this.deferredAttr={})},u.prototype.updateTextPadding=function(){var t,e,i=this.text;i.textPath||(this.updateBoxSize(),t=this.baseline?0:this.baselineOffset,e=h(this.paddingLeft,this.padding),s(this.widthSetting)&&this.bBox&&(\"center\"===this.textAlign||\"right\"===this.textAlign)&&(e+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),e===i.x&&t===i.y||(i.attr(\"x\",e),i.hasBoxWidthChanged&&(this.bBox=i.getBBox(!0)),void 0!==t&&i.attr(\"y\",t)),i.x=e,i.y=t)},u.prototype.widthSetter=function(t){this.widthSetting=a(t)?t:void 0},u.prototype.getPaddedWidth=function(){var t=this.padding,e=h(this.paddingLeft,t),t=h(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+t},u.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this[\"forceAnimate:x\"]=!0),this.xSetting=Math.round(t),this.attr(\"translateX\",this.xSetting)},u.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr(\"translateY\",this.ySetting)},u.emptyBBox={width:0,height:0,x:0,y:0},u.textProps=[\"color\",\"direction\",\"fontFamily\",\"fontSize\",\"fontStyle\",\"fontWeight\",\"lineHeight\",\"textAlign\",\"textDecoration\",\"textOutline\",\"textOverflow\",\"width\"],u}),e(t,\"Core/Renderer/SVG/Symbols.js\",[t[\"Core/Utilities.js\"]],function(t){var f=t.defined,l=t.isNumber,g=t.pick;function r(t,e,i,o,r){var s,n,a,h,l,c,d,p,u=[];return r&&(s=r.start||0,n=g(r.r,i),o=g(r.r,o||i),i=Math.abs((r.end||0)-s-2*Math.PI)<.001,p=(r.end||0)-.001,a=r.innerR,i=g(r.open,i),h=Math.cos(s),l=Math.sin(s),c=Math.cos(p),d=Math.sin(p),p=g(r.longArc,p-s-Math.PI<.001?0:1),u.push([\"M\",t+n*h,e+o*l],[\"A\",n,o,0,p,g(r.clockwise,1),t+n*c,e+o*d]),f(a)&&u.push(i?[\"M\",t+a*c,e+a*d]:[\"L\",t+a*c,e+a*d],[\"A\",a,a,0,p,f(r.clockwise)?1-r.clockwise:0,t+a*h,e+a*l]),i||u.push([\"Z\"])),u}function e(t,e,i,o,r){return r&&r.r?c(t,e,i,o,r):[[\"M\",t,e],[\"L\",t+i,e],[\"L\",t+i,e+o],[\"L\",t,e+o],[\"Z\"]]}function c(t,e,i,o,r){r=r&&r.r||0;return[[\"M\",t+r,e],[\"L\",t+i-r,e],[\"C\",t+i,e,t+i,e,t+i,e+r],[\"L\",t+i,e+o-r],[\"C\",t+i,e+o,t+i,e+o,t+i-r,e+o],[\"L\",t+r,e+o],[\"C\",t,e+o,t,e+o,t,e+o-r],[\"L\",t,e+r],[\"C\",t,e,t,e,t+r,e]]}return{arc:r,callout:function(t,e,i,o,r){var s=Math.min(r&&r.r||0,i,o),n=s+6,a=r&&r.anchorX,r=r&&r.anchorY||0,h=c(t,e,i,o,{r:s});return l(a)&&(i<=t+a?e+n/g.test(o))?\"\"!==o&&(i&&i.appendChild(e),n=new h(o),this.modifyTree(n.nodes),n.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||\"\").indexOf(\"…\")&&t.attr(\"title\",this.unescapeEntities(t.textStr||\"\",[\"<\",\">\"])),i)&&i.removeChild(e):e.appendChild(f.createTextNode(this.unescapeEntities(o))),l(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},o.prototype.modifyDOM=function(){var t,c=this,d=this.svgElement,p=m(d.element,\"x\");for(d.firstLineMetrics=void 0;(t=d.element.firstChild)&&/^[\\s\\u200B]*$/.test(t.textContent||\" \");)d.element.removeChild(t);[].forEach.call(d.element.querySelectorAll(\"tspan.highcharts-br\"),function(t,e){t.nextSibling&&t.previousSibling&&(0===e&&1===t.previousSibling.nodeType&&(d.firstLineMetrics=d.renderer.fontMetrics(void 0,t.previousSibling)),m(t,{dy:c.getLineHeight(t.nextSibling),x:p}))});var i,o,u=this.width||0;u&&(i=function(e,i){var t=e.textContent||\"\",o=t.replace(/([^\\^])-/g,\"$1- \").split(\" \"),r=!c.noWrap&&(1]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\");return\"\"},B.prototype.getStyle=function(t){return this.style=T({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},t),this.style},B.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},B.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},B.prototype.destroy=function(){var t=this,e=t.defs;return t.box=null,t.boxWrapper=t.boxWrapper.destroy(),w(t.gradients||{}),t.gradients=null,e&&(t.defs=e.destroy()),t.unSubPixelFix&&t.unSubPixelFix(),t.alignedObjects=null},B.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},B.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},B.prototype.buildText=function(t){new s(t).buildSVG()},B.prototype.getContrast=function(t){t=e.parse(t).rgba.map(function(t){t/=255;return t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4)}),t=.2126*t[0]+.7152*t[1]+.0722*t[2];return(.05+t)/.05<1.05/(.05+t)?\"#FFFFFF\":\"#000000\"},B.prototype.button=function(t,e,i,o,r,s,n,a,h,l){void 0===r&&(r={});var c,d,p,u=this.label(t,e,i,h,void 0,void 0,l,void 0,\"button\"),f=this.styledMode,t=r.states||{},g=0,m=(delete(r=E(r)).states,E({color:\"#333333\",cursor:\"pointer\",fontWeight:\"normal\"},r.style)),y=(delete r.style,v.filterUserAttributes(r));return u.attr(E({padding:8,r:2},y)),f||(y=E({fill:\"#f7f7f7\",stroke:\"#cccccc\",\"stroke-width\":1},y),s=E(y,{fill:\"#e6e6e6\"},v.filterUserAttributes(s||t.hover||{})),c=s.style,delete s.style,n=E(y,{fill:\"#e6ebf5\",style:{color:\"#000000\",fontWeight:\"bold\"}},v.filterUserAttributes(n||t.select||{})),d=n.style,delete n.style,a=E(y,{style:{color:\"#cccccc\"}},v.filterUserAttributes(a||t.disabled||{})),p=a.style,delete a.style),b(u.element,x?\"mouseover\":\"mouseenter\",function(){3!==g&&u.setState(1)}),b(u.element,x?\"mouseout\":\"mouseleave\",function(){3!==g&&u.setState(g)}),u.setState=function(t){1!==t&&(u.state=g=t),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass(\"highcharts-button-\"+[\"normal\",\"hover\",\"pressed\",\"disabled\"][t||0]),f||(u.attr([y,s,n,a][t||0]),L(t=[m,c,d,p][t||0])&&u.css(t))},f||(u.attr(y).css(T({cursor:\"default\"},m)),l&&u.text.css({pointerEvents:\"none\"})),u.on(\"touchstart\",function(t){return t.stopPropagation()}).on(\"click\",function(t){3!==g&&o.call(u,t)})},B.prototype.crispLine=function(t,e,i){void 0===i&&(i=\"round\");var o=t[0],r=t[1];return M(o[1])&&o[1]===r[1]&&(o[1]=r[1]=Math[i](o[1])-e%2/2),M(o[2])&&o[2]===r[2]&&(o[2]=r[2]=Math[i](o[2])+e%2/2),t},B.prototype.path=function(t){var e=this.styledMode?{}:{fill:\"none\"};return A(t)?e.d=t:L(t)&&T(e,t),this.createElement(\"path\").attr(e)},B.prototype.circle=function(t,e,i){t=L(t)?t:void 0===t?{}:{x:t,y:e,r:i},e=this.createElement(\"circle\");return e.xSetter=e.ySetter=function(t,e,i){i.setAttribute(\"c\"+e,t)},e.attr(t)},B.prototype.arc=function(t,e,i,o,r,s){L(t)?(e=(n=t).y,i=n.r,o=n.innerR,r=n.start,s=n.end,t=n.x):n={innerR:o,start:r,end:s};var n,o=this.symbol(\"arc\",t,e,i,i,n);return o.r=i,o},B.prototype.rect=function(t,e,i,o,r,s){r=L(t)?t.r:r;var n=this.createElement(\"rect\"),t=L(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(o,0)};return this.styledMode||(void 0!==s&&(t[\"stroke-width\"]=s,t=n.crisp(t)),t.fill=\"none\"),r&&(t.r=r),n.rSetter=function(t,e,i){n.r=t,S(i,{rx:t,ry:t})},n.rGetter=function(){return n.r||0},n.attr(t)},B.prototype.setSize=function(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:\"0 0 \"+this.attr(\"width\")+\" \"+this.attr(\"height\")})},duration:D(i,!0)?void 0:0}),this.alignElements()},B.prototype.g=function(t){var e=this.createElement(\"g\");return t?e.attr({class:\"highcharts-\"+t}):e},B.prototype.image=function(e,t,i,o,r,s){function n(t){h(l.element,e),s.call(l,t)}var a={preserveAspectRatio:\"none\"},h=function(t,e){t.setAttributeNS?t.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",e):t.setAttribute(\"hc-svg-href\",e)},l=(P(t)&&(a.x=t),P(i)&&(a.y=i),P(o)&&(a.width=o),P(r)&&(a.height=r),this.createElement(\"image\").attr(a));return s?(h(l.element,\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"),t=new f.Image,b(t,\"load\",n),t.src=e,t.complete&&n({})):h(l.element,e),l},B.prototype.symbol=function(t,e,i,o,r,l){var s,n,a,h,c=this,d=/^url\\((.*?)\\)$/,p=d.test(t),u=!p&&(this.symbols[t]?t:\"circle\"),f=u&&this.symbols[u];return f?(\"number\"==typeof e&&(s=f.call(this.symbols,Math.round(e||0),Math.round(i||0),o||0,r||0,l)),s=this.path(s),c.styledMode||s.attr(\"fill\",\"none\"),T(s,{symbolName:u||void 0,x:e,y:i,width:o,height:r}),l&&T(s,l)):p&&(a=t.match(d)[1],(h=s=this.image(a)).imgwidth=D(y[a]&&y[a].width,l&&l.width),h.imgheight=D(y[a]&&y[a].height,l&&l.height),n=function(t){return t.attr({width:t.width,height:t.height})},[\"width\",\"height\"].forEach(function(t){h[t+\"Setter\"]=function(t,e){this[e]=t;var i,t=this,o=t.alignByTranslate,r=t.element,s=t.width,n=t.height,a=t.imgwidth,t=t.imgheight,h=this[\"img\"+e];M(h)&&(i=1,l&&\"within\"===l.backgroundSize&&s&&n?(i=Math.min(s/a,n/t),h=Math.round(h*i),S(r,{width:Math.round(a*i),height:Math.round(t*i)})):r&&r.setAttribute(e,h),o||this.translate(((s||0)-h*i)/2,((n||0)-h*i)/2))}}),M(e)&&h.attr({x:e,y:i}),h.isImg=!0,M(h.imgwidth)&&M(h.imgheight)?n(h):(h.attr({width:0,height:0}),k(\"img\",{onload:function(){var t=g[c.chartIndex];0===this.width&&(C(this,{position:\"absolute\",top:\"-999em\"}),m.body.appendChild(this)),y[a]={width:this.width,height:this.height},h.imgwidth=this.width,h.imgheight=this.height,h.element&&n(h),this.parentNode&&this.parentNode.removeChild(this),c.imgCount--,c.imgCount||!t||t.hasLoaded||t.onload()},src:a}),this.imgCount++)),s},B.prototype.clipRect=function(t,e,i,o){var r=I()+\"-\",s=this.createElement(\"clipPath\").attr({id:r}).add(this.defs),t=this.rect(t,e,i,o,0).add(s);return t.id=r,t.clipPath=s,t.count=0,t},B.prototype.text=function(t,e,i,o){var r=this,s={};if(o&&(r.allowHTML||!r.forExport))return r.html(t,e,i);s.x=Math.round(e||0),i&&(s.y=Math.round(i)),M(t)&&(s.text=t);e=r.createElement(\"text\").attr(s);return o&&(!r.forExport||r.allowHTML)||(e.xSetter=function(t,e,i){for(var o=i.getElementsByTagName(\"tspan\"),r=i.getAttribute(e),s=0,n=void 0;s\":\">\",\"'\":\"'\",'\"':\""\"},symbols:r,draw:p}),i.registerRendererType(\"svg\",t,!0),t}),e(t,\"Core/Renderer/HTML/HTMLElement.js\",[t[\"Core/Globals.js\"],t[\"Core/Renderer/SVG/SVGElement.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var o,r,s=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=t.isFirefox,a=t.isMS,h=t.isWebKit,l=t.win,m=i.css,y=i.defined,c=i.extend,d=i.pick,v=i.pInt;function p(){return null!==r&&r.apply(this,arguments)||this}return s(p,r=e),p.compose=function(t){var e,i;return-1===p.composedClasses.indexOf(t)&&(p.composedClasses.push(t),(i=t.prototype).getSpanCorrection=(e=p.prototype).getSpanCorrection,i.htmlCss=e.htmlCss,i.htmlGetBBox=e.htmlGetBBox,i.htmlUpdateTransform=e.htmlUpdateTransform,i.setSpanRotation=e.setSpanRotation),t},p.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},p.prototype.htmlCss=function(t){var e,i=this,o=\"SPAN\"===i.element.tagName&&t&&\"width\"in t,r=d(o&&t.width,void 0);return o&&(delete t.width,i.textWidth=r,e=!0),t&&\"ellipsis\"===t.textOverflow&&(t.whiteSpace=\"nowrap\",t.overflow=\"hidden\"),i.styles=c(i.styles,t),m(i.element,t),e&&i.htmlUpdateTransform(),i},p.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},p.prototype.htmlUpdateTransform=function(){var t,e,i,o,r,s,n,a,h,l,c,d,p,u,f,g;this.added?(e=(t=this).renderer,i=t.element,o=t.translateX||0,r=t.translateY||0,s=t.x||0,n=t.y||0,h={left:0,center:.5,right:1}[a=t.textAlign||\"left\"],l=t.styles,l=l&&l.whiteSpace,m(i,{marginLeft:o,marginTop:r}),!e.styledMode&&t.shadows&&t.shadows.forEach(function(t){m(t,{marginLeft:o+1,marginTop:r+1})}),t.inverted&&[].forEach.call(i.childNodes,function(t){e.invertChild(t,i)}),\"SPAN\"===i.tagName&&(c=t.rotation,d=t.textWidth&&v(t.textWidth),p=[c,a,i.innerHTML,t.textWidth,t.textAlign].join(\",\"),u=void 0,f=!1,d!==t.oldTextWidth&&(g=t.textPxLength||(m(i,{width:\"\",whiteSpace:l||\"nowrap\"}),i.offsetWidth),d>t.oldTextWidth||d=h.minRange,s=[d-(s=((a=h.minRange)-p+d)/2),O(l.min,d-s)],t&&(s[2]=h.logarithmic?h.logarithmic.log2lin(h.dataMin):h.dataMin),n=[(d=g(s))+a,O(l.max,d+a)],t&&(n[2]=c?c.log2lin(h.dataMax):h.dataMax),(p=m(n))-d=v?(x=v,m=0):n.dataMax<=v&&(i=v,g=0)),n.min=O(o,x,n.dataMin),n.max=O(r,i,n.dataMax)),h&&(n.positiveValuesOnly&&!t&&Math.min(n.min,O(n.dataMin,n.min))<=0&&T(10,1,a),n.min=M(h.log2lin(n.min),16),n.max=M(h.log2lin(n.max),16)),n.range&&w(n.max)&&(n.userMin=n.min=o=Math.max(n.dataMin,n.minFromRange()),n.userMax=r=n.max,n.range=null),A(n,\"foundExtremes\"),n.beforePadding&&n.beforePadding(),n.adjustForMinRange(),u||n.axisPointRange||n.stacking&&n.stacking.usePercentage||d||!w(n.min)||!w(n.max)||(e=n.max-n.min)&&(!w(o)&&m&&(n.min-=e*m),!w(r))&&g&&(n.max+=e*g),P(n.userMin)||(P(l.softMin)&&l.softMinn.max&&(n.max=r=l.softMax),P(l.ceiling)&&(n.max=Math.min(n.max,l.ceiling))),f&&w(n.dataMin)&&(v=v||0,!w(o)&&n.min=v?n.min=n.options.minRange?Math.min(v,n.max-n.minRange):v:!w(r)&&n.max>v&&n.dataMax<=v&&(n.max=n.options.minRange?Math.max(v,n.min+n.minRange):v)),P(n.min)&&P(n.max)&&!this.chart.polar&&n.min>n.max&&(w(n.options.min)?n.max=n.min:w(n.options.max)&&(n.min=n.max)),n.min===n.max||void 0===n.min||void 0===n.max?n.tickInterval=1:d&&n.linkedParent&&!y&&p===n.linkedParent.options.tickPixelInterval?n.tickInterval=y=n.linkedParent.tickInterval:n.tickInterval=O(y,this.tickAmount?(n.max-n.min)/Math.max(this.tickAmount-1,1):void 0,u?1:(n.max-n.min)*p/Math.max(n.len,p)),c&&!t&&(s=n.min!==(n.old&&n.old.min)||n.max!==(n.old&&n.old.max),n.series.forEach(function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(s)}),A(this,\"postProcessData\",{hasExtremesChanged:s})),n.setAxisTranslation(),A(this,\"initialAxisTranslation\"),n.pointRange&&!y&&(n.tickInterval=Math.max(n.pointRange,n.tickInterval)),O(l.minTickInterval,n.dateTime&&!n.series.some(function(t){return t.noSharedTooltip})?n.closestPointRange:0));!y&&n.tickIntervalMath.max(2*this.len,200)))if(e.dateTime)l=e.getTimeTicks(e.dateTime.normalizeTimeTickInterval(this.tickInterval,i.units),this.min,this.max,i.startOfWeek,e.ordinal&&e.ordinal.positions,this.closestPointRange,!0);else if(e.logarithmic)l=e.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var c=this.tickInterval,d=c;d<=2*c&&(l=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount)&&l.length>this.tickAmount;)this.tickInterval=k(this,d*=1.1);else l=[this.min,this.max],T(19,!1,this.chart);l.length>this.len&&(l=[l[0],l[l.length-1]])[0]===l[1]&&(l.length=1),r&&(this.tickPositions=l,t=r.apply(e,[this.min,this.max]))&&(l=t)}this.tickPositions=l,this.paddedTicks=l.slice(0),this.trimTicks(l,h,a),!this.isLinked&&P(this.min)&&P(this.max)&&(this.single&&l.length<2&&!this.categories&&!this.series.some(function(t){return t.is(\"heatmap\")&&\"between\"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),o||t||this.adjustTickAmount()),A(this,\"afterSetTickPositions\")},I.prototype.trimTicks=function(t,e,i){var o=t[0],r=t[t.length-1],s=!this.isOrdinal&&this.minPointOffset||0;if(A(this,\"trimTicks\"),!this.isLinked){if(e&&o!==-1/0)this.min=o;else for(;this.min-s>t[0];)t.shift();if(i)this.max=r;else for(;this.max+sh||c[c.length-1]s.threshold?e:t)();if(g>8*s.tickInterval)break;g*=2}p()}else if(um&&(m=t.label.textPxLength)}),this.maxLabelLength=m,this.autoRotation)pf.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(d&&(r=p,!g))for(s=\"clip\",t=n.length;!c&&t--;)e=n[t],(e=a[e].label)&&(e.styles&&\"ellipsis\"===e.styles.textOverflow?e.css({textOverflow:\"clip\"}):e.textPxLength>d&&e.css({width:d+\"px\"}),e.getBBox().height>this.len/n.length-(f.h-f.f))&&(e.specificTextOverflow=\"ellipsis\");u.rotation&&(r=m>.5*i.chartHeight?.33*i.chartHeight:m,g||(s=\"ellipsis\")),this.labelAlign=h.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(u.align=this.labelAlign),n.forEach(function(t){var t=a[t],e=t&&t.label,i=l.width,o={};e&&(e.attr(u),t.shortenLabel?t.shortenLabel():r&&!i&&\"nowrap\"!==l.whiteSpace&&(r=o.min&&t<=o.max||o.grid&&o.grid.isColumn)&&(s[t]||(s[t]=new S(o,t)),i&&s[t].isNew&&s[t].render(e,!0,-1),s[t].render(e))},I.prototype.render=function(){var i,o,r,s=this,n=s.chart,a=s.logarithmic,t=n.renderer,e=s.options,h=s.isLinked,l=s.tickPositions,c=s.axisTitle,d=s.ticks,p=s.minorTicks,u=s.alternateBands,f=e.stackLabels,g=e.alternateGridColor,m=s.tickmarkOffset,y=s.axisLine,v=s.showAxis,x=C(t.globalAnimation);s.labelEdge.length=0,s.overlap=!1,[d,p,u].forEach(function(t){L(t,function(t){t.isActive=!1})}),(s.hasData()||h)&&(r=s.chart.hasRendered&&s.old&&P(s.old.min),s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(t){s.renderMinorTick(t,r)}),l.length&&(l.forEach(function(t,e){s.renderTick(t,e,r)}),m)&&(0===s.min||s.single)&&(d[-1]||(d[-1]=new S(s,-1,null,!0)),d[-1].render(-1)),g&&l.forEach(function(t,e){o=void 0!==l[e+1]?l[e+1]+m:s.max-m,e%2==0&&tthis.max&&e>this.max,h=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),l=1;if(h&&s)for(e&&(r=h.toString()===s.toString(),l=0),o=0;oe})&&(l=l.map(function(t){var e=L(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1),i=e.x,e=e.y;return j(t,{target:e,x:i})})),g.cleanSplit(),E(l,P),{left:c,right:c}),o=(l.forEach(function(t){var e=t.x,i=t.boxWidth,t=t.isHeader;t||(g.outside&&c+e=r.value;)r=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),r&&r.color&&!this.options.color?this.color=r.color:this.color=this.nonZonedColor,r},M.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},M.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=s(this.id)?this.id:y(),this.resolveColor(),t.chart.pointCount++,S(this,\"afterInit\"),this},M.prototype.isValid=function(){return null!==this.x&&k(this.y)},M.prototype.optionsToObject=function(t){var e,i=this.series,o=i.options.keys,r=o||i.pointArrayMap||[\"y\"],s=r.length,n={},a=0,h=0;if(k(t)||null===t)n[r[0]]=t;else if(c(t))for(!o&&t.length>s&&(\"string\"==(e=typeof t[0])?n.name=t[0]:\"number\"==e&&(n.x=t[0]),a++);hs.series.index?-1:1)))&&(h=t)}),h},C.prototype.getChartCoordinatesFromPoint=function(t,e){var i,o,r=t.series,s=r.xAxis,r=r.yAxis,n=t.shapeArgs;return s&&r?(i=k(t.clientX,t.plotX),o=t.plotY||0,t.isNode&&n&&b(n.x)&&b(n.y)&&(i=n.x,o=n.y),e?{chartX:r.len+r.pos-o,chartY:s.len+s.pos-i}:{chartX:i+s.pos,chartY:o+r.pos}):n&&n.x&&n.y?{chartX:n.x,chartY:n.y}:void 0},C.prototype.getChartPosition=function(){var t,e,i;return this.chartPosition||(i=this.chart.container,t=a(i),this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1},e=i.offsetWidth,i=i.offsetHeight,2x.max&&(e=x.max-l,d=!0),d?(M-=.8*(M-n[u][0]),\"number\"==typeof w&&(w-=.8*(w-n[u][1])),h()):n[u]=[M,w],v||(s[u]=c-y,s[m]=l),v?t?\"scaleY\":\"scaleX\":\"scale\"+f),i=v?1/C:C;r[m]=l,r[u]=e,o[b]=C,o[\"translate\"+f]=i*y+(M-i*S)},C.prototype.reset=function(e,t){var i=this,o=i.chart,r=o.hoverSeries,s=o.hoverPoint,n=o.hoverPoints,a=o.tooltip,h=a&&a.shared?n:s;e&&h&&l(h).forEach(function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?a&&h&&l(h).length&&(a.refresh(h),a.shared&&n?n.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair)&&t.series.yAxis.drawCrosshair(null,t)}):s&&(s.setState(s.state,!0),o.axes.forEach(function(t){t.crosshair&&s.series[t.coll]===t&&t.drawCrosshair(null,s)}))):(s&&s.onMouseOut(),n&&n.forEach(function(t){t.setState()}),r&&r.onMouseOut(),a&&a.hide(t),i.unDocMouseMove&&(i.unDocMouseMove=i.unDocMouseMove()),o.axes.forEach(function(t){t.hideCrosshair()}),i.hoverX=o.hoverPoints=o.hoverPoint=null)},C.prototype.runPointActions=function(o,t,e){var i=this,r=i.chart,s=r.series,n=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,a=!!n&&n.shared,h=(l=t||r.hoverPoint)&&l.series||r.hoverSeries,t=(!o||\"touchmove\"!==o.type)&&(!!t||h&&h.directTouch&&i.isDirectTouch),s=this.getHoverData(l,h,s,t,a,o),l=s.hoverPoint,h=s.hoverSeries,c=s.hoverPoints,t=h&&h.tooltipOptions.followPointer&&!h.tooltipOptions.split,d=a&&h&&!h.noSharedTooltip;if(l&&(e||l!==r.hoverPoint||n&&n.isHidden)){if((r.hoverPoints||[]).forEach(function(t){-1===c.indexOf(t)&&t.setState()}),r.hoverSeries!==h&&h.onMouseOver(),i.applyInactiveState(c),(c||[]).forEach(function(t){t.setState(\"hover\")}),r.hoverPoint&&r.hoverPoint.firePointEvent(\"mouseOut\"),!l.series)return;r.hoverPoints=c,(r.hoverPoint=l).firePointEvent(\"mouseOver\",void 0,function(){n&&l&&n.refresh(d?c:l,o)})}else t&&n&&!n.isHidden&&(s=n.getAnchor([{}],o),r.isInsidePlot(s[0],s[1],{visiblePlotOnly:!0}))&&n.updatePosition({plotX:s[0],plotY:s[1]});i.unDocMouseMove||(i.unDocMouseMove=g(r.container.ownerDocument,\"mousemove\",function(t){var e=p[C.hoverChartIndex];e&&e.pointer.onDocumentMouseMove(t)}),i.eventsToUnbind.push(i.unDocMouseMove)),r.axes.forEach(function(e){var t,i=k((e.crosshair||{}).snap,!0);(t=!i||(t=r.hoverPoint)&&t.series[e.coll]===e?t:v(c,function(t){return t.series&&t.series[e.coll]===e}))||!i?e.drawCrosshair(o,t):e.hideCrosshair()})},C.prototype.scaleGroups=function(i,o){var r=this.chart;r.series.forEach(function(t){var e=i||t.getPlotBox();t.group&&(t.xAxis&&t.xAxis.zoomEnabled||r.mapView)&&(t.group.attr(e),t.markerGroup&&(t.markerGroup.attr(e),t.markerGroup.clip(o?r.clipRect:null)),t.dataLabelsGroup)&&t.dataLabelsGroup.attr(e)}),r.clipRect.attr(o||r.clipBox)},C.prototype.setDOMEvents=function(){for(var t=this,e=this.chart.container,i=e.ownerDocument,o=(e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(g(e,\"mouseenter\",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(g(e,\"mouseleave\",this.onContainerMouseLeave.bind(this))),C.unbindDocumentMouseUp||(C.unbindDocumentMouseUp=g(i,\"mouseup\",this.onDocumentMouseUp.bind(this))),this.chart.renderTo.parentElement);o&&\"BODY\"!==o.tagName;)this.eventsToUnbind.push(g(o,\"scroll\",function(){delete t.chartPosition})),o=o.parentElement;r.hasTouch&&(this.eventsToUnbind.push(g(e,\"touchstart\",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(g(e,\"touchmove\",this.onContainerTouchMove.bind(this),{passive:!1})),C.unbindDocumentTouchEnd||(C.unbindDocumentTouchEnd=g(i,\"touchend\",this.onDocumentTouchEnd.bind(this),{passive:!1})))},C.prototype.setHoverChartIndex=function(){var t=this.chart,e=r.charts[k(C.hoverChartIndex,-1)];e&&e!==t&&e.pointer.onContainerMouseLeave({relatedTarget:t.container}),e&&e.mouseIsDown||(C.hoverChartIndex=t.index)},C.prototype.touch=function(t,e){var i,o=this.chart;this.setHoverChartIndex(),1===t.touches.length?(t=this.normalize(t),o.isInsidePlot(t.chartX-o.plotLeft,t.chartY-o.plotTop,{visiblePlotOnly:!0})&&!o.openMenu?(e&&this.runPointActions(t),\"touchmove\"===t.type&&(i=!!(o=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(o[0].chartX-t.chartX,2)+Math.pow(o[0].chartY-t.chartY,2))),k(i,!0)&&this.pinch(t)):e&&this.reset()):2===t.touches.length&&this.pinch(t)},C.prototype.touchSelect=function(t){return Boolean(this.chart.options.chart.zooming.singleTouch&&t.touches&&1===t.touches.length)},C.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart,e=e.inverted,o=i.zooming.type||\"\";/touch/.test(t.type)&&(o=k(i.zooming.pinchType,o)),this.zoomX=t=/x/.test(o),this.zoomY=i=/y/.test(o),this.zoomHor=t&&!e||i&&e,this.zoomVert=i&&!e||t&&e,this.hasZoom=t||i},C}),e(t,\"Core/MSPointer.js\",[t[\"Core/Globals.js\"],t[\"Core/Pointer.js\"],t[\"Core/Utilities.js\"]],function(t,n,e){var o,i,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=t.charts,s=t.doc,h=t.noop,l=t.win,c=e.addEvent,d=e.css,p=e.objectEach,u=e.pick,f=e.removeEvent,g={},m=!!l.PointerEvent;function y(t,e,i,o){var r,s=a[n.hoverChartIndex||NaN];\"touch\"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,o(t),s[e]({type:i,target:t.currentTarget,preventDefault:h,touches:((r=[]).item=function(t){return this[t]},p(g,function(t){r.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),r)}))}function v(){return null!==i&&i.apply(this,arguments)||this}return r(v,i=n),v.isRequired=function(){return!(t.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},v.prototype.batchMSEvents=function(t){t(this.chart.container,m?\"pointerdown\":\"MSPointerDown\",this.onContainerPointerDown),t(this.chart.container,m?\"pointermove\":\"MSPointerMove\",this.onContainerPointerMove),t(s,m?\"pointerup\":\"MSPointerUp\",this.onDocumentPointerUp)},v.prototype.destroy=function(){this.batchMSEvents(f),i.prototype.destroy.call(this)},v.prototype.init=function(t,e){i.prototype.init.call(this,t,e),this.hasZoom&&d(t.container,{\"-ms-touch-action\":\"none\",\"touch-action\":\"none\"})},v.prototype.onContainerPointerDown=function(t){y(t,\"onContainerTouchStart\",\"touchstart\",function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},v.prototype.onContainerPointerMove=function(t){y(t,\"onContainerTouchMove\",\"touchmove\",function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY},g[t.pointerId].target||(g[t.pointerId].target=t.currentTarget)})},v.prototype.onDocumentPointerUp=function(t){y(t,\"onDocumentTouchEnd\",\"touchend\",function(t){delete g[t.pointerId]})},v.prototype.setDOMEvents=function(){var t=this.chart.tooltip;i.prototype.setDOMEvents.call(this),(this.hasZoom||u(t&&t.options.followTouchMove,!0))&&this.batchMSEvents(c)},v}),e(t,\"Core/Legend/Legend.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/FormatUtilities.js\"],t[\"Core/Globals.js\"],t[\"Core/Series/Point.js\"],t[\"Core/Renderer/RendererUtilities.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,u,o,r){var d=t.animObject,p=t.setAnimation,s=e.format,a=(i.isFirefox,i.marginNames),h=(i.win,o.distribute),n=r.addEvent,l=r.createElement,c=r.css,f=r.defined,g=r.discardElement,m=r.find,y=r.fireEvent,v=r.isNumber,x=r.merge,S=r.pick,b=r.relativeLength,k=r.stableSort,C=r.syncTimeout;r.wrap;function M(t,e){this.allItems=[],this.box=void 0,this.contentGroup=void 0,this.display=!1,this.group=void 0,this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.init(t,e)}return M.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),n(this.chart,\"endResize\",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=n(this.chart,\"render\",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},M.prototype.setOptions=function(t){var e=S(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=x(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=S(t.symbolWidth,16),this.pages=[],this.proximate=\"proximate\"===t.layout&&!this.chart.inverted,this.baseline=void 0},M.prototype.update=function(t,e){var i=this.chart;this.setOptions(x(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,S(e,!0)&&i.redraw(),y(this,\"afterUpdate\")},M.prototype.colorizeItem=function(t,e){var i,o,r,s,n=t.legendItem||{},a=n.group,h=n.label,l=n.line,n=n.symbol;a&&a[e?\"removeClass\":\"addClass\"](\"highcharts-legend-item-hidden\"),this.chart.styledMode||(a=this.options,i=this.itemHiddenStyle.color,a=e?a.itemStyle.color:i,o=e&&t.color||i,r=t.options&&t.options.marker,s={fill:o},h&&h.css({fill:a,color:a}),l&&l.attr({stroke:o}),n&&(r&&n.isMarker&&(s=t.pointAttribs(),e||(s.stroke=s.fill=i)),n.attr(s))),y(this,\"afterColorizeItem\",{item:t,visible:e})},M.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},M.prototype.positionItem=function(t){var e=this,i=t.legendItem||{},o=i.group,r=i.x,r=void 0===r?0:r,i=i.y,i=void 0===i?0:i,s=this.options,n=s.symbolPadding,s=!s.rtl,a=t.checkbox;o&&o.element&&(s={translateX:s?r:this.legendWidth-r-2*n-4,translateY:i},o[f(o.translateY)?\"animate\":\"attr\"](s,void 0,function(){y(e,\"afterPositionItem\",{item:t})})),a&&(a.x=r,a.y=i)},M.prototype.destroyItem=function(t){for(var e=t.checkbox,i=t.legendItem||{},o=0,r=[\"group\",\"label\",\"line\",\"symbol\"];o1.5*p?m.height:p))},M.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o=\"horizontal\"===e.layout,r=t.itemHeight,s=this.itemMarginBottom,n=this.itemMarginTop,a=o?S(e.itemDistance,20):0,h=this.maxLegendWidth,e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,l=t.legendItem||{};o&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=n+this.itemY+s,this.lastLineHeight=Math.max(r,this.lastLineHeight),l.x=this.itemX,l.y=this.itemY,o?this.itemX+=e:(this.itemY+=n+r+s,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},M.prototype.getAllItems=function(){var i=[];return this.chart.series.forEach(function(t){var e=t&&t.options;t&&S(e.showInLegend,!f(e.linkedTo)&&void 0,!0)&&(i=i.concat((t.legendItem||{}).labels||(\"point\"===e.legendType?t.data:t)))}),y(this,\"afterGetAllItems\",{allItems:i}),i},M.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+\"tv\":t.floating?\"\":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},M.prototype.adjustMargins=function(i,o){var r=this.chart,s=this.options,n=this.getAlignment();n&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(t,e){t.test(n)&&!f(i[e])&&(r[a[e]]=Math.max(r[a[e]],r.legend[(e+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][e]*s[e%2?\"x\":\"y\"]+S(s.margin,12)+o[e]+(r.titleOffset[e]||0)))})},M.prototype.proximatePositions=function(){var s=this.chart,n=[],a=\"left\"===this.options.align;this.allItems.forEach(function(t){var e,i,o,r=a;t.yAxis&&(t.xAxis.options.reversed&&(r=!r),t.points&&(e=m(r?t.points:t.points.slice(0).reverse(),function(t){return v(t.plotY)})),r=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,o=t.yAxis.top-s.plotTop,t.visible?(i=e?e.plotY:t.yAxis.height,i+=o-.3*r):i=o+t.yAxis.height,n.push({target:i,size:r,item:t}))},this);for(var t=0,e=h(n,s.plotHeight);tr&&(s||t)!==y[o-1])&&(y.push(s||t),o++),n.pageIx=o-1,s&&((v[e-1].legendItem||{}).pageIx=o-1),e===v.length-1&&t+i-y[o-1]>r&&i<=r&&(y.push(t),n.pageIx=o),t!==s&&(s=t)}),b||(b=o.clipRect=h.clipRect(0,p,9999,0),o.contentGroup.clip(b)),e(r),x||(this.nav=x=h.g().attr({zIndex:1}).add(this.group),this.up=h.symbol(\"triangle\",0,0,m,m).add(x),i(\"upTracker\").on(\"click\",function(){o.scroll(-1,g)}),this.pager=h.text(\"\",15,10).addClass(\"highcharts-legend-navigation\"),!a.styledMode&&f.style&&this.pager.css(f.style),this.pager.add(x),this.down=h.symbol(\"triangle-down\",0,0,m,m).add(x),i(\"downTracker\").on(\"click\",function(){o.scroll(1,g)})),o.scroll(0),t=d):x&&(e(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},M.prototype.scroll=function(t,e){var i=this,o=this.chart,r=this.pages,s=r.length,n=this.clipHeight,a=this.options.navigation,h=this.pager,l=this.padding,c=this.currentPage+t;0<(c=s=Math.max(l+n,o.pos)&&s<=Math.min(l+n+h.width,o.pos+o.len))||(e.isInsidePlot=!1),!i.ignoreY&&e.isInsidePlot&&(s=i.axis&&!i.axis.isXAxis&&i.axis||d&&(r?d.xAxis:d.yAxis)||{pos:a,len:1/0},(l=i.paneCoordinates?s.pos+t:a+t)>=Math.max(c+a,s.pos)&&l<=Math.min(c+a+h.height,s.pos+s.len)||(e.isInsidePlot=!1)),w(this,\"afterIsInsidePlot\",e),e.isInsidePlot},B.prototype.redraw=function(t){w(this,\"beforeRedraw\");var e,i,o,r,s=this,n=s.hasCartesianSeries?s.axes:s.colorAxis||[],a=s.series,h=s.pointer,l=s.legend,c=s.userOptions.legend,d=s.renderer,p=d.isHidden(),u=[],f=s.isDirtyBox,g=s.isDirtyLegend;for(s.setResponsive&&s.setResponsive(!1),m(!!s.hasRendered&&t,s),p&&s.temporaryDisplay(),s.layOutTitles(),o=a.length;o--;)if(((r=a[o]).options.stacking||r.options.centerInCategory)&&(i=!0,r.isDirty)){e=!0;break}if(e)for(o=a.length;o--;)(r=a[o]).options.stacking&&(r.isDirty=!0);a.forEach(function(t){t.isDirty&&(\"point\"===t.options.legendType?(\"function\"==typeof t.updateTotals&&t.updateTotals(),g=!0):c&&(c.labelFormatter||c.labelFormat)&&(g=!0)),t.isDirtyData&&w(t,\"updatedData\")}),g&&l&&l.options.enabled&&(l.render(),s.isDirtyLegend=!1),i&&s.getStacks(),n.forEach(function(t){t.updateNames(),t.setScale()}),s.getMargins(),n.forEach(function(t){t.isDirty&&(f=!0)}),n.forEach(function(t){var e=t.min+\",\"+t.max;t.extKey!==e&&(t.extKey=e,u.push(function(){w(t,\"afterSetExtremes\",M(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(f||i)&&t.redraw()}),f&&s.drawChartBox(),w(s,\"predraw\"),a.forEach(function(t){(f||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),h&&h.reset(!0),d.draw(),w(s,\"redraw\"),w(s,\"render\"),p&&s.temporaryDisplay(!0),u.forEach(function(t){t.call()})},B.prototype.get=function(e){var t=this.series;function i(t){return t.id===e||t.options&&t.options.id===e}for(var o=s(this.axes,i)||s(this.series,i),r=0;!o&&r=j(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return j(e,t.length-1)},B.prototype.bindAxes=function(){var o,r=this,s=r.options,t=r.chart;O(this,\"bindAxes\",null,function(){(r.axisTypes||[]).forEach(function(e){var i=0;t[e].forEach(function(t){o=t.options,(s[e]===i&&!o.isInternal||void 0!==s[e]&&s[e]===o.id||void 0===s[e]&&0===o.index)&&(r.insert(t.series),(r[e]=t).isDirty=!0),o.isInternal||i++}),r[e]||r.optionalAxis===e||C(18,!0,t)})}),O(this,\"afterBindAxes\")},B.prototype.updateParallelArrays=function(i,o){var r=i.series,e=arguments,t=D(o)?function(t){var e=\"y\"===t&&r.toYData?r.toYData(i):i[t];r[t+\"Data\"][o]=e}:function(t){Array.prototype[o].apply(r[t+\"Data\"],Array.prototype.slice.call(e,2))};r.parallelArrays.forEach(t)},B.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0=this.cropStart?r-this.cropStart:r),r=!o&&D(r)&&a[r]&&a[r].touched?void 0:r},B.prototype.updateData=function(t,e){var r,i,o,s,n=this.options,a=n.dataSorting,h=this.points,l=[],c=this.requireSorting,d=t.length===h.length,p=!0;if(this.xIncrement=null,t.forEach(function(t,e){var i=L(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},o=i.x;i.id||D(o)?(-1===(o=this.findPointIndex(i,s))||void 0===o?l.push(t):h[o]&&t!==n.data[o]?(h[o].update(t,!1,null,!1),h[o].touched=!0,c&&(s=o+1)):h[o]&&(h[o].touched=!0),(!d||e!==o||a&&a.enabled||this.hasDerivedData)&&(r=!0)):l.push(t)},this),r)for(i=h.length;i--;)(o=h[i])&&!o.touched&&o.remove&&o.remove(!1,e);else!d||a&&a.enabled?p=!1:(t.forEach(function(t,e){t!==h[e].y&&h[e].update&&h[e].update(t,!1,null,!1)}),l.length=0);return h.forEach(function(t){t&&(t.touched=!1)}),!!p&&(l.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=y(this.xData),this.autoIncrement()),!0)},B.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var r,s,n,a,h=this,l=h.points,c=l&&l.length||0,d=h.options,p=h.chart,u=d.dataSorting,f=h.xAxis,g=d.turboThreshold,m=this.xData,y=this.yData,v=h.pointArrayMap,x=v&&v.length,v=d.keys,b=0,S=1,k=(p.options.chart.allowMutatingData||(d.data&&delete h.options.data,h.userOptions.data&&delete h.userOptions.data,a=w(!0,t)),(t=a||t||[]).length);if(u&&u.enabled&&(t=this.sortData(t)),!(n=p.options.chart.allowMutatingData&&!1!==o&&k&&c&&!h.cropped&&!h.hasGroupedData&&h.visible&&!h.boosted?this.updateData(t,i):n)){if(h.xIncrement=null,h.colorCounter=0,this.parallelArrays.forEach(function(t){h[t+\"Data\"].length=0}),g&&gn?(f=[],g=[]):a.yData&&(f[0]n)&&(f=(h=this.cropData(a.xData,a.yData,s,n)).xData,g=h.yData,u=h.start,e=!0)),r=f.length||1;--r;)0<(i=p?d(f[r])-d(f[r-1]):f[r]-f[r-1])&&(void 0===o||i=i){h=Math.max(0,s-r);break}for(n=s;no){l=n+r;break}return{xData:t.slice(h,l),yData:e.slice(h,l),start:h,end:l}},B.prototype.generatePoints=function(){var t,e,i,o,r=this,s=r.options,n=r.processedData||s.data,a=r.processedXData,h=r.processedYData,l=r.pointClass,c=a.length,d=r.cropStart||0,p=r.hasGroupedData,u=s.keys,f=[],g=s.dataGrouping&&s.dataGrouping.groupAll?d:0,m=r.data;for(m||p||((s=[]).length=n.length,m=r.data=s),u&&p&&(r.options.keys=!1),o=0;o=u&&(l[s-d]||o)<=f,i&&o)if(n=r.length)for(;n--;)D(r[n])&&(c[g++]=r[n]);else c[g++]=r;h={activeYData:c,dataMin:x(c),dataMax:y(c)};return O(this,\"afterGetExtremes\",{dataExtremes:h}),h},B.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},B.prototype.getFirstValidPoint=function(t){for(var e=t.length,i=0,o=null;null===o&&i=n.enabledThreshold*n.radius);if(!1!==n.enabled||i._hasPointMarkers)for(e=0;er.max,c.resetZones&&0===i&&(i=void 0)}),this.clips=u):c.visible&&(f&&f.show(),g)&&g.show()},B.prototype.plotGroup=function(t,e,i,o,r){var s=this[t],n=!s,i={visibility:i,zIndex:o||.1};return void 0===this.opacity||this.chart.styledMode||\"inactive\"===this.state||(i.opacity=this.opacity),n&&(this[t]=s=this.chart.renderer.g().add(r)),s.addClass(\"highcharts-\"+e+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(L(this.colorIndex)?\"highcharts-color-\"+this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(s.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0),s.attr(i)[n?\"attr\":\"animate\"](this.getPlotBox(e)),s},B.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart,t=o.inverted&&!o.polar&&e&&!1!==this.invertible&&\"series\"===t;return o.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,rotation:t?90:0,rotationOriginX:t?(e.len-i.len)/2:0,rotationOriginY:t?(e.len+i.len)/2:0,scaleX:t?-1:1,scaleY:1}},B.prototype.removeEvents=function(t){t||N(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0)},B.prototype.render=function(){var t=this,e=t.chart,i=t.options,o=d(i.animation),r=t.visible?\"inherit\":\"hidden\",s=i.zIndex,n=t.hasRendered,a=e.seriesGroup,e=(e.inverted,!t.finishedAnimating&&e.renderer.isSVG?o.duration:0);O(this,\"render\"),t.plotGroup(\"group\",\"series\",r,s,a);t.markerGroup=t.plotGroup(\"markerGroup\",\"markers\",r,s,a),!1!==i.clip&&t.setClip(),t.animate&&e&&t.animate(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.animate&&e&&t.animate(),n||(e&&o.defer&&(e+=o.defer),t.animationTimeout=I(function(){t.afterAnimate()},e||0)),t.isDirty=!1,t.hasRendered=!0,O(t,\"afterRender\")},B.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},B.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},B.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var n=this,e=-1f;)g--;n.updateParallelArrays(u,\"splice\",g,0,0),n.updateParallelArrays(u,g),c&&u.name&&(c[f]=u.name),d.splice(g,0,t),(s||n.processedData)&&(n.data.splice(g,0,null),n.processData()),\"point\"===a.legendType&&n.generatePoints(),i&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),n.updateParallelArrays(u,\"shift\"),d.shift())),!1!==r&&O(n,\"addPoint\",{point:u}),n.isDirty=!0,n.isDirtyData=!0,e&&l.redraw(o)},B.prototype.removePoint=function(t,e,i){function o(){a&&a.length===s.length&&a.splice(t,1),s.splice(t,1),r.options.data.splice(t,1),r.updateParallelArrays(n||{series:r},\"splice\",t,1),n&&n.destroy(),r.isDirty=!0,r.isDirtyData=!0,e&&h.redraw()}var r=this,s=r.data,n=s[t],a=r.points,h=r.chart;p(i,h),e=j(e,!0),n?n.firePointEvent(\"remove\",null,o):o()},B.prototype.remove=function(t,e,i,o){var r=this,s=r.chart;function n(){r.destroy(o),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(),j(t,!0)&&s.redraw(e)}!1!==i?O(r,\"remove\",null,n):n()},B.prototype.update=function(t,e){t=b(t,this.userOptions),O(this,\"update\",{options:t});var i,o,r=this,s=r.chart,n=r.userOptions,a=r.initialType||r.type,h=s.options.plotOptions,l=v[a].prototype,c=r.finishedAnimating&&{animation:!1},d={},p=[\"eventOptions\",\"navigatorSeries\",\"baseSeries\"],u=t.type||n.type||s.options.chart.type,f=!(this.hasDerivedData||u&&u!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||r.hasOptionChanged(\"dataGrouping\")||r.hasOptionChanged(\"pointStart\")||r.hasOptionChanged(\"pointInterval\")||r.hasOptionChanged(\"pointIntervalUnit\")||r.hasOptionChanged(\"keys\")),u=u||a,c=(f&&(p.push(\"data\",\"isDirtyData\",\"points\",\"processedData\",\"processedXData\",\"processedYData\",\"xIncrement\",\"cropped\",\"_hasPointMarkers\",\"_hasPointLabels\",\"clips\",\"nodes\",\"layout\",\"level\",\"mapMap\",\"mapData\",\"minY\",\"maxY\",\"minX\",\"maxX\"),!1!==t.visible&&p.push(\"area\",\"graph\"),r.parallelArrays.forEach(function(t){p.push(t+\"Data\")}),t.data)&&(t.dataSorting&&k(r.options.dataSorting,t.dataSorting),this.setData(t.data,!1)),t=w(n,c,{index:(void 0===n.index?r:n).index,pointStart:j(h&&h.series&&h.series.pointStart,n.pointStart,r.xData[0])},!f&&{data:r.options.data},t),f&&t.data&&(t.data=r.options.data),(p=[\"group\",\"markerGroup\",\"dataLabelsGroup\",\"transformGroup\",\"shadowGroup\"].concat(p)).forEach(function(t){p[t]=r[t],delete r[t]}),!1);if(v[u]){if(c=u!==r.type,r.remove(!1,!1,!1,!0),c)if(Object.setPrototypeOf)Object.setPrototypeOf(r,v[u].prototype);else{var h=Object.hasOwnProperty.call(r,\"hcEvents\")&&r.hcEvents;for(i in l)r[i]=void 0;k(r,v[u].prototype),h?r.hcEvents=h:delete r.hcEvents}}else C(17,!0,s,{missingModuleFor:u});if(p.forEach(function(t){r[t]=p[t]}),r.init(s,t),f&&this.points){!1===(o=r.options).visible?(d.graphic=1,d.dataLabel=1):r._hasPointLabels||(l=o.marker,h=o.dataLabels,u=n.marker||{},!l||!1!==l.enabled&&u.symbol===l.symbol&&u.height===l.height&&u.width===l.width||(d.graphic=1),h&&!1===h.enabled&&(d.dataLabel=1));for(var g=0,m=this.points;gm?i-m:g-(e?m:0)),M(t.options.pointWidth)&&(a=h=Math.ceil(t.options.pointWidth),r-=Math.round((a-v)/2)),d.centerInCategory&&(r=l.adjustForMissingColumns(r,a,t,y)),t.barX=r,t.pointWidth=a,t.tooltipPos=c.inverted?[C(u.len+u.pos-c.plotLeft-o,u.pos-c.plotLeft,u.len+u.pos-c.plotLeft),p.len+p.pos-c.plotTop-r-h/2,n]:[p.left-c.plotLeft+r+h/2,C(o+u.pos-c.plotTop,u.pos-c.plotTop,u.len+u.pos-c.plotTop),n],t.shapeType=l.pointClass.prototype.shapeType||\"rect\",t.shapeArgs=l.crispCol.apply(l,t.isNull?[r,g,h,0]:[r,s,h,n])})},x.prototype.drawGraph=function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},x.prototype.pointAttribs=function(t,e){var i,o=this.options,r=this.pointAttrToOptions||{},s=r.stroke||\"borderColor\",r=r[\"stroke-width\"]||\"borderWidth\",n=t&&t.color||this.color,a=t&&t[s]||o[s]||n,h=t&&t.options.dashStyle||o.dashStyle,l=t&&t[r]||o[r]||this[r]||0,c=T(t&&t.opacity,o.opacity,1),t=(t&&this.zones.length&&(i=t.getZone(),n=t.options.color||i&&(i.color||t.nonZonedColor)||this.color,i)&&(a=i.borderColor||a,h=i.dashStyle||h,l=i.borderWidth||l),e&&t&&(o=(i=y(o.states[e],t.options.states&&t.options.states[e]||{})).brightness,n=i.color||void 0!==o&&p(n).brighten(i.brightness).get()||n,a=i[s]||a,l=i[r]||l,h=i.dashStyle||h,c=T(i.opacity,c)),{fill:n,stroke:a,\"stroke-width\":l,opacity:c});return h&&(t.dashstyle=h),t},x.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var s,n=this,a=this.chart,h=n.options,l=a.renderer,c=h.animationLimit||250;t.forEach(function(t){var e=t.plotY,i=t.graphic,o=!!i,r=i&&a.pointCount\"===a&&l=\"===a&&l<=h||\"<=\"===a&&h<=l||\"==\"===a&&h==l||\"===\"===a&&h===l),h=p.connectors?p.connectors[e]:p.connector,l=p.dataLabels?p.dataLabels[e]:p.dataLabel,c=!l,d=k(t.distance,p.labelDistance);a&&(s=p.getLabelConfig(),r=k(t[p.formatPrefix+\"Format\"],t.format),r=b(r)?x(r,s,g):(t[p.formatPrefix+\"Formatter\"]||t.formatter).call(s,t),s=t.style,n=t.rotation,g.styledMode||(s.color=k(t.color,s.color,f.color,\"#000000\"),\"contrast\"===s.color?(p.contrastColor=y.getContrast(p.color||f.color),s.color=!b(d)&&t.inside||d<0||m.stacking?p.contrastColor:v):delete p.contrastColor,m.cursor&&(s.cursor=m.cursor)),i={r:t.borderRadius||0,rotation:n,padding:t.padding,zIndex:1},g.styledMode||(d=t.backgroundColor,o=t.borderColor,i.fill=\"auto\"===d?p.color:d,i.stroke=\"auto\"===o?p.color:o,i[\"stroke-width\"]=t.borderWidth),S(i,function(t,e){void 0===t&&delete i[e]})),!l||a&&b(r)&&!!l.div==!!t.useHTML&&(l.rotation&&t.rotation||l.rotation===t.rotation)||(c=!0,p.dataLabel=l=p.dataLabel&&p.dataLabel.destroy(),p.dataLabels&&(1===p.dataLabels.length?delete p.dataLabels:delete p.dataLabels[e]),e||delete p.dataLabel,h&&(p.connector=p.connector.destroy(),p.connectors)&&(1===p.connectors.length?delete p.connectors:delete p.connectors[e])),a&&b(r)?(l?i.text=r:(p.dataLabels=p.dataLabels||[],l=p.dataLabels[e]=n?y.text(r,0,0,t.useHTML).addClass(\"highcharts-data-label\"):y.label(r,0,0,t.shape,null,null,t.useHTML,null,\"data-label\"),e||(p.dataLabel=l),l.addClass(\" highcharts-data-label-color-\"+p.colorIndex+\" \"+(t.className||\"\")+(t.useHTML?\" highcharts-tracker\":\"\"))),l.options=t,l.attr(i),g.styledMode||l.css(s).shadow(t.shadow),(d=t[p.formatPrefix+\"TextPath\"]||t.textPath)&&!t.useHTML&&(l.setTextPath(p.getDataLabelPath&&p.getDataLabelPath(l)||p.graphic,d),p.dataLabelPath)&&!d.enabled&&(p.dataLabelPath=p.dataLabelPath.destroy()),l.added||l.add(u),f.alignDataLabel(p,l,t,null,c)):l&&l.hide()})})),n(this,\"afterDrawDataLabels\")}function u(t,e,i,o,r,s){var n,a=this.chart,h=e.align,l=e.verticalAlign,c=!t.box&&t.padding||0,d=e.x,d=void 0===d?0:d,p=e.y,p=void 0===p?0:p,u=(i.x||0)+c;return u<0&&(\"right\"===h&&0<=d?(e.align=\"left\",e.inside=!0):d-=u,n=!0),(u=(i.x||0)+o.width-c)>a.plotWidth&&(\"left\"===h&&d<=0?(e.align=\"right\",e.inside=!0):d+=a.plotWidth-u,n=!0),(u=i.y+c)<0&&(\"bottom\"===l&&0<=p?(e.verticalAlign=\"top\",e.inside=!0):p-=u,n=!0),(u=(i.y||0)+o.height-c)>a.plotHeight&&(\"top\"===l&&p<=0?(e.verticalAlign=\"bottom\",e.inside=!0):p+=a.plotHeight-u,n=!0),n&&(e.x=d,e.y=p,t.placed=!s,t.align(e,void 0,r)),n}function C(e,i){var t,o=[];if(a(e)&&!a(i))o=e.map(function(t){return l(t,i)});else if(a(i)&&!a(e))o=i.map(function(t){return l(e,t)});else if(a(e)||a(i))for(t=Math.max(e.length,i.length);t--;)o[t]=l(e[t],i[t]);else o=l(e,i);return o}function f(t,e,i,o,r){var s=this.chart,n=s.inverted,a=this.xAxis,h=a.reversed,l=n?e.height/2:e.width/2,t=t.pointWidth,t=t?t/2:0;e.startXPos=n?r.x:h?-l-t:a.width-l+t,e.startYPos=n?h?this.yAxis.height-l+t:-l-t:r.y,o?\"hidden\"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),s.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}return o=o||{},r=[],o.compose=function(t){var e;-1===r.indexOf(t)&&(e=t.prototype,r.push(t),e.alignDataLabel=d,e.drawDataLabels=p,e.justifyDataLabel=u,e.setDataLabelStartPos=f)},o}),e(t,\"Series/Column/ColumnDataLabel.js\",[t[\"Core/Series/DataLabel.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(e,t,i){var o,r,d=t.series,p=i.merge,u=i.pick;function s(t,e,i,o,r){var s=this.chart.inverted,n=t.series,a=(n.xAxis?n.xAxis.len:this.chart.plotSizeX)||0,n=(n.yAxis?n.yAxis.len:this.chart.plotSizeY)||0,h=t.dlBox||t.shapeArgs,l=u(t.below,t.plotY>u(this.translatedThreshold,n)),c=u(i.inside,!!this.options.stacking);h&&((o=p(h)).y<0&&(o.height+=o.y,o.y=0),0<(h=o.y+o.height-n)&&h {series.name}
',pointFormat:\"x: {point.x}
y: {point.y}
\"}}}),e(t,\"Series/Scatter/ScatterSeries.js\",[t[\"Series/Scatter/ScatterSeriesDefaults.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var o,r,s=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=e.seriesTypes,a=n.column,n=n.line,h=i.addEvent,l=i.extend,i=i.merge,s=(s(c,r=n),c.prototype.applyJitter=function(){var h=this,l=this.options.jitter,c=this.points.length;l&&this.points.forEach(function(n,a){[\"x\",\"y\"].forEach(function(t,e){var i,o,r,s=\"plot\"+t.toUpperCase();l[t]&&!n.isNull&&(o=h[t+\"Axis\"],r=l[t]*o.transA,o)&&!o.isLog&&(i=Math.max(0,n[s]-r),o=Math.min(o.len,n[s]+r),n[s]=i+(o-i)*(r=a+e*c,(r=1e4*Math.sin(r))-Math.floor(r)),\"x\"===t)&&(n.clientX=n.plotX)})})},c.prototype.drawGraph=function(){this.options.lineWidth?r.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},c.defaultOptions=i(n.defaultOptions,t),c);function c(){var t=null!==r&&r.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return l(s.prototype,{drawTracker:a.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],takeOrdinalPosition:!1}),h(s,\"afterTranslate\",function(){this.applyJitter()}),e.registerSeriesType(\"scatter\",s),s}),e(t,\"Series/CenteredUtilities.js\",[t[\"Core/Globals.js\"],t[\"Core/Series/Series.js\"],t[\"Core/Utilities.js\"]],function(t,f,e){var i,o=t.deg2rad,g=e.fireEvent,m=e.isNumber,y=e.pick,v=e.relativeLength;return(t=i=i||{}).getCenter=function(){var t,e,i,o=this.options,r=this.chart,s=2*(o.slicedOffset||0),n=r.plotWidth-2*s,a=r.plotHeight-2*s,h=o.center,l=Math.min(n,a),c=o.thickness,d=o.size,p=o.innerSize||0,u=(\"string\"==typeof d&&(d=parseFloat(d)),\"string\"==typeof p&&(p=parseFloat(p)),[y(h[0],\"50%\"),y(h[1],\"50%\"),y(d&&d<0?void 0:o.size,\"100%\"),y(p&&p<0?void 0:o.innerSize||0,\"0%\")]);for(!r.angular||this instanceof f||(u[3]=0),e=0;e<4;++e)i=u[e],t=e<2||2===e&&/%$/.test(i),u[e]=v(i,[n,a,l,u[2]][e])+(t?s:0);return u[2]t.x||se.x)&&(r=!1),[[\"M\",t.x,t.y]]);return r&&a.push(o),a.push([\"L\",e.x,e.y]),a}}}),i}),e(t,\"Series/Pie/PieSeriesDefaults.js\",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:\"fixedOffset\",crookDistance:\"70%\",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),e(t,\"Series/Pie/PieSeries.js\",[t[\"Series/CenteredUtilities.js\"],t[\"Series/Column/ColumnSeries.js\"],t[\"Core/Globals.js\"],t[\"Core/Legend/LegendSymbol.js\"],t[\"Series/Pie/PiePoint.js\"],t[\"Series/Pie/PieSeriesDefaults.js\"],t[\"Core/Series/Series.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Renderer/SVG/Symbols.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,o,r,s,n,a,h,l){var c,d,p=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)},function(t,e){function i(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),v=t.getStartAndEndRadians,i=i.noop,u=l.clamp,f=l.extend,x=l.fireEvent,g=l.merge,b=l.pick,S=l.relativeLength,l=(p(m,d=n),m.prototype.animate=function(t){var o=this,e=o.points,r=o.startAngleRad;t||e.forEach(function(t){var e=t.graphic,i=t.shapeArgs;e&&i&&(e.attr({r:b(t.startR,o.center&&o.center[3]/2),start:r,end:r}),e.animate({r:i.r,start:i.start,end:i.end},o.options.animation))})},m.prototype.drawEmpty=function(){var t,e,i=this.startAngleRad,o=this.endAngleRad,r=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,o).addClass(\"highcharts-empty-series\").add(this.group)),this.graph.attr({d:h.arc(t,e,this.center[2]/2,0,{start:i,end:o,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({\"stroke-width\":r.borderWidth,fill:r.fillColor||\"none\",stroke:r.color||\"#cccccc\"})):this.graph&&(this.graph=this.graph.destroy())},m.prototype.drawPoints=function(){var e=this.chart.renderer;this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})},m.prototype.generatePoints=function(){d.prototype.generatePoints.call(this),this.updateTotals()},m.prototype.getX=function(t,e,i){var o=this.center,r=this.radii?this.radii[i.index]||0:o[2]/2,t=Math.asin(u((t-o[1])/(r+i.labelDistance),-1,1));return o[0]+(e?-1:1)*(Math.cos(t)*(r+i.labelDistance))+(01.5*Math.PI?y-=2*Math.PI:y<-Math.PI/2&&(y+=2*Math.PI),r.slicedTranslation={translateX:Math.round(Math.cos(y)*n),translateY:Math.round(Math.sin(y)*n)},m=Math.cos(y)*t[2]/2,i=Math.sin(y)*t[2]/2,r.tooltipPos=[t[0]+.7*m,t[1]+.7*i],r.half=y<-Math.PI/2||y>Math.PI/2?1:0,r.angle=y,e=Math.min(a,r.labelDistance/5),r.labelPosition={natural:{x:t[0]+m+Math.cos(y)*r.labelDistance,y:t[1]+i+Math.sin(y)*r.labelDistance},final:{},alignment:r.labelDistance<0?\"center\":r.half?\"right\":\"left\",connectorPosition:{breakAt:{x:t[0]+m+Math.cos(y)*e,y:t[1]+i+Math.sin(y)*e},touchingSliceAt:{x:t[0]+m,y:t[1]+i}}}}x(this,\"afterTranslate\")},m.prototype.updateTotals=function(){for(var t,e=this.points,i=e.length,o=this.options.ignoreHiddenPoint,r=0,s=0;se&&(t.dataLabel.css({width:Math.round(.7*e)+\"px\"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),r.forEach(function(t,e){var i,o,r,s,n,a=t.length,h=[];if(a)for(v.sortByAngle(t,e-.5),0e.bottom-2?o:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,o){t=t.getBBox().width;return e?t+o:i-t-o},alignToConnectors:function(t,e,i,o){var r,s=0;return t.forEach(function(t){r=t.dataLabel.getBBox().width,s=n.x+n.width||a.x+a.width<=n.x||a.y>=n.y+n.height||a.y+a.height<=n.y||((o.labelrank=o(i.minWidth,0)&&this.chartHeight>=o(i.minHeight,0)}).call(this)&&e.push(t._id)},n.prototype.setResponsive=function(t,e){var i=this,o=this.options.responsive,r=this.currentResponsive,s=[],e=(!e&&o&&o.rules&&o.rules.forEach(function(t){void 0===t._id&&(t._id=u()),i.matchResponsiveRule(t,s)},this),c.apply(void 0,s.map(function(e){return a((o||{}).rules||[],function(t){return t._id===e})}).map(function(t){return t&&t.chartOptions}))),n=(e.isResponsiveOptions=!0,s=s.toString()||void 0,r&&r.ruleIds);s!==n&&(r&&this.update(r.undoOptions,t,!0),s?((n=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:e,undoOptions:n},this.update(e,t,!0)):this.currentResponsive=void 0)},n);function n(){}return e}),e(t,\"masters/highcharts.src.js\",[t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"],t[\"Core/Defaults.js\"],t[\"Core/Animation/Fx.js\"],t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Renderer/HTML/AST.js\"],t[\"Core/FormatUtilities.js\"],t[\"Core/Renderer/RendererUtilities.js\"],t[\"Core/Renderer/SVG/SVGElement.js\"],t[\"Core/Renderer/SVG/SVGRenderer.js\"],t[\"Core/Renderer/HTML/HTMLElement.js\"],t[\"Core/Renderer/HTML/HTMLRenderer.js\"],t[\"Core/Axis/Axis.js\"],t[\"Core/Axis/DateTimeAxis.js\"],t[\"Core/Axis/LogarithmicAxis.js\"],t[\"Core/Axis/PlotLineOrBand/PlotLineOrBand.js\"],t[\"Core/Axis/Tick.js\"],t[\"Core/Tooltip.js\"],t[\"Core/Series/Point.js\"],t[\"Core/Pointer.js\"],t[\"Core/MSPointer.js\"],t[\"Core/Legend/Legend.js\"],t[\"Core/Chart/Chart.js\"],t[\"Core/Axis/Stacking/StackingAxis.js\"],t[\"Core/Axis/Stacking/StackItem.js\"],t[\"Core/Series/Series.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Series/Column/ColumnSeries.js\"],t[\"Series/Column/ColumnDataLabel.js\"],t[\"Series/Pie/PieSeries.js\"],t[\"Series/Pie/PieDataLabel.js\"],t[\"Core/Series/DataLabel.js\"],t[\"Core/Responsive.js\"],t[\"Core/Color/Color.js\"],t[\"Core/Time.js\"]],function(t,e,i,o,r,s,n,a,h,l,c,d,p,u,f,g,m,y,v,x,b,S,k,C,M,w,T,A,P,L,O,E,D,j,I){return t.animate=r.animate,t.animObject=r.animObject,t.getDeferredAnimation=r.getDeferredAnimation,t.setAnimation=r.setAnimation,t.stop=r.stop,t.timers=o.timers,t.AST=s,t.Axis=p,t.Chart=k,t.chart=k.chart,t.Fx=o,t.Legend=S,t.PlotLineOrBand=g,t.Point=v,t.Pointer=b.isRequired()?b:x,t.Series=w,t.StackItem=M,t.SVGElement=h,t.SVGRenderer=l,t.Tick=m,t.Time=I,t.Tooltip=y,t.Color=j,t.color=j.parse,d.compose(l),c.compose(h),t.defaultOptions=i.defaultOptions,t.getOptions=i.getOptions,t.time=i.defaultTime,t.setOptions=i.setOptions,t.dateFormat=n.dateFormat,t.format=n.format,t.numberFormat=n.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=a.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=T.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,P.compose(A),E.compose(w),u.compose(p),f.compose(p),O.compose(L),g.compose(p),D.compose(k),C.compose(p,k,w),t}),(t[\"masters/highcharts.src.js\"]._modules=t)[\"masters/highcharts.src.js\"]});","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=\"undefined\"!=typeof globalThis?globalThis:t||self).tempusDominus={})}(this,function(p){\"use strict\";class i extends Error{}const t=\"tempus-dominus\";class m{}m.NAME=t,m.dataKey=\"td\",m.events=new class{constructor(){this.key=\".td\",this.change=\"change\"+this.key,this.update=\"update\"+this.key,this.error=\"error\"+this.key,this.show=\"show\"+this.key,this.hide=\"hide\"+this.key,this.blur=\"blur\"+this.key,this.focus=\"focus\"+this.key,this.keyup=\"keyup\"+this.key,this.keydown=\"keydown\"+this.key}},m.css=new class{constructor(){this.widget=t+\"-widget\",this.calendarHeader=\"calendar-header\",this.switch=\"picker-switch\",this.toolbar=\"toolbar\",this.noHighlight=\"no-highlight\",this.sideBySide=\"timepicker-sbs\",this.previous=\"previous\",this.next=\"next\",this.disabled=\"disabled\",this.old=\"old\",this.new=\"new\",this.active=\"active\",this.dateContainer=\"date-container\",this.decadesContainer=this.dateContainer+\"-decades\",this.decade=\"decade\",this.yearsContainer=this.dateContainer+\"-years\",this.year=\"year\",this.monthsContainer=this.dateContainer+\"-months\",this.month=\"month\",this.daysContainer=this.dateContainer+\"-days\",this.day=\"day\",this.calendarWeeks=\"cw\",this.dayOfTheWeek=\"dow\",this.today=\"today\",this.weekend=\"weekend\",this.rangeIn=\"range-in\",this.rangeStart=\"range-start\",this.rangeEnd=\"range-end\",this.timeContainer=\"time-container\",this.separator=\"separator\",this.clockContainer=this.timeContainer+\"-clock\",this.hourContainer=this.timeContainer+\"-hour\",this.minuteContainer=this.timeContainer+\"-minute\",this.secondContainer=this.timeContainer+\"-second\",this.hour=\"hour\",this.minute=\"minute\",this.second=\"second\",this.toggleMeridiem=\"toggleMeridiem\",this.show=\"show\",this.collapsing=\"td-collapsing\",this.collapse=\"td-collapse\",this.inline=\"inline\",this.lightTheme=\"light\",this.darkTheme=\"dark\",this.isDarkPreferredQuery=\"(prefers-color-scheme: dark)\"}},m.errorMessages=new class{constructor(){this.base=\"TD:\",this.failedToSetInvalidDate=\"Failed to set invalid date\",this.failedToParseInput=\"Failed parse input field\"}unexpectedOption(t){t=new i(this.base+` Unexpected option: ${t} does not match a known option.`);throw t.code=1,t}unexpectedOptions(t){t=new i(this.base+\": \"+t.join(\", \"));throw t.code=1,t}unexpectedOptionValue(t,e,s){t=new i(this.base+` Unexpected option value: ${t} does not accept a value of \"${e}\". Valid values are: `+s.join(\", \"));throw t.code=2,t}typeMismatch(t,e,s){t=new i(this.base+` Mismatch types: ${t} has a type of ${e} instead of the required `+s);throw t.code=3,t}numbersOutOfRange(t,e,s){t=new i(this.base+` ${t} expected an array of number between ${e} and ${s}.`);throw t.code=4,t}failedToParseDate(t,e,s=!1){e=new i(this.base+` Could not correctly parse \"${e}\" to a date for ${t}.`);if(e.code=5,!s)throw e;console.warn(e)}mustProvideElement(){var t=new i(this.base+\" No element was provided.\");throw t.code=6,t}subscribeMismatch(){var t=new i(this.base+\" The subscribed events does not match the number of callbacks\");throw t.code=7,t}conflictingConfiguration(t){t=new i(this.base+\" A configuration value conflicts with another rule. \"+t);throw t.code=8,t}customDateFormatError(t){t=new i(this.base+\" Custom Date Format: \"+t);throw t.code=9,t}dateString(){console.warn(this.base+\" Using a string for date options is not recommended unless you specify an ISO string or use the customDateFormat plugin.\")}deprecatedWarning(t,e){console.warn(this.base+` Warning ${t} is deprecated and will be removed in a future version. `+e)}throwError(t){t=new i(this.base+\" \"+t);throw t.code=9,t}};var n={...{locale:\"default\",hourCycle:void 0,dateFormats:{LTS:\"h:mm:ss T\",LT:\"h:mm T\",L:\"MM/dd/yyyy\",LL:\"MMMM d, yyyy\",LLL:\"MMMM d, yyyy h:mm T\",LLLL:\"dddd, MMMM d, yyyy h:mm T\"},ordinal:t=>{var e=[\"th\",\"st\",\"nd\",\"rd\"],s=t%100;return`[${t}${e[(s-20)%10]||e[s]||e[0]}]`},format:\"L LT\"}};p.Unit=void 0,(O=p.Unit||(p.Unit={})).seconds=\"seconds\",O.minutes=\"minutes\",O.hours=\"hours\",O.date=\"date\",O.month=\"month\",O.year=\"year\";const e={month:\"2-digit\",day:\"2-digit\",year:\"numeric\",hour:\"2-digit\",minute:\"2-digit\",second:\"2-digit\"},a=t=>{switch(t){case\"date\":return{dateStyle:\"short\"};case\"month\":return{month:\"numeric\",year:\"numeric\"};case\"year\":return{year:\"numeric\"}}},o=t=>{if(!t)return\"h12\";var e={hour:\"2-digit\",minute:\"2-digit\",numberingSystem:\"latn\"},s=(new y).setLocalization({locale:t}),i=(s.hours=0,s.parts(void 0,e).hour);if(\"12\"===i)return\"h12\";if(\"24\"===i)return\"h24\";s.hours=23;s=s.parts(void 0,e).hour;return\"00\"===i&&\"11\"===s?\"h11\":\"00\"===i&&\"23\"===s?\"h23\":void console.warn(`couldn't determine hour cycle for ${t}. start: ${i}. end: `+s)};class y extends Date{constructor(){super(...arguments),this.localization=n,this.nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],this.leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335],this.dateTimeRegex=/(\\[[^[\\]]*])|y{1,4}|M{1,4}|d{1,4}|H{1,2}|h{1,2}|t|T|m{1,2}|s{1,2}|f{3}/g,this.formattingTokens=/(\\[[^[\\]]*])|([-_:/.,()\\s]+)|(T|t|yyyy|yy?|MM?M?M?|Do|dd?|hh?|HH?|mm?|ss?)/g,this.match2=/\\d\\d/,this.match3=/\\d{3}/,this.match4=/\\d{4}/,this.match1to2=/\\d\\d?/,this.matchSigned=/[+-]?\\d+/,this.matchOffset=/[+-]\\d\\d:?(\\d\\d)?|Z/,this.matchWord=/[^\\d_:/,\\-()\\s]+/,this.zoneExpressions=[this.matchOffset,(t,e)=>{t.offset=this.offsetFromString(e)}],this.expressions={t:[this.matchWord,(t,e)=>{t.afternoon=this.meridiemMatch(e)}],T:[this.matchWord,(t,e)=>{t.afternoon=this.meridiemMatch(e)}],fff:[this.match3,(t,e)=>{t.milliseconds=+e}],s:[this.match1to2,this.addInput(\"seconds\")],ss:[this.match1to2,this.addInput(\"seconds\")],m:[this.match1to2,this.addInput(\"minutes\")],mm:[this.match1to2,this.addInput(\"minutes\")],H:[this.match1to2,this.addInput(\"hours\")],h:[this.match1to2,this.addInput(\"hours\")],HH:[this.match1to2,this.addInput(\"hours\")],hh:[this.match1to2,this.addInput(\"hours\")],d:[this.match1to2,this.addInput(\"day\")],dd:[this.match2,this.addInput(\"day\")],Do:[this.matchWord,(e,s)=>{if([e.day]=s.match(/\\d+/),this.localization.ordinal)for(let t=1;t<=31;t+=1)this.localization.ordinal(t).replace(/[[\\]]/g,\"\")===s&&(e.day=t)}],M:[this.match1to2,this.addInput(\"month\")],MM:[this.match2,this.addInput(\"month\")],MMM:[this.matchWord,(t,e)=>{var s=this.getAllMonths(),s=(this.getAllMonths(\"short\")||s.map(t=>t.slice(0,3))).indexOf(e)+1;if(s<1)throw new Error;t.month=s%12||s}],MMMM:[this.matchWord,(t,e)=>{e=this.getAllMonths().indexOf(e)+1;if(e<1)throw new Error;t.month=e%12||e}],y:[this.matchSigned,this.addInput(\"year\")],yy:[this.match2,(t,e)=>{t.year=this.parseTwoDigitYear(e)}],yyyy:[this.match4,this.addInput(\"year\")]}}setLocale(t){return this.localization||(this.localization=n,this.localization.locale=t),this}setLocalization(t){return this.localization=t,this}static convert(t,e=\"default\",s=void 0){if(t)return s||((s=n).locale=e),new y(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()).setLocalization(s);throw new Error(\"A date is required\")}get clone(){return new y(this.year,this.month,this.date,this.hours,this.minutes,this.seconds,this.getMilliseconds()).setLocalization(this.localization)}static isValid(t){return void 0!==t&&\"null\"!==JSON.stringify(t)&&(t.constructor.name===y.name||void 0)}startOf(t,e=0){if(void 0===this[t])throw new Error(`Unit '${t}' is not valid`);switch(t){case\"seconds\":this.setMilliseconds(0);break;case\"minutes\":this.setSeconds(0,0);break;case\"hours\":this.setMinutes(0,0,0);break;case\"date\":this.setHours(0,0,0,0);break;case\"weekDay\":{if(this.startOf(p.Unit.date),this.weekDay===e)break;let t=this.weekDay;0!==e&&0===this.weekDay&&(t=8-e),this.manipulate(e-t,p.Unit.date);break}case\"month\":this.startOf(p.Unit.date),this.setDate(1);break;case\"year\":this.startOf(p.Unit.date),this.setMonth(0,1)}return this}endOf(t,e=0){if(void 0===this[t])throw new Error(`Unit '${t}' is not valid`);switch(t){case\"seconds\":this.setMilliseconds(999);break;case\"minutes\":this.setSeconds(59,999);break;case\"hours\":this.setMinutes(59,59,999);break;case\"date\":this.setHours(23,59,59,999);break;case\"weekDay\":this.endOf(p.Unit.date);var s=6+e;this.weekDay!==s&&this.manipulate(s-this.weekDay,p.Unit.date);break;case\"month\":this.endOf(p.Unit.date),this.manipulate(1,p.Unit.month),this.setDate(0);break;case\"year\":this.endOf(p.Unit.date),this.setMonth(11,31)}return this}manipulate(t,e){if(void 0===this[e])throw new Error(`Unit '${e}' is not valid`);return this[e]+=t,this}isBefore(t,e){if(!y.isValid(t))return!1;if(!e)return this.valueOf()t.valueOf();if(void 0===this[e])throw new Error(`Unit '${e}' is not valid`);return this.clone.startOf(e).valueOf()>t.clone.startOf(e).valueOf()}isSame(t,e){if(!y.isValid(t))return!1;if(!e)return this.valueOf()===t.valueOf();if(void 0===this[e])throw new Error(`Unit '${e}' is not valid`);return t=y.convert(t),this.clone.startOf(e).valueOf()===t.startOf(e).valueOf()}isBetween(t,e,s,i=\"()\"){if(!y.isValid(t)||!y.isValid(e))return!1;if(s&&void 0===this[s])throw new Error(`Unit '${s}' is not valid`);if(s&&void 0===this[s])throw new Error(`Unit '${s}' is not valid`);var a=\"(\"===i[0],i=\")\"===i[1],a=a?this.isAfter(t,s):!this.isBefore(t,s),t=i?this.isBefore(e,s):!this.isAfter(e,s);return a&&t}parts(t=this.localization.locale,e={dateStyle:\"full\",timeStyle:\"long\"}){const s={};return new Intl.DateTimeFormat(t,e).formatToParts(this).filter(t=>\"literal\"!==t.type).forEach(t=>s[t.type]=t.value),s}get seconds(){return this.getSeconds()}set seconds(t){this.setSeconds(t)}get secondsFormatted(){return this.parts(void 0,e).second}get minutes(){return this.getMinutes()}set minutes(t){this.setMinutes(t)}get minutesFormatted(){return this.parts(void 0,e).minute}get hours(){return this.getHours()}set hours(t){this.setHours(t)}getHoursFormatted(t=\"h12\"){return this.parts(void 0,{...e,hourCycle:t}).hour}meridiem(t=this.localization.locale){return new Intl.DateTimeFormat(t,{hour:\"numeric\",hour12:!0}).formatToParts(this).find(t=>\"dayPeriod\"===t.type)?.value}get date(){return this.getDate()}set date(t){this.setDate(t)}get dateFormatted(){return this.parts(void 0,e).day}get weekDay(){return this.getDay()}get month(){return this.getMonth()}set month(t){var e=new Date(this.year,t+1),e=(e.setDate(0),e.getDate());this.date>e&&(this.date=e),this.setMonth(t)}get monthFormatted(){return this.parts(void 0,e).month}get year(){return this.getFullYear()}set year(t){this.setFullYear(t)}get week(){var t=this.computeOrdinal(),e=this.getUTCDay();let s=Math.floor((t-e+10)/7);return s<1?s=this.weeksInWeekYear():s>this.weeksInWeekYear()&&(s=1),s}weeksInWeekYear(){var t=(this.year+Math.floor(this.year/4)-Math.floor(this.year/100)+Math.floor(this.year/400))%7,e=this.year-1,e=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7;return 4==t||3==e?53:52}get isLeapYear(){return this.year%4==0&&(this.year%100!=0||this.year%400==0)}computeOrdinal(){return this.date+(this.isLeapYear?this.leapLadder:this.nonLeapLadder)[this.month]}getAllMonths(t=\"long\"){const e=new Intl.DateTimeFormat(this.localization.locale,{month:t}).format;return[...Array(12).keys()].map(t=>e(new Date(2021,t)))}replaceTokens(t,i){return t.replace(/(\\[[^[\\]]*])|(LTS?|l{1,4}|L{1,4})/g,(t,e,s)=>{s=s&&s.toUpperCase();return e||i[s]||n.dateFormats[s]})}parseTwoDigitYear(t){return(t=+t)+(68{t[s]=+e}}meridiemMatch(t){var e=new Intl.DateTimeFormat(this.localization.locale,{hour:\"numeric\",hour12:!0}).formatToParts(new Date(2022,3,4,13)).find(t=>\"dayPeriod\"===t.type)?.value;return t.toLowerCase()===e.toLowerCase()}correctHours(t){var e,s=t[\"afternoon\"];void 0!==s&&(e=t[\"hours\"],s?e<12&&(t.hours+=12):12===e&&(t.hours=0),delete t.afternoon)}makeParser(t){const r=(t=this.replaceTokens(t,this.localization.dateFormats)).match(this.formattingTokens),d=r[\"length\"];for(let t=0;t{var i={hours:0,minutes:0,seconds:0,milliseconds:0};for(let t=0,e=0;tnew Intl.DateTimeFormat(this.localization.locale,t).format(this),s=(this.localization.hourCycle||(this.localization.hourCycle=o(this.localization.locale)),this.localization.hourCycle.startsWith(\"h1\")?\"h24\":this.localization.hourCycle),i=this.localization.hourCycle.startsWith(\"h2\")?\"h12\":this.localization.hourCycle;const a={yy:t({year:\"2-digit\"}),yyyy:this.year,M:t({month:\"numeric\"}),MM:this.monthFormatted,MMM:this.getAllMonths(\"short\")[this.getMonth()],MMMM:this.getAllMonths()[this.getMonth()],d:this.date,dd:this.dateFormatted,ddd:t({weekday:\"short\"}),dddd:t({weekday:\"long\"}),H:this.getHours(),HH:this.getHoursFormatted(s),h:12e||a[t]).replace(/\\[/g,\"\").replace(/]/g,\"\")}}class x{constructor(){this.cache=new Map}locate(t){var e=this.cache.get(t);return e||(e=new t,this.cache.set(t,e),e)}}let s;const r=[{name:\"calendar\",className:m.css.daysContainer,unit:p.Unit.month,step:1},{name:\"months\",className:m.css.monthsContainer,unit:p.Unit.year,step:1},{name:\"years\",className:m.css.yearsContainer,unit:p.Unit.year,step:10},{name:\"decades\",className:m.css.decadesContainer,unit:p.Unit.year,step:100}];class d{constructor(){this._currentCalendarViewMode=0,this._viewDate=new y,this.minimumCalendarViewMode=0,this.currentView=\"calendar\"}get currentCalendarViewMode(){return this._currentCalendarViewMode}set currentCalendarViewMode(t){this._currentCalendarViewMode=t,this.currentView=r[t].name}get viewDate(){return this._viewDate}set viewDate(t){this._viewDate=t,this.options&&(this.options.viewDate=t)}refreshCurrentView(){this.currentView=r[this.currentCalendarViewMode].name}get isTwelveHour(){return[\"h12\",\"h11\"].includes(this.options.localization.hourCycle)}}class l{constructor(){this.optionsStore=s.locate(d)}isValid(e,t){if(!this._enabledDisabledDatesIsValid(t,e))return!1;if(t!==p.Unit.month&&t!==p.Unit.year&&0e.isBetween(t.from,t.to)).length)return!1}return!0}_enabledDisabledDatesIsValid(t,e){return t===p.Unit.month||!(0t.isSame(e,p.Unit.date))}_isInEnabledDates(e){return!this.optionsStore.options.restrictions.enabledDates||0===this.optionsStore.options.restrictions.enabledDates.length||this.optionsStore.options.restrictions.enabledDates.find(t=>t.isSame(e,p.Unit.date))}_isInDisabledHours(t){if(!this.optionsStore.options.restrictions.disabledHours||0===this.optionsStore.options.restrictions.disabledHours.length)return!1;const e=t.hours;return this.optionsStore.options.restrictions.disabledHours.find(t=>t===e)}_isInEnabledHours(t){if(!this.optionsStore.options.restrictions.enabledHours||0===this.optionsStore.options.restrictions.enabledHours.length)return!0;const e=t.hours;return this.optionsStore.options.restrictions.enabledHours.find(t=>t===e)}_minMaxIsValid(t,e){return!(this.optionsStore.options.restrictions.minDate&&e.isBefore(this.optionsStore.options.restrictions.minDate,t)||this.optionsStore.options.restrictions.maxDate&&e.isAfter(this.optionsStore.options.restrictions.maxDate,t))}_enabledDisabledHoursIsValid(t){return!(0{t(e)})}destroy(){this.subscribers=null,this.subscribers=[]}}class h{constructor(){this.triggerEvent=new c,this.viewUpdate=new c,this.updateDisplay=new c,this.action=new c,this.updateViewDate=new c}destroy(){this.triggerEvent.destroy(),this.viewUpdate.destroy(),this.updateDisplay.destroy(),this.action.destroy(),this.updateViewDate.destroy()}}const u={allowInputToggle:!1,container:void 0,dateRange:!1,debug:!1,defaultDate:void 0,display:{icons:{type:\"icons\",time:\"fa-solid fa-clock\",date:\"fa-solid fa-calendar\",up:\"fa-solid fa-arrow-up\",down:\"fa-solid fa-arrow-down\",previous:\"fa-solid fa-chevron-left\",next:\"fa-solid fa-chevron-right\",today:\"fa-solid fa-calendar-check\",clear:\"fa-solid fa-trash\",close:\"fa-solid fa-xmark\"},sideBySide:!1,calendarWeeks:!1,viewMode:\"calendar\",toolbarPlacement:\"bottom\",keepOpen:!1,buttons:{today:!1,clear:!1,close:!1},components:{calendar:!0,date:!0,month:!0,year:!0,decades:!0,clock:!0,hours:!0,minutes:!0,seconds:!1,useTwentyfourHour:void 0},inline:!1,theme:\"auto\"},keepInvalid:!1,localization:{clear:\"Clear selection\",close:\"Close the picker\",dateFormats:n.dateFormats,dayViewHeaderFormat:{month:\"long\",year:\"2-digit\"},decrementHour:\"Decrement Hour\",decrementMinute:\"Decrement Minute\",decrementSecond:\"Decrement Second\",format:n.format,hourCycle:n.hourCycle,incrementHour:\"Increment Hour\",incrementMinute:\"Increment Minute\",incrementSecond:\"Increment Second\",locale:n.locale,nextCentury:\"Next Century\",nextDecade:\"Next Decade\",nextMonth:\"Next Month\",nextYear:\"Next Year\",ordinal:n.ordinal,pickHour:\"Pick Hour\",pickMinute:\"Pick Minute\",pickSecond:\"Pick Second\",previousCentury:\"Previous Century\",previousDecade:\"Previous Decade\",previousMonth:\"Previous Month\",previousYear:\"Previous Year\",selectDate:\"Select Date\",selectDecade:\"Select Decade\",selectMonth:\"Select Month\",selectTime:\"Select Time\",selectYear:\"Select Year\",startOfTheWeek:0,today:\"Go to today\",toggleMeridiem:\"Toggle Meridiem\"},meta:{},multipleDates:!1,multipleDatesSeparator:\"; \",promptTimeOnDateChange:!1,promptTimeOnDateChangeTransitionDelay:200,restrictions:{minDate:void 0,maxDate:void 0,disabledDates:[],enabledDates:[],daysOfWeekDisabled:[],disabledTimeIntervals:[],disabledHours:[],enabledHours:[]},stepping:1,useCurrent:!0,viewDate:new y};function g(t,e){return t.constructor.name===y.name?t:t.constructor.name===Date.name?y.convert(t):\"string\"!=typeof t||(t=y.fromString(t,e),\"null\"===JSON.stringify(t))?null:t}function v(t,e,s){\"string\"==typeof t&&\"input\"!==e&&m.errorMessages.dateString();s=g(t,s);return s||m.errorMessages.failedToParseDate(e,t,\"input\"===e),s}function S(e,s,t,i){Array.isArray(s)||m.errorMessages.typeMismatch(e,t,\"array of DateTime or Date\");for(let t=0;t\"number\"!=typeof t)||m.errorMessages.typeMismatch(t,s,\"array of numbers\")}function f(i){return({value:t,providedType:e,localization:s})=>{t=v(t,i,s);if(void 0!==t)return t.setLocalization(s),t;m.errorMessages.typeMismatch(i,e,\"DateTime or Date\")}}function b(t){const e=f(t);return t=>void 0===t.value?t.value:e(t)}function D(s,i,a){return({value:t,providedType:e})=>void 0===t?[]:(w(s,t,e),t.some(t=>tvoid 0===t?[]:(S(i,t,e,s),t)}function C(s){return({value:t,path:e})=>(s.includes(t)||m.errorMessages.unexpectedOptionValue(e.substring(1),t,s),t)}const I=Object.freeze({defaultDate:f(\"defaultDate\"),viewDate:f(\"viewDate\"),minDate:b(\"restrictions.minDate\"),maxDate:b(\"restrictions.maxDate\"),disabledHours:_(\"restrictions.disabledHours\"),enabledHours:_(\"restrictions.enabledHours\"),disabledDates:k(\"restrictions.disabledDates\"),enabledDates:k(\"restrictions.enabledDates\"),daysOfWeekDisabled:D(\"restrictions.daysOfWeekDisabled\",0,6),disabledTimeIntervals:({key:o,value:t,providedType:e,localization:n})=>{if(void 0===t)return[];Array.isArray(t)||m.errorMessages.typeMismatch(o,e,\"array of { from: DateTime|Date, to: DateTime|Date }\");const r=t;for(let a=0;a{var e=`${o}[${a}].`+t,s=r[a][t],i=v(s,e,n);i||m.errorMessages.typeMismatch(e,typeof s,\"DateTime or Date\"),i.setLocalization(n),r[a][t]=i});return r},toolbarPlacement:C([\"top\",\"bottom\",\"default\"]),type:C([\"icons\",\"sprites\"]),viewMode:C([\"clock\",\"calendar\",\"months\",\"years\",\"decades\"]),theme:C([\"light\",\"dark\",\"auto\"]),meta:({value:t})=>t,dayViewHeaderFormat:({value:t})=>t,container:({value:t,path:e})=>(t&&!(t instanceof HTMLElement||t instanceof Element||t?.appendChild)&&m.errorMessages.typeMismatch(e.substring(1),typeof t,\"HTMLElement\"),t),useTwentyfourHour:({value:t,path:e,providedType:s,defaultType:i})=>{if(m.errorMessages.deprecatedWarning(\"useTwentyfourHour\",'Please use \"options.localization.hourCycle\" instead'),void 0===t||\"boolean\"===s)return t;m.errorMessages.typeMismatch(e,s,i)},hourCycle:C([\"h11\",\"h12\",\"h23\",\"h24\"])});function P(t){return(I[t.key]||(({value:t,defaultType:e,providedType:s,path:i})=>{switch(e){case\"boolean\":return\"true\"===t||!0===t;case\"number\":return+t;case\"string\":return t.toString();case\"object\":return{};case\"function\":return t;default:m.errorMessages.typeMismatch(i,s,e)}}))(t)}class M{static deepCopy(s){const i={};return Object.keys(s).forEach(t=>{var e=s[t];e instanceof y?i[t]=e.clone:e instanceof Date?i[t]=new Date(e.valueOf()):\"object\"!=typeof(i[t]=e)||e instanceof HTMLElement||e instanceof Element||Array.isArray(e)||(i[t]=M.deepCopy(e))}),i}static objectPath(t,e){return(t=\".\"===t.charAt(0)?t.slice(1):t)?t.split(\".\").reduce((t,e)=>M.isValue(t)||M.isValue(t[e])?t[e]:void 0,e):e}static spread(o,n,r,d=\"\"){const l=M.objectPath(d,u);var t=Object.keys(o).filter(t=>!Object.keys(l).includes(t));if(0{let t=`\"${d}.${e}\" in not a known option.`;var s=i.find(t=>t.includes(e));return s&&(t+=` Did you mean \"${s}\"?`),t});m.errorMessages.unexpectedOptions(t)}Object.keys(o).filter(t=>\"__proto__\"!==t&&\"constructor\"!==t).forEach(t=>{\".\"===(d+=\".\"+t).charAt(0)&&(d=d.slice(1));var e=l[t],s=typeof o[t],i=typeof e,a=o[t];d=(null==a?n[t]=a:\"object\"!=typeof e||Array.isArray(o[t])||e instanceof Date||M.ignoreProperties.includes(t)?n[t]=M.processKey(t,a,s,i,d,r):M.spread(o[t],n[t],r,d),d.substring(0,d.lastIndexOf(\".\"+t)))})}static processKey(t,e,s,i,a,o){return P({key:t,value:e,providedType:s,defaultType:i,path:a,localization:o})}static _mergeOptions(t,e){var s=M.deepCopy(e),e=\"default\"!==e.localization?.locale?e.localization:t?.localization||u.localization;return M.spread(t,s,e,\"\"),s}static _dataToOptions(t,i){const a=JSON.parse(JSON.stringify(t.dataset));if(a?.tdTargetInput&&delete a.tdTargetInput,a?.tdTargetToggle&&delete a.tdTargetToggle,!a||0===Object.keys(a).length||a.constructor!==DOMStringMap)return i;const o={};t=t=>{const e={};return Object.keys(t).forEach(t=>{e[t.toLowerCase()]=t}),e};const n=this.normalizeObject(t),r=t(i);return Object.keys(a).filter(t=>t.startsWith(m.dataKey)).map(t=>t.substring(2)).forEach(t=>{let e=r[t.toLowerCase()];var s;t.includes(\"_\")?(s=t.split(\"_\"),void 0!==(e=r[s[0].toLowerCase()])&&i[e].constructor===Object&&(o[e]=n(s,1,i[e],a[\"td\"+t]))):void 0!==e&&(o[e]=a[\"td\"+t])}),this._mergeOptions(o,i)}static normalizeObject(n){const r=(t,e,s,i)=>{var a=n(s)[t[e].toLowerCase()],o={};return void 0!==a&&(s[a].constructor===Object?(e++,o[a]=r(t,e,s[a],i)):o[a]=i),o};return r}static _dateTypeCheck(t,e){return g(t,e)}static _typeCheckDateArray(t,e,s,i){return S(t,e,s,i)}static _typeCheckNumberArray(t,e,s){return w(t,e,s)}static dateConversion(t,e,s){return v(t,e,s)}static getFlattenDefaultOptions(){if(!this._flattenDefaults){const i=(t,s=[])=>Array.isArray(t)?[]:Object(t)===t?Object.entries(t).flatMap(([t,e])=>i(e,[...s,t])):s.join(\".\");this._flattenDefaults=i(u)}return this._flattenDefaults}static _validateConflicts(t){!t.display.sideBySide||t.display.components.clock&&(t.display.components.hours||t.display.components.minutes||t.display.components.seconds)||m.errorMessages.conflictingConfiguration(\"Cannot use side by side mode without the clock components\"),t.restrictions.minDate&&t.restrictions.maxDate&&(t.restrictions.minDate.isAfter(t.restrictions.maxDate)&&m.errorMessages.conflictingConfiguration(\"minDate is after maxDate\"),t.restrictions.maxDate.isBefore(t.restrictions.minDate))&&m.errorMessages.conflictingConfiguration(\"maxDate is before minDate\"),t.multipleDates&&t.dateRange&&m.errorMessages.conflictingConfiguration('Cannot uss option \"multipleDates\" with \"dateRange\"')}}M.ignoreProperties=[\"meta\",\"dayViewHeaderFormat\",\"container\",\"dateForms\",\"ordinal\"],M.isValue=t=>null!=t;class E{constructor(){this._dates=[],this.optionsStore=s.locate(d),this.validation=s.locate(l),this._eventEmitters=s.locate(h)}get picked(){return this._dates}get lastPicked(){return this._dates[this.lastPickedIndex]}get lastPickedIndex(){return 0===this._dates.length?0:this._dates.length-1}formatInput(t){return t?(t.localization=this.optionsStore.options.localization,t.format()):\"\"}parseInput(t){return M.dateConversion(t,\"input\",this.optionsStore.options.localization)}setFromInput(t,e){t?(t=this.parseInput(t))&&(t.setLocalization(this.optionsStore.options.localization),this.setValue(t,e)):this.setValue(void 0,e)}add(t){this._dates.push(t)}isPicked(e,t){if(!t)return void 0!==this._dates.find(t=>t===e);const s=a(t),i=e.format(s);return void 0!==this._dates.map(t=>t.format(s)).find(t=>t===i)}pickedIndex(t,e){if(!e)return this._dates.indexOf(t);const s=a(e);e=t.format(s);return this._dates.map(t=>t.format(s)).indexOf(e)}clear(){this.optionsStore.unset=!0,this._eventEmitters.triggerEvent.emit({type:m.events.change,date:void 0,oldDate:this.lastPicked,isClear:!0,isValid:!0}),this._dates=[],this.optionsStore.input&&(this.optionsStore.input.value=\"\"),this._eventEmitters.updateDisplay.emit(\"all\")}static getStartEndYear(t,e){var s=t/10,t=Math.floor(e/t)*t;return[t,t+9*s,Math.floor(e/s)*s]}updateInput(e){if(this.optionsStore.input){let t=this.formatInput(e);(this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange)&&(t=this._dates.map(t=>this.formatInput(t)).join(this.optionsStore.options.multipleDatesSeparator)),this.optionsStore.input.value!=t&&(this.optionsStore.input.value=t)}}setValue(t,e){var s=void 0===e,i=!t&&s;let a=this.optionsStore.unset?null:this._dates[e];!a&&!this.optionsStore.unset&&s&&i&&(a=this.lastPicked),t&&a?.isSame(t)?this.updateInput(t):t?(e=e||0,t=t.clone,1!==this.optionsStore.options.stepping&&(t.minutes=Math.round(t.minutes/this.optionsStore.options.stepping)*this.optionsStore.options.stepping,t.seconds=0),this.validation.isValid(t)&&this.validation.dateRangeIsValid(this._dates,e,t)?(this._dates[e]=t,this._eventEmitters.updateViewDate.emit(t.clone),this.updateInput(t),this.optionsStore.unset=!1,this._eventEmitters.updateDisplay.emit(\"all\"),this._eventEmitters.triggerEvent.emit({type:m.events.change,date:t,oldDate:a,isClear:i,isValid:!0})):(this.optionsStore.options.keepInvalid&&(this._dates[e]=t,this._eventEmitters.updateViewDate.emit(t.clone),this.updateInput(t),this._eventEmitters.triggerEvent.emit({type:m.events.change,date:t,oldDate:a,isClear:i,isValid:!1})),this._eventEmitters.triggerEvent.emit({type:m.events.error,reason:m.errorMessages.failedToSetInvalidDate,date:t,oldDate:a}))):this._setValueNull(i,e,a)}_setValueNull(t,e,s){!this.optionsStore.options.multipleDates||1===this._dates.length||t?(this.optionsStore.unset=!0,this._dates=[]):this._dates.splice(e,1),this.updateInput(),this._eventEmitters.triggerEvent.emit({type:m.events.change,date:void 0,oldDate:s,isClear:t,isValid:!0}),this._eventEmitters.updateDisplay.emit(\"all\")}}(O=z=z||{}).next=\"next\",O.previous=\"previous\",O.changeCalendarView=\"changeCalendarView\",O.selectMonth=\"selectMonth\",O.selectYear=\"selectYear\",O.selectDecade=\"selectDecade\",O.selectDay=\"selectDay\",O.selectHour=\"selectHour\",O.selectMinute=\"selectMinute\",O.selectSecond=\"selectSecond\",O.incrementHours=\"incrementHours\",O.incrementMinutes=\"incrementMinutes\",O.incrementSeconds=\"incrementSeconds\",O.decrementHours=\"decrementHours\",O.decrementMinutes=\"decrementMinutes\",O.decrementSeconds=\"decrementSeconds\",O.toggleMeridiem=\"toggleMeridiem\",O.togglePicker=\"togglePicker\",O.showClock=\"showClock\",O.showHours=\"showHours\",O.showMinutes=\"showMinutes\",O.showSeconds=\"showSeconds\",O.clear=\"clear\",O.close=\"close\",O.today=\"today\";var T=z;class N{constructor(){this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l)}getPicker(){var t,e=document.createElement(\"div\"),{rangeHoverEvent:s,rangeHoverOutEvent:i}=(e.classList.add(m.css.daysContainer),e.append(...this._daysOfTheWeek()),this.optionsStore.options.display.calendarWeeks&&((t=document.createElement(\"div\")).classList.add(m.css.calendarWeeks,m.css.noHighlight),e.appendChild(t)),this.handleMouseEvents(e));for(let t=0;t<42;t++){0!==t&&t%7==0&&this.optionsStore.options.display.calendarWeeks&&((a=document.createElement(\"div\")).classList.add(m.css.calendarWeeks,m.css.noHighlight),e.appendChild(a));var a=document.createElement(\"div\");a.setAttribute(\"data-action\",T.selectDay),e.appendChild(a),matchMedia(\"(hover: hover)\").matches&&this.optionsStore.options.dateRange&&(a.addEventListener(\"mouseover\",s),a.addEventListener(\"mouseout\",i))}return e}_update(t,s){t=t.getElementsByClassName(m.css.daysContainer)[0];this._updateCalendarView(t);const i=this.optionsStore.viewDate.clone.startOf(p.Unit.month).startOf(\"weekDay\",this.optionsStore.options.localization.startOfTheWeek).manipulate(12,p.Unit.hours);[...t.querySelectorAll(\".\"+m.css.calendarWeeks)].filter(t=>\"#\"!==t.innerText).forEach(t=>{t.innerText=\"\"+i.week}),t.querySelectorAll(`[data-action=\"${T.selectDay}\"]`).forEach(t=>{var e=[];e.push(m.css.day),i.isBefore(this.optionsStore.viewDate,p.Unit.month)&&e.push(m.css.old),i.isAfter(this.optionsStore.viewDate,p.Unit.month)&&e.push(m.css.new),this.optionsStore.unset||this.optionsStore.options.multipleDates||!this.dates.isPicked(i,p.Unit.date)||e.push(m.css.active),this.validation.isValid(i,p.Unit.date)||e.push(m.css.disabled),i.isSame(new y,p.Unit.date)&&e.push(m.css.today),0!==i.weekDay&&6!==i.weekDay||e.push(m.css.weekend),this._handleDateRange(i,e),s(p.Unit.date,i,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",this._dateToDataValue(i)),t.setAttribute(\"data-day\",\"\"+i.date),t.innerText=i.parts(void 0,{day:\"numeric\"}).day,i.manipulate(1,p.Unit.date)})}_dateToDataValue(t){return y.isValid(t)?`${t.year}-${t.monthFormatted}-`+t.dateFormatted:\"\"}_handleDateRange(t,e){var s=this.dates.picked[0],i=this.dates.picked[1];this.optionsStore.options.dateRange&&(t.isBetween(s,i,p.Unit.date)&&e.push(m.css.rangeIn),t.isSame(s,p.Unit.date)&&e.push(m.css.rangeStart),t.isSame(i,p.Unit.date))&&e.push(m.css.rangeEnd)}handleMouseEvents(h){return{rangeHoverEvent:e=>{e=e?.currentTarget;if(1===this.dates.picked.length&&!e.classList.contains(m.css.disabled)){var s=[...h.querySelectorAll(\".day\")];const r=e.getAttribute(\"data-value\");var i=y.fromString(r,{format:\"yyyy-MM-dd\"});const d=s.findIndex(t=>t.getAttribute(\"data-value\")===r);var a=this.dates.picked[0],o=this.dates.picked[1];const l=this._dateToDataValue(a),c=s.findIndex(t=>t.getAttribute(\"data-value\")===l);var n=s[c];i.isSame(a,p.Unit.date)||e.classList.remove(m.css.rangeStart),i.isSame(o,p.Unit.date)||e.classList.remove(m.css.rangeEnd);let t;t=i.isBefore(a)?(e.classList.add(m.css.rangeStart),n?.classList.remove(m.css.rangeStart),n?.classList.add(m.css.rangeEnd),(t,e)=>e>d&&eec),s.filter(t).forEach(t=>{t.classList.add(m.css.rangeIn)})}},rangeHoverOutEvent:t=>{var e=[...h.querySelectorAll(\".day\")];1===this.dates.picked.length&&e.forEach(t=>t.classList.remove(m.css.rangeIn)),1!==this.dates.picked.length||(e=t?.currentTarget,(t=new y(e.getAttribute(\"data-value\"))).isSame(this.dates.picked[0],p.Unit.date)||e.classList.remove(m.css.rangeStart),t.isSame(this.dates.picked[1],p.Unit.date))||e.classList.remove(m.css.rangeEnd)}}}_updateCalendarView(t){var e,s;\"calendar\"===this.optionsStore.currentView&&([t,e,s]=t.parentElement.getElementsByClassName(m.css.calendarHeader)[0].getElementsByTagName(\"div\"),e.setAttribute(m.css.daysContainer,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat)),this.optionsStore.options.display.components.month?e.classList.remove(m.css.disabled):e.classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.month),p.Unit.month)?t.classList.remove(m.css.disabled):t.classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,p.Unit.month),p.Unit.month)?s.classList.remove(m.css.disabled):s.classList.add(m.css.disabled))}_daysOfTheWeek(){var t,e=this.optionsStore.viewDate.clone.startOf(\"weekDay\",this.optionsStore.options.localization.startOfTheWeek).startOf(p.Unit.date),s=[];document.createElement(\"div\"),this.optionsStore.options.display.calendarWeeks&&((t=document.createElement(\"div\")).classList.add(m.css.calendarWeeks,m.css.noHighlight),t.innerText=\"#\",s.push(t));for(let t=0;t<7;t++){var i=document.createElement(\"div\");i.classList.add(m.css.dayOfTheWeek,m.css.noHighlight),i.innerText=e.format({weekday:\"short\"}),e.manipulate(1,p.Unit.date),s.push(i)}return s}}class F{constructor(){this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\");e.classList.add(m.css.monthsContainer);for(let t=0;t<12;t++){var s=document.createElement(\"div\");s.setAttribute(\"data-action\",T.selectMonth),e.appendChild(s)}return e}_update(t,i){var e,s,a,t=t.getElementsByClassName(m.css.monthsContainer)[0];\"months\"===this.optionsStore.currentView&&([e,s,a]=t.parentElement.getElementsByClassName(m.css.calendarHeader)[0].getElementsByTagName(\"div\"),s.setAttribute(m.css.monthsContainer,this.optionsStore.viewDate.format({year:\"numeric\"})),this.optionsStore.options.display.components.year?s.classList.remove(m.css.disabled):s.classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.year),p.Unit.year)?e.classList.remove(m.css.disabled):e.classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,p.Unit.year),p.Unit.year)?a.classList.remove(m.css.disabled):a.classList.add(m.css.disabled));const o=this.optionsStore.viewDate.clone.startOf(p.Unit.year);t.querySelectorAll(`[data-action=\"${T.selectMonth}\"]`).forEach((t,e)=>{var s=[];s.push(m.css.month),!this.optionsStore.unset&&this.dates.isPicked(o,p.Unit.month)&&s.push(m.css.active),this.validation.isValid(o,p.Unit.month)||s.push(m.css.disabled),i(p.Unit.month,o,s,t),t.classList.remove(...t.classList),t.classList.add(...s),t.setAttribute(\"data-value\",\"\"+e),t.innerText=\"\"+o.format({month:\"short\"}),o.manipulate(1,p.Unit.month)})}}class ${constructor(){this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\");e.classList.add(m.css.yearsContainer);for(let t=0;t<12;t++){var s=document.createElement(\"div\");s.setAttribute(\"data-action\",T.selectYear),e.appendChild(s)}return e}_update(t,s){this._startYear=this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.year),this._endYear=this.optionsStore.viewDate.clone.manipulate(10,p.Unit.year);var e,i,a,t=t.getElementsByClassName(m.css.yearsContainer)[0];\"years\"===this.optionsStore.currentView&&([e,i,a]=t.parentElement.getElementsByClassName(m.css.calendarHeader)[0].getElementsByTagName(\"div\"),i.setAttribute(m.css.yearsContainer,this._startYear.format({year:\"numeric\"})+\"-\"+this._endYear.format({year:\"numeric\"})),this.optionsStore.options.display.components.decades?i.classList.remove(m.css.disabled):i.classList.add(m.css.disabled),this.validation.isValid(this._startYear,p.Unit.year)?e.classList.remove(m.css.disabled):e.classList.add(m.css.disabled),this.validation.isValid(this._endYear,p.Unit.year)?a.classList.remove(m.css.disabled):a.classList.add(m.css.disabled));const o=this.optionsStore.viewDate.clone.startOf(p.Unit.year).manipulate(-1,p.Unit.year);t.querySelectorAll(`[data-action=\"${T.selectYear}\"]`).forEach(t=>{var e=[];e.push(m.css.year),!this.optionsStore.unset&&this.dates.isPicked(o,p.Unit.year)&&e.push(m.css.active),this.validation.isValid(o,p.Unit.year)||e.push(m.css.disabled),s(p.Unit.year,o,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",\"\"+o.year),t.innerText=o.format({year:\"numeric\"}),o.manipulate(1,p.Unit.year)})}}class B{constructor(){this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\");e.classList.add(m.css.decadesContainer);for(let t=0;t<12;t++){var s=document.createElement(\"div\");s.setAttribute(\"data-action\",T.selectDecade),e.appendChild(s)}return e}_update(t,a){var[e,s]=E.getStartEndYear(100,this.optionsStore.viewDate.year),e=(this._startDecade=this.optionsStore.viewDate.clone.startOf(p.Unit.year),this._startDecade.year=e,this._endDecade=this.optionsStore.viewDate.clone.startOf(p.Unit.year),this._endDecade.year=s,t.getElementsByClassName(m.css.decadesContainer)[0]);const[o,i,n]=e.parentElement.getElementsByClassName(m.css.calendarHeader)[0].getElementsByTagName(\"div\"),r=(\"decades\"===this.optionsStore.currentView&&(i.setAttribute(m.css.decadesContainer,this._startDecade.format({year:\"numeric\"})+\"-\"+this._endDecade.format({year:\"numeric\"})),this.validation.isValid(this._startDecade,p.Unit.year)?o.classList.remove(m.css.disabled):o.classList.add(m.css.disabled),this.validation.isValid(this._endDecade,p.Unit.year)?n.classList.remove(m.css.disabled):n.classList.add(m.css.disabled)),this.dates.picked.map(t=>t.year));e.querySelectorAll(`[data-action=\"${T.selectDecade}\"]`).forEach((t,e)=>{if(0===e)return t.classList.add(m.css.old),this._startDecade.year-10<0?(t.textContent=\" \",o.classList.add(m.css.disabled),t.classList.add(m.css.disabled),void t.setAttribute(\"data-value\",\"\")):(t.innerText=this._startDecade.clone.manipulate(-10,p.Unit.year).format({year:\"numeric\"}),void t.setAttribute(\"data-value\",\"\"+this._startDecade.year));e=[];e.push(m.css.decade);const s=this._startDecade.year,i=this._startDecade.year+9;!this.optionsStore.unset&&0t>=s&&t<=i).length&&e.push(m.css.active),a(\"decade\",this._startDecade,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",\"\"+this._startDecade.year),t.innerText=\"\"+this._startDecade.format({year:\"numeric\"}),this._startDecade.manipulate(10,p.Unit.year)})}}class W{constructor(){this._gridColumns=\"\",this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l)}getPicker(t){var e=document.createElement(\"div\");return e.classList.add(m.css.clockContainer),e.append(...this._grid(t)),e}_update(t){var e,t=t.getElementsByClassName(m.css.clockContainer)[0],s=(this.dates.lastPicked||this.optionsStore.viewDate).clone;t.querySelectorAll(\".disabled\").forEach(t=>t.classList.remove(m.css.disabled)),this.optionsStore.options.display.components.hours&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,p.Unit.hours),p.Unit.hours)||t.querySelector(`[data-action=${T.incrementHours}]`).classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.hours),p.Unit.hours)||t.querySelector(`[data-action=${T.decrementHours}]`).classList.add(m.css.disabled),t.querySelector(`[data-time-component=${p.Unit.hours}]`).innerText=s.getHoursFormatted(this.optionsStore.options.localization.hourCycle)),this.optionsStore.options.display.components.minutes&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,p.Unit.minutes),p.Unit.minutes)||t.querySelector(`[data-action=${T.incrementMinutes}]`).classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.minutes),p.Unit.minutes)||t.querySelector(`[data-action=${T.decrementMinutes}]`).classList.add(m.css.disabled),t.querySelector(`[data-time-component=${p.Unit.minutes}]`).innerText=s.minutesFormatted),this.optionsStore.options.display.components.seconds&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,p.Unit.seconds),p.Unit.seconds)||t.querySelector(`[data-action=${T.incrementSeconds}]`).classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.seconds),p.Unit.seconds)||t.querySelector(`[data-action=${T.decrementSeconds}]`).classList.add(m.css.disabled),t.querySelector(`[data-time-component=${p.Unit.seconds}]`).innerText=s.secondsFormatted),this.optionsStore.isTwelveHour&&((e=t.querySelector(`[data-action=${T.toggleMeridiem}]`)).innerText=s.meridiem(),this.validation.isValid(s.clone.manipulate(12<=s.hours?-12:12,p.Unit.hours))?e.classList.remove(m.css.disabled):e.classList.add(m.css.disabled)),t.style.gridTemplateAreas=`\"${this._gridColumns}\"`}_grid(e){this._gridColumns=\"\";const s=[],i=[],a=[],o=document.createElement(\"div\"),n=e(this.optionsStore.options.display.icons.up),r=e(this.optionsStore.options.display.icons.down),d=(o.classList.add(m.css.separator,m.css.noHighlight),o.cloneNode(!0));d.innerHTML=\":\";e=(t=!1)=>(t?d:o).cloneNode(!0);if(this.optionsStore.options.display.components.hours){let t=document.createElement(\"div\");t.setAttribute(\"title\",this.optionsStore.options.localization.incrementHour),t.setAttribute(\"data-action\",T.incrementHours),t.appendChild(n.cloneNode(!0)),s.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.pickHour),t.setAttribute(\"data-action\",T.showHours),t.setAttribute(\"data-time-component\",p.Unit.hours),i.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.decrementHour),t.setAttribute(\"data-action\",T.decrementHours),t.appendChild(r.cloneNode(!0)),a.push(t),this._gridColumns+=\"a\"}if(this.optionsStore.options.display.components.minutes){this._gridColumns+=\" a\",this.optionsStore.options.display.components.hours&&(s.push(e()),i.push(e(!0)),a.push(e()),this._gridColumns+=\" a\");let t=document.createElement(\"div\");t.setAttribute(\"title\",this.optionsStore.options.localization.incrementMinute),t.setAttribute(\"data-action\",T.incrementMinutes),t.appendChild(n.cloneNode(!0)),s.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.pickMinute),t.setAttribute(\"data-action\",T.showMinutes),t.setAttribute(\"data-time-component\",p.Unit.minutes),i.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.decrementMinute),t.setAttribute(\"data-action\",T.decrementMinutes),t.appendChild(r.cloneNode(!0)),a.push(t)}if(this.optionsStore.options.display.components.seconds){this._gridColumns+=\" a\",this.optionsStore.options.display.components.minutes&&(s.push(e()),i.push(e(!0)),a.push(e()),this._gridColumns+=\" a\");let t=document.createElement(\"div\");t.setAttribute(\"title\",this.optionsStore.options.localization.incrementSecond),t.setAttribute(\"data-action\",T.incrementSeconds),t.appendChild(n.cloneNode(!0)),s.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.pickSecond),t.setAttribute(\"data-action\",T.showSeconds),t.setAttribute(\"data-time-component\",p.Unit.seconds),i.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.decrementSecond),t.setAttribute(\"data-action\",T.decrementSeconds),t.appendChild(r.cloneNode(!0)),a.push(t)}if(this.optionsStore.isTwelveHour){this._gridColumns+=\" a\";let t=e();s.push(t);var l=document.createElement(\"button\");l.setAttribute(\"title\",this.optionsStore.options.localization.toggleMeridiem),l.setAttribute(\"data-action\",T.toggleMeridiem),l.setAttribute(\"tabindex\",\"-1\"),m.css.toggleMeridiem.includes(\",\")?l.classList.add(...m.css.toggleMeridiem.split(\",\")):l.classList.add(m.css.toggleMeridiem),(t=document.createElement(\"div\")).classList.add(m.css.noHighlight),t.appendChild(l),i.push(t),t=e(),a.push(t)}return this._gridColumns=this._gridColumns.trim(),[...s,...i,...a]}}class q{constructor(){this.optionsStore=s.locate(d),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\");e.classList.add(m.css.hourContainer);for(let t=0;t<(this.optionsStore.isTwelveHour?12:24);t++){var s=document.createElement(\"div\");s.setAttribute(\"data-action\",T.selectHour),e.appendChild(s)}return e}_update(t,s){t=t.getElementsByClassName(m.css.hourContainer)[0];const i=this.optionsStore.viewDate.clone.startOf(p.Unit.date);t.querySelectorAll(`[data-action=\"${T.selectHour}\"]`).forEach(t=>{var e=[];e.push(m.css.hour),this.validation.isValid(i,p.Unit.hours)||e.push(m.css.disabled),s(p.Unit.hours,i,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",\"\"+i.hours),t.innerText=i.getHoursFormatted(this.optionsStore.options.localization.hourCycle),i.manipulate(1,p.Unit.hours)})}}class Y{constructor(){this.optionsStore=s.locate(d),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\"),s=(e.classList.add(m.css.minuteContainer),1===this.optionsStore.options.stepping?5:this.optionsStore.options.stepping);for(let t=0;t<60/s;t++){var i=document.createElement(\"div\");i.setAttribute(\"data-action\",T.selectMinute),e.appendChild(i)}return e}_update(t,s){t=t.getElementsByClassName(m.css.minuteContainer)[0];const i=this.optionsStore.viewDate.clone.startOf(p.Unit.hours),a=1===this.optionsStore.options.stepping?5:this.optionsStore.options.stepping;t.querySelectorAll(`[data-action=\"${T.selectMinute}\"]`).forEach(t=>{var e=[];e.push(m.css.minute),this.validation.isValid(i,p.Unit.minutes)||e.push(m.css.disabled),s(p.Unit.minutes,i,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",\"\"+i.minutes),t.innerText=i.minutesFormatted,i.manipulate(a,p.Unit.minutes)})}}class j{constructor(){this.optionsStore=s.locate(d),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\");e.classList.add(m.css.secondContainer);for(let t=0;t<12;t++){var s=document.createElement(\"div\");s.setAttribute(\"data-action\",T.selectSecond),e.appendChild(s)}return e}_update(t,s){t=t.getElementsByClassName(m.css.secondContainer)[0];const i=this.optionsStore.viewDate.clone.startOf(p.Unit.minutes);t.querySelectorAll(`[data-action=\"${T.selectSecond}\"]`).forEach(t=>{var e=[];e.push(m.css.second),this.validation.isValid(i,p.Unit.seconds)||e.push(m.css.disabled),s(p.Unit.seconds,i,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",\"\"+i.seconds),t.innerText=i.secondsFormatted,i.manipulate(5,p.Unit.seconds)})}}class L{static toggle(t){t.classList.contains(m.css.show)?this.hide(t):this.show(t)}static showImmediately(t){t.classList.remove(m.css.collapsing),t.classList.add(m.css.collapse,m.css.show),t.style.height=\"\"}static show(t){t.classList.contains(m.css.collapsing)||t.classList.contains(m.css.show)||(t.style.height=\"0\",t.classList.remove(m.css.collapse),t.classList.add(m.css.collapsing),setTimeout(()=>{L.showImmediately(t)},this.getTransitionDurationFromElement(t)),t.style.height=t.scrollHeight+\"px\")}static hideImmediately(t){t&&(t.classList.remove(m.css.collapsing,m.css.show),t.classList.add(m.css.collapse))}static hide(t){!t.classList.contains(m.css.collapsing)&&t.classList.contains(m.css.show)&&(t.style.height=t.getBoundingClientRect().height+\"px\",t.offsetHeight,t.classList.remove(m.css.collapse,m.css.show),t.classList.add(m.css.collapsing),t.style.height=\"\",setTimeout(()=>{L.hideImmediately(t)},this.getTransitionDurationFromElement(t)))}}L.getTransitionDurationFromElement=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:s}=window.getComputedStyle(t);var t=Number.parseFloat(e),i=Number.parseFloat(s);return t||i?(e=e.split(\",\")[0],s=s.split(\",\")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(s))):0};class U{constructor(){this._isVisible=!1,this._documentClickEvent=t=>{this.optionsStore.options.debug||window.debug||!this._isVisible||t.composedPath().includes(this.widget)||t.composedPath()?.includes(this.optionsStore.element)||this.hide()},this._actionsClickEvent=t=>{this._eventEmitters.action.emit({e:t})},this.optionsStore=s.locate(d),this.validation=s.locate(l),this.dates=s.locate(E),this.dateDisplay=s.locate(N),this.monthDisplay=s.locate(F),this.yearDisplay=s.locate($),this.decadeDisplay=s.locate(B),this.timeDisplay=s.locate(W),this.hourDisplay=s.locate(q),this.minuteDisplay=s.locate(Y),this.secondDisplay=s.locate(j),this._eventEmitters=s.locate(h),this._widget=void 0,this._eventEmitters.updateDisplay.subscribe(t=>{this._update(t)})}get widget(){return this._widget}get dateContainer(){return this.widget?.querySelector(\"div.\"+m.css.dateContainer)}get timeContainer(){return this.widget?.querySelector(\"div.\"+m.css.timeContainer)}get isVisible(){return this._isVisible}_update(t){if(this.widget)switch(t){case p.Unit.seconds:this.secondDisplay._update(this.widget,this.paint);break;case p.Unit.minutes:this.minuteDisplay._update(this.widget,this.paint);break;case p.Unit.hours:this.hourDisplay._update(this.widget,this.paint);break;case p.Unit.date:this.dateDisplay._update(this.widget,this.paint);break;case p.Unit.month:this.monthDisplay._update(this.widget,this.paint);break;case p.Unit.year:this.yearDisplay._update(this.widget,this.paint);break;case\"clock\":this._hasTime&&(this.timeDisplay._update(this.widget),this._update(p.Unit.hours),this._update(p.Unit.minutes),this._update(p.Unit.seconds));break;case\"calendar\":this._update(p.Unit.date),this._update(p.Unit.year),this._update(p.Unit.month),this.decadeDisplay._update(this.widget,this.paint),this._updateCalendarHeader();break;case\"all\":this._hasTime&&this._update(\"clock\"),this._hasDate&&this._update(\"calendar\")}}paint(t,e,s,i){}show(){null==this.widget&&(this._showSetDefaultIfNeeded(),this._buildWidget(),this._updateTheme(),this._showSetupViewMode(),this.optionsStore.options.display.inline?this.optionsStore.element.appendChild(this.widget):((this.optionsStore.options?.container||document.body).appendChild(this.widget),this.createPopup(this.optionsStore.element,this.widget,{modifiers:[{name:\"eventListeners\",enabled:!0}],placement:\"rtl\"===document.documentElement.dir?\"bottom-end\":\"bottom-start\"}).then()),\"clock\"==this.optionsStore.options.display.viewMode&&this._eventEmitters.action.emit({e:null,action:T.showClock}),this.widget.querySelectorAll(\"[data-action]\").forEach(t=>t.addEventListener(\"click\",this._actionsClickEvent)),this._hasTime)&&this.optionsStore.options.display.sideBySide&&(this.timeDisplay._update(this.widget),this.widget.getElementsByClassName(m.css.clockContainer)[0].style.display=\"grid\"),this.widget.classList.add(m.css.show),this.optionsStore.options.display.inline||(this.updatePopup(),document.addEventListener(\"click\",this._documentClickEvent)),this._eventEmitters.triggerEvent.emit({type:m.events.show}),this._isVisible=!0}_showSetupViewMode(){var t=this._hasTime&&!this._hasDate;t?(this.optionsStore.currentView=\"clock\",this._eventEmitters.action.emit({e:null,action:T.showClock})):this.optionsStore.currentCalendarViewMode||(this.optionsStore.currentCalendarViewMode=this.optionsStore.minimumCalendarViewMode),t||\"clock\"===this.optionsStore.options.display.viewMode||(this._hasTime&&(this.optionsStore.options.display.sideBySide?L.show(this.timeContainer):L.hideImmediately(this.timeContainer)),L.show(this.dateContainer)),this._hasDate&&this._showMode()}_showSetDefaultIfNeeded(){if(0==this.dates.picked.length){if(this.optionsStore.options.useCurrent&&!this.optionsStore.options.defaultDate){var s=(new y).setLocalization(this.optionsStore.options.localization);if(!this.optionsStore.options.keepInvalid){let t=0,e=1;for(this.optionsStore.options.restrictions.maxDate?.isBefore(s)&&(e=-1);!this.validation.isValid(s)&&31 div:not(.${m.css.calendarHeader}), .${m.css.timeContainer} > div:not(.${m.css.clockContainer})`).forEach(t=>t.style.display=\"none\");var t=r[this.optionsStore.currentCalendarViewMode],e=this.widget.querySelector(\".\"+t.className);switch(t.className){case m.css.decadesContainer:this.decadeDisplay._update(this.widget,this.paint);break;case m.css.yearsContainer:this.yearDisplay._update(this.widget,this.paint);break;case m.css.monthsContainer:this.monthDisplay._update(this.widget,this.paint);break;case m.css.daysContainer:this.dateDisplay._update(this.widget,this.paint)}e.style.display=\"grid\",this.optionsStore.options.display.sideBySide&&(this.widget.querySelectorAll(\".\"+m.css.clockContainer)[0].style.display=\"grid\"),this._updateCalendarHeader(),this._eventEmitters.viewUpdate.emit()}}_updateTheme(t){if(this.widget){if(t){if(this.optionsStore.options.display.theme===t)return;this.optionsStore.options.display.theme=t}this.widget.classList.remove(\"light\",\"dark\"),this.widget.classList.add(this._getThemeClass()),\"auto\"===this.optionsStore.options.display.theme?window.matchMedia(m.css.isDarkPreferredQuery).addEventListener(\"change\",()=>this._updateTheme()):window.matchMedia(m.css.isDarkPreferredQuery).removeEventListener(\"change\",()=>this._updateTheme())}}_getThemeClass(){var t=this.optionsStore.options.display.theme||\"auto\",e=window.matchMedia&&window.matchMedia(m.css.isDarkPreferredQuery).matches;switch(t){case\"light\":return m.css.lightTheme;case\"dark\":return m.css.darkTheme;case\"auto\":return e?m.css.darkTheme:m.css.lightTheme}}_updateCalendarHeader(){if(this._hasDate){var t=[...this.widget.querySelector(`.${m.css.dateContainer} div[style*=\"display: grid\"]`).classList].find(t=>t.startsWith(m.css.dateContainer)),[e,s,i]=this.widget.getElementsByClassName(m.css.calendarHeader)[0].getElementsByTagName(\"div\");switch(t){case m.css.decadesContainer:e.setAttribute(\"title\",this.optionsStore.options.localization.previousCentury),s.setAttribute(\"title\",\"\"),i.setAttribute(\"title\",this.optionsStore.options.localization.nextCentury);break;case m.css.yearsContainer:e.setAttribute(\"title\",this.optionsStore.options.localization.previousDecade),s.setAttribute(\"title\",this.optionsStore.options.localization.selectDecade),i.setAttribute(\"title\",this.optionsStore.options.localization.nextDecade);break;case m.css.monthsContainer:e.setAttribute(\"title\",this.optionsStore.options.localization.previousYear),s.setAttribute(\"title\",this.optionsStore.options.localization.selectYear),i.setAttribute(\"title\",this.optionsStore.options.localization.nextYear);break;case m.css.daysContainer:e.setAttribute(\"title\",this.optionsStore.options.localization.previousMonth),s.setAttribute(\"title\",this.optionsStore.options.localization.selectMonth),i.setAttribute(\"title\",this.optionsStore.options.localization.nextMonth),s.setAttribute(t,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat))}s.innerText=s.getAttribute(t)}}hide(){this.widget&&this._isVisible&&(this.widget.classList.remove(m.css.show),this._isVisible&&(this._eventEmitters.triggerEvent.emit({type:m.events.hide,date:this.optionsStore.unset?null:this.dates.lastPicked?.clone}),this._isVisible=!1),document.removeEventListener(\"click\",this._documentClickEvent))}toggle(){return this._isVisible?this.hide():this.show()}_dispose(){document.removeEventListener(\"click\",this._documentClickEvent),this.widget&&(this.widget.querySelectorAll(\"[data-action]\").forEach(t=>t.removeEventListener(\"click\",this._actionsClickEvent)),this.widget.parentNode.removeChild(this.widget),this._widget=void 0)}_buildWidget(){const a=document.createElement(\"div\");a.classList.add(m.css.widget);var t,e=document.createElement(\"div\"),s=(e.classList.add(m.css.dateContainer),e.append(this.getHeadTemplate(),this.decadeDisplay.getPicker(),this.yearDisplay.getPicker(),this.monthDisplay.getPicker(),this.dateDisplay.getPicker()),document.createElement(\"div\")),i=(s.classList.add(m.css.timeContainer),s.appendChild(this.timeDisplay.getPicker(this._iconTag.bind(this))),s.appendChild(this.hourDisplay.getPicker()),s.appendChild(this.minuteDisplay.getPicker()),s.appendChild(this.secondDisplay.getPicker()),document.createElement(\"div\"));i.classList.add(m.css.toolbar),i.append(...this.getToolbarElements()),this.optionsStore.options.display.inline&&a.classList.add(m.css.inline),this.optionsStore.options.display.calendarWeeks&&a.classList.add(\"calendarWeeks\"),this.optionsStore.options.display.sideBySide&&this._hasDateAndTime?this._buildWidgetSideBySide(a,e,s,i):(\"top\"===this.optionsStore.options.display.toolbarPlacement&&a.appendChild(i),(t=(t,e,s,i)=>{t&&(e&&(s.classList.add(m.css.collapse),i)&&s.classList.add(m.css.show),a.appendChild(s))})(this._hasDate,this._hasTime,e,\"clock\"!==this.optionsStore.options.display.viewMode),t(this._hasTime,this._hasDate,s,\"clock\"===this.optionsStore.options.display.viewMode),\"bottom\"===this.optionsStore.options.display.toolbarPlacement&&a.appendChild(i),(e=document.createElement(\"div\")).classList.add(\"arrow\"),e.setAttribute(\"data-popper-arrow\",\"\"),a.appendChild(e),this._widget=a)}_buildWidgetSideBySide(t,e,s,i){t.classList.add(m.css.sideBySide),\"top\"===this.optionsStore.options.display.toolbarPlacement&&t.appendChild(i);var a=document.createElement(\"div\");a.classList.add(\"td-row\"),e.classList.add(\"td-half\"),s.classList.add(\"td-half\"),a.appendChild(e),a.appendChild(s),t.appendChild(a),\"bottom\"===this.optionsStore.options.display.toolbarPlacement&&t.appendChild(i),this._widget=t}get _hasTime(){return this.optionsStore.options.display.components.clock&&(this.optionsStore.options.display.components.hours||this.optionsStore.options.display.components.minutes||this.optionsStore.options.display.components.seconds)}get _hasDate(){return this.optionsStore.options.display.components.calendar&&(this.optionsStore.options.display.components.year||this.optionsStore.options.display.components.month||this.optionsStore.options.display.components.date)}get _hasDateAndTime(){return this._hasDate&&this._hasTime}getToolbarElements(){var s=[];if(this.optionsStore.options.display.buttons.today&&((i=document.createElement(\"div\")).setAttribute(\"data-action\",T.today),i.setAttribute(\"title\",this.optionsStore.options.localization.today),i.appendChild(this._iconTag(this.optionsStore.options.display.icons.today)),s.push(i)),!this.optionsStore.options.display.sideBySide&&this._hasDate&&this._hasTime){let t,e;e=\"clock\"===this.optionsStore.options.display.viewMode?(t=this.optionsStore.options.localization.selectDate,this.optionsStore.options.display.icons.date):(t=this.optionsStore.options.localization.selectTime,this.optionsStore.options.display.icons.time);var i=document.createElement(\"div\");i.setAttribute(\"data-action\",T.togglePicker),i.setAttribute(\"title\",t),i.appendChild(this._iconTag(e)),s.push(i)}return this.optionsStore.options.display.buttons.clear&&((i=document.createElement(\"div\")).setAttribute(\"data-action\",T.clear),i.setAttribute(\"title\",this.optionsStore.options.localization.clear),i.appendChild(this._iconTag(this.optionsStore.options.display.icons.clear)),s.push(i)),this.optionsStore.options.display.buttons.close&&((i=document.createElement(\"div\")).setAttribute(\"data-action\",T.close),i.setAttribute(\"title\",this.optionsStore.options.localization.close),i.appendChild(this._iconTag(this.optionsStore.options.display.icons.close)),s.push(i)),s}getHeadTemplate(){var t=document.createElement(\"div\"),e=(t.classList.add(m.css.calendarHeader),document.createElement(\"div\")),s=(e.classList.add(m.css.previous),e.setAttribute(\"data-action\",T.previous),e.appendChild(this._iconTag(this.optionsStore.options.display.icons.previous)),document.createElement(\"div\")),i=(s.classList.add(m.css.switch),s.setAttribute(\"data-action\",T.changeCalendarView),document.createElement(\"div\"));return i.classList.add(m.css.next),i.setAttribute(\"data-action\",T.next),i.appendChild(this._iconTag(this.optionsStore.options.display.icons.next)),t.append(e,s,i),t}_iconTag(t){if(\"sprites\"===this.optionsStore.options.display.icons.type){var e=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");const s=document.createElementNS(\"http://www.w3.org/2000/svg\",\"use\");return s.setAttribute(\"xlink:href\",t),s.setAttribute(\"href\",t),e.appendChild(s),e}const s=document.createElement(\"i\");return s.classList.add(...t.split(\" \")),s}_rebuild(){var t=this._isVisible;this._dispose(),t&&this.show()}}class R{constructor(){this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l),this.display=s.locate(U),this._eventEmitters=s.locate(h),this._eventEmitters.action.subscribe(t=>{this.do(t.e,t.action)})}do(e,t){var s=e?.currentTarget;if(s?.classList?.contains(m.css.disabled))return!1;t=t||s?.dataset?.action;var i=(this.dates.lastPicked||this.optionsStore.viewDate).clone;switch(t){case T.next:case T.previous:this.handleNextPrevious(t);break;case T.changeCalendarView:this.display._showMode(1),this.display._updateCalendarHeader();break;case T.selectMonth:case T.selectYear:case T.selectDecade:this.handleSelectCalendarMode(t,s);break;case T.selectDay:this.handleSelectDay(s);break;case T.selectHour:{let t=+s.dataset.value;12<=i.hours&&this.optionsStore.isTwelveHour&&(t+=12),i.hours=t,this.dates.setValue(i,this.dates.lastPickedIndex),this.hideOrClock(e);break}case T.selectMinute:i.minutes=+s.dataset.value,this.dates.setValue(i,this.dates.lastPickedIndex),this.hideOrClock(e);break;case T.selectSecond:i.seconds=+s.dataset.value,this.dates.setValue(i,this.dates.lastPickedIndex),this.hideOrClock(e);break;case T.incrementHours:this.manipulateAndSet(i,p.Unit.hours);break;case T.incrementMinutes:this.manipulateAndSet(i,p.Unit.minutes,this.optionsStore.options.stepping);break;case T.incrementSeconds:this.manipulateAndSet(i,p.Unit.seconds);break;case T.decrementHours:this.manipulateAndSet(i,p.Unit.hours,-1);break;case T.decrementMinutes:this.manipulateAndSet(i,p.Unit.minutes,-1*this.optionsStore.options.stepping);break;case T.decrementSeconds:this.manipulateAndSet(i,p.Unit.seconds,-1);break;case T.toggleMeridiem:this.manipulateAndSet(i,p.Unit.hours,12<=this.dates.lastPicked.hours?-12:12);break;case T.togglePicker:this.handleToggle(s);break;case T.showClock:case T.showHours:case T.showMinutes:case T.showSeconds:this.optionsStore.options.display.sideBySide||\"clock\"===this.optionsStore.currentView||(L.hideImmediately(this.display.dateContainer),L.showImmediately(this.display.timeContainer)),this.handleShowClockContainers(t);break;case T.clear:this.dates.setValue(null),this.display._updateCalendarHeader();break;case T.close:this.display.hide();break;case T.today:var a=(new y).setLocalization(this.optionsStore.options.localization);this._eventEmitters.updateViewDate.emit(a),this.validation.isValid(a,p.Unit.date)&&this.dates.setValue(a,this.dates.lastPickedIndex)}}handleShowClockContainers(e){if(this.display._hasTime){this.optionsStore.currentView=\"clock\",this.display.widget.querySelectorAll(`.${m.css.timeContainer} > div`).forEach(t=>t.style.display=\"none\");let t=\"\";switch(e){case T.showClock:t=m.css.clockContainer,this.display._update(\"clock\");break;case T.showHours:t=m.css.hourContainer,this.display._update(p.Unit.hours);break;case T.showMinutes:t=m.css.minuteContainer,this.display._update(p.Unit.minutes);break;case T.showSeconds:t=m.css.secondContainer,this.display._update(p.Unit.seconds)}this.display.widget.getElementsByClassName(t)[0].style.display=\"grid\"}else m.errorMessages.throwError(\"Cannot show clock containers when time is disabled.\")}handleNextPrevious(t){var{unit:e,step:s}=r[this.optionsStore.currentCalendarViewMode];t===T.next?this.optionsStore.viewDate.manipulate(s,e):this.optionsStore.viewDate.manipulate(-1*s,e),this._eventEmitters.viewUpdate.emit(),this.display._showMode()}hideOrClock(t){this.optionsStore.isTwelveHour||this.optionsStore.options.display.components.minutes||this.optionsStore.options.display.keepOpen||this.optionsStore.options.display.inline?this.do(t,T.showClock):this.display.hide()}manipulateAndSet(t,e,s=1){t=t.manipulate(s,e);this.validation.isValid(t,e)&&this.dates.setValue(t,this.dates.lastPickedIndex)}handleSelectCalendarMode(t,e){var s=+e.dataset.value;switch(t){case T.selectMonth:this.optionsStore.viewDate.month=s;break;case T.selectYear:case T.selectDecade:this.optionsStore.viewDate.year=s}this.optionsStore.currentCalendarViewMode===this.optionsStore.minimumCalendarViewMode?(this.dates.setValue(this.optionsStore.viewDate,this.dates.lastPickedIndex),this.optionsStore.options.display.inline||this.display.hide()):this.display._showMode(-1)}handleToggle(t){t.getAttribute(\"title\")===this.optionsStore.options.localization.selectDate?(t.setAttribute(\"title\",this.optionsStore.options.localization.selectTime),t.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.time).outerHTML,this.display._updateCalendarHeader(),this.optionsStore.refreshCurrentView()):(t.setAttribute(\"title\",this.optionsStore.options.localization.selectDate),t.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.date).outerHTML,this.display._hasTime&&(this.handleShowClockContainers(T.showClock),this.display._update(\"clock\"))),this.display.widget.querySelectorAll(`.${m.css.dateContainer}, .`+m.css.timeContainer).forEach(t=>L.toggle(t)),this._eventEmitters.viewUpdate.emit()}handleSelectDay(t){var e=this.optionsStore.viewDate.clone;t.classList.contains(m.css.old)&&e.manipulate(-1,p.Unit.month),t.classList.contains(m.css.new)&&e.manipulate(1,p.Unit.month),e.date=+t.dataset.day,this.optionsStore.options.dateRange?this.handleDateRange(e):this.optionsStore.options.multipleDates?this.handleMultiDate(e):this.dates.setValue(e,this.dates.lastPickedIndex),this.display._hasTime||this.optionsStore.options.display.keepOpen||this.optionsStore.options.display.inline||this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange||this.display.hide()}handleMultiDate(t){let e=this.dates.pickedIndex(t,p.Unit.date);-1!==e?this.dates.setValue(null,e):(e=this.dates.lastPickedIndex+1,0===this.dates.picked.length&&(e=0),this.dates.setValue(t,e))}handleDateRange(t){switch(this.dates.picked.length){case 2:this.dates.clear();break;case 1:var e=this.dates.picked[0];return t.isBefore(e)?(this.dates.setValue(t,0),void this.dates.setValue(e,1)):void this.dates.setValue(t,1)}this.dates.setValue(t,0)}}class A{constructor(t,e={}){this._subscribers={},this._isDisabled=!1,this._inputChangeEvent=t=>{t=t?.detail;if(!t){var t=()=>{this.dates.lastPicked&&(this.optionsStore.viewDate=this.dates.lastPicked.clone)},e=this.optionsStore.input.value;if(this.optionsStore.options.multipleDates)try{var s=e.split(this.optionsStore.options.multipleDatesSeparator);for(let t=0;t{this.optionsStore.element?.disabled||this.optionsStore.input?.disabled||this.toggle()},s=new x,this._eventEmitters=s.locate(h),this.optionsStore=s.locate(d),this.display=s.locate(U),this.dates=s.locate(E),this.actions=s.locate(R),t||m.errorMessages.mustProvideElement(),this.optionsStore.element=t,this._initializeOptions(e,u,!0),this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.optionsStore.unset=!0,this._initializeInput(),this._initializeToggle(),this.optionsStore.options.display.inline&&this.display.show(),this._eventEmitters.triggerEvent.subscribe(t=>{this._triggerEvent(t)}),this._eventEmitters.viewUpdate.subscribe(()=>{this._viewUpdate()}),this._eventEmitters.updateViewDate.subscribe(t=>{this.viewDate=t})}get viewDate(){return this.optionsStore.viewDate}set viewDate(t){this.optionsStore.viewDate=t,this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.display._update(\"clock\"===this.optionsStore.currentView?\"clock\":\"calendar\")}updateOptions(t,e=!1){e?this._initializeOptions(t,u):this._initializeOptions(t,this.optionsStore.options),this.display._rebuild()}toggle(){this._isDisabled||this.display.toggle()}show(){this._isDisabled||this.display.show()}hide(){this.display.hide()}disable(){this._isDisabled=!0,this.optionsStore.input?.setAttribute(\"disabled\",\"disabled\"),this.display.hide()}enable(){this._isDisabled=!1,this.optionsStore.input?.removeAttribute(\"disabled\")}clear(){this.optionsStore.input.value=\"\",this.dates.clear()}subscribe(e,t){\"string\"==typeof e&&(e=[e]);let s;s=Array.isArray(t)?t:[t],e.length!==s.length&&m.errorMessages.subscribeMismatch();var i=[];for(let t=0;t{t(e)})}_viewUpdate(){this._triggerEvent({type:m.events.update,viewDate:this.optionsStore.viewDate.clone})}_unsubscribe(t,e){this._subscribers[t].splice(e,1)}_initializeOptions(t,e,s=!1){let i=M.deepCopy(t);i=M._mergeOptions(i,e),s&&(i=M._dataToOptions(this.optionsStore.element,i)),M._validateConflicts(i),i.viewDate=i.viewDate.setLocalization(i.localization),this.optionsStore.viewDate.isSame(i.viewDate)||(this.optionsStore.viewDate=i.viewDate),i.display.components.year&&(this.optionsStore.minimumCalendarViewMode=2),i.display.components.month&&(this.optionsStore.minimumCalendarViewMode=1),i.display.components.date&&(this.optionsStore.minimumCalendarViewMode=0),this.optionsStore.currentCalendarViewMode=Math.max(this.optionsStore.minimumCalendarViewMode,this.optionsStore.currentCalendarViewMode),r[this.optionsStore.currentCalendarViewMode].name!==i.display.viewMode&&(this.optionsStore.currentCalendarViewMode=Math.max(r.findIndex(t=>t.name===i.display.viewMode),this.optionsStore.minimumCalendarViewMode)),this.display?.isVisible&&this.display._update(\"all\"),i.display.components.useTwentyfourHour&&void 0===i.localization.hourCycle?i.localization.hourCycle=\"h24\":void 0===i.localization.hourCycle&&(i.localization.hourCycle=o(i.localization.locale)),this.optionsStore.options=i}_initializeInput(){var t;\"INPUT\"==this.optionsStore.element.tagName?this.optionsStore.input=this.optionsStore.element:(t=this.optionsStore.element.dataset.tdTargetInput,this.optionsStore.input=null==t||\"nearest\"==t?this.optionsStore.element.querySelector(\"input\"):this.optionsStore.element.querySelector(t)),this.optionsStore.input&&(!this.optionsStore.input.value&&this.optionsStore.options.defaultDate&&(this.optionsStore.input.value=this.dates.formatInput(this.optionsStore.options.defaultDate)),this.optionsStore.input.addEventListener(\"change\",this._inputChangeEvent),this.optionsStore.options.allowInputToggle&&this.optionsStore.input.addEventListener(\"click\",this._toggleClickEvent),this.optionsStore.input.value)&&this._inputChangeEvent()}_initializeToggle(){if(!this.optionsStore.options.display.inline){let t=this.optionsStore.element.dataset.tdTargetToggle;\"nearest\"==t&&(t='[data-td-toggle=\"datetimepicker\"]'),this._toggle=null==t?this.optionsStore.element:this.optionsStore.element.querySelector(t),this._toggle.addEventListener(\"click\",this._toggleClickEvent)}}_handleAfterChangeEvent(t){!this.optionsStore.options.promptTimeOnDateChange||this.optionsStore.options.multipleDates||this.optionsStore.options.display.inline||this.optionsStore.options.display.sideBySide||!this.display._hasTime||this.display.widget?.getElementsByClassName(m.css.show)[0].classList.contains(m.css.timeContainer)||!t.oldDate&&this.optionsStore.options.useCurrent||t.oldDate&&t.date?.isSame(t.oldDate)||(clearTimeout(this._currentPromptTimeTimeout),this._currentPromptTimeTimeout=setTimeout(()=>{this.display.widget&&this._eventEmitters.action.emit({e:{currentTarget:this.display.widget.querySelector(\".\"+m.css.switch)},action:T.togglePicker})},this.optionsStore.options.promptTimeOnDateChangeTransitionDelay))}}const V={};function H(t,e=void 0){return t&&!t.installed&&(t(e,{TempusDominus:A,Dates:E,Display:U,DateTime:y,Namespace:m},Q),t.installed=!0),Q}var O=t=>{V[t.name]||(V[t.name]=t.localization)},z=t=>{t=V[t];t&&(u.localization=t)};const Q={TempusDominus:A,extend:H,loadLocale:O,locale:z,Namespace:m,DefaultOptions:u,DateTime:y,Unit:p.Unit,version:\"6.4.4\"};p.DateTime=y,p.DefaultOptions=u,p.Namespace=m,p.TempusDominus=A,p.extend=H,p.loadLocale=O,p.locale=z,p.version=\"6.4.4\",Object.defineProperty(p,\"__esModule\",{value:!0})});","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).Sweetalert2=t()}(this,function(){\"use strict\";var p={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};var e=e=>{var t={};for(const o in e)t[e[o]]=\"swal2-\"+e[o];return t};const m=e([\"container\",\"shown\",\"height-auto\",\"iosfix\",\"popup\",\"modal\",\"no-backdrop\",\"no-transition\",\"toast\",\"toast-shown\",\"show\",\"hide\",\"close\",\"title\",\"html-container\",\"actions\",\"confirm\",\"deny\",\"cancel\",\"default-outline\",\"footer\",\"icon\",\"icon-content\",\"image\",\"input\",\"file\",\"range\",\"select\",\"radio\",\"checkbox\",\"label\",\"textarea\",\"inputerror\",\"input-label\",\"validation-message\",\"progress-steps\",\"active-progress-step\",\"progress-step\",\"progress-step-line\",\"loader\",\"loading\",\"styled\",\"top\",\"top-start\",\"top-end\",\"top-left\",\"top-right\",\"center\",\"center-start\",\"center-end\",\"center-left\",\"center-right\",\"bottom\",\"bottom-start\",\"bottom-end\",\"bottom-left\",\"bottom-right\",\"grow-row\",\"grow-column\",\"grow-fullscreen\",\"rtl\",\"timer-progress-bar\",\"timer-progress-bar-container\",\"scrollbar-measure\",\"icon-success\",\"icon-warning\",\"icon-info\",\"icon-question\",\"icon-error\"]),n=e([\"success\",\"warning\",\"info\",\"question\",\"error\"]),I=\"SweetAlert2:\",D=e=>e.charAt(0).toUpperCase()+e.slice(1),r=e=>{console.warn(I+\" \"+(\"object\"==typeof e?e.join(\" \"):e))},c=e=>{console.error(I+\" \"+e)},q=[],V=(e,t)=>{e=`\"${e}\" is deprecated and will be removed in the next major release. Please use \"${t}\" instead.`,q.includes(e)||(q.push(e),r(e))},N=e=>\"function\"==typeof e?e():e,F=e=>e&&\"function\"==typeof e.toPromise,u=e=>F(e)?e.toPromise():Promise.resolve(e),R=e=>e&&Promise.resolve(e)===e,g=()=>document.body.querySelector(\".\"+m.container),t=e=>{var t=g();return t?t.querySelector(e):null},o=e=>t(\".\"+e),h=()=>o(m.popup),a=()=>o(m.icon);const U=()=>o(m.title),_=()=>o(m[\"html-container\"]),W=()=>o(m.image),z=()=>o(m[\"progress-steps\"]),K=()=>o(m[\"validation-message\"]),f=()=>t(`.${m.actions} .`+m.confirm),b=()=>t(`.${m.actions} .`+m.cancel),v=()=>t(`.${m.actions} .`+m.deny);const y=()=>t(\".\"+m.loader),Y=()=>o(m.actions),Z=()=>o(m.footer),J=()=>o(m[\"timer-progress-bar\"]),X=()=>o(m.close),G=()=>{var e=Array.from(h().querySelectorAll('[tabindex]:not([tabindex=\"-1\"]):not([tabindex=\"0\"])')).sort((e,t)=>{e=parseInt(e.getAttribute(\"tabindex\")),t=parseInt(t.getAttribute(\"tabindex\"));return t\"-1\"!==e.getAttribute(\"tabindex\"));return(t=>{var o=[];for(let e=0;ex(e))},Q=()=>s(document.body,m.shown)&&!s(document.body,m[\"toast-shown\"])&&!s(document.body,m[\"no-backdrop\"]),ee=()=>h()&&s(h(),m.toast);function te(e){var t=1{o.style.transition=`width ${e/1e3}s linear`,o.style.width=\"0%\"},10))}const i={previousBodyPadding:null},w=(t,e)=>{t.textContent=\"\",e&&(e=(new DOMParser).parseFromString(e,\"text/html\"),Array.from(e.querySelector(\"head\").childNodes).forEach(e=>{t.appendChild(e)}),Array.from(e.querySelector(\"body\").childNodes).forEach(e=>{e instanceof HTMLVideoElement||e instanceof HTMLAudioElement?t.appendChild(e.cloneNode(!0)):t.appendChild(e)}))},s=(t,e)=>{if(!e)return!1;var o=e.split(/\\s+/);for(let e=0;e{Array.from(t.classList).forEach(e=>{Object.values(m).includes(e)||Object.values(n).includes(e)||Object.values(o.showClass).includes(e)||t.classList.remove(e)})},C=(e,t,o)=>{oe(e,t),t.customClass&&t.customClass[o]&&(\"string\"==typeof t.customClass[o]||t.customClass[o].forEach?A(e,t.customClass[o]):r(`Invalid type of customClass.${o}! Expected string or iterable object, got \"${typeof t.customClass[o]}\"`))},ne=(e,t)=>{if(!t)return null;switch(t){case\"select\":case\"textarea\":case\"file\":return e.querySelector(`.${m.popup} > .`+m[t]);case\"checkbox\":return e.querySelector(`.${m.popup} > .${m.checkbox} input`);case\"radio\":return e.querySelector(`.${m.popup} > .${m.radio} input:checked`)||e.querySelector(`.${m.popup} > .${m.radio} input:first-child`);case\"range\":return e.querySelector(`.${m.popup} > .${m.range} input`);default:return e.querySelector(`.${m.popup} > .`+m.input)}},ie=e=>{var t;e.focus(),\"file\"!==e.type&&(t=e.value,e.value=\"\",e.value=t)},re=(e,t,o)=>{e&&t&&(t=\"string\"==typeof t?t.split(/\\s+/).filter(Boolean):t).forEach(t=>{Array.isArray(e)?e.forEach(e=>{o?e.classList.add(t):e.classList.remove(t)}):o?e.classList.add(t):e.classList.remove(t)})},A=(e,t)=>{re(e,t,!0)},k=(e,t)=>{re(e,t,!1)},d=(e,t)=>{var o=Array.from(e.children);for(let e=0;e{(o=o===\"\"+parseInt(o)?parseInt(o):o)||0===parseInt(o)?e.style[t]=\"number\"==typeof o?o+\"px\":o:e.style.removeProperty(t)},B=function(e){e.style.display=1{e.style.display=\"none\"},ae=(e,t,o,n)=>{e=e.querySelector(t);e&&(e.style[o]=n)},se=function(e,t){var o=2!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),le=()=>!x(f())&&!x(v())&&!x(b()),ce=e=>!!(e.scrollHeight>e.clientHeight),ue=e=>{var e=window.getComputedStyle(e),t=parseFloat(e.getPropertyValue(\"animation-duration\")||\"0\"),e=parseFloat(e.getPropertyValue(\"transition-duration\")||\"0\");return 0{E.previousActiveElement instanceof HTMLElement?(E.previousActiveElement.focus(),E.previousActiveElement=null):document.body&&document.body.focus()},me=n=>new Promise(e=>{if(!n)return e();var t=window.scrollX,o=window.scrollY;E.restoreFocusTimeout=setTimeout(()=>{pe(),e()},de),window.scrollTo(t,o)}),ge=()=>\"undefined\"==typeof window||\"undefined\"==typeof document,he=`\n
\n \n
    \n
    \n \n

    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n`.replace(/(^|\\n)\\s*/g,\"\"),fe=()=>{var e=g();return!!e&&(e.remove(),k([document.documentElement,document.body],[m[\"no-backdrop\"],m[\"toast-shown\"],m[\"has-column\"]]),!0)},T=()=>{E.currentInstance.resetValidationMessage()},be=()=>{var e=h(),t=d(e,m.input),o=d(e,m.file);const n=e.querySelector(`.${m.range} input`),i=e.querySelector(`.${m.range} output`);var r=d(e,m.select),a=e.querySelector(`.${m.checkbox} input`),e=d(e,m.textarea);t.oninput=T,o.onchange=T,r.onchange=T,a.onchange=T,e.oninput=T,n.oninput=()=>{T(),i.value=n.value},n.onchange=()=>{T(),i.value=n.value}},ve=e=>\"string\"==typeof e?document.querySelector(e):e,ye=e=>{var t=h();t.setAttribute(\"role\",e.toast?\"alert\":\"dialog\"),t.setAttribute(\"aria-live\",e.toast?\"polite\":\"assertive\"),e.toast||t.setAttribute(\"aria-modal\",\"true\")},we=e=>{\"rtl\"===window.getComputedStyle(e).direction&&A(g(),m.rtl)},Ce=(e,t)=>{if(e instanceof HTMLElement)t.appendChild(e);else if(\"object\"==typeof e){var o=e,n=t;if(o.jquery)Ae(n,o);else w(n,o.toString())}else e&&w(t,e)},Ae=(t,o)=>{if(t.textContent=\"\",0 in o)for(let e=0;e in o;e++)t.appendChild(o[e].cloneNode(!0));else t.appendChild(o.cloneNode(!0))},ke=(()=>{if(!ge()){var e=document.createElement(\"div\"),t={WebkitAnimation:\"webkitAnimationEnd\",animation:\"animationend\"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o]}return!1})(),Be=(e,t)=>{var o,n,i,r,a,s=Y(),l=y(),c=((t.showConfirmButton||t.showDenyButton||t.showCancelButton?B:P)(s),C(s,t,\"actions\"),s=s,o=l,n=t,i=f(),r=v(),a=b(),Pe(i,\"confirm\",n),Pe(r,\"deny\",n),Pe(a,\"cancel\",n),i),u=r,d=a,p=n;p.buttonsStyling?(A([c,u,d],m.styled),p.confirmButtonColor&&(c.style.backgroundColor=p.confirmButtonColor,A(c,m[\"default-outline\"])),p.denyButtonColor&&(u.style.backgroundColor=p.denyButtonColor,A(u,m[\"default-outline\"])),p.cancelButtonColor&&(d.style.backgroundColor=p.cancelButtonColor,A(d,m[\"default-outline\"]))):k([c,u,d],m.styled),n.reverseButtons&&(n.toast?(s.insertBefore(a,i),s.insertBefore(r,i)):(s.insertBefore(a,o),s.insertBefore(r,o),s.insertBefore(i,o))),w(l,t.loaderHtml),C(l,t,\"loader\")};function Pe(e,t,o){se(e,o[`show${D(t)}Button`],\"inline-block\"),w(e,o[t+\"ButtonText\"]),e.setAttribute(\"aria-label\",o[t+\"ButtonAriaLabel\"]),e.className=m[t],C(e,o,t+\"Button\"),A(e,o[t+\"ButtonClass\"])}const xe=(e,t)=>{var o=X();w(o,t.closeButtonHtml),C(o,t,\"closeButton\"),se(o,t.showCloseButton),o.setAttribute(\"aria-label\",t.closeButtonAriaLabel)},Ee=(e,t)=>{var o,n,i=g();i&&(n=i,\"string\"==typeof(o=t.backdrop)?n.style.background=o:o||A([document.documentElement,document.body],m[\"no-backdrop\"]),n=i,(o=t.position)in m?A(n,m[o]):(r('The \"position\" parameter is not valid, defaulting to \"center\"'),A(n,m.center)),o=i,(n=t.grow)&&\"string\"==typeof n&&(n=\"grow-\"+n)in m&&A(o,m[n]),C(i,t,\"container\"))};const Te=[\"input\",\"file\",\"range\",\"select\",\"radio\",\"checkbox\",\"textarea\"],Se=(e,a)=>{const s=h();e=p.innerParams.get(e);const l=!e||a.input!==e.input;if(Te.forEach(e=>{var t=d(s,m[e]);{var o=e,n=a.inputAttributes,i=ne(h(),o);if(i){Le(i);for(const r in n)i.setAttribute(r,n[r])}}t.className=m[e],l&&P(t)}),a.input){if(l){e=a;if(S[e.input]){var t=je(e.input);const o=S[e.input](t,e);B(t),e.inputAutoFocus&&setTimeout(()=>{ie(o)})}else c(`Unexpected type of input! Expected \"text\", \"email\", \"password\", \"number\", \"tel\", \"select\", \"radio\", \"checkbox\", \"textarea\", \"file\" or \"url\", got \"${e.input}\"`)}t=a,e=je(t.input);\"object\"==typeof t.customClass&&A(e,t.customClass.input)}},Le=t=>{for(let e=0;e{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},$e=(e,t,o)=>{var n,i;o.inputLabel&&(e.id=m.input,n=document.createElement(\"label\"),i=m[\"input-label\"],n.setAttribute(\"for\",e.id),n.className=i,\"object\"==typeof o.customClass&&A(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement(\"beforebegin\",n))},je=e=>d(h(),m[e]||m.input),Me=(e,t)=>{[\"string\",\"number\"].includes(typeof t)?e.value=\"\"+t:R(t)||r(`Unexpected type of inputValue! Expected \"string\", \"number\" or \"Promise\", got \"${typeof t}\"`)},S={},He=(S.text=S.email=S.password=S.number=S.tel=S.url=(e,t)=>(Me(e,t.inputValue),$e(e,e,t),Oe(e,t),e.type=t.input,e),S.file=(e,t)=>($e(e,e,t),Oe(e,t),e),S.range=(e,t)=>{var o=e.querySelector(\"input\"),n=e.querySelector(\"output\");return Me(o,t.inputValue),o.type=t.input,Me(n,t.inputValue),$e(o,e,t),e},S.select=(e,t)=>{var o;return e.textContent=\"\",t.inputPlaceholder&&(o=document.createElement(\"option\"),w(o,t.inputPlaceholder),o.value=\"\",o.disabled=!0,o.selected=!0,e.appendChild(o)),$e(e,e,t),e},S.radio=e=>(e.textContent=\"\",e),S.checkbox=(e,t)=>{var o=ne(h(),\"checkbox\"),e=(o.value=\"1\",o.id=m.checkbox,o.checked=Boolean(t.inputValue),e.querySelector(\"span\"));return w(e,t.inputPlaceholder),o},S.textarea=(o,e)=>{Me(o,e.inputValue),Oe(o,e),$e(o,o,e);return setTimeout(()=>{if(\"MutationObserver\"in window){const t=parseInt(window.getComputedStyle(h()).width);new MutationObserver(()=>{var e=o.offsetWidth+(e=o,parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight));e>t?h().style.width=e+\"px\":h().style.width=null}).observe(o,{attributes:!0,attributeFilter:[\"style\"]})}}),o},(e,t)=>{var o=_();C(o,t,\"htmlContainer\"),t.html?(Ce(t.html,o),B(o,\"block\")):t.text?(o.textContent=t.text,B(o,\"block\")):P(o),Se(e,t)}),Ie=(e,t)=>{var o=Z();se(o,t.footer),t.footer&&Ce(t.footer,o),C(o,t,\"footer\")},De=(e,t)=>{var e=p.innerParams.get(e),o=a();e&&t.icon===e.icon?(Re(o,t),qe(o,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(n).indexOf(t.icon)?(c(`Unknown icon! Expected \"success\", \"error\", \"warning\", \"info\" or \"question\", got \"${t.icon}\"`),P(o)):(B(o),Re(o,t),qe(o,t),A(o,t.showClass.icon)):P(o)},qe=(e,t)=>{for(const o in n)t.icon!==o&&k(e,n[o]);A(e,n[t.icon]),Ue(e,t),Ve(),C(e,t,\"icon\")},Ve=()=>{var e=h(),t=window.getComputedStyle(e).getPropertyValue(\"background-color\"),o=e.querySelectorAll(\"[class^=swal2-success-circular-line], .swal2-success-fix\");for(let e=0;e\n \n
    \n
    \n`,Fe=`\n \n \n \n \n`,Re=(e,t)=>{let o=e.innerHTML,n;var i;t.iconHtml?n=_e(t.iconHtml):\"success\"===t.icon?(n=Ne,o=o.replace(/ style=\".*?\"/g,\"\")):n=\"error\"===t.icon?Fe:(i={question:\"?\",warning:\"!\",info:\"i\"},_e(i[t.icon])),o.trim()!==n.trim()&&w(e,n)},Ue=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[\".swal2-success-line-tip\",\".swal2-success-line-long\",\".swal2-x-mark-line-left\",\".swal2-x-mark-line-right\"])ae(e,o,\"backgroundColor\",t.iconColor);ae(e,\".swal2-success-ring\",\"borderColor\",t.iconColor)}},_e=e=>`
    ${e}
    `,We=(e,t)=>{var o=W();t.imageUrl?(B(o,\"\"),o.setAttribute(\"src\",t.imageUrl),o.setAttribute(\"alt\",t.imageAlt),l(o,\"width\",t.imageWidth),l(o,\"height\",t.imageHeight),o.className=m.image,C(o,t,\"image\")):P(o)},ze=(e,t)=>{var o=g(),n=h(),o=(t.toast?(l(o,\"width\",t.width),n.style.width=\"100%\",n.insertBefore(y(),a())):l(n,\"width\",t.width),l(n,\"padding\",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),P(K()),n),n=t;(o.className=m.popup+\" \"+(x(o)?n.showClass.popup:\"\"),n.toast)?(A([document.documentElement,document.body],m[\"toast-shown\"]),A(o,m.toast)):A(o,m.modal);C(o,n,\"popup\"),\"string\"==typeof n.customClass&&A(o,n.customClass);n.icon&&A(o,m[\"icon-\"+n.icon])},Ke=(e,o)=>{const n=z();o.progressSteps&&0!==o.progressSteps.length?(B(n),n.textContent=\"\",o.currentProgressStep>=o.progressSteps.length&&r(\"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)\"),o.progressSteps.forEach((e,t)=>{var e=(e=>{const t=document.createElement(\"li\");return A(t,m[\"progress-step\"]),w(t,e),t})(e);n.appendChild(e),t===o.currentProgressStep&&A(e,m[\"active-progress-step\"]),t!==o.progressSteps.length-1&&(e=(e=>{const t=document.createElement(\"li\");if(A(t,m[\"progress-step-line\"]),e.progressStepsDistance)l(t,\"width\",e.progressStepsDistance);return t})(o),n.appendChild(e))})):P(n)},Ye=(e,t)=>{var o=U();se(o,t.title||t.titleText,\"block\"),t.title&&Ce(t.title,o),t.titleText&&(o.innerText=t.titleText),C(o,t,\"title\")},Ze=(e,t)=>{ze(e,t),Ee(e,t),Ke(e,t),De(e,t),We(e,t),Ye(e,t),xe(e,t),He(e,t),Be(e,t),Ie(e,t),\"function\"==typeof t.didRender&&t.didRender(h())};function Je(){var e,t,o=p.innerParams.get(this);o&&(e=p.domCache.get(this),P(e.loader),ee()?o.icon&&B(a()):(t=(o=e).popup.getElementsByClassName(o.loader.getAttribute(\"data-button-to-replace\"))).length?B(t[0],\"inline-block\"):le()&&P(o.actions),k([e.popup,e.actions],m.loading),e.popup.removeAttribute(\"aria-busy\"),e.popup.removeAttribute(\"data-loading\"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1)}const Xe=()=>f()&&f().click();const L=Object.freeze({cancel:\"cancel\",backdrop:\"backdrop\",close:\"close\",esc:\"esc\",timer:\"timer\"}),Ge=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener(\"keydown\",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Qe=(e,t)=>{var o=G();(o.length?((e+=t)===o.length?e=0:-1===e&&(e=o.length-1),o[e]):h()).focus()},et=[\"ArrowRight\",\"ArrowDown\"],tt=[\"ArrowLeft\",\"ArrowUp\"],ot=(e,o,t)=>{var n=p.innerParams.get(e);if(n&&(!o.isComposing&&229!==o.keyCode))if(n.stopKeydownPropagation&&o.stopPropagation(),\"Enter\"===o.key)e=e,s=o,a=n,N(a.allowEnterKey)&&s.target&&e.getInput()&&s.target instanceof HTMLElement&&s.target.outerHTML===e.getInput().outerHTML&&([\"textarea\",\"file\"].includes(a.input)||(Xe(),s.preventDefault()));else if(\"Tab\"===o.key){e=o;var i=e.target,r=G();let t=-1;for(let e=0;e{Array.from(document.body.children).forEach(e=>{e===g()||e.contains(g())||(e.hasAttribute(\"aria-hidden\")&&e.setAttribute(\"data-previous-aria-hidden\",e.getAttribute(\"aria-hidden\")),e.setAttribute(\"aria-hidden\",\"true\"))})},rt=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute(\"data-previous-aria-hidden\")?(e.setAttribute(\"aria-hidden\",e.getAttribute(\"data-previous-aria-hidden\")),e.removeAttribute(\"data-previous-aria-hidden\")):e.removeAttribute(\"aria-hidden\")})},at=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||\"MacIntel\"===navigator.platform&&1{t=st(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}}var e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);t&&o&&!e.match(/CriOS/i)&&h().scrollHeight>window.innerHeight-44&&(g().style.paddingBottom=\"44px\")}},st=e=>{var t,o=e.target,n=g();return!((t=e).touches&&t.touches.length&&\"stylus\"===t.touches[0].touchType||(t=e).touches&&1{var e;s(document.body,m.iosfix)&&(e=parseInt(document.body.style.top,10),k(document.body,m.iosfix),document.body.style.top=\"\",document.body.scrollTop=-1*e)},ct=()=>{var e,t;null===i.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(i.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue(\"padding-right\")),document.body.style.paddingRight=i.previousBodyPadding+((e=document.createElement(\"div\")).className=m[\"scrollbar-measure\"],document.body.appendChild(e),t=e.getBoundingClientRect().width-e.clientWidth,document.body.removeChild(e),t)+\"px\")},ut=()=>{null!==i.previousBodyPadding&&(document.body.style.paddingRight=i.previousBodyPadding+\"px\",i.previousBodyPadding=null)};function dt(e,t,o,n){ee()?ht(e,n):(me(o).then(()=>ht(e,n)),Ge(E)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute(\"style\",\"display:none !important\"),t.removeAttribute(\"class\"),t.innerHTML=\"\"):t.remove(),Q()&&(ut(),lt(),rt()),k([document.documentElement,document.body],[m.shown,m[\"height-auto\"],m[\"no-backdrop\"],m[\"toast-shown\"]])}function pt(e){e=void 0!==(t=e)?Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t):{isConfirmed:!1,isDenied:!1,isDismissed:!0};var t=nt.swalPromiseResolve.get(this),o=(e=>{const t=h();if(!t)return false;const o=p.innerParams.get(e);if(!o||s(t,o.hideClass.popup))return false;k(t,o.showClass.popup),A(t,o.hideClass.popup);const n=g();return k(n,o.showClass.backdrop),A(n,o.hideClass.backdrop),gt(e,t,o),true})(this);this.isAwaitingPromise()?e.isDismissed||(mt(this),t(e)):o&&t(e)}const mt=e=>{e.isAwaitingPromise()&&(p.awaitingPromise.delete(e),p.innerParams.get(e)||e._destroy())},gt=(e,t,o)=>{var n,i,r,a=g(),s=ke&&ue(t);\"function\"==typeof o.willClose&&o.willClose(t),s?(s=e,n=t,t=a,i=o.returnFocus,r=o.didClose,E.swalCloseEventFinishedCallback=dt.bind(null,s,t,i,r),n.addEventListener(ke,function(e){e.target===n&&(E.swalCloseEventFinishedCallback(),delete E.swalCloseEventFinishedCallback)})):dt(e,a,o.returnFocus,o.didClose)},ht=(e,t)=>{setTimeout(()=>{\"function\"==typeof t&&t.bind(e.params)(),e._destroy()})};function ft(e,t,o){const n=p.domCache.get(e);t.forEach(e=>{n[e].disabled=o})}function bt(e,t){if(e)if(\"radio\"===e.type){var o=e.parentNode.parentNode.querySelectorAll(\"input\");for(let e=0;eObject.prototype.hasOwnProperty.call(O,e),At=e=>-1!==vt.indexOf(e),kt=e=>yt[e],Bt=e=>{!1===e.backdrop&&e.allowOutsideClick&&r('\"allowOutsideClick\" parameter requires `backdrop` parameter to be set to `true`');for(const o in e)t=o,Ct(t)||r(`Unknown parameter \"${t}\"`),e.toast&&(t=o,wt.includes(t))&&r(`The parameter \"${t}\" is incompatible with toasts`),t=o,kt(t)&&V(t,kt(t));var t};const Pt=e=>{e.isAwaitingPromise()?(xt(p,e),p.awaitingPromise.set(e,!0)):(xt(nt,e),xt(p,e))},xt=(e,t)=>{for(const o in e)e[o].delete(t)};e=Object.freeze({__proto__:null,_destroy:function(){var e=p.domCache.get(this),t=p.innerParams.get(this);t?(e.popup&&E.swalCloseEventFinishedCallback&&(E.swalCloseEventFinishedCallback(),delete E.swalCloseEventFinishedCallback),\"function\"==typeof t.didDestroy&&t.didDestroy(),e=this,Pt(e),delete e.params,delete E.keydownHandler,delete E.keydownTarget,delete E.currentInstance):Pt(this)},close:pt,closeModal:pt,closePopup:pt,closeToast:pt,disableButtons:function(){ft(this,[\"confirmButton\",\"denyButton\",\"cancelButton\"],!0)},disableInput:function(){bt(this.getInput(),!0)},disableLoading:Je,enableButtons:function(){ft(this,[\"confirmButton\",\"denyButton\",\"cancelButton\"],!1)},enableInput:function(){bt(this.getInput(),!1)},getInput:function(e){var t=p.innerParams.get(e||this);return(e=p.domCache.get(e||this))?ne(e.popup,t.input):null},handleAwaitingPromise:mt,hideLoading:Je,isAwaitingPromise:function(){return!!p.awaitingPromise.get(this)},rejectPromise:function(e){var t=nt.swalPromiseReject.get(this);mt(this),t&&t(e)},resetValidationMessage:function(){var e=p.domCache.get(this);e.validationMessage&&P(e.validationMessage),(e=this.getInput())&&(e.removeAttribute(\"aria-invalid\"),e.removeAttribute(\"aria-describedby\"),k(e,m.inputerror))},showValidationMessage:function(e){var t=p.domCache.get(this),o=p.innerParams.get(this);w(t.validationMessage,e),t.validationMessage.className=m[\"validation-message\"],o.customClass&&o.customClass.validationMessage&&A(t.validationMessage,o.customClass.validationMessage),B(t.validationMessage),(e=this.getInput())&&(e.setAttribute(\"aria-invalid\",!0),e.setAttribute(\"aria-describedby\",m[\"validation-message\"]),ie(e),A(e,m.inputerror))},update:function(e){var t=h(),o=p.innerParams.get(this);!t||s(t,o.hideClass.popup)?r(\"You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.\"):(t=(t=>{const o={};return Object.keys(t).forEach(e=>{if(At(e))o[e]=t[e];else r(`Invalid parameter to update: ${e}`)}),o})(e),o=Object.assign({},o,t),Ze(this,o),p.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}}))}});const $=e=>{var t,o,n,i=h(),r=(i||new ko,i=h(),y());ee()?P(a()):(t=i,e=e,o=Y(),n=y(),!e&&x(f())&&(e=f()),B(o),e&&(P(e),n.setAttribute(\"data-button-to-replace\",e.className)),n.parentNode.insertBefore(n,e),A([t,o],m.loading)),B(r),i.setAttribute(\"data-loading\",\"true\"),i.setAttribute(\"aria-busy\",\"true\"),i.focus()},Et=(t,o)=>{const n=h(),i=e=>{St[o.input](n,Lt(e),o)};F(o.inputOptions)||R(o.inputOptions)?($(f()),u(o.inputOptions).then(e=>{t.hideLoading(),i(e)})):\"object\"==typeof o.inputOptions?i(o.inputOptions):c(\"Unexpected type of inputOptions! Expected object, Map or Promise, got \"+typeof o.inputOptions)},Tt=(t,o)=>{const n=t.getInput();P(n),u(o.inputValue).then(e=>{n.value=\"number\"===o.input?\"\"+(parseFloat(e)||0):\"\"+e,B(n),n.focus(),t.hideLoading()}).catch(e=>{c(\"Error in inputValue promise: \"+e),n.value=\"\",B(n),n.focus(),t.hideLoading()})},St={select:(e,t,i)=>{const n=d(e,m.select),r=(e,t,o)=>{var n=document.createElement(\"option\");n.value=o,w(n,t),n.selected=Ot(o,i.inputValue),e.appendChild(n)};t.forEach(e=>{var t=e[0],e=e[1];if(Array.isArray(e)){const o=document.createElement(\"optgroup\");o.label=t,o.disabled=!1,n.appendChild(o),e.forEach(e=>r(o,e[1],e[0]))}else r(n,e,t)}),n.focus()},radio:(e,t,i)=>{const r=d(e,m.radio);t.forEach(e=>{var t=e[0],e=e[1],o=document.createElement(\"input\"),n=document.createElement(\"label\"),t=(o.type=\"radio\",o.name=m.radio,o.value=t,Ot(t,i.inputValue)&&(o.checked=!0),document.createElement(\"span\"));w(t,e),t.className=m.label,n.appendChild(o),n.appendChild(t),r.appendChild(n)});e=r.querySelectorAll(\"input\");e.length&&e[0].focus()}},Lt=o=>{const n=[];return\"undefined\"!=typeof Map&&o instanceof Map?o.forEach((e,t)=>{let o=e;\"object\"==typeof o&&(o=Lt(o)),n.push([t,o])}):Object.keys(o).forEach(e=>{let t=o[e];\"object\"==typeof t&&(t=Lt(t)),n.push([e,t])}),n},Ot=(e,t)=>t&&t.toString()===e.toString(),$t=(e,t)=>{var o=p.innerParams.get(e);if(o.input){var n=((e,t)=>{var o,n=e.getInput();if(!n)return null;switch(t.input){case\"checkbox\":return n.checked?1:0;case\"radio\":return(o=n).checked?o.value:null;case\"file\":return(o=n).files.length?null!==o.getAttribute(\"multiple\")?o.files:o.files[0]:null;default:return t.inputAutoTrim?n.value.trim():n.value}})(e,o);if(o.inputValidator){var i=e;var r=n;var a=t;const s=p.innerParams.get(i),l=(i.disableInput(),Promise.resolve().then(()=>u(s.inputValidator(r,s.validationMessage))));l.then(e=>{i.enableButtons(),i.enableInput(),e?i.showValidationMessage(e):(\"deny\"===a?jt:It)(i,r)})}else e.getInput().checkValidity()?(\"deny\"===t?jt:It)(e,n):(e.enableButtons(),e.showValidationMessage(o.validationMessage))}else c('The \"input\" parameter is needed to be set when using returnInputValueOn'+D(t))},jt=(t,o)=>{const e=p.innerParams.get(t||void 0);e.showLoaderOnDeny&&$(v()),e.preDeny?(p.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>u(e.preDeny(o,e.validationMessage))).then(e=>{!1===e?(t.hideLoading(),mt(t)):t.close({isDenied:!0,value:void 0===e?o:e})}).catch(e=>Ht(t||void 0,e))):t.close({isDenied:!0,value:o})},Mt=(e,t)=>{e.close({isConfirmed:!0,value:t})},Ht=(e,t)=>{e.rejectPromise(t)},It=(t,o)=>{const e=p.innerParams.get(t||void 0);e.showLoaderOnConfirm&&$(),e.preConfirm?(t.resetValidationMessage(),p.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>u(e.preConfirm(o,e.validationMessage))).then(e=>{x(K())||!1===e?(t.hideLoading(),mt(t)):Mt(t,void 0===e?o:e)}).catch(e=>Ht(t||void 0,e))):Mt(t,o)},Dt=(o,e,n)=>{e.popup.onclick=()=>{var e,t=p.innerParams.get(o);t&&((e=t).showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||t.timer||t.input)||n(L.close)}};let qt=!1;const Vt=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(qt=!0)}}},Nt=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,e.target!==t.popup&&!t.popup.contains(e.target)||(qt=!0)}}},Ft=(o,n,i)=>{n.container.onclick=e=>{var t=p.innerParams.get(o);qt?qt=!1:e.target===n.container&&N(t.allowOutsideClick)&&i(L.backdrop)}},Rt=e=>\"object\"==typeof e&&e.jquery,Ut=e=>e instanceof Element||Rt(e);const _t=()=>{if(E.timeout)return e=J(),t=parseInt(window.getComputedStyle(e).width),e.style.removeProperty(\"transition\"),e.style.width=\"100%\",o=parseInt(window.getComputedStyle(e).width),e.style.width=t/o*100+\"%\",E.timeout.stop();var e,t,o},Wt=()=>{var e;if(E.timeout)return e=E.timeout.start(),te(e),e};let zt=!1;const Kt={};const Yt=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Kt){var o=e.getAttribute(n);if(o)return void Kt[n].fire({template:o})}};var Zt=Object.freeze({__proto__:null,argsToParams:o=>{const n={};return\"object\"!=typeof o[0]||Ut(o[0])?[\"title\",\"html\",\"icon\"].forEach((e,t)=>{t=o[t];\"string\"==typeof t||Ut(t)?n[e]=t:void 0!==t&&c(`Unexpected type of ${e}! Expected \"string\" or \"Element\", got `+typeof t)}):Object.assign(n,o[0]),n},bindClickHandler:function(){var e=0b()&&b().click(),clickConfirm:Xe,clickDeny:()=>v()&&v().click(),enableLoading:$,fire:function(){for(var e=arguments.length,t=new Array(e),o=0;oo(m[\"icon-content\"]),getImage:W,getInputLabel:()=>o(m[\"input-label\"]),getLoader:y,getPopup:h,getProgressSteps:z,getTimerLeft:()=>E.timeout&&E.timeout.getTimerLeft(),getTimerProgressBar:J,getTitle:U,getValidationMessage:K,increaseTimer:e=>{if(E.timeout)return e=E.timeout.increase(e),te(e,!0),e},isDeprecatedParameter:kt,isLoading:()=>h().hasAttribute(\"data-loading\"),isTimerRunning:()=>E.timeout&&E.timeout.isRunning(),isUpdatableParameter:At,isValidParameter:Ct,isVisible:()=>x(h()),mixin:function(o){class e extends this{_main(e,t){return super._main(e,Object.assign({},o,t))}}return e},resumeTimer:Wt,showLoading:$,stopTimer:_t,toggleTimer:()=>{var e=E.timeout;return e&&(e.running?_t:Wt)()}});class Jt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Xt=[\"swal-title\",\"swal-html\",\"swal-footer\"],Gt=e=>{const o={};return Array.from(e.querySelectorAll(\"swal-param\")).forEach(e=>{j(e,[\"name\",\"value\"]);var t=e.getAttribute(\"name\"),e=e.getAttribute(\"value\");\"boolean\"==typeof O[t]?o[t]=\"false\"!==e:\"object\"==typeof O[t]?o[t]=JSON.parse(e):o[t]=e}),o},Qt=e=>{const o={};return Array.from(e.querySelectorAll(\"swal-function-param\")).forEach(e=>{var t=e.getAttribute(\"name\"),e=e.getAttribute(\"value\");o[t]=new Function(\"return \"+e)()}),o},eo=e=>{const o={};return Array.from(e.querySelectorAll(\"swal-button\")).forEach(e=>{j(e,[\"type\",\"color\",\"aria-label\"]);var t=e.getAttribute(\"type\");o[t+\"ButtonText\"]=e.innerHTML,o[`show${D(t)}Button`]=!0,e.hasAttribute(\"color\")&&(o[t+\"ButtonColor\"]=e.getAttribute(\"color\")),e.hasAttribute(\"aria-label\")&&(o[t+\"ButtonAriaLabel\"]=e.getAttribute(\"aria-label\"))}),o},to=e=>{var t={},e=e.querySelector(\"swal-image\");return e&&(j(e,[\"src\",\"width\",\"height\",\"alt\"]),e.hasAttribute(\"src\")&&(t.imageUrl=e.getAttribute(\"src\")),e.hasAttribute(\"width\")&&(t.imageWidth=e.getAttribute(\"width\")),e.hasAttribute(\"height\")&&(t.imageHeight=e.getAttribute(\"height\")),e.hasAttribute(\"alt\"))&&(t.imageAlt=e.getAttribute(\"alt\")),t},oo=e=>{var t={},e=e.querySelector(\"swal-icon\");return e&&(j(e,[\"type\",\"color\"]),e.hasAttribute(\"type\")&&(t.icon=e.getAttribute(\"type\")),e.hasAttribute(\"color\")&&(t.iconColor=e.getAttribute(\"color\")),t.iconHtml=e.innerHTML),t},no=e=>{const o={};var t=e.querySelector(\"swal-input\"),t=(t&&(j(t,[\"type\",\"label\",\"placeholder\",\"value\"]),o.input=t.getAttribute(\"type\")||\"text\",t.hasAttribute(\"label\")&&(o.inputLabel=t.getAttribute(\"label\")),t.hasAttribute(\"placeholder\")&&(o.inputPlaceholder=t.getAttribute(\"placeholder\")),t.hasAttribute(\"value\"))&&(o.inputValue=t.getAttribute(\"value\")),Array.from(e.querySelectorAll(\"swal-input-option\")));return t.length&&(o.inputOptions={},t.forEach(e=>{j(e,[\"value\"]);var t=e.getAttribute(\"value\"),e=e.innerHTML;o.inputOptions[t]=e})),o},io=(e,t)=>{var o={};for(const r in t){var n=t[r],i=e.querySelector(n);i&&(j(i,[]),o[n.replace(/^swal-/,\"\")]=i.innerHTML.trim())}return o},ro=e=>{const t=Xt.concat([\"swal-param\",\"swal-function-param\",\"swal-button\",\"swal-image\",\"swal-icon\",\"swal-input\",\"swal-input-option\"]);Array.from(e.children).forEach(e=>{e=e.tagName.toLowerCase();t.includes(e)||r(`Unrecognized element <${e}>`)})},j=(t,o)=>{Array.from(t.attributes).forEach(e=>{-1===o.indexOf(e.name)&&r([`Unrecognized attribute \"${e.name}\" on <${t.tagName.toLowerCase()}>.`,o.length?\"Allowed attributes are: \"+o.join(\", \"):\"To set the value, use HTML within the element.\"])})},ao=10,so=e=>{var t=h();e.target===t&&(e=g(),t.removeEventListener(ke,so),e.style.overflowY=\"auto\")},lo=(e,t)=>{ke&&ue(t)?(e.style.overflowY=\"hidden\",t.addEventListener(ke,so)):e.style.overflowY=\"auto\"},co=(e,t,o)=>{at(),t&&\"hidden\"!==o&&ct(),setTimeout(()=>{e.scrollTop=0})},uo=(e,t,o)=>{A(e,o.showClass.backdrop),t.style.setProperty(\"opacity\",\"0\",\"important\"),B(t,\"grid\"),setTimeout(()=>{A(t,o.showClass.popup),t.style.removeProperty(\"opacity\")},ao),A([document.documentElement,document.body],m.shown),o.heightAuto&&o.backdrop&&!o.toast&&A([document.documentElement,document.body],m[\"height-auto\"])};var po,mo,go={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||\"Invalid email address\"),url:(e,t)=>/^https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-z]{2,63}\\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||\"Invalid URL\")};function ho(e){var t,o,n;(t=e).inputValidator||Object.keys(go).forEach(e=>{t.input===e&&(t.inputValidator=go[e])}),e.showLoaderOnConfirm&&!e.preConfirm&&r(\"showLoaderOnConfirm is set to true, but preConfirm is not defined.\\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\\nhttps://sweetalert2.github.io/#ajax-request\"),(o=e).target&&(\"string\"!=typeof o.target||document.querySelector(o.target))&&(\"string\"==typeof o.target||o.target.appendChild)||(r('Target parameter is not valid, defaulting to \"body\"'),o.target=\"body\"),\"string\"==typeof e.title&&(e.title=e.title.split(\"\\n\").join(\"
    \")),o=e,e=fe(),ge()?c(\"SweetAlert2 requires document to initialize\"):((n=document.createElement(\"div\")).className=m.container,e&&A(n,m[\"no-transition\"]),w(n,he),(e=ve(o.target)).appendChild(n),ye(o),we(e),be())}let M;class H{constructor(){if(\"undefined\"!=typeof window){M=this;for(var e=arguments.length,t=new Array(e),o=0;onew Promise((e,t)=>{const o=e=>{c.close({isDismissed:!0,dismiss:e})};var n,i,r;nt.swalPromiseResolve.set(c,e),nt.swalPromiseReject.set(c,t),u.confirmButton.onclick=()=>{var e,t;e=c,t=p.innerParams.get(e),e.disableButtons(),t.input?$t(e,\"confirm\"):It(e,!0)},u.denyButton.onclick=()=>{var e,t;e=c,t=p.innerParams.get(e),e.disableButtons(),t.returnInputValueOnDeny?$t(e,\"deny\"):jt(e,!1)},u.cancelButton.onclick=()=>{var e,t;e=c,t=o,e.disableButtons(),t(L.cancel)},u.closeButton.onclick=()=>{o(L.close)},e=c,t=u,r=o,(p.innerParams.get(e).toast?Dt:(Vt(t),Nt(t),Ft))(e,t,r),n=c,e=E,t=d,i=o,Ge(e),t.toast||(e.keydownHandler=e=>ot(n,e,i),e.keydownTarget=t.keydownListenerCapture?window:h(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener(\"keydown\",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0),r=c,\"select\"===(t=d).input||\"radio\"===t.input?Et(r,t):[\"text\",\"email\",\"number\",\"tel\",\"textarea\"].includes(t.input)&&(F(t.inputValue)||R(t.inputValue))&&($(f()),Tt(r,t));{var a=d;const s=g(),l=h();\"function\"==typeof a.willOpen&&a.willOpen(l),e=window.getComputedStyle(document.body).overflowY,uo(s,l,a),setTimeout(()=>{lo(s,l)},ao),Q()&&(co(s,a.scrollbarPadding,e),it()),ee()||E.previousActiveElement||(E.previousActiveElement=document.activeElement),\"function\"==typeof a.didOpen&&setTimeout(()=>a.didOpen(l)),k(s,m[\"no-transition\"])}yo(E,d,o),wo(u,d),setTimeout(()=>{u.container.scrollTop=0})}),bo=(e,t)=>{var o=(o=\"string\"==typeof(o=e).template?document.querySelector(o.template):o.template)?(o=o.content,ro(o),Object.assign(Gt(o),Qt(o),eo(o),to(o),oo(o),no(o),io(o,Xt))):{},t=Object.assign({},O,t,o,e);return t.showClass=Object.assign({},O.showClass,t.showClass),t.hideClass=Object.assign({},O.hideClass,t.hideClass),t},vo=e=>{var t={popup:h(),container:g(),actions:Y(),confirmButton:f(),denyButton:v(),cancelButton:b(),loader:y(),closeButton:X(),validationMessage:K(),progressSteps:z()};return p.domCache.set(e,t),t},yo=(e,t,o)=>{var n=J();P(n),t.timer&&(e.timeout=new Jt(()=>{o(\"timer\"),delete e.timeout},t.timer),t.timerProgressBar)&&(B(n),C(n,t,\"timerProgressBar\"),setTimeout(()=>{e.timeout&&e.timeout.running&&te(t.timer)}))},wo=(e,t)=>{t.toast||(N(t.allowEnterKey)?Co(e,t)||Qe(-1,1):Ao())},Co=(e,t)=>t.focusDeny&&x(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&x(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!x(e.confirmButton)||(e.confirmButton.focus(),0)),Ao=()=>{document.activeElement instanceof HTMLElement&&\"function\"==typeof document.activeElement.blur&&document.activeElement.blur()},ko=(\"undefined\"!=typeof window&&/^ru\\b/.test(navigator.language)&&location.host.match(/\\.(ru|su|xn--p1ai)$/)&&(po=new Date,(mo=localStorage.getItem(\"swal-initiation\"))?3<(po.getTime()-Date.parse(mo))/864e5&&setTimeout(()=>{document.body.style.pointerEvents=\"none\";const e=document.createElement(\"audio\");e.src=\"https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3\",e.loop=!0,document.body.appendChild(e),setTimeout(()=>{e.play().catch(()=>{})},2500)},500):localStorage.setItem(\"swal-initiation\",\"\"+po)),Object.assign(H.prototype,e),Object.assign(H,Zt),Object.keys(e).forEach(e=>{H[e]=function(){if(M)return M[e](...arguments)}}),H.DismissReason=L,H.version=\"11.7.3\",H);return ko.default=ko}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2);","!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.Quill=e():t.Quill=e()}(\"undefined\"!=typeof self?self:this,function(){return n=[function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=n(17),r=n(18),i=n(19),l=n(45),a=n(46),s=n(47),u=n(48),c=n(49),f=n(12),h=n(32),p=n(33),d=n(31),n=n(1),n={Scope:n.Scope,create:n.create,find:n.find,query:n.query,register:n.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=n},function(t,o,e){\"use strict\";var r,n,i=this&&this.__extends||(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=(Object.defineProperty(o,\"__esModule\",{value:!0}),n=Error,i(a,n),a);function a(t){var e=this;return(e=n.call(this,t=\"[Parchment] \"+t)||this).message=t,e.name=e.constructor.name,e}o.ParchmentError=l;var s,u={},c={},f={},h={};function p(t,e){var n;if(void 0===e&&(e=s.ANY),\"string\"==typeof t)n=h[t]||u[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=h.text;else if(\"number\"==typeof t)t&s.LEVEL&s.BLOCK?n=h.block:t&s.LEVEL&s.INLINE&&(n=h.inline);else if(t instanceof HTMLElement){var o,r=(t.getAttribute(\"class\")||\"\").split(/\\s+/);for(o in r)if(n=c[r[o]])break;n=n||f[t.tagName]}return null!=n&&e&s.LEVEL&n.scope&&e&s.TYPE&n.scope?n:null}o.DATA_KEY=\"__blot\",(i=s=o.Scope||(o.Scope={}))[i.TYPE=3]=\"TYPE\",i[i.LEVEL=12]=\"LEVEL\",i[i.ATTRIBUTE=13]=\"ATTRIBUTE\",i[i.BLOT=14]=\"BLOT\",i[i.INLINE=7]=\"INLINE\",i[i.BLOCK=11]=\"BLOCK\",i[i.BLOCK_BLOT=10]=\"BLOCK_BLOT\",i[i.INLINE_BLOT=6]=\"INLINE_BLOT\",i[i.BLOCK_ATTRIBUTE=9]=\"BLOCK_ATTRIBUTE\",i[i.INLINE_ATTRIBUTE=5]=\"INLINE_ATTRIBUTE\",i[i.ANY=15]=\"ANY\",o.create=function(t,e){var n=p(t);if(null==n)throw new l(\"Unable to create \"+t+\" blot\");return t=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:n.create(e),new n(t,e)},o.find=function t(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[o.DATA_KEY]?e[o.DATA_KEY].blot:n?t(e.parentNode,n):null},o.query=p,o.register=function e(){for(var t=[],n=0;n=this.length()-1)?(e=this.clone(),0===t?(this.parent.insertBefore(e,this),this):(this.parent.insertBefore(e,this.next),e)):(e=i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"split\",this).call(this,t,n),this.cache={},e)}}]);var b=g;function g(t){h(this,g);t=p(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t));return t.cache={},t}function m(t){var e=1\"+n+\"


    \");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute(\"data-placeholder\",this.options.placeholder),this.options.readOnly&&this.disable()}function w(t,n){if((n=(0,d.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},n)).theme&&n.theme!==_.DEFAULTS.theme){if(n.theme=_.import(\"themes/\"+n.theme),null==n.theme)throw new Error(\"Invalid theme \"+n.theme+\". Did you register it?\")}else n.theme=v.default;t=(0,d.default)(!0,{},n.theme.DEFAULTS);[t,n].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var e=Object.keys(t.modules).concat(Object.keys(n.modules)).reduce(function(t,e){var n=_.import(\"modules/\"+e);return null==n?m.error(\"Cannot load \"+e+\" module. Are you sure you registered it?\"):t[e]=n.DEFAULTS||{},t},{});return null!=n.modules&&n.modules.toolbar&&n.modules.toolbar.constructor!==Object&&(n.modules.toolbar={container:n.modules.toolbar}),n=(0,d.default)(!0,{},_.DEFAULTS,{modules:e},t,n),[\"bounds\",\"container\",\"scrollingContainer\"].forEach(function(t){\"string\"==typeof n[t]&&(n[t]=document.querySelector(n[t]))}),n.modules=Object.keys(n.modules).reduce(function(t,e){return n.modules[e]&&(t[e]=n.modules[e]),t},{}),n}function x(t,e,n,o){var r,i;return this.options.strict&&!this.isEnabled()&&e===u.default.sources.USER?new s.default:(i=null==n?null:this.getSelection(),r=this.editor.delta,t=t(),null!=i&&(!0===n&&(n=i.index),null==o?i=E(i,t,e):0!==o&&(i=E(i,n,o,e)),this.setSelection(i,u.default.sources.SILENT)),0n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),t):null}},{key:\"rangeToNative\",value:function(t){var o=this,t=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],i=this.scroll.length();return t.forEach(function(t,e){t=Math.min(i-1,t);var t=o.scroll.leaf(t),t=l(t,2),n=t[0],t=t[1],n=n.position(t,0!==e),e=l(n,2),n=e[0],t=e[1];r.push(n,t)}),r=r.length<2?r.concat(r):r}},{key:\"scrollIntoView\",value:function(t){var e,n,o,r,i=this.lastRange;null!=i&&null!=(e=this.getBounds(i.index,i.length))&&(r=this.scroll.length()-1,n=this.scroll.line(Math.min(i.index,r)),o=n=l(n,1)[0],0r.bottom&&(t.scrollTop+=e.bottom-r.bottom))}},{key:\"setNativeRange\",value:function(t,e){var n,o,r=2=this.length()?null==n||null==s.default.query(e,s.default.Scope.BLOCK)?(o=s.default.create(this.statics.defaultChild),this.appendChild(o),null==n&&e.endsWith(\"\\n\")&&(e=e.slice(0,-1)),o.insertAt(0,e,n)):(o=s.default.create(e,n),this.appendChild(o)):a(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"insertAt\",this).call(this,t,e,n),this.optimize())}},{key:\"insertBefore\",value:function(t,e){var n;t.statics.scope===s.default.Scope.INLINE_BLOT&&((n=s.default.create(this.statics.defaultChild)).appendChild(t),t=n),a(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"insertBefore\",this).call(this,t,e)}},{key:\"leaf\",value:function(t){return this.path(t).pop()||[null,-1]}},{key:\"line\",value:function(t){return t===this.length()?this.line(t-1):this.descendant(d,t)}},{key:\"lines\",value:function(){return function o(t,e,n){var r=[],i=n;return t.children.forEachAt(e,n,function(t,e,n){d(t)?r.push(t):t instanceof s.default.Container&&(r=r.concat(o(t,e,i))),i-=n}),r}(this,0=this.quill.getLength()-l||(r={},i=0,n=this.quill.getLine(t.index),n=p(n,1)[0],e.offset>=n.length()-1&&(e=this.quill.getLine(t.index+1),e=p(e,1)[0])&&(n=n.formats(),o=this.quill.getFormat(t.index,1),r=s.default.attributes.diff(n,o)||{},i=e.length()),this.quill.deleteText(t.index,l,u.default.sources.USER),0n&&0this.options.maxStack)&&this.stack.undo.shift()}},{key:\"redo\",value:function(){this.change(\"redo\",\"undo\")}},{key:\"transform\",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:\"undo\",value:function(){this.change(\"undo\",\"redo\")}}]),n}(a(n(9)).default);function s(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),e=t.length()-e;return null!=(t=(t=t).ops[t.ops.length-1])&&(null!=t.insert?\"string\"==typeof t.insert&&t.insert.endsWith(\"\\n\"):null!=t.attributes&&Object.keys(t.attributes).some(function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)}))&&--e,e}n.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=n,e.getLastChangeIndex=s},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.BaseTooltip=void 0;var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;nn.length)&&(e=n.length),e-=t.length,n.indexOf(t,e));return-1!==n&&n===e}),Array.prototype.find||Object.defineProperty(Array.prototype,\"find\",{value:function(t){if(null===this)throw new TypeError(\"Array.prototype.find called on null or undefined\");if(\"function\"!=typeof t)throw new TypeError(\"predicate must be a function\");for(var e,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;ie.length?t:e,o=t.length>e.length?e:t,r=n.indexOf(o);if(-1!=r)return n=[[N,n.substring(0,r)],[u,o],[N,n.substring(r+o.length)]],t.length>e.length&&(n[0][0]=n[2][0]=E),n;if(1==o.length)return[[E,t],[N,e]];r=function(t,e){var n=t.length>e.length?t:e,o=t.length>e.length?e:t;if(n.length<4||2*o.length=t.length?[o,r,i,l,u]:null}var i,l,a,s,u=r(n,o,Math.ceil(n.length/4)),o=r(n,o,Math.ceil(n.length/2));{if(!u&&!o)return null;n=!o||u&&u[4].length>o[4].length?u:o}t.length>e.length?(i=n[0],l=n[1],a=n[2],s=n[3]):(a=n[0],s=n[1],i=n[2],l=n[3]);u=n[4];return[i,l,a,s,u]}(t,e);{var i,l;if(r)return n=r[0],o=r[1],l=r[2],i=r[3],r=r[4],n=a(n,l),l=a(o,i),n.concat([[u,r]],l)}return function(t,e){for(var n=t.length,o=e.length,r=Math.ceil((n+o)/2),i=r,l=2*r,a=new Array(l),s=new Array(l),u=0;u\\r?\\n +\\<\"),this.convert()):(t=this.quill.getFormat(this.quill.selection.savedRange.index))[d.default.blotName]?(e=this.container.innerText,this.container.innerHTML=\"\",(new a.default).insert(e,m({},d.default.blotName,t[d.default.blotName]))):(e=this.prepareMatching(),e=(t=l(e,2))[0],t=t[1],j(e=function o(r,i,l){return r.nodeType===r.TEXT_NODE?l.reduce(function(t,e){return e(r,t)},new a.default):r.nodeType===r.ELEMENT_NODE?[].reduce.call(r.childNodes||[],function(t,n){var e=o(n,i,l);return n.nodeType===r.ELEMENT_NODE&&(e=i.reduce(function(t,e){return e(n,t)},e),e=(n[O]||[]).reduce(function(t,e){return e(n,t)},e)),t.concat(e)},new a.default):new a.default}(this.container,e,t),\"\\n\")&&null==e.ops[e.ops.length-1].attributes&&(e=e.compose((new a.default).retain(e.length()-1).delete(1))),_.log(\"convert\",this.container.innerHTML,e),this.container.innerHTML=\"\",e)}},{key:\"dangerouslyPasteHTML\",value:function(t,e){var n=2t.offsetTop+1.5*n)&&e.insert(\"\\n\"),e}function L(t,e){var n,o=t.data;return\"O:P\"===t.parentNode.tagName?e.insert(o.trim()):0===o.trim().length&&t.parentNode.classList.contains(\"ql-clipboard\")?e:(!N(t.parentNode).whiteSpace.startsWith(\"pre\")&&(n=function(t,e){return(e=e.replace(/[^\\u00a0]/g,\"\")).length<1&&t?\" \":e},o=(o=o.replace(/\\r\\n/g,\" \").replace(/\\n/g,\" \")).replace(/\\s\\s+/g,n.bind(n,!0)),(null==t.previousSibling&&A(t.parentNode)||null!=t.previousSibling&&A(t.previousSibling))&&(o=o.replace(/^\\s+/,n.bind(n,!1))),null==t.nextSibling&&A(t.parentNode)||null!=t.nextSibling&&A(t.nextSibling))&&(o=o.replace(/\\s+$/,n.bind(n,!1))),e.insert(o))}c.DEFAULTS={matchers:[],matchVisual:!0},t.default=c,t.matchAttributor=T,t.matchBlot=P,t.matchNewline=S,t.matchSpacing=C,t.matchText=L},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n '},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;no.right&&(i=o.right-r.right,this.root.style.left=e+i+\"px\"),r.lefto.bottom&&(e=r.bottom-r.top,o=t.bottom-t.top+e,this.root.style.top=n-o+\"px\",this.root.classList.add(\"ql-flip\")),i}},{key:\"show\",value:function(){this.root.classList.remove(\"ql-editing\"),this.root.classList.remove(\"ql-hidden\")}}]),e.default=r},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n','','',''].join(\"\"),e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=L(n(29)),r=n(36),i=n(38),l=n(64),a=L(n(65)),s=L(n(66)),u=n(67),c=L(u),f=n(37),h=n(26),p=n(39),d=n(40),y=L(n(56)),v=L(n(68)),b=L(n(27)),g=L(n(69)),m=L(n(70)),_=L(n(71)),O=L(n(72)),w=L(n(73)),x=n(13),k=L(x),E=L(n(74)),N=L(n(75)),j=L(n(57)),A=L(n(41)),q=L(n(28)),T=L(n(59)),P=L(n(60)),S=L(n(61)),C=L(n(108)),n=L(n(62));function L(t){return t&&t.__esModule?t:{default:t}}o.default.register({\"attributors/attribute/direction\":i.DirectionAttribute,\"attributors/class/align\":r.AlignClass,\"attributors/class/background\":f.BackgroundClass,\"attributors/class/color\":h.ColorClass,\"attributors/class/direction\":i.DirectionClass,\"attributors/class/font\":p.FontClass,\"attributors/class/size\":d.SizeClass,\"attributors/style/align\":r.AlignStyle,\"attributors/style/background\":f.BackgroundStyle,\"attributors/style/color\":h.ColorStyle,\"attributors/style/direction\":i.DirectionStyle,\"attributors/style/font\":p.FontStyle,\"attributors/style/size\":d.SizeStyle},!0),o.default.register({\"formats/align\":r.AlignClass,\"formats/direction\":i.DirectionClass,\"formats/indent\":l.IndentClass,\"formats/background\":f.BackgroundStyle,\"formats/color\":h.ColorStyle,\"formats/font\":p.FontClass,\"formats/size\":d.SizeClass,\"formats/blockquote\":a.default,\"formats/code-block\":k.default,\"formats/header\":s.default,\"formats/list\":c.default,\"formats/bold\":y.default,\"formats/code\":x.Code,\"formats/italic\":v.default,\"formats/link\":b.default,\"formats/script\":g.default,\"formats/strike\":m.default,\"formats/underline\":_.default,\"formats/image\":O.default,\"formats/video\":w.default,\"formats/list/item\":u.ListItem,\"modules/formula\":E.default,\"modules/syntax\":N.default,\"modules/toolbar\":j.default,\"themes/bubble\":C.default,\"themes/snow\":n.default,\"ui/icons\":A.default,\"ui/picker\":q.default,\"ui/icon-picker\":P.default,\"ui/color-picker\":T.default,\"ui/tooltip\":S.default},!0),e.default=o.default},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.IndentClass=void 0;var r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t};function o(t,e){for(var n=0;n '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.BubbleTooltip=void 0;function r(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?r(o,e,n):void 0}var o=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n','
    ','','',\"
    \"].join(\"\"),e.BubbleTooltip=g,e.default=n},function(t,e,n){t.exports=n(63)}],r={},o.m=n,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,\"a\",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p=\"\",o(o.s=109).default;function o(t){var e;return(r[t]||(e=r[t]={i:t,l:!1,exports:{}},n[t].call(e.exports,e,e.exports,o),e.l=!0,e)).exports}var n,r});","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).Tagify=e()}(this,function(){\"use strict\";function e(e,t){var i,s=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)),s}function n(s){for(var t=1;t(t=\"\"+t,e=\"\"+e,s&&(t=t.trim(),e=e.trim()),i?t==e:t.toLowerCase()==e.toLowerCase()),i=(t,e)=>t&&Array.isArray(t)&&t.map(t=>r(t,e));function r(t,e){var i,s={};for(i in t)e.indexOf(i)<0&&(s[i]=t[i]);return s}function g(t){var e=document.createElement(\"div\");t.replace(/\\&#?[0-9a-z]+;/gi,function(t){return e.innerHTML=t,e.innerText})}function s(t){return(new DOMParser).parseFromString(t.trim(),\"text/html\").body.firstElementChild}function p(t,e){for(e=e||\"previous\";t=t[e+\"Sibling\"];)if(3==t.nodeType)return t}function l(t){return\"string\"==typeof t?t.replace(/&/g,\"&\").replace(//g,\">\").replace(/\"/g,\""\").replace(/`|'/g,\"'\"):t}function u(t){var e=Object.prototype.toString.call(t).split(\" \")[1].slice(0,-1);return t===Object(t)&&\"Array\"!=e&&\"Function\"!=e&&\"RegExp\"!=e&&\"HTMLUnknownElement\"!=e}function h(t,e,i){function s(t,e){for(var i in e)if(e.hasOwnProperty(i)){if(u(e[i])){u(t[i])?s(t[i],e[i]):t[i]=Object.assign({},e[i]);continue}if(Array.isArray(e[i])){t[i]=Object.assign([],e[i]);continue}t[i]=e[i]}}return s(t=t instanceof Object?t:{},e),i&&s(t,i),t}function a(){var t,e=[],i={};for(t of arguments)for(var s of t)u(s)?i[s.value]||(e.push(s),i[s.value]=1):e.includes(s)||e.push(s);return e}function m(t){return String.prototype.normalize?\"string\"==typeof t?t.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\"):void 0:t}var c=()=>/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent);function d(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function v(t){return t&&t.classList&&t.classList.contains(this.settings.classNames.tag)}function f(t,e){var i=window.getSelection();return e=e||i.getRangeAt(0),\"string\"==typeof t&&(t=document.createTextNode(t)),e&&(e.deleteContents(),e.insertNode(t)),t}function T(t,e,i){return t?(e&&(t.__tagifyTagData=i?e:h({},t.__tagifyTagData||{},e)),t.__tagifyTagData):(console.warn(\"tag element doesn't exist\",t,e),e)}var w={delimiters:\",\",pattern:null,tagTextProp:\"value\",maxTags:1/0,callbacks:{},addTagOnBlur:!0,onChangeAfterBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,keepInvalidTags:!1,createInvalidTags:!0,mixTagsAllowedAfter:/,|\\.|\\:|\\s/,mixTagsInterpolator:[\"[[\",\"]]\"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:()=>{},trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:\" \"},autoComplete:{enabled:!0,rightKey:!1},classNames:{namespace:\"tagify\",mixMode:\"tagify--mix\",selectMode:\"tagify--select\",input:\"tagify__input\",focus:\"tagify--focus\",tagNoAnimation:\"tagify--noAnim\",tagInvalid:\"tagify--invalid\",tagNotAllowed:\"tagify--notAllowed\",scopeLoading:\"tagify--loading\",hasMaxTags:\"tagify--hasMaxTags\",hasNoTags:\"tagify--noTags\",empty:\"tagify--empty\",inputInvalid:\"tagify__input--invalid\",dropdown:\"tagify__dropdown\",dropdownWrapper:\"tagify__dropdown__wrapper\",dropdownHeader:\"tagify__dropdown__header\",dropdownFooter:\"tagify__dropdown__footer\",dropdownItem:\"tagify__dropdown__item\",dropdownItemActive:\"tagify__dropdown__item--active\",dropdownItemHidden:\"tagify__dropdown__item--hidden\",dropdownInital:\"tagify__dropdown--initial\",tag:\"tagify__tag\",tagText:\"tagify__tag-text\",tagX:\"tagify__tag__removeBtn\",tagLoading:\"tagify__tag--loading\",tagEditing:\"tagify__tag--editable\",tagFlash:\"tagify__tag--flash\",tagHide:\"tagify__tag--hide\"},dropdown:{classname:\"\",enabled:2,maxItems:10,searchKeys:[\"value\",\"searchBy\"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,includeSelectedTags:!1,highlightFirst:!1,closeOnSelect:!0,clearOnSelect:!0,position:\"all\",appendTarget:null},hooks:{beforeRemoveTag:()=>Promise.resolve(),beforePaste:()=>Promise.resolve(),suggestionClick:()=>Promise.resolve()}};const b=1,y=\"@yaireo/tagify/\";var x,O={empty:\"empty\",exceed:\"number of tags exceeded\",pattern:\"pattern mismatch\",duplicate:\"already exists\",notAllowed:\"not allowed\"};var t={customBinding(){this.customEventsList.forEach(t=>{this.on(t,this.settings.callbacks[t])})},binding(){var t,e=!(0{this.placeCaretAfterNode(n),this.DOM.input.click()});if(\"BR\"==o.anchorNode.nodeName)return;if((r||l)&&1==o.anchorNode.nodeType?a=0==o.anchorOffset?r?d[0]:null:d[Math.min(d.length,o.anchorOffset)-1]:r?a=o.anchorNode.nextElementSibling:l instanceof Element&&(a=l),3==o.anchorNode.nodeType&&!o.anchorNode.nodeValue&&o.anchorNode.previousElementSibling&&t.preventDefault(),(l||r)&&!e.backspace)return void t.preventDefault();if(\"Range\"!=o.type&&!o.anchorOffset&&o.anchorNode==this.DOM.input&&\"Delete\"!=t.key)return void t.preventDefault();if(\"Range\"!=o.type&&a&&a.hasAttribute(\"readonly\"))return void this.placeCaretAfterNode(p(a));clearTimeout(x),x=setTimeout(()=>{var t=document.getSelection();g(this.DOM.input.innerHTML),r||t.anchorNode.previousSibling,this.value=[].map.call(d,(t,e)=>{var i=T(t);if(t.parentNode||i.readonly)return i;this.trigger(\"remove\",{tag:t,index:e,data:i})}).filter(t=>t)},20)}return!0}switch(t.key){case\"Backspace\":\"select\"==e.mode&&e.enforceWhitelist&&this.value.length?this.removeTags():this.state.dropdown.visible&&\"manual\"!=e.dropdown.position||\"\"!=t.target.textContent&&8203!=i.charCodeAt(0)||(!0===e.backspace?this.removeTags():\"edit\"==e.backspace&&setTimeout(this.editTag.bind(this),0));break;case\"Esc\":case\"Escape\":this.state.dropdown.visible||t.target.blur();break;case\"Down\":case\"ArrowDown\":this.state.dropdown.visible||this.dropdown.show();break;case\"ArrowRight\":var h=this.state.inputSuggestion||this.state.ddItemData;if(h&&e.autoComplete.rightKey)return void this.addTags([h],!0);break;case\"Tab\":h=\"select\"==e.mode;if(!i||h)return!0;t.preventDefault();case\"Enter\":if(this.state.dropdown.visible&&\"manual\"!=e.dropdown.position)return;t.preventDefault(),setTimeout(()=>{this.state.dropdown.visible||this.state.actions.selectOption||this.addTags(i,!0)})}}},onInput(t){this.postUpdate();var e=this.settings;if(\"mix\"==e.mode)return this.events.callbacks.onMixTagsInput.call(this,t);var t=this.input.normalize.call(this),i=t.length>=e.dropdown.enabled,s={value:t,inputElm:this.DOM.input},a=this.validateTag({value:t});\"select\"==e.mode&&this.toggleScopeValidation(a),s.isValid=a,this.state.inputText!=t&&(this.input.set.call(this,t,!1),-1!=t.search(e.delimiters)?this.addTags(t)&&this.input.set.call(this):0<=e.dropdown.enabled&&this.dropdown[i?\"show\":\"hide\"](t),this.trigger(\"input\",s))},onMixTagsInput(t){var e,i,s,a=this.settings,n=this.value.length,o=this.getTagElms(),r=document.createDocumentFragment(),l=window.getSelection().getRangeAt(0),d=[].map.call(o,t=>T(t).value);if(\"deleteContentBackward\"==t.inputType&&c()&&this.events.callbacks.onKeydown.call(this,{target:t.target,key:\"Backspace\"}),this.value.slice().forEach(t=>{t.readonly&&!d.includes(t.value)&&r.appendChild(this.createTagElem(t))}),r.childNodes.length&&(l.insertNode(r),this.setRangeAtStartEnd(!1,r.lastChild)),o.length!=n)this.value=[].map.call(this.getTagElms(),t=>T(t)),this.update({withoutChangeEvent:!0});else{if(this.hasMaxTags())return!0;if(window.getSelection&&0<(t=window.getSelection()).rangeCount&&3==t.anchorNode.nodeType){if((l=t.getRangeAt(0).cloneRange()).collapse(!0),l.setStart(t.focusNode,0),n=(o=l.toString().slice(0,l.endOffset)).split(a.pattern).length-1,e=(l=o.match(a.pattern))?o.slice(o.lastIndexOf(l[l.length-1])):e){if(this.state.actions.ArrowLeft=!1,this.state.tag={prefix:e.match(a.pattern)[0],value:e.replace(a.pattern,\"\")},this.state.tag.baseOffset=t.baseOffset-this.state.tag.value.length,o=this.state.tag.value.match(a.delimiters))return this.state.tag.value=this.state.tag.value.replace(a.delimiters,\"\"),this.state.tag.delimiters=o[0],this.addTags(this.state.tag.value,a.dropdown.clearOnSelect),void this.dropdown.hide();i=this.state.tag.value.length>=a.dropdown.enabled;try{s=(s=this.state.flaggedTags[this.state.tag.baseOffset]).prefix==this.state.tag.prefix&&s.value[0]==this.state.tag.value[0],this.state.flaggedTags[this.state.tag.baseOffset]&&!this.state.tag.value&&delete this.state.flaggedTags[this.state.tag.baseOffset]}catch(t){}(s||n{this.update({withoutChangeEvent:!0}),this.trigger(\"input\",h({},this.state.tag,{textContent:this.DOM.input.textContent})),this.state.tag&&this.dropdown[i?\"show\":\"hide\"](this.state.tag.value)},10)}},onInputIE(t){var e=this;setTimeout(function(){e.events.callbacks.onInput.call(e,t)})},observeOriginalInputValue(){this.DOM.originalInput.parentNode||this.destroy(),this.DOM.originalInput.value!=this.DOM.originalInput.tagifyValue&&this.loadOriginalValues()},onClickAnywhere(t){t.target==this.DOM.scope||this.DOM.scope.contains(t.target)||(this.toggleFocusClass(!1),this.state.hasFocus=!1)},onClickScope(t){var e=this.settings,i=t.target.closest(\".\"+e.classNames.tag),s=+new Date-this.state.hasFocus;t.target==this.DOM.scope?this.DOM.input.focus():t.target.classList.contains(e.classNames.tagX)?this.removeTags(t.target.parentNode):i?(this.trigger(\"click\",{tag:i,index:this.getNodeIndex(i),data:T(i),event:t}),1!==e.editTags&&1!==e.editTags.clicks||this.events.callbacks.onDoubleClickScope.call(this,t)):t.target==this.DOM.input&&(\"mix\"==e.mode&&this.fixFirefoxLastTagNoCaret(),500{(t=void 0===t?i:t)&&(this.injectAtCaret(t,window.getSelection().getRangeAt(0)),\"mix\"==this.settings.mode?this.events.callbacks.onMixTagsInput.call(this,e):this.settings.pasteAsTags?this.addTags(this.state.inputText+t,!0):this.state.inputText=t)}).catch(t=>t))},onDrop(t){t.preventDefault()},onEditTagInput(t,e){var i=t.closest(\".\"+this.settings.classNames.tag),s=this.getNodeIndex(i),a=T(i),n=this.input.normalize.call(this,t),o={[this.settings.tagTextProp]:n,__tagId:a.__tagId},r=this.validateTag(o);this.editTagChangeDetected(h(a,o))||!0!==t.originalIsValid||(r=!0),i.classList.toggle(this.settings.classNames.tagInvalid,!0!==r),a.__isValid=r,i.title=!0===r?a.title||a.value:r,n.length>=this.settings.dropdown.enabled&&(this.state.editing&&(this.state.editing.value=n),this.dropdown.show(n)),this.trigger(\"edit:input\",{tag:i,index:s,data:h({},this.value[s],{newValue:n}),event:e})},onEditTagPaste(t,e){var i=(e.clipboardData||window.clipboardData).getData(\"Text\"),e=(e.preventDefault(),f(i));this.setRangeAtStartEnd(!1,e)},onEditTagFocus(t){this.state.editing={scope:t,input:t.querySelector(\"[contenteditable]\")}},onEditTagBlur(t){if(this.state.hasFocus||this.toggleFocusClass(),this.DOM.scope.contains(t)){var e=this.settings,i=t.closest(\".\"+e.classNames.tag),s=T(i),t=this.input.normalize.call(this,t),a={[e.tagTextProp]:t,__tagId:s.__tagId},n=s.__originalData,s=this.editTagChangeDetected(h(s,a)),a=this.validateTag(a);if(t)if(s){if(s=this.hasMaxTags(),t=h({},n,{[e.tagTextProp]:this.trim(t),__isValid:a}),e.transformTag.call(this,t,n),!0!==(a=(!s||!0===n.__isValid)&&this.validateTag(t))){if(this.trigger(\"invalid\",{data:t,tag:i,message:a}),e.editTags.keepInvalid)return;e.keepInvalidTags?t.__isValid=a:t=n}else e.keepInvalidTags&&(delete t.title,delete t[\"aria-invalid\"],delete t.class);this.onEditTagDone(i,t)}else this.onEditTagDone(i,n);else this.onEditTagDone(i)}},onEditTagkeydown(t,e){if(!this.state.composing)switch(this.trigger(\"edit:keydown\",{event:t}),t.key){case\"Esc\":case\"Escape\":e.parentNode.replaceChild(e.__tagifyTagData.__originalHTML,e),this.state.editing=!1;case\"Enter\":case\"Tab\":t.preventDefault(),t.target.blur()}},onDoubleClickScope(t){var e,t=t.target.closest(\".\"+this.settings.classNames.tag),i=T(t),s=this.settings;t&&s.userInput&&!1!==i.editable&&(i=t.classList.contains(this.settings.classNames.tagEditing),e=t.hasAttribute(\"readonly\"),\"select\"==s.mode||s.readonly||i||e||!this.settings.editTags||this.editTag(t),this.toggleFocusClass(!0),this.trigger(\"dblclick\",{tag:t,index:this.getNodeIndex(t),data:T(t)}))},onInputDOMChange(t){t.forEach(t=>{t.addedNodes.forEach(i=>{if(\"

    \"==i.outerHTML)i.replaceWith(document.createElement(\"br\"));else if(1==i.nodeType&&i.querySelector(this.settings.classNames.tagSelector)){let t=document.createTextNode(\"\");3==i.childNodes[0].nodeType&&\"BR\"!=i.previousSibling.nodeName&&(t=document.createTextNode(\"\\n\")),i.replaceWith(t,...[...i.childNodes].slice(0,-1)),this.placeCaretAfterNode(t)}else if(v.call(this,i)&&(3!=i.previousSibling?.nodeType||i.previousSibling.textContent||i.previousSibling.remove(),i.previousSibling)&&\"BR\"==i.previousSibling.nodeName){i.previousSibling.replaceWith(\"\\n​\");let t=i.nextSibling,e=\"\";for(;t;)e+=t.textContent,t=t.nextSibling;e.trim()&&this.placeCaretAfterNode(i.previousSibling)}}),t.removedNodes.forEach(t=>{t&&\"BR\"==t.nodeName&&v.call(this,e)&&(this.removeTags(e),this.fixFirefoxLastTagNoCaret())})});var e=this.DOM.input.lastChild;e&&\"\"==e.nodeValue&&e.remove(),e&&\"BR\"==e.nodeName||this.DOM.input.appendChild(document.createElement(\"br\"))}}};function D(t,e){if(!t){console.warn(\"Tagify:\",\"input element not found\",t);const l=new Proxy(this,{get(){return()=>l}});return l}if(t.__tagify)return console.warn(\"Tagify: \",\"input element is already Tagified - Same instance is returned.\",t),t.__tagify;function i(e,t,i){i&&t.split(/\\s+/g).forEach(t=>r[e+\"EventListener\"].call(r,t,i))}var o,r,a,n,s;h(this,(o=this,r=document.createTextNode(\"\"),{off(t,e){return i(\"remove\",t,e),this},on(t,e){return e&&\"function\"==typeof e&&i(\"add\",t,e),this},trigger(t,e,i){var s;if(i=i||{cloneData:!0},t)if(o.settings.isJQueryPlugin)\"remove\"==t&&(t=\"removeTag\"),jQuery(o.DOM.originalInput).triggerHandler(t,[e]);else{try{var a=\"object\"==typeof e?e:{value:e};if((a=i.cloneData?h({},a):a).tagify=this,e.event&&(a.event=this.cloneEvent(e.event)),e instanceof Object)for(var n in e)e[n]instanceof HTMLElement&&(a[n]=e[n]);s=new CustomEvent(t,{detail:a})}catch(t){console.warn(t)}r.dispatchEvent(s)}}})),this.isFirefox=/firefox|fxios/i.test(navigator.userAgent)&&!/seamonkey/i.test(navigator.userAgent),this.isIE=window.document.documentMode,e=e||{},this.getPersistedData=(a=e.id,t=>{let e=\"/\"+t,i,s=localStorage.getItem(y+a+\"/v\",b)==b;if(s)try{i=JSON.parse(localStorage[y+a+e])}catch(t){}return i}),this.setPersistedData=(n=e.id)?(localStorage.setItem(y+n+\"/v\",b),(t,e)=>{var i=\"/\"+e,s=JSON.stringify(t);t&&e&&(localStorage.setItem(y+n+i,s),dispatchEvent(new Event(\"storage\")))}):()=>{},this.clearPersistedData=(s=e.id,t=>{var e=y+\"/\"+s+\"/\";if(t)localStorage.removeItem(e+t);else for(var i in localStorage)i.includes(e)&&localStorage.removeItem(i)}),this.applySettings(t,e),this.state={inputText:\"\",editing:!1,composing:!1,actions:{},mixMode:{},dropdown:{},flaggedTags:{}},this.value=[],this.listeners={},this.DOM={},this.build(t),function(){for(var t in this.dropdown={},this._dropdown)this.dropdown[t]=\"function\"==typeof this._dropdown[t]?this._dropdown[t].bind(this):this._dropdown[t];this.dropdown.refs()}.call(this),this.getCSSVars(),this.loadOriginalValues(),this.events.customBinding.call(this),this.events.binding.call(this),t.autofocus&&this.DOM.input.focus(),t.__tagify=this}return(D.prototype={_dropdown:{refs(){this.DOM.dropdown=this.parseTemplate(\"dropdown\",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector(\"[data-selector='tagify-suggestions-wrapper']\")},getHeaderRef(){return this.DOM.dropdown.querySelector(\"[data-selector='tagify-suggestions-header']\")},getFooterRef(){return this.DOM.dropdown.querySelector(\"[data-selector='tagify-suggestions-footer']\")},getAllSuggestionsRefs(){return[...this.DOM.dropdown.content.querySelectorAll(this.settings.classNames.dropdownItemSelector)]},show(t){var e,i=this.settings,s=\"mix\"==i.mode&&!i.enforceWhitelist,a=!i.whitelist||!i.whitelist.length,n=\"manual\"==i.dropdown.position;if(t=void 0===t?this.state.inputText:t,!(a&&!s&&!i.templates.dropdownItemNoMatch||!1===i.dropdown.enable||this.state.isLoading||this.settings.readonly)){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(t),!(e=t&&!this.suggestedListItems.length&&(this.trigger(\"dropdown:noMatch\",t),i.templates.dropdownItemNoMatch)?i.templates.dropdownItemNoMatch.call(this,{value:t}):e)){if(this.suggestedListItems.length)t&&s&&!this.state.editing.scope&&!o(this.suggestedListItems[0].value,t)&&this.suggestedListItems.unshift({value:t});else{if(!t||!s||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:t}]}s=\"\"+(u(a=this.suggestedListItems[0])?a.value:a),i.autoComplete&&s&&0==s.indexOf(t)&&this.input.autocomplete.suggest.call(this,a)}this.dropdown.fill(e),i.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.querySelector(i.classNames.dropdownItemSelector)),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=t||!0,this.state.dropdown.query=t,this.setStateSelection(),n||setTimeout(()=>{this.dropdown.position(),this.dropdown.render()}),setTimeout(()=>{this.trigger(\"dropdown:show\",this.DOM.dropdown)})}},hide(t){var e=this.DOM,i=e.scope,e=e.dropdown,t=\"manual\"==this.settings.dropdown.position&&!t;if(e&&document.body.contains(e)&&!t)return window.removeEventListener(\"resize\",this.dropdown.position),this.dropdown.events.binding.call(this,!1),i.setAttribute(\"aria-expanded\",!1),e.parentNode.removeChild(e),setTimeout(()=>{this.state.dropdown.visible=!1},100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger(\"dropdown:hide\",e),this},toggle(t){this.dropdown[this.state.dropdown.visible&&!t?\"hide\":\"show\"]()},render(){(e=(e=this.DOM.dropdown).cloneNode(!0)).style.cssText=\"position:fixed; top:-9999px; opacity:0\",document.body.appendChild(e),t=e.clientHeight,e.parentNode.removeChild(e);var t,e=t,i=this.settings;return\"number\"==typeof i.dropdown.enabled&&0<=i.dropdown.enabled&&(this.DOM.scope.setAttribute(\"aria-expanded\",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(i.classNames.dropdownInital),this.dropdown.position(e),i.dropdown.appendTarget.appendChild(this.DOM.dropdown),setTimeout(()=>this.DOM.dropdown.classList.remove(i.classNames.dropdownInital)))),this},fill(t){t=\"string\"==typeof t?t:this.dropdown.createListHTML(t||this.suggestedListItems);var t=this.settings.templates.dropdownContent.call(this,t);this.DOM.dropdown.content.innerHTML=(t=t)?t.replace(/\\>[\\r\\n ]+\\<\").replace(/(<.*?>)|\\s+/g,(t,e)=>e||\" \"):\"\"},fillHeaderFooter(){var t=this.dropdown.filterListItems(this.state.dropdown.query),e=this.parseTemplate(\"dropdownHeader\",[t]),t=this.parseTemplate(\"dropdownFooter\",[t]),i=this.dropdown.getHeaderRef(),s=this.dropdown.getFooterRef();e&&i?.parentNode.replaceChild(e,i),t&&s?.parentNode.replaceChild(t,s)},refilter(t){t=t||this.state.dropdown.query||\"\",this.suggestedListItems=this.dropdown.filterListItems(t),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger(\"dropdown:updated\",this.DOM.dropdown)},position(t){var e,i,s,a,n,o,r,l,d,h,g,p,c,u=this.settings.dropdown;\"manual\"!=u.position&&(n=this.DOM.dropdown,o=u.placeAbove,l=(r=u.appendTarget===document.body)?window.pageYOffset:u.appendTarget.scrollTop,h=(d=document.fullscreenElement||document.webkitFullscreenElement||document.documentElement).clientHeight,g=480{i?(this.dropdown.selectOption(i),i=this.dropdown.getNextOrPrevOption(i,!n),this.dropdown.highlightOption(i)):(this.dropdown.hide(),\"mix\"!=this.settings.mode&&this.addTags(this.state.inputText.trim(),!0))}).catch(t=>t);break;case\"Backspace\":if(\"mix\"!=this.settings.mode&&!this.state.editing.scope){const e=this.input.raw.call(this);\"\"!=e&&8203!=e.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():\"edit\"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0))}}}},onMouseOver(t){t=t.target.closest(this.settings.classNames.dropdownItemSelector);t&&this.dropdown.highlightOption(t)},onMouseLeave(t){this.dropdown.highlightOption()},onClick(t){var e,i;0==t.button&&t.target!=this.DOM.dropdown&&t.target!=this.DOM.dropdown.content&&(e=t.target.closest(this.settings.classNames.dropdownItemSelector),i=this.dropdown.getSuggestionDataByNode(e),this.state.actions.selectOption=!0,setTimeout(()=>this.state.actions.selectOption=!1,50),this.settings.hooks.suggestionClick(t,{tagify:this,tagData:i,suggestionElm:e}).then(()=>{e?this.dropdown.selectOption(e,t):this.dropdown.hide()}).catch(t=>console.warn(t)))},onScroll(t){t=t.target,t=t.scrollTop/(t.scrollHeight-t.parentNode.clientHeight)*100;this.trigger(\"dropdown:scroll\",{percentage:Math.round(t)})}}},getSuggestionDataByNode(t){var e=t&&t.getAttribute(\"value\");return this.suggestedListItems.find(t=>t.value==e)||null},getNextOrPrevOption(e){var t=!(1t===e);return t?i[s+1]:i[s-1]},highlightOption(t,e){var i,s=this.settings.classNames.dropdownItemActive;this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(s),this.state.ddItemElm.removeAttribute(\"aria-selected\")),t?(i=this.dropdown.getSuggestionDataByNode(t),this.state.ddItemData=i,(this.state.ddItemElm=t).classList.add(s),t.setAttribute(\"aria-selected\",!0),e&&(t.parentNode.scrollTop=t.clientHeight+t.offsetTop-t.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,i),this.dropdown.position())):(this.state.ddItemData=null,this.state.ddItemElm=null,this.input.autocomplete.suggest.call(this))},selectOption(t,e){var i,s,a,n=this.settings.dropdown,o=n.clearOnSelect,n=n.closeOnSelect;t?(e=e||{},s=\"noMatch\"==(i=t.getAttribute(\"value\")),a=this.suggestedListItems.find(t=>(t.value??t)==i),this.trigger(\"dropdown:select\",{data:a,elm:t,event:e}),i&&(a||s)?(this.state.editing?this.onEditTagDone(null,h({__isValid:!0},this.normalizeTags([a])[0])):this[\"mix\"==this.settings.mode?\"addMixTags\":\"addTags\"]([a||this.input.raw.call(this)],o),this.DOM.input.parentNode&&(setTimeout(()=>{this.DOM.input.focus(),this.toggleFocusClass(!0)}),n&&setTimeout(this.dropdown.hide.bind(this)),t.addEventListener(\"transitionend\",()=>{this.dropdown.fillHeaderFooter(),setTimeout(()=>t.remove(),100)},{once:!0}),t.classList.add(this.settings.classNames.dropdownItemHidden))):n&&setTimeout(this.dropdown.hide.bind(this))):(this.addTags(this.state.inputText,!0),n&&this.dropdown.hide())},selectAll(t){this.suggestedListItems.length=0,this.dropdown.hide(),this.dropdown.filterListItems(\"\");var e=this.dropdown.filterListItems(\"\");return t||(e=this.state.dropdown.suggestions),this.addTags(e,!0),this},filterListItems(t,i){var s,e=this.settings,a=e.dropdown,i=i||{},n=[],o=[],r=e.whitelist,l=0<=a.maxItems?a.maxItems:1/0,d=a.searchKeys,h=0;if(!(t=\"select\"==e.mode&&this.value.length&&this.value[0][e.tagTextProp]==t?\"\":t)||!d.length)return n=a.includeSelectedTags?r:r.filter(t=>!this.isTagDuplicate(u(t)?t.value:t)),(this.state.dropdown.suggestions=n).slice(0,l);for(s=a.caseSensitive?\"\"+t:(\"\"+t).toLowerCase();hd.includes(t))?[\"value\"]:d,c=a.fuzzySearch&&!i.exact?(c=p.reduce((t,e)=>t+\" \"+(g[e]||\"\"),\"\").toLowerCase().trim(),a.accentedSearch&&(c=m(c),s=m(s)),t=0==c.indexOf(s),e=c===s,function(e,t){return t.toLowerCase().split(\" \").every(t=>e.includes(t.toLowerCase()))}(c,s)):(t=!0,p.some(t=>{t=\"\"+(g[t]||\"\");return a.accentedSearch&&(t=m(t),s=m(s)),a.caseSensitive||(t=t.toLowerCase()),e=t===s,i.exact?t===s:0==t.indexOf(s)})),p=!a.includeSelectedTags&&this.isTagDuplicate(u(g)?g.value:g);c&&!p&&(e&&t?o.push(g):\"startsWith\"==a.sortby&&t?n.unshift(g):n.push(g))}return this.state.dropdown.suggestions=o.concat(n),\"function\"==typeof a.sortby?a.sortby(o.concat(n),s):o.concat(n).slice(0,l)},getMappedValue(t){var e=this.settings.dropdown.mapValueTo;return e?\"function\"==typeof e?e(t):t[e]||t.value:t.value},createListHTML(t){return h([],t).map((t,e)=>{var i=\"string\"==typeof(i=this.dropdown.getMappedValue(t=\"string\"!=typeof t&&\"number\"!=typeof t?t:{value:t}))?l(i):i;return this.settings.templates.dropdownItem.apply(this,[n(n({},t),{},{mappedValue:i}),this])}).join(\"\")}},getSetTagData:T,helpers:{sameStr:o,removeCollectionProp:i,omit:r,isObject:u,parseHTML:s,escapeHTML:l,extend:h,concatWithoutDups:a,getUID:d,isNodeTag:v},customEventsList:[\"change\",\"add\",\"remove\",\"invalid\",\"input\",\"click\",\"keydown\",\"focus\",\"blur\",\"edit:input\",\"edit:beforeUpdate\",\"edit:updated\",\"edit:start\",\"edit:keydown\",\"dropdown:show\",\"dropdown:hide\",\"dropdown:select\",\"dropdown:updated\",\"dropdown:noMatch\",\"dropdown:scroll\"],dataProps:[\"__isValid\",\"__removed\",\"__originalData\",\"__originalHTML\",\"__tagId\"],trim(t){return this.settings.trim&&t&&\"string\"==typeof t?t.trim():t},parseHTML:s,templates:{wrapper(t,e){return`\n \n ​\n `},tag(t,e){e=e.settings;return`\n \n
    \n ${t[e.tagTextProp]||t.value}\n
    \n
    `},dropdown(t){var e=t.dropdown,i=\"manual\"==e.position,s=\"\"+t.classNames.dropdown;return`
    \n
    \n
    `},dropdownContent(t){var e=this.settings,i=this.state.dropdown.suggestions;return`\n ${e.templates.dropdownHeader.call(this,i)}\n ${t}\n ${e.templates.dropdownFooter.call(this,i)}\n `},dropdownItem(t){return`
    ${t.mappedValue||t.value}
    `},dropdownHeader(t){return`
    `},dropdownFooter(t){t=t.length-this.settings.dropdown.maxItems;return 0\n ${t} more items. Refine your search.\n `:\"\"},dropdownItemNoMatch:null},parseTemplate(t,e){return s((t=this.settings.templates[t]||t).apply(this,e))},set whitelist(t){var e=t&&Array.isArray(t);this.settings.whitelist=e?t:[],this.setPersistedData(e?t:[],\"whitelist\")},get whitelist(){return this.settings.whitelist},generateClassSelectors(e){for(var i in e){let t=i;Object.defineProperty(e,t+\"Selector\",{get(){return\".\"+this[t].split(\" \")[0]}})}},applySettings(i,t){w.templates=this.templates;var e=h({},w,\"mix\"==t.mode?{dropdown:{position:\"text\"}}:{}),s=this.settings=h({},e,t);if(s.disabled=i.hasAttribute(\"disabled\"),s.readonly=s.readonly||i.hasAttribute(\"readonly\"),s.placeholder=l(i.getAttribute(\"placeholder\")||s.placeholder||\"\"),s.required=i.hasAttribute(\"required\"),this.generateClassSelectors(s.classNames),void 0===s.dropdown.includeSelectedTags&&(s.dropdown.includeSelectedTags=s.duplicates),this.isIE&&(s.autoComplete=!1),[\"whitelist\",\"blacklist\"].forEach(t=>{var e=i.getAttribute(\"data-\"+t);e&&(e=e.split(s.delimiters))instanceof Array&&(s[t]=e)}),\"autoComplete\"in t&&!u(t.autoComplete)&&(s.autoComplete=w.autoComplete,s.autoComplete.enabled=t.autoComplete),\"mix\"==s.mode&&(s.pattern=s.pattern||/@/,s.autoComplete.rightKey=!0,s.delimiters=t.delimiters||null,s.tagTextProp)&&!s.dropdown.searchKeys.includes(s.tagTextProp)&&s.dropdown.searchKeys.push(s.tagTextProp),i.pattern)try{s.pattern=new RegExp(i.pattern)}catch(t){}if(s.delimiters){s._delimiters=s.delimiters;try{s.delimiters=new RegExp(this.settings.delimiters,\"g\")}catch(t){}}s.disabled&&(s.userInput=!1),this.TEXTS=n(n({},O),s.texts||{}),(\"select\"!=s.mode||t.dropdown?.enabled)&&s.userInput||(s.dropdown.enabled=0),s.dropdown.appendTarget=t.dropdown?.appendTarget||document.body;e=this.getPersistedData(\"whitelist\");Array.isArray(e)&&(this.whitelist=Array.isArray(s.whitelist)?a(s.whitelist,e):e)},getAttributes(t){var e,i=this.getCustomAttributes(t),s=\"\";for(e in i)s+=\" \"+e+(void 0!==t[e]?`=\"${i[e]}\"`:\"\");return s},getCustomAttributes(t){if(!u(t))return\"\";var e,i={};for(e in t)\"__\"!=e.slice(0,2)&&\"class\"!=e&&t.hasOwnProperty(e)&&void 0!==t[e]&&(i[e]=l(t[e]));return i},setStateSelection(){var t=window.getSelection(),t={anchorOffset:t.anchorOffset,anchorNode:t.anchorNode,range:t.getRangeAt&&t.rangeCount&&t.getRangeAt(0)};return this.state.selection=t},getCSSVars(){var t,e=getComputedStyle(this.DOM.scope,null);this.CSSVars={tagHideTransition:(e=e.getPropertyValue(\"--tag-hide-transition\"),e=e?(t=(e=e.trim().split(\" \")[0]).split(/\\d+/g).filter(t=>t).pop().trim(),{value:+e.split(t).filter(t=>t)[0].trim(),unit:t}):{},t=e.value,\"s\"==e.unit?1e3*t:t)}},build(t){var e=this.DOM;this.settings.mixMode.integrated?(e.originalInput=null,e.scope=t,e.input=t):(e.originalInput=t,e.originalInput_tabIndex=t.tabIndex,e.scope=this.parseTemplate(\"wrapper\",[t,this.settings]),e.input=e.scope.querySelector(this.settings.classNames.inputSelector),t.parentNode.insertBefore(e.scope,t),t.tabIndex=-1)},destroy(){this.events.unbindGlobal.call(this),this.DOM.scope.parentNode.removeChild(this.DOM.scope),this.DOM.originalInput.tabIndex=this.DOM.originalInput_tabIndex,delete this.DOM.originalInput.__tagify,this.dropdown.hide(!0),clearTimeout(this.dropdownHide__bindEventsTimeout),clearInterval(this.listeners.main.originalInputValueObserverInterval)},loadOriginalValues(t){var e,i=this.settings;if(this.state.blockChangeEvent=!0,void 0===t&&(t=(e=this.getPersistedData(\"value\"))&&!this.DOM.originalInput.value?e:i.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value),this.removeAllTags(),t)if(\"mix\"==i.mode)this.parseMixTags(t),(e=this.DOM.input.lastChild)&&\"BR\"==e.tagName||this.DOM.input.insertAdjacentHTML(\"beforeend\",\"
    \");else{try{JSON.parse(t)instanceof Array&&(t=JSON.parse(t))}catch(t){}this.addTags(t,!0).forEach(t=>t&&t.classList.add(i.classNames.tagNoAnimation))}else this.postUpdate();this.state.lastOriginalValueReported=i.mixMode.integrated?\"\":this.DOM.originalInput.value},cloneEvent(t){var e,i={};for(e in t)\"path\"!=e&&(i[e]=t[e]);return i},loading(t){return this.state.isLoading=t,this.DOM.scope.classList[t?\"add\":\"remove\"](this.settings.classNames.scopeLoading),this},tagLoading(t,e){return t&&t.classList[e?\"add\":\"remove\"](this.settings.classNames.tagLoading),this},toggleClass(t,e){\"string\"==typeof t&&this.DOM.scope.classList.toggle(t,e)},toggleScopeValidation(t){var e=!0===t||void 0===t;!this.settings.required&&t&&t===this.TEXTS.empty&&(e=!0),this.toggleClass(this.settings.classNames.tagInvalid,!e),this.DOM.scope.title=e?\"\":t},toggleFocusClass(t){this.toggleClass(this.settings.classNames.focus,!!t)},triggerChangeEvent:function(){var t,e,i;this.settings.mixMode.integrated||(t=this.DOM.originalInput,e=this.state.lastOriginalValueReported!==t.value,i=new CustomEvent(\"change\",{bubbles:!0}),e&&(this.state.lastOriginalValueReported=t.value,i.simulated=!0,t._valueTracker&&t._valueTracker.setValue(Math.random()),t.dispatchEvent(i),this.trigger(\"change\",this.state.lastOriginalValueReported),t.value=this.state.lastOriginalValueReported))},events:t,fixFirefoxLastTagNoCaret(){},setRangeAtStartEnd(e,i){if(i){e=\"number\"==typeof e?e:!!e,i=i.lastChild||i;var s=document.getSelection();if(s.focusNode instanceof Element&&!this.DOM.input.contains(s.focusNode))return!0;try{1<=s.rangeCount&&[\"Start\",\"End\"].forEach(t=>s.getRangeAt(0)[\"set\"+t](i,e||i.length))}catch(t){}}},placeCaretAfterNode(t){var e,i;t&&t.parentNode&&(t=t,i=(e=window.getSelection()).getRangeAt(0),e.rangeCount)&&(i.setStartAfter(t),i.collapse(!0),e.removeAllRanges(),e.addRange(i))},insertAfterTag(t,e){if(e=e||this.settings.mixMode.insertAfterTag,t&&t.parentNode&&e)return e=\"string\"==typeof e?document.createTextNode(e):e,t.parentNode.insertBefore(e,t.nextSibling),e},editTagChangeDetected(t){var e,i=t.__originalData;for(e in i)if(!this.dataProps.includes(e)&&t[e]!=i[e])return!0;return!1},getTagTextNode(t){return t.querySelector(this.settings.classNames.tagTextSelector)},setTagTextNode(t,e){this.getTagTextNode(t).innerHTML=l(e)},editTag(e,t){e=e||this.getLastTag(),t=t||{},this.dropdown.hide();var i=this.settings,s=this.getTagTextNode(e),a=this.getNodeIndex(e),n=T(e),o=this.events.callbacks,r=this,l=!0;if(s){if(!(n instanceof Object&&\"editable\"in n)||n.editable)return n=T(e,{__originalData:h({},n),__originalHTML:e.cloneNode(!0)}),T(n.__originalHTML,n.__originalData),s.setAttribute(\"contenteditable\",!0),e.classList.add(i.classNames.tagEditing),s.addEventListener(\"focus\",o.onEditTagFocus.bind(this,e)),s.addEventListener(\"blur\",function(){setTimeout(()=>o.onEditTagBlur.call(r,r.getTagTextNode(e)))}),s.addEventListener(\"input\",o.onEditTagInput.bind(this,s)),s.addEventListener(\"paste\",o.onEditTagPaste.bind(this,s)),s.addEventListener(\"keydown\",t=>o.onEditTagkeydown.call(this,t,e)),s.addEventListener(\"compositionstart\",o.onCompositionStart.bind(this)),s.addEventListener(\"compositionend\",o.onCompositionEnd.bind(this)),t.skipValidation||(l=this.editTagToggleValidity(e)),s.originalIsValid=l,this.trigger(\"edit:start\",{tag:e,index:a,data:n,isValid:l}),s.focus(),this.setRangeAtStartEnd(!1,s),this}else console.warn(\"Cannot find element in Tag template: .\",i.classNames.tagTextSelector)},editTagToggleValidity(t,e){var i;if(e=e||T(t))return(i=!(\"__isValid\"in e)||!0===e.__isValid)||this.removeTagsFromValue(t),this.update(),t.classList.toggle(this.settings.classNames.tagNotAllowed,!i),e.__isValid;console.warn(\"tag has no data: \",t,e)},onEditTagDone(t,e){e=e||{};var i={tag:t=t||this.state.editing.scope,index:this.getNodeIndex(t),previousData:T(t),data:e};this.trigger(\"edit:beforeUpdate\",i,{cloneData:!1}),this.state.editing=!1,delete e.__originalData,delete e.__originalHTML,t&&e[this.settings.tagTextProp]?(t=this.replaceTag(t,e),this.editTagToggleValidity(t,e),this.settings.a11y.focusableTags?t.focus():this.placeCaretAfterNode(t)):t&&this.removeTags(t),this.trigger(\"edit:updated\",i),this.dropdown.hide(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()},replaceTag(t,e){(e=e&&e.value?e:t.__tagifyTagData).__isValid&&1!=e.__isValid&&h(e,this.getInvalidTagAttrs(e,e.__isValid));e=this.createTagElem(e);return t.parentNode.replaceChild(e,t),this.updateValueByDOMTags(),e},updateValueByDOMTags(){this.value.length=0,[].forEach.call(this.getTagElms(),t=>{t.classList.contains(this.settings.classNames.tagNotAllowed.split(\" \")[0])||this.value.push(T(t))}),this.update()},injectAtCaret(t,e){return!(e=e||this.state.selection?.range)&&t?this.appendMixTags(t):(f(t,e),this.setRangeAtStartEnd(!1,t),this.updateValueByDOMTags(),this.update()),this},input:{set(){var t=03==t.nodeType&&e.push(t.nodeValue)),e=e.join(\"\\n\");try{e=e.replace(/(?:\\r\\n|\\r|\\n)/g,this.settings.delimiters.source.charAt(0))}catch(t){}return e=e.replace(/\\s/g,\" \"),this.trim(e)},autocomplete:{suggest(t){var e,i,s;this.settings.autoComplete.enabled&&\"number\"!=typeof(e=this.dropdown.getMappedValue(t=\"string\"==typeof(t=t||{value:\"\"})?{value:t}:t))&&(i=e.substr(0,this.state.inputText.length).toLowerCase(),s=e.substring(this.state.inputText.length),e&&this.state.inputText&&i==this.state.inputText.toLowerCase()?(this.DOM.input.setAttribute(\"data-suggest\",s),this.state.inputSuggestion=t):(this.DOM.input.removeAttribute(\"data-suggest\"),delete this.state.inputSuggestion))},set(t){var e=this.DOM.input.getAttribute(\"data-suggest\"),t=t||(e?this.state.inputText+e:null);return!!t&&(\"mix\"==this.settings.mode?this.replaceTextWithNode(document.createTextNode(this.state.tag.prefix+t)):(this.input.set.call(this,t),this.setRangeAtStartEnd(!1,this.DOM.input)),this.input.autocomplete.suggest.call(this),this.dropdown.hide(),!0)}}},getTagIdx(e){return this.value.findIndex(t=>t.__tagId==(e||{}).__tagId)},getNodeIndex(t){var e=0;if(t)for(;t=t.previousElementSibling;)e++;return e},getTagElms(){for(var t=arguments.length,e=new Array(t),i=0;i{o(this.trim(t.textContent),i,this.settings.dropdown.caseSensitive)&&s.push(e)}),s},getTagElmByValue(t){t=this.getTagIndexByValue(t)[0];return this.getTagElms()[t]},flashTag(t){t&&(t.classList.add(this.settings.classNames.tagFlash),setTimeout(()=>{t.classList.remove(this.settings.classNames.tagFlash)},100))},isTagBlacklisted(e){return e=this.trim(e.toLowerCase()),this.settings.blacklist.filter(t=>(\"\"+t).toLowerCase()==e).length},isTagWhitelisted(t){return!!this.getWhitelistItem(t)},getWhitelistItem(i,s,t){var a,s=s||\"value\",n=this.settings;return(t=t||n.whitelist).some(t=>{var e=\"string\"==typeof t?t:t[s]||t.value;if(o(e,i,n.dropdown.caseSensitive,n.trim))return a=\"string\"==typeof t?{value:t}:t,!0}),a=a||\"value\"!=s||\"value\"==n.tagTextProp?a:this.getWhitelistItem(i,n.tagTextProp,t)},validateTag(t){var e=this.settings,i=\"value\"in t?\"value\":e.tagTextProp,s=this.trim(t[i]+\"\");return(t[i]+\"\").trim()?e.pattern&&e.pattern instanceof RegExp&&!e.pattern.test(s)?this.TEXTS.pattern:!e.duplicates&&this.isTagDuplicate(s,e.dropdown.caseSensitive,t.__tagId)?this.TEXTS.duplicate:this.isTagBlacklisted(s)||e.enforceWhitelist&&!this.isTagWhitelisted(s)?this.TEXTS.notAllowed:!e.validate||e.validate(t):this.TEXTS.empty},getInvalidTagAttrs(t,e){return{\"aria-invalid\":!0,class:(`${t.class||\"\"} `+this.settings.classNames.tagNotAllowed).trim(),title:e}},hasMaxTags(){return this.value.length>=this.settings.maxTags&&this.TEXTS.exceed},setReadonly(t,e){var i=this.settings;document.activeElement.blur(),i[e||\"readonly\"]=t,this.DOM.scope[(t?\"set\":\"remove\")+\"Attribute\"](e||\"readonly\",!0),this.setContentEditable(!t)},setContentEditable(t){this.settings.userInput&&(this.DOM.input.contentEditable=t,this.DOM.input.tabIndex=t?0:-1)},setDisabled(t){this.setReadonly(t,\"disabled\")},normalizeTags(t){var e=this.settings,i=e.whitelist,s=e.delimiters,a=e.mode,n=e.tagTextProp,o=[],e=!!i&&i[0]instanceof Object,i=Array.isArray(t),r=i&&t[0].value,l=t=>(t+\"\").split(s).filter(t=>t).map(t=>({[n]:this.trim(t),value:this.trim(t)}));if(\"string\"==typeof(t=\"number\"==typeof t?t.toString():t)){if(!t.trim())return[];t=l(t)}else i&&(t=[].concat(...t.map(t=>null!=t.value?t:l(t))));return t=e&&!r&&(t.forEach(t=>{var e=o.map(t=>t.value),i=this.dropdown.filterListItems.call(this,t[n],{exact:!0}),i=1<(i=this.settings.duplicates?i:i.filter(t=>!e.includes(t.value))).length?this.getWhitelistItem(t[n],n,i):i[0];i&&i instanceof Object?o.push(i):\"mix\"!=a&&(null==t.value&&(t.value=t[n]),o.push(t))}),o.length)?o:t},parseMixTags(t){var e=this.settings,o=e.mixTagsInterpolator,r=e.duplicates,l=e.transformTag,d=e.enforceWhitelist,h=e.maxTags,g=e.tagTextProp,p=[];return t=t.split(o[0]).map((t,e)=>{var i,s=t.split(o[1]),a=s[0],n=p.length==h;try{if(a==+a)throw Error;i=JSON.parse(a)}catch(t){i=this.normalizeTags(a)[0]||{value:a}}if(l.call(this,i),n||!(1T(t,p[e])),this.update({withoutChangeEvent:!0}),t},replaceTextWithNode(t,e){var i,s,a;if(this.state.tag||e)return e=e||this.state.tag.prefix+this.state.tag.value,s=(i=this.state.selection||window.getSelection()).anchorNode,a=this.state.tag.delimiters?this.state.tag.delimiters.length:0,s.splitText(i.anchorOffset-a),-1!=(i=s.nodeValue.lastIndexOf(e))&&(a=s.splitText(i),t)&&s.parentNode.replaceChild(t,a),!0},selectTag(t,e){var i=this.settings;if(!i.enforceWhitelist||this.isTagWhitelisted(e.value))return this.input.set.call(this,e[i.tagTextProp]||e.value,!0),this.state.actions.selectOption&&setTimeout(()=>this.setRangeAtStartEnd(!1,this.DOM.input)),(i=this.getLastTag())?this.replaceTag(i,e):this.appendTag(t),this.value[0]=e,this.update(),this.trigger(\"add\",{tag:t,data:e}),[t]},addEmptyTag(t){var t=h({value:\"\"},t||{}),e=this.createTagElem(t);T(e,t),this.appendTag(e),this.editTag(e,{skipValidation:!0})},addTags(t,e,a){var n=[],o=this.settings,r=[],l=document.createDocumentFragment();if(a=a||o.skipInvalid,t&&0!=t.length){switch(t=this.normalizeTags(t),o.mode){case\"mix\":return this.addMixTags(t);case\"select\":e=!1,this.removeAllTags()}this.DOM.input.removeAttribute(\"style\"),t.forEach(t=>{var e,i={},s=Object.assign({},t,{value:t.value+\"\"});if(t=Object.assign({},s),o.transformTag.call(this,t),t.__isValid=this.hasMaxTags()||this.validateTag(t),!0!==t.__isValid){if(a)return;if(h(i,this.getInvalidTagAttrs(t,t.__isValid),{__preInvalidData:s}),t.__isValid==this.TEXTS.duplicate&&this.flashTag(this.getTagElmByValue(t.value)),!o.createInvalidTags)return void r.push(t.value)}if(\"readonly\"in t&&(t.readonly?i[\"aria-readonly\"]=!0:delete t.readonly),e=this.createTagElem(t,i),n.push(e),\"select\"==o.mode)return this.selectTag(e,t);l.appendChild(e),t.__isValid&&!0===t.__isValid?(this.value.push(t),this.trigger(\"add\",{tag:e,index:this.value.length-1,data:t})):(this.trigger(\"invalid\",{data:t,index:this.value.length,tag:e,message:t.__isValid}),o.keepInvalidTags||setTimeout(()=>this.removeTags(e,!0),1e3)),this.dropdown.position()}),this.appendTag(l),this.update(),t.length&&e&&(this.input.set.call(this,o.createInvalidTags?\"\":r.join(o._delimiters)),this.setRangeAtStartEnd(!1,this.DOM.input)),o.dropdown.enabled&&this.dropdown.refilter()}return n},addMixTags(t){var e;return(t=this.normalizeTags(t))[0].prefix||this.state.tag?this.prefixedTextToTag(t[0]):(e=document.createDocumentFragment(),t.forEach(t=>{t=this.createTagElem(t);e.appendChild(t)}),this.appendMixTags(e),e)},appendMixTags(t){var e=!!this.state.selection;e?this.injectAtCaret(t):(this.DOM.input.focus(),(e=this.setStateSelection()).range.setStart(this.DOM.input,e.range.endOffset),e.range.setEnd(this.DOM.input,e.range.endOffset),this.DOM.input.appendChild(t),this.updateValueByDOMTags(),this.update())},prefixedTextToTag(t){var e,i=this.settings,s=this.state.tag.delimiters;return i.transformTag.call(this,t),t.prefix=t.prefix||this.state.tag?this.state.tag.prefix:(i.pattern.source||i.pattern)[0],e=this.createTagElem(t),this.replaceTextWithNode(e)||this.DOM.input.appendChild(e),setTimeout(()=>e.classList.add(this.settings.classNames.tagNoAnimation),300),this.value.push(t),this.update(),s||(i=this.insertAfterTag(e)||e,setTimeout(this.placeCaretAfterNode,0,i)),this.state.tag=null,this.trigger(\"add\",h({},{tag:e},{data:t})),e},appendTag(t){var e=this.DOM,i=e.input;e.scope.insertBefore(t,i)},createTagElem(t,e){t.__tagId=d();for(var i,e=h({},t,n({value:l(t.value+\"\")},e)),e=this.parseTemplate(\"tag\",[e,this]),s=e,a=document.createNodeIterator(s,NodeFilter.SHOW_TEXT,null,!1);i=a.nextNode();)i.textContent.trim()||i.parentNode.removeChild(i);return T(e,t),e},reCheckInvalidTags(){var o=this.settings;this.getTagElms(o.classNames.tagNotAllowed).forEach((t,e)=>{var i=T(t),s=this.hasMaxTags(),a=this.validateTag(i),n=!0===a&&!s;if(\"select\"==o.mode&&this.toggleScopeValidation(a),n)return i=i.__preInvalidData||{value:i.value},this.replaceTag(t,i);t.title=s||a})},removeTags(t,i,s){var a,n=this.settings;if(t=t&&t instanceof HTMLElement?[t]:t instanceof Array?t:t?[t]:[this.getLastTag()],a=t.reduce((t,e)=>{var i=T(e=e&&\"string\"==typeof e?this.getTagElmByValue(e):e);return e&&i&&!i.readonly&&t.push({node:e,idx:this.getTagIdx(i),data:T(e,{__removed:!0})}),t},[]),s=\"number\"==typeof s?s:this.CSSVars.tagHideTransition,\"select\"==n.mode&&(s=0,this.input.set.call(this)),1==a.length&&\"select\"!=n.mode&&a[0].node.classList.contains(n.classNames.tagNotAllowed)&&(i=!0),a.length)return n.hooks.beforeRemoveTag(a,{tagify:this}).then(()=>{function e(t){t.node.parentNode&&(t.node.parentNode.removeChild(t.node),i?n.keepInvalidTags&&this.trigger(\"remove\",{tag:t.node,index:t.idx}):(this.trigger(\"remove\",{tag:t.node,index:t.idx,data:t.data}),this.dropdown.refilter(),this.dropdown.position(),this.DOM.input.normalize(),n.keepInvalidTags&&this.reCheckInvalidTags()))}s&&10t.node)),this.update(),\"select\"==n.mode&&this.setContentEditable(!0))}).catch(t=>{})},removeTagsFromDOM(){[].slice.call(this.getTagElms()).forEach(t=>t.parentNode.removeChild(t))},removeTagsFromValue(t){(t=Array.isArray(t)?t:[t]).forEach(t=>{t=T(t),t=this.getTagIdx(t);-1{this.DOM.input.focus()}),\"select\"==this.settings.mode&&(this.input.set.call(this),this.setContentEditable(!0)),this.update(t)},postUpdate(){this.state.blockChangeEvent=!1;var t=this.settings,e=t.classNames,i=\"mix\"==t.mode?t.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value.trim():this.value.length+this.input.raw.call(this).length;this.toggleClass(e.hasMaxTags,this.value.length>=t.maxTags),this.toggleClass(e.hasNoTags,!this.value.length),this.toggleClass(e.empty,!i),\"select\"==t.mode&&this.toggleScopeValidation(this.value?.[0]?.__isValid)},setOriginalInputValue(t){var e=this.DOM.originalInput;this.settings.mixMode.integrated||(e.value=t,e.tagifyValue=e.value,this.setPersistedData(t,\"value\"))},update(e){clearTimeout(this.debouncedUpdateTimeout),this.debouncedUpdateTimeout=setTimeout(function(){var t=this.getInputValue();this.setOriginalInputValue(t),this.settings.onChangeAfterBlur&&(e||{}).withoutChangeEvent||this.state.blockChangeEvent||this.triggerChangeEvent();this.postUpdate()}.bind(this),100)},getInputValue(){var t=this.getCleanValue();return\"mix\"==this.settings.mode?this.getMixedTagsAsString(t):t.length?this.settings.originalInputValueFormat?this.settings.originalInputValueFormat(t):JSON.stringify(t):\"\"},getCleanValue(t){return i(t||this.value,this.dataProps)},getMixedTagsAsString(){var s=\"\",a=this,t=this.settings,n=t.originalInputValueFormat||JSON.stringify,o=t.mixTagsInterpolator;return function i(t){t.childNodes.forEach(t=>{var e;1==t.nodeType?(e=T(t),\"BR\"==t.tagName&&(s+=\"\\r\\n\"),e&&v.call(a,t)?e.__removed||(s+=o[0]+n(r(e,a.dataProps))+o[1]):t.getAttribute(\"style\")||[\"B\",\"I\",\"U\"].includes(t.tagName)?s+=t.textContent:\"DIV\"!=t.tagName&&\"P\"!=t.tagName||(s+=\"\\r\\n\",i(t))):s+=t.textContent})}(this.DOM.input),s}}).removeTag=D.prototype.removeTags,D});","var hljs=function(){\"use strict\";var n={exports:{}};function t(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error(\"map is read-only\")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error(\"set is read-only\")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(function(e){e=n[e];\"object\"!=typeof e||Object.isFrozen(e)||t(e)}),n}n.exports=t,n.exports.default=t;class R{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(e){return e.replace(/&/g,\"&\").replace(//g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}function l(e,...n){const t=Object.create(null);for(const i in e)t[i]=e[i];return n.forEach(function(e){for(const n in e)t[n]=e[n]}),t}const r=e=>!!e.scope||e.sublanguage&&e.language;class M{constructor(e,n){this.buffer=\"\",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(n){if(r(n)){let e=\"\";var t,i;e=n.sublanguage?\"language-\"+n.language:([n,t]=[n.scope,{prefix:this.classPrefix}[\"prefix\"]],n.includes(\".\")?[\"\"+t+(i=n.split(\".\")).shift(),...i.map((e,n)=>\"\"+e+\"_\".repeat(n+1))].join(\" \"):\"\"+t+n),this.span(e)}}closeNode(e){r(e)&&(this.buffer+=\"\")}value(){return this.buffer}span(e){this.buffer+=``}}const o=(e={})=>{var n={children:[]};return Object.assign(n,e),n};class a{constructor(){this.rootNode=o(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){e=o({scope:e});this.add(e),this.stack.push(e)}closeNode(){if(1this._walk(n,e)),n.closeNode(e)),n}static _collapse(e){\"string\"!=typeof e&&e.children&&(e.children.every(e=>\"string\"==typeof e)?e.children=[e.children.join(\"\")]:e.children.forEach(e=>{a._collapse(e)}))}}class P extends a{constructor(e){super(),this.options=e}addKeyword(e,n){\"\"!==e&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){\"\"!==e&&this.add(e)}addSublanguage(e,n){e=e.root;e.sublanguage=!0,e.language=n,this.add(e)}toHTML(){return new M(this,this.options).value()}finalize(){return!0}}function c(e){return e?\"string\"==typeof e?e:e.source:null}function s(e){return g(\"(?=\",e,\")\")}function C(e){return g(\"(?:\",e,\")*\")}function U(e){return g(\"(?:\",e,\")?\")}function g(...e){return e.map(e=>c(e)).join(\"\")}function u(...e){var n,t=\"object\"==typeof(n=(t=e)[t.length-1])&&n.constructor===Object?(t.splice(t.length-1,1),n):{};return\"(\"+(t.capture?\"\":\"?:\")+e.map(e=>c(e)).join(\"|\")+\")\"}function d(e){return new RegExp(e.toString()+\"|\").exec(\"\").length-1}const S=/\\[(?:[^\\\\\\]]|\\\\.)*\\]|\\(\\??|\\\\([1-9][0-9]*)|\\\\./;function h(e,{joinWith:n}){let o=0;return e.map(e=>{var n=o+=1;let t=c(e),i=\"\";for(;0`(${e})`).join(n)}function e(e,n,t={}){return(e=l({scope:\"comment\",begin:e,end:n,contains:[]},t)).contains.push({scope:\"doctag\",begin:\"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)\",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0}),n=u(\"I\",\"a\",\"is\",\"so\",\"us\",\"to\",\"at\",\"if\",\"in\",\"it\",\"on\",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/),e.contains.push({begin:g(/[ ]+/,\"(\",n,/[.]?[:]?([.][ ]|[ ])/,\"){3}\")}),e}var f=\"[a-zA-Z]\\\\w*\",p=\"[a-zA-Z_]\\\\w*\",z=\"\\\\b\\\\d+(\\\\.\\\\d+)?\",K=\"(-?)(\\\\b0[xX][a-fA-F0-9]+|(\\\\b\\\\d+(\\\\.\\\\d*)?|\\\\.\\\\d+)([eE][-+]?\\\\d+)?)\",W=\"\\\\b(0b[01]+)\",b={begin:\"\\\\\\\\[\\\\s\\\\S]\",relevance:0},$={scope:\"string\",begin:\"'\",end:\"'\",illegal:\"\\\\n\",contains:[b]},X={scope:\"string\",begin:'\"',end:'\"',illegal:\"\\\\n\",contains:[b]},G=e(\"//\",\"$\"),F=e(\"/\\\\*\",\"\\\\*/\"),Z=e(\"#\",\"$\"),m=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\\b\\B/,IDENT_RE:f,UNDERSCORE_IDENT_RE:p,NUMBER_RE:z,C_NUMBER_RE:K,BINARY_NUMBER_RE:W,RE_STARTERS_RE:\"!|!=|!==|%|%=|&|&&|&=|\\\\*|\\\\*=|\\\\+|\\\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\\\?|\\\\[|\\\\{|\\\\(|\\\\^|\\\\^=|\\\\||\\\\|=|\\\\|\\\\||~\",SHEBANG:(e={})=>{var n=/^#![ ]*\\//;return e.binary&&(e.begin=g(n,/.*\\b/,e.binary,/\\b.*/)),l({scope:\"meta\",begin:n,end:/$/,relevance:0,\"on:begin\":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:b,APOS_STRING_MODE:$,QUOTE_STRING_MODE:X,PHRASAL_WORDS_MODE:{begin:/\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b/},COMMENT:e,C_LINE_COMMENT_MODE:G,C_BLOCK_COMMENT_MODE:F,HASH_COMMENT_MODE:Z,NUMBER_MODE:{scope:\"number\",begin:z,relevance:0},C_NUMBER_MODE:{scope:\"number\",begin:K,relevance:0},BINARY_NUMBER_MODE:{scope:\"number\",begin:W,relevance:0},REGEXP_MODE:{begin:/(?=\\/[^/\\n]*\\/)/,contains:[{scope:\"regexp\",begin:/\\//,end:/\\/[gimuy]*/,illegal:/\\n/,contains:[b,{begin:/\\[/,end:/\\]/,relevance:0,contains:[b]}]}]},TITLE_MODE:{scope:\"title\",begin:f,relevance:0},UNDERSCORE_TITLE_MODE:{scope:\"title\",begin:p,relevance:0},METHOD_GUARD:{begin:\"\\\\.\\\\s*\"+p,relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{\"on:begin\":(e,n)=>{n.data._beginMatch=e[1]},\"on:end\":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}});function V(e,n){\".\"===e.input[e.index-1]&&n.ignoreMatch()}function q(e,n){void 0!==e.className&&(e.scope=e.className,delete e.className)}function J(e,n){n&&e.beginKeywords&&(e.begin=\"\\\\b(\"+e.beginKeywords.split(\" \").join(\"|\")+\")(?!\\\\.)(?=\\\\b|\\\\s)\",e.__beforeBegin=V,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance)&&(e.relevance=0)}function Y(e,n){Array.isArray(e.illegal)&&(e.illegal=u(...e.illegal))}function Q(e,n){if(e.match){if(e.begin||e.end)throw new Error(\"begin & end are not supported with match\");e.begin=e.match,delete e.match}}function ee(e,n){void 0===e.relevance&&(e.relevance=1)}const ne=(n,e)=>{if(n.beforeMatch){if(n.starts)throw new Error(\"beforeMatch cannot be used with starts\");var t=Object.assign({},n);Object.keys(n).forEach(e=>{delete n[e]}),n.keywords=t.keywords,n.begin=g(t.beforeMatch,s(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch}},te=[\"of\",\"and\",\"for\",\"in\",\"not\",\"or\",\"if\",\"then\",\"parent\",\"list\",\"value\"],ie=\"keyword\";function re(n,t,e=ie){const i=Object.create(null);return\"string\"==typeof n?r(e,n.split(\" \")):Array.isArray(n)?r(e,n):Object.keys(n).forEach(function(e){Object.assign(i,re(n[e],t,e))}),i;function r(n,e){(e=t?e.map(e=>e.toLowerCase()):e).forEach(function(e){e=e.split(\"|\");i[e[0]]=[n,function(e,n){if(n)return Number(n);return function(e){return te.includes(e.toLowerCase())}(e)?0:1}(e[0],e[1])]})}}const oe={},j=e=>{console.error(e)},ae=(e,...n)=>{console.log(\"WARN: \"+e,...n)},w=(e,n)=>{oe[e+\"/\"+n]||(console.log(`Deprecated as of ${e}. `+n),oe[e+\"/\"+n]=!0)},E=new Error;function se(e,n,{key:t}){let i=0;var r=e[t],o={},a={};for(let e=1;e<=n.length;e++)a[e+i]=r[e],o[e+i]=!0,i+=d(n[e-1]);e[t]=a,e[t]._emit=o,e[t]._multi=!0}function le(e){(n=e).scope&&\"object\"==typeof n.scope&&null!==n.scope&&(n.beginScope=n.scope,delete n.scope),\"string\"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),\"string\"==typeof e.endScope&&(e.endScope={_wrap:e.endScope});var n=e;if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw j(\"skip, excludeBegin, returnBegin not compatible with beginScope: {}\"),E;if(\"object\"!=typeof n.beginScope||null===n.beginScope)throw j(\"beginScope must be object\"),E;se(n,n.begin,{key:\"beginScope\"}),n.begin=h(n.begin,{joinWith:\"\"})}n=e;if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw j(\"skip, excludeEnd, returnEnd not compatible with endScope: {}\"),E;if(\"object\"!=typeof n.endScope||null===n.endScope)throw j(\"endScope must be object\"),E;se(n,n.end,{key:\"endScope\"}),n.end=h(n.end,{joinWith:\"\"})}}function ce(o){function a(e,n){return new RegExp(c(e),\"m\"+(o.case_insensitive?\"i\":\"\")+(o.unicodeRegex?\"u\":\"\")+(n?\"g\":\"\"))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=d(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);var e=this.regexes.map(e=>e[1]);this.matcherRe=a(h(e,{joinWith:\"|\"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;var n,t,e=this.matcherRe.exec(e);return e?(n=e.findIndex((e,n)=>0t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),\"begin\"===n.type&&this.count++}exec(e){var n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;let t=n.exec(e);return!this.resumingScanAtSamePosition()||t&&t.index===this.lastIndex||((n=this.getMatcher(0)).lastIndex=this.lastIndex+1,t=n.exec(e)),t&&(this.regexIndex+=t.position+1,this.regexIndex===this.count)&&this.considerAll(),t}}if(o.compilerExtensions||(o.compilerExtensions=[]),o.contains&&o.contains.includes(\"self\"))throw new Error(\"ERR: contains `self` is not supported at the top-level of a language. See documentation.\");return o.classNameAliases=l(o.classNameAliases||{}),function n(t,i){const r=t;if(!t.isCompiled){[q,Q,le,ne].forEach(e=>e(t,i)),o.compilerExtensions.forEach(e=>e(t,i)),t.__beforeBegin=null,[J,Y,ee].forEach(e=>e(t,i)),t.isCompiled=!0;let e=null;\"object\"==typeof t.keywords&&t.keywords.$pattern&&(t.keywords=Object.assign({},t.keywords),e=t.keywords.$pattern,delete t.keywords.$pattern),e=e||/\\w+/,t.keywords&&(t.keywords=re(t.keywords,o.case_insensitive)),r.keywordPatternRe=a(e,!0),i&&(t.begin||(t.begin=/\\B|\\b/),r.beginRe=a(r.begin),t.end||t.endsWithParent||(t.end=/\\B|\\b/),t.end&&(r.endRe=a(r.end)),r.terminatorEnd=c(r.end)||\"\",t.endsWithParent)&&i.terminatorEnd&&(r.terminatorEnd+=(t.end?\"|\":\"\")+i.terminatorEnd),t.illegal&&(r.illegalRe=a(t.illegal)),t.contains||(t.contains=[]),t.contains=[].concat(...t.contains.map(function(e){var n=\"self\"===e?t:e;return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return l(n,{variants:null},e)})),n.cachedVariants||(function e(n){return!!n&&(n.endsWithParent||e(n.starts))}(n)?l(n,{starts:n.starts?l(n.starts):null}):Object.isFrozen(n)?l(n):n)})),t.contains.forEach(function(e){n(e,r)}),t.starts&&n(t.starts,i),r.matcher=function(e){const n=new s;return e.contains.forEach(e=>n.addRule(e.begin,{rule:e,type:\"begin\"})),e.terminatorEnd&&n.addRule(e.terminatorEnd,{type:\"end\"}),e.illegal&&n.addRule(e.illegal,{type:\"illegal\"}),n}(r)}return r}(o)}class ge extends Error{constructor(e,n){super(e),this.name=\"HTMLInjectionError\",this.html=n}}const A=i,ue=l,de=Symbol(\"nomatch\");{var x={};const B=Object.create(null),O=Object.create(null),N=[];let M=!0;const D=\"Could not find the language '{}', did you forget to load/include a language module?\",k={disableAutodetect:!0,name:\"Plain text\",contains:[]};let S={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\\blang(?:uage)?-([\\w-]+)\\b/i,classPrefix:\"hljs-\",cssSelector:\"pre code\",languages:null,__emitter:P};function he(e){return S.noHighlightRe.test(e)}function fe(e,n,t){let i=\"\",r=\"\";\"object\"==typeof n?(i=e,t=n.ignoreIllegals,r=n.language):(w(\"10.7.0\",\"highlight(lang, code, ...args) has been deprecated.\"),w(\"10.7.0\",\"Please use highlight(code, options) instead.\\nhttps://github.com/highlightjs/highlight.js/issues/2277\"),r=e,i=n),void 0===t&&(t=!0);e={code:i,language:r},_(\"before:highlight\",e),n=e.result||I(e.language,e.code,t);return n.code=e.code,_(\"after:highlight\",n),n}function I(i,r,o,e){const a=Object.create(null);function s(){if(b.keywords){let e=0,n=(b.keywordPatternRe.lastIndex=0,b.keywordPatternRe.exec(x)),t=\"\";for(;n;){t+=x.substring(e,n.index);var i,r=f.case_insensitive?n[0].toLowerCase():n[0],o=b.keywords[r];!o||([o,i]=o,w.addText(t),t=\"\",a[r]=(a[r]||0)+1,a[r]<=7&&(y+=i),o.startsWith(\"_\"))?t+=n[0]:(r=f.classNameAliases[o]||o,w.addKeyword(n[0],r)),e=b.keywordPatternRe.lastIndex,n=b.keywordPatternRe.exec(x)}t+=x.substring(e),w.addText(t)}else w.addText(x)}function l(){(null!=b.subLanguage?function(){if(\"\"!==x){let e=null;if(\"string\"==typeof b.subLanguage){if(!B[b.subLanguage])return w.addText(x);e=I(b.subLanguage,x,!0,m[b.subLanguage]),m[b.subLanguage]=e._top}else e=T(x,b.subLanguage.length?b.subLanguage:null);0\")+'\"')).mode=b,e;if(\"end\"===n.type){e=d(n);if(e!==de)return e}if(\"illegal\"===n.type&&\"\"===t)return 1;if(1e5<_&&_>3*n.index)throw new Error(\"potential infinite loop, way more iterations than matches\");return x+=t,t.length}const f=L(i);if(!f)throw j(D.replace(\"{}\",i)),new Error('Unknown language: \"'+i+'\"');var t=ce(f);let p=\"\",b=e||t;const m={},w=new S.__emitter(S);var E=[];for(let e=b;e!==f;e=e.parent)e.scope&&E.unshift(e.scope);E.forEach(e=>w.openNode(e));let x=\"\",y=0,v=0,_=0,O=!1;try{for(b.matcher.considerAll();;){_++,O?O=!1:b.matcher.considerAll(),b.matcher.lastIndex=v;var N=b.matcher.exec(r);if(!N)break;var k=n(r.substring(v,N.index),N);v=N.index+k}return n(r.substring(v)),w.closeAllNodes(),w.finalize(),p=w.toHTML(),{language:i,value:p,relevance:y,illegal:!1,_emitter:w,_top:b}}catch(e){if(e.message&&e.message.includes(\"Illegal\"))return{language:i,value:A(r),illegal:!0,relevance:0,_illegalBy:{message:e.message,index:v,context:r.slice(v-100,v+100),mode:e.mode,resultSoFar:p},_emitter:w};if(M)return{language:i,value:A(r),illegal:!1,relevance:0,errorRaised:e,_emitter:w,_top:b};throw e}}function T(n,e){e=e||S.languages||Object.keys(B);t=n,(i={value:A(t),illegal:!1,relevance:0,_top:k,_emitter:new S.__emitter(S)})._emitter.addText(t);var t=i,i=e.filter(L).filter(be).map(e=>I(e,n,!1)),e=(i.unshift(t),i.sort((e,n)=>{if(e.relevance!==n.relevance)return n.relevance-e.relevance;if(e.language&&n.language){if(L(e.language).supersetOf===n.language)return 1;if(L(n.language).supersetOf===e.language)return-1}return 0})),[t,i]=e,e=t;return e.secondBest=i,e}function y(e){t=(n=e).className+\" \",t+=n.parentNode?n.parentNode.className:\"\";var n=(o=S.languageDetectRe.exec(t))?((r=L(o[1]))||(ae(D.replace(\"{}\",o[1])),ae(\"Falling back to no-highlight mode for this block.\",n)),r?o[1]:\"no-highlight\"):t.split(/\\s+/).find(e=>he(e)||L(e));if(!he(n)){if(_(\"before:highlightElement\",{el:e,language:n}),0{O[e.toLowerCase()]=n})}function be(e){e=L(e);return e&&!e.disableAutodetect}function _(e,n){const t=e;N.forEach(function(e){e[t]&&e[t](n)})}\"undefined\"!=typeof window&&window.addEventListener&&window.addEventListener(\"DOMContentLoaded\",function(){e&&v()},!1),Object.assign(x,{highlight:fe,highlightAuto:T,highlightAll:v,highlightElement:y,highlightBlock:function(e){return w(\"10.7.0\",\"highlightBlock will be removed entirely in v12.0\"),w(\"10.7.0\",\"Please use highlightElement now.\"),y(e)},configure:function(e){S=ue(S,e)},initHighlighting:()=>{v(),w(\"10.6.0\",\"initHighlighting() deprecated. Use highlightAll() now.\")},initHighlightingOnLoad:function(){v(),w(\"10.6.0\",\"initHighlightingOnLoad() deprecated. Use highlightAll() now.\")},registerLanguage:function(n,e){let t=null;try{t=e(x)}catch(e){if(j(\"Language definition for '{}' could not be registered.\".replace(\"{}\",n)),!M)throw e;j(e),t=k}t.name||(t.name=n),(B[n]=t).rawDefinition=e.bind(null,x),t.aliases&&pe(t.aliases,{languageName:n})},unregisterLanguage:function(e){delete B[e];for(const n of Object.keys(O))O[n]===e&&delete O[n]},listLanguages:function(){return Object.keys(B)},getLanguage:L,registerAliases:pe,autoDetection:be,inherit:ue,addPlugin:function(e){var n;(n=e)[\"before:highlightBlock\"]&&!n[\"before:highlightElement\"]&&(n[\"before:highlightElement\"]=e=>{n[\"before:highlightBlock\"](Object.assign({block:e.el},e))}),n[\"after:highlightBlock\"]&&!n[\"after:highlightElement\"]&&(n[\"after:highlightElement\"]=e=>{n[\"after:highlightBlock\"](Object.assign({block:e.el},e))}),N.push(e)}}),x.debugMode=function(){M=!1},x.safeMode=function(){M=!0},x.versionString=\"11.7.0\",x.regex={concat:g,lookahead:s,either:u,optional:U,anyNumberOfTimes:C};for(const H in m)\"object\"==typeof m[H]&&n.exports(m[H]);return Object.assign(x,m),x}}();\"object\"==typeof exports&&\"undefined\"!=typeof module&&(module.exports=hljs);","var EventCalendar=function(){\"use strict\";function s(t){try{return!!t()}catch(t){return!0}}function a(t){return J(q(t),8,-1)}function c(t){return null==t}function u(t){if(et(t))throw nt(\"Can't call method on \"+t);return t}function d(t){return rt(ot(t))}function f(t){return t&&t.Math==Math&&t}function h(t){return pt?ht.createElement(t):{}}function v(t){if(vt(t))return t;throw yt($t(t)+\" is not an object\")}function $(t){return xt(t)?t:void 0}function y(t,e){return arguments.length<2?$(_t[t])||$(Tt[t]):_t[t]&&_t[t][e]||Tt[t]&&Tt[t][e]}function w(t){if(It(t))return t;throw Ft(function(t){try{return jt(t)}catch(t){return\"Object\"}}(t)+\" is not a function\")}function k(t){return oe(re(t))}function _(t){return\"Symbol(\"+(void 0===t?\"\":t)+\")_\"+ce(++le+ae,36)}function T(t){var e;return ue(pe,t)&&(fe||\"string\"==typeof pe[t])||(e=\"Symbol.\"+t,fe&&ue(ge,t)?pe[t]=ge[t]:pe[t]=(he&&me?me:ve)(e)),pe[t]}function x(t){return t=function(t,e){if(!ye(t)||we(t))return t;var n=be(t,Te);if(n){if(n=$e(n,t,e=void 0===e?\"default\":e),!ye(n)||we(n))return n;throw _e(\"Can't convert object to primitive value\")}return ke(t,e=void 0===e?\"number\":e)}(t,\"string\"),xe(t)?t:t+\"\"}var C=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{},D={},S={get exports(){return D},set exports(t){D=t}},M={},H={get exports(){return M},set exports(t){M=t}},Y=!s(function(){var t=function(){}.bind();return\"function\"!=typeof t||t.hasOwnProperty(\"prototype\")}),W=Y,V=Function.prototype,X=V.call,V=W&&V.bind.bind(X,X),W=W?V:function(t){return function(){return X.apply(t,arguments)}},V=W,q=V({}.toString),J=V(\"\".slice),V=s,Q=a,Z=Object,tt=W(\"\".split),V=V(function(){return!Z(\"z\").propertyIsEnumerable(0)})?function(t){return\"String\"==Q(t)?tt(t,\"\"):Z(t)}:Z,et=c,nt=TypeError,rt=V,ot=u,V={},C=f(\"object\"==typeof globalThis&&globalThis)||f(\"object\"==typeof window&&window)||f(\"object\"==typeof self&&self)||f(\"object\"==typeof C&&C)||function(){return this}()||Function(\"return this\")(),t=\"object\"==typeof document&&document.all,t={all:t,IS_HTMLDDA:void 0===t&&void 0!==t},it=t.all,st=t.IS_HTMLDDA?function(t){return\"function\"==typeof t||t===it}:function(t){return\"function\"==typeof t},lt=st,at=C.WeakMap,lt=lt(at)&&/native code/.test(String(at)),ct=st,ut=t.all,at=t.IS_HTMLDDA?function(t){return\"object\"==typeof t?null!==t:ct(t)||t===ut}:function(t){return\"object\"==typeof t?null!==t:ct(t)},t=!s(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),dt={},ft=at,ht=C.document,pt=ft(ht)&&ft(ht.createElement),gt=h,ft=!t&&!s(function(){return 7!=Object.defineProperty(gt(\"div\"),\"a\",{get:function(){return 7}}).a}),mt=t&&s(function(){return 42!=Object.defineProperty(function(){},\"prototype\",{value:42,writable:!1}).prototype}),vt=at,$t=String,yt=TypeError,wt=Function.prototype.call,bt=Y?wt.bind(wt):function(){return wt.apply(wt,arguments)},kt={},_t=kt,Tt=C,xt=st,e=W({}.isPrototypeOf),Ct=C,Dt=y(\"navigator\",\"userAgent\")||\"\",n=Ct.process,Ct=Ct.Deno,n=n&&n.versions||Ct&&Ct.version,Ct=n&&n.v8,St=r=!(r=Ct?0<(Pt=Ct.split(\".\"))[0]&&Pt[0]<4?1:+(Pt[0]+Pt[1]):r)&&Dt&&(!(Pt=Dt.match(/Edge\\/(\\d+)/))||74<=Pt[1])&&(Pt=Dt.match(/Chrome\\/(\\d+)/))?+Pt[1]:r,n=s,Ct=!!Object.getOwnPropertySymbols&&!n(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&St&&St<41}),Dt=Ct&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator,Et=y,Mt=st,Ot=e,Lt=Object,Pt=Dt?function(t){return\"symbol\"==typeof t}:function(t){var e=Et(\"Symbol\");return Mt(e)&&Ot(e.prototype,Lt(t))},jt=String,It=st,Ft=TypeError,Rt=w,Ut=c,qt=bt,Jt=st,Kt=at,Qt=TypeError,Zt={},r={get exports(){return Zt},set exports(t){Zt=t}},te=C,ee=Object.defineProperty,n=\"__core-js_shared__\",e=C[n]||function(e,n){try{ee(te,e,{value:n,configurable:!0,writable:!0})}catch(t){te[e]=n}return n}(n,{}),ne=e,re=((r.exports=function(t,e){return ne[t]||(ne[t]=void 0!==e?e:{})})(\"versions\",[]).push({version:\"3.27.1\",mode:\"pure\",copyright:\"© 2014-2022 Denis Pushkarev (zloirock.ru)\",license:\"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE\",source:\"https://github.com/zloirock/core-js\"}),u),oe=Object,ie=k,se=W({}.hasOwnProperty),n=Object.hasOwn||function(t,e){return se(ie(t),e)},r=W,le=0,ae=Math.random(),ce=r(1..toString),r=C,ue=n,de=_,fe=Ct,he=Dt,pe=Zt(\"wks\"),ge=r.Symbol,me=ge&&ge.for,ve=he?ge:ge&&ge.withoutSetter||de,$e=bt,ye=at,we=Pt,be=function(t,e){t=t[e];return Ut(t)?void 0:Rt(t)},ke=function(t,e){var n,r;if(\"string\"===e&&Jt(n=t.toString)&&!Kt(r=qt(n,t)))return r;if(Jt(n=t.valueOf)&&!Kt(r=qt(n,t)))return r;if(\"string\"!==e&&Jt(n=t.toString)&&!Kt(r=qt(n,t)))return r;throw Qt(\"Can't convert object to primitive value\")},_e=TypeError,Te=T(\"toPrimitive\"),xe=Pt,Ce=ft,De=v,Se=x,Ee=TypeError,Me=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Le=\"enumerable\",Pe=\"configurable\",je=\"writable\";dt.f=t?mt?function(t,e,n){var r;return De(t),e=Se(e),De(n),\"function\"==typeof t&&\"prototype\"===e&&\"value\"in n&&je in n&&!n[je]&&(r=Oe(t,e))&&r[je]&&(t[e]=n.value,n={configurable:(Pe in n?n:r)[Pe],enumerable:(Le in n?n:r)[Le],writable:!1}),Me(t,e,n)}:Me:function(t,e,n){if(De(t),e=Se(e),De(n),Ce)try{return Me(t,e,n)}catch(t){}if(\"get\"in n||\"set\"in n)throw Ee(\"Accessors not supported\");return\"value\"in n&&(t[e]=n.value),t};function Ie(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function Fe(t){return Xe[t]||(Xe[t]=Ve(t))}function Re(t){if(\"Function\"===rn(t))return on(t)}function Ue(t,e){return(t=wn[yn(t)])==kn||t!=bn&&(vn(e)?mn(e):!!e)}function ze(t){return(t=+t)!=t||0==t?0:zn(t)}function Be(l){return function(t,e,n){var r,o=Wn(t),i=Yn(o.length),s=function(t,e){t=Bn(t);return t<0?Gn(t+e,0):Hn(t,e)}(n,i);if(l&&e!=e){for(;so;)!Vn(r,e=n[o++])||~qn(i,e)||Kn(i,e);return i},Zn=dt,tr=v,er=d,nr=e;r.f=t&&!mt?Object.defineProperties:function(t,e){tr(t);for(var n,r=er(e),o=nr(e),i=o.length,s=0;s\"+t+\"\"},gr=function(){try{ir=new ActiveXObject(\"htmlfile\")}catch(t){}var t,e,n;gr=\"undefined\"==typeof document||document.domain&&ir?or(ir):(e=ur(\"iframe\"),n=\"java\"+fr+\":\",e.style.display=\"none\",cr.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(pr(\"document.F=Object\")),t.close(),t.F);for(var r=ar.length;r--;)delete gr[dr][ar[r]];return gr()};Y[hr]=!0;function mr(t,e,n,r){return r&&r.enumerable?t[e]=n:Tr(t,e,n),t}var vr,ln=Object.create||function(t,e){var n;return null!==t?(rr[dr]=sr(t),n=new rr,rr[dr]=null,n[hr]=t):n=gr(),void 0===e?n:lr.f(n,e)},kt=!s(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),$r=n,yr=st,wr=k,e=kt,br=Fe(\"IE_PROTO\"),kr=Object,_r=kr.prototype,t=e?kr.getPrototypeOf:function(t){var e,t=wr(t);return $r(t,br)?t[br]:(e=t.constructor,yr(e)&&t instanceof e?e.prototype:t instanceof kr?_r:null)},Tr=Ct,mt=s,r=st,ft=at,Dt=ln,de=t,Y=mr,xr=T(\"iterator\"),kt=!1;[].keys&&(\"next\"in(e=[].keys())?(at=de(de(e)))!==Object.prototype&&(vr=at):kt=!0);function Cr(t,e,n,r){t&&(n=n?t:t.prototype,Hr(n,Ar)||Br(n,Ar,{configurable:!0,value:e}),r)&&!zr&&Gr(n,\"toString\",Nr)}function Dr(){return this}function Sr(t,e,n,r,o,i,s){var l=n,a=e,c=void 0;function u(t){if(t===o&&m)return m;if(!ro&&t in p)return p[t];switch(t){case\"keys\":case io:case so:return function(){return new n(this,t)}}return function(){return new n(this)}}a+=\" Iterator\",l.prototype=Wr(Yr,{next:Vr(+!c,r)}),Xr(l,a,!1,!0),qr[a]=Jr;var d,f,c=e+\" Iterator\",h=!1,p=t.prototype,g=p[oo]||p[\"@@iterator\"]||o&&p[o],m=!ro&&g||u(o);if((r=\"Array\"==e&&p.entries||g)&&(l=Qr(r.call(new t)))!==Object.prototype&&l.next&&(Zr(l,c,!0,!0),eo[c]=Dr),no&&o==io&&g&&g.name!==io&&(h=!0,m=function(){return Kr(g,this)}),o)if(d={values:u(io),keys:i?m:u(\"keys\"),entries:u(so)},s)for(f in d)!ro&&!h&&f in p||to(p,f,d[f]);else{var v={target:e,proto:!0,forced:ro||h};var $=d;var y,w,b,k,_,T,x=v.target,C=v.global,D=v.stat,S=v.proto,E=C?Cn:D?Cn[x]:(Cn[x]||{}).prototype,M=C?Ln:Ln[x]||jn(Ln,x,{})[x],O=M.prototype;for(w in $)_=!(y=On(C?w:x+(D?\".\":\"#\")+w,v.forced))&&E&&In(E,w),k=M[w],_&&(T=v.dontCallGetSet?(T=Mn(E,w))&&T.value:E[w]),b=_&&T?T:$[w],_&&typeof k==typeof b||(_=v.bind&&_?Pn(b,Cn):v.wrap&&_?Fn(b):S&&En(b)?Sn(b):b,(v.sham||b&&b.sham||k&&k.sham)&&jn(_,\"sham\",!0),jn(M,w,_),S&&(In(Ln,k=x+\"Prototype\")||jn(Ln,k,{}),jn(Ln[k],w,b),v.real)&&O&&(y||!O[w])&&jn(O,w,b))}return s&&p[oo]!==m&&to(p,oo,m,{name:o}),eo[e]=m,d}function Er(t,e){return{value:t,done:e}}function Mr(t){if(\"Symbol\"===ho(t))throw TypeError(\"Cannot convert a Symbol value to a string\");return po(t)}function Or(o){return function(t,e){var n,t=mo(vo(t)),e=go(e),r=t.length;return e<0||r<=e?o?\"\":void 0:(n=yo(t,e))<55296||56319=e.length?(t.target=void 0,ao(void 0,!0)):ao(\"keys\"==n?r:\"values\"==n?e[r]:[r,e[r]],!1)},\"values\"),mt.Arguments=mt.Array,ft),po=String,kt=W,go=ze,mo=Mr,vo=u,$o=kt(\"\".charAt),yo=kt(\"\".charCodeAt),wo=kt(\"\".slice),bo=(Or(!1),Or(!0)),ko=Mr,e=lt,st=Sr,_o=Er,To=\"String Iterator\",xo=e.set,Co=e.getterFor(To),Do=(st(String,\"String\",function(t){xo(this,{type:To,string:ko(t),index:0})},function(){var t=Co(this),e=t.string,n=t.index;return n>=e.length?_o(void 0,!0):(e=bo(e,n),t.index+=e.length,_o(e,!1))}),ft),So=n,Eo=c,Mo=V,Oo=T(\"iterator\"),Lo=Object,Po=C,jo=ft,Io=Ct,Fo=V,Ro=T(\"toStringTag\");for(Lr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Uo=Po[Lr],Uo=Uo&&Uo.prototype;Uo&&jo(Uo)!==Ro&&Io(Uo,Ro,Lr),Fo[Lr]=Fo.Array}function zt(){}H.exports=function(t){return!Eo(t)&&(void 0!==(t=Lo(t))[Oo]||\"@@iterator\"in t||So(Mo,Do(t)))},S.exports=M;const zo=t=>t;function Bo(t){return t()}function Go(){return Object.create(null)}function Bt(t){t.forEach(Bo)}function Gt(t){return\"function\"==typeof t}function l(t,e){return t!=t?e==e:t!==e||t&&\"object\"==typeof t||\"function\"==typeof t}function Ho(t){if(null==t)return zt;for(var e=arguments.length,n=new Array(1o.unsubscribe():o}function No(t){let e;return Ho(t,t=>e=t)(),e}function Ht(t,e,n){t.$$.on_destroy.push(Ho(e,n))}function Ao(t,e,n,r){if(t)return e=Yo(t,e,n,r),t[0](e)}function Yo(t,e,n,r){if(t[1]&&r){var o=n.ctx.slice(),i=t[1](r(e));for(const s in i)o[s]=i[s];return o}return n.ctx}function Wo(e,n,r,t){if(e[2]&&t){var o=e[2](t(r));if(void 0===n.dirty)return o;if(\"object\"!=typeof o)return n.dirty|o;{const e=[],r=Math.max(n.dirty.length,o.length);for(let t=0;tt.removeEventListener(e,n,r)}function Ko(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function R(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Qo(t,e){t.wholeText!==(e=\"\"+e)&&(t.data=e)}function Zo(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?\"important\":\"\")}function ti(t,e){return new t(e)}let ei;function ni(t){ei=t}function ri(){if(ei)return ei;throw new Error(\"Function called outside component initialization\")}function oi(t){ri().$$.on_mount.push(t)}function ii(t){ri().$$.after_update.push(t)}function si(t,e){ri().$$.context.set(t,e)}function Yt(t){return ri().$$.context.get(t)}function li(t,e){t=t.$$.callbacks[e.type];t&&t.slice().forEach(t=>t.call(this,e))}const ai=[],K=[],ci=[],ui=[],di=Promise.resolve();let fi=!1;function hi(){fi||(fi=!0,di.then($i))}function pi(){return hi(),di}function gi(t){ci.push(t)}const mi=new Set;let vi=0;function $i(){if(0===vi){const r=ei;do{try{for(;vi{yi.delete(t),r&&(n&&t.d(1),r())}),t.o(e)):r&&r()}r=\"undefined\"!=typeof window?window:\"undefined\"!=typeof globalThis?globalThis:global;function bi(t,e){G(t,1,1,()=>{e.delete(t.key)})}function ki(e,n,r,o,i,s,l,a,t,c,u,d){let f=e.length,h=s.length,p=f;for(var g={};p--;)g[e[p].key]=p;var m=[],v=new Map,$=new Map;for(p=h;p--;){const e=d(i,s,p),a=r(e);let t=l.get(a);t?o&&t.p(e,n):(t=c(a,e)).c(),v.set(a,m[p]=t),a in g&&$.set(a,Math.abs(p-g[a]))}var y=new Set,w=new Set;function b(t){B(t,1),t.m(a,u),l.set(t.key,t),u=t.first,h--}for(;f&&h;){const n=m[h-1],r=e[f-1],o=n.key,i=r.key;n===r?(u=n.first,f--,h--):v.has(i)?!l.has(o)||y.has(o)?b(n):w.has(i)?f--:$.get(o)>$.get(i)?(w.add(o),b(n)):(y.add(i),f--):(t(r,l),f--)}for(;f--;){const n=e[f];v.has(n.key)||t(n,l)}for(;h;)b(m[h-1]);return m}function p(t){t&&t.c()}function g(e,t,n,r){var{fragment:o,after_update:i}=e.$$;o&&o.m(t,n),r||gi(()=>{var t=e.$$.on_mount.map(Bo).filter(Gt);e.$$.on_destroy?e.$$.on_destroy.push(...t):Bt(t),e.$$.on_mount=[]}),i.forEach(gi)}function O(t,e){t=t.$$;null!==t.fragment&&(Bt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function o(r,t,e,n,o,i,s,l){var l=7{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const _i=[];function Ti(t,e){return{subscribe:m(t,e).subscribe}}function m(n,t){let r,o=1{i.delete(e),0===i.size&&(r(),r=null)}}}}function xi(t,l,e){const a=!Array.isArray(t),c=a?[t]:t,u=l.length<2;return Ti(e,e=>{let n=!1;const r=[];let o=0,i=zt;const s=()=>{var t;o||(i(),t=l(a?r[0]:r,e),u?e(t):i=Gt(t)?t:zt)},t=c.map((t,e)=>Ho(t,t=>{r[e]=t,o&=~(1<{o|=1<e.getTime()===t.getTime())}function Ii(t,e){e-=t.getUTCDay();t.setUTCDate(t.getUTCDate()+(e<=0?e:e-7))}function Fi(t){return\"string\"==typeof t&&t.length<=10}function Ri(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}function Ui(t,e,n){n=t.indexOf(e,n);return 0<=n?[e=n+e.length,{head:t.substr(0,n),tail:t.substr(e)}]:[-1,null]}function zi(e,n,t){t.update(t=>t.set(n,e))}function Bi(t,e,n,r){t=document.createElement(t);return t.className=e,n?t.innerHTML=n:r&&(t.innerText=r),t}function Gi(t){return t.scrollHeight>t.clientHeight}function Hi(t){return t.getBoundingClientRect()}function Ni(t,e){for(;e--;)t=t.parentElement;return t}function Ai(t){return Hi(t).height}let Yi=Di();function Wi(t,e){t[Yi]=e}function Xt(t){return(t=Ci({},t)).currentStart=N(t.currentStart),t.currentEnd=N(t.currentEnd),t.activeStart=N(t.activeStart),t.activeEnd=N(t.activeEnd),t}const Vi=[\"background\"];let Xi=1;function qi(t){return t.map(t=>({id:\"id\"in t?String(t.id):`{generated-${Xi++}}`,resourceIds:Array.isArray(t.resourceIds)?t.resourceIds.map(String):\"resourceId\"in t?[String(t.resourceId)]:[],allDay:t.allDay??(Fi(t.start)&&Fi(t.end)),start:Ei(t.start),end:Ei(t.end),title:t.title||\"\",titleHTML:t.titleHTML||\"\",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:Vi.includes(t.display)?t.display:\"auto\",extendedProps:t.extendedProps||{},backgroundColor:t.backgroundColor||t.color}))}function Ji(t){return t.map(t=>({events:t.events,url:t.url&&t.url.trimEnd(\"&\")||\"\",method:t.method&&t.method.toUpperCase()||\"GET\",extraParams:t.extraParams||{}}))}function Ki(t,e,n){return{start:t.start>e?t.start:e,end:t.endt.starte.start?1:0)}function Zi(e,n){var r={};if(e.length){let t;Qi(e);for(var o of e){for(var i,s=[],l=Pi(Wt(o.start));o.end>l;)!n.includes(l.getUTCDay())&&(s.push(Wt(l)),1s[s.length-1]&&(o.end=s[s.length-1])):(o.date=Pi(Wt(o.start)),o.days=1,o.dates=[o.date]),t&&A(t.date,o.date)&&(o.prev=t),t=o}}return r}function ts(t,e,n){t.top=0,t.prev&&(t.top=t.prev.bottom+1),t.bottom=t.top+n;let r=1,o=t.date.getTime();if(e[o]){e[o].sorted||(e[o].chunks.sort((t,e)=>t.top-e.top),e[o].sorted=!0);for(var i of e[o].chunks)t.topi.top&&(i=i.bottom-t.top+1,r+=i,t.top+=i,t.bottom+=i)}return r}function es(t,e,n,r,o,i){let s,l=o.format(t.start);if(e&&\"pointer\"!==t.event.display&&(l+=\" - \"+o.format(t.end)),n)s=Gt(n)?n({event:ns(t.event),timeText:l,view:Xt(i)}):n;else switch(t.event.display){case\"background\":s=\"\";break;case\"pointer\":s={domNodes:[Bi(\"div\",r.eventTime,null,l)]};break;default:s={domNodes:[Bi(\"div\",r.eventTime,null,l),Bi(\"div\",r.eventTitle,t.event.titleHTML,t.event.title)]}}return[l,s]}function ns(t){return os(t,N)}function rs(t){return os(t,Wt)}function os(t,e){return(t=Ci({},t)).start=e(t.start),t.end=e(t.end),t}function is(t,e,n,r,o){return(t.starte||!o&&A(t.start,t.end,e))&&(void 0===r||t.resourceIds.includes(r.id))}let ss,ls=Di();function as(t){t[ls]=!0}function cs(e){return t=>{t[ls]||(e&&e(t),as(t))}}function us(t,n,e){let r=e,o=!1,i=n.length<2,s=xi(t,(t,e)=>(o=!0,i?(r=n(t,e),e(r)):n(t,t=>{r=t,e(t)}),()=>{o=!1}),r);return{...s,get:()=>o?r:No(s)}}function ds(t,e){return xi([t,e],t=>{let[e,n]=t,r=Gt(n)?{format:n}:new Intl.DateTimeFormat(e,n);return{format:t=>r.format(N(t))}})}class fs{constructor(r,t){var e,n,o,i,s,l,a,c=function(t){var e,n={allDayContent:void 0,allDaySlot:!0,buttonText:{today:\"today\"},date:new Date,dateClick:void 0,datesSet:void 0,dayHeaderFormat:{weekday:\"short\",month:\"numeric\",day:\"numeric\"},displayEventEnd:!0,duration:{weeks:1},events:[],eventBackgroundColor:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventSources:[],eventTimeFormat:{hour:\"numeric\",minute:\"2-digit\"},firstDay:0,flexibleSlotTimeLimits:!1,headerToolbar:{start:\"title\",center:\"\",end:\"today prev,next\"},height:\"auto\",hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,monthMode:!1,nowIndicator:!1,selectable:!1,scrollTime:\"06:00:00\",slotDuration:\"00:30:00\",slotEventOverlap:!0,slotHeight:24,slotLabelFormat:{hour:\"numeric\",minute:\"2-digit\"},slotMaxTime:\"24:00:00\",slotMinTime:\"00:00:00\",theme:{allDay:\"ec-all-day\",active:\"ec-active\",bgEvent:\"ec-bg-event\",bgEvents:\"ec-bg-events\",body:\"ec-body\",button:\"ec-button\",buttonGroup:\"ec-button-group\",calendar:\"ec\",compact:\"ec-compact\",content:\"ec-content\",day:\"ec-day\",dayHead:\"ec-day-head\",days:\"ec-days\",event:\"ec-event\",eventBody:\"ec-event-body\",eventTime:\"ec-event-time\",eventTitle:\"ec-event-title\",events:\"ec-events\",extra:\"ec-extra\",handle:\"ec-handle\",header:\"ec-header\",hiddenScroll:\"ec-hidden-scroll\",hiddenTimes:\"ec-hidden-times\",highlight:\"ec-highlight\",icon:\"ec-icon\",line:\"ec-line\",lines:\"ec-lines\",nowIndicator:\"ec-now-indicator\",otherMonth:\"ec-other-month\",sidebar:\"ec-sidebar\",sidebarTitle:\"ec-sidebar-title\",today:\"ec-today\",time:\"ec-time\",title:\"ec-title\",toolbar:\"ec-toolbar\",week:\"ec-week\",withScroll:\"ec-with-scroll\"},titleFormat:{year:\"numeric\",month:\"short\",day:\"numeric\"},view:void 0,viewDidMount:void 0,views:{}};for(e of t)\"createOptions\"in e&&e.createOptions(n);return n}(r=r||[]),u=function(e){var t,n={buttonText:t=>Gt(t)?t(e.buttonText):t,date:t=>Pi(Ei(t)),duration:Mi,events:qi,eventSources:Ji,hiddenDays:t=>[...new Set(t)],highlightedDates:t=>t.map(Ei),scrollTime:Mi,slotDuration:Mi,slotMaxTime:Mi,slotMinTime:Mi,theme:t=>Gt(t)?t(e.theme):t};for(t of r)\"createParsers\"in t&&t.createParsers(n,e);return n}(c);for([e,n]of Object.entries(c))this[e]=(o=n,i=u[e],s=void 0,{...m(i?i(o):o,s),parse:i});this._queue=m(new Map),this._auxiliary=m([]),this._currentRange=xi([this.date,this.duration,this.monthMode,this.firstDay],t=>{var[t,e,n,r]=t,t=Wt(t);return n?t.setUTCDate(1):e.inWeeks&&Ii(t,r),{start:t,end:Vt(Wt(t),e)}}),this._activeRange=xi([(f=this)._currentRange,f.firstDay,f.monthMode,f.slotMinTime,f.slotMaxTime],t=>{let[e,n,r,,o]=t,i=Wt(e.start),s=Wt(e.end);var l;return r?(Ii(i,n),l=n-(t=s).getUTCDay(),t.setUTCDate(t.getUTCDate()+(0<=l?l:7+l))):(o.days||86400zi(()=>{let[t,r,a,c,e,u]=n;if(r.length){if(!c.start||c.start>a.start||c.end{0==--g&&Gt(u)&&u(!1)},n=[],o=t=>e(),i=t=>{n=n.concat(qi(t)),h(n),e()},s=ji(a.start),l=ji(a.end);for(var d of r){if(Gt(d.events)){var f=d.events({start:N(a.start),end:N(a.end),startStr:s,endStr:l},i,o);void 0!==f&&Promise.resolve(f).then(i,o)}else{let t=Gt(d.extraParams)?d.extraParams():Ci({},d.extraParams);t.start=s,t.end=l,t=new URLSearchParams(t);let e,n=d.url,r={};[\"GET\",\"HEAD\"].includes(d.method)?n+=(n.includes(\"?\")?\"&\":\"?\")+t:(r[\"content-type\"]=\"application/x-www-form-urlencoded;charset=UTF-8\",e=String(t)),fetch(n,{method:d.method,headers:r,body:e,signal:p.signal,credentials:\"same-origin\"}).then(t=>t.json()).then(i).catch(o)}++g}c.start=a.start,c.end=a.end}}else h(t)},r,t._queue),[]).subscribe(e.set),e}(this),this._now=Ti(Ei(),t=>{let e=setInterval(()=>{t(Ei())},1e3);return()=>clearInterval(e)}),this._today=xi(this._now,t=>Pi(Wt(t))),this._ignoreClick=m(!1),this._intlEventTime=ds(this.locale,this.eventTimeFormat),this._intlSlotLabel=ds(this.locale,this.slotLabelFormat),this._intlDayHeader=ds(this.locale,this.dayHeaderFormat),this._titleIntlRange=xi([this.locale,this.titleFormat],t=>{let[e,n]=t;if(Gt(n))return{format:(t,e)=>n(N(t),N(e))};let a=new Intl.DateTimeFormat(e,n);return{format:(t,e)=>{var t=N(t),e=N(e),n=a;if(t.getFullYear()!==e.getFullYear())return n.format(t)+\" - \"+n.format(e);var r=[];if(t.getMonth()!==e.getMonth()&&r.push(\"month\"),t.getDate()!==e.getDate()&&r.push(\"day\"),!r.length)return n.format(t);var o,i=n.resolvedOptions(),s={};for(o of r)s[o]=i[o];var r=new Intl.DateTimeFormat(i.locale,s),l=n.format(t),n=n.format(e),t=r.format(t),r=r.format(e);return(e=function(e,n,r,o){let i=0;for(;i{var[t,e,n,r]=t;return r?n.format(t,t):n.format(e.start,Li(Wt(e.end)))}),this._viewDates=us([(l=this)._activeRange,l.hiddenDays],t=>{let[e,n]=t,r=[],o=Pi(Wt(e.start)),i=Pi(Wt(e.end));for(;o{for(;n.includes(t.getUTCDay());)Oi(t);return t}),r=l._viewDates.get()),r}),this._view=us([(f=this).view,f._viewTitle,f._currentRange,f._activeRange],t=>{return[t,e,n,r]=[...t],{type:t,title:e,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0};var e,n,r}),this._viewComponent=m(void 0),this._viewClass=m(void 0),this._resBgColor=m(zt),this._interaction=m({}),this._iEvents=m([null,null]),this._draggable=m(zt),this._resizable=m(zt),this._classes=m(zo),this._iClass=m(void 0),this._scroll=m(void 0);for(a of r)\"createStores\"in a&&a.createStores(this);t.view&&this.view.set(t.view);var d=Ci({},c,t),f=(hs(d,this),new Set([...Object.keys(c.views),...Object.keys(t.views||{})]));for(let i of f){var h=Ci({},c.views[i]||{},t.views&&t.views[i]||{});hs(h,this);let o=Ci({},d,h);this.view.subscribe(t=>{t===i&&(this._viewComponent.set(o.component),Gt(o.viewDidMount))&&pi().then(()=>o.viewDidMount(this._view.get()))});for(let r of Object.keys(o))if(this.hasOwnProperty(r)&&\"_\"!==r[0]){let{set:e,_set:n,...t}=this[r];n=n||e,this[r]={set:t=>{o[r]=t,e(t)},_set:n,...t},this.view.subscribe(t=>{t===i&&n(o[r])})}}}}function hs(t,e){for(var n of Object.keys(t))e.hasOwnProperty(n)&&\"_\"!==n[0]&&e[n].parse&&(t[n]=e[n].parse(t[n]))}function ps(t,e,n){t=t.slice();return t[23]=e[n],t}function gs(n){let r,o,i,s,l,a=n[5][n[23]]+\"\";function c(){return n[20](n[23])}return{c(){r=I(\"button\"),o=Jo(a),R(r,\"class\",i=n[3].button+(n[6]===n[23]?\" \"+n[3].active:\"\")+\" ec-\"+n[23])},m(t,e){P(t,r,e),L(r,o),s||(l=At(r,\"click\",c),s=!0)},p(t,e){n=t,33&e&&a!==(a=n[5][n[23]]+\"\")&&Qo(o,a),73&e&&i!==(i=n[3].button+(n[6]===n[23]?\" \"+n[3].active:\"\")+\" ec-\"+n[23])&&R(r,\"class\",i)},d(t){t&&j(r),s=!1,l()}}}function ms(n){let r,o,i,s,l,a=n[5][n[23]]+\"\";return{c(){r=I(\"button\"),o=Jo(a),R(r,\"class\",i=n[3].button+\" ec-\"+n[23]),r.disabled=n[1]},m(t,e){P(t,r,e),L(r,o),s||(l=At(r,\"click\",n[19]),s=!0)},p(t,e){33&e&&a!==(a=t[5][t[23]]+\"\")&&Qo(o,a),9&e&&i!==(i=t[3].button+\" ec-\"+t[23])&&R(r,\"class\",i),2&e&&(r.disabled=t[1])},d(t){t&&j(r),s=!1,l()}}}function vs(n){let r,o,i,s,l,a;return{c(){r=I(\"button\"),R(o=I(\"i\"),\"class\",i=n[3].icon+\" ec-\"+n[23]),R(r,\"class\",s=n[3].button+\" ec-\"+n[23])},m(t,e){P(t,r,e),L(r,o),l||(a=At(r,\"click\",n[17]),l=!0)},p(t,e){9&e&&i!==(i=t[3].icon+\" ec-\"+t[23])&&R(o,\"class\",i),9&e&&s!==(s=t[3].button+\" ec-\"+t[23])&&R(r,\"class\",s)},d(t){t&&j(r),l=!1,a()}}}function $s(n){let r,o,i,s,l,a;return{c(){r=I(\"button\"),R(o=I(\"i\"),\"class\",i=n[3].icon+\" ec-\"+n[23]),R(r,\"class\",s=n[3].button+\" ec-\"+n[23])},m(t,e){P(t,r,e),L(r,o),l||(a=At(r,\"click\",n[16]),l=!0)},p(t,e){9&e&&i!==(i=t[3].icon+\" ec-\"+t[23])&&R(o,\"class\",i),9&e&&s!==(s=t[3].button+\" ec-\"+t[23])&&R(r,\"class\",s)},d(t){t&&j(r),l=!1,a()}}}function ys(t){let n,r,o;return{c(){n=I(\"h2\"),r=Jo(t[4]),R(n,\"class\",o=t[3].title)},m(t,e){P(t,n,e),L(n,r)},p(t,e){16&e&&Qo(r,t[4]),8&e&&o!==(o=t[3].title)&&R(n,\"class\",o)},d(t){t&&j(n)}}}function ws(t){return{c:zt,m:zt,p:zt,d:zt}}function bs(t){let n;function r(t){return\"\"==t[23]?ws:\"title\"==t[23]?ys:\"prev\"==t[23]?$s:\"next\"===t[23]?vs:\"today\"===t[23]?ms:gs}let o=r(t),i=o(t);return{c(){i.c(),n=b()},m(t,e){i.m(t,e),P(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),(i=o(t))&&(i.c(),i.m(n.parentNode,n)))},d(t){i.d(t),t&&j(n)}}}function ks(e){let o,i=e[0],s=[];for(let t=0;tn(18,s=t)),Ht(t,h,t=>n(4,a=t)),Ht(t,p,t=>n(5,c=t)),Ht(t,g,t=>n(2,o=t)),Ht(t,m,t=>n(21,r=t)),Ht(t,v,t=>n(22,i=t)),Ht(t,$,t=>n(3,l=t)),Ht(t,y,t=>n(6,u=t));let w,b=Pi(Ei());return t.$$set=t=>{\"buttons\"in t&&n(0,d=t.buttons)},t.$$.update=()=>{262144&t.$$.dirty&&n(1,w=b>=s.start&&bNt(g,o=Wt(b),o),t=>Nt(y,u=t,u)]}class Ts extends i{constructor(t){super(),o(this,t,_s,ks,l,{buttons:0})}}function xs(t,e,n){t=t.slice();return t[5]=e[n],t}function Cs(t,e,n){t=t.slice();return t[8]=e[n],t}function Ds(t){let r,n;return r=new Ts({props:{buttons:t[8]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e&&(n.buttons=t[8]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Ss(t){let r,o,i,s;return o=new Ts({props:{buttons:t[8]}}),{c(){r=I(\"div\"),p(o.$$.fragment),R(r,\"class\",i=t[1].buttonGroup)},m(t,e){P(t,r,e),g(o,r,null),s=!0},p(t,e){var n={};1&e&&(n.buttons=t[8]),o.$set(n),(!s||2&e&&i!==(i=t[1].buttonGroup))&&R(r,\"class\",i)},i(t){s||(B(o.$$.fragment,t),s=!0)},o(t){G(o.$$.fragment,t),s=!1},d(t){t&&j(r),O(o)}}}function Es(t){let r,o,i,n;const s=[Ss,Ds],l=[];function a(t){return 1{l[n]=null}),z(),(o=l[r])?o.p(t,e):(o=l[r]=s[r](t)).c(),B(o,1),o.m(i.parentNode,i))},i(t){n||(B(o),n=!0)},o(t){G(o),n=!1},d(t){l[r].d(t),t&&j(i)}}}function Ms(e){let o,i,n,s=e[0][e[5]],l=[];for(let t=0;tG(l[t],1,1,()=>{l[t]=null}))(t);z()}},i(t){if(!n){for(let t=0;tG(l[t],1,1,()=>{l[t]=null}))(t);z()}(!i||2&n&&o!==(o=e[1].toolbar))&&R(r,\"class\",o)},i(t){if(!i){for(let t=0;tn(4,r=t)),Ht(e,s,t=>n(1,o=t)),{start:[],center:[],end:[]});return e.$$.update=()=>{if(17&e.$$.dirty)for(var t of Object.keys(l))n(0,l[t]=r[t].split(\" \").map(t=>t.split(\",\")),l)},[l,o,i,s,r]}class Ps extends i{constructor(t){super(),o(this,t,Ls,Os,l,{})}}function js(t,e,n){t=t.slice();return t[11]=e[n],t}function Is(t){let n,r,o;var i=t[11];return i&&(n=ti(i,{})),{c(){n&&p(n.$$.fragment),r=b()},m(t,e){n&&g(n,t,e),P(t,r,e),o=!0},p(t,e){if(i!==(i=t[11])){if(n){U();const t=n;G(t.$$.fragment,1,0,()=>{O(t,1)}),z()}i?(p((n=ti(i,{})).$$.fragment),B(n.$$.fragment,1),g(n,r.parentNode,r)):n=null}},i(t){o||(n&&B(n.$$.fragment,t),o=!0)},o(t){n&&G(n.$$.fragment,t),o=!1},d(t){t&&j(r),n&&O(n,t)}}}function Fs(e){let o,r,i=e[0],s=[];for(let t=0;tG(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;tn(7,o=t)),Ht(e,a,t=>n(0,s=t)),Ht(e,c,t=>n(5,i=t)),Ht(e,d,t=>n(6,r=t)),{});return e.$$.update=()=>{var t;32&e.$$.dirty&&(t=i,Gt(o))&&zi(()=>o({start:N(t.start),end:N(t.end),startStr:ji(t.start),endStr:ji(t.end),view:Xt(r)}),f,u)},[s,l,a,c,d,i]}class Us extends i{constructor(t){super(),o(this,t,Rs,Fs,l,{})}}function zs(n){let r,o,i,s,l,a,c,u,d,f;o=new Ps({});var h=n[4];return h&&(s=ti(h,{})),c=new Us({}),{c(){r=I(\"div\"),p(o.$$.fragment),i=F(),s&&p(s.$$.fragment),a=F(),p(c.$$.fragment),R(r,\"class\",l=n[0].calendar+(n[1]?\" \"+n[0][n[1]]:\"\")+(n[2]?\" \"+n[0][n[2]]:\"\")),Zo(r,\"height\",n[3])},m(t,e){P(t,r,e),g(o,r,null),L(r,i),s&&g(s,r,null),P(t,a,e),g(c,t,e),u=!0,d||(f=At(window,\"click\",n[16],!0),d=!0)},p(t,e){if(h!==(h=t[4])){if(s){U();const t=s;G(t.$$.fragment,1,0,()=>{O(t,1)}),z()}h?(p((s=ti(h,{})).$$.fragment),B(s.$$.fragment,1),g(s,r,null)):s=null}(!u||7&e[0]&&l!==(l=t[0].calendar+(t[1]?\" \"+t[0][t[1]]:\"\")+(t[2]?\" \"+t[0][t[2]]:\"\")))&&R(r,\"class\",l),(!u||8&e[0])&&Zo(r,\"height\",t[3])},i(t){u||(B(o.$$.fragment,t),s&&B(s.$$.fragment,t),B(c.$$.fragment,t),u=!0)},o(t){G(o.$$.fragment,t),s&&G(s.$$.fragment,t),G(c.$$.fragment,t),u=!1},d(t){t&&j(r),O(o),s&&O(s),t&&j(a),O(c,t),d=!1,f()}}}function Bs(n,t,e){let r,o,i,s,l,a,c,u,d,f,h,{plugins:p=[]}=t,{options:g={}}=t,m=ri(),v=new fs(p,g),{_viewComponent:$,_viewClass:y,_ignoreClick:w,_interaction:b,_iClass:k,_events:_,_queue:T,events:x,eventSources:C,height:D,theme:S}=(si(\"state\",v),v);function E(t,e){return v.hasOwnProperty(t)&&(v[t].parse&&(e=v[t].parse(e)),v[t].set(e)),this}function M(t){l.length?Nt(_,s=t(s),s):Nt(x,i=t(i),i)}return Ht(n,$,t=>e(4,h=t)),Ht(n,y,t=>e(1,u=t)),Ht(n,w,t=>e(32,o=t)),Ht(n,b,t=>e(36,a=t)),Ht(n,k,t=>e(2,d=t)),Ht(n,_,t=>e(34,s=t)),Ht(n,T,t=>e(31,r=t)),Ht(n,x,t=>e(33,i=t)),Ht(n,C,t=>e(35,l=t)),Ht(n,D,t=>e(3,f=t)),Ht(n,S,t=>e(0,c=t)),t=()=>{var t;Bt(t=r),t.clear()},ri().$$.before_update.push(t),n.$$set=t=>{\"plugins\"in t&&e(17,p=t.plugins),\"options\"in t&&e(18,g=t.options)},n.$$.update=()=>{if(262144&n.$$.dirty[0])for(var[t,e]of function(t){var e=[];if(ss)for(var n of Object.keys(t))t[n]!==ss[n]&&e.push([n,t[n]]);return ss=Ci({},t),e}(g))E(t,e)},[c,u,d,f,h,$,y,w,b,k,_,T,x,C,D,S,function(t){o&&(as(t),Nt(w,o=!1,o))},p,g,E,function(t){t=v.hasOwnProperty(t)?No(v[t]):void 0;return t instanceof Date?N(t):t},function(){return v._fetchedRange.set({start:void 0,end:void 0}),this},function(){return s.map(ns)},function(t){for(var e of s)if(e.id==t)return ns(e);return null},function(e){return M(t=>t.concat(v.events.parse([e]))),this},function(n){return M(t=>{for(var e of t)if(e.id==n.id){Ci(e,v.events.parse([n])[0]);break}return t}),this},function(e){return M(t=>t.filter(t=>t.id!=e)),this},function(){return Xt(v._view.get())},function(){return a.action&&a.action.unselect(),this},function(e,n){for(let t of document.elementsFromPoint(e,n)){var r;if(t[Yi])return(r=function(t){for(var e=arguments.length,n=new Array(1{let[e,n,r]=t,o=[],i=Wt(e),s=7;for(;i.getUTCDay()!==n&&s;)Li(i),--s;for(let t=0;t<7;++t)r.includes(i.getUTCDay())||o.push(Wt(i)),Oi(i);return o}),this._hiddenEvents=m({}),this._popupDate=m(null),this._popupChunks=m([])}}function Ns(t,e,n){t=t.slice();return t[8]=e[n],t}function As(t){let n,r,o,i=t[3].format(t[8])+\"\";return{c(){n=I(\"div\"),r=Jo(i),R(n,\"class\",o=t[0].day)},m(t,e){P(t,n,e),L(n,r)},p(t,e){12&e&&i!==(i=t[3].format(t[8])+\"\")&&Qo(r,i),1&e&&o!==(o=t[0].day)&&R(n,\"class\",o)},d(t){t&&j(n)}}}function Ys(e){let r,o,i,n,s,l,a,c=e[2],u=[];for(let t=0;tn(0,r=t)),Ht(t,a,t=>n(3,s=t)),Ht(t,c,t=>n(1,o=t));var u=Yt(\"view-state\")[\"_days\"];return Ht(t,u,t=>n(2,i=t)),[r,o,i,s,l,a,c,u]}class Vs extends i{constructor(t){super(),o(this,t,Ws,Ys,l,{})}}function Xs(n){let r,o,i,s,l,a,c;const u=n[12].default,d=Ao(u,n,n[11],null);return{c(){r=I(\"div\"),o=I(\"div\"),d&&d.c(),R(o,\"class\",i=n[1].content),R(r,\"class\",s=n[1].body+(!0===n[2]?\" \"+n[1].uniform:\"\"))},m(t,e){P(t,r,e),L(r,o),d&&d.m(o,null),n[13](r),l=!0,a||(c=[At(window,\"resize\",n[9]),At(r,\"scroll\",function(){Gt(n[3])&&n[3].apply(this,arguments)})],a=!0)},p(t,e){var[e]=e;n=t,d&&d.p&&(!l||2048&e)&&Vo(d,u,n,n[11],l?Wo(u,n[11],e,null):Xo(n[11]),null),(!l||2&e&&i!==(i=n[1].content))&&R(o,\"class\",i),(!l||6&e&&s!==(s=n[1].body+(!0===n[2]?\" \"+n[1].uniform:\"\")))&&R(r,\"class\",s)},i(t){l||(B(d,t),l=!0)},o(t){G(d,t),l=!1},d(t){t&&j(r),d&&d.d(t),n[13](null),a=!1,Bt(c)}}}function qs(t,e,n){let r,o,i,s,l,a,{$$slots:c={},$$scope:u}=e,{dayMaxEvents:d,_events:f,_scrollable:h,_scroll:p,theme:g}=Yt(\"state\");function m(){Nt(h,r=Gi(a),r)}return Ht(t,d,t=>n(2,s=t)),Ht(t,f,t=>n(10,o=t)),Ht(t,h,t=>n(14,r=t)),Ht(t,p,t=>n(3,l=t)),Ht(t,g,t=>n(1,i=t)),t.$$set=t=>{\"$$scope\"in t&&n(11,u=t.$$scope)},t.$$.update=()=>{1025&t.$$.dirty&&a&&o&&setTimeout(m)},[a,i,s,l,d,f,h,p,g,m,o,u,c,function(t){K[t?\"unshift\":\"push\"](()=>{a=t,n(0,a)})}]}class Js extends i{constructor(t){super(),o(this,t,qs,Xs,l,{})}}function Ks(n){let r,o,i,s,l,a,c,u,d;var f=n[7].resizer;function h(t){return{props:{event:t[0]}}}return f&&(a=ti(f,h(n))).$on(\"pointerdown\",n[30](!0)),{c(){r=I(\"div\"),o=I(\"div\"),l=F(),a&&p(a.$$.fragment),R(o,\"class\",i=n[1].eventBody),R(r,\"class\",n[3]),R(r,\"style\",n[4])},m(t,e){P(t,r,e),L(r,o),L(r,l),a&&g(a,r,null),n[45](r),c=!0,u||(d=[qo(s=Si.call(null,o,n[5])),At(r,\"click\",function(){Gt(cs(n[29](n[8],n[6])))&&cs(n[29](n[8],n[6])).apply(this,arguments)}),At(r,\"mouseenter\",function(){Gt(n[29](n[9],n[6]))&&n[29](n[9],n[6]).apply(this,arguments)}),At(r,\"mouseleave\",function(){Gt(n[29](n[10],n[6]))&&n[29](n[10],n[6]).apply(this,arguments)}),At(r,\"pointerdown\",function(){Gt(\"auto\"===n[6]&&n[11](n[0])?n[30]():void 0)&&(\"auto\"===n[6]&&n[11](n[0])?n[30]():void 0).apply(this,arguments)})],u=!0)},p(t,e){n=t,(!c||2&e[0]&&i!==(i=n[1].eventBody))&&R(o,\"class\",i),s&&Gt(s.update)&&32&e[0]&&s.update.call(null,n[5]);t={};if(1&e[0]&&(t.event=n[0]),f!==(f=n[7].resizer)){if(a){U();const n=a;G(n.$$.fragment,1,0,()=>{O(n,1)}),z()}f?((a=ti(f,h(n))).$on(\"pointerdown\",n[30](!0)),p(a.$$.fragment),B(a.$$.fragment,1),g(a,r,null)):a=null}else f&&a.$set(t);(!c||8&e[0])&&R(r,\"class\",n[3]),(!c||16&e[0])&&R(r,\"style\",n[4])},i(t){c||(a&&B(a.$$.fragment,t),c=!0)},o(t){a&&G(a.$$.fragment,t),c=!1},d(t){t&&j(r),a&&O(a),n[45](null),u=!1,Bt(d)}}}function Qs(e,t,i){let s,l,n,r,o,a,c,u,d,f,h,p,g,m,v,$,y,w=t[\"chunk\"],{longChunks:b={}}=t,{inPopup:k=!1}=t,{dayMaxEvents:_,displayEventEnd:T,eventBackgroundColor:x,eventClick:C,eventColor:D,eventContent:F,eventDidMount:R,eventMouseEnter:U,eventMouseLeave:z,theme:B,_view:G,_intlEventTime:H,_interaction:N,_classes:A,_draggable:Y,_resBgColor:W}=Yt(\"state\");Ht(e,_,t=>i(48,l=t)),Ht(e,T,t=>i(40,d=t)),Ht(e,x,t=>i(43,p=t)),Ht(e,C,t=>i(8,m=t)),Ht(e,D,t=>i(42,h=t)),Ht(e,F,t=>i(39,u=t)),Ht(e,R,t=>i(49,o=t)),Ht(e,U,t=>i(9,v=t)),Ht(e,z,t=>i(10,$=t)),Ht(e,B,t=>i(1,c=t)),Ht(e,G,t=>i(37,r=t)),Ht(e,H,t=>i(38,a=t)),Ht(e,N,t=>i(7,n=t)),Ht(e,A,t=>i(41,f=t)),Ht(e,Y,t=>i(11,y=t)),Ht(e,W,t=>i(44,g=t));let S,E,V,M,O,X,L=Yt(\"view-state\")[\"_hiddenEvents\"];Ht(e,L,t=>i(47,s=t));let P,j=1,I=!1;return oi(()=>{Gt(o)&&o({event:ns(E),timeText:X,el:S,view:Xt(r)})}),e.$$set=t=>{\"chunk\"in t&&i(31,w=t.chunk),\"longChunks\"in t&&i(32,b=t.longChunks),\"inPopup\"in t&&i(33,k=t.inPopup)},e.$$.update=()=>{var t;1&e.$$.dirty[1]&&i(0,E=w.event),19&e.$$.dirty[0]|15409&e.$$.dirty[1]&&(i(6,P=E.display),t=E.backgroundColor||g(E)||p||h,i(4,M=`width:calc(${100*w.days}% + ${7*(w.days-1)}px);margin-top:${j}px;`),t&&i(4,M+=`background-color:${t};`),I&&i(4,M+=\"visibility:hidden;\"),i(3,V=f(c.event,E))),2&e.$$.dirty[0]|961&e.$$.dirty[1]&&i(5,[X,O]=es(w,d,u,c,a,r),O)},[E,c,S,V,M,O,P,n,m,v,$,y,_,T,x,C,D,F,R,U,z,B,G,H,N,A,Y,W,L,function(e,t){return\"preview\"!==t&&Gt(e)?t=>e({event:ns(E),el:S,jsEvent:t,view:Xt(r)}):void 0},function(e){return t=>n.action.dragDayGrid(E,S,t,k,e)},w,b,k,function(){if(S&&\"preview\"!==P&&!k)if(i(35,j=ts(w,b,Ai(S))),!0!==l)i(36,I=!1);else{var e,n=Ai(n=Ni(S,2))-Ai(n.firstElementChild)-function(e){let n=0;for(let t=0;tn);let t=!1;for(e of w.dates){var r,o=s[e.getTime()];o&&(r=o.size,I?o.add(w.event):o.delete(w.event),r!==o.size)&&(t=!0)}t&&L.set(s)}},j,I,r,a,u,d,f,h,p,g,function(t){K[t?\"unshift\":\"push\"](()=>{S=t,i(2,S)})}]}class Zs extends i{constructor(t){super(),o(this,t,Qs,Ks,l,{chunk:31,longChunks:32,inPopup:33,reposition:34},null,[-1,-1])}get reposition(){return this.$$.ctx[34]}}function tl(t,e,n){t=t.slice();return t[18]=e[n],t}function el(t,n){let r,o,i;return o=new Zs({props:{chunk:n[18],inPopup:!0}}),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){n=t;t={};1&e&&(t.chunk=n[18]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),O(o,t)}}}function nl(n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m=n[5].format(n[3])+\"\",v=[],$=new Map,y=n[0];const w=t=>t[18].event;for(let t=0;t{e&&!e.contains(t.target)&&e.dispatchEvent(new CustomEvent(n+\"outside\",{detail:{jsEvent:t}}))};return document.addEventListener(n,t,!0),{destroy(){document.removeEventListener(n,t,!0)}}}.call(null,r,\"pointerdown\")),At(r,\"pointerdown\",Ko(n[13])),At(r,\"pointerdownoutside\",n[12])],p=!0)},p(t,e){var[e]=e;(!h||40&e)&&m!==(m=t[5].format(t[3])+\"\")&&Qo(i,m),(!h||16&e&&a!==(a=t[4].dayHead))&&R(o,\"class\",a),1&e&&(y=t[0],U(),v=ki(v,e,w,1,t,y,$,u,bi,el,null,tl),z()),(!h||16&e&&d!==(d=t[4].events))&&R(u,\"class\",d),(!h||16&e&&f!==(f=t[4].popup))&&R(r,\"class\",f),(!h||4&e)&&R(r,\"style\",t[2])},i(t){if(!h){for(let t=0;tl(4,i=t)),Ht(e,c,t=>l(15,n=t)),Ht(e,u,t=>l(5,s=t));let d,{_popupDate:f,_popupChunks:h}=Yt(\"view-state\"),p=(Ht(e,f,t=>l(3,r=t)),Ht(e,h,t=>l(0,o=t)),\"\");function g(t){Nt(f,r=null,r)}return e.$$.update=()=>{1&e.$$.dirty&&o&&d&&(l(2,p=\"\"),pi().then(()=>{(o.length?function(){let t,e=Ni(d,1),n=Ni(e,3),r=Hi(d),o=Hi(e),i=Hi(n);var s;e.previousElementSibling?e.nextElementSibling?(s=(e.offsetWidth-r.width)/2,l(2,p=`left:${s}px;`)):l(2,p=\"right:0;\"):l(2,p=\"left:0;\"),r.height>=i.height?(t=i.top-o.top,s=o.bottom-i.bottom,l(2,p+=`bottom:${s}px;`)):(t=(o.height-r.height)/2,o.top+ti.bottom&&(t=i.bottom-o.top-r.height)),l(2,p+=`top:${t}px;`)}:g)()}))},[o,d,p,r,i,s,a,c,u,f,h,g,function(t){g(),Nt(c,n=!0,n)},function(t){li.call(this,e,t)},function(t){K[t?\"unshift\":\"push\"](()=>{d=t,l(1,d)})}]}class ol extends i{constructor(t){super(),o(this,t,rl,nl,l,{})}}function il(t,e,n){t=t.slice();return t[48]=e[n],t[49]=e,t[50]=n,t}function sl(t){let r,o,i,s;return o=new Zs({props:{chunk:t[2][1]}}),{c(){r=I(\"div\"),p(o.$$.fragment),R(r,\"class\",i=t[12].events)},m(t,e){P(t,r,e),g(o,r,null),s=!0},p(t,e){var n={};4&e[0]&&(n.chunk=t[2][1]),o.$set(n),(!s||4096&e[0]&&i!==(i=t[12].events))&&R(r,\"class\",i)},i(t){s||(B(o.$$.fragment,t),s=!0)},o(t){G(o.$$.fragment,t),s=!1},d(t){t&&j(r),O(o)}}}function ll(t){let r,o,i,s;return o=new Zs({props:{chunk:t[2][0]}}),{c(){r=I(\"div\"),p(o.$$.fragment),R(r,\"class\",i=t[12].events+\" \"+t[12].preview)},m(t,e){P(t,r,e),g(o,r,null),s=!0},p(t,e){var n={};4&e[0]&&(n.chunk=t[2][0]),o.$set(n),(!s||4096&e[0]&&i!==(i=t[12].events+\" \"+t[12].preview))&&R(r,\"class\",i)},i(t){s||(B(o.$$.fragment,t),s=!0)},o(t){G(o.$$.fragment,t),s=!1},d(t){t&&j(r),O(o)}}}function al(t,n){let r,o,i,s=n[50];const l=()=>n[39](o,s),a=()=>n[39](null,s);var e={chunk:n[48],longChunks:n[1]};return o=new Zs({props:e}),l(),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){s!==(n=t)[50]&&(a(),s=n[50],l());t={};16&e[0]&&(t.chunk=n[48]),2&e[0]&&(t.longChunks=n[1]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),a(),O(o,t)}}}function cl(){let n,r;return n=new ol({}),{c(){p(n.$$.fragment)},m(t,e){g(n,t,e),r=!0},i(t){r||(B(n.$$.fragment,t),r=!0)},o(t){G(n.$$.fragment,t),r=!1},d(t){O(n,t)}}}function ul(n){let r,o,i,s;return{c(){r=I(\"a\")},m(t,e){P(t,r,e),i||(s=[At(r,\"click\",Ko(n[29])),At(r,\"pointerdown\",Ko(n[38])),qo(o=Si.call(null,r,n[6]))],i=!0)},p(t,e){o&&Gt(o.update)&&64&e[0]&&o.update.call(null,t[6])},d(t){t&&j(r),i=!1,Bt(s)}}}function dl(n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v,$,y,w=n[0].getUTCDate()+\"\",b=n[2][1]&&A(n[2][1].date,n[0]),k=n[2][0]&&A(n[2][0].date,n[0]),_=[],T=new Map,x=b&&sl(n),C=k&&ll(n),D=n[4];const S=t=>t[48].event;for(let t=0;t{x=null}),z()),(k=5&e[0]?n[2][0]&&A(n[2][0].date,n[0]):k)?C?(C.p(n,e),5&e[0]&&B(C,1)):((C=ll(n)).c(),B(C,1),C.m(r,c)):C&&(U(),G(C,1,1,()=>{C=null}),z()),2066&e[0]&&(D=n[4],U(),_=ki(_,e,S,1,n,D,T,u,bi,al,null,il),z()),(!v||4096&e[0]&&d!==(d=n[12].events))&&R(u,\"class\",d),n[7]?M?128&e[0]&&B(M,1):((M=cl()).c(),B(M,1),M.m(r,h)):M&&(U(),G(M,1,1,()=>{M=null}),z()),n[5].size?O?O.p(n,e):((O=ul(n)).c(),O.m(p,null)):O&&(O.d(1),O=null),(!v||4096&e[0]&&g!==(g=n[12].dayFoot))&&R(p,\"class\",g),(!v||5888&e[0]&&m!==(m=n[12].day+(n[8]?\" \"+n[12].today:\"\")+(n[9]?\" \"+n[12].otherMonth:\"\")+(n[10]?\" \"+n[12].highlight:\"\")))&&R(r,\"class\",m)},i(t){if(!v){B(x),B(C);for(let t=0;tr(37,u=t)),Ht(n,y,t=>r(13,d=t)),Ht(n,w,t=>r(36,c=t)),Ht(n,b,t=>r(35,a=t)),Ht(n,k,t=>r(12,e=t)),Ht(n,_,t=>r(42,l=t)),Ht(n,T,t=>r(14,f=t)),Ht(n,x,t=>r(15,h=t));let C,D,{_hiddenEvents:S,_popupDate:E,_popupChunks:M}=Yt(\"view-state\");Ht(n,S,t=>r(33,o=t)),Ht(n,E,t=>r(34,s=t)),Ht(n,M,t=>r(41,i=t));let R,U,z,O,B=Pi(Ei()),L=new Set,P=\"\",j=[];function G(){let e=Oi(Wt(p)),t=D.concat(m[p.getTime()]?.chunks||[]);Nt(M,i=t.map(t=>Ci({},t,Ki(t.event,p,e),{days:1,dates:[p]})).sort((t,e)=>t.top-e.top),i)}function I(){r(11,j.length=D.length,j);for(var t of j)t&&t.reposition&&t.reposition()}ii(I);let H={};return n.$$set=t=>{\"date\"in t&&r(0,p=t.date),\"chunks\"in t&&r(32,g=t.chunks),\"longChunks\"in t&&r(1,m=t.longChunks),\"iChunks\"in t&&r(2,v=t.iChunks)},n.$$.update=()=>{if(49&n.$$.dirty[0]|2&n.$$.dirty[1]){r(4,D=[]),L.clear(),r(5,L),r(32,g),r(0,p),r(4,D);for(var t of g)A(t.date,p)&&D.push(t)}var e;33&n.$$.dirty[0]&&Nt(S,o[p.getTime()]=L,o),1&n.$$.dirty[0]|96&n.$$.dirty[1]&&(r(8,R=A(p,B)),r(9,U=p.getUTCMonth()!==u.getUTCMonth()),r(10,z=c.some(t=>A(t,p)))),96&n.$$.dirty[0]|20&n.$$.dirty[1]&&o&&L.size&&(e=\"+\"+L.size+\" more\",a?(r(6,P=Gt(a)?a({num:L.size,text:e}):a),\"string\"==typeof P&&r(6,P={html:P})):r(6,P={html:e})),1&n.$$.dirty[0]|8&n.$$.dirty[1]&&r(7,O=s&&A(p,s)),146&n.$$.dirty[0]&&O&&m&&D&&pi().then(G),9&n.$$.dirty[0]&&C&&Wi(C,()=>p),4&n.$$.dirty[1]&&o&&zi(I,H,F)},[p,m,v,C,D,L,P,O,R,U,z,j,e,d,f,h,$,y,w,b,k,_,T,x,S,E,M,function(e){return Gt(e)?t=>e({allDay:!0,date:N(p),dateStr:ji(p),dayEl:C,jsEvent:t,view:Xt(l)}):void 0},function(e){return e.pointer?t=>e.pointer.enterDayGrid(p,t):void 0},function(){Nt(E,s=p,s)},function(e,t){return t&&e.action?t=>e.action.selectDayGrid(p,C,t):void 0},I,g,o,s,a,c,u,function(t){li.call(this,n,t)},function(t,e){K[t?\"unshift\":\"push\"](()=>{j[e]=t,r(11,j)})},function(t){K[t?\"unshift\":\"push\"](()=>{C=t,r(3,C)})}]}class pl extends i{constructor(t){super(),o(this,t,hl,dl,l,{date:0,chunks:32,longChunks:1,iChunks:2},null,[-1,-1])}}function gl(t,e,n){t=t.slice();return t[14]=e[n],t}function ml(t){let r,n;return r=new pl({props:{date:t[14],chunks:t[1],longChunks:t[2],iChunks:t[3]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e&&(n.date=t[14]),2&e&&(n.chunks=t[1]),4&e&&(n.longChunks=t[2]),8&e&&(n.iChunks=t[3]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function vl(e){let r,o,i,s=e[0],l=[];for(let t=0;tG(l[t],1,1,()=>{l[t]=null}))(t);z()}(!i||16&n&&o!==(o=e[4].days))&&R(r,\"class\",o)},i(t){if(!i){for(let t=0;tn(13,i=t)),Ht(e,c,t=>n(12,o=t)),Ht(e,u,t=>n(11,r=t)),Ht(e,d,t=>n(4,s=t));let f,h,p,g,m=[];return e.$$set=t=>{\"dates\"in t&&n(0,l=t.dates)},e.$$.update=()=>{if(1&e.$$.dirty&&(n(9,p=l[0]),n(10,g=Oi(Wt(l[l.length-1])))),11778&e.$$.dirty){n(1,f=[]);for(var t of i)\"background\"!==t.display&&is(t,p,g)&&(t=Ki(t,p,g),f.push(t));n(2,h=Zi(f,r))}7680&e.$$.dirty&&n(3,m=o.map(t=>{let e;return t&&is(t,p,g)?Zi([e=Ki(t,p,g)],r):e=null,e}))},[l,f,h,m,s,a,c,u,d,p,g,r,o,i]}class yl extends i{constructor(t){super(),o(this,t,$l,vl,l,{dates:0})}}function wl(t,e,n){t=t.slice();return t[14]=e[n],t}function bl(t){let r,n;return r=new yl({props:{dates:t[14]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e&&(n.dates=t[14]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function kl(e){let o,r,i=e[0],s=[];for(let t=0;tG(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;tr(7,o=t)),Ht(t,c,t=>r(11,l=t)),Ht(t,u,t=>r(8,n=t)),Ht(t,d,t=>r(9,s=t));var f=new Hs(Yt(\"state\"));si(\"view-state\",f);let h,p,g=f[\"_hiddenEvents\"];return Ht(t,g,t=>r(10,i=t)),Nt(c,l=\"month\",l),t.$$.update=()=>{if(961&t.$$.dirty){r(0,h=[]),r(6,p=7-s.length),Nt(g,i={},i);for(let e=0;en(0,r=t)),t.$$set=t=>{\"$$scope\"in t&&n(2,i=t.$$scope)},[r,s,i,o]}class El extends i{constructor(t){super(),o(this,t,Sl,Dl,l,{})}}function Ml(n){let r,o,i,s,l,a,c,u,d,f;return{c(){r=I(\"div\"),o=I(\"div\"),s=F(),l=I(\"div\"),R(o,\"class\",i=n[0].eventTag),R(o,\"style\",n[2]),R(l,\"class\",a=n[0].eventBody),R(r,\"class\",u=n[0].event)},m(t,e){P(t,r,e),L(r,o),L(r,s),L(r,l),n[29](r),d||(f=[qo(c=Si.call(null,l,n[3])),At(r,\"click\",function(){Gt(n[19](n[4]))&&n[19](n[4]).apply(this,arguments)}),At(r,\"mouseenter\",function(){Gt(n[19](n[5]))&&n[19](n[5]).apply(this,arguments)}),At(r,\"mouseleave\",function(){Gt(n[19](n[6]))&&n[19](n[6]).apply(this,arguments)})],d=!0)},p(t,e){n=t,1&e[0]&&i!==(i=n[0].eventTag)&&R(o,\"class\",i),4&e[0]&&R(o,\"style\",n[2]),1&e[0]&&a!==(a=n[0].eventBody)&&R(l,\"class\",a),c&&Gt(c.update)&&8&e[0]&&c.update.call(null,n[3]),1&e[0]&&u!==(u=n[0].event)&&R(r,\"class\",u)},i:zt,o:zt,d(t){t&&j(r),n[29](null),d=!1,Bt(f)}}}function Ol(e,t,n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v,$,y,w=t[\"chunk\"],{displayEventEnd:b,eventBackgroundColor:k,eventColor:_,eventContent:T,eventClick:x,eventDidMount:C,eventMouseEnter:D,eventMouseLeave:S,theme:E,_view:M,_intlEventTime:O,_resBgColor:L}=Yt(\"state\");return Ht(e,b,t=>n(25,a=t)),Ht(e,k,t=>n(27,u=t)),Ht(e,_,t=>n(26,c=t)),Ht(e,T,t=>n(24,l=t)),Ht(e,x,t=>n(4,f=t)),Ht(e,C,t=>n(31,o=t)),Ht(e,D,t=>n(5,h=t)),Ht(e,S,t=>n(6,p=t)),Ht(e,E,t=>n(0,s=t)),Ht(e,M,t=>n(22,r=t)),Ht(e,O,t=>n(23,i=t)),Ht(e,L,t=>n(28,d=t)),oi(()=>{Gt(o)&&o({event:ns(m),timeText:y,el:g,view:Xt(r)})}),e.$$set=t=>{\"chunk\"in t&&n(20,w=t.chunk)},e.$$.update=()=>{var t;1048576&e.$$.dirty[0]&&n(21,m=w.event),471859200&e.$$.dirty[0]&&(t=m.backgroundColor||d(m)||u||c)&&n(2,v=`background-color:${t};`),63963137&e.$$.dirty[0]&&n(3,[y,$]=es(w,a,l,s,i,r),$)},[s,g,v,$,f,h,p,b,k,_,T,x,C,D,S,E,M,O,L,function(e){return t=>{Gt(e)&&e({event:ns(m),el:g,jsEvent:t,view:Xt(r)})}},w,m,r,i,l,a,c,u,d,function(t){K[t?\"unshift\":\"push\"](()=>{g=t,n(1,g)})}]}class Ll extends i{constructor(t){super(),o(this,t,Ol,Ml,l,{chunk:20},null,[-1,-1])}}function Pl(t,e,n){t=t.slice();return t[24]=e[n],t}function jl(r){let o,i,t,s,l,n,a,c,u,d,f,h,p=r[7].format(r[0])+\"\",g=r[8].format(r[0])+\"\",m=[],v=new Map,$=r[2];const y=t=>t[24].event;for(let t=0;t<$.length;t+=1){var e=Pl(r,$,t),w=y(e);v.set(w,m[t]=Il(w,e))}return{c(){o=I(\"div\"),i=Jo(p),t=F(),s=I(\"span\"),l=Jo(g),c=F();for(let t=0;t{o=null}),z())},i(t){r||(B(o),r=!0)},o(t){G(o),r=!1},d(t){o&&o.d(t),t&&j(n)}}}function Rl(o,t,i){let n,s,l,e,r,a,c,u=t[\"date\"],{_events:d,_view:f,dateClick:h,highlightedDates:p,theme:g}=Yt(\"state\");Ht(o,d,t=>i(18,l=t)),Ht(o,f,t=>i(20,n=t)),Ht(o,h,t=>i(6,r=t)),Ht(o,p,t=>i(17,s=t)),Ht(o,g,t=>i(5,e=t));let m,v,{_intlListDayFormat:$,_intlListDaySideFormat:y}=Yt(\"view-state\");Ht(o,$,t=>i(7,a=t)),Ht(o,y,t=>i(8,c=t));let w,b,k=Pi(Ei());return o.$$set=t=>{\"date\"in t&&i(0,u=t.date)},o.$$.update=()=>{if(262149&o.$$.dirty){i(2,v=[]);var t,e,n=u,r=Oi(Wt(u));for(t of l)\"auto\"===t.display&&is(t,n,r)&&(e=Ki(t,n,r),v.push(e));Qi(v)}131073&o.$$.dirty&&(i(3,w=A(u,k)),i(4,b=s.some(t=>A(t,u)))),3&o.$$.dirty&&m&&Wi(m,()=>u)},[u,m,v,w,b,e,r,a,c,d,f,h,p,g,$,y,function(e){return Gt(e)?t=>{e({allDay:!0,date:N(u),dateStr:ji(u),dayEl:m,jsEvent:t,view:Xt(n)})}:void 0},s,l,function(t){K[t?\"unshift\":\"push\"](()=>{m=t,i(1,m)})}]}class Ul extends i{constructor(t){super(),o(this,t,Rl,Fl,l,{date:0})}}class zl{constructor(t){this._intlListDayFormat=ds(t.locale,t.listDayFormat),this._intlListDaySideFormat=ds(t.locale,t.listDaySideFormat)}}function Bl(t,e,n){t=t.slice();return t[18]=e[n],t}function Gl(e){let o,r,i=e[1],s=[];for(let t=0;tG(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t{l[n]=null}),z(),(o=l[r])?o.p(t,e):(o=l[r]=s[r](t)).c(),B(o,1),o.m(i.parentNode,i))},i(t){n||(B(o),n=!0)},o(t){G(o),n=!1},d(t){l[r].d(t),t&&j(i)}}}function Yl(t){let r,n;return r=new El({props:{$$slots:{default:[Al]},$$scope:{ctx:t}}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var[e]=e,n={};2097167&e&&(n.$$scope={dirty:e,ctx:t}),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Wl(r,t,o){let e,n,i,s,l,a,c,u,d,{_events:f,_view:h,_viewDates:p,_viewClass:g,noEventsClick:m,noEventsContent:v,theme:$}=Yt(\"state\");return Ht(r,f,t=>o(13,s=t)),Ht(r,h,t=>o(14,e=t)),Ht(r,p,t=>o(1,l=t)),Ht(r,g,t=>o(16,a=t)),Ht(r,m,t=>o(15,n=t)),Ht(r,v,t=>o(12,i=t)),Ht(r,$,t=>o(3,c=t)),si(\"view-state\",new zl(Yt(\"state\"))),Nt(g,a=\"list\",a),r.$$.update=()=>{if(8194&r.$$.dirty&&(o(2,u=!0),l.length)){var t,e=l[0],n=Oi(Wt(l[l.length-1]));for(t of s)if(\"auto\"===t.display&&t.starte){o(2,u=!1);break}}4097&r.$$.dirty&&(o(0,d=Gt(i)?i():i),\"string\"==typeof d)&&o(0,d={html:d})},[d,l,u,c,f,h,p,g,m,v,$,function(t){Gt(n)&&n({jsEvent:t,view:Xt(e)})},i,s]}class Vl extends i{constructor(t){super(),o(this,t,Wl,Yl,l,{})}}var Xl={createOptions(t){t.buttonText.listDay=\"list\",t.buttonText.listWeek=\"list\",t.buttonText.listMonth=\"list\",t.buttonText.listYear=\"list\",t.listDayFormat={weekday:\"long\"},t.listDaySideFormat={year:\"numeric\",month:\"long\",day:\"numeric\"},t.noEventsClick=void 0,t.noEventsContent=\"No events\",t.theme.daySide=\"ec-day-side\",t.theme.eventTag=\"ec-event-tag\",t.theme.list=\"ec-list\",t.theme.noEvents=\"ec-no-events\",t.view=\"listWeek\",t.views.listDay={component:Vl,duration:{days:1}},t.views.listWeek={component:Vl,duration:{weeks:1}},t.views.listMonth={component:Vl,duration:{months:1}},t.views.listYear={component:Vl,duration:{years:1}}}};class ql{constructor(t){this._slotTimeLimits=xi([t._events,t._viewDates,t.flexibleSlotTimeLimits,t.slotMinTime,t.slotMaxTime],t=>{var[e,n,t,r,o]=t,i=Mi(r),s=Mi(o);if(t){var l=Mi(Math.min(i.seconds,Math.max(0,s.seconds-86400))),a=Mi(Math.max(s.seconds,l.seconds+86400));t:for(var c of n){var u,d,f=Vt(Wt(c),i),h=Vt(Wt(c),s),p=Vt(Wt(c),l),g=Vt(Wt(c),a);for(u of e)if(\"auto\"===u.display&&u.startp)if(u.starth&&(d=Math.min((u.end-c)/1e3,a.seconds))>s.seconds&&(s.seconds=d),i.seconds===l.seconds&&s.seconds===a.seconds)break t}}return{min:i,max:s}}),this._times=xi([this._slotTimeLimits,t._intlSlotLabel,t.slotDuration],t=>{let[e,n,r]=t,o=3600<=r.seconds,i=[],s=Ei(\"2020-01-01\"),l=Wt(s),a=1;for(Vt(s,e.min),Vt(l,e.max);sn(3,i=t)),Ht(t,d,t=>n(9,r=t)),Ht(t,f,t=>n(2,o=t));let h,p=Yt(\"view-state\")[\"_times\"];return Ht(t,p,t=>n(4,s=t)),t.$$set=t=>{\"allDay\"in t&&n(0,c=t.allDay),\"$$scope\"in t&&n(10,a=t.$$scope)},t.$$.update=()=>{512&t.$$.dirty&&n(1,h=Jl(r))},[c,h,o,i,s,u,d,f,p,r,a,l]}class ea extends i{constructor(t){super(),o(this,t,ta,Zl,l,{allDay:0})}}function na(t,e,n){t=t.slice();return t[30]=e[n],t}function ra(t,e,n){t=t.slice();return t[33]=e[n],t}function oa(t){let n,r,o,i=t[33]+\"\";return{c(){n=I(\"div\"),r=Jo(i),R(n,\"class\",o=t[5].time)},m(t,e){P(t,n,e),L(n,r)},p(t,e){2&e[0]&&i!==(i=t[33]+\"\")&&Qo(r,i),32&e[0]&&o!==(o=t[5].time)&&R(n,\"class\",o)},d(t){t&&j(n)}}}function ia(t){let n,r;return{c(){R(n=I(\"div\"),\"class\",r=t[5].line)},m(t,e){P(t,n,e)},p(t,e){32&e[0]&&r!==(r=t[5].line)&&R(n,\"class\",r)},d(t){t&&j(n)}}}function sa(n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v,$,y,w,b,k=n[1],_=[];for(let t=0;tn(22,a=t)),Ht(t,m,t=>n(21,l=t)),Ht(t,v,t=>n(28,r=t)),Ht(t,$,t=>n(6,f=t)),Ht(t,y,t=>n(23,c=t)),Ht(t,w,t=>n(19,o=t)),Ht(t,b,t=>n(20,s=t)),Ht(t,k,t=>n(5,d=t));let _,T,{_slotTimeLimits:x,_times:C}=Yt(\"view-state\");Ht(t,x,t=>n(24,u=t)),Ht(t,C,t=>n(1,i=t));let D,S,E=[];function M(){Nt(v,r=Gi(_),r)}return t.$$set=t=>{\"$$scope\"in t&&n(25,p=t.$$scope)},t.$$.update=()=>{17301506&t.$$.dirty[0]&&(n(2,T=3600<=o.seconds),n(3,E.length=i.length,E),n(18,D=u.min.seconds)),8388608&t.$$.dirty[0]&&n(4,S=Jl(c)),8126465&t.$$.dirty[0]&&_&&a&&n(0,_.scrollTop=((l.seconds-D)/o.seconds-.5)*s,_),524291&t.$$.dirty[0]&&_&&i&&o&&setTimeout(M)},[_,i,T,E,S,d,f,g,m,v,$,y,w,b,k,x,C,M,D,o,s,l,a,c,u,p,h,function(t){K[t?\"unshift\":\"push\"](()=>{_=t,n(0,_),n(22,a),n(21,l),n(18,D),n(19,o),n(20,s),n(1,i),n(24,u)})}]}class aa extends i{constructor(t){super(),o(this,t,la,sa,l,{},null,[-1,-1])}}function ca(n){let r,o,i,s,l,a,c,u,d;var f=n[7].resizer;function h(t){return{props:{event:t[0]}}}return f&&(a=ti(f,h(n))).$on(\"pointerdown\",n[32](!0)),{c(){r=I(\"div\"),o=I(\"div\"),l=F(),a&&p(a.$$.fragment),R(o,\"class\",i=n[2].eventBody),R(r,\"class\",n[4]),R(r,\"style\",n[5])},m(t,e){P(t,r,e),L(r,o),L(r,l),a&&g(a,r,null),n[47](r),c=!0,u||(d=[qo(s=Si.call(null,o,n[6])),At(r,\"click\",function(){Gt(cs(n[31](n[8],n[1])))&&cs(n[31](n[8],n[1])).apply(this,arguments)}),At(r,\"mouseenter\",function(){Gt(n[31](n[9],n[1]))&&n[31](n[9],n[1]).apply(this,arguments)}),At(r,\"mouseleave\",function(){Gt(n[31](n[10],n[1]))&&n[31](n[10],n[1]).apply(this,arguments)}),At(r,\"pointerdown\",function(){Gt(\"auto\"===n[1]&&n[11](n[0])?n[32]():void 0)&&(\"auto\"===n[1]&&n[11](n[0])?n[32]():void 0).apply(this,arguments)})],u=!0)},p(t,e){n=t,(!c||4&e[0]&&i!==(i=n[2].eventBody))&&R(o,\"class\",i),s&&Gt(s.update)&&64&e[0]&&s.update.call(null,n[6]);t={};if(1&e[0]&&(t.event=n[0]),f!==(f=n[7].resizer)){if(a){U();const n=a;G(n.$$.fragment,1,0,()=>{O(n,1)}),z()}f?((a=ti(f,h(n))).$on(\"pointerdown\",n[32](!0)),p(a.$$.fragment),B(a.$$.fragment,1),g(a,r,null)):a=null}else f&&a.$set(t);(!c||16&e[0])&&R(r,\"class\",n[4]),(!c||32&e[0])&&R(r,\"style\",n[5])},i(t){c||(a&&B(a.$$.fragment,t),c=!0)},o(t){a&&G(a.$$.fragment,t),c=!1},d(t){t&&j(r),a&&O(a),n[47](null),u=!1,Bt(d)}}}function ua(o,t,i){let n,s,e,l,a,c,u,d,f,h,p,g,m,v,$,r,y,w,b,k=t[\"date\"],_=t[\"chunk\"],{displayEventEnd:T,eventBackgroundColor:x,eventColor:C,eventContent:D,eventClick:S,eventDidMount:E,eventMouseEnter:M,eventMouseLeave:F,slotEventOverlap:R,slotDuration:U,slotHeight:z,theme:B,_view:G,_intlEventTime:H,_interaction:N,_classes:A,_draggable:Y,_resBgColor:W}=Yt(\"state\");Ht(o,T,t=>i(38,u=t)),Ht(o,x,t=>i(42,p=t)),Ht(o,C,t=>i(41,h=t)),Ht(o,D,t=>i(37,c=t)),Ht(o,S,t=>i(8,r=t)),Ht(o,E,t=>i(49,e=t)),Ht(o,M,t=>i(9,y=t)),Ht(o,F,t=>i(10,w=t)),Ht(o,R,t=>i(40,f=t)),Ht(o,U,t=>i(46,$=t)),Ht(o,z,t=>i(44,m=t)),Ht(o,B,t=>i(2,a=t)),Ht(o,G,t=>i(35,s=t)),Ht(o,H,t=>i(36,l=t)),Ht(o,N,t=>i(7,n=t)),Ht(o,A,t=>i(39,d=t)),Ht(o,Y,t=>i(11,b=t)),Ht(o,W,t=>i(43,g=t));let O,L,P,V,j,I,X,{_slotTimeLimits:q,_viewResources:J}=Yt(\"view-state\");return Ht(o,q,t=>i(45,v=t)),oi(()=>{Gt(e)&&e({event:ns(L),timeText:X,el:O,view:Xt(s)})}),o.$$set=t=>{\"date\"in t&&i(33,k=t.date),\"chunk\"in t&&i(34,_=t.chunk)},o.$$.update=()=>{var t,e,n,r;8&o.$$.dirty[1]&&i(0,L=_.event),39&o.$$.dirty[0]|65292&o.$$.dirty[1]&&(i(1,P=L.display),r=$.seconds/60,t=v.min.seconds/60,n=(_.start-k)/1e3/60,e=(_.end-k)/1e3/60,t=(n-t)/r*m,e=(e-n)/r*m,n=(v.max.seconds/60-n)/r*m,r=L.backgroundColor||g(L)||p||h,i(5,j=`top:${t}px;min-height:${e}px;height:${e}px;max-height:${n}px;`),r&&i(5,j+=`background-color:${r};`),\"auto\"!==P&&\"ghost\"!==P||i(5,j+=`z-index:${_.column+1};left:${100/_.group.columns.length*_.column}%;width:${100/_.group.columns.length*(f?.5*(1+_.group.columns.length-_.column):1)}%;`),i(4,V=d(\"background\"===P?a.bgEvent:a.event,L))),4&o.$$.dirty[0]|248&o.$$.dirty[1]&&i(6,[X,I]=es(_,u,c,a,l,s),I)},[L,P,a,O,V,j,I,n,r,y,w,b,T,x,C,D,S,E,M,F,R,U,z,B,G,H,N,A,Y,W,q,function(e,t){return\"preview\"!==t&&Gt(e)?t=>e({event:ns(L),el:O,jsEvent:t,view:Xt(s)}):void 0},function(e){return t=>n.action.dragTimeGrid(L,O,t,J,!1,e)},k,_,s,l,c,u,d,f,h,p,g,m,v,$,function(t){K[t?\"unshift\":\"push\"](()=>{O=t,i(3,O)})}]}class da extends i{constructor(t){super(),o(this,t,ua,ca,l,{date:33,chunk:34},null,[-1,-1])}}function fa(t){let n,r;return{c(){R(n=I(\"div\"),\"class\",r=t[1].nowIndicator),Zo(n,\"top\",t[0]+\"px\")},m(t,e){P(t,n,e)},p(t,e){var[e]=e;2&e&&r!==(r=t[1].nowIndicator)&&R(n,\"class\",r),1&e&&Zo(n,\"top\",t[0]+\"px\")},i:zt,o:zt,d(t){t&&j(n)}}}function ha(n,t,r){let o,i,s,l,a,e,{slotDuration:c,slotHeight:u,theme:d,_now:f,_today:h}=Yt(\"state\");Ht(n,c,t=>r(11,s=t)),Ht(n,u,t=>r(9,o=t)),Ht(n,d,t=>r(1,e=t)),Ht(n,f,t=>r(13,a=t)),Ht(n,h,t=>r(12,l=t));let p,g=Yt(\"view-state\")[\"_slotTimeLimits\"],m=(Ht(n,g,t=>r(10,i=t)),0);return n.$$.update=()=>{var t,e;12288&n.$$.dirty&&r(8,p=(a-l)/1e3/60),3840&n.$$.dirty&&(t=s.seconds/60,e=i.min.seconds/60,r(0,m=(p-e)/t*o))},[m,e,c,u,d,f,h,g,p,o,i,s,l,a]}class pa extends i{constructor(t){super(),o(this,t,ha,fa,l,{})}}function ga(t,e,n){t=t.slice();return t[42]=e[n],t}function ma(t,e,n){t=t.slice();return t[42]=e[n],t}function va(t,n){let r,o,i;return o=new da({props:{date:n[0],chunk:n[42]}}),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){n=t;t={};1&e[0]&&(t.date=n[0]),8&e[0]&&(t.chunk=n[42]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),O(o,t)}}}function $a(t){let r,n;return r=new da({props:{date:t[0],chunk:t[4][1]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e[0]&&(n.date=t[0]),16&e[0]&&(n.chunk=t[4][1]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function ya(t,n){let r,o,i;return o=new da({props:{date:n[0],chunk:n[42]}}),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){n=t;t={};1&e[0]&&(t.date=n[0]),4&e[0]&&(t.chunk=n[42]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),O(o,t)}}}function wa(t){let r,n;return r=new da({props:{date:t[0],chunk:t[4][0]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e[0]&&(n.date=t[0]),16&e[0]&&(n.chunk=t[4][0]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function ba(){let n,r;return n=new pa({}),{c(){p(n.$$.fragment)},m(t,e){g(n,t,e),r=!0},i(t){r||(B(n.$$.fragment,t),r=!0)},o(t){G(n.$$.fragment,t),r=!1},d(t){O(n,t)}}}function ka(n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v,$=[],y=new Map,w=[],b=new Map,k=n[3];const _=t=>t[42].event;for(let t=0;tt[42].event;for(let t=0;t{x=null}),z()),5&e[0]&&(C=n[2],U(),w=ki(w,e,D,1,n,C,b,l,bi,ya,c,ga),z()),n[4][0]&&!n[4][0].event.allDay?M?(M.p(n,e),16&e[0]&&B(M,1)):((M=wa(n)).c(),B(M,1),M.m(l,null)):M&&(U(),G(M,1,1,()=>{M=null}),z()),(!g||128&e[0]&&u!==(u=n[7].events))&&R(l,\"class\",u),n[11]&&n[5]?O?2080&e[0]&&B(O,1):((O=ba()).c(),B(O,1),O.m(f,null)):O&&(U(),G(O,1,1,()=>{O=null}),z()),(!g||128&e[0]&&h!==(h=n[7].extra))&&R(f,\"class\",h),(!g||224&e[0]&&p!==(p=n[7].day+(n[5]?\" \"+n[7].today:\"\")+(n[6]?\" \"+n[7].highlight:\"\")))&&R(r,\"class\",p)},i(t){if(!g){for(let t=0;ti(35,u=t)),Ht(o,y,t=>i(34,c=t)),Ht(o,w,t=>i(8,f=t)),Ht(o,b,t=>i(32,l=t)),Ht(o,k,t=>i(11,g=t)),Ht(o,_,t=>i(38,e=t)),Ht(o,T,t=>i(39,n=t)),Ht(o,x,t=>i(10,p=t)),Ht(o,C,t=>i(7,d=t)),Ht(o,D,t=>i(9,h=t)),Ht(o,S,t=>i(33,a=t)),Ht(o,E,t=>i(37,r=t));let M,{_slotTimeLimits:O,_viewResources:F}=Yt(\"view-state\");Ht(o,O,t=>i(31,s=t));let L,P,R,U,j,I,z=[];function B(t){return t-=Hi(M).top,Vt(Wt(m),e,Math.floor(t/n+s.min.seconds/e.seconds))}return o.$$set=t=>{\"date\"in t&&i(0,m=t.date),\"resource\"in t&&i(28,v=t.resource)},o.$$.update=()=>{if(1&o.$$.dirty[0]|1&o.$$.dirty[1]&&(i(29,j=Vt(Wt(m),s.min)),i(30,I=Vt(Wt(m),s.max))),1879048204&o.$$.dirty[0]|16&o.$$.dirty[1]){i(2,L=[]),i(3,P=[]);for(var t of u){var e;!t.allDay&&is(t,j,I,v,!0)&&(e=Ki(t,j,I),(\"background\"===t.display?P:L).push(e))}var n=L;if(n.length){Qi(n);let e={columns:[],end:n[0].end};for(var r of n){let t=0;if(r.starte.end&&(e.end=r.end)}else e={columns:[],end:r.end};e.columns.lengtht&&is(t,j,I,v,!0)?Ki(t,j,I):null)),1&o.$$.dirty[0]|4&o.$$.dirty[1]&&i(5,R=A(m,a)),1&o.$$.dirty[0]|2&o.$$.dirty[1]&&i(6,U=l.some(t=>A(t,m))),2&o.$$.dirty[0]&&M&&Wi(M,B)},[m,M,L,P,z,R,U,d,f,h,p,g,$,y,w,b,k,_,T,x,C,D,S,E,O,function(n){return Gt(n)?t=>{var e=B(t.clientY);n({allDay:!1,date:N(e),dateStr:ji(e),dayEl:M,jsEvent:t,view:Xt(r),resource:v})}:void 0},function(e){return e.pointer?t=>e.pointer.enterTimeGrid(m,M,t,O,v):void 0},function(e,t){return t&&e.action?t=>e.action.selectTimeGrid(m,M,t,F,s,!1):void 0},v,j,I,s,l,a,c,u,function(t){K[t?\"unshift\":\"push\"](()=>{M=t,i(1,M)})}]}class xa extends i{constructor(t){super(),o(this,t,Ta,ka,l,{date:0,resource:28},null,[-1,-1])}}function Ca(n){let r,o,i,s,l,a,c,u,d;var f=n[7].resizer;function h(t){return{props:{event:t[0]}}}return f&&(a=ti(f,h(n))).$on(\"pointerdown\",n[27](!0)),{c(){r=I(\"div\"),o=I(\"div\"),l=F(),a&&p(a.$$.fragment),R(o,\"class\",i=n[1].eventBody),R(r,\"class\",n[3]),R(r,\"style\",n[4])},m(t,e){P(t,r,e),L(r,o),L(r,l),a&&g(a,r,null),n[39](r),c=!0,u||(d=[qo(s=Si.call(null,o,n[5])),At(r,\"click\",function(){Gt(cs(n[26](n[8],n[6])))&&cs(n[26](n[8],n[6])).apply(this,arguments)}),At(r,\"mouseenter\",function(){Gt(n[26](n[9],n[6]))&&n[26](n[9],n[6]).apply(this,arguments)}),At(r,\"mouseleave\",function(){Gt(n[26](n[10],n[6]))&&n[26](n[10],n[6]).apply(this,arguments)}),At(r,\"pointerdown\",function(){Gt(\"auto\"===n[6]&&n[11](n[0])?n[27]():void 0)&&(\"auto\"===n[6]&&n[11](n[0])?n[27]():void 0).apply(this,arguments)})],u=!0)},p(t,e){n=t,(!c||2&e[0]&&i!==(i=n[1].eventBody))&&R(o,\"class\",i),s&&Gt(s.update)&&32&e[0]&&s.update.call(null,n[5]);t={};if(1&e[0]&&(t.event=n[0]),f!==(f=n[7].resizer)){if(a){U();const n=a;G(n.$$.fragment,1,0,()=>{O(n,1)}),z()}f?((a=ti(f,h(n))).$on(\"pointerdown\",n[27](!0)),p(a.$$.fragment),B(a.$$.fragment,1),g(a,r,null)):a=null}else f&&a.$set(t);(!c||8&e[0])&&R(r,\"class\",n[3]),(!c||16&e[0])&&R(r,\"style\",n[4])},i(t){c||(a&&B(a.$$.fragment,t),c=!0)},o(t){a&&G(a.$$.fragment,t),c=!1},d(t){t&&j(r),a&&O(a),n[39](null),u=!1,Bt(d)}}}function Da(e,t,n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v=t[\"chunk\"],{longChunks:$={}}=t,{displayEventEnd:y,eventBackgroundColor:w,eventClick:b,eventColor:k,eventContent:_,eventDidMount:T,eventMouseEnter:x,eventMouseLeave:C,theme:D,_view:S,_intlEventTime:E,_interaction:F,_classes:R,_draggable:U}=Yt(\"state\");Ht(e,y,t=>n(35,c=t)),Ht(e,w,t=>n(38,f=t)),Ht(e,b,t=>n(8,h=t)),Ht(e,k,t=>n(37,d=t)),Ht(e,_,t=>n(34,a=t)),Ht(e,T,t=>n(41,i=t)),Ht(e,x,t=>n(9,p=t)),Ht(e,C,t=>n(10,g=t)),Ht(e,D,t=>n(1,l=t)),Ht(e,S,t=>n(32,o=t)),Ht(e,E,t=>n(33,s=t)),Ht(e,F,t=>n(7,r=t)),Ht(e,R,t=>n(36,u=t)),Ht(e,U,t=>n(11,m=t));let M,O,z,L,P,B,G=Yt(\"view-state\")[\"_viewResources\"];ri();let j,I=1;return oi(()=>{Gt(i)&&i({event:ns(O),timeText:B,el:M,view:Xt(o)})}),e.$$set=t=>{\"chunk\"in t&&n(28,v=t.chunk),\"longChunks\"in t&&n(29,$=t.longChunks)},e.$$.update=()=>{var t;268435456&e.$$.dirty[0]&&n(0,O=v.event),268435475&e.$$.dirty[0]|225&e.$$.dirty[1]&&(n(6,j=O.display),t=O.backgroundColor||f||d,n(4,L=`width:calc(${100*v.days}% + ${7*(v.days-1)}px);margin-top:${I}px;`),t&&n(4,L+=`background-color:${t};`),n(3,z=u(l.event,O))),268435458&e.$$.dirty[0]|30&e.$$.dirty[1]&&n(5,[B,P]=es(v,c,a,l,s,o),P)},[O,l,M,z,L,P,j,r,h,p,g,m,y,w,b,k,_,T,x,C,D,S,E,F,R,U,function(e,t){return\"preview\"!==t&&Gt(e)?t=>e({event:ns(O),el:M,jsEvent:t,view:Xt(o)}):void 0},function(e){return t=>r.action.dragTimeGrid(O,M,t,G,!0,e)},v,$,function(){M&&\"preview\"!==j&&n(31,I=ts(v,$,Ai(M)))},I,o,s,a,c,u,d,f,function(t){K[t?\"unshift\":\"push\"](()=>{M=t,n(2,M)})}]}class Sa extends i{constructor(t){super(),o(this,t,Da,Ca,l,{chunk:28,longChunks:29,reposition:30},null,[-1,-1])}get reposition(){return this.$$.ctx[30]}}function Ea(t,e,n){t=t.slice();return t[32]=e[n],t[33]=e,t[34]=n,t}function Ma(t){let r,o,i,s;return o=new Sa({props:{chunk:t[2][0]}}),{c(){r=I(\"div\"),p(o.$$.fragment),R(r,\"class\",i=t[8].events+\" \"+t[8].preview)},m(t,e){P(t,r,e),g(o,r,null),s=!0},p(t,e){var n={};4&e[0]&&(n.chunk=t[2][0]),o.$set(n),(!s||256&e[0]&&i!==(i=t[8].events+\" \"+t[8].preview))&&R(r,\"class\",i)},i(t){s||(B(o.$$.fragment,t),s=!0)},o(t){G(o.$$.fragment,t),s=!1},d(t){t&&j(r),O(o)}}}function Oa(t,n){let r,o,i,s=n[34];const l=()=>n[25](o,s),a=()=>n[25](null,s);var e={chunk:n[32],longChunks:n[1]};return o=new Sa({props:e}),l(),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){s!==(n=t)[34]&&(a(),s=n[34],l());t={};16&e[0]&&(t.chunk=n[32]),2&e[0]&&(t.longChunks=n[1]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),a(),O(o,t)}}}function La(n){let r,o,i,s,l,a,c,u,d=n[2][0]&&A(n[2][0].date,n[0]),f=[],h=new Map,p=d&&Ma(n),g=n[4];const m=t=>t[32].event;for(let t=0;t{p=null}),z()),146&e[0]&&(g=n[4],U(),f=ki(f,e,m,1,n,g,h,i,bi,Oa,null,Ea),z()),(!a||256&e[0]&&s!==(s=n[8].events))&&R(i,\"class\",s),(!a||352&e[0]&&l!==(l=n[8].day+(n[5]?\" \"+n[8].today:\"\")+(n[6]?\" \"+n[8].highlight:\"\")))&&R(r,\"class\",l)},i(t){if(!a){B(p);for(let t=0;tn(9,l=t)),Ht(e,m,t=>n(24,i=t)),Ht(e,v,t=>n(8,s=t)),Ht(e,$,t=>n(28,o=t)),Ht(e,y,t=>n(10,a=t)),Ht(e,w,t=>n(11,c=t));let b,k,{_slotTimeLimits:_,_viewResources:T}=Yt(\"view-state\");Ht(e,_,t=>n(27,r=t));let x,C,D=Pi(Ei()),S=[];function E(){n(7,S.length=k.length,S);for(var t of S)t&&t.reposition&&t.reposition()}return ii(E),e.$$set=t=>{\"date\"in t&&n(0,u=t.date),\"chunks\"in t&&n(22,d=t.chunks),\"longChunks\"in t&&n(1,f=t.longChunks),\"iChunks\"in t&&n(2,h=t.iChunks),\"resource\"in t&&n(23,p=t.resource)},e.$$.update=()=>{if(4194321&e.$$.dirty[0]){n(4,k=[]);for(var t of d)A(t.date,u)&&k.push(t)}16777217&e.$$.dirty[0]&&(n(5,x=A(u,D)),n(6,C=i.some(t=>A(t,u)))),9&e.$$.dirty[0]&&b&&Wi(b,()=>u)},[u,f,h,b,k,x,C,S,s,l,a,c,g,m,v,$,y,w,_,function(e){return Gt(e)?t=>{e({allDay:!0,date:N(u),dateStr:ji(u),dayEl:b,jsEvent:t,view:Xt(o),resource:p})}:void 0},function(e,t){return t&&e.action?t=>e.action.selectTimeGrid(u,b,t,T,r,!0):void 0},E,d,p,i,function(t,e){K[t?\"unshift\":\"push\"](()=>{S[e]=t,n(7,S)})},function(t){K[t?\"unshift\":\"push\"](()=>{b=t,n(3,b)})}]}class ja extends i{constructor(t){super(),o(this,t,Pa,La,l,{date:0,chunks:22,longChunks:1,iChunks:2,resource:23},null,[-1,-1])}}function Ia(t,e,n){t=t.slice();return t[14]=e[n],t}function Fa(t){let r,n;return r=new ja({props:{date:t[14],chunks:t[2],longChunks:t[3],iChunks:t[4],resource:t[1]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e&&(n.date=t[14]),4&e&&(n.chunks=t[2]),8&e&&(n.longChunks=t[3]),16&e&&(n.iChunks=t[4]),2&e&&(n.resource=t[1]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Ra(e){let o,r,i=e[0],s=[];for(let t=0;tG(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;tn(12,i=t)),Ht(e,c,t=>n(11,o=t)),Ht(e,u,t=>n(10,r=t));let d,f,h,p,g=[];return e.$$set=t=>{\"dates\"in t&&n(0,s=t.dates),\"resource\"in t&&n(1,l=t.resource)},e.$$.update=()=>{if(1&e.$$.dirty&&(n(8,h=s[0]),n(9,p=Oi(Wt(s[s.length-1])))),5894&e.$$.dirty){n(2,d=[]);for(var t of i)t.allDay&&\"background\"!==t.display&&is(t,h,p,l)&&(t=Ki(t,h,p),d.push(t));n(3,f=Zi(d,r))}3842&e.$$.dirty&&n(4,g=o.map(t=>{let e;return t&&t.allDay&&is(t,h,p,l)?Zi([e=Ki(t,h,p)],r):e=null,e}))},[s,l,d,f,g,a,c,u,h,p,r,o,i]}class za extends i{constructor(t){super(),o(this,t,Ua,Ra,l,{dates:0,resource:1})}}function Ba(t,e,n){t=t.slice();return t[11]=e[n],t}function Ga(t,e,n){t=t.slice();return t[11]=e[n],t}function Ha(t){let n,r,o,i=t[2].format(t[11])+\"\";return{c(){n=I(\"div\"),r=Jo(i),R(n,\"class\",o=t[1].day)},m(t,e){P(t,n,e),L(n,r)},p(t,e){5&e&&i!==(i=t[2].format(t[11])+\"\")&&Qo(r,i),2&e&&o!==(o=t[1].day)&&R(n,\"class\",o)},d(t){t&&j(n)}}}function Na(e){let o,i=e[0],s=[];for(let t=0;tG(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t{l=null}),z()),{});65537&e&&(n.$$scope={dirty:e,ctx:t}),i.$set(n)},i(t){s||(B(r.$$.fragment,t),B(l),B(i.$$.fragment,t),s=!0)},o(t){G(r.$$.fragment,t),G(l),G(i.$$.fragment,t),s=!1},d(t){O(r,t),t&&j(n),l&&l.d(t),t&&j(o),O(i,t)}}}function qa(t,e,n){let r,o,i,s,l,a=Yt(\"state\"),{_viewDates:c,_intlDayHeader:u,_viewClass:d,allDaySlot:f,theme:h}=a;return Ht(t,c,t=>n(0,o=t)),Ht(t,u,t=>n(2,s=t)),Ht(t,d,t=>n(9,r=t)),Ht(t,f,t=>n(3,l=t)),Ht(t,h,t=>n(1,i=t)),si(\"view-state\",new ql(a)),Nt(d,r=\"week\",r),[o,i,s,l,c,u,d,f,h]}class Ja extends i{constructor(t){super(),o(this,t,qa,Xa,l,{})}}var Ka={createOptions(t){t.buttonText.timeGridDay=\"day\",t.buttonText.timeGridWeek=\"week\",t.view=\"timeGridWeek\",t.views.timeGridDay={component:Ja,dayHeaderFormat:{weekday:\"long\"},duration:{days:1},titleFormat:{year:\"numeric\",month:\"long\",day:\"numeric\"}},t.views.timeGridWeek={component:Ja,duration:{weeks:1}}}};class Qa extends ql{constructor(t){var s;super(t),this._viewResources=xi([(s=t).resources,s.filterResourcesWithEvents,s._events,s._activeRange],t=>{let[e,n,r,o]=t,i=e;return i=(i=n?e.filter(t=>{for(var e of r)if(\"background\"!==e.display&&e.resourceIds.includes(t.id)&&e.starto.start)return!0;return!1}):i).length?i:s.resources.parse([{}])})}}function Za(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function tc(n){let r,o,i,s,l;return{c(){R(r=I(\"div\"),\"class\",o=n[2].day)},m(t,e){P(t,r,e),n[9](r),s||(l=qo(i=function(n,t){var e={update(t){for(;n.firstChild;)n.removeChild(n.lastChild);if(\"object\"==typeof t&&null!==t)if(t.domNodes)for(var e of t.domNodes)n.appendChild(e);else t.html&&(n.innerHTML=t.html);else n.innerText=t}};return e.update(t),e}.call(null,r,n[1])),s=!0)},p(t,e){var[e]=e;4&e&&o!==(o=t[2].day)&&R(r,\"class\",o),i&&Gt(i.update)&&2&e&&i.update.call(null,t[1])},i:zt,o:zt,d(t){t&&j(r),n[9](null),s=!1,l()}}}function ec(t,e,n){let r,o,i,s,l,a=e[\"resource\"],c=e[\"date\"],{resourceLabelContent:u,resourceLabelDidMount:d,theme:f}=Yt(\"state\");return Ht(t,u,t=>n(8,o=t)),Ht(t,d,t=>n(10,r=t)),Ht(t,f,t=>n(2,i=t)),oi(()=>{Gt(r)&&r({resource:a,date:c?Za(c):void 0,el:s})}),t.$$set=t=>{\"resource\"in t&&n(6,a=t.resource),\"date\"in t&&n(7,c=t.date)},t.$$.update=()=>{448&t.$$.dirty&&n(1,l=o?Gt(o)?o({resource:a,date:c?Za(c):void 0}):o:a.titleHTML?{html:a.titleHTML}:a.title)},[s,l,i,u,d,f,a,c,o,function(t){K[t?\"unshift\":\"push\"](()=>{s=t,n(0,s)})}]}class nc extends i{constructor(t){super(),o(this,t,ec,tc,l,{resource:6,date:7})}}function rc(t,e,n){t=t.slice();return t[17]=e[n],t}function oc(t,e,n){t=t.slice();return t[20]=e[n],t}function ic(t,e,n){t=t.slice();return t[26]=e[n],t}function sc(t,e,n){t=t.slice();return t[23]=e[n],t}function lc(t,e,n){t=t.slice();return t[26]=e[n],t}function ac(t,e,n){t=t.slice();return t[17]=e[n],t}function cc(t,e,n){t=t.slice();return t[20]=e[n],t}function uc(t){let r,n;return r=new nc({props:{resource:t[17]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};8&e[0]&&(n.resource=t[17]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function dc(t){let n,r,o,i=t[5].format(t[17])+\"\";return{c(){n=I(\"div\"),r=Jo(i),R(n,\"class\",o=t[4].day)},m(t,e){P(t,n,e),L(n,r)},p(t,e){40&e[0]&&i!==(i=t[5].format(t[17])+\"\")&&Qo(r,i),16&e[0]&&o!==(o=t[4].day)&&R(n,\"class\",o)},i:zt,o:zt,d(t){t&&j(n)}}}function fc(e){let r,t,o,i=e[3][1],s=[];for(let t=0;tG(s[t],1,1,()=>{s[t]=null}))(t);z()}(!o||16&n[0]&&t!==(t=e[4].days))&&R(r,\"class\",t)},i(t){if(!o){for(let t=0;t{l[n]=null}),z(),(o=l[r])?o.p(t,e):(o=l[r]=s[r](t)).c(),B(o,1),o.m(i.parentNode,i))},i(t){n||(B(o),n=!0)},o(t){G(o),n=!1},d(t){l[r].d(t),t&&j(i)}}}function mc(t){let r,o,i,s,l,a,c;const u=[dc,uc],d=[];function f(t){return t[2]?0:1}o=f(t),i=d[o]=u[o](t);let h=1{d[n]=null}),z(),(i=d[o])?i.p(t,e):(i=d[o]=u[o](t)).c(),B(i,1),i.m(r,s)),1{h=null}),z()),(!c||16&e[0]&&a!==(a=t[4].resource))&&R(r,\"class\",a)},i(t){c||(B(i),B(h),c=!0)},o(t){G(i),G(h),c=!1},d(t){t&&j(r),d[o].d(),h&&h.d()}}}function vc(e){let o,r,i=e[3][0],s=[];for(let t=0;tG(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;tG(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;tG(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;tG(l[t],1,1,()=>{l[t]=null}))(t);z()}(!i||16&n[0]&&t!==(t=e[4].resource))&&R(r,\"class\",t)},i(t){if(!i){for(let t=0;t{l[n]=null}),z(),(o=l[r])?o.p(t,e):(o=l[r]=s[r](t)).c(),B(o,1),o.m(i.parentNode,i))},i(t){n||(B(o),n=!0)},o(t){G(o),n=!1},d(t){l[r].d(t),t&&j(i)}}}function xc(t){let r,n;return r=new xa({props:{date:t[2]?t[17]:t[20],resource:t[2]?t[20]:t[17]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};12&e[0]&&(n.date=t[2]?t[17]:t[20]),12&e[0]&&(n.resource=t[2]?t[20]:t[17]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Cc(e){let r,o,t,i,s=e[3][1],l=[];for(let t=0;tG(l[t],1,1,()=>{l[t]=null}))(t);z()}(!i||16&n[0]&&t!==(t=e[4].resource))&&R(r,\"class\",t)},i(t){if(!i){for(let t=0;tG(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t{l=null}),z()),{});28&e[0]|16&e[1]&&(n.$$scope={dirty:e,ctx:t}),i.$set(n)},i(t){s||(B(r.$$.fragment,t),B(l),B(i.$$.fragment,t),s=!0)},o(t){G(r.$$.fragment,t),G(l),G(i.$$.fragment,t),s=!1},d(t){O(r,t),t&&j(n),l&&l.d(t),t&&j(o),O(i,t)}}}function Ec(t,e,n){let r,o,i,s,l,a,c,u=Yt(\"state\"),{datesAboveResources:d,_viewDates:f,_intlDayHeader:h,_viewClass:p,allDaySlot:g,theme:m}=u;Ht(t,d,t=>n(2,i=t)),Ht(t,f,t=>n(0,r=t)),Ht(t,h,t=>n(5,a=t)),Ht(t,p,t=>n(14,s=t)),Ht(t,g,t=>n(6,c=t)),Ht(t,m,t=>n(4,l=t));var v=new Qa(u);si(\"view-state\",v);let $,y=v[\"_viewResources\"];return Ht(t,y,t=>n(1,o=t)),Nt(p,s=\"week\",s),t.$$.update=()=>{7&t.$$.dirty[0]&&n(3,$=i?[r,o]:[o,r])},[r,o,i,$,l,a,c,d,f,h,p,g,m,y]}class Mc extends i{constructor(t){super(),o(this,t,Ec,Sc,l,{},null,[-1,-1])}}function Oc(t,e,n){let r,o,{resources:i,_resBgColor:s}=Yt(\"state\");return Ht(t,i,t=>n(2,r=t)),Ht(t,s,t=>n(3,o=t)),Nt(s,o=e=>r.find(t=>e.resourceIds.includes(t.id))?.eventBackgroundColor,o),[i,s]}class Lc extends i{constructor(t){super(),o(this,t,Oc,null,l,{})}}var Pc={createOptions(t){t.resources=[],t.datesAboveResources=!1,t.filterResourcesWithEvents=!1,t.resourceLabelContent=void 0,t.resourceLabelDidMount=void 0,t.buttonText.resourceTimeGridDay=\"day\",t.buttonText.resourceTimeGridWeek=\"week\",t.theme.resource=\"ec-resource\",t.theme.resourceTitle=\"ec-resource-title\",t.view=\"resourceTimeGridWeek\",t.views.resourceTimeGridDay={component:Mc,duration:{days:1}},t.views.resourceTimeGridWeek={component:Mc,duration:{weeks:1}}},createParsers(t,e){t.resources=jc},createStores(t){t._auxiliary.update(t=>[...t,Lc])}};function jc(t){return t.map(t=>({id:String(t.id),title:t.title||\"\",titleHTML:t.titleHTML||\"\",eventBackgroundColor:t.eventBackgroundColor}))}function Ic(t){return[Uc(Ni(t,1),1),Ni(t,3),zc(t)-1]}function Fc(t,e){var n=Uc(Uc(Ni(t,2),1),0),r=Ni(t,1),o=Ni(r,3),t=zc(t),r=zc(r)-1;return e?[n,o,r,t]:[n,o,t,r]}function Rc(t){var e=Ni(t,1),n=Ni(e,1);return[Uc(Uc(n,0),0),Ni(n,1),zc(t),zc(e),n.children]}function Uc(t,e){return t.children[e]}function zc(t){let e=0;for(;t=t.previousElementSibling;)++e;return e}let Bc=!1;function Gc(t,e){return Math.max(0,Math.min(e,t))}function Hc(t){return Math.floor(t)}const Nc=r[\"window\"];function Ac(n){let r,o;return{c:zt,m(t,e){r||(o=[At(Nc,\"pointermove\",n[31]),At(Nc,\"pointerup\",n[32]),At(Nc,\"pointercancel\",n[32]),At(Nc,\"scroll\",n[0]),At(Nc,\"selectstart\",function(){Gt(Yc(n[40]))&&Yc(n[40]).apply(this,arguments)}),At(Nc,\"contextmenu\",function(){Gt(Yc(n[41]))&&Yc(n[41]).apply(this,arguments)}),At(Nc,\"touchstart\",n[33]),At(Nc,\"touchmove\",n[39],{passive:!1})],r=!0)},p(t,e){n=t},i:zt,o:zt,d(t){r=!1,Bt(o)}}}function Yc(e){return t=>{e()&&t.preventDefault()}}function Wc(e,t,s){let i,r,z,l,B,a,c,o,G,H,N,A,Y,W,V,X,q,u,J,d,f,h,K,Q,Z,tt,et,nt,rt=zt,ot=()=>(rt(),rt=Ho(E,t=>s(71,c=t)),E);e.$$.on_destroy.push(()=>rt());let p,g,m,v,$,it,y,w,st,lt,b,k,_,T,x,C,D,S,E,M,O,{_iEvents:L,_iClass:at,_ignoreClick:ct,_events:ut,_viewDates:dt,_view:ft,datesAboveResources:ht,dragScroll:pt,eventDragMinDistance:gt,eventDragStart:mt,eventDragStop:vt,eventDrop:$t,eventLongPressDelay:yt,eventResizeStart:wt,eventResizeStop:bt,eventResize:kt,longPressDelay:_t,select:Tt,selectBackgroundColor:xt,selectLongPressDelay:Ct,selectMinDistance:Dt,slotDuration:St,slotHeight:Et,hiddenDays:Mt,unselect:Ot,unselectAuto:Lt,unselectCancel:Pt}=Yt(\"state\");Ht(e,L,t=>s(68,l=t)),Ht(e,at,t=>s(70,a=t)),Ht(e,ct,t=>s(87,K=t)),Ht(e,ut,t=>s(67,z=t)),Ht(e,dt,t=>s(82,u=t)),Ht(e,ft,t=>s(65,i=t)),Ht(e,ht,t=>s(86,h=t)),Ht(e,pt,t=>s(79,V=t)),Ht(e,gt,t=>s(88,Q=t)),Ht(e,mt,t=>s(80,X=t)),Ht(e,vt,t=>s(74,H=t)),Ht(e,$t,t=>s(72,o=t)),Ht(e,yt,t=>s(91,et=t)),Ht(e,wt,t=>s(81,q=t)),Ht(e,bt,t=>s(75,N=t)),Ht(e,kt,t=>s(73,G=t)),Ht(e,_t,t=>s(90,tt=t)),Ht(e,Tt,t=>s(76,A=t)),Ht(e,xt,t=>s(69,B=t)),Ht(e,Ct,t=>s(92,nt=t)),Ht(e,Dt,t=>s(89,Z=t)),Ht(e,St,t=>s(84,d=t)),Ht(e,Et,t=>s(85,f=t)),Ht(e,Mt,t=>s(83,J=t)),Ht(e,Ot,t=>s(66,r=t)),Ht(e,Lt,t=>s(78,W=t)),Ht(e,Pt,t=>s(77,Y=t));let P,j,jt,n,I=!1;function It(t){window.getSelection().removeAllRanges(),D=Hi(T),S=Hi(C),st=b=t.clientX,lt=k=t.clientY,\"mouse\"!==t.pointerType&&s(3,n=setTimeout(()=>{p&&(m=!0,F(t))},(U()?nt:et)??tt))}function F(t){let n=b-D.left,r=k-D.top;if(m||t&&\"mouse\"===t.pointerType&&Math.sqrt(Math.pow(b-st,2)+Math.pow(k-lt,2))>=(U()?Z:Q)){m=!0,Ut(t),Nt(at,a=P,a),Nt(ct,K=!0,K);let e=Hc(n/D.width);if(1===g)E&&(1===p?h?(o=Gc(Hc(e/c.length),u.length-1),O=Gc(e-o*c.length,c.length-1),e=o):(O=Gc(Hc(e/u.length),c.length-1),e-=O*u.length):h?e=Hc(e/c.length):e-=M*u.length),e=Gc(e,u.length-1),_=Mi({days:(u[e]-u[$])/1e3/60/60/24-y,seconds:I?0:(Hc(r/f)-w)*d.seconds});else{var o=7-J.length;e=Gc(e,o-1);let t=-1;for(;++t,0<(r-=x[t].offsetHeight)&&tt!==c[M].id),l),l[0].resourceIds.push(c[O].id)))}var e;V&&(e=()=>{k<0&&window.scrollBy(0,Math.max(-10,k/3)),kwindow.innerHeight&&window.scrollBy(0,Math.min(10,(k-window.innerHeight)/3)),k>S.bottom&&(C.scrollTop+=Math.min(10,(k-S.bottom)/3))},Bc||(Bc=!0,window.requestAnimationFrame(()=>{e(),Bc=!1})))}function Ft(){Nt(L,l[0]=null,l)}function Rt(t,e){t.start=e.start,t.end=e.end,t.resourceIds=e.resourceIds,ut.set(z)}function R(){return 2===p}function U(){return 3===p}function Ut(t){jt&&(jt=!1,Ft(),Gt(r))&&r({jsEvent:t,view:Xt(i)})}return ft.subscribe(Ut),[function(){p&&(D=Hi(T),S=Hi(C),F())},p,E,n,L,at,ct,ut,dt,ft,ht,pt,gt,mt,vt,$t,yt,wt,bt,kt,_t,Tt,xt,Ct,Dt,St,Et,Mt,Ot,Lt,Pt,function(t){p&&t.isPrimary&&(b=t.clientX,k=t.clientY,F(t))},function(r){if(!jt||!W||Y&&r.target.closest(Y)||Ut(r),p&&r.isPrimary){if(m)if(U()){var t,e;jt=!0,Gt(A)&&({start:t,end:e}=ns(l[0]),A({start:t,end:e,startStr:ji(l[0].start),endStr:ji(l[0].end),allDay:I,jsEvent:r,view:Xt(i),resource:void 0!==M?c[M]:void 0}))}else{v.display=\"auto\";let e=R()?N:H,n=(Gt(e)&&e({event:ns(v),jsEvent:r,view:Xt(i)}),rs(v));if(Rt(v,l[0]),Ft(),Gt(e=R()?G:o)){let t=v;e(Ci(R()?{endDelta:_}:{delta:_,oldResource:M!==O?c[M]:void 0,newResource:M!==O?c[O]:void 0},{event:ns(v),oldEvent:ns(n),jsEvent:r,view:Xt(i),revert(){Rt(t,n)}}))}}T=x=C=null,M=O=void 0,s(1,p=g=m=!1),I=!1,Nt(at,a=void 0,a),ot(s(2,E=void 0)),n&&(clearTimeout(n),s(3,n=void 0))}},function(r){if(p){let t=r.target,e=[],n=()=>Bt(e);e.push(At(t,\"touchmove\",Yc(()=>m))),e.push(At(t,\"touchend\",n)),e.push(At(t,\"touchcancel\",n))}},function(t,e,n,r,o,i){!p&&n.isPrimary&&(s(1,p=i?2:1),g=1,v=t,ot(s(2,E=r)),I=o,P=i?o?\"resizingX\":\"resizingY\":\"dragging\",t=Ni(e,2),r?[T,C,$,M]=Fc(t,h):[T,C,$]=Ic(t),It(n),w=Hc((n.clientY-D.top)/f),y=0,!o||r&&h||(y=Hc((n.clientX-D.left)/D.width)-$-(M||0)*u.length),i&&(j=Vt(Wt(v.start),d)),F(n))},function(t,e,n,r,o){!p&&n.isPrimary&&(s(1,p=o?2:1),g=2,v=t,P=o?\"resizingX\":\"dragging\",t=Ni(e,r?3:2),[T,C,$,it,x]=Rc(t),It(n),y=r?0:Hc((n.clientX-D.left)/D.width)-$,o&&((j=Wt(v.start)).setUTCHours(v.end.getUTCHours(),v.end.getUTCMinutes(),v.end.getUTCSeconds()),jp,()=>n]}class Vc extends i{constructor(t){super(),o(this,t,Wc,Ac,l,{dragTimeGrid:34,dragDayGrid:35,selectTimeGrid:36,selectDayGrid:37,handleScroll:0,unselect:38},null,[-1,-1,-1,-1])}get dragTimeGrid(){return this.$$.ctx[34]}get dragDayGrid(){return this.$$.ctx[35]}get selectTimeGrid(){return this.$$.ctx[36]}get selectDayGrid(){return this.$$.ctx[37]}get handleScroll(){return this.$$.ctx[0]}get unselect(){return this.$$.ctx[38]}}function Xc(n){let r,o;return{c:zt,m(t,e){r||(o=[At(window,\"pointermove\",n[5]),At(window,\"scroll\",n[0])],r=!0)},p:zt,i:zt,o:zt,d(t){r=!1,Bt(o)}}}function qc(t){return t.isPrimary&&\"mouse\"===t.pointerType}function Jc(t,e,i){let n,r,o,s,l=zt,a=()=>(l(),l=Ho(p,t=>i(17,o=t)),p);t.$$.on_destroy.push(()=>l());let c,u,d,f,h,p,g,{_iEvents:m,slotDuration:v,slotHeight:$}=Yt(\"state\");function y(){var t;u&&(g=d?(t=c-f.top,Vt(Wt(u),r,Hc(t/s+o.min.seconds/r.seconds))):u,n[1]||Nt(m,n[1]={id:\"{pointer}\",title:\"\",display:\"pointer\",extendedProps:{},backgroundColor:\"transparent\"},n),Nt(m,n[1].start=g,n),Nt(m,n[1].end=Vt(Wt(g),r),n),Nt(m,n[1].resourceIds=h?[h.id]:[],n))}function w(){u=d=Nt(m,n[1]=null,n)}return Ht(t,m,t=>i(9,n=t)),Ht(t,v,t=>i(16,r=t)),Ht(t,$,t=>i(18,s=t)),t.$$.update=()=>{512&t.$$.dirty&&n[0]&&w()},[function(){d&&(f=Hi(d),y())},p,m,v,$,function(t){qc(t)&&(c=t.clientY,y())},function(t,e,n,r,o){qc(n)&&(u=t,d=e,f=Hi(d),c=n.clientY,a(i(1,p=r)),h=o)},function(t,e){qc(e)&&(u=t,d=null,c=a(i(1,p=h=void 0)))},function(t){qc(t)&&w()},n]}class Kc extends i{constructor(t){super(),o(this,t,Jc,Xc,l,{enterTimeGrid:6,enterDayGrid:7,leave:8,handleScroll:0})}get enterTimeGrid(){return this.$$.ctx[6]}get enterDayGrid(){return this.$$.ctx[7]}get leave(){return this.$$.ctx[8]}get handleScroll(){return this.$$.ctx[0]}}function Qc(n){let r,o,i,s;return{c(){R(r=I(\"div\"),\"class\",o=n[2].resizer)},m(t,e){P(t,r,e),i||(s=At(r,\"pointerdown\",n[5]),i=!0)},p(t,e){4&e&&o!==(o=t[2].resizer)&&R(r,\"class\",o)},d(t){t&&j(r),i=!1,s()}}}function Zc(t){let n,r=\"auto\"===t[0].display&&t[1](t[0]),o=r&&Qc(t);return{c(){o&&o.c(),n=b()},m(t,e){o&&o.m(t,e),P(t,n,e)},p(t,e){var[e]=e;(r=3&e?\"auto\"===t[0].display&&t[1](t[0]):r)?o?o.p(t,e):((o=Qc(t)).c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:zt,o:zt,d(t){o&&o.d(t),t&&j(n)}}}function tu(e,t,n){let r,o,i=t[\"event\"],{theme:s,_resizable:l}=Yt(\"state\");return Ht(e,s,t=>n(2,o=t)),Ht(e,l,t=>n(1,r=t)),e.$$set=t=>{\"event\"in t&&n(0,i=t.event)},[i,r,o,s,l,function(t){li.call(this,e,t)}]}class eu extends i{constructor(t){super(),o(this,t,tu,Zc,l,{event:0})}}function nu(e){let n,r;return n=new Kc({props:{}}),e[18](n),{c(){p(n.$$.fragment)},m(t,e){g(n,t,e),r=!0},p(t,e){n.$set({})},i(t){r||(B(n.$$.fragment,t),r=!0)},o(t){G(n.$$.fragment,t),r=!1},d(t){e[18](null),O(n,t)}}}function ru(e){let n,r,o,i,s=(n=new Vc({props:{}}),e[17](n),e[1]&&nu(e));return{c(){p(n.$$.fragment),r=F(),s&&s.c(),o=b()},m(t,e){g(n,t,e),P(t,r,e),s&&s.m(t,e),P(t,o,e),i=!0},p(t,e){var[e]=e;n.$set({}),t[1]?s?(s.p(t,e),2&e&&B(s,1)):((s=nu(t)).c(),B(s,1),s.m(o.parentNode,o)):s&&(U(),G(s,1,1,()=>{s=null}),z())},i(t){i||(B(n.$$.fragment,t),B(s),i=!0)},o(t){G(n.$$.fragment,t),G(s),i=!1},d(t){e[17](null),O(n,t),t&&j(r),s&&s.d(t),t&&j(o)}}}function ou(t,e,n){let r,o,i,s,l,a,c,u,d,f,{theme:h,editable:p,eventStartEditable:g,eventDurationEditable:m,pointer:v,_interaction:$,_classes:y,_draggable:w,_resizable:b,_scroll:k}=Yt(\"state\");return Ht(t,h,t=>n(16,u=t)),Ht(t,p,t=>n(12,i=t)),Ht(t,g,t=>n(14,a=t)),Ht(t,m,t=>n(13,s=t)),Ht(t,v,t=>n(1,f=t)),Ht(t,$,t=>n(0,r=t)),Ht(t,y,t=>n(21,d=t)),Ht(t,w,t=>n(15,c=t)),Ht(t,b,t=>n(20,l=t)),Ht(t,k,t=>n(19,o=t)),Nt($,r.resizer=eu,r),Nt(k,o=()=>{for(var t of Object.values(r))t?.handleScroll?.()},o),t.$$.update=()=>{20480&t.$$.dirty&&Nt(w,c=t=>(t.startEditable??a)||(t.editable??i),c),98304&t.$$.dirty&&Nt(y,d=(t,e)=>{switch(e.display){case\"auto\":return t+(c(e)?\" \"+u.draggable:\"\");case\"ghost\":return u.event+\" \"+u.ghost;case\"preview\":return u.event+\" \"+u.preview;case\"pointer\":return u.event+\" \"+u.pointer;default:return t}},d),12288&t.$$.dirty&&Nt(b,l=t=>(t.durationEditable??s)||(t.editable??i),l)},[r,f,h,p,g,m,v,$,y,w,b,k,i,s,a,c,u,function(t){K[t?\"unshift\":\"push\"](()=>{r.action=t,$.set(r)})},function(t){K[t?\"unshift\":\"push\"](()=>{r.pointer=t,$.set(r)})}]}class iu extends i{constructor(t){super(),o(this,t,ou,ru,l,{})}}var su={createOptions(t){t.dragScroll=!0,t.editable=!1,t.eventDragMinDistance=5,t.eventDragStart=void 0,t.eventDragStop=void 0,t.eventDrop=void 0,t.eventDurationEditable=!0,t.eventLongPressDelay=void 0,t.eventResizeStart=void 0,t.eventResizeStop=void 0,t.eventResize=void 0,t.eventStartEditable=!0,t.longPressDelay=1e3,t.pointer=!1,t.select=void 0,t.selectBackgroundColor=void 0,t.selectLongPressDelay=void 0,t.selectMinDistance=5,t.unselect=void 0,t.unselectAuto=!0,t.unselectCancel=\"\",t.theme.draggable=\"ec-draggable\",t.theme.ghost=\"ec-ghost\",t.theme.preview=\"ec-preview\",t.theme.pointer=\"ec-pointer\",t.theme.resizer=\"ec-resizer\",t.theme.dragging=\"ec-dragging\",t.theme.resizingY=\"ec-resizing-y\",t.theme.resizingX=\"ec-resizing-x\",t.theme.selecting=\"ec-selecting\"},createStores(t){t._auxiliary.update(t=>[...t,iu])}};return class extends Gs{constructor(t,e){super({target:t,props:{plugins:[Cl,Xl,Ka,Pc,su],options:e}})}get view(){return this.getView()}}}();","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e(require(\"@popperjs/core\")):\"function\"==typeof define&&define.amd?define([\"@popperjs/core\"],e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,function(t){\"use strict\";function j(t){var e,i=Object.create(null,{[Symbol.toStringTag]:{value:\"Module\"}});if(t)for(const s in t)\"default\"!==s&&(e=Object.getOwnPropertyDescriptor(t,s),Object.defineProperty(i,s,e.get?e:{enumerable:!0,get:()=>t[s]}));return i.default=t,Object.freeze(i)}const i=j(t),F=1e3,z=\"transitionend\",H=t=>t=t&&window.CSS&&window.CSS.escape?t.replace(/#([^\\s\"#']+)/g,(t,e)=>\"#\"+CSS.escape(e)):t,B=t=>{t.dispatchEvent(new Event(z))},o=t=>!(!t||\"object\"!=typeof t)&&void 0!==(t=void 0!==t.jquery?t[0]:t).nodeType,s=t=>o(t)?t.jquery?t[0]:t:\"string\"==typeof t&&0{if(!o(t)||0===t.getClientRects().length)return!1;var e=\"visible\"===getComputedStyle(t).getPropertyValue(\"visibility\"),i=t.closest(\"details:not([open])\");if(i&&i!==t){t=t.closest(\"summary\");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return e},r=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains(\"disabled\")||(void 0!==t.disabled?t.disabled:t.hasAttribute(\"disabled\")&&\"false\"!==t.getAttribute(\"disabled\")),q=t=>{var e;return document.documentElement.attachShadow?\"function\"==typeof t.getRootNode?(e=t.getRootNode())instanceof ShadowRoot?e:null:t instanceof ShadowRoot?t:t.parentNode?q(t.parentNode):null:null},a=()=>{},c=t=>{t.offsetHeight},W=()=>window.jQuery&&!document.body.hasAttribute(\"data-bs-no-jquery\")?window.jQuery:null,$=[],l=()=>\"rtl\"===document.documentElement.dir;t=s=>{var t;t=()=>{const t=W();if(t){const e=s.NAME,i=t.fn[e];t.fn[e]=s.jQueryInterface,t.fn[e].Constructor=s,t.fn[e].noConflict=()=>(t.fn[e]=i,s.jQueryInterface)}},\"loading\"===document.readyState?($.length||document.addEventListener(\"DOMContentLoaded\",()=>{for(const t of $)t()}),$.push(t)):t()};const h=(t,e=[],i=t)=>\"function\"==typeof t?t(...e):i,R=(i,s,t=!0)=>{if(t){t=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);var t=Number.parseFloat(e),s=Number.parseFloat(i);return t||s?(e=e.split(\",\")[0],i=i.split(\",\")[0],(Number.parseFloat(e)+Number.parseFloat(i))*F):0})(s)+5;let e=!1;const n=({target:t})=>{t===s&&(e=!0,s.removeEventListener(z,n),h(i))};s.addEventListener(z,n),setTimeout(()=>{e||B(s)},t)}else h(i)},V=(t,e,i,s)=>{var n=t.length;let o=t.indexOf(e);return-1===o?!i&&s?t[n-1]:t[0]:(o+=i?1:-1,s&&(o=(o+n)%n),t[Math.max(0,Math.min(o,n-1))])},K=/[^.]*(?=\\..*)\\.|.*/,Q=/\\..*/,X=/::\\d+$/,Y={};let U=1;const G={mouseenter:\"mouseover\",mouseleave:\"mouseout\"},J=new Set([\"click\",\"dblclick\",\"mouseup\",\"mousedown\",\"contextmenu\",\"mousewheel\",\"DOMMouseScroll\",\"mouseover\",\"mouseout\",\"mousemove\",\"selectstart\",\"selectend\",\"keydown\",\"keypress\",\"keyup\",\"orientationchange\",\"touchstart\",\"touchmove\",\"touchend\",\"touchcancel\",\"pointerdown\",\"pointermove\",\"pointerup\",\"pointerleave\",\"pointercancel\",\"gesturestart\",\"gesturechange\",\"gestureend\",\"focus\",\"blur\",\"change\",\"reset\",\"select\",\"submit\",\"focusin\",\"focusout\",\"load\",\"unload\",\"beforeunload\",\"resize\",\"move\",\"DOMContentLoaded\",\"readystatechange\",\"error\",\"abort\",\"scroll\"]);function Z(t,e){return e&&e+\"::\"+U++||t.uidEvent||U++}function tt(t){var e=Z(t);return t.uidEvent=e,Y[e]=Y[e]||{},Y[e]}function et(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function it(t,e,i){var s=\"string\"==typeof e,e=!s&&e||i;let n=ot(t);return[s,e,n=J.has(n)?n:t]}function st(s,n,o,r,a){if(\"string\"==typeof n&&s){let[t,e,i]=it(n,o,r);n in G&&(e=(l=e,function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return l.call(this,t)}));var l,c,h,d,u,_,r=tt(s),r=r[i]||(r[i]={}),g=et(r,e,t?o:null);g?g.oneOff=g.oneOff&&a:(g=Z(e,n.replace(K,\"\")),(n=t?(d=s,u=o,_=e,function e(i){var s=d.querySelectorAll(u);for(let t=i[\"target\"];t&&t!==this;t=t.parentNode)for(const n of s)if(n===t)return rt(i,{delegateTarget:t}),e.oneOff&&p.off(d,i.type,u,_),_.apply(t,[i])}):(c=s,h=e,function t(e){return rt(e,{delegateTarget:c}),t.oneOff&&p.off(c,e.type,h),h.apply(c,[e])})).delegationSelector=t?o:null,n.callable=e,n.oneOff=a,r[n.uidEvent=g]=n,s.addEventListener(i,n,t))}}function nt(t,e,i,s,n){s=et(e[i],s,n);s&&(t.removeEventListener(i,s,Boolean(n)),delete e[i][s.uidEvent])}function ot(t){return t=t.replace(Q,\"\"),G[t]||t}const p={on(t,e,i,s){st(t,e,i,s,!1)},one(t,e,i,s){st(t,e,i,s,!0)},off(t,e,i,s){if(\"string\"==typeof e&&t){var n,o,[s,r,a]=it(e,i,s),l=a!==e,c=tt(t),h=c[a]||{},d=e.startsWith(\".\");if(void 0!==r)return Object.keys(h).length?void nt(t,c,a,r,s?i:null):void 0;if(d)for(const y of Object.keys(c)){_=u=b=f=m=p=g=void 0;var u,_,g=t,p=c,m=y,f=e.slice(1),b=p[m]||{};for([u,_]of Object.entries(b))u.includes(f)&&nt(g,p,m,_.callable,_.delegationSelector)}for([n,o]of Object.entries(h)){var v=n.replace(X,\"\");l&&!e.includes(v)||nt(t,c,a,o.callable,o.delegationSelector)}}},trigger(t,e,i){if(\"string\"!=typeof e||!t)return null;var s=W();let n=null,o=!0,r=!0,a=!1;e!==ot(e)&&s&&(n=s.Event(e,i),s(t).trigger(n),o=!n.isPropagationStopped(),r=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());s=rt(s=new Event(e,{bubbles:o,cancelable:!0}),i);return a&&s.preventDefault(),r&&t.dispatchEvent(s),s.defaultPrevented&&n&&n.preventDefault(),s}};function rt(e,t={}){for(const[i,s]of Object.entries(t))try{e[i]=s}catch(t){Object.defineProperty(e,i,{configurable:!0,get(){return s}})}return e}const d=new Map,at={set(t,e,i){d.has(t)||d.set(t,new Map);t=d.get(t);t.has(e)||0===t.size?t.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(t.keys())[0]}.`)},get(t,e){return d.has(t)&&d.get(t).get(e)||null},remove(t,e){var i;d.has(t)&&((i=d.get(t)).delete(e),0===i.size)&&d.delete(t)}};function lt(e){if(\"true\"===e)return!0;if(\"false\"===e)return!1;if(e===Number(e).toString())return Number(e);if(\"\"===e||\"null\"===e)return null;if(\"string\"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function ct(t){return t.replace(/[A-Z]/g,t=>\"-\"+t.toLowerCase())}const u={setDataAttribute(t,e,i){t.setAttribute(\"data-bs-\"+ct(e),i)},removeDataAttribute(t,e){t.removeAttribute(\"data-bs-\"+ct(e))},getDataAttributes(e){if(!e)return{};var i={};for(const s of Object.keys(e.dataset).filter(t=>t.startsWith(\"bs\")&&!t.startsWith(\"bsConfig\"))){let t=s.replace(/^bs/,\"\");i[t=t.charAt(0).toLowerCase()+t.slice(1,t.length)]=lt(e.dataset[s])}return i},getDataAttribute(t,e){return lt(t.getAttribute(\"data-bs-\"+ct(e)))}};class e{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method \"NAME\", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){var i=o(e)?u.getDataAttribute(e,\"config\"):{};return{...this.constructor.Default,...\"object\"==typeof i?i:{},...o(e)?u.getDataAttributes(e):{},...\"object\"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(var[i,s]of Object.entries(e)){var n=t[i],n=o(n)?\"element\":null==(n=n)?\"\"+n:Object.prototype.toString.call(n).match(/\\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(n))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option \"${i}\" provided type \"${n}\" but expected type \"${s}\".`)}}}class _ extends e{constructor(t,e){super(),(t=s(t))&&(this._element=t,this._config=this._getConfig(e),at.set(this._element,this.constructor.DATA_KEY,this))}dispose(){at.remove(this._element,this.constructor.DATA_KEY),p.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){R(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return at.get(s(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,\"object\"==typeof e?e:null)}static get VERSION(){return\"5.3.0-alpha1\"}static get DATA_KEY(){return\"bs.\"+this.NAME}static get EVENT_KEY(){return\".\"+this.DATA_KEY}static eventName(t){return\"\"+t+this.EVENT_KEY}}const ht=e=>{let i=e.getAttribute(\"data-bs-target\");if(!i||\"#\"===i){let t=e.getAttribute(\"href\");if(!t||!t.includes(\"#\")&&!t.startsWith(\".\"))return null;t.includes(\"#\")&&!t.startsWith(\"#\")&&(t=\"#\"+t.split(\"#\")[1]),i=t&&\"#\"!==t?t.trim():null}return H(i)},g={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(t=>t.matches(e))},parents(t,e){var i=[];let s=t.parentNode.closest(e);for(;s;)i.push(s),s=s.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){var e=[\"a\",\"button\",\"input\",\"textarea\",\"select\",\"details\",\"[tabindex]\",'[contenteditable=\"true\"]'].map(t=>t+':not([tabindex^=\"-\"])').join(\",\");return this.find(e,t).filter(t=>!r(t)&&n(t))},getSelectorFromElement(t){t=ht(t);return t&&g.findOne(t)?t:null},getElementFromSelector(t){t=ht(t);return t?g.findOne(t):null},getMultipleElementsFromSelector(t){t=ht(t);return t?g.find(t):[]}};var dt=(e,i=\"hide\")=>{var t=\"click.dismiss\"+e.EVENT_KEY;const s=e.NAME;p.on(document,t,`[data-bs-dismiss=\"${s}\"]`,function(t){[\"A\",\"AREA\"].includes(this.tagName)&&t.preventDefault(),r(this)||(t=g.getElementFromSelector(this)||this.closest(\".\"+s),e.getOrCreateInstance(t)[i]())})};class ut extends _{static get NAME(){return\"alert\"}close(){var t;p.trigger(this._element,\"close.bs.alert\").defaultPrevented||(this._element.classList.remove(\"show\"),t=this._element.classList.contains(\"fade\"),this._queueCallback(()=>this._destroyElement(),this._element,t))}_destroyElement(){this._element.remove(),p.trigger(this._element,\"closed.bs.alert\"),this.dispose()}static jQueryInterface(e){return this.each(function(){var t=ut.getOrCreateInstance(this);if(\"string\"==typeof e){if(void 0===t[e]||e.startsWith(\"_\")||\"constructor\"===e)throw new TypeError(`No method named \"${e}\"`);t[e](this)}})}}dt(ut,\"close\"),t(ut);const _t='[data-bs-toggle=\"button\"]';class gt extends _{static get NAME(){return\"button\"}toggle(){this._element.setAttribute(\"aria-pressed\",this._element.classList.toggle(\"active\"))}static jQueryInterface(e){return this.each(function(){var t=gt.getOrCreateInstance(this);\"toggle\"===e&&t[e]()})}}p.on(document,\"click.bs.button.data-api\",_t,t=>{t.preventDefault();t=t.target.closest(_t);gt.getOrCreateInstance(t).toggle()}),t(gt);const m=\".bs.swipe\",pt=(m,m,m,m,m,{endCallback:null,leftCallback:null,rightCallback:null}),mt={endCallback:\"(function|null)\",leftCallback:\"(function|null)\",rightCallback:\"(function|null)\"};class ft extends e{constructor(t,e){super(),(this._element=t)&&ft.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return pt}static get DefaultType(){return mt}static get NAME(){return\"swipe\"}dispose(){p.off(this._element,m)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),h(this._config.endCallback)}_move(t){this._deltaX=t.touches&&1this._start(t)),p.on(this._element,\"pointerup.bs.swipe\",t=>this._end(t)),this._element.classList.add(\"pointer-event\")):(p.on(this._element,\"touchstart.bs.swipe\",t=>this._start(t)),p.on(this._element,\"touchmove.bs.swipe\",t=>this._move(t)),p.on(this._element,\"touchend.bs.swipe\",t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(\"pen\"===t.pointerType||\"touch\"===t.pointerType)}static isSupported(){return\"ontouchstart\"in document.documentElement||0this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?p.one(this._element,vt,()=>this.cycle()):this.cycle())}to(t){var e,i=this._getItems();t>i.length-1||t<0||(this._isSliding?p.one(this._element,vt,()=>this.to(t)):(e=this._getItemIndex(this._getActive()))!==t&&(e=ethis._keydown(t)),\"hover\"===this._config.pause&&(p.on(this._element,\"mouseenter.bs.carousel\",()=>this.pause()),p.on(this._element,\"mouseleave.bs.carousel\",()=>this._maybeEnableCycle())),this._config.touch&&ft.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of g.find(\".carousel-item img\",this._element))p.on(e,\"dragstart.bs.carousel\",t=>t.preventDefault());var t={leftCallback:()=>this._slide(this._directionToOrder(y)),rightCallback:()=>this._slide(this._directionToOrder(bt)),endCallback:()=>{\"hover\"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ft(this._element,t)}_keydown(t){var e;/input|textarea/i.test(t.target.tagName)||(e=Tt[t.key])&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){var e;this._indicatorsElement&&((e=g.findOne(At,this._indicatorsElement)).classList.remove(wt),e.removeAttribute(\"aria-current\"),e=g.findOne(`[data-bs-slide-to=\"${t}\"]`,this._indicatorsElement))&&(e.classList.add(wt),e.setAttribute(\"aria-current\",\"true\"))}_updateInterval(){var t=this._activeElement||this._getActive();t&&(t=Number.parseInt(t.getAttribute(\"data-bs-interval\"),10),this._config.interval=t||this._config.defaultInterval)}_slide(e,t=null){if(!this._isSliding){const s=this._getActive();var i=e===b;const n=t||V(this._getItems(),s,i,this._config.wrap);if(n!==s){const o=this._getItemIndex(n),r=t=>p.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(s),to:o});t=r(\"slide.bs.carousel\");if(!t.defaultPrevented&&s&&n){t=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=n;const a=i?\"carousel-item-start\":\"carousel-item-end\",l=i?\"carousel-item-next\":\"carousel-item-prev\";n.classList.add(l),c(n),s.classList.add(a),n.classList.add(a);this._queueCallback(()=>{n.classList.remove(a,l),n.classList.add(wt),s.classList.remove(wt,l,a),this._isSliding=!1,r(vt)},s,this._isAnimated()),t&&this.cycle()}}}}_isAnimated(){return this._element.classList.contains(\"slide\")}_getActive(){return g.findOne(\".active.carousel-item\",this._element)}_getItems(){return g.find(Et,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return l()?t===y?v:b:t===y?b:v}_orderToDirection(t){return l()?t===v?y:bt:t===v?bt:y}static jQueryInterface(e){return this.each(function(){var t=w.getOrCreateInstance(this,e);if(\"number\"==typeof e)t.to(e);else if(\"string\"==typeof e){if(void 0===t[e]||e.startsWith(\"_\")||\"constructor\"===e)throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}p.on(document,\"click.bs.carousel.data-api\",\"[data-bs-slide], [data-bs-slide-to]\",function(t){var e=g.getElementFromSelector(this);e&&e.classList.contains(yt)&&(t.preventDefault(),t=w.getOrCreateInstance(e),(e=this.getAttribute(\"data-bs-slide-to\"))?t.to(e):\"next\"===u.getDataAttribute(this,\"slide\")?t.next():t.prev(),t._maybeEnableCycle())}),p.on(window,\"load.bs.carousel.data-api\",()=>{for(const t of g.find('[data-bs-ride=\"carousel\"]'))w.getOrCreateInstance(t)}),t(w);const St=\"show\",A=\"collapse\",Lt=\"collapsing\",Ot=(A,A,'[data-bs-toggle=\"collapse\"]'),It={parent:null,toggle:!0},Dt={parent:\"(null|element)\",toggle:\"boolean\"};class E extends _{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];for(const n of g.find(Ot)){var i=g.getSelectorFromElement(n),s=g.find(i).filter(t=>t===this._element);null!==i&&s.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return It}static get DefaultType(){return Dt}static get NAME(){return\"collapse\"}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let t=[];if(!(t=this._config.parent?this._getFirstLevelChildren(\".collapse.show, .collapse.collapsing\").filter(t=>t!==this._element).map(t=>E.getOrCreateInstance(t,{toggle:!1})):t).length||!t[0]._isTransitioning){var e=p.trigger(this._element,\"show.bs.collapse\");if(!e.defaultPrevented){for(const s of t)s.hide();const i=this._getDimension();this._element.classList.remove(A),this._element.classList.add(Lt),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;e=\"scroll\"+(i[0].toUpperCase()+i.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Lt),this._element.classList.add(A,St),this._element.style[i]=\"\",p.trigger(this._element,\"shown.bs.collapse\")},this._element,!0),this._element.style[i]=this._element[e]+\"px\"}}}}hide(){if(!this._isTransitioning&&this._isShown()){var t=p.trigger(this._element,\"hide.bs.collapse\");if(!t.defaultPrevented){t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+\"px\",c(this._element),this._element.classList.add(Lt),this._element.classList.remove(A,St);for(const i of this._triggerArray){var e=g.getElementFromSelector(i);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;this._element.style[t]=\"\",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Lt),this._element.classList.add(A),p.trigger(this._element,\"hidden.bs.collapse\")},this._element,!0)}}}_isShown(t=this._element){return t.classList.contains(St)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=s(t.parent),t}_getDimension(){return this._element.classList.contains(\"collapse-horizontal\")?\"width\":\"height\"}_initializeChildren(){if(this._config.parent)for(const e of this._getFirstLevelChildren(Ot)){var t=g.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=g.find(\":scope .collapse .collapse\",this._config.parent);return g.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle(\"collapsed\",!e),i.setAttribute(\"aria-expanded\",e)}static jQueryInterface(e){const i={};return\"string\"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),this.each(function(){var t=E.getOrCreateInstance(this,i);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}p.on(document,\"click.bs.collapse.data-api\",Ot,function(t){(\"A\"===t.target.tagName||t.delegateTarget&&\"A\"===t.delegateTarget.tagName)&&t.preventDefault();for(const e of g.getMultipleElementsFromSelector(this))E.getOrCreateInstance(e,{toggle:!1}).toggle()}),t(E);const Nt=\"dropdown\";var f=\".bs.dropdown\",T=\".data-api\";const Pt=\"ArrowDown\";var xt=\"click\"+f+T,f=\"keydown\"+f+T;const C=\"show\",k='[data-bs-toggle=\"dropdown\"]:not(.disabled):not(:disabled)',Mt=(k,\".dropdown-menu\"),jt=l()?\"top-end\":\"top-start\",Ft=l()?\"top-start\":\"top-end\",zt=l()?\"bottom-end\":\"bottom-start\",Ht=l()?\"bottom-start\":\"bottom-end\",Bt=l()?\"left-start\":\"right-start\",qt=l()?\"right-start\":\"left-start\",Wt={autoClose:!0,boundary:\"clippingParents\",display:\"dynamic\",offset:[0,2],popperConfig:null,reference:\"toggle\"},$t={autoClose:\"(boolean|string)\",boundary:\"(string|element)\",display:\"string\",offset:\"(array|string|function)\",popperConfig:\"(null|object|function)\",reference:\"(string|element|object)\"};class S extends _{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=g.next(this._element,Mt)[0]||g.prev(this._element,Mt)[0]||g.findOne(Mt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Wt}static get DefaultType(){return $t}static get NAME(){return Nt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(!r(this._element)&&!this._isShown()){var t={relatedTarget:this._element},e=p.trigger(this._element,\"show.bs.dropdown\",t);if(!e.defaultPrevented){if(this._createPopper(),\"ontouchstart\"in document.documentElement&&!this._parent.closest(\".navbar-nav\"))for(const i of[].concat(...document.body.children))p.on(i,\"mouseover\",a);this._element.focus(),this._element.setAttribute(\"aria-expanded\",!0),this._menu.classList.add(C),this._element.classList.add(C),p.trigger(this._element,\"shown.bs.dropdown\",t)}}}hide(){var t;!r(this._element)&&this._isShown()&&(t={relatedTarget:this._element},this._completeHide(t))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){var e=p.trigger(this._element,\"hide.bs.dropdown\",t);if(!e.defaultPrevented){if(\"ontouchstart\"in document.documentElement)for(const i of[].concat(...document.body.children))p.off(i,\"mouseover\",a);this._popper&&this._popper.destroy(),this._menu.classList.remove(C),this._element.classList.remove(C),this._element.setAttribute(\"aria-expanded\",\"false\"),u.removeDataAttribute(this._menu,\"popper\"),p.trigger(this._element,\"hidden.bs.dropdown\",t)}}_getConfig(t){if(\"object\"!=typeof(t=super._getConfig(t)).reference||o(t.reference)||\"function\"==typeof t.reference.getBoundingClientRect)return t;throw new TypeError(Nt.toUpperCase()+': Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.')}_createPopper(){if(void 0===i)throw new TypeError(\"Bootstrap's dropdowns require Popper (https://popper.js.org)\");let t=this._element;\"parent\"===this._config.reference?t=this._parent:o(this._config.reference)?t=s(this._config.reference):\"object\"==typeof this._config.reference&&(t=this._config.reference);var e=this._getPopperConfig();this._popper=i.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(C)}_getPlacement(){var t,e=this._parent;return e.classList.contains(\"dropend\")?Bt:e.classList.contains(\"dropstart\")?qt:e.classList.contains(\"dropup-center\")?\"top\":e.classList.contains(\"dropdown-center\")?\"bottom\":(t=\"end\"===getComputedStyle(this._menu).getPropertyValue(\"--bs-position\").trim(),e.classList.contains(\"dropup\")?t?Ft:jt:t?Ht:zt)}_detectNavbar(){return null!==this._element.closest(\".navbar\")}_getOffset(){const e=this._config[\"offset\"];return\"string\"==typeof e?e.split(\",\").map(t=>Number.parseInt(t,10)):\"function\"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){var t={placement:this._getPlacement(),modifiers:[{name:\"preventOverflow\",options:{boundary:this._config.boundary}},{name:\"offset\",options:{offset:this._getOffset()}}]};return!this._inNavbar&&\"static\"!==this._config.display||(u.setDataAttribute(this._menu,\"popper\",\"static\"),t.modifiers=[{name:\"applyStyles\",enabled:!1}]),{...t,...h(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){var i=g.find(\".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)\",this._menu).filter(t=>n(t));i.length&&V(i,e,t===Pt,!i.includes(e)).focus()}static jQueryInterface(e){return this.each(function(){var t=S.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e]()}})}static clearMenus(t){if(2!==t.button&&(\"keyup\"!==t.type||\"Tab\"===t.key))for(const n of g.find('[data-bs-toggle=\"dropdown\"]:not(.disabled):not(:disabled).show')){var e,i,s=S.getInstance(n);s&&!1!==s._config.autoClose&&(e=(i=t.composedPath()).includes(s._menu),i.includes(s._element)||\"inside\"===s._config.autoClose&&!e||\"outside\"===s._config.autoClose&&e||s._menu.contains(t.target)&&(\"keyup\"===t.type&&\"Tab\"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName))||(i={relatedTarget:s._element},\"click\"===t.type&&(i.clickEvent=t),s._completeHide(i)))}}static dataApiKeydownHandler(t){var e=/input|textarea/i.test(t.target.tagName),i=\"Escape\"===t.key,s=[\"ArrowUp\",Pt].includes(t.key);!s&&!i||e&&!i||(t.preventDefault(),e=this.matches(k)?this:g.prev(this,k)[0]||g.next(this,k)[0]||g.findOne(k,t.delegateTarget.parentNode),i=S.getOrCreateInstance(e),s?(t.stopPropagation(),i.show(),i._selectMenuItem(t)):i._isShown()&&(t.stopPropagation(),i.hide(),e.focus()))}}p.on(document,f,k,S.dataApiKeydownHandler),p.on(document,f,Mt,S.dataApiKeydownHandler),p.on(document,xt,S.clearMenus),p.on(document,\"keyup.bs.dropdown.data-api\",S.clearMenus),p.on(document,xt,k,function(t){t.preventDefault(),S.getOrCreateInstance(this).toggle()}),t(S);const Rt=\".fixed-top, .fixed-bottom, .is-fixed, .sticky-top\",Vt=\".sticky-top\",Kt=\"padding-right\",Qt=\"margin-right\";class Xt{constructor(){this._element=document.body}getWidth(){var t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Kt,t=>t+e),this._setElementAttributes(Rt,Kt,t=>t+e),this._setElementAttributes(Vt,Qt,t=>t-e)}reset(){this._resetElementAttributes(this._element,\"overflow\"),this._resetElementAttributes(this._element,Kt),this._resetElementAttributes(Rt,Kt),this._resetElementAttributes(Vt,Qt)}isOverflowing(){return 0{var e;t!==this._element&&window.innerWidth>t.clientWidth+n||(this._saveInitialAttribute(t,i),e=window.getComputedStyle(t).getPropertyValue(i),t.style.setProperty(i,s(Number.parseFloat(e))+\"px\"))})}_saveInitialAttribute(t,e){var i=t.style.getPropertyValue(e);i&&u.setDataAttribute(t,e,i)}_resetElementAttributes(t,i){this._applyManipulationCallback(t,t=>{var e=u.getDataAttribute(t,i);null===e?t.style.removeProperty(i):(u.removeDataAttribute(t,i),t.style.setProperty(i,e))})}_applyManipulationCallback(t,e){if(o(t))e(t);else for(const i of g.find(t,this._element))e(i)}}const Yt=\"backdrop\",Ut=\"mousedown.bs.\"+Yt,Gt={className:\"modal-backdrop\",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:\"body\"},Jt={className:\"string\",clickCallback:\"(function|null)\",isAnimated:\"boolean\",isVisible:\"boolean\",rootElement:\"(element|string)\"};class Zt extends e{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Gt}static get DefaultType(){return Jt}static get NAME(){return Yt}show(t){var e;this._config.isVisible?(this._append(),e=this._getElement(),this._config.isAnimated&&c(e),e.classList.add(\"show\"),this._emulateAnimation(()=>{h(t)})):h(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(\"show\"),this._emulateAnimation(()=>{this.dispose(),h(t)})):h(t)}dispose(){this._isAppended&&(p.off(this._element,Ut),this._element.remove(),this._isAppended=!1)}_getElement(){var t;return this._element||((t=document.createElement(\"div\")).className=this._config.className,this._config.isAnimated&&t.classList.add(\"fade\"),this._element=t),this._element}_configAfterMerge(t){return t.rootElement=s(t.rootElement),t}_append(){var t;this._isAppended||(t=this._getElement(),this._config.rootElement.append(t),p.on(t,Ut,()=>{h(this._config.clickCallback)}),this._isAppended=!0)}_emulateAnimation(t){R(t,this._getElement(),this._config.isAnimated)}}const te=\".bs.focustrap\",ee=(te,te,\"backward\"),ie={autofocus:!0,trapElement:null},se={autofocus:\"boolean\",trapElement:\"element\"};class ne extends e{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ie}static get DefaultType(){return se}static get NAME(){return\"focustrap\"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),p.off(document,te),p.on(document,\"focusin.bs.focustrap\",t=>this._handleFocusin(t)),p.on(document,\"keydown.tab.bs.focustrap\",t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,p.off(document,te))}_handleFocusin(t){var e=this._config[\"trapElement\"];t.target===document||t.target===e||e.contains(t.target)||(0===(t=g.focusableChildren(e)).length?e:this._lastTabNavDirection===ee?t[t.length-1]:t[0]).focus()}_handleKeydown(t){\"Tab\"===t.key&&(this._lastTabNavDirection=t.shiftKey?ee:\"forward\")}}const L=\".bs.modal\";L,L;const oe=\"hidden\"+L,re=\"show\"+L;L,L,L,L,L;L;const ae=\"modal-open\",le=\"modal-static\";const ce={backdrop:!0,focus:!0,keyboard:!0},he={backdrop:\"(boolean|string)\",focus:\"boolean\",keyboard:\"boolean\"};class O extends _{constructor(t,e){super(t,e),this._dialog=g.findOne(\".modal-dialog\",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Xt,this._addEventListeners()}static get Default(){return ce}static get DefaultType(){return he}static get NAME(){return\"modal\"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||p.trigger(this._element,re,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ae),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||p.trigger(this._element,\"hide.bs.modal\").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(\"show\"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const t of[window,this._dialog])p.off(t,L);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Zt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ne({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=\"block\",this._element.removeAttribute(\"aria-hidden\"),this._element.setAttribute(\"aria-modal\",!0),this._element.setAttribute(\"role\",\"dialog\"),this._element.scrollTop=0;var e=g.findOne(\".modal-body\",this._dialog);e&&(e.scrollTop=0),c(this._element),this._element.classList.add(\"show\");this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,p.trigger(this._element,\"shown.bs.modal\",{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){p.on(this._element,\"keydown.dismiss.bs.modal\",t=>{\"Escape\"===t.key&&(this._config.keyboard?(t.preventDefault(),this.hide()):this._triggerBackdropTransition())}),p.on(window,\"resize.bs.modal\",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),p.on(this._element,\"mousedown.dismiss.bs.modal\",e=>{p.one(this._element,\"click.dismiss.bs.modal\",t=>{this._element===e.target&&this._element===t.target&&(\"static\"===this._config.backdrop?this._triggerBackdropTransition():this._config.backdrop&&this.hide())})})}_hideModal(){this._element.style.display=\"none\",this._element.setAttribute(\"aria-hidden\",!0),this._element.removeAttribute(\"aria-modal\"),this._element.removeAttribute(\"role\"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ae),this._resetAdjustments(),this._scrollBar.reset(),p.trigger(this._element,oe)})}_isAnimated(){return this._element.classList.contains(\"fade\")}_triggerBackdropTransition(){var t=p.trigger(this._element,\"hidePrevented.bs.modal\");if(!t.defaultPrevented){t=this._element.scrollHeight>document.documentElement.clientHeight;const e=this._element.style.overflowY;\"hidden\"===e||this._element.classList.contains(le)||(t||(this._element.style.overflowY=\"hidden\"),this._element.classList.add(le),this._queueCallback(()=>{this._element.classList.remove(le),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){var t,e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),s=0{t.defaultPrevented||p.one(e,oe,()=>{n(this)&&this.focus()})});t=g.findOne(\".modal.show\");t&&O.getInstance(t).hide(),O.getOrCreateInstance(e).toggle(this)}),dt(O),t(O);T=\".bs.offcanvas\";const de=\"showing\",ue=\".offcanvas.show\",_e=\"hidePrevented\"+T,ge=\"hidden\"+T;const pe={backdrop:!0,keyboard:!0,scroll:!1},me={backdrop:\"(boolean|string)\",keyboard:\"boolean\",scroll:\"boolean\"};class I extends _{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return pe}static get DefaultType(){return me}static get NAME(){return\"offcanvas\"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||p.trigger(this._element,\"show.bs.offcanvas\",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Xt).hide(),this._element.setAttribute(\"aria-modal\",!0),this._element.setAttribute(\"role\",\"dialog\"),this._element.classList.add(de),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(\"show\"),this._element.classList.remove(de),p.trigger(this._element,\"shown.bs.offcanvas\",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&!p.trigger(this._element,\"hide.bs.offcanvas\").defaultPrevented&&(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(\"hiding\"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(\"show\",\"hiding\"),this._element.removeAttribute(\"aria-modal\"),this._element.removeAttribute(\"role\"),this._config.scroll||(new Xt).reset(),p.trigger(this._element,ge)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){var t=Boolean(this._config.backdrop);return new Zt({className:\"offcanvas-backdrop\",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{\"static\"===this._config.backdrop?p.trigger(this._element,_e):this.hide()}:null})}_initializeFocusTrap(){return new ne({trapElement:this._element})}_addEventListeners(){p.on(this._element,\"keydown.dismiss.bs.offcanvas\",t=>{\"Escape\"===t.key&&(this._config.keyboard?this.hide():p.trigger(this._element,_e))})}static jQueryInterface(e){return this.each(function(){var t=I.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e]||e.startsWith(\"_\")||\"constructor\"===e)throw new TypeError(`No method named \"${e}\"`);t[e](this)}})}}p.on(document,\"click.bs.offcanvas.data-api\",'[data-bs-toggle=\"offcanvas\"]',function(t){var e=g.getElementFromSelector(this);[\"A\",\"AREA\"].includes(this.tagName)&&t.preventDefault(),r(this)||(p.one(e,ge,()=>{n(this)&&this.focus()}),(t=g.findOne(ue))&&t!==e&&I.getInstance(t).hide(),I.getOrCreateInstance(e).toggle(this))}),p.on(window,\"load.bs.offcanvas.data-api\",()=>{for(const t of g.find(ue))I.getOrCreateInstance(t).show()}),p.on(window,\"resize.bs.offcanvas\",()=>{for(const t of g.find(\"[aria-modal][class*=show][class*=offcanvas-]\"))\"fixed\"!==getComputedStyle(t).position&&I.getOrCreateInstance(t).hide()}),dt(I),t(I);const fe=new Set([\"background\",\"cite\",\"href\",\"itemtype\",\"longdesc\",\"poster\",\"src\",\"xlink:href\"]);const be=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,ve=/^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[\\d+/a-z]+=*$/i;f={\"*\":[\"class\",\"dir\",\"id\",\"lang\",\"role\",/^aria-[\\w-]*$/i],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:[]};function ye(t,e,i){if(!t.length)return t;if(i&&\"function\"==typeof i)return i(t);i=(new window.DOMParser).parseFromString(t,\"text/html\");for(const r of[].concat(...i.body.querySelectorAll(\"*\"))){var s=r.nodeName.toLowerCase();if(Object.keys(e).includes(s)){var n=[].concat(...r.attributes),o=[].concat(e[\"*\"]||[],e[s]||[]);for(const a of n)((t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!fe.has(i)||Boolean(be.test(t.nodeValue)||ve.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))})(a,o)||r.removeAttribute(a.nodeName)}else r.remove()}return i.body.innerHTML}const we={allowList:f,content:{},extraClass:\"\",html:!1,sanitize:!0,sanitizeFn:null,template:\"
    \"},Ae={allowList:\"object\",content:\"object\",extraClass:\"(string|function)\",html:\"boolean\",sanitize:\"boolean\",sanitizeFn:\"(null|function)\",template:\"string\"},Ee={entry:\"(string|element|function|null)\",selector:\"(string|element)\"};class Te extends e{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return we}static get DefaultType(){return Ae}static get NAME(){return\"TemplateFactory\"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return 0
    ',title:\"\",trigger:\"hover focus\"},Ne={allowList:\"object\",animation:\"boolean\",boundary:\"(string|element)\",container:\"(string|element|boolean)\",customClass:\"(string|function)\",delay:\"(number|object)\",fallbackPlacements:\"array\",html:\"boolean\",offset:\"(array|string|function)\",placement:\"(string|function)\",popperConfig:\"(null|object|function)\",sanitize:\"boolean\",sanitizeFn:\"(null|function)\",selector:\"(string|boolean)\",template:\"string\",title:\"(string|element|function)\",trigger:\"string\"};class N extends _{constructor(t,e){if(void 0===i)throw new TypeError(\"Bootstrap's tooltips require Popper (https://popper.js.org)\");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return De}static get DefaultType(){return Ne}static get NAME(){return\"tooltip\"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),p.off(this._element.closest(\".modal\"),Le,this._hideModalHandler),this._element.getAttribute(\"data-bs-original-title\")&&this._element.setAttribute(\"title\",this._element.getAttribute(\"data-bs-original-title\")),this._disposePopper(),super.dispose()}show(){if(\"none\"===this._element.style.display)throw new Error(\"Please use show on visible elements\");if(this._isWithContent()&&this._isEnabled){var t=p.trigger(this._element,this.constructor.eventName(\"show\")),e=(q(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!t.defaultPrevented&&e){this._disposePopper();t=this._getTipElement(),e=(this._element.setAttribute(\"aria-describedby\",t.getAttribute(\"id\")),this._config)[\"container\"];if(this._element.ownerDocument.documentElement.contains(this.tip)||(e.append(t),p.trigger(this._element,this.constructor.eventName(\"inserted\"))),this._popper=this._createPopper(t),t.classList.add(Se),\"ontouchstart\"in document.documentElement)for(const i of[].concat(...document.body.children))p.on(i,\"mouseover\",a);this._queueCallback(()=>{p.trigger(this._element,this.constructor.eventName(\"shown\")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}hide(){if(this._isShown()){var t=p.trigger(this._element,this.constructor.eventName(\"hide\"));if(!t.defaultPrevented){if(this._getTipElement().classList.remove(Se),\"ontouchstart\"in document.documentElement)for(const e of[].concat(...document.body.children))p.off(e,\"mouseover\",a);this._activeTrigger.click=!1,this._activeTrigger[Oe]=!1,this._activeTrigger[D]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(\"aria-describedby\"),p.trigger(this._element,this.constructor.eventName(\"hidden\")))},this.tip,this._isAnimated())}}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){t=this._getTemplateFactory(t).toHtml();if(!t)return null;t.classList.remove(ke,Se),t.classList.add(`bs-${this.constructor.NAME}-auto`);var e=(t=>{for(;t+=Math.floor(1e6*Math.random()),document.getElementById(t););return t})(this.constructor.NAME).toString();return t.setAttribute(\"id\",e),this._isAnimated()&&t.classList.add(ke),t}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Te({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{\".tooltip-inner\":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute(\"data-bs-original-title\")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ke)}_isShown(){return this.tip&&this.tip.classList.contains(Se)}_createPopper(t){var e=h(this._config.placement,[this,t,this._element]),e=Ie[e.toUpperCase()];return i.createPopper(this._element,t,this._getPopperConfig(e))}_getOffset(){const e=this._config[\"offset\"];return\"string\"==typeof e?e.split(\",\").map(t=>Number.parseInt(t,10)):\"function\"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(t){return h(t,[this._element])}_getPopperConfig(t){t={placement:t,modifiers:[{name:\"flip\",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:\"offset\",options:{offset:this._getOffset()}},{name:\"preventOverflow\",options:{boundary:this._config.boundary}},{name:\"arrow\",options:{element:`.${this.constructor.NAME}-arrow`}},{name:\"preSetPlacement\",enabled:!0,phase:\"beforeMain\",fn:t=>{this._getTipElement().setAttribute(\"data-popper-placement\",t.state.placement)}}]};return{...t,...h(this._config.popperConfig,[t])}}_setListeners(){var t,e;for(const i of this._config.trigger.split(\" \"))\"click\"===i?p.on(this._element,this.constructor.eventName(\"click\"),this._config.selector,t=>{this._initializeOnDelegatedTarget(t).toggle()}):\"manual\"!==i&&(t=i===D?this.constructor.eventName(\"mouseenter\"):this.constructor.eventName(\"focusin\"),e=i===D?this.constructor.eventName(\"mouseleave\"):this.constructor.eventName(\"focusout\"),p.on(this._element,t,this._config.selector,t=>{var e=this._initializeOnDelegatedTarget(t);e._activeTrigger[\"focusin\"===t.type?Oe:D]=!0,e._enter()}),p.on(this._element,e,this._config.selector,t=>{var e=this._initializeOnDelegatedTarget(t);e._activeTrigger[\"focusout\"===t.type?Oe:D]=e._element.contains(t.relatedTarget),e._leave()}));this._hideModalHandler=()=>{this._element&&this.hide()},p.on(this._element.closest(\".modal\"),Le,this._hideModalHandler)}_fixTitle(){var t=this._element.getAttribute(\"title\");t&&(this._element.getAttribute(\"aria-label\")||this._element.textContent.trim()||this._element.setAttribute(\"aria-label\",t),this._element.setAttribute(\"data-bs-original-title\",t),this._element.removeAttribute(\"title\"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){var e=u.getDataAttributes(this._element);for(const i of Object.keys(e))Ce.has(i)&&delete e[i];return t={...e,...\"object\"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:s(t.container),\"number\"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),\"number\"==typeof t.title&&(t.title=t.title.toString()),\"number\"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){var t,e,i={};for([t,e]of Object.entries(this._config))this.constructor.Default[t]!==e&&(i[t]=e);return i.selector=!1,i.trigger=\"manual\",i}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){var t=N.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}t(N);const Pe={...N.Default,content:\"\",offset:[0,8],placement:\"right\",template:'

    ',trigger:\"click\"},xe={...N.DefaultType,content:\"(null|string|element|function)\"};class Me extends N{static get Default(){return Pe}static get DefaultType(){return xe}static get NAME(){return\"popover\"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{\".popover-header\":this._getTitle(),\".popover-body\":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){var t=Me.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}t(Me);xt=\".bs.scrollspy\";const je=\"click\"+xt;const P=\"active\",Fe=\"[href]\";const ze={offset:null,rootMargin:\"0px 0px -25%\",smoothScroll:!1,target:null,threshold:[.1,.5,1]},He={offset:\"(number|null)\",rootMargin:\"string\",smoothScroll:\"boolean\",target:\"element\",threshold:\"array\"};class Be extends _{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=\"visible\"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ze}static get DefaultType(){return He}static get NAME(){return\"scrollspy\"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=s(t.target)||document.body,t.rootMargin=t.offset?t.offset+\"px 0px -30%\":t.rootMargin,\"string\"==typeof t.threshold&&(t.threshold=t.threshold.split(\",\").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(p.off(this._config.target,je),p.on(this._config.target,je,Fe,t=>{var e=this._observableSections.get(t.target.hash);e&&(t.preventDefault(),t=this._rootElement||window,e=e.offsetTop-this._element.offsetTop,t.scrollTo?t.scrollTo({top:e,behavior:\"smooth\"}):t.scrollTop=e)}))}_getNewObserver(){var t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(\"#\"+t.target.id);var i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of t)if(r.isIntersecting){var o=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&o){if(i(r),s)continue;return}n||o||i(r)}else this._activeTarget=null,this._clearActiveClass(e(r))}_initializeTargetsAndObservables(){var t;this._targetLinks=new Map,this._observableSections=new Map;for(const e of g.find(Fe,this._config.target))e.hash&&!r(e)&&(t=g.findOne(e.hash,this._element),n(t))&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),(this._activeTarget=t).classList.add(P),this._activateParents(t),p.trigger(this._element,\"activate.bs.scrollspy\",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(\"dropdown-item\"))g.findOne(\".dropdown-toggle\",t.closest(\".dropdown\")).classList.add(P);else for(const e of g.parents(t,\".nav, .list-group\"))for(const i of g.prev(e,\".nav-link, .nav-item > .nav-link, .list-group-item\"))i.classList.add(P)}_clearActiveClass(t){t.classList.remove(P);for(const e of g.find(Fe+\".\"+P,t))e.classList.remove(P)}static jQueryInterface(e){return this.each(function(){var t=Be.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e]||e.startsWith(\"_\")||\"constructor\"===e)throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}p.on(window,\"load.bs.scrollspy.data-api\",()=>{for(const t of g.find('[data-bs-spy=\"scroll\"]'))Be.getOrCreateInstance(t)}),t(Be);const qe=\"ArrowRight\",We=\"ArrowDown\",x=\"active\",$e=\"show\";T='[data-bs-toggle=\"tab\"], [data-bs-toggle=\"pill\"], [data-bs-toggle=\"list\"]';const Re='.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role=\"tab\"]:not(.dropdown-toggle), '+T;x,x,x;class M extends _{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role=\"tablist\"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),p.on(this._element,\"keydown.bs.tab\",t=>this._keydown(t)))}static get NAME(){return\"tab\"}show(){var t,e,i=this._element;this._elemIsActive(i)||(e=(t=this._getActiveElem())?p.trigger(t,\"hide.bs.tab\",{relatedTarget:i}):null,p.trigger(i,\"show.bs.tab\",{relatedTarget:t}).defaultPrevented)||e&&e.defaultPrevented||(this._deactivate(t,i),this._activate(i,t))}_activate(t,e){t&&(t.classList.add(x),this._activate(g.getElementFromSelector(t)),this._queueCallback(()=>{\"tab\"!==t.getAttribute(\"role\")?t.classList.add($e):(t.removeAttribute(\"tabindex\"),t.setAttribute(\"aria-selected\",!0),this._toggleDropDown(t,!0),p.trigger(t,\"shown.bs.tab\",{relatedTarget:e}))},t,t.classList.contains(\"fade\")))}_deactivate(t,e){t&&(t.classList.remove(x),t.blur(),this._deactivate(g.getElementFromSelector(t)),this._queueCallback(()=>{\"tab\"!==t.getAttribute(\"role\")?t.classList.remove($e):(t.setAttribute(\"aria-selected\",!1),t.setAttribute(\"tabindex\",\"-1\"),this._toggleDropDown(t,!1),p.trigger(t,\"hidden.bs.tab\",{relatedTarget:e}))},t,t.classList.contains(\"fade\")))}_keydown(t){var e;[\"ArrowLeft\",qe,\"ArrowUp\",We].includes(t.key)&&(t.stopPropagation(),t.preventDefault(),e=[qe,We].includes(t.key),t=V(this._getChildren().filter(t=>!r(t)),t.target,e,!0))&&(t.focus({preventScroll:!0}),M.getOrCreateInstance(t).show())}_getChildren(){return g.find(Re,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,\"role\",\"tablist\");for(const i of e)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);var e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute(\"aria-selected\",e),i!==t&&this._setAttributeIfNotExists(i,\"role\",\"presentation\"),e||t.setAttribute(\"tabindex\",\"-1\"),this._setAttributeIfNotExists(t,\"role\",\"tab\"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){var e=g.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,\"role\",\"tabpanel\"),t.id)&&this._setAttributeIfNotExists(e,\"aria-labelledby\",\"#\"+t.id)}_toggleDropDown(t,i){const s=this._getOuterElement(t);s.classList.contains(\"dropdown\")&&((t=(t,e)=>{t=g.findOne(t,s);t&&t.classList.toggle(e,i)})(\".dropdown-toggle\",x),t(\".dropdown-menu\",$e),s.setAttribute(\"aria-expanded\",i))}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(x)}_getInnerElement(t){return t.matches(Re)?t:g.findOne(Re,t)}_getOuterElement(t){return t.closest(\".nav-item, .list-group-item\")||t}static jQueryInterface(e){return this.each(function(){var t=M.getOrCreateInstance(this);if(\"string\"==typeof e){if(void 0===t[e]||e.startsWith(\"_\")||\"constructor\"===e)throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}p.on(document,\"click.bs.tab\",T,function(t){[\"A\",\"AREA\"].includes(this.tagName)&&t.preventDefault(),r(this)||M.getOrCreateInstance(this).show()}),p.on(window,\"load.bs.tab\",()=>{for(const t of g.find('.active[data-bs-toggle=\"tab\"], .active[data-bs-toggle=\"pill\"], .active[data-bs-toggle=\"list\"]'))M.getOrCreateInstance(t)}),t(M);const Ve=\"show\",Ke=\"showing\",Qe={animation:\"boolean\",autohide:\"boolean\",delay:\"number\"},Xe={animation:!0,autohide:!0,delay:5e3};class Ye extends _{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Xe}static get DefaultType(){return Qe}static get NAME(){return\"toast\"}show(){p.trigger(this._element,\"show.bs.toast\").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(\"fade\"),this._element.classList.remove(\"hide\"),c(this._element),this._element.classList.add(Ve,Ke),this._queueCallback(()=>{this._element.classList.remove(Ke),p.trigger(this._element,\"shown.bs.toast\"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&!p.trigger(this._element,\"hide.bs.toast\").defaultPrevented&&(this._element.classList.add(Ke),this._queueCallback(()=>{this._element.classList.add(\"hide\"),this._element.classList.remove(Ke,Ve),p.trigger(this._element,\"hidden.bs.toast\")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ve),super.dispose()}isShown(){return this._element.classList.contains(Ve)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,e){switch(t.type){case\"mouseover\":case\"mouseout\":this._hasMouseInteraction=e;break;case\"focusin\":case\"focusout\":this._hasKeyboardInteraction=e}e?this._clearTimeout():(t=t.relatedTarget,this._element===t||this._element.contains(t)||this._maybeScheduleHide())}_setListeners(){p.on(this._element,\"mouseover.bs.toast\",t=>this._onInteraction(t,!0)),p.on(this._element,\"mouseout.bs.toast\",t=>this._onInteraction(t,!1)),p.on(this._element,\"focusin.bs.toast\",t=>this._onInteraction(t,!0)),p.on(this._element,\"focusout.bs.toast\",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){var t=Ye.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e](this)}})}}return dt(Ye),t(Ye),{Alert:ut,Button:gt,Carousel:w,Collapse:E,Dropdown:S,Modal:O,Offcanvas:I,Popover:Me,ScrollSpy:Be,Tab:M,Toast:Ye,Tooltip:N}});","!function(e,t){if(\"object\"==typeof exports&&\"object\"==typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{var n,o=t();for(n in o)(\"object\"==typeof exports?exports:e)[n]=o[n]}}(window,function(){return n=[function(C,e,t){\"use strict\";t.r(e);var ce=\"fslightbox-\",t=\"\".concat(ce,\"styles\"),c=\"\".concat(ce,\"cursor-grabbing\"),ae=\"\".concat(ce,\"full-dimension\"),le=\"\".concat(ce,\"flex-centered\"),b=\"\".concat(ce,\"open\"),ue=\"\".concat(ce,\"transform-transition\"),de=\"\".concat(ce,\"absoluted\"),r=\"\".concat(ce,\"slide-btn\"),a=\"\".concat(r,\"-container\"),pe=\"\".concat(ce,\"fade-in\"),fe=\"\".concat(ce,\"fade-out\"),he=pe+\"-strong\",d=fe+\"-strong\",e=\"\".concat(ce,\"opacity-\"),u=\"\".concat(e,\"1\"),l=\"\".concat(ce,\"source\");function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function me(e){var s,t=e.props,r=0,c={},n=(this.getSourceTypeFromLocalStorageByUrl=function(e){return s[e]||n(e)},this.handleReceivedSourceTypeForUrl=function(e,t){if(!1===c[t]&&(r--,\"invalid\"!==e?c[t]=e:delete c[t],0===r)){var n,o=s,i=c;for(n in i)o[n]=i[n];try{localStorage.setItem(\"fslightbox-types\",JSON.stringify(s))}catch(e){}}},function(e){r++,c[e]=!1});if(t.disableLocalStorage)this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){};else{try{s=JSON.parse(localStorage.getItem(\"fslightbox-types\"))}catch(e){}s||(s={},this.getSourceTypeFromLocalStorageByUrl=n)}}function p(e,t,n,o){var i=e.data,s=e.elements.sources,r=n/o,c=0,a=(this.adjustSize=function(){if((c=i.maxSourceWidth/r)i.maxSourceHeight?i.maxSourceHeight:o,a()},function(){s[t].style.width=c*r+\"px\",s[t].style.height=c+\"px\"})}function f(e,n){var o=this,i=e.collections.sourceSizers,t=e.elements,s=t.sourceAnimationWrappers,r=t.sources,c=e.isl,a=e.resolve;function l(e,t){i[n]=a(p,[n,e,t]),i[n].adjustSize()}this.runActions=function(e,t){c[n]=!0,r[n].classList.add(u),s[n].classList.add(he),s[n].removeChild(s[n].firstChild),l(e,t),o.runActions=l}}function h(e,n){var o,i=this,s=e.elements.sources,r=e.props,c=(0,e.resolve)(f,[n]);this.handleImageLoad=function(e){var e=e.target,t=e.naturalWidth,e=e.naturalHeight;c.runActions(t,e)},this.handleVideoLoad=function(e){var e=e.target,t=e.videoWidth,e=e.videoHeight;o=!0,c.runActions(t,e)},this.handleNotMetaDatedVideoLoad=function(){o||i.handleYoutubeLoad()},this.handleYoutubeLoad=function(){var e=1920,t=1080;r.maxYoutubeDimensions&&(e=r.maxYoutubeDimensions.width,t=r.maxYoutubeDimensions.height),c.runActions(e,t)},this.handleCustomLoad=function(){var e=s[n],t=e.offsetWidth,e=e.offsetHeight;t&&e?c.runActions(t,e):setTimeout(i.handleCustomLoad)}}function m(e,t,n){var o=e.elements.sources,e=e.props.customClasses,e=e[t]||\"\";o[t].className=n+\" \"+e}function g(e,t){var n,o=e.elements.sources,i=e.props.customAttributes;for(n in i[t])o[t].setAttribute(n,i[t][n])}function v(e,t){var n=e.collections.sourceLoadHandlers,o=e.elements,i=o.sources,o=o.sourceAnimationWrappers,s=e.props.sources;i[t]=document.createElement(\"img\"),m(e,t,l),i[t].src=s[t],i[t].onload=n[t].handleImageLoad,g(e,t),o[t].appendChild(i[t])}function x(e,t){var n=e.collections.sourceLoadHandlers,o=e.elements,i=o.sources,o=o.sourceAnimationWrappers,s=e.props,r=s.sources,s=s.videosPosters,e=(i[t]=document.createElement(\"video\"),m(e,t,l),i[t].src=r[t],i[t].onloadedmetadata=function(e){n[t].handleVideoLoad(e)},i[t].controls=!0,g(e,t),s[t]&&(i[t].poster=s[t]),document.createElement(\"source\"));e.src=r[t],i[t].appendChild(e),setTimeout(n[t].handleNotMetaDatedVideoLoad,3e3),o[t].appendChild(i[t])}function y(e,t){var n=e.collections.sourceLoadHandlers,o=e.elements,i=o.sources,o=o.sourceAnimationWrappers,s=e.props.sources,s=(i[t]=document.createElement(\"iframe\"),m(e,t,\"\".concat(l,\" \").concat(ce,\"youtube-iframe\")),s[t]),r=s.split(\"?\")[1];i[t].src=\"https://www.youtube.com/embed/\".concat(s.match(/^.*(youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|\\&v=)([^#\\&\\?]*).*/)[2],\"?\").concat(r||\"\"),i[t].allowFullscreen=!0,g(e,t),o[t].appendChild(i[t]),n[t].handleYoutubeLoad()}function E(e,t){var n=e.collections.sourceLoadHandlers,o=e.elements,i=o.sources,o=o.sourceAnimationWrappers,s=e.props.sources;i[t]=s[t],m(e,t,\"\".concat(i[t].className,\" \").concat(l)),o[t].appendChild(i[t]),n[t].handleCustomLoad()}function F(e,t){var n=e.elements,o=n.sources,n=n.sourceAnimationWrappers;e.props.sources,o[t]=document.createElement(\"div\"),o[t].className=\"\".concat(ce,\"invalid-file-wrapper \").concat(le),o[t].innerHTML=\"Invalid source\",n[t].classList.add(he),n[t].removeChild(n[t].firstChild),n[t].appendChild(o[t])}function ve(o){var e=o.collections,i=e.sourceLoadHandlers,s=e.sourcesRenderFunctions,r=o.core.sourceDisplayFacade,c=o.resolve;this.runActionsForSourceTypeAndIndex=function(e,t){var n;switch(\"invalid\"!==e&&(i[t]=c(h,[t])),e){case\"image\":n=v;break;case\"video\":n=x;break;case\"youtube\":n=y;break;case\"custom\":n=E;break;default:n=F}s[t]=function(){return n(o,t)},r.displaySourcesWhichShouldBeDisplayed()}}function I(){var t,n,o,i=function(e){var t=document.createElement(\"a\");return t.href=e,\"www.youtube.com\"===t.hostname||\"youtu.be\"===t.hostname},s=function(e){return e.slice(0,e.indexOf(\"/\"))};function r(){if(4!==o.readyState){if(2===o.readyState){var e;switch(s(o.getResponseHeader(\"content-type\"))){case\"image\":e=\"image\";break;case\"video\":e=\"video\";break;default:e=\"invalid\"}o.onreadystatechange=null,o.abort(),n(e)}}else n(\"invalid\")}this.setUrlToCheck=function(e){t=e},this.getSourceType=function(e){if(i(t))return e(\"youtube\");n=e,(o=new XMLHttpRequest).onreadystatechange=r,o.open(\"GET\",t,!0),o.send()}}function xe(e,n,o){var t=e.props,i=t.types,s=t.type,r=t.sources,c=e.resolve;this.getTypeSetByClientForIndex=function(e){var t;return i&&i[e]?t=i[e]:s&&(t=s),t},this.retrieveTypeWithXhrForIndex=function(t){var e=c(I);e.setUrlToCheck(r[t]),e.getSourceType(function(e){n.handleReceivedSourceTypeForUrl(e,r[t]),o.runActionsForSourceTypeAndIndex(e,t)})}}function w(e,t,n,o){var i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),t=(i.setAttributeNS(null,\"width\",t),i.setAttributeNS(null,\"height\",t),i.setAttributeNS(null,\"viewBox\",n),document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"));return t.setAttributeNS(null,\"class\",\"\".concat(ce,\"svg-path\")),t.setAttributeNS(null,\"d\",o),i.appendChild(t),e.appendChild(i),i}function S(e,t){var n=document.createElement(\"div\");return n.className=\"\".concat(ce,\"toolbar-button \").concat(le),n.title=t,e.appendChild(n),n}function ye(e){var t,n,o,i,s,r,c,a,l,u,d=e.props.sources,p=e.elements.container,f=document.createElement(\"div\");f.className=\"\".concat(ce,\"nav\"),p.appendChild(f),p=e,i=f,(u=document.createElement(\"div\")).className=\"\".concat(ce,\"toolbar\"),i.appendChild(u),i=p.componentsServices,s=p.data,r=p.fs,c=\"M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z\",(a=S(u)).title=\"Enter fullscreen\",l=w(a,\"20px\",\"0 0 18 18\",c),i.ofs=function(){s.ifs=!0,a.title=\"Exit fullscreen\",l.setAttributeNS(null,\"width\",\"24px\"),l.setAttributeNS(null,\"height\",\"24px\"),l.setAttributeNS(null,\"viewBox\",\"0 0 950 1024\"),l.firstChild.setAttributeNS(null,\"d\",\"M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z\")},i.xfs=function(){s.ifs=!1,a.title=\"Enter fullscreen\",l.setAttributeNS(null,\"width\",\"20px\"),l.setAttributeNS(null,\"height\",\"20px\"),l.setAttributeNS(null,\"viewBox\",\"0 0 18 18\"),l.firstChild.setAttributeNS(null,\"d\",c)},a.onclick=r.t,i=p,(r=S(u,\"Close\")).onclick=i.core.lightboxCloser.closeLightbox,w(r,\"20px\",\"0 0 24 24\",\"M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z\"),1innerHeight&&(document.body.style.marginRight=U.scrollbarWidth+\"px\")}function te(e){for(var t=0;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n \"+y.options.itemHandleOptions.customHandler.replace(/%([^%]+)%/g,function(e,t){return void 0!==n[t]?n[t]:\"\"})+\" \";var t=y.options.itemHandleOptions.customCssHandler,o=y.options.itemHandleOptions.customCssIconHandler,e=(y.options.itemHandleOptions.customItemLayout,\"
    \"+e+\"
    \")}return e}arguments[0]&&\"object\"==typeof arguments[0]&&(this.options=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t,arguments[0])),this.__getCanMove=function(e){return y.options.itemHandleOptions.enabled?y.options.itemHandleOptions.handleClass?e.classList.contains(y.options.itemHandleOptions.handleClass):e.classList.contains(\"item_handle\"):!!y.options.dragItems},this.init=function(){y.element=document.querySelector(y.options.element);var e=document.createElement(\"div\");e.classList.add(\"kanban-container\"),y.container=e,document.querySelector(y.options.element).dataset.hasOwnProperty(\"board\")?(url=document.querySelector(y.options.element).dataset.board,window.fetch(url,{method:\"GET\",headers:{\"Content-Type\":\"application/json\"}}).then(function(e){e.json().then(function(e){y.options.boards=e,y.addBoards(y.options.boards,!0)})}).catch(function(e){console.log(\"Error: \",e)})):y.addBoards(y.options.boards,!0),y.element.appendChild(y.container),window.innerWidth>y.options.responsive&&(y.drakeBoard=y.dragula([y.container],{moves:function(e,t,n,o){return!!y.options.dragBoards&&(n.classList.contains(\"kanban-board-header\")||n.classList.contains(\"kanban-title-board\"))},accepts:function(e,t,n,o){return t.classList.contains(\"kanban-container\")},revertOnSpill:!0,direction:\"horizontal\"}).on(\"drag\",function(e,t){e.classList.add(\"is-moving\"),y.options.dragBoard(e,t),\"function\"==typeof e.dragfn&&e.dragfn(e,t)}).on(\"dragend\",function(e){for(var t=1,n=0;ny.options.responsive?(100-2*e.length)/e.length:100-2*e.length):y.options.widthBoard;var n,o,i=y.options.itemAddOptions.enabled,r=y.options.itemAddOptions.content,a=y.options.itemAddOptions.class,c=y.options.itemAddOptions.footer;for(o in e){var d,s=e[o],l=(t||y.options.boards.push(s),y.options.responsivePercentage||(\"\"===y.container.style.width?y.container.style.width=parseInt(n)+2*parseInt(y.options.gutter)+\"px\":y.container.style.width=parseInt(y.container.style.width)+parseInt(n)+2*parseInt(y.options.gutter)+\"px\"),document.createElement(\"div\")),u=(l.dataset.id=s.id,l.dataset.order=y.container.childNodes.length+1,l.classList.add(\"kanban-board\"),y.options.responsivePercentage?l.style.width=n+\"%\":l.style.width=n,l.style.marginLeft=y.options.gutter,l.style.marginRight=y.options.gutter,document.createElement(\"header\")),f=\"\"!==s.class&&void 0!==s.class?s.class.split(\",\"):[],p=(u.classList.add(\"kanban-board-header\"),f.map(function(e){e=e.replace(/^[ ]+/g,\"\"),u.classList.add(e)}),u.innerHTML='
    '+s.title+\"
    \",document.createElement(\"main\"));for(d in p.classList.add(\"kanban-drag\"),(\"\"!==s.bodyClass&&void 0!==s.bodyClass?s.bodyClass.split(\",\"):[]).map(function(e){p.classList.add(e)}),y.boardContainer.push(p),s.item){var m=s.item[d],v=document.createElement(\"div\");v.classList.add(\"kanban-item\"),m.id&&(v.dataset.eid=m.id),m.class&&Array.isArray(m.class)&&m.class.forEach(function(e){v.classList.add(e)}),v.innerHTML=T(m),v.clickfn=m.click,v.contextfn=m.context,v.dragfn=m.drag,v.dragendfn=m.dragend,v.dropfn=m.drop,E(v,m),b(v),w(v),y.options.itemHandleOptions.enabled&&(v.style.cursor=\"default\"),p.appendChild(v)}var h,g,f=document.createElement(\"footer\");i&&(h=document.createElement(\"BUTTON\"),g=document.createTextNode(r||\"+\"),h.setAttribute(\"class\",a||\"kanban-title-button btn btn-default btn-xs\"),h.appendChild(g),(c?f:u).appendChild(h),function(e,t){e.addEventListener(\"click\",function(e){e.preventDefault(),y.options.buttonClick(this,t)})}(h,s.id)),l.appendChild(u),l.appendChild(p),l.appendChild(f),y.container.appendChild(l)}return y},this.findBoard=function(e){return y.element.querySelector('[data-id=\"'+e+'\"]')},this.getParentBoardID=function(e){return null===(e=\"string\"==typeof e?y.element.querySelector('[data-eid=\"'+e+'\"]'):e)?null:e.parentNode.parentNode.dataset.id},this.moveElement=function(e,t,n){if(e!==this.getParentBoardID(t))return this.removeElement(t),this.addElement(e,n)},this.replaceElement=function(e,t){var n=e;return(n=\"string\"==typeof n?y.element.querySelector('[data-eid=\"'+e+'\"]'):n).innerHTML=T(t),n.clickfn=t.click,n.contextfn=t.context,n.dragfn=t.drag,n.dragendfn=t.dragend,n.dropfn=t.drop,E(n,t),b(n),w(n),y},this.findElement=function(e){return y.element.querySelector('[data-eid=\"'+e+'\"]')},this.getBoardElements=function(e){return y.element.querySelector('[data-id=\"'+e+'\"] .kanban-drag').childNodes},this.removeElement=function(e){return null!==(e=\"string\"==typeof e?y.element.querySelector('[data-eid=\"'+e+'\"]'):e)&&(\"function\"==typeof e.remove?e.remove():e.parentNode.removeChild(e)),y},this.removeBoard=function(e){var t=null;null!==(t=\"string\"==typeof e?y.element.querySelector('[data-id=\"'+e+'\"]'):t)&&(\"function\"==typeof t.remove?t.remove():t.parentNode.removeChild(t));for(var n=0;ne.left+G(e)/2);return n(a>e.top+$(e)/2)}:function(){var e,t,n,o=i.children.length;for(e=0;er)return t;if(!c&&n.top+n.height/2>a)return t}return null})();function n(e){return e?Z(t):t}}}}.call(this)}.call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./classes\":8,\"contra/emitter\":4,crossvent:5}],10:[function(e,t,n){var o,i,t=t.exports={};function r(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}try{o=\"function\"==typeof setTimeout?setTimeout:r}catch(e){o=r}try{i=\"function\"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}function c(t){if(o===setTimeout)return setTimeout(t,0);if((o===r||!o)&&setTimeout)return(o=setTimeout)(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}var d,s=[],l=!1,u=-1;function f(){l&&d&&(l=!1,d.length?s=d.concat(s):u=-1,s.length)&&p()}function p(){if(!l){for(var e=c(f),t=(l=!0,s.length);t;){for(d=s,s=[];++u=e[r];)r+=1;return r}function r(t,e,r){var n,i,o;return r>=t.slice(-1)[0]?100:(o=l(r,t),n=t[o-1],t=t[o],i=e[o-1],e=e[o],i+(o=r,a(r=[n,t],r[0]<0?o+Math.abs(r[0]):o-r[0],0)/s(i,e)))}function o(t,e,r,n){var i,o,s;return 100===n?n:(o=t[(i=l(n,t))-1],s=t[i],r?(s-o)/2this.xPct[n+1];)n++;else t===this.xPct[this.xPct.length-1]&&(n=this.xPct.length-2);r||t!==this.xPct[n+1]||n++;for(var i,o=1,s=(e=null===e?[]:e)[n],a=0,l=0,u=0,c=r?(t-this.xPct[n])/(this.xPct[n+1]-this.xPct[n]):(this.xPct[n+1]-t)/(this.xPct[n+1]-this.xPct[n]);0= 2) required for mode 'count'.\");for(var e=t.values-1,r=100/e,n=[];e--;)n[e]=e*r;return n.push(100),q(n,t.stepped)}(d),m={},t=S.xVal[0],e=S.xVal[S.xVal.length-1],g=!1,b=!1,v=0;return(h=h.slice().sort(function(t,e){return t-e}).filter(function(t){return!this[t]&&(this[t]=!0)},{}))[0]!==t&&(h.unshift(t),g=!0),h[h.length-1]!==e&&(h.push(e),b=!0),h.forEach(function(t,e){var r,n,i,o,s,a,l,u,c=h[e+1],p=d.mode===ut.PipsMode.Steps,f=(f=p?S.xNumSteps[e]:f)||c-t;for(void 0===c&&(c=t),f=Math.max(f,1e-7),r=t;r<=c;r=Number((r+f).toFixed(7))){for(a=(s=(i=S.toStepping(r))-v)/(d.density||1),u=s/(l=Math.round(a)),n=1;n<=l;n+=1)m[(o=v+n*u).toFixed(5)]=[S.fromStepping(o),0];s=-1ut.PipsType.NoValue)&&((n=y(a,!1)).className=p(t,f.cssClasses.value),n.setAttribute(\"data-value\",String(r)),n.style[f.style]=e+\"%\",n.innerHTML=String(s.to(r)))}),a}function P(){n&&(ct(n),n=null)}function C(t){P();var e=X(t),r=t.filter,t=t.format||{to:function(t){return String(Math.round(t))}};return n=c.appendChild(Y(e,r,t))}function I(){var t=i.getBoundingClientRect(),e=\"offset\"+[\"Width\",\"Height\"][f.ort];return 0===f.ort?t.width||i[e]:t.height||i[e]}function N(n,i,o,s){function e(t){var e,r;return!!(t=function(e,t,r){var n=0===e.type.indexOf(\"touch\"),i=0===e.type.indexOf(\"mouse\"),o=0===e.type.indexOf(\"pointer\"),s=0,a=0;0===e.type.indexOf(\"MSPointer\")&&(o=!0);if(\"mousedown\"===e.type&&!e.buttons&&!e.touches)return!1;if(n){n=function(t){t=t.target;return t===r||r.contains(t)||e.composed&&e.composedPath().shift()===r};if(\"touchstart\"===e.type){var l=Array.prototype.filter.call(e.touches,n);if(1r.stepAfter.startValue&&(n=r.stepAfter.startValue-t),i=t>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&t-r.stepBefore.highestStep,100===e?n=null:0===e&&(i=null);t=S.countStepDecimals();return null!==n&&!1!==n&&(n=Number(n.toFixed(t))),[i=null!==i&&!1!==i?Number(i.toFixed(t)):i,n]}gt(t=c,f.cssClasses.target),0===f.dir?gt(t,f.cssClasses.ltr):gt(t,f.cssClasses.rtl),0===f.ort?gt(t,f.cssClasses.horizontal):gt(t,f.cssClasses.vertical),gt(t,\"rtl\"===getComputedStyle(t).direction?f.cssClasses.textDirectionRtl:f.cssClasses.textDirectionLtr),i=y(t,f.cssClasses.base);var O,st=f.connect,at=i,lt=y(at,f.cssClasses.connects);l=[],(a=[]).push(F(lt,st[0]));for(var L=0;L',airplay:'',\"alert-circle\":'',\"alert-octagon\":'',\"alert-triangle\":'',\"align-center\":'',\"align-justify\":'',\"align-left\":'',\"align-right\":'',anchor:'',aperture:'',archive:'',\"arrow-down-circle\":'',\"arrow-down-left\":'',\"arrow-down-right\":'',\"arrow-down\":'',\"arrow-left-circle\":'',\"arrow-left\":'',\"arrow-right-circle\":'',\"arrow-right\":'',\"arrow-up-circle\":'',\"arrow-up-left\":'',\"arrow-up-right\":'',\"arrow-up\":'',\"at-sign\":'',award:'',\"bar-chart-2\":'',\"bar-chart\":'',\"battery-charging\":'',battery:'',\"bell-off\":'',bell:'',bluetooth:'',bold:'',\"book-open\":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',\"camera-off\":'',camera:'',cast:'',\"check-circle\":'',\"check-square\":'',check:'',\"chevron-down\":'',\"chevron-left\":'',\"chevron-right\":'',\"chevron-up\":'',\"chevrons-down\":'',\"chevrons-left\":'',\"chevrons-right\":'',\"chevrons-up\":'',chrome:'',circle:'',clipboard:'',clock:'',\"cloud-drizzle\":'',\"cloud-lightning\":'',\"cloud-off\":'',\"cloud-rain\":'',\"cloud-snow\":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',\"corner-down-left\":'',\"corner-down-right\":'',\"corner-left-down\":'',\"corner-left-up\":'',\"corner-right-down\":'',\"corner-right-up\":'',\"corner-up-left\":'',\"corner-up-right\":'',cpu:'',\"credit-card\":'',crop:'',crosshair:'',database:'',delete:'',disc:'',\"divide-circle\":'',\"divide-square\":'',divide:'',\"dollar-sign\":'',\"download-cloud\":'',download:'',dribbble:'',droplet:'',\"edit-2\":'',\"edit-3\":'',edit:'',\"external-link\":'',\"eye-off\":'',eye:'',facebook:'',\"fast-forward\":'',feather:'',figma:'',\"file-minus\":'',\"file-plus\":'',\"file-text\":'',file:'',film:'',filter:'',flag:'',\"folder-minus\":'',\"folder-plus\":'',folder:'',framer:'',frown:'',gift:'',\"git-branch\":'',\"git-commit\":'',\"git-merge\":'',\"git-pull-request\":'',github:'',gitlab:'',globe:'',grid:'',\"hard-drive\":'',hash:'',headphones:'',heart:'',\"help-circle\":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',\"life-buoy\":'',\"link-2\":'',link:'',linkedin:'',list:'',loader:'',lock:'',\"log-in\":'',\"log-out\":'',mail:'',\"map-pin\":'',map:'',\"maximize-2\":'',maximize:'',meh:'',menu:'',\"message-circle\":'',\"message-square\":'',\"mic-off\":'',mic:'',\"minimize-2\":'',minimize:'',\"minus-circle\":'',\"minus-square\":'',minus:'',monitor:'',moon:'',\"more-horizontal\":'',\"more-vertical\":'',\"mouse-pointer\":'',move:'',music:'',\"navigation-2\":'',navigation:'',octagon:'',package:'',paperclip:'',\"pause-circle\":'',pause:'',\"pen-tool\":'',percent:'',\"phone-call\":'',\"phone-forwarded\":'',\"phone-incoming\":'',\"phone-missed\":'',\"phone-off\":'',\"phone-outgoing\":'',phone:'',\"pie-chart\":'',\"play-circle\":'',play:'',\"plus-circle\":'',\"plus-square\":'',plus:'',pocket:'',power:'',printer:'',radio:'',\"refresh-ccw\":'',\"refresh-cw\":'',repeat:'',rewind:'',\"rotate-ccw\":'',\"rotate-cw\":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',\"share-2\":'',share:'',\"shield-off\":'',shield:'',\"shopping-bag\":'',\"shopping-cart\":'',shuffle:'',sidebar:'',\"skip-back\":'',\"skip-forward\":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',\"stop-circle\":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',\"thumbs-down\":'',\"thumbs-up\":'',\"toggle-left\":'',\"toggle-right\":'',tool:'',\"trash-2\":'',trash:'',trello:'',\"trending-down\":'',\"trending-up\":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',\"upload-cloud\":'',upload:'',\"user-check\":'',\"user-minus\":'',\"user-plus\":'',\"user-x\":'',user:'',users:'',\"video-off\":'',video:'',voicemail:'',\"volume-1\":'',\"volume-2\":'',\"volume-x\":'',volume:'',watch:'',\"wifi-off\":'',wifi:'',wind:'',\"x-circle\":'',\"x-octagon\":'',\"x-square\":'',x:'',youtube:'',\"zap-off\":'',zap:'',\"zoom-in\":'',\"zoom-out\":''}},\"./node_modules/classnames/dedupe.js\":function(n,o,e){var t;!function(){\"use strict\";function e(){for(var e=arguments.length,n=Array(e),o=0;odocument.F=Object<\\/script>\"),e.close(),d=e.F;n--;)delete d[y][r[n]];return d()};e.exports=Object.create||function(e,n){var o;return null!==e?(t[y]=i(e),o=new t,t[y]=null,o[p]=e):o=d(),void 0===n?o:l(o,n)},a[p]=!0},\"./node_modules/core-js/internals/object-define-properties.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/descriptors.js\"),r=o(\"./node_modules/core-js/internals/object-define-property.js\"),a=o(\"./node_modules/core-js/internals/an-object.js\"),s=o(\"./node_modules/core-js/internals/object-keys.js\");e.exports=t?Object.defineProperties:function(e,n){a(e);for(var o,t=s(n),i=t.length,l=0;li;)!r(t,o=n[i++])||~c(l,o)||l.push(o);return l}},\"./node_modules/core-js/internals/object-keys.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/object-keys-internal.js\"),i=o(\"./node_modules/core-js/internals/enum-bug-keys.js\");e.exports=Object.keys||function(e){return t(e,i)}},\"./node_modules/core-js/internals/object-property-is-enumerable.js\":function(e,n,o){\"use strict\";var t={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,l=i&&!t.call({1:2},1);n.f=l?function(e){e=i(this,e);return!!e&&e.enumerable}:t},\"./node_modules/core-js/internals/object-set-prototype-of.js\":function(e,n,o){var i=o(\"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js\");e.exports=Object.setPrototypeOf||(\"__proto__\"in{}?function(){var o,t=!1,e={};try{(o=Object.getOwnPropertyDescriptor(Object.prototype,\"__proto__\").set).call(e,[]),t=e instanceof Array}catch(e){}return function(e,n){return i(e,n),t?o.call(e,n):e.__proto__=n,e}}():void 0)},\"./node_modules/core-js/internals/own-keys.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/global.js\"),i=o(\"./node_modules/core-js/internals/object-get-own-property-names.js\"),l=o(\"./node_modules/core-js/internals/object-get-own-property-symbols.js\"),r=o(\"./node_modules/core-js/internals/an-object.js\"),o=t.Reflect;e.exports=o&&o.ownKeys||function(e){var n=i.f(r(e)),o=l.f;return o?n.concat(o(e)):n}},\"./node_modules/core-js/internals/path.js\":function(e,n,o){e.exports=o(\"./node_modules/core-js/internals/global.js\")},\"./node_modules/core-js/internals/redefine.js\":function(e,n,o){var r=o(\"./node_modules/core-js/internals/global.js\"),t=o(\"./node_modules/core-js/internals/shared.js\"),a=o(\"./node_modules/core-js/internals/hide.js\"),s=o(\"./node_modules/core-js/internals/has.js\"),c=o(\"./node_modules/core-js/internals/set-global.js\"),i=o(\"./node_modules/core-js/internals/function-to-string.js\"),o=o(\"./node_modules/core-js/internals/internal-state.js\"),l=o.get,p=o.enforce,y=String(i).split(\"toString\");t(\"inspectSource\",function(e){return i.call(e)}),(e.exports=function(e,n,o,t){var i=!!t&&!!t.unsafe,l=!!t&&!!t.enumerable,t=!!t&&!!t.noTargetGet;\"function\"==typeof o&&(\"string\"!=typeof n||s(o,\"name\")||a(o,\"name\",n),p(o).source=y.join(\"string\"==typeof n?n:\"\")),e===r?l?e[n]=o:c(n,o):(i?!t&&e[n]&&(l=!0):delete e[n],l?e[n]=o:a(e,n,o))})(Function.prototype,\"toString\",function(){return\"function\"==typeof this&&l(this).source||i.call(this)})},\"./node_modules/core-js/internals/require-object-coercible.js\":function(e,n){e.exports=function(e){if(null==e)throw TypeError(\"Can't call method on \"+e);return e}},\"./node_modules/core-js/internals/set-global.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/global.js\"),i=o(\"./node_modules/core-js/internals/hide.js\");e.exports=function(n,o){try{i(t,n,o)}catch(e){t[n]=o}return o}},\"./node_modules/core-js/internals/set-to-string-tag.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/object-define-property.js\").f,i=o(\"./node_modules/core-js/internals/has.js\"),l=o(\"./node_modules/core-js/internals/well-known-symbol.js\")(\"toStringTag\");e.exports=function(e,n,o){e&&!i(e=o?e:e.prototype,l)&&t(e,l,{configurable:!0,value:n})}},\"./node_modules/core-js/internals/shared-key.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/shared.js\"),i=o(\"./node_modules/core-js/internals/uid.js\"),l=t(\"keys\");e.exports=function(e){return l[e]||(l[e]=i(e))}},\"./node_modules/core-js/internals/shared.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/global.js\"),i=o(\"./node_modules/core-js/internals/set-global.js\"),o=o(\"./node_modules/core-js/internals/is-pure.js\"),l=\"__core-js_shared__\",r=t[l]||i(l,{});(e.exports=function(e,n){return r[e]||(r[e]=void 0!==n?n:{})})(\"versions\",[]).push({version:\"3.1.3\",mode:o?\"pure\":\"global\",copyright:\"© 2019 Denis Pushkarev (zloirock.ru)\"})},\"./node_modules/core-js/internals/string-at.js\":function(e,n,o){var l=o(\"./node_modules/core-js/internals/to-integer.js\"),r=o(\"./node_modules/core-js/internals/require-object-coercible.js\");e.exports=function(e,n,o){var t,e=String(r(e)),n=l(n),i=e.length;return n<0||i<=n?o?\"\":void 0:(t=e.charCodeAt(n))<55296||56319=n.length?{value:void 0,done:!0}:(n=t(n,o,!0),e.index+=n.length,{value:n,done:!1})})},\"./node_modules/webpack/buildin/global.js\":function(e,n){var o=function(){return this}();try{o=o||Function(\"return this\")()||(0,eval)(\"this\")}catch(e){\"object\"==typeof window&&(o=window)}e.exports=o},\"./src/default-attrs.json\":function(e){e.exports={xmlns:\"http://www.w3.org/2000/svg\",width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",\"stroke-width\":2,\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}},\"./src/icon.js\":function(e,n,o){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var l=Object.assign||function(e){for(var n=1;n\"+this.contents+\"\"}},{key:\"toString\",value:function(){return this.contents}}]);o=c;function c(e,n){var o=2',this.mB=this.moveBar.bind(this),this.wrapper=o.createElement(\"div\"),this.wrapper.setAttribute(\"class\",\"ss-wrapper\"),this.el=o.createElement(\"div\"),this.el.setAttribute(\"class\",\"ss-content\"),\"rtl\"===this.direction&&this.el.classList.add(\"rtl\"),this.wrapper.appendChild(this.el);this.target.firstChild;)this.el.appendChild(this.target.firstChild);function e(t){var e=t.pageY-n;n=t.pageY,h(function(){r.el.scrollTop+=e/r.scrollRatio})}function s(){i.classList.remove(\"ss-grabbed\"),o.body.classList.remove(\"ss-grabbed\"),o.removeEventListener(\"mousemove\",e),o.removeEventListener(\"mouseup\",s)}this.target.appendChild(this.wrapper),this.target.insertAdjacentHTML(\"beforeend\",this.bar),this.bar=this.target.lastChild,i=this.bar,r=this,i.addEventListener(\"mousedown\",function(t){return n=t.pageY,i.classList.add(\"ss-grabbed\"),o.body.classList.add(\"ss-grabbed\"),o.addEventListener(\"mousemove\",e),o.addEventListener(\"mouseup\",s),!1}),this.moveBar(),l.addEventListener(\"resize\",this.mB),this.el.addEventListener(\"scroll\",this.mB),this.el.addEventListener(\"mouseenter\",this.mB),this.target.classList.add(\"ss-container\");var i,r,n,a=l.getComputedStyle(t);\"0px\"===a.height&&\"0px\"!==a[\"max-height\"]&&(t.style.height=a[\"max-height\"]),this.unBind=function(){l.removeEventListener(\"resize\",this.mB),this.el.removeEventListener(\"scroll\",this.mB),this.el.removeEventListener(\"mouseenter\",this.mB),this.target.classList.remove(\"ss-container\"),this.target.insertBefore(this.content,this.wrapper),this.target.removeChild(this.wrapper),this.target.removeChild(this.bar),this.bar=null}}function e(){for(var t=o.querySelectorAll(\"*[ss-container]\"),e=0;e{let t=0;return()=>t++})();function P(t){return null==t}function O(t){return!(!Array.isArray||!Array.isArray(t))||\"[object\"===(t=Object.prototype.toString.call(t)).slice(0,7)&&\"Array]\"===t.slice(-6)}function A(t){return null!==t&&\"[object Object]\"===Object.prototype.toString.call(t)}function p(t){return(\"number\"==typeof t||t instanceof Number)&&isFinite(+t)}function u(t,e){return p(t)?t:e}function T(t,e){return void 0===t?e:t}const V=(t,e)=>\"string\"==typeof t&&t.endsWith(\"%\")?parseFloat(t)/100:+t/e,B=(t,e)=>\"string\"==typeof t&&t.endsWith(\"%\")?parseFloat(t)/100*e:+t;function d(t,e,i){if(t&&\"function\"==typeof t.call)return t.apply(i,e)}function k(t,e,i,s){let a,r,n;if(O(t))if(r=t.length,s)for(a=r-1;0<=a;a--)e.call(i,t[a],a);else for(a=0;at,x:t=>t.x,y:t=>t.y};function q(t){var e=t.split(\".\"),i=[];let s=\"\";for(const t of e)s+=t,s=s.endsWith(\"\\\\\")?s.slice(0,-1)+\".\":(i.push(s),\"\");return i}function f(t,e){return(X[e]||(X[e]=function(){const i=q(e);return t=>{for(const e of i){if(\"\"===e)break;t=t&&t[e]}return t}}()))(t)}function K(t){return t.charAt(0).toUpperCase()+t.slice(1)}const g=t=>void 0!==t,m=t=>\"function\"==typeof t,G=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function Z(t){return\"mouseup\"===t.type||\"click\"===t.type||\"contextmenu\"===t.type}const S=Math.PI,v=2*S,J=v+S,Q=Number.POSITIVE_INFINITY,tt=S/180,D=S/2,et=S/4,it=2*S/3,o=Math.log10,_=Math.sign;function st(t,e,i){return Math.abs(t-e)t-e).pop(),e}function nt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function ot(t,e){var i=Math.round(t);return i-e<=t&&t<=i+e}function lt(t,e,i){let s,a,r;for(s=0,a=t.length;s=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function mt(e,i,t){t=t||(t=>e[t]>1)?r=s:a=s;return{lo:r,hi:a}}const b=(i,s,a,t)=>mt(i,a,t?t=>{var e=i[t][s];return ei[t][s]mt(e,s,t=>e[t][i]>=s);function xt(t,e,i){let s=0,a=t.length;for(;ss&&t[a-1]>i;)a--;return 0{const i=\"_onData\"+K(t),s=a[t];Object.defineProperty(a,t,{configurable:!0,enumerable:!1,value(...e){var t=s.apply(this,e);return a._chartjs.listeners.forEach(t=>{\"function\"==typeof t[i]&&t[i](...e)}),t}})}))}function yt(e,t){var i=e._chartjs;i&&(-1!==(t=(i=i.listeners).indexOf(t))&&i.splice(t,1),0{delete e[t]}),delete e._chartjs))}function Mt(t){var e=new Set;let i,s;for(i=0,s=t.length;i{a=!1,e.apply(i,s)}))}}function St(e,i){let s;return function(...t){return i?(clearTimeout(s),s=setTimeout(e,i,t)):e.apply(this,t),i}}const Pt=t=>\"start\"===t?\"left\":\"end\"===t?\"right\":\"center\",E=(t,e,i)=>\"start\"===t?e:\"end\"===t?i:(e+i)/2,Dt=(t,e,i,s)=>t===(s?\"left\":\"right\")?i:\"center\"===t?(e+i)/2:e;function Ct(t,e,i){var s,a,r,n,o,l,h=e.length;let c=0,d=h;return t._sorted&&({iScale:t,_parsed:s}=t,a=t.axis,{min:r,max:n,minDefined:o,maxDefined:l}=t.getUserBounds(),o&&(c=C(Math.min(b(s,t.axis,r).lo,i?h:b(e,a,t.getPixelForValue(r)).lo),0,h-1)),d=l?C(Math.max(b(s,t.axis,n,!0).hi+1,i?0:b(e,a,t.getPixelForValue(n),!0).hi+1),c,h)-c:h-c),{start:c,count:d}}function Ot(t){var{xScale:e,yScale:i,_scaleRanges:s}=t,a={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};return s?(e=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max,Object.assign(s,a),e):(t._scaleRanges=a,!0)}var r=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,i,s,t){const a=i.listeners[t],r=i.duration;a.forEach(t=>t({chart:e,initial:i.initial,numSteps:r,currentStep:Math.min(s-i.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=wt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let o=0;this._charts.forEach((s,a)=>{if(s.running&&s.items.length){var r=s.items;let t,e=r.length-1,i=!1;for(;0<=e;--e)(t=r[e])._active?(t._total>s.duration&&(s.duration=t._total),t.tick(n),i=!0):(r[e]=r[r.length-1],r.pop());i&&(a.draw(),this._notify(a,s,n,\"progress\")),r.length||(s.running=!1,this._notify(a,s,n,\"complete\"),s.initial=!1),o+=r.length}}),this._lastDate=n,0===o&&(this._running=!1)}_getAnims(t){var e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return 0Math.max(t,e._duration),0),this._refresh())}running(t){return!!this._running&&!!((t=this._charts.get(t))&&t.running&&t.items.length)}stop(e){var i=this._charts.get(e);if(i&&i.items.length){var s=i.items;let t=s.length-1;for(;0<=t;--t)s[t].cancel();i.items=[],this._notify(e,i,Date.now(),\"complete\")}}remove(t){return this._charts.delete(t)}};function At(t){return t+.5|0}const Tt=(t,e,i)=>Math.max(Math.min(t,i),e);function Lt(t){return Tt(At(2.55*t),0,255)}function Et(t){return Tt(At(255*t),0,255)}function n(t){return Tt(At(t/2.55)/100,0,1)}function Rt(t){return Tt(At(100*t),0,100)}const l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},It=[...\"0123456789ABCDEF\"],zt=t=>It[15&t],Ft=t=>It[(240&t)>>4]+It[15&t],Vt=t=>(240&t)>>4==(15&t);const Bt=/^(hsla?|hwb|hsv)\\(\\s*([-+.e\\d]+)(?:deg)?[\\s,]+([-+.e\\d]+)%[\\s,]+([-+.e\\d]+)%(?:[\\s,]+([-+.e\\d]+)(%)?)?\\s*\\)$/;function Nt(i,t,s){const a=t*Math.min(s,1-s),e=(t,e=(t+i/30)%12)=>s-a*Math.max(Math.min(e-3,9-e,1),-1);return[e(0),e(8),e(4)]}function Wt(i,s,a){var t=(t,e=(t+i/60)%6)=>a-a*s*Math.max(Math.min(e,4-e,1),0);return[t(5),t(3),t(1)]}function Ht(t,e,i){var s=Nt(t,1,.5);let a;for(1t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Jt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Qt(e,i,s){if(e){let t=jt(e);t[i]=Math.max(0,Math.min(t[i]+t[i]*s,0===i?360:1)),t=$t(t),e.r=t[0],e.g=t[1],e.b=t[2]}}function te(t,e){return t&&Object.assign(e||{},t)}function ee(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?3<=t.length&&(e={r:t[0],g:t[1],b:t[2],a:255},3>16&255,r>>8&255,255&r]}return t}()).transparent=[0,0,0,0]),(i=Kt[i.toLowerCase()])&&{r:i[0],g:i[1],b:i[2],a:4===i.length?i[3]:255})||ie(t)),this._rgb=a,this._valid=!!a}get valid(){return this._valid}get rgb(){var t=te(this._rgb);return t&&(t.a=n(t.a)),t}set rgb(t){this._rgb=ee(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${n(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid&&(t=this._rgb,e=t,e=Vt(e.r)&&Vt(e.g)&&Vt(e.b)&&Vt(e.a)?zt:Ft,t)?\"#\"+e(t.r)+e(t.g)+e(t.b)+((t=t.a)<255?e(t):\"\"):void 0;var t,e}hslString(){if(this._valid){var t,e,i,s=this._rgb;if(s)return t=(i=jt(s))[0],e=Rt(i[1]),i=Rt(i[2]),s.a<255?`hsla(${t}, ${e}%, ${i}%, ${n(s.a)})`:`hsl(${t}, ${e}%, ${i}%)`}}mix(t,e){var i,s,a;return t&&(i=this.rgb,t=t.rgb,a=i.a-t.a,i.r=255&(s=(1+((s=2*(e=void 0===e?.5:e)-1)*a==-1?s:(s+a)/(1+s*a)))/2)*i.r+(a=1-s)*t.r+.5,i.g=255&s*i.g+a*t.g+.5,i.b=255&s*i.b+a*t.b+.5,i.a=e*i.a+(1-e)*t.a,this.rgb=i),this}interpolate(t,e){return t&&(this._rgb=(i=this._rgb,t=t._rgb,e=e,s=Jt(n(i.r)),a=Jt(n(i.g)),r=Jt(n(i.b)),{r:Et(Zt(s+e*(Jt(n(t.r))-s))),g:Et(Zt(a+e*(Jt(n(t.g))-a))),b:Et(Zt(r+e*(Jt(n(t.b))-r))),a:i.a+e*(t.a-i.a)})),this;var i,s,a,r}clone(){return new se(this.rgb)}alpha(t){return this._rgb.a=Et(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){var t=this._rgb,e=At(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){var t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Qt(this._rgb,2,t),this}darken(t){return Qt(this._rgb,2,-t),this}saturate(t){return Qt(this._rgb,1,t),this}desaturate(t){return Qt(this._rgb,1,-t),this}rotate(t){return e=this._rgb,t=t,(i=jt(e))[0]=Ut(i[0]+t),i=$t(i),e.r=i[0],e.g=i[1],e.b=i[2],this;var e,i}}function ae(t){return!(!t||\"object\"!=typeof t||\"[object CanvasPattern]\"!==(t=t.toString())&&\"[object CanvasGradient]\"!==t)}function re(t){return ae(t)?t:new se(t)}function ne(t){return ae(t)?t:new se(t).saturate(.5).darken(.1).hexString()}const oe=[\"x\",\"y\",\"borderWidth\",\"radius\",\"tension\"],le=[\"color\",\"borderColor\",\"backgroundColor\"],he=new Map;function ce(t,e,a){return function(t,e){e=a||{};var i=t+JSON.stringify(e);let s=he.get(i);return s||(s=new Intl.NumberFormat(t,e),he.set(i,s)),s}(e).format(t)}const de={values:t=>O(t)?t:\"\"+t,numeric(t,e,i){if(0===t)return\"0\";var s=this.chart.options.locale;let a,r=t;if(1.8*i.length?de.numeric.call(this,t,e,i):\"\")}};var ue={formatters:de};const ge=Object.create(null),fe=Object.create(null);function pe(i,t){if(t){var s=t.split(\".\");for(let t=0,e=s.length;tt.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[\"mousemove\",\"mouseout\",\"click\",\"touchstart\",\"touchmove\"],this.font={family:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",size:12,style:\"normal\",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>ne(e.backgroundColor),this.hoverBorderColor=(t,e)=>ne(e.borderColor),this.hoverColor=(t,e)=>ne(e.color),this.indexAxis=\"x\",this.interaction={mode:\"nearest\",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return me(this,t,e)}get(t){return pe(this,t)}describe(t,e){return me(fe,t,e)}override(t,e){return me(ge,t,e)}route(t,e,i,s){const a=pe(this,t),r=pe(this,i),n=\"_\"+e;Object.defineProperties(a,{[n]:{value:a[e],writable:!0},[e]:{enumerable:!0,get(){var t=this[n],e=r[s];return A(t)?Object.assign({},e,t):T(t,e)},set(t){this[n]=t}}})}apply(t){t.forEach(t=>t(this))}}({_scriptable:t=>!t.startsWith(\"on\"),_indexable:t=>\"events\"!==t,hover:{_fallback:\"interaction\"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set(\"animation\",{delay:void 0,duration:1e3,easing:\"easeOutQuart\",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe(\"animation\",{_fallback:!1,_indexable:!1,_scriptable:t=>\"onProgress\"!==t&&\"onComplete\"!==t&&\"fn\"!==t}),t.set(\"animations\",{colors:{type:\"color\",properties:le},numbers:{type:\"number\",properties:oe}}),t.describe(\"animations\",{_fallback:\"animation\"}),t.set(\"transitions\",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:\"transparent\"},visible:{type:\"boolean\",duration:0}}},hide:{animations:{colors:{to:\"transparent\"},visible:{type:\"boolean\",easing:\"linear\",fn:t=>0|t}}}})},function(t){t.set(\"layout\",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set(\"scale\",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:\"ticks\",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:\"\",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:\"\",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ue.formatters.values,minor:{},major:{},align:\"center\",crossAlign:\"near\",showLabelBackdrop:!1,backdropColor:\"rgba(255, 255, 255, 0.75)\",backdropPadding:2}}),t.route(\"scale.ticks\",\"color\",\"\",\"color\"),t.route(\"scale.grid\",\"color\",\"\",\"borderColor\"),t.route(\"scale.border\",\"color\",\"\",\"borderColor\"),t.route(\"scale.title\",\"color\",\"\",\"color\"),t.describe(\"scale\",{_fallback:!1,_scriptable:t=>!t.startsWith(\"before\")&&!t.startsWith(\"after\")&&\"callback\"!==t&&\"parser\"!==t,_indexable:t=>\"borderDash\"!==t&&\"tickBorderDash\"!==t&&\"dash\"!==t}),t.describe(\"scales\",{_fallback:\"scale\"}),t.describe(\"scale.ticks\",{_scriptable:t=>\"backdropPadding\"!==t&&\"callback\"!==t,_indexable:t=>\"backdropPadding\"!==t})}]);function be(){return\"undefined\"!=typeof window&&\"undefined\"!=typeof document}function xe(t){let e=t.parentNode;return e=e&&\"[object ShadowRoot]\"===e.toString()?e.host:e}function ve(t,e,i){let s;return\"string\"==typeof t?(s=parseInt(t,10),-1!==t.indexOf(\"%\")&&(s=s/100*e.parentNode[i])):s=t,s}const _e=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function ye(t,e){return _e(t).getPropertyValue(e)}const Me=[\"top\",\"right\",\"bottom\",\"left\"];function we(e,i,s){var a={};s=s?\"-\"+s:\"\";for(let t=0;t<4;t++){var r=Me[t];a[r]=parseFloat(e[i+\"-\"+r+s])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}function ke(t,e){if(\"native\"in t)return t;var{canvas:i,currentDevicePixelRatio:s}=e,a=_e(i),r=\"border-box\"===a.boxSizing,n=we(a,\"padding\"),a=we(a,\"border\",\"width\"),{x:t,y:o,box:l}=function(t,e){var i=t.touches,i=i&&i.length?i[0]:t,{offsetX:s,offsetY:a}=i;let r,n,o=!1;if(t=t.target,!(0Math.round(10*t)/10;function Pe(t,e,i,s){var a=_e(t),r=we(a,\"margin\"),n=ve(a.maxWidth,t,\"clientWidth\")||Q,o=ve(a.maxHeight,t,\"clientHeight\")||Q,t=function(t,e,i){let s,a;if(void 0===e||void 0===i){var r=xe(t);if(r){const t=r.getBoundingClientRect(),n=_e(r),o=we(n,\"border\",\"width\"),l=we(n,\"padding\");e=t.width-l.width-o.width,i=t.height-l.height-o.height,s=ve(n.maxWidth,r,\"clientWidth\"),a=ve(n.maxHeight,r,\"clientHeight\")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||Q,maxHeight:a||Q}}(t,e,i);let{width:l,height:h}=t;if(\"content-box\"===a.boxSizing){const t=we(a,\"border\",\"width\"),e=we(a,\"padding\");l-=e.width+t.width,h-=e.height+t.height}return l=Math.max(0,l-r.width),h=Math.max(0,s?l/s:h-r.height),l=Se(Math.min(l,n,t.maxWidth)),h=Se(Math.min(h,o,t.maxHeight)),l&&!h&&(h=Se(l/2)),(void 0!==e||void 0!==i)&&s&&t.height&&h>t.height&&(h=t.height,l=Se(Math.floor(h*s))),{width:l,height:h}}function De(t,e,i){var e=e||1,s=Math.floor(t.height*e),a=Math.floor(t.width*e),r=(t.height=Math.floor(t.height),t.width=Math.floor(t.width),t.canvas);return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=t.height+\"px\",r.style.width=t.width+\"px\"),(t.currentDevicePixelRatio!==e||r.height!==s||r.width!==a)&&(t.currentDevicePixelRatio=e,r.height=s,r.width=a,t.ctx.setTransform(e,0,0,e,0,0),!0)}var Ce=function(){let t=!1;try{var e={get passive(){return!(t=!0)}};window.addEventListener(\"test\",null,e),window.removeEventListener(\"test\",null,e)}catch(t){}return t}();function Oe(t,e){t=ye(t,e),e=t&&t.match(/^(\\d+)(\\.\\d+)?px$/);return e?+e[1]:void 0}function Ae(t){return!t||P(t.size)||P(t.family)?null:(t.style?t.style+\" \":\"\")+(t.weight?t.weight+\" \":\"\")+t.size+\"px \"+t.family}function Te(t,e,i,s,a){let r=e[a];return r||(r=e[a]=t.measureText(a).width,i.push(a)),s=r>s?r:s}function Le(t,e,i,s){let a=(s=s||{}).data=s.data||{},r=s.garbageCollect=s.garbageCollect||[],n=(s.font!==e&&(a=s.data={},r=s.garbageCollect=[],s.font=e),t.save(),t.font=e,0);var o=i.length;let l,h,c,d,u;for(l=0;li.length){for(l=0;le.left-i&&t.xe.top-i&&t.yo[0]){g(i)||(i=ti(\"_fallback\",o));var t={[Symbol.toStringTag]:\"Object\",_cacheable:!0,_scopes:o,_rootScopes:e,_fallback:i,_getTarget:a,override:t=>Ye([t,...o],l,e,i)};return new Proxy(t,{deleteProperty:(t,e)=>(delete t[e],delete t._keys,delete o[0][e],!0),get:(r,n)=>Ke(r,n,()=>{var t,e=n,i=o,s=r;for(const a of l)if(t=ti(Xe(a,e),i),g(t))return qe(e,t)?Je(i,s,e,t):t}),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(o[0]),has:(t,e)=>ei(t).includes(e),ownKeys:t=>ei(t),set(t,e,i){var s=t._storage||(t._storage=a());return t[e]=s[e]=i,delete t._keys,!0}})}function $e(s,e,i,a){var t={_cacheable:!1,_proxy:s,_context:e,_subProxy:i,_stack:new Set,_descriptors:Ue(s,a),setContext:t=>$e(s,t,i,a),override:t=>$e(s.override(t),e,i,a)};return new Proxy(t,{deleteProperty:(t,e)=>(delete t[e],delete s[e],!0),get:(l,h,c)=>Ke(l,h,()=>{{var o=l,e=h,i=c,{_proxy:s,_context:a,_subProxy:r,_descriptors:n}=o;let t=s[e];return O(t=m(t)&&n.isScriptable(e)?function(t,e,i){var{_proxy:s,_context:a,_subProxy:r,_stack:n}=o;if(n.has(t))throw new Error(\"Recursion detected: \"+Array.from(n).join(\"->\")+\"->\"+t);return n.add(t),e=e(a,r||i),n.delete(t),e=qe(t,e)?Je(s._scopes,s,t,e):e}(e,t,i):t)&&t.length&&(t=function(t,e,i,s){var{_proxy:a,_context:r,_subProxy:n,_descriptors:o}=i;if(g(r.index)&&s(t))e=e[r.index%e.length];else if(A(e[0])){const i=e,s=a._scopes.filter(t=>t!==i);e=[];for(const A of i){const i=Je(s,a,t,A);e.push($e(i,r,n&&n[t],o))}}return e}(e,t,o,n.isIndexable)),t=qe(e,t)?$e(t,a,r&&r[e],n):t}}),getOwnPropertyDescriptor:(t,e)=>t._descriptors.allKeys?Reflect.has(s,e)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(s,e),getPrototypeOf:()=>Reflect.getPrototypeOf(s),has:(t,e)=>Reflect.has(s,e),ownKeys:()=>Reflect.ownKeys(s),set:(t,e,i)=>(s[e]=i,delete t[e],!0)})}function Ue(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:a=e.allKeys}=t;return{allKeys:a,scriptable:i,indexable:s,isScriptable:m(i)?i:()=>i,isIndexable:m(s)?s:()=>s}}const Xe=(t,e)=>t?t+K(e):e,qe=(t,e)=>A(e)&&\"adapters\"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ke(t,e,i){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:(i=i(),t[e]=i)}function Ge(t,e,i){return m(t)?t(e,i):t}function Ze(t,e,i,s,a){for(const o of e){r=i,n=o;const e=!0===r?n:\"string\"==typeof r?f(n,r):void 0;if(e){t.add(e);n=Ge(e._fallback,i,a);if(g(n)&&n!==i&&n!==s)return n}else if(!1===e&&g(s)&&i!==s)return null}var r,n;return!1}function Je(t,s,a,r){var e=s._rootScopes,i=Ge(s._fallback,a,r),t=[...t,...e],n=new Set,o=(n.add(r),Qe(n,t,a,i||a,r));return null!==o&&(!g(i)||i===a||null!==(o=Qe(n,t,i,o,r)))&&Ye(Array.from(n),[\"\"],e,i,()=>{return t=a,e=r,i=s._getTarget(),t in i||(i[t]={}),O(i=i[t])&&A(e)?e:i||{};var t,e,i})}function Qe(t,e,i,s,a){for(;i;)i=Ze(t,e,i,s,a);return i}function ti(t,e){for(const i of e)if(i){const e=i[t];if(g(e))return e}}function ei(t){let e=t._keys;return e=e||(t._keys=function(t){var e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith(\"_\")))e.add(t);return Array.from(e)}(t._scopes))}function ii(t,e,i,s){var a=t[\"iScale\"],{key:r=\"r\"}=this._parsing,n=new Array(s);let o,l,h,c;for(o=0,l=s;oe\"x\"===t?\"y\":\"x\";function ni(t,e,i,s){var t=t.skip?e:t,a=e,e=i.skip?e:i,i=ut(a,t),r=ut(e,a),n=i/(i+r),i=r/(i+r),r=s*(isNaN(n)?0:n),n=s*(isNaN(i)?0:i);return{previous:{x:a.x-r*(e.x-t.x),y:a.y-r*(e.y-t.y)},next:{x:a.x+n*(e.x-t.x),y:a.y+n*(e.y-t.y)}}}function oi(t,r=\"x\"){var e=ri(r),i=t.length,o=Array(i).fill(0),l=Array(i);let s,a,n,h=ai(t,0);for(s=0;s!t.skip)),\"monotone\"===e.cubicInterpolationMode)oi(n,t);else{let t=i?n[n.length-1]:n[0];for(s=0,a=n.length;s0===t||1===t,di=(t,e,i)=>-Math.pow(2,10*--t)*Math.sin((t-e)*v/i),ui=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*v/i)+1,gi={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-(--t*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>--t*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*D),easeOutSine:t=>Math.sin(t*D),easeInOutSine:t=>-.5*(Math.cos(S*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ci(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>1<=t?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1- --t*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ci(t)?t:di(t,.075,.3),easeOutElastic:t=>ci(t)?t:ui(t,.075,.3),easeInOutElastic(t){return ci(t)?t:t<.5?.5*di(2*t,.1125,.45):.5+.5*ui(2*t-1,.1125,.45)},easeInBack(t){return t*t*(2.70158*t-1.70158)},easeOutBack(t){return--t*t*(2.70158*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-gi.easeOutBounce(1-t),easeOutBounce(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*gi.easeInBounce(2*t):.5*gi.easeOutBounce(2*t-1)+.5};function fi(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function pi(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:(\"middle\"===s?i<.5?t:e:\"after\"===s?i<1?t:e:0T(e[t],e[i[t]]):t=>e[t]:()=>e;for(const e of a)t[e]=+r(e)||0;return t}function yi(t){return _i(t,{top:\"y\",right:\"x\",bottom:\"y\",left:\"x\"})}function Mi(t){return _i(t,[\"topLeft\",\"topRight\",\"bottomLeft\",\"bottomRight\"])}function I(t){t=yi(t);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function z(t,e){e=e||R.font;let i=T((t=t||{}).size,e.size),s=(\"string\"==typeof i&&(i=parseInt(i,10)),T(t.style,e.style));s&&!(\"\"+s).match(xi)&&(console.warn('Invalid font style specified: \"'+s+'\"'),s=void 0);t={family:T(t.family,e.family),lineHeight:vi(T(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:T(t.weight,e.weight),string:\"\"};return t.string=Ae(t),t}function wi(t,e,i,s){let a,r,n,o=!0;for(a=0,r=t.length;ai&&0===t?0:t+e;return{min:a(t,-Math.abs(e)),max:a(s,e)}}function Si(t,e){return Object.assign(Object.create(t),e)}function Pi(t,e,i){return t?(s=e,a=i,{x:t=>s+s+a-t,setWidth(t){a=t},textAlign:t=>\"center\"===t?t:\"right\"===t?\"left\":\"right\",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t};var s,a}function Di(t,e){var i,s;\"ltr\"!==e&&\"rtl\"!==e||(s=[(i=t.canvas.style).getPropertyValue(\"direction\"),i.getPropertyPriority(\"direction\")],i.setProperty(\"direction\",e,\"important\"),t.prevTextDirection=s)}function Ci(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty(\"direction\",e[0],e[1]))}function Oi(t){return\"angle\"===t?{between:ft,compare:gt,normalize:y}:{between:c,compare:(t,e)=>t-e,normalize:t=>t}}function Ai({start:t,end:e,count:i,loop:s,style:a}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:a}}function Ti(t,i,g){if(!g)return[t];const{property:s,start:a,end:r}=g,n=i.length,{compare:o,between:l,normalize:h}=Oi(s),{start:c,end:d,loop:u,style:f}=function(t,e){var{property:i,start:s,end:a}=g,{between:r,normalize:n}=Oi(i),o=e.length;let l,h,{start:c,end:d,loop:u}=t;if(u){for(c+=o,d+=o,l=0,h=o;ls&&t[a%e].skip;)a--;return a%=e,{start:s,end:a}}(r,o,i=!!t._loop),Ri(t,!0===n?[{start:s,end:a,loop:i}]:function(t,e,i,s){var a=t.length,r=[];let n,o=e,l=t[e];for(n=e+1;n<=i;++n){const i=t[n%a];i.skip||i.stop?l.skip||(s=!1,r.push({start:e%a,end:(n-1)%a,loop:s}),e=o=i.stop?n:null):(o=n,l.skip&&(e=n)),l=i}return null!==o&&r.push({start:e%a,end:o%a,loop:s}),r}(r,s,a{t[o](s[a],r)&&(n.push({element:t,datasetIndex:e,index:i}),l=l||t.inRange(s.x,s.y,r))}),e&&!l?[]:n}var Wi={evaluateInteractionItems:Fi,modes:{index(t,e,i,s){const a=ke(e,t),r=i.axis||\"x\",n=i.includeInvisible||!1,o=i.intersect?Vi(t,a,r,s,n):Bi(t,a,r,!1,s,n),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{var e=o[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,i,s){var e=ke(e,t),a=i.axis||\"xy\",r=i.includeInvisible||!1;let n=i.intersect?Vi(t,e,a,s,r):Bi(t,e,a,!1,s,r);if(0Vi(t,ke(e,t),i.axis||\"xy\",s,i.includeInvisible||!1),nearest(t,e,i,s){var e=ke(e,t),a=i.axis||\"xy\",r=i.includeInvisible||!1;return Bi(t,e,a,i.intersect,s,r)},x:(t,e,i,s)=>Ni(t,ke(e,t),\"x\",i.intersect,s),y:(t,e,i,s)=>Ni(t,ke(e,t),\"y\",i.intersect,s)}};const Hi=[\"left\",\"top\",\"right\",\"bottom\"];function ji(t,e){return t.filter(t=>t.pos===e)}function Yi(t,e){return t.filter(t=>-1===Hi.indexOf(t.pos)&&t.box.axis===e)}function $i(t,s){return t.sort((t,e)=>{var i=s?e:t,t=s?t:e;return i.weight===t.weight?i.index-t.index:i.weight-t.weight})}function Ui(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function Xi(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function qi(t,e,i,s){var a=[];let r,n,o,l,h,c;for(r=0,n=t.length,h=0;r{s[t]=Math.max(e[t],i[t])}),s}}(o.horizontal,e));const{same:n,other:d}=function(t,e,i,s){var{pos:a,box:r}=i,n=t.maxPadding;if(!A(a)){i.size&&(t[a]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[a]+=i.size}return r.getPadding&&Xi(n,r.getPadding()),s=Math.max(0,e.outerWidth-Ui(n,t,\"left\",\"right\")),a=Math.max(0,e.outerHeight-Ui(n,t,\"top\",\"bottom\")),r=s!==t.w,e=a!==t.h,t.w=s,t.h=a,i.horizontal?{same:r,other:e}:{same:e,other:r}}(e,i,o,s);h|=n&&a.length,c=c||d,l.fullSize||a.push(o)}return h&&qi(a,e,i,s)||c}function Ki(t,e,i,s,a){t.top=i,t.left=e,t.right=e+s,t.bottom=i+a,t.width=s,t.height=a}function Gi(t,e,i,s){var a=i.padding;let{x:r,y:n}=e;for(const o of t){const t=o.box,l=s[o.stack]||{count:1,placed:0,weight:1},h=o.stackWeight/l.weight||1;if(o.horizontal){const s=e.w*h,r=l.size||t.height;g(l.start)&&(n=l.start),t.fullSize?Ki(t,a.left,n,i.outerWidth-a.right-a.left,r):Ki(t,e.left+l.placed,n,s,r),l.start=n,l.placed+=s,n=t.bottom}else{const s=e.h*h,n=l.size||t.width;g(l.start)&&(r=l.start),t.fullSize?Ki(t,r,a.top,n,i.outerHeight-a.bottom-a.top):Ki(t,r,e.top+l.placed,n,s),l.start=r,l.placed+=s,r=t.right}}e.x=r,e.y=n}var a={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||\"top\",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(e,t,i,s){if(e){var a,r,n=I(e.options.layout.padding),o=Math.max(t-n.width,0),l=Math.max(i-n.height,0),h=(c=function(t){var e=[];let i,s,a,r,n,o;for(i=0,s=(t||[]).length;it.box.fullSize),!0),d=$i(ji(c,\"left\"),!0),u=$i(ji(c,\"right\")),f=$i(ji(c,\"top\"),!0),a=$i(ji(c,\"bottom\")),r=Yi(c,\"x\"),g=Yi(c,\"y\"),{fullSize:h,leftAndTop:d.concat(f),rightAndBottom:u.concat(g).concat(a).concat(r),chartArea:ji(c,\"chartArea\"),vertical:d.concat(u).concat(g),horizontal:f.concat(a).concat(r)}),c=h.vertical,d=h.horizontal,u=(k(e.boxes,t=>{\"function\"==typeof t.beforeLayout&&t.beforeLayout()}),c.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1),g=Object.freeze({outerWidth:t,outerHeight:i,padding:n,availableWidth:o,availableHeight:l,vBoxMaxWidth:o/2/u,hBoxMaxHeight:l/2}),f=Object.assign({},n);Xi(f,I(s));const b=Object.assign({maxPadding:f,w:o,h:l,x:n.left,y:n.top},n),x=function(t,e){var i=function(t){var e,i={};for(const s of t){const{stack:t,pos:a,stackWeight:r}=s;t&&Hi.includes(a)&&((e=i[t]||(i[t]={count:0,placed:0,weight:0,size:0})).count++,e.weight+=r)}return i}(t),{vBoxMaxWidth:s,hBoxMaxHeight:a}=e;let r,n,o;for(r=0,n=t.length;r{t=t.box;Object.assign(t,e.chartArea),t.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}}};class Zi{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Ji extends Zi{acquireContext(t){return t&&t.getContext&&t.getContext(\"2d\")||null}updateConfig(t){t.options.animation=!1}}const Qi={touchstart:\"mousedown\",touchmove:\"mousemove\",touchend:\"mouseup\",pointerenter:\"mouseenter\",pointerdown:\"mousedown\",pointermove:\"mousemove\",pointerup:\"mouseup\",pointerleave:\"mouseout\",pointerout:\"mouseout\"},ts=t=>null===t||\"\"===t,es=!!Ce&&{passive:!0};function is(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function ss(t,e,i){const s=t.canvas,a=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||is(i.addedNodes,s),e=e&&!is(i.removedNodes,s);e&&i()});return a.observe(document,{childList:!0,subtree:!0}),a}function as(t,e,i){const s=t.canvas,a=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||is(i.removedNodes,s),e=e&&!is(i.addedNodes,s);e&&i()});return a.observe(document,{childList:!0,subtree:!0}),a}const rs=new Map;let ns=0;function os(){const i=window.devicePixelRatio;i!==ns&&(ns=i,rs.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function ls(t,e,s){const i=t.canvas,a=i&&xe(i);if(a){const n=kt((t,e)=>{var i=a.clientWidth;s(t,e),i{var t=t[0],e=t.contentRect.width,t=t.contentRect.height;0===e&&0===t||n(e,t)});return o.observe(a),t=t,r=n,rs.size||window.addEventListener(\"resize\",os),rs.set(t,r),o;var r}}function hs(t,e,i){i&&i.disconnect(),\"resize\"===e&&(i=t,rs.delete(i),rs.size||window.removeEventListener(\"resize\",os))}function cs(e,t,i){var s=e.canvas,a=kt(t=>{null!==e.ctx&&i(function(t,e){var i=Qi[t.type]||t.type,{x:s,y:a}=ke(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==a?a:null}}(t,e))},e);return s.addEventListener(t,a,es),a}class ds extends Zi{acquireContext(t,e){var i=t&&t.getContext&&t.getContext(\"2d\");{if(i&&i.canvas===t){var s=e,e=t.style,a=t.getAttribute(\"height\"),r=t.getAttribute(\"width\");if(t.$chartjs={initial:{height:a,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||\"block\",e.boxSizing=e.boxSizing||\"border-box\",ts(r)){const s=Oe(t,\"width\");void 0!==s&&(t.width=s)}if(ts(a))if(\"\"===t.style.height)t.height=t.width/(s||2);else{const s=Oe(t,\"height\");void 0!==s&&(t.height=s)}return i}return null}}releaseContext(t){const i=t.canvas;if(!i.$chartjs)return!1;const s=i.$chartjs.initial,e=([\"height\",\"width\"].forEach(t=>{var e=s[t];P(e)?i.removeAttribute(t):i.setAttribute(t,e)}),s.style||{});return Object.keys(e).forEach(t=>{i.style[t]=e[t]}),i.width=i.width,delete i.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);var s=t.$proxies||(t.$proxies={}),a={attach:ss,detach:as,resize:ls}[e]||cs;s[e]=a(t,e,i)}removeEventListener(t,e){var i=t.$proxies||(t.$proxies={}),s=i[e];s&&(({attach:hs,detach:hs,resize:hs}[e]||function(t,e,i){t.canvas.removeEventListener(e,i,es)})(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return Pe(t,e,i,s)}isAttached(t){t=xe(t);return!(!t||!t.isConnected)}}function us(t){return!be()||\"undefined\"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Ji:ds}Ce=Object.freeze({__proto__:null,_detectPlatform:us,BasePlatform:Zi,BasicPlatform:Ji,DomPlatform:ds});const gs=\"transparent\",fs={boolean:(t,e,i)=>.5t+(e-t)*i};class ps{constructor(t,e,i,s){var a=e[i],a=(s=wi([t.to,s,a,t.from]),wi([t.from,a,s]));this._active=!0,this._fn=t.fn||fs[t.type||typeof a],this._easing=gi[t.easing]||gi.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=a,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){var s,a,r;this._active&&(this._notify(!1),s=this._target[this._prop],a=i-this._start,r=this._duration-a,this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=wi([t.to,e,s,t.from]),this._from=wi([t.from,s,e]))}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){var t=t-this._start,e=this._duration,i=this._prop,s=this._from,a=this._loop,r=this._to;this._active=s!==r&&(a||t{i.push({res:t,rej:e})})}_notify(t){var e=t?\"res\":\"rej\",i=this._promises||[];for(let t=0;t{var t=s[e];if(A(t)){const i={};for(const s of a)i[s]=t[s];(O(t.properties)&&t.properties||[e]).forEach(t=>{t!==e&&r.has(t)||r.set(t,i)})}})}}_animateOptions(t,e){const i=e.options,s=function(e,i){if(i){let t=e.options;if(t)return t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t;e.options=i}}(t,i);return s?(e=this._createAnimations(s,i),i.$shared&&function(e,t){var i=[],s=Object.keys(t);for(let t=0;t{t.options=i},()=>{}),e):[]}_createAnimations(e,i){var s=this._properties,a=[],r=e.$animations||(e.$animations={}),t=Object.keys(i),n=Date.now();let o;for(o=t.length-1;0<=o;--o){var l=t[o];if(\"$\"!==l.charAt(0))if(\"options\"===l)a.push(...this._animateOptions(e,i));else{var h=i[l];let t=r[l];var c=s.get(l);if(t){if(c&&t.active()){t.update(c,h,n);continue}t.cancel()}c&&c.duration?(r[l]=t=new ps(c,e,l,h),a.push(t)):e[l]=h}}return a}update(t,e){var i;if(0!==this._properties.size)return(i=this._createAnimations(t,e)).length?(r.add(this._chart,i),!0):void 0;Object.assign(t,e)}}function bs(t,e){var t=t&&t.options||{},i=t.reverse,s=void 0===t.min?e:0,t=void 0===t.max?e:0;return{start:i?t:s,end:i?s:t}}function xs(t,e){var i=[],s=t._getSortedDatasetMetas(e);let a,r;for(a=0,r=s.length;ai[t].axis===e).shift()}function ks(t,e){var i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i],void 0!==e[s]._visualValues&&void 0!==e[s]._visualValues[i]&&delete e[s]._visualValues[i]}}}const Ss=t=>\"reset\"===t||\"none\"===t,Ps=(t,e)=>e?t:Object.assign({},t);class Ds{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){var t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=_s(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(\"filler\")&&console.warn(\"Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options\")}updateIndex(t){this.index!==t&&ks(this._cachedMeta),this.index=t}linkScales(){var t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>\"x\"===t?e:\"r\"===t?s:i,a=e.xAxisID=T(i.xAxisID,ws(t,\"x\")),r=e.yAxisID=T(i.yAxisID,ws(t,\"y\")),i=e.rAxisID=T(i.rAxisID,ws(t,\"r\")),t=e.indexAxis,n=e.iAxisID=s(t,a,r,i),s=e.vAxisID=s(t,r,a,i);e.xScale=this.getScaleForId(a),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(i),e.iScale=this.getScaleForId(n),e.vScale=this.getScaleForId(s)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){var e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update(\"reset\")}_destroy(){var t=this._cachedMeta;this._data&&yt(this._data,this),t._stacked&&ks(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(A(e))this._data=function(t){var e=Object.keys(t),i=new Array(e.length);let s,a,r;for(s=0,a=e.length;snull===l[n]||d&&l[n]t||cthis.getContext(i,s,e),l)).$shared&&(c.$shared=o,a[r]=Object.freeze(Ps(c,o))),c)}_resolveAnimations(t,e,i){const s=this.chart,a=this._cachedDataOpts,r=\"animation-\"+e,n=a[r];if(n)return n;let o;if(!1!==s.options.animation){const s=this.chart.config,a=s.datasetAnimationScopeKeys(this._type,e),r=s.getOptionScopes(this.getDataset(),a);o=s.createResolver(r,this.getContext(t,i,e))}t=new ms(s,o&&o.animations);return o&&o._cacheable&&(a[r]=Object.freeze(t)),t}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ss(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){var t=this.resolveDataElementOptions(t,e),i=this._sharedOptions,s=this.getSharedOptions(t),i=this.includeOptions(e,s)||s!==i;return this.updateSharedOptions(s,e,t),{sharedOptions:s,includeOptions:i}}updateElement(t,e,i,s){Ss(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Ss(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;var a=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(t,e,i){this._setStyle(t,i,\"active\",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,\"active\",!0)}_removeDatasetHoverStyle(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,\"active\",!1)}_setDatasetHoverStyle(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,\"active\",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];var s=i.length,a=e.length,r=Math.min(a,s);r&&this.parse(0,r),s{for(t.length+=e,n=t.length-1;n>=r;n--)t[n]=t[n-e]};for(o(a),n=t;n{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),s}}function Cs(t,e,i,s,a){var r=T(s,0),n=Math.min(T(a,t.length),t.length);let o,l,h,c=0;for(i=Math.ceil(i),a&&(i=(o=a-s)/Math.floor(o/i)),h=r;h<0;)c++,h=Math.round(r+c*i);for(l=Math.max(r,0);l\"top\"===e||\"left\"===e?t[e]+i:t[e]-i,As=(t,e)=>Math.min(e||t,t);function Ts(t,e){var i=[],s=t.length/e,a=t.length;let r=0;for(;rr?r:a,r=n&&a>r?a:r,{min:u(a,u(r,a)),max:u(r,u(a,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){d(this.options.beforeUpdate,[this])}update(t,e,i){var{beginAtZero:s,grace:a,ticks:r}=this.options,n=r.sampleSize,t=(this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=ki(this,a,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks(),ns)return i}}return Math.max(s,1)}(r,s,a);if(0{var e=t.gc,i=e.length/2;let s;if(y({width:r[t]||0,height:n[t]||0});return{first:w(0),last:w(e-1),widest:w(i),highest:w(M),widths:r,heights:n}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);t=this._startPixel+t*this._length;return pt(this._alignToPixels?Ee(this.chart,t,0):t)}getDecimalForPixel(t){t=(t-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){var{min:t,max:e}=this;return t<0&&e<0?e:0n+1e-6)))return l}(this,b,l))&&(v=Ee(s,x,A),h?_=M=k=P=v:y=w=S=D=v,u.push({tx1:_,ty1:y,tx2:M,ty2:w,x1:k,y1:S,x2:P,y2:D,width:A,color:n,borderDash:T,borderDashOffset:c,tickWidth:d,tickColor:g,tickBorderDash:f,tickBorderDashOffset:p}))}return this._ticksLength=c,this._borderValue=m,u}_computeLabelItems(s){const a=this.axis,r=this.options,{position:n,ticks:e}=r,o=this.isHorizontal(),l=this.ticks,{align:h,crossAlign:c,padding:t,mirror:d}=e,i=Ls(r.grid),u=i+t,g=d?-t:u,f=-L(this.labelRotation),p=[];let m,b,x,v,_,y,M,w,k,S,P,D=\"middle\";if(\"top\"===n)_=this.bottom-g,y=this._getXAxisLabelAlignment();else if(\"bottom\"===n)_=this.top+g,y=this._getXAxisLabelAlignment();else if(\"left\"===n){const s=this._getYAxisLabelAlignment(i);y=s.textAlign,v=s.x}else if(\"right\"===n){const s=this._getYAxisLabelAlignment(i);y=s.textAlign,v=s.x}else if(\"x\"===a){if(\"center\"===n)_=(s.top+s.bottom)/2+u;else if(A(n)){const s=Object.keys(n)[0],a=n[s];_=this.chart.scales[s].getPixelForValue(a)+u}y=this._getXAxisLabelAlignment()}else if(\"y\"===a){if(\"center\"===n)v=(s.left+s.right)/2-u;else if(A(n)){const s=Object.keys(n)[0],a=n[s];v=this.chart.scales[s].getPixelForValue(a)}y=this._getYAxisLabelAlignment(i).textAlign}\"y\"===a&&(\"start\"===h?D=\"top\":\"end\"===h&&(D=\"bottom\"));var C=this._getLabelSizes();for(m=0,b=l.length;mt.value===e))?i.setContext(this.getContext(t)).lineWidth:0}drawGrid(t){const e=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,r;var n=(t,e,i)=>{i.width&&i.color&&(s.save(),s.lineWidth=i.width,s.strokeStyle=i.color,s.setLineDash(i.borderDash||[]),s.lineDashOffset=i.borderDashOffset,s.beginPath(),s.moveTo(t.x,t.y),s.lineTo(e.x,e.y),s.stroke(),s.restore())};if(e.display)for(a=0,r=i.length;a{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:t,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){var e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+\"AxisID\",s=[];let a,r;for(a=0,r=e.length;a{var e=t.split(\".\"),i=e.pop(),e=[a].concat(e).join(\".\"),t=r[t].split(\".\"),s=t.pop(),t=t.join(\".\");R.route(e,i,t,s)})),n.descriptors&&R.describe(e,n.descriptors),this.override&&R.override(t.id,t.overrides)),o;throw new Error(\"class does not have id: \"+t)}get(t){return this.items[t]}unregister(t){var e=this.items,t=t.id,i=this.scope;t in e&&delete e[t],i&&t in R[i]&&(delete R[i][t],this.override)&&delete ge[t]}}var M=new class{constructor(){this.controllers=new Is(Ds,\"datasets\",!0),this.elements=new Is(e,\"elements\"),this.plugins=new Is(Object,\"plugins\"),this.scales=new Is(Rs,\"scales\"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each(\"register\",t)}remove(...t){this._each(\"unregister\",t)}addControllers(...t){this._each(\"register\",t,this.controllers)}addElements(...t){this._each(\"register\",t,this.elements)}addPlugins(...t){this._each(\"register\",t,this.plugins)}addScales(...t){this._each(\"register\",t,this.scales)}getController(t){return this._get(t,this.controllers,\"controller\")}getElement(t){return this._get(t,this.elements,\"element\")}getPlugin(t){return this._get(t,this.plugins,\"plugin\")}getScale(t){return this._get(t,this.scales,\"scale\")}removeControllers(...t){this._each(\"unregister\",t,this.controllers)}removeElements(...t){this._each(\"unregister\",t,this.elements)}removePlugins(...t){this._each(\"unregister\",t,this.plugins)}removeScales(...t){this._each(\"unregister\",t,this.scales)}_each(i,t,s){[...t].forEach(t=>{var e=s||this._getRegistryForType(t);s||e.isForType(t)||e===this.plugins&&t.id?this._exec(i,e,t):k(t,t=>{var e=s||this._getRegistryForType(t);this._exec(i,e,t)})})}_exec(t,e,i){var s=K(t);d(i[\"before\"+s],[],i),e[t](i),d(i[\"after\"+s],[],i)}_getRegistryForType(e){for(let t=0;tt.filter(e=>!i.some(t=>e.plugin.id===t.plugin.id));this._notify(s(e,i),t,\"stop\"),this._notify(s(i,e),t,\"start\")}}function Fs(t,e){var i=R.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||\"x\"}function Vs(t,e){if(\"x\"===t||\"y\"===t||\"r\"===t)return t;var i;if(t=e.axis||(\"top\"===(i=e.position)||\"bottom\"===i?\"x\":\"left\"===i||\"right\"===i?\"y\":void 0)||1{var e=n[t];if(!A(e))return console.error(\"Invalid scale configuration for scale: \"+t);if(e._proxy)return console.warn(\"Ignoring resolver passed as options for scale: \"+t);const i=Vs(t,e),s=i===o?\"_index_\":\"_value_\",a=r.scales||{};l[t]=$(Object.create(null),[{axis:i},e,a[i],a[s]])}),e.data.datasets.forEach(s=>{const t=s.type||e.type,a=s.indexAxis||Fs(t,i),r=(ge[t]||{}).scales||{};Object.keys(r).forEach(t=>{var e=function(t,e){let i=t;return\"_index_\"===t?i=e:\"_value_\"===t&&(i=\"x\"===e?\"y\":\"x\"),i}(t,a),i=s[e+\"AxisID\"]||e;l[i]=l[i]||Object.create(null),$(l[i],[{axis:e},n[i],r[t]])})}),Object.keys(l).forEach(t=>{t=l[t];$(t,[R.scales[t.type],R.scale])}),l}(t,e)}function Ns(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ws=new Map,Hs=new Set;function js(t,e){let i=Ws.get(t);return i||(i=e(),Ws.set(t,i),Hs.add(i)),i}const Ys=(t,e,i)=>{e=f(e,i);void 0!==e&&t.add(e)};class $s{constructor(t){this._config=((t=(t=t)||{}).data=Ns(t.data),Bs(t),t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ns(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){var t=this._config;this.clearCache(),Bs(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return js(t,()=>[[\"datasets.\"+t,\"\"]])}datasetAnimationScopeKeys(t,e){return js(t+\".transition.\"+e,()=>[[`datasets.${t}.transitions.`+e,\"transitions.\"+e],[\"datasets.\"+t,\"\"]])}datasetElementScopeKeys(t,e){return js(t+\"-\"+e,()=>[[`datasets.${t}.elements.`+e,\"datasets.\"+t,\"elements.\"+e,\"\"]])}pluginScopeKeys(t){const e=t.id;return js(this.type+\"-plugin-\"+e,()=>[[\"plugins.\"+e,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){var i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(e,t,i){const{options:s,type:a}=this,r=this._cachedScopes(e,i),n=r.get(t);if(n)return n;const o=new Set;t.forEach(t=>{e&&(o.add(e),t.forEach(t=>Ys(o,e,t))),t.forEach(t=>Ys(o,s,t)),t.forEach(t=>Ys(o,ge[a]||{},t)),t.forEach(t=>Ys(o,R,t)),t.forEach(t=>Ys(o,fe,t))});i=Array.from(o);return 0===i.length&&i.push(Object.create(null)),Hs.has(t)&&r.set(t,i),i}chartOptionScopes(){var{options:t,type:e}=this;return[t,ge[e]||{},R.datasets[e]||{},{type:e},R,fe]}resolveNamedOptions(t,e,i,s=[\"\"]){var a={$shared:!0},{resolver:s,subPrefixes:r}=Us(this._resolverCache,t,s);let n=s;!function(t,e){var{isScriptable:i,isIndexable:s}=Ue(t);for(const a of e){const e=i(a),r=s(a),n=(r||e)&&t[a];if(e&&(m(n)||Xs(n))||r&&O(n))return 1}}(s,e)||(a.$shared=!1,n=$e(s,i=m(i)?i():i,this.createResolver(t,i,r)));for(const t of e)a[t]=n[t];return a}createResolver(t,e,i=[\"\"],s){t=Us(this._resolverCache,t,i).resolver;return A(e)?$e(t,e,void 0,s):t}}function Us(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));t=i.join();let a=s.get(t);return a||(a={resolver:Ye(e,i),subPrefixes:i.filter(t=>!t.toLowerCase().includes(\"hover\"))},s.set(t,a)),a}const Xs=i=>A(i)&&Object.getOwnPropertyNames(i).reduce((t,e)=>t||m(i[e]),!1),qs=[\"top\",\"bottom\",\"left\",\"right\",\"chartArea\"];function Ks(t,e){return\"top\"===t||\"bottom\"===t||-1===qs.indexOf(t)&&\"x\"===e}function Gs(i,s){return function(t,e){return t[i]===e[i]?t[s]-e[s]:t[i]-e[i]}}function Zs(t){var e=t.chart,i=e.options.animation;e.notifyPlugins(\"afterRender\"),d(i&&i.onComplete,[t],e)}function Js(t){var e=t.chart,i=e.options.animation;d(i&&i.onProgress,[t],e)}function Qs(t){return be()&&\"string\"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t=t&&t.canvas?t.canvas:t}const ta={},ea=t=>{const e=Qs(t);return Object.values(ta).filter(t=>t.canvas===e).pop()};class i{static defaults=R;static instances=ta;static overrides=ge;static registry=M;static version=\"4.2.1\";static getChart=ea;static register(...t){M.add(...t),ia()}static unregister(...t){M.remove(...t),ia()}constructor(t,e){var e=this.config=new $s(e),t=Qs(t),i=ea(t);if(i)throw new Error(\"Canvas is already in use. Chart with ID '\"+i.id+\"' must be destroyed before the canvas with ID '\"+i.canvas.id+\"' can be reused.\");var i=e.createResolver(e.chartOptionScopes(),this.getContext()),e=(this.platform=new(e.platform||us(t)),this.platform.updateConfig(e),this.platform.acquireContext(t,i.aspectRatio)),t=e&&e.canvas,s=t&&t.height,a=t&&t.width;this.id=F(),this.ctx=e,this.canvas=t,this.width=a,this.height=s,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new zs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=St(t=>this.update(t),i.resizeDelay||0),this._dataChanges=[],ta[this.id]=this,e&&t?(r.listen(this,\"complete\",Zs),r.listen(this,\"progress\",Js),this._initialize(),this.attached&&this.update()):console.error(\"Failed to create chart: can't acquire context from the given item\")}get aspectRatio(){var{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:a}=this;return P(t)?e&&a?a:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return M}_initialize(){return this.notifyPlugins(\"beforeInit\"),this.options.responsive?this.resize():De(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(\"afterInit\"),this}clear(){return Re(this.canvas,this.ctx),this}stop(){return r.stop(this),this}resize(t,e){r.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){var i=this.options,s=this.canvas,a=i.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(s,t,e,a),t=i.devicePixelRatio||this.platform.getDevicePixelRatio(),e=this.width?\"resize\":\"attach\";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,De(this,t,!0)&&(this.notifyPlugins(\"resize\",{size:s}),d(i.onResize,[this,s],this),this.attached)&&this._doResize(e)&&this.render()}ensureScalesHaveIDs(){k(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const n=this.options,s=n.scales,o=this.scales,l=Object.keys(o).reduce((t,e)=>(t[e]=!1,t),{});let t=[];k(t=s?t.concat(Object.keys(s).map(t=>{var e=s[t],t=Vs(t,e),i=\"r\"===t,t=\"x\"===t;return{options:e,dposition:i?\"chartArea\":t?\"bottom\":\"left\",dtype:i?\"radialLinear\":t?\"category\":\"linear\"}})):t,t=>{var e=t.options,i=e.id,s=Vs(i,e),a=T(e.type,t.dtype);void 0!==e.position&&Ks(e.position,s)===Ks(t.dposition)||(e.position=t.dposition),l[i]=!0;let r=null;i in o&&o[i].type===a?r=o[i]:(r=new(M.getScale(a))({id:i,type:a,ctx:this.ctx,chart:this}),o[r.id]=r),r.init(e,n)}),k(l,(t,e)=>{t||delete o[e]}),k(o,t=>{a.configure(this,t,t.options),a.addBox(this,t)})}_updateMetasets(){var t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),ei.length&&delete this._stacks,t.forEach((e,t)=>{0===i.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(t)})}buildOrUpdateControllers(){const e=[],i=this.data.datasets;let s,a;for(this._removeUnreferencedMetasets(),s=0,a=i.length;s{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(\"reset\")}update(t){const s=this.config,a=(s.update(),this._options=s.createResolver(s.chartOptionScopes(),this.getContext())),r=this._animationsDisabled=!a.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1!==this.notifyPlugins(\"beforeUpdate\",{mode:t,cancelable:!0})){var n=this.buildOrUpdateControllers();this.notifyPlugins(\"beforeElementsUpdate\");let i=0;for(let t=0,e=this.data.datasets.length;t{t.reset()}),this._updateDatasets(t),this.notifyPlugins(\"afterUpdate\",{mode:t}),this._layers.sort(Gs(\"z\",\"_idx\"));var{_active:t,_lastEvent:e}=this;e?this._eventHandler(e,!0):t.length&&this._updateHoverStyles(t,t,!0),this.render()}}_updateScales(){k(this.scales,t=>{a.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){var t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);G(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){var t,e,i,s,a=this[\"_hiddenIndices\"];for({method:t,start:e,count:i}of this._getUniformDataChanges()||[]){r=void 0;n=void 0;o=void 0;s=void 0;var r=a;var n=e;var o=\"_removeElements\"===t?-i:i;const l=Object.keys(r);for(const h of l){const l=+h;l>=n&&(s=r[h],delete r[h],0n)&&(r[l+o]=s)}}}_getUniformDataChanges(){const t=this._dataChanges;if(t&&t.length){this._dataChanges=[];var e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+\",\"+t.splice(1).join(\",\"))),s=i(0);for(let t=1;tt.split(\",\")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}}_updateLayout(t){if(!1!==this.notifyPlugins(\"beforeLayout\",{cancelable:!0})){a.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],k(this.boxes,t=>{i&&\"chartArea\"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins(\"afterLayout\")}}_updateDatasets(i){if(!1!==this.notifyPlugins(\"beforeDatasetsUpdate\",{mode:i,cancelable:!0})){for(let t=0,e=this.data.datasets.length;tt&&t._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=Si(null,{chart:this,type:\"chart\"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){var e=this.data.datasets[t];return!!e&&(\"boolean\"==typeof(t=this.getDatasetMeta(t)).hidden?!t.hidden:!e.hidden)}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(e,t,i){const s=i?\"show\":\"hide\",a=this.getDatasetMeta(e),r=a.controller._resolveAnimations(void 0,s);g(t)?(a.data[t].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),r.update(a,{visible:i}),this.update(t=>t.datasetIndex===e?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){var e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),r.remove(this),t=0,e=this.data.datasets.length;t{s.addEventListener(this,t,e),i[t]=e},a=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};k(this.options.events,t=>e(t,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const i=this._responsiveListeners,s=this.platform,t=(t,e)=>{s.addEventListener(this,t,e),i[t]=e},e=(t,e)=>{i[t]&&(s.removeEventListener(this,t,e),delete i[t])},a=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const n=()=>{e(\"attach\",n),this.attached=!0,this.resize(),t(\"resize\",a),t(\"detach\",r)};r=()=>{this.attached=!1,e(\"resize\",a),this._stop(),this._resize(0,0),t(\"attach\",n)},(s.isAttached(this.canvas)?n:r)()}unbindEvents(){k(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},k(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){var s=i?\"set\":\"remove\";let a,r,n;for(\"dataset\"===e&&this.getDatasetMeta(t[0].datasetIndex).controller[\"_\"+s+\"DatasetHoverStyle\"](),r=0,n=t.length;r{var i=this.getDatasetMeta(t);if(i)return{datasetIndex:t,element:i.data[e],index:e};throw new Error(\"No dataset found at index \"+t)});N(t,e)||(this._active=t,this._lastEvent=null,this._updateHoverStyles(t,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(e){return 1===this._plugins._cache.filter(t=>t.plugin.id===e).length}_updateHoverStyles(t,e,i){var s=this.options.hover,a=(t,i)=>t.filter(e=>!i.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),r=a(e,t),i=i?t:a(t,e);r.length&&this.updateHoverStyle(r,s.mode,!1),i.length&&s.mode&&this.updateHoverStyle(i,s.mode,!0)}_eventHandler(e,t){var i={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},s=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1!==this.notifyPlugins(\"beforeEvent\",i,s))return t=this._handleEvent(e,t,i.inChartArea),i.cancelable=!1,this.notifyPlugins(\"afterEvent\",i,s),(t||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:a}=this,r=e,n=this._getActiveElements(t,s,i,r),o=Z(t),l=(h=t,c=this._lastEvent,i&&\"mouseout\"!==h.type?o?c:h:null);i&&(this._lastEvent=null,d(a.onHover,[t,n,this],this),o)&&d(a.onClick,[t,n,this],this);var h,c=!N(n,s);return(c||e)&&(this._active=n,this._updateHoverStyles(n,s,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,s){return\"mouseout\"===t.type?[]:i?(i=this.options.hover,this.getElementsAtEventForMode(t,i.mode,i,s)):e}}function ia(){k(i.instances,t=>t._plugins.invalidate())}function sa(){throw new Error(\"This method is not implemented: Check that a complete date adapter is provided.\")}var aa={_date:class Wr{static override(t){Object.assign(Wr.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return sa()}parse(){return sa()}format(){return sa()}add(){return sa()}diff(){return sa()}startOf(){return sa()}endOf(){return sa()}}};function ra(i,s,a,r){if(O(i)){var n=i,o=s,l=a,h=r,c=l.parse(n[0],h),n=l.parse(n[1],h),h=Math.min(c,n),d=Math.max(c,n);let t=h,e=d;Math.abs(h)>Math.abs(d)&&(t=d,e=h),o[l.axis]=e,o._custom={barStart:t,barEnd:e,start:c,end:n,min:h,max:d}}else s[a.axis]=a.parse(i,r);return s}function na(t,e,i,s){var a=t.iScale,r=t.vScale,n=a.getLabels(),o=a===r,l=[];let h,c,d,u;for(c=(h=i)+s;h\"spacing\"!==t,_indexable:t=>\"spacing\"!==t};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(s){var t=s.data;if(t.labels.length&&t.datasets.length){const{pointStyle:a,color:r}=s.legend.options[\"labels\"];return t.labels.map((t,e)=>{var i=s.getDatasetMeta(0).controller.getStyle(e);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:a,hidden:!s.getDataVisibility(e),index:e}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(s,a){const r=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=r;else{let t,e,i=t=>+r[t];if(A(r[s])){const{key:s=\"value\"}=this._parsing;i=t=>+f(r[t],s)}for(e=(t=s)+a;tft(t,o,l,!0)?1:Math.max(e,e*s,i,i*s),f=(t,e,i)=>ft(t,o,l,!0)?-1:Math.min(e,e*s,i,i*s),p=g(0,h,d),m=g(D,c,u),b=f(S,h,d),x=f(S+D,c,u);i=(p-b)/2,a=(m-x)/2,r=-(p+b)/2,n=-(m+x)/2}return{ratioX:i,ratioY:a,offsetX:r,offsetY:n}}(l,o,r),l=(e.width-a)/l,e=(e.height-a)/o,a=Math.max(Math.min(l,e)/2,0),o=B(this.options.radius,a),l=(o-Math.max(o*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*o,this.offsetY=c*o,i.total=this.calculateTotal(),this.outerRadius=o-l*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-l*n,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){var i=this.options,s=this._cachedMeta,a=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*a/v)}updateElements(t,e,i,s){const a=\"reset\"===s,r=this.chart,n=r.chartArea,o=r.options.animation,l=(n.left+n.right)/2,h=(n.top+n.bottom)/2,c=a&&o.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:g,includeOptions:f}=this._getSharedOptions(e,s);let p,m=this._getRotation();for(p=0;p{var i=s.getDatasetMeta(0).controller.getStyle(e);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:a,hidden:!s.getDataVisibility(e),index:e}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:\"radialLinear\",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){var e=this._cachedMeta,i=this.chart,s=i.data.labels||[],e=ce(e._parsed[t].r,i.options.locale);return{label:s[t]||\"\",value:e}}parseObjectData(t,e,i,s){return ii.bind(this)(t,e,i,s)}update(t){var e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,s={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,e)=>{var i=this.getParsed(e).r;!isNaN(i)&&this.chart.getDataVisibility(e)&&(is.max)&&(s.max=i)}),s}_updateRadius(){var t=this.chart,e=t.chartArea,i=t.options,e=Math.min(e.right-e.left,e.bottom-e.top),e=Math.max(e/2,0),i=(e-Math.max(i.cutoutPercentage?e/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=e-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(s,a,t,r){var n=\"reset\"===r,o=this.chart,l=o.options.animation,h=this._cachedMeta.rScale,c=h.xCenter,d=h.yCenter,u=h.getIndexAngle(0)-.5*S;let g,f=u;var p=360/this.countVisibleElements();for(g=0;g{!isNaN(this.getParsed(e).r)&&this.chart.getDataVisibility(e)&&i++}),i}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?L(this.resolveDataElementOptions(t,e).angle||i):0}}var ua=Object.freeze({__proto__:null,BarController:class extends Ds{static id=\"bar\";static defaults={datasetElementType:!1,dataElementType:\"bar\",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:\"number\",properties:[\"x\",\"y\",\"base\",\"width\",\"height\"]}}};static overrides={scales:{_index_:{type:\"category\",offset:!0,grid:{offset:!0}},_value_:{type:\"linear\",beginAtZero:!0}}};parsePrimitiveData(t,e,i,s){return na(t,e,i,s)}parseArrayData(t,e,i,s){return na(t,e,i,s)}parseObjectData(t,e,i,s){var{iScale:a,vScale:r}=t,{xAxisKey:t=\"x\",yAxisKey:n=\"y\"}=this._parsing,o=\"x\"===a.axis?t:n,l=\"x\"===r.axis?t:n,h=[];let c,d,u,g;for(d=(c=i)+s;cf.x,e=\"left\",\"right\"):(t=f.baset.controller.options.grouped),a=e.options.stacked,r=[];for(const e of s)if((void 0===i||!(t=>{var e=t.controller.getParsed(i),e=e&&e[t.vScale.axis];if(P(e)||isNaN(e))return!0})(e))&&((!1===a||-1===r.indexOf(e.stack)||void 0===a&&void 0===e.stack)&&r.push(e.stack),e.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){t=this._getStacks(t,i),i=void 0!==e?t.indexOf(e):-1;return-1===i?t.length-1:i}_getRuler(){var t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let a,r;for(a=0,r=e.data.length;at-e))}return s._cache.$bar}(e,t.type);let s,a,r,n,o=e._length;var l=()=>{32767!==r&&-32768!==r&&(g(n)&&(o=Math.min(o,Math.abs(r-n)||o)),n=r)};for(s=0,a=i.length;s=m?1:-1))*r),u===n&&(x-=d/2);const t=e.getPixelForDecimal(0),P=e.getPixelForDecimal(1),a=Math.min(t,P),l=Math.max(t,P);x=Math.max(Math.min(x,l),a),c=x+d,i&&!h&&(o._stacks[e.axis]._visualValues[s]=e.getValueForPixel(c)-e.getValueForPixel(x))}if(x===e.getPixelForValue(n)){const t=_(d)*e.getLineWidthForValue(n)/2;x+=t,d-=t}return{size:d,base:x,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,a=s.skipNull,r=T(s.maxBarThickness,1/0);let n,o;if(e.grouped){const i=a?this._getStackCount(t):e.stackCount,T=(\"flex\"===s.barThickness?function(t,e,i,s){var a=e.pixels,r=a[t];let n=0=b?x.skip=!0:(y=P((_=this.getParsed(t))[u]),M=x[d]=r.getPixelForValue(_[d],t),w=x[u]=a||y?n.getBasePixel():n.getPixelForValue(o?this.applyStack(n,_,o):_[u],t),x.skip=isNaN(M)||isNaN(w)||y,x.stop=0p,f&&(x.parsed=_,x.raw=l.data[t]),c&&(x.options=h||this.resolveDataElementOptions(t,g.active?\"active\":s)),m||this.updateElement(g,t,x,s),v=_)}}getMaxOverflow(){var t,e=this._cachedMeta,i=e.dataset,i=i.options&&i.options.borderWidth||0,e=e.data||[];return e.length?(t=e[0].size(this.resolveDataElementOptions(0)),e=e[e.length-1].size(this.resolveDataElementOptions(e.length-1)),Math.max(i,t,e)/2):i}draw(){var t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PolarAreaController:da,PieController:class extends ca{static id=\"pie\";static defaults={cutout:0,rotation:0,circumference:360,radius:\"100%\"}},RadarController:class extends Ds{static id=\"radar\";static defaults={datasetElementType:\"line\",dataElementType:\"point\",indexAxis:\"r\",showLine:!0,elements:{line:{fill:\"start\"}}};static overrides={aspectRatio:1,scales:{r:{type:\"radialLinear\"}}};getLabelAndValue(t){var e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:\"\"+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return ii.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],a=e.iScale.getLabels();if(i.points=s,\"resize\"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);var r={_loop:!0,_fullLoop:a.length===s.length,options:e};this.updateElement(i,void 0,r,t)}this.updateElements(s,0,s.length,t)}updateElements(e,i,s,a){var r=this._cachedMeta.rScale,n=\"reset\"===a;for(let t=i;tm,p&&(f.parsed=s,f.raw=h.data[t]),d&&(f.options=c||this.resolveDataElementOptions(t,i.active?\"active\":a)),b||this.updateElement(i,t,f,a),x=s}this.updateSharedOptions(c,a,t)}getMaxOverflow(){var t,e,i=this._cachedMeta,s=i.data||[];if(this.options.showLine)return i=(i=i.dataset).options&&i.options.borderWidth||0,s.length?(t=s[0].size(this.resolveDataElementOptions(0)),e=s[s.length-1].size(this.resolveDataElementOptions(s.length-1)),Math.max(i,t,e)/2):i;{let e=0;for(let t=s.length-1;0<=t;--t)e=Math.max(e,s[t].size(this.resolveDataElementOptions(t))/2);return 0{var e=(i-Math.min(a,t))*s/2;return C(t,0,Math.min(a,e))};return{outerStart:n(t.outerStart),outerEnd:n(t.outerEnd),innerStart:C(t.innerStart,0,r),innerEnd:C(t.innerEnd,0,r)}}(e,h,d,l-g),b=d-c,x=d-f,v=g+c/b,_=l-f/x,y=h+p,M=h+m,w=g+p/y,k=l-m/M;if(t.beginPath(),r){const e=(v+_)/2;if(t.arc(n,o,d,v,e),t.arc(n,o,d,e,_),0(n+(h?o-t:t))%r,v=()=>{g!==f&&(t.lineTo(m,f),t.lineTo(m,g),t.lineTo(m,p))};for(l&&(d=a[x(0)],t.moveTo(d.x,d.y)),c=0;c<=o;++c)if(!(d=a[x(c)]).skip){const e=d.x,i=d.y,s=0|e;s===u?(if&&(f=i),m=(b*m+e)/++b):(v(),t.lineTo(e,i),u=s,b=0,g=f=i),p=i}v()}function _a(t){var e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||\"monotone\"===e.cubicInterpolationMode||e.stepped||i?xa:va}const ya=\"function\"==typeof Path2D;class Ma extends e{static id=\"line\";static defaults={borderCapStyle:\"butt\",borderDash:[],borderDashOffset:0,borderJoinStyle:\"miter\",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:\"default\",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:\"backgroundColor\",borderColor:\"borderColor\"};static descriptors={_scriptable:!0,_indexable:t=>\"borderDash\"!==t&&\"fill\"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){var i,s=this.options;!s.tension&&\"monotone\"!==s.cubicInterpolationMode||s.stepped||this._pointsUpdated||(i=s.spanGaps?this._loop:this._fullLoop,hi(this._points,s,t,i,e),this._pointsUpdated=!0)}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Ei(this,this.options.segment))}first(){var t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){var t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(i,s){var a=this.options,r=i[s],n=this.points,o=Li(this,{property:s,start:r,end:r});if(o.length){var l,h=[],c=a.stepped?pi:a.tension||\"monotone\"===a.cubicInterpolationMode?mi:fi;let e,t;for(e=0,t=o.length;e=v||ft(t,i,s),t=c(e,a+o,r+o);return n&&t}getCenterPoint(t){var{x:t,y:e,startAngle:i,endAngle:s,innerRadius:a,outerRadius:r}=this.getProps([\"x\",\"y\",\"startAngle\",\"endAngle\",\"innerRadius\",\"outerRadius\"],t),{offset:n,spacing:o}=this.options,i=(i+s)/2,s=(a+r+o+n)/2;return{x:t+Math.cos(i)*s,y:e+Math.sin(i)*s}}tooltipPosition(t){return this.getCenterPoint(t)}draw(e){var{options:i,circumference:s}=this,a=(i.offset||0)/4,r=(i.spacing||0)/2,n=i.circular;if(this.pixelMargin=\"inner\"===i.borderAlign?.33:0,this.fullCircles=s>v?Math.floor(s/v):0,!(0===s||this.innerRadius<0||this.outerRadius<0)){e.save();var o=(this.startAngle+this.endAngle)/2,o=(e.translate(Math.cos(o)*a,Math.sin(o)*a),a*(1-Math.sin(Math.min(S,s||0))));e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor;{var l=e;a=this;s=o;i=r;var h=n;var{fullCircles:c,startAngle:d,circumference:u}=a;let t=a.endAngle;if(c){fa(l,a,s,i,t,h);for(let t=0;ts=e?s:t,o=t=>a=i?a:t;if(t){const t=_(s),e=_(a);t<0&&e<0?o(0):0g&&(M=at(y*M/g/u)*u),P(o)||(x=Math.pow(10,o),M=Math.ceil(M*x)/x),_=\"ticks\"===s?(v=Math.floor(e/M)*M,Math.ceil(f/M)*M):(v=e,f),p&&m&&a&&ot((n-r)/a,M/1e3)?(y=Math.round(Math.min((n-r)/M,h)),M=(n-r)/y,v=r,_=n):b?(v=p?r:v,_=m?n:_,y=l-1,M=(_-v)/y):y=st(y=(_-v)/M,Math.round(y),M/1e3)?Math.round(y):Math.ceil(y);g=Math.max(ct(M),ct(v));x=Math.pow(10,P(o)?g:o),v=Math.round(v*x)/x,_=Math.round(_*x)/x;let w=0;for(p&&(d&&v!==r?(i.push({value:r}),vMath.floor(o(t)),Ia=(t,e)=>Math.pow(10,Ra(t)+e);function za(t){return 1==t/Math.pow(10,Ra(t))}function Fa(t,e,i){i=Math.pow(10,i),t=Math.floor(t/i);return Math.ceil(e/i)-t}class Va extends Rs{static id=\"logarithmic\";static defaults={ticks:{callback:ue.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){t=La.prototype.parse.apply(this,[t,e]);if(0!==t)return p(t)&&0s=e?s:t,r=t=>a=i?a:t;s===a&&(s<=0?(t(1),r(10)):(t(Ia(s,-1)),r(Ia(a,1)))),s<=0&&t(Ia(a,-1)),a<=0&&r(Ia(s,1)),this.min=s,this.max=a}buildTicks(){var t=this.options,e=function(t,{min:e,max:i}){e=u(t.min,e);var s=[],a=Ra(e);let r=function(t,e){let i=Ra(e-t);for(;10r?Math.pow(10,a):0,a=Math.round((e-l)*n)/n,h=Math.floor((e-l)/o/10)*o*10;let c=Math.floor((a-h)/Math.pow(10,r)),d=u(t.min,Math.round((l+h+c*Math.pow(10,r))*n)/n);for(;df.r&&(t=(m.end-f.r)/x,g.r=Math.max(g.r,f.r+t)),b.startf.b&&(e=(b.end-f.b)/p,g.b=Math.max(g.b,f.b+e))}}var d,u;e.setCenterPoint(i.l-s.l,s.r-i.r,i.t-s.t,s.b-i.b),e._pointLabelItems=function(e,i,s){const a=[],r=e._pointLabels.length,t=e.options,n=Ba(t)/2,o=e.drawingArea,l=t.pointLabels.centerPointLabels?S/r:0;for(let t=0;tt,padding:5,centerPointLabels:!1}};static defaultRoutes={\"angleLines.color\":\"borderColor\",\"pointLabels.color\":\"color\",\"ticks.color\":\"color\"};static descriptors={angleLines:{_fallback:\"grid\"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){var t=this._padding=I(Ba(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){var{min:t,max:e}=this.getMinMax(!1);this.min=p(t)&&!isNaN(t)?t:0,this.max=p(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ba(this.options))}generateTickLabels(t){La.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{t=d(this.options.pointLabels.callback,[t,e],this);return t||0===t?t:\"\"}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){var t=this.options;t.display&&t.pointLabels.display?Wa(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return y(t*(v/(this._pointLabels.length||1))+L(this.options.startAngle||0))}getDistanceFromCenterForValue(t){var e;return P(t)?NaN:(e=this.drawingArea/(this.max-this.min),this.options.reverse?(this.max-t)*e:(t-this.min)*e)}getValueForDistanceFromCenter(t){return P(t)?NaN:(t=t/(this.drawingArea/(this.max-this.min)),this.options.reverse?this.max-t:this.min+t)}getPointLabelContext(t){var e=this._pointLabels||[];if(0<=t&&t0!==t)?(o.beginPath(),je(o,{x:u,y:M,w:w,h:k,radius:r}),o.fill()):o.fillRect(u,M,w,k)}He(o,r._pointLabels[t],f,p+g.lineHeight/2,g,{color:n.color,textAlign:m,textBaseline:\"middle\"})}}if(l.display&&this.ticks.forEach((t,e)=>{var i,s,a,r,n,o;0!==e&&(d=this.getDistanceFromCenterForValue(t.value),t=this.getContext(e),e=l.setContext(t),t=h.setContext(t),i=this,e=e,s=d,a=c,t=t,r=i.ctx,n=e.circular,{color:e,lineWidth:o}=e,!n&&!a||!e||!o||s<0||(r.save(),r.strokeStyle=e,r.lineWidth=o,r.setLineDash(t.dash),r.lineDashOffset=t.dashOffset,r.beginPath(),Ha(i,s,n,a),r.closePath(),r.stroke(),r.restore()))}),i.display){for(t.save(),s=c-1;0<=s;s--){const P=i.setContext(this.getPointLabelContext(s)),{color:l,lineWidth:h}=P;h&&l&&(t.lineWidth=h,t.strokeStyle=l,t.setLineDash(P.borderDash),t.lineDashOffset=P.borderDashOffset,d=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(s,d),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(a.x,a.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const n=this.ctx,o=this.options,l=o.ticks;if(l.display){var t=this.getIndexAngle(0);let a,r;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(t),n.textAlign=\"center\",n.textBaseline=\"middle\",this.ticks.forEach((t,e)=>{if(0!==e||o.reverse){var i=l.setContext(this.getContext(e)),s=z(i.font);if(a=this.getDistanceFromCenterForValue(this.ticks[e].value),i.showLabelBackdrop){n.font=s.string,r=n.measureText(t.label).width,n.fillStyle=i.backdropColor;const o=I(i.backdropPadding);n.fillRect(-r/2-o.left,-a-s.size/2-o.top,r+o.width,s.size+o.height)}He(n,t.label,0,-a,s,{color:i.color})}}),n.restore()}}drawTitle(){}}const Ya={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}},h=Object.keys(Ya);function $a(t,e){return t-e}function Ua(t,e){if(P(e))return null;var i=t._adapter,{parser:t,round:s,isoWeekday:a}=t._parseOpts;let r=e;return null===(r=p(r=\"function\"==typeof t?t(r):r)?r:\"string\"==typeof t?i.parse(r,t):i.parse(r))?null:+(r=s?\"week\"!==s||!nt(a)&&!0!==a?i.startOf(r,s):i.startOf(r,\"isoWeek\",a):r)}function Xa(e,i,s,a){const r=h.length;for(let t=h.indexOf(e);t=e?i[s]:i[a]]=!0):t[e]=!0}function Ka(i,t,s){var a=[],r={},e=t.length;let n,o;for(n=0;n=h.indexOf(s);t--){const s=h[t];if(Ya[s].common&&e._adapter.diff(r,a,s)>=i-1)return s}return h[s?h.indexOf(s):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&\"year\"!==this._unit?function(i){for(let t=h.indexOf(i)+1,e=h.length;t+t.value))}initOffsets(t=[]){let e,i,s=0,a=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),a=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);t=t.length<3?.5:.25;s=C(s,0,t),a=C(a,0,t),this._offsets={start:s,end:a,factor:1/(s+1+a)}}_generate(){var t=this._adapter,e=this.min,i=this.max,s=this.options,a=s.time,r=a.unit||Xa(a.minUnit,e,i,this._getLabelCapacity(e)),n=T(s.ticks.stepSize,1),a=\"week\"===r&&a.isoWeekday,o=nt(a)||!0===a,l={};let h,c,d=e;if(o&&(d=+t.startOf(d,\"isoWeek\",a)),d=+t.startOf(d,o?\"day\":r),t.diff(i,e,r)>1e5*n)throw new Error(e+\" and \"+i+\" are too far apart with stepSize of \"+n+\" \"+r);var u=\"data\"===s.ticks.source&&this.getDataTimestamps();for(h=d,c=0;ht-e).map(t=>+t)}getLabelForValue(t){var e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){var i=this.options.time.displayFormats,s=this._unit,e=e||i[s];return this._adapter.format(t,e)}_tickFormatFunction(t,e,i,s){var a,r=this.options,n=r.ticks.callback;return n?d(n,[t,e,i],this):(n=r.time.displayFormats,r=this._unit,a=this._majorUnit,r=r&&n[r],n=a&&n[a],i=i[e],e=a&&n&&i&&i.major,this._adapter.format(t,s||(e?n:r)))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e=t[o].pos&&e<=t[l].pos&&({lo:o,hi:l}=b(t,\"pos\",e)),{pos:s,time:r}=t[o],{pos:a,time:n}=t[l]):(e>=t[o].time&&e<=t[l].time&&({lo:o,hi:l}=b(t,\"time\",e)),{time:s,pos:r}=t[o],{time:a,pos:n}=t[l]);i=a-s;return i?r+(n-r)*(e-s)/i:r}var Ja=Object.freeze({__proto__:null,CategoryScale:class extends Rs{static id=\"category\";static defaults={ticks:{callback:Aa}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){var e=this._addedLabels;if(e.length){const t=this.getLabels();for(var{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){var i,s,a,r,n,o,l;return P(t)||(i=this.getLabels(),r=e=isFinite(e)&&i[e]===t?e:(s=i,a=T(e,t=t),r=this._addedLabels,-1===(l=s.indexOf(t))?(o=a,r=r,\"string\"==typeof(n=t)?(o=s.push(n)-1,r.unshift({index:o,label:n})):isNaN(n)&&(o=null),o):l!==s.lastIndexOf(t)?a:l),n=i.length-1,null===r)?null:C(Math.round(r),0,n)}determineDataLimits(){var{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);\"ticks\"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){var e=this.min,i=this.max,t=this.options.offset,s=[];let a=this.getLabels();a=0===e&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(t?0:1),1),this._startValue=this.min-(t?.5:0);for(let t=e;t<=i;t++)s.push({value:t});return s}getLabelForValue(t){return Aa.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return null===(t=\"number\"!=typeof t?this.parse(t):t)?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:Ea,LogarithmicScale:Va,RadialLinearScale:ja,TimeScale:Ga,TimeSeriesScale:class extends Ga{static id=\"timeseries\";static defaults=Ga.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){var t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Za(e,this.min),this._tableRange=Za(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){var{min:e,max:i}=this,s=[],a=[];let r,n,o,l,h;for(r=0,n=t.length;r=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(r=0,n=s.length;rt.replace(\"rgb(\",\"rgba(\").replace(\")\",\", 0.5)\"));function er(t){return Qa[t%Qa.length]}function ir(t){return tr[t%tr.length]}function sr(r){let n=0;return(t,e)=>{var i,s,a,e=r.getDatasetMeta(e).controller;e instanceof ca?n=(s=t,a=n,s.backgroundColor=s.data.map(()=>er(a++)),a):e instanceof da?n=(s=t,i=n,s.backgroundColor=s.data.map(()=>ir(i++)),i):e&&(n=(e=t,t=n,e.borderColor=er(t),e.backgroundColor=ir(t),++t))}}function ar(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return 1}var rr={id:\"colors\",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){var s,a,r;i.enabled&&({data:{datasets:s},options:a}=t.config,r=a[\"elements\"],!i.forceOverride&&(ar(s)||a&&(a.borderColor||a.backgroundColor)||r&&ar(r))||(i=sr(t),s.forEach(i)))}};function nr(t){var e;t._decimated&&(e=t._data,delete t._decimated,delete t._data,Object.defineProperty(t,\"data\",{configurable:!0,enumerable:!0,writable:!0,value:e}))}function or(t){t.data.datasets.forEach(t=>{nr(t)})}var lr={id:\"decimation\",defaults:{algorithm:\"min-max\",enabled:!1},beforeElementsUpdate:(o,t,M)=>{if(M.enabled){const l=o.width;o.data.datasets.forEach((e,t)=>{var{_data:i,indexAxis:s}=e,h=o.getDatasetMeta(t),a=i||e.data;if(\"y\"!==wi([s,o.options.indexAxis])&&h.controller.supportsDecimation){t=o.scales[h.xAxisID];if((\"linear\"===t.type||\"time\"===t.type)&&!o.options.parsing){var{start:r,count:n}=function(t){var e=t.length;let i,s=0;var a=h[\"iScale\"],{min:r,max:n,minDefined:o,maxDefined:l}=a.getUserBounds();return o&&(s=C(b(t,a.axis,r).lo,0,e-1)),i=l?C(b(t,a.axis,n).hi+1,s,e)-s:e-s,{start:s,count:i}}(a);if(n<=(M.threshold||4*l))nr(e);else{let t;switch(P(i)&&(e._data=a,delete e.data,Object.defineProperty(e,\"data\",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),M.algorithm){case\"lttb\":t=function(s,a,r,t){var e=M.samples||t;if(r<=e)return s.slice(a,a+r);var n=[],o=(r-2)/(e-2);let l=0;const h=a+r-1;let c,d,u,g,f,p=a;for(n[l++]=s[p],c=0;cu&&(u=g,d=s[t],f=t);n[l++]=d,p=f}return n[l++]=s[h],n}(a,r,n,l);break;case\"min-max\":t=function(t,e,i,s){let a,r,n,o,l,h,c,d,u,g,f=0,p=0;var m=[],b=t[e].x,x=t[e+i-1].x-b;for(a=e;ag&&(g=o,c=a),f=(p*f+r.x)/++p;else{const i=a-1;if(!P(h)&&!P(c)){const e=Math.min(h,c),P=Math.max(h,c);e!==d&&e!==i&&m.push({...t[e],x:f}),P!==d&&P!==i&&m.push({...t[P],x:f})}0{e=cr(t,e,a);t=a[t],e=a[e];null!==s?(r.push({x:t.x,y:s}),r.push({x:e.x,y:s})):null!==i&&(r.push({x:i,y:t.y}),r.push({x:i,y:e.y}))}),r}(t)).length?new Ma({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function gr(t){return t&&!1!==t.fill}function fr(e,i,s){var a=[];for(let t=0;t{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class wr extends e{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const i=this.options.labels||{};let t=d(i.generateLabels,[this.chart],this)||[];i.filter&&(t=t.filter(t=>i.filter(t,this.chart.data))),i.sort&&(t=t.sort((t,e)=>i.sort(t,e,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){var{options:i,ctx:s}=this;if(i.display){var a=i.labels,r=z(a.font),n=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Mr(a,n);let t,e;s.font=r.string,this.isHorizontal()?(t=this.maxWidth,e=this._fitRows(o,n,a,l)+10):(e=this.maxHeight,t=this._fitCols(o,r,a,l)+10),this.width=Math.min(t,i.maxWidth||this.maxWidth),this.height=Math.min(e,i.maxHeight||this.maxHeight)}else this.width=this.height=0}_fitRows(t,i,s,a){const{ctx:r,maxWidth:n,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],h=this.lineWidths=[0],c=a+o;let d=t,u=(r.textAlign=\"left\",r.textBaseline=\"middle\",-1),g=-c;return this.legendItems.forEach((t,e)=>{t=s+i/2+r.measureText(t.text).width;(0===e||h[h.length-1]+t+2*o>n)&&(d+=c,h[h.length-(0{n=l,i=o,s=c,a=t,r=h;var i,s,a,r,{itemWidth:t,itemHeight:n}={itemWidth:function(t,e,i){let s=a.text;return s&&\"string\"!=typeof s&&(s=s.reduce((t,e)=>t.length>e.length?t:e)),t+e.size/2+i.measureText(s).width}(n,i,s),itemHeight:function(t){let e=r;return e=\"string\"!=typeof a.text?kr(a,t):e}(i.lineHeight)};0f&&(p+=m+d,g.push({width:m,height:b}),x+=m+d,v++,m=b=0),u[e]={left:x,top:b,col:v,width:t,height:n},m=Math.max(m,t),b+=n+d}),p+=m,g.push({width:m,height:b}),p}adjustHitBoxes(){if(this.options.display){var i=this._computeTitleHeight(),{legendHitBoxes:s,options:{align:a,labels:{padding:r},rtl:t}}=this,n=Pi(t,this.left,this.width);if(this.isHorizontal()){let t=0,e=E(a,this.left+r,this.right-this.lineWidths[t]);for(const o of s)t!==o.row&&(t=o.row,e=E(a,this.left+r,this.right-this.lineWidths[t])),o.top+=this.top+i+r,o.left=n.leftForLtr(n.x(e),o.width),e+=o.width+r}else{let t=0,e=E(a,this.top+i+r,this.bottom-this.columnSizes[t].height);for(const l of s)l.col!==t&&(t=l.col,e=E(a,this.top+i+r,this.bottom-this.columnSizes[t].height)),l.top=e,l.left+=this.left+r,l.left=n.leftForLtr(n.x(l.left),l.width),e+=l.height+r}}}isHorizontal(){return\"top\"===this.options.position||\"bottom\"===this.options.position}draw(){var t;this.options.display&&(Ve(t=this.ctx,this),this._draw(),Be(t))}_draw(){const{options:h,columnSizes:c,lineWidths:d,ctx:u}=this,{align:g,labels:f}=h,p=R.color,m=Pi(h.rtl,this.left,this.width),b=z(f.font),x=f[\"padding\"],v=b.size,_=v/2;let y;this.drawTitle(),u.textAlign=m.textAlign(\"left\"),u.textBaseline=\"middle\",u.lineWidth=.5,u.font=b.string;const{boxWidth:M,boxHeight:w,itemHeight:k}=Mr(f,v),S=this.isHorizontal(),P=this._computeTitleHeight(),D=(y=S?{x:E(g,this.left+x,this.right-d[0]),y:this.top+x+P,line:0}:{x:this.left+x,y:E(g,this.top+P+x,this.bottom-c[0].height),line:0},Di(this.ctx,h.textDirection),k+x);this.legendItems.forEach((t,e)=>{u.strokeStyle=t.fontColor,u.fillStyle=t.fontColor;var i=u.measureText(t.text).width,s=m.textAlign(t.textAlign||(t.textAlign=f.textAlign)),i=M+_+i;let a=y.x,r=y.y;m.setWidth(this.width),S?0this.right&&(r=y.y+=D,y.line++,a=y.x=E(g,this.left+x,this.right-d[y.line])):0this.bottom&&(a=y.x=a+c[y.line].width+x,y.line++,r=y.y=E(g,this.top+P+x,this.bottom-c[y.line].height));var e=m.x(a),n=r,o=t;if(!(isNaN(M)||M<=0||isNaN(w)||w<0)){u.save();var l=T(o.lineWidth,1);if(u.fillStyle=T(o.fillStyle,p),u.lineCap=T(o.lineCap,\"butt\"),u.lineDashOffset=T(o.lineDashOffset,0),u.lineJoin=T(o.lineJoin,\"miter\"),u.lineWidth=l,u.strokeStyle=T(o.strokeStyle,p),u.setLineDash(T(o.lineDash,[])),f.usePointStyle){const p={radius:w*Math.SQRT2/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:l},T=m.xPlus(e,M/2);ze(u,p,T,n+_,f.pointStyleWidth&&M)}else{const f=n+Math.max((v-w)/2,0),p=m.leftForLtr(e,M),T=Mi(o.borderRadius);u.beginPath(),Object.values(T).some(t=>0!==t)?je(u,{x:p,y:f,w:M,h:w,radius:T}):u.rect(p,f,M,w),u.fill(),0!==l&&u.stroke()}u.restore()}if(a=Dt(s,a+M+_,S?a+i:this.right,h.rtl),n=m.x(a),e=r,o=t,He(u,o.text,n,e+k/2,b,{strikethrough:o.hidden,textAlign:m.textAlign(o.textAlign)}),S)y.x+=i+x;else if(\"string\"!=typeof t.text){const h=b.lineHeight;y.y+=kr(t,h)}else y.y+=D}),Ci(this.ctx,h.textDirection)}drawTitle(){const s=this.options,a=s.title,r=z(a.font),n=I(a.padding);if(a.display){var o=Pi(s.rtl,this.left,this.width),l=this.ctx,h=a.position,c=r.size/2,c=n.top+c;let t,e=this.left,i=this.width;if(this.isHorizontal())i=Math.max(...this.lineWidths),t=this.top+c,e=E(s.align,e,this.right-i);else{const a=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);t=c+E(s.align,this.top,this.bottom-a-s.labels.padding-this._computeTitleHeight())}c=E(h,e,e+i);l.textAlign=o.textAlign(Pt(h)),l.textBaseline=\"middle\",l.strokeStyle=a.color,l.fillStyle=a.color,l.font=r.string,He(l,a.text,c,t,r)}}_computeTitleHeight(){var t=this.options.title,e=z(t.font),i=I(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,a;if(c(t,this.left,this.right)&&c(e,this.top,this.bottom))for(a=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const s=t.data.datasets,{usePointStyle:a,pointStyle:r,textAlign:n,color:o,useBorderRadius:l,borderRadius:h}=t.legend.options[\"labels\"];return t._getSortedDatasetMetas().map(t=>{var e=t.controller.getStyle(a?0:void 0),i=I(e.borderWidth);return{text:s[t.index].label,fillStyle:e.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:(i.width+i.height)/4,strokeStyle:e.borderColor,pointStyle:r||e.pointStyle,rotation:e.rotation,textAlign:n||e.textAlign,borderRadius:l&&(h||e.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:\"center\",text:\"\"}},descriptors:{_scriptable:t=>!t.startsWith(\"on\"),labels:{_scriptable:t=>![\"generateLabels\",\"filter\",\"sort\"].includes(t)}}};class Pr extends e{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){var i=this.options;this.left=0,this.top=0,i.display?(this.width=this.right=t,this.height=this.bottom=e,t=O(i.text)?i.text.length:1,this._padding=I(i.padding),e=t*z(i.font).lineHeight+this._padding.height,this.isHorizontal()?this.height=e:this.width=e):this.width=this.height=this.right=this.bottom=0}isHorizontal(){var t=this.options.position;return\"top\"===t||\"bottom\"===t}_drawArgs(t){var{top:e,left:i,bottom:s,right:a,options:r}=this,n=r.align;let o,l,h,c=0;return o=this.isHorizontal()?(l=E(n,i,a),h=e+t,a-i):(c=\"left\"===r.position?(l=i+t,h=E(n,s,e),-.5*S):(l=a-t,h=E(n,e,s),.5*S),s-e),{titleX:l,titleY:h,maxWidth:o,rotation:c}}draw(){var t,e,i,s,a,r=this.ctx,n=this.options;n.display&&(e=(t=z(n.font)).lineHeight/2+this._padding.top,{titleX:e,titleY:i,maxWidth:s,rotation:a}=this._drawArgs(e),He(r,n.text,0,0,t,{color:n.color,maxWidth:s,rotation:a,textAlign:Pt(n.align),textBaseline:\"middle\",translation:[e,i]}))}}var Dr={id:\"title\",_element:Pr,start(t,e,i){var s;t=t,i=i,s=new Pr({ctx:t.ctx,options:i,chart:t}),a.configure(t,s,i),a.addBox(t,s),t.titleBlock=s},stop(t){var e=t.titleBlock;a.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){var s=t.titleBlock;a.configure(t,s,i),s.options=i},defaults:{align:\"center\",display:!1,font:{weight:\"bold\"},fullSize:!0,padding:10,position:\"top\",text:\"\",weight:2e3},defaultRoutes:{color:\"color\"},descriptors:{_scriptable:!0,_indexable:!1}};const Cr=new WeakMap;var Or={id:\"subtitle\",start(t,e,i){var s=new Pr({ctx:t.ctx,options:i,chart:t});a.configure(t,s,i),a.addBox(t,s),Cr.set(t,s)},stop(t){a.removeBox(t,Cr.get(t)),Cr.delete(t)},beforeUpdate(t,e,i){var s=Cr.get(t);a.configure(t,s,i),s.options=i},defaults:{align:\"center\",display:!1,font:{weight:\"normal\"},fullSize:!0,padding:0,position:\"top\",text:\"\",weight:1500},defaultRoutes:{color:\"color\"},descriptors:{_scriptable:!0,_indexable:!1}};const Ar={average(t){if(!t.length)return!1;let e,i,s=0,a=0,r=0;for(e=0,i=t.length;et+e.before.length+e.lines.length+e.after.length,0),x=(b+=t.beforeBody.length+t.afterBody.length,d&&(p+=d*h.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b&&(p+=g*(e.displayColors?Math.max(o,l.lineHeight):l.lineHeight)+(b-g)*l.lineHeight+(b-1)*e.bodySpacing),u&&(p+=e.footerMarginTop+u*c.lineHeight+(u-1)*e.footerSpacing),0);function v(t){m=Math.max(m,i.measureText(t).width+x)}return i.save(),i.font=h.string,k(t.title,v),i.font=l.string,k(t.beforeBody.concat(t.afterBody),v),x=e.displayColors?n+2+e.boxPadding:0,k(s,t=>{k(t.before,v),k(t.lines,v),k(t.after,v)}),x=0,i.font=c.string,k(t.footer,v),i.restore(),{width:m+=f.width,height:p}}function Er(i,t,s){var e=s.yAlign||t.yAlign||function(){var{y:t,height:e}=s;return ti.height-e/2?\"bottom\":\"center\"}();return{xAlign:s.xAlign||t.xAlign||function(a,r,n,t){var{x:e,width:i}=n,{width:s,chartArea:{left:o,right:l}}=a;let h=\"center\";return\"center\"===t?h=e<=(o+l)/2?\"left\":\"right\":e<=i/2?h=\"left\":s-i/2<=e&&(h=\"right\"),h=function(t){var{x:e,width:i}=n,s=r.caretSize+r.caretPadding;return\"left\"===t&&e+i+s>a.width||\"right\"===t&&e-i-s<0}(h)?\"center\":h}(i,t,s,e),yAlign:e}}function Rr(t,i,e,s){var{caretSize:t,caretPadding:a,cornerRadius:r}=t,{xAlign:n,yAlign:o}=e,l=t+a,{topLeft:e,topRight:a,bottomLeft:r,bottomRight:h}=Mi(r);let c=function(){let{x:t,width:e}=i;return\"right\"===n?t-=e:\"center\"===n&&(t-=e/2),t}();var d=function(){let{y:t,height:e}=i;return\"top\"===o?t+=l:t-=\"bottom\"===o?e+l:e/2,t}();return\"center\"===o?\"left\"===n?c+=l:\"right\"===n&&(c-=l):\"left\"===n?c-=Math.max(e,r)+t:\"right\"===n&&(c+=Math.max(a,h)+t),{x:C(c,0,s.width-i.width),y:C(d,0,s.height-i.height)}}function Ir(t,e,i){i=I(i.padding);return\"center\"===e?t.x+t.width/2:\"right\"===e?t.x+t.width-i.right:t.x+i.left}function zr(t){return x([],Tr(t))}function Fr(t,e){e=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return e?t.override(e):t}const Vr={beforeTitle:t,title(t){if(0{var e={before:[],lines:[],after:[]},i=Fr(s,t);x(e.before,Tr(w(i,\"beforeLabel\",this,t))),x(e.lines,w(i,\"label\",this,t)),x(e.after,Tr(w(i,\"afterLabel\",this,t))),a.push(e)}),a}getAfterBody(t,e){return zr(w(e.callbacks,\"afterBody\",this,t))}getFooter(t,e){var e=e[\"callbacks\"],i=w(e,\"beforeFooter\",this,t),s=w(e,\"footer\",this,t),e=w(e,\"afterFooter\",this,t),t=x([],Tr(i));return t=x(t,Tr(s)),x(t,Tr(e))}_createItems(s){const t=this._active,a=this.chart.data,i=[],r=[],n=[];let e,o,l=[];for(e=0,o=t.length;es.filter(t,e,i,a))),k(l=s.itemSort?l.sort((t,e)=>s.itemSort(t,e,a)):l,t=>{var e=Fr(s.callbacks,t);i.push(w(e,\"labelColor\",this,t)),r.push(w(e,\"labelPointStyle\",this,t)),n.push(w(e,\"labelTextColor\",this,t))}),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=n,this.dataPoints=l}update(t,e){var i=this.options.setContext(this.getContext()),s=this._active;let a,r=[];if(s.length){const t=Ar[i.position].call(this,s,this._eventPosition),e=(r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i),this._size=Lr(this,i)),n=Object.assign({},t,e),o=Er(this.chart,i,n),l=Rr(i,n,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,a={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=r,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){t=this.getCaretPosition(t,i,s);e.lineTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineTo(t.x3,t.y3)}getCaretPosition(t,e,i){var{xAlign:s,yAlign:a}=this,{caretSize:i,cornerRadius:r}=i,{topLeft:r,topRight:n,bottomLeft:o,bottomRight:l}=Mi(r),{x:t,y:h}=t,{width:e,height:c}=e;let d,u,g,f,p,m;return\"center\"===a?(p=h+c/2,m=\"left\"===s?(d=t,u=d-i,f=p+i,p-i):(d=t+e,u=d+i,f=p-i,p+i),g=d):(u=\"left\"===s?t+Math.max(r,o)+i:\"right\"===s?t+e-Math.max(n,l)-i:this.caretX,g=\"top\"===a?(f=h,p=f-i,d=u-i,u+i):(f=h+c,p=f+i,d=u+i,u-i),m=f),{x1:d,x2:u,x3:g,y1:f,y2:p,y3:m}}drawTitle(t,e,i){var s=this.title,a=s.length;let r,n,o;if(a){var l=Pi(i.rtl,this.x,this.width);for(t.x=Ir(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline=\"middle\",r=z(i.titleFont),n=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,o=0;o0!==t)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,je(t,{x:e,y:f,w:l,h:o,radius:n}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),je(t,{x:i,y:f+1,w:l-2,h:o-2,radius:n}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(e,f,l,o),t.strokeRect(e,f,l,o),t.fillStyle=r.backgroundColor,t.fillRect(i,f+1,l-2,o-2))}t.fillStyle=this.labelTextColors[i]}drawBody(e,i,t){const s=this[\"body\"],{bodySpacing:a,bodyAlign:r,displayColors:n,boxHeight:o,boxWidth:l,boxPadding:h}=t,c=z(t.bodyFont);let d=c.lineHeight,u=0;function g(t){i.fillText(t,f.x(e.x+u),e.y+d/2),e.y+=d+a}const f=Pi(t.rtl,this.x,this.width),p=f.textAlign(r);let m,b,x,v,_,y,M;for(i.textAlign=r,i.textBaseline=\"middle\",i.font=c.string,e.x=Ir(this,p,t),i.fillStyle=t.bodyColor,k(this.beforeBody,g),u=n&&\"right\"!==p?\"center\"===r?l/2+h:l+2+h:0,v=0,y=s.length;v{var i=this.chart.getDatasetMeta(t);if(i)return{datasetIndex:t,element:i.data[e],index:e};throw new Error(\"Cannot find a dataset at index \"+t)}),i=!N(i,t),s=this._positionChanged(t,e);(i||s)&&(this._active=t,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var s=this.options,a=this._active||[],i=this._getActiveElements(t,a,e,i),r=this._positionChanged(i,t),a=e||!N(i,a)||r;return a&&(this._active=i,s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e)),a}_getActiveElements(t,e,i,s){var a=this.options;return\"mouseout\"===t.type?[]:s?(s=this.chart.getElementsAtEventForMode(t,a.mode,a,i),a.reverse&&s.reverse(),s):e}_positionChanged(t,e){var{caretX:i,caretY:s,options:a}=this,a=Ar[a.position].call(this,t,e);return!1!==a&&(i!==a.x||s!==a.y)}}var Nr={id:\"tooltip\",_element:Br,positioners:Ar,afterInit(t,e,i){i&&(t.tooltip=new Br({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){var e,i=t.tooltip;i&&i._willRender()&&!(e={tooltip:i})!==t.notifyPlugins(\"beforeTooltipDraw\",{...e,cancelable:!0})&&(i.draw(t.ctx),t.notifyPlugins(\"afterTooltipDraw\",e))},afterEvent(t,e){var i;t.tooltip&&(i=e.replay,t.tooltip.handleEvent(e.event,i,e.inChartArea))&&(e.changed=!0)},defaults:{enabled:!0,external:null,position:\"average\",backgroundColor:\"rgba(0,0,0,0.8)\",titleColor:\"#fff\",titleFont:{weight:\"bold\"},titleSpacing:2,titleMarginBottom:6,titleAlign:\"left\",bodyColor:\"#fff\",bodySpacing:2,bodyFont:{},bodyAlign:\"left\",footerColor:\"#fff\",footerSpacing:2,footerMarginTop:6,footerFont:{weight:\"bold\"},footerAlign:\"left\",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:\"#fff\",displayColors:!0,boxPadding:0,borderColor:\"rgba(0,0,0,0)\",borderWidth:0,animation:{duration:400,easing:\"easeOutQuart\"},animations:{numbers:{type:\"number\",properties:[\"x\",\"y\",\"width\",\"height\",\"caretX\",\"caretY\"]},opacity:{easing:\"linear\",duration:200}},callbacks:Vr},defaultRoutes:{bodyFont:\"font\",footerFont:\"font\",titleFont:\"font\"},descriptors:{_scriptable:t=>\"filter\"!==t&&\"itemSort\"!==t&&\"external\"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:\"animation\"}},additionalOptionScopes:[\"interaction\"]};return i.register(ua,Ja,Oa,s),i.helpers={...zi},i._adapters=aa,i.Animation=ps,i.Animations=ms,i.animator=r,i.controllers=M.controllers.items,i.DatasetController=Ds,i.Element=e,i.elements=Oa,i.Interaction=Wi,i.layouts=a,i.platforms=Ce,i.Scale=Rs,i.Ticks=ue,Object.assign(i,ua,Ja,Oa,s,Ce),i.Chart=i,\"undefined\"!=typeof window&&(window.Chart=i),i});","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).ApexCharts=e()}(this,function(){\"use strict\";function R(e,t){var i,a=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)),a}function P(e){for(var t=1;tt.length)&&(e=t.length);for(var i=0,a=new Array(e);i>16,s=e>>8&255,e=255&e;return\"#\"+(16777216+65536*(Math.round((i-a)*t)+a)+256*(Math.round((i-s)*t)+s)+(Math.round((i-e)*t)+e)).toString(16).slice(1)}},{key:\"shadeColor\",value:function(t,e){return o.isColorHex(e)?this.shadeHexColor(t,e):this.shadeRGBColor(t,e)}}],[{key:\"bind\",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:\"isObject\",value:function(t){return t&&\"object\"===y(t)&&!Array.isArray(t)&&null!=t}},{key:\"is\",value:function(t,e){return Object.prototype.toString.call(e)===\"[object \"+t+\"]\"}},{key:\"listToArray\",value:function(t){for(var e=[],i=0;ie.length?t:e})),t.length>e.length?t:e},0)}},{key:\"hexToRgba\",value:function(){for(var t=0{}[\\]\\\\/]/gi,e)}},{key:\"negToZero\",value:function(t){return t<0?0:t}},{key:\"moveIndexInArray\",value:function(t,e,i){if(i>=t.length)for(var a=i-t.length+1;a--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:\"extractNumber\",value:function(t){return parseFloat(t.replace(/[^\\d.]*/g,\"\"))}},{key:\"findAncestor\",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:\"setELstyles\",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:\"isNumber\",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:\"isFloat\",value:function(t){return Number(t)===t&&t%1!=0}},{key:\"isSafari\",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:\"isFirefox\",value:function(){return-1\";break;case\"easeinout\":t=\"<>\";break;case\"swing\":t=function(t){return--t*t*(2.70158*t+1.70158)+1};break;case\"bounce\":t=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case\"elastic\":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1};break;default:t=\"<>\"}this.w.globals.easing=t}}},{key:\"animateLine\",value:function(t,e,i,a){t.attr(e).animate(a).attr(i)}},{key:\"animateMarker\",value:function(t,e,i,a,s,o){t.attr({r:e=e||0,width:e,height:e}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll(function(){o()})}},{key:\"animateCircle\",value:function(t,e,i,a,s){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:\"animateRect\",value:function(t,e,i,a,s){t.attr(e).animate(a).attr(i).afterAll(function(){return s()})}},{key:\"animatePathsGradually\",value:function(t){var e=t.el,i=t.realIndex,a=t.j,s=t.fill,o=t.pathFrom,n=t.pathTo,r=t.speed,t=t.delay,l=this.w,h=0;l.config.chart.animations.animateGradually.enabled&&(h=l.config.chart.animations.animateGradually.delay),l.config.chart.animations.dynamicAnimation.enabled&&l.globals.dataChanged&&\"bar\"!==l.config.chart.type&&(h=0),this.morphSVG(e,i,a,\"line\"!==l.config.chart.type||l.globals.comboCharts?s:\"stroke\",o,n,r,t*h)}},{key:\"showDelayedElements\",value:function(){this.w.globals.delayedElements.forEach(function(t){t.el.classList.remove(\"apexcharts-element-hidden\")})}},{key:\"animationCompleted\",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),\"function\"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:\"morphSVG\",value:function(t,e,i,a,s,o,n,r){function l(t){return\"radar\"===c.config.chart.type&&(n=1),\"M 0 \".concat(c.globals.gridHeight)}var h=this,c=this.w;s=s||t.attr(\"pathFrom\"),o=o||t.attr(\"pathTo\");(!s||-1=i/1.1){for(var a=e.length-3;0s&&n.globals.seriesX[e][a]f.maxBubbleRadius&&(p=f.maxBubbleRadius),a.config.chart.animations.enabled||(u=p),n.x[c]),x=n.y[c],u=u||0;(g=null!==x&&void 0!==a.globals.series[o][d]?g:!1)&&(g=this.drawPoint(f,x,u,p,o,d,e),h.add(g)),l.add(h)}}},{key:\"drawPoint\",value:function(t,e,i,a,s,o,n){var r,l=this.w,h=s,c=new S(this.ctx),d=new C(this.ctx),g=new A(this.ctx),u=new w(this.ctx),p=new T(this.ctx),f=u.getMarkerConfig({cssClass:\"apexcharts-marker\",seriesIndex:h,dataPointIndex:o,finishRadius:\"bubble\"===l.config.chart.type||l.globals.comboCharts&&l.config.series[s]&&\"bubble\"===l.config.series[s].type?a:null}),g=(a=f.pSize,g.fillPath({seriesNumber:s,dataPointIndex:o,color:f.pointFillColor,patternUnits:\"objectBoundingBox\",value:l.globals.series[s][n]}));if(\"circle\"===f.shape?r=p.drawCircle(i):\"square\"!==f.shape&&\"rect\"!==f.shape||(r=p.drawRect(0,0,f.width-f.pointStrokeWidth/2,f.height-f.pointStrokeWidth/2,f.pRadius)),l.config.series[h].data[o]&&l.config.series[h].data[o].fillColor&&(g=l.config.series[h].data[o].fillColor),r.attr({x:t-f.width/2-f.pointStrokeWidth/2,y:e-f.height/2-f.pointStrokeWidth/2,cx:t,cy:e,fill:g,\"fill-opacity\":f.pointFillOpacity,stroke:f.pointStrokeColor,r:a,\"stroke-width\":f.pointStrokeWidth,\"stroke-dasharray\":f.pointStrokeDashArray,\"stroke-opacity\":f.pointStrokeOpacity}),l.config.chart.dropShadow.enabled&&(i=l.config.chart.dropShadow,d.dropShadow(r,i,s)),!this.initialAnim||l.globals.dataChanged||l.globals.resized?l.globals.animationEnded=!0:(p=l.config.chart.animations.speed,c.animateMarker(r,0,\"circle\"===f.shape?a:{width:f.width,height:f.height},p,l.globals.easing,function(){window.setTimeout(function(){c.animationCompleted(r)},100)})),l.globals.dataChanged&&\"circle\"===f.shape)if(this.dynamicAnim){var x,b,m,y=l.config.chart.animations.dynamicAnimation.speed;null!=(h=l.globals.previousPaths[s]&&l.globals.previousPaths[s][n])&&(x=h.x,b=h.y,m=void 0!==h.r?h.r:a);for(var v=0;vr.globals.gridHeight+h&&(e=r.globals.gridHeight+h/2),void 0===r.globals.dataLabelsRects[a]&&(r.globals.dataLabelsRects[a]=[]),r.globals.dataLabelsRects[a].push({x:t,y:e,width:n,height:h}),r.globals.dataLabelsRects[a].length-2),c=void 0!==r.globals.lastDrawnDataLabelsIndexes[a]?r.globals.lastDrawnDataLabelsIndexes[a][r.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;return void 0!==r.globals.dataLabelsRects[a][h]&&(t>(h=r.globals.dataLabelsRects[a][c]).x+h.width+2||e>h.y+h.height+2||t+ni.globals.gridWidth+e.textRects.width+10)&&(l=\"\"),t=i.globals.dataLabels.style.colors[n],\"function\"==typeof(t=(\"bar\"===i.config.chart.type||\"rangeBar\"===i.config.chart.type)&&i.config.plotOptions.bar.distributed||i.config.dataLabels.distributed?i.globals.dataLabels.style.colors[r]:t)&&(t=t({series:i.globals.series,seriesIndex:n,dataPointIndex:r,w:i})),u&&(t=u),p=g.offsetX,u=g.offsetY,\"bar\"!==i.config.chart.type&&\"rangeBar\"!==i.config.chart.type||(u=p=0),e.drawnextLabel&&((e=a.drawText({width:100,height:parseInt(g.style.fontSize,10),x:s+p,y:o+u,foreColor:t,textAnchor:h||g.textAnchor,text:l,fontSize:c||g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight||\"normal\"})).attr({class:\"apexcharts-datalabel\",cx:s,cy:o}),g.dropShadow.enabled&&(a=g.dropShadow,new C(this.ctx).dropShadow(e,a)),d.add(e),void 0===i.globals.lastDrawnDataLabelsIndexes[n]&&(i.globals.lastDrawnDataLabelsIndexes[n]=[]),i.globals.lastDrawnDataLabelsIndexes[n].push(r)))}},{key:\"addBackgroundToDataLabel\",value:function(t,e){var i=this.w,a=i.config.dataLabels.background,s=a.padding,o=a.padding/2,n=e.width,r=e.height,e=new T(this.ctx).drawRect(e.x-s,e.y-o/2,n+2*s,r+o,a.borderRadius,\"transparent\"===i.config.chart.background?\"#fff\":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new C(this.ctx).dropShadow(e,a.dropShadow),e}},{key:\"dataLabelsBackground\",value:function(){var t=this.w;if(\"bubble\"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(\".apexcharts-datalabels text\"),i=0;ie.globals.gridHeight&&(h=e.globals.gridHeight-d)),{bcx:o,bcy:s,dataLabelsX:t,dataLabelsY:h}}},{key:\"calculateBarsDataLabelsPosition\",value:function(t){var e=this.w,i=t.x,a=t.i,s=t.j,o=t.bcy,n=t.barHeight,r=t.barWidth,l=t.textRects,h=t.dataLabelsX,c=t.strokeWidth,d=t.barDataLabelsConfig,g=t.offX,t=t.offY,u=e.globals.gridHeight/e.globals.dataPoints,r=Math.abs(r),u=o-(this.barCtx.isRangeBar?0:u)+n/2+l.height/2+t-3,p=this.barCtx.series[a][s]<0,f=i;switch(this.barCtx.isReversed&&(f=i+r-(p?2*r:0),i=e.globals.gridWidth-r),d.position){case\"center\":h=p?f+r/2-g:Math.max(l.width/2,f-r/2)+g;break;case\"bottom\":h=p?f+r-c-Math.round(l.width/2)-g:f-r+c+Math.round(l.width/2)+g;break;case\"top\":h=p?f-c+Math.round(l.width/2)-g:f-c-Math.round(l.width/2)+g}return e.config.chart.stacked||(h<0?h=h+l.width+c:h+l.width/2>e.globals.gridWidth&&(h=e.globals.gridWidth-l.width-c)),{bcx:i,bcy:o,dataLabelsX:h,dataLabelsY:u}}},{key:\"drawCalculatedDataLabels\",value:function(t){var e=t.x,i=t.y,a=t.val,s=t.i,o=t.j,n=t.textRects,r=t.barHeight,l=t.barWidth,t=t.dataLabelsConfig,h=this.w,c=\"rotate(0)\",d=(\"vertical\"===h.config.plotOptions.bar.dataLabels.orientation&&(c=\"rotate(-90, \".concat(e,\", \").concat(i,\")\")),new v(this.barCtx.ctx)),g=new T(this.barCtx.ctx),u=t.formatter,p=null,f=-1Math.abs(l)&&(f=\"\"):n.height/1.6>Math.abs(r)&&(f=\"\")),u=P({},t),this.barCtx.isHorizontal&&a<0&&(\"start\"===t.textAnchor?u.textAnchor=\"end\":\"end\"===t.textAnchor&&(u.textAnchor=\"start\")),d.plotDataLabelsText({x:e,y:i,text:f,i:s,j:o,parent:p,dataLabelsConfig:u,alwaysDrawDataLabel:!0,offsetCorrection:!0})),p}}]),e}(),f=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass=\"legend-mouseover-inactive\"}return n(e,[{key:\"getAllSeriesEls\",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName(\"apexcharts-series\")}},{key:\"getSeriesByName\",value:function(t){return this.w.globals.dom.baseEl.querySelector(\".apexcharts-inner .apexcharts-series[seriesName='\".concat(M.escapeString(t),\"']\"))}},{key:\"isSeriesHidden\",value:function(t){var t=this.getSeriesByName(t),e=parseInt(t.getAttribute(\"data:realIndex\"),10);return{isHidden:t.classList.contains(\"apexcharts-series-collapsed\"),realIndex:e}}},{key:\"addCollapsedClassToSeries\",value:function(i,a){var t=this.w;function e(t){for(var e=0;e=n.from&&l<=n.to&&o[r].classList.remove(a.legendInactiveClass)}}else\"mouseout\"===t.type&&i(\"remove\")}},{key:\"getActiveConfigSeriesIndex\",value:function(){var a=0e.globals.minX&&e.globals.seriesX[i][a]=t.from&&e[i][a]<=t.to&&(n=t.color)}),s.config.series[i].data[a]&&s.config.series[i].data[a].fillColor&&(n=s.config.series[i].data[a].fillColor),o.fillPath({seriesNumber:this.barCtx.barOptions.distributed?r:t,dataPointIndex:a,color:n,value:e[i][a]})}},{key:\"getStrokeWidth\",value:function(t,e,i){var a=0,s=this.w;return void 0===this.barCtx.series[t][e]||null===this.barCtx.series[t][e]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,a=s.config.stroke.show&&!this.barCtx.isNullValue?Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth:a}},{key:\"barBackground\",value:function(t){var e=t.j,i=t.i,a=t.x1,s=t.x2,o=t.y1,n=t.y2,t=t.elSeries,r=this.w,l=new T(this.barCtx.ctx),h=new f(this.barCtx.ctx).getActiveConfigSeriesIndex();0=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length),h=this.barCtx.barOptions.colors.backgroundBarColors[e],i=l.drawRect(void 0!==a?a:0,void 0!==o?o:0,void 0!==s?s:r.globals.gridWidth,void 0!==n?n:r.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,h,this.barCtx.barOptions.colors.backgroundBarOpacity),t.add(i),i.node.classList.add(\"apexcharts-backgroundBar\"))}},{key:\"getColumnPaths\",value:function(t){var e=t.barWidth,i=t.barXPosition,a=t.yRatio,s=t.y1,o=t.y2,n=t.strokeWidth,r=t.series,l=t.realIndex,h=t.i,c=t.j,t=t.w,d=new T(this.barCtx.ctx),n=Array.isArray(n)?n[l]:n,a=this.getRoundedBars(t,{barWidth:e,strokeWidth:n=n||0,yRatio:a,barXPosition:i,y1:s,y2:o},r,h,c),o=i,r=i+e,i=d.move(o,s),e=d.move(o,s),g=d.line(r-n,s);return 0r.length-1?r.length-1:a]:r,t.config.chart.stacked&&1this.barOptions.dataLabels.maxItems&&console.warn(\"WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.\");for(var n=0,r=0;n=w.globals.dataPoints-n.count&&(k.node.setAttribute(\"stroke-dasharray\",n.dashArray),k.node.setAttribute(\"stroke-width\",n.strokeWidth),k.node.setAttribute(\"fill-opacity\",n.fillOpacity)),void 0!==g&&void 0!==u&&(k.attr(\"data-range-y1\",g),k.attr(\"data-range-y2\",u)),new C(this.ctx).setSelectionFilter(k,e,s),h.add(k);r=new q(this).handleBarDataLabels({x:c,y:d,y1:g,y2:u,i:o,j:s,series:p,realIndex:e,barHeight:f,barWidth:x,barYPosition:b,renderedPath:k,visibleSeries:v});return null!==r&&m.add(r),h.add(m),y&&h.add(y),h}},{key:\"drawBarPaths\",value:function(t){var e=t.indexes,i=t.barHeight,a=t.strokeWidth,s=t.zeroW,o=(t.x,t.y),n=t.yDivision,t=t.elSeries,r=this.w,l=e.i,h=e.j,c=(o=r.globals.isXNumeric?(r.globals.seriesX[l][h]-r.globals.minX)/this.invertedXRatio-i:o)+i*this.visibleI,d=this.barHelpers.getXForValue(this.series[l][h],s),a=this.barHelpers.getBarpaths({barYPosition:c,barHeight:i,x1:s,x2:d,strokeWidth:a,series:this.series,realIndex:e.realIndex,i:l,j:h,w:r});return r.globals.isXNumeric||(o+=n),this.barHelpers.barBackground({j:h,i:l,y1:c-i*this.visibleI,y2:i*this.seriesLen,elSeries:t}),{pathTo:a.pathTo,pathFrom:a.pathFrom,x:d,y:o,goalX:this.barHelpers.getGoalValues(\"x\",s,null,l,h),barYPosition:c}}},{key:\"drawColumnPaths\",value:function(t){var e=t.indexes,i=t.x,a=(t.y,t.xDivision),s=t.barWidth,o=t.zeroH,n=t.strokeWidth,t=t.elSeries,r=this.w,l=e.realIndex,h=e.i,c=e.j,d=e.bc,l=(r.globals.isXNumeric&&(r.globals.seriesX[l=l].length||(l=r.globals.maxValsInArrayIndex),i=(r.globals.seriesX[l][c]-r.globals.minX)/this.xRatio-s*this.seriesLen/2),i+s*this.visibleI),g=this.barHelpers.getYForValue(this.series[h][c],o),e=this.barHelpers.getColumnPaths({barXPosition:l,barWidth:s,y1:o,y2:g,strokeWidth:n,series:this.series,realIndex:e.realIndex,i:h,j:c,w:r});return r.globals.isXNumeric||(i+=a),this.barHelpers.barBackground({bc:d,j:c,i:h,x1:l-n/2-s*this.visibleI,x2:s*this.seriesLen+n/2,elSeries:t}),{pathTo:e.pathTo,pathFrom:e.pathFrom,x:i,y:g,goalY:this.barHelpers.getGoalValues(\"y\",null,o,h,c),barXPosition:l}}},{key:\"getPreviousPath\",value:function(t,e){for(var i,a=this.w,s=0;s
    '+(i||\"\")+'
    '+t.ylabel+' '+t.start+' - '+t.end+\"
    \"}}]),e}(),c=function(){function e(t){s(this,e),this.opts=t}return n(e,[{key:\"line\",value:function(){return{chart:{animations:{easing:\"swing\"}},dataLabels:{enabled:!1},stroke:{width:5,curve:\"straight\"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:\"sparkline\",value:function(t){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text=\"\",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0;return M.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:\"bar\",value:function(){return{chart:{stacked:!1,animations:{easing:\"swing\"}},plotOptions:{bar:{dataLabels:{position:\"center\"}}},dataLabels:{style:{colors:[\"#fff\"]},background:{enabled:!1}},stroke:{width:0,lineCap:\"round\"},fill:{opacity:.85},legend:{markers:{shape:\"square\",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:\"between\",crosshairs:{width:\"barWidth\",position:\"back\",fill:{type:\"gradient\"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:\"candlestick\",value:function(){var a=this;return{stroke:{width:1,colors:[\"#333\"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var e=t.seriesIndex,i=t.dataPointIndex,t=t.w;return a._getBoxTooltip(t,e,i,[\"Open\",\"High\",\"\",\"Low\",\"Close\"],\"candlestick\")}},states:{active:{filter:{type:\"none\"}}},xaxis:{crosshairs:{width:1}}}}},{key:\"boxPlot\",value:function(){var a=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:[\"#24292e\"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var e=t.seriesIndex,i=t.dataPointIndex,t=t.w;return a._getBoxTooltip(t,e,i,[\"Minimum\",\"Q1\",\"Median\",\"Q3\",\"Maximum\"],\"boxPlot\")}},markers:{size:5,strokeWidth:1,strokeColors:\"#111\"},xaxis:{crosshairs:{width:1}}}}},{key:\"rangeBar\",value:function(){return{stroke:{width:0,lineCap:\"square\"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:\"center\"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,a=e.dataPointIndex,e=e.w,s=e.globals.seriesRangeStart[i][a];return e.globals.seriesRangeEnd[i][a]-s},background:{enabled:!1},style:{colors:[\"#fff\"]}},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?(e=(i=new m((e=t).ctx,null)).getTooltipValues(e),a=e.color,s=e.seriesName,o=e.ylabel,n=e.startVal,e=e.endVal,i.buildCustomTooltipHTML({color:a,seriesName:s,ylabel:o,start:n,end:e})):(i=(a=new m((i=t).ctx,null)).getTooltipValues(i),s=i.color,o=i.seriesName,n=i.ylabel,e=i.start,i=i.end,a.buildCustomTooltipHTML({color:s,seriesName:o,ylabel:n,start:e,end:i}));var e,i,a,s,o,n}},xaxis:{tickPlacement:\"between\",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:\"area\",value:function(){return{stroke:{width:4,fill:{type:\"solid\",gradient:{inverseColors:!1,shade:\"light\",type:\"vertical\",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:\"gradient\",gradient:{inverseColors:!1,shade:\"light\",type:\"vertical\",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:\"brush\",value:function(t){return M.extend(t,{chart:{toolbar:{autoSelected:\"selection\",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:\"stacked100\",value:function(i){i.dataLabels=i.dataLabels||{},i.dataLabels.formatter=i.dataLabels.formatter||void 0;var t=i.dataLabels.formatter;return i.yaxis.forEach(function(t,e){i.yaxis[e].min=0,i.yaxis[e].max=100}),\"bar\"===i.chart.type&&(i.dataLabels.formatter=t||function(t){return\"number\"==typeof t?t&&t.toFixed(0)+\"%\":t}),i}},{key:\"convertCatToNumeric\",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:\"convertCatToNumericXaxis\",value:function(t,e,i){t.xaxis.type=\"numeric\",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return M.isNumber(t)?Math.floor(t):t};var a=t.xaxis.labels.formatter,s=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return(s=i&&i.length?i.map(function(t){return Array.isArray(t)?t:String(t)}):s)&&s.length&&(t.xaxis.labels.formatter=function(t){return M.isNumber(t)?a(s[Math.floor(t)-1]):a(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||\"dataPoints\",t}},{key:\"bubble\",value:function(){return{dataLabels:{style:{colors:[\"#fff\"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:\"solid\",gradient:{shade:\"light\",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:\"scatter\",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:\"heatmap\",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:[\"#fff\"]}},stroke:{colors:[\"#fff\"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:\"top\",markers:{shape:\"square\",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:\"treemap\",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:[\"#fff\"]}},stroke:{show:!0,width:2,colors:[\"#fff\"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:\"pie\",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+\"%\"},style:{colors:[\"#fff\"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:[\"#fff\"]},fill:{opacity:1,gradient:{shade:\"light\",stops:[0,100]}},tooltip:{theme:\"dark\",fillSeriesColor:!0},legend:{position:\"right\"}}}},{key:\"donut\",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+\"%\"},style:{colors:[\"#fff\"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:[\"#fff\"]},fill:{opacity:1,gradient:{shade:\"light\",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:\"dark\",fillSeriesColor:!0},legend:{position:\"right\"}}}},{key:\"polarArea\",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount||6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+\"%\"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:\"dark\",fillSeriesColor:!0},legend:{position:\"right\"}}}},{key:\"radar\",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY||6,{dataLabels:{enabled:!1,style:{fontSize:\"11px\"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:[\"#a8a8a8\"],fontSize:\"11px\"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:\"radialBar\",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:\"dark\",shadeIntensity:.4,inverseColors:!1,type:\"diagonal2\",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:\"right\"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:\"_getBoxTooltip\",value:function(t,e,i,a,s){var o=t.globals.seriesCandleO[e][i],n=t.globals.seriesCandleH[e][i],r=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],h=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==s?'
    \\n '.concat(t.config.series[e].name||\"series-\"+(e+1),\": \").concat(t.globals.series[e][i],\"\\n
    \"):'
    ')+\"
    \".concat(a[0],': ')+o+\"
    \"+\"
    \".concat(a[1],': ')+n+\"
    \"+(r?\"
    \".concat(a[2],': ')+r+\"
    \":\"\")+\"
    \".concat(a[3],': ')+l+\"
    \"+\"
    \".concat(a[4],': ')+h+\"
    \"}}]),e}(),p=function(){function e(t){s(this,e),this.opts=t}return n(e,[{key:\"init\",value:function(t){var e,t=t.responsiveOverride,i=this.opts,a=new d,s=new c(i),a=(this.chartType=i.chart.type,\"histogram\"===this.chartType&&(i.chart.type=\"bar\",i=M.extend({plotOptions:{bar:{columnWidth:\"99.99%\"}}},i)),i=this.extendYAxis(i),i=this.extendAnnotations(i),a.init()),o={},t=(i&&\"object\"===y(i)&&(e={},e=-1!==[\"line\",\"area\",\"bar\",\"candlestick\",\"boxPlot\",\"rangeBar\",\"histogram\",\"bubble\",\"scatter\",\"heatmap\",\"treemap\",\"pie\",\"polarArea\",\"donut\",\"radar\",\"radialBar\"].indexOf(i.chart.type)?s[i.chart.type]():s.line(),i.chart.brush&&i.chart.brush.enabled&&(e=s.brush(e)),i.chart.stacked&&\"100%\"===i.chart.stackType&&(i=s.stacked100(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},t||(i.xaxis.convertedCatToNumeric=!1),((i=this.checkForCatToNumericXAxis(this.chartType,e,i)).chart.sparkline&&i.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(e=s.sparkline(e)),o=M.extend(a,e)),M.extend(o,window.Apex)),a=M.extend(t,i);return this.handleUserInputErrors(a)}},{key:\"checkForCatToNumericXAxis\",value:function(t,e,i){var a=new c(i),s=(\"bar\"===t||\"boxPlot\"===t)&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,o=\"datetime\"!==i.xaxis.type&&\"numeric\"!==i.xaxis.type,e=i.xaxis.tickPlacement||e.xaxis&&e.xaxis.tickPlacement;return i=s||(\"pie\"===t||\"polarArea\"===t||\"donut\"===t||\"radar\"===t||\"radialBar\"===t||\"heatmap\"===t)||!o||\"between\"===e?i:a.convertCatToNumeric(i)}},{key:\"extendYAxis\",value:function(i,t){var a=new d,e=((void 0===i.yaxis||!i.yaxis||Array.isArray(i.yaxis)&&0===i.yaxis.length)&&(i.yaxis={}),i.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(i.yaxis=M.extend(i.yaxis,window.Apex.yaxis)),i.yaxis.constructor!==Array?i.yaxis=[M.extend(a.yAxis,i.yaxis)]:i.yaxis=M.extendArray(i.yaxis,a.yAxis),!1),s=(i.yaxis.forEach(function(t){t.logarithmic&&(e=!0)}),i.series);return t&&!s&&(s=t.config.series),e&&s.length!==i.yaxis.length&&s.length&&(i.yaxis=s.map(function(t,e){return t.name||(s[e].name=\"series-\".concat(e+1)),i.yaxis[e]?(i.yaxis[e].seriesName=s[e].name,i.yaxis[e]):((t=M.extend(a.yAxis,i.yaxis[0])).show=!1,t)})),e&&1e.length?t:i},0),n=0;ne.length?t:e},0),e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t)}}]),e}(),b=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"getLabel\",value:function(t,e,i,a){var s,o=4s.globals.gridWidth||(e=e+(a=this.offY+s.config.xaxis.axisTicks.offsetY)+s.config.xaxis.axisTicks.height,\"top\"===s.config.xaxis.position&&(e=a-s.config.xaxis.axisTicks.height),s.config.xaxis.axisTicks.show&&(t=new T(this.ctx).drawLine(t+s.config.xaxis.axisTicks.offsetX,a+s.config.xaxis.offsetY,o+s.config.xaxis.axisTicks.offsetX,e+s.config.xaxis.offsetY,s.config.xaxis.axisTicks.color),i.add(t),t.node.classList.add(\"apexcharts-xaxis-tick\")))}},{key:\"getXAxisTicksPositions\",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,a=t.globals.padHorizontal;if(0e.globals.gridWidth&&!e.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var u=0;un)&&(n=i.barPadForNumericAxis,r=i.barPadForNumericAxis),i.dom.elGridRect=a.drawRect(-s/2-n-2,-s/2,i.gridWidth+s+r+n+4,i.gridHeight+s,0,\"#fff\"),t.globals.markers.largestSize+1),r=(i.dom.elGridRectMarker=a.drawRect(2*-o,2*-o,i.gridWidth+4*o,i.gridHeight+4*o,0,\"#fff\"),i.dom.elGridRectMask.appendChild(i.dom.elGridRect.node),i.dom.elGridRectMarkerMask.appendChild(i.dom.elGridRectMarker.node),i.dom.baseEl.querySelector(\"defs\"));r.appendChild(i.dom.elGridRectMask),r.appendChild(i.dom.elForecastMask),r.appendChild(i.dom.elNonForecastMask),r.appendChild(i.dom.elGridRectMarkerMask)}},{key:\"_drawGridLines\",value:function(t){var e=t.i,i=t.x1,a=t.y1,s=t.x2,o=t.y2,n=t.xCount,t=t.parent,r=this.w;if(!(0===e&&r.globals.skipFirstTimelinelabel||e===n-1&&r.globals.skipLastTimelinelabel&&!r.config.xaxis.labels.formatter||\"radar\"===r.config.chart.type)){r.config.grid.xaxis.lines.show&&this._drawGridLine({x1:i,y1:a,x2:s,y2:o,parent:t});n=0;if(r.globals.hasGroups&&\"between\"===r.config.xaxis.tickPlacement){var l=r.globals.groups;if(l){for(var h=0,c=0;h=i.config.grid.row.colors.length&&(r=0),this._drawGridBandRect({c:r,x1:0,y1:a,x2:o,y2:s,type:\"row\"}),a+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&0=i.config.grid.column.colors.length&&(u=0),this._drawGridBandRect({c:u,x1:h,y1:0,x2:c,y2:d,type:\"column\"}),h+=i.globals.gridWidth/l}}]),i}(),E=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"niceScale\",value:function(t,e){var i=2=e&&r.pop()}return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:\"linearScale\",value:function(t,e){for(var i=2=d.xaxis.min){s=e;break}var n,r,o=p.globals.minYArr[t],l=p.globals.maxYArr[t],h=p.globals.stackedSeriesTotals;p.globals.series.forEach(function(i,t){var e=i[s];u?(e=h[s],n=r=e,h.forEach(function(t,e){g[e]<=d.xaxis.max&&g[e]>=d.xaxis.min&&(r=d.xaxis.min&&(o=s=i,p.globals.series.forEach(function(t,e){null!==i&&(s=Math.min(t[a],s),o=Math.max(t[a],o))}),rh[d][g]&&h[d][g]<0&&(r=h[d][g])):o.hasNullValues=!0}}return\"rangeBar\"===s.chart.type&&o.seriesRangeStart.length&&o.isBarHorizontal&&(r=e),{minY:r=\"bar\"===s.chart.type&&(r<0&&n<0&&(n=0),r===Number.MIN_VALUE)?0:r,maxY:n,lowestY:e,highestY:i}}},{key:\"setYRange\",value:function(){var i=this.w.globals,e=this.w.config,t=(i.maxY=-Number.MAX_VALUE,i.minY=Number.MIN_VALUE,Number.MAX_VALUE);if(i.isMultipleYAxis)for(var a=0;ae.dataPoints&&0!==e.dataPoints&&(t=e.dataPoints-1)):\"dataPoints\"===i.xaxis.tickAmount?(1e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0}).reverse(),o=new p({}),i=function(){var t=0t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:\"getLargestStringFromMultiArr\",value:function(t,e){var i,a;return this.w.globals.isMultiLineX&&(i=e.map(function(t,e){return Array.isArray(t)?t.length:1}),a=Math.max.apply(Math,g(i)),t=e[i.indexOf(a)]),t}}]),e}(),ct=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return n(e,[{key:\"getxAxisLabelsCoords\",value:function(){var t,e,i,a,s,o,n,r=this.w,l=r.globals.labels.slice();return r.config.xaxis.convertedCatToNumeric&&0===l.length&&(l=r.globals.categoryLabels),0e.length?t:e},0)),o=e,e=(n=new x(this.dCtx.ctx)).xLabelFormat(s,e,o,{i:void 0,dateFormatter:new k(this.dCtx.ctx).formatDate,w:r}),i=n.xLabelFormat(s,i,o,{i:void 0,dateFormatter:new k(this.dCtx.ctx).formatDate,w:r}),(r.config.xaxis.convertedCatToNumeric&&void 0===e||\"\"===String(e).trim())&&(i=e=\"1\"),s=n=(a=new T(this.dCtx.ctx)).getTextRects(e,r.config.xaxis.labels.style.fontSize),e!==i&&(s=a.getTextRects(i,r.config.xaxis.labels.style.fontSize)),(t={width:(n.width>=s.width?n:s).width,height:(n.height>=s.height?n:s).height}).width*l.length>r.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==r.config.xaxis.labels.rotate||r.config.xaxis.labels.rotateAlways?r.globals.isBarHorizontal||(r.globals.rotateXLabels=!0,n=(o=function(t){return a.getTextRects(t,r.config.xaxis.labels.style.fontSize,r.config.xaxis.labels.style.fontFamily,\"rotate(\".concat(r.config.xaxis.labels.rotate,\" 0 0)\"),!1)})(e),e!==i&&(s=o(i)),t.height=(n.height>s.height?n:s).height/1.5,t.width=(n.width>s.width?n:s).width):r.globals.rotateXLabels=!1),{width:(t=r.config.xaxis.labels.show?t:{width:0,height:0}).width,height:t.height}}},{key:\"getxAxisGroupLabelsCoords\",value:function(){var t,e,i,a,s,o,n=this.w;return n.globals.hasGroups?(t=(null==(t=n.config.xaxis.group.style)?void 0:t.fontSize)||n.config.xaxis.labels.style.fontSize,i=n.globals.groups.map(function(t){return t.title}),e=M.getLargestStringFromArr(i),i=this.dCtx.dimHelpers.getLargestStringFromMultiArr(e,i),o=s=(a=new T(this.dCtx.ctx)).getTextRects(e,t),e!==i&&(o=a.getTextRects(i,t)),e={width:(s.width>=o.width?s:o).width,height:(s.height>=o.height?s:o).height},{width:(e=n.config.xaxis.labels.show?e:{width:0,height:0}).width,height:e.height}):{width:0,height:0}}},{key:\"getxAxisTitleCoords\",value:function(){var t=this.w,e=0,i=0;return void 0!==t.config.xaxis.title.text&&(e=(t=new T(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize)).width,i=t.height),{width:e,height:i}}},{key:\"getxAxisTimeScaleLabelsCoords\",value:function(){var t=this.w,e=(this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice(),this.dCtx.timescaleLabels.map(function(t){return t.value})),i=e.reduce(function(t,e){return void 0===t?(console.error(\"You have possibly supplied invalid Date format. Please supply a valid JavaScript Date\"),0):t.length>e.length?t:e},0),i=new T(this.dCtx.ctx).getTextRects(i,t.config.xaxis.labels.style.fontSize);return 1.05*i.width*e.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),i}},{key:\"additionalPaddingXLabels\",value:function(t){function i(t,e){var i,a;-1===n.collapsedSeriesIndices.indexOf(e)&&(e=t,s.dCtx.timescaleLabels&&s.dCtx.timescaleLabels.length?(t=s.dCtx.timescaleLabels[0],i=s.dCtx.timescaleLabels[s.dCtx.timescaleLabels.length-1].position+h/1.75-s.dCtx.yAxisWidthRight,t=t.position-h/1.75+s.dCtx.yAxisWidthLeft,a=\"right\"===o.config.legend.position&&0n.svgWidth-n.translateX-a&&(n.skipLastTimelinelabel=!0),t<-(e.show&&!e.floating||\"bar\"!==r.chart.type&&\"candlestick\"!==r.chart.type&&\"rangeBar\"!==r.chart.type&&\"boxPlot\"!==r.chart.type?10:h/1.75)&&(n.skipFirstTimelinelabel=!0)):\"datetime\"===l?s.dCtx.gridPad.rightString(n.niceMax).length?s:n.niceMax,{seriesIndex:e,dataPointIndex:-1,w:h}))&&0!==n.length||(n=s),h.globals.isBarHorizontal&&(d=0,s=h.globals.labels.slice(),n=a(n=M.getLargestStringFromArr(s),{seriesIndex:e,dataPointIndex:-1,w:h}),i=l.dCtx.dimHelpers.getLargestStringFromMultiArr(n,s)),a=new T(l.dCtx.ctx),e=\"rotate(\".concat(t.labels.rotate,\" 0 0)\"),o=s=a.getTextRects(n,t.labels.style.fontSize,t.labels.style.fontFamily,e,!1),n!==i&&(o=a.getTextRects(i,t.labels.style.fontSize,t.labels.style.fontFamily,e,!1)),c.push({width:(r>o.width||r>s.width?r:(o.width>s.width?o:s).width)+d,height:(o.height>s.height?o:s).height})):c.push({width:0,height:0})}),c}},{key:\"getyAxisTitleCoords\",value:function(){var s=this,t=this.w,o=[];return t.config.yaxis.map(function(t,e){var i,a;t.show&&void 0!==t.title.text?(a=new T(s.dCtx.ctx),i=\"rotate(\".concat(t.title.rotate,\" 0 0)\"),a=a.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,i,!1),o.push({width:a.width,height:a.height})):o.push({width:0,height:0})}),o}},{key:\"getTotalYAxisWidth\",value:function(){function i(t,e){var i=s.config.yaxis[e].floating,a=0;0a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeighth&&(this.yAxisWidth=h)}}]),e}(),ut=function(){function e(t){s(this,e),this.w=t.w,this.lgCtx=t}return n(e,[{key:\"getLegendStyles\",value:function(){var t=document.createElement(\"style\"),e=(t.setAttribute(\"type\",\"text/css\"),document.createTextNode(\"\\t\\n \\t\\n .apexcharts-legend {\\t\\n display: flex;\\t\\n overflow: auto;\\t\\n padding: 0 10px;\\t\\n }\\t\\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\\t\\n flex-wrap: wrap\\t\\n }\\t\\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\\t\\n flex-direction: column;\\t\\n bottom: 0;\\t\\n }\\t\\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\\t\\n justify-content: flex-start;\\t\\n }\\t\\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\\t\\n justify-content: center; \\t\\n }\\t\\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\\t\\n justify-content: flex-end;\\t\\n }\\t\\n .apexcharts-legend-series {\\t\\n cursor: pointer;\\t\\n line-height: normal;\\t\\n }\\t\\n .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\\t\\n display: flex;\\t\\n align-items: center;\\t\\n }\\t\\n .apexcharts-legend-text {\\t\\n position: relative;\\t\\n font-size: 14px;\\t\\n }\\t\\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\\t\\n pointer-events: none;\\t\\n }\\t\\n .apexcharts-legend-marker {\\t\\n position: relative;\\t\\n display: inline-block;\\t\\n cursor: pointer;\\t\\n margin-right: 3px;\\t\\n border-style: solid;\\n }\\t\\n \\t\\n .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\\t\\n display: inline-block;\\t\\n }\\t\\n .apexcharts-legend-series.apexcharts-no-click {\\t\\n cursor: auto;\\t\\n }\\t\\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\\t\\n display: none !important;\\t\\n }\\t\\n .apexcharts-inactive-legend {\\t\\n opacity: 0.45;\\t\\n }\"));return t.appendChild(e),t}},{key:\"getLegendBBox\",value:function(){var t=this.w.globals.dom.baseEl.querySelector(\".apexcharts-legend\").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:\"appendToForeignObject\",value:function(){var t=this.w.globals,e=(t.dom.elLegendForeign=document.createElementNS(t.SVGNS,\"foreignObject\"),t.dom.elLegendForeign);e.setAttribute(\"x\",0),e.setAttribute(\"y\",0),e.setAttribute(\"width\",t.svgWidth),e.setAttribute(\"height\",t.svgHeight),t.dom.elLegendWrap.setAttribute(\"xmlns\",\"http://www.w3.org/1999/xhtml\"),e.appendChild(t.dom.elLegendWrap),e.appendChild(this.getLegendStyles()),t.dom.Paper.node.insertBefore(e,t.dom.elGraphical.node)}},{key:\"toggleDataSeries\",value:function(t,e){var i,a,s=this,o=this.w;o.globals.axisCharts||\"radialBar\"===o.config.chart.type?(o.globals.resized=!0,i=a=null,o.globals.risingSeries=[],i=o.globals.axisCharts?(a=o.globals.dom.baseEl.querySelector(\".apexcharts-series[data\\\\:realIndex='\".concat(t,\"']\")),parseInt(a.getAttribute(\"data:realIndex\"),10)):(a=o.globals.dom.baseEl.querySelector(\".apexcharts-series[rel='\".concat(t+1,\"']\")),parseInt(a.getAttribute(\"rel\"),10)-1),e?[{cs:o.globals.collapsedSeries,csi:o.globals.collapsedSeriesIndices},{cs:o.globals.ancillaryCollapsedSeries,csi:o.globals.ancillaryCollapsedSeriesIndices}].forEach(function(t){s.riseCollapsedSeries(t.cs,t.csi,i)}):this.hideSeries({seriesEl:a,realIndex:i})):(e=o.globals.dom.Paper.select(\" .apexcharts-series[rel='\".concat(t+1,\"'] path\")),\"pie\"!==(a=o.config.chart.type)&&\"polarArea\"!==a&&\"donut\"!==a||(t=o.config.plotOptions.pie.donut.labels,new T(this.lgCtx.ctx).pathMouseDown(e.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(e.members[0].node,t)),e.fire(\"click\"))}},{key:\"hideSeries\",value:function(t){for(var e,i=t.seriesEl,t=t.realIndex,a=this.w,s=M.clone(a.config.series),o=(a.globals.axisCharts?(e=!1,a.config.yaxis[t]&&a.config.yaxis[t].show&&a.config.yaxis[t].showAlways&&(e=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(t)<0)&&(a.globals.ancillaryCollapsedSeries.push({index:t,data:s[t].data.slice(),type:i.parentNode.className.baseVal.split(\"-\")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(t)),e||(a.globals.collapsedSeries.push({index:t,data:s[t].data.slice(),type:i.parentNode.className.baseVal.split(\"-\")[1]}),a.globals.collapsedSeriesIndices.push(t),e=a.globals.risingSeries.indexOf(t),a.globals.risingSeries.splice(e,1))):(a.globals.collapsedSeries.push({index:t,data:s[t]}),a.globals.collapsedSeriesIndices.push(t)),i.childNodes),n=0;n\\n \\n \\n \\n':'\\n \\n \\n',title:s.localeValues[\"zoom\"===t?\"selectionZoom\":\"selection\"],class:o.globals.isTouchDevice?\"apexcharts-element-hidden\":\"apexcharts-\".concat(t,\"-icon\")})}var r=[];a(\"zoomIn\",this.elZoomIn,'\\n \\n \\n\\n'),a(\"zoomOut\",this.elZoomOut,'\\n \\n \\n\\n');n(\"zoom\"),n(\"selection\"),this.t.pan&&o.config.chart.zoom.enabled&&r.push({el:this.elPan,icon:\"string\"==typeof this.t.pan?this.t.pan:'\\n \\n \\n \\n \\n \\n \\n \\n',title:this.localeValues.pan,class:o.globals.isTouchDevice?\"apexcharts-element-hidden\":\"apexcharts-pan-icon\"}),a(\"reset\",this.elZoomReset,'\\n \\n \\n'),this.t.download&&r.push({el:this.elMenuIcon,icon:\"string\"==typeof this.t.download?this.t.download:'',title:this.localeValues.menu,class:\"apexcharts-menu-icon\"});for(var l=0;li.globals.gridWidth?l=i.globals.gridWidth-s:e.clientX-a.left<0&&(l=s),s>e.clientX-a.left&&(n=!0,l=Math.abs(l)),o>e.clientY-a.top&&(r=!0,h=Math.abs(h)),c=\"x\"===t?{x:n?s-l:s,y:0,width:l,height:i.globals.gridHeight}:\"y\"===t?{x:0,y:r?o-h:o,width:i.globals.gridWidth,height:h}:{x:n?s-l:s,y:r?o-h:o,width:l,height:h},e.drawSelectionRect(c),e.selectionDragging(\"resizing\"),c}},{key:\"selectionDragging\",value:function(t,e){function i(t){return parseFloat(n.node.getAttribute(t))}var a=this,s=this.w,o=this.xyRatios,n=this.selectionRect,r=0,t=(\"resizing\"===t&&(r=30),{x:i(\"x\"),y:i(\"y\"),width:i(\"width\"),height:i(\"height\")});s.globals.selection=t,\"function\"==typeof s.config.chart.events.selection&&s.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var t=a.gridRect.getBoundingClientRect(),e=n.node.getBoundingClientRect(),e={xaxis:{min:s.globals.xAxisScale.niceMin+(e.left-t.left)*o.xRatio,max:s.globals.xAxisScale.niceMin+(e.right-t.left)*o.xRatio},yaxis:{min:s.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*o.yRatio[0],max:s.globals.yAxisScale[0].niceMax-(e.top-t.top)*o.yRatio[0]}};s.config.chart.events.selection(a.ctx,e),s.config.chart.brush.enabled&&void 0!==s.config.chart.events.brushScrolled&&s.config.chart.events.brushScrolled(a.ctx,e)},r))}},{key:\"selectionDrawn\",value:function(t){var e,i,a,s,o=t.context,t=t.zoomtype,n=this.w,r=o,l=this.xyRatios,o=this.ctx.toolbar,h=(r.startX>r.endX&&(h=r.startX,r.startX=r.endX,r.endX=h),r.startY>r.endY&&(h=r.startY,r.startY=r.endY,r.endY=h),void 0),c=void 0,c=n.globals.isRangeBar?(h=n.globals.yAxisScale[0].niceMin+r.startX*l.invertedYRatio,n.globals.yAxisScale[0].niceMin+r.endX*l.invertedYRatio):(h=n.globals.xAxisScale.niceMin+r.startX*l.xRatio,n.globals.xAxisScale.niceMin+r.endX*l.xRatio),d=[],g=[];n.config.yaxis.forEach(function(t,e){d.push(n.globals.yAxisScale[e].niceMax-l.yRatio[e]*r.startY),g.push(n.globals.yAxisScale[e].niceMax-l.yRatio[e]*r.endY)}),r.dragged&&(10Math.abs(a)&&0Math.abs(a)&&i<0?this.moveDirection=\"right\":Math.abs(a)>Math.abs(i)&&0Math.abs(i)&&a<0&&(this.moveDirection=\"down\")),e.globals.lastClientPosition={x:t.clientX,y:t.clientY},e.globals.isRangeBar?e.globals.minY:e.globals.minX),a=e.globals.isRangeBar?e.globals.maxY:e.globals.maxX;e.config.xaxis.convertedCatToNumeric||t.panScrolled(i,a)}},{key:\"delayedPanScrolled\",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,a=(t.globals.maxX-t.globals.minX)/2;\"left\"===this.moveDirection?(e=t.globals.minX+a,i=t.globals.maxX+a):\"right\"===this.moveDirection&&(e=t.globals.minX-a,i=t.globals.maxX-a),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:\"panScrolled\",value:function(t,e){var i=this.w,a=this.xyRatios,s=M.clone(i.globals.initialConfig.yaxis),o=a.xRatio,n=i.globals.minX,r=i.globals.maxX,a=(i.globals.isRangeBar&&(o=a.invertedYRatio,n=i.globals.minY,r=i.globals.maxY),\"left\"===this.moveDirection?(t=n+i.globals.gridWidth/15*o,e=r+i.globals.gridWidth/15*o):\"right\"===this.moveDirection&&(t=n-i.globals.gridWidth/15*o,e=r-i.globals.gridWidth/15*o),i.globals.isRangeBar||(ti.globals.initialMaxX)&&(t=n,e=r),{min:t,max:e}),o=(i.config.chart.zoom.autoScaleYaxis&&(s=new E(this.ctx).autoScaleY(this.ctx,s,{xaxis:a})),{xaxis:{min:t,max:e}});i.config.chart.group||(o.yaxis=s),this.updateScrolledChart(o,t,e)}},{key:\"updateScrolledChart\",value:function(t,e,i){var a=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),\"function\"==typeof a.config.chart.events.scrolled&&a.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),a}(),bt=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return n(e,[{key:\"getNearestValues\",value:function(t){var e=t.hoverArea,i=t.elGrid,a=t.clientX,t=t.clientY,s=this.w,i=i.getBoundingClientRect(),o=i.width,n=i.height,r=o/(s.globals.dataPoints-1),l=n/s.globals.dataPoints,h=this.hasBars(),a=(!s.globals.comboCharts&&!h||s.config.xaxis.convertedCatToNumeric||(r=o/s.globals.dataPoints),a-i.left-s.globals.barPadForNumericAxis),t=t-i.top,i=(a<0||t<0||o\",a=\"
    \";c.forEach(function(t,e){i+='
    ').concat(t.attrs.name,\"
    \"),a+=\"
    \".concat(t.val,\"
    \")}),p.innerHTML=i+\"
    \",f.innerHTML=a+\"\"},!n||r.globals.seriesGoals[e][i]&&Array.isArray(r.globals.seriesGoals[e][i]))?d():(p.innerHTML=\"\",f.innerHTML=\"\"),null!==s&&(a[e].querySelector(\".apexcharts-tooltip-text-z-label\").innerHTML=r.config.tooltip.z.title,a[e].querySelector(\".apexcharts-tooltip-text-z-value\").innerHTML=void 0!==s?s:\"\"),n&&u[0]&&(null==h||-1a.globals.gridWidth&&(t=a.globals.gridWidth),i.isXAxisTooltipEnabled&&(o=t,\"tickWidth\"!==a.config.xaxis.crosshairs.width&&\"barWidth\"!==a.config.xaxis.crosshairs.width||(o=t+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o))}},{key:\"moveYCrosshairs\",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&T.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&T.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:\"moveXAxisTooltip\",value:function(t){var e,i=this.w,a=this.ttCtx;null!==a.xaxisTooltip&&0!==a.xcrosshairsWidth&&(a.xaxisTooltip.classList.add(\"apexcharts-active\"),e=a.xaxisOffY+i.config.xaxis.tooltip.offsetY+i.globals.translateY+1+i.config.xaxis.offsetY,t-=a.xaxisTooltip.getBoundingClientRect().width/2,isNaN(t)||(t+=i.globals.translateX,i=0,i=new T(this.ctx).getTextRects(a.xaxisTooltipText.innerHTML),a.xaxisTooltipText.style.minWidth=i.width+\"px\",a.xaxisTooltip.style.left=t+\"px\",a.xaxisTooltip.style.top=e+\"px\"))}},{key:\"moveYAxisTooltip\",value:function(t){var e=this.w,i=this.ttCtx,a=(null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-yaxistooltip\")),parseInt(i.ycrosshairsHidden.getAttribute(\"y1\"),10)),a=e.globals.translateY+a,s=i.yaxisTTEls[t].getBoundingClientRect().height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=26),a-=s/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add(\"apexcharts-active\"),i.yaxisTTEls[t].style.top=a+\"px\",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+\"px\"):i.yaxisTTEls[t].classList.remove(\"apexcharts-active\")}},{key:\"moveTooltip\",value:function(t,e){var i=2a.globals.gridWidth/2?t-n.ttWidth-i-10:t)>a.globals.gridWidth-n.ttWidth-10?a.globals.gridWidth-n.ttWidth:t)<-20&&(t=-20),a.config.tooltip.followCursor?(i=s.getElGrid().getBoundingClientRect(),e=s.e.clientY+a.globals.translateY-i.top-n.ttHeight/2):a.globals.isBarHorizontal||(e=n.ttHeight/2+e>a.globals.gridHeight?a.globals.gridHeight-n.ttHeight+a.globals.translateY:e)<0&&(e=0),isNaN(t)||(t+=a.globals.translateX,o.style.left=t+\"px\",o.style.top=e+\"px\")}},{key:\"moveMarkers\",value:function(t,e){var i=this.w,a=this.ttCtx;if(0e.globals.gridHeight/2&&(n-=i.tooltipRect.ttHeight),(n=n+e.config.grid.padding.top+l/3)+l>e.globals.gridHeight&&(n=e.globals.gridHeight-l)):e.config.tooltip.followCursor?n=i.e.clientY-h.top-i.tooltipRect.ttHeight/2:n+i.tooltipRect.ttHeight+15>e.globals.gridHeight&&(n=e.globals.gridHeight),n<-10&&(n=-10),e.globals.isBarHorizontal||this.moveXCrosshairs(o),i.fixedTooltip||(a=n||e.globals.gridHeight,this.moveTooltip(o,a))}}]),e}(),vt=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new yt(t)}return n(e,[{key:\"drawDynamicPoints\",value:function(){var t=this.w,e=new T(this.ctx),i=new w(this.ctx),a=g(a=t.globals.dom.baseEl.querySelectorAll(\".apexcharts-series\"));t.config.chart.stacked&&a.sort(function(t,e){return parseFloat(t.getAttribute(\"data:realIndex\"))-parseFloat(e.getAttribute(\"data:realIndex\"))});for(var s=0;sd.globals.gridWidth/2&&(l=i-c.tooltipRect.ttWidth/2+s),c.w.config.tooltip.followCursor)&&(r=d.globals.dom.elWrap.getBoundingClientRect(),l=d.globals.clientX-r.left-(l>d.globals.gridWidth/2?c.tooltipRect.ttWidth:0),h=d.globals.clientY-r.top-(h>d.globals.gridHeight/2?c.tooltipRect.ttHeight:0)),{x:l,y:h}}},{key:\"handleMarkerTooltip\",value:function(t){var e,i,a,s,o,n,r=t.e,l=t.opt,h=t.x,t=t.y,c=this.w,d=this.ttCtx;return r.target.classList.contains(\"apexcharts-marker\")&&(e=parseInt(l.paths.getAttribute(\"cx\"),10),i=parseInt(l.paths.getAttribute(\"cy\"),10),a=parseFloat(l.paths.getAttribute(\"val\")),o=parseInt(l.paths.getAttribute(\"rel\"),10),n=parseInt(l.paths.parentNode.parentNode.parentNode.getAttribute(\"rel\"),10)-1,d.intersect&&(s=M.findAncestor(l.paths,\"apexcharts-series\"))&&(n=parseInt(s.getAttribute(\"data:realIndex\"),10)),d.tooltipLabels.drawSeriesTexts({ttItems:l.ttItems,i:n,j:o,shared:!d.showOnIntersect&&c.config.tooltip.shared,e:r}),\"mouseup\"===r.type&&d.markerClick(r,n,o),c.globals.capturedSeriesIndex=n,c.globals.capturedDataPointIndex=o,h=e,t=i+c.globals.translateY-1.4*d.tooltipRect.ttHeight,d.w.config.tooltip.followCursor&&(s=d.getElGrid().getBoundingClientRect(),t=d.e.clientY+c.globals.translateY-s.top),d.marker.enlargeCurrentPoint(o,l.paths,h,t=a<0?i:t)),{x:h,y:t}}},{key:\"handleBarTooltip\",value:function(t){var e,i=t.e,t=t.opt,a=this.w,s=this.ttCtx,o=s.getElTooltip(),n=0,r=0,l=0,i=this.getBarTooltipXY({e:i,opt:t}),h=i.i,c=i.barHeight,d=i.j,i=(a.globals.capturedSeriesIndex=h,a.globals.capturedDataPointIndex=d,a.globals.isBarHorizontal&&s.tooltipUtil.hasBars()||!a.config.tooltip.shared?(r=i.x,l=i.y,e=Array.isArray(a.config.stroke.width)?a.config.stroke.width[h]:a.config.stroke.width,n=r):a.globals.comboCharts||a.config.tooltip.shared||(n/=2),isNaN(l)?l=a.globals.svgHeight-s.tooltipRect.ttHeight:l<0&&(l=0),parseInt(t.paths.parentNode.getAttribute(\"data:realIndex\"),10)),t=a.globals.isMultipleYAxis?a.config.yaxis[i]&&a.config.yaxis[i].reversed:a.config.yaxis[0].reversed;r+s.tooltipRect.ttWidth>a.globals.gridWidth&&!t?r-=s.tooltipRect.ttWidth:r<0&&(r=0),s.w.config.tooltip.followCursor&&(i=s.getElGrid().getBoundingClientRect(),l=s.e.clientY-i.top),null===s.tooltip&&(s.tooltip=a.globals.dom.baseEl.querySelector(\".apexcharts-tooltip\")),a.config.tooltip.shared||(0a.globals.gridHeight?l=a.globals.gridHeight-s.tooltipRect.ttHeight+a.globals.translateY:(l=l+a.globals.translateY-s.tooltipRect.ttHeight/2)<0&&(l=0),o.style.left=r+a.globals.translateX+\"px\",o.style.top=l+\"px\")}},{key:\"getBarTooltipXY\",value:function(t){var e,i,a,s,o,n,r,l,h=t.e,t=t.opt,c=this.w,d=null,g=this.ttCtx,u=0,p=0,f=0,x=0,b=0,m=h.target.classList;return(m.contains(\"apexcharts-bar-area\")||m.contains(\"apexcharts-candlestick-area\")||m.contains(\"apexcharts-boxPlot-area\")||m.contains(\"apexcharts-rangebar-area\"))&&(a=(m=h.target).getBoundingClientRect(),e=t.elGrid.getBoundingClientRect(),i=a.height,b=a.height,a=a.width,s=parseInt(m.getAttribute(\"cx\"),10),o=parseInt(m.getAttribute(\"cy\"),10),x=parseFloat(m.getAttribute(\"barWidth\")),n=(\"touchmove\"===h.type?h.touches[0]:h).clientX,d=parseInt(m.getAttribute(\"j\"),10),u=parseInt(m.parentNode.getAttribute(\"rel\"),10)-1,r=m.getAttribute(\"data-range-y1\"),l=m.getAttribute(\"data-range-y2\"),c.globals.comboCharts&&(u=parseInt(m.parentNode.getAttribute(\"data:realIndex\"),10)),g.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:u,j:d,y1:r?parseInt(r,10):null,y2:l?parseInt(l,10):null,shared:!g.showOnIntersect&&c.config.tooltip.shared,e:h}),f=c.config.tooltip.followCursor?c.globals.isBarHorizontal?(p=n-e.left+15,o-g.dataPointsDividedHeight+i/2-g.tooltipRect.ttHeight/2):(p=c.globals.isXNumeric?s-a/2:s-g.dataPointsDividedWidth+a/2,h.clientY-e.top-g.tooltipRect.ttHeight/2-15):c.globals.isBarHorizontal?((p=s)a.top+a.height)this.handleMouseOut(t);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!i.config.tooltip.shared){a=parseInt(t.paths.getAttribute(\"index\"),10);if(this.tConfig.enabledOnSeries.indexOf(a)<0)return void this.handleMouseOut(t)}var a=this.getElTooltip(),n=this.getElXCrosshairs(),r=i.globals.xyCharts||\"bar\"===i.config.chart.type&&!i.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||i.globals.comboCharts&&this.tooltipUtil.hasBars();if(\"mousemove\"===e.type||\"touchmove\"===e.type||\"mouseup\"===e.type){if(i.globals.collapsedSeries.length+i.globals.ancillaryCollapsedSeries.length!==i.globals.series.length){null!==n&&n.classList.add(\"apexcharts-active\");var l,h,n=this.yaxisTooltips.filter(function(t){return!0===t});if(null!==this.ycrosshairs&&n.length&&this.ycrosshairs.classList.add(\"apexcharts-active\"),r&&!this.showOnIntersect?this.handleStickyTooltip(e,s,o,t):\"heatmap\"===i.config.chart.type||\"treemap\"===i.config.chart.type?(l=(n=this.intersect.handleHeatTreeTooltip({e:e,opt:t,x:l,y:h,type:i.config.chart.type})).x,h=n.y,a.style.left=l+\"px\",a.style.top=h+\"px\"):(this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:e,opt:t}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:e,opt:t,x:l,y:h})),this.yaxisTooltips.length)for(var c=0;cn.width?this.handleMouseOut(a):null!==o?this.handleStickyCapturedSeries(t,o,a,i):(this.tooltipUtil.isXoverlap(i)||s.globals.isBarHorizontal)&&this.create(t,this,0,i,a.ttItems)}},{key:\"handleStickyCapturedSeries\",value:function(t,e,i,a){var s=this.w;if(!this.tConfig.shared&&null===s.globals.series[e][a])return void this.handleMouseOut(i);void 0!==s.globals.series[e][a]?this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,a,i.ttItems):this.create(t,this,e,a,i.ttItems,!1):this.tooltipUtil.isXoverlap(a)&&this.create(t,this,0,a,i.ttItems)}},{key:\"deactivateHoverFilter\",value:function(){for(var t=this.w,e=new T(this.ctx),i=t.globals.dom.Paper.select(\".apexcharts-bar-area\"),a=0;af.c&&(c=!1),Math.min(f.o,f.c)),y=Math.max(f.o,f.c),v=f.m,w=(i=n.globals.isXNumeric?(n.globals.seriesX[e][h]-n.globals.minX)/this.xRatio-s/2:i)+s*this.visibleI,l=(void 0===this.series[l][h]||null===this.series[l][h]?y=m=o:(m=o-m/p,y=o-y/p,x=o-f.h/p,b=o-f.l/p,v=o-f.m/p),r.move(w,o)),f=r.move(w+s/2,m);return 0a.globals.maxY?o.colorScale.max:a.globals.maxY),Math.abs(c)+Math.abs(h)),d=100*s/(0===i?i-1e-6:i);return 0=t.from&&s<=t.to&&(r=t.color,l=t.foreColor||null,h=t.from,c=t.to,t=Math.abs(c)+Math.abs(h),d=100*s/(0===t?t-1e-6:t))}),{color:r,foreColor:l,percent:d}}},{key:\"calculateDataLabels\",value:function(t){var e,i=t.text,a=t.x,s=t.y,o=t.i,n=t.j,r=t.colorProps,t=t.fontSize,l=this.w.config.dataLabels,h=new T(this.ctx),c=new v(this.ctx),d=null;return l.enabled&&(d=h.group({class:\"apexcharts-data-labels\"}),h=l.offsetX,e=l.offsetY,a=a+h,h=s+parseFloat(l.style.fontSize)/3+e,c.plotDataLabelsText({x:a,y:h,text:i,i:o,j:n,color:r.foreColor,parent:d,fontSize:t,dataLabelsConfig:l})),d}},{key:\"addListeners\",value:function(t){var e=new T(this.ctx);t.node.addEventListener(\"mouseenter\",e.pathMouseEnter.bind(this,t)),t.node.addEventListener(\"mouseleave\",e.pathMouseLeave.bind(this,t)),t.node.addEventListener(\"mousedown\",e.pathMouseDown.bind(this,t))}}]),e}(),Pt=function(){function i(t,e){s(this,i),this.ctx=t,this.w=t.w,this.xRatio=e.xRatio,this.yRatio=e.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Lt(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return n(i,[{key:\"draw\",value:function(t){var e=this.w,i=new T(this.ctx),a=i.group({class:\"apexcharts-heatmap\"}),s=(a.attr(\"clip-path\",\"url(#gridRectMask\".concat(e.globals.cuid,\")\")),e.globals.gridWidth/e.globals.dataPoints),o=e.globals.gridHeight/e.globals.series.length,n=0,r=!1,l=(this.negRange=this.helpers.checkColorRange(),t.slice());e.config.yaxis[0].reversed&&(r=!0,l.reverse());for(var h=r?0:l.length-1;r?hthis.fullAngle?e.endAngle=e.endAngle-(a+n):a+n=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(i=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(i)>this.fullAngle&&(i-=this.fullAngle),Math.PI*(i-90)/180),r=e.centerX+t*Math.cos(o),o=e.centerY+t*Math.sin(o),l=e.centerX+t*Math.cos(n),n=e.centerY+t*Math.sin(n),i=M.polarToCartesian(e.centerX,e.centerY,e.donutSize,i),s=M.polarToCartesian(e.centerX,e.centerY,e.donutSize,s),a=180=e-10&&(t.y<0?s-=10:0a.globals.gridHeight||\"end\"===a.config.plotOptions.area.fillTo)&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:\"apexcharts-series\",seriesName:M.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:\"apexcharts-series-markers-wrap\",\"data:realIndex\":i}),this.elDataLabelsWrap=s.group({class:\"apexcharts-datalabels\",\"data:realIndex\":i}),t[e].length===a.globals.dataPoints);this.elSeries.attr({\"data:longestSeries\":s,rel:e+1,\"data:realIndex\":i}),this.appendPathFrom=!0}},{key:\"_calculatePathsFrom\",value:function(t){var e,i,a,s,o=t.series,n=t.i,r=t.realIndex,l=t.prevX,h=t.prevY,t=this.w,c=new T(this.ctx);if(null===o[n][0]){for(var d=0;d=this.height)for(e=0;e=this.height?(e=t/this.height,i=this.width-e,new Yt(this.xoffset+e,this.yoffset,i,this.height)):(e=t/this.width,i=this.height-e,new Yt(this.xoffset,this.yoffset+e,this.width,i))}}function Ft(t,e,i,a,s){a=void 0===a?0:a,s=void 0===s?0:s;var o,n,r=function t(e,i,a,s){var o;var n;if(0===e.length)return void s.push(a.getCoordinates(i));n=a.shortestEdge();o=e[0];Rt(i,o,n)?(i.push(o),t(e.slice(1),i,a,s)):(n=a.cutArea(Y(i),s),s.push(a.getCoordinates(i)),t(e,[],n,s));return s}(function(t,e){for(var i=[],a=e/Y(t),s=0;ss-i&&e.width<=o-a&&(s=n.rotateAroundCenter(t.node),t.node.setAttribute(\"transform\",\"rotate(-90 \".concat(s.x,\" \").concat(s.y,\")\")))}},{key:\"animateTreemap\",value:function(t,e,i,a){var s=new S(this.ctx);s.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,function(){s.animationCompleted(t)})}}]),i}(),Ot=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return n(e,[{key:\"calculateTimeScaleTicks\",value:function(t,e){var n=this,r=this.w;if(r.globals.allSeriesCollapsed)return r.globals.labels=[],r.globals.timescaleLabels=[],[];var i=new k(this.ctx),a=(e-t)/864e5,i=(this.determineInterval(a),r.globals.disableZoomIn=!1,r.globals.disableZoomOut=!1,a<10/86400?r.globals.disableZoomIn=!0:5e4i&&(e=Math.floor(p.length/i)),!1),o=!1;switch(n.tickInterval){case\"years\":\"year\"===t.unit&&(s=!0);break;case\"half_year\":e=7,\"year\"===t.unit&&(s=!0);break;case\"months\":e=1,\"year\"===t.unit&&(s=!0);break;case\"months_fortnight\":e=15,\"year\"!==t.unit&&\"month\"!==t.unit||(s=!0),30===a&&(o=!0);break;case\"months_days\":e=10,\"month\"===t.unit&&(s=!0),30===a&&(o=!0);break;case\"week_days\":e=8,\"month\"===t.unit&&(s=!0);break;case\"days\":e=1,\"month\"===t.unit&&(s=!0);break;case\"hours\":\"day\"===t.unit&&(s=!0);break;case\"minutes_fives\":a%5!=0&&(o=!0);break;case\"seconds_tens\":a%10!=0&&(o=!0);break;case\"seconds_fives\":a%5!=0&&(o=!0)}if(\"hours\"===n.tickInterval||\"minutes_fives\"===n.tickInterval||\"seconds_tens\"===n.tickInterval||\"seconds_fives\"===n.tickInterval){if(!o)return!0}else if((a%e==0||s)&&!o)return!0})}},{key:\"recalcDimensionsBasedOnFormat\",value:function(t,e){var i=this.w,t=this.formatDates(t),t=this.removeOverlappingTS(t);i.globals.timescaleLabels=t.slice(),new X(this.ctx).plotCoords()}},{key:\"determineInterval\",value:function(t){var e=24*t,i=60*e;switch(!0){case 5/,\"\").replace(/<\\/svg>$/,\"\");e.innerHTML=\"\"+t.replace(/\\n/,\"\").replace(/<([\\w:-]+)([^<]+?)\\/>/g,\"<$1$2>\")+\"\";for(var i=0,a=e.firstChild.childNodes.length;i\":function(t){return-Math.cos(t*Math.PI)/2+.5},\">\":function(t){return Math.sin(t*Math.PI/2)},\"<\":function(t){return 1-Math.cos(t*Math.PI/2)}},h.morph=function(i){return function(t,e){return new h.MorphObj(t,e).at(i)}},h.Situation=h.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new h.Number(t.duration).valueOf(),this.delay=new h.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),h.FX=h.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(t,e,i){\"object\"===y(t)&&(e=t.ease,i=t.delay,t=t.duration);t=new h.Situation({duration:t||1e3,delay:i||0,ease:h.easing[e||\"-\"]||e});return this.queue(t),this},target:function(t){return t&&t instanceof h.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=s.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){s.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return(\"function\"==typeof t||t instanceof h.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof h.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(!e.init){for(var i in e.animations){t=this.target()[i](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[i])||(e.animations[i]=[e.animations[i]]);for(var a=t.length;a--;)e.animations[i][a]instanceof h.Number&&(t[a]=new h.Number(t[a])),e.animations[i][a]=t[a].morph(e.animations[i][a])}for(var i in e.attrs)e.attrs[i]=new h.MorphObj(this.target().attr(i),e.attrs[i]);for(var i in e.styles)e.styles[i]=new h.MorphObj(this.target().style(i),e.styles[i]);e.initialTransformation=this.target().matrixify(),e.init=!0}return this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(i||this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(e){function i(t){t.detail.situation==a&&(e.call(this,a),this.off(\"finished.fx\",i))}var a=this.last();return this.target().on(\"finished.fx\",i),this._callStart()},during:function(e){function t(t){t.detail.situation==i&&e.call(this,t.detail.pos,h.morph(t.detail.pos),t.detail.eased,i)}var i=this.last();return this.target().off(\"during.fx\",t).on(\"during.fx\",t),this.after(function(){this.off(\"during.fx\",t)}),this._callStart()},afterAll:function(e){function i(t){e.call(this),this.off(\"allfinished.fx\",i)}return this.target().off(\"allfinished.fx\",i).on(\"allfinished.fx\",i),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||\"animations\"][t]=e,this._callStart()},step:function(t){t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),i=Math.floor(t),!0===this.situation.loops||ithis.lastPos&&a<=s&&(this.situation.once[a].call(this.target(),this.pos,s),delete this.situation.once[a]);return this.active&&this.target().fire(\"during\",{pos:this.pos,eased:s,fx:this,situation:this.situation}),this.situation&&(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire(\"finished\",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire(\"allfinished\"),this.situations.length)||(this.target().off(\".fx\"),this.active=!1),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=s),this},eachAt:function(){var e=this,t=this.target(),i=this.situation;for(s in i.animations)a=[].concat(i.animations[s]).map(function(t){return\"string\"!=typeof t&&t.at?t.at(i.ease(e.pos),e.pos):t}),t[s].apply(t,a);for(s in i.attrs)a=[s].concat(i.attrs[s]).map(function(t){return\"string\"!=typeof t&&t.at?t.at(i.ease(e.pos),e.pos):t}),t.attr.apply(t,a);for(s in i.styles)a=[s].concat(i.styles[s]).map(function(t){return\"string\"!=typeof t&&t.at?t.at(i.ease(e.pos),e.pos):t}),t.style.apply(t,a);if(i.transforms.length){for(var a=i.initialTransformation,s=0,o=i.transforms.length;so.maxX-e.width&&(n=(a=o.maxX-e.width)-this.startPoints.box.x),null!=o.minY&&so.maxY-e.height&&(r=(s=o.maxY-e.height)-this.startPoints.box.y),null!=o.snapToGrid&&(a-=a%o.snapToGrid,s-=s%o.snapToGrid,n-=n%o.snapToGrid,r-=r%o.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:n,y:r},!0):this.el.move(a,s))),i},a.prototype.end=function(t){var e=this.drag(t);this.el.fire(\"dragend\",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,\"mousemove.drag\"),SVG.off(window,\"touchmove.drag\"),SVG.off(window,\"mouseup.drag\"),SVG.off(window,\"touchend.drag\")},SVG.extend(SVG.Element,{draggable:function(t,e){\"function\"!=typeof t&&\"object\"!=typeof t||(e=t,t=!0);var i=this.remember(\"_draggable\")||new a(this);return(t=void 0===t||t)?i.init(e||{},t):(this.off(\"mousedown.drag\"),this.off(\"touchstart.drag\")),this}})}.call(void 0),F.prototype.init=function(t,e){var i=this.el.bbox(),a=(this.options={},this.el.selectize.defaults.points);for(s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],void 0!==e[s]&&(this.options[s]=e[s]);var s,o=[\"points\",\"pointsExclude\"];for(s in o){var n=this.options[o[s]];\"string\"==typeof n?n=0o.maxX&&(t=o.maxX-s),void 0!==o.minY&&a+eo.maxY?o.maxY-a:e]},e.prototype.checkAspectRatio=function(t,e){var i,a,s,o,n;return this.options.saveAspectRatio?(i=t.slice(),a=this.parameters.box.width/this.parameters.box.height,(n=(s=this.parameters.box.width+t[0])/(o=this.parameters.box.height-t[1]))