@xcpcio/board-app 0.40.1 → 0.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Board-4f93431a.js +3 -0
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-de0438cc.js → DataSourceInput.vue_vue_type_script_setup_true_lang-ccfb3c35.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-c54d28b4.js → TheInput.vue_vue_type_script_setup_true_lang-0a9269e5.js} +1 -1
- package/dist/assets/{_...all_-ec9641d7.js → _...all_-733b9c9e.js} +1 -1
- package/dist/assets/{_name_-526d9d20.js → _name_-6775a1c7.js} +1 -1
- package/dist/assets/{about-21614cda.js → about-306308de.js} +1 -1
- package/dist/assets/{board-5052bf34.js → board-eaf015e7.js} +1 -1
- package/dist/assets/{board-layout-e6d7ade6.js → board-layout-30b58337.js} +1 -1
- package/dist/assets/{headless-607dad2c.js → headless-fdb64ff6.js} +1 -1
- package/dist/assets/{home-dcdb805d.js → home-0a115f27.js} +1 -1
- package/dist/assets/{index-49877543.js → index-4fb9a30b.js} +1 -1
- package/dist/assets/{index-8f24cf38.js → index-7bad255e.js} +1 -1
- package/dist/assets/{index-38db6b11.js → index-b69af1ad.js} +4 -4
- package/dist/assets/{index-layout-51870c1c.js → index-layout-4b8f0442.js} +1 -1
- package/dist/assets/{test-9f999d73.js → test-055a9523.js} +1 -1
- package/dist/assets/{useQueryBoardData-659a29c5.js → useQueryBoardData-c3f90a77.js} +1 -1
- package/dist/assets/{user-994f57d3.js → user-fed676c6.js} +1 -1
- package/dist/assets/{virtual_pwa-register-d81541dc.js → virtual_pwa-register-f105d24b.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/src/components/board/OptionsModal.vue +19 -0
- package/dist/assets/Board-d374c949.js +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var Ge=Object.defineProperty;var Xe=(at,ot,st)=>ot in at?Ge(at,ot,{enumerable:!0,configurable:!0,writable:!0,value:st}):at[ot]=st;var oe=(at,ot,st)=>(Xe(at,typeof ot!="symbol"?ot+"":ot,st),st);import{g as Dt,s as kt,U as Ue,w as Qt,o as ut,c as ft,d as tt,x as Yt,V as ge,t as mt,n as Pt,W as Vt,I as Wt,F as Ot,D as It,m as wt,T as $t,M as _e,N as Ye,K as Jt,X as Oe,u as qt,i as At,E as Ht,S as Bt,l as Z,b as Tt,H as zt,Y as Ve,Z as Gt,$ as qe,a0 as Le,a1 as me,a as Xt,G as Ke,a2 as Kt,a3 as Ze,a4 as Ee,a5 as De,a6 as Je,a7 as xe,a8 as Qe,a9 as Ie,aa as ti,ab as ye,ac as le,ad as ee,ae as ie,af as je,v as ei,J as pe,ag as Be,Q as ii,ah as si,h as oi,ai as ve,aj as ni,ak as ri,j as ai,y as li,z as hi,al as ke,am as ci,an as di,p as pi,k as ui,ao as fi,R as gi,ap as mi,aq as xi}from"./index-b69af1ad.js";import{u as yi}from"./useQueryBoardData-c3f90a77.js";const vi={class:"md:inset-0 w-[100%] h-[100%]",fixed:"","z-9997":"","of-x-hidden":"",flex:"","justify-center":"","items-start":"","md:mt-32":"","sm:mt-16":""},ki={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},bi={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},Si={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},wi=tt("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[tt("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),Ci=tt("span",{"sr-only":""}," Close modal ",-1),Mi=[wi,Ci],he=Dt({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null},emits:["update:isHidden"],setup(at,{emit:ot}){const st=at,T=kt({get(){return st.isHidden},set(G){ot("update:isHidden",G)}});function B(){T.value=!0}const{Escape:P}=Ue();return Qt(P,G=>{G&&B()}),(G,q)=>(ut(),ft("div",vi,[tt("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-9998":"",style:Yt({backgroundColor:"rgba(0, 0, 0, 0.5)"}),onClick:B},null,4),tt("div",{class:Pt(["relative p-4",[st.width??"w-[78%]"]]),"z-9999":""},[tt("div",ki,[tt("div",bi,[ge(G.$slots,"header",{},()=>[tt("h3",Si,mt(st.title),1)]),tt("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:B},Mi)]),ge(G.$slots,"default")])],2)]))}}),jt={openOptions(at){at.$refs.input.focus(),at.showMenu=!0,at.mousedownState=!1},blurInput(at){at.mousedownState||(at.searchText="",at.closeOptions()),at.$emit("blur")},closeOptions(at){at.$refs.input.blur(),at.showMenu=!1},prevItem(at){const ot=at.pointer-1,st=at.$el.offsetHeight*ot;ot>=0&&(at.pointer=ot),at.$refs.menu.scrollTop=st},nextItem(at){const ot=at.pointer+1,st=at.$el.offsetHeight*ot;ot<=at.filteredOptions.length-1&&(at.pointer=ot);const T=at.$refs.menu.offsetHeight,B=Math.ceil((at.$refs.menu.scrollTop+at.$el.offsetHeight)/T),P=Math.ceil(st/T);B!==P&&(at.$refs.menu.scrollTop=(P-1)*at.$refs.menu.offsetHeight)},enterItem(at){const ot=at.filteredOptions[at.pointer],st=ot.disabled;ot&&!st&&at.selectItem(ot)},pointerSet(at,ot){at.pointer=ot},pointerAdjust(at){at.pointer>=at.filteredOptions.length-1&&(at.pointer=at.filteredOptions.length?at.filteredOptions.length-1:0)},mousedownItem(at){at.mousedownState=!0}};function Ti(at){return new RegExp(at.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const ze={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:(at,ot)=>at.match(Ti(ot))}}},Re=(at,ot)=>{const st=at.__vccOpts||at;for(const[T,B]of ot)st[T]=B;return st},Ai={name:"ModelSelect",mixins:[ze],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(at){this.pointer=this.filteredOptions.findIndex(ot=>ot.value===this.optionValue(at))},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 at=this.placeholder;return this.selectedOption&&(at=this.selectedOption.text),at}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(at=>this.customAttr(at))}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(at=>{try{return this.filterPredicate(at.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(at=>at.value===this.optionValue(this.modelValue))}},methods:{deleteTextOrItem(){!this.searchText&&this.modelValue&&(this.selectItem({}),this.openOptions())},openOptions(){jt.openOptions(this)},blurInput(){jt.blurInput(this)},closeOptions(){jt.closeOptions(this)},prevItem(){jt.prevItem(this)},nextItem(){jt.nextItem(this)},enterItem(){jt.enterItem(this)},pointerSet(at){jt.pointerSet(this,at)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(at){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",at):(this.$emit("update:modelValue",at.value),at.value!==void 0&&at.value===at.text&&(this.searchText=at.value))},optionValue(at){return typeof at=="object"&&at!==null?at.value:at}}},Pi=tt("i",{class:"dropdown icon"},null,-1),_i=["disabled","tabindex","id","name","value"],Oi=["data-vss-custom-attr"],Li=["data-vss-custom-attr","onClick","onMouseenter"];function Ei(at,ot,st,T,B,P){return ut(),ft("div",{class:Pt(["ui fluid search selection dropdown",{"active visible":B.showMenu,error:at.isError,disabled:at.isDisabled}]),onClick:ot[11]||(ot[11]=(...G)=>P.openOptions&&P.openOptions(...G)),onFocus:ot[12]||(ot[12]=(...G)=>P.openOptions&&P.openOptions(...G))},[Pi,tt("input",{class:"search",autocomplete:"off",disabled:at.isDisabled,tabindex:at.isDisabled?-1:0,id:at.id,name:at.name,value:B.searchText,onInput:ot[0]||(ot[0]=G=>B.searchText=G.target.value),ref:"input",onFocus:ot[1]||(ot[1]=Vt((...G)=>P.openOptions&&P.openOptions(...G),["prevent"])),onKeyup:[ot[2]||(ot[2]=Wt((...G)=>P.closeOptions&&P.closeOptions(...G),["esc"])),ot[7]||(ot[7]=Wt(Vt((...G)=>P.enterItem&&P.enterItem(...G),["prevent"]),["enter"]))],onBlur:ot[3]||(ot[3]=(...G)=>P.blurInput&&P.blurInput(...G)),onKeydown:[ot[4]||(ot[4]=Wt((...G)=>P.prevItem&&P.prevItem(...G),["up"])),ot[5]||(ot[5]=Wt((...G)=>P.nextItem&&P.nextItem(...G),["down"])),ot[6]||(ot[6]=Wt(Vt(()=>{},["prevent"]),["enter"])),ot[8]||(ot[8]=Wt((...G)=>P.deleteTextOrItem&&P.deleteTextOrItem(...G),["delete"]))]},null,40,_i),tt("div",{class:Pt(["text",P.textClass]),"data-vss-custom-attr":P.searchTextCustomAttr},mt(P.inputText),11,Oi),tt("div",{class:Pt(["menu",P.menuClass]),ref:"menu",onMousedown:ot[10]||(ot[10]=Vt(()=>{},["prevent"])),style:Yt(P.menuStyle),tabindex:"-1"},[(ut(!0),ft(Ot,null,It(P.filteredOptions,(G,q)=>(ut(),ft("div",{key:q,class:Pt(["item",{selected:G.selected||B.pointer===q,disabled:G.disabled}]),"data-vss-custom-attr":P.customAttrs[q]?P.customAttrs[q]:"",onClick:Vt(J=>P.selectItem(G),["stop"]),onMousedown:ot[9]||(ot[9]=(...J)=>P.mousedownItem&&P.mousedownItem(...J)),onMouseenter:J=>P.pointerSet(q)},mt(G.text),43,Li))),128))],38)],34)}const Di=Re(Ai,[["render",Ei]]),Ii={name:"MultiSelect",mixins:[ze],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(at=>this.selectedOptions.findIndex(ot=>ot.value===at.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(at=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(at.text),this.searchText):this.filterPredicate(at.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(){jt.openOptions(this)},blurInput(){jt.blurInput(this)},closeOptions(){jt.closeOptions(this)},prevItem(){jt.prevItem(this),this.openOptions()},nextItem(){jt.nextItem(this),this.openOptions()},enterItem(){jt.enterItem(this)},pointerSet(at){jt.pointerSet(this,at)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(at){const ot=this.selectedOptions.concat(at),st=ot.filter((T,B)=>ot.indexOf(T)===B);this.closeOptions(),this.searchText="",this.$emit("select",st,at,"insert")},deleteItem(at){const ot=this.selectedOptions.filter(st=>st.value!==at.value);this.$emit("select",ot,at,"delete")},accentsTidy(at){let ot=at.toString().toLowerCase();return ot=ot.replace(new RegExp("[àáâãäå]","g"),"a"),ot=ot.replace(new RegExp("æ","g"),"ae"),ot=ot.replace(new RegExp("ç","g"),"c"),ot=ot.replace(new RegExp("[èéêë]","g"),"e"),ot=ot.replace(new RegExp("[ìíîï]","g"),"i"),ot=ot.replace(new RegExp("ñ","g"),"n"),ot=ot.replace(new RegExp("[òóôõö]","g"),"o"),ot=ot.replace(new RegExp("œ","g"),"oe"),ot=ot.replace(new RegExp("[ùúûü]","g"),"u"),ot=ot.replace(new RegExp("[ýÿ]","g"),"y"),ot}}},ji=tt("i",{class:"dropdown icon"},null,-1),Bi=["data-vss-custom-attr"],zi=["onClick"],Ri=["disabled","tabindex","id","name"],Ni=["data-vss-custom-attr","onClick","onMouseenter"];function Hi(at,ot,st,T,B,P){return ut(),ft("div",{class:Pt(["ui fluid search dropdown selection multiple",{"active visible":B.showMenu,error:at.isError,disabled:at.isDisabled}]),onClick:ot[11]||(ot[11]=(...G)=>P.openOptions&&P.openOptions(...G)),onFocus:ot[12]||(ot[12]=(...G)=>P.openOptions&&P.openOptions(...G))},[ji,st.hideSelectedOptions?wt("",!0):(ut(!0),ft(Ot,{key:0},It(st.selectedOptions,(G,q)=>(ut(),ft("a",{key:q,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":st.customAttr(G)},[$t(mt(G.text),1),tt("i",{class:"delete icon",onClick:J=>P.deleteItem(G)},null,8,zi)],8,Bi))),128)),_e(tt("input",{class:"search",autocomplete:"off",disabled:at.isDisabled,tabindex:at.isDisabled?-1:0,id:at.id,name:at.name,"onUpdate:modelValue":ot[0]||(ot[0]=G=>B.searchText=G),ref:"input",style:Yt(P.inputWidth),onFocus:ot[1]||(ot[1]=Vt((...G)=>P.openOptions&&P.openOptions(...G),["prevent"])),onKeyup:[ot[2]||(ot[2]=Wt((...G)=>P.closeOptions&&P.closeOptions(...G),["esc"])),ot[7]||(ot[7]=Wt(Vt((...G)=>P.enterItem&&P.enterItem(...G),["prevent"]),["enter"]))],onBlur:ot[3]||(ot[3]=(...G)=>P.blurInput&&P.blurInput(...G)),onKeydown:[ot[4]||(ot[4]=Wt((...G)=>P.prevItem&&P.prevItem(...G),["up"])),ot[5]||(ot[5]=Wt((...G)=>P.nextItem&&P.nextItem(...G),["down"])),ot[6]||(ot[6]=Wt(Vt(()=>{},["prevent"]),["enter"])),ot[8]||(ot[8]=Wt((...G)=>P.deleteTextOrLastItem&&P.deleteTextOrLastItem(...G),["delete"]))]},null,44,Ri),[[Ye,B.searchText]]),tt("div",{class:Pt(["text",P.textClass])},mt(P.inputText),3),tt("div",{class:Pt(["menu",P.menuClass]),ref:"menu",onMousedown:ot[10]||(ot[10]=Vt(()=>{},["prevent"])),style:Yt(P.menuStyle),tabindex:"-1"},[(ut(!0),ft(Ot,null,It(P.filteredOptions,(G,q)=>(ut(),ft("div",{key:q,class:Pt(["item",{selected:G.selected||B.pointer===q,disabled:G.disabled}]),"data-vss-custom-attr":st.customAttr(G),onClick:Vt(J=>P.selectItem(G),["stop"]),onMousedown:ot[9]||(ot[9]=(...J)=>P.mousedownItem&&P.mousedownItem(...J)),onMouseenter:J=>P.pointerSet(q)},mt(G.text),43,Ni))),128))],38)],34)}const Zt=Re(Ii,[["render",Hi]]);function $i(){return`filter-organizations-${Jt().path}`}function Wi(){return`filter-teams-${Jt().path}`}function Fi(){const ot=`filter-organizations-${Jt().path}`;return Oe(ot,[])}function Gi(){const ot=`filter-teams-${Jt().path}`;return Oe(ot,[])}const Xi={"w-full":"","font-bold":"","font-mono":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},Ui={key:0,flex:"","flex-col":"","w-full":""},Yi={"w-full":"","mt-2":""},Vi={flex:"","flex-col":"","w-full":""},qi=tt("div",null," Filter Team ",-1),Ki={"w-full":"","mt-2":""},Zi={flex:"","flex-col":"","w-full":""},Ji=tt("div",{flex:"","mb-2":""}," Feature ",-1),Qi={flex:"","flex-row":""},ts={class:"relative inline-flex items-center cursor-pointer"},es=tt("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1),is=tt("span",{class:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},"Animated Submissions",-1),ss={"mt-2":"","w-full":"",flex:"","items-center":"","space-x-4":""},os=Dt({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(at,{emit:ot}){const st=at,{t:T}=qt(),B=kt({get(){return st.isHidden},set(o){ot("update:isHidden",o)}}),P=kt({get(){return st.rankOptions},set(o){ot("update:rankOptions",o)}}),G=kt(()=>st.rank),q=kt(()=>T("type_menu.options")),J=At(P.value.enableAnimatedSubmissions),X=kt(()=>G.value.organizations.map(r=>({value:r,text:r}))),Y=At(P.value.filterOrganizations),O=At({});function N(o,r){Y.value=o,O.value=r}const R=At(!1);function x(){R.value=!0}function b(){R.value=!1}function E(o){R.value&&o.stopPropagation()}const L=kt(()=>G.value.originTeams.map(r=>({value:r.id,text:r.organization?`${r.name} - ${r.organization}`:r.name}))),c=At(P.value.filterTeams),y=At({});function v(o,r){c.value=o,y.value=r}function g(){B.value=!0}const A=$i(),k=Wi();function S(){P.value.setFilterOrganizations(Y.value),P.value.setFilterTeams(c.value),localStorage.setItem(A,JSON.stringify(Y.value)),localStorage.setItem(k,JSON.stringify(c.value)),P.value.enableAnimatedSubmissions=J.value,g()}return(o,r)=>{const p=he;return ut(),Ht(p,{isHidden:Z(B),"onUpdate:isHidden":r[1]||(r[1]=h=>zt(B)?B.value=h:null),title:Z(q),width:"w-180"},{default:Bt(()=>[tt("div",Xi,[Z(G).contest.organization?(ut(),ft("div",Ui,[tt("div",null," Filter "+mt(Z(G).contest.organization),1),tt("div",Yi,[Tt(Z(Zt),{options:Z(X),"selected-options":Z(Y),onSelect:N,onCompositionstart:x,onCompositionend:b,onKeydownCapture:Wt(E,["delete"])},null,8,["options","selected-options","onKeydownCapture"])])])):wt("",!0),tt("div",Vi,[qi,tt("div",Ki,[Tt(Z(Zt),{options:Z(L),"selected-options":Z(c),onSelect:v},null,8,["options","selected-options"])])]),tt("div",Zi,[Ji,tt("div",Qi,[tt("label",ts,[_e(tt("input",{"onUpdate:modelValue":r[0]||(r[0]=h=>zt(J)?J.value=h:null),type:"checkbox",class:"sr-only peer"},null,512),[[Ve,Z(J)]]),es,is])])]),tt("div",ss,[tt("button",{type:"submit",class:"text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800","font-medium":"","text-sm":"","rounded-md":"",onClick:S},mt(Z(T)("button.confirm")),1),tt("button",{type:"reset",class:"py-2.5 px-5 text-gray-900 focus:outline-none bg-white border border-gray-200 hover:bg-gray-100 hover:text-primary-700 focus:z-10 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700","font-medium":"","text-sm":"","rounded-md":"",onClick:g},mt(Z(T)("button.cancel")),1)])])]),_:1},8,["isHidden","title"])}}});function ns(at){const ot={backgroundColor:"#fff",color:"#000"};if(at.awards.includes(Gt.GOLD))return ot.backgroundColor="#fff566",ot;if(at.awards.includes(Gt.SILVER))return ot.backgroundColor="#ffadd2",ot;if(at.awards.includes(Gt.BRONZE))return ot.backgroundColor="#f0c0a0",ot;if(at.awards.includes(Gt.HONORABLE))return ot.backgroundColor="#e6f7ff",ot}function rs(at){return at.isFirstSolved?"#3db03d":at.isAccepted()?"#e1ffb5":at.isPending()?"#c8d6fa":"#ffd0d0"}var te=(at=>(at[at.SUBMISSION_STATUS=0]="SUBMISSION_STATUS",at[at.SUBMIT_TIMESTAMP=1]="SUBMIT_TIMESTAMP",at))(te||{});const as={"h-7":"","w-124":"","text-gray-200":"","font-mono":"",flex:"","flex-row":"","justify-center":"","items-center":"",class:"bg-resolver-bg-zero"},ls={"h-full":"","w-92":"","pl-1":"",truncate:""},hs={"h-full":"","w-4":""},cs=Dt({__name:"AnimatedSubmissionBlock",props:{item:null,lastBlockDisplayType:null},setup(at){const ot=at,st=kt(()=>ot.item);function T(){const B=st.value.submission;if(ot.lastBlockDisplayType===te.SUBMISSION_STATUS)return qe[B.status];if(ot.lastBlockDisplayType===te.SUBMIT_TIMESTAMP)return B.timestampToMinute}return(B,P)=>(ut(),ft("div",as,[tt("div",{"h-full":"","w-10":"",style:Yt(Z(ns)(Z(st).team)),flex:"","justify-center":"","items-center":""},[tt("div",null,mt(Z(st).team.rank),1)],4),tt("div",ls,mt(Z(st).displayName),1),tt("div",hs,mt(Z(st).team.solvedProblemNum),1),tt("div",{"h-full":"","w-6":"","border-b-3":"",flex:"","justify-center":"",style:Yt({borderColor:Z(st).problem.balloonColor.background_color})},mt(Z(st).problem.label),5),tt("div",{"h-full":"","w-12":"",flex:"","justify-center":"","font-sans":"","font-medium":"","text-zinc-800":"",style:Yt({backgroundColor:("getStandingsStatusColor"in B?B.getStandingsStatusColor:Z(rs))(Z(st).submission)})},mt(T()),5)]))}}),ds={absolute:"",fixed:"","z-99":"","bottom-4":"","left-4":"","opacity-80":""},ps={flex:"","flex-col":""},us={flex:"","flex-col":"","mt-6":""},fs=Dt({__name:"AnimatedSubmissionsModal",props:{rank:{}},setup(at){const ot=at,st=kt(()=>ot.rank),T=kt(()=>{const G=st.value.getSubmissions().sort(Le.compare).reverse();let q=0;const J=10,X=[];let Y=0;const O=6,N=[];for(let R=0;R<G.length&&(Y<O||q<J);R++){const x=G[R],b=x.teamId,E=x.problemId,L=st.value.teamsMap.get(b);if(!L||st.value.filterTeamByOrg(L))continue;const c=st.value.contest.problemsMap.get(E);if(!c)continue;let y=L.name;L.organization&&(y=`${L.organization} - ${y}`);const v={submission:x,team:L,problem:c,displayName:y};q<J&&(X.push(v),++q),x.isSolved&&Y<O&&(N.push(v),++Y)}return N.reverse(),X.reverse(),{acceptedRes:N,allRes:X}}),B=kt(()=>T.value.acceptedRes),P=kt(()=>T.value.allRes);return(G,q)=>{const J=cs;return ut(),ft("div",ds,[tt("div",ps,[tt("div",null,[Tt(me,{name:"list",tag:"ul"},{default:Bt(()=>[(ut(!0),ft(Ot,null,It(Z(B),X=>(ut(),ft("div",{key:X.submission.id},[Tt(J,{item:X,"last-block-display-type":Z(te).SUBMIT_TIMESTAMP},null,8,["item","last-block-display-type"])]))),128))]),_:1})])]),tt("div",us,[tt("div",null,[Tt(me,{name:"list",tag:"ul"},{default:Bt(()=>[(ut(!0),ft(Ot,null,It(Z(P),X=>(ut(),ft("div",{key:X.submission.id},[tt("div",null,[Tt(J,{item:X,"last-block-display-type":Z(te).SUBMISSION_STATUS},null,8,["item","last-block-display-type"])])]))),128))]),_:1})])])])}}});const gs=Xt(fs,[["__scopeId","data-v-c5c85310"]]),ms={"w-full":"",flex:"","mt-4":"","gap-4":""},xs={btn:"",title:"Submissions",disabled:"true"},ys={"w-full":"",flex:"","mt-4":"","gap-4":""},vs=["href"],ks=Dt({__name:"Utility",setup(at){const{t:ot}=qt(),st=Jt(),T=Ke(),B=kt(()=>`https://resolver.xcpcio.com/resolver?xcpcio-data-source=${st.path}`);function P(){T.push(`/balloon/?data-source=${st.path}`)}function G(){T.push(`/countdown/?data-source=${st.path}`)}return(q,J)=>(ut(),ft(Ot,null,[tt("div",ms,[tt("button",{btn:"",title:"Balloon",onClick:P},mt(Z(ot)("type_menu.balloon")),1),tt("button",xs,mt(Z(ot)("type_menu.submissions")),1)]),tt("div",ys,[tt("a",{btn:"",href:Z(B),target:"_blank",title:"Resolver"},mt(Z(ot)("type_menu.resolver")),9,vs),tt("button",{btn:"",title:"Countdown",onClick:G},mt(Z(ot)("type_menu.countdown")),1)])],64))}});var Ne={exports:{}};(function(at,ot){(function(st,T){T()})(Kt,function(){function st(X,Y){return typeof Y>"u"?Y={autoBom:!1}:typeof Y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),Y={autoBom:!Y}),Y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(X.type)?new Blob(["\uFEFF",X],{type:X.type}):X}function T(X,Y,O){var N=new XMLHttpRequest;N.open("GET",X),N.responseType="blob",N.onload=function(){J(N.response,Y,O)},N.onerror=function(){console.error("could not download file")},N.send()}function B(X){var Y=new XMLHttpRequest;Y.open("HEAD",X,!1);try{Y.send()}catch{}return 200<=Y.status&&299>=Y.status}function P(X){try{X.dispatchEvent(new MouseEvent("click"))}catch{var Y=document.createEvent("MouseEvents");Y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),X.dispatchEvent(Y)}}var G=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Kt=="object"&&Kt.global===Kt?Kt:void 0,q=G.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),J=G.saveAs||(typeof window!="object"||window!==G?function(){}:"download"in HTMLAnchorElement.prototype&&!q?function(X,Y,O){var N=G.URL||G.webkitURL,R=document.createElement("a");Y=Y||X.name||"download",R.download=Y,R.rel="noopener",typeof X=="string"?(R.href=X,R.origin===location.origin?P(R):B(R.href)?T(X,Y,O):P(R,R.target="_blank")):(R.href=N.createObjectURL(X),setTimeout(function(){N.revokeObjectURL(R.href)},4e4),setTimeout(function(){P(R)},0))}:"msSaveOrOpenBlob"in navigator?function(X,Y,O){if(Y=Y||X.name||"download",typeof X!="string")navigator.msSaveOrOpenBlob(st(X,O),Y);else if(B(X))T(X,Y,O);else{var N=document.createElement("a");N.href=X,N.target="_blank",setTimeout(function(){P(N)})}}:function(X,Y,O,N){if(N=N||open("","_blank"),N&&(N.document.title=N.document.body.innerText="downloading..."),typeof X=="string")return T(X,Y,O);var R=X.type==="application/octet-stream",x=/constructor/i.test(G.HTMLElement)||G.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||R&&x||q)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var y=E.result;y=b?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),N?N.location.href=y:location=y,N=null},E.readAsDataURL(X)}else{var L=G.URL||G.webkitURL,c=L.createObjectURL(X);N?N.location=c:location.href=c,N=null,setTimeout(function(){L.revokeObjectURL(c)},4e4)}});G.saveAs=J.saveAs=J,at.exports=J})})(Ne);var bs=Ne.exports;const Ss=Ze(bs);var ws=setTimeout;function Cs(at,ot){var st=ot.useCachedSetTimeout?ws:setTimeout;return new Promise(function(T){st(T,at)})}function Ms(at){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=ot.useCachedSetTimeout,T=Cs(at,{useCachedSetTimeout:st});function B(P){return T.then(function(){return P})}return B.then=function(){return T.then.apply(T,arguments)},B.catch=Promise.resolve().catch,B}const Ts={flex:"","flex-col":""},As={"w-160":"","font-bold":""},Ps={"mt-8":""},_s={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},Os=["disabled"],Ls=["disabled"],Es={key:1,flex:"","justify-center":""},Ds=["disabled"],Is=Dt({__name:"Export",props:{rank:null},setup(at){const ot=at,st=Ee.useToast(),{copy:T,isSupported:B}=De(),P=kt(()=>ot.rank),G=At({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),q=At([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"}]),J=At({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1});async function X(){await Je(),await Ms(16)}async function Y(){J.value.CfDatDownload=!0,await X();const x=new xe().convert(P.value),b=new Blob([x],{type:"text/plain;charset=utf-8"});Ss.saveAs(b,"contest.dat"),J.value.CfDatDownload=!1}async function O(){if(!B.value){st.warning("clipboard is not supported");return}J.value.CfDatCopy=!0,await X();const x=new xe().convert(P.value);T(x),J.value.CfDatCopy=!1,st.success("Copy Success")}async function N(){J.value.GeneralXLSXDownload=!0,await X(),new Qe().convertAndWrite(P.value,`${P.value.contest.name}.xlsx`),J.value.GeneralXLSXDownload=!1}return(R,x)=>(ut(),ft("div",Ts,[tt("div",As,[Tt(Z(Di),{modelValue:Z(G),"onUpdate:modelValue":x[0]||(x[0]=b=>zt(G)?G.value=b:null),options:Z(q),placeholder:"Export Type"},null,8,["modelValue","options"])]),tt("div",Ps,[Z(G).value==="cf-dat"?(ut(),ft("div",_s,[tt("button",{disabled:Z(J).CfDatDownload,btn:"",onClick:Y}," Download ",8,Os),tt("button",{disabled:Z(J).CfDatCopy,btn:"",onClick:O}," Copy to Clipboard ",8,Ls)])):wt("",!0),Z(G).value==="general-xlsx"?(ut(),ft("div",Es,[tt("button",{disabled:Z(J).GeneralXLSXDownload,btn:"",onClick:N}," Download ",8,Ds)])):wt("",!0)])]))}});function ue(at,ot,st,T,B,P){return{colors:P,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:at},xAxis:{categories:T,labels:{style:{fontSize:"16px"}},title:{text:ot,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:st,style:{fontSize:"16px",height:"320px"}},stackLabels:{enabled:!0,style:{fontSize:"16px"}}},tooltip:{enabled:!0,headerFormat:"",pointFormat:"{series.name}:{point.y}"},plotOptions:{bar:{stacking:"normal"},column:{stacking:"normal"}},credits:{enabled:!1},series:B}}function js(at){const ot=[];at.contest.problems.forEach((P,G)=>{ot.push({problem_id:P.label,index:G,solved:P.statistics.acceptedNum})}),ot.sort((P,G)=>P.solved>G.solved?-1:P.solved<G.solved?1:P.index<G.index?-1:P.index>G.index?1:0);const{cat:st,series:T,colors:B}=(()=>{const P=[],G=[];return ot.forEach(X=>{P.push(X.problem_id),G.push(X.solved)}),{cat:P,series:[{name:"队伍数",showInLegend:!1,data:G}],colors:["rgb(124, 181, 236)"]}})();return ue("题目通过数","题目编号","通过数",st,T,B)}function Bs(at){const ot=at.rankStatistics.teamSolvedNum.map((P,G)=>({index:G,cnt:P})),{cat:st,series:T,colors:B}=(()=>{const P=[],G=[];return ot.forEach(X=>{P.push(X.index),G.push(X.cnt)}),{cat:P,series:[{name:"队伍数",showInLegend:!1,data:G}],colors:["rgb(124, 181, 236)"]}})();return ue("队伍过题数","过题数","队伍数",st,T,B)}function zs(at){const{cat:ot,series:st,colors:T}=(()=>{const B=[],P=[],G=[],q=[];return at.contest.problems.forEach(Y=>{P.push(Y.statistics.acceptedNum),G.push(Y.statistics.rejectedNum),q.push(Y.statistics.pendingNum),B.push(Y.label)}),{cat:B,series:[{name:"Accepted",showInLegend:!1,data:P},{name:"Rejected",showInLegend:!1,data:G},{name:"Pending",showInLegend:!1,data:q}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return ue("提交分类","题目编号","提交数",ot,st,T)}function Rs(at,ot){const st=ot.placeChartPoints.map(B=>{var P,G;return{x:B.timePoint,y:B.rank,showX:Ie(B.timePoint),lastSolved:(P=B.lastSolvedProblem)!=null&&P.label?`Last Solved Problem ${(G=B.lastSolvedProblem)==null?void 0:G.label}`:""}});return{chart:{type:"spline"},title:{text:"排名变化趋势图"},series:[{showInLegend:!1,allowPointSelect:!1,name:"rank",type:"spline",data:st,marker:{symbol:"circle",radius:4,lineWidth:2,fillColor:"yellow",lineColor:"yellow"}}],xAxis:[{allowDecimals:!1,title:{text:"Time(min)"},crosshair:!0}],yAxis:[{allowDecimals:!1,title:{text:"Place"},reversed:!0,gridLineWidth:1}],plotOptions:{line:{color:"#efbc47",dataLabels:{enabled:!1},enableMouseTracking:!0,marker:{enabled:!0,fillColor:"#fff566"}}},tooltip:{enabled:!0,headerFormat:"",pointFormat:"Time: {point.showX} <br/> Place: {point.y} <br/> {point.lastSolved}"},credits:{enabled:!1},exporting:{enabled:!0},navigation:{menuItemStyle:{fontSize:"10px"}}}}var He={exports:{}},de={exports:{}},be;function Ns(){return be||(be=1,function(at){(function(ot,st){at.exports?(st.default=st,at.exports=ot.document?st(ot):st):(ot.Highcharts&&ot.Highcharts.error(16,!0),ot.Highcharts=st(ot))})(typeof window<"u"?window:Kt,function(ot){function st(B,P,G,q){B.hasOwnProperty(P)||(B[P]=q.apply(null,G),typeof CustomEvent=="function"&&ot.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:P,module:B[P]}})))}var T={};return st(T,"Core/Globals.js",[],function(){var B;return function(P){P.SVG_NS="http://www.w3.org/2000/svg",P.product="Highcharts",P.version="11.1.0",P.win=typeof ot<"u"?ot:{},P.doc=P.win.document,P.svg=P.doc&&P.doc.createElementNS&&!!P.doc.createElementNS(P.SVG_NS,"svg").createSVGRect,P.userAgent=P.win.navigator&&P.win.navigator.userAgent||"",P.isChrome=P.userAgent.indexOf("Chrome")!==-1,P.isFirefox=P.userAgent.indexOf("Firefox")!==-1,P.isMS=/(edge|msie|trident)/i.test(P.userAgent)&&!P.win.opera,P.isSafari=!P.isChrome&&P.userAgent.indexOf("Safari")!==-1,P.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(P.userAgent),P.isWebKit=P.userAgent.indexOf("AppleWebKit")!==-1,P.deg2rad=2*Math.PI/360,P.hasBidiBug=P.isFirefox&&4>parseInt(P.userAgent.split("Firefox/")[1],10),P.hasTouch=!!P.win.TouchEvent,P.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],P.noop=function(){},P.supportsPassiveEvents=function(){let G=!1;if(!P.isMS){const q=Object.defineProperty({},"passive",{get:function(){G=!0}});P.win.addEventListener&&P.win.removeEventListener&&(P.win.addEventListener("testPassive",P.noop,q),P.win.removeEventListener("testPassive",P.noop,q))}return G}(),P.charts=[],P.dateFormats={},P.seriesTypes={},P.symbolSizes={},P.chartCount=0}(B||(B={})),B}),st(T,"Core/Utilities.js",[T["Core/Globals.js"]],function(B){function P(t,i,l,u){const _=i?"Highcharts error":"Highcharts warning";t===32&&(t=`${_}: Deprecated member`);const a=N(t);let w=a?`${_} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(typeof u<"u"){let H="";a&&(w+="?"),A(u,function(K,rt){H+=`
|
|
2
|
+
- ${rt}: ${K}`,a&&(w+=encodeURI(rt)+"="+encodeURI(K))}),w+=H}S(B,"displayError",{chart:l,code:t,message:w,params:u},function(){if(i)throw Error(w);p.console&&P.messages.indexOf(w)===-1&&console.warn(w)}),P.messages.push(w)}function G(t,i){return parseInt(t,i||10)}function q(t){return typeof t=="string"}function J(t){return t=Object.prototype.toString.call(t),t==="[object Array]"||t==="[object Array Iterator]"}function X(t,i){return!!t&&typeof t=="object"&&(!i||!J(t))}function Y(t){return X(t)&&typeof t.nodeType=="number"}function O(t){const i=t&&t.constructor;return!(!X(t,!0)||Y(t)||!i||!i.name||i.name==="Object")}function N(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function R(t){return typeof t<"u"&&t!==null}function x(t,i,l){const u=q(i)&&!R(l);let _;const a=(w,H)=>{R(w)?t.setAttribute(H,w):u?(_=t.getAttribute(H))||H!=="class"||(_=t.getAttribute(H+"Name")):t.removeAttribute(H)};return q(i)?a(l,i):A(i,a),_}function b(t){return J(t)?t:[t]}function E(t,i){let l;t||(t={});for(l in i)t[l]=i[l];return t}function L(){const t=arguments,i=t.length;for(let l=0;l<i;l++){const u=t[l];if(typeof u<"u"&&u!==null)return u}}function c(t,i){B.isMS&&!B.svg&&i&&R(i.opacity)&&(i.filter=`alpha(opacity=${100*i.opacity})`),E(t.style,i)}function y(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function v(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function g(t,i,l){let u;return i==="width"?(i=Math.min(t.offsetWidth,t.scrollWidth),l=t.getBoundingClientRect&&t.getBoundingClientRect().width,l<i&&l>=i-1&&(i=Math.floor(l)),Math.max(0,i-(g(t,"padding-left",!0)||0)-(g(t,"padding-right",!0)||0))):i==="height"?Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(g(t,"padding-top",!0)||0)-(g(t,"padding-bottom",!0)||0)):((t=p.getComputedStyle(t,void 0))&&(u=t.getPropertyValue(i),L(l,i!=="opacity")&&(u=G(u))),u)}function A(t,i,l){for(const u in t)Object.hasOwnProperty.call(t,u)&&i.call(l||t[u],t[u],u,t)}function k(t,i,l){function u(w,H){const K=t.removeEventListener;K&&K.call(t,w,H,!1)}function _(w){let H,K;t.nodeName&&(i?(H={},H[i]=!0):H=w,A(H,function(rt,j){if(w[j])for(K=w[j].length;K--;)u(j,w[j][K].fn)}))}var a=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(a,"hcEvents")){const w=a.hcEvents;i?(a=w[i]||[],l?(w[i]=a.filter(function(H){return l!==H.fn}),u(i,l)):(_(w),w[i]=[])):(_(w),delete a.hcEvents)}}function S(t,i,l,u){if(l=l||{},r.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==B)){var _=r.createEvent("Events");_.initEvent(i,!0,!0),l=E(_,l),t.dispatchEvent?t.dispatchEvent(l):t.fireEvent(i,l)}else if(t.hcEvents){l.target||E(l,{preventDefault:function(){l.defaultPrevented=!0},target:t,type:i}),_=[];let a=t,w=!1;for(;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[i]&&(_.length&&(w=!0),_.unshift.apply(_,a.hcEvents[i])),a=Object.getPrototypeOf(a);w&&_.sort((H,K)=>H.order-K.order),_.forEach(H=>{H.fn.call(t,l)===!1&&l.preventDefault()})}u&&!l.defaultPrevented&&u.call(t,l)}const{charts:o,doc:r,win:p}=B;(P||(P={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var h=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){let l;const u=t.length;for(l=0;l<u;l++)if(i(t[l],l))return t[l]};A({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){B[i]=function(l){return P(32,!1,void 0,{[`Highcharts.${i}`]:`use Array.${t}`}),Array.prototype[t].apply(l,[].slice.call(arguments,1))}});let d;const e=function(){const t=Math.random().toString(36).substring(2,9)+"-";let i=0;return function(){return"highcharts-"+(d?"":t)+i++}}();return p.jQuery&&(p.jQuery.fn.highcharts=function(){const t=[].slice.call(arguments);if(this[0])return t[0]?(new B[q(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):o[x(this[0],"data-highcharts-chart")]}),h={addEvent:function(t,i,l,u={}){var _=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(_,"hcEvents")||(_.hcEvents={}),_=_.hcEvents,B.Point&&t instanceof B.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);const a=t.addEventListener;return a&&a.call(t,i,l,B.supportsPassiveEvents?{passive:u.passive===void 0?i.indexOf("touch")!==-1:u.passive,capture:!1}:!1),_[i]||(_[i]=[]),_[i].push({fn:l,order:typeof u.order=="number"?u.order:1/0}),_[i].sort((w,H)=>w.order-H.order),function(){k(t,i,l)}},arrayMax:function(t){let i=t.length,l=t[0];for(;i--;)t[i]>l&&(l=t[i]);return l},arrayMin:function(t){let i=t.length,l=t[0];for(;i--;)t[i]<l&&(l=t[i]);return l},attr:x,clamp:function(t,i,l){return t>i?t<l?t:l:i},clearTimeout:function(t){R(t)&&clearTimeout(t)},correctFloat:v,createElement:function(t,i,l,u,_){return t=r.createElement(t),i&&E(t,i),_&&c(t,{padding:"0",border:"none",margin:"0"}),l&&c(t,l),u&&u.appendChild(t),t},css:c,defined:R,destroyObjectProperties:function(t,i){A(t,function(l,u){l&&l!==i&&l.destroy&&l.destroy(),delete t[u]})},diffObjects:function(t,i,l,u){function _(w,H,K,rt){const j=l?H:w;A(w,function(s,M){if(!rt&&u&&-1<u.indexOf(M)&&H[M]){s=b(s),K[M]=[];for(let z=0;z<Math.max(s.length,H[M].length);z++)H[M][z]&&(s[z]===void 0?K[M][z]=H[M][z]:(K[M][z]={},_(s[z],H[M][z],K[M][z],rt+1)))}else X(s,!0)&&!s.nodeType?(K[M]=J(s)?[]:{},_(s,H[M]||{},K[M],rt+1),Object.keys(K[M]).length!==0||M==="colorAxis"&&rt===0||delete K[M]):(w[M]!==H[M]||M in w&&!(M in H))&&(K[M]=j[M])})}const a={};return _(t,i,a,0),a},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){let l=t.length;for(;l--;)if(t[l]===i){t.splice(l,1);break}},error:P,extend:E,extendClass:function(t,i){const l=function(){};return l.prototype=new t,E(l.prototype,i),l},find:h,fireEvent:S,getClosestDistance:function(t,i){const l=!i;let u,_,a;return t.forEach(w=>{if(1<w.length)for(a=w.length-1;0<a;a--)_=w[a]-w[a-1],0>_&&!l?(i==null||i(),i=void 0):_&&(typeof u>"u"||_<u)&&(u=_)}),u},getMagnitude:y,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&R(i);){const l=t.shift();if(typeof l>"u"||l==="__proto__")return;if(l==="this"){let u;return X(i)&&(u=i["@this"]),u??i}if(i=i[l],!R(i)||typeof i=="function"||typeof i.nodeType=="number"||i===p)return}return i},getStyle:g,inArray:function(t,i,l){return P(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,l)},insertItem:function(t,i){const l=t.options.index,u=i.length;let _;for(_=t.options.isInternal?u:0;_<u+1;_++)if(!i[_]||N(l)&&l<L(i[_].options.index,i[_]._i)||i[_].options.isInternal){i.splice(_,0,t);break}return _},isArray:J,isClass:O,isDOMElement:Y,isFunction:function(t){return typeof t=="function"},isNumber:N,isObject:X,isString:q,keys:function(t){return P(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){let t,i=arguments,l={};const u=function(a,w){return typeof a!="object"&&(a={}),A(w,function(H,K){K!=="__proto__"&&K!=="constructor"&&(!X(H,!0)||O(H)||Y(H)?a[K]=w[K]:a[K]=u(a[K]||{},H))}),a};i[0]===!0&&(l=i[1],i=Array.prototype.slice.call(i,2));const _=i.length;for(t=0;t<_;t++)l=u(l,i[t]);return l},normalizeTickInterval:function(t,i,l,u,_){let a=t;l=L(l,y(t));const w=t/l;for(i||(i=_?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],u===!1&&(l===1?i=i.filter(function(H){return H%1===0}):.1>=l&&(i=[1/l]))),u=0;u<i.length&&(a=i[u],!(_&&a*l>=t||!_&&w<=(i[u]+(i[u+1]||i[u]))/2));u++);return a=v(a*l,-Math.round(Math.log(.001)/Math.LN10))},objectEach:A,offset:function(t){const i=r.documentElement;return t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0},{top:t.top+(p.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(p.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,l){return Array((i||2)+1-String(t).replace("-","").length).join(l||"0")+t},pick:L,pInt:G,pushUnique:function(t,i){return 0>t.indexOf(i)&&!!t.push(i)},relativeLength:function(t,i,l){return/%$/.test(t)?i*parseFloat(t)/100+(l||0):parseFloat(t)},removeEvent:k,splat:b,stableSort:function(t,i){const l=t.length;let u,_;for(_=0;_<l;_++)t[_].safeI=_;for(t.sort(function(a,w){return u=i(a,w),u===0?a.safeI-w.safeI:u}),_=0;_<l;_++)delete t[_].safeI},syncTimeout:function(t,i,l){return 0<i?setTimeout(t,i,l):(t.call(0,l),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:e,useSerialIds:function(t){return d=L(t,d)},wrap:function(t,i,l){const u=t[i];t[i]=function(){const _=arguments,a=this;return l.apply(this,[function(){return u.apply(a,arguments.length?arguments:_)}].concat([].slice.call(arguments)))}}},h}),st(T,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},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"}}),st(T,"Core/Color/Color.js",[T["Core/Globals.js"],T["Core/Utilities.js"]],function(B,P){const{isNumber:G,merge:q,pInt:J}=P;class X{static parse(O){return O?new X(O):X.None}constructor(O){this.rgba=[NaN,NaN,NaN,NaN],this.input=O;const N=B.Color;if(N&&N!==X)return new N(O);this.init(O)}init(O){let N,R;if(typeof O=="object"&&typeof O.stops<"u")this.stops=O.stops.map(E=>new X(E[1]));else if(typeof O=="string"){if(this.input=O=X.names[O.toLowerCase()]||O,O.charAt(0)==="#"){var x=O.length,b=parseInt(O.substr(1),16);x===7?N=[(b&16711680)>>16,(b&65280)>>8,b&255,1]:x===4&&(N=[(b&3840)>>4|(b&3840)>>8,(b&240)>>4|b&240,(b&15)<<4|b&15,1])}if(!N)for(b=X.parsers.length;b--&&!N;)R=X.parsers[b],(x=R.regex.exec(O))&&(N=R.parse(x))}N&&(this.rgba=N)}get(O){const N=this.input,R=this.rgba;if(typeof N=="object"&&typeof this.stops<"u"){const x=q(N);return x.stops=[].slice.call(x.stops),this.stops.forEach((b,E)=>{x.stops[E]=[x.stops[E][0],b.get(O)]}),x}return R&&G(R[0])?O==="rgb"||!O&&R[3]===1?"rgb("+R[0]+","+R[1]+","+R[2]+")":O==="a"?`${R[3]}`:"rgba("+R.join(",")+")":N}brighten(O){const N=this.rgba;if(this.stops)this.stops.forEach(function(R){R.brighten(O)});else if(G(O)&&O!==0)for(let R=0;3>R;R++)N[R]+=J(255*O),0>N[R]&&(N[R]=0),255<N[R]&&(N[R]=255);return this}setOpacity(O){return this.rgba[3]=O,this}tweenTo(O,N){const R=this.rgba,x=O.rgba;return!G(R[0])||!G(x[0])?O.input||"none":(O=x[3]!==1||R[3]!==1,(O?"rgba(":"rgb(")+Math.round(x[0]+(R[0]-x[0])*(1-N))+","+Math.round(x[1]+(R[1]-x[1])*(1-N))+","+Math.round(x[2]+(R[2]-x[2])*(1-N))+(O?","+(x[3]+(R[3]-x[3])*(1-N)):"")+")")}}return X.names={white:"#ffffff",black:"#000000"},X.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(Y){return[J(Y[1]),J(Y[2]),J(Y[3]),parseFloat(Y[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(Y){return[J(Y[1]),J(Y[2]),J(Y[3]),1]}}],X.None=new X(""),X}),st(T,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),st(T,"Core/Time.js",[T["Core/Globals.js"],T["Core/Utilities.js"]],function(B,P){const{win:G}=B,{defined:q,error:J,extend:X,isObject:Y,merge:O,objectEach:N,pad:R,pick:x,splat:b,timeUnits:E}=P,L=B.isSafari&&G.Intl&&G.Intl.DateTimeFormat.prototype.formatRange,c=B.isSafari&&G.Intl&&!G.Intl.DateTimeFormat.prototype.formatRange;class y{constructor(g){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=G.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(g)}get(g,A){if(this.variableTimezone||this.timezoneOffset){const k=A.getTime(),S=k-this.getTimezoneOffset(A);return A.setTime(S),g=A["getUTC"+g](),A.setTime(k),g}return this.useUTC?A["getUTC"+g]():A["get"+g]()}set(g,A,k){if(this.variableTimezone||this.timezoneOffset){if(g==="Milliseconds"||g==="Seconds"||g==="Minutes"&&this.getTimezoneOffset(A)%36e5===0)return A["setUTC"+g](k);var S=this.getTimezoneOffset(A);return S=A.getTime()-S,A.setTime(S),A["setUTC"+g](k),g=this.getTimezoneOffset(A),S=A.getTime()+g,A.setTime(S)}return this.useUTC||L&&g==="FullYear"?A["setUTC"+g](k):A["set"+g](k)}update(g={}){const A=x(g.useUTC,!0);this.options=g=O(!0,this.options,g),this.Date=g.Date||G.Date||Date,this.timezoneOffset=(this.useUTC=A)&&g.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=A&&!(!g.getTimezoneOffset&&!g.timezone)}makeTime(g,A,k,S,o,r){let p,h,d;return this.useUTC?(p=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(p),p+=h,d=this.getTimezoneOffset(p),h!==d?p+=d-h:h-36e5!==this.getTimezoneOffset(p-36e5)||c||(p-=36e5)):p=new this.Date(g,A,x(k,1),x(S,0),x(o,0),x(r,0)).getTime(),p}timezoneOffsetFunction(){const g=this,A=this.options,k=A.getTimezoneOffset,S=A.moment||G.moment;if(!this.useUTC)return function(o){return 6e4*new Date(o.toString()).getTimezoneOffset()};if(A.timezone){if(S)return function(o){return 6e4*-S.tz(o,A.timezone).utcOffset()};J(25)}return this.useUTC&&k?function(o){return 6e4*k(o.valueOf())}:function(){return 6e4*(g.timezoneOffset||0)}}dateFormat(g,A,k){if(!q(A)||isNaN(A))return B.defaultOptions.lang&&B.defaultOptions.lang.invalidDate||"";g=x(g,"%Y-%m-%d %H:%M:%S");const S=this;var o=new this.Date(A);const r=this.get("Hours",o),p=this.get("Day",o),h=this.get("Date",o),d=this.get("Month",o),e=this.get("FullYear",o),t=B.defaultOptions.lang,i=t&&t.weekdays,l=t&&t.shortWeekdays;return o=X({a:l?l[p]:i[p].substr(0,3),A:i[p],d:R(h),e:R(h,2," "),w:p,b:t.shortMonths[d],B:t.months[d],m:R(d+1),o:d+1,y:e.toString().substr(2,2),Y:e,H:R(r),k:r,I:R(r%12||12),l:r%12||12,M:R(this.get("Minutes",o)),p:12>r?"AM":"PM",P:12>r?"am":"pm",S:R(o.getSeconds()),L:R(Math.floor(A%1e3),3)},B.dateFormats),N(o,function(u,_){for(;g.indexOf("%"+_)!==-1;)g=g.replace("%"+_,typeof u=="function"?u.call(S,A):u)}),k?g.substr(0,1).toUpperCase()+g.substr(1):g}resolveDTLFormat(g){return Y(g,!0)?g:(g=b(g),{main:g[0],from:g[1],to:g[2]})}getTimeTicks(g,A,k,S){const o=this,r=[],p={};var h=new o.Date(A);const d=g.unitRange,e=g.count||1;let t;if(S=x(S,1),q(A)){if(o.set("Milliseconds",h,d>=E.second?0:e*Math.floor(o.get("Milliseconds",h)/e)),d>=E.second&&o.set("Seconds",h,d>=E.minute?0:e*Math.floor(o.get("Seconds",h)/e)),d>=E.minute&&o.set("Minutes",h,d>=E.hour?0:e*Math.floor(o.get("Minutes",h)/e)),d>=E.hour&&o.set("Hours",h,d>=E.day?0:e*Math.floor(o.get("Hours",h)/e)),d>=E.day&&o.set("Date",h,d>=E.month?1:Math.max(1,e*Math.floor(o.get("Date",h)/e))),d>=E.month){o.set("Month",h,d>=E.year?0:e*Math.floor(o.get("Month",h)/e));var i=o.get("FullYear",h)}d>=E.year&&o.set("FullYear",h,i-i%e),d===E.week&&(i=o.get("Day",h),o.set("Date",h,o.get("Date",h)-i+S+(i<S?-7:0))),i=o.get("FullYear",h),S=o.get("Month",h);const l=o.get("Date",h),u=o.get("Hours",h);for(A=h.getTime(),!o.variableTimezone&&o.useUTC||!q(k)||(t=k-A>4*E.month||o.getTimezoneOffset(A)!==o.getTimezoneOffset(k)),A=h.getTime(),h=1;A<k;)r.push(A),A=d===E.year?o.makeTime(i+h*e,0):d===E.month?o.makeTime(i,S+h*e):!t||d!==E.day&&d!==E.week?t&&d===E.hour&&1<e?o.makeTime(i,S,l,u+h*e):A+d*e:o.makeTime(i,S,l+h*e*(d===E.day?1:7)),h++;r.push(A),d<=E.hour&&1e4>r.length&&r.forEach(function(_){_%18e5===0&&o.dateFormat("%H%M%S%L",_)==="000000000"&&(p[_]="day")})}return r.info=X(g,{higherRanks:p,totalRange:d*e}),r}getDateFormat(g,A,k,S){const o=this.dateFormat("%m-%d %H:%M:%S.%L",A),r={millisecond:15,second:12,minute:9,hour:6,day:3};let p,h="millisecond";for(p in E){if(g===E.week&&+this.dateFormat("%w",A)===k&&o.substr(6)==="00:00:00.000"){p="week";break}if(E[p]>g){p=h;break}if(r[p]&&o.substr(r[p])!=="01-01 00:00:00.000".substr(r[p]))break;p!=="week"&&(h=p)}return this.resolveDTLFormat(S[p]).main}}return y}),st(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(B,P,G,q,J,X){const{isTouchDevice:Y,svg:O}=G,{merge:N}=X,R={colors:q.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),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:B,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},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",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:O,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:Y?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!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"}};R.chart.styledMode=!1;const x=new J(R.time);return B={defaultOptions:R,defaultTime:x,getOptions:function(){return R},setOptions:function(b){return N(!0,R,b),(b.time||b.global)&&(G.time?G.time.update(N(R.global,R.time,b.global,b.time)):G.time=x),R}},B}),st(T,"Core/Animation/Fx.js",[T["Core/Color/Color.js"],T["Core/Globals.js"],T["Core/Utilities.js"]],function(B,P,G){const{parse:q}=B,{win:J}=P,{isNumber:X,objectEach:Y}=G;class O{constructor(R,x,b){this.pos=NaN,this.options=x,this.elem=R,this.prop=b}dSetter(){var R=this.paths;const x=R&&R[0];R=R&&R[1];const b=this.now||0;let E=[];if(b!==1&&x&&R)if(x.length===R.length&&1>b)for(let L=0;L<R.length;L++){const c=x[L],y=R[L],v=[];for(let g=0;g<y.length;g++){const A=c[g],k=y[g];X(A)&&X(k)&&(y[0]!=="A"||g!==4&&g!==5)?v[g]=A+b*(k-A):v[g]=k}E.push(v)}else E=R;else E=this.toD||[];this.elem.attr("d",E,void 0,!0)}update(){const R=this.elem,x=this.prop,b=this.now,E=this.options.step;this[x+"Setter"]?this[x+"Setter"]():R.attr?R.element&&R.attr(x,b,null,!0):R.style[x]=b+this.unit,E&&E.call(R,b,this)}run(R,x,b){const E=this,L=E.options,c=function(g){return c.stopped?!1:E.step(g)},y=J.requestAnimationFrame||function(g){setTimeout(g,13)},v=function(){for(let g=0;g<O.timers.length;g++)O.timers[g]()||O.timers.splice(g--,1);O.timers.length&&y(v)};R!==x||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=R,this.end=x,this.unit=b,this.now=this.start,this.pos=0,c.elem=this.elem,c.prop=this.prop,c()&&O.timers.push(c)===1&&y(v)):(delete L.curAnim[this.prop],L.complete&&Object.keys(L.curAnim).length===0&&L.complete.call(this.elem))}step(R){const x=+new Date,b=this.options,E=this.elem,L=b.complete,c=b.duration,y=b.curAnim;let v;return E.attr&&!E.element?R=!1:R||x>=c+this.startTime?(this.now=this.end,this.pos=1,this.update(),v=y[this.prop]=!0,Y(y,function(g){g!==!0&&(v=!1)}),v&&L&&L.call(E),R=!1):(this.pos=b.easing((x-this.startTime)/c),this.now=this.start+(this.end-this.start)*this.pos,this.update(),R=!0),R}initPath(R,x,b){function E(o,r){for(;o.length<k;){var p=o[0];const h=r[k-o.length];h&&p[0]==="M"&&(o[0]=h[0]==="C"?["C",p[1],p[2],p[1],p[2],p[1],p[2]]:["L",p[1],p[2]]),o.unshift(p),v&&(p=o.pop(),o.push(o[o.length-1],p))}}function L(o,r){for(;o.length<k;)if(r=o[Math.floor(o.length/g)-1].slice(),r[0]==="C"&&(r[1]=r[5],r[2]=r[6]),v){const p=o[Math.floor(o.length/g)].slice();o.splice(o.length/2,0,r,p)}else o.push(r)}const c=R.startX,y=R.endX;b=b.slice();const v=R.isArea,g=v?2:1;let A,k,S;if(x=x&&x.slice(),!x)return[b,b];if(c&&y&&y.length){for(R=0;R<c.length;R++)if(c[R]===y[0]){A=R;break}else if(c[0]===y[y.length-c.length+R]){A=R,S=!0;break}else if(c[c.length-1]===y[y.length-c.length+R]){A=c.length-R;break}typeof A>"u"&&(x=[])}return x.length&&X(A)&&(k=b.length+A*g,S?(E(x,b),L(b,x)):(E(b,x),L(x,b))),[x,b]}fillSetter(){O.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}}return O.timers=[],O}),st(T,"Core/Animation/AnimationUtilities.js",[T["Core/Animation/Fx.js"],T["Core/Utilities.js"]],function(B,P){function G(E){return N(E)?R({duration:500,defer:0},E):{duration:E?500:0,defer:0}}function q(E,L){let c=B.timers.length;for(;c--;)B.timers[c].elem!==E||L&&L!==B.timers[c].prop||(B.timers[c].stopped=!0)}const{defined:J,getStyle:X,isArray:Y,isNumber:O,isObject:N,merge:R,objectEach:x,pick:b}=P;return{animate:function(E,L,c){let y,v="",g,A,k;N(c)||(k=arguments,c={duration:k[2],easing:k[3],complete:k[4]}),O(c.duration)||(c.duration=400),c.easing=typeof c.easing=="function"?c.easing:Math[c.easing]||Math.easeInOutSine,c.curAnim=R(L),x(L,function(S,o){q(E,o),A=new B(E,c,o),g=void 0,o==="d"&&Y(L.d)?(A.paths=A.initPath(E,E.pathArray,L.d),A.toD=L.d,y=0,g=1):E.attr?y=E.attr(o):(y=parseFloat(X(E,o))||0,o!=="opacity"&&(v="px")),g||(g=S),typeof g=="string"&&g.match("px")&&(g=g.replace(/px/g,"")),A.run(y,g,v)})},animObject:G,getDeferredAnimation:function(E,L,c){const y=G(L);let v=0,g=0;return(c?[c]:E.series).forEach(A=>{A=G(A.options.animation),v=L&&J(L.defer)?y.defer:Math.max(v,A.duration+A.defer),g=Math.min(y.duration,A.duration)}),E.renderer.forExport&&(v=0),{defer:Math.max(0,v-g),duration:Math.min(v,g)}},setAnimation:function(E,L){L.renderer.globalAnimation=b(E,L.options.chart.animation,!0)},stop:q}}),st(T,"Core/Renderer/HTML/AST.js",[T["Core/Globals.js"],T["Core/Utilities.js"]],function(B,P){const{SVG_NS:G,win:q}=B,{attr:J,createElement:X,css:Y,error:O,isFunction:N,isString:R,objectEach:x,splat:b}=P;({trustedTypes:P}=q);const E=P&&N(P.createPolicy)&&P.createPolicy("highcharts",{createHTML:v=>v});P=E?E.createHTML(""):"";try{var L=!!new DOMParser().parseFromString(P,"text/html")}catch{L=!1}const c=L;class y{static filterUserAttributes(g){return x(g,(A,k)=>{let S=!0;y.allowedAttributes.indexOf(k)===-1&&(S=!1),["background","dynsrc","href","lowsrc","src"].indexOf(k)!==-1&&(S=R(A)&&y.allowedReferences.some(o=>A.indexOf(o)===0)),S||(O(33,!1,void 0,{"Invalid attribute in config":`${k}`}),delete g[k]),R(A)&&g[k]&&(g[k]=A.replace(/</g,"<"))}),g}static parseStyle(g){return g.split(";").reduce((A,k)=>{k=k.split(":").map(o=>o.trim());const S=k.shift();return S&&k.length&&(A[S.replace(/-([a-z])/g,o=>o[1].toUpperCase())]=k.join(":")),A},{})}static setElementHTML(g,A){g.innerHTML=y.emptyHTML,A&&new y(A).addToDOM(g)}constructor(g){this.nodes=typeof g=="string"?this.parseMarkup(g):g}addToDOM(g){function A(k,S){let o;return b(k).forEach(function(r){var p=r.tagName;const h=r.textContent?B.doc.createTextNode(r.textContent):void 0,d=y.bypassHTMLFiltering;let e;if(p)if(p==="#text")e=h;else if(y.allowedTags.indexOf(p)!==-1||d){p=B.doc.createElementNS(p==="svg"?G:S.namespaceURI||G,p);const t=r.attributes||{};x(r,function(i,l){l!=="tagName"&&l!=="attributes"&&l!=="children"&&l!=="style"&&l!=="textContent"&&(t[l]=i)}),J(p,d?t:y.filterUserAttributes(t)),r.style&&Y(p,r.style),h&&p.appendChild(h),A(r.children||[],p),e=p}else O(33,!1,void 0,{"Invalid tagName in config":p});e&&S.appendChild(e),o=e}),o}return A(this.nodes,g)}parseMarkup(g){const A=[];if(g=g.trim().replace(/ style=(["'])/g," data-style=$1"),c)g=new DOMParser().parseFromString(E?E.createHTML(g):g,"text/html");else{const S=X("div");S.innerHTML=g,g={body:S}}const k=(S,o)=>{var r=S.nodeName.toLowerCase();const p={tagName:r};if(r==="#text"&&(p.textContent=S.textContent||""),r=S.attributes){const h={};[].forEach.call(r,d=>{d.name==="data-style"?p.style=y.parseStyle(d.value):h[d.name]=d.value}),p.attributes=h}if(S.childNodes.length){const h=[];[].forEach.call(S.childNodes,d=>{k(d,h)}),h.length&&(p.children=h)}o.push(p)};return[].forEach.call(g.body.childNodes,S=>k(S,A)),A}}return y.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 flood-color flood-opacity height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r 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".split(" "),y.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),y.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feDropShadow feFuncA feFuncB feFuncG feFuncR feGaussianBlur 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".split(" "),y.emptyHTML=P,y.bypassHTMLFiltering=!1,y}),st(T,"Core/Templating.js",[T["Core/Defaults.js"],T["Core/Utilities.js"]],function(B,P){function G(c="",y,v){const g=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,A=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,k=[],S=/f$/,o=/\.([0-9])/,r=J.lang,p=v&&v.time||X,h=v&&v.numberFormatter||q,d=(a="")=>{let w;return a==="true"?!0:a==="false"?!1:(w=Number(a)).toString()===a?w:O(a,y)};let e,t,i=0,l;for(;(e=g.exec(c))!==null;){const a=A.exec(e[1]);a&&(e=a,l=!0),t&&t.isBlock||(t={ctx:y,expression:e[1],find:e[0],isBlock:e[1].charAt(0)==="#",start:e.index,startInner:e.index+e[0].length,length:e[0].length});var u=e[1].split(" ")[0].replace("#","");if(L[u]&&(t.isBlock&&u===t.fn&&i++,t.fn||(t.fn=u)),u=e[1]==="else",t.isBlock&&t.fn&&(e[1]===`/${t.fn}`||u))if(i)u||i--;else{var _=t.startInner;_=c.substr(_,e.index-_),t.body===void 0?(t.body=_,t.startInner=e.index+e[0].length):t.elseBody=_,t.find+=_+e[0],u||(k.push(t),t=void 0)}else t.isBlock||k.push(t);if(a&&(t==null||!t.isBlock))break}return k.forEach(a=>{const{body:w,elseBody:H,expression:K,fn:rt}=a;var j;if(rt){var s=[a],M=K.split(" ");for(j=L[rt].length;j--;)s.unshift(d(M[j+1]));j=L[rt].apply(y,s),a.isBlock&&typeof j=="boolean"&&(j=G(j?w:H,y))}else s=K.split(":"),j=d(s.shift()||""),s.length&&typeof j=="number"&&(s=s.join(":"),S.test(s)?(M=parseInt((s.match(o)||["","-1"])[1],10),j!==null&&(j=h(j,M,r.decimalPoint,-1<s.indexOf(",")?r.thousandsSep:""))):j=p.dateFormat(s,j));c=c.replace(a.find,b(j,""))}),l?G(c,y,v):c}function q(c,y,v,g){c=+c||0,y=+y;const A=J.lang;var k=(c.toString().split(".")[1]||"").split("e")[0].length;const S=c.toString().split("e"),o=y;if(y===-1)y=Math.min(k,20);else if(!R(y))y=2;else if(y&&S[1]&&0>S[1]){var r=y+ +S[1];0<=r?(S[0]=(+S[0]).toExponential(r).split("e")[0],y=r):(S[0]=S[0].split(".")[0]||0,c=20>y?(S[0]*Math.pow(10,S[1])).toFixed(y):0,S[1]=0)}r=(Math.abs(S[1]?S[0]:c)+Math.pow(10,-Math.max(y,k)-1)).toFixed(y),k=String(E(r));const p=3<k.length?k.length%3:0;return v=b(v,A.decimalPoint),g=b(g,A.thousandsSep),c=(0>c?"-":"")+(p?k.substr(0,p)+g:""),c=0>+S[1]&&!o?"0":c+k.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+g),y&&(c+=v+r.slice(-y)),S[1]&&+c!=0&&(c+="e"+S[1]),c}const{defaultOptions:J,defaultTime:X}=B,{extend:Y,getNestedProperty:O,isArray:N,isNumber:R,isObject:x,pick:b,pInt:E}=P,L={add:(c,y)=>c+y,divide:(c,y)=>y!==0?c/y:"",eq:(c,y)=>c==y,each:function(c){const y=arguments[arguments.length-1];return N(c)?c.map((v,g)=>G(y.body,Y(x(v)?v:{"@this":v},{"@index":g,"@first":g===0,"@last":g===c.length-1}))).join(""):!1},ge:(c,y)=>c>=y,gt:(c,y)=>c>y,if:c=>!!c,le:(c,y)=>c<=y,lt:(c,y)=>c<y,multiply:(c,y)=>c*y,ne:(c,y)=>c!=y,subtract:(c,y)=>c-y,unless:c=>!c};return{dateFormat:function(c,y,v){return X.dateFormat(c,y,v)},format:G,helpers:L,numberFormat:q}}),st(T,"Core/Renderer/RendererUtilities.js",[T["Core/Utilities.js"]],function(B){const{clamp:P,pick:G,stableSort:q}=B;var J;return function(X){function Y(O,N,R){const x=O;var b=x.reducedLen||N,E=(A,k)=>(k.rank||0)-(A.rank||0);const L=(A,k)=>A.target-k.target;let c,y=!0,v=[],g=0;for(c=O.length;c--;)g+=O[c].size;if(g>b){for(q(O,E),g=c=0;g<=b;)g+=O[c].size,c++;v=O.splice(c-1,O.length)}for(q(O,L),O=O.map(A=>({size:A.size,targets:[A.target],align:G(A.align,.5)}));y;){for(c=O.length;c--;)b=O[c],E=(Math.min.apply(0,b.targets)+Math.max.apply(0,b.targets))/2,b.pos=P(E-b.size*b.align,0,N-b.size);for(c=O.length,y=!1;c--;)0<c&&O[c-1].pos+O[c-1].size>O[c].pos&&(O[c-1].size+=O[c].size,O[c-1].targets=O[c-1].targets.concat(O[c].targets),O[c-1].align=.5,O[c-1].pos+O[c-1].size>N&&(O[c-1].pos=N-O[c-1].size),O.splice(c,1),y=!0)}return x.push.apply(x,v),c=0,O.some(A=>{let k=0;return(A.targets||[]).some(()=>(x[c].pos=A.pos+k,typeof R<"u"&&Math.abs(x[c].pos-x[c].target)>R?(x.slice(0,c+1).forEach(S=>delete S.pos),x.reducedLen=(x.reducedLen||N)-.1*N,x.reducedLen>.1*N&&Y(x,N,R),!0):(k+=x[c].size,c++,!1)))}),q(x,L),x}X.distribute=Y}(J||(J={})),J}),st(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(B,P,G,q){const{animate:J,animObject:X,stop:Y}=B,{deg2rad:O,doc:N,svg:R,SVG_NS:x,win:b}=G,{addEvent:E,attr:L,createElement:c,css:y,defined:v,erase:g,extend:A,fireEvent:k,isArray:S,isFunction:o,isObject:r,isString:p,merge:h,objectEach:d,pick:e,pInt:t,syncTimeout:i,uniqueKey:l}=q;class u{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=x}_defaultGetter(a){return a=e(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a}_defaultSetter(a,w,H){H.setAttribute(w,a)}add(a){const w=this.renderer,H=this.element;let K;return a&&(this.parentGroup=a),typeof this.textStr<"u"&&this.element.nodeName==="text"&&w.buildText(this),this.added=!0,(!a||a.handleZ||this.zIndex)&&(K=this.zIndexSetter()),K||(a?a.element:w.box).appendChild(H),this.onAdd&&this.onAdd(),this}addClass(a,w){const H=w?"":this.attr("class")||"";return a=(a||"").split(/ /g).reduce(function(K,rt){return H.indexOf(rt)===-1&&K.push(rt),K},H?[H]:[]).join(" "),a!==H&&this.attr("class",a),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(a,w,H){const K={};var rt=this.renderer,j=rt.alignedObjects,s;let M,z;a?(this.alignOptions=a,this.alignByTranslate=w,(!H||p(H))&&(this.alignTo=s=H||"renderer",g(j,this),j.push(this),H=void 0)):(a=this.alignOptions,w=this.alignByTranslate,s=this.alignTo),H=e(H,rt[s],s==="scrollablePlotBox"?rt.plotBox:void 0,rt),s=a.align;const I=a.verticalAlign;return rt=(H.x||0)+(a.x||0),j=(H.y||0)+(a.y||0),s==="right"?M=1:s==="center"&&(M=2),M&&(rt+=(H.width-(a.width||0))/M),K[w?"translateX":"x"]=Math.round(rt),I==="bottom"?z=1:I==="middle"&&(z=2),z&&(j+=(H.height-(a.height||0))/z),K[w?"translateY":"y"]=Math.round(j),this[this.placed?"animate":"attr"](K),this.placed=!0,this.alignAttr=K,this}alignSetter(a){const w={left:"start",center:"middle",right:"end"};w[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",w[a]))}animate(a,w,H){const K=X(e(w,this.renderer.globalAnimation,!0));return w=K.defer,N.hidden&&(K.duration=0),K.duration!==0?(H&&(K.complete=H),i(()=>{this.element&&J(this,a,K)},w)):(this.attr(a,void 0,H||K.complete),d(a,function(rt,j){K.step&&K.step.call(this,rt,{prop:j,pos:1,elem:this})},this)),this}applyTextOutline(a){const w=this.element;a.indexOf("contrast")!==-1&&(a=a.replace(/contrast/g,this.renderer.getContrast(w.style.fill)));var H=a.split(" ");if(a=H[H.length-1],(H=H[0])&&H!=="none"&&G.svg){this.fakeTS=!0,H=H.replace(/(^[\d\.]+)(.*?)$/g,function(j,s,M){return 2*Number(s)+M}),this.removeTextOutline();const K=N.createElementNS(x,"tspan");L(K,{class:"highcharts-text-outline",fill:a,stroke:a,"stroke-width":H,"stroke-linejoin":"round"}),a=w.querySelector("textPath")||w,[].forEach.call(a.childNodes,j=>{const s=j.cloneNode(!0);s.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(M=>s.removeAttribute(M)),K.appendChild(s)});let rt=0;[].forEach.call(a.querySelectorAll("text tspan"),j=>{rt+=Number(j.getAttribute("dy"))}),H=N.createElementNS(x,"tspan"),H.textContent="",L(H,{x:Number(w.getAttribute("x")),dy:-rt}),K.appendChild(H),a.insertBefore(K,a.firstChild)}}attr(a,w,H,K){const rt=this.element,j=u.symbolCustomAttribs;let s,M,z=this,I,V;return typeof a=="string"&&typeof w<"u"&&(s=a,a={},a[s]=w),typeof a=="string"?z=(this[a+"Getter"]||this._defaultGetter).call(this,a,rt):(d(a,function(n,f){I=!1,K||Y(this,f),this.symbolName&&j.indexOf(f)!==-1&&(M||(this.symbolAttr(a),M=!0),I=!0),!this.rotation||f!=="x"&&f!=="y"||(this.doTransform=!0),I||(V=this[f+"Setter"]||this._defaultSetter,V.call(this,n,f,rt))},this),this.afterSetters()),H&&H.call(this),z}clip(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")}crisp(a,w){w=w||a.strokeWidth||0;const H=Math.round(w)%2/2;return a.x=Math.floor(a.x||this.x||0)+H,a.y=Math.floor(a.y||this.y||0)+H,a.width=Math.floor((a.width||this.width||0)-2*H),a.height=Math.floor((a.height||this.height||0)-2*H),v(a.strokeWidth)&&(a.strokeWidth=w),a}complexColor(a,w,H){const K=this.renderer;let rt,j,s,M,z,I,V,n,f,m,$=[],F;k(this.renderer,"complexColor",{args:arguments},function(){if(a.radialGradient?j="radialGradient":a.linearGradient&&(j="linearGradient"),j){if(s=a[j],z=K.gradients,I=a.stops,f=H.radialReference,S(s)&&(a[j]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),j==="radialGradient"&&f&&!v(s.gradientUnits)&&(M=s,s=h(s,K.getRadialAttr(f,M),{gradientUnits:"userSpaceOnUse"})),d(s,function(W,it){it!=="id"&&$.push(it,W)}),d(I,function(W){$.push(W)}),$=$.join(","),z[$])m=z[$].attr("id");else{s.id=m=l();const W=z[$]=K.createElement(j).attr(s).add(K.defs);W.radAttr=M,W.stops=[],I.forEach(function(it){it[1].indexOf("rgba")===0?(rt=P.parse(it[1]),V=rt.get("rgb"),n=rt.get("a")):(V=it[1],n=1),it=K.createElement("stop").attr({offset:it[0],"stop-color":V,"stop-opacity":n}).add(W),W.stops.push(it)})}F="url("+K.url+"#"+m+")",H.setAttribute(w,F),H.gradient=$,a.toString=function(){return F}}})}css(a){const w=this.styles,H={},K=this.element;let rt,j=!w;if(w&&d(a,function(s,M){w&&w[M]!==s&&(H[M]=s,j=!0)}),j){w&&(a=A(w,H)),a.width===null||a.width==="auto"?delete this.textWidth:K.nodeName.toLowerCase()==="text"&&a.width&&(rt=this.textWidth=t(a.width)),this.styles=a,rt&&!R&&this.renderer.forExport&&delete a.width;const s=h(a);K.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(M=>s&&delete s[M]),s.color&&(s.fill=s.color)),y(K,s)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),a.textOutline&&this.applyTextOutline(a.textOutline)),this}dashstyleSetter(a){let w=this["stroke-width"];if(w==="inherit"&&(w=1),a=a&&a.toLowerCase()){const H=a.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(",");for(a=H.length;a--;)H[a]=""+t(H[a])*e(w,NaN);a=H.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}}destroy(){const a=this;var w=a.element||{};const H=a.renderer;var K=w.ownerSVGElement;let rt=w.nodeName==="SPAN"&&a.parentGroup||void 0;if(w.onclick=w.onmouseout=w.onmouseover=w.onmousemove=w.point=null,Y(a),a.clipPath&&K){const j=a.clipPath;[].forEach.call(K.querySelectorAll("[clip-path],[CLIP-PATH]"),function(s){-1<s.getAttribute("clip-path").indexOf(j.element.id)&&s.removeAttribute("clip-path")}),a.clipPath=j.destroy()}if(a.stops){for(K=0;K<a.stops.length;K++)a.stops[K].destroy();a.stops.length=0,a.stops=void 0}for(a.safeRemoveChild(w);rt&&rt.div&&rt.div.childNodes.length===0;)w=rt.parentGroup,a.safeRemoveChild(rt.div),delete rt.div,rt=w;a.alignTo&&g(H.alignedObjects,a),d(a,function(j,s){a[s]&&a[s].parentGroup===a&&a[s].destroy&&a[s].destroy(),delete a[s]})}dSetter(a,w,H){S(a)&&(typeof a[0]=="string"&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce((K,rt,j)=>rt&&rt.join?(j?K+" ":"")+rt.join(" "):(rt||"").toString(),"")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),this[w]!==a&&(H.setAttribute(w,a),this[w]=a)}fadeOut(a){const w=this;w.animate({opacity:0},{duration:e(a,150),complete:function(){w.hide()}})}fillSetter(a,w,H){typeof a=="string"?H.setAttribute(w,a):a&&this.complexColor(a,w,H)}getBBox(a,w){const{alignValue:H,element:K,renderer:rt,styles:j,textStr:s}=this,{cache:M,cacheKeys:z}=rt;var I=K.namespaceURI===this.SVG_NS;w=e(w,this.rotation,0);var V=rt.styledMode?K&&u.prototype.getStyle.call(K,"font-size"):j&&j.fontSize;let n,f;if(v(s)&&(f=s.toString(),f.indexOf("<")===-1&&(f=f.replace(/[0-9]/g,"0")),f+=["",rt.rootFontSize,V,w,this.textWidth,H,j&&j.textOverflow,j&&j.fontWeight].join()),f&&!a&&(n=M[f]),!n){if(I||rt.forExport){try{var m=this.fakeTS&&function(nt){const lt=K.querySelector(".highcharts-text-outline");lt&&y(lt,{display:nt})};o(m)&&m("none"),n=K.getBBox?A({},K.getBBox()):{width:K.offsetWidth,height:K.offsetHeight,x:0,y:0},o(m)&&m("")}catch{}(!n||0>n.width)&&(n={x:0,y:0,width:0,height:0})}else n=this.htmlGetBBox();if(m=n.width,a=n.height,I&&(n.height=a={"11px,17":14,"13px,20":16}[`${V||""},${Math.round(a)}`]||a),w){I=Number(K.getAttribute("y")||0)-n.y,V={right:1,center:.5}[H||0]||0;var $=w*O,F=(w-90)*O,W=m*Math.cos($);w=m*Math.sin($);var it=Math.cos(F);$=Math.sin(F),m=n.x+V*(m-W)+I*it,F=m+W,it=F-a*it,W=it-W,I=n.y+I-V*w+I*$,V=I+w,a=V-a*$,w=a-w,n.x=Math.min(m,F,it,W),n.y=Math.min(I,V,a,w),n.width=Math.max(m,F,it,W)-n.x,n.height=Math.max(I,V,a,w)-n.y}}if(f&&(s===""||0<n.height)){for(;250<z.length;)delete M[z.shift()];M[f]||z.push(f),M[f]=n}return n}getStyle(a){return b.getComputedStyle(this.element||this,"").getPropertyValue(a)}hasClass(a){return(""+this.attr("class")).split(" ").indexOf(a)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}init(a,w){this.element=w==="span"?c(w):N.createElementNS(this.SVG_NS,w),this.renderer=a,k(this,"afterInit")}on(a,w){const{onEvents:H}=this;return H[a]&&H[a](),H[a]=E(this.element,a,w),this}opacitySetter(a,w,H){this.opacity=a=Number(Number(a).toFixed(3)),H.setAttribute(w,a)}removeClass(a){return this.attr("class",(""+this.attr("class")).replace(p(a)?new RegExp(`(^| )${a}( |$)`):a," ").replace(/ +/g," ").trim())}removeTextOutline(){const a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)}safeRemoveChild(a){const w=a.parentNode;w&&w.removeChild(a)}setRadialReference(a){const w=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,w&&w.radAttr&&w.animate(this.renderer.getRadialAttr(a,w.radAttr)),this}setTextPath(a,w){w=h(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},w);const H=this.renderer.url,K=this.text||this,rt=K.textPath,{attributes:j,enabled:s}=w;return a=a||rt&&rt.path,rt&&rt.undo(),a&&s?(w=E(K,"afterModifyTree",M=>{if(a&&s){let I=a.attr("id");I||a.attr("id",I=l());var z={x:0,y:0};v(j.dx)&&(z.dx=j.dx,delete j.dx),v(j.dy)&&(z.dy=j.dy,delete j.dy),K.attr(z),this.attr({transform:""}),this.box&&(this.box=this.box.destroy()),z=M.nodes.slice(0),M.nodes.length=0,M.nodes[0]={tagName:"textPath",attributes:A(j,{"text-anchor":j.textAnchor,href:`${H}#${I}`}),children:z}}}),K.textPath={path:a,undo:w}):(K.attr({dx:0,dy:0}),delete K.textPath),this.added&&(K.textCache="",this.renderer.buildText(K)),this}shadow(a){var w;const{renderer:H}=this,K=h(((w=this.parentGroup)===null||w===void 0?void 0:w.rotation)===90?{offsetX:-1,offsetY:-1}:{},r(a)?a:{});return w=H.shadowDefinition(K),this.attr({filter:a?`url(${H.url}#${w})`:"none"})}show(a=!0){return this.attr({visibility:a?"inherit":"visible"})}"stroke-widthSetter"(a,w,H){this[w]=a,H.setAttribute(w,a)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const a=this.getStyle("stroke-width");let w=0,H;return a.indexOf("px")===a.length-2?w=t(a):a!==""&&(H=N.createElementNS(x,"rect"),L(H,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(H),w=H.getBBox().width,H.parentNode.removeChild(H)),w}symbolAttr(a){const w=this;u.symbolCustomAttribs.forEach(function(H){w[H]=e(a[H],w[H])}),w.attr({d:w.renderer.symbols[w.symbolName](w.x,w.y,w.width,w.height,w)})}textSetter(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))}titleSetter(a){const w=this.element,H=w.getElementsByTagName("title")[0]||N.createElementNS(this.SVG_NS,"title");w.insertBefore?w.insertBefore(H,w.firstChild):w.appendChild(H),H.textContent=String(e(a,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}toFront(){const a=this.element;return a.parentNode.appendChild(a),this}translate(a,w){return this.attr({translateX:a,translateY:w})}updateTransform(){const{element:a,matrix:w,rotation:H=0,scaleX:K,scaleY:rt,translateX:j=0,translateY:s=0}=this,M=["translate("+j+","+s+")"];v(w)&&M.push("matrix("+w.join(",")+")"),H&&M.push("rotate("+H+" "+e(this.rotationOriginX,a.getAttribute("x"),0)+" "+e(this.rotationOriginY,a.getAttribute("y")||0)+")"),(v(K)||v(rt))&&M.push("scale("+e(K,1)+" "+e(rt,1)+")"),M.length&&!(this.text||this).textPath&&a.setAttribute("transform",M.join(" "))}visibilitySetter(a,w,H){a==="inherit"?H.removeAttribute(w):this[w]!==a&&H.setAttribute(w,a),this[w]=a}xGetter(a){return this.element.nodeName==="circle"&&(a==="x"?a="cx":a==="y"&&(a="cy")),this._defaultGetter(a)}zIndexSetter(a,w){var H=this.renderer,K=this.parentGroup;const rt=(K||H).element||H.box,j=this.element;H=rt===H.box;let s=!1,M;var z=this.added;let I;if(v(a)?(j.setAttribute("data-z-index",a),a=+a,this[w]===a&&(z=!1)):v(this[w])&&j.removeAttribute("data-z-index"),this[w]=a,z){for((a=this.zIndex)&&K&&(K.handleZ=!0),w=rt.childNodes,I=w.length-1;0<=I&&!s;I--)K=w[I],z=K.getAttribute("data-z-index"),M=!v(z),K!==j&&(0>a&&M&&!H&&!I?(rt.insertBefore(j,w[I]),s=!0):(t(z)<=a||M&&(!v(a)||0<=a))&&(rt.insertBefore(j,w[I+1]),s=!0));s||(rt.insertBefore(j,w[H?3:0]),s=!0)}return s}}return u.symbolCustomAttribs="anchorX anchorY clockwise end height innerR r start width x y".split(" "),u.prototype.strokeSetter=u.prototype.fillSetter,u.prototype.yGetter=u.prototype.xGetter,u.prototype.matrixSetter=u.prototype.rotationOriginXSetter=u.prototype.rotationOriginYSetter=u.prototype.rotationSetter=u.prototype.scaleXSetter=u.prototype.scaleYSetter=u.prototype.translateXSetter=u.prototype.translateYSetter=u.prototype.verticalAlignSetter=function(_,a){this[a]=_,this.doTransform=!0},u}),st(T,"Core/Renderer/RendererRegistry.js",[T["Core/Globals.js"]],function(B){var P;return function(G){G.rendererTypes={};let q;G.getRendererType=function(J=q){return G.rendererTypes[J]||G.rendererTypes[q]},G.registerRendererType=function(J,X,Y){G.rendererTypes[J]=X,(!q||Y)&&(q=J,B.Renderer=X)}}(P||(P={})),P}),st(T,"Core/Renderer/SVG/SVGLabel.js",[T["Core/Renderer/SVG/SVGElement.js"],T["Core/Utilities.js"]],function(B,P){const{defined:G,extend:q,isNumber:J,merge:X,pick:Y,removeEvent:O}=P;class N extends B{constructor(x,b,E,L,c,y,v,g,A,k){super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(x,"g"),this.textStr=b,this.x=E,this.y=L,this.anchorX=y,this.anchorY=v,this.baseline=A,this.className=k,this.addClass(k==="button"?"highcharts-no-tooltip":"highcharts-label"),k&&this.addClass("highcharts-"+k),this.text=x.text(void 0,0,0,g).attr({zIndex:1});let S;typeof c=="string"&&((S=/^url\((.*?)\)$/.test(c))||this.renderer.symbols[c])&&(this.symbolKey=c),this.bBox=N.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=x.styledMode||S,this.deferredAttr={},this.alignFactor=0}alignSetter(x){x={left:0,center:.5,right:1}[x],x!==this.alignFactor&&(this.alignFactor=x,this.bBox&&J(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(x,b){this.anchorX=x,this.boxAttr(b,Math.round(x)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(x,b){this.anchorY=x,this.boxAttr(b,x-this.ySetting)}boxAttr(x,b){this.box?this.box.attr(x,b):this.deferredAttr[x]=b}css(x){if(x){const b={};x=X(x),N.textProps.forEach(E=>{typeof x[E]<"u"&&(b[E]=x[E],delete x[E])}),this.text.css(b),"fontSize"in b||"fontWeight"in b?this.updateTextPadding():("width"in b||"textOverflow"in b)&&this.updateBoxSize()}return B.prototype.css.call(this,x)}destroy(){O(this.element,"mouseenter"),O(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),B.prototype.destroy.call(this)}fillSetter(x,b){x&&(this.needsBox=!0),this.fill=x,this.boxAttr(b,x)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const x=this.padding,b=Y(this.paddingLeft,x);return{width:this.width,height:this.height,x:this.bBox.x-b,y:this.bBox.y-x}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(x){this.heightSetting=x}onAdd(){this.text.add(this),this.attr({text:Y(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&G(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(x,b){J(x)?x!==this[b]&&(this[b]=x,this.updateTextPadding()):this[b]=void 0}rSetter(x,b){this.boxAttr(b,x)}strokeSetter(x,b){this.stroke=x,this.boxAttr(b,x)}"stroke-widthSetter"(x,b){x&&(this.needsBox=!0),this["stroke-width"]=x,this.boxAttr(b,x)}"text-alignSetter"(x){this.textAlign=x}textSetter(x){typeof x<"u"&&this.text.attr({text:x}),this.updateTextPadding()}updateBoxSize(){var x=this.text;const b={},E=this.padding,L=this.bBox=J(this.widthSetting)&&J(this.heightSetting)&&!this.textAlign||!G(x.textStr)?N.emptyBBox:x.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||L.height||0)+2*E;const c=this.renderer.fontMetrics(x);this.baselineOffset=E+Math.min((this.text.firstLineMetrics||c).b,L.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-c.h)/2),this.needsBox&&!x.textPath&&(this.box||(x=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),x.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),x.add(this)),x=this.getCrispAdjust(),b.x=x,b.y=(this.baseline?-this.baselineOffset:0)+x,b.width=Math.round(this.width),b.height=Math.round(this.height),this.box.attr(q(b,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const x=this.text;if(!x.textPath){this.updateBoxSize();const b=this.baseline?0:this.baselineOffset;let E=Y(this.paddingLeft,this.padding);G(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(E+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(E!==x.x||b!==x.y)&&(x.attr("x",E),x.hasBoxWidthChanged&&(this.bBox=x.getBBox(!0)),typeof b<"u"&&x.attr("y",b)),x.x=E,x.y=b}}widthSetter(x){this.widthSetting=J(x)?x:void 0}getPaddedWidth(){var x=this.padding;const b=Y(this.paddingLeft,x);return x=Y(this.paddingRight,x),(this.widthSetting||this.bBox.width||0)+b+x}xSetter(x){this.x=x,this.alignFactor&&(x-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(x),this.attr("translateX",this.xSetting)}ySetter(x){this.ySetting=this.y=Math.round(x),this.attr("translateY",this.ySetting)}}return N.emptyBBox={width:0,height:0,x:0,y:0},N.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),N}),st(T,"Core/Renderer/SVG/Symbols.js",[T["Core/Utilities.js"]],function(B){function P(O,N,R,x,b){const E=[];if(b){const L=b.start||0,c=Y(b.r,R);R=Y(b.r,x||R),x=(b.end||0)-.001;const y=b.innerR,v=Y(b.open,.001>Math.abs((b.end||0)-L-2*Math.PI)),g=Math.cos(L),A=Math.sin(L),k=Math.cos(x),S=Math.sin(x),o=Y(b.longArc,.001>x-L-Math.PI?0:1);let r=["A",c,R,0,o,Y(b.clockwise,1),O+c*k,N+R*S];r.params={start:L,end:x,cx:O,cy:N},E.push(["M",O+c*g,N+R*A],r),J(y)&&(r=["A",y,y,0,o,J(b.clockwise)?1-b.clockwise:0,O+y*g,N+y*A],r.params={start:x,end:L,cx:O,cy:N},E.push(v?["M",O+y*k,N+y*S]:["L",O+y*k,N+y*S],r)),v||E.push(["Z"])}return E}function G(O,N,R,x,b){return b&&b.r?q(O,N,R,x,b):[["M",O,N],["L",O+R,N],["L",O+R,N+x],["L",O,N+x],["Z"]]}function q(O,N,R,x,b){return b=(b==null?void 0:b.r)||0,[["M",O+b,N],["L",O+R-b,N],["A",b,b,0,0,1,O+R,N+b],["L",O+R,N+x-b],["A",b,b,0,0,1,O+R-b,N+x],["L",O+b,N+x],["A",b,b,0,0,1,O,N+x-b],["L",O,N+b],["A",b,b,0,0,1,O+b,N],["Z"]]}const{defined:J,isNumber:X,pick:Y}=B;return{arc:P,callout:function(O,N,R,x,b){const E=Math.min(b&&b.r||0,R,x),L=E+6,c=b&&b.anchorX;b=b&&b.anchorY||0;const y=q(O,N,R,x,{r:E});return X(c)&&(O+c>=R?b>N+L&&b<N+x-L?y.splice(3,1,["L",O+R,b-6],["L",O+R+6,b],["L",O+R,b+6],["L",O+R,N+x-E]):y.splice(3,1,["L",O+R,x/2],["L",c,b],["L",O+R,x/2],["L",O+R,N+x-E]):0>=O+c?b>N+L&&b<N+x-L?y.splice(7,1,["L",O,b+6],["L",O-6,b],["L",O,b-6],["L",O,N+E]):y.splice(7,1,["L",O,x/2],["L",c,b],["L",O,x/2],["L",O,N+E]):b&&b>x&&c>O+L&&c<O+R-L?y.splice(5,1,["L",c+6,N+x],["L",c,N+x+6],["L",c-6,N+x],["L",O+E,N+x]):b&&0>b&&c>O+L&&c<O+R-L&&y.splice(1,1,["L",c-6,N],["L",c,N-6],["L",c+6,N],["L",R-E,N])),y},circle:function(O,N,R,x){return P(O+R/2,N+x/2,R/2,x/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(O,N,R,x){return[["M",O+R/2,N],["L",O+R,N+x/2],["L",O+R/2,N+x],["L",O,N+x/2],["Z"]]},rect:G,roundedRect:q,square:G,triangle:function(O,N,R,x){return[["M",O+R/2,N],["L",O+R,N+x],["L",O,N+x],["Z"]]},"triangle-down":function(O,N,R,x){return[["M",O,N],["L",O+R,N],["L",O+R/2,N+x],["Z"]]}}}),st(T,"Core/Renderer/SVG/TextBuilder.js",[T["Core/Renderer/HTML/AST.js"],T["Core/Globals.js"],T["Core/Utilities.js"]],function(B,P,G){const{doc:q,SVG_NS:J,win:X}=P,{attr:Y,extend:O,fireEvent:N,isString:R,objectEach:x,pick:b}=G;class E{constructor(c){const y=c.styles;this.renderer=c.renderer,this.svgElement=c,this.width=c.textWidth,this.textLineHeight=y&&y.lineHeight,this.textOutline=y&&y.textOutline,this.ellipsis=!(!y||y.textOverflow!=="ellipsis"),this.noWrap=!(!y||y.whiteSpace!=="nowrap")}buildSVG(){const c=this.svgElement,y=c.element;var v=c.renderer,g=b(c.textStr,"").toString();const A=g.indexOf("<")!==-1,k=y.childNodes;v=!c.added&&v.box;const S=/<br.*?>/g;var o=[g,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,c.getStyle("font-size"),this.width].join();if(o!==c.textCache){for(c.textCache=o,delete c.actualWidth,o=k.length;o--;)y.removeChild(k[o]);A||this.ellipsis||this.width||c.textPath||g.indexOf(" ")!==-1&&(!this.noWrap||S.test(g))?g!==""&&(v&&v.appendChild(y),g=new B(g),this.modifyTree(g.nodes),g.addToDOM(y),this.modifyDOM(),this.ellipsis&&(y.textContent||"").indexOf("…")!==-1&&c.attr("title",this.unescapeEntities(c.textStr||"",["<",">"])),v&&v.removeChild(y)):y.appendChild(q.createTextNode(this.unescapeEntities(g))),R(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}}modifyDOM(){const c=this.svgElement,y=Y(c.element,"x");c.firstLineMetrics=void 0;let v;for(;(v=c.element.firstChild)&&/^[\s\u200B]*$/.test(v.textContent||" ");)c.element.removeChild(v);[].forEach.call(c.element.querySelectorAll("tspan.highcharts-br"),(S,o)=>{S.nextSibling&&S.previousSibling&&(o===0&&S.previousSibling.nodeType===1&&(c.firstLineMetrics=c.renderer.fontMetrics(S.previousSibling)),Y(S,{dy:this.getLineHeight(S.nextSibling),x:y}))});const g=this.width||0;if(g){var A=(S,o)=>{var r=S.textContent||"";const p=r.replace(/([^\^])-/g,"$1- ").split(" ");var h=!this.noWrap&&(1<p.length||1<c.element.childNodes.length);const d=this.getLineHeight(o);let e=0,t=c.actualWidth;if(this.ellipsis)r&&this.truncate(S,r,void 0,0,Math.max(0,g-.8*d),(i,l)=>i.substring(0,l)+"…");else if(h){for(r=[],h=[];o.firstChild&&o.firstChild!==S;)h.push(o.firstChild),o.removeChild(o.firstChild);for(;p.length;)p.length&&!this.noWrap&&0<e&&(r.push(S.textContent||""),S.textContent=p.join(" ").replace(/- /g,"-")),this.truncate(S,void 0,p,e===0&&t||0,g,(i,l)=>p.slice(0,l).join(" ").replace(/- /g,"-")),t=c.actualWidth,e++;h.forEach(i=>{o.insertBefore(i,S)}),r.forEach(i=>{o.insertBefore(q.createTextNode(i),S),i=q.createElementNS(J,"tspan"),i.textContent="",Y(i,{dy:d,x:y}),o.insertBefore(i,S)})}},k=S=>{[].slice.call(S.childNodes).forEach(o=>{o.nodeType===X.Node.TEXT_NODE?A(o,S):(o.className.baseVal.indexOf("highcharts-br")!==-1&&(c.actualWidth=0),k(o))})};k(c.element)}}getLineHeight(c){return c=c.nodeType===X.Node.TEXT_NODE?c.parentElement:c,this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(c||this.svgElement.element).h}modifyTree(c){const y=(v,g)=>{const{attributes:A={},children:k,style:S={},tagName:o}=v,r=this.renderer.styledMode;o==="b"||o==="strong"?r?A.class="highcharts-strong":S.fontWeight="bold":(o==="i"||o==="em")&&(r?A.class="highcharts-emphasized":S.fontStyle="italic"),S&&S.color&&(S.fill=S.color),o==="br"?(A.class="highcharts-br",v.textContent="",(g=c[g+1])&&g.textContent&&(g.textContent=g.textContent.replace(/^ +/gm,""))):o==="a"&&k&&k.some(p=>p.tagName==="#text")&&(v.children=[{children:k,tagName:"tspan"}]),o!=="#text"&&o!=="a"&&(v.tagName="tspan"),O(v,{attributes:A,style:S}),k&&k.filter(p=>p.tagName!=="#text").forEach(y)};c.forEach(y),N(this.svgElement,"afterModifyTree",{nodes:c})}truncate(c,y,v,g,A,k){const S=this.svgElement,{rotation:o}=S,r=[];let p=v?1:0,h=(y||v||"").length,d=h,e,t;const i=function(l,u){if(l=u||l,(u=c.parentNode)&&typeof r[l]>"u"&&u.getSubStringLength)try{r[l]=g+u.getSubStringLength(0,v?l+1:l)}catch{}return r[l]};if(S.rotation=0,t=i(c.textContent.length),g+t>A){for(;p<=h;)d=Math.ceil((p+h)/2),v&&(e=k(v,d)),t=i(d,e&&e.length-1),p===h?p=h+1:t>A?h=d-1:p=d;h===0?c.textContent="":y&&h===y.length-1||(c.textContent=e||k(y||v,d))}v&&v.splice(0,d),S.actualWidth=t,S.rotation=o}unescapeEntities(c,y){return x(this.renderer.escapes,function(v,g){y&&y.indexOf(v)!==-1||(c=c.toString().replace(new RegExp(v,"g"),g))}),c}}return E}),st(T,"Core/Renderer/SVG/SVGRenderer.js",[T["Core/Renderer/HTML/AST.js"],T["Core/Color/Color.js"],T["Core/Globals.js"],T["Core/Renderer/RendererRegistry.js"],T["Core/Renderer/SVG/SVGElement.js"],T["Core/Renderer/SVG/SVGLabel.js"],T["Core/Renderer/SVG/Symbols.js"],T["Core/Renderer/SVG/TextBuilder.js"],T["Core/Utilities.js"]],function(B,P,G,q,J,X,Y,O,N){const{charts:R,deg2rad:x,doc:b,isFirefox:E,isMS:L,isWebKit:c,noop:y,SVG_NS:v,symbolSizes:g,win:A}=G,{addEvent:k,attr:S,createElement:o,css:r,defined:p,destroyObjectProperties:h,extend:d,isArray:e,isNumber:t,isObject:i,isString:l,merge:u,pick:_,pInt:a,uniqueKey:w}=N;let H;class K{constructor(j,s,M,z,I,V,n){this.width=this.url=this.style=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(j,s,M,z,I,V,n)}init(j,s,M,z,I,V,n){const f=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),m=f.element;n||f.css(this.getStyle(z)),j.appendChild(m),S(j,"dir","ltr"),j.innerHTML.indexOf("xmlns")===-1&&S(m,"xmlns",this.SVG_NS),this.box=m,this.boxWrapper=f,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(b.createTextNode("Created with Highcharts 11.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=V,this.forExport=I,this.styledMode=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=f.getStyle("font-size"),this.setSize(s,M,!1);let $;E&&j.getBoundingClientRect&&(s=function(){r(j,{left:0,top:0}),$=j.getBoundingClientRect(),r(j,{left:Math.ceil($.left)-$.left+"px",top:Math.ceil($.top)-$.top+"px"})},s(),this.unSubPixelFix=k(A,"resize",s))}definition(j){return new B([j]).addToDOM(this.defs.element)}getReferenceURL(){if((E||c)&&b.getElementsByTagName("base").length){if(!p(H)){var j=w();j=new B([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:j},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${j})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(b.body),r(j,{position:"fixed",top:0,left:0,zIndex:9e5});const s=b.elementFromPoint(6,6);H=(s&&s.id)==="hitme",b.body.removeChild(j)}if(H)return A.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(j){return this.style=d({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},j)}setStyle(j){this.boxWrapper.css(this.getStyle(j))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const j=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),h(this.gradients||{}),this.gradients=null,this.defs=j.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}createElement(j){const s=new this.Element;return s.init(this,j),s}getRadialAttr(j,s){return{cx:j[0]-j[2]/2+(s.cx||0)*j[2],cy:j[1]-j[2]/2+(s.cy||0)*j[2],r:(s.r||0)*j[2]}}shadowDefinition(j){const s=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(j).map(z=>j[z])].join("-").replace(/[^a-z0-9\-]/g,""),M=u({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},j);return this.defs.element.querySelector(`#${s}`)||this.definition({tagName:"filter",attributes:{id:s},children:[{tagName:"feDropShadow",attributes:{dx:M.offsetX,dy:M.offsetY,"flood-color":M.color,"flood-opacity":Math.min(5*M.opacity,1),stdDeviation:M.width/2}}]}),s}buildText(j){new O(j).buildSVG()}getContrast(j){return j=P.parse(j).rgba.map(s=>(s/=255,.03928>=s?s/12.92:Math.pow((s+.055)/1.055,2.4))),j=.2126*j[0]+.7152*j[1]+.0722*j[2],1.05/(j+.05)>(j+.05)/.05?"#FFFFFF":"#000000"}button(j,s,M,z,I={},V,n,f,m,$){const F=this.label(j,s,M,m,void 0,void 0,$,void 0,"button"),W=this.styledMode;j=I.states||{};let it=0;I=u(I),delete I.states;const nt=u({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},I.style);delete I.style;let lt=B.filterUserAttributes(I);F.attr(u({padding:8,r:2},lt));let ht,pt,D;return W||(lt=u({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},lt),V=u(lt,{fill:"#e6e6e6"},B.filterUserAttributes(V||j.hover||{})),ht=V.style,delete V.style,n=u(lt,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},B.filterUserAttributes(n||j.select||{})),pt=n.style,delete n.style,f=u(lt,{style:{color:"#cccccc"}},B.filterUserAttributes(f||j.disabled||{})),D=f.style,delete f.style),k(F.element,L?"mouseover":"mouseenter",function(){it!==3&&F.setState(1)}),k(F.element,L?"mouseout":"mouseleave",function(){it!==3&&F.setState(it)}),F.setState=function(C){C!==1&&(F.state=it=C),F.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][C||0]),W||(F.attr([lt,V,n,f][C||0]),C=[nt,ht,pt,D][C||0],i(C)&&F.css(C))},W||(F.attr(lt).css(d({cursor:"default"},nt)),$&&F.text.css({pointerEvents:"none"})),F.on("touchstart",C=>C.stopPropagation()).on("click",function(C){it!==3&&z.call(F,C)})}crispLine(j,s,M="round"){const z=j[0],I=j[1];return p(z[1])&&z[1]===I[1]&&(z[1]=I[1]=Math[M](z[1])-s%2/2),p(z[2])&&z[2]===I[2]&&(z[2]=I[2]=Math[M](z[2])+s%2/2),j}path(j){const s=this.styledMode?{}:{fill:"none"};return e(j)?s.d=j:i(j)&&d(s,j),this.createElement("path").attr(s)}circle(j,s,M){return j=i(j)?j:typeof j>"u"?{}:{x:j,y:s,r:M},s=this.createElement("circle"),s.xSetter=s.ySetter=function(z,I,V){V.setAttribute("c"+I,z)},s.attr(j)}arc(j,s,M,z,I,V){return i(j)?(z=j,s=z.y,M=z.r,j=z.x):z={innerR:z,start:I,end:V},j=this.symbol("arc",j,s,M,M,z),j.r=M,j}rect(j,s,M,z,I,V){j=i(j)?j:typeof j>"u"?{}:{x:j,y:s,r:I,width:Math.max(M||0,0),height:Math.max(z||0,0)};const n=this.createElement("rect");return this.styledMode||(typeof V<"u"&&(j["stroke-width"]=V,d(j,n.crisp(j))),j.fill="none"),n.rSetter=function(f,m,$){n.r=f,S($,{rx:f,ry:f})},n.rGetter=function(){return n.r||0},n.attr(j)}roundedRect(j){return this.symbol("roundedRect").attr(j)}setSize(j,s,M){this.width=j,this.height=s,this.boxWrapper.animate({width:j,height:s},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:_(M,!0)?void 0:0}),this.alignElements()}g(j){const s=this.createElement("g");return j?s.attr({class:"highcharts-"+j}):s}image(j,s,M,z,I,V){const n={preserveAspectRatio:"none"};t(s)&&(n.x=s),t(M)&&(n.y=M),t(z)&&(n.width=z),t(I)&&(n.height=I);const f=this.createElement("image").attr(n);return s=function(m){f.attr({href:j}),V.call(f,m)},V?(f.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),M=new A.Image,k(M,"load",s),M.src=j,M.complete&&s({})):f.attr({href:j}),f}symbol(j,s,M,z,I,V){const n=this,f=/^url\((.*?)\)$/,m=f.test(j),$=!m&&(this.symbols[j]?j:"circle"),F=$&&this.symbols[$];let W,it,nt,lt;if(F)typeof s=="number"&&(it=F.call(this.symbols,Math.round(s||0),Math.round(M||0),z||0,I||0,V)),W=this.path(it),n.styledMode||W.attr("fill","none"),d(W,{symbolName:$||void 0,x:s,y:M,width:z,height:I}),V&&d(W,V);else if(m){nt=j.match(f)[1];const ht=W=this.image(nt);ht.imgwidth=_(V&&V.width,g[nt]&&g[nt].width),ht.imgheight=_(V&&V.height,g[nt]&&g[nt].height),lt=pt=>pt.attr({width:pt.width,height:pt.height}),["width","height"].forEach(function(pt){ht[pt+"Setter"]=function(D,C){this[C]=D;const{alignByTranslate:Q,element:U,width:et,height:dt,imgwidth:ct,imgheight:yt}=this;if(D=this["img"+C],p(D)){let vt=1;V&&V.backgroundSize==="within"&&et&&dt?(vt=Math.min(et/ct,dt/yt),S(U,{width:Math.round(ct*vt),height:Math.round(yt*vt)})):U&&U.setAttribute(C,D),Q||this.translate(((et||0)-ct*vt)/2,((dt||0)-yt*vt)/2)}}}),p(s)&&ht.attr({x:s,y:M}),ht.isImg=!0,p(ht.imgwidth)&&p(ht.imgheight)?lt(ht):(ht.attr({width:0,height:0}),o("img",{onload:function(){const pt=R[n.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),b.body.appendChild(this)),g[nt]={width:this.width,height:this.height},ht.imgwidth=this.width,ht.imgheight=this.height,ht.element&<(ht),this.parentNode&&this.parentNode.removeChild(this),n.imgCount--,!n.imgCount&&pt&&!pt.hasLoaded&&pt.onload()},src:nt}),this.imgCount++)}return W}clipRect(j,s,M,z){const I=w()+"-",V=this.createElement("clipPath").attr({id:I}).add(this.defs);return j=this.rect(j,s,M,z,0).add(V),j.id=I,j.clipPath=V,j.count=0,j}text(j,s,M,z){const I={};return z&&(this.allowHTML||!this.forExport)?this.html(j,s,M):(I.x=Math.round(s||0),M&&(I.y=Math.round(M)),p(j)&&(I.text=j),j=this.createElement("text").attr(I),(!z||this.forExport&&!this.allowHTML)&&(j.xSetter=function(V,n,f){const m=f.getElementsByTagName("tspan"),$=f.getAttribute(n);for(let F=0,W;F<m.length;F++)W=m[F],W.getAttribute(n)===$&&W.setAttribute(n,V);f.setAttribute(n,V)}),j)}fontMetrics(j){j=a(J.prototype.getStyle.call(j,"font-size")||0);const s=24>j?j+3:Math.round(1.2*j);return{h:s,b:Math.round(.8*s),f:j}}rotCorr(j,s,M){let z=j;return s&&M&&(z=Math.max(z*Math.cos(s*x),4)),{x:-j/3*Math.sin(s*x),y:z}}pathToSegments(j){const s=[],M=[],z={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let I=0;I<j.length;I++)l(M[0])&&t(j[I])&&M.length===z[M[0].toUpperCase()]&&j.splice(I,0,M[0].replace("M","L").replace("m","l")),typeof j[I]=="string"&&(M.length&&s.push(M.slice(0)),M.length=0),M.push(j[I]);return s.push(M.slice(0)),s}label(j,s,M,z,I,V,n,f,m){return new X(this,j,s,M,z,I,V,n,f,m)}alignElements(){this.alignedObjects.forEach(j=>j.align())}}return d(K.prototype,{Element:J,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Y,draw:y}),q.registerRendererType("svg",K,!0),K}),st(T,"Core/Renderer/HTML/HTMLElement.js",[T["Core/Globals.js"],T["Core/Renderer/SVG/SVGElement.js"],T["Core/Utilities.js"]],function(B,P,G){const{isFirefox:q,isMS:J,isWebKit:X,win:Y}=B,{css:O,defined:N,extend:R,pick:x,pInt:b}=G,E=[];class L extends P{static compose(y){if(G.pushUnique(E,y)){const v=L.prototype,g=y.prototype;g.getSpanCorrection=v.getSpanCorrection,g.htmlCss=v.htmlCss,g.htmlGetBBox=v.htmlGetBBox,g.htmlUpdateTransform=v.htmlUpdateTransform,g.setSpanRotation=v.setSpanRotation}return y}getSpanCorrection(y,v,g){this.xCorr=-y*g,this.yCorr=-v}htmlCss(y){const v=this.element.tagName==="SPAN"&&y&&"width"in y,g=x(v&&y.width,void 0);let A;return v&&(delete y.width,this.textWidth=g,A=!0),y&&y.textOverflow==="ellipsis"&&(y.whiteSpace="nowrap",y.overflow="hidden"),this.styles=R(this.styles,y),O(this.element,y),A&&this.htmlUpdateTransform(),this}htmlGetBBox(){const y=this.element;return{x:y.offsetLeft,y:y.offsetTop,width:y.offsetWidth,height:y.offsetHeight}}htmlUpdateTransform(){if(this.added){var y=this.renderer,v=this.element,g=this.x||0,A=this.y||0,k=this.textAlign||"left",S={left:0,center:.5,right:1}[k],o=this.styles,r=o&&o.whiteSpace;if(O(v,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),v.tagName==="SPAN"){o=this.rotation;const h=this.textWidth&&b(this.textWidth),d=[o,k,v.innerHTML,this.textWidth,this.textAlign].join();let e=!1;if(h!==this.oldTextWidth){if(this.textPxLength)var p=this.textPxLength;else O(v,{width:"",whiteSpace:r||"nowrap"}),p=v.offsetWidth;(h>this.oldTextWidth||p>h)&&(/[ \-]/.test(v.textContent||v.innerText)||v.style.textOverflow==="ellipsis")&&(O(v,{width:p>h||o?h+"px":"auto",display:"block",whiteSpace:r||"normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e,d!==this.cTT&&(y=y.fontMetrics(v).b,!N(o)||o===(this.oldRotation||0)&&k===this.oldAlign||this.setSpanRotation(o,S,y),this.getSpanCorrection(!N(o)&&this.textPxLength||v.offsetWidth,y,S,o,k)),O(v,{left:g+(this.xCorr||0)+"px",top:A+(this.yCorr||0)+"px"}),this.cTT=d,this.oldRotation=o,this.oldAlign=k}}else this.alignOnAdd=!0}setSpanRotation(y,v,g){const A={},k=J&&!/Edge/.test(Y.navigator.userAgent)?"-ms-transform":X?"-webkit-transform":q?"MozTransform":Y.opera?"-o-transform":void 0;k&&(A[k]=A.transform="rotate("+y+"deg)",A[k+(q?"Origin":"-origin")]=A.transformOrigin=100*v+"% "+g+"px",O(this.element,A))}}return L}),st(T,"Core/Renderer/HTML/HTMLRenderer.js",[T["Core/Renderer/HTML/AST.js"],T["Core/Renderer/SVG/SVGElement.js"],T["Core/Renderer/SVG/SVGRenderer.js"],T["Core/Utilities.js"]],function(B,P,G,q){const{attr:J,createElement:X,extend:Y,pick:O}=q,N=[];class R extends G{static compose(b){return q.pushUnique(N,b)&&(b.prototype.html=R.prototype.html),b}html(b,E,L){const c=this.createElement("span"),y=c.element,v=c.renderer,g=function(A,k){["opacity","visibility"].forEach(function(S){A[S+"Setter"]=function(o,r,p){const h=A.div?A.div.style:k;P.prototype[S+"Setter"].call(this,o,r,p),h&&(h[r]=o)}}),A.addedSetters=!0};return c.textSetter=function(A){A!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,B.setElementHTML(this.element,O(A,"")),this.textStr=A,c.doTransform=!0)},g(c,c.element.style),c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(A,k){k==="align"?c.alignValue=c.textAlign=A:c[k]=A,c.doTransform=!0},c.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},c.attr({text:b,x:Math.round(E),y:Math.round(L)}).css({position:"absolute"}),v.styledMode||c.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),y.style.whiteSpace="nowrap",c.css=c.htmlCss,c.add=function(A){const k=v.box.parentNode,S=[];let o;if(this.parentGroup=A){if(o=A.div,!o){for(;A;)S.push(A),A=A.parentGroup;S.reverse().forEach(function(r){function p(t,i){r[i]=t,i==="translateX"?e.left=t+"px":e.top=t+"px",r.doTransform=!0}const h=J(r.element,"class"),d=r.styles||{};o=r.div=r.div||X("div",h?{className:h}:void 0,{position:"absolute",left:(r.translateX||0)+"px",top:(r.translateY||0)+"px",display:r.display,opacity:r.opacity,visibility:r.visibility},o||k);const e=o.style;Y(r,{classSetter:function(t){return function(i){this.element.setAttribute("class",i),t.className=i}}(o),css:function(t){return c.css.call(r,t),["cursor","pointerEvents"].forEach(i=>{t[i]&&(e[i]=t[i])}),r},on:function(){return S[0].div&&c.on.apply({element:S[0].div,onEvents:r.onEvents},arguments),r},translateXSetter:p,translateYSetter:p}),r.addedSetters||g(r),r.css(d)})}}else o=k;return o.appendChild(y),c.added=!0,c.alignOnAdd&&c.htmlUpdateTransform(),c},c}}return R}),st(T,"Core/Axis/AxisDefaults.js",[],function(){var B;return function(P){P.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},P.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){const{numberFormatter:G}=this.axis.chart;return G(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},P.defaultLeftAxisOptions={title:{rotation:270}},P.defaultRightAxisOptions={title:{rotation:90}},P.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},P.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(B||(B={})),B}),st(T,"Core/Foundation.js",[T["Core/Utilities.js"]],function(B){const{addEvent:P,isFunction:G,objectEach:q,removeEvent:J}=B;var X;return function(Y){Y.registerEventOptions=function(O,N){O.eventOptions=O.eventOptions||{},q(N.events,function(R,x){O.eventOptions[x]!==R&&(O.eventOptions[x]&&(J(O,x,O.eventOptions[x]),delete O.eventOptions[x]),G(R)&&(O.eventOptions[x]=R,P(O,x,R,{order:0})))})}}(X||(X={})),X}),st(T,"Core/Axis/Tick.js",[T["Core/Templating.js"],T["Core/Globals.js"],T["Core/Utilities.js"]],function(B,P,G){const{deg2rad:q}=P,{clamp:J,correctFloat:X,defined:Y,destroyObjectProperties:O,extend:N,fireEvent:R,isNumber:x,merge:b,objectEach:E,pick:L}=G;class c{constructor(v,g,A,k,S){this.isNewLabel=this.isNew=!0,this.axis=v,this.pos=g,this.type=A||"",this.parameters=S||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,R(this,"init"),A||k||this.addLabel()}addLabel(){const v=this,g=v.axis;var A=g.options;const k=g.chart;var S=g.categories;const o=g.logarithmic,r=g.names,p=v.pos,h=L(v.options&&v.options.labels,A.labels);var d=g.tickPositions;const e=p===d[0],t=p===d[d.length-1],i=(!h.step||h.step===1)&&g.tickInterval===1;d=d.info;let l=v.label,u,_,a;S=this.parameters.category||(S?L(S[p],r[p],p):p),o&&x(S)&&(S=X(o.lin2log(S))),g.dateTime&&(d?(_=k.time.resolveDTLFormat(A.dateTimeLabelFormats[!A.grid&&d.higherRanks[p]||d.unitName]),u=_.main):x(S)&&(u=g.dateTime.getXDateFormat(S,A.dateTimeLabelFormats||{}))),v.isFirst=e,v.isLast=t;const w={axis:g,chart:k,dateTimeLabelFormat:u,isFirst:e,isLast:t,pos:p,tick:v,tickPositionInfo:d,value:S};R(this,"labelFormat",w);const H=rt=>h.formatter?h.formatter.call(rt,rt):h.format?(rt.text=g.defaultLabelFormatter.call(rt,rt),B.format(h.format,rt,k)):g.defaultLabelFormatter.call(rt,rt);A=H.call(w,w);const K=_&&_.list;v.shortenLabel=K?function(){for(a=0;a<K.length;a++)if(N(w,{dateTimeLabelFormat:K[a]}),l.attr({text:H.call(w,w)}),l.getBBox().width<g.getSlotWidth(v)-2*h.padding)return;l.attr({text:""})}:void 0,i&&g._addedPlotLB&&v.moveLabel(A,h),Y(l)||v.movedLabel?l&&l.textStr!==A&&!i&&(!l.textWidth||h.style.width||l.styles.width||l.css({width:null}),l.attr({text:A}),l.textPxLength=l.getBBox().width):(v.label=l=v.createLabel({x:0,y:0},A,h),v.rotation=0)}createLabel(v,g,A){const k=this.axis,S=k.chart;return(v=Y(g)&&A.enabled?S.renderer.text(g,v.x,v.y,A.useHTML).add(k.labelGroup):null)&&(S.styledMode||v.css(b(A.style)),v.textPxLength=v.getBBox().width),v}destroy(){O(this,this.axis)}getPosition(v,g,A,k){const S=this.axis,o=S.chart,r=k&&o.oldChartHeight||o.chartHeight;return v={x:v?X(S.translate(g+A,void 0,void 0,k)+S.transB):S.left+S.offset+(S.opposite?(k&&o.oldChartWidth||o.chartWidth)-S.right-S.left:0),y:v?r-S.bottom+S.offset-(S.opposite?S.height:0):X(r-S.translate(g+A,void 0,void 0,k)-S.transB)},v.y=J(v.y,-1e5,1e5),R(this,"afterGetPosition",{pos:v}),v}getLabelPosition(v,g,A,k,S,o,r,p){const h=this.axis,d=h.transA,e=h.isLinked&&h.linkedParent?h.linkedParent.reversed:h.reversed,t=h.staggerLines,i=h.tickRotCorr||{x:0,y:0},l=k||h.reserveSpaceDefault?0:-h.labelOffset*(h.labelAlign==="center"?.5:1),u=S.distance,_={};return A=h.side===0?A.rotation?-u:-A.getBBox().height:h.side===2?i.y+u:Math.cos(A.rotation*q)*(i.y-A.getBBox(!1,0).height/2),Y(S.y)&&(A=h.side===0&&h.horiz?S.y+A:S.y),v=v+L(S.x,[0,1,0,-1][h.side]*u)+l+i.x-(o&&k?o*d*(e?-1:1):0),g=g+A-(o&&!k?o*d*(e?1:-1):0),t&&(k=r/(p||1)%t,h.opposite&&(k=t-k-1),g+=h.labelOffset/t*k),_.x=v,_.y=Math.round(g),R(this,"afterGetLabelPosition",{pos:_,tickmarkOffset:o,index:r}),_}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(v,g,A,k,S,o){return o.crispLine([["M",v,g],["L",v+(S?0:-A),g+(S?A:0)]],k)}handleOverflow(v){const g=this.axis,A=g.options.labels,k=v.x;var S=g.chart.chartWidth,o=g.chart.spacing;const r=L(g.labelLeft,Math.min(g.pos,o[3]));o=L(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,S-o[1]));const p=this.label,h=this.rotation,d={left:0,center:.5,right:1}[g.labelAlign||p.attr("align")],e=p.getBBox().width,t=g.getSlotWidth(this),i={};let l=t,u=1,_;h||A.overflow!=="justify"?0>h&&k-d*e<r?_=Math.round(k/Math.cos(h*q)-r):0<h&&k+d*e>o&&(_=Math.round((S-k)/Math.cos(h*q))):(S=k+(1-d)*e,k-d*e<r?l=v.x+l*(1-d)-r:S>o&&(l=o-v.x+l*d,u=-1),l=Math.min(t,l),l<t&&g.labelAlign==="center"&&(v.x+=u*(t-l-d*(t-Math.min(e,l)))),(e>l||g.autoRotation&&(p.styles||{}).width)&&(_=l)),_&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(_)+"px",(A.style||{}).textOverflow||(i.textOverflow="ellipsis"),p.css(i)))}moveLabel(v,g){const A=this;var k=A.label;const S=A.axis;let o=!1;k&&k.textStr===v?(A.movedLabel=k,o=!0,delete A.label):E(S.ticks,function(r){o||r.isNew||r===A||!r.label||r.label.textStr!==v||(A.movedLabel=r.label,o=!0,r.labelPos=A.movedLabel.xy,delete r.label)}),o||!A.labelPos&&!k||(k=A.labelPos||k.xy,A.movedLabel=A.createLabel(k,v,g),A.movedLabel&&A.movedLabel.attr({opacity:0}))}render(v,g,A){var k=this.axis,S=k.horiz,o=this.pos,r=L(this.tickmarkOffset,k.tickmarkOffset);o=this.getPosition(S,o,r,g),r=o.x;const p=o.y;k=S&&r===k.pos+k.len||!S&&p===k.pos?-1:1,S=L(A,this.label&&this.label.newOpacity,1),A=L(A,1),this.isActive=!0,this.renderGridLine(g,A,k),this.renderMark(o,A,k),this.renderLabel(o,g,S,v),this.isNew=!1,R(this,"afterRender")}renderGridLine(v,g,A){const k=this.axis,S=k.options,o={},r=this.pos,p=this.type,h=L(this.tickmarkOffset,k.tickmarkOffset),d=k.chart.renderer;let e=this.gridLine,t=S.gridLineWidth,i=S.gridLineColor,l=S.gridLineDashStyle;this.type==="minor"&&(t=S.minorGridLineWidth,i=S.minorGridLineColor,l=S.minorGridLineDashStyle),e||(k.chart.styledMode||(o.stroke=i,o["stroke-width"]=t||0,o.dashstyle=l),p||(o.zIndex=1),v&&(g=0),this.gridLine=e=d.path().attr(o).addClass("highcharts-"+(p?p+"-":"")+"grid-line").add(k.gridGroup)),e&&(A=k.getPlotLinePath({value:r+h,lineWidth:e.strokeWidth()*A,force:"pass",old:v,acrossPanes:!1}))&&e[v||this.isNew?"attr":"animate"]({d:A,opacity:g})}renderMark(v,g,A){const k=this.axis;var S=k.options;const o=k.chart.renderer,r=this.type,p=k.tickSize(r?r+"Tick":"tick"),h=v.x;v=v.y;const d=L(S[r!=="minor"?"tickWidth":"minorTickWidth"],!r&&k.isXAxis?1:0);S=S[r!=="minor"?"tickColor":"minorTickColor"];let e=this.mark;const t=!e;p&&(k.opposite&&(p[0]=-p[0]),e||(this.mark=e=o.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||e.attr({stroke:S,"stroke-width":d})),e[t?"attr":"animate"]({d:this.getMarkPath(h,v,p[0],e.strokeWidth()*A,k.horiz,o),opacity:g}))}renderLabel(v,g,A,k){var S=this.axis;const o=S.horiz,r=S.options,p=this.label,h=r.labels,d=h.step;S=L(this.tickmarkOffset,S.tickmarkOffset);const e=v.x;v=v.y;let t=!0;p&&x(e)&&(p.xy=v=this.getLabelPosition(e,v,p,o,h,S,k,d),this.isFirst&&!this.isLast&&!r.showFirstLabel||this.isLast&&!this.isFirst&&!r.showLastLabel?t=!1:!o||h.step||h.rotation||g||A===0||this.handleOverflow(v),d&&k%d&&(t=!1),t&&x(v.y)?(v.opacity=A,p[this.isNewLabel?"attr":"animate"](v).show(!0),this.isNewLabel=!1):(p.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const v=this.label,g=this.axis;v&&!this.isNew&&(v.animate({opacity:0},void 0,v.destroy),delete this.label),g.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}return c}),st(T,"Core/Axis/Axis.js",[T["Core/Animation/AnimationUtilities.js"],T["Core/Axis/AxisDefaults.js"],T["Core/Color/Color.js"],T["Core/Defaults.js"],T["Core/Foundation.js"],T["Core/Globals.js"],T["Core/Axis/Tick.js"],T["Core/Utilities.js"]],function(B,P,G,q,J,X,Y,O){const{animObject:N}=B,{defaultOptions:R}=q,{registerEventOptions:x}=J,{deg2rad:b}=X,{arrayMax:E,arrayMin:L,clamp:c,correctFloat:y,defined:v,destroyObjectProperties:g,erase:A,error:k,extend:S,fireEvent:o,getClosestDistance:r,insertItem:p,isArray:h,isNumber:d,isString:e,merge:t,normalizeTickInterval:i,objectEach:l,pick:u,relativeLength:_,removeEvent:a,splat:w,syncTimeout:H}=O,K=(j,s)=>i(s,void 0,void 0,u(j.options.allowDecimals,.5>s||j.tickAmount!==void 0),!!j.tickAmount);class rt{constructor(s,M,z){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.index=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(s,M,z)}init(s,M,z=this.coll){const I=z==="xAxis";this.chart=s,this.horiz=this.isZAxis||(s.inverted?!I:I),this.isXAxis=I,this.coll=z,o(this,"init",{userOptions:M}),this.opposite=u(M.opposite,this.opposite),this.side=u(M.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(M),z=this.options;const V=z.labels,n=z.type;this.userOptions=M,this.minPixelPadding=0,this.reversed=u(z.reversed,this.reversed),this.visible=z.visible,this.zoomEnabled=z.zoomEnabled,this.hasNames=n==="category"||z.categories===!0,this.categories=z.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=v(z.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=z.minRange||z.maxZoom,this.range=z.range,this.offset=z.offset||0,this.min=this.max=null,M=u(z.crosshair,w(s.options.tooltip.crosshairs)[I?0:1]),this.crosshair=M===!0?{}:M,s.axes.indexOf(this)===-1&&(I?s.axes.splice(s.xAxis.length,0,this):s.axes.push(this),p(this,s[this.coll])),s.orderItems(this.coll),this.series=this.series||[],s.inverted&&!this.isZAxis&&I&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=d(V.rotation)?V.rotation:void 0,x(this,z),o(this,"afterInit")}setOptions(s){this.options=t(P.defaultXAxisOptions,this.coll==="yAxis"&&P.defaultYAxisOptions,[P.defaultTopAxisOptions,P.defaultRightAxisOptions,P.defaultBottomAxisOptions,P.defaultLeftAxisOptions][this.side],t(R[this.coll],s)),o(this,"afterSetOptions",{userOptions:s})}defaultLabelFormatter(s){var M=this.axis;({numberFormatter:s}=this.chart);const z=d(this.value)?this.value:NaN,I=M.chart.time,V=this.dateTimeLabelFormat;var n=R.lang;const f=n.numericSymbols;n=n.numericSymbolMagnitude||1e3;const m=M.logarithmic?Math.abs(z):M.tickInterval;let $=f&&f.length,F;if(M.categories)F=`${this.value}`;else if(V)F=I.dateFormat(V,z);else if($&&1e3<=m)for(;$--&&typeof F>"u";)M=Math.pow(n,$+1),m>=M&&10*z%M===0&&f[$]!==null&&z!==0&&(F=s(z/M,-1)+f[$]);return typeof F>"u"&&(F=1e4<=Math.abs(z)?s(z,-1):s(z,-1,void 0,"")),F}getSeriesExtremes(){const s=this,M=s.chart;let z;o(this,"getSeriesExtremes",null,function(){s.hasVisibleSeries=!1,s.dataMin=s.dataMax=s.threshold=null,s.softThreshold=!s.isXAxis,s.series.forEach(function(I){if(I.visible||!M.options.chart.ignoreHiddenSeries){var V=I.options;let n=V.threshold,f,m;s.hasVisibleSeries=!0,s.positiveValuesOnly&&0>=n&&(n=null),s.isXAxis?(V=I.xData)&&V.length&&(V=s.logarithmic?V.filter($=>0<$):V,z=I.getXExtremes(V),f=z.min,m=z.max,d(f)||f instanceof Date||(V=V.filter(d),z=I.getXExtremes(V),f=z.min,m=z.max),V.length&&(s.dataMin=Math.min(u(s.dataMin,f),f),s.dataMax=Math.max(u(s.dataMax,m),m))):(I=I.applyExtremes(),d(I.dataMin)&&(f=I.dataMin,s.dataMin=Math.min(u(s.dataMin,f),f)),d(I.dataMax)&&(m=I.dataMax,s.dataMax=Math.max(u(s.dataMax,m),m)),v(n)&&(s.threshold=n),(!V.softThreshold||s.positiveValuesOnly)&&(s.softThreshold=!1))}})}),o(this,"afterGetSeriesExtremes")}translate(s,M,z,I,V,n){const f=this.linkedParent||this,m=I&&f.old?f.old.min:f.min;if(!d(m))return NaN;const $=f.minPixelPadding;V=(f.isOrdinal||f.brokenAxis&&f.brokenAxis.hasBreaks||f.logarithmic&&V)&&f.lin2val;let F=1,W=0;return I=I&&f.old?f.old.transA:f.transA,I||(I=f.transA),z&&(F*=-1,W=f.len),f.reversed&&(F*=-1,W-=F*(f.sector||f.len)),M?(n=(s*F+W-$)/I+m,V&&(n=f.lin2val(n))):(V&&(s=f.val2lin(s)),s=F*(s-m)*I,n=(f.isRadial?s:y(s))+W+F*$+(d(n)?I*n:0)),n}toPixels(s,M){return this.translate(s,!1,!this.horiz,void 0,!0)+(M?0:this.pos)}toValue(s,M){return this.translate(s-(M?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(s){function M(U,et,dt){return lt!=="pass"&&(U<et||U>dt)&&(lt?U=c(U,et,dt):Q=!0),U}const z=this,I=z.chart,V=z.left,n=z.top,f=s.old,m=s.value,$=s.lineWidth,F=f&&I.oldChartHeight||I.chartHeight,W=f&&I.oldChartWidth||I.chartWidth,it=z.transB;let nt=s.translatedValue,lt=s.force,ht,pt,D,C,Q;return s={value:m,lineWidth:$,old:f,force:lt,acrossPanes:s.acrossPanes,translatedValue:nt},o(this,"getPlotLinePath",s,function(U){nt=u(nt,z.translate(m,void 0,void 0,f)),nt=c(nt,-1e5,1e5),ht=D=Math.round(nt+it),pt=C=Math.round(F-nt-it),d(nt)?z.horiz?(pt=n,C=F-z.bottom,ht=D=M(ht,V,V+z.width)):(ht=V,D=W-z.right,pt=C=M(pt,n,n+z.height)):(Q=!0,lt=!1),U.path=Q&&!lt?null:I.renderer.crispLine([["M",ht,pt],["L",D,C]],$||1)}),s.path}getLinearTickPositions(s,M,z){const I=y(Math.floor(M/s)*s);z=y(Math.ceil(z/s)*s);const V=[];let n,f;if(y(I+s)===I&&(f=20),this.single)return[M];for(M=I;M<=z&&(V.push(M),M=y(M+s,f),M!==n);)n=M;return V}getMinorTickInterval(){const s=this.options;return s.minorTicks===!0?u(s.minorTickInterval,"auto"):s.minorTicks===!1?null:s.minorTickInterval}getMinorTickPositions(){var s=this.options;const M=this.tickPositions,z=this.minorTickInterval;var I=this.pointRangePadding||0;const V=this.min-I;I=this.max+I;const n=I-V;let f=[];if(n&&n/z<this.len/3){const m=this.logarithmic;if(m)this.paddedTicks.forEach(function($,F,W){F&&f.push.apply(f,m.getLogTickPositions(z,W[F-1],W[F],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")f=f.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(z),V,I,s.startOfWeek));else for(s=V+(M[0]-V)%z;s<=I&&s!==f[0];s+=z)f.push(s)}return f.length!==0&&this.trimTicks(f),f}adjustForMinRange(){const s=this.options,M=this.logarithmic;let z=this.min;var I=this.max;let V,n;if(this.isXAxis&&typeof this.minRange>"u"&&!M)if(v(s.min)||v(s.max)||v(s.floor)||v(s.ceiling))this.minRange=null;else{var f=r(this.series.map(m=>{var $;return(m.xIncrement?($=m.xData)===null||$===void 0?void 0:$.slice(0,2):m.xData)||[]}))||0;this.minRange=Math.min(5*f,this.dataMax-this.dataMin)}I-z<this.minRange&&(f=this.dataMax-this.dataMin>=this.minRange,n=this.minRange,I=(n-I+z)/2,V=[z-I,u(s.min,z-I)],f&&(V[2]=M?M.log2lin(this.dataMin):this.dataMin),z=E(V),I=[z+n,u(s.max,z+n)],f&&(I[2]=M?M.log2lin(this.dataMax):this.dataMax),I=L(I),I-z<n&&(V[0]=I-n,V[1]=u(s.min,I-n),z=E(V))),this.min=z,this.max=I}getClosest(){let s,M;if(this.categories)M=1;else{const z=[];this.series.forEach(function(I){var V;const n=I.closestPointRange,f=I.visible||!I.chart.options.chart.ignoreHiddenSeries;((V=I.xData)===null||V===void 0?void 0:V.length)===1?z.push(I.xData[0]):!I.noSharedTooltip&&v(n)&&f&&(M=v(M)?Math.min(M,n):n)}),z.length&&(z.sort((I,V)=>I-V),s=r([z]))}return s&&M?Math.min(s,M):s||M}nameToX(s){const M=h(this.options.categories),z=M?this.categories:this.names;let I=s.options.x,V;return s.series.requireSorting=!1,v(I)||(I=this.options.uniqueNames&&z?M?z.indexOf(s.name):u(z.keys[s.name],-1):s.series.autoIncrement()),I===-1?!M&&z&&(V=z.length):V=I,typeof V<"u"?(this.names[V]=s.name,this.names.keys[s.name]=V):s.x&&(V=s.x),V}updateNames(){const s=this,M=this.names;0<M.length&&(Object.keys(M.keys).forEach(function(z){delete M.keys[z]}),M.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(z){z.xIncrement=null,(!z.points||z.isDirtyData)&&(s.max=Math.max(s.max,z.xData.length-1),z.processData(),z.generatePoints()),z.data.forEach(function(I,V){let n;I&&I.options&&typeof I.name<"u"&&(n=s.nameToX(I),typeof n<"u"&&n!==I.x&&(I.x=n,z.xData[V]=n))})}))}setAxisTranslation(){const s=this,M=s.max-s.min;var z=s.linkedParent;const I=!!s.categories,V=s.isXAxis;let n=s.axisPointRange||0,f,m=0,$=0,F=s.transA;(V||I||n)&&(f=s.getClosest(),z?(m=z.minPointOffset,$=z.pointRangePadding):s.series.forEach(function(W){const it=I?1:V?u(W.options.pointRange,f,0):s.axisPointRange||0,nt=W.options.pointPlacement;n=Math.max(n,it),(!s.single||I)&&(W=W.is("xrange")?!V:V,m=Math.max(m,W&&e(nt)?0:it/2),$=Math.max($,W&&nt==="on"?0:it))}),z=s.ordinal&&s.ordinal.slope&&f?s.ordinal.slope/f:1,s.minPointOffset=m*=z,s.pointRangePadding=$*=z,s.pointRange=Math.min(n,s.single&&I?1:M),V&&f&&(s.closestPointRange=f)),s.translationSlope=s.transA=F=s.staticScale||s.len/(M+$||1),s.transB=s.horiz?s.left:s.bottom,s.minPixelPadding=F*m,o(this,"afterSetAxisTranslation")}minFromRange(){return this.max-this.range}setTickInterval(s){var M=this.chart;const z=this.logarithmic,I=this.options,V=this.isXAxis,n=this.isLinked,f=I.tickPixelInterval,m=this.categories,$=this.softThreshold;let F=I.maxPadding,W=I.minPadding,it=d(I.tickInterval)&&0<=I.tickInterval?I.tickInterval:void 0,nt=d(this.threshold)?this.threshold:null,lt,ht,pt;if(this.dateTime||m||n||this.getTickAmount(),ht=u(this.userMin,I.min),pt=u(this.userMax,I.max),n){this.linkedParent=M[this.coll][I.linkedTo];var D=this.linkedParent.getExtremes();this.min=u(D.min,D.dataMin),this.max=u(D.max,D.dataMax),I.type!==this.linkedParent.options.type&&k(11,1,M)}else $&&v(nt)&&(this.dataMin>=nt?(D=nt,W=0):this.dataMax<=nt&&(lt=nt,F=0)),this.min=u(ht,D,this.dataMin),this.max=u(pt,lt,this.dataMax);if(z&&(this.positiveValuesOnly&&!s&&0>=Math.min(this.min,u(this.dataMin,this.min))&&k(10,1,M),this.min=y(z.log2lin(this.min),16),this.max=y(z.log2lin(this.max),16)),this.range&&v(this.max)&&(this.userMin=this.min=ht=Math.max(this.dataMin,this.minFromRange()),this.userMax=pt=this.max,this.range=null),o(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!d(this.userMin)&&d(I.softMin)&&I.softMin<this.min&&(this.min=ht=I.softMin),!d(this.userMax)&&d(I.softMax)&&I.softMax>this.max&&(this.max=pt=I.softMax),!(m||this.axisPointRange||this.stacking&&this.stacking.usePercentage||n)&&v(this.min)&&v(this.max)&&(M=this.max-this.min)&&(!v(ht)&&W&&(this.min-=M*W),!v(pt)&&F&&(this.max+=M*F)),!d(this.userMin)&&d(I.floor)&&(this.min=Math.max(this.min,I.floor)),!d(this.userMax)&&d(I.ceiling)&&(this.max=Math.min(this.max,I.ceiling)),$&&v(this.dataMin)&&(nt=nt||0,!v(ht)&&this.min<nt&&this.dataMin>=nt?this.min=this.options.minRange?Math.min(nt,this.max-this.minRange):nt:!v(pt)&&this.max>nt&&this.dataMax<=nt&&(this.max=this.options.minRange?Math.max(nt,this.min+this.minRange):nt)),d(this.min)&&d(this.max)&&!this.chart.polar&&this.min>this.max&&(v(this.options.min)?this.max=this.min:v(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||typeof this.min>"u"||typeof this.max>"u"?1:n&&this.linkedParent&&!it&&f===this.linkedParent.options.tickPixelInterval?it=this.linkedParent.tickInterval:u(it,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(this.max-this.min)*f/Math.max(this.len,f)),V&&!s){const C=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(Q){Q.forceCrop=Q.forceCropping&&Q.forceCropping(),Q.processData(C)}),o(this,"postProcessData",{hasExtremesChanged:C})}this.setAxisTranslation(),o(this,"initialAxisTranslation"),this.pointRange&&!it&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),s=u(I.minTickInterval,this.dateTime&&!this.series.some(C=>C.noSharedTooltip)?this.closestPointRange:0),!it&&this.tickInterval<s&&(this.tickInterval=s),this.dateTime||this.logarithmic||it||(this.tickInterval=K(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var s=this.options;const M=s.tickPositions,z=s.tickPositioner;var I=this.getMinorTickInterval(),V=this.hasVerticalPanning(),n=this.coll==="colorAxis";const f=(n||!V)&&s.startOnTick;V=(n||!V)&&s.endOnTick,n=[];let m;if(this.tickmarkOffset=this.categories&&s.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=I==="auto"&&this.tickInterval?this.tickInterval/s.minorTicksPerMajor:I,this.single=this.min===this.max&&v(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||s.allowDecimals!==!1),M)n=M.slice();else if(d(this.min)&&d(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,s.units),this.min,this.max,s.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(I=s=this.tickInterval;I<=2*s&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=K(this,I*=1.1);else n=[this.min,this.max],k(19,!1,this.chart);n.length>this.len&&(n=[n[0],n[n.length-1]],n[0]===n[1]&&(n.length=1)),z&&(this.tickPositions=n,(m=z.apply(this,[this.min,this.max]))&&(n=m))}this.tickPositions=n,this.paddedTicks=n.slice(0),this.trimTicks(n,f,V),!this.isLinked&&d(this.min)&&d(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some($=>$.is("heatmap")&&$.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),M||m||this.adjustTickAmount()),o(this,"afterSetTickPositions")}trimTicks(s,M,z){const I=s[0],V=s[s.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(o(this,"trimTicks"),!this.isLinked){if(M&&I!==-1/0)this.min=I;else for(;this.min-n>s[0];)s.shift();if(z)this.max=V;else for(;this.max+n<s[s.length-1];)s.pop();s.length===0&&v(I)&&!this.options.tickPositions&&s.push((V+I)/2)}}alignToOthers(){const s=this,M=[this],z=s.options,I=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,V=[];let n;if(s.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&z.alignTicks||I)&&z.startOnTick!==!1&&z.endOnTick!==!1&&!s.logarithmic){const f=$=>{const{horiz:F,options:W}=$;return[F?W.left:W.top,W.width,W.height,W.pane].join()},m=f(this);this.chart[this.coll].forEach(function($){const{series:F}=$;F.length&&F.some(W=>W.visible)&&$!==s&&f($)===m&&(n=!0,M.push($))})}if(n&&I){M.forEach(m=>{m=m.getThresholdAlignment(s),d(m)&&V.push(m)});const f=1<V.length?V.reduce((m,$)=>m+$,0)/V.length:void 0;M.forEach(m=>{m.thresholdAlignment=f})}return n}getThresholdAlignment(s){if((!d(this.dataMin)||this!==s&&this.series.some(M=>M.isDirty||M.isDirtyData))&&this.getSeriesExtremes(),d(this.threshold))return s=c((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(s=1-s),s}getTickAmount(){const s=this.options,M=s.tickPixelInterval;let z=s.tickAmount;!v(s.tickInterval)&&!z&&this.len<M&&!this.isRadial&&!this.logarithmic&&s.startOnTick&&s.endOnTick&&(z=2),!z&&this.alignToOthers()&&(z=Math.ceil(this.len/M)+1),4>z&&(this.finalTickAmt=z,z=5),this.tickAmount=z}adjustTickAmount(){const s=this,{finalTickAmt:M,max:z,min:I,options:V,tickPositions:n,tickAmount:f,thresholdAlignment:m}=s,$=n&&n.length;var F=u(s.threshold,s.softThreshold?0:null),W=s.tickInterval;let it;if(d(m)&&(it=.5>m?Math.ceil(m*(f-1)):Math.floor(m*(f-1)),V.reversed&&(it=f-1-it)),s.hasData()&&d(I)&&d(z)){const nt=()=>{s.transA*=($-1)/(f-1),s.min=V.startOnTick?n[0]:Math.min(I,n[0]),s.max=V.endOnTick?n[n.length-1]:Math.max(z,n[n.length-1])};if(d(it)&&d(s.threshold)){for(;n[it]!==F||n.length!==f||n[0]>I||n[n.length-1]<z;){for(n.length=0,n.push(s.threshold);n.length<f;)n[it]===void 0||n[it]>s.threshold?n.unshift(y(n[0]-W)):n.push(y(n[n.length-1]+W));if(W>8*s.tickInterval)break;W*=2}nt()}else if($<f){for(;n.length<f;)n.length%2||I===F?n.push(y(n[n.length-1]+W)):n.unshift(y(n[0]-W));nt()}if(v(M)){for(W=F=n.length;W--;)(M===3&&W%2===1||2>=M&&0<W&&W<F-1)&&n.splice(W,1);s.finalTickAmt=void 0}}}setScale(){let s=!1,M=!1;this.series.forEach(function(I){s=s||I.isDirtyData||I.isDirty,M=M||I.xAxis&&I.xAxis.isDirty||!1}),this.setAxisSize();const z=this.len!==(this.old&&this.old.len);z||s||M||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=z||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),s&&this.panningState&&(this.panningState.isDirty=!0),o(this,"afterSetScale")}setExtremes(s,M,z,I,V){const n=this,f=n.chart;z=u(z,!0),n.series.forEach(function(m){delete m.kdTree}),V=S(V,{min:s,max:M}),o(n,"setExtremes",V,function(){n.userMin=s,n.userMax=M,n.eventArgs=V,z&&f.redraw(I)})}zoom(s,M){const z=this,I=this.dataMin,V=this.dataMax,n=this.options,f=Math.min(I,u(n.min,I)),m=Math.max(V,u(n.max,V));return s={newMin:s,newMax:M},o(this,"zoom",s,function($){let F=$.newMin,W=$.newMax;(F!==z.min||W!==z.max)&&(z.allowZoomOutside||(v(I)&&(F<f&&(F=f),F>m&&(F=m)),v(V)&&(W<f&&(W=f),W>m&&(W=m))),z.displayBtn=typeof F<"u"||typeof W<"u",z.setExtremes(F,W,!1,void 0,{trigger:"zoom"})),$.zoomed=!0}),s.zoomed}setAxisSize(){const s=this.chart;var M=this.options;const z=M.offsets||[0,0,0,0],I=this.horiz,V=this.width=Math.round(_(u(M.width,s.plotWidth-z[3]+z[1]),s.plotWidth)),n=this.height=Math.round(_(u(M.height,s.plotHeight-z[0]+z[2]),s.plotHeight)),f=this.top=Math.round(_(u(M.top,s.plotTop+z[0]),s.plotHeight,s.plotTop));M=this.left=Math.round(_(u(M.left,s.plotLeft+z[3]),s.plotWidth,s.plotLeft)),this.bottom=s.chartHeight-n-f,this.right=s.chartWidth-V-M,this.len=Math.max(I?V:n,0),this.pos=I?M:f}getExtremes(){const s=this.logarithmic;return{min:s?y(s.lin2log(this.min)):this.min,max:s?y(s.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(s){var M=this.logarithmic;const z=M?M.lin2log(this.min):this.min;return M=M?M.lin2log(this.max):this.max,s===null||s===-1/0?s=z:s===1/0?s=M:z>s?s=z:M<s&&(s=M),this.translate(s,0,1,0,1)}autoLabelAlign(s){const M=(u(s,0)-90*this.side+720)%360;return s={align:"center"},o(this,"autoLabelAlign",s,function(z){15<M&&165>M?z.align="right":195<M&&345>M&&(z.align="left")}),s.align}tickSize(s){const M=this.options,z=u(M[s==="tick"?"tickWidth":"minorTickWidth"],s==="tick"&&this.isXAxis&&!this.categories?1:0);let I=M[s==="tick"?"tickLength":"minorTickLength"],V;return z&&I&&(M[s+"Position"]==="inside"&&(I=-I),V=[I,z]),s={tickSize:V},o(this,"afterTickSize",s),s.tickSize}labelMetrics(){const s=this.chart.renderer;var M=this.ticks;return M=M[Object.keys(M)[0]]||{},this.chart.renderer.fontMetrics(M.label||M.movedLabel||s.box)}unsquish(){const s=this.options.labels;var M=this.horiz;const z=this.tickInterval,I=this.len/(((this.categories?1:0)+this.max-this.min)/z),V=s.rotation,n=.75*this.labelMetrics().h,f=Math.max(this.max-this.min,0),m=function(nt){let lt=nt/(I||1);return lt=1<lt?Math.ceil(lt):1,lt*z>f&&nt!==1/0&&I!==1/0&&f&&(lt=Math.ceil(f/z)),y(lt*z)};let $=z,F,W=Number.MAX_VALUE,it;if(M){if(s.staggerLines||(d(V)?it=[V]:I<s.autoRotationLimit&&(it=s.autoRotation)),it){let nt;for(const lt of it)(lt===V||lt&&-90<=lt&&90>=lt)&&(M=m(Math.abs(n/Math.sin(b*lt))),nt=M+Math.abs(lt/360),nt<W&&(W=nt,F=lt,$=M))}}else $=m(n);return this.autoRotation=it,this.labelRotation=u(F,d(V)?V:0),s.step?z:$}getSlotWidth(s){const M=this.chart,z=this.horiz,I=this.options.labels,V=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=M.margin[3];if(s&&d(s.slotWidth))return s.slotWidth;if(z&&2>I.step)return I.rotation?0:(this.staggerLines||1)*this.len/V;if(!z){if(s=I.style.width,s!==void 0)return parseInt(String(s),10);if(n)return n-M.spacing[3]}return .33*M.chartWidth}renderUnsquish(){const s=this.chart,M=s.renderer,z=this.tickPositions,I=this.ticks,V=this.options.labels,n=V.style,f=this.horiz,m=this.getSlotWidth();var $=Math.max(1,Math.round(m-2*V.padding));const F={},W=this.labelMetrics(),it=n.textOverflow;let nt,lt,ht=0;if(e(V.rotation)||(F.rotation=V.rotation||0),z.forEach(function(D){D=I[D],D.movedLabel&&D.replaceMovedLabel(),D&&D.label&&D.label.textPxLength>ht&&(ht=D.label.textPxLength)}),this.maxLabelLength=ht,this.autoRotation)ht>$&&ht>W.h?F.rotation=this.labelRotation:this.labelRotation=0;else if(m&&(nt=$,!it))for(lt="clip",$=z.length;!f&&$--;){var pt=z[$];(pt=I[pt].label)&&(pt.styles&&pt.styles.textOverflow==="ellipsis"?pt.css({textOverflow:"clip"}):pt.textPxLength>m&&pt.css({width:m+"px"}),pt.getBBox().height>this.len/z.length-(W.h-W.f)&&(pt.specificTextOverflow="ellipsis"))}F.rotation&&(nt=ht>.5*s.chartHeight?.33*s.chartHeight:ht,it||(lt="ellipsis")),(this.labelAlign=V.align||this.autoLabelAlign(this.labelRotation))&&(F.align=this.labelAlign),z.forEach(function(D){const C=(D=I[D])&&D.label,Q=n.width,U={};C&&(C.attr(F),D.shortenLabel?D.shortenLabel():nt&&!Q&&n.whiteSpace!=="nowrap"&&(nt<C.textPxLength||C.element.tagName==="SPAN")?(U.width=nt+"px",it||(U.textOverflow=C.specificTextOverflow||lt),C.css(U)):C.styles&&C.styles.width&&!U.width&&!Q&&C.css({width:null}),delete C.specificTextOverflow,D.rotation=F.rotation)},this),this.tickRotCorr=M.rotCorr(W.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(s){return s.hasData()})||this.options.showEmpty&&v(this.min)&&v(this.max)}addTitle(s){const M=this.chart.renderer,z=this.horiz,I=this.opposite,V=this.options.title,n=this.chart.styledMode;let f;this.axisTitle||((f=V.textAlign)||(f=(z?{low:"left",middle:"center",high:"right"}:{low:I?"right":"left",middle:"center",high:I?"left":"right"})[V.align]),this.axisTitle=M.text(V.text||"",0,0,V.useHTML).attr({zIndex:7,rotation:V.rotation,align:f}).addClass("highcharts-axis-title"),n||this.axisTitle.css(t(V.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||V.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[s?"show":"hide"](s)}generateTick(s){const M=this.ticks;M[s]?M[s].addLabel():M[s]=new Y(this,s)}getOffset(){const s=this,{chart:M,horiz:z,options:I,side:V,ticks:n,tickPositions:f,coll:m,axisParent:$}=s,F=M.renderer,W=M.inverted&&!s.isZAxis?[1,0,3,2][V]:V;var it=s.hasData();const nt=I.title;var lt=I.labels;const ht=d(I.crossing);var pt=M.axisOffset;const D=M.clipOffset,C=[-1,1,1,-1][V],Q=I.className;let U,et=0,dt;var ct=0;let yt=0;if(s.showAxis=U=it||I.showEmpty,s.staggerLines=s.horiz&<.staggerLines||void 0,!s.axisGroup){const vt=(gt,xt,Ct)=>F.g(gt).attr({zIndex:Ct}).addClass(`highcharts-${m.toLowerCase()}${xt} `+(this.isRadial?`highcharts-radial-axis${xt} `:"")+(Q||"")).add($);s.gridGroup=vt("grid","-grid",I.gridZIndex),s.axisGroup=vt("axis","",I.zIndex),s.labelGroup=vt("axis-labels","-labels",lt.zIndex)}it||s.isLinked?(f.forEach(function(vt){s.generateTick(vt)}),s.renderUnsquish(),s.reserveSpaceDefault=V===0||V===2||{1:"left",3:"right"}[V]===s.labelAlign,u(lt.reserveSpace,ht?!1:null,s.labelAlign==="center"?!0:null,s.reserveSpaceDefault)&&f.forEach(function(vt){yt=Math.max(n[vt].getLabelSize(),yt)}),s.staggerLines&&(yt*=s.staggerLines),s.labelOffset=yt*(s.opposite?-1:1)):l(n,function(vt,gt){vt.destroy(),delete n[gt]}),nt&&nt.text&&nt.enabled!==!1&&(s.addTitle(U),U&&!ht&&nt.reserveSpace!==!1&&(s.titleOffset=et=s.axisTitle.getBBox()[z?"height":"width"],dt=nt.offset,ct=v(dt)?0:u(nt.margin,z?5:10))),s.renderLine(),s.offset=C*u(I.offset,pt[V]?pt[V]+(I.margin||0):0),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},it=V===0?-s.labelMetrics().h:V===2?s.tickRotCorr.y:0,ct=Math.abs(yt)+ct,yt&&(ct=ct-it+C*(z?u(lt.y,s.tickRotCorr.y+C*lt.distance):u(lt.x,C*lt.distance))),s.axisTitleMargin=u(dt,ct),s.getMaxLabelDimensions&&(s.maxLabelDimensions=s.getMaxLabelDimensions(n,f)),m!=="colorAxis"&&(lt=this.tickSize("tick"),pt[V]=Math.max(pt[V],(s.axisTitleMargin||0)+et+C*s.offset,ct,f&&f.length&<?lt[0]+C*s.offset:0),pt=!s.axisLine||I.offset?0:2*Math.floor(s.axisLine.strokeWidth()/2),D[W]=Math.max(D[W],pt)),o(this,"afterGetOffset")}getLinePath(s){const M=this.chart,z=this.opposite;var I=this.offset;const V=this.horiz,n=this.left+(z?this.width:0)+I;return I=M.chartHeight-this.bottom-(z?this.height:0)+I,z&&(s*=-1),M.renderer.crispLine([["M",V?this.left:n,V?I:this.top],["L",V?M.chartWidth-this.right:n,V?I:M.chartHeight-this.bottom]],s)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(s){var M=this.horiz,z=this.left;const I=this.top;var V=this.len;const n=this.options.title,f=M?z:I,m=this.opposite,$=this.offset,F=n.x,W=n.y,it=this.chart.renderer.fontMetrics(s);return s=s?Math.max(s.getBBox(!1,0).height-it.h-1,0):0,V={low:f+(M?0:V),middle:f+V/2,high:f+(M?V:0)}[n.align],z=(M?I+this.height:z)+(M?1:-1)*(m?-1:1)*(this.axisTitleMargin||0)+[-s,s,it.f,-s][this.side],M={x:M?V+F:z+(m?this.width:0)+$+F,y:M?z+W-(m?this.height:0)+$:V+W},o(this,"afterGetTitlePosition",{titlePosition:M}),M}renderMinorTick(s,M){const z=this.minorTicks;z[s]||(z[s]=new Y(this,s,"minor")),M&&z[s].isNew&&z[s].render(null,!0),z[s].render(null,!1,1)}renderTick(s,M,z){const I=this.ticks;(!this.isLinked||s>=this.min&&s<=this.max||this.grid&&this.grid.isColumn)&&(I[s]||(I[s]=new Y(this,s)),z&&I[s].isNew&&I[s].render(M,!0,-1),I[s].render(M))}render(){const s=this,M=s.chart,z=s.logarithmic,I=s.options,V=s.isLinked,n=s.tickPositions,f=s.axisTitle,m=s.ticks,$=s.minorTicks,F=s.alternateBands,W=I.stackLabels,it=I.alternateGridColor;var nt=I.crossing;const lt=s.tickmarkOffset,ht=s.axisLine,pt=s.showAxis,D=N(M.renderer.globalAnimation);let C,Q;if(s.labelEdge.length=0,s.overlap=!1,[m,$,F].forEach(function(U){l(U,function(et){et.isActive=!1})}),d(nt)){const U=this.isXAxis?M.yAxis[0]:M.xAxis[0],et=[1,-1,-1,1][this.side];U&&(nt=U.toPixels(nt,!0),s.horiz&&(nt=U.len-nt),s.offset=et*nt)}if(s.hasData()||V){const U=s.chart.hasRendered&&s.old&&d(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(et){s.renderMinorTick(et,U)}),n.length&&(n.forEach(function(et,dt){s.renderTick(et,dt,U)}),lt&&(s.min===0||s.single)&&(m[-1]||(m[-1]=new Y(s,-1,null,!0)),m[-1].render(-1))),it&&n.forEach(function(et,dt){Q=typeof n[dt+1]<"u"?n[dt+1]+lt:s.max-lt,dt%2===0&&et<s.max&&Q<=s.max+(M.polar?-lt:lt)&&(F[et]||(F[et]=new X.PlotLineOrBand(s)),C=et+lt,F[et].options={from:z?z.lin2log(C):C,to:z?z.lin2log(Q):Q,color:it,className:"highcharts-alternate-grid"},F[et].render(),F[et].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(function(et){s.addPlotBandOrLine(et)}))}[m,$,F].forEach(function(U){const et=[],dt=D.duration;l(U,function(ct,yt){ct.isActive||(ct.render(yt,!1,0),ct.isActive=!1,et.push(yt))}),H(function(){let ct=et.length;for(;ct--;)U[et[ct]]&&!U[et[ct]].isActive&&(U[et[ct]].destroy(),delete U[et[ct]])},U!==F&&M.hasRendered&&dt?dt:0)}),ht&&(ht[ht.isPlaced?"animate":"attr"]({d:this.getLinePath(ht.strokeWidth())}),ht.isPlaced=!0,ht[pt?"show":"hide"](pt)),f&&pt&&(f[f.isNew?"attr":"animate"](s.getTitlePosition(f)),f.isNew=!1),W&&W.enabled&&s.stacking&&s.stacking.renderStackTotals(),s.old={len:s.len,max:s.max,min:s.min,transA:s.transA,userMax:s.userMax,userMin:s.userMin},s.isDirty=!1,o(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(s){s.render()})),this.series.forEach(function(s){s.isDirty=!0})}getKeepProps(){return this.keepProps||rt.keepProps}destroy(s){const M=this,z=M.plotLinesAndBands,I=this.eventOptions;if(o(this,"destroy",{keepEvents:s}),s||a(M),[M.ticks,M.minorTicks,M.alternateBands].forEach(function(V){g(V)}),z)for(s=z.length;s--;)z[s].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(V){M[V]&&(M[V]=M[V].destroy())});for(const V in M.plotLinesAndBandsGroups)M.plotLinesAndBandsGroups[V]=M.plotLinesAndBandsGroups[V].destroy();l(M,function(V,n){M.getKeepProps().indexOf(n)===-1&&delete M[n]}),this.eventOptions=I}drawCrosshair(s,M){const z=this.crosshair;var I=u(z&&z.snap,!0);const V=this.chart;let n,f=this.cross;if(o(this,"drawCrosshair",{e:s,point:M}),s||(s=this.cross&&this.cross.e),z&&(v(M)||!I)!==!1){if(I?v(M)&&(n=u(this.coll!=="colorAxis"?M.crosshairPos:null,this.isXAxis?M.plotX:this.len-M.plotY)):n=s&&(this.horiz?s.chartX-this.pos:this.len-s.chartY+this.pos),v(n)){var m={value:M&&(this.isXAxis?M.x:u(M.stackY,M.y)),translatedValue:n};V.polar&&S(m,{isCrosshair:!0,chartX:s&&s.chartX,chartY:s&&s.chartY,point:M}),m=this.getPlotLinePath(m)||null}if(!v(m)){this.hideCrosshair();return}I=this.categories&&!this.isRadial,f||(this.cross=f=V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(I?"category ":"thin ")+(z.className||"")).attr({zIndex:u(z.zIndex,2)}).add(),V.styledMode||(f.attr({stroke:z.color||(I?G.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":u(z.width,1)}).css({"pointer-events":"none"}),z.dashStyle&&f.attr({dashstyle:z.dashStyle}))),f.show().attr({d:m}),I&&!z.width&&f.attr({"stroke-width":this.transA}),this.cross.e=s}else this.hideCrosshair();o(this,"afterDrawCrosshair",{e:s,point:M})}hideCrosshair(){this.cross&&this.cross.hide(),o(this,"afterHideCrosshair")}hasVerticalPanning(){const s=this.chart.options.chart.panning;return!!(s&&s.enabled&&/y/.test(s.type))}update(s,M){const z=this.chart;s=t(this.userOptions,s),this.destroy(!0),this.init(z,s),z.isDirtyBox=!0,u(M,!0)&&z.redraw()}remove(s){const M=this.chart,z=this.coll,I=this.series;let V=I.length;for(;V--;)I[V]&&I[V].remove(!1);A(M.axes,this),A(M[z]||[],this),M.orderItems(z),this.destroy(),M.isDirtyBox=!0,u(s,!0)&&M.redraw()}setTitle(s,M){this.update({title:s},M)}setCategories(s,M){this.update({categories:s},M)}}return rt.defaultOptions=P.defaultXAxisOptions,rt.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),rt}),st(T,"Core/Axis/DateTimeAxis.js",[T["Core/Utilities.js"]],function(B){const{addEvent:P,getMagnitude:G,normalizeTickInterval:q,timeUnits:J}=B;var X;return function(Y){function O(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function N(b){b.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new x(this))}const R=[];Y.compose=function(b){return B.pushUnique(R,b)&&(b.keepProps.push("dateTime"),b.prototype.getTimeTicks=O,P(b,"init",N)),b};class x{constructor(E){this.axis=E}normalizeTimeTickInterval(E,L){const c=L||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];L=c[c.length-1];let y=J[L[0]],v=L[1],g;for(g=0;g<c.length&&(L=c[g],y=J[L[0]],v=L[1],!(c[g+1]&&E<=(y*v[v.length-1]+J[c[g+1][0]])/2));g++);return y===J.year&&E<5*y&&(v=[1,2,5]),E=q(E/y,v,L[0]==="year"?Math.max(G(E/y),1):1),{unitRange:y,count:E,unitName:L[0]}}getXDateFormat(E,L){const{axis:c}=this,y=c.chart.time;return c.closestPointRange?y.getDateFormat(c.closestPointRange,E,c.options.startOfWeek,L)||y.resolveDTLFormat(L.year).main:y.resolveDTLFormat(L.day).main}}Y.Additions=x}(X||(X={})),X}),st(T,"Core/Axis/LogarithmicAxis.js",[T["Core/Utilities.js"]],function(B){const{addEvent:P,normalizeTickInterval:G,pick:q}=B;var J;return function(X){function Y(x){let b=this.logarithmic;x.userOptions.type!=="logarithmic"?this.logarithmic=void 0:b||(this.logarithmic=new R(this))}function O(){const x=this.logarithmic;x&&(this.lin2val=function(b){return x.lin2log(b)},this.val2lin=function(b){return x.log2lin(b)})}const N=[];X.compose=function(x){return B.pushUnique(N,x)&&(x.keepProps.push("logarithmic"),P(x,"init",Y),P(x,"afterInit",O)),x};class R{constructor(b){this.axis=b}getLogTickPositions(b,E,L,c){const y=this.axis;var v=y.len,g=y.options;let A=[];if(c||(this.minorAutoInterval=void 0),.5<=b)b=Math.round(b),A=y.getLinearTickPositions(b,E,L);else if(.08<=b){g=Math.floor(E);let k,S,o,r,p;for(v=.3<b?[1,2,4]:.15<b?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];g<L+1&&!p;g++)for(S=v.length,k=0;k<S&&!p;k++)o=this.log2lin(this.lin2log(g)*v[k]),o>E&&(!c||r<=L)&&typeof r<"u"&&A.push(r),r>L&&(p=!0),r=o}else E=this.lin2log(E),L=this.lin2log(L),b=c?y.getMinorTickInterval():g.tickInterval,b=q(b==="auto"?null:b,this.minorAutoInterval,g.tickPixelInterval/(c?5:1)*(L-E)/((c?v/y.tickPositions.length:v)||1)),b=G(b),A=y.getLinearTickPositions(b,E,L).map(this.log2lin),c||(this.minorAutoInterval=b/5);return c||(y.tickInterval=b),A}lin2log(b){return Math.pow(10,b)}log2lin(b){return Math.log(b)/Math.LN10}}X.Additions=R}(J||(J={})),J}),st(T,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[T["Core/Utilities.js"]],function(B){const{erase:P,extend:G,isNumber:q}=B;var J;return function(X){function Y(y){return this.addPlotBandOrLine(y,"plotBands")}function O(y,v){const g=this.userOptions;let A=new c(this,y);if(this.visible&&(A=A.render()),A){if(this._addedPlotLB||(this._addedPlotLB=!0,(g.plotLines||[]).concat(g.plotBands||[]).forEach(k=>{this.addPlotBandOrLine(k)})),v){const k=g[v]||[];k.push(y),g[v]=k}this.plotLinesAndBands.push(A)}return A}function N(y){return this.addPlotBandOrLine(y,"plotLines")}function R(y,v,g=this.options){const A=this.getPlotLinePath({value:v,force:!0,acrossPanes:g.acrossPanes}),k=[],S=this.horiz;v=!q(this.min)||!q(this.max)||y<this.min&&v<this.min||y>this.max&&v>this.max,y=this.getPlotLinePath({value:y,force:!0,acrossPanes:g.acrossPanes}),g=1;let o;if(y&&A)for(v&&(o=y.toString()===A.toString(),g=0),v=0;v<y.length;v+=2){const r=y[v],p=y[v+1],h=A[v],d=A[v+1];r[0]!=="M"&&r[0]!=="L"||p[0]!=="M"&&p[0]!=="L"||h[0]!=="M"&&h[0]!=="L"||d[0]!=="M"&&d[0]!=="L"||(S&&h[1]===r[1]?(h[1]+=g,d[1]+=g):S||h[2]!==r[2]||(h[2]+=g,d[2]+=g),k.push(["M",r[1],r[2]],["L",p[1],p[2]],["L",d[1],d[2]],["L",h[1],h[2]],["Z"])),k.isFlat=o}return k}function x(y){this.removePlotBandOrLine(y)}function b(y){const v=this.plotLinesAndBands,g=this.options,A=this.userOptions;if(v){let k=v.length;for(;k--;)v[k].id===y&&v[k].destroy();[g.plotLines||[],A.plotLines||[],g.plotBands||[],A.plotBands||[]].forEach(function(S){for(k=S.length;k--;)(S[k]||{}).id===y&&P(S,S[k])})}}function E(y){this.removePlotBandOrLine(y)}const L=[];let c;X.compose=function(y,v){return c||(c=y),B.pushUnique(L,v)&&G(v.prototype,{addPlotBand:Y,addPlotLine:N,addPlotBandOrLine:O,getPlotBandPath:R,removePlotBand:x,removePlotLine:E,removePlotBandOrLine:b}),v}}(J||(J={})),J}),st(T,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[T["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],T["Core/Utilities.js"]],function(B,P){const{arrayMax:G,arrayMin:q,defined:J,destroyObjectProperties:X,erase:Y,fireEvent:O,merge:N,objectEach:R,pick:x}=P;class b{static compose(L){return B.compose(b,L)}constructor(L,c){this.axis=L,c&&(this.options=c,this.id=c.id)}render(){O(this,"render");const L=this,c=L.axis,y=c.horiz;var v=c.logarithmic;const g=L.options,A=g.color,k=x(g.zIndex,0),S=g.events,o={},r=c.chart.renderer;let p=g.label,h=L.label,d=g.to,e=g.from,t=g.value,i=L.svgElem;var l=[];const u=J(e)&&J(d);l=J(t);const _=!i,a={class:"highcharts-plot-"+(u?"band ":"line ")+(g.className||"")};let w=u?"bands":"lines";if(v&&(e=v.log2lin(e),d=v.log2lin(d),t=v.log2lin(t)),c.chart.styledMode||(l?(a.stroke=A||"#999999",a["stroke-width"]=x(g.width,1),g.dashStyle&&(a.dashstyle=g.dashStyle)):u&&(a.fill=A||"#e6e9ff",g.borderWidth&&(a.stroke=g.borderColor,a["stroke-width"]=g.borderWidth))),o.zIndex=k,w+="-"+k,(v=c.plotLinesAndBandsGroups[w])||(c.plotLinesAndBandsGroups[w]=v=r.g("plot-"+w).attr(o).add()),_&&(L.svgElem=i=r.path().attr(a).add(v)),l)l=c.getPlotLinePath({value:t,lineWidth:i.strokeWidth(),acrossPanes:g.acrossPanes});else if(u)l=c.getPlotBandPath(e,d,g);else return;return!L.eventsAdded&&S&&(R(S,function(H,K){i.on(K,function(rt){S[K].apply(L,[rt])})}),L.eventsAdded=!0),(_||!i.d)&&l&&l.length?i.attr({d:l}):i&&(l?(i.show(),i.animate({d:l})):i.d&&(i.hide(),h&&(L.label=h=h.destroy()))),p&&(J(p.text)||J(p.formatter))&&l&&l.length&&0<c.width&&0<c.height&&!l.isFlat?(p=N({align:y&&u&&"center",x:y?!u&&4:10,verticalAlign:!y&&u&&"middle",y:y?u?16:10:u?6:-4,rotation:y&&!u&&90},p),this.renderLabel(p,l,u,k)):h&&h.hide(),L}renderLabel(L,c,y,v){const g=this.axis;var A=g.chart.renderer;let k=this.label;k||(this.label=k=A.text(this.getLabelText(L),0,0,L.useHTML).attr({align:L.textAlign||L.align,rotation:L.rotation,class:"highcharts-plot-"+(y?"band":"line")+"-label "+(L.className||""),zIndex:v}).add(),g.chart.styledMode||k.css(N({fontSize:"0.8em",textOverflow:"ellipsis"},L.style))),v=c.xBounds||[c[0][1],c[1][1],y?c[2][1]:c[0][1]],c=c.yBounds||[c[0][2],c[1][2],y?c[2][2]:c[0][2]],y=q(v),A=q(c),k.align(L,!1,{x:y,y:A,width:G(v)-y,height:G(c)-A}),k.alignValue&&k.alignValue!=="left"||(L=L.clip?g.width:g.chart.chartWidth,k.css({width:(k.rotation===90?g.height-(k.alignAttr.y-g.top):L-(k.alignAttr.x-g.left))+"px"})),k.show(!0)}getLabelText(L){return J(L.formatter)?L.formatter.call(this):L.text}destroy(){Y(this.axis.plotLinesAndBands,this),delete this.axis,X(this)}}return b}),st(T,"Core/Tooltip.js",[T["Core/Templating.js"],T["Core/Globals.js"],T["Core/Renderer/RendererUtilities.js"],T["Core/Renderer/RendererRegistry.js"],T["Core/Utilities.js"]],function(B,P,G,q,J){const{format:X}=B,{doc:Y,isSafari:O}=P,{distribute:N}=G,{addEvent:R,clamp:x,css:b,discardElement:E,extend:L,fireEvent:c,isArray:y,isNumber:v,isString:g,merge:A,pick:k,splat:S,syncTimeout:o}=J;class r{constructor(h,d){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=h,this.init(h,d)}bodyFormatter(h){return h.map(function(d){const e=d.series.tooltipOptions;return(e[(d.point.formatPrefix||"point")+"Formatter"]||d.point.tooltipFormatter).call(d.point,e[(d.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(h){this.chart.series.forEach(function(d){const e=d&&d.tt;e&&(!e.isActive||h?d.tt=e.destroy():e.isActive=!1)})}defaultFormatter(h){const d=this.points||S(this);let e;return e=[h.tooltipFooterHeaderFormatter(d[0])],e=e.concat(h.bodyFormatter(d)),e.push(h.tooltipFooterHeaderFormatter(d[0],!0)),e}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),E(this.container)),J.clearTimeout(this.hideTimer),J.clearTimeout(this.tooltipTimeout)}getAnchor(h,d){var e=this.chart;const t=e.pointer,i=e.inverted,l=e.plotTop;if(e=e.plotLeft,h=S(h),h[0].series&&h[0].series.yAxis&&!h[0].series.yAxis.options.reversedStacks&&(h=h.slice().reverse()),this.followPointer&&d)typeof d.chartX>"u"&&(d=t.normalize(d)),h=[d.chartX-e,d.chartY-l];else if(h[0].tooltipPos)h=h[0].tooltipPos;else{let u=0,_=0;h.forEach(function(a){(a=a.pos(!0))&&(u+=a[0],_+=a[1])}),u/=h.length,_/=h.length,this.shared&&1<h.length&&d&&(i?u=d.chartX:_=d.chartY),h=[u-e,_-l]}return h.map(Math.round)}getClassName(h,d,e){const t=h.series,i=t.options;return[this.options.className,"highcharts-label",e&&"highcharts-tooltip-header",d?"highcharts-tooltip-box":"highcharts-tooltip",!e&&"highcharts-color-"+k(h.colorIndex,t.colorIndex),i&&i.className].filter(g).join(" ")}getLabel(){const h=this,d=this.chart.styledMode,e=this.options,t=this.split&&this.allowShared,i=e.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none");let l,u=this.chart.renderer;if(this.label){var _=!this.label.hasClass("highcharts-label");(!t&&_||t&&!_)&&this.destroy()}if(!this.label){if(this.outside){_=this.chart.options.chart.style;const a=q.getRendererType();this.container=l=P.doc.createElement("div"),l.className="highcharts-tooltip-container",b(l,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(_&&_.zIndex||0)+3)}),P.doc.body.appendChild(l),this.renderer=u=new a(l,0,0,_,void 0,void 0,u.styledMode)}if(t?this.label=u.g("tooltip"):(this.label=u.label("",0,0,e.shape,void 0,void 0,e.useHTML,void 0,"tooltip").attr({padding:e.padding,r:e.borderRadius}),d||this.label.attr({fill:e.backgroundColor,"stroke-width":e.borderWidth||0}).css(e.style).css({pointerEvents:i})),h.outside){const a=this.label,{xSetter:w,ySetter:H}=a;a.xSetter=function(K){w.call(a,h.distance),l.style.left=K+"px"},a.ySetter=function(K){H.call(a,h.distance),l.style.top=K+"px"}}this.label.attr({zIndex:8}).shadow(e.shadow).add()}return this.label}getPlayingField(){const{body:h,documentElement:d}=Y,{chart:e,distance:t,outside:i}=this;return{width:i?Math.max(h.scrollWidth,d.scrollWidth,h.offsetWidth,d.offsetWidth,d.clientWidth)-2*t:e.chartWidth,height:i?Math.max(h.scrollHeight,d.scrollHeight,h.offsetHeight,d.offsetHeight,d.clientHeight):e.chartHeight}}getPosition(h,d,e){const t=this.chart,i=this.distance,l={},u=t.inverted&&e.h||0,_=this.outside;var a=this.getPlayingField();const w=a.width,H=a.height,K=t.pointer.getChartPosition();a=f=>{const m=f==="x";return[f,m?w:H,m?h:d].concat(_?[m?h*K.scaleX:d*K.scaleY,m?K.left-i+(e.plotX+t.plotLeft)*K.scaleX:K.top-i+(e.plotY+t.plotTop)*K.scaleY,0,m?w:H]:[m?h:d,m?e.plotX+t.plotLeft:e.plotY+t.plotTop,m?t.plotLeft:t.plotTop,m?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])};let rt=a("y"),j=a("x"),s;a=!!e.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(a=!a);const M=!this.followPointer&&k(e.ttBelow,!t.inverted===a),z=function(f,m,$,F,W,it,nt){const lt=_?f==="y"?i*K.scaleY:i*K.scaleX:i,ht=($-F)/2,pt=F<W-i,D=W+i+F<m,C=W-lt-$+ht;if(W=W+lt-ht,M&&D)l[f]=W;else if(!M&&pt)l[f]=C;else if(pt)l[f]=Math.min(nt-F,0>C-u?C:C-u);else if(D)l[f]=Math.max(it,W+u+$>m?W:W+u);else return!1},I=function(f,m,$,F,W){let it;return W<i||W>m-i?it=!1:l[f]=W<$/2?1:W>m-F/2?m-F-2:W-$/2,it},V=function(f){const m=rt;rt=j,j=m,s=f},n=function(){z.apply(0,rt)!==!1?I.apply(0,j)!==!1||s||(V(!0),n()):s?l.x=l.y=0:(V(!0),n())};return(t.inverted||1<this.len)&&V(),n(),l}hide(h){const d=this;J.clearTimeout(this.hideTimer),h=k(h,this.options.hideDelay),this.isHidden||(this.hideTimer=o(function(){d.getLabel().fadeOut(h&&void 0),d.isHidden=!0},h))}init(h,d){this.chart=h,this.options=d,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=d.split&&!h.inverted&&!h.polar,this.shared=d.shared||this.split,this.outside=k(d.outside,!(!h.scrollablePixelsX&&!h.scrollablePixelsY))}shouldStickOnContact(h){return!(this.followPointer||!this.options.stickOnContact||h&&!this.chart.pointer.inClass(h.target,"highcharts-tooltip"))}move(h,d,e,t){const i=this,l=i.now,u=i.options.animation!==!1&&!i.isHidden&&(1<Math.abs(h-l.x)||1<Math.abs(d-l.y)),_=i.followPointer||1<i.len;L(l,{x:u?(2*l.x+h)/3:h,y:u?(l.y+d)/2:d,anchorX:_?void 0:u?(2*l.anchorX+e)/3:e,anchorY:_?void 0:u?(l.anchorY+t)/2:t}),i.getLabel().attr(l),i.drawTracker(),u&&(J.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){i&&i.move(h,d,e,t)},32))}refresh(h,d){const e=this.chart,t=this.options,i=e.pointer,l=S(h),u=l[0],_=[];var a=t.format,w=t.formatter||this.defaultFormatter;const H=this.shared,K=e.styledMode;let rt={};if(t.enabled&&u.series){J.clearTimeout(this.hideTimer),this.allowShared=!(!y(h)&&h.series&&h.series.noSharedTooltip),this.followPointer=!this.split&&u.series.tooltipOptions.followPointer,h=this.getAnchor(h,d);var j=h[0],s=h[1];if(H&&this.allowShared?(i.applyInactiveState(l),l.forEach(function(M){M.setState("hover"),_.push(M.getLabelConfig())}),rt=u.getLabelConfig(),rt.points=_):rt=u.getLabelConfig(),this.len=_.length,a=g(a)?X(a,rt,e):w.call(rt,this),w=u.series,this.distance=k(w.tooltipOptions.distance,16),a===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(a,l);else{let M=j,z=s;if(d&&i.isDirectTouch&&(M=d.chartX-e.plotLeft,z=d.chartY-e.plotTop),e.polar||w.options.clip===!1||l.some(I=>i.isDirectTouch||I.series.shouldShowTooltip(M,z)))d=this.getLabel(),t.style.width&&!K||d.css({width:(this.outside?this.getPlayingField():e.spacingBox).width+"px"}),d.attr({text:a&&a.join?a.join(""):a}),d.addClass(this.getClassName(u),!0),K||d.attr({stroke:t.borderColor||u.color||w.color||"#666666"}),this.updatePosition({plotX:j,plotY:s,negative:u.negative,ttBelow:u.ttBelow,h:h[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}c(this,"refresh")}}renderSplit(h,d){function e(U,et,dt,ct,yt=!0){return dt?(et=$?0:lt,U=x(U-ct/2,n.left,n.right-ct-(t.outside?F:0))):(et-=it,U=yt?U-ct-z:U+z,U=x(U,yt?U:n.left,n.right)),{x:U,y:et}}const t=this,{chart:i,chart:{chartWidth:l,chartHeight:u,plotHeight:_,plotLeft:a,plotTop:w,pointer:H,scrollablePixelsY:K=0,scrollablePixelsX:rt,scrollingContainer:{scrollLeft:j,scrollTop:s}={scrollLeft:0,scrollTop:0},styledMode:M},distance:z,options:I,options:{positioner:V}}=t,n=t.outside&&typeof rt!="number"?Y.documentElement.getBoundingClientRect():{left:j,right:j+l,top:s,bottom:s+u},f=t.getLabel(),m=this.renderer||i.renderer,$=!(!i.xAxis[0]||!i.xAxis[0].opposite),{left:F,top:W}=H.getChartPosition();let it=w+s,nt=0,lt=_-K;g(h)&&(h=[!1,h]),h=h.slice(0,d.length+1).reduce(function(U,et,dt){if(et!==!1&&et!==""){dt=d[dt-1]||{isHeader:!0,plotX:d[0].plotX,plotY:_,series:{}};const Ct=dt.isHeader;var ct=Ct?t:dt.series,yt;{var vt=dt;et=et.toString();var gt=ct.tt;const{isHeader:Mt,series:Et}=vt;gt||(gt={padding:I.padding,r:I.borderRadius},M||(gt.fill=I.backgroundColor,gt["stroke-width"]=(yt=I.borderWidth)!==null&&yt!==void 0?yt:1),gt=m.label("",0,0,I[Mt?"headerShape":"shape"],void 0,void 0,I.useHTML).addClass(t.getClassName(vt,!0,Mt)).attr(gt).add(f)),gt.isActive=!0,gt.attr({text:et}),M||gt.css(I.style).attr({stroke:I.borderColor||vt.color||Et.color||"#333333"}),yt=gt}yt=ct.tt=yt,vt=yt.getBBox(),ct=vt.width+yt.strokeWidth(),Ct&&(nt=vt.height,lt+=nt,$&&(it-=nt));{const{isHeader:Mt,plotX:Et=0,plotY:_t=0,series:Rt}=dt;if(Mt){et=a+Et;var xt=w+_/2}else{const{xAxis:Ft,yAxis:Lt}=Rt;et=Ft.pos+x(Et,-z,Ft.len+z),Rt.shouldShowTooltip(0,Lt.pos-w+_t,{ignoreX:!0})&&(xt=Lt.pos+_t)}et=x(et,n.left-z,n.right+z),xt={anchorX:et,anchorY:xt}}const{anchorX:bt,anchorY:St}=xt;typeof St=="number"?(xt=vt.height+1,vt=V?V.call(t,ct,xt,dt):e(bt,St,Ct,ct),U.push({align:V?0:void 0,anchorX:bt,anchorY:St,boxWidth:ct,point:dt,rank:k(vt.rank,Ct?1:0),size:xt,target:vt.y,tt:yt,x:vt.x})):yt.isActive=!1}return U},[]),!V&&h.some(U=>{var{outside:et}=t;return et=(et?F:0)+U.anchorX,et<n.left&&et+U.boxWidth<n.right?!0:et<F-n.left+U.boxWidth&&n.right-et>et})&&(h=h.map(U=>{const{x:et,y:dt}=e(U.anchorX,U.anchorY,U.point.isHeader,U.boxWidth,!1);return L(U,{target:dt,x:et})})),t.cleanSplit(),N(h,lt);var ht=F,pt=F;h.forEach(function(U){const{x:et,boxWidth:dt,isHeader:ct}=U;ct||(t.outside&&F+et<ht&&(ht=F+et),!ct&&t.outside&&ht+dt>pt&&(pt=F+et))}),h.forEach(function(U){const{x:et,anchorX:dt,anchorY:ct,pos:yt,point:{isHeader:vt}}=U,gt={visibility:typeof yt>"u"?"hidden":"inherit",x:et,y:(yt||0)+it,anchorX:dt,anchorY:ct};if(t.outside&&et<dt){const xt=F-ht;0<xt&&(vt||(gt.x=et+xt,gt.anchorX=dt+xt),vt&&(gt.x=(pt-ht)/2,gt.anchorX=dt+xt))}U.tt.attr(gt)});const{container:D,outside:C,renderer:Q}=t;if(C&&D&&Q){const{width:U,height:et,x:dt,y:ct}=f.getBBox();Q.setSize(U+dt,et+ct,!1),D.style.left=ht+"px",D.style.top=W+"px"}O&&f.attr({opacity:f.opacity===1?.999:1})}drawTracker(){if(this.shouldStickOnContact()){var h=this.chart,d=this.label,e=this.shared?h.hoverPoints:h.hoverPoint;if(d&&e){var t={x:0,y:0,width:0,height:0};e=this.getAnchor(e);var i=d.getBBox();e[0]+=h.plotLeft-d.translateX,e[1]+=h.plotTop-d.translateY,t.x=Math.min(0,e[0]),t.y=Math.min(0,e[1]),t.width=0>e[0]?Math.max(Math.abs(e[0]),i.width-e[0]):Math.max(Math.abs(e[0]),i.width),t.height=0>e[1]?Math.max(Math.abs(e[1]),i.height-Math.abs(e[1])):Math.max(Math.abs(e[1]),i.height),this.tracker?this.tracker.attr(t):(this.tracker=d.renderer.rect(t).addClass("highcharts-tracker").add(d),h.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&(this.tracker=this.tracker.destroy())}styledModeFormat(h){return h.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(h,d){const e=h.series,t=e.tooltipOptions;var i=e.xAxis;const l=i&&i.dateTime;i={isFooter:d,labelConfig:h};let u=t.xDateFormat,_=t[d?"footerFormat":"headerFormat"];return c(this,"headerFormatter",i,function(a){l&&!u&&v(h.key)&&(u=l.getXDateFormat(h.key,t.dateTimeLabelFormats)),l&&u&&(h.point&&h.point.tooltipDateKeys||["key"]).forEach(function(w){_=_.replace("{point."+w+"}","{point."+w+":"+u+"}")}),e.chart.styledMode&&(_=this.styledModeFormat(_)),a.text=X(_,{point:h,series:e},this.chart)}),i.text}update(h){this.destroy(),this.init(this.chart,A(!0,this.options,h))}updatePosition(h){const{chart:d,distance:e,options:t}=this;var i=d.pointer;const l=this.getLabel(),{left:u,top:_,scaleX:a,scaleY:w}=i.getChartPosition();i=(t.positioner||this.getPosition).call(this,l.width,l.height,h);let H=(h.plotX||0)+d.plotLeft;h=(h.plotY||0)+d.plotTop;let K;this.outside&&(t.positioner&&(i.x+=u-e,i.y+=_-e),K=(t.borderWidth||0)+2*e,this.renderer.setSize(l.width+K,l.height+K,!1),(a!==1||w!==1)&&(b(this.container,{transform:`scale(${a}, ${w})`}),H*=a,h*=w),H+=u-i.x,h+=_-i.y),this.move(Math.round(i.x),Math.round(i.y||0),H,h)}}return function(p){const h=[];p.compose=function(d){J.pushUnique(h,d)&&R(d,"afterInit",function(){const e=this.chart;e.options.tooltip&&(e.tooltip=new p(e,e.options.tooltip))})}}(r||(r={})),r}),st(T,"Core/Series/Point.js",[T["Core/Renderer/HTML/AST.js"],T["Core/Animation/AnimationUtilities.js"],T["Core/Defaults.js"],T["Core/Templating.js"],T["Core/Utilities.js"]],function(B,P,G,q,J){const{animObject:X}=P,{defaultOptions:Y}=G,{format:O}=q,{addEvent:N,defined:R,erase:x,extend:b,fireEvent:E,getNestedProperty:L,isArray:c,isFunction:y,isNumber:v,isObject:g,merge:A,objectEach:k,pick:S,syncTimeout:o,removeEvent:r,uniqueKey:p}=J;class h{constructor(){this.category=void 0,this.destroyed=!1,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}animateBeforeDestroy(){const e=this,t={x:e.startXPos,opacity:0},i=e.getGraphicalProps();i.singular.forEach(function(l){e[l]=e[l].animate(l==="dataLabel"?{x:e[l].startXPos,y:e[l].startYPos,opacity:0}:t)}),i.plural.forEach(function(l){e[l].forEach(function(u){u.element&&u.animate(b({x:e.startXPos},u.startYPos?{x:u.startXPos,y:u.startYPos}:{}))})})}applyOptions(e,t){const i=this.series,l=i.options.pointValKey||i.pointValKey;return e=h.prototype.optionsToObject.call(this,e),b(this,e),this.options=this.options?b(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,l&&(this.y=h.prototype.getNestedProperty.call(this,l)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof t>"u"&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),typeof this.x>"u"&&i?this.x=typeof t>"u"?i.autoIncrement():t:v(e.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(e.x)),this}destroy(){if(!this.destroyed){const t=this;var e=t.series;const i=e.chart;e=e.options.dataSorting;const l=i.hoverPoints,u=X(t.series.chart.renderer.globalAnimation),_=()=>{(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(r(t),t.destroyElements());for(const a in t)delete t[a]};t.legendItem&&i.legend.destroyItem(t),l&&(t.setState(),x(l,t),l.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),e&&e.enabled?(this.animateBeforeDestroy(),o(_,u.duration)):_(),i.pointCount--}this.destroyed=!0}destroyElements(e){const t=this;e=t.getGraphicalProps(e),e.singular.forEach(function(i){t[i]=t[i].destroy()}),e.plural.forEach(function(i){t[i].forEach(function(l){l&&l.element&&l.destroy()}),delete t[i]})}firePointEvent(e,t,i){const l=this,u=this.series.options;(u.point.events[e]||l.options&&l.options.events&&l.options.events[e])&&l.importEvents(),e==="click"&&u.allowPointSelect&&(i=function(_){l.select&&l.select(null,_.ctrlKey||_.metaKey||_.shiftKey)}),E(l,e,t,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){const t=this,i=[],l={singular:[],plural:[]};let u,_;for(e=e||{graphic:1,dataLabel:1},e.graphic&&i.push("graphic"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),_=i.length;_--;)u=i[_],t[u]&&l.singular.push(u);return["graphic","dataLabel","connector"].forEach(function(a){const w=a+"s";e[a]&&t[w]&&l.plural.push(w)}),l}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(e){if(e)return e.indexOf("custom.")===0?L(e,this.options):this[e]}getZone(){var e=this.series;const t=e.zones;e=e.zoneAxis||"y";let i,l=0;for(i=t[l];this[e]>=i.value;)i=t[++l];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}init(e,t,i){return this.series=e,this.applyOptions(t,i),this.id=R(this.id)?this.id:p(),this.resolveColor(),e.chart.pointCount++,E(this,"afterInit"),this}isValid(){return this.x!==null&&v(this.y)}optionsToObject(e){var t=this.series;const i=t.options.keys,l=i||t.pointArrayMap||["y"],u=l.length;let _={},a=0,w=0;if(v(e)||e===null)_[l[0]]=e;else if(c(e))for(!i&&e.length>u&&(t=typeof e[0],t==="string"?_.name=e[0]:t==="number"&&(_.x=e[0]),a++);w<u;)i&&typeof e[a]>"u"||(0<l[w].indexOf(".")?h.prototype.setNestedProperty(_,e[a],l[w]):_[l[w]]=e[a]),a++,w++;else typeof e=="object"&&(_=e,e.dataLabels&&(t._hasPointLabels=!0),e.marker&&(t._hasPointMarkers=!0));return _}pos(e,t=this.plotY){if(!this.destroyed){const{plotX:i,series:l}=this,{chart:u,xAxis:_,yAxis:a}=l;let w=0,H=0;if(v(i)&&v(t))return e&&(w=_?_.pos:u.plotLeft,H=a?a.pos:u.plotTop),u.inverted&&_&&a?[a.len-t+H,_.len-i+w]:[i+w,t+H]}}resolveColor(){const e=this.series;var t=e.chart.styledMode;let i;var l=e.chart.options.chart.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(t||(l=e.options.colors||e.chart.options.colors,i=l[e.colorCounter],l=l.length),t=e.colorCounter,e.colorCounter++,e.colorCounter===l&&(e.colorCounter=0)):(t||(i=e.color),t=e.colorIndex),this.colorIndex=S(this.options.colorIndex,t),this.color=S(this.options.color,i)}setNestedProperty(e,t,i){return i.split(".").reduce(function(l,u,_,a){return l[u]=a.length-1===_?t:g(l[u],!0)?l[u]:{},l[u]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){const t=this.series,i=t.tooltipOptions,l=S(i.valueDecimals,""),u=i.valuePrefix||"",_=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(a){a="{point."+a,(u||_)&&(e=e.replace(RegExp(a+"}","g"),u+a+"}"+_)),e=e.replace(RegExp(a+"}","g"),a+":,."+l+"f}")}),O(e,{point:this,series:this.series},t.chart)}update(e,t,i,l){function u(){_.applyOptions(e);var j=w&&_.hasMockGraphic;j=_.y===null?!j:j,w&&j&&(_.graphic=w.destroy(),delete _.hasMockGraphic),g(e,!0)&&(w&&w.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(_.graphic=w.destroy()),e&&e.dataLabels&&_.dataLabel&&(_.dataLabel=_.dataLabel.destroy()),_.connector&&(_.connector=_.connector.destroy())),rt=_.index,a.updateParallelArrays(_,rt),K.data[rt]=g(K.data[rt],!0)||g(e,!0)?_.options:S(e,K.data[rt]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(H.isDirtyBox=!0),K.legendType==="point"&&(H.isDirtyLegend=!0),t&&H.redraw(i)}const _=this,a=_.series,w=_.graphic,H=a.chart,K=a.options;let rt;t=S(t,!0),l===!1?u():_.firePointEvent("update",{options:e},u)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){const i=this,l=i.series,u=l.chart;this.selectedStaging=e=S(e,!i.selected),i.firePointEvent(e?"select":"unselect",{accumulate:t},function(){i.selected=i.options.selected=e,l.options.data[l.data.indexOf(i)]=i.options,i.setState(e&&"select"),t||u.getSelectedPoints().forEach(function(_){const a=_.series;_.selected&&_!==i&&(_.selected=_.options.selected=!1,a.options.data[a.data.indexOf(_)]=_.options,_.setState(u.hoverPoints&&a.options.inactiveOtherPoints?"inactive":""),_.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){const t=this.series.chart,i=t.pointer;e=e?i.normalize(e):i.getChartCoordinatesFromPoint(this,t.inverted),i.runPointActions(e,this)}onMouseOut(){const e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(t){t.setState()}),e.hoverPoints=e.hoverPoint=null}importEvents(){if(!this.hasImportedEvents){const e=this,t=A(e.series.options.point,e.options).events;e.events=t,k(t,function(i,l){y(i)&&N(e,l,i)}),this.hasImportedEvents=!0}}setState(e,t){const i=this.series;var l=this.state,u=i.options.states[e||"normal"]||{},_=Y.plotOptions[i.type].marker&&i.options.marker;const a=_&&_.enabled===!1,w=_&&_.states&&_.states[e||"normal"]||{},H=w.enabled===!1,K=this.marker||{},rt=i.chart,j=_&&i.markerAttribs;let s=i.halo;var M;let z;var I=i.stateMarkerGraphic;if(e=e||"",!(e===this.state&&!t||this.selected&&e!=="select"||u.enabled===!1||e&&(H||a&&w.enabled===!1)||e&&K.states&&K.states[e]&&K.states[e].enabled===!1)){if(this.state=e,j&&(M=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(l&&this.graphic.removeClass("highcharts-point-"+l),e&&this.graphic.addClass("highcharts-point-"+e),!rt.styledMode){l=i.pointAttribs(this,e),z=S(rt.options.chart.animation,u.animation);const V=l.opacity;i.options.inactiveOtherPoints&&v(V)&&((this.dataLabels||[]).forEach(function(n){n&&!n.hasClass("highcharts-data-label-hidden")&&n.animate({opacity:V},z)}),this.connector&&this.connector.animate({opacity:V},z)),this.graphic.animate(l,z)}M&&this.graphic.animate(M,S(rt.options.chart.animation,w.animation,_.animation)),I&&I.hide()}else e&&w&&(_=K.symbol||i.symbol,I&&I.currentSymbol!==_&&(I=I.destroy()),M&&(I?I[t?"animate":"attr"]({x:M.x,y:M.y}):_&&(i.stateMarkerGraphic=I=rt.renderer.symbol(_,M.x,M.y,M.width,M.height).add(i.markerGroup),I.currentSymbol=_)),!rt.styledMode&&I&&this.state!=="inactive"&&I.attr(i.pointAttribs(this,e))),I&&(I[e&&this.isInside?"show":"hide"](),I.element.point=this,I.addClass(this.getClassName(),!0));u=u.halo,M=(I=this.graphic||I)&&I.visibility||"inherit",u&&u.size&&I&&M!=="hidden"&&!this.isCluster?(s||(i.halo=s=rt.renderer.path().add(I.parentGroup)),s.show()[t?"animate":"attr"]({d:this.haloPath(u.size)}),s.attr({class:"highcharts-halo highcharts-color-"+S(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:M,zIndex:-1}),s.point=this,rt.styledMode||s.attr(b({fill:this.color||i.color,"fill-opacity":u.opacity},B.filterUserAttributes(u.attributes||{})))):s&&s.point&&s.point.haloPath&&s.animate({d:s.point.haloPath(0)},null,s.hide),E(this,"afterSetState",{state:e})}}haloPath(e){const t=this.pos();return t?this.series.chart.renderer.symbols.circle(Math.floor(t[0])-e,t[1]-e,2*e,2*e):[]}}return h}),st(T,"Core/Pointer.js",[T["Core/Color/Color.js"],T["Core/Globals.js"],T["Core/Utilities.js"]],function(B,P,G){const{parse:q}=B,{charts:J,noop:X}=P,{addEvent:Y,attr:O,css:N,defined:R,extend:x,find:b,fireEvent:E,isNumber:L,isObject:c,objectEach:y,offset:v,pick:g,splat:A}=G;class k{constructor(o,r){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=o,this.hasDragged=!1,this.options=r,this.init(o,r)}applyInactiveState(o){let r=[],p;(o||[]).forEach(function(h){p=h.series,r.push(p),p.linkedParent&&r.push(p.linkedParent),p.linkedSeries&&(r=r.concat(p.linkedSeries)),p.navigatorSeries&&r.push(p.navigatorSeries)}),this.chart.series.forEach(function(h){r.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})}destroy(){const o=this;this.eventsToUnbind.forEach(r=>r()),this.eventsToUnbind=[],P.chartCount||(k.unbindDocumentMouseUp&&(k.unbindDocumentMouseUp=k.unbindDocumentMouseUp()),k.unbindDocumentTouchEnd&&(k.unbindDocumentTouchEnd=k.unbindDocumentTouchEnd())),clearInterval(o.tooltipTimeout),y(o,function(r,p){o[p]=void 0})}getSelectionMarkerAttrs(o,r){const p={args:{chartX:o,chartY:r},attrs:{},shapeType:"rect"};return E(this,"getSelectionMarkerAttrs",p,h=>{const{chart:d,mouseDownX:e=0,mouseDownY:t=0,zoomHor:i,zoomVert:l}=this;h=h.attrs;let u;h.x=d.plotLeft,h.y=d.plotTop,h.width=i?1:d.plotWidth,h.height=l?1:d.plotHeight,i&&(u=o-e,h.width=Math.abs(u),h.x=(0<u?0:u)+e),l&&(u=r-t,h.height=Math.abs(u),h.y=(0<u?0:u)+t)}),p}drag(o){const r=this.chart,p=r.options.chart;var h=r.plotLeft;const d=r.plotTop,e=r.plotWidth,t=r.plotHeight,i=this.mouseDownX||0,l=this.mouseDownY||0,u=c(p.panning)?p.panning&&p.panning.enabled:p.panning,_=p.panKey&&o[p.panKey+"Key"];let a=o.chartX,w=o.chartY,H=this.selectionMarker;if((!H||!H.touch)&&(a<h?a=h:a>h+e&&(a=h+e),w<d?w=d:w>d+t&&(w=d+t),this.hasDragged=Math.sqrt(Math.pow(i-a,2)+Math.pow(l-w,2)),10<this.hasDragged)){h=r.isInsidePlot(i-h,l-d,{visiblePlotOnly:!0});const{shapeType:K,attrs:rt}=this.getSelectionMarkerAttrs(a,w);!r.hasCartesianSeries&&!r.mapView||!this.zoomX&&!this.zoomY||!h||_||H||(this.selectionMarker=H=r.renderer[K](),H.attr({class:"highcharts-selection-marker",zIndex:7}).add(),r.styledMode||H.attr({fill:p.selectionMarkerFill||q("#334eff").setOpacity(.25).get()})),H&&H.attr(rt),h&&!H&&u&&r.pan(o,p.panning)}}dragStart(o){const r=this.chart;r.mouseIsDown=o.type,r.cancelClick=!1,r.mouseDownX=this.mouseDownX=o.chartX,r.mouseDownY=this.mouseDownY=o.chartY}getSelectionBox(o){const r={args:{marker:o},result:{}};return E(this,"getSelectionBox",r,p=>{p.result={x:o.attr?+o.attr("x"):o.x,y:o.attr?+o.attr("y"):o.y,width:o.attr?o.attr("width"):o.width,height:o.attr?o.attr("height"):o.height}}),r.result}drop(o){const r=this,p=this.chart,h=this.hasPinched;if(this.selectionMarker){const{x:d,y:e,width:t,height:i}=this.getSelectionBox(this.selectionMarker),l={originalEvent:o,xAxis:[],yAxis:[],x:d,y:e,width:t,height:i};let u=!!p.mapView;(this.hasDragged||h)&&(p.axes.forEach(function(_){if(_.zoomEnabled&&R(_.min)&&(h||r[{xAxis:"zoomX",yAxis:"zoomY"}[_.coll]])&&L(d)&&L(e)&&L(t)&&L(i)){var a=_.horiz;const w=o.type==="touchend"?_.minPixelPadding:0,H=_.toValue((a?d:e)+w);a=_.toValue((a?d+t:e+i)-w),l[_.coll].push({axis:_,min:Math.min(H,a),max:Math.max(H,a)}),u=!0}}),u&&E(p,"selection",l,function(_){p.zoom(x(_,h?{animation:!1}:null))})),L(p.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}p&&L(p.index)&&(N(p.container,{cursor:p._cursor}),p.cancelClick=10<this.hasDragged,p.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(o,r,p){let h;return o.forEach(function(d){var e=!(d.noSharedTooltip&&r)&&0>d.options.findNearestPointBy.indexOf("y");if(d=d.searchPoint(p,e),(e=c(d,!0)&&d.series)&&!(e=!c(h,!0))){{e=h.distX-d.distX;const t=h.dist-d.dist,i=(d.series.group&&d.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);e=e!==0&&r?e:t!==0?t:i!==0?i:h.series.index>d.series.index?-1:1}e=0<e}e&&(h=d)}),h}getChartCoordinatesFromPoint(o,r){var p=o.series;const h=p.xAxis;p=p.yAxis;const d=o.shapeArgs;if(h&&p){let e=g(o.clientX,o.plotX),t=o.plotY||0;return o.isNode&&d&&L(d.x)&&L(d.y)&&(e=d.x,t=d.y),r?{chartX:p.len+p.pos-t,chartY:h.len+h.pos-e}:{chartX:e+h.pos,chartY:t+p.pos}}if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;var{container:o}=this.chart;const r=v(o);this.chartPosition={left:r.left,top:r.top,scaleX:1,scaleY:1};const p=o.offsetWidth;return o=o.offsetHeight,2<p&&2<o&&(this.chartPosition.scaleX=r.width/p,this.chartPosition.scaleY=r.height/o),this.chartPosition}getCoordinates(o){const r={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(p){r[p.isXAxis?"xAxis":"yAxis"].push({axis:p,value:p.toValue(o[p.horiz?"chartX":"chartY"])})}),r}getHoverData(o,r,p,h,d,e){const t=[];h=!(!h||!o);const i=function(a){return a.visible&&!(!d&&a.directTouch)&&g(a.options.enableMouseTracking,!0)};let l,u={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:d};E(this,"beforeGetHoverData",u),l=r&&!r.stickyTracking?[r]:p.filter(a=>a.stickyTracking&&(u.filter||i)(a));const _=h||!e?o:this.findNearestKDPoint(l,d,e);return r=_&&_.series,_&&(d&&!r.noSharedTooltip?(l=p.filter(function(a){return u.filter?u.filter(a):i(a)&&!a.noSharedTooltip}),l.forEach(function(a){let w=b(a.points,function(H){return H.x===_.x&&!H.isNull});c(w)&&(a.boosted&&a.boost&&(w=a.boost.getPoint(w)),t.push(w))})):t.push(_)),u={hoverPoint:_},E(this,"afterGetHoverData",u),{hoverPoint:u.hoverPoint,hoverSeries:r,hoverPoints:t}}getPointFromEvent(o){o=o.target;let r;for(;o&&!r;)r=o.point,o=o.parentNode;return r}onTrackerMouseOut(o){o=o.relatedTarget;const r=this.chart.hoverSeries;this.isDirectTouch=!1,!r||!o||r.stickyTracking||this.inClass(o,"highcharts-tooltip")||this.inClass(o,"highcharts-series-"+r.index)&&this.inClass(o,"highcharts-tracker")||r.onMouseOut()}inClass(o,r){let p;for(;o;){if(p=O(o,"class")){if(p.indexOf(r)!==-1)return!0;if(p.indexOf("highcharts-container")!==-1)return!1}o=o.parentElement}}init(o,r){this.options=r,this.chart=o,this.runChartClick=!(!r.chart.events||!r.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),E(this,"afterInit")}normalize(o,r){var p=o.touches,h=p?p.length?p.item(0):g(p.changedTouches,o.changedTouches)[0]:o;return r||(r=this.getChartPosition()),p=h.pageX-r.left,h=h.pageY-r.top,p/=r.scaleX,h/=r.scaleY,x(o,{chartX:Math.round(p),chartY:Math.round(h)})}onContainerClick(o){const r=this.chart,p=r.hoverPoint;o=this.normalize(o);const h=r.plotLeft,d=r.plotTop;r.cancelClick||(p&&this.inClass(o.target,"highcharts-tracker")?(E(p.series,"click",x(o,{point:p})),r.hoverPoint&&p.firePointEvent("click",o)):(x(o,this.getCoordinates(o)),r.isInsidePlot(o.chartX-h,o.chartY-d,{visiblePlotOnly:!0})&&E(r,"click",o)))}onContainerMouseDown(o){const r=((o.buttons||o.button)&1)===1;o=this.normalize(o),P.isFirefox&&o.button!==0&&this.onContainerMouseMove(o),(typeof o.button>"u"||r)&&(this.zoomOption(o),r&&o.preventDefault&&o.preventDefault(),this.dragStart(o))}onContainerMouseLeave(o){const r=J[g(k.hoverChartIndex,-1)];o=this.normalize(o),r&&o.relatedTarget&&!this.inClass(o.relatedTarget,"highcharts-tooltip")&&(r.pointer.reset(),r.pointer.chartPosition=void 0)}onContainerMouseEnter(o){delete this.chartPosition}onContainerMouseMove(o){const r=this.chart,p=r.tooltip;o=this.normalize(o),this.setHoverChartIndex(),(r.mouseIsDown==="mousedown"||this.touchSelect(o))&&this.drag(o),r.openMenu||!this.inClass(o.target,"highcharts-tracker")&&!r.isInsidePlot(o.chartX-r.plotLeft,o.chartY-r.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(o)||(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))}onDocumentTouchEnd(o){const r=J[g(k.hoverChartIndex,-1)];r&&r.pointer.drop(o)}onContainerTouchMove(o){this.touchSelect(o)?this.onContainerMouseMove(o):this.touch(o)}onContainerTouchStart(o){this.touchSelect(o)?this.onContainerMouseDown(o):(this.zoomOption(o),this.touch(o,!0))}onDocumentMouseMove(o){const r=this.chart,p=r.tooltip,h=this.chartPosition;o=this.normalize(o,h),!h||r.isInsidePlot(o.chartX-r.plotLeft,o.chartY-r.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(o)||this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(o){const r=J[g(k.hoverChartIndex,-1)];r&&r.pointer.drop(o)}pinch(o){const r=this,p=r.chart,h=r.pinchDown,d=o.touches||[],e=d.length,t=r.lastValidTouch,i=r.hasZoom,l={},u=e===1&&(r.inClass(o.target,"highcharts-tracker")&&p.runTrackerClick||r.runChartClick),_={};var a=r.chart.tooltip;a=e===1&&g(a&&a.options.followTouchMove,!0);let w=r.selectionMarker;1<e?r.initiated=!0:a&&(r.initiated=!1),i&&r.initiated&&!u&&o.cancelable!==!1&&o.preventDefault(),[].map.call(d,function(H){return r.normalize(H)}),o.type==="touchstart"?([].forEach.call(d,function(H,K){h[K]={chartX:H.chartX,chartY:H.chartY}}),t.x=[h[0].chartX,h[1]&&h[1].chartX],t.y=[h[0].chartY,h[1]&&h[1].chartY],p.axes.forEach(function(H){if(H.zoomEnabled){const K=p.bounds[H.horiz?"h":"v"],rt=H.minPixelPadding,j=H.toPixels(Math.min(g(H.options.min,H.dataMin),H.dataMin)),s=H.toPixels(Math.max(g(H.options.max,H.dataMax),H.dataMax)),M=Math.max(j,s);K.min=Math.min(H.pos,Math.min(j,s)-rt),K.max=Math.max(H.pos+H.len,M+rt)}}),r.res=!0):a?this.runPointActions(r.normalize(o)):h.length&&(E(p,"touchpan",{originalEvent:o},()=>{w||(r.selectionMarker=w=x({destroy:X,touch:!0},p.plotBox)),r.pinchTranslate(h,d,l,w,_,t),r.hasPinched=i,r.scaleGroups(l,_)}),r.res&&(r.res=!1,this.reset(!1,0)))}pinchTranslate(o,r,p,h,d,e){this.zoomHor&&this.pinchTranslateDirection(!0,o,r,p,h,d,e),this.zoomVert&&this.pinchTranslateDirection(!1,o,r,p,h,d,e)}pinchTranslateDirection(o,r,p,h,d,e,t,i){const l=this.chart,u=o?"x":"y",_=o?"X":"Y",a="chart"+_,w=o?"width":"height",H=l["plot"+(o?"Left":"Top")],K=l.inverted,rt=l.bounds[o?"h":"v"],j=r.length===1,s=r[0][a],M=!j&&r[1][a];r=function(){typeof f=="number"&&20<Math.abs(s-M)&&(V=i||Math.abs(n-f)/Math.abs(s-M)),I=(H-n)/V+s,z=l["plot"+(o?"Width":"Height")]/V};let z,I,V=i||1,n=p[0][a],f=!j&&p[1][a],m;r(),p=I,p<rt.min?(p=rt.min,m=!0):p+z>rt.max&&(p=rt.max-z,m=!0),m?(n-=.8*(n-t[u][0]),typeof f=="number"&&(f-=.8*(f-t[u][1])),r()):t[u]=[n,f],K||(e[u]=I-H,e[w]=z),e=K?1/V:V,d[w]=z,d[u]=p,h[K?o?"scaleY":"scaleX":"scale"+_]=V,h["translate"+_]=e*H+(n-e*s)}reset(o,r){const p=this.chart,h=p.hoverSeries,d=p.hoverPoint,e=p.hoverPoints,t=p.tooltip,i=t&&t.shared?e:d;o&&i&&A(i).forEach(function(l){l.series.isCartesian&&typeof l.plotX>"u"&&(o=!1)}),o?t&&i&&A(i).length&&(t.refresh(i),t.shared&&e?e.forEach(function(l){l.setState(l.state,!0),l.series.isCartesian&&(l.series.xAxis.crosshair&&l.series.xAxis.drawCrosshair(null,l),l.series.yAxis.crosshair&&l.series.yAxis.drawCrosshair(null,l))}):d&&(d.setState(d.state,!0),p.axes.forEach(function(l){l.crosshair&&d.series[l.coll]===l&&l.drawCrosshair(null,d)}))):(d&&d.onMouseOut(),e&&e.forEach(function(l){l.setState()}),h&&h.onMouseOut(),t&&t.hide(r),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),p.axes.forEach(function(l){l.hideCrosshair()}),this.hoverX=p.hoverPoints=p.hoverPoint=null)}runPointActions(o,r,p){const h=this.chart,d=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,e=d?d.shared:!1;let t=r||h.hoverPoint,i=t&&t.series||h.hoverSeries;r=this.getHoverData(t,i,h.series,(!o||o.type!=="touchmove")&&(!!r||i&&i.directTouch&&this.isDirectTouch),e,o),t=r.hoverPoint,i=r.hoverSeries;const l=r.hoverPoints;r=i&&i.tooltipOptions.followPointer&&!i.tooltipOptions.split;const u=e&&i&&!i.noSharedTooltip;if(t&&(p||t!==h.hoverPoint||d&&d.isHidden)){if((h.hoverPoints||[]).forEach(function(_){l.indexOf(_)===-1&&_.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(l),(l||[]).forEach(function(_){_.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!t.series)return;h.hoverPoints=l,h.hoverPoint=t,t.firePointEvent("mouseOver",void 0,()=>{d&&t&&d.refresh(u?l:t,o)})}else r&&d&&!d.isHidden&&(p=d.getAnchor([{}],o),h.isInsidePlot(p[0],p[1],{visiblePlotOnly:!0})&&d.updatePosition({plotX:p[0],plotY:p[1]}));this.unDocMouseMove||(this.unDocMouseMove=Y(h.container.ownerDocument,"mousemove",function(_){const a=J[k.hoverChartIndex];a&&a.pointer.onDocumentMouseMove(_)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(_){const a=g((_.crosshair||{}).snap,!0);let w;a&&((w=h.hoverPoint)&&w.series[_.coll]===_||(w=b(l,H=>H.series&&H.series[_.coll]===_))),w||!a?_.drawCrosshair(o,w):_.hideCrosshair()})}scaleGroups(o,r){const p=this.chart;p.series.forEach(function(h){const d=o||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||p.mapView)&&(h.group.attr(d),h.markerGroup&&(h.markerGroup.attr(d),h.markerGroup.clip(r?p.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(d))}),p.clipRect.attr(r||p.clipBox)}setDOMEvents(){const o=this.chart.container,r=o.ownerDocument;o.onmousedown=this.onContainerMouseDown.bind(this),o.onmousemove=this.onContainerMouseMove.bind(this),o.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(Y(o,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(Y(o,"mouseleave",this.onContainerMouseLeave.bind(this))),k.unbindDocumentMouseUp||(k.unbindDocumentMouseUp=Y(r,"mouseup",this.onDocumentMouseUp.bind(this)));let p=this.chart.renderTo.parentElement;for(;p&&p.tagName!=="BODY";)this.eventsToUnbind.push(Y(p,"scroll",()=>{delete this.chartPosition})),p=p.parentElement;P.hasTouch&&(this.eventsToUnbind.push(Y(o,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(Y(o,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),k.unbindDocumentTouchEnd||(k.unbindDocumentTouchEnd=Y(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const o=this.chart,r=P.charts[g(k.hoverChartIndex,-1)];r&&r!==o&&r.pointer.onContainerMouseLeave({relatedTarget:o.container}),r&&r.mouseIsDown||(k.hoverChartIndex=o.index)}touch(o,r){const p=this.chart;let h;this.setHoverChartIndex(),o.touches.length===1?(o=this.normalize(o),p.isInsidePlot(o.chartX-p.plotLeft,o.chartY-p.plotTop,{visiblePlotOnly:!0})&&!p.openMenu?(r&&this.runPointActions(o),o.type==="touchmove"&&(r=this.pinchDown,h=r[0]?4<=Math.sqrt(Math.pow(r[0].chartX-o.chartX,2)+Math.pow(r[0].chartY-o.chartY,2)):!1),g(h,!0)&&this.pinch(o)):r&&this.reset()):o.touches.length===2&&this.pinch(o)}touchSelect(o){return!(!this.chart.zooming.singleTouch||!o.touches||o.touches.length!==1)}zoomOption(o){const r=this.chart,p=r.inverted;var h=r.zooming.type||"";/touch/.test(o.type)&&(h=g(r.zooming.pinchType,h)),this.zoomX=o=/x/.test(h),this.zoomY=h=/y/.test(h),this.zoomHor=o&&!p||h&&p,this.zoomVert=h&&!p||o&&p,this.hasZoom=o||h}}return function(S){const o=[],r=[];S.compose=function(p){G.pushUnique(r,p)&&Y(p,"beforeRender",function(){this.pointer=new S(this,this.options)})},S.dissolve=function(){for(let p=0,h=o.length;p<h;++p)o[p]();o.length=0}}(k||(k={})),k}),st(T,"Core/Legend/Legend.js",[T["Core/Animation/AnimationUtilities.js"],T["Core/Templating.js"],T["Core/Globals.js"],T["Core/Series/Point.js"],T["Core/Renderer/RendererUtilities.js"],T["Core/Utilities.js"]],function(B,P,G,q,J,X){const{animObject:Y,setAnimation:O}=B,{format:N}=P,{marginNames:R}=G,{distribute:x}=J,{addEvent:b,createElement:E,css:L,defined:c,discardElement:y,find:v,fireEvent:g,isNumber:A,merge:k,pick:S,relativeLength:o,stableSort:r,syncTimeout:p}=X;class h{constructor(e,t){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=e,this.init(e,t)}init(e,t){this.chart=e,this.setOptions(t),t.enabled&&(this.render(),b(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),b(this.chart,"render",()=>{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(e){const t=S(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=k(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=S(e.symbolWidth,16),this.pages=[],this.proximate=e.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(e,t){const i=this.chart;this.setOptions(k(!0,this.options,e)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,S(t,!0)&&i.redraw(),g(this,"afterUpdate")}colorizeItem(e,t){const{group:i,label:l,line:u,symbol:_}=e.legendItem||{};if(i&&i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:a}=this,w=a.color,H=t&&e.color||w,K=e.options&&e.options.marker;let rt={fill:H};l==null||l.css(k(t?this.itemStyle:a)),u==null||u.attr({stroke:H}),_&&(K&&_.isMarker&&(rt=e.pointAttribs(),t||(rt.stroke=rt.fill=w)),_.attr(rt))}g(this,"afterColorizeItem",{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){const{group:t,x:i=0,y:l=0}=e.legendItem||{};var u=this.options,_=u.symbolPadding;const a=!u.rtl;u=e.checkbox,t&&t.element&&(_={translateX:a?i:this.legendWidth-i-2*_-4,translateY:l},t[c(t.translateY)?"animate":"attr"](_,void 0,()=>{g(this,"afterPositionItem",{item:e})})),u&&(u.x=i,u.y=l)}destroyItem(e){const t=e.checkbox,i=e.legendItem||{};for(const l of["group","label","line","symbol"])i[l]&&(i[l]=i[l].destroy());t&&y(t),e.legendItem=void 0}destroy(){for(const e of this.getAllItems())this.destroyItem(e);for(const e of"clipRect up down pager nav box title group".split(" "))this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){const e=this.group&&this.group.alignAttr,t=this.clipHeight||this.legendHeight,i=this.titleHeight;let l;e&&(l=e.translateY,this.allItems.forEach(function(u){const _=u.checkbox;let a;_&&(a=l+i+_.y+(this.scrollOffset||0)+3,L(_,{left:e.translateX+u.checkboxOffset+_.x-20+"px",top:a+"px",display:this.proximate||a>l-6&&a<l+t-6?"":"none"}))},this))}renderTitle(){var e=this.options;const t=this.padding,i=e.title;let l=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,t-3,t-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),e=this.title.getBBox(),l=e.height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:l})),this.titleHeight=l}setText(e){const t=this.options;e.legendItem.label.attr({text:t.labelFormat?N(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})}renderItem(e){const t=e.legendItem=e.legendItem||{};var i=this.chart,l=i.renderer;const u=this.options,_=this.symbolWidth,a=u.symbolPadding||0,w=this.itemStyle,H=this.itemHiddenStyle,K=u.layout==="horizontal"?S(u.itemDistance,20):0,rt=!u.rtl,j=!e.series,s=!j&&e.series.drawLegendSymbol?e.series:e;var M=s.options;const z=this.createCheckboxForItem&&M&&M.showCheckbox,I=u.useHTML,V=e.options.className;let n=t.label;M=_+a+K+(z?20:0),n||(t.group=l.g("legend-item").addClass("highcharts-"+s.type+"-series highcharts-color-"+e.colorIndex+(V?" "+V:"")+(j?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.label=n=l.text("",rt?_+a:-a,this.baseline||0,I),i.styledMode||n.css(k(e.visible?w:H)),n.attr({align:rt?"left":"right",zIndex:2}).add(t.group),this.baseline||(this.fontMetrics=l.fontMetrics(n),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,n.attr("y",this.baseline),this.symbolHeight=S(u.symbolHeight,this.fontMetrics.f),u.squareSymbol&&(this.symbolWidth=S(u.symbolWidth,Math.max(this.symbolHeight,16)),M=this.symbolWidth+a+K+(z?20:0),rt&&n.attr("x",this.symbolWidth+a))),s.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,n,I)),z&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),!i.styledMode&&w.width||n.css({width:(u.itemWidth||this.widthOption||i.spacingBox.width)-M+"px"}),this.setText(e),i=n.getBBox(),l=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=u.itemWidth||t.labelWidth||i.width+M,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(t.labelHeight||(i.height>1.5*l?i.height:l))}layoutItem(e){var t=this.options;const i=this.padding,l=t.layout==="horizontal",u=e.itemHeight,_=this.itemMarginBottom,a=this.itemMarginTop,w=l?S(t.itemDistance,20):0,H=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>H?this.maxItemWidth:e.itemWidth;const K=e.legendItem||{};l&&this.itemX-i+t>H&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+_),this.lastLineHeight=0),this.lastItemY=a+this.itemY+_,this.lastLineHeight=Math.max(u,this.lastLineHeight),K.x=this.itemX,K.y=this.itemY,l?this.itemX+=t:(this.itemY+=a+u+_,this.lastLineHeight=u),this.offsetWidth=this.widthOption||Math.max((l?this.itemX-i-(e.checkbox?0:w):t)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){const i=t&&t.options;t&&S(i.showInLegend,c(i.linkedTo)?!1:void 0,!0)&&(e=e.concat((t.legendItem||{}).labels||(i.legendType==="point"?t.data:t)))}),g(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){const e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){const i=this.chart,l=this.options,u=this.getAlignment();u&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(_,a){_.test(u)&&!c(e[a])&&(i[R[a]]=Math.max(i[R[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*l[a%2?"x":"y"]+S(l.margin,12)+t[a]+(i.titleOffset[a]||0)))})}proximatePositions(){const e=this.chart,t=[],i=this.options.align==="left";this.allItems.forEach(function(u){var _,a=i;let w;u.yAxis&&(u.xAxis.options.reversed&&(a=!a),u.points&&(_=v(a?u.points:u.points.slice(0).reverse(),function(H){return A(H.plotY)})),a=this.itemMarginTop+u.legendItem.label.getBBox().height+this.itemMarginBottom,w=u.yAxis.top-e.plotTop,u.visible?(_=_?_.plotY:u.yAxis.height,_+=w-.3*a):_=w+u.yAxis.height,t.push({target:_,size:a,item:u}))},this);let l;for(const u of x(t,e.plotHeight))l=u.item.legendItem||{},A(u.pos)&&(l.y=e.plotTop-e.spacing[0]+u.pos)}render(){const e=this.chart,t=e.renderer,i=this.options,l=this.padding;var u=this.getAllItems();let _,a=this.group,w=this.box;this.itemX=l,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=o(i.width,e.spacingBox.width-l);var H=e.spacingBox.width-2*l-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(H/=2),this.maxLegendWidth=this.widthOption||H,a||(this.group=a=t.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=t.g().attr({zIndex:1}).add(a),this.scrollGroup=t.g().add(this.contentGroup)),this.renderTitle(),r(u,(K,rt)=>(K.options&&K.options.legendIndex||0)-(rt.options&&rt.options.legendIndex||0)),i.reversed&&u.reverse(),this.allItems=u,this.display=H=!!u.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,u.forEach(this.renderItem,this),u.forEach(this.layoutItem,this),u=(this.widthOption||this.offsetWidth)+l,_=this.lastItemY+this.lastLineHeight+this.titleHeight,_=this.handleOverflow(_),_+=l,w||(this.box=w=t.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(a)),e.styledMode||w.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<u&&0<_&&w[w.placed?"animate":"attr"](w.crisp.call({},{x:0,y:0,width:u,height:_},w.strokeWidth())),a[H?"show":"hide"](),e.styledMode&&a.getStyle("display")==="none"&&(u=_=0),this.legendWidth=u,this.legendHeight=_,H&&this.align(),this.proximate||this.positionItems(),g(this,"afterRender")}align(e=this.chart.spacingBox){const t=this.chart,i=this.options;let l=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<t.titleOffset[0]?l+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<t.titleOffset[2]&&(l-=t.titleOffset[2]),l!==e.y&&(e=k(e,{y:l})),t.hasRendered||(this.group.placed=!1),this.group.align(k(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,e)}handleOverflow(e){const t=this,i=this.chart,l=i.renderer,u=this.options;var _=u.y;const a=u.verticalAlign==="top",w=this.padding,H=u.maxHeight,K=u.navigation,rt=S(K.animation,!0),j=K.arrowSize||12,s=this.pages,M=this.allItems,z=function(F){typeof F=="number"?$.attr({height:F}):$&&(t.clipRect=$.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=F?"rect("+w+"px,9999px,"+(w+F)+"px,0)":"auto")},I=function(F){return t[F]=l.circle(0,0,1.3*j).translate(j/2,j/2).add(m),i.styledMode||t[F].attr("fill","rgba(0,0,0,0.0001)"),t[F]};let V,n,f;_=i.spacingBox.height+(a?-_:_)-w;let m=this.nav,$=this.clipRect;return u.layout!=="horizontal"||u.verticalAlign==="middle"||u.floating||(_/=2),H&&(_=Math.min(_,H)),s.length=0,e&&0<_&&e>_&&K.enabled!==!1?(this.clipHeight=V=Math.max(_-20-this.titleHeight-w,0),this.currentPage=S(this.currentPage,1),this.fullHeight=e,M.forEach((F,W)=>{f=F.legendItem||{},F=f.y||0;const it=Math.round(f.label.getBBox().height);let nt=s.length;(!nt||F-s[nt-1]>V&&(n||F)!==s[nt-1])&&(s.push(n||F),nt++),f.pageIx=nt-1,n&&((M[W-1].legendItem||{}).pageIx=nt-1),W===M.length-1&&F+it-s[nt-1]>V&&F>s[nt-1]&&(s.push(F),f.pageIx=nt),F!==n&&(n=F)}),$||($=t.clipRect=l.clipRect(0,w-2,9999,0),t.contentGroup.clip($)),z(V),m||(this.nav=m=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,j,j).add(m),I("upTracker").on("click",function(){t.scroll(-1,rt)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&K.style&&this.pager.css(K.style),this.pager.add(m),this.down=l.symbol("triangle-down",0,0,j,j).add(m),I("downTracker").on("click",function(){t.scroll(1,rt)})),t.scroll(0),e=_):m&&(z(),this.nav=m.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){const i=this.chart,l=this.pages,u=l.length,_=this.clipHeight,a=this.options.navigation,w=this.pager,H=this.padding;let K=this.currentPage+e;K>u&&(K=u),0<K&&(typeof t<"u"&&O(t,i),this.nav.attr({translateX:H,translateY:_+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(rt){rt.attr({class:K===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),w.attr({text:K+"/"+u}),[this.down,this.downTracker].forEach(function(rt){rt.attr({x:18+this.pager.getBBox().width,class:K===u?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:K===1?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:K===1?"default":"pointer"}),this.down.attr({fill:K===u?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:K===u?"default":"pointer"})),this.scrollOffset=-l[K-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=K,this.positionCheckboxes(),e=Y(S(t,i.renderer.globalAnimation,!0)),p(()=>{g(this,"afterScroll",{currentPage:K})},e.duration))}setItemEvents(e,t,i){const l=this,u=e.legendItem||{},_=l.chart.renderer.boxWrapper,a=e instanceof q,w="highcharts-legend-"+(a?"point":"series")+"-active",H=l.chart.styledMode;i=i?[t,u.symbol]:[u.group];const K=rt=>{l.allItems.forEach(j=>{e!==j&&[j].concat(j.linkedSeries||[]).forEach(s=>{s.setState(rt,!a)})})};for(const rt of i)rt&&rt.on("mouseover",function(){e.visible&&K("inactive"),e.setState("hover"),e.visible&&_.addClass(w),H||t.css(l.options.itemHoverStyle)}).on("mouseout",function(){l.chart.styledMode||t.css(k(e.visible?l.itemStyle:l.itemHiddenStyle)),K(""),_.removeClass(w),e.setState()}).on("click",function(j){const s=function(){e.setVisible&&e.setVisible(),K(e.visible?"inactive":"")};_.removeClass(w),j={browserEvent:j},e.firePointEvent?e.firePointEvent("legendItemClick",j,s):g(e,"legendItemClick",j,s)})}createCheckboxForItem(e){e.checkbox=E("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),b(e.checkbox,"click",function(t){g(e.series||e,"checkboxClick",{checked:t.target.checked,item:e},function(){e.select()})})}}return function(d){const e=[];d.compose=function(t){X.pushUnique(e,t)&&b(t,"beforeMargins",function(){this.legend=new d(this,this.options.legend)})}}(h||(h={})),h}),st(T,"Core/Legend/LegendSymbol.js",[T["Core/Utilities.js"]],function(B){const{extend:P,merge:G,pick:q}=B;var J;return function(X){X.lineMarker=function(Y,O){O=this.legendItem=this.legendItem||{};var N=this.options;const R=Y.symbolWidth,x=Y.symbolHeight,b=x/2,E=this.chart.renderer,L=O.group;Y=Y.baseline-Math.round(.3*Y.fontMetrics.b);let c={},y=N.marker,v=0;this.chart.styledMode||(c={"stroke-width":Math.min(N.lineWidth||0,24)},N.dashStyle?c.dashstyle=N.dashStyle:N.linecap!=="square"&&(c["stroke-linecap"]="round")),O.line=E.path().addClass("highcharts-graph").attr(c).add(L),c["stroke-linecap"]&&(v=Math.min(O.line.strokeWidth(),R)/2),R&&O.line.attr({d:[["M",v,Y],["L",R-v,Y]]}),y&&y.enabled!==!1&&R&&(N=Math.min(q(y.radius,b),b),this.symbol.indexOf("url")===0&&(y=G(y,{width:x,height:x}),N=0),O.symbol=O=E.symbol(this.symbol,R/2-N,Y-N,2*N,2*N,P({context:"legend"},y)).addClass("highcharts-point").add(L),O.isMarker=!0)},X.rectangle=function(Y,O){O=O.legendItem||{};const N=Y.symbolHeight,R=Y.options.squareSymbol;O.symbol=this.chart.renderer.rect(R?(Y.symbolWidth-N)/2:0,Y.baseline-N+1,R?N:Y.symbolWidth,N,q(Y.options.symbolRadius,N/2)).addClass("highcharts-point").attr({zIndex:3}).add(O.group)}}(J||(J={})),J}),st(T,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:1,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){const{numberFormatter:B}=this.series.chart;return typeof this.y!="number"?"":B(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),st(T,"Core/Series/SeriesRegistry.js",[T["Core/Globals.js"],T["Core/Defaults.js"],T["Core/Series/Point.js"],T["Core/Utilities.js"]],function(B,P,G,q){const{defaultOptions:J}=P,{extendClass:X,merge:Y}=q;var O;return function(N){function R(x,b){const E=J.plotOptions||{},L=b.defaultOptions,c=b.prototype;c.type=x,c.pointClass||(c.pointClass=G),L&&(E[x]=L),N.seriesTypes[x]=b}N.seriesTypes=B.seriesTypes,N.registerSeriesType=R,N.seriesType=function(x,b,E,L,c){const y=J.plotOptions||{};return b=b||"",y[x]=Y(y[b],E),R(x,X(N.seriesTypes[b]||function(){},L)),N.seriesTypes[x].prototype.type=x,c&&(N.seriesTypes[x].prototype.pointClass=X(G,c)),N.seriesTypes[x]}}(O||(O={})),O}),st(T,"Core/Series/Series.js",[T["Core/Animation/AnimationUtilities.js"],T["Core/Defaults.js"],T["Core/Foundation.js"],T["Core/Globals.js"],T["Core/Legend/LegendSymbol.js"],T["Core/Series/Point.js"],T["Core/Series/SeriesDefaults.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Renderer/SVG/SVGElement.js"],T["Core/Utilities.js"]],function(B,P,G,q,J,X,Y,O,N,R){const{animObject:x,setAnimation:b}=B,{defaultOptions:E}=P,{registerEventOptions:L}=G,{hasTouch:c,svg:y,win:v}=q,{seriesTypes:g}=O,{arrayMax:A,arrayMin:k,clamp:S,correctFloat:o,defined:r,diffObjects:p,erase:h,error:d,extend:e,find:t,fireEvent:i,getClosestDistance:l,getNestedProperty:u,insertItem:_,isArray:a,isNumber:w,isString:H,merge:K,objectEach:rt,pick:j,removeEvent:s,splat:M,syncTimeout:z}=R;class I{constructor(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}init(n,f){i(this,"init",{options:f});const m=this,$=n.series;this.eventsToUnbind=[],m.chart=n,m.options=m.setOptions(f),f=m.options,m.linkedSeries=[],m.bindAxes(),e(m,{name:f.name,state:"",visible:f.visible!==!1,selected:f.selected===!0}),L(this,f);const F=f.events;(F&&F.click||f.point&&f.point.events&&f.point.events.click||f.allowPointSelect)&&(n.runTrackerClick=!0),m.getColor(),m.getSymbol(),m.parallelArrays.forEach(function(it){m[it+"Data"]||(m[it+"Data"]=[])}),m.isCartesian&&(n.hasCartesianSeries=!0);let W;$.length&&(W=$[$.length-1]),m._i=j(W&&W._i,-1)+1,m.opacity=m.options.opacity,n.orderItems("series",_(this,$)),f.dataSorting&&f.dataSorting.enabled?m.setDataSortingOptions():m.points||m.data||m.setData(f.data,!1),i(this,"afterInit")}is(n){return g[n]&&this instanceof g[n]}bindAxes(){const n=this,f=n.options,m=n.chart;let $;i(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(F){m[F].forEach(function(W){$=W.options,(j(f[F],0)===W.index||typeof f[F]<"u"&&f[F]===$.id)&&(_(n,W.series),n[F]=W,W.isDirty=!0)}),n[F]||n.optionalAxis===F||d(18,!0,m)})}),i(this,"afterBindAxes")}updateParallelArrays(n,f,m){const $=n.series,F=w(f)?function(W){const it=W==="y"&&$.toYData?$.toYData(n):n[W];$[W+"Data"][f]=it}:function(W){Array.prototype[f].apply($[W+"Data"],m)};$.parallelArrays.forEach(F)}hasData(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length}autoIncrement(n){var f=this.options;const m=f.pointIntervalUnit,$=f.relativeXValue,F=this.chart.time;let W=this.xIncrement,it;return W=j(W,f.pointStart,0),this.pointInterval=it=j(this.pointInterval,f.pointInterval,1),$&&w(n)&&(it*=n),m&&(f=new F.Date(W),m==="day"?F.set("Date",f,F.get("Date",f)+it):m==="month"?F.set("Month",f,F.get("Month",f)+it):m==="year"&&F.set("FullYear",f,F.get("FullYear",f)+it),it=f.getTime()-W),$&&w(n)?W+it:(this.xIncrement=W+it,W)}setDataSortingOptions(){const n=this.options;e(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(n.pointRange)||(n.pointRange=1)}setOptions(n){var f,m;const $=this.chart;var F=$.options.plotOptions,W=$.userOptions||{};const it=K(n);n=$.styledMode;const nt={plotOptions:F,userOptions:it};i(this,"setOptions",nt);const lt=nt.plotOptions[this.type];W=W.plotOptions||{};const ht=W.series||{},pt=E.plotOptions[this.type]||{},D=W[this.type]||{};return this.userOptions=nt.userOptions,F=K(lt,F.series,D,it),this.tooltipOptions=K(E.tooltip,(f=E.plotOptions.series)===null||f===void 0?void 0:f.tooltip,pt==null?void 0:pt.tooltip,$.userOptions.tooltip,(m=W.series)===null||m===void 0?void 0:m.tooltip,D.tooltip,it.tooltip),this.stickyTracking=j(it.stickyTracking,D.stickyTracking,ht.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:F.stickyTracking),lt.marker===null&&delete F.marker,this.zoneAxis=F.zoneAxis,m=this.zones=(F.zones||[]).slice(),!F.negativeColor&&!F.negativeFillColor||F.zones||(f={value:F[this.zoneAxis+"Threshold"]||F.threshold||0,className:"highcharts-negative"},n||(f.color=F.negativeColor,f.fillColor=F.negativeFillColor),m.push(f)),m.length&&r(m[m.length-1].value)&&m.push(n?{}:{color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:F}),F}getName(){return j(this.options.name,"Series "+(this.index+1))}getCyclic(n,f,m){const $=this.chart,F=`${n}Index`,W=`${n}Counter`,it=(m==null?void 0:m.length)||$.options.chart.colorCount;if(!f){var nt=j(n==="color"?this.options.colorIndex:void 0,this[F]);r(nt)||($.series.length||($[W]=0),nt=$[W]%it,$[W]+=1),m&&(f=m[nt])}typeof nt<"u"&&(this[F]=nt),this[n]=f}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||E.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)}findPointIndex(n,f){const m=n.id,$=n.x,F=this.points;var W=this.options.dataSorting,it;let nt,lt;if(m)W=this.chart.get(m),W instanceof X&&(it=W);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(it=ht=>!ht.touched&&ht.index===n.index,W&&W.matchByName?it=ht=>!ht.touched&&ht.name===n.name:this.options.relativeXValue&&(it=ht=>!ht.touched&&ht.options.x===n.x),it=t(F,it),!it))return;return it&&(lt=it&&it.index,typeof lt<"u"&&(nt=!0)),typeof lt>"u"&&w($)&&(lt=this.xData.indexOf($,f)),lt!==-1&&typeof lt<"u"&&this.cropped&&(lt=lt>=this.cropStart?lt-this.cropStart:lt),!nt&&w(lt)&&F[lt]&&F[lt].touched&&(lt=void 0),lt}updateData(n,f){const m=this.options,$=m.dataSorting,F=this.points,W=[],it=this.requireSorting,nt=n.length===F.length;let lt,ht,pt,D=!0;if(this.xIncrement=null,n.forEach(function(C,Q){var U=r(C)&&this.pointClass.prototype.optionsToObject.call({series:this},C)||{};const et=U.x;U.id||w(et)?(U=this.findPointIndex(U,pt),U===-1||typeof U>"u"?W.push(C):F[U]&&C!==m.data[U]?(F[U].update(C,!1,null,!1),F[U].touched=!0,it&&(pt=U+1)):F[U]&&(F[U].touched=!0),(!nt||Q!==U||$&&$.enabled||this.hasDerivedData)&&(lt=!0)):W.push(C)},this),lt)for(n=F.length;n--;)(ht=F[n])&&!ht.touched&&ht.remove&&ht.remove(!1,f);else!nt||$&&$.enabled?D=!1:(n.forEach(function(C,Q){C===F[Q].y||F[Q].destroyed||F[Q].update(C,!1,null,!1)}),W.length=0);return F.forEach(function(C){C&&(C.touched=!1)}),D?(W.forEach(function(C){this.addPoint(C,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=A(this.xData),this.autoIncrement()),!0):!1}setData(n,f=!0,m,$){var F;const W=this,it=W.points,nt=it&&it.length||0,lt=W.options,ht=W.chart,pt=lt.dataSorting,D=W.xAxis,C=lt.turboThreshold,Q=this.xData,U=this.yData;var et=W.pointArrayMap;et=et&&et.length;const dt=lt.keys;let ct,yt=0,vt=1,gt=null;if(!ht.options.chart.allowMutatingData){lt.data&&delete W.options.data,W.userOptions.data&&delete W.userOptions.data;var xt=K(!0,n)}if(n=xt||n||[],xt=n.length,pt&&pt.enabled&&(n=this.sortData(n)),ht.options.chart.allowMutatingData&&$!==!1&&xt&&nt&&!W.cropped&&!W.hasGroupedData&&W.visible&&!W.boosted&&(ct=this.updateData(n,m)),!ct){if(W.xIncrement=null,W.colorCounter=0,this.parallelArrays.forEach(function(Ct){W[Ct+"Data"].length=0}),C&&xt>C)if(gt=W.getFirstValidPoint(n),w(gt))for(m=0;m<xt;m++)Q[m]=this.autoIncrement(),U[m]=n[m];else if(a(gt))if(et)if(gt.length===et)for(m=0;m<xt;m++)Q[m]=this.autoIncrement(),U[m]=n[m];else for(m=0;m<xt;m++)$=n[m],Q[m]=$[0],U[m]=$.slice(1,et+1);else if(dt&&(yt=dt.indexOf("x"),vt=dt.indexOf("y"),yt=0<=yt?yt:0,vt=0<=vt?vt:1),gt.length===1&&(vt=0),yt===vt)for(m=0;m<xt;m++)Q[m]=this.autoIncrement(),U[m]=n[m][vt];else for(m=0;m<xt;m++)$=n[m],Q[m]=$[yt],U[m]=$[vt];else d(12,!1,ht);else for(m=0;m<xt;m++)$={series:W},W.pointClass.prototype.applyOptions.apply($,[n[m]]),W.updateParallelArrays($,m);for(U&&H(U[0])&&d(14,!0,ht),W.data=[],W.options.data=W.userOptions.data=n,m=nt;m--;)(F=it[m])===null||F===void 0||F.destroy();D&&(D.minRange=D.userMinRange),W.isDirty=ht.isDirtyBox=!0,W.isDirtyData=!!it,m=!1}lt.legendType==="point"&&(this.processData(),this.generatePoints()),f&&ht.redraw(m)}sortData(n){const f=this,m=f.options.dataSorting.sortKey||"y",$=function(F,W){return r(W)&&F.pointClass.prototype.optionsToObject.call({series:F},W)||{}};return n.forEach(function(F,W){n[W]=$(f,F),n[W].index=W},this),n.concat().sort((F,W)=>(F=u(m,F),W=u(m,W),W<F?-1:W>F?1:0)).forEach(function(F,W){F.x=W},this),f.linkedSeries&&f.linkedSeries.forEach(function(F){const W=F.options,it=W.data;W.dataSorting&&W.dataSorting.enabled||!it||(it.forEach(function(nt,lt){it[lt]=$(F,nt),n[lt]&&(it[lt].x=n[lt].x,it[lt].index=lt)}),F.setData(it,!1))}),n}getProcessedData(n){const f=this;var m=f.xAxis,$=f.options;const F=$.cropThreshold,W=n||f.getExtremesFromAll||$.getExtremesFromAll,it=m==null?void 0:m.logarithmic,nt=f.isCartesian;let lt=0,ht;n=f.xData,$=f.yData;let pt=!1;const D=n.length;if(m){var C=m.getExtremes();ht=C.min,C=C.max,pt=!(!m.categories||m.names.length)}if(nt&&f.sorted&&!W&&(!F||D>F||f.forceCrop)){if(n[D-1]<ht||n[0]>C)n=[],$=[];else if(f.yData&&(n[0]<ht||n[D-1]>C)){var Q=this.cropData(f.xData,f.yData,ht,C);n=Q.xData,$=Q.yData,lt=Q.start,Q=!0}}return m=l([it?n.map(it.log2lin):n],()=>f.requireSorting&&!pt&&d(15,!1,f.chart)),{xData:n,yData:$,cropped:Q,cropStart:lt,closestPointRange:m}}processData(n){const f=this.xAxis;if(this.isCartesian&&!this.isDirty&&!f.isDirty&&!this.yAxis.isDirty&&!n)return!1;n=this.getProcessedData(),this.cropped=n.cropped,this.cropStart=n.cropStart,this.processedXData=n.xData,this.processedYData=n.yData,this.closestPointRange=this.basePointRange=n.closestPointRange,i(this,"afterProcessData")}cropData(n,f,m,$,F){const W=n.length;let it,nt=0,lt=W;for(F=j(F,this.cropShoulder),it=0;it<W;it++)if(n[it]>=m){nt=Math.max(0,it-F);break}for(m=it;m<W;m++)if(n[m]>$){lt=m+F;break}return{xData:n.slice(nt,lt),yData:f.slice(nt,lt),start:nt,end:lt}}generatePoints(){var n=this.options;const f=this.processedData||n.data,m=this.processedXData,$=this.processedYData,F=this.pointClass,W=m.length,it=this.cropStart||0,nt=this.hasGroupedData,lt=n.keys,ht=[];n=n.dataGrouping&&n.dataGrouping.groupAll?it:0;let pt,D,C,Q=this.data;if(!Q&&!nt){var U=[];U.length=f.length,Q=this.data=U}for(lt&&nt&&(this.options.keys=!1),C=0;C<W;C++)U=it+C,nt?(D=new F().init(this,[m[C]].concat(M($[C]))),D.dataGroup=this.groupMap[n+C],D.dataGroup.options&&(D.options=D.dataGroup.options,e(D,D.dataGroup.options),delete D.dataLabels)):(D=Q[U])||typeof f[U]>"u"||(Q[U]=D=new F().init(this,f[U],m[C])),D&&(D.index=nt?n+C:U,ht[C]=D);if(this.options.keys=lt,Q&&(W!==(pt=Q.length)||nt))for(C=0;C<pt;C++)C!==it||nt||(C+=W),Q[C]&&(Q[C].destroyElements(),Q[C].plotX=void 0);this.data=Q,this.points=ht,i(this,"afterGeneratePoints")}getXExtremes(n){return{min:k(n),max:A(n)}}getExtremes(n,f){const m=this.xAxis;var $=this.yAxis;const F=this.processedXData||this.xData,W=[],it=this.requireSorting?this.cropShoulder:0;$=$?$.positiveValuesOnly:!1;let nt,lt=0,ht=0,pt=0;n=n||this.stackedYData||this.processedYData||[];const D=n.length;if(m){var C=m.getExtremes();lt=C.min,ht=C.max}for(nt=0;nt<D;nt++){var Q=F[nt];C=n[nt];var U=(w(C)||a(C))&&(C.length||0<C||!$);if(Q=f||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!m||(F[nt+it]||Q)>=lt&&(F[nt-it]||Q)<=ht,U&&Q)if(U=C.length)for(;U--;)w(C[U])&&(W[pt++]=C[U]);else W[pt++]=C}return n={activeYData:W,dataMin:k(W),dataMax:A(W)},i(this,"afterGetExtremes",{dataExtremes:n}),n}applyExtremes(){const n=this.getExtremes();return this.dataMin=n.dataMin,this.dataMax=n.dataMax,n}getFirstValidPoint(n){const f=n.length;let m=0,$=null;for(;$===null&&m<f;)$=n[m],m++;return $}translate(){var n;this.processedXData||this.processData(),this.generatePoints();var f=this.options;const m=f.stacking,$=this.xAxis,F=$.categories,W=this.enabledDataSorting,it=this.yAxis,nt=this.points,lt=nt.length,ht=this.pointPlacementToXValue(),pt=!!ht,D=f.threshold;f=f.startFromThreshold?D:0;let C,Q,U,et,dt=Number.MAX_VALUE;for(C=0;C<lt;C++){const ct=nt[C],yt=ct.x;let vt,gt,xt=ct.y,Ct=ct.low;const bt=m&&((n=it.stacking)===null||n===void 0?void 0:n.stacks[(this.negStacks&&xt<(f?0:D)?"-":"")+this.stackKey]);Q=$.translate(yt,!1,!1,!1,!0,ht),ct.plotX=w(Q)?o(S(Q,-1e5,1e5)):void 0,m&&this.visible&&bt&&bt[yt]&&(et=this.getStackIndicator(et,yt,this.index),!ct.isNull&&et.key&&(vt=bt[yt],gt=vt.points[et.key]),vt&&a(gt)&&(Ct=gt[0],xt=gt[1],Ct===f&&et.key===bt[yt].base&&(Ct=j(w(D)?D:it.min)),it.positiveValuesOnly&&r(Ct)&&0>=Ct&&(Ct=void 0),ct.total=ct.stackTotal=j(vt.total),ct.percentage=r(ct.y)&&vt.total?ct.y/vt.total*100:void 0,ct.stackY=xt,this.irregularWidths||vt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),ct.yBottom=r(Ct)?S(it.translate(Ct,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(xt=this.dataModify.modifyValue(xt,C));let St;w(xt)&&ct.plotX!==void 0&&(St=it.translate(xt,!1,!0,!1,!0),St=w(St)?S(St,-1e5,1e5):void 0),ct.plotY=St,ct.isInside=this.isPointInside(ct),ct.clientX=pt?o($.translate(yt,!1,!1,!1,!0,ht)):Q,ct.negative=(ct.y||0)<(D||0),ct.category=j(F&&F[ct.x],ct.x),ct.isNull||ct.visible===!1||(typeof U<"u"&&(dt=Math.min(dt,Math.abs(Q-U))),U=Q),ct.zone=this.zones.length?ct.getZone():void 0,!ct.graphic&&this.group&&W&&(ct.isNew=!0)}this.closestPointRangePx=dt,i(this,"afterTranslate")}getValidPoints(n,f,m){const $=this.chart;return(n||this.points||[]).filter(function(F){const{plotX:W,plotY:it}=F;return!m&&(F.isNull||!w(it))||f&&!$.isInsidePlot(W,it,{inverted:$.inverted})?!1:F.visible!==!1})}getClipBox(){const{chart:n,xAxis:f,yAxis:m}=this,$=K(n.clipBox);return f&&f.len!==n.plotSizeX&&($.width=f.len),m&&m.len!==n.plotSizeY&&($.height=m.len),$}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}setClip(){const{chart:n,group:f,markerGroup:m}=this,$=n.sharedClips,F=n.renderer,W=this.getClipBox(),it=this.getSharedClipKey();let nt=$[it];nt?nt.animate(W):$[it]=nt=F.clipRect(W),f&&f.clip(this.options.clip===!1?void 0:nt),m&&m.clip()}animate(n){const{chart:f,group:m,markerGroup:$}=this,F=f.inverted;var W=x(this.options.animation),it=[this.getSharedClipKey(),W.duration,W.easing,W.defer].join();let nt=f.sharedClips[it],lt=f.sharedClips[it+"m"];if(n&&m)W=this.getClipBox(),nt?nt.attr("height",W.height):(W.width=0,F&&(W.x=f.plotHeight),nt=f.renderer.clipRect(W),f.sharedClips[it]=nt,lt=f.renderer.clipRect({x:-99,y:-99,width:F?f.plotWidth+199:99,height:F?99:f.plotHeight+199}),f.sharedClips[it+"m"]=lt),m.clip(nt),$&&$.clip(lt);else if(nt&&!nt.hasClass("highcharts-animating")){it=this.getClipBox();const ht=W.step;$&&$.element.childNodes.length&&(W.step=function(pt,D){ht&&ht.apply(D,arguments),D.prop==="width"&<&<.element&<.attr(F?"height":"width",pt+99)}),nt.addClass("highcharts-animating").animate(it,W)}}afterAnimate(){this.setClip(),rt(this.chart.sharedClips,(n,f,m)=>{n&&!this.chart.container.querySelector(`[clip-path="url(#${n.id})"]`)&&(n.destroy(),delete m[f])}),this.finishedAnimating=!0,i(this,"afterAnimate")}drawPoints(n=this.points){const f=this.chart,m=f.styledMode,{colorAxis:$,options:F}=this,W=F.marker,it=this[this.specialGroup||"markerGroup"],nt=this.xAxis,lt=j(W.enabled,!nt||nt.isRadial?!0:null,this.closestPointRangePx>=W.enabledThreshold*W.radius);let ht,pt,D,C,Q,U;if(W.enabled!==!1||this._hasPointMarkers)for(ht=0;ht<n.length;ht++){pt=n[ht],C=(D=pt.graphic)?"animate":"attr";var et=pt.marker||{};if(Q=!!pt.marker,(lt&&typeof et.enabled>"u"||et.enabled)&&!pt.isNull&&pt.visible!==!1){const dt=j(et.symbol,this.symbol,"rect");U=this.markerAttribs(pt,pt.selected&&"select"),this.enabledDataSorting&&(pt.startXPos=nt.reversed?-(U.width||0):nt.width);const ct=pt.isInside!==!1;!D&&ct&&(0<(U.width||0)||pt.hasImage)&&(pt.graphic=D=f.renderer.symbol(dt,U.x,U.y,U.width,U.height,Q?et:W).add(it),this.enabledDataSorting&&f.hasRendered&&(D.attr({x:pt.startXPos}),C="animate")),D&&C==="animate"&&D[ct?"show":"hide"](ct).animate(U),D&&(et=this.pointAttribs(pt,m||!pt.selected?void 0:"select"),m?$&&D.css({fill:et.fill}):D[C](et)),D&&D.addClass(pt.getClassName(),!0)}else D&&(pt.graphic=D.destroy())}}markerAttribs(n,f){const m=this.options;var $=m.marker;const F=n.marker||{},W=F.symbol||$.symbol,it={};let nt=j(F.radius,$&&$.radius);return f&&($=$.states[f],f=F.states&&F.states[f],nt=j(f&&f.radius,$&&$.radius,nt&&nt+($&&$.radiusPlus||0))),n.hasImage=W&&W.indexOf("url")===0,n.hasImage&&(nt=0),n=n.pos(),w(nt)&&n&&(it.x=n[0]-nt,it.y=n[1]-nt,m.crisp&&(it.x=Math.floor(it.x))),nt&&(it.width=it.height=2*nt),it}pointAttribs(n,f){var m=this.options.marker,$=n&&n.options;const F=$&&$.marker||{};var W=$&&$.color,it=n&&n.color;const nt=n&&n.zone&&n.zone.color;let lt=this.color;return n=j(F.lineWidth,m.lineWidth),$=1,lt=W||nt||it||lt,W=F.fillColor||m.fillColor||lt,it=F.lineColor||m.lineColor||lt,f=f||"normal",m=m.states[f]||{},f=F.states&&F.states[f]||{},n=j(f.lineWidth,m.lineWidth,n+j(f.lineWidthPlus,m.lineWidthPlus,0)),W=f.fillColor||m.fillColor||W,it=f.lineColor||m.lineColor||it,$=j(f.opacity,m.opacity,$),{stroke:it,"stroke-width":n,fill:W,opacity:$}}destroy(n){const f=this,m=f.chart,$=/AppleWebKit\/533/.test(v.navigator.userAgent),F=f.data||[];let W,it,nt,lt;for(i(f,"destroy",{keepEventsForUpdate:n}),this.removeEvents(n),(f.axisTypes||[]).forEach(function(ht){(lt=f[ht])&<.series&&(h(lt.series,f),lt.isDirty=lt.forceRedraw=!0)}),f.legendItem&&f.chart.legend.destroyItem(f),it=F.length;it--;)(nt=F[it])&&nt.destroy&&nt.destroy();f.clips&&f.clips.forEach(ht=>ht.destroy()),R.clearTimeout(f.animationTimeout),rt(f,function(ht,pt){ht instanceof N&&!ht.survive&&(W=$&&pt==="group"?"hide":"destroy",ht[W]())}),m.hoverSeries===f&&(m.hoverSeries=void 0),h(m.series,f),m.orderItems("series"),rt(f,function(ht,pt){n&&pt==="hcEvents"||delete f[pt]})}applyZones(){const n=this,f=this.chart,m=f.renderer,$=this.zones,F=this.clips||[],W=this.graph,it=this.area,nt=Math.max(f.plotWidth,f.plotHeight),lt=this[(this.zoneAxis||"y")+"Axis"],ht=f.inverted;let pt,D,C,Q,U,et,dt,ct,yt,vt,gt,xt=!1;$.length&&(W||it)&<&&typeof lt.min<"u"?(U=lt.reversed,et=lt.horiz,W&&!this.showLine&&W.hide(),it&&it.hide(),Q=lt.getExtremes(),$.forEach(function(Ct,bt){pt=U?et?f.plotWidth:0:et?0:lt.toPixels(Q.min)||0,pt=S(j(D,pt),0,nt),D=S(Math.round(lt.toPixels(j(Ct.value,Q.max),!0)||0),0,nt),xt&&(pt=D=lt.toPixels(Q.max)),dt=Math.abs(pt-D),ct=Math.min(pt,D),yt=Math.max(pt,D),lt.isXAxis?(C={x:ht?yt:ct,y:0,width:dt,height:nt},et||(C.x=f.plotHeight-C.x)):(C={x:0,y:ht?yt:ct,width:nt,height:dt},et&&(C.y=f.plotWidth-C.y)),F[bt]?F[bt].animate(C):F[bt]=m.clipRect(C),vt=n["zone-area-"+bt],gt=n["zone-graph-"+bt],W&>&>.clip(F[bt]),it&&vt&&vt.clip(F[bt]),xt=Ct.value>Q.max,n.resetZones&&D===0&&(D=void 0)}),this.clips=F):n.visible&&(W&&W.show(),it&&it.show())}plotGroup(n,f,m,$,F){let W=this[n];const it=!W;return m={visibility:m,zIndex:$||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(m.opacity=this.opacity),it&&(this[n]=W=this.chart.renderer.g().add(F)),W.addClass("highcharts-"+f+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(W.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),W.attr(m)[it?"attr":"animate"](this.getPlotBox(f)),W}getPlotBox(n){let f=this.xAxis,m=this.yAxis;const $=this.chart;return n=$.inverted&&!$.polar&&f&&this.invertible!==!1&&n==="series",$.inverted&&(f=m,m=this.xAxis),{translateX:f?f.left:$.plotLeft,translateY:m?m.top:$.plotTop,rotation:n?90:0,rotationOriginX:n?(f.len-m.len)/2:0,rotationOriginY:n?(f.len+m.len)/2:0,scaleX:n?-1:1,scaleY:1}}removeEvents(n){n||s(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(f){f()}),this.eventsToUnbind.length=0)}render(){const n=this;var f=n.chart;const m=n.options,$=x(m.animation),F=n.visible?"inherit":"hidden",W=m.zIndex,it=n.hasRendered;f=f.seriesGroup;let nt=n.finishedAnimating?0:$.duration;i(this,"render"),n.plotGroup("group","series",F,W,f),n.markerGroup=n.plotGroup("markerGroup","markers",F,W,f),m.clip!==!1&&n.setClip(),n.animate&&nt&&n.animate(!0),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),n.drawDataLabels&&n.drawDataLabels(),n.redrawPoints&&n.redrawPoints(),n.drawTracker&&m.enableMouseTracking&&n.drawTracker(),n.animate&&nt&&n.animate(),it||(nt&&$.defer&&(nt+=$.defer),n.animationTimeout=z(function(){n.afterAnimate()},nt||0)),n.isDirty=!1,n.hasRendered=!0,i(n,"afterRender")}redraw(){const n=this.isDirty||this.isDirtyData;this.translate(),this.render(),n&&delete this.kdTree}searchPoint(n,f){const m=this.xAxis,$=this.yAxis,F=this.chart.inverted;return this.searchKDTree({clientX:F?m.len-n.chartY+m.pos:n.chartX-m.pos,plotY:F?$.len-n.chartX+$.pos:n.chartY-$.pos},f,n)}buildKDTree(n){function f(F,W,it){var nt=F&&F.length;let lt;if(nt)return lt=m.kdAxisArray[W%it],F.sort(function(ht,pt){return ht[lt]-pt[lt]}),nt=Math.floor(nt/2),{point:F[nt],left:f(F.slice(0,nt),W+1,it),right:f(F.slice(nt+1),W+1,it)}}this.buildingKdTree=!0;const m=this,$=-1<m.options.findNearestPointBy.indexOf("y")?2:1;delete m.kdTree,z(function(){m.kdTree=f(m.getValidPoints(null,!m.directTouch),$,$),m.buildingKdTree=!1},m.options.kdNow||n&&n.type==="touchstart"?0:1)}searchKDTree(n,f,m){function $(lt,ht,pt,D){const C=ht.point;var Q=F.kdAxisArray[pt%D];let U=C;var et=r(lt[W])&&r(C[W])?Math.pow(lt[W]-C[W],2):null,dt=r(lt[it])&&r(C[it])?Math.pow(lt[it]-C[it],2):null;return dt=(et||0)+(dt||0),C.dist=r(dt)?Math.sqrt(dt):Number.MAX_VALUE,C.distX=r(et)?Math.sqrt(et):Number.MAX_VALUE,Q=lt[Q]-C[Q],dt=0>Q?"left":"right",et=0>Q?"right":"left",ht[dt]&&(dt=$(lt,ht[dt],pt+1,D),U=dt[nt]<U[nt]?dt:C),ht[et]&&Math.sqrt(Q*Q)<U[nt]&&(lt=$(lt,ht[et],pt+1,D),U=lt[nt]<U[nt]?lt:U),U}const F=this,W=this.kdAxisArray[0],it=this.kdAxisArray[1],nt=f?"distX":"dist";if(f=-1<F.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(m),this.kdTree)return $(n,this.kdTree,f,f)}pointPlacementToXValue(){const{options:{pointPlacement:n,pointRange:f},xAxis:m}=this;let $=n;return $==="between"&&($=m.reversed?-.5:.5),w($)?$*(f||m.pointRange):0}isPointInside(n){const{chart:f,xAxis:m,yAxis:$}=this;return typeof n.plotY<"u"&&typeof n.plotX<"u"&&0<=n.plotY&&n.plotY<=($?$.len:f.plotHeight)&&0<=n.plotX&&n.plotX<=(m?m.len:f.plotWidth)}drawTracker(){const n=this,f=n.options,m=f.trackByArea,$=[].concat(m?n.areaPath:n.graphPath),F=n.chart,W=F.pointer,it=F.renderer,nt=F.options.tooltip.snap,lt=n.tracker,ht=function(D){f.enableMouseTracking&&F.hoverSeries!==n&&n.onMouseOver()},pt="rgba(192,192,192,"+(y?1e-4:.002)+")";lt?lt.attr({d:$}):n.graph&&(n.tracker=it.path($).attr({visibility:n.visible?"inherit":"hidden",zIndex:2}).addClass(m?"highcharts-tracker-area":"highcharts-tracker-line").add(n.group),F.styledMode||n.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:pt,fill:m?pt:"none","stroke-width":n.graph.strokeWidth()+(m?0:2*nt)}),[n.tracker,n.markerGroup,n.dataLabelsGroup].forEach(function(D){D&&(D.addClass("highcharts-tracker").on("mouseover",ht).on("mouseout",function(C){W.onTrackerMouseOut(C)}),f.cursor&&!F.styledMode&&D.css({cursor:f.cursor}),c)&&D.on("touchstart",ht)})),i(this,"afterDrawTracker")}addPoint(n,f,m,$,F){const W=this.options,it=this.data,nt=this.chart;var lt=this.xAxis;lt=lt&<.hasNames&<.names;const ht=W.data,pt=this.xData;let D,C;f=j(f,!0);const Q={series:this};this.pointClass.prototype.applyOptions.apply(Q,[n]);const U=Q.x;if(C=pt.length,this.requireSorting&&U<pt[C-1])for(D=!0;C&&pt[C-1]>U;)C--;this.updateParallelArrays(Q,"splice",[C,0,0]),this.updateParallelArrays(Q,C),lt&&Q.name&&(lt[U]=Q.name),ht.splice(C,0,n),(D||this.processedData)&&(this.data.splice(C,0,null),this.processData()),W.legendType==="point"&&this.generatePoints(),m&&(it[0]&&it[0].remove?it[0].remove(!1):(it.shift(),this.updateParallelArrays(Q,"shift"),ht.shift())),F!==!1&&i(this,"addPoint",{point:Q}),this.isDirtyData=this.isDirty=!0,f&&nt.redraw($)}removePoint(n,f,m){const $=this,F=$.data,W=F[n],it=$.points,nt=$.chart,lt=function(){it&&it.length===F.length&&it.splice(n,1),F.splice(n,1),$.options.data.splice(n,1),$.updateParallelArrays(W||{series:$},"splice",[n,1]),W&&W.destroy(),$.isDirty=!0,$.isDirtyData=!0,f&&nt.redraw()};b(m,nt),f=j(f,!0),W?W.firePointEvent("remove",null,lt):lt()}remove(n,f,m,$){function F(){W.destroy($),it.isDirtyLegend=it.isDirtyBox=!0,it.linkSeries($),j(n,!0)&&it.redraw(f)}const W=this,it=W.chart;m!==!1?i(W,"remove",null,F):F()}update(n,f){n=p(n,this.userOptions),i(this,"update",{options:n});const m=this,$=m.chart;var F=m.userOptions;const W=m.initialType||m.type;var it=$.options.plotOptions;const nt=g[W].prototype;var lt=m.finishedAnimating&&{animation:!1};const ht={};let pt,D=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],C=n.type||F.type||$.options.chart.type;const Q=!(this.hasDerivedData||C&&C!==this.type||typeof n.pointStart<"u"||typeof n.pointInterval<"u"||typeof n.relativeXValue<"u"||n.joinBy||n.mapData||m.hasOptionChanged("dataGrouping")||m.hasOptionChanged("pointStart")||m.hasOptionChanged("pointInterval")||m.hasOptionChanged("pointIntervalUnit")||m.hasOptionChanged("keys"));if(C=C||W,Q&&(D.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),n.visible!==!1&&D.push("area","graph"),m.parallelArrays.forEach(function(U){D.push(U+"Data")}),n.data&&(n.dataSorting&&e(m.options.dataSorting,n.dataSorting),this.setData(n.data,!1))),n=K(F,lt,{index:typeof F.index>"u"?m.index:F.index,pointStart:j(it&&it.series&&it.series.pointStart,F.pointStart,m.xData[0])},!Q&&{data:m.options.data},n),Q&&n.data&&(n.data=m.options.data),D=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(D),D.forEach(function(U){D[U]=m[U],delete m[U]}),it=!1,g[C]){if(it=C!==m.type,m.remove(!1,!1,!1,!0),it)if(Object.setPrototypeOf)Object.setPrototypeOf(m,g[C].prototype);else{lt=Object.hasOwnProperty.call(m,"hcEvents")&&m.hcEvents;for(pt in nt)m[pt]=void 0;e(m,g[C].prototype),lt?m.hcEvents=lt:delete m.hcEvents}}else d(17,!0,$,{missingModuleFor:C});if(D.forEach(function(U){m[U]=D[U]}),m.init($,n),Q&&this.points){if(n=m.options,n.visible===!1)ht.graphic=1,ht.dataLabel=1;else if(!m._hasPointLabels){const{marker:U,dataLabels:et}=n;F=F.marker||{},!U||U.enabled!==!1&&F.symbol===U.symbol&&F.height===U.height&&F.width===U.width||(ht.graphic=1),et&&et.enabled===!1&&(ht.dataLabel=1)}for(const U of this.points)U&&U.series&&(U.resolveColor(),Object.keys(ht).length&&U.destroyElements(ht),n.showInLegend===!1&&U.legendItem&&$.legend.destroyItem(U))}m.initialType=W,$.linkSeries(),it&&m.linkedSeries.length&&(m.isDirtyData=!0),i(this,"afterUpdate"),j(f,!0)&&$.redraw(Q?void 0:!1)}setName(n){this.name=this.options.name=this.userOptions.name=n,this.chart.isDirtyLegend=!0}hasOptionChanged(n){const f=this.options[n],m=this.chart.options.plotOptions,$=this.userOptions[n];return $?f!==$:f!==j(m&&m[this.type]&&m[this.type][n],m&&m.series&&m.series[n],f)}onMouseOver(){const n=this.chart,f=n.hoverSeries;n.pointer.setHoverChartIndex(),f&&f!==this&&f.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),n.hoverSeries=this}onMouseOut(){const n=this.options,f=this.chart,m=f.tooltip,$=f.hoverPoint;f.hoverSeries=null,$&&$.onMouseOut(),this&&n.events.mouseOut&&i(this,"mouseOut"),!m||this.stickyTracking||m.shared&&!this.noSharedTooltip||m.hide(),f.series.forEach(function(F){F.setState("",!0)})}setState(n,f){const m=this;var $=m.options;const F=m.graph,W=$.inactiveOtherPoints,it=$.states,nt=j(it[n||"normal"]&&it[n||"normal"].animation,m.chart.options.chart.animation);let lt=$.lineWidth,ht=0,pt=$.opacity;if(n=n||"",m.state!==n&&([m.group,m.markerGroup,m.dataLabelsGroup].forEach(function(D){D&&(m.state&&D.removeClass("highcharts-series-"+m.state),n&&D.addClass("highcharts-series-"+n))}),m.state=n,!m.chart.styledMode)){if(it[n]&&it[n].enabled===!1)return;if(n&&(lt=it[n].lineWidth||lt+(it[n].lineWidthPlus||0),pt=j(it[n].opacity,pt)),F&&!F.dashstyle&&w(lt))for($={"stroke-width":lt},F.animate($,nt);m["zone-graph-"+ht];)m["zone-graph-"+ht].animate($,nt),ht+=1;W||[m.group,m.markerGroup,m.dataLabelsGroup,m.labelBySeries].forEach(function(D){D&&D.animate({opacity:pt},nt)})}f&&W&&m.points&&m.setAllPointsToState(n||void 0)}setAllPointsToState(n){this.points.forEach(function(f){f.setState&&f.setState(n)})}setVisible(n,f){const m=this,$=m.chart,F=$.options.chart.ignoreHiddenSeries,W=m.visible,it=(m.visible=n=m.options.visible=m.userOptions.visible=typeof n>"u"?!W:n)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(nt){m[nt]&&m[nt][it]()}),($.hoverSeries===m||($.hoverPoint&&$.hoverPoint.series)===m)&&m.onMouseOut(),m.legendItem&&$.legend.colorizeItem(m,n),m.isDirty=!0,m.options.stacking&&$.series.forEach(function(nt){nt.options.stacking&&nt.visible&&(nt.isDirty=!0)}),m.linkedSeries.forEach(function(nt){nt.setVisible(n,!1)}),F&&($.isDirtyBox=!0),i(m,it),f!==!1&&$.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(n){this.selected=n=this.options.selected=typeof n>"u"?!this.selected:n,this.checkbox&&(this.checkbox.checked=n),i(this,n?"select":"unselect")}shouldShowTooltip(n,f,m={}){return m.series=this,m.visiblePlotOnly=!0,this.chart.isInsidePlot(n,f,m)}drawLegendSymbol(n,f){var m;(m=J[this.options.legendSymbol||"rectangle"])===null||m===void 0||m.call(this,n,f)}}return I.defaultOptions=Y,I.types=O.seriesTypes,I.registerType=O.registerSeriesType,e(I.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:X,requireSorting:!0,sorted:!0}),O.series=I,I}),st(T,"Core/Chart/Chart.js",[T["Core/Animation/AnimationUtilities.js"],T["Core/Axis/Axis.js"],T["Core/Defaults.js"],T["Core/Templating.js"],T["Core/Foundation.js"],T["Core/Globals.js"],T["Core/Renderer/RendererRegistry.js"],T["Core/Series/Series.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Renderer/SVG/SVGRenderer.js"],T["Core/Time.js"],T["Core/Utilities.js"],T["Core/Renderer/HTML/AST.js"]],function(B,P,G,q,J,X,Y,O,N,R,x,b,E){const{animate:L,animObject:c,setAnimation:y}=B,{defaultOptions:v,defaultTime:g}=G,{numberFormat:A}=q,{registerEventOptions:k}=J,{charts:S,doc:o,marginNames:r,svg:p,win:h}=X,{seriesTypes:d}=N,{addEvent:e,attr:t,createElement:i,css:l,defined:u,diffObjects:_,discardElement:a,erase:w,error:H,extend:K,find:rt,fireEvent:j,getStyle:s,isArray:M,isNumber:z,isObject:I,isString:V,merge:n,objectEach:f,pick:m,pInt:$,relativeLength:F,removeEvent:W,splat:it,syncTimeout:nt,uniqueKey:lt}=b;class ht{static chart(D,C,Q){return new ht(D,C,Q)}constructor(D,C,Q){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.zooming=this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(D,C,Q)}getArgs(D,C,Q){V(D)||D.nodeName?(this.renderTo=D,this.init(C,Q)):this.init(D,C)}setZoomOptions(){const D=this.options.chart,C=D.zooming;this.zooming=Object.assign(Object.assign({},C),{type:m(D.zoomType,C.type),key:m(D.zoomKey,C.key),pinchType:m(D.pinchType,C.pinchType),singleTouch:m(D.zoomBySingleTouch,C.singleTouch,!1),resetButton:n(C.resetButton,D.resetZoomButton)})}init(D,C){j(this,"init",{args:arguments},function(){const Q=n(v,D),U=Q.chart;this.userOptions=K({},D),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=C,this.isResizing=0,this.options=Q,this.axes=[],this.series=[],this.time=D.time&&Object.keys(D.time).length?new x(D.time):X.time,this.numberFormatter=U.numberFormatter||A,this.styledMode=U.styledMode,this.hasCartesianSeries=U.showAxes,this.index=S.length,S.push(this),X.chartCount++,k(this,U),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),j(this,"afterInit"),this.firstRender()})}initSeries(D){var C=this.options.chart;C=D.type||C.type;const Q=d[C];return Q||H(17,!0,this,{missingModuleFor:C}),C=new Q,typeof C.init=="function"&&C.init(this,D),C}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(D){D.points||D.data||!D.enabledDataSorting||D.setData(D.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(D,C){return D.linkedSeries.length||C.linkedSeries.length?C.linkedSeries.length-D.linkedSeries.length:0})}orderItems(D,C=0){const Q=this[D],U=this.options[D]=it(this.options[D]).slice();if(D=this.userOptions[D]=this.userOptions[D]?it(this.userOptions[D]).slice():[],this.hasRendered&&(U.splice(C),D.splice(C)),Q)for(let et=C,dt=Q.length;et<dt;++et)(C=Q[et])&&(C.index=et,C instanceof O&&(C.name=C.getName()),C.options.isInternal||(U[et]=C.options,D[et]=C.userOptions))}isInsidePlot(D,C,Q={}){const{inverted:U,plotBox:et,plotLeft:dt,plotTop:ct,scrollablePlotBox:yt}=this;var vt=0;let gt=0;Q.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:vt,scrollTop:gt}=this.scrollingContainer);const xt=Q.series,Ct=Q.visiblePlotOnly&&yt||et;var bt=Q.inverted?C:D;if(C=Q.inverted?D:C,D={x:bt,y:C,isInsidePlot:!0,options:Q},!Q.ignoreX){const St=xt&&(U&&!this.polar?xt.yAxis:xt.xAxis)||{pos:dt,len:1/0};bt=Q.paneCoordinates?St.pos+bt:dt+bt,bt>=Math.max(vt+dt,St.pos)&&bt<=Math.min(vt+dt+Ct.width,St.pos+St.len)||(D.isInsidePlot=!1)}return!Q.ignoreY&&D.isInsidePlot&&(vt=!U&&Q.axis&&!Q.axis.isXAxis&&Q.axis||xt&&(U?xt.xAxis:xt.yAxis)||{pos:ct,len:1/0},Q=Q.paneCoordinates?vt.pos+C:ct+C,Q>=Math.max(gt+ct,vt.pos)&&Q<=Math.min(gt+ct+Ct.height,vt.pos+vt.len)||(D.isInsidePlot=!1)),j(this,"afterIsInsidePlot",D),D.isInsidePlot}redraw(D){j(this,"beforeRedraw");const C=this.hasCartesianSeries?this.axes:this.colorAxis||[],Q=this.series,U=this.pointer,et=this.legend,dt=this.userOptions.legend,ct=this.renderer,yt=ct.isHidden(),vt=[];let gt,xt,Ct=this.isDirtyBox,bt=this.isDirtyLegend,St;for(ct.rootFontSize=ct.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),y(this.hasRendered?D:!1,this),yt&&this.temporaryDisplay(),this.layOutTitles(!1),D=Q.length;D--;)if(St=Q[D],(St.options.stacking||St.options.centerInCategory)&&(xt=!0,St.isDirty)){gt=!0;break}if(gt)for(D=Q.length;D--;)St=Q[D],St.options.stacking&&(St.isDirty=!0);Q.forEach(function(Mt){Mt.isDirty&&(Mt.options.legendType==="point"?(typeof Mt.updateTotals=="function"&&Mt.updateTotals(),bt=!0):dt&&(dt.labelFormatter||dt.labelFormat)&&(bt=!0)),Mt.isDirtyData&&j(Mt,"updatedData")}),bt&&et&&et.options.enabled&&(et.render(),this.isDirtyLegend=!1),xt&&this.getStacks(),C.forEach(function(Mt){Mt.updateNames(),Mt.setScale()}),this.getMargins(),C.forEach(function(Mt){Mt.isDirty&&(Ct=!0)}),C.forEach(function(Mt){const Et=Mt.min+","+Mt.max;Mt.extKey!==Et&&(Mt.extKey=Et,vt.push(function(){j(Mt,"afterSetExtremes",K(Mt.eventArgs,Mt.getExtremes())),delete Mt.eventArgs})),(Ct||xt)&&Mt.redraw()}),Ct&&this.drawChartBox(),j(this,"predraw"),Q.forEach(function(Mt){(Ct||Mt.isDirty)&&Mt.visible&&Mt.redraw(),Mt.isDirtyData=!1}),U&&U.reset(!0),ct.draw(),j(this,"redraw"),j(this,"render"),yt&&this.temporaryDisplay(!0),vt.forEach(function(Mt){Mt.call()})}get(D){function C(et){return et.id===D||et.options&&et.options.id===D}const Q=this.series;let U=rt(this.axes,C)||rt(this.series,C);for(let et=0;!U&&et<Q.length;et++)U=rt(Q[et].points||[],C);return U}getAxes(){const D=this.options;j(this,"getAxes");for(const C of["xAxis","yAxis"]){const Q=D[C]=it(D[C]||{});for(const U of Q)new P(this,U,C)}j(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((D,C)=>(C.getPointsCollection().forEach(Q=>{m(Q.selectedStaging,Q.selected)&&D.push(Q)}),D),[])}getSelectedSeries(){return this.series.filter(function(D){return D.selected})}setTitle(D,C,Q){this.applyDescription("title",D),this.applyDescription("subtitle",C),this.applyDescription("caption",void 0),this.layOutTitles(Q)}applyDescription(D,C){const Q=this,U=this.options[D]=n(this.options[D],C);let et=this[D];et&&C&&(this[D]=et=et.destroy()),U&&!et&&(et=this.renderer.text(U.text,0,0,U.useHTML).attr({align:U.align,class:"highcharts-"+D,zIndex:U.zIndex||4}).add(),et.update=function(dt,ct){Q.applyDescription(D,dt),Q.layOutTitles(ct)},this.styledMode||et.css(K(D==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},U.style)),this[D]=et)}layOutTitles(D=!0){const C=[0,0,0],Q=this.renderer,U=this.spacingBox;["title","subtitle","caption"].forEach(function(dt){const ct=this[dt],yt=this.options[dt],vt=yt.verticalAlign||"top";if(dt=dt==="title"?vt==="top"?-3:0:vt==="top"?C[0]+2:0,ct){ct.css({width:(yt.width||U.width+(yt.widthAdjust||0))+"px"});const gt=Q.fontMetrics(ct).b,xt=Math.round(ct.getBBox(yt.useHTML).height);ct.align(K({y:vt==="bottom"?gt:dt+gt,height:xt},yt),!1,"spacingBox"),yt.floating||(vt==="top"?C[0]=Math.ceil(C[0]+xt):vt==="bottom"&&(C[2]=Math.ceil(C[2]+xt)))}},this),C[0]&&(this.options.title.verticalAlign||"top")==="top"&&(C[0]+=this.options.title.margin),C[2]&&this.options.caption.verticalAlign==="bottom"&&(C[2]+=this.options.caption.margin);const et=!this.titleOffset||this.titleOffset.join(",")!==C.join(",");this.titleOffset=C,j(this,"afterLayOutTitles"),!this.isDirtyBox&&et&&(this.isDirtyBox=this.isDirtyLegend=et,this.hasRendered&&D&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:s(this.renderTo,"width",!0)||0,height:s(this.renderTo,"height",!0)||0}}getChartSize(){var D=this.options.chart;const C=D.width;D=D.height;const Q=this.getContainerBox();this.chartWidth=Math.max(0,C||Q.width||600),this.chartHeight=Math.max(0,F(D,this.chartWidth)||(1<Q.height?Q.height:400)),this.containerBox=Q}temporaryDisplay(D){let C=this.renderTo;if(D)for(;C&&C.style;)C.hcOrigStyle&&(l(C,C.hcOrigStyle),delete C.hcOrigStyle),C.hcOrigDetached&&(o.body.removeChild(C),C.hcOrigDetached=!1),C=C.parentNode;else for(;C&&C.style&&(o.body.contains(C)||C.parentNode||(C.hcOrigDetached=!0,o.body.appendChild(C)),(s(C,"display",!1)==="none"||C.hcOricDetached)&&(C.hcOrigStyle={display:C.style.display,height:C.style.height,overflow:C.style.overflow},D={display:"block",overflow:"hidden"},C!==this.renderTo&&(D.height=0),l(C,D),C.offsetWidth||C.style.setProperty("display","block","important")),C=C.parentNode,C!==o.body););}setClassName(D){this.container.className="highcharts-container "+(D||"")}getContainer(){const D=this.options,C=D.chart;var Q=lt();let U,et=this.renderTo;et||(this.renderTo=et=C.renderTo),V(et)&&(this.renderTo=et=o.getElementById(et)),et||H(13,!0,this);var dt=$(t(et,"data-highcharts-chart"));z(dt)&&S[dt]&&S[dt].hasRendered&&S[dt].destroy(),t(et,"data-highcharts-chart",this.index),et.innerHTML=E.emptyHTML,C.skipClone||et.offsetWidth||this.temporaryDisplay(),this.getChartSize(),dt=this.chartWidth;const ct=this.chartHeight;if(l(et,{overflow:"hidden"}),this.styledMode||(U=K({position:"relative",overflow:"hidden",width:dt+"px",height:ct+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},C.style||{})),this.container=Q=i("div",{id:Q},U,et),this._cursor=Q.style.cursor,this.renderer=new(C.renderer||!p?Y.getRendererType(C.renderer):R)(Q,dt,ct,void 0,C.forExport,D.exporting&&D.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),y(void 0,this),this.setClassName(C.className),this.styledMode)for(const yt in D.defs)this.renderer.definition(D.defs[yt]);else this.renderer.setStyle(C.style);this.renderer.chartIndex=this.index,j(this,"afterGetContainer")}getMargins(D){const{spacing:C,margin:Q,titleOffset:U}=this;this.resetMargins(),U[0]&&!u(Q[0])&&(this.plotTop=Math.max(this.plotTop,U[0]+C[0])),U[2]&&!u(Q[2])&&(this.marginBottom=Math.max(this.marginBottom,U[2]+C[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Q,C),j(this,"getMargins"),D||this.getAxisMargins()}getAxisMargins(){const D=this,C=D.axisOffset=[0,0,0,0],Q=D.colorAxis,U=D.margin,et=function(dt){dt.forEach(function(ct){ct.visible&&ct.getOffset()})};D.hasCartesianSeries?et(D.axes):Q&&Q.length&&et(Q),r.forEach(function(dt,ct){u(U[ct])||(D[dt]+=C[ct])}),D.setChartSize()}getOptions(){return _(this.userOptions,v)}reflow(D){const C=this;var Q=C.options.chart;Q=u(Q.width)&&u(Q.height);const U=C.containerBox,et=C.getContainerBox();delete C.pointer.chartPosition,!Q&&!C.isPrinting&&U&&et.width&&((et.width!==U.width||et.height!==U.height)&&(b.clearTimeout(C.reflowTimeout),C.reflowTimeout=nt(function(){C.container&&C.setSize(void 0,void 0,!1)},D?100:0)),C.containerBox=et)}setReflow(){const D=this;var C=Q=>{var U;!((U=D.options)===null||U===void 0)&&U.chart.reflow&&D.hasLoaded&&D.reflow(Q)};typeof ResizeObserver=="function"?new ResizeObserver(C).observe(D.renderTo):(C=e(h,"resize",C),e(this,"destroy",C))}setSize(D,C,Q){const U=this,et=U.renderer;U.isResizing+=1,y(Q,U),Q=et.globalAnimation,U.oldChartHeight=U.chartHeight,U.oldChartWidth=U.chartWidth,typeof D<"u"&&(U.options.chart.width=D),typeof C<"u"&&(U.options.chart.height=C),U.getChartSize(),U.styledMode||(Q?L:l)(U.container,{width:U.chartWidth+"px",height:U.chartHeight+"px"},Q),U.setChartSize(!0),et.setSize(U.chartWidth,U.chartHeight,Q),U.axes.forEach(function(dt){dt.isDirty=!0,dt.setScale()}),U.isDirtyLegend=!0,U.isDirtyBox=!0,U.layOutTitles(),U.getMargins(),U.redraw(Q),U.oldChartHeight=null,j(U,"resize"),nt(function(){U&&j(U,"endResize",null,function(){--U.isResizing})},c(Q).duration)}setChartSize(D){var C=this.inverted;const Q=this.renderer;var U=this.chartWidth,et=this.chartHeight;const dt=this.options.chart,ct=this.spacing,yt=this.clipOffset;let vt,gt,xt,Ct;this.plotLeft=vt=Math.round(this.plotLeft),this.plotTop=gt=Math.round(this.plotTop),this.plotWidth=xt=Math.max(0,Math.round(U-vt-this.marginRight)),this.plotHeight=Ct=Math.max(0,Math.round(et-gt-this.marginBottom)),this.plotSizeX=C?Ct:xt,this.plotSizeY=C?xt:Ct,this.plotBorderWidth=dt.plotBorderWidth||0,this.spacingBox=Q.spacingBox={x:ct[3],y:ct[0],width:U-ct[3]-ct[1],height:et-ct[0]-ct[2]},this.plotBox=Q.plotBox={x:vt,y:gt,width:xt,height:Ct},C=2*Math.floor(this.plotBorderWidth/2),U=Math.ceil(Math.max(C,yt[3])/2),et=Math.ceil(Math.max(C,yt[0])/2),this.clipBox={x:U,y:et,width:Math.floor(this.plotSizeX-Math.max(C,yt[1])/2-U),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(C,yt[2])/2-et))},D||(this.axes.forEach(function(bt){bt.setAxisSize(),bt.setAxisTranslation()}),Q.alignElements()),j(this,"afterSetChartSize",{skipAxes:D})}resetMargins(){j(this,"resetMargins");const D=this,C=D.options.chart;["margin","spacing"].forEach(function(Q){const U=C[Q],et=I(U)?U:[U,U,U,U];["Top","Right","Bottom","Left"].forEach(function(dt,ct){D[Q][ct]=m(C[Q+dt],et[ct])})}),r.forEach(function(Q,U){D[Q]=m(D.margin[U],D.spacing[U])}),D.axisOffset=[0,0,0,0],D.clipOffset=[0,0,0,0]}drawChartBox(){const D=this.options.chart,C=this.renderer,Q=this.chartWidth,U=this.chartHeight,et=this.styledMode,dt=this.plotBGImage;var ct=D.backgroundColor;const yt=D.plotBackgroundColor,vt=D.plotBackgroundImage,gt=this.plotLeft,xt=this.plotTop,Ct=this.plotWidth,bt=this.plotHeight,St=this.plotBox,Mt=this.clipRect,Et=this.clipBox;let _t=this.chartBackground,Rt=this.plotBackground,Ft=this.plotBorder,Lt,Ut,Nt="animate";_t||(this.chartBackground=_t=C.rect().addClass("highcharts-background").add(),Nt="attr"),et?Lt=Ut=_t.strokeWidth():(Lt=D.borderWidth||0,Ut=Lt+(D.shadow?8:0),ct={fill:ct||"none"},(Lt||_t["stroke-width"])&&(ct.stroke=D.borderColor,ct["stroke-width"]=Lt),_t.attr(ct).shadow(D.shadow)),_t[Nt]({x:Ut/2,y:Ut/2,width:Q-Ut-Lt%2,height:U-Ut-Lt%2,r:D.borderRadius}),Nt="animate",Rt||(Nt="attr",this.plotBackground=Rt=C.rect().addClass("highcharts-plot-background").add()),Rt[Nt](St),et||(Rt.attr({fill:yt||"none"}).shadow(D.plotShadow),vt&&(dt?(vt!==dt.attr("href")&&dt.attr("href",vt),dt.animate(St)):this.plotBGImage=C.image(vt,gt,xt,Ct,bt).add())),Mt?Mt.animate({width:Et.width,height:Et.height}):this.clipRect=C.clipRect(Et),Nt="animate",Ft||(Nt="attr",this.plotBorder=Ft=C.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),et||Ft.attr({stroke:D.plotBorderColor,"stroke-width":D.plotBorderWidth||0,fill:"none"}),Ft[Nt](Ft.crisp({x:gt,y:xt,width:Ct,height:bt},-Ft.strokeWidth())),this.isDirtyBox=!1,j(this,"afterDrawChartBox")}propFromSeries(){const D=this,C=D.options.chart,Q=D.options.series;let U,et,dt;["inverted","angular","polar"].forEach(function(ct){for(et=d[C.type],dt=C[ct]||et&&et.prototype[ct],U=Q&&Q.length;!dt&&U--;)(et=d[Q[U].type])&&et.prototype[ct]&&(dt=!0);D[ct]=dt})}linkSeries(D){const C=this,Q=C.series;Q.forEach(function(U){U.linkedSeries.length=0}),Q.forEach(function(U){let et=U.options.linkedTo;V(et)&&(et=et===":previous"?C.series[U.index-1]:C.get(et))&&et.linkedParent!==U&&(et.linkedSeries.push(U),U.linkedParent=et,et.enabledDataSorting&&U.setDataSortingOptions(),U.visible=m(U.options.visible,et.options.visible,U.visible))}),j(this,"afterLinkSeries",{isUpdating:D})}renderSeries(){this.series.forEach(function(D){D.translate(),D.render()})}render(){const D=this.axes,C=this.colorAxis,Q=this.renderer,U=function(gt){gt.forEach(function(xt){xt.visible&&xt.render()})};let et=0;this.setTitle(),j(this,"beforeMargins"),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize();const dt=this.plotWidth;D.some(function(gt){if(gt.horiz&>.visible&>.options.labels.enabled&>.series.length)return et=21,!0});const ct=this.plotHeight=Math.max(this.plotHeight-et,0);D.forEach(function(gt){gt.setScale()}),this.getAxisMargins();const yt=1.1<dt/this.plotWidth,vt=1.05<ct/this.plotHeight;(yt||vt)&&(D.forEach(function(gt){(gt.horiz&&yt||!gt.horiz&&vt)&>.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?U(D):C&&C.length&&U(C),this.seriesGroup||(this.seriesGroup=Q.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(D){const C=this,Q=n(!0,this.options.credits,D);Q.enabled&&!this.credits&&(this.credits=this.renderer.text(Q.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Q.href&&(h.location.href=Q.href)}).attr({align:Q.position.align,zIndex:8}),C.styledMode||this.credits.css(Q.style),this.credits.add().align(Q.position),this.credits.update=function(U){C.credits=C.credits.destroy(),C.addCredits(U)})}destroy(){const D=this,C=D.axes,Q=D.series,U=D.container,et=U&&U.parentNode;let dt;for(j(D,"destroy"),D.renderer.forExport?w(S,D):S[D.index]=void 0,X.chartCount--,D.renderTo.removeAttribute("data-highcharts-chart"),W(D),dt=C.length;dt--;)C[dt]=C[dt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),dt=Q.length;dt--;)Q[dt]=Q[dt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ct){const yt=D[ct];yt&&yt.destroy&&(D[ct]=yt.destroy())}),U&&(U.innerHTML=E.emptyHTML,W(U),et&&a(U)),f(D,function(ct,yt){delete D[yt]})}firstRender(){const D=this,C=D.options;D.getContainer(),D.resetMargins(),D.setChartSize(),D.propFromSeries(),D.getAxes();const Q=M(C.series)?C.series:[];C.series=[],Q.forEach(function(U){D.initSeries(U)}),D.linkSeries(),D.setSeriesData(),j(D,"beforeRender"),D.render(),D.pointer.getChartPosition(),!D.renderer.imgCount&&!D.hasLoaded&&D.onload(),D.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(D){D&&typeof this.index<"u"&&D.apply(this,[this])},this),j(this,"load"),j(this,"render"),u(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){const{options:D,title:C}=this;D&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(C&&C.element.textContent||"").replace(/</g,"<")}),D.accessibility&&D.accessibility.enabled===!1||H('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(D,C,Q){const U=this;let et;return D&&(C=m(C,!0),j(U,"addSeries",{options:D},function(){et=U.initSeries(D),U.isDirtyLegend=!0,U.linkSeries(),et.enabledDataSorting&&et.setData(D.data,!1),j(U,"afterAddSeries",{series:et}),C&&U.redraw(Q)})),et}addAxis(D,C,Q,U){return this.createAxis(C?"xAxis":"yAxis",{axis:D,redraw:Q,animation:U})}addColorAxis(D,C,Q){return this.createAxis("colorAxis",{axis:D,redraw:C,animation:Q})}createAxis(D,C){return D=new P(this,C.axis,D),m(C.redraw,!0)&&this.redraw(C.animation),D}showLoading(D){const C=this,Q=C.options,U=Q.loading,et=function(){dt&&l(dt,{left:C.plotLeft+"px",top:C.plotTop+"px",width:C.plotWidth+"px",height:C.plotHeight+"px"})};let dt=C.loadingDiv,ct=C.loadingSpan;dt||(C.loadingDiv=dt=i("div",{className:"highcharts-loading highcharts-loading-hidden"},null,C.container)),ct||(C.loadingSpan=ct=i("span",{className:"highcharts-loading-inner"},null,dt),e(C,"redraw",et)),dt.className="highcharts-loading",E.setElementHTML(ct,m(D,Q.lang.loading,"")),C.styledMode||(l(dt,K(U.style,{zIndex:10})),l(ct,U.labelStyle),C.loadingShown||(l(dt,{opacity:0,display:""}),L(dt,{opacity:U.style.opacity||.5},{duration:U.showDuration||0}))),C.loadingShown=!0,et()}hideLoading(){const D=this.options,C=this.loadingDiv;C&&(C.className="highcharts-loading highcharts-loading-hidden",this.styledMode||L(C,{opacity:0},{duration:D.loading.hideDuration||100,complete:function(){l(C,{display:"none"})}})),this.loadingShown=!1}update(D,C,Q,U){const et=this,dt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ct=D.isResponsiveOptions,yt=[];let vt,gt;j(et,"update",{options:D}),ct||et.setResponsive(!1,!0),D=_(D,et.options),et.userOptions=n(et.userOptions,D);var xt=D.chart;if(xt){if(n(!0,et.options.chart,xt),this.setZoomOptions(),"className"in xt&&et.setClassName(xt.className),"inverted"in xt||"polar"in xt||"type"in xt){et.propFromSeries();var Ct=!0}"alignTicks"in xt&&(Ct=!0),"events"in xt&&k(this,xt),f(xt,function(bt,St){et.propsRequireUpdateSeries.indexOf("chart."+St)!==-1&&(vt=!0),et.propsRequireDirtyBox.indexOf(St)!==-1&&(et.isDirtyBox=!0),et.propsRequireReflow.indexOf(St)!==-1&&(ct?et.isDirtyBox=!0:gt=!0)}),!et.styledMode&&xt.style&&et.renderer.setStyle(et.options.chart.style||{})}!et.styledMode&&D.colors&&(this.options.colors=D.colors),D.time&&(this.time===g&&(this.time=new x(D.time)),n(!0,et.options.time,D.time)),f(D,function(bt,St){et[St]&&typeof et[St].update=="function"?et[St].update(bt,!1):typeof et[dt[St]]=="function"?et[dt[St]](bt):St!=="colors"&&et.collectionsWithUpdate.indexOf(St)===-1&&n(!0,et.options[St],D[St]),St!=="chart"&&et.propsRequireUpdateSeries.indexOf(St)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(bt){D[bt]&&(it(D[bt]).forEach(function(St,Mt){const Et=u(St.id);let _t;Et&&(_t=et.get(St.id)),!_t&&et[bt]&&(_t=et[bt][m(St.index,Mt)])&&(Et&&u(_t.options.id)||_t.options.isInternal)&&(_t=void 0),_t&&_t.coll===bt&&(_t.update(St,!1),Q&&(_t.touched=!0)),!_t&&Q&&et.collectionsWithInit[bt]&&(et.collectionsWithInit[bt][0].apply(et,[St].concat(et.collectionsWithInit[bt][1]||[]).concat([!1])).touched=!0)}),Q&&et[bt].forEach(function(St){St.touched||St.options.isInternal?delete St.touched:yt.push(St)}))}),yt.forEach(function(bt){bt.chart&&bt.remove&&bt.remove(!1)}),Ct&&et.axes.forEach(function(bt){bt.update({},!1)}),vt&&et.getSeriesOrderByLinks().forEach(function(bt){bt.chart&&bt.update({},!1)},this),Ct=xt&&xt.width,xt=xt&&(V(xt.height)?F(xt.height,Ct||et.chartWidth):xt.height),gt||z(Ct)&&Ct!==et.chartWidth||z(xt)&&xt!==et.chartHeight?et.setSize(Ct,xt,U):m(C,!0)&&et.redraw(U),j(et,"afterUpdate",{options:D,redraw:C,animation:U})}setSubtitle(D,C){this.applyDescription("subtitle",D),this.layOutTitles(C)}setCaption(D,C){this.applyDescription("caption",D),this.layOutTitles(C)}showResetZoom(){function D(){C.zoomOut()}const C=this,Q=v.lang,U=C.zooming.resetButton,et=U.theme,dt=U.relativeTo==="chart"||U.relativeTo==="spacingBox"?null:"scrollablePlotBox";j(this,"beforeShowResetZoom",null,function(){C.resetZoomButton=C.renderer.button(Q.resetZoom,null,null,D,et).attr({align:U.position.align,title:Q.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(U.position,!1,dt)}),j(this,"afterShowResetZoom")}zoomOut(){j(this,"selection",{resetSelection:!0},this.zoom)}zoom(D){const C=this,Q=C.pointer;let U=!1,et;!D||D.resetSelection?(C.axes.forEach(function(ct){et=ct.zoom()}),Q.initiated=!1):D.xAxis.concat(D.yAxis).forEach(function(ct){const yt=ct.axis;(Q[yt.isXAxis?"zoomX":"zoomY"]&&u(Q.mouseDownX)&&u(Q.mouseDownY)&&C.isInsidePlot(Q.mouseDownX-C.plotLeft,Q.mouseDownY-C.plotTop,{axis:yt})||!u(C.inverted?Q.mouseDownX:Q.mouseDownY))&&(et=yt.zoom(ct.min,ct.max),yt.displayBtn&&(U=!0))});const dt=C.resetZoomButton;U&&!dt?C.showResetZoom():!U&&I(dt)&&(C.resetZoomButton=dt.destroy()),et&&C.redraw(m(C.options.chart.animation,D&&D.animation,100>C.pointCount))}pan(D,C){const Q=this,U=Q.hoverPoints;C=typeof C=="object"?C:{enabled:C,type:"x"};const et=Q.options.chart;et&&et.panning&&(et.panning=C);const dt=C.type;let ct;j(this,"pan",{originalEvent:D},function(){U&&U.forEach(function(gt){gt.setState()});let yt=Q.xAxis;dt==="xy"?yt=yt.concat(Q.yAxis):dt==="y"&&(yt=Q.yAxis);const vt={};yt.forEach(function(gt){if(gt.options.panningEnabled&&!gt.options.isInternal){var xt=gt.horiz,Ct=D[xt?"chartX":"chartY"];xt=xt?"mouseDownX":"mouseDownY";var bt=Q[xt],St=gt.minPointOffset||0,Mt=gt.reversed&&!Q.inverted||!gt.reversed&&Q.inverted?-1:1,Et=gt.getExtremes(),_t=gt.toValue(bt-Ct,!0)+St*Mt,Rt=gt.toValue(bt+gt.len-Ct,!0)-(St*Mt||gt.isXAxis&>.pointRangePadding||0),Ft=Rt<_t;Mt=gt.hasVerticalPanning(),bt=Ft?Rt:_t,_t=Ft?_t:Rt;var Lt=gt.panningState;!Mt||gt.isXAxis||Lt&&!Lt.isDirty||gt.series.forEach(function(Ut){var Nt=Ut.getProcessedData(!0);Nt=Ut.getExtremes(Nt.yData,!0),Lt||(Lt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),z(Nt.dataMin)&&z(Nt.dataMax)&&(Lt.startMin=Math.min(m(Ut.options.threshold,1/0),Nt.dataMin,Lt.startMin),Lt.startMax=Math.max(m(Ut.options.threshold,-1/0),Nt.dataMax,Lt.startMax))}),Mt=Math.min(m(Lt&&Lt.startMin,Et.dataMin),St?Et.min:gt.toValue(gt.toPixels(Et.min)-gt.minPixelPadding)),Rt=Math.max(m(Lt&&Lt.startMax,Et.dataMax),St?Et.max:gt.toValue(gt.toPixels(Et.max)+gt.minPixelPadding)),gt.panningState=Lt,gt.isOrdinal||(St=Mt-bt,0<St&&(_t+=St,bt=Mt),St=_t-Rt,0<St&&(_t=Rt,bt-=St),gt.series.length&&bt!==Et.min&&_t!==Et.max&&bt>=Mt&&_t<=Rt&&(gt.setExtremes(bt,_t,!1,!1,{trigger:"pan"}),!Q.resetZoomButton&&bt!==Mt&&_t!==Rt&&dt.match("y")&&(Q.showResetZoom(),gt.displayBtn=!1),ct=!0),vt[xt]=Ct)}}),f(vt,(gt,xt)=>{Q[xt]=gt}),ct&&Q.redraw(!1),l(Q.container,{cursor:"move"})})}}return K(ht.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ht.prototype.addAxis,[!0]],yAxis:[ht.prototype.addAxis,[!1]],series:[ht.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),ht}),st(T,"Extensions/ScrollablePlotArea.js",[T["Core/Animation/AnimationUtilities.js"],T["Core/Axis/Axis.js"],T["Core/Chart/Chart.js"],T["Core/Series/Series.js"],T["Core/Renderer/RendererRegistry.js"],T["Core/Utilities.js"]],function(B,P,G,q,J,X){const{stop:Y}=B,{addEvent:O,createElement:N,defined:R,merge:x,pick:b}=X;O(G,"afterSetChartSize",function(E){var L=this.options.chart.scrollablePlotArea,c=L&&L.minWidth;L=L&&L.minHeight;let y;this.renderer.forExport||(c?(this.scrollablePixelsX=c=Math.max(0,c-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.width=this.plotWidth+=c,this.inverted?this.clipBox.height+=c:this.clipBox.width+=c,y={1:{name:"right",value:c}}):L&&(this.scrollablePixelsY=c=Math.max(0,L-this.chartHeight),R(c)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.height=this.plotHeight+=c,this.inverted?this.clipBox.width+=c:this.clipBox.height+=c,y={2:{name:"bottom",value:c}})),y&&!E.skipAxes&&this.axes.forEach(function(v){y[v.side]?v.getPlotLinePath=function(){let g=y[v.side].name,A=this[g],k;return this[g]=A-y[v.side].value,k=P.prototype.getPlotLinePath.apply(this,arguments),this[g]=A,k}:(v.setAxisSize(),v.setAxisTranslation())}))}),O(G,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),G.prototype.setUpScrolling=function(){const E={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(E.overflowX="auto"),this.scrollablePixelsY&&(E.overflowY="auto"),this.scrollingParent=N("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=N("div",{className:"highcharts-scrolling"},E,this.scrollingParent);let L;O(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(L=this.hoverPoint),this.pointer.runPointActions(void 0,L,!0))}),this.innerContainer=N("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},G.prototype.moveFixedElements=function(){let E=this.container,L=this.fixedRenderer,c=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),y;this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&c.push(`${y}:not(.highcharts-radial-axis)`,`${y}-labels:not(.highcharts-radial-axis-labels)`),c.forEach(function(v){[].forEach.call(E.querySelectorAll(v),function(g){(g.namespaceURI===L.SVG_NS?L.box:L.box.parentNode).appendChild(g),g.style.pointerEvents="auto"})})},G.prototype.applyFixed=function(){var E=!this.fixedDiv,L=this.options.chart,c=L.scrollablePlotArea,y=J.getRendererType();E?(this.fixedDiv=N("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(L.style&&L.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=L=new y(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=L.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":b(c.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),O(this,"afterShowResetZoom",this.moveFixedElements),O(this,"afterApplyDrilldown",this.moveFixedElements),O(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||E)&&(this.scrollableDirty=!1,this.moveFixedElements()),L=this.chartWidth+(this.scrollablePixelsX||0),y=this.chartHeight+(this.scrollablePixelsY||0),Y(this.container),this.container.style.width=L+"px",this.container.style.height=y+"px",this.renderer.boxWrapper.attr({width:L,height:y,viewBox:[0,0,L,y].join(" ")}),this.chartBackground.attr({width:L,height:y}),this.scrollingContainer.style.height=this.chartHeight+"px",E&&(c.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*c.scrollPositionX),c.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*c.scrollPositionY)),y=this.axisOffset,E=this.plotTop-y[0]-1,c=this.plotLeft-y[3]-1,L=this.plotTop+this.plotHeight+y[2]+1,y=this.plotLeft+this.plotWidth+y[1]+1;let v=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),g=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);E=this.scrollablePixelsX?[["M",0,E],["L",this.plotLeft-1,E],["L",this.plotLeft-1,L],["L",0,L],["Z"],["M",v,E],["L",this.chartWidth,E],["L",this.chartWidth,L],["L",v,L],["Z"]]:this.scrollablePixelsY?[["M",c,0],["L",c,this.plotTop-1],["L",y,this.plotTop-1],["L",y,0],["Z"],["M",c,g],["L",c,this.chartHeight],["L",y,this.chartHeight],["L",y,g],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:E})},O(P,"afterInit",function(){this.chart.scrollableDirty=!0}),O(q,"show",function(){this.chart.scrollableDirty=!0})}),st(T,"Core/Axis/Stacking/StackItem.js",[T["Core/Templating.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Utilities.js"]],function(B,P,G){const{format:q}=B,{series:J}=P,{destroyObjectProperties:X,fireEvent:Y,isNumber:O,pick:N}=G;class R{constructor(b,E,L,c,y){const v=b.chart.inverted,g=b.reversed;this.axis=b,b=this.isNegative=!!L!=!!g,this.options=E=E||{},this.x=c,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=y,this.rightCliff=this.leftCliff=0,this.alignOptions={align:E.align||(v?b?"left":"right":"center"),verticalAlign:E.verticalAlign||(v?"middle":b?"bottom":"top"),y:E.y,x:E.x},this.textAlign=E.textAlign||(v?b?"right":"left":"center")}destroy(){X(this,this.axis)}render(b){const E=this.axis.chart,L=this.options;var c=L.format;c=c?q(c,this,E):L.formatter.call(this),this.label?this.label.attr({text:c,visibility:"hidden"}):(this.label=E.renderer.label(c,null,void 0,L.shape,void 0,void 0,L.useHTML,!1,"stack-labels"),c={r:L.borderRadius||0,text:c,padding:N(L.padding,5),visibility:"hidden"},E.styledMode||(c.fill=L.backgroundColor,c.stroke=L.borderColor,c["stroke-width"]=L.borderWidth,this.label.css(L.style||{})),this.label.attr(c),this.label.added||this.label.add(b)),this.label.labelrank=E.plotSizeY,Y(this,"afterRender")}setOffset(b,E,L,c,y,v){const{alignOptions:g,axis:A,label:k,options:S,textAlign:o}=this,r=A.chart;L=this.getStackBox({xOffset:b,width:E,boxBottom:L,boxTop:c,defaultX:y,xAxis:v});var{verticalAlign:p}=g;if(k&&L){c=k.getBBox(),y=k.padding,v=N(S.overflow,"justify")==="justify",g.x=S.x||0,g.y=S.y||0;const{x:h,y:d}=this.adjustStackPosition({labelBox:c,verticalAlign:p,textAlign:o});L.x-=h,L.y-=d,k.align(g,!1,L),(p=r.isInsidePlot(k.alignAttr.x+g.x+h,k.alignAttr.y+g.y+d))||(v=!1),v&&J.prototype.justifyDataLabel.call(A,k,g,k.alignAttr,c,L),k.attr({x:k.alignAttr.x,y:k.alignAttr.y,rotation:S.rotation,rotationOriginX:c.width/2,rotationOriginY:c.height/2}),N(!v&&S.crop,!0)&&(p=O(k.x)&&O(k.y)&&r.isInsidePlot(k.x-y+k.width,k.y)&&r.isInsidePlot(k.x+y,k.y)),k[p?"show":"hide"]()}Y(this,"afterSetOffset",{xOffset:b,width:E})}adjustStackPosition({labelBox:b,verticalAlign:E,textAlign:L}){const c={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:b.width/2+b.width/2*c[L],y:b.height/2*c[E]}}getStackBox(b){var E=this.axis;const L=E.chart,{boxTop:c,defaultX:y,xOffset:v,width:g,boxBottom:A}=b;var k=E.stacking.usePercentage?100:N(c,this.total,0);k=E.toPixels(k),b=b.xAxis||L.xAxis[0];const S=N(y,b.translate(this.x))+v;E=E.toPixels(A||O(E.min)&&E.logarithmic&&E.logarithmic.lin2log(E.min)||0),E=Math.abs(k-E);const o=this.isNegative;return L.inverted?{x:(o?k:k-E)-L.plotLeft,y:b.height-S-g,width:E,height:g}:{x:S+b.transB-L.plotLeft,y:(o?k-E:k)-L.plotTop,width:g,height:E}}}return R}),st(T,"Core/Axis/Stacking/StackingAxis.js",[T["Core/Animation/AnimationUtilities.js"],T["Core/Axis/Axis.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Axis/Stacking/StackItem.js"],T["Core/Utilities.js"]],function(B,P,G,q,J){function X(){const e=this,t=e.inverted;e.yAxis.forEach(i=>{i.stacking&&i.stacking.stacks&&i.hasVisibleSeries&&(i.stacking.oldStacks=i.stacking.stacks)}),e.series.forEach(i=>{const l=i.xAxis&&i.xAxis.options||{};!i.options.stacking||i.visible!==!0&&e.options.chart.ignoreHiddenSeries!==!1||(i.stackKey=[i.type,p(i.options.stack,""),t?l.top:l.left,t?l.height:l.width].join())})}function Y(){const e=this.stacking;if(e){var t=e.stacks;r(t,function(i,l){A(i),t[l]=null}),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function O(){this.coll!=="yAxis"||this.stacking||(this.stacking=new h(this))}function N(e,t,i,l){return!g(e)||e.x!==t||l&&e.stackKey!==l?e={x:t,index:0,key:l,stackKey:l}:e.index++,e.key=[i,t,e.index].join(),e}function R(){const e=this,t=e.stackKey,i=e.yAxis.stacking.stacks,l=e.processedXData,u=e[e.options.stacking+"Stacker"];let _;u&&[t,"-"+t].forEach(a=>{let w=l.length,H;for(;w--;){var K=l[w];_=e.getStackIndicator(_,K,e.index,a),(H=(K=i[a]&&i[a][K])&&K.points[_.key])&&u.call(e,H,K,w)}})}function x(e,t,i){t=t.total?100/t.total:0,e[0]=v(e[0]*t),e[1]=v(e[1]*t),this.stackedYData[i]=e[1]}function b(){const e=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?c.setStackedPoints.call(this,"group"):e&&r(e.stacks,(t,i)=>{i.slice(-5)==="group"&&(r(t,l=>l.destroy()),delete e.stacks[i])})}function E(e){var t=this.chart;const i=e||this.options.stacking;if(i&&(this.visible===!0||t.options.chart.ignoreHiddenSeries===!1)){var l=this.processedXData,u=this.processedYData,_=[],a=u.length,w=this.options,H=w.threshold,K=p(w.startFromThreshold&&H,0);w=w.stack,e=e?`${this.type},${i}`:this.stackKey;var rt="-"+e,j=this.negStacks;t=i==="group"?t.yAxis[0]:this.yAxis;var s=t.stacking.stacks,M=t.stacking.oldStacks,z,I;for(t.stacking.stacksTouched+=1,I=0;I<a;I++){var V=l[I],n=u[I],f=this.getStackIndicator(f,V,this.index),m=f.key,$=(z=j&&n<(K?0:H))?rt:e;s[$]||(s[$]={}),s[$][V]||(M[$]&&M[$][V]?(s[$][V]=M[$][V],s[$][V].total=null):s[$][V]=new q(t,t.options.stackLabels,!!z,V,w)),$=s[$][V],n!==null?($.points[m]=$.points[this.index]=[p($.cumulative,K)],g($.cumulative)||($.base=m),$.touched=t.stacking.stacksTouched,0<f.index&&this.singleStacks===!1&&($.points[m][0]=$.points[this.index+","+V+",0"][0])):$.points[m]=$.points[this.index]=null,i==="percent"?(z=z?e:rt,j&&s[z]&&s[z][V]?(z=s[z][V],$.total=z.total=Math.max(z.total,$.total)+Math.abs(n)||0):$.total=v($.total+(Math.abs(n)||0))):i==="group"?(S(n)&&(n=n[0]),n!==null&&($.total=($.total||0)+1)):$.total=v($.total+(n||0)),$.cumulative=i==="group"?($.total||1)-1:v(p($.cumulative,K)+(n||0)),n!==null&&($.points[m].push($.cumulative),_[I]=$.cumulative,$.hasValidPoints=!0)}i==="percent"&&(t.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=_),t.stacking.oldStacks={}}}const{getDeferredAnimation:L}=B,{series:{prototype:c}}=G,{addEvent:y,correctFloat:v,defined:g,destroyObjectProperties:A,fireEvent:k,isArray:S,isNumber:o,objectEach:r,pick:p}=J;class h{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){const t=this.axis,i=t.series,l=t.options.reversedStacks,u=i.length;let _,a;for(this.usePercentage=!1,a=u;a--;)_=i[l?a:u-a-1],_.setStackedPoints(),_.setGroupedPoints();for(a=0;a<u;a++)i[a].modifyStacks();k(t,"afterBuildStacks")}cleanStacks(){let t;this.oldStacks&&(t=this.stacks=this.oldStacks),r(t,function(i){r(i,function(l){l.cumulative=l.total})})}resetStacks(){r(this.stacks,t=>{r(t,(i,l)=>{o(i.touched)&&i.touched<this.stacksTouched?(i.destroy(),delete t[l]):(i.total=null,i.cumulative=null)})})}renderStackTotals(){var t=this.axis;const i=t.chart,l=i.renderer,u=this.stacks;t=L(i,t.options.stackLabels&&t.options.stackLabels.animation||!1);const _=this.stackTotalGroup=this.stackTotalGroup||l.g("stack-labels").attr({zIndex:6,opacity:0}).add();_.translate(i.plotLeft,i.plotTop),r(u,function(a){r(a,function(w){w.render(_)})}),_.animate({opacity:1},t)}}var d;return function(e){const t=[];e.compose=function(i,l,u){J.pushUnique(t,i)&&(y(i,"init",O),y(i,"destroy",Y)),J.pushUnique(t,l)&&(l.prototype.getStacks=X),J.pushUnique(t,u)&&(i=u.prototype,i.getStackIndicator=N,i.modifyStacks=R,i.percentStacker=x,i.setGroupedPoints=b,i.setStackedPoints=E)}}(d||(d={})),d}),st(T,"Series/Line/LineSeries.js",[T["Core/Series/Series.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Utilities.js"]],function(B,P,G){const{defined:q,merge:J}=G;class X extends B{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const O=this,N=this.options,R=(this.gappedPath||this.getGraphPath).call(this),x=this.chart.styledMode;let b=[["graph","highcharts-graph"]];x||b[0].push(N.lineColor||this.color||"#cccccc",N.dashStyle),b=O.getZonesGraphs(b),b.forEach(function(E,L){var c=E[0];let y=O[c];const v=y?"animate":"attr";y?(y.endX=O.preventGraphAnimation?null:R.xMap,y.animate({d:R})):R.length&&(O[c]=y=O.chart.renderer.path(R).addClass(E[1]).attr({zIndex:1}).add(O.group)),y&&!x&&(c={stroke:E[2],"stroke-width":N.lineWidth||0,fill:O.fillGraph&&O.color||"none"},E[3]?c.dashstyle=E[3]:N.linecap!=="square"&&(c["stroke-linecap"]=c["stroke-linejoin"]="round"),y[v](c).shadow(2>L&&N.shadow)),y&&(y.startX=R.xMap,y.isArea=R.isArea)})}getGraphPath(O,N,R){const x=this,b=x.options,E=[],L=[];let c,y=b.step;O=O||x.points;const v=O.reversed;return v&&O.reverse(),(y={right:1,center:2}[y]||y&&3)&&v&&(y=4-y),O=this.getValidPoints(O,!1,!(b.connectNulls&&!N&&!R)),O.forEach(function(g,A){const k=g.plotX,S=g.plotY,o=O[A-1],r=g.isNull||typeof S!="number";(g.leftCliff||o&&o.rightCliff)&&!R&&(c=!0),r&&!q(N)&&0<A?c=!b.connectNulls:r&&!N?c=!0:(A===0||c?A=[["M",g.plotX,g.plotY]]:x.getPointSpline?A=[x.getPointSpline(O,g,A)]:y?(A=y===1?[["L",o.plotX,S]]:y===2?[["L",(o.plotX+k)/2,o.plotY],["L",(o.plotX+k)/2,S]]:[["L",k,o.plotY]],A.push(["L",k,S])):A=[["L",k,S]],L.push(g.x),y&&(L.push(g.x),y===2&&L.push(g.x)),E.push.apply(E,A),c=!1)}),E.xMap=L,x.graphPath=E}getZonesGraphs(O){return this.zones.forEach(function(N,R){R=["zone-graph-"+R,"highcharts-graph highcharts-zone-graph-"+R+" "+(N.className||"")],this.chart.styledMode||R.push(N.color||this.color,N.dashStyle||this.options.dashStyle),O.push(R)},this),O}}return X.defaultOptions=J(B.defaultOptions,{legendSymbol:"lineMarker"}),P.registerSeriesType("line",X),X}),st(T,"Series/Area/AreaSeries.js",[T["Core/Color/Color.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Utilities.js"]],function(B,P,G){const{seriesTypes:{line:q}}=P,{extend:J,merge:X,objectEach:Y,pick:O}=G;class N extends q{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const x=this,b=this.areaPath,E=this.options,L=[["area","highcharts-area",this.color,E.fillColor]];this.zones.forEach(function(c,y){L.push(["zone-area-"+y,"highcharts-area highcharts-zone-area-"+y+" "+c.className,c.color||x.color,c.fillColor||E.fillColor])}),L.forEach(function(c){const y=c[0],v={};let g=x[y];const A=g?"animate":"attr";g?(g.endX=x.preventGraphAnimation?null:b.xMap,g.animate({d:b})):(v.zIndex=0,g=x[y]=x.chart.renderer.path(b).addClass(c[1]).add(x.group),g.isArea=!0),x.chart.styledMode||(c[3]?v.fill=c[3]:(v.fill=c[2],v["fill-opacity"]=O(E.fillOpacity,.75))),g[A](v),g.startX=b.xMap,g.shiftUnit=E.step?2:1})}getGraphPath(x){var b=q.prototype.getGraphPath,E=this.options;const L=E.stacking,c=this.yAxis,y=[],v=[],g=this.index,A=c.stacking.stacks[this.stackKey],k=E.threshold,S=Math.round(c.getThreshold(E.threshold));E=O(E.connectNulls,L==="percent");var o=function(d,e,t){var i=x[d];d=L&&A[i.x].points[g];const l=i[t+"Null"]||0;t=i[t+"Cliff"]||0;let u,_;i=!0,t||l?(u=(l?d[0]:d[1])+t,_=d[0]+t,i=!!l):!L&&x[e]&&x[e].isNull&&(u=_=k),typeof u<"u"&&(v.push({plotX:r,plotY:u===null?S:c.getThreshold(u),isNull:i,isCliff:!0}),y.push({plotX:r,plotY:_===null?S:c.getThreshold(_),doCurve:!1}))};let r;x=x||this.points,L&&(x=this.getStackPoints(x));for(let d=0,e=x.length;d<e;++d){L||(x[d].leftCliff=x[d].rightCliff=x[d].leftNull=x[d].rightNull=void 0);var p=x[d].isNull;r=O(x[d].rectPlotX,x[d].plotX);var h=L?O(x[d].yBottom,S):S;(!p||E)&&(E||o(d,d-1,"left"),p&&!L&&E||(v.push(x[d]),y.push({x:d,plotX:r,plotY:h})),E||o(d,d+1,"right"))}return o=b.call(this,v,!0,!0),y.reversed=!0,p=b.call(this,y,!0,!0),(h=p[0])&&h[0]==="M"&&(p[0]=["L",h[1],h[2]]),p=o.concat(p),p.length&&p.push(["Z"]),b=b.call(this,v,!1,E),p.xMap=o.xMap,this.areaPath=p,b}getStackPoints(x){const b=this,E=[],L=[],c=this.xAxis,y=this.yAxis,v=y.stacking.stacks[this.stackKey],g={},A=y.series,k=A.length,S=y.options.reversedStacks?1:-1,o=A.indexOf(b);if(x=x||this.points,this.options.stacking){for(let p=0;p<x.length;p++)x[p].leftNull=x[p].rightNull=void 0,g[x[p].x]=x[p];Y(v,function(p,h){p.total!==null&&L.push(h)}),L.sort(function(p,h){return p-h});const r=A.map(p=>p.visible);L.forEach(function(p,h){let d=0,e,t;if(g[p]&&!g[p].isNull)E.push(g[p]),[-1,1].forEach(function(i){const l=i===1?"rightNull":"leftNull",u=v[L[h+i]];let _=0;if(u){let a=o;for(;0<=a&&a<k;){const w=A[a].index;e=u.points[w],e||(w===b.index?g[p][l]=!0:r[a]&&(t=v[p].points[w])&&(_-=t[1]-t[0])),a+=S}}g[p][i===1?"rightCliff":"leftCliff"]=_});else{let i=o;for(;0<=i&&i<k;){if(e=v[p].points[A[i].index]){d=e[1];break}i+=S}d=O(d,0),d=y.translate(d,0,1,0,1),E.push({isNull:!0,plotX:c.translate(p,0,0,0,1),x:p,plotY:d,yBottom:d})}})}return E}}return N.defaultOptions=X(q.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),J(N.prototype,{singleStacks:!1}),P.registerSeriesType("area",N),N}),st(T,"Series/Spline/SplineSeries.js",[T["Core/Series/SeriesRegistry.js"],T["Core/Utilities.js"]],function(B,P){const{line:G}=B.seriesTypes,{merge:q,pick:J}=P;class X extends G{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(O,N,R){const x=N.plotX||0,b=N.plotY||0,E=O[R-1];R=O[R+1];let L,c,y;if(E&&!E.isNull&&E.doCurve!==!1&&!N.isCliff&&R&&!R.isNull&&R.doCurve!==!1&&!N.isCliff){O=E.plotY||0;var v=R.plotX||0;R=R.plotY||0;let g=0;L=(1.5*x+(E.plotX||0))/2.5,c=(1.5*b+O)/2.5,v=(1.5*x+v)/2.5,y=(1.5*b+R)/2.5,v!==L&&(g=(y-c)*(v-x)/(v-L)+b-y),c+=g,y+=g,c>O&&c>b?(c=Math.max(O,b),y=2*b-c):c<O&&c<b&&(c=Math.min(O,b),y=2*b-c),y>R&&y>b?(y=Math.max(R,b),c=2*b-y):y<R&&y<b&&(y=Math.min(R,b),c=2*b-y),N.rightContX=v,N.rightContY=y}return N=["C",J(E.rightContX,E.plotX,0),J(E.rightContY,E.plotY,0),J(L,x,0),J(c,b,0),x,b],E.rightContX=E.rightContY=void 0,N}}return X.defaultOptions=q(G.defaultOptions),B.registerSeriesType("spline",X),X}),st(T,"Series/AreaSpline/AreaSplineSeries.js",[T["Series/Spline/SplineSeries.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Utilities.js"]],function(B,P,G){const{area:q,area:{prototype:J}}=P.seriesTypes,{extend:X,merge:Y}=G;class O extends B{constructor(){super(...arguments),this.options=this.points=this.data=void 0}}return O.defaultOptions=Y(B.defaultOptions,q.defaultOptions),X(O.prototype,{getGraphPath:J.getGraphPath,getStackPoints:J.getStackPoints,drawGraph:J.drawGraph}),P.registerSeriesType("areaspline",O),O}),st(T,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),st(T,"Series/Column/ColumnSeries.js",[T["Core/Animation/AnimationUtilities.js"],T["Core/Color/Color.js"],T["Series/Column/ColumnSeriesDefaults.js"],T["Core/Globals.js"],T["Core/Series/Series.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Utilities.js"]],function(B,P,G,q,J,X,Y){const{animObject:O}=B,{parse:N}=P,{hasTouch:R,noop:x}=q,{clamp:b,defined:E,extend:L,fireEvent:c,isArray:y,isNumber:v,merge:g,pick:A,objectEach:k}=Y;class S extends J{constructor(){super(...arguments),this.points=this.options=this.group=this.data=this.borderWidth=void 0}animate(r){const p=this,h=this.yAxis,d=h.pos,e=p.options,t=this.chart.inverted,i={},l=t?"translateX":"translateY";let u;r?(i.scaleY=.001,r=b(h.toPixels(e.threshold),d,d+h.len),t?i.translateX=r-h.len:i.translateY=r,p.clipBox&&p.setClip(),p.group.attr(i)):(u=Number(p.group.attr(l)),p.group.animate({scaleY:1},L(O(p.options.animation),{step:function(_,a){p.group&&(i[l]=u+a.pos*(d-u),p.group.attr(i))}})))}init(r,p){super.init.apply(this,arguments);const h=this;r=h.chart,r.hasRendered&&r.series.forEach(function(d){d.type===h.type&&(d.isDirty=!0)})}getColumnMetrics(){const r=this;var p=r.options;const h=r.xAxis,d=r.yAxis;var e=h.options.reversedStacks;e=h.reversed&&!e||!h.reversed&&e;const t={};let i,l=0;p.grouping===!1?l=1:r.chart.series.forEach(function(w){const H=w.yAxis,K=w.options;let rt;w.type!==r.type||!w.visible&&r.chart.options.chart.ignoreHiddenSeries||d.len!==H.len||d.pos!==H.pos||(K.stacking&&K.stacking!=="group"?(i=w.stackKey,typeof t[i]>"u"&&(t[i]=l++),rt=t[i]):K.grouping!==!1&&(rt=l++),w.columnIndex=rt)});const u=Math.min(Math.abs(h.transA)*(h.ordinal&&h.ordinal.slope||p.pointRange||h.closestPointRange||h.tickInterval||1),h.len),_=u*p.groupPadding,a=(u-2*_)/(l||1);return p=Math.min(p.maxPointWidth||h.len,A(p.pointWidth,a*(1-2*p.pointPadding))),r.columnMetrics={width:p,offset:(a-p)/2+(_+((r.columnIndex||0)+(e?1:0))*a-u/2)*(e?-1:1),paddedWidth:a,columnCount:l},r.columnMetrics}crispCol(r,p,h,d){var e=this.borderWidth,t=-(e%2?.5:0);return e=e%2?.5:1,this.options.crisp&&(h=Math.round(r+h)+t,r=Math.round(r)+t,h-=r),d=Math.round(p+d)+e,t=.5>=Math.abs(p)&&.5<d,p=Math.round(p)+e,d-=p,t&&d&&(--p,d+=1),{x:r,y:p,width:h,height:d}}adjustForMissingColumns(r,p,h,d){const e=this.options.stacking;if(!h.isNull&&1<d.columnCount){const t=this.yAxis.options.reversedStacks;let i=0,l=t?0:-d.columnCount;k(this.yAxis.stacking&&this.yAxis.stacking.stacks,u=>{if(typeof h.x=="number"){const _=u[h.x.toString()];_&&(u=_.points[this.index],e?(u&&(i=l),_.hasValidPoints&&(t?l++:l--)):y(u)&&(u=Object.keys(_.points).filter(a=>!a.match(",")&&_.points[a]&&1<_.points[a].length).map(parseFloat).sort((a,w)=>w-a),i=u.indexOf(this.index),l=u.length))}}),r=(h.plotX||0)+((l-1)*d.paddedWidth+p)/2-p-i*d.paddedWidth}return r}translate(){const r=this,p=r.chart,h=r.options;var d=r.dense=2>r.closestPointRange*r.xAxis.transA;d=r.borderWidth=A(h.borderWidth,d?0:1);const e=r.xAxis,t=r.yAxis,i=h.threshold,l=A(h.minPointLength,5),u=r.getColumnMetrics(),_=u.width,a=r.pointXOffset=u.offset,w=r.dataMin,H=r.dataMax;let K=r.barW=Math.max(_,1+2*d),rt=r.translatedThreshold=t.getThreshold(i);p.inverted&&(rt-=.5),h.pointPadding&&(K=Math.ceil(K)),J.prototype.translate.apply(r),r.points.forEach(function(j){const s=A(j.yBottom,rt);var M=999+Math.abs(s),z=j.plotX||0;M=b(j.plotY,-M,t.len+M);let I=Math.min(M,s),V=Math.max(M,s)-I,n=_,f=z+a,m=K;l&&Math.abs(V)<l&&(V=l,z=!t.reversed&&!j.negative||t.reversed&&j.negative,v(i)&&v(H)&&j.y===i&&H<=i&&(t.min||0)<i&&(w!==H||(t.max||0)<=i)&&(z=!z,j.negative=!j.negative),I=Math.abs(I-rt)>l?s-l:rt-(z?l:0)),E(j.options.pointWidth)&&(n=m=Math.ceil(j.options.pointWidth),f-=Math.round((n-_)/2)),h.centerInCategory&&(f=r.adjustForMissingColumns(f,n,j,u)),j.barX=f,j.pointWidth=n,j.tooltipPos=p.inverted?[b(t.len+t.pos-p.plotLeft-M,t.pos-p.plotLeft,t.len+t.pos-p.plotLeft),e.len+e.pos-p.plotTop-f-m/2,V]:[e.left-p.plotLeft+f+m/2,b(M+t.pos-p.plotTop,t.pos-p.plotTop,t.len+t.pos-p.plotTop),V],j.shapeType=r.pointClass.prototype.shapeType||"roundedRect",j.shapeArgs=r.crispCol(f,j.isNull?rt:I,m,j.isNull?0:V)}),c(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(r,p){const h=this.options;var d=this.pointAttrToOptions||{},e=d.stroke||"borderColor";const t=d["stroke-width"]||"borderWidth";let i,l=r&&r.color||this.color,u=r&&r[e]||h[e]||l;d=r&&r.options.dashStyle||h.dashStyle;let _=r&&r[t]||h[t]||this[t]||0,a=A(r&&r.opacity,h.opacity,1);return r&&this.zones.length&&(i=r.getZone(),l=r.options.color||i&&(i.color||r.nonZonedColor)||this.color,i&&(u=i.borderColor||u,d=i.dashStyle||d,_=i.borderWidth||_)),p&&r&&(r=g(h.states[p],r.options.states&&r.options.states[p]||{}),p=r.brightness,l=r.color||typeof p<"u"&&N(l).brighten(r.brightness).get()||l,u=r[e]||u,_=r[t]||_,d=r.dashStyle||d,a=A(r.opacity,a)),e={fill:l,stroke:u,"stroke-width":_,opacity:a},d&&(e.dashstyle=d),e}drawPoints(r=this.points){const p=this,h=this.chart,d=p.options,e=h.renderer,t=d.animationLimit||250;let i;r.forEach(function(l){let u=l.graphic,_=!!u,a=u&&h.pointCount<t?"animate":"attr";v(l.plotY)&&l.y!==null?(i=l.shapeArgs,u&&l.hasNewShapeType()&&(u=u.destroy()),p.enabledDataSorting&&(l.startXPos=p.xAxis.reversed?-(i&&i.width||0):p.xAxis.width),u||(l.graphic=u=e[l.shapeType](i).add(l.group||p.group))&&p.enabledDataSorting&&h.hasRendered&&h.pointCount<t&&(u.attr({x:l.startXPos}),_=!0,a="animate"),u&&_&&u[a](g(i)),h.styledMode||u[a](p.pointAttribs(l,l.selected&&"select")).shadow(l.allowShadow!==!1&&d.shadow),u&&(u.addClass(l.getClassName(),!0),u.attr({visibility:l.visible?"inherit":"hidden"}))):u&&(l.graphic=u.destroy())})}drawTracker(r=this.points){const p=this,h=p.chart,d=h.pointer,e=function(i){const l=d.getPointFromEvent(i);typeof l<"u"&&p.options.enableMouseTracking&&(d.isDirectTouch=!0,l.onMouseOver(i))};let t;r.forEach(function(i){t=y(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[],i.graphic&&(i.graphic.element.point=i),t.forEach(function(l){l.div?l.div.point=i:l.element.point=i})}),p._hasTracking||(p.trackerGroups.forEach(function(i){p[i]&&(p[i].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(l){d.onTrackerMouseOut(l)}),R&&p[i].on("touchstart",e),!h.styledMode&&p.options.cursor&&p[i].css({cursor:p.options.cursor}))}),p._hasTracking=!0),c(this,"afterDrawTracker")}remove(){const r=this,p=r.chart;p.hasRendered&&p.series.forEach(function(h){h.type===r.type&&(h.isDirty=!0)}),J.prototype.remove.apply(r,arguments)}}return S.defaultOptions=g(J.defaultOptions,G),L(S.prototype,{cropShoulder:0,directTouch:!0,getSymbol:x,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),X.registerSeriesType("column",S),S}),st(T,"Core/Series/DataLabel.js",[T["Core/Animation/AnimationUtilities.js"],T["Core/Templating.js"],T["Core/Utilities.js"]],function(B,P,G){const{getDeferredAnimation:q}=B,{format:J}=P,{defined:X,extend:Y,fireEvent:O,isArray:N,isString:R,merge:x,objectEach:b,pick:E,splat:L}=G;var c;return function(y){function v(d,e,t,i,l){const u=this.chart;var _=this.isCartesian&&u.inverted;const a=this.enabledDataSorting;var w=d.plotX,H=d.plotY;const K=t.rotation;var rt=t.align;H=X(w)&&X(H)&&u.isInsidePlot(w,Math.round(H),{inverted:_,paneCoordinates:!0,series:this});let j=E(t.overflow,a?"none":"justify")==="justify";if(_=this.visible&&d.visible!==!1&&X(w)&&(d.series.forceDL||a&&!j||H||E(t.inside,!!this.options.stacking)&&i&&u.isInsidePlot(w,_?i.x+1:i.y+i.height-1,{inverted:_,paneCoordinates:!0,series:this})),w=d.pos(),_&&w){K&&e.attr({align:rt}),rt=e.getBBox(!0);var s=[0,0],M=u.renderer.fontMetrics(e).b;if(i=Y({x:w[0],y:Math.round(w[1]),width:0,height:0},i),Y(t,{width:rt.width,height:rt.height}),K?(j=!1,s=u.renderer.rotCorr(M,K),M={x:i.x+(t.x||0)+i.width/2+s.x,y:i.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*i.height},s=[rt.x-Number(e.attr("x")),rt.y-Number(e.attr("y"))],a&&this.xAxis&&!j&&this.setDataLabelStartPos(d,e,l,H,M),e[l?"attr":"animate"](M)):(a&&this.xAxis&&!j&&this.setDataLabelStartPos(d,e,l,H,i),e.align(t,void 0,i),M=e.alignAttr),j&&0<=i.height)this.justifyDataLabel(e,t,M,rt,i,l);else if(E(t.crop,!0)){let{x:z,y:I}=M;z+=s[0],I+=s[1],_=u.isInsidePlot(z,I,{paneCoordinates:!0,series:this})&&u.isInsidePlot(z+rt.width,I+rt.height,{paneCoordinates:!0,series:this})}t.shape&&!K&&e[l?"attr":"animate"]({anchorX:w[0],anchorY:w[1]})}l&&a&&(e.placed=!1),_||a&&!j?e.show():(e.hide(),e.placed=!1)}function g(d,e){var t=e.filter;return t?(e=t.operator,d=d[t.property],t=t.value,e===">"&&d>t||e==="<"&&d<t||e===">="&&d>=t||e==="<="&&d<=t||e==="=="&&d==t||e==="==="&&d===t):!0}function A(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function k(d){const e=this.hasRendered||0,t=this.initDataLabelsGroup().attr({opacity:+e});return!e&&t&&(this.visible&&t.show(),this.options.animation?t.animate({opacity:1},d):t.attr({opacity:1})),t}function S(d=this.points){var e,t;const i=this,l=i.chart,u=i.options,_=l.renderer,{backgroundColor:a,plotBackgroundColor:w}=l.options.chart,H=l.options.plotOptions,K=_.getContrast(R(w)&&w||R(a)&&a||"#000000");let rt=u.dataLabels,j,s;var M=L(rt)[0];const z=M.animation;M=M.defer?q(l,z,i):{defer:0,duration:0},rt=r(r((e=H==null?void 0:H.series)===null||e===void 0?void 0:e.dataLabels,(t=H==null?void 0:H[i.type])===null||t===void 0?void 0:t.dataLabels),rt),O(this,"drawDataLabels"),(N(rt)||rt.enabled||i._hasPointLabels)&&(s=this.initDataLabels(M),d.forEach(I=>{var V;const n=I.dataLabels||[];for(j=L(r(rt,I.dlOptions||((V=I.options)===null||V===void 0?void 0:V.dataLabels))),j.forEach((f,m)=>{var $,F=f.enabled&&(!I.isNull||I.dataLabelOnNull)&&g(I,f);const W=I.connectors?I.connectors[m]:I.connector,it=f.style||{};let nt={},lt=n[m],ht=!lt;const pt=E(f.distance,I.labelDistance);if(F){var D=E(f[I.formatPrefix+"Format"],f.format),C=I.getLabelConfig();if(C=X(D)?J(D,C,l):(f[I.formatPrefix+"Formatter"]||f.formatter).call(C,f),D=f.rotation,l.styledMode||(it.color=E(f.color,it.color,R(i.color)?i.color:void 0,"#000000"),it.color==="contrast"?(I.contrastColor=_.getContrast(I.color||i.color),it.color=!X(pt)&&f.inside||0>(pt||0)||u.stacking?I.contrastColor:K):delete I.contrastColor,u.cursor&&(it.cursor=u.cursor)),nt={r:f.borderRadius||0,rotation:D,padding:f.padding,zIndex:1},!l.styledMode){const{backgroundColor:Q,borderColor:U}=f;nt.fill=Q==="auto"?I.color:Q,nt.stroke=U==="auto"?I.color:U,nt["stroke-width"]=f.borderWidth}b(nt,(Q,U)=>{typeof Q>"u"&&delete nt[U]})}!lt||F&&X(C)&&!!lt.div==!!f.useHTML&&(lt.rotation&&f.rotation||lt.rotation===f.rotation)||(lt=void 0,ht=!0,W&&I.connector&&(I.connector=I.connector.destroy(),I.connectors&&(I.connectors.length===1?delete I.connectors:delete I.connectors[m]))),F&&X(C)&&(lt?nt.text=C:(lt=D?_.text(C,0,0,f.useHTML).addClass("highcharts-data-label"):_.label(C,0,0,f.shape,void 0,void 0,f.useHTML,void 0,"data-label"))&<.addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(f.className||"")+(f.useHTML?" highcharts-tracker":"")),lt&&(lt.options=f,lt.attr(nt),l.styledMode||lt.css(it).shadow(f.shadow),(F=f[I.formatPrefix+"TextPath"]||f.textPath)&&!f.useHTML&&(lt.setTextPath((($=I.getDataLabelPath)===null||$===void 0?void 0:$.call(I,lt))||I.graphic,F),I.dataLabelPath&&!F.enabled&&(I.dataLabelPath=I.dataLabelPath.destroy())),lt.added||lt.add(s),i.alignDataLabel(I,lt,f,void 0,ht),lt.isActive=!0,n[m]&&n[m]!==lt&&n[m].destroy(),n[m]=lt))}),V=n.length;V--;)n[V].isActive?n[V].isActive=!1:(n[V].destroy(),n.splice(V,1));I.dataLabel=n[0],I.dataLabels=n})),O(this,"afterDrawDataLabels")}function o(d,e,t,i,l,u){const _=this.chart,a=e.align,w=e.verticalAlign,H=d.box?0:d.padding||0;let{x:K=0,y:rt=0}=e,j,s;return j=(t.x||0)+H,0>j&&(a==="right"&&0<=K?(e.align="left",e.inside=!0):K-=j,s=!0),j=(t.x||0)+i.width-H,j>_.plotWidth&&(a==="left"&&0>=K?(e.align="right",e.inside=!0):K+=_.plotWidth-j,s=!0),j=t.y+H,0>j&&(w==="bottom"&&0<=rt?(e.verticalAlign="top",e.inside=!0):rt-=j,s=!0),j=(t.y||0)+i.height-H,j>_.plotHeight&&(w==="top"&&0>=rt?(e.verticalAlign="bottom",e.inside=!0):rt+=_.plotHeight-j,s=!0),s&&(e.x=K,e.y=rt,d.placed=!u,d.align(e,void 0,l)),s}function r(d,e){let t=[],i;if(N(d)&&!N(e))t=d.map(function(l){return x(l,e)});else if(N(e)&&!N(d))t=e.map(function(l){return x(d,l)});else if(!N(d)&&!N(e))t=x(d,e);else if(N(d)&&N(e))for(i=Math.max(d.length,e.length);i--;)t[i]=x(d[i],e[i]);return t}function p(d,e,t,i,l){const u=this.chart,_=u.inverted,a=this.xAxis,w=a.reversed,H=_?e.height/2:e.width/2;d=(d=d.pointWidth)?d/2:0,e.startXPos=_?l.x:w?-H-d:a.width-H+d,e.startYPos=_?w?this.yAxis.height-H+d:-H-d:l.y,i?e.visibility==="hidden"&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),u.hasRendered&&(t&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}const h=[];y.compose=function(d){G.pushUnique(h,d)&&(d=d.prototype,d.initDataLabelsGroup=A,d.initDataLabels=k,d.alignDataLabel=v,d.drawDataLabels=S,d.justifyDataLabel=o,d.setDataLabelStartPos=p)}}(c||(c={})),c}),st(T,"Series/Column/ColumnDataLabel.js",[T["Core/Series/DataLabel.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Utilities.js"]],function(B,P,G){const{series:q}=P,{merge:J,pick:X}=G;var Y;return function(O){function N(x,b,E,L,c){let y=this.chart.inverted;var v=x.series;let g=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0;v=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0;var A=x.dlBox||x.shapeArgs;let k=X(x.below,x.plotY>X(this.translatedThreshold,v)),S=X(E.inside,!!this.options.stacking);A&&(L=J(A),0>L.y&&(L.height+=L.y,L.y=0),A=L.y+L.height-v,0<A&&A<L.height&&(L.height-=A),y&&(L={x:v-L.y-L.height,y:g-L.x-L.width,width:L.height,height:L.width}),S||(y?(L.x+=k?0:L.width,L.width=0):(L.y+=k?L.height:0,L.height=0))),E.align=X(E.align,!y||S?"center":k?"right":"left"),E.verticalAlign=X(E.verticalAlign,y||S?"middle":k?"top":"bottom"),q.prototype.alignDataLabel.call(this,x,b,E,L,c),E.inside&&x.contrastColor&&b.css({color:x.contrastColor})}const R=[];O.compose=function(x){B.compose(q),G.pushUnique(R,x)&&(x.prototype.alignDataLabel=N)}}(Y||(Y={})),Y}),st(T,"Series/Bar/BarSeries.js",[T["Series/Column/ColumnSeries.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Utilities.js"]],function(B,P,G){const{extend:q,merge:J}=G;class X extends B{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return X.defaultOptions=J(B.defaultOptions,{}),q(X.prototype,{inverted:!0}),P.registerSeriesType("bar",X),X}),st(T,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),st(T,"Series/Scatter/ScatterSeries.js",[T["Series/Scatter/ScatterSeriesDefaults.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Utilities.js"]],function(B,P,G){const{column:q,line:J}=P.seriesTypes,{addEvent:X,extend:Y,merge:O}=G;class N extends J{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const x=this,b=this.options.jitter,E=this.points.length;b&&this.points.forEach(function(L,c){["x","y"].forEach(function(y,v){let g="plot"+y.toUpperCase(),A,k;if(b[y]&&!L.isNull){var S=x[y+"Axis"];k=b[y]*S.transA,S&&!S.isLog&&(A=Math.max(0,L[g]-k),S=Math.min(S.len,L[g]+k),v=1e4*Math.sin(c+v*E),v-=Math.floor(v),L[g]=A+(S-A)*v,y==="x"&&(L.clientX=L.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return N.defaultOptions=O(J.defaultOptions,B),Y(N.prototype,{drawTracker:q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),X(N,"afterTranslate",function(){this.applyJitter()}),P.registerSeriesType("scatter",N),N}),st(T,"Series/CenteredUtilities.js",[T["Core/Globals.js"],T["Core/Series/Series.js"],T["Core/Utilities.js"]],function(B,P,G){const{deg2rad:q}=B,{fireEvent:J,isNumber:X,pick:Y,relativeLength:O}=G;var N;return function(R){R.getCenter=function(){var x=this.options,b=this.chart;const E=2*(x.slicedOffset||0),L=b.plotWidth-2*E,c=b.plotHeight-2*E;var y=x.center;const v=Math.min(L,c),g=x.thickness;var A=x.size;let k=x.innerSize||0;for(typeof A=="string"&&(A=parseFloat(A)),typeof k=="string"&&(k=parseFloat(k)),x=[Y(y[0],"50%"),Y(y[1],"50%"),Y(A&&0>A?void 0:x.size,"100%"),Y(k&&0>k?void 0:x.innerSize||0,"0%")],!b.angular||this instanceof P||(x[3]=0),y=0;4>y;++y)A=x[y],b=2>y||y===2&&/%$/.test(A),x[y]=O(A,[L,c,v,x[2]][y])+(b?E:0);return x[3]>x[2]&&(x[3]=x[2]),X(g)&&2*g<x[2]&&0<g&&(x[3]=x[2]-2*g),J(this,"afterGetCenter",{positions:x}),x},R.getStartAndEndRadians=function(x,b){return x=X(x)?x:0,b=X(b)&&b>x&&360>b-x?b:x+360,{start:q*(x+-90),end:q*(b+-90)}}}(N||(N={})),N}),st(T,"Series/Pie/PiePoint.js",[T["Core/Animation/AnimationUtilities.js"],T["Core/Series/Point.js"],T["Core/Utilities.js"]],function(B,P,G){const{setAnimation:q}=B,{addEvent:J,defined:X,extend:Y,isNumber:O,pick:N,relativeLength:R}=G;class x extends P{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const E=this.labelPosition,L=this.series.options.dataLabels,c=this.connectorShapes;let y=L.connectorShape;return c[y]&&(y=c[y]),y.call(this,{x:E.computed.x,y:E.computed.y,alignment:E.alignment},E.connectorPosition,L)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(E){const L=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(L.x,L.y,L.r+E,L.r+E,{innerR:L.r-1,start:L.start,end:L.end,borderRadius:L.borderRadius})}init(){super.init.apply(this,arguments),this.name=N(this.name,"Slice");const E=L=>{this.slice(L.type==="select")};return J(this,"select",E),J(this,"unselect",E),this}isValid(){return O(this.y)&&0<=this.y}setVisible(E,L){const c=this.series,y=c.chart,v=c.options.ignoreHiddenPoint;L=N(L,v),E!==this.visible&&(this.visible=this.options.visible=E=typeof E>"u"?!this.visible:E,c.options.data[c.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(g=>{this[g]&&this[g][E?"show":"hide"](E)}),this.legendItem&&y.legend.colorizeItem(this,E),E||this.state!=="hover"||this.setState(""),v&&(c.isDirty=!0),L&&y.redraw())}slice(E,L,c){const y=this.series;q(c,y.chart),N(L,!0),this.sliced=this.options.sliced=X(E)?E:!this.sliced,y.options.data[y.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return Y(x.prototype,{connectorShapes:{fixedOffset:function(b,E,L){const c=E.breakAt;return E=E.touchingSliceAt,[["M",b.x,b.y],L.softConnector?["C",b.x+(b.alignment==="left"?-5:5),b.y,2*c.x-E.x,2*c.y-E.y,c.x,c.y]:["L",c.x,c.y],["L",E.x,E.y]]},straight:function(b,E){return E=E.touchingSliceAt,[["M",b.x,b.y],["L",E.x,E.y]]},crookedLine:function(b,E,L){const{breakAt:c,touchingSliceAt:y}=E;({series:E}=this);const[v,g,A]=E.center,k=A/2,S=E.chart.plotWidth,o=E.chart.plotLeft;E=b.alignment==="left";const{x:r,y:p}=b;return L.crookDistance?(b=R(L.crookDistance,1),b=E?v+k+(S+o-v-k)*(1-b):o+(v-k)*b):b=v+(g-p)*Math.tan((this.angle||0)-Math.PI/2),L=[["M",r,p]],(E?b<=r&&b>=c.x:b>=r&&b<=c.x)&&L.push(["L",b,p]),L.push(["L",c.x,c.y],["L",y.x,y.y]),L}}}),x}),st(T,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,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}}}}),st(T,"Series/Pie/PieSeries.js",[T["Series/CenteredUtilities.js"],T["Series/Column/ColumnSeries.js"],T["Core/Globals.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(B,P,G,q,J,X,Y,O,N){const{getStartAndEndRadians:R}=B;({noop:G}=G);const{clamp:x,extend:b,fireEvent:E,merge:L,pick:c,relativeLength:y}=N;class v extends X{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(A){const k=this,S=k.points,o=k.startAngleRad;A||S.forEach(function(r){const p=r.graphic,h=r.shapeArgs;p&&h&&(p.attr({r:c(r.startR,k.center&&k.center[3]/2),start:o,end:o}),p.animate({r:h.r,start:h.start,end:h.end},k.options.animation))})}drawEmpty(){const A=this.startAngleRad,k=this.endAngleRad,S=this.options;let o,r;this.total===0&&this.center?(o=this.center[0],r=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(o,r,this.center[1]/2,0,A,k).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:O.arc(o,r,this.center[2]/2,0,{start:A,end:k,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":S.borderWidth,fill:S.fillColor||"none",stroke:S.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const A=this.chart.renderer;this.points.forEach(function(k){k.graphic&&k.hasNewShapeType()&&(k.graphic=k.graphic.destroy()),k.graphic||(k.graphic=A[k.shapeType](k.shapeArgs).add(k.series.group),k.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(A,k,S){const o=this.center,r=this.radii?this.radii[S.index]||0:o[2]/2;return A=Math.asin(x((A-o[1])/(r+S.labelDistance),-1,1)),o[0]+(k?-1:1)*Math.cos(A)*(r+S.labelDistance)+(0<S.labelDistance?(k?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const A=this,k=A.chart;let S,o,r,p;this.drawEmpty(),A.group&&!k.styledMode&&A.group.shadow(A.options.shadow),A.points.forEach(function(h){const d={};o=h.graphic,!h.isNull&&o?(p=h.shapeArgs,S=h.getTranslate(),k.styledMode||(r=A.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(o.setRadialReference(A.center).attr(p).attr(S),k.styledMode||o.attr(r).attr({"stroke-linejoin":"round"}),h.delayedRendering=!1):(o.setRadialReference(A.center),k.styledMode||L(!0,d,r),L(!0,d,p,S),o.animate(d)),o.attr({visibility:h.visible?"inherit":"hidden"}),o.addClass(h.getClassName(),!0)):o&&(h.graphic=o.destroy())})}sortByAngle(A,k){A.sort(function(S,o){return typeof S.angle<"u"&&(o.angle-S.angle)*k})}translate(A){E(this,"translate"),this.generatePoints();var k=this.options;const S=k.slicedOffset,o=S+(k.borderWidth||0);var r=R(k.startAngle,k.endAngle);const p=this.startAngleRad=r.start;r=(this.endAngleRad=r.end)-p;const h=this.points,d=k.dataLabels.distance;k=k.ignoreHiddenPoint;const e=h.length;let t,i,l,u=0;for(A||(this.center=A=this.getCenter()),i=0;i<e;i++){l=h[i];var _=p+u*r;!l.isValid()||k&&!l.visible||(u+=l.percentage/100);var a=p+u*r,w={x:A[0],y:A[1],r:A[2]/2,innerR:A[3]/2,start:Math.round(1e3*_)/1e3,end:Math.round(1e3*a)/1e3};l.shapeType="arc",l.shapeArgs=w,l.labelDistance=c(l.options.dataLabels&&l.options.dataLabels.distance,d),l.labelDistance=y(l.labelDistance,w.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,l.labelDistance),a=(a+_)/2,a>1.5*Math.PI?a-=2*Math.PI:a<-Math.PI/2&&(a+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(a)*S),translateY:Math.round(Math.sin(a)*S)},w=Math.cos(a)*A[2]/2,t=Math.sin(a)*A[2]/2,l.tooltipPos=[A[0]+.7*w,A[1]+.7*t],l.half=a<-Math.PI/2||a>Math.PI/2?1:0,l.angle=a,_=Math.min(o,l.labelDistance/5),l.labelPosition={natural:{x:A[0]+w+Math.cos(a)*l.labelDistance,y:A[1]+t+Math.sin(a)*l.labelDistance},computed:{},alignment:0>l.labelDistance?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:A[0]+w+Math.cos(a)*_,y:A[1]+t+Math.sin(a)*_},touchingSliceAt:{x:A[0]+w,y:A[1]+t}}}}E(this,"afterTranslate")}updateTotals(){const A=this.points,k=A.length,S=this.options.ignoreHiddenPoint;let o,r,p=0;for(o=0;o<k;o++)r=A[o],!r.isValid()||S&&!r.visible||(p+=r.y);for(this.total=p,o=0;o<k;o++)r=A[o],r.percentage=0<p&&(r.visible||!S)?r.y/p*100:0,r.total=p}}return v.defaultOptions=L(X.defaultOptions,J),b(v.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:P.prototype.drawTracker,getCenter:B.getCenter,getSymbol:G,isCartesian:!1,noSharedTooltip:!0,pointAttribs:P.prototype.pointAttribs,pointClass:q,requireSorting:!1,searchPoint:G,trackerGroups:["group","dataLabelsGroup"]}),Y.registerSeriesType("pie",v),v}),st(T,"Series/Pie/PieDataLabel.js",[T["Core/Series/DataLabel.js"],T["Core/Globals.js"],T["Core/Renderer/RendererUtilities.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Utilities.js"]],function(B,P,G,q,J){const{noop:X}=P,{distribute:Y}=G,{series:O}=q,{arrayMax:N,clamp:R,defined:x,merge:b,pick:E,relativeLength:L}=J;var c;return function(y){function v(){const o=this,r=o.data,p=o.chart,h=o.options.dataLabels||{},d=h.connectorPadding,e=p.plotWidth,t=p.plotHeight,i=p.plotLeft,l=Math.round(p.chartWidth/3),u=o.center,_=u[2]/2,a=u[1],w=[[],[]],H=[0,0,0,0],K=o.dataLabelPositioners;let rt,j,s,M,z,I,V,n,f,m,$,F;o.visible&&(h.enabled||o._hasPointLabels)&&(r.forEach(function(W){W.dataLabel&&W.visible&&W.dataLabel.shortened&&(W.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),W.dataLabel.shortened=!1)}),O.prototype.drawDataLabels.apply(o),r.forEach(function(W){W.dataLabel&&(W.visible?(w[W.half].push(W),W.dataLabel._pos=null,!x(h.style.width)&&!x(W.options.dataLabels&&W.options.dataLabels.style&&W.options.dataLabels.style.width)&&W.dataLabel.getBBox().width>l&&(W.dataLabel.css({width:Math.round(.7*l)+"px"}),W.dataLabel.shortened=!0)):(W.dataLabel=W.dataLabel.destroy(),W.dataLabels&&W.dataLabels.length===1&&delete W.dataLabels))}),w.forEach((W,it)=>{const nt=W.length,lt=[];let ht,pt=0;if(nt){if(o.sortByAngle(W,it-.5),0<o.maxLabelDistance){var D=Math.max(0,a-_-o.maxLabelDistance);ht=Math.min(a+_+o.maxLabelDistance,p.plotHeight),W.forEach(function(C){0<C.labelDistance&&C.dataLabel&&(C.top=Math.max(0,a-_-C.labelDistance),C.bottom=Math.min(a+_+C.labelDistance,p.plotHeight),pt=C.dataLabel.getBBox().height||21,C.distributeBox={target:C.labelPosition.natural.y-C.top+pt/2,size:pt,rank:C.y},lt.push(C.distributeBox))}),D=ht+pt-D,Y(lt,D,D/5)}for($=0;$<nt;$++){if(rt=W[$],I=rt.labelPosition,M=rt.dataLabel,m=rt.visible===!1?"hidden":"inherit",f=D=I.natural.y,lt&&x(rt.distributeBox)&&(typeof rt.distributeBox.pos>"u"?m="hidden":(V=rt.distributeBox.size,f=K.radialDistributionY(rt))),delete rt.positionIndex,h.justify)n=K.justify(rt,_,u);else switch(h.alignTo){case"connectors":n=K.alignToConnectors(W,it,e,i);break;case"plotEdges":n=K.alignToPlotEdges(M,it,e,i);break;default:n=K.radialDistributionX(o,rt,f,D)}M._attr={visibility:m,align:I.alignment},F=rt.options.dataLabels||{},M._pos={x:n+E(F.x,h.x)+({left:d,right:-d}[I.alignment]||0),y:f+E(F.y,h.y)-M.getBBox().height/2},I&&(I.computed.x=n,I.computed.y=f),E(h.crop,!0)&&(z=M.getBBox().width,D=null,n-z<d&&it===1?(D=Math.round(z-n+d),H[3]=Math.max(D,H[3])):n+z>e-d&&it===0&&(D=Math.round(n+z-e+d),H[1]=Math.max(D,H[1])),0>f-V/2?H[0]=Math.max(Math.round(-f+V/2),H[0]):f+V/2>t&&(H[2]=Math.max(Math.round(f+V/2-t),H[2])),M.sideOverflow=D)}}}),N(H)===0||this.verifyDataLabelOverflow(H))&&(this.placeDataLabels(),this.points.forEach(function(W){if(F=b(h,W.options.dataLabels),j=E(F.connectorWidth,1)){let it;s=W.connector,(M=W.dataLabel)&&M._pos&&W.visible&&0<W.labelDistance?(m=M._attr.visibility,(it=!s)&&(W.connector=s=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+W.colorIndex+(W.className?" "+W.className:"")).add(o.dataLabelsGroup),p.styledMode||s.attr({"stroke-width":j,stroke:F.connectorColor||W.color||"#666666"})),s[it?"attr":"animate"]({d:W.getConnectorPath()}),s.attr("visibility",m)):s&&(W.connector=s.destroy())}}))}function g(){this.points.forEach(function(o){let r=o.dataLabel,p;r&&o.visible&&((p=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](p),r.moved=!0):r&&r.attr({y:-9999})),delete o.distributeBox},this)}function A(o){let r=this.center,p=this.options,h=p.center,d=p.minSize||80,e,t=p.size!==null;return t||(h[0]!==null?e=Math.max(r[2]-Math.max(o[1],o[3]),d):(e=Math.max(r[2]-o[1]-o[3],d),r[0]+=(o[3]-o[1])/2),h[1]!==null?e=R(e,d,r[2]-Math.max(o[0],o[2])):(e=R(e,d,r[2]-o[0]-o[2]),r[1]+=(o[0]-o[2])/2),e<r[2]?(r[2]=e,r[3]=Math.min(p.thickness?Math.max(0,e-2*p.thickness):Math.max(0,L(p.innerSize||0,e)),e),this.translate(r),this.drawDataLabels&&this.drawDataLabels()):t=!0),t}const k=[],S={radialDistributionY:function(o){return o.top+o.distributeBox.pos},radialDistributionX:function(o,r,p,h){return o.getX(p<r.top+2||p>r.bottom-2?h:p,r.half,r)},justify:function(o,r,p){return p[0]+(o.half?-1:1)*(r+o.labelDistance)},alignToPlotEdges:function(o,r,p,h){return o=o.getBBox().width,r?o+h:p-o-h},alignToConnectors:function(o,r,p,h){let d=0,e;return o.forEach(function(t){e=t.dataLabel.getBBox().width,e>d&&(d=e)}),r?d+h:p-d-h}};y.compose=function(o){B.compose(O),J.pushUnique(k,o)&&(o=o.prototype,o.dataLabelPositioners=S,o.alignDataLabel=X,o.drawDataLabels=v,o.placeDataLabels=g,o.verifyDataLabelOverflow=A)}}(c||(c={})),c}),st(T,"Extensions/OverlappingDataLabels.js",[T["Core/Chart/Chart.js"],T["Core/Utilities.js"]],function(B,P){function G(R,x){let b,E=!1;return R&&(b=R.newOpacity,R.oldOpacity!==b&&(R.alignAttr&&R.placed?(R[b?"removeClass":"addClass"]("highcharts-data-label-hidden"),E=!0,R.alignAttr.opacity=b,R[R.isOld?"animate":"attr"](R.alignAttr,null,function(){x.styledMode||R.css({pointerEvents:b?"auto":"none"})}),J(x,"afterHideOverlappingLabel")):R.attr({opacity:b})),R.isOld=!0),E}const{addEvent:q,fireEvent:J,isArray:X,isNumber:Y,objectEach:O,pick:N}=P;q(B,"render",function(){let R=this,x=[];(this.labelCollectors||[]).forEach(function(b){x=x.concat(b())}),(this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&O(b.stacking.stacks,function(E){O(E,function(L){L.label&&x.push(L.label)})})}),(this.series||[]).forEach(function(b){var E=b.options.dataLabels;b.visible&&(E.enabled!==!1||b._hasPointLabels)&&(E=L=>L.forEach(c=>{c.visible&&(X(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[]).forEach(function(y){const v=y.options;y.labelrank=N(v.labelrank,c.labelrank,c.shapeArgs&&c.shapeArgs.height),v.allowOverlap?(y.oldOpacity=y.opacity,y.newOpacity=1,G(y,R)):x.push(y)})}),E(b.nodes||[]),E(b.points))}),this.hideOverlappingLabels(x)}),B.prototype.hideOverlappingLabels=function(R){let x=this,b=R.length,E=x.renderer;var L;let c,y,v,g,A=!1;var k=function(S){let o,r;var p;let h=S.box?0:S.padding||0,d=p=0,e,t;if(S&&(!S.alignAttr||S.placed))return o=S.alignAttr||{x:S.attr("x"),y:S.attr("y")},r=S.parentGroup,S.width||(p=S.getBBox(),S.width=p.width,S.height=p.height,p=E.fontMetrics(S.element).h),e=S.width-2*h,(t={left:"0",center:"0.5",right:"1"}[S.alignValue])?d=+t*e:Y(S.x)&&Math.round(S.x)!==S.translateX&&(d=S.x-S.translateX),{x:o.x+(r.translateX||0)+h-(d||0),y:o.y+(r.translateY||0)+h-p,width:S.width-2*h,height:S.height-2*h}};for(c=0;c<b;c++)(L=R[c])&&(L.oldOpacity=L.opacity,L.newOpacity=1,L.absoluteBox=k(L));for(R.sort(function(S,o){return(o.labelrank||0)-(S.labelrank||0)}),c=0;c<b;c++)for(v=(k=R[c])&&k.absoluteBox,L=c+1;L<b;++L)g=(y=R[L])&&y.absoluteBox,!v||!g||k===y||k.newOpacity===0||y.newOpacity===0||k.visibility==="hidden"||y.visibility==="hidden"||g.x>=v.x+v.width||g.x+g.width<=v.x||g.y>=v.y+v.height||g.y+g.height<=v.y||((k.labelrank<y.labelrank?k:y).newOpacity=0);R.forEach(function(S){G(S,x)&&(A=!0)}),A&&J(x,"afterHideAllOverlappingLabels")}}),st(T,"Extensions/BorderRadius.js",[T["Core/Defaults.js"],T["Core/Series/Series.js"],T["Core/Series/SeriesRegistry.js"],T["Core/Renderer/SVG/SVGElement.js"],T["Core/Renderer/SVG/SVGRenderer.js"],T["Core/Utilities.js"]],function(B,P,G,q,J,X){const{defaultOptions:Y}=B;({seriesTypes:B}=G);const{addEvent:O,extend:N,isObject:R,merge:x,relativeLength:b}=X,E={radius:0,scope:"stack",where:void 0},L=(c,y)=>(R(c)||(c={radius:c||0}),x(E,y,c));if(q.symbolCustomAttribs.indexOf("borderRadius")===-1){q.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const c=J.prototype.symbols.arc;J.prototype.symbols.arc=function(v,g,A,k,S={}){v=c(v,g,A,k,S);const{innerR:o=0,r=A,start:p=0,end:h=0}=S;if(S.open||!S.borderRadius)return v;for(A=h-p,g=Math.sin(A/2),S=Math.max(Math.min(b(S.borderRadius||0,r-o),(r-o)/2,r*g/(1+g)),0),A=Math.min(S,A/Math.PI*2*o),g=v.length-1;g--;){let _,a,w;k=v;var d=g,e=1<g?A:S,t=k[d],i=k[d+1];if(i[0]==="Z"&&(i=k[0]),t[0]!=="M"&&t[0]!=="L"||i[0]!=="A"?t[0]!=="A"||i[0]!=="M"&&i[0]!=="L"||(w=i,a=t):(w=t,a=i,_=!0),w&&a&&a.params){t=a[1];var l=a[5];i=a.params;const{start:H,end:K,cx:rt,cy:j}=i;var u=l?t-e:t+e;const s=u?Math.asin(e/u):0;l=l?s:-s,u*=Math.cos(s),_?(i.start=H+l,w[1]=rt+u*Math.cos(H),w[2]=j+u*Math.sin(H),k.splice(d+1,0,["A",e,e,0,0,1,rt+t*Math.cos(i.start),j+t*Math.sin(i.start)])):(i.end=K-l,a[6]=rt+t*Math.cos(i.end),a[7]=j+t*Math.sin(i.end),k.splice(d+1,0,["A",e,e,0,0,1,rt+u*Math.cos(K),j+u*Math.sin(K)])),a[4]=Math.abs(i.end-i.start)<Math.PI?0:1}}return v};const y=J.prototype.symbols.roundedRect;J.prototype.symbols.roundedRect=function(v,g,A,k,S={}){const o=y(v,g,A,k,S),{r=0,brBoxHeight:p=k,brBoxY:h=g}=S;var d=g-h,e=h+p-(g+k);S=-.1<d-r?0:r;const t=-.1<e-r?0:r;var i=Math.max(S&&d,0);const l=Math.max(t&&e,0);e=[v+S,g],d=[v+A-S,g];const u=[v+A,g+S],_=[v+A,g+k-t],a=[v+A-t,g+k],w=[v+t,g+k],H=[v,g+k-t],K=[v,g+S];if(i){const rt=Math.sqrt(Math.pow(S,2)-Math.pow(S-i,2));e[0]-=rt,d[0]+=rt,u[1]=K[1]=g+S-i}return k<S-i&&(i=Math.sqrt(Math.pow(S,2)-Math.pow(S-i-k,2)),u[0]=_[0]=v+A-S+i,a[0]=Math.min(u[0],a[0]),w[0]=Math.max(_[0],w[0]),H[0]=K[0]=v+S-i,u[1]=K[1]=g+k),l&&(i=Math.sqrt(Math.pow(t,2)-Math.pow(t-l,2)),a[0]+=i,w[0]-=i,_[1]=H[1]=g+k-t+l),k<t-l&&(k=Math.sqrt(Math.pow(t,2)-Math.pow(t-l-k,2)),u[0]=_[0]=v+A-t+k,d[0]=Math.min(u[0],d[0]),e[0]=Math.max(_[0],e[0]),H[0]=K[0]=v+t-k,_[1]=H[1]=g),o.length=0,o.push(["M",...e],["L",...d],["A",S,S,0,0,1,...u],["L",..._],["A",t,t,0,0,1,...a],["L",...w],["A",t,t,0,0,1,...H],["L",...K],["A",S,S,0,0,1,...e],["Z"]),o},O(B.pie,"afterTranslate",function(){const v=L(this.options.borderRadius);for(const g of this.points){const A=g.shapeArgs;A&&(A.borderRadius=b(v.radius,(A.r||0)-(A.innerR||0)))}}),O(P,"afterColumnTranslate",function(){var v,g;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){const{options:o,yAxis:r}=this,p=o.stacking==="percent";var A=(g=(v=Y.plotOptions)===null||v===void 0?void 0:v[this.type])===null||g===void 0?void 0:g.borderRadius;v=L(o.borderRadius,R(A)?A:{}),g=r.options.reversed;for(const h of this.points)if({shapeArgs:A}=h,h.shapeType==="roundedRect"&&A){const{width:d=0,height:e=0,y:t=0}=A;var k=t,S=e;v.scope==="stack"&&h.stackTotal&&(k=r.translate(p?100:h.stackTotal,!1,!0,!1,!0),S=r.translate(o.threshold||0,!1,!0,!1,!0),S=this.crispCol(0,Math.min(k,S),0,Math.abs(k-S)),k=S.y,S=S.height);const i=(h.negative?-1:1)*(g?-1:1)===-1;let l=v.where;!l&&this.is("waterfall")&&Math.abs((h.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(l="all"),l||(l="end");const u=Math.min(b(v.radius,d),d/2,l==="all"?e/2:1/0)||0;l==="end"&&(i&&(k-=u),S+=u),N(A,{brBoxHeight:S,brBoxY:k,r:u})}}},{order:9})}return P={optionsToObject:L},P}),st(T,"Core/Responsive.js",[T["Core/Utilities.js"]],function(B){const{diffObjects:P,extend:G,find:q,merge:J,pick:X,uniqueKey:Y}=B;var O;return function(N){function R(E,L){const c=E.condition;(c.callback||function(){return this.chartWidth<=X(c.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=X(c.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=X(c.minWidth,0)&&this.chartHeight>=X(c.minHeight,0)}).call(this)&&L.push(E._id)}function x(E,L){const c=this.options.responsive;var y=this.currentResponsive;let v=[];!L&&c&&c.rules&&c.rules.forEach(g=>{typeof g._id>"u"&&(g._id=Y()),this.matchResponsiveRule(g,v)},this),L=J(...v.map(g=>q((c||{}).rules||[],A=>A._id===g)).map(g=>g&&g.chartOptions)),L.isResponsiveOptions=!0,v=v.toString()||void 0,v!==(y&&y.ruleIds)&&(y&&this.update(y.undoOptions,E,!0),v?(y=P(L,this.options,!0,this.collectionsWithUpdate),y.isResponsiveOptions=!0,this.currentResponsive={ruleIds:v,mergedOptions:L,undoOptions:y},this.update(L,E,!0)):this.currentResponsive=void 0)}const b=[];N.compose=function(E){return B.pushUnique(b,E)&&G(E.prototype,{matchResponsiveRule:R,setResponsive:x}),E}}(O||(O={})),O}),st(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/Templating.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/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(B,P,G,q,J,X,Y,O,N,R,x,b,E,L,c,y,v,g,A,k,S,o,r,p,h,d,e,t,i,l,u,_,a,w){return B.animate=J.animate,B.animObject=J.animObject,B.getDeferredAnimation=J.getDeferredAnimation,B.setAnimation=J.setAnimation,B.stop=J.stop,B.timers=q.timers,B.AST=X,B.Axis=E,B.Chart=o,B.chart=o.chart,B.Fx=q,B.Legend=S,B.PlotLineOrBand=y,B.Point=A,B.Pointer=k,B.Series=h,B.StackItem=p,B.SVGElement=N,B.SVGRenderer=R,B.Templating=Y,B.Tick=v,B.Time=w,B.Tooltip=g,B.Color=a,B.color=a.parse,b.compose(R),x.compose(N),k.compose(o),S.compose(o),B.defaultOptions=G.defaultOptions,B.getOptions=G.getOptions,B.time=G.defaultTime,B.setOptions=G.setOptions,B.dateFormat=Y.dateFormat,B.format=Y.format,B.numberFormat=Y.numberFormat,B.addEvent=P.addEvent,B.arrayMax=P.arrayMax,B.arrayMin=P.arrayMin,B.attr=P.attr,B.clearTimeout=P.clearTimeout,B.correctFloat=P.correctFloat,B.createElement=P.createElement,B.css=P.css,B.defined=P.defined,B.destroyObjectProperties=P.destroyObjectProperties,B.discardElement=P.discardElement,B.distribute=O.distribute,B.erase=P.erase,B.error=P.error,B.extend=P.extend,B.extendClass=P.extendClass,B.find=P.find,B.fireEvent=P.fireEvent,B.getMagnitude=P.getMagnitude,B.getStyle=P.getStyle,B.inArray=P.inArray,B.isArray=P.isArray,B.isClass=P.isClass,B.isDOMElement=P.isDOMElement,B.isFunction=P.isFunction,B.isNumber=P.isNumber,B.isObject=P.isObject,B.isString=P.isString,B.keys=P.keys,B.merge=P.merge,B.normalizeTickInterval=P.normalizeTickInterval,B.objectEach=P.objectEach,B.offset=P.offset,B.pad=P.pad,B.pick=P.pick,B.pInt=P.pInt,B.relativeLength=P.relativeLength,B.removeEvent=P.removeEvent,B.seriesType=d.seriesType,B.splat=P.splat,B.stableSort=P.stableSort,B.syncTimeout=P.syncTimeout,B.timeUnits=P.timeUnits,B.uniqueKey=P.uniqueKey,B.useSerialIds=P.useSerialIds,B.wrap=P.wrap,t.compose(e),u.compose(h),L.compose(E),c.compose(E),l.compose(i),y.compose(E),_.compose(o),r.compose(E,o,h),g.compose(k),B}),T["masters/highcharts.src.js"]._modules=T,T["masters/highcharts.src.js"]})}(de)),de.exports}(function(at,ot){(function(st,T){at.exports=T(Ns(),ti)})(window,function(st,T){return P=[function(q,J){q.exports=st},function(q,J){q.exports=T},function(q,Y,X){X.r(Y),X.d(Y,"Chart",function(){return g}),X.d(Y,"default",function(){return A});var Y=X(0),O=X.n(Y);function N(k,S){return function o(r,p,h){function d(e,t){!O.a.isObject(e,!h)||O.a.isClass(e)||O.a.isDOMElement(e)?r[t]=p[t]:r[t]=o(r[t]||O.a.isArray(e)?[]:{},e,h)}return O.a.isArray(p)?p.forEach(d):O.a.objectEach(p,d),r}({},k,S)}var R=X(1);function x(k){return(x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(k)}function b(k){return function(S){if(Array.isArray(S))return E(S)}(k)||function(S){if(typeof Symbol<"u"&&S[Symbol.iterator]!=null||S["@@iterator"]!=null)return Array.from(S)}(k)||function(S,o){var r;if(S)return typeof S=="string"?E(S,o):(r=(r=Object.prototype.toString.call(S).slice(8,-1))==="Object"&&S.constructor?S.constructor.name:r)==="Map"||r==="Set"?Array.from(S):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(S,o):void 0}(k)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E(k,S){(S==null||S>k.length)&&(S=k.length);for(var o=0,r=new Array(S);o<S;o++)r[o]=k[o];return r}function L(k,S){var o,r=Object.keys(k);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(k),S&&(o=o.filter(function(p){return Object.getOwnPropertyDescriptor(k,p).enumerable})),r.push.apply(r,o)),r}function c(k){for(var S=1;S<arguments.length;S++){var o=arguments[S]!=null?arguments[S]:{};S%2?L(Object(o),!0).forEach(function(r){var p,h;p=k,h=o[r=r],(r=function(d){return d=function(e,t){if(x(e)!=="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i===void 0)return(t==="string"?String:Number)(e);if(i=i.call(e,t||"default"),x(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(d,"string"),x(d)==="symbol"?d:String(d)}(r))in p?Object.defineProperty(p,r,{value:h,enumerable:!0,configurable:!0,writable:!0}):p[r]=h}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(o)):L(Object(o)).forEach(function(r){Object.defineProperty(k,r,Object.getOwnPropertyDescriptor(o,r))})}return k}var y={template:'<div ref="chart"></div>',props:{constructorType:{type:String,default:"chart"},options:{type:Object,required:!0},callback:Function,updateArgs:{type:Array,default:function(){return[!0,!0]}},highcharts:{type:Object},deepCopyOnUpdate:{type:Boolean,default:!0}}},v=function(k,S){return S.split(".")[0]<3?c(c({},y),{},{render:function(o){return o("div",{ref:"chart"})},beforeDestroy:function(){this.chart&&this.chart.destroy()},watch:{options:{handler:function(o){var r;(r=this.chart).update.apply(r,[N(o,this.deepCopyOnUpdate)].concat(b(this.updateArgs)))},deep:!0}},mounted:function(){var o=this.highcharts||k;this.options&&o[this.constructorType]?this.chart=o[this.constructorType](this.$refs.chart,N(this.options,!0),this.callback||null):this.options?console.warn("'".concat(this.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')}}):c(c({},y),{},{render:function(){return Object(R.h)("div",{ref:"chartContainer"})},setup:function(o){var r=Object(R.ref)(null),p=Object(R.shallowRef)({});return Object(R.onMounted)(function(){var h=o.highcharts||k;o.options&&h[o.constructorType]?p.value=h[o.constructorType](r.value,N(o.options,!0),o.callback||null):o.options?console.warn("'".concat(o.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')}),Object(R.watch)(function(){return o.options},function(h,d){var e;(e=p.value).update.apply(e,[N(h,o.deepCopyOnUpdate)].concat(b(o.updateArgs)))},{deep:!0}),Object(R.onBeforeUnmount)(function(){p.value&&p.value.destroy()}),{chart:p,chartContainer:r,props:o}}})},g=v(O.a,R.version||X.n(R).a.version);function A(k){var S=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};k.component(S.tagName||"highcharts",v(S.highcharts||O.a,k.version))}}],G={},B.m=P,B.c=G,B.d=function(q,J,X){B.o(q,J)||Object.defineProperty(q,J,{enumerable:!0,get:X})},B.r=function(q){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(q,"__esModule",{value:!0})},B.t=function(q,J){if(1&J&&(q=B(q)),8&J||4&J&&typeof q=="object"&&q&&q.__esModule)return q;var X=Object.create(null);if(B.r(X),Object.defineProperty(X,"default",{enumerable:!0,value:q}),2&J&&typeof q!="string")for(var Y in q)B.d(X,Y,(function(O){return q[O]}).bind(null,Y));return X},B.n=function(q){var J=q&&q.__esModule?function(){return q.default}:function(){return q};return B.d(J,"a",J),J},B.o=function(q,J){return Object.prototype.hasOwnProperty.call(q,J)},B.p="",B(B.s=2);function B(q){var J;return(G[q]||(J=G[q]={i:q,l:!1,exports:{}},P[q].call(J.exports,J,J.exports,B),J.l=!0,J)).exports}var P,G})})(He);var ae=He.exports;const Hs={class:"w-full",flex:"","flex-col":""},$s={class:"sm:w-full md:w-[92%]","mx-auto":"","px-4":"","py-4":"","lg:px-6":"","lg:py-6":""},Ws={grid:"","grid-cols-3":"","gap-10":"","space-y-0":""},Fs={class:"mx-auto w-[16rem]","p-6":"","xl:p-8":"",flex:"","flex-col":"",border:"","border-gray-100":"","dark:border-gray-600":"","text-center":"","test-gray-900":"","bg-white":"","dark:bg-gray-800":"","dark:text-white":"",shadow:"","rounded-md":""},Gs={"mb-4":"","text-2xl":"","font-semibold":""},Xs={class:"my-8 flex items-baseline justify-center"},Us={class:"mr-2 text-5xl font-extrabold"},Ys={"mt-8":"","gap-8":"",flex:"","flex-col":""},Vs=Dt({__name:"Statistics",props:{rank:null},setup(at){const ot=at,{t:st}=qt(),T=kt(()=>ot.rank);function B(){const P=[];return P.push({title:"standings.statistics.head_data.problems",data:T.value.contest.problems.length}),P.push({title:"standings.statistics.head_data.teams",data:T.value.teams.length}),P.push({title:"standings.statistics.head_data.submissions",data:T.value.getSubmissions().length}),P}return(P,G)=>(ut(),ft("div",Hs,[tt("section",null,[tt("div",$s,[tt("div",Ws,[(ut(!0),ft(Ot,null,It(B(),q=>(ut(),ft("div",{key:q.title},[tt("div",Fs,[tt("h3",Gs,mt(Z(st)(q.title)),1),tt("div",Xs,[tt("span",Us,mt(q.data),1)])])]))),128))])])]),tt("div",Ys,[tt("div",null,[Tt(Z(ae.Chart),{options:("getSubmitChart"in P?P.getSubmitChart:Z(zs))(Z(T))},null,8,["options"])]),tt("div",null,[Tt(Z(ae.Chart),{options:("getProblemChart"in P?P.getProblemChart:Z(js))(Z(T))},null,8,["options"])]),tt("div",null,[Tt(Z(ae.Chart),{options:("getTeamChart"in P?P.getTeamChart:Z(Bs))(Z(T))},null,8,["options"])])])]))}}),qs={class:"flex flex-col items-start justify-between p-4 md:flex-row md:items-center space-y-3 md:space-y-0","aria-label":"Table navigation"},Ks={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},Zs={class:"font-semibold text-gray-900 dark:text-white"},Js={class:"font-semibold text-gray-900 dark:text-white"},Qs={class:"inline-flex items-stretch font-mono -space-x-px"},to=tt("span",{class:"sr-only"},"Previous",-1),eo=tt("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[tt("path",{"fill-rule":"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z","clip-rule":"evenodd"})],-1),io=[to,eo],so={key:0},oo=["onClick"],no={"aria-current":"page",class:"z-10 flex items-center justify-center border border-primary-300 bg-primary-50 px-3 py-2 text-sm leading-tight text-primary-600 dark:border-gray-700 dark:bg-gray-700 hover:bg-primary-100 dark:text-white hover:text-primary-700",hover:"cursor-pointer"},ro=["onClick"],ao={key:1},lo=tt("span",{class:"sr-only"},"Next",-1),ho=tt("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[tt("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})],-1),co=[lo,ho],ne="flex items-center justify-center px-3 py-2 text-sm text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white leading-tight",po=Dt({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(at,{emit:ot}){const st=at,T=kt({get(){return st.pagination},set(B){ot("update:pagination",B)}});return(B,P)=>(ut(),ft("nav",qs,[tt("span",Ks,[$t(" Showing "),tt("span",Zs,mt(Z(T).currentLeft)+"-"+mt(Math.max(0,Z(T).currentRight-1)),1),$t(" of "),tt("span",Js,mt(Z(T).totalSize),1)]),tt("ul",Qs,[tt("li",null,[tt("a",{class:"ml-0 h-full flex items-center justify-center border border-gray-300 rounded-l-lg bg-white px-3 py-1.5 text-gray-500 dark:border-gray-700 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white",hover:"cursor-pointer",onClick:P[0]||(P[0]=G=>Z(T).onPageChange({diff:-1}))},io)]),Z(T).currentPage!==0?(ut(),ft("li",so,[tt("a",{class:Pt(ne),hover:"cursor-pointer",onClick:P[1]||(P[1]=G=>Z(T).onPageChange({to:0}))}," 1 ")])):wt("",!0),(ut(!0),ft(Ot,null,It(Z(T).leftDecrPage,G=>(ut(),ft("li",{key:G},[tt("a",{class:Pt(ne),hover:"cursor-pointer",onClick:q=>Z(T).onPageChange({to:G})},mt(G+1),9,oo)]))),128)),tt("li",null,[tt("a",no,mt(Z(T).currentPage+1),1)]),(ut(!0),ft(Ot,null,It(Z(T).rightIncrPage,G=>(ut(),ft("li",{key:G},[tt("a",{hover:"cursor-pointer",class:Pt(ne),onClick:q=>Z(T).onPageChange({to:G})},mt(G+1),9,ro)]))),128)),Z(T).currentPage!==Z(T).totalPage-1&&Z(T).totalPage>1?(ut(),ft("li",ao,[tt("a",{hover:"cursor-pointer",class:Pt(ne),onClick:P[2]||(P[2]=G=>Z(T).onPageChange({to:Z(T).totalPage-1}))},mt(Z(T).totalPage),1)])):wt("",!0),tt("li",null,[tt("a",{class:"h-full flex items-center justify-center border border-gray-300 rounded-r-lg bg-white px-3 py-1.5 leading-tight text-gray-500 dark:border-gray-700 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white",hover:"cursor-pointer",onClick:P[3]||(P[3]=G=>Z(T).onPageChange({diff:1}))},co)])])]))}});class uo{constructor(){oe(this,"totalSize");oe(this,"currentPage");oe(this,"pageSize");this.totalSize=0,this.currentPage=0,this.pageSize=16}get totalPage(){return Math.floor((this.totalSize+this.pageSize-1)/this.pageSize)}get currentLeft(){return this.currentPage*this.pageSize}get currentRight(){return Math.min(this.totalSize,(this.currentPage+1)*this.pageSize)}get leftDecrPage(){const ot=[];let st=1,T=this.currentPage-st;for(;T>0;)ot.push(T),st=st<<1,T-=st;return ot.reverse()}get rightIncrPage(){const ot=[];let st=1,T=this.currentPage+st;for(;T+1<this.totalPage;)ot.push(T),st=st<<1,T+=st;return ot}onPageChange(ot){const st=this.totalPage;let T=this.currentPage;if((ot==null?void 0:ot.to)!==void 0&&(T=ot.to),(ot==null?void 0:ot.diff)!==void 0){const B=ot.diff;T=T+B}T<0||T>=st||(this.currentPage=T)}}const se=at=>(ee("data-v-72257074"),at=at(),ie(),at),fo={"mx-auto":"","w-full":""},go={"space-y-3":"",flex:"","flex-col":"","px-4":"","py-3":"","lg:flex-row":"","lg:items-center":"","lg:justify-between":"","lg:space-x-4":"","lg:space-y-0":""},mo={flex:"","flex-shrink-0":"","flex-col":"","md:flex-row":"","md:items-center":"","lg:justify-end":"","space-y-3":"","md:space-x-3":"","md:space-y-0":""},xo={key:0,"w-48":""},yo={key:1,"w-48":""},vo={key:2,"w-68":""},ko={key:3,"w-48":""},bo={key:4},So=se(()=>tt("div",{"i-material-symbols-search":"","mr-1":"","h-5":"","w-5":""},null,-1)),wo={class:"overflow-x-auto"},Co={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},Mo={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},To=se(()=>tt("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),Ao={key:0,scope:"col",class:"px-4 py-3"},Po=se(()=>tt("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),_o=se(()=>tt("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),Oo={key:1,scope:"col",class:"px-4 py-3"},Lo={key:2,scope:"col",class:"px-4 py-3"},Eo={key:3,scope:"col",class:"px-4 py-3"},Do=se(()=>tt("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),Io={"px-4":"","py-2":""},jo={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Bo={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},zo={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ro={flex:"","items-center":""},No={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ho={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},$o={flex:"","items-center":""},Wo={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Fo={flex:"","items-center":""},Go=Dt({__name:"SubmissionsTable",props:{rank:null,submissions:null,pageSize:null,removeBorder:{type:Boolean},enableFilter:null},setup(at){const ot=at,st=kt(()=>ot.rank),T=kt(()=>ot.enableFilter),B=kt(()=>{if(!T.value)return!1;for(const[e,t]of Object.entries(T.value))if(t===!0)return!0;return!1}),P=At({orgNames:[],teamIds:[],languages:[],statuses:[]}),G=kt(()=>st.value.organizations.map(t=>({value:t,text:t}))),q=At([]),J=At({});function X(e,t){q.value=e,J.value=t}const Y=kt(()=>st.value.originTeams.map(t=>({value:t.id,text:t.organization?`${t.name} - ${t.organization}`:t.name}))),O=At([]),N=At({});function R(e,t){O.value=e,N.value=t}const x=kt(()=>st.value.languages.map(i=>({value:i,text:i}))),b=At([]),E=At({});function L(e,t){b.value=e,E.value=t}const c=kt(()=>st.value.statuses.map(i=>({value:i,text:ye[i]}))),y=At([]),v=At({});function g(e,t){y.value=e,v.value=t}function A(e){return e.value.toString()}const k=kt(()=>ot.submissions.filter(t=>{const i=P.value;if(i.orgNames.length===0&&i.teamIds.length===0&&i.languages.length===0&&i.statuses.length===0)return!0;if(i.teamIds.length>0){for(const l of i.teamIds)if(l===t.teamId)return!0}if(i.orgNames.length>0){const l=st.value.teamsMap.get(t.teamId);for(const u of i.orgNames)if(u===(l==null?void 0:l.organization))return!0}if(i.languages.length>0){for(const l of i.languages)if(l===t.language)return!0}if(i.statuses.length>0){for(const l of i.statuses)if(l===t.status)return!0}return!1}).sort(Le.compare).reverse());function S(){const e={orgNames:[],teamIds:[],languages:[],statuses:[]};e.orgNames=q.value.map(t=>t.value),e.teamIds=O.value.map(t=>t.value),e.languages=b.value.map(t=>t.value),e.statuses=y.value.map(t=>t.value),P.value=e}const o=At(new uo);o.value.currentPage=0,o.value.pageSize=ot.pageSize??16,o.value.totalSize=k.value.length,Qt(k,()=>{o.value.totalSize=k.value.length,o.value.currentPage>=o.value.totalPage&&(o.value.currentPage=o.value.totalPage-1)});const r=kt(()=>k.value.slice(o.value.currentLeft,o.value.currentRight)),p=At(!1);function h(e){const t="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",i=e.problemId,l=st.value.contest.problemsMap.get(i);if(l==null||!l.balloonColor)return t}function d(e){const t=e.problemId,i=st.value.contest.problemsMap.get(t);if(!(i==null||!i.balloonColor))return{backgroundColor:i.balloonColor.background_color,color:i.balloonColor.color}}return(e,t)=>{var u,_,a,w;const i=le,l=po;return ut(),ft("section",null,[tt("div",fo,[tt("div",{relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":"",class:Pt({"shadow-md":ot.removeBorder!==!0,"sm:rounded-sm":ot.removeBorder!==!0})},[tt("div",go,[tt("div",mo,[Z(st).contest.organization&&((u=Z(T))!=null&&u.organization)?(ut(),ft("div",xo,[Tt(Z(Zt),{options:Z(G),"selected-options":Z(q),placeholder:Z(st).contest.organization,onSelect:X},null,8,["options","selected-options","placeholder"])])):wt("",!0),(_=Z(T))!=null&&_.team?(ut(),ft("div",yo,[Tt(Z(Zt),{options:Z(Y),"selected-options":Z(O),placeholder:"Team",onSelect:R},null,8,["options","selected-options"])])):wt("",!0),(a=Z(T))!=null&&a.status?(ut(),ft("div",vo,[Tt(Z(Zt),{options:Z(c),"selected-options":Z(y),placeholder:"Status","custom-attr":A,onSelect:g},null,8,["options","selected-options"])])):wt("",!0),(w=Z(T))!=null&&w.language&&Z(x).length>0?(ut(),ft("div",ko,[Tt(Z(Zt),{options:Z(x),"selected-options":Z(b),placeholder:"Language",onSelect:L},null,8,["options","selected-options"])])):wt("",!0),Z(B)?(ut(),ft("div",bo,[tt("button",{type:"button",class:"flex flex-shrink-0 items-center justify-center border border-gray-200 rounded-lg bg-white px-3 py-2 text-sm font-medium text-gray-900 focus:z-10 dark:border-gray-600 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-primary-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700",onClick:S},[So,$t(" Filter ")])])):wt("",!0)])]),tt("div",wo,[tt("table",Co,[tt("thead",Mo,[tt("tr",null,[To,Z(st).contest.organization?(ut(),ft("th",Ao,mt(Z(st).contest.organization),1)):wt("",!0),Po,_o,Z(st).contest.options.submissionHasTimeField?(ut(),ft("th",Oo," Time ")):wt("",!0),Z(p)?(ut(),ft("th",Lo," Memory ")):wt("",!0),Z(st).contest.options.submissionHasLanguageField?(ut(),ft("th",Eo," Answer ")):wt("",!0),Do])]),tt("tbody",null,[(ut(!0),ft(Ot,null,It(Z(r),H=>{var K,rt,j;return ut(),ft("tr",{key:H.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[tt("td",Io,[tt("span",{class:Pt(["rounded px-2 py-0.5 text-sm",[h(H)]]),style:Yt(d(H))},mt((K=Z(st).contest.problemsMap.get(H.problemId))==null?void 0:K.label),7)]),Z(st).contest.organization?(ut(),ft("td",jo,mt((rt=Z(st).teamsMap.get(H.teamId))==null?void 0:rt.organization),1)):wt("",!0),tt("td",Bo,mt((j=Z(st).teamsMap.get(H.teamId))==null?void 0:j.name),1),tt("td",{scope:"row",class:Pt([H.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},mt(Z(ye)[H.status]),3),Z(st).contest.options.submissionHasTimeField?(ut(),ft("td",zo,[tt("div",Ro,mt(`${H.time??0} ms`),1)])):wt("",!0),Z(p)?(ut(),ft("td",No," 0.47 ")):wt("",!0),Z(st).contest.options.submissionHasLanguageField?(ut(),ft("td",Ho,[tt("div",$o,mt(H.language),1)])):wt("",!0),tt("td",Wo,[tt("div",Fo,[Tt(i,null,{popper:Bt(()=>[$t(mt(H.timestampDisplayFormatWithMilliSecond),1)]),default:Bt(()=>[$t(mt(H.timestampDisplayFormatWithSecond)+" ",1)]),_:2},1024)])])])}),128))])])]),Tt(l,{pagination:Z(o),"onUpdate:pagination":t[0]||(t[0]=H=>zt(o)?o.value=H:null)},null,8,["pagination"])],2)])])}}});const ce=Xt(Go,[["__scopeId","data-v-72257074"]]),fe=at=>(ee("data-v-198c3ef3"),at=at(),ie(),at),Xo={class:"statistics-0"},Uo=["colspan"],Yo={class:"stnd"},Vo={class:"statistics-1"},qo=["colspan"],Ko={class:"stnd"},Zo=fe(()=>tt("br",null,null,-1)),Jo={class:"statistics-0"},Qo=["colspan"],tn={class:"stnd"},en=fe(()=>tt("br",null,null,-1)),sn={class:"statistics-1"},on=["colspan"],nn={class:"stnd"},rn=fe(()=>tt("br",null,null,-1)),an={class:"statistics-0"},ln=["colspan"],hn={class:"stnd"},cn={class:"statistics-1"},dn=["colspan"],pn={class:"stnd"},un={class:"statistics-0"},fn=["colspan"],gn={class:"stnd"},mn=Dt({__name:"BottomStatistics",props:{rank:null},setup(at){const ot=at,{t:st}=qt(),T=kt(()=>ot.rank);function B(){let Y=3;return T.value.contest.organization&&Y++,T.value.contest.badge&&Y++,Y}function P(Y){return Y.submittedNum===0?"NaN":`${Math.floor(Y.attemptedNum*100/Y.submittedNum)}%`}function G(Y){return Y.submittedNum===0?"NaN":`${Math.floor(Y.acceptedNum*100/Y.submittedNum)}%`}function q(Y){return Y.attemptedNum===0?"NaN":`${Y.dirt}%`}function J(Y){return Y.firstSolveSubmissions.length===0?"Null":`${Y.firstSolveSubmissions[0].timestampToMinute}`}function X(Y){return Y.lastSolveSubmissions.length===0?"Null":`${Y.lastSolveSubmissions[0].timestampToMinute}`}return(Y,O)=>(ut(),ft(Ot,null,[tt("tr",Xo,[tt("td",{class:"empty",colspan:B()},null,8,Uo),tt("td",Yo,[tt("b",null,mt(Z(st)("standings.statistics.submitted")),1)]),(ut(!0),ft(Ot,null,It(Z(T).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[tt("b",null,mt(N.statistics.submittedNum),1)]))),128))]),tt("tr",Vo,[tt("td",{class:"empty",colspan:B()},null,8,qo),tt("td",Ko,[tt("b",null,mt(Z(st)("standings.statistics.attempted")),1)]),(ut(!0),ft(Ot,null,It(Z(T).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[tt("b",null,mt(N.statistics.attemptedNum),1),Zo,tt("b",null," ("+mt(P(N.statistics))+") ",1)]))),128))]),tt("tr",Jo,[tt("td",{class:"empty",colspan:B()},null,8,Qo),tt("td",tn,[tt("b",null,mt(Z(st)("standings.statistics.accepted")),1)]),(ut(!0),ft(Ot,null,It(Z(T).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[tt("b",null,mt(N.statistics.acceptedNum),1),en,tt("b",null," ("+mt(G(N.statistics))+") ",1)]))),128))]),tt("tr",sn,[tt("td",{class:"empty",colspan:B()},null,8,on),tt("td",nn,[tt("b",null,mt(Z(st)("standings.statistics.dirt")),1)]),(ut(!0),ft(Ot,null,It(Z(T).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[tt("b",null,mt(N.statistics.attemptedNum-N.statistics.acceptedNum),1),rn,tt("b",null," ("+mt(q(N.statistics))+") ",1)]))),128))]),tt("tr",an,[tt("td",{class:"empty",colspan:B()},null,8,ln),tt("td",hn,[tt("b",null,mt(Z(st)("standings.statistics.se")),1)]),(ut(!0),ft(Ot,null,It(Z(T).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[tt("b",null,mt(N.statistics.se.toFixed(2)),1)]))),128))]),tt("tr",cn,[tt("td",{class:"empty",colspan:B()},null,8,dn),tt("td",pn,[tt("b",null,mt(Z(st)("standings.statistics.first_solved")),1)]),(ut(!0),ft(Ot,null,It(Z(T).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[tt("b",null,mt(J(N.statistics)),1)]))),128))]),tt("tr",un,[tt("td",{class:"empty",colspan:B()},null,8,fn),tt("td",gn,[tt("b",null,mt(Z(st)("standings.statistics.last_solved")),1)]),(ut(!0),ft(Ot,null,It(Z(T).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[tt("b",null,mt(X(N.statistics)),1)]))),128))])],64))}});const xn=Xt(mn,[["__scopeId","data-v-198c3ef3"]]),yn={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},vn=Dt({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(at,{emit:ot}){const st=at,T=kt({get(){return st.isHidden},set(J){ot("update:isHidden",J)}}),B=kt(()=>st.rank),P=kt(()=>st.team),G=kt(()=>st.p),q=kt(()=>`${P.value.name} - ${G.value.problem.label}`);return(J,X)=>{const Y=ce,O=he;return ut(),Ht(O,{isHidden:Z(T),"onUpdate:isHidden":X[0]||(X[0]=N=>zt(T)?T.value=N:null),title:Z(q)},{default:Bt(()=>[tt("div",yn,[Tt(Y,{"w-full":"",rank:Z(B),submissions:Z(G).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["isHidden","title"])}}}),kn=Dt({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(at){const ot=at,st=At(!0);function T(){st.value=!1}const B=kt(()=>ot.rank),P=kt(()=>ot.team),G=kt(()=>ot.p);function q(Y){return Y.isSolved?"+":Y.isWrongAnswer?"-":Y.isPending?`? ${Y.pendingCount}`:""}function J(Y){let O="";return Y.isUnSubmitted||(O+=`${Y.failedCount+Number(Y.isSolved)}`),(Y.isSolved&&B.value.contest.statusTimeDisplay.correct||Y.isPending&&B.value.contest.statusTimeDisplay.pending||Y.isWrongAnswer&&B.value.contest.statusTimeDisplay.incorrect)&&(O+=`/${Math.floor(Y.lastSubmitTimestamp/60)}`),O}function X(Y){return Y.isFirstSolved?"first-solve":Y.isSolved?"correct":Y.isWrongAnswer?"incorrect":Y.isPending?"pending":"unattempted"}return(Y,O)=>{const N=vn;return ut(),ft("td",{class:Pt(["stnd",[X(Z(G))]])},[tt("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:T},[tt("div",null,mt(q(Z(G))),1),tt("div",null,mt(J(Z(G))),1)]),tt("div",null,[Z(st)?wt("",!0):(ut(),Ht(N,{key:0,isHidden:Z(st),"onUpdate:isHidden":O[0]||(O[0]=R=>zt(st)?st.value=R:null),rank:Z(B),team:Z(P),p:Z(G)},null,8,["isHidden","rank","team","p"]))])],2)}}});const bn=Xt(kn,[["__scopeId","data-v-61916fae"]]),Sn={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":"","items-center":""},wn={flex:"","flex-col":"","items-start":"","gap-y-2":""},Cn={key:0},Mn={key:1},Tn={key:2,flex:"","flex-col":"","gap-2":""},An={key:3},Pn=Dt({__name:"TeamAwards",props:{team:null,rank:null},setup(at){const ot=at,st=kt(()=>ot.team),T=kt(()=>ot.rank),B=kt(()=>ot.team.problemStatistics.filter(q=>!!q.isFirstSolved).map(q=>q.problem.label).join(",")),P=kt(()=>{const q=ot.team.awards;return q.includes(Gt.GOLD)?{text:"Gold"}:q.includes(Gt.SILVER)?{text:"Silver"}:q.includes(Gt.BRONZE)?{text:"Bronze"}:q.includes(Gt.HONORABLE)?{text:"Honorable"}:null}),G=kt(()=>{let q=st.value.rank;return T.value.contest.organization&&(q=st.value.organizationRank),q===1?"1st Place":q===2?"2nd Place":q===3?"3rd Place":""});return(q,J)=>(ut(),ft("div",Sn,[tt("div",wn,[Z(P)?(ut(),ft("div",Cn,mt(Z(P).text)+" Medalist ",1)):wt("",!0),Z(G).length>0?(ut(),ft("div",Mn,mt(Z(G)),1)):wt("",!0),Z(B).length?(ut(),ft("div",Tn,[tt("div",null," First Solved Problem "+mt(Z(B)),1)])):wt("",!0),Z(st).solvedProblemNum>0?(ut(),ft("div",An," Solved "+mt(Z(st).solvedProblemNum)+" "+mt(Z(st).solvedProblemNum>1?"Problems":"Problem"),1)):wt("",!0)])]))}}),_n={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},On=["onClick"],$e=Dt({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(at,{emit:ot}){const st=at,{t:T}=qt(),B=kt({get(){return st.currentType},set(q){ot("update:currentType",q)}});function P(q){B.value=q}const G=kt(()=>st.types.length);return(q,J)=>(ut(),ft("div",_n,[(ut(!0),ft(Ot,null,It(st.types,(X,Y)=>(ut(),ft("button",{key:X,type:"button","px-4":"","py-2":"","my-2":"","text-sm":"","font-medium":"","text-gray-900":"","bg-white":"","dark:bg-gray-700":"","dark:text-white":"","border-gray-200":"","dark:border-gray-600":"","hover:bg-gray-100":"","dark:hover:bg-gray-600":"","hover:text-primary-700":"","dark:hover:text-white":"","focus:z-10":"","focus:ring-2":"","focus:ring-primary-700":"","focus:text-primary-700":"","dark:focus:ring-primary-500":"","dark:focus:text-white":"",class:Pt({"rounded-t-lg md:rounded-tr-none md:rounded-l-lg":Y===0,"rounded-b-lg md:rounded-bl-none md:rounded-r-lg mr-2":Y+1===Z(G),border:Y===0||Y+1===Z(G),"border-t border-x md:border-x-0 md:border-b":Y>0&&Y+1<Z(G),"md:border-r-0":Y===0,"md:border-l":Y>0,"z-10 ring-2 ring-primary-700 text-primary-700 dark:ring-primary-600 dark:text-white":Z(B)===X}),onClick:O=>P(X)},mt(Z(T)(`type_menu.${X}`)),11,On))),128))]))}}),Ln=["src"],We=Dt({__name:"Badge",props:{image:null,widthClass:null},setup(at){const ot=at,st=kt(()=>ot.image),T=kt(()=>ot.widthClass?ot.widthClass:"h-8 w-8");return(B,P)=>Z(st).base64?(ut(),ft("img",{key:0,src:Z(je)(Z(st)),alt:"badge",class:Pt([Z(T)])},null,10,Ln)):wt("",!0)}}),En={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},Dn={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},In={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},jn={flex:"","flex-row":"","space-x-3":""},Bn={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},zn={flex:"","flex-col":"","justify-start":"","items-start":""},Rn={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},Nn={key:0,"w-full":"",class:"mt-[-12px]"},Hn={key:1,"w-full":""},$n={key:2,"w-full":""},Se="submissions",we="statistics",Ce="awards",Wn=Dt({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(at,{emit:ot}){const st=at,T=kt({get(){return st.isHidden},set(X){ot("update:isHidden",X)}}),B=At("submissions"),P=kt(()=>st.rank),G=kt(()=>st.team),q=kt(()=>{let X="";return P.value.contest.organization&&G.value.organization.length>0&&(X+=`${G.value.organization} - `),X+=`${G.value.name}`,G.value.members&&(X+=` - ${G.value.members}`),G.value.coach&&(X+=` - ${G.value.coach}(coach)`),X}),J=[Se,we,Ce];return(X,Y)=>{const O=We,N=le,R=$e,x=ce,b=Pn,E=he;return ut(),Ht(E,{isHidden:Z(T),"onUpdate:isHidden":Y[1]||(Y[1]=L=>zt(T)?T.value=L:null)},{header:Bt(()=>[tt("div",En,[tt("div",Dn,[tt("div",In,[tt("div",jn,[Z(G).badge?(ut(),Ht(O,{key:0,image:Z(G).badge,"width-class":"h-8 w-8"},null,8,["image"])):wt("",!0),Tt(N,null,{popper:Bt(()=>[tt("div",zn,[tt("div",null," TeamID: "+mt(Z(G).id),1)])]),default:Bt(()=>[tt("h3",Bn,mt(Z(q)),1)]),_:1})]),Tt(R,{"current-type":Z(B),"onUpdate:currentType":Y[0]||(Y[0]=L=>zt(B)?B.value=L:null),types:J},null,8,["current-type"])])])])]),default:Bt(()=>[tt("div",Rn,[Z(B)===Se?(ut(),ft("div",Nn,[Tt(x,{"w-full":"",rank:Z(P),submissions:Z(G).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):wt("",!0),Z(B)===we?(ut(),ft("div",Hn,[Tt(Z(ae.Chart),{options:("getTeamPlaceChart"in X?X.getTeamPlaceChart:Z(Rs))(Z(P),Z(G))},null,8,["options"])])):wt("",!0),Z(B)===Ce?(ut(),ft("div",$n,[Tt(b,{team:Z(G),rank:Z(P)},null,8,["team","rank"])])):wt("",!0)])]),_:1},8,["isHidden"])}}}),Fn={},Gn={class:"color-gray-700 dark:color-gray-200"},Xn=tt("svg",{t:"1685666543416",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3736",width:"16",height:"16"},[tt("path",{d:"M661.333333 662.613333c0.213333 82.133333 28.8 169.386667 64 169.386667v170.666667H298.666667v-170.666667c35.2 0 63.786667-87.253333 64-169.386667a176.256 176.256 0 0 1 21.333333-1.28h21.333333c0 35.413333 47.786667 64 106.666667 64s106.666667-28.586667 106.666667-64h21.333333a176.256 176.256 0 0 1 21.333333 1.28z",fill:"#F3596B","p-id":"3737"}),tt("path",{d:"M810.666667 832v170.666667h-85.333334v-170.666667c-35.2 0-63.786667-87.253333-64-169.386667A170.666667 170.666667 0 0 1 810.666667 832zM362.666667 662.613333c-0.213333 82.133333-28.8 169.386667-64 169.386667v170.666667h-85.333334v-170.666667a170.666667 170.666667 0 0 1 149.333334-169.386667z",fill:"#FFD0AA","p-id":"3738"}),tt("path",{d:"M704 320v-85.333333c0-94.293333-97.706667-170.666667-192-170.666667a42.794667 42.794667 0 0 1 42.666667-42.666667h128a128 128 0 0 1 128 128v234.666667s0 85.333333 85.333333 85.333333c0 0-93.226667 134.613333-228.48 6.186667a166.229333 166.229333 0 0 0 13.866667-49.066667L682.666667 426.666667h21.333333a42.666667 42.666667 0 0 0 0-85.333334h-21.333333v-21.333333z",fill:"#FFCA6B","p-id":"3739"}),tt("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),tt("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),tt("path",{d:"M746.666667 384a42.794667 42.794667 0 0 1-42.666667 42.666667h-21.333333l-1.28-0.213334A172.8 172.8 0 0 0 682.666667 405.333333v-64h21.333333a42.794667 42.794667 0 0 1 42.666667 42.666667zM341.333333 405.333333a172.8 172.8 0 0 0 1.28 21.12L341.333333 426.666667h-21.333333a42.666667 42.666667 0 0 1 0-85.333334h21.333333zM618.666667 661.333333c0 35.413333-47.786667 64-106.666667 64s-106.666667-28.586667-106.666667-64a42.794667 42.794667 0 0 0 42.666667-42.666666v-55.04a171.712 171.712 0 0 0 128 0V618.666667a42.794667 42.794667 0 0 0 42.666667 42.666666z",fill:"#FFD0AA","p-id":"3742"}),tt("path",{d:"M682.666667 341.333333v64a172.8 172.8 0 0 1-1.28 21.12 166.229333 166.229333 0 0 1-13.866667 49.066667A170.474667 170.474667 0 0 1 576 563.626667 170.538667 170.538667 0 0 1 341.333333 405.333333v-85.333333h341.333334z",fill:"#FFD0AA","p-id":"3743"}),tt("path",{d:"M810.666667 1024H213.333333a21.333333 21.333333 0 0 1-21.333333-21.333333v-170.666667a192.213333 192.213333 0 0 1 192-192h21.333333a21.333333 21.333333 0 0 0 21.333334-21.333333v-64h42.666666v64a64 64 0 0 1-64 64h-21.333333a149.504 149.504 0 0 0-149.333333 149.333333v149.333333h554.666666v-149.333333a149.504 149.504 0 0 0-149.333333-149.333333h-21.333333a64 64 0 0 1-64-64v-64h42.666666v64a21.333333 21.333333 0 0 0 21.333334 21.333333h21.333333a192.213333 192.213333 0 0 1 192 192v170.666667a21.333333 21.333333 0 0 1-21.333333 21.333333z",fill:"#2A3244","p-id":"3744"}),tt("path",{d:"M512 597.333333a192.234667 192.234667 0 0 1-192-192v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333333h341.333334a21.333333 21.333333 0 0 1 21.333333 21.333333v85.333333a192.234667 192.234667 0 0 1-192 192z m-149.333333-256v64a149.333333 149.333333 0 0 0 298.666666 0v-64z",fill:"#2A3244","p-id":"3745"}),tt("path",{d:"M704 448h-21.333333v-42.666667h21.333333a21.333333 21.333333 0 0 0 0-42.666666h-21.333333v-42.666667h21.333333a64 64 0 0 1 0 128zM341.333333 448h-21.333333a64 64 0 0 1 0-128h21.333333v42.666667h-21.333333a21.333333 21.333333 0 0 0 0 42.666666h21.333333z",fill:"#2A3244","p-id":"3746"}),tt("path",{d:"M704 341.333333H320a21.333333 21.333333 0 0 1-21.333333-21.333333v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333334h384a21.333333 21.333333 0 0 1 21.333333 21.333334v85.333333a21.333333 21.333333 0 0 1-21.333333 21.333333z m-362.666667-42.666666h341.333334v-42.666667H341.333333z",fill:"#2A3244","p-id":"3747"}),tt("path",{d:"M725.333333 234.666667h-42.666666c0-84.096-91.733333-149.333333-170.666667-149.333334s-170.666667 65.237333-170.666667 149.333334h-42.666666c0-109.888 112.618667-192 213.333333-192s213.333333 82.112 213.333333 192z",fill:"#2A3244","p-id":"3748"}),tt("path",{d:"M783.616 552.32c-46.122667 0-92.266667-22.805333-137.365333-67.904l30.165333-30.165333c39.701333 39.701333 78.613333 58.389333 115.648 55.018666a114.282667 114.282667 0 0 0 60.8-26.026666A105.92 105.92 0 0 1 789.333333 384V149.333333a106.794667 106.794667 0 0 0-106.666666-106.666666h-128a21.333333 21.333333 0 0 0-21.333334 21.333333h-42.666666a64 64 0 0 1 64-64h128a149.504 149.504 0 0 1 149.333333 149.333333v234.666667a60.842667 60.842667 0 0 0 64 64 21.333333 21.333333 0 0 1 17.536 33.472 174.72 174.72 0 0 1-117.333333 70.250667 130.133333 130.133333 0 0 1-12.586667 0.597333zM512 746.666667c-71.765333 0-128-37.482667-128-85.333334h42.666667c0 20.138667 36.48 42.666667 85.333333 42.666667s85.333333-22.528 85.333333-42.666667h42.666667c0 47.850667-56.234667 85.333333-128 85.333334zM746.666667 1002.666667h-42.666667v-154.709334c-43.968-23.274667-64-117.333333-64-186.624h42.666667c0 85.333333 29.866667 148.842667 42.666666 149.333334a22.08 22.08 0 0 1 21.333334 21.333333zM320 1002.666667h-42.666667v-170.666667a21.333333 21.333333 0 0 1 21.333334-21.333333c12.8-0.490667 42.666667-64 42.666666-149.333334h42.666667c0 69.354667-20.032 163.349333-64 186.624z",fill:"#2A3244","p-id":"3749"})],-1),Un=[Xn];function Yn(at,ot){return ut(),ft("div",Gn,Un)}const Vn=Xt(Fn,[["render",Yn]]),qn={},Kn={class:"color-gray-700 dark:color-gray-200"},Zn=tt("svg",{t:"1685845881484",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4847",width:"16",height:"16"},[tt("path",{d:"M785.352203 933.397493c-4.074805 0-8.151657-0.970094-11.833513-3.007497l-261.311471-142.488225L250.942821 930.388972c-8.343015 4.559852-18.527982 3.8814-26.28669-1.599428-7.760754-5.5279-11.640108-14.987343-10.088776-24.347524l47.578622-285.365306L72.563154 429.470355c-6.594185-6.547113-8.971325-16.295128-6.110161-25.122167 2.814092-8.850575 10.379395-15.397688 19.546172-16.949021l285.512662-47.577598 118.529557-236.989529c4.172019-8.391111 12.803607-13.701047 22.165836-13.701047 9.359158 0 17.992793 5.309936 22.163789 13.701047l118.529557 236.989529 285.511639 47.577598c9.217942 1.551332 16.73208 8.051373 19.593244 16.949021 2.813069 8.875135 0.48607 18.575054-6.109138 25.122167L762.264369 619.077737l47.577598 285.365306c1.50119 9.360182-2.37714 18.819624-10.087753 24.347524C795.487028 931.797042 790.394033 933.397493 785.352203 933.397493zM512.206196 734.747153c4.073782 0 8.196683 0.968048 11.880585 3.006474l228.379431 124.545574-41.268916-247.634983c-1.308809-7.90504 1.257643-16.005532 6.932899-21.63167l164.55787-164.555823-250.398934-41.709961c-7.855922-1.308809-14.549368-6.304589-18.140149-13.408381l-101.942787-203.915249","p-id":"4848"})],-1),Jn=[Zn];function Qn(at,ot){return ut(),ft("div",Kn,Jn)}const tr=Xt(qn,[["render",Qn]]),er=at=>(ee("data-v-2aff4d09"),at=at(),ie(),at),ir={key:1,class:"empty flex items-center justify-center"},sr={flex:""},or={class:"float-left pl-2 font-serif"},nr={key:0},rr={class:"flex-1"},ar=er(()=>tt("div",{class:"float-right"},null,-1)),lr=Dt({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean}},setup(at){const ot=at,st=At(null),T=ei(st),B=At(!0);function P(){B.value=!1}const G=kt(()=>ot.rank),q=kt(()=>ot.team);function J(Y,O=!1){if(O){if(Y.awards.includes(Gt.GOLD))return"gold";if(Y.awards.includes(Gt.SILVER))return"silver";if(Y.awards.includes(Gt.BRONZE))return"bronze";if(Y.awards.includes(Gt.HONORABLE))return"honorable"}if(ot.isFilter)return"filter-team";const N=(G.value.rankStatistics.getTeamSolvedNumIndex(Y.solvedProblemNum)-1)%2,R=ot.ix%2;return`stand${N}${R}`}function X(){return T.value||ot.ix<32}return(Y,O)=>{const N=We,R=tr,x=Vn,b=Wn,E=bn;return ut(),ft("tr",{ref_key:"el",ref:st,class:Pt(["h-10",[ot.isFilter?"filter-team":""]])},[X()?(ut(),ft("td",{key:0,class:Pt(["stnd",[J(Z(q),!0)]])},mt(Z(q).rank),3)):wt("",!0),Z(G).contest.badge&&Z(q).badge&&X()?(ut(),ft("td",ir,[Tt(N,{image:Z(q).badge,"width-class":"h-8 w-8"},null,8,["image"])])):wt("",!0),Z(G).contest.organization&&X()?(ut(),ft("td",{key:2,class:Pt(["stnd",[J(Z(q))]])},[tt("div",sr,[tt("div",or,[Z(q).organizationRank>-1?(ut(),ft("div",nr,mt(Z(q).organizationRank),1)):wt("",!0)]),tt("div",rr,mt(Z(q).organization),1),ar])],2)):wt("",!0),X()?(ut(),ft("td",{key:3,class:Pt(["stnd",[J(Z(q))]])},[tt("div",{"cursor-pointer":"",onClick:P},[tt("span",null,mt(Z(q).name),1),Z(q).group.includes("unofficial")?(ut(),Ht(R,{key:0,"inline-block":""})):wt("",!0),Z(q).group.includes("girl")?(ut(),Ht(x,{key:1,"inline-block":""})):wt("",!0)]),tt("div",null,[Z(B)?wt("",!0):(ut(),Ht(b,{key:0,isHidden:Z(B),"onUpdate:isHidden":O[0]||(O[0]=L=>zt(B)?B.value=L:null),rank:Z(G),team:Z(q)},null,8,["isHidden","rank","team"]))])],2)):wt("",!0),X()?(ut(),ft("td",{key:4,class:Pt(["stnd",[J(Z(q))]])},mt(Z(q).solvedProblemNum),3)):wt("",!0),X()?(ut(),ft("td",{key:5,class:Pt(["stnd",[J(Z(q))]])},mt(Z(q).penaltyToMinute),3)):wt("",!0),(ut(!0),ft(Ot,null,It(Z(q).problemStatistics,L=>(ut(),ft(Ot,{key:L.problem.id},[X()?(ut(),Ht(E,{key:0,rank:Z(G),team:Z(q),p:L},null,8,["rank","team","p"])):wt("",!0)],64))),128)),X()?(ut(),ft("td",{key:6,class:Pt(["stnd",[J(Z(q))]])},mt(`${Z(q).dirt}%`),3)):wt("",!0),X()?(ut(),ft("td",{key:7,class:Pt(["stnd",[J(Z(q))]])},mt(`${Z(q).se.toFixed(2)}`),3)):wt("",!0)],2)}}});const hr=Xt(lr,[["__scopeId","data-v-2aff4d09"]]),cr={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},dr={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},pr={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},ur={flex:"","flex-row":"","space-x-3":""},fr={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},gr={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},mr={key:0,"w-full":"",class:"mt-[-12px]"},xr={key:1,"w-full":""},yr={key:2,"w-full":""},Me="submissions",Te="statistics",Ae="awards",vr=Dt({__name:"ProblemInfoModal",props:{isHidden:{type:Boolean},rank:null,problem:null},emits:["update:isHidden"],setup(at,{emit:ot}){const st=at,T=kt({get(){return st.isHidden},set(Y){ot("update:isHidden",Y)}}),B=At("submissions"),P=kt(()=>st.rank),G=kt(()=>st.problem),q=kt(()=>`Problem ${G.value.label}`),J=kt(()=>P.value.getSubmissions().filter(Y=>Y.problemId===G.value.id)),X=[Me,Te,Ae];return(Y,O)=>{const N=$e,R=ce,x=he;return ut(),Ht(x,{isHidden:Z(T),"onUpdate:isHidden":O[1]||(O[1]=b=>zt(T)?T.value=b:null)},{header:Bt(()=>[tt("div",cr,[tt("div",dr,[tt("div",pr,[tt("div",ur,[tt("h3",fr,mt(Z(q)),1)]),Tt(N,{"current-type":Z(B),"onUpdate:currentType":O[0]||(O[0]=b=>zt(B)?B.value=b:null),types:X},null,8,["current-type"])])])])]),default:Bt(()=>[tt("div",gr,[Z(B)===Me?(ut(),ft("div",mr,[Tt(R,{"w-full":"",rank:Z(P),submissions:Z(J),"page-size":8,"remove-border":!0,"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):wt("",!0),Z(B)===Te?(ut(),ft("div",xr)):wt("",!0),Z(B)===Ae?(ut(),ft("div",yr)):wt("",!0)])]),_:1},8,["isHidden"])}}}),kr=Dt({__name:"ProblemBlock",props:{rank:null,problem:null},setup(at){const ot=at,st=At(!0);function T(){st.value=!1}const B=kt(()=>ot.rank),P=kt(()=>ot.problem),G=kt(()=>P.value.balloonColor);return(q,J)=>{const X=vr;return ut(),ft("th",{key:Z(P).id,class:"success","text-center":"",style:Yt([{width:"3rem"},{"background-color":Z(G).background_color,color:Z(G).color}])},[tt("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:T},[tt("div",null,mt(Z(P).label),1),tt("div",null,mt(Z(P).statistics.acceptedNum),1)]),tt("div",null,[Z(st)?wt("",!0):(ut(),Ht(X,{key:0,"is-hidden":Z(st),"onUpdate:isHidden":J[0]||(J[0]=Y=>zt(st)?st.value=Y:null),rank:Z(B),problem:Z(P)},null,8,["is-hidden","rank","problem"]))])],4)}}});const br=Xt(kr,[["__scopeId","data-v-6d613751"]]),Fe=at=>(ee("data-v-6e350cfa"),at=at(),ie(),at),Sr={class:"standings","font-mono":"","dark:text-gray-700":""},wr={class:"sticky top-0 z-99"},Cr={class:"title",style:{width:"3rem"}},Mr={key:0,class:"title",style:{width:"2rem"}},Tr={class:"title",style:{width:"3rem"}},Ar={class:"title",style:{width:"4rem"}},Pr={class:"title",style:{width:"2.5rem"}},_r=Fe(()=>tt("div",null,[$t(" number of submits on the "),tt("br"),$t(" all solved problems / number "),tt("br"),$t(" of the solved problems ")],-1)),Or={class:"title",style:{width:"2.5rem"}},Lr=Fe(()=>tt("div",null,[$t(' "average hardness". '),tt("br"),$t(" Problem, solved by N teams out of M, "),tt("br"),$t(" have hardness (M-N)/M. ")],-1)),Er=Dt({__name:"Standings",props:{rank:{}},setup(at){const ot=at,{t:st}=qt(),T=kt(()=>ot.rank),B=kt(()=>ot.rank.teams),P=kt(()=>ot.rank.teams.filter(X=>!!(ot.rank.organizations&&ot.rank.options.filterOrganizationMap.has(X.organization)||ot.rank.options.filterTeamMap.has(X.id)))),G=kt(()=>{let J=0;return T.value.teams.forEach(X=>{J=Math.max(J,X.organization.length)}),J}),q=kt(()=>{let J=0;return T.value.teams.forEach(X=>{J=Math.max(J,X.name.length)}),J});return(J,X)=>{const Y=br,O=le,N=hr,R=xn;return ut(),ft("div",null,[tt("div",null,[tt("table",Sr,[tt("thead",wr,[tt("tr",null,[tt("th",Cr,mt(Z(st)("standings.place")),1),Z(T).contest.badge?(ut(),ft("th",Mr,mt(Z(T).contest.badge),1)):wt("",!0),Z(T).contest.organization?(ut(),ft("th",{key:1,class:"title",style:Yt({width:`${Math.min(32,Math.ceil(Z(G)*1.1))}rem`})},mt(Z(T).contest.organization),5)):wt("",!0),tt("th",{class:"title",style:Yt({width:`${Math.min(32,Math.ceil(Z(q)*1))}rem`})},mt(Z(st)("standings.team")),5),tt("th",Tr,mt(Z(st)("standings.solved")),1),tt("th",Ar,mt(Z(st)("standings.penalty")),1),(ut(!0),ft(Ot,null,It(Z(T).contest.problems,x=>(ut(),Ht(Y,{key:`problem-block-${x.id}`,rank:Z(T),problem:x},null,8,["rank","problem"]))),128)),tt("th",Pr,[Tt(O,{placement:"top"},{popper:Bt(()=>[_r]),default:Bt(()=>[tt("div",null,mt(Z(st)("standings.dirt")),1)]),_:1})]),tt("th",Or,[Tt(O,{placement:"top"},{popper:Bt(()=>[Lr]),default:Bt(()=>[tt("div",null,mt(Z(st)("standings.se")),1)]),_:1})])])]),tt("tbody",null,[(ut(!0),ft(Ot,null,It(Z(P),(x,b)=>(ut(),Ht(N,{key:`filter-${x.id}`,ix:b,rank:Z(T),team:x,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(ut(!0),ft(Ot,null,It(Z(B),(x,b)=>(ut(),Ht(N,{key:x.id,ix:b,rank:Z(T),team:x},null,8,["ix","rank","team"]))),128)),Tt(R,{rank:Z(T)},null,8,["rank"])])])])])}}});const Dr=Xt(Er,[["__scopeId","data-v-6e350cfa"]]),Ir={"font-mono":"",flex:""},jr=["onClick"],Br=["href"],zr={key:1},Rr=Dt({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(at,{emit:ot}){const st=at,T=kt(()=>{var O;for(const N of st.items)if(N.isDefault)return N.keyword;return(O=st.items)==null?void 0:O[0].keyword}),B=pe(st.queryParamName,T.value,{transform:String}),P=kt({get(){return st.currentItem},set(O){ot("update:currentItem",O)}}),{t:G,locale:q}=qt();function J(O){return O.title?G(O.title):O.titles?O.titles.get(q.value)??O.titles.get(O.defaultLang):""}function X(O){return P.value===O.keyword}function Y(O){st.onChange&&st.onChange(O.keyword),!(O.link||O.isModal)&&(P.value=O.keyword,B.value=O.keyword)}return Be(()=>{(()=>{var O;((O=B.value)==null?void 0:O.length)>0&&((()=>{for(const N of st.items)if(N.titles){for(const[R,x]of N.titles)if(B.value===x){B.value=N.keyword;return}}})(),P.value=B.value,st.onChange&&st.onChange(B.value))})()}),(O,N)=>(ut(),ft("div",Ir,[tt("div",{class:Pt(["mr-[-4px]",{"flex-row-reverse":st.reverseOrder}]),flex:""},[(ut(!0),ft(Ot,null,It(st.items,R=>(ut(),ft("div",{key:R.keyword,class:Pt(["second-level-menu-item",[X(R)?"second-level-menu-item-current":""]]),onClick:x=>Y(R)},[tt("div",null,[R.link?(ut(),ft("a",{key:0,href:R.link,target:"_blank",title:"Resolver"},mt(J(R)),9,Br)):wt("",!0),R.link?wt("",!0):(ut(),ft("div",zr,mt(J(R)),1))])],10,jr))),128))],2)]))}});const Nr=Xt(Rr,[["__scopeId","data-v-714a998b"]]);const Hr={},$r={class:"flex items-center justify-center dark:text-black"},Wr=ii('<table data-v-54297ce8><tbody data-v-54297ce8><tr data-v-54297ce8><td class="gold" data-v-54297ce8> Gold </td><td class="silver" data-v-54297ce8> Silver </td><td class="bronze" data-v-54297ce8> Bronze </td><td class="honorable" data-v-54297ce8> Honorable </td><td class="first-solve" data-v-54297ce8> First to solve problem </td><td class="correct" data-v-54297ce8> Solved problem </td><td class="incorrect" data-v-54297ce8> Attempted problem </td><td class="pending" data-v-54297ce8> Pending judgement </td></tr></tbody></table>',1),Fr=[Wr];function Gr(at,ot){return ut(),ft("div",$r,Fr)}const Xr=Xt(Hr,[["render",Gr],["__scopeId","data-v-54297ce8"]]),Ur={flex:""},Yr=tt("div",null,[tt("div",{"i-material-symbols-info-outline":"","text-lg":""})],-1),Vr={flex:""},qr=tt("div",{class:"border-l-[1px] border-r-[1px]","mx-2":"","h-6":"","border-color-black":"","dark:border-color-white":""},null,-1),Kr={flex:""},Zr=Dt({__name:"BoardTab",props:{rank:{}},setup(at){const ot=at,st=kt(()=>ot.rank),{t:T}=qt(),B=Ee.useToast(),{copy:P,isSupported:G}=De();let q=null;const J=At(null),X=At(null);function Y(){return window?G.value?!0:(B.warning("clipboard is not supported"),q==null||q.hide(),!1):!1}function O(){B.success("copy success"),q==null||q.hide()}function N(){Y()&&(P(window.location.href),O())}function R(){if(!Y())return;const x=`<iframe src="${window.location.href}" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 720px"></iframe>`;P(x),O()}return Be(()=>{if(J.value&&X.value){const x={placement:"right",triggerType:"click",offsetSkidding:32,offsetDistance:5,delay:300};q=new si(J.value,X.value,x)}}),(x,b)=>{const E=le;return ut(),ft("div",Ur,[tt("div",null,[Tt(E,{"w-inherit":""},{popper:Bt(()=>{var L;return[tt("div",Vr,[tt("div",null,mt(Z(T)("standings.options.calculation_of_penalty"))+": "+mt(Z(T)(`standings.options.${(L=Z(st).contest.options)==null?void 0:L.calculationOfPenalty}`)),1)])]}),default:Bt(()=>[Yr]),_:1})]),qr,tt("div",Kr,[tt("div",{ref_key:"dropdownTriggerEl",ref:X,"i-material-symbols-share":"","text-lg":"","cursor-pointer":""},null,512),tt("div",{ref_key:"dropdownTargetEl",ref:J,class:"z-9999 hidden divide-y divide-gray-100 rounded shadow w-36","bg-white":"","dark:bg-gray-700":""},[tt("ul",{class:"py-2 text-sm text-gray-700 dark:text-gray-200"},[tt("li",null,[tt("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:N}," Copy Page Link ")]),tt("li",null,[tt("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:R}," Copy Page Code ")])])],512)])])}}}),Jr=at=>(ee("data-v-9d40d7bb"),at=at(),ie(),at),Qr={key:0},ta={key:0},ea={key:0},ia={class:"max-w-[92%]"},sa=["src"],oa={class:"max-w-[92%]"},na={"mt-2":""},ra={class:"w-[92%]"},aa={class:"flex font-bold font-mono"},la={class:"float-left"},ha={class:"pl-0.5"},ca={class:"flex-1"},da={class:"float-right"},pa={class:"pl-0.5"},ua={class:"mt-2"},fa={class:"mt-2 flex font-bold font-mono"},ga={class:"float-left"},ma={class:"flex-1"},xa={class:"float-right"},ya={class:"mt-4 flex"},va={class:"float-left"},ka=Jr(()=>tt("div",{class:"flex-1"},null,-1)),ba={class:"float-right"},Sa={class:"w-[92%]",flex:"","justify-center":""},wa={key:0},Ca={key:1,class:"sm:w-full xl:w-[92%]"},Ma={key:2,class:"sm:w-full xl:w-[92%]"},Ta={key:3},Aa={key:4},Pa={key:1},Pe="sm:w-[1280px] xl:w-screen",re="sm:w-[1260px] xl:w-screen",_a=Dt({__name:"Board",props:{dataSourceUrl:null},setup(at){const ot=at,st=Jt(),T=oi(ve),{t:B}=qt(),P=At(!1),G=At({}),q=At([]),J=At([]),X=At({}),Y=ni(),O=At(new ri),N=At(!1);(()=>{const w=Fi(),H=Gi();w.value.length>0&&O.value.setFilterOrganizations(w.value),H.value.length>0&&O.value.setFilterTeams(H.value)})();const R=At("all");function x(w){w!==O.value.group&&O.value.setGroup(w)}(()=>{const w=pe("group","all",{transform:String});R.value=w.value,O.value.setGroup(w.value)})();const b=pe("replay-start-time",0,{transform:Number}),E=At(!1);function L(w={force:!1}){if(N.value&&w.force===!1||E.value===!0)return;E.value=!0;const H=new gi(G.value,q.value,J.value);H.options=ke.cloneDeep(O.value),H.setReplayTime(b.value),H.buildRank(),X.value=H,E.value=!1}const{data:c,isError:y,error:v}=yi(ot.dataSourceUrl??st.path,Y);Qt(c,async()=>{var w,H,K;c.value===null||c.value===void 0||(G.value=ai((w=c.value)==null?void 0:w.contest),T.value=`${G.value.name} | ${ve}`,q.value=li((H=c.value)==null?void 0:H.teams),J.value=hi((K=c.value)==null?void 0:K.submissions),!O.value.enableFilterSubmissionsByTimestamp&&(L(),P.value=!0))});function g(){P.value!==!1&&L()}Qt(O.value,()=>{if(!X.value.options.isNeedReBuildRank(O.value)){X.value.options=ke.cloneDeep(O.value);return}g()});{let w=function(){b.value===0?H():(g(),K())};const{pause:H,resume:K}=ci(()=>{g()},1e3);w(),Qt(b,()=>{w()})}const A=At([{title:"type_menu.rank",keyword:"rank",isDefault:!0},{title:"type_menu.submissions",keyword:"submissions"},{title:"type_menu.statistics",keyword:"statistics"},{title:"type_menu.export",keyword:"export"},{title:"type_menu.utility",keyword:"utility"},{title:"type_menu.options",keyword:"options",isModal:!0}]),k=kt(()=>X.value.contest.group),S=kt(()=>{const w=Array();for(const[H,K]of k.value){const rt={titles:K.names,defaultLang:K.defaultLang,keyword:H,isDefault:K.isDefault};w.push(rt)}return w}),o=At("rank"),r=At(!0);function p(w){w==="options"&&(r.value=!1)}function h(){const w=document.documentElement.scrollHeight||document.body.scrollHeight,H=document.documentElement.scrollTop||document.body.scrollTop,K=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return w-H===K}let d=null;function e(){d!==null&&clearInterval(d)}di("S",w=>{if(N.value=!N.value,N.value===!0){let K=0,rt="DOWN";d=setInterval(()=>{if(rt==="DOWN"){if(h()){rt="UP",L({force:!0});return}K+=2}else{if(K===0){rt="DOWN",L({force:!0});return}K-=2}window.scrollTo({top:K,behavior:"smooth"})},64)}else e()},{dedupe:!1});const t=kt(()=>{const w=X.value.contest.getStartTime().format("YYYY-MM-DD HH:mm:ss");return`${B("standings.start_time")}${B("common.colon")}${w}`}),i=kt(()=>{const w=X.value.contest.getEndTime().format("YYYY-MM-DD HH:mm:ss");return`${B("standings.end_time")}${B("common.colon")}${w}`}),l=kt(()=>{const w=X.value.contest.getContestElapsedTime(Y.value);return`${B("standings.elapsed")}${B("common.colon")}${w}`}),u=kt(()=>{const w=X.value.contest.getContestRemainingTime(Y.value);return`${B("standings.remaining")}${B("common.colon")}${w}`}),_=kt(()=>X.value.options.enableFilterSubmissionsByTimestamp?pi.PAUSED:X.value.contest.getContestState()),a=kt(()=>Ie(X.value.options.timestamp));return ui(()=>{e()}),(w,H)=>{const K=Zr,rt=mi,j=xi,s=Xr,M=Nr,z=Dr,I=ce,V=Vs,n=Is,f=ks,m=gs,$=os;return ut(),ft("div",null,[Z(P)?wt("",!0):(ut(),ft("div",Qr,[tt("div",{class:Pt([Pe]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[tt("div",null,mt(Z(B)("common.loading"))+"... ",1),Z(y)?(ut(),ft("div",ta,mt(Z(v)),1)):wt("",!0)],2)])),Z(P)?(ut(),ft("div",{key:1,class:Pt([Pe]),flex:"","flex-col":"","justify-center":"","items-center":""},[Z(X).contest.banner?(ut(),ft("div",ea,[tt("div",{class:Pt([re]),"mb-4":"",flex:"","justify-center":"","items-center":""},[tt("div",ia,[tt("img",{src:Z(je)(Z(X).contest.banner,`${"DATA_HOST"in w?w.DATA_HOST:Z(fi)}${Z(st).path.slice(1)}`),alt:"banner"},null,8,sa)])],2)])):wt("",!0),tt("div",{class:Pt(["title",[re]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":""},[tt("div",oa,mt(Z(X).contest.name),1)],2),tt("div",na,[Tt(K,{rank:Z(X)},null,8,["rank"])]),tt("div",{class:Pt([re]),"mt-2":"",flex:"","flex-row":"","justify-center":""},[tt("div",ra,[tt("div",aa,[tt("div",la,[$t(mt(Z(t)),1),tt("sup",ha,mt(Z(X).contest.getStartTime().format("z")),1)]),tt("div",ca,[Tt(rt,{state:Z(_),"pending-time":Z(X).contest.getContestPendingTime(Z(Y)),"paused-time":Z(a)},null,8,["state","pending-time","paused-time"])]),tt("div",da,[$t(mt(Z(i)),1),tt("sup",pa,mt(Z(X).contest.endTime.format("z")),1)])]),tt("div",ua,[Tt(j,{"rank-options":Z(O),"onUpdate:rankOptions":H[0]||(H[0]=F=>zt(O)?O.value=F:null),width:Z(X).contest.getContestProgressRatio(Z(Y)),state:Z(X).contest.getContestState(Z(Y)),"need-scroll":!0,rank:Z(X),"elapsed-time":Z(X).contest.getContestElapsedTime(Z(Y))},null,8,["rank-options","width","state","rank","elapsed-time"])]),tt("div",fa,[tt("div",ga,mt(Z(l)),1),tt("div",ma,[Tt(s)]),tt("div",xa,mt(Z(u)),1)]),tt("div",ya,[tt("div",va,[Tt(M,{"current-item":Z(R),"onUpdate:currentItem":H[1]||(H[1]=F=>zt(R)?R.value=F:null),items:Z(S),"query-param-name":"group","on-change":x},null,8,["current-item","items"])]),ka,tt("div",ba,[Tt(M,{"current-item":Z(o),"onUpdate:currentItem":H[2]||(H[2]=F=>zt(o)?o.value=F:null),items:Z(A),"reverse-order":!0,"query-param-name":"type","on-change":p},null,8,["current-item","items"])])])])],2),tt("div",{"mt-4":"",class:Pt([re]),flex:"","justify-center":""},[tt("div",Sa,[Z(o)==="rank"?(ut(),ft("div",wa,[Tt(z,{rank:Z(X)},null,8,["rank"])])):wt("",!0),Z(o)==="submissions"?(ut(),ft("div",Ca,[Tt(I,{"w-full":"",rank:Z(X),submissions:Z(X).getSubmissions(),"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):wt("",!0),Z(o)==="statistics"?(ut(),ft("div",Ma,[Tt(V,{rank:Z(X)},null,8,["rank"])])):wt("",!0),Z(o)==="export"?(ut(),ft("div",Ta,[Tt(n,{rank:Z(X)},null,8,["rank"])])):wt("",!0),Z(o)==="utility"?(ut(),ft("div",Aa,[Tt(f,{rank:Z(X)},null,8,["rank"])])):wt("",!0)])],2),Z(O).enableAnimatedSubmissions?(ut(),ft("div",Pa,[Tt(m,{rank:Z(X)},null,8,["rank"])])):wt("",!0),Z(r)?wt("",!0):(ut(),Ht($,{key:2,"is-hidden":Z(r),"onUpdate:isHidden":H[3]||(H[3]=F=>zt(r)?r.value=F:null),"rank-options":Z(O),"onUpdate:rankOptions":H[4]||(H[4]=F=>zt(O)?O.value=F:null),rank:Z(X)},null,8,["is-hidden","rank-options","rank"]))],2)):wt("",!0)])}}});const Da=Xt(_a,[["__scopeId","data-v-9d40d7bb"]]);export{Da as _};
|