@xcpcio/board-app
Version:
XCPCIO Board App
2 lines • 304 kB
JavaScript
var Up=Object.defineProperty;var qp=(P,C,F)=>C in P?Up(P,C,{enumerable:!0,configurable:!0,writable:!0,value:F}):P[C]=F;var Ms=(P,C,F)=>qp(P,typeof C!="symbol"?C+"":C,F);import{d as Cn,f as An,a1 as Zp,C as Kp,c as Lt,o as Et,n as Nt,b as Q,L as Ai,k as Xt,O as Ut,V as se,F as Pi,E as Oi,j as Li,K as $r,s as Vr,v as _p,x as Jp,a2 as Qp,h as St}from"./index-CYsJ2gG-.js";const tu={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},eu={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},iu={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},Iu=Cn({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null,mt:null},emits:["update:isHidden"],setup(P,{emit:C}){const F=P,tt=C,$=An({get(){return F.isHidden},set(U){tt("update:isHidden",U)}});function N(){$.value=!0}const{Escape:D}=Zp();return Kp(D,U=>{U&&N()}),(U,Z)=>(Et(),Lt("div",{class:Nt(["md:inset-0 w-[100%] h-[100%]",[F.mt??"md:mt-32 sm:mt-16"]]),fixed:"","z-1997":"","of-x-hidden":"",flex:"","justify-center":"","items-start":""},[Q("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-1998":"",style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},onClick:N}),Q("div",{class:Nt(["relative p-4",[F.width??"w-[78%]"]]),"z-1999":""},[Q("div",tu,[Q("div",eu,[Ai(U.$slots,"header",{},()=>[Q("h3",iu,Xt(F.title),1)]),Q("button",{type:"button",class:"hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","bg-transparent":"","ml-auto":"","p-1.5":"","text-sm":"","text-gray-400":"","items-center":"","inline-flex":"","rounded-lg":"",onClick:N},Z[0]||(Z[0]=[Q("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[Q("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),Q("span",{"sr-only":""}," Close modal ",-1)]))]),Ai(U.$slots,"default")])],2)],2))}}),Tt={openOptions(P){P.$refs.input.focus(),P.showMenu=!0,P.mousedownState=!1},blurInput(P){P.mousedownState||(P.searchText="",P.closeOptions()),P.$emit("blur")},closeOptions(P){P.$refs.input.blur(),P.showMenu=!1},prevItem(P){const C=P.pointer-1,F=P.$el.offsetHeight*C;C>=0&&(P.pointer=C),P.$refs.menu.scrollTop=F},nextItem(P){const C=P.pointer+1,F=P.$el.offsetHeight*C;C<=P.filteredOptions.length-1&&(P.pointer=C);const tt=P.$refs.menu.offsetHeight,$=Math.ceil((P.$refs.menu.scrollTop+P.$el.offsetHeight)/tt),N=Math.ceil(F/tt);$!==N&&(P.$refs.menu.scrollTop=(N-1)*P.$refs.menu.offsetHeight)},enterItem(P){const C=P.filteredOptions[P.pointer],F=C.disabled;C&&!F&&P.selectItem(C)},pointerSet(P,C){P.pointer=C},pointerAdjust(P){P.pointer>=P.filteredOptions.length-1&&(P.pointer=P.filteredOptions.length?P.filteredOptions.length-1:0)},mousedownItem(P){P.mousedownState=!0}};function su(P){return new RegExp(P.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Pn={props:{id:{default:null},name:{type:String,default:""},isError:{type:Boolean,default:!1},customAttr:{type:Function,default:()=>""},isDisabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},filterPredicate:{type:Function,default:(P,C)=>P.match(su(C))}}},On=(P,C)=>{const F=P.__vccOpts||P;for(const[tt,$]of C)F[tt]=$;return F},ru={name:"ModelSelect",mixins:[Pn],emits:["blur","searchchange","update:modelValue"],props:{modelValue:{type:[String,Number,Object,Boolean]},customAttr:{type:Function,default:()=>""},options:{type:Array}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{value(P){this.pointer=this.filteredOptions.findIndex(C=>C.value===this.optionValue(P))},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{searchTextCustomAttr(){return this.selectedOption&&this.selectedOption.value?this.customAttr(this.selectedOption):""},inputText(){if(this.searchText)return"";{let P=this.placeholder;return this.selectedOption&&(P=this.selectedOption.text),P}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(P=>this.customAttr(P))}catch{}return[]},textClass(){return!this.selectedOption&&this.placeholder?"default":""},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},filteredOptions(){return this.searchText?this.options.filter(P=>{try{return this.filterPredicate(P.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(P=>P.value===this.optionValue(this.modelValue))}},methods:{deleteTextOrItem(){!this.searchText&&this.modelValue&&(this.selectItem({}),this.openOptions())},openOptions(){Tt.openOptions(this)},blurInput(){Tt.blurInput(this)},closeOptions(){Tt.closeOptions(this)},prevItem(){Tt.prevItem(this)},nextItem(){Tt.nextItem(this)},enterItem(){Tt.enterItem(this)},pointerSet(P){Tt.pointerSet(this,P)},pointerAdjust(){Tt.pointerAdjust(this)},mousedownItem(){Tt.mousedownItem(this)},selectItem(P){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",P):(this.$emit("update:modelValue",P.value),P.value!==void 0&&P.value===P.text&&(this.searchText=P.value))},optionValue(P){return typeof P=="object"&&P!==null?P.value:P}}},ou=Q("i",{class:"dropdown icon"},null,-1),au=["disabled","tabindex","id","name","value"],nu=["data-vss-custom-attr"],lu=["data-vss-custom-attr","onClick","onMouseenter"];function hu(P,C,F,tt,$,N){return Et(),Lt("div",{class:Nt(["ui fluid search selection dropdown",{"active visible":$.showMenu,error:P.isError,disabled:P.isDisabled}]),onClick:C[11]||(C[11]=(...D)=>N.openOptions&&N.openOptions(...D)),onFocus:C[12]||(C[12]=(...D)=>N.openOptions&&N.openOptions(...D))},[ou,Q("input",{class:"search",autocomplete:"off",disabled:P.isDisabled,tabindex:P.isDisabled?-1:0,id:P.id,name:P.name,value:$.searchText,onInput:C[0]||(C[0]=D=>$.searchText=D.target.value),ref:"input",onFocus:C[1]||(C[1]=se((...D)=>N.openOptions&&N.openOptions(...D),["prevent"])),onKeyup:[C[2]||(C[2]=Ut((...D)=>N.closeOptions&&N.closeOptions(...D),["esc"])),C[7]||(C[7]=Ut(se((...D)=>N.enterItem&&N.enterItem(...D),["prevent"]),["enter"]))],onBlur:C[3]||(C[3]=(...D)=>N.blurInput&&N.blurInput(...D)),onKeydown:[C[4]||(C[4]=Ut((...D)=>N.prevItem&&N.prevItem(...D),["up"])),C[5]||(C[5]=Ut((...D)=>N.nextItem&&N.nextItem(...D),["down"])),C[6]||(C[6]=Ut(se(()=>{},["prevent"]),["enter"])),C[8]||(C[8]=Ut((...D)=>N.deleteTextOrItem&&N.deleteTextOrItem(...D),["delete"]))]},null,40,au),Q("div",{class:Nt(["text",N.textClass]),"data-vss-custom-attr":N.searchTextCustomAttr},Xt(N.inputText),11,nu),Q("div",{class:Nt(["menu",N.menuClass]),ref:"menu",onMousedown:C[10]||(C[10]=se(()=>{},["prevent"])),style:$r(N.menuStyle),tabindex:"-1"},[(Et(!0),Lt(Pi,null,Oi(N.filteredOptions,(D,U)=>(Et(),Lt("div",{key:U,class:Nt(["item",{selected:D.selected||$.pointer===U,disabled:D.disabled}]),"data-vss-custom-attr":N.customAttrs[U]?N.customAttrs[U]:"",onClick:se(Z=>N.selectItem(D),["stop"]),onMousedown:C[9]||(C[9]=(...Z)=>N.mousedownItem&&N.mousedownItem(...Z)),onMouseenter:Z=>N.pointerSet(U)},[Ai(P.$slots,"default",{option:D,idx:U},()=>[Li(Xt(D.text),1)])],42,lu))),128))],38)],34)}const Du=On(ru,[["render",hu]]),du={name:"MultiSelect",mixins:[Pn],emits:["blur","searchchange","select"],props:{customAttr:{type:Function,default:()=>""},options:{type:Array},selectedOptions:{type:Array},cleanSearch:{type:Boolean,default:!0},hideSelectedOptions:{type:Boolean,default:!1}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{selectedOptions(){this.pointer=-1},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{inputText(){return this.searchText?"":this.placeholder},textClass(){return this.placeholder?"default":""},inputWidth(){return{width:(this.searchText.length+1)*8+20+"px"}},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},nonSelectOptions(){return this.options.filter(P=>this.selectedOptions.findIndex(C=>C.value===P.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(P=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(P.text),this.searchText):this.filterPredicate(P.text,this.searchText)}catch{return!0}}):this.nonSelectOptions}},methods:{deleteTextOrLastItem(){!this.searchText&&this.selectedOptions.length>0&&this.deleteItem(this.selectedOptions[this.selectedOptions.length-1])},openOptions(){Tt.openOptions(this)},blurInput(){Tt.blurInput(this)},closeOptions(){Tt.closeOptions(this)},prevItem(){Tt.prevItem(this),this.openOptions()},nextItem(){Tt.nextItem(this),this.openOptions()},enterItem(){Tt.enterItem(this)},pointerSet(P){Tt.pointerSet(this,P)},pointerAdjust(){Tt.pointerAdjust(this)},mousedownItem(){Tt.mousedownItem(this)},selectItem(P){const C=this.selectedOptions.concat(P),F=C.filter((tt,$)=>C.indexOf(tt)===$);this.closeOptions(),this.searchText="",this.$emit("select",F,P,"insert")},deleteItem(P){const C=this.selectedOptions.filter(F=>F.value!==P.value);this.$emit("select",C,P,"delete")},accentsTidy(P){let C=P.toString().toLowerCase();return C=C.replace(new RegExp("[àáâãäå]","g"),"a"),C=C.replace(new RegExp("æ","g"),"ae"),C=C.replace(new RegExp("ç","g"),"c"),C=C.replace(new RegExp("[èéêë]","g"),"e"),C=C.replace(new RegExp("[ìíîï]","g"),"i"),C=C.replace(new RegExp("ñ","g"),"n"),C=C.replace(new RegExp("[òóôõö]","g"),"o"),C=C.replace(new RegExp("œ","g"),"oe"),C=C.replace(new RegExp("[ùúûü]","g"),"u"),C=C.replace(new RegExp("[ýÿ]","g"),"y"),C}}},cu=Q("i",{class:"dropdown icon"},null,-1),pu=["data-vss-custom-attr"],uu=["onClick"],gu=["disabled","tabindex","id","name"],fu=["data-vss-custom-attr","onClick","onMouseenter"];function mu(P,C,F,tt,$,N){return Et(),Lt("div",{class:Nt(["ui fluid search dropdown selection multiple",{"active visible":$.showMenu,error:P.isError,disabled:P.isDisabled}]),onClick:C[11]||(C[11]=(...D)=>N.openOptions&&N.openOptions(...D)),onFocus:C[12]||(C[12]=(...D)=>N.openOptions&&N.openOptions(...D))},[cu,F.hideSelectedOptions?Vr("",!0):(Et(!0),Lt(Pi,{key:0},Oi(F.selectedOptions,(D,U)=>(Et(),Lt("a",{key:U,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":F.customAttr(D)},[Ai(P.$slots,"selected",{option:D,idx:U},()=>[Li(Xt(D.text),1),Q("i",{class:"delete icon",onClick:Z=>N.deleteItem(D)},null,8,uu)])],8,pu))),128)),_p(Q("input",{class:"search",autocomplete:"off",disabled:P.isDisabled,tabindex:P.isDisabled?-1:0,id:P.id,name:P.name,"onUpdate:modelValue":C[0]||(C[0]=D=>$.searchText=D),ref:"input",style:$r(N.inputWidth),onFocus:C[1]||(C[1]=se((...D)=>N.openOptions&&N.openOptions(...D),["prevent"])),onKeyup:[C[2]||(C[2]=Ut((...D)=>N.closeOptions&&N.closeOptions(...D),["esc"])),C[7]||(C[7]=Ut(se((...D)=>N.enterItem&&N.enterItem(...D),["prevent"]),["enter"]))],onBlur:C[3]||(C[3]=(...D)=>N.blurInput&&N.blurInput(...D)),onKeydown:[C[4]||(C[4]=Ut((...D)=>N.prevItem&&N.prevItem(...D),["up"])),C[5]||(C[5]=Ut((...D)=>N.nextItem&&N.nextItem(...D),["down"])),C[6]||(C[6]=Ut(se(()=>{},["prevent"]),["enter"])),C[8]||(C[8]=Ut((...D)=>N.deleteTextOrLastItem&&N.deleteTextOrLastItem(...D),["delete"]))]},null,44,gu),[[Jp,$.searchText]]),Q("div",{class:Nt(["text",N.textClass])},Xt(N.inputText),3),Q("div",{class:Nt(["menu",N.menuClass]),ref:"menu",onMousedown:C[10]||(C[10]=se(()=>{},["prevent"])),style:$r(N.menuStyle),tabindex:"-1"},[(Et(!0),Lt(Pi,null,Oi(N.filteredOptions,(D,U)=>(Et(),Lt("div",{key:U,class:Nt(["item",{selected:D.selected||$.pointer===U,disabled:D.disabled}]),"data-vss-custom-attr":F.customAttr(D),onClick:se(Z=>N.selectItem(D),["stop"]),onMousedown:C[9]||(C[9]=(...Z)=>N.mousedownItem&&N.mousedownItem(...Z)),onMouseenter:Z=>N.pointerSet(U)},[Ai(P.$slots,"default",{option:D,idx:U},()=>[Li(Xt(D.text),1)])],42,fu))),128))],38)],34)}const Bu=On(du,[["render",mu]]);var Yr={exports:{}},Ts={exports:{}},xu=Ts.exports,Sn;function yu(){return Sn||(Sn=1,function(P,C){(function(F,tt){F._Highcharts=tt(),P.exports=F._Highcharts})(typeof window>"u"?xu:window,()=>(()=>{var wn;let F,tt;var $,N,D,U,Z,nt,It,Je,Qe,ve,De,ti,ei,Ct,et,pt,yt,Be,Rt={};Rt.d=(h,t)=>{for(var e in t)Rt.o(t,e)&&!Rt.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:t[e]})},Rt.o=(h,t)=>Object.prototype.hasOwnProperty.call(h,t);var ke={};Rt.d(ke,{default:()=>Vp}),function(h){var t,e,i,s,r,o,a;h.SVG_NS="http://www.w3.org/2000/svg",h.product="Highcharts",h.version="12.2.0",h.win=typeof window<"u"?window:{},h.doc=h.win.document,h.svg=!!((i=(e=(t=h.doc)==null?void 0:t.createElementNS)==null?void 0:e.call(t,h.SVG_NS,"svg"))!=null&&i.createSVGRect),h.pageLang=(o=(r=(s=h.doc)==null?void 0:s.documentElement)==null?void 0:r.closest("[lang]"))==null?void 0:o.lang,h.userAgent=((a=h.win.navigator)==null?void 0:a.userAgent)||"",h.isChrome=h.win.chrome,h.isFirefox=h.userAgent.indexOf("Firefox")!==-1,h.isMS=/(edge|msie|trident)/i.test(h.userAgent)&&!h.win.opera,h.isSafari=!h.isChrome&&h.userAgent.indexOf("Safari")!==-1,h.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(h.userAgent),h.isWebKit=h.userAgent.indexOf("AppleWebKit")!==-1,h.deg2rad=2*Math.PI/360,h.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],h.noop=function(){},h.supportsPassiveEvents=function(){let n=!1;if(!h.isMS){let l=Object.defineProperty({},"passive",{get:function(){n=!0}});h.win.addEventListener&&h.win.removeEventListener&&(h.win.addEventListener("testPassive",h.noop,l),h.win.removeEventListener("testPassive",h.noop,l))}return n}(),h.charts=[],h.composed=[],h.dateFormats={},h.seriesTypes={},h.symbolSizes={},h.chartCount=0}($||($={}));let O=$,{charts:Ln,doc:ze,win:we}=O;function ii(h,t,e,i){let s=t?"Highcharts error":"Highcharts warning";h===32&&(h=`${s}: Deprecated member`);let r=As(h),o=r?`${s} #${h}: www.highcharts.com/errors/${h}/`:h.toString();if(i!==void 0){let a="";r&&(o+="?"),Me(i,function(n,l){a+=`
- ${l}: ${n}`,r&&(o+=encodeURI(l)+"="+encodeURI(n))}),o+=a}to(O,"displayError",{chart:e,code:h,message:o,params:i},function(){if(t)throw Error(o);we.console&&ii.messages.indexOf(o)===-1&&console.warn(o)}),ii.messages.push(o)}function Ur(h,t){return parseInt(h,t||10)}function si(h){return typeof h=="string"}function Ei(h){let t=Object.prototype.toString.call(h);return t==="[object Array]"||t==="[object Array Iterator]"}function Ne(h,t){return!!h&&typeof h=="object"&&(!t||!Ei(h))}function Cs(h){return Ne(h)&&typeof h.nodeType=="number"}function qr(h){let t=h==null?void 0:h.constructor;return!!(Ne(h,!0)&&!Cs(h)&&(t!=null&&t.name)&&t.name!=="Object")}function As(h){return typeof h=="number"&&!isNaN(h)&&h<1/0&&h>-1/0}function Re(h){return h!=null}function Zr(h,t,e){let i,s=si(t)&&!Re(e),r=(o,a)=>{Re(o)?h.setAttribute(a,o):s?(i=h.getAttribute(a))||a!=="class"||(i=h.getAttribute(a+"Name")):h.removeAttribute(a)};return si(t)?r(e,t):Me(t,r),i}function Kr(h){return Ei(h)?h:[h]}function We(h,t){let e;for(e in h||(h={}),t)h[e]=t[e];return h}function ri(){let h=arguments,t=h.length;for(let e=0;e<t;e++){let i=h[e];if(i!=null)return i}}function Ps(h,t){We(h.style,t)}function _r(h){return Math.pow(10,Math.floor(Math.log(h)/Math.LN10))}function Jr(h,t){return h>1e14?h:parseFloat(h.toPrecision(t||14))}(ii||(ii={})).messages=[],Math.easeInOutSine=function(h){return-.5*(Math.cos(Math.PI*h)-1)};let En=Array.prototype.find?function(h,t){return h.find(t)}:function(h,t){let e,i=h.length;for(e=0;e<i;e++)if(t(h[e],e))return h[e]};function Me(h,t,e){for(let i in h)Object.hasOwnProperty.call(h,i)&&t.call(e||h[i],h[i],i,h)}function Qr(h,t,e){function i(o,a){let n=h.removeEventListener;n&&n.call(h,o,a,!1)}function s(o){let a,n;h.nodeName&&(t?(a={})[t]=!0:a=o,Me(a,function(l,c){if(o[c])for(n=o[c].length;n--;)i(c,o[c][n].fn)}))}let r=typeof h=="function"&&h.prototype||h;if(Object.hasOwnProperty.call(r,"hcEvents")){let o=r.hcEvents;if(t){let a=o[t]||[];e?(o[t]=a.filter(function(n){return e!==n.fn}),i(t,e)):(s(o),o[t]=[])}else s(o),delete r.hcEvents}}function to(h,t,e,i){if(e=e||{},(ze==null?void 0:ze.createEvent)&&(h.dispatchEvent||h.fireEvent&&h!==O)){let s=ze.createEvent("Events");s.initEvent(t,!0,!0),e=We(s,e),h.dispatchEvent?h.dispatchEvent(e):h.fireEvent(t,e)}else if(h.hcEvents){e.target||We(e,{preventDefault:function(){e.defaultPrevented=!0},target:h,type:t});let s=[],r=h,o=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[t]&&(s.length&&(o=!0),s.unshift.apply(s,r.hcEvents[t])),r=Object.getPrototypeOf(r);o&&s.sort((a,n)=>a.order-n.order),s.forEach(a=>{a.fn.call(h,e)===!1&&e.preventDefault()})}i&&!e.defaultPrevented&&i.call(h,e)}let In=function(){let h=Math.random().toString(36).substring(2,9)+"-",t=0;return function(){return"highcharts-"+(F?"":h)+t++}}();we.jQuery&&(we.jQuery.fn.highcharts=function(){let h=[].slice.call(arguments);if(this[0])return h[0]?(new O[si(h[0])?h.shift():"Chart"](this[0],h[0],h[1]),this):Ln[Zr(this[0],"data-highcharts-chart")]});let W={addEvent:function(h,t,e,i={}){let s=typeof h=="function"&&h.prototype||h;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={});let r=s.hcEvents;O.Point&&h instanceof O.Point&&h.series&&h.series.chart&&(h.series.chart.runTrackerClick=!0);let o=h.addEventListener;o&&o.call(h,t,e,!!O.supportsPassiveEvents&&{passive:i.passive===void 0?t.indexOf("touch")!==-1:i.passive,capture:!1}),r[t]||(r[t]=[]);let a={fn:e,order:typeof i.order=="number"?i.order:1/0};return r[t].push(a),r[t].sort((n,l)=>n.order-l.order),function(){Qr(h,t,e)}},arrayMax:function(h){let t=h.length,e=h[0];for(;t--;)h[t]>e&&(e=h[t]);return e},arrayMin:function(h){let t=h.length,e=h[0];for(;t--;)h[t]<e&&(e=h[t]);return e},attr:Zr,clamp:function(h,t,e){return h>t?h<e?h:e:t},clearTimeout:function(h){Re(h)&&clearTimeout(h)},correctFloat:Jr,createElement:function(h,t,e,i,s){let r=ze.createElement(h);return t&&We(r,t),s&&Ps(r,{padding:"0",border:"none",margin:"0"}),e&&Ps(r,e),i&&i.appendChild(r),r},crisp:function(h,t=0,e){let i=t%2/2,s=e?-1:1;return(Math.round(h*s-i)+i)*s},css:Ps,defined:Re,destroyObjectProperties:function(h,t,e){Me(h,function(i,s){i!==t&&(i!=null&&i.destroy)&&i.destroy(),(i!=null&&i.destroy||!e)&&delete h[s]})},diffObjects:function(h,t,e,i){let s={};return function r(o,a,n,l){let c=e?a:o;Me(o,function(d,p){if(!l&&i&&i.indexOf(p)>-1&&a[p]){d=Kr(d),n[p]=[];for(let u=0;u<Math.max(d.length,a[p].length);u++)a[p][u]&&(d[u]===void 0?n[p][u]=a[p][u]:(n[p][u]={},r(d[u],a[p][u],n[p][u],l+1)))}else Ne(d,!0)&&!d.nodeType?(n[p]=Ei(d)?[]:{},r(d,a[p]||{},n[p],l+1),Object.keys(n[p]).length===0&&(p!=="colorAxis"||l!==0)&&delete n[p]):(o[p]!==a[p]||p in o&&!(p in a))&&p!=="__proto__"&&p!=="constructor"&&(n[p]=c[p])})}(h,t,s,0),s},discardElement:function(h){var t;(t=h==null?void 0:h.parentElement)==null||t.removeChild(h)},erase:function(h,t){let e=h.length;for(;e--;)if(h[e]===t){h.splice(e,1);break}},error:ii,extend:We,extendClass:function(h,t){let e=function(){};return e.prototype=new h,We(e.prototype,t),e},find:En,fireEvent:to,getAlignFactor:(h="")=>({center:.5,right:1,middle:.5,bottom:1})[h]||0,getClosestDistance:function(h,t){let e,i,s,r=!t;return h.forEach(o=>{if(o.length>1)for(s=o.length-1;s>0;s--)(i=o[s]-o[s-1])<0&&!r?(t==null||t(),t=void 0):i&&(e===void 0||i<e)&&(e=i)}),e},getMagnitude:_r,getNestedProperty:function(h,t){let e=h.split(".");for(;e.length&&Re(t);){let i=e.shift();if(i===void 0||i==="__proto__")return;if(i==="this"){let r;return Ne(t)&&(r=t["@this"]),r??t}let s=t[i.replace(/[\\'"]/g,"")];if(!Re(s)||typeof s=="function"||typeof s.nodeType=="number"||s===we)return;t=s}return t},getStyle:function h(t,e,i){var o;let s;if(e==="width"){let a=Math.min(t.offsetWidth,t.scrollWidth),n=(o=t.getBoundingClientRect)==null?void 0:o.call(t).width;return n<a&&n>=a-1&&(a=Math.floor(n)),Math.max(0,a-(h(t,"padding-left",!0)||0)-(h(t,"padding-right",!0)||0))}if(e==="height")return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(h(t,"padding-top",!0)||0)-(h(t,"padding-bottom",!0)||0));let r=we.getComputedStyle(t,void 0);return r&&(s=r.getPropertyValue(e),ri(i,e!=="opacity")&&(s=Ur(s))),s},insertItem:function(h,t){let e,i=h.options.index,s=t.length;for(e=h.options.isInternal?s:0;e<s+1;e++)if(!t[e]||As(i)&&i<ri(t[e].options.index,t[e]._i)||t[e].options.isInternal){t.splice(e,0,h);break}return e},isArray:Ei,isClass:qr,isDOMElement:Cs,isFunction:function(h){return typeof h=="function"},isNumber:As,isObject:Ne,isString:si,merge:function(h,...t){let e,i=[h,...t],s={},r=function(a,n){return typeof a!="object"&&(a={}),Me(n,function(l,c){c!=="__proto__"&&c!=="constructor"&&(!Ne(l,!0)||qr(l)||Cs(l)?a[c]=n[c]:a[c]=r(a[c]||{},l))}),a};h===!0&&(s=i[1],i=Array.prototype.slice.call(i,2));let o=i.length;for(e=0;e<o;e++)s=r(s,i[e]);return s},normalizeTickInterval:function(h,t,e,i,s){let r,o=h;e=ri(e,_r(h));let a=h/e;for(!t&&(t=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],i===!1&&(e===1?t=t.filter(function(n){return n%1==0}):e<=.1&&(t=[1/e]))),r=0;r<t.length&&(o=t[r],(!s||!(o*e>=h))&&(s||!(a<=(t[r]+(t[r+1]||t[r]))/2)));r++);return Jr(o*e,-Math.round(Math.log(.001)/Math.LN10))},objectEach:Me,offset:function(h){let t=ze.documentElement,e=h.parentElement||h.parentNode?h.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(we.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(we.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}},pad:function(h,t,e){return Array((t||2)+1-String(h).replace("-","").length).join(e||"0")+h},pick:ri,pInt:Ur,pushUnique:function(h,t){return 0>h.indexOf(t)&&!!h.push(t)},relativeLength:function(h,t,e){return/%$/.test(h)?t*parseFloat(h)/100+(e||0):parseFloat(h)},removeEvent:Qr,replaceNested:function(h,...t){let e,i;do for(i of(e=h,t))h=h.replace(i[0],i[1]);while(h!==e);return h},splat:Kr,stableSort:function(h,t){let e,i,s=h.length;for(i=0;i<s;i++)h[i].safeI=i;for(h.sort(function(r,o){return(e=t(r,o))===0?r.safeI-o.safeI:e}),i=0;i<s;i++)delete h[i].safeI},syncTimeout:function(h,t,e){return t>0?setTimeout(h,t,e):(h.call(0,e),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(h){return si(h)?h.substring(0,1).toUpperCase()+h.substring(1):String(h)},uniqueKey:In,useSerialIds:function(h){return F=ri(h,F)},wrap:function(h,t,e){let i=h[t];h[t]=function(){let s=arguments,r=this;return e.apply(this,[function(){return i.apply(r,arguments.length?arguments:s)}].concat([].slice.call(arguments)))}}},{pageLang:Dn,win:Ii}=O,{defined:eo,error:io,extend:Os,isNumber:so,isObject:Ls,isString:oi,merge:Bn,objectEach:zn,pad:le,splat:Nn,timeUnits:Es,ucfirst:Rn}=W,Wn=O.isSafari&&Ii.Intl&&!Ii.Intl.DateTimeFormat.prototype.formatRange,Hn=h=>h.main===void 0,Xn=class{constructor(h,t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=Ii.Date,this.update(h),this.lang=t}update(h={}){this.dTLCache={},this.options=h=Bn(!0,this.options,h);let{timezoneOffset:t,useUTC:e}=h;this.Date=h.Date||Ii.Date||Date;let i=h.timezone;eo(e)&&(i=e?"UTC":void 0),t&&t%60==0&&(i="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone=i!=="UTC"&&(i==null?void 0:i.indexOf("Etc/GMT"))!==0,this.timezone=i,["months","shortMonths","weekdays","shortWeekdays"].forEach(s=>{let r=/months/i.test(s),o=/short/.test(s),a={timeZone:"UTC"};a[r?"month":"weekday"]=o?"short":"long",this[s]=(r?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(n=>this.dateFormat(a,(r?31:1)*24*36e5*n))})}toParts(h){let[t,e,i,s,r,o,a]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},h,"es").split(/(?:, | |\/|:)/g);return[s,+i-1,e,r,o,a,Math.floor(Number(h)||0)%1e3,"DLMXJVS".indexOf(t)].map(Number)}dateTimeFormat(h,t,e=this.options.locale||Dn){let i=JSON.stringify(h)+e;oi(h)&&(h=this.str2dtf(h));let s=this.dTLCache[i];if(!s){h.timeZone??(h.timeZone=this.timezone);try{s=new Intl.DateTimeFormat(e,h)}catch(r){/Invalid time zone/i.test(r.message)?(io(34),h.timeZone="UTC",s=new Intl.DateTimeFormat(e,h)):io(r.message,!1)}}return this.dTLCache[i]=s,(s==null?void 0:s.format(t))||""}str2dtf(h,t={}){let e={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(e).forEach(i=>{h.indexOf(i)!==-1&&Os(t,e[i])}),t}makeTime(h,t,e=1,i=0,s,r,o){let a=this.Date.UTC(h,t,e,i,s||0,r||0,o||0);if(this.timezone!=="UTC"){let n=this.getTimezoneOffset(a);if(a+=n,[2,3,8,9,10,11].indexOf(t)!==-1&&(i<5||i>20)){let l=this.getTimezoneOffset(a);n!==l?a+=l-n:n-36e5!==this.getTimezoneOffset(a-36e5)||Wn||(a-=36e5)}}return a}parse(h){if(!oi(h))return h??void 0;let t=(h=h.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(h),e=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(h);t||e||(h+="Z");let i=Date.parse(h);if(so(i))return i+(!t||e?this.getTimezoneOffset(i):0)}getTimezoneOffset(h){if(this.timezone!=="UTC"){let[t,e,i,s,r=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},h,"en").split(/(GMT|:)/).map(Number),o=-(36e5*(i+r/60));if(so(o))return o}return 0}dateFormat(h,t,e){let i=this.lang;if(!eo(t)||isNaN(t))return(i==null?void 0:i.invalidDate)||"";if(oi(h=h??"%Y-%m-%d %H:%M:%S")){let s,r=/%\[([a-zA-Z]+)\]/g;for(;s=r.exec(h);)h=h.replace(s[0],this.dateTimeFormat(s[1],t,i==null?void 0:i.locale))}if(oi(h)&&h.indexOf("%")!==-1){let s=this,[r,o,a,n,l,c,d,p]=this.toParts(t),u=(i==null?void 0:i.weekdays)||this.weekdays,g=(i==null?void 0:i.shortWeekdays)||this.shortWeekdays,x=(i==null?void 0:i.months)||this.months,m=(i==null?void 0:i.shortMonths)||this.shortMonths;zn(Os({a:g?g[p]:u[p].substr(0,3),A:u[p],d:le(a),e:le(a,2," "),w:p,v:(i==null?void 0:i.weekFrom)??"",b:m[o],B:x[o],m:le(o+1),o:o+1,y:r.toString().substr(2,2),Y:r,H:le(n),k:n,I:le(n%12||12),l:n%12||12,M:le(l),p:n<12?"AM":"PM",P:n<12?"am":"pm",S:le(c),L:le(d,3)},O.dateFormats),function(f,y){if(oi(h))for(;h.indexOf("%"+y)!==-1;)h=h.replace("%"+y,typeof f=="function"?f.call(s,t):f)})}else if(Ls(h)){let s=(this.getTimezoneOffset(t)||0)/36e5,r=this.timezone||"Etc/GMT"+(s>=0?"+":"")+s,{prefix:o="",suffix:a=""}=h;h=o+this.dateTimeFormat(Os({timeZone:r},h),t)+a}return e?Rn(h):h}resolveDTLFormat(h){return Ls(h,!0)?Ls(h,!0)&&Hn(h)?{main:h}:h:{main:(h=Nn(h))[0],from:h[1],to:h[2]}}getDateFormat(h,t,e,i){let s=this.dateFormat("%m-%d %H:%M:%S.%L",t),r="01-01 00:00:00.000",o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",n=a;for(a in Es){if(h&&h===Es.week&&+this.dateFormat("%w",t)===e&&s.substr(6)===r.substr(6)){a="week";break}if(h&&Es[a]>h){a=n;break}if(o[a]&&s.substr(o[a])!==r.substr(o[a]))break;a!=="week"&&(n=a)}return this.resolveDTLFormat(i[a]).main}},{defined:ro,extend:Fn,timeUnits:mt}=W,Is=class extends Xn{getTimeTicks(h,t,e,i){let s=this,r=[],o={},{count:a=1,unitRange:n}=h,[l,c,d,p,u,g]=s.toParts(t),x=(t||0)%1e3,m;if(i??(i=1),ro(t)){if(x=n>=mt.second?0:a*Math.floor(x/a),n>=mt.second&&(g=n>=mt.minute?0:a*Math.floor(g/a)),n>=mt.minute&&(u=n>=mt.hour?0:a*Math.floor(u/a)),n>=mt.hour&&(p=n>=mt.day?0:a*Math.floor(p/a)),n>=mt.day&&(d=n>=mt.month?1:Math.max(1,a*Math.floor(d/a))),n>=mt.month&&(c=n>=mt.year?0:a*Math.floor(c/a)),n>=mt.year&&(l-=l%a),n===mt.week){a&&(t=s.makeTime(l,c,d,p,u,g,x));let b=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"),w="DLMXJVS".indexOf(b);d+=-w+i+(w<i?-7:0)}t=s.makeTime(l,c,d,p,u,g,x),s.variableTimezone&&ro(e)&&(m=e-t>4*mt.month||s.getTimezoneOffset(t)!==s.getTimezoneOffset(e));let f=t,y=1;for(;f<e;)r.push(f),n===mt.year?f=s.makeTime(l+y*a,0):n===mt.month?f=s.makeTime(l,c+y*a):m&&(n===mt.day||n===mt.week)?f=s.makeTime(l,c,d+y*a*(n===mt.day?1:7)):m&&n===mt.hour&&a>1?f=s.makeTime(l,c,d,p+y*a):f+=n*a,y++;r.push(f),n<=mt.hour&&r.length<1e4&&r.forEach(b=>{b%18e5==0&&s.dateFormat("%H%M%S%L",b)==="000000000"&&(o[b]="day")})}return r.info=Fn(h,{higherRanks:o,totalRange:n*a}),r}},{isTouchDevice:jn}=O,{fireEvent:Gn,merge:Yn}=W,re={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:h=>Math.sqrt(1-Math.pow(h-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,position:{x:0,y:3},shared:!1,snap:jn?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},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:"0.6em"},text:"Highcharts.com"}},Ds=new Is(re.time,re.lang),Ft={defaultOptions:re,defaultTime:Ds,getOptions:function(){return re},setOptions:function(h){var t;return Gn(O,"setOptions",{options:h}),Yn(!0,re,h),h.time&&Ds.update(re.time),h.lang&&"locale"in h.lang&&Ds.update({locale:h.lang.locale}),(t=h.lang)!=null&&t.chartTitle&&(re.title={...re.title,text:h.lang.chartTitle}),re}},{win:$n}=O,{isNumber:ai,isString:Vn,merge:Un,pInt:Dt,defined:oo}=W,ao=(h,t,e)=>`color-mix(in srgb,${h},${t} ${100*e}%)`,Bs=h=>Vn(h)&&!!h&&h!=="none";class ht{static parse(t){return t?new ht(t):ht.None}constructor(t){let e,i,s,r;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;let o=O.Color;if(o&&o!==ht)return new o(t);if(typeof t=="object"&&t.stops!==void 0)this.stops=t.stops.map(a=>new ht(a[1]));else if(typeof t=="string")for(this.input=t=ht.names[t.toLowerCase()]||t,s=ht.parsers.length;s--&&!i;)(e=(r=ht.parsers[s]).regex.exec(t))&&(i=r.parse(e));i&&(this.rgba=i)}get(t){let e=this.input,i=this.rgba;if(this.output)return this.output;if(typeof e=="object"&&this.stops!==void 0){let s=Un(e);return s.stops=[].slice.call(s.stops),this.stops.forEach((r,o)=>{s.stops[o]=[s.stops[o][0],r.get(t)]}),s}return i&&ai(i[0])?t!=="rgb"&&(t||i[3]!==1)?t==="a"?`${i[3]}`:"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach(function(i){i.brighten(t)});else if(ai(t)&&t!==0)if(ai(e[0]))for(let i=0;i<3;i++)e[i]+=Dt(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);else ht.useColorMix&&Bs(this.input)&&(this.output=ao(this.input,t>0?"white":"black",Math.abs(t)));return this}setOpacity(t){return this.rgba[3]=t,this}tweenTo(t,e){let i=this.rgba,s=t.rgba;if(!ai(i[0])||!ai(s[0]))return ht.useColorMix&&Bs(this.input)&&Bs(t.input)&&e<.99?ao(this.input,t.input,e):t.input||"none";let r=s[3]!==1||i[3]!==1,o=(n,l)=>n+(i[l]-n)*(1-e),a=s.slice(0,3).map(o).map(Math.round);return r&&a.push(o(s[3],3)),(r?"rgba(":"rgb(")+a.join(",")+")"}}ht.names={white:"#ffffff",black:"#000000"},ht.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(h){return[Dt(h[1]),Dt(h[2]),Dt(h[3]),parseFloat(h[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(h){return[Dt(h[1]),Dt(h[2]),Dt(h[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(h){return[Dt(h[1]+h[1],16),Dt(h[2]+h[2],16),Dt(h[3]+h[3],16),oo(h[4])?Dt(h[4]+h[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(h){return[Dt(h[1],16),Dt(h[2],16),Dt(h[3],16),oo(h[4])?Dt(h[4],16)/255:1]}}],ht.useColorMix=(wn=$n.CSS)==null?void 0:wn.supports("color","color-mix(in srgb,red,blue 9%)"),ht.None=new ht("");let{parse:no}=ht,{win:qn}=O,{isNumber:zs,objectEach:Zn}=W;class Bt{constructor(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}dSetter(){let t=this.paths,e=t==null?void 0:t[0],i=t==null?void 0:t[1],s=this.now||0,r=[];if(s!==1&&e&&i)if(e.length===i.length&&s<1)for(let o=0;o<i.length;o++){let a=e[o],n=i[o],l=[];for(let c=0;c<n.length;c++){let d=a[c],p=n[c];zs(d)&&zs(p)&&(n[0]!=="A"||c!==4&&c!==5)?l[c]=d+s*(p-d):l[c]=p}r.push(l)}else r=i;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)}update(){let t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)}run(t,e,i){let s=this,r=s.options,o=function(l){return!o.stopped&&s.step(l)},a=qn.requestAnimationFrame||function(l){setTimeout(l,13)},n=function(){for(let l=0;l<Bt.timers.length;l++)Bt.timers[l]()||Bt.timers.splice(l--,1);Bt.timers.length&&a(n)};t!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,o.elem=this.elem,o.prop=this.prop,o()&&Bt.timers.push(o)===1&&a(n)):(delete r.curAnim[this.prop],r.complete&&Object.keys(r.curAnim).length===0&&r.complete.call(this.elem))}step(t){let e,i,s=+new Date,r=this.options,o=this.elem,a=r.complete,n=r.duration,l=r.curAnim;return o.attr&&!o.element?e=!1:t||s>=n+this.startTime?(this.now=this.end,this.pos=1,this.update(),l[this.prop]=!0,i=!0,Zn(l,function(c){c!==!0&&(i=!1)}),i&&a&&a.call(o),e=!1):(this.pos=r.easing((s-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let s=t.startX,r=t.endX,o=i.slice(),a=t.isArea,n=a?2:1,l=e&&i.length>e.length&&i.hasStackedCliffs,c,d,p,u,g=e==null?void 0:e.slice();if(!g||l)return[o,o];function x(f,y){for(;f.length<d;){let b=f[0],w=y[d-f.length];if(w&&b[0]==="M"&&(w[0]==="C"?f[0]=["C",b[1],b[2],b[1],b[2],b[1],b[2]]:f[0]=["L",b[1],b[2]]),f.unshift(b),a){let v=f.pop();f.push(f[f.length-1],v)}}}function m(f){for(;f.length<d;){let y=f[Math.floor(f.length/n)-1].slice();if(y[0]==="C"&&(y[1]=y[5],y[2]=y[6]),a){let b=f[Math.floor(f.length/n)].slice();f.splice(f.length/2,0,y,b)}else f.push(y)}}if(s&&r&&r.length){for(p=0;p<s.length;p++){if(s[p]===r[0]){c=p;break}if(s[0]===r[r.length-s.length+p]){c=p,u=!0;break}if(s[s.length-1]===r[r.length-s.length+p]){c=s.length-p;break}}c===void 0&&(g=[])}return g.length&&zs(c)&&(d=o.length+c*n,u?(x(g,o),m(o)):(x(o,g),m(g))),[g,o]}fillSetter(){Bt.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,no(this.start).tweenTo(no(this.end),this.pos),void 0,!0)}}Bt.timers=[];let{defined:Kn,getStyle:_n,isArray:Jn,isNumber:Qn,isObject:Ns,merge:lo,objectEach:tl,pick:el}=W;function Rs(h){return Ns(h)?lo({duration:500,defer:0},h):{duration:500*!!h,defer:0}}function ho(h,t){let e=Bt.timers.length;for(;e--;)Bt.timers[e].elem!==h||t&&t!==Bt.timers[e].prop||(Bt.timers[e].stopped=!0)}let At={animate:function(h,t,e){let i,s="",r,o,a;Ns(e)||(a=arguments,e={duration:a[2],easing:a[3],complete:a[4]}),Qn(e.duration)||(e.duration=400),e.easing=typeof e.easing=="function"?e.easing:Math[e.easing]||Math.easeInOutSine,e.curAnim=lo(t),tl(t,function(n,l){ho(h,l),o=new Bt(h,e,l),r=void 0,l==="d"&&Jn(t.d)?(o.paths=o.initPath(h,h.pathArray,t.d),o.toD=t.d,i=0,r=1):h.attr?i=h.attr(l):(i=parseFloat(_n(h,l))||0,l!=="opacity"&&(s="px")),r||(r=n),typeof r=="string"&&r.match("px")&&(r=r.replace(/px/g,"")),o.run(i,r,s)})},animObject:Rs,getDeferredAnimation:function(h,t,e){let i=Rs(t),s=e?[e]:h.series,r=0,o=0;return s.forEach(a=>{let n=Rs(a.options.animation);r=Ns(t)&&Kn(t.defer)?i.defer:Math.max(r,n.duration+n.defer),o=Math.min(i.duration,n.duration)}),h.renderer.forExport&&(r=0),{defer:Math.max(0,r-o),duration:Math.min(r,o)}},setAnimation:function(h,t){t.renderer.globalAnimation=el(h,t.options.chart.animation,!0)},stop:ho},{SVG_NS:co,win:il}=O,{attr:sl,createElement:rl,css:ol,error:po,isFunction:al,isString:uo,objectEach:go,splat:nl}=W,{trustedTypes:Ws}=il,Di=Ws&&al(Ws.createPolicy)&&Ws.createPolicy("highcharts",{createHTML:h=>h}),ll=Di?Di.createHTML(""):"";class lt{static filterUserAttributes(t){return go(t,(e,i)=>{let s=!0;lt.allowedAttributes.indexOf(i)===-1&&(s=!1),["background","dynsrc","href","lowsrc","src"].indexOf(i)!==-1&&(s=uo(e)&<.allowedReferences.some(r=>e.indexOf(r)===0)),s||(po(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),uo(e)&&t[i]&&(t[i]=e.replace(/</g,"<"))}),t}static parseStyle(t){return t.split(";").reduce((e,i)=>{let s=i.split(":").map(o=>o.trim()),r=s.shift();return r&&s.length&&(e[r.replace(/-([a-z])/g,o=>o[1].toUpperCase())]=s.join(":")),e},{})}static setElementHTML(t,e){t.innerHTML=lt.emptyHTML,e&&new lt(e).addToDOM(t)}constructor(t){this.nodes=typeof t=="string"?this.parseMarkup(t):t}addToDOM(t){return function e(i,s){let r;return nl(i).forEach(function(o){let a,n=o.tagName,l=o.textContent?O.doc.createTextNode(o.textContent):void 0,c=lt.bypassHTMLFiltering;if(n)if(n==="#text")a=l;else if(lt.allowedTags.indexOf(n)!==-1||c){let d=n==="svg"?co:s.namespaceURI||co,p=O.doc.createElementNS(d,n),u=o.attributes||{};go(o,function(g,x){x!=="tagName"&&x!=="attributes"&&x!=="children"&&x!=="style"&&x!=="textContent"&&(u[x]=g)}),sl(p,c?u:lt.filterUserAttributes(u)),o.style&&ol(p,o.style),l&&p.appendChild(l),e(o.children||[],p),a=p}else po(33,!1,void 0,{"Invalid tagName in config":n});a&&s.appendChild(a),r=a}),r}(this.nodes,t)}parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=new DOMParser().parseFromString(Di?Di.createHTML(t):t,"text/html")}catch{}if(!e){let r=rl("div");r.innerHTML=t,e={body:r}}let s=(r,o)=>{let a=r.nodeName.toLowerCase(),n={tagName:a};a==="#text"&&(n.textContent=r.textContent||"");let l=r.attributes;if(l){let c={};[].forEach.call(l,d=>{d.name==="data-style"?n.style=lt.parseStyle(d.value):c[d.name]=d.value}),n.attributes=c}if(r.childNodes.length){let c=[];[].forEach.call(r.childNodes,d=>{s(d,c)}),c.length&&(n.children=c)}o.push(n)};return[].forEach.call(e.body.childNodes,r=>s(r,i)),i}}lt.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],lt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],lt.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],lt.emptyHTML=ll,lt.bypassHTMLFiltering=!1;let{defaultOptions:fo,defaultTime:mo}=Ft,{pageLang:hl}=O,{extend:dl,getNestedProperty:cl,isArray:pl,isNumber:xo,isObject:ul,isString:gl,pick:fl,ucfirst:ml}=W,Bi={add:(h,t)=>h+t,divide:(h,t)=>t!==0?h/t:"",eq:(h,t)=>h==t,each:function(h){let t=arguments[arguments.length-1];return!!pl(h)&&h.map((e,i)=>zi(t.body,dl(ul(e)?e:{"@this":e},{"@index":i,"@first":i===0,"@last":i===h.length-1}))).join("")},ge:(h,t)=>h>=t,gt:(h,t)=>h>t,if:h=>!!h,le:(h,t)=>h<=t,lt:(h,t)=>h<t,multiply:(h,t)=>h*t,ne:(h,t)=>h!=t,subtract:(h,t)=>h-t,ucfirst:ml,unless:h=>!h},yo={},bo=h=>/^["'].+["']$/.test(h);function zi(h="",t,e){var m;let i=/\{([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/g,s=/\(([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/g,r=[],o=/f$/,a=/\.(\d)/,n=((m=e==null?void 0:e.options)==null?void 0:m.lang)||fo.lang,l=(e==null?void 0:e.time)||mo,c=(e==null?void 0:e.numberFormatter)||vo,d=(f="")=>{let y;return f==="true"||f!=="false"&&((y=Number(f)).toString()===f?y:bo(f)?f.slice(1,-1):cl(f,t))},p,u,g=0,x;for(;(p=i.exec(h))!==null;){let f=p,y=s.exec(p[1]);y&&(p=y,x=!0),u!=null&&u.isBlock||(u={ctx:t,expression:p[1],find:p[0],isBlock:p[1].charAt(0)==="#",start:p.index,startInner:p.index+p[0].length,length:p[0].length});let b=(u.isBlock?f:p)[1].split(" ")[0].replace("#","");Bi[b]&&(u.isBlock&&b===u.fn&&g++,u.fn||(u.fn=b));let w=p[1]==="else";if(u.isBlock&&u.fn&&(p[1]===`/${u.fn}`||w))if(g)!w&&g--;else{let v=u.startInner,k=h.substr(v,p.index-v);u.body===void 0?(u.body=k,u.startInner=p.index+p[0].length):u.elseBody=k,u.find+=k+p[0],w||(r.push(u),u=void 0)}else u.isBlock||r.push(u);if(y&&!(u!=null&&u.isBlock))break}return r.forEach(f=>{let y,b,{body:w,elseBody:v,expression:k,fn:S}=f;if(S){let M=[f],T=[],A=k.length,L=0,I;for(b=0;b<=A;b++){let E=k.charAt(b);I||E!=='"'&&E!=="'"?I===E&&(I=""):I=E,I||E!==" "&&b!==A||(T.push(k.substr(L,b-L)),L=b+1)}for(b=Bi[S].length;b--;)M.unshift(d(T[b+1]));y=Bi[S].apply(t,M),f.isBlock&&typeof y=="boolean"&&(y=zi(y?w:v,t,e))}else{let M=bo(k)?[k]:k.split(":");if(y=d(M.shift()||""),M.length&&typeof y=="number"){let T=M.join(":");if(o.test(T)){let A=parseInt((T.match(a)||["","-1"])[1],10);y!==null&&(y=c(y,A,n.decimalPoint,T.indexOf(",")>-1?n.thousandsSep:""))}else y=l.dateFormat(T,y)}s.lastIndex=0,s.test(f.find)&&gl(y)&&(y=`"${y}"`)}h=h.replace(f.find,fl(y,""))}),x?zi(h,t,e):h}function vo(h,t,e,i){var x;t*=1;let s,r,[o,a]=(h=+h||0).toString().split("e").map(Number),n=((x=this==null?void 0:this.options)==null?void 0:x.lang)||fo.lang,l=(h.toString().split(".")[1]||"").split("e")[0].length,c=t,d={};e??(e=n.decimalPoint),i??(i=n.thousandsSep),t===-1?t=Math.min(l,20):xo(t)?t&&a<0&&((r=t+a)>=0?(o=+o.toExponential(r).split("e")[0],t=r):(o=Math.floor(o),h=t<20?+(o*Math.pow(10,a)).toFixed(t):0,a=0)):t=2,a&&(t??(t=2),h=o),xo(t)&&t>=0&&(d.minimumFractionDigits=t,d.maximumFractionDigits=t),i===""&&(d.useGrouping=!1);let p=i||e,u=p?"en":(this==null?void 0:this.locale)||n.locale||hl,g=JSON.stringify(d)+u;return s=(yo[g]??(yo[g]=new Intl.NumberFormat(u,d))).format(h),p&&(s=s.replace(/([,\.])/g,"_$1").replace(/_\,/g,i??",").replace("_.",e??".")),(t||+s!=0)&&(!(a<0)||c)||(s="0"),a&&+s!=0&&(s+="e"+(a<0?"":"+")+a),s}let jt={dateFormat:function(h,t,e){return mo.dateFormat(h,t,e)},format:zi,helpers:Bi,numberFormat:vo};(function(h){let t;h.rendererTypes={},h.getRendererType=function(e=t){return h.rendererTypes[e]||h.rendererTypes[t]},h.registerRendererType=function(e,i,s){h.rendererTypes[e]=i,(!t||s)&&(t=e,O.Renderer=i)}})(N||(N={}));let ni=N,{clamp:xl,pick:yl,pushUnique:bl,stableSort:Hs}=W;(D||(D={})).distribute=function h(t,e,i){let s=t,r=s.reducedLen||e,o=(b,w)=>b.target-w.target,a=[],n=t.length,l=[],c=a.push,d,p,u,g=!0,x,m,f=0,y;for(d=n;d--;)f+=t[d].size;if(f>r){for(Hs(t,(b,w)=>(w.rank||0)-(b.rank||0)),u=(y=t[0].rank===t[t.length-1].rank)?n/2:-1,p=y?u:n-1;u&&f>r;)x=t[d=Math.floor(p)],bl(l,d)&&(f-=x.size),p+=u,y&&p>=t.length&&(u/=2,p=u);l.sort((b,w)=>w-b).forEach(b=>c.apply(a,t.splice(b,1)))}for(Hs(t,o),t=t.map(b=>({size:b.size,targets:[b.target],align:yl(b.align,.5)}));g;){for(d=t.length;d--;)x=t[d],m=(Math.min.apply(0,x.targets)+Math.max.apply(0,x.targets))/2,x.pos=xl(m-x.size*x.align,0,e-x.size);for(d=t.length,g=!1;d--;)d>0&&t[d-1].pos+t[d-1].size>t[d].pos&&(t[d-1].size+=t[d].size,t[d-1].targets=t[d-1].targets.concat(t[d].targets),t[d-1].align=.5,t[d-1].pos+t[d-1].size>e&&(t[d-1].pos=e-t[d-1].size),t.splice(d,1),g=!0)}return c.apply(s,a),d=0,t.some(b=>{let w=0;return(b.targets||[]).some(()=>(s[d].pos=b.pos+w,i!==void 0&&Math.abs(s[d].pos-s[d].target)>i?(s.slice(0,d+1).forEach(v=>delete v.pos),s.reducedLen=(s.reducedLen||e)-.1*e,s.reducedLen>.1*e&&h(s,e,i),!0):(w+=s[d].size,d++,!1)))}),Hs(s,o),s};let Ni=D,{animate:vl,animObject:kl,stop:ko}=At,{deg2rad:wo,doc:He,svg:wl,SVG_NS:Ri,win:Ml,isFirefox:Sl}=O,{addEvent:Tl,attr:Xs,createElement:Cl,crisp:Wi,css:Mo,defined:_t,erase:Al,extend:li,fireEvent:Fs,getAlignFactor:js,isArray:So,isFunction:To,isNumber:Pl,isObject:Ol,isString:Co,merge:Gs,objectEach:Xe,pick:oe,pInt:Hi,pushUnique:Ll,replaceNested:El,syncTimeout:Il,uniqueKey:Ao}=W;class kt{_defaultGetter(t){let e=oe(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e}_defaultSetter(t,e,i){i.setAttribute(e,t)}add(t){let e,i=this.renderer,s=this.element;return t&&(this.parentGroup=t),this.textStr!==void 0&&this.element.nodeName==="text"&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(s),this.onAdd&&this.onAdd(),this}addClass(t,e){let i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(s,r){return i.indexOf(r)===-1&&s.push(r),s},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,i,s=!0){let r=this.renderer,o=r.alignedObjects,a=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let n=!i||Co(i)?i||"renderer":void 0;n&&(a&&Ll(o,this),i=void 0);let l=oe(i,r[n],r),c=(l.x||0)+(t.x||0)+((l.width||0)-(t.width||0))*js(t.align),d=(l.y||0)+(t.y||0)+((l.height||0)-(t.height||0))*js(t.verticalAlign),p={"text-align":t==null?void 0:t.align};return p[e?"translateX":"x"]=Math.round(c),p[e?"translateY":"y"]=Math.round(d),s&&(this[this.placed?"animate":"attr"](p),this.placed=!0),this.alignAttr=p,this}alignSetter(t){let e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))}animate(t,e,i){let s=kl(oe(e,this.renderer.globalAnimation,!0)),r=s.defer;return He.hidden&&(s.duration=0),s.duration!==0?(i&&(s.complete=i),Il(()=>{this.element&&vl(this,t,s)},r)):(this.attr(t,void 0,i||s.complete),Xe(t,function(o,a){s.step&&s.step.call(this,o,{prop:a,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;t.indexOf("contrast")!==-1&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let i=t.indexOf(" "),s=t.substring(i+1),r=t.substring(0,i);if(r&&r!=="none"&&O.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(c,d,p){return 2*Number(d)+p}),this.removeTextOutline();let o=He.createElementNS(Ri,"tspan");Xs(o,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":r,"stroke-linejoin":"round"});let a=e.querySelector("textPath")||e;[].forEach.call(a.childNodes,c=>{let d=c.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(p=>d.removeAttribute(p)),o.appendChild(d)});let n=0;[].forEach.call(a.querySelectorAll("text tspan"),c=>{n+=Number(c.getAttribute("dy"))});let l=He.createElementNS(Ri,"tspan");l.textContent="",Xs(l,{x:Number(e.getAttribute("x")),dy:-n}),o.appendChild(l),a.insertBefore(o,a.firstChild)}}attr(t,e,i,s){let{element:r}=this,o=kt.symbolCustomAttribs,a,n,l=this,c;return typeof t=="string"&&e!==void 0&&(a=t,(t={})[a]=e),typeof t=="string"?l=(this[t+"Getter"]||this._defaultGetter).call(this,t,r):(Xe(t,function(d,p){c=!1,s||ko(this,p),this.symbolName&&o.indexOf(p)!==-1&&(n||(this.symbolAttr(t),n=!0),c=!0),this.rotation&&(p==="x"||p==="y")&&(this.doTransform=!0),c||(this[p+"Setter"]||this._defaultSetter).call(this,d,p,r)},this),thi