@xcpcio/board-app 0.36.0 → 0.37.0
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-33697790.js → Board-1e98f0f2.js} +3 -3
- package/dist/assets/{Board-95c6af0c.css → Board-605f814f.css} +1 -1
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-5bb85145.js → DataSourceInput.vue_vue_type_script_setup_true_lang-02455050.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-f86a88cd.js → TheInput.vue_vue_type_script_setup_true_lang-a031bfb6.js} +1 -1
- package/dist/assets/{_...all_-bf870fe0.js → _...all_-fb6fc8ba.js} +1 -1
- package/dist/assets/{_name_-f5cba217.js → _name_-735c6fb7.js} +1 -1
- package/dist/assets/{about-abf94800.js → about-eb27e531.js} +1 -1
- package/dist/assets/{board-b333d178.js → board-e67f6116.js} +1 -1
- package/dist/assets/{board-layout-a5085987.js → board-layout-e7a2768f.js} +1 -1
- package/dist/assets/{headless-c50b4591.js → headless-6d929d05.js} +1 -1
- package/dist/assets/{home-dde093aa.js → home-71038d6b.js} +1 -1
- package/dist/assets/{index-dbac5f19.js → index-0d087976.js} +1 -1
- package/dist/assets/{index-084a197d.js → index-1304674a.js} +9 -9
- package/dist/assets/{index-6999b738.js → index-616a2412.js} +1 -1
- package/dist/assets/{index-layout-bf0bad87.js → index-layout-0bd56ff5.js} +1 -1
- package/dist/assets/{test-cb214810.js → test-052ab1ce.js} +1 -1
- package/dist/assets/{useQueryBoardData-eb47ec82.js → useQueryBoardData-67124d23.js} +1 -1
- package/dist/assets/{user-203ba27e.js → user-0363fa4d.js} +1 -1
- package/dist/assets/{virtual_pwa-register-4551dbd6.js → virtual_pwa-register-1b1003e5.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/src/components/board/Board.vue +7 -1
- package/src/components/board/TeamUI.vue +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var We=Object.defineProperty;var Fe=(lt,st,ot)=>st in lt?We(lt,st,{enumerable:!0,configurable:!0,writable:!0,value:ot}):lt[st]=ot;var ie=(lt,st,ot)=>(Fe(lt,typeof st!="symbol"?st+"":st,ot),ot);import{g as Dt,s as kt,U as Ge,w as Qt,o as ut,c as ft,d as it,x as Ut,V as ge,t as yt,n as Pt,W as Yt,I as Wt,F as Lt,D as It,m as St,T as qt,M as _e,N as Xe,K as Jt,X as Oe,u as Vt,i as Tt,E as Nt,S as Ht,l as J,b as At,H as Bt,Y as Ue,Z as Ft,$ as Ye,a0 as Le,a1 as me,a as Gt,G as Ve,a2 as Kt,a3 as qe,a4 as Ee,a5 as De,a6 as Ke,a7 as xe,a8 as Ze,a9 as Ie,aa as Je,ab as ye,ac as pe,ad as re,ae,af as Qe,v as ti,J as de,ag as je,Q as ei,ah as ii,h as si,ai as ve,aj as oi,ak as ni,j as ri,y as ai,z as li,al as ke,am as hi,an as ci,p as di,k as pi,R as ui,ao as fi,ap as gi}from"./index-084a197d.js";import{u as mi}from"./useQueryBoardData-eb47ec82.js";const xi={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":""},yi={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},vi={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},ki={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},bi=it("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[it("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),wi=it("span",{"sr-only":""}," Close modal ",-1),Si=[bi,wi],le=Dt({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null},emits:["update:isHidden"],setup(lt,{emit:st}){const ot=lt,A=kt({get(){return ot.isHidden},set(G){st("update:isHidden",G)}});function B(){A.value=!0}const{Escape:P}=Ge();return Qt(P,G=>{G&&B()}),(G,q)=>(ut(),ft("div",xi,[it("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-9998":"",style:Ut({backgroundColor:"rgba(0, 0, 0, 0.5)"}),onClick:B},null,4),it("div",{class:Pt(["relative p-4",[ot.width??"w-[78%]"]]),"z-9999":""},[it("div",yi,[it("div",vi,[ge(G.$slots,"header",{},()=>[it("h3",ki,yt(ot.title),1)]),it("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},Si)]),ge(G.$slots,"default")])],2)]))}}),jt={openOptions(lt){lt.$refs.input.focus(),lt.showMenu=!0,lt.mousedownState=!1},blurInput(lt){lt.mousedownState||(lt.searchText="",lt.closeOptions()),lt.$emit("blur")},closeOptions(lt){lt.$refs.input.blur(),lt.showMenu=!1},prevItem(lt){const st=lt.pointer-1,ot=lt.$el.offsetHeight*st;st>=0&&(lt.pointer=st),lt.$refs.menu.scrollTop=ot},nextItem(lt){const st=lt.pointer+1,ot=lt.$el.offsetHeight*st;st<=lt.filteredOptions.length-1&&(lt.pointer=st);const A=lt.$refs.menu.offsetHeight,B=Math.ceil((lt.$refs.menu.scrollTop+lt.$el.offsetHeight)/A),P=Math.ceil(ot/A);B!==P&&(lt.$refs.menu.scrollTop=(P-1)*lt.$refs.menu.offsetHeight)},enterItem(lt){const st=lt.filteredOptions[lt.pointer],ot=st.disabled;st&&!ot&<.selectItem(st)},pointerSet(lt,st){lt.pointer=st},pointerAdjust(lt){lt.pointer>=lt.filteredOptions.length-1&&(lt.pointer=lt.filteredOptions.length?lt.filteredOptions.length-1:0)},mousedownItem(lt){lt.mousedownState=!0}};function Ci(lt){return new RegExp(lt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Be={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:(lt,st)=>lt.match(Ci(st))}}},ze=(lt,st)=>{const ot=lt.__vccOpts||lt;for(const[A,B]of st)ot[A]=B;return ot},Mi={name:"ModelSelect",mixins:[Be],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(lt){this.pointer=this.filteredOptions.findIndex(st=>st.value===this.optionValue(lt))},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 lt=this.placeholder;return this.selectedOption&&(lt=this.selectedOption.text),lt}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(lt=>this.customAttr(lt))}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(lt=>{try{return this.filterPredicate(lt.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(lt=>lt.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(lt){jt.pointerSet(this,lt)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(lt){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",lt):(this.$emit("update:modelValue",lt.value),lt.value!==void 0&<.value===lt.text&&(this.searchText=lt.value))},optionValue(lt){return typeof lt=="object"&<!==null?lt.value:lt}}},Ti=it("i",{class:"dropdown icon"},null,-1),Ai=["disabled","tabindex","id","name","value"],Pi=["data-vss-custom-attr"],_i=["data-vss-custom-attr","onClick","onMouseenter"];function Oi(lt,st,ot,A,B,P){return ut(),ft("div",{class:Pt(["ui fluid search selection dropdown",{"active visible":B.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:st[11]||(st[11]=(...G)=>P.openOptions&&P.openOptions(...G)),onFocus:st[12]||(st[12]=(...G)=>P.openOptions&&P.openOptions(...G))},[Ti,it("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,value:B.searchText,onInput:st[0]||(st[0]=G=>B.searchText=G.target.value),ref:"input",onFocus:st[1]||(st[1]=Yt((...G)=>P.openOptions&&P.openOptions(...G),["prevent"])),onKeyup:[st[2]||(st[2]=Wt((...G)=>P.closeOptions&&P.closeOptions(...G),["esc"])),st[7]||(st[7]=Wt(Yt((...G)=>P.enterItem&&P.enterItem(...G),["prevent"]),["enter"]))],onBlur:st[3]||(st[3]=(...G)=>P.blurInput&&P.blurInput(...G)),onKeydown:[st[4]||(st[4]=Wt((...G)=>P.prevItem&&P.prevItem(...G),["up"])),st[5]||(st[5]=Wt((...G)=>P.nextItem&&P.nextItem(...G),["down"])),st[6]||(st[6]=Wt(Yt(()=>{},["prevent"]),["enter"])),st[8]||(st[8]=Wt((...G)=>P.deleteTextOrItem&&P.deleteTextOrItem(...G),["delete"]))]},null,40,Ai),it("div",{class:Pt(["text",P.textClass]),"data-vss-custom-attr":P.searchTextCustomAttr},yt(P.inputText),11,Pi),it("div",{class:Pt(["menu",P.menuClass]),ref:"menu",onMousedown:st[10]||(st[10]=Yt(()=>{},["prevent"])),style:Ut(P.menuStyle),tabindex:"-1"},[(ut(!0),ft(Lt,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:Yt(Z=>P.selectItem(G),["stop"]),onMousedown:st[9]||(st[9]=(...Z)=>P.mousedownItem&&P.mousedownItem(...Z)),onMouseenter:Z=>P.pointerSet(q)},yt(G.text),43,_i))),128))],38)],34)}const Li=ze(Mi,[["render",Oi]]),Ei={name:"MultiSelect",mixins:[Be],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(lt=>this.selectedOptions.findIndex(st=>st.value===lt.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(lt=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(lt.text),this.searchText):this.filterPredicate(lt.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(lt){jt.pointerSet(this,lt)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(lt){const st=this.selectedOptions.concat(lt),ot=st.filter((A,B)=>st.indexOf(A)===B);this.closeOptions(),this.searchText="",this.$emit("select",ot,lt,"insert")},deleteItem(lt){const st=this.selectedOptions.filter(ot=>ot.value!==lt.value);this.$emit("select",st,lt,"delete")},accentsTidy(lt){let st=lt.toString().toLowerCase();return st=st.replace(new RegExp("[àáâãäå]","g"),"a"),st=st.replace(new RegExp("æ","g"),"ae"),st=st.replace(new RegExp("ç","g"),"c"),st=st.replace(new RegExp("[èéêë]","g"),"e"),st=st.replace(new RegExp("[ìíîï]","g"),"i"),st=st.replace(new RegExp("ñ","g"),"n"),st=st.replace(new RegExp("[òóôõö]","g"),"o"),st=st.replace(new RegExp("œ","g"),"oe"),st=st.replace(new RegExp("[ùúûü]","g"),"u"),st=st.replace(new RegExp("[ýÿ]","g"),"y"),st}}},Di=it("i",{class:"dropdown icon"},null,-1),Ii=["data-vss-custom-attr"],ji=["onClick"],Bi=["disabled","tabindex","id","name"],zi=["data-vss-custom-attr","onClick","onMouseenter"];function Ri(lt,st,ot,A,B,P){return ut(),ft("div",{class:Pt(["ui fluid search dropdown selection multiple",{"active visible":B.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:st[11]||(st[11]=(...G)=>P.openOptions&&P.openOptions(...G)),onFocus:st[12]||(st[12]=(...G)=>P.openOptions&&P.openOptions(...G))},[Di,ot.hideSelectedOptions?St("",!0):(ut(!0),ft(Lt,{key:0},It(ot.selectedOptions,(G,q)=>(ut(),ft("a",{key:q,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":ot.customAttr(G)},[qt(yt(G.text),1),it("i",{class:"delete icon",onClick:Z=>P.deleteItem(G)},null,8,ji)],8,Ii))),128)),_e(it("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,"onUpdate:modelValue":st[0]||(st[0]=G=>B.searchText=G),ref:"input",style:Ut(P.inputWidth),onFocus:st[1]||(st[1]=Yt((...G)=>P.openOptions&&P.openOptions(...G),["prevent"])),onKeyup:[st[2]||(st[2]=Wt((...G)=>P.closeOptions&&P.closeOptions(...G),["esc"])),st[7]||(st[7]=Wt(Yt((...G)=>P.enterItem&&P.enterItem(...G),["prevent"]),["enter"]))],onBlur:st[3]||(st[3]=(...G)=>P.blurInput&&P.blurInput(...G)),onKeydown:[st[4]||(st[4]=Wt((...G)=>P.prevItem&&P.prevItem(...G),["up"])),st[5]||(st[5]=Wt((...G)=>P.nextItem&&P.nextItem(...G),["down"])),st[6]||(st[6]=Wt(Yt(()=>{},["prevent"]),["enter"])),st[8]||(st[8]=Wt((...G)=>P.deleteTextOrLastItem&&P.deleteTextOrLastItem(...G),["delete"]))]},null,44,Bi),[[Xe,B.searchText]]),it("div",{class:Pt(["text",P.textClass])},yt(P.inputText),3),it("div",{class:Pt(["menu",P.menuClass]),ref:"menu",onMousedown:st[10]||(st[10]=Yt(()=>{},["prevent"])),style:Ut(P.menuStyle),tabindex:"-1"},[(ut(!0),ft(Lt,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":ot.customAttr(G),onClick:Yt(Z=>P.selectItem(G),["stop"]),onMousedown:st[9]||(st[9]=(...Z)=>P.mousedownItem&&P.mousedownItem(...Z)),onMouseenter:Z=>P.pointerSet(q)},yt(G.text),43,zi))),128))],38)],34)}const Zt=ze(Ei,[["render",Ri]]);function Ni(){return`filter-organizations-${Jt().path}`}function Hi(){return`filter-teams-${Jt().path}`}function $i(){const st=`filter-organizations-${Jt().path}`;return Oe(st,[])}function Wi(){const st=`filter-teams-${Jt().path}`;return Oe(st,[])}const Fi={"w-full":"","font-bold":"","font-mono":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},Gi={key:0,flex:"","flex-col":"","w-full":""},Xi={"w-full":"","mt-2":""},Ui={flex:"","flex-col":"","w-full":""},Yi=it("div",null," Filter Team ",-1),Vi={"w-full":"","mt-2":""},qi={flex:"","flex-col":"","w-full":""},Ki=it("div",{flex:"","mb-2":""}," Feature ",-1),Zi={flex:"","flex-row":""},Ji={class:"relative inline-flex items-center cursor-pointer"},Qi=it("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),ts=it("span",{class:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},"Animated Submissions",-1),es={"mt-2":"","w-full":"",flex:"","items-center":"","space-x-4":""},is=Dt({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(lt,{emit:st}){const ot=lt,{t:A}=Vt(),B=kt({get(){return ot.isHidden},set(f){st("update:isHidden",f)}}),P=kt({get(){return ot.rankOptions},set(f){st("update:rankOptions",f)}}),G=kt(()=>ot.rank),q=kt(()=>A("type_menu.options")),Z=Tt(P.value.enableAnimatedSubmissions),X=kt(()=>G.value.organizations.map(C=>({value:C,text:C}))),Y=Tt(P.value.filterOrganizations),O=Tt({});function H(f,C){Y.value=f,O.value=C}const R=kt(()=>G.value.originTeams.map(C=>({value:C.id,text:C.organization?`${C.name} - ${C.organization}`:C.name}))),x=Tt(P.value.filterTeams),b=Tt({});function E(f,C){x.value=f,b.value=C}function L(){B.value=!0}const c=Ni(),y=Hi();function v(){P.value.setFilterOrganizations(Y.value),P.value.setFilterTeams(x.value),localStorage.setItem(c,JSON.stringify(Y.value)),localStorage.setItem(y,JSON.stringify(x.value)),P.value.enableAnimatedSubmissions=Z.value,L()}return(f,C)=>{const k=le;return ut(),Nt(k,{isHidden:J(B),"onUpdate:isHidden":C[1]||(C[1]=w=>Bt(B)?B.value=w:null),title:J(q),width:"w-180"},{default:Ht(()=>[it("div",Fi,[J(G).contest.organization?(ut(),ft("div",Gi,[it("div",null," Filter "+yt(J(G).contest.organization),1),it("div",Xi,[At(J(Zt),{options:J(X),"selected-options":J(Y),onSelect:H},null,8,["options","selected-options"])])])):St("",!0),it("div",Ui,[Yi,it("div",Vi,[At(J(Zt),{options:J(R),"selected-options":J(x),onSelect:E},null,8,["options","selected-options"])])]),it("div",qi,[Ki,it("div",Zi,[it("label",Ji,[_e(it("input",{"onUpdate:modelValue":C[0]||(C[0]=w=>Bt(Z)?Z.value=w:null),type:"checkbox",class:"sr-only peer"},null,512),[[Ue,J(Z)]]),Qi,ts])])]),it("div",es,[it("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:v},yt(J(A)("button.confirm")),1),it("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:L},yt(J(A)("button.cancel")),1)])])]),_:1},8,["isHidden","title"])}}});function ss(lt){const st={backgroundColor:"#fff",color:"#000"};if(lt.awards.includes(Ft.GOLD))return st.backgroundColor="#fff566",st;if(lt.awards.includes(Ft.SILVER))return st.backgroundColor="#ffadd2",st;if(lt.awards.includes(Ft.BRONZE))return st.backgroundColor="#f0c0a0",st;if(lt.awards.includes(Ft.HONORABLE))return st.backgroundColor="#e6f7ff",st}function os(lt){return lt.isFirstSolved?"#3db03d":lt.isAccepted()?"#e1ffb5":lt.isPending()?"#c8d6fa":"#ffd0d0"}var te=(lt=>(lt[lt.SUBMISSION_STATUS=0]="SUBMISSION_STATUS",lt[lt.SUBMIT_TIMESTAMP=1]="SUBMIT_TIMESTAMP",lt))(te||{});const ns={"h-7":"","w-124":"","text-gray-200":"","font-mono":"",flex:"","flex-row":"","justify-center":"","items-center":"",class:"bg-resolver-bg-zero"},rs={"h-full":"","w-92":"","pl-1":"",truncate:""},as={"h-full":"","w-4":""},ls=Dt({__name:"AnimatedSubmissionBlock",props:{item:null,lastBlockDisplayType:null},setup(lt){const st=lt,ot=kt(()=>st.item);function A(){const B=ot.value.submission;if(st.lastBlockDisplayType===te.SUBMISSION_STATUS)return Ye[B.status];if(st.lastBlockDisplayType===te.SUBMIT_TIMESTAMP)return B.timestampToMinute}return(B,P)=>(ut(),ft("div",ns,[it("div",{"h-full":"","w-10":"",style:Ut(J(ss)(J(ot).team)),flex:"","justify-center":"","items-center":""},[it("div",null,yt(J(ot).team.rank),1)],4),it("div",rs,yt(J(ot).displayName),1),it("div",as,yt(J(ot).team.solvedProblemNum),1),it("div",{"h-full":"","w-6":"","border-b-3":"",flex:"","justify-center":"",style:Ut({borderColor:J(ot).problem.balloonColor.background_color})},yt(J(ot).problem.label),5),it("div",{"h-full":"","w-12":"",flex:"","justify-center":"","font-sans":"","font-medium":"","text-zinc-800":"",style:Ut({backgroundColor:("getStandingsStatusColor"in B?B.getStandingsStatusColor:J(os))(J(ot).submission)})},yt(A()),5)]))}}),hs={absolute:"",fixed:"","z-99":"","bottom-4":"","left-4":"","opacity-80":""},cs={flex:"","flex-col":""},ds={flex:"","flex-col":"","mt-6":""},ps=Dt({__name:"AnimatedSubmissionsModal",props:{rank:{}},setup(lt){const st=lt,ot=kt(()=>st.rank),A=kt(()=>{const G=ot.value.getSubmissions().sort(Le.compare).reverse();let q=0;const Z=10,X=[];let Y=0;const O=6,H=[];for(let R=0;R<G.length&&(Y<O||q<Z);R++){const x=G[R],b=x.teamId,E=x.problemId,L=ot.value.teamsMap.get(b);if(!L||ot.value.filterTeamByOrg(L))continue;const c=ot.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<Z&&(X.push(v),++q),x.isSolved&&Y<O&&(H.push(v),++Y)}return H.reverse(),X.reverse(),{acceptedRes:H,allRes:X}}),B=kt(()=>A.value.acceptedRes),P=kt(()=>A.value.allRes);return(G,q)=>{const Z=ls;return ut(),ft("div",hs,[it("div",cs,[it("div",null,[At(me,{name:"list",tag:"ul"},{default:Ht(()=>[(ut(!0),ft(Lt,null,It(J(B),X=>(ut(),ft("div",{key:X.submission.id},[At(Z,{item:X,"last-block-display-type":J(te).SUBMIT_TIMESTAMP},null,8,["item","last-block-display-type"])]))),128))]),_:1})])]),it("div",ds,[it("div",null,[At(me,{name:"list",tag:"ul"},{default:Ht(()=>[(ut(!0),ft(Lt,null,It(J(P),X=>(ut(),ft("div",{key:X.submission.id},[it("div",null,[At(Z,{item:X,"last-block-display-type":J(te).SUBMISSION_STATUS},null,8,["item","last-block-display-type"])])]))),128))]),_:1})])])])}}});const us=Gt(ps,[["__scopeId","data-v-c5c85310"]]),fs={"w-full":"",flex:"","mt-4":"","gap-4":""},gs={btn:"",title:"Submissions",disabled:"true"},ms={"w-full":"",flex:"","mt-4":"","gap-4":""},xs=["href"],ys=Dt({__name:"Utility",setup(lt){const{t:st}=Vt(),ot=Jt(),A=Ve(),B=kt(()=>`https://resolver.xcpcio.com/resolver?xcpcio-data-source=${ot.path}`);function P(){A.push(`/balloon/?data-source=${ot.path}`)}function G(){A.push(`/countdown/?data-source=${ot.path}`)}return(q,Z)=>(ut(),ft(Lt,null,[it("div",fs,[it("button",{btn:"",title:"Balloon",onClick:P},yt(J(st)("type_menu.balloon")),1),it("button",gs,yt(J(st)("type_menu.submissions")),1)]),it("div",ms,[it("a",{btn:"",href:J(B),target:"_blank",title:"Resolver"},yt(J(st)("type_menu.resolver")),9,xs),it("button",{btn:"",title:"Countdown",onClick:G},yt(J(st)("type_menu.countdown")),1)])],64))}});var Re={exports:{}};(function(lt,st){(function(ot,A){A()})(Kt,function(){function ot(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 A(X,Y,O){var H=new XMLHttpRequest;H.open("GET",X),H.responseType="blob",H.onload=function(){Z(H.response,Y,O)},H.onerror=function(){console.error("could not download file")},H.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),Z=G.saveAs||(typeof window!="object"||window!==G?function(){}:"download"in HTMLAnchorElement.prototype&&!q?function(X,Y,O){var H=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)?A(X,Y,O):P(R,R.target="_blank")):(R.href=H.createObjectURL(X),setTimeout(function(){H.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(ot(X,O),Y);else if(B(X))A(X,Y,O);else{var H=document.createElement("a");H.href=X,H.target="_blank",setTimeout(function(){P(H)})}}:function(X,Y,O,H){if(H=H||open("","_blank"),H&&(H.document.title=H.document.body.innerText="downloading..."),typeof X=="string")return A(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;"),H?H.location.href=y:location=y,H=null},E.readAsDataURL(X)}else{var L=G.URL||G.webkitURL,c=L.createObjectURL(X);H?H.location=c:location.href=c,H=null,setTimeout(function(){L.revokeObjectURL(c)},4e4)}});G.saveAs=Z.saveAs=Z,lt.exports=Z})})(Re);var vs=Re.exports;const ks=qe(vs);var bs=setTimeout;function ws(lt,st){var ot=st.useCachedSetTimeout?bs:setTimeout;return new Promise(function(A){ot(A,lt)})}function Ss(lt){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=st.useCachedSetTimeout,A=ws(lt,{useCachedSetTimeout:ot});function B(P){return A.then(function(){return P})}return B.then=function(){return A.then.apply(A,arguments)},B.catch=Promise.resolve().catch,B}const Cs={flex:"","flex-col":""},Ms={"w-160":"","font-bold":""},Ts={"mt-8":""},As={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},Ps=["disabled"],_s=["disabled"],Os={key:1,flex:"","justify-center":""},Ls=["disabled"],Es=Dt({__name:"Export",props:{rank:null},setup(lt){const st=lt,ot=Ee.useToast(),{copy:A,isSupported:B}=De(),P=kt(()=>st.rank),G=Tt({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),q=Tt([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"}]),Z=Tt({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1});async function X(){await Ke(),await Ss(16)}async function Y(){Z.value.CfDatDownload=!0,await X();const x=new xe().convert(P.value),b=new Blob([x],{type:"text/plain;charset=utf-8"});ks.saveAs(b,"contest.dat"),Z.value.CfDatDownload=!1}async function O(){if(!B.value){ot.warning("clipboard is not supported");return}Z.value.CfDatCopy=!0,await X();const x=new xe().convert(P.value);A(x),Z.value.CfDatCopy=!1,ot.success("Copy Success")}async function H(){Z.value.GeneralXLSXDownload=!0,await X(),new Ze().convertAndWrite(P.value,`${P.value.contest.name}.xlsx`),Z.value.GeneralXLSXDownload=!1}return(R,x)=>(ut(),ft("div",Cs,[it("div",Ms,[At(J(Li),{modelValue:J(G),"onUpdate:modelValue":x[0]||(x[0]=b=>Bt(G)?G.value=b:null),options:J(q),placeholder:"Export Type"},null,8,["modelValue","options"])]),it("div",Ts,[J(G).value==="cf-dat"?(ut(),ft("div",As,[it("button",{disabled:J(Z).CfDatDownload,btn:"",onClick:Y}," Download ",8,Ps),it("button",{disabled:J(Z).CfDatCopy,btn:"",onClick:O}," Copy to Clipboard ",8,_s)])):St("",!0),J(G).value==="general-xlsx"?(ut(),ft("div",Os,[it("button",{disabled:J(Z).GeneralXLSXDownload,btn:"",onClick:H}," Download ",8,Ls)])):St("",!0)])]))}});function ue(lt,st,ot,A,B,P){return{colors:P,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:lt},xAxis:{categories:A,labels:{style:{fontSize:"16px"}},title:{text:st,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:ot,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 Ds(lt){const st=[];lt.contest.problems.forEach((P,G)=>{st.push({problem_id:P.label,index:G,solved:P.statistics.acceptedNum})}),st.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:ot,series:A,colors:B}=(()=>{const P=[],G=[];return st.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("题目通过数","题目编号","通过数",ot,A,B)}function Is(lt){const st=lt.rankStatistics.teamSolvedNum.map((P,G)=>({index:G,cnt:P})),{cat:ot,series:A,colors:B}=(()=>{const P=[],G=[];return st.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("队伍过题数","过题数","队伍数",ot,A,B)}function js(lt){const{cat:st,series:ot,colors:A}=(()=>{const B=[],P=[],G=[],q=[];return lt.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("提交分类","题目编号","提交数",st,ot,A)}function Bs(lt,st){const ot=st.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:ot,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 Ne={exports:{}},ce={exports:{}},be;function zs(){return be||(be=1,function(lt){(function(st,ot){lt.exports?(ot.default=ot,lt.exports=st.document?ot(st):ot):(st.Highcharts&&st.Highcharts.error(16,!0),st.Highcharts=ot(st))})(typeof window<"u"?window:Kt,function(st){function ot(B,P,G,q){B.hasOwnProperty(P)||(B[P]=q.apply(null,G),typeof CustomEvent=="function"&&st.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:P,module:B[P]}})))}var A={};return ot(A,"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 st<"u"?st:{},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}),ot(A,"Core/Utilities.js",[A["Core/Globals.js"]],function(B){function P(t,i,a,u){const _=i?"Highcharts error":"Highcharts warning";t===32&&(t=`${_}: Deprecated member`);const r=H(t);let S=r?`${_} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(typeof u<"u"){let $="";r&&(S+="?"),C(u,function(K,rt){$+=`
|
|
2
|
-
- ${rt}: ${K}`,r&&(S+=encodeURI(rt)+"="+encodeURI(K))}),S+=$}w(B,"displayError",{chart:a,code:t,message:S,params:u},function(){if(i)throw Error(S);p.console&&P.messages.indexOf(S)===-1&&console.warn(S)}),P.messages.push(S)}function G(t,i){return parseInt(t,i||10)}function q(t){return typeof t=="string"}function Z(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||!Z(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 H(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,a){const u=q(i)&&!R(a);let _;const r=(S,$)=>{R(S)?t.setAttribute($,S):u?(_=t.getAttribute($))||$!=="class"||(_=t.getAttribute($+"Name")):t.removeAttribute($)};return q(i)?r(a,i):C(i,r),_}function b(t){return Z(t)?t:[t]}function E(t,i){let a;t||(t={});for(a in i)t[a]=i[a];return t}function L(){const t=arguments,i=t.length;for(let a=0;a<i;a++){const u=t[a];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 f(t,i,a){let u;return i==="width"?(i=Math.min(t.offsetWidth,t.scrollWidth),a=t.getBoundingClientRect&&t.getBoundingClientRect().width,a<i&&a>=i-1&&(i=Math.floor(a)),Math.max(0,i-(f(t,"padding-left",!0)||0)-(f(t,"padding-right",!0)||0))):i==="height"?Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(f(t,"padding-top",!0)||0)-(f(t,"padding-bottom",!0)||0)):((t=p.getComputedStyle(t,void 0))&&(u=t.getPropertyValue(i),L(a,i!=="opacity")&&(u=G(u))),u)}function C(t,i,a){for(const u in t)Object.hasOwnProperty.call(t,u)&&i.call(a||t[u],t[u],u,t)}function k(t,i,a){function u(S,$){const K=t.removeEventListener;K&&K.call(t,S,$,!1)}function _(S){let $,K;t.nodeName&&(i?($={},$[i]=!0):$=S,C($,function(rt,j){if(S[j])for(K=S[j].length;K--;)u(j,S[j][K].fn)}))}var r=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){const S=r.hcEvents;i?(r=S[i]||[],a?(S[i]=r.filter(function($){return a!==$.fn}),u(i,a)):(_(S),S[i]=[])):(_(S),delete r.hcEvents)}}function w(t,i,a,u){if(a=a||{},l.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==B)){var _=l.createEvent("Events");_.initEvent(i,!0,!0),a=E(_,a),t.dispatchEvent?t.dispatchEvent(a):t.fireEvent(i,a)}else if(t.hcEvents){a.target||E(a,{preventDefault:function(){a.defaultPrevented=!0},target:t,type:i}),_=[];let r=t,S=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[i]&&(_.length&&(S=!0),_.unshift.apply(_,r.hcEvents[i])),r=Object.getPrototypeOf(r);S&&_.sort(($,K)=>$.order-K.order),_.forEach($=>{$.fn.call(t,a)===!1&&a.preventDefault()})}u&&!a.defaultPrevented&&u.call(t,a)}const{charts:o,doc:l,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 a;const u=t.length;for(a=0;a<u;a++)if(i(t[a],a))return t[a]};C({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){B[i]=function(a){return P(32,!1,void 0,{[`Highcharts.${i}`]:`use Array.${t}`}),Array.prototype[t].apply(a,[].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,a,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 r=t.addEventListener;return r&&r.call(t,i,a,B.supportsPassiveEvents?{passive:u.passive===void 0?i.indexOf("touch")!==-1:u.passive,capture:!1}:!1),_[i]||(_[i]=[]),_[i].push({fn:a,order:typeof u.order=="number"?u.order:1/0}),_[i].sort((S,$)=>S.order-$.order),function(){k(t,i,a)}},arrayMax:function(t){let i=t.length,a=t[0];for(;i--;)t[i]>a&&(a=t[i]);return a},arrayMin:function(t){let i=t.length,a=t[0];for(;i--;)t[i]<a&&(a=t[i]);return a},attr:x,clamp:function(t,i,a){return t>i?t<a?t:a:i},clearTimeout:function(t){R(t)&&clearTimeout(t)},correctFloat:v,createElement:function(t,i,a,u,_){return t=l.createElement(t),i&&E(t,i),_&&c(t,{padding:"0",border:"none",margin:"0"}),a&&c(t,a),u&&u.appendChild(t),t},css:c,defined:R,destroyObjectProperties:function(t,i){C(t,function(a,u){a&&a!==i&&a.destroy&&a.destroy(),delete t[u]})},diffObjects:function(t,i,a,u){function _(S,$,K,rt){const j=a?$:S;C(S,function(s,T){if(!rt&&u&&-1<u.indexOf(T)&&$[T]){s=b(s),K[T]=[];for(let z=0;z<Math.max(s.length,$[T].length);z++)$[T][z]&&(s[z]===void 0?K[T][z]=$[T][z]:(K[T][z]={},_(s[z],$[T][z],K[T][z],rt+1)))}else X(s,!0)&&!s.nodeType?(K[T]=Z(s)?[]:{},_(s,$[T]||{},K[T],rt+1),Object.keys(K[T]).length!==0||T==="colorAxis"&&rt===0||delete K[T]):(S[T]!==$[T]||T in S&&!(T in $))&&(K[T]=j[T])})}const r={};return _(t,i,r,0),r},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){let a=t.length;for(;a--;)if(t[a]===i){t.splice(a,1);break}},error:P,extend:E,extendClass:function(t,i){const a=function(){};return a.prototype=new t,E(a.prototype,i),a},find:h,fireEvent:w,getClosestDistance:function(t,i){const a=!i;let u,_,r;return t.forEach(S=>{if(1<S.length)for(r=S.length-1;0<r;r--)_=S[r]-S[r-1],0>_&&!a?(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 a=t.shift();if(typeof a>"u"||a==="__proto__")return;if(a==="this"){let u;return X(i)&&(u=i["@this"]),u??i}if(i=i[a],!R(i)||typeof i=="function"||typeof i.nodeType=="number"||i===p)return}return i},getStyle:f,inArray:function(t,i,a){return P(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,a)},insertItem:function(t,i){const a=t.options.index,u=i.length;let _;for(_=t.options.isInternal?u:0;_<u+1;_++)if(!i[_]||H(a)&&a<L(i[_].options.index,i[_]._i)||i[_].options.isInternal){i.splice(_,0,t);break}return _},isArray:Z,isClass:O,isDOMElement:Y,isFunction:function(t){return typeof t=="function"},isNumber:H,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,a={};const u=function(r,S){return typeof r!="object"&&(r={}),C(S,function($,K){K!=="__proto__"&&K!=="constructor"&&(!X($,!0)||O($)||Y($)?r[K]=S[K]:r[K]=u(r[K]||{},$))}),r};i[0]===!0&&(a=i[1],i=Array.prototype.slice.call(i,2));const _=i.length;for(t=0;t<_;t++)a=u(a,i[t]);return a},normalizeTickInterval:function(t,i,a,u,_){let r=t;a=L(a,y(t));const S=t/a;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&&(a===1?i=i.filter(function($){return $%1===0}):.1>=a&&(i=[1/a]))),u=0;u<i.length&&(r=i[u],!(_&&r*a>=t||!_&&S<=(i[u]+(i[u+1]||i[u]))/2));u++);return r=v(r*a,-Math.round(Math.log(.001)/Math.LN10))},objectEach:C,offset:function(t){const i=l.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,a){return Array((i||2)+1-String(t).replace("-","").length).join(a||"0")+t},pick:L,pInt:G,pushUnique:function(t,i){return 0>t.indexOf(i)&&!!t.push(i)},relativeLength:function(t,i,a){return/%$/.test(t)?i*parseFloat(t)/100+(a||0):parseFloat(t)},removeEvent:k,splat:b,stableSort:function(t,i){const a=t.length;let u,_;for(_=0;_<a;_++)t[_].safeI=_;for(t.sort(function(r,S){return u=i(r,S),u===0?r.safeI-S.safeI:u}),_=0;_<a;_++)delete t[_].safeI},syncTimeout:function(t,i,a){return 0<i?setTimeout(t,i,a):(t.call(0,a),-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,a){const u=t[i];t[i]=function(){const _=arguments,r=this;return a.apply(this,[function(){return u.apply(r,arguments.length?arguments:_)}].concat([].slice.call(arguments)))}}},h}),ot(A,"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"}}),ot(A,"Core/Color/Color.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P){const{isNumber:G,merge:q,pInt:Z}=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 H=B.Color;if(H&&H!==X)return new H(O);this.init(O)}init(O){let H,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?H=[(b&16711680)>>16,(b&65280)>>8,b&255,1]:x===4&&(H=[(b&3840)>>4|(b&3840)>>8,(b&240)>>4|b&240,(b&15)<<4|b&15,1])}if(!H)for(b=X.parsers.length;b--&&!H;)R=X.parsers[b],(x=R.regex.exec(O))&&(H=R.parse(x))}H&&(this.rgba=H)}get(O){const H=this.input,R=this.rgba;if(typeof H=="object"&&typeof this.stops<"u"){const x=q(H);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(",")+")":H}brighten(O){const H=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++)H[R]+=Z(255*O),0>H[R]&&(H[R]=0),255<H[R]&&(H[R]=255);return this}setOpacity(O){return this.rgba[3]=O,this}tweenTo(O,H){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-H))+","+Math.round(x[1]+(R[1]-x[1])*(1-H))+","+Math.round(x[2]+(R[2]-x[2])*(1-H))+(O?","+(x[3]+(R[3]-x[3])*(1-H)):"")+")")}}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[Z(Y[1]),Z(Y[2]),Z(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[Z(Y[1]),Z(Y[2]),Z(Y[3]),1]}}],X.None=new X(""),X}),ot(A,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),ot(A,"Core/Time.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P){const{win:G}=B,{defined:q,error:Z,extend:X,isObject:Y,merge:O,objectEach:H,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(f){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=G.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(f)}get(f,C){if(this.variableTimezone||this.timezoneOffset){const k=C.getTime(),w=k-this.getTimezoneOffset(C);return C.setTime(w),f=C["getUTC"+f](),C.setTime(k),f}return this.useUTC?C["getUTC"+f]():C["get"+f]()}set(f,C,k){if(this.variableTimezone||this.timezoneOffset){if(f==="Milliseconds"||f==="Seconds"||f==="Minutes"&&this.getTimezoneOffset(C)%36e5===0)return C["setUTC"+f](k);var w=this.getTimezoneOffset(C);return w=C.getTime()-w,C.setTime(w),C["setUTC"+f](k),f=this.getTimezoneOffset(C),w=C.getTime()+f,C.setTime(w)}return this.useUTC||L&&f==="FullYear"?C["setUTC"+f](k):C["set"+f](k)}update(f={}){const C=x(f.useUTC,!0);this.options=f=O(!0,this.options,f),this.Date=f.Date||G.Date||Date,this.timezoneOffset=(this.useUTC=C)&&f.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=C&&!(!f.getTimezoneOffset&&!f.timezone)}makeTime(f,C,k,w,o,l){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(f,C,x(k,1),x(w,0),x(o,0),x(l,0)).getTime(),p}timezoneOffsetFunction(){const f=this,C=this.options,k=C.getTimezoneOffset,w=C.moment||G.moment;if(!this.useUTC)return function(o){return 6e4*new Date(o.toString()).getTimezoneOffset()};if(C.timezone){if(w)return function(o){return 6e4*-w.tz(o,C.timezone).utcOffset()};Z(25)}return this.useUTC&&k?function(o){return 6e4*k(o.valueOf())}:function(){return 6e4*(f.timezoneOffset||0)}}dateFormat(f,C,k){if(!q(C)||isNaN(C))return B.defaultOptions.lang&&B.defaultOptions.lang.invalidDate||"";f=x(f,"%Y-%m-%d %H:%M:%S");const w=this;var o=new this.Date(C);const l=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,a=t&&t.shortWeekdays;return o=X({a:a?a[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(l),k:l,I:R(l%12||12),l:l%12||12,M:R(this.get("Minutes",o)),p:12>l?"AM":"PM",P:12>l?"am":"pm",S:R(o.getSeconds()),L:R(Math.floor(C%1e3),3)},B.dateFormats),H(o,function(u,_){for(;f.indexOf("%"+_)!==-1;)f=f.replace("%"+_,typeof u=="function"?u.call(w,C):u)}),k?f.substr(0,1).toUpperCase()+f.substr(1):f}resolveDTLFormat(f){return Y(f,!0)?f:(f=b(f),{main:f[0],from:f[1],to:f[2]})}getTimeTicks(f,C,k,w){const o=this,l=[],p={};var h=new o.Date(C);const d=f.unitRange,e=f.count||1;let t;if(w=x(w,1),q(C)){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+w+(i<w?-7:0))),i=o.get("FullYear",h),w=o.get("Month",h);const a=o.get("Date",h),u=o.get("Hours",h);for(C=h.getTime(),!o.variableTimezone&&o.useUTC||!q(k)||(t=k-C>4*E.month||o.getTimezoneOffset(C)!==o.getTimezoneOffset(k)),C=h.getTime(),h=1;C<k;)l.push(C),C=d===E.year?o.makeTime(i+h*e,0):d===E.month?o.makeTime(i,w+h*e):!t||d!==E.day&&d!==E.week?t&&d===E.hour&&1<e?o.makeTime(i,w,a,u+h*e):C+d*e:o.makeTime(i,w,a+h*e*(d===E.day?1:7)),h++;l.push(C),d<=E.hour&&1e4>l.length&&l.forEach(function(_){_%18e5===0&&o.dateFormat("%H%M%S%L",_)==="000000000"&&(p[_]="day")})}return l.info=X(f,{higherRanks:p,totalRange:d*e}),l}getDateFormat(f,C,k,w){const o=this.dateFormat("%m-%d %H:%M:%S.%L",C),l={millisecond:15,second:12,minute:9,hour:6,day:3};let p,h="millisecond";for(p in E){if(f===E.week&&+this.dateFormat("%w",C)===k&&o.substr(6)==="00:00:00.000"){p="week";break}if(E[p]>f){p=h;break}if(l[p]&&o.substr(l[p])!=="01-01 00:00:00.000".substr(l[p]))break;p!=="week"&&(h=p)}return this.resolveDTLFormat(w[p]).main}}return y}),ot(A,"Core/Defaults.js",[A["Core/Chart/ChartDefaults.js"],A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Color/Palettes.js"],A["Core/Time.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z,X){const{isTouchDevice:Y,svg:O}=G,{merge:H}=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 Z(R.time);return B={defaultOptions:R,defaultTime:x,getOptions:function(){return R},setOptions:function(b){return H(!0,R,b),(b.time||b.global)&&(G.time?G.time.update(H(R.global,R.time,b.global,b.time)):G.time=x),R}},B}),ot(A,"Core/Animation/Fx.js",[A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P,G){const{parse:q}=B,{win:Z}=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 f=0;f<y.length;f++){const C=c[f],k=y[f];X(C)&&X(k)&&(y[0]!=="A"||f!==4&&f!==5)?v[f]=C+b*(k-C):v[f]=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(f){return c.stopped?!1:E.step(f)},y=Z.requestAnimationFrame||function(f){setTimeout(f,13)},v=function(){for(let f=0;f<O.timers.length;f++)O.timers[f]()||O.timers.splice(f--,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(f){f!==!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,l){for(;o.length<k;){var p=o[0];const h=l[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,l){for(;o.length<k;)if(l=o[Math.floor(o.length/f)-1].slice(),l[0]==="C"&&(l[1]=l[5],l[2]=l[6]),v){const p=o[Math.floor(o.length/f)].slice();o.splice(o.length/2,0,l,p)}else o.push(l)}const c=R.startX,y=R.endX;b=b.slice();const v=R.isArea,f=v?2:1;let C,k,w;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]){C=R;break}else if(c[0]===y[y.length-c.length+R]){C=R,w=!0;break}else if(c[c.length-1]===y[y.length-c.length+R]){C=c.length-R;break}typeof C>"u"&&(x=[])}return x.length&&X(C)&&(k=b.length+C*f,w?(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}),ot(A,"Core/Animation/AnimationUtilities.js",[A["Core/Animation/Fx.js"],A["Core/Utilities.js"]],function(B,P){function G(E){return H(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:Z,getStyle:X,isArray:Y,isNumber:O,isObject:H,merge:R,objectEach:x,pick:b}=P;return{animate:function(E,L,c){let y,v="",f,C,k;H(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(w,o){q(E,o),C=new B(E,c,o),f=void 0,o==="d"&&Y(L.d)?(C.paths=C.initPath(E,E.pathArray,L.d),C.toD=L.d,y=0,f=1):E.attr?y=E.attr(o):(y=parseFloat(X(E,o))||0,o!=="opacity"&&(v="px")),f||(f=w),typeof f=="string"&&f.match("px")&&(f=f.replace(/px/g,"")),C.run(y,f,v)})},animObject:G,getDeferredAnimation:function(E,L,c){const y=G(L);let v=0,f=0;return(c?[c]:E.series).forEach(C=>{C=G(C.options.animation),v=L&&Z(L.defer)?y.defer:Math.max(v,C.duration+C.defer),f=Math.min(y.duration,C.duration)}),E.renderer.forExport&&(v=0),{defer:Math.max(0,v-f),duration:Math.min(v,f)}},setAnimation:function(E,L){L.renderer.globalAnimation=b(E,L.options.chart.animation,!0)},stop:q}}),ot(A,"Core/Renderer/HTML/AST.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P){const{SVG_NS:G,win:q}=B,{attr:Z,createElement:X,css:Y,error:O,isFunction:H,isString:R,objectEach:x,splat:b}=P;({trustedTypes:P}=q);const E=P&&H(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(f){return x(f,(C,k)=>{let w=!0;y.allowedAttributes.indexOf(k)===-1&&(w=!1),["background","dynsrc","href","lowsrc","src"].indexOf(k)!==-1&&(w=R(C)&&y.allowedReferences.some(o=>C.indexOf(o)===0)),w||(O(33,!1,void 0,{"Invalid attribute in config":`${k}`}),delete f[k]),R(C)&&f[k]&&(f[k]=C.replace(/</g,"<"))}),f}static parseStyle(f){return f.split(";").reduce((C,k)=>{k=k.split(":").map(o=>o.trim());const w=k.shift();return w&&k.length&&(C[w.replace(/-([a-z])/g,o=>o[1].toUpperCase())]=k.join(":")),C},{})}static setElementHTML(f,C){f.innerHTML=y.emptyHTML,C&&new y(C).addToDOM(f)}constructor(f){this.nodes=typeof f=="string"?this.parseMarkup(f):f}addToDOM(f){function C(k,w){let o;return b(k).forEach(function(l){var p=l.tagName;const h=l.textContent?B.doc.createTextNode(l.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:w.namespaceURI||G,p);const t=l.attributes||{};x(l,function(i,a){a!=="tagName"&&a!=="attributes"&&a!=="children"&&a!=="style"&&a!=="textContent"&&(t[a]=i)}),Z(p,d?t:y.filterUserAttributes(t)),l.style&&Y(p,l.style),h&&p.appendChild(h),C(l.children||[],p),e=p}else O(33,!1,void 0,{"Invalid tagName in config":p});e&&w.appendChild(e),o=e}),o}return C(this.nodes,f)}parseMarkup(f){const C=[];if(f=f.trim().replace(/ style=(["'])/g," data-style=$1"),c)f=new DOMParser().parseFromString(E?E.createHTML(f):f,"text/html");else{const w=X("div");w.innerHTML=f,f={body:w}}const k=(w,o)=>{var l=w.nodeName.toLowerCase();const p={tagName:l};if(l==="#text"&&(p.textContent=w.textContent||""),l=w.attributes){const h={};[].forEach.call(l,d=>{d.name==="data-style"?p.style=y.parseStyle(d.value):h[d.name]=d.value}),p.attributes=h}if(w.childNodes.length){const h=[];[].forEach.call(w.childNodes,d=>{k(d,h)}),h.length&&(p.children=h)}o.push(p)};return[].forEach.call(f.body.childNodes,w=>k(w,C)),C}}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}),ot(A,"Core/Templating.js",[A["Core/Defaults.js"],A["Core/Utilities.js"]],function(B,P){function G(c="",y,v){const f=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,C=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,k=[],w=/f$/,o=/\.([0-9])/,l=Z.lang,p=v&&v.time||X,h=v&&v.numberFormatter||q,d=(r="")=>{let S;return r==="true"?!0:r==="false"?!1:(S=Number(r)).toString()===r?S:O(r,y)};let e,t,i=0,a;for(;(e=f.exec(c))!==null;){const r=C.exec(e[1]);r&&(e=r,a=!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(r&&(t==null||!t.isBlock))break}return k.forEach(r=>{const{body:S,elseBody:$,expression:K,fn:rt}=r;var j;if(rt){var s=[r],T=K.split(" ");for(j=L[rt].length;j--;)s.unshift(d(T[j+1]));j=L[rt].apply(y,s),r.isBlock&&typeof j=="boolean"&&(j=G(j?S:$,y))}else s=K.split(":"),j=d(s.shift()||""),s.length&&typeof j=="number"&&(s=s.join(":"),w.test(s)?(T=parseInt((s.match(o)||["","-1"])[1],10),j!==null&&(j=h(j,T,l.decimalPoint,-1<s.indexOf(",")?l.thousandsSep:""))):j=p.dateFormat(s,j));c=c.replace(r.find,b(j,""))}),a?G(c,y,v):c}function q(c,y,v,f){c=+c||0,y=+y;const C=Z.lang;var k=(c.toString().split(".")[1]||"").split("e")[0].length;const w=c.toString().split("e"),o=y;if(y===-1)y=Math.min(k,20);else if(!R(y))y=2;else if(y&&w[1]&&0>w[1]){var l=y+ +w[1];0<=l?(w[0]=(+w[0]).toExponential(l).split("e")[0],y=l):(w[0]=w[0].split(".")[0]||0,c=20>y?(w[0]*Math.pow(10,w[1])).toFixed(y):0,w[1]=0)}l=(Math.abs(w[1]?w[0]:c)+Math.pow(10,-Math.max(y,k)-1)).toFixed(y),k=String(E(l));const p=3<k.length?k.length%3:0;return v=b(v,C.decimalPoint),f=b(f,C.thousandsSep),c=(0>c?"-":"")+(p?k.substr(0,p)+f:""),c=0>+w[1]&&!o?"0":c+k.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+f),y&&(c+=v+l.slice(-y)),w[1]&&+c!=0&&(c+="e"+w[1]),c}const{defaultOptions:Z,defaultTime:X}=B,{extend:Y,getNestedProperty:O,isArray:H,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 H(c)?c.map((v,f)=>G(y.body,Y(x(v)?v:{"@this":v},{"@index":f,"@first":f===0,"@last":f===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}}),ot(A,"Core/Renderer/RendererUtilities.js",[A["Core/Utilities.js"]],function(B){const{clamp:P,pick:G,stableSort:q}=B;var Z;return function(X){function Y(O,H,R){const x=O;var b=x.reducedLen||H,E=(C,k)=>(k.rank||0)-(C.rank||0);const L=(C,k)=>C.target-k.target;let c,y=!0,v=[],f=0;for(c=O.length;c--;)f+=O[c].size;if(f>b){for(q(O,E),f=c=0;f<=b;)f+=O[c].size,c++;v=O.splice(c-1,O.length)}for(q(O,L),O=O.map(C=>({size:C.size,targets:[C.target],align:G(C.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,H-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>H&&(O[c-1].pos=H-O[c-1].size),O.splice(c,1),y=!0)}return x.push.apply(x,v),c=0,O.some(C=>{let k=0;return(C.targets||[]).some(()=>(x[c].pos=C.pos+k,typeof R<"u"&&Math.abs(x[c].pos-x[c].target)>R?(x.slice(0,c+1).forEach(w=>delete w.pos),x.reducedLen=(x.reducedLen||H)-.1*H,x.reducedLen>.1*H&&Y(x,H,R),!0):(k+=x[c].size,c++,!1)))}),q(x,L),x}X.distribute=Y}(Z||(Z={})),Z}),ot(A,"Core/Renderer/SVG/SVGElement.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P,G,q){const{animate:Z,animObject:X,stop:Y}=B,{deg2rad:O,doc:H,svg:R,SVG_NS:x,win:b}=G,{addEvent:E,attr:L,createElement:c,css:y,defined:v,erase:f,extend:C,fireEvent:k,isArray:w,isFunction:o,isObject:l,isString:p,merge:h,objectEach:d,pick:e,pInt:t,syncTimeout:i,uniqueKey:a}=q;class u{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=x}_defaultGetter(r){return r=e(this[r+"Value"],this[r],this.element?this.element.getAttribute(r):null,0),/^[\-0-9\.]+$/.test(r)&&(r=parseFloat(r)),r}_defaultSetter(r,S,$){$.setAttribute(S,r)}add(r){const S=this.renderer,$=this.element;let K;return r&&(this.parentGroup=r),typeof this.textStr<"u"&&this.element.nodeName==="text"&&S.buildText(this),this.added=!0,(!r||r.handleZ||this.zIndex)&&(K=this.zIndexSetter()),K||(r?r.element:S.box).appendChild($),this.onAdd&&this.onAdd(),this}addClass(r,S){const $=S?"":this.attr("class")||"";return r=(r||"").split(/ /g).reduce(function(K,rt){return $.indexOf(rt)===-1&&K.push(rt),K},$?[$]:[]).join(" "),r!==$&&this.attr("class",r),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(r,S,$){const K={};var rt=this.renderer,j=rt.alignedObjects,s;let T,z;r?(this.alignOptions=r,this.alignByTranslate=S,(!$||p($))&&(this.alignTo=s=$||"renderer",f(j,this),j.push(this),$=void 0)):(r=this.alignOptions,S=this.alignByTranslate,s=this.alignTo),$=e($,rt[s],s==="scrollablePlotBox"?rt.plotBox:void 0,rt),s=r.align;const I=r.verticalAlign;return rt=($.x||0)+(r.x||0),j=($.y||0)+(r.y||0),s==="right"?T=1:s==="center"&&(T=2),T&&(rt+=($.width-(r.width||0))/T),K[S?"translateX":"x"]=Math.round(rt),I==="bottom"?z=1:I==="middle"&&(z=2),z&&(j+=($.height-(r.height||0))/z),K[S?"translateY":"y"]=Math.round(j),this[this.placed?"animate":"attr"](K),this.placed=!0,this.alignAttr=K,this}alignSetter(r){const S={left:"start",center:"middle",right:"end"};S[r]&&(this.alignValue=r,this.element.setAttribute("text-anchor",S[r]))}animate(r,S,$){const K=X(e(S,this.renderer.globalAnimation,!0));return S=K.defer,H.hidden&&(K.duration=0),K.duration!==0?($&&(K.complete=$),i(()=>{this.element&&Z(this,r,K)},S)):(this.attr(r,void 0,$||K.complete),d(r,function(rt,j){K.step&&K.step.call(this,rt,{prop:j,pos:1,elem:this})},this)),this}applyTextOutline(r){const S=this.element;r.indexOf("contrast")!==-1&&(r=r.replace(/contrast/g,this.renderer.getContrast(S.style.fill)));var $=r.split(" ");if(r=$[$.length-1],($=$[0])&&$!=="none"&&G.svg){this.fakeTS=!0,$=$.replace(/(^[\d\.]+)(.*?)$/g,function(j,s,T){return 2*Number(s)+T}),this.removeTextOutline();const K=H.createElementNS(x,"tspan");L(K,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":$,"stroke-linejoin":"round"}),r=S.querySelector("textPath")||S,[].forEach.call(r.childNodes,j=>{const s=j.cloneNode(!0);s.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(T=>s.removeAttribute(T)),K.appendChild(s)});let rt=0;[].forEach.call(r.querySelectorAll("text tspan"),j=>{rt+=Number(j.getAttribute("dy"))}),$=H.createElementNS(x,"tspan"),$.textContent="",L($,{x:Number(S.getAttribute("x")),dy:-rt}),K.appendChild($),r.insertBefore(K,r.firstChild)}}attr(r,S,$,K){const rt=this.element,j=u.symbolCustomAttribs;let s,T,z=this,I,V;return typeof r=="string"&&typeof S<"u"&&(s=r,r={},r[s]=S),typeof r=="string"?z=(this[r+"Getter"]||this._defaultGetter).call(this,r,rt):(d(r,function(n,g){I=!1,K||Y(this,g),this.symbolName&&j.indexOf(g)!==-1&&(T||(this.symbolAttr(r),T=!0),I=!0),!this.rotation||g!=="x"&&g!=="y"||(this.doTransform=!0),I||(V=this[g+"Setter"]||this._defaultSetter,V.call(this,n,g,rt))},this),this.afterSetters()),$&&$.call(this),z}clip(r){return this.attr("clip-path",r?"url("+this.renderer.url+"#"+r.id+")":"none")}crisp(r,S){S=S||r.strokeWidth||0;const $=Math.round(S)%2/2;return r.x=Math.floor(r.x||this.x||0)+$,r.y=Math.floor(r.y||this.y||0)+$,r.width=Math.floor((r.width||this.width||0)-2*$),r.height=Math.floor((r.height||this.height||0)-2*$),v(r.strokeWidth)&&(r.strokeWidth=S),r}complexColor(r,S,$){const K=this.renderer;let rt,j,s,T,z,I,V,n,g,m,W=[],F;k(this.renderer,"complexColor",{args:arguments},function(){if(r.radialGradient?j="radialGradient":r.linearGradient&&(j="linearGradient"),j){if(s=r[j],z=K.gradients,I=r.stops,g=$.radialReference,w(s)&&(r[j]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),j==="radialGradient"&&g&&!v(s.gradientUnits)&&(T=s,s=h(s,K.getRadialAttr(g,T),{gradientUnits:"userSpaceOnUse"})),d(s,function(N,et){et!=="id"&&W.push(et,N)}),d(I,function(N){W.push(N)}),W=W.join(","),z[W])m=z[W].attr("id");else{s.id=m=a();const N=z[W]=K.createElement(j).attr(s).add(K.defs);N.radAttr=T,N.stops=[],I.forEach(function(et){et[1].indexOf("rgba")===0?(rt=P.parse(et[1]),V=rt.get("rgb"),n=rt.get("a")):(V=et[1],n=1),et=K.createElement("stop").attr({offset:et[0],"stop-color":V,"stop-opacity":n}).add(N),N.stops.push(et)})}F="url("+K.url+"#"+m+")",$.setAttribute(S,F),$.gradient=W,r.toString=function(){return F}}})}css(r){const S=this.styles,$={},K=this.element;let rt,j=!S;if(S&&d(r,function(s,T){S&&S[T]!==s&&($[T]=s,j=!0)}),j){S&&(r=C(S,$)),r.width===null||r.width==="auto"?delete this.textWidth:K.nodeName.toLowerCase()==="text"&&r.width&&(rt=this.textWidth=t(r.width)),this.styles=r,rt&&!R&&this.renderer.forExport&&delete r.width;const s=h(r);K.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(T=>s&&delete s[T]),s.color&&(s.fill=s.color)),y(K,s)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),r.textOutline&&this.applyTextOutline(r.textOutline)),this}dashstyleSetter(r){let S=this["stroke-width"];if(S==="inherit"&&(S=1),r=r&&r.toLowerCase()){const $=r.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(r=$.length;r--;)$[r]=""+t($[r])*e(S,NaN);r=$.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",r)}}destroy(){const r=this;var S=r.element||{};const $=r.renderer;var K=S.ownerSVGElement;let rt=S.nodeName==="SPAN"&&r.parentGroup||void 0;if(S.onclick=S.onmouseout=S.onmouseover=S.onmousemove=S.point=null,Y(r),r.clipPath&&K){const j=r.clipPath;[].forEach.call(K.querySelectorAll("[clip-path],[CLIP-PATH]"),function(s){-1<s.getAttribute("clip-path").indexOf(j.element.id)&&s.removeAttribute("clip-path")}),r.clipPath=j.destroy()}if(r.stops){for(K=0;K<r.stops.length;K++)r.stops[K].destroy();r.stops.length=0,r.stops=void 0}for(r.safeRemoveChild(S);rt&&rt.div&&rt.div.childNodes.length===0;)S=rt.parentGroup,r.safeRemoveChild(rt.div),delete rt.div,rt=S;r.alignTo&&f($.alignedObjects,r),d(r,function(j,s){r[s]&&r[s].parentGroup===r&&r[s].destroy&&r[s].destroy(),delete r[s]})}dSetter(r,S,$){w(r)&&(typeof r[0]=="string"&&(r=this.renderer.pathToSegments(r)),this.pathArray=r,r=r.reduce((K,rt,j)=>rt&&rt.join?(j?K+" ":"")+rt.join(" "):(rt||"").toString(),"")),/(NaN| {2}|^$)/.test(r)&&(r="M 0 0"),this[S]!==r&&($.setAttribute(S,r),this[S]=r)}fadeOut(r){const S=this;S.animate({opacity:0},{duration:e(r,150),complete:function(){S.hide()}})}fillSetter(r,S,$){typeof r=="string"?$.setAttribute(S,r):r&&this.complexColor(r,S,$)}getBBox(r,S){const{alignValue:$,element:K,renderer:rt,styles:j,textStr:s}=this,{cache:T,cacheKeys:z}=rt;var I=K.namespaceURI===this.SVG_NS;S=e(S,this.rotation,0);var V=rt.styledMode?K&&u.prototype.getStyle.call(K,"font-size"):j&&j.fontSize;let n,g;if(v(s)&&(g=s.toString(),g.indexOf("<")===-1&&(g=g.replace(/[0-9]/g,"0")),g+=["",rt.rootFontSize,V,S,this.textWidth,$,j&&j.textOverflow,j&&j.fontWeight].join()),g&&!r&&(n=T[g]),!n){if(I||rt.forExport){try{var m=this.fakeTS&&function(nt){const at=K.querySelector(".highcharts-text-outline");at&&y(at,{display:nt})};o(m)&&m("none"),n=K.getBBox?C({},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,r=n.height,I&&(n.height=r={"11px,17":14,"13px,20":16}[`${V||""},${Math.round(r)}`]||r),S){I=Number(K.getAttribute("y")||0)-n.y,V={right:1,center:.5}[$||0]||0;var W=S*O,F=(S-90)*O,N=m*Math.cos(W);S=m*Math.sin(W);var et=Math.cos(F);W=Math.sin(F),m=n.x+V*(m-N)+I*et,F=m+N,et=F-r*et,N=et-N,I=n.y+I-V*S+I*W,V=I+S,r=V-r*W,S=r-S,n.x=Math.min(m,F,et,N),n.y=Math.min(I,V,r,S),n.width=Math.max(m,F,et,N)-n.x,n.height=Math.max(I,V,r,S)-n.y}}if(g&&(s===""||0<n.height)){for(;250<z.length;)delete T[z.shift()];T[g]||z.push(g),T[g]=n}return n}getStyle(r){return b.getComputedStyle(this.element||this,"").getPropertyValue(r)}hasClass(r){return(""+this.attr("class")).split(" ").indexOf(r)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}init(r,S){this.element=S==="span"?c(S):H.createElementNS(this.SVG_NS,S),this.renderer=r,k(this,"afterInit")}on(r,S){const{onEvents:$}=this;return $[r]&&$[r](),$[r]=E(this.element,r,S),this}opacitySetter(r,S,$){this.opacity=r=Number(Number(r).toFixed(3)),$.setAttribute(S,r)}removeClass(r){return this.attr("class",(""+this.attr("class")).replace(p(r)?new RegExp(`(^| )${r}( |$)`):r," ").replace(/ +/g," ").trim())}removeTextOutline(){const r=this.element.querySelector("tspan.highcharts-text-outline");r&&this.safeRemoveChild(r)}safeRemoveChild(r){const S=r.parentNode;S&&S.removeChild(r)}setRadialReference(r){const S=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=r,S&&S.radAttr&&S.animate(this.renderer.getRadialAttr(r,S.radAttr)),this}setTextPath(r,S){S=h(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},S);const $=this.renderer.url,K=this.text||this,rt=K.textPath,{attributes:j,enabled:s}=S;return r=r||rt&&rt.path,rt&&rt.undo(),r&&s?(S=E(K,"afterModifyTree",T=>{if(r&&s){let I=r.attr("id");I||r.attr("id",I=a());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=T.nodes.slice(0),T.nodes.length=0,T.nodes[0]={tagName:"textPath",attributes:C(j,{"text-anchor":j.textAnchor,href:`${$}#${I}`}),children:z}}}),K.textPath={path:r,undo:S}):(K.attr({dx:0,dy:0}),delete K.textPath),this.added&&(K.textCache="",this.renderer.buildText(K)),this}shadow(r){var S;const{renderer:$}=this,K=h(((S=this.parentGroup)===null||S===void 0?void 0:S.rotation)===90?{offsetX:-1,offsetY:-1}:{},l(r)?r:{});return S=$.shadowDefinition(K),this.attr({filter:r?`url(${$.url}#${S})`:"none"})}show(r=!0){return this.attr({visibility:r?"inherit":"visible"})}"stroke-widthSetter"(r,S,$){this[S]=r,$.setAttribute(S,r)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const r=this.getStyle("stroke-width");let S=0,$;return r.indexOf("px")===r.length-2?S=t(r):r!==""&&($=H.createElementNS(x,"rect"),L($,{width:r,"stroke-width":0}),this.element.parentNode.appendChild($),S=$.getBBox().width,$.parentNode.removeChild($)),S}symbolAttr(r){const S=this;u.symbolCustomAttribs.forEach(function($){S[$]=e(r[$],S[$])}),S.attr({d:S.renderer.symbols[S.symbolName](S.x,S.y,S.width,S.height,S)})}textSetter(r){r!==this.textStr&&(delete this.textPxLength,this.textStr=r,this.added&&this.renderer.buildText(this))}titleSetter(r){const S=this.element,$=S.getElementsByTagName("title")[0]||H.createElementNS(this.SVG_NS,"title");S.insertBefore?S.insertBefore($,S.firstChild):S.appendChild($),$.textContent=String(e(r,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}toFront(){const r=this.element;return r.parentNode.appendChild(r),this}translate(r,S){return this.attr({translateX:r,translateY:S})}updateTransform(){const{element:r,matrix:S,rotation:$=0,scaleX:K,scaleY:rt,translateX:j=0,translateY:s=0}=this,T=["translate("+j+","+s+")"];v(S)&&T.push("matrix("+S.join(",")+")"),$&&T.push("rotate("+$+" "+e(this.rotationOriginX,r.getAttribute("x"),0)+" "+e(this.rotationOriginY,r.getAttribute("y")||0)+")"),(v(K)||v(rt))&&T.push("scale("+e(K,1)+" "+e(rt,1)+")"),T.length&&!(this.text||this).textPath&&r.setAttribute("transform",T.join(" "))}visibilitySetter(r,S,$){r==="inherit"?$.removeAttribute(S):this[S]!==r&&$.setAttribute(S,r),this[S]=r}xGetter(r){return this.element.nodeName==="circle"&&(r==="x"?r="cx":r==="y"&&(r="cy")),this._defaultGetter(r)}zIndexSetter(r,S){var $=this.renderer,K=this.parentGroup;const rt=(K||$).element||$.box,j=this.element;$=rt===$.box;let s=!1,T;var z=this.added;let I;if(v(r)?(j.setAttribute("data-z-index",r),r=+r,this[S]===r&&(z=!1)):v(this[S])&&j.removeAttribute("data-z-index"),this[S]=r,z){for((r=this.zIndex)&&K&&(K.handleZ=!0),S=rt.childNodes,I=S.length-1;0<=I&&!s;I--)K=S[I],z=K.getAttribute("data-z-index"),T=!v(z),K!==j&&(0>r&&T&&!$&&!I?(rt.insertBefore(j,S[I]),s=!0):(t(z)<=r||T&&(!v(r)||0<=r))&&(rt.insertBefore(j,S[I+1]),s=!0));s||(rt.insertBefore(j,S[$?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(_,r){this[r]=_,this.doTransform=!0},u}),ot(A,"Core/Renderer/RendererRegistry.js",[A["Core/Globals.js"]],function(B){var P;return function(G){G.rendererTypes={};let q;G.getRendererType=function(Z=q){return G.rendererTypes[Z]||G.rendererTypes[q]},G.registerRendererType=function(Z,X,Y){G.rendererTypes[Z]=X,(!q||Y)&&(q=Z,B.Renderer=X)}}(P||(P={})),P}),ot(A,"Core/Renderer/SVG/SVGLabel.js",[A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(B,P){const{defined:G,extend:q,isNumber:Z,merge:X,pick:Y,removeEvent:O}=P;class H extends B{constructor(x,b,E,L,c,y,v,f,C,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=C,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,f).attr({zIndex:1});let w;typeof c=="string"&&((w=/^url\((.*?)\)$/.test(c))||this.renderer.symbols[c])&&(this.symbolKey=c),this.bBox=H.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=x.styledMode||w,this.deferredAttr={},this.alignFactor=0}alignSetter(x){x={left:0,center:.5,right:1}[x],x!==this.alignFactor&&(this.alignFactor=x,this.bBox&&Z(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),H.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){Z(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=Z(this.widthSetting)&&Z(this.heightSetting)&&!this.textAlign||!G(x.textStr)?H.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=Z(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 H.emptyBBox={width:0,height:0,x:0,y:0},H.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),H}),ot(A,"Core/Renderer/SVG/Symbols.js",[A["Core/Utilities.js"]],function(B){function P(O,H,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)),f=Math.cos(L),C=Math.sin(L),k=Math.cos(x),w=Math.sin(x),o=Y(b.longArc,.001>x-L-Math.PI?0:1);let l=["A",c,R,0,o,Y(b.clockwise,1),O+c*k,H+R*w];l.params={start:L,end:x,cx:O,cy:H},E.push(["M",O+c*f,H+R*C],l),Z(y)&&(l=["A",y,y,0,o,Z(b.clockwise)?1-b.clockwise:0,O+y*f,H+y*C],l.params={start:x,end:L,cx:O,cy:H},E.push(v?["M",O+y*k,H+y*w]:["L",O+y*k,H+y*w],l)),v||E.push(["Z"])}return E}function G(O,H,R,x,b){return b&&b.r?q(O,H,R,x,b):[["M",O,H],["L",O+R,H],["L",O+R,H+x],["L",O,H+x],["Z"]]}function q(O,H,R,x,b){return b=(b==null?void 0:b.r)||0,[["M",O+b,H],["L",O+R-b,H],["A",b,b,0,0,1,O+R,H+b],["L",O+R,H+x-b],["A",b,b,0,0,1,O+R-b,H+x],["L",O+b,H+x],["A",b,b,0,0,1,O,H+x-b],["L",O,H+b],["A",b,b,0,0,1,O+b,H],["Z"]]}const{defined:Z,isNumber:X,pick:Y}=B;return{arc:P,callout:function(O,H,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,H,R,x,{r:E});return X(c)&&(O+c>=R?b>H+L&&b<H+x-L?y.splice(3,1,["L",O+R,b-6],["L",O+R+6,b],["L",O+R,b+6],["L",O+R,H+x-E]):y.splice(3,1,["L",O+R,x/2],["L",c,b],["L",O+R,x/2],["L",O+R,H+x-E]):0>=O+c?b>H+L&&b<H+x-L?y.splice(7,1,["L",O,b+6],["L",O-6,b],["L",O,b-6],["L",O,H+E]):y.splice(7,1,["L",O,x/2],["L",c,b],["L",O,x/2],["L",O,H+E]):b&&b>x&&c>O+L&&c<O+R-L?y.splice(5,1,["L",c+6,H+x],["L",c,H+x+6],["L",c-6,H+x],["L",O+E,H+x]):b&&0>b&&c>O+L&&c<O+R-L&&y.splice(1,1,["L",c-6,H],["L",c,H-6],["L",c+6,H],["L",R-E,H])),y},circle:function(O,H,R,x){return P(O+R/2,H+x/2,R/2,x/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(O,H,R,x){return[["M",O+R/2,H],["L",O+R,H+x/2],["L",O+R/2,H+x],["L",O,H+x/2],["Z"]]},rect:G,roundedRect:q,square:G,triangle:function(O,H,R,x){return[["M",O+R/2,H],["L",O+R,H+x],["L",O,H+x],["Z"]]},"triangle-down":function(O,H,R,x){return[["M",O,H],["L",O+R,H],["L",O+R/2,H+x],["Z"]]}}}),ot(A,"Core/Renderer/SVG/TextBuilder.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P,G){const{doc:q,SVG_NS:Z,win:X}=P,{attr:Y,extend:O,fireEvent:H,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,f=b(c.textStr,"").toString();const C=f.indexOf("<")!==-1,k=y.childNodes;v=!c.added&&v.box;const w=/<br.*?>/g;var o=[f,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]);C||this.ellipsis||this.width||c.textPath||f.indexOf(" ")!==-1&&(!this.noWrap||w.test(f))?f!==""&&(v&&v.appendChild(y),f=new B(f),this.modifyTree(f.nodes),f.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(f))),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"),(w,o)=>{w.nextSibling&&w.previousSibling&&(o===0&&w.previousSibling.nodeType===1&&(c.firstLineMetrics=c.renderer.fontMetrics(w.previousSibling)),Y(w,{dy:this.getLineHeight(w.nextSibling),x:y}))});const f=this.width||0;if(f){var C=(w,o)=>{var l=w.textContent||"";const p=l.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)l&&this.truncate(w,l,void 0,0,Math.max(0,f-.8*d),(i,a)=>i.substring(0,a)+"…");else if(h){for(l=[],h=[];o.firstChild&&o.firstChild!==w;)h.push(o.firstChild),o.removeChild(o.firstChild);for(;p.length;)p.length&&!this.noWrap&&0<e&&(l.push(w.textContent||""),w.textContent=p.join(" ").replace(/- /g,"-")),this.truncate(w,void 0,p,e===0&&t||0,f,(i,a)=>p.slice(0,a).join(" ").replace(/- /g,"-")),t=c.actualWidth,e++;h.forEach(i=>{o.insertBefore(i,w)}),l.forEach(i=>{o.insertBefore(q.createTextNode(i),w),i=q.createElementNS(Z,"tspan"),i.textContent="",Y(i,{dy:d,x:y}),o.insertBefore(i,w)})}},k=w=>{[].slice.call(w.childNodes).forEach(o=>{o.nodeType===X.Node.TEXT_NODE?C(o,w):(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,f)=>{const{attributes:C={},children:k,style:w={},tagName:o}=v,l=this.renderer.styledMode;o==="b"||o==="strong"?l?C.class="highcharts-strong":w.fontWeight="bold":(o==="i"||o==="em")&&(l?C.class="highcharts-emphasized":w.fontStyle="italic"),w&&w.color&&(w.fill=w.color),o==="br"?(C.class="highcharts-br",v.textContent="",(f=c[f+1])&&f.textContent&&(f.textContent=f.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:C,style:w}),k&&k.filter(p=>p.tagName!=="#text").forEach(y)};c.forEach(y),H(this.svgElement,"afterModifyTree",{nodes:c})}truncate(c,y,v,f,C,k){const w=this.svgElement,{rotation:o}=w,l=[];let p=v?1:0,h=(y||v||"").length,d=h,e,t;const i=function(a,u){if(a=u||a,(u=c.parentNode)&&typeof l[a]>"u"&&u.getSubStringLength)try{l[a]=f+u.getSubStringLength(0,v?a+1:a)}catch{}return l[a]};if(w.rotation=0,t=i(c.textContent.length),f+t>C){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>C?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),w.actualWidth=t,w.rotation=o}unescapeEntities(c,y){return x(this.renderer.escapes,function(v,f){y&&y.indexOf(v)!==-1||(c=c.toString().replace(new RegExp(v,"g"),f))}),c}}return E}),ot(A,"Core/Renderer/SVG/SVGRenderer.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGLabel.js"],A["Core/Renderer/SVG/Symbols.js"],A["Core/Renderer/SVG/TextBuilder.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z,X,Y,O,H){const{charts:R,deg2rad:x,doc:b,isFirefox:E,isMS:L,isWebKit:c,noop:y,SVG_NS:v,symbolSizes:f,win:C}=G,{addEvent:k,attr:w,createElement:o,css:l,defined:p,destroyObjectProperties:h,extend:d,isArray:e,isNumber:t,isObject:i,isString:a,merge:u,pick:_,pInt:r,uniqueKey:S}=H;let $;class K{constructor(j,s,T,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,T,z,I,V,n)}init(j,s,T,z,I,V,n){const g=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),m=g.element;n||g.css(this.getStyle(z)),j.appendChild(m),w(j,"dir","ltr"),j.innerHTML.indexOf("xmlns")===-1&&w(m,"xmlns",this.SVG_NS),this.box=m,this.boxWrapper=g,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=g.getStyle("font-size"),this.setSize(s,T,!1);let W;E&&j.getBoundingClientRect&&(s=function(){l(j,{left:0,top:0}),W=j.getBoundingClientRect(),l(j,{left:Math.ceil(W.left)-W.left+"px",top:Math.ceil(W.top)-W.top+"px"})},s(),this.unSubPixelFix=k(C,"resize",s))}definition(j){return new B([j]).addToDOM(this.defs.element)}getReferenceURL(){if((E||c)&&b.getElementsByTagName("base").length){if(!p($)){var j=S();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),l(j,{position:"fixed",top:0,left:0,zIndex:9e5});const s=b.elementFromPoint(6,6);$=(s&&s.id)==="hitme",b.body.removeChild(j)}if($)return C.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,""),T=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:T.offsetX,dy:T.offsetY,"flood-color":T.color,"flood-opacity":Math.min(5*T.opacity,1),stdDeviation:T.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,T,z,I={},V,n,g,m,W){const F=this.label(j,s,T,m,void 0,void 0,W,void 0,"button"),N=this.styledMode;j=I.states||{};let et=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 at=B.filterUserAttributes(I);F.attr(u({padding:8,r:2},at));let ht,pt,D;return N||(at=u({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},at),V=u(at,{fill:"#e6e6e6"},B.filterUserAttributes(V||j.hover||{})),ht=V.style,delete V.style,n=u(at,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},B.filterUserAttributes(n||j.select||{})),pt=n.style,delete n.style,g=u(at,{style:{color:"#cccccc"}},B.filterUserAttributes(g||j.disabled||{})),D=g.style,delete g.style),k(F.element,L?"mouseover":"mouseenter",function(){et!==3&&F.setState(1)}),k(F.element,L?"mouseout":"mouseleave",function(){et!==3&&F.setState(et)}),F.setState=function(M){M!==1&&(F.state=et=M),F.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][M||0]),N||(F.attr([at,V,n,g][M||0]),M=[nt,ht,pt,D][M||0],i(M)&&F.css(M))},N||(F.attr(at).css(d({cursor:"default"},nt)),W&&F.text.css({pointerEvents:"none"})),F.on("touchstart",M=>M.stopPropagation()).on("click",function(M){et!==3&&z.call(F,M)})}crispLine(j,s,T="round"){const z=j[0],I=j[1];return p(z[1])&&z[1]===I[1]&&(z[1]=I[1]=Math[T](z[1])-s%2/2),p(z[2])&&z[2]===I[2]&&(z[2]=I[2]=Math[T](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,T){return j=i(j)?j:typeof j>"u"?{}:{x:j,y:s,r:T},s=this.createElement("circle"),s.xSetter=s.ySetter=function(z,I,V){V.setAttribute("c"+I,z)},s.attr(j)}arc(j,s,T,z,I,V){return i(j)?(z=j,s=z.y,T=z.r,j=z.x):z={innerR:z,start:I,end:V},j=this.symbol("arc",j,s,T,T,z),j.r=T,j}rect(j,s,T,z,I,V){j=i(j)?j:typeof j>"u"?{}:{x:j,y:s,r:I,width:Math.max(T||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(g,m,W){n.r=g,w(W,{rx:g,ry:g})},n.rGetter=function(){return n.r||0},n.attr(j)}roundedRect(j){return this.symbol("roundedRect").attr(j)}setSize(j,s,T){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:_(T,!0)?void 0:0}),this.alignElements()}g(j){const s=this.createElement("g");return j?s.attr({class:"highcharts-"+j}):s}image(j,s,T,z,I,V){const n={preserveAspectRatio:"none"};t(s)&&(n.x=s),t(T)&&(n.y=T),t(z)&&(n.width=z),t(I)&&(n.height=I);const g=this.createElement("image").attr(n);return s=function(m){g.attr({href:j}),V.call(g,m)},V?(g.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),T=new C.Image,k(T,"load",s),T.src=j,T.complete&&s({})):g.attr({href:j}),g}symbol(j,s,T,z,I,V){const n=this,g=/^url\((.*?)\)$/,m=g.test(j),W=!m&&(this.symbols[j]?j:"circle"),F=W&&this.symbols[W];let N,et,nt,at;if(F)typeof s=="number"&&(et=F.call(this.symbols,Math.round(s||0),Math.round(T||0),z||0,I||0,V)),N=this.path(et),n.styledMode||N.attr("fill","none"),d(N,{symbolName:W||void 0,x:s,y:T,width:z,height:I}),V&&d(N,V);else if(m){nt=j.match(g)[1];const ht=N=this.image(nt);ht.imgwidth=_(V&&V.width,f[nt]&&f[nt].width),ht.imgheight=_(V&&V.height,f[nt]&&f[nt].height),at=pt=>pt.attr({width:pt.width,height:pt.height}),["width","height"].forEach(function(pt){ht[pt+"Setter"]=function(D,M){this[M]=D;const{alignByTranslate:Q,element:U,width:tt,height:dt,imgwidth:ct,imgheight:xt}=this;if(D=this["img"+M],p(D)){let vt=1;V&&V.backgroundSize==="within"&&tt&&dt?(vt=Math.min(tt/ct,dt/xt),w(U,{width:Math.round(ct*vt),height:Math.round(xt*vt)})):U&&U.setAttribute(M,D),Q||this.translate(((tt||0)-ct*vt)/2,((dt||0)-xt*vt)/2)}}}),p(s)&&ht.attr({x:s,y:T}),ht.isImg=!0,p(ht.imgwidth)&&p(ht.imgheight)?at(ht):(ht.attr({width:0,height:0}),o("img",{onload:function(){const pt=R[n.chartIndex];this.width===0&&(l(this,{position:"absolute",top:"-999em"}),b.body.appendChild(this)),f[nt]={width:this.width,height:this.height},ht.imgwidth=this.width,ht.imgheight=this.height,ht.element&&at(ht),this.parentNode&&this.parentNode.removeChild(this),n.imgCount--,!n.imgCount&&pt&&!pt.hasLoaded&&pt.onload()},src:nt}),this.imgCount++)}return N}clipRect(j,s,T,z){const I=S()+"-",V=this.createElement("clipPath").attr({id:I}).add(this.defs);return j=this.rect(j,s,T,z,0).add(V),j.id=I,j.clipPath=V,j.count=0,j}text(j,s,T,z){const I={};return z&&(this.allowHTML||!this.forExport)?this.html(j,s,T):(I.x=Math.round(s||0),T&&(I.y=Math.round(T)),p(j)&&(I.text=j),j=this.createElement("text").attr(I),(!z||this.forExport&&!this.allowHTML)&&(j.xSetter=function(V,n,g){const m=g.getElementsByTagName("tspan"),W=g.getAttribute(n);for(let F=0,N;F<m.length;F++)N=m[F],N.getAttribute(n)===W&&N.setAttribute(n,V);g.setAttribute(n,V)}),j)}fontMetrics(j){j=r(Z.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,T){let z=j;return s&&T&&(z=Math.max(z*Math.cos(s*x),4)),{x:-j/3*Math.sin(s*x),y:z}}pathToSegments(j){const s=[],T=[],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++)a(T[0])&&t(j[I])&&T.length===z[T[0].toUpperCase()]&&j.splice(I,0,T[0].replace("M","L").replace("m","l")),typeof j[I]=="string"&&(T.length&&s.push(T.slice(0)),T.length=0),T.push(j[I]);return s.push(T.slice(0)),s}label(j,s,T,z,I,V,n,g,m){return new X(this,j,s,T,z,I,V,n,g,m)}alignElements(){this.alignedObjects.forEach(j=>j.align())}}return d(K.prototype,{Element:Z,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Y,draw:y}),q.registerRendererType("svg",K,!0),K}),ot(A,"Core/Renderer/HTML/HTMLElement.js",[A["Core/Globals.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(B,P,G){const{isFirefox:q,isMS:Z,isWebKit:X,win:Y}=B,{css:O,defined:H,extend:R,pick:x,pInt:b}=G,E=[];class L extends P{static compose(y){if(G.pushUnique(E,y)){const v=L.prototype,f=y.prototype;f.getSpanCorrection=v.getSpanCorrection,f.htmlCss=v.htmlCss,f.htmlGetBBox=v.htmlGetBBox,f.htmlUpdateTransform=v.htmlUpdateTransform,f.setSpanRotation=v.setSpanRotation}return y}getSpanCorrection(y,v,f){this.xCorr=-y*f,this.yCorr=-v}htmlCss(y){const v=this.element.tagName==="SPAN"&&y&&"width"in y,f=x(v&&y.width,void 0);let C;return v&&(delete y.width,this.textWidth=f,C=!0),y&&y.textOverflow==="ellipsis"&&(y.whiteSpace="nowrap",y.overflow="hidden"),this.styles=R(this.styles,y),O(this.element,y),C&&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,f=this.x||0,C=this.y||0,k=this.textAlign||"left",w={left:0,center:.5,right:1}[k],o=this.styles,l=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:l||"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:l||"normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e,d!==this.cTT&&(y=y.fontMetrics(v).b,!H(o)||o===(this.oldRotation||0)&&k===this.oldAlign||this.setSpanRotation(o,w,y),this.getSpanCorrection(!H(o)&&this.textPxLength||v.offsetWidth,y,w,o,k)),O(v,{left:f+(this.xCorr||0)+"px",top:C+(this.yCorr||0)+"px"}),this.cTT=d,this.oldRotation=o,this.oldAlign=k}}else this.alignOnAdd=!0}setSpanRotation(y,v,f){const C={},k=Z&&!/Edge/.test(Y.navigator.userAgent)?"-ms-transform":X?"-webkit-transform":q?"MozTransform":Y.opera?"-o-transform":void 0;k&&(C[k]=C.transform="rotate("+y+"deg)",C[k+(q?"Origin":"-origin")]=C.transformOrigin=100*v+"% "+f+"px",O(this.element,C))}}return L}),ot(A,"Core/Renderer/HTML/HTMLRenderer.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Utilities.js"]],function(B,P,G,q){const{attr:Z,createElement:X,extend:Y,pick:O}=q,H=[];class R extends G{static compose(b){return q.pushUnique(H,b)&&(b.prototype.html=R.prototype.html),b}html(b,E,L){const c=this.createElement("span"),y=c.element,v=c.renderer,f=function(C,k){["opacity","visibility"].forEach(function(w){C[w+"Setter"]=function(o,l,p){const h=C.div?C.div.style:k;P.prototype[w+"Setter"].call(this,o,l,p),h&&(h[l]=o)}}),C.addedSetters=!0};return c.textSetter=function(C){C!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,B.setElementHTML(this.element,O(C,"")),this.textStr=C,c.doTransform=!0)},f(c,c.element.style),c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(C,k){k==="align"?c.alignValue=c.textAlign=C:c[k]=C,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(C){const k=v.box.parentNode,w=[];let o;if(this.parentGroup=C){if(o=C.div,!o){for(;C;)w.push(C),C=C.parentGroup;w.reverse().forEach(function(l){function p(t,i){l[i]=t,i==="translateX"?e.left=t+"px":e.top=t+"px",l.doTransform=!0}const h=Z(l.element,"class"),d=l.styles||{};o=l.div=l.div||X("div",h?{className:h}:void 0,{position:"absolute",left:(l.translateX||0)+"px",top:(l.translateY||0)+"px",display:l.display,opacity:l.opacity,visibility:l.visibility},o||k);const e=o.style;Y(l,{classSetter:function(t){return function(i){this.element.setAttribute("class",i),t.className=i}}(o),css:function(t){return c.css.call(l,t),["cursor","pointerEvents"].forEach(i=>{t[i]&&(e[i]=t[i])}),l},on:function(){return w[0].div&&c.on.apply({element:w[0].div,onEvents:l.onEvents},arguments),l},translateXSetter:p,translateYSetter:p}),l.addedSetters||f(l),l.css(d)})}}else o=k;return o.appendChild(y),c.added=!0,c.alignOnAdd&&c.htmlUpdateTransform(),c},c}}return R}),ot(A,"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}),ot(A,"Core/Foundation.js",[A["Core/Utilities.js"]],function(B){const{addEvent:P,isFunction:G,objectEach:q,removeEvent:Z}=B;var X;return function(Y){Y.registerEventOptions=function(O,H){O.eventOptions=O.eventOptions||{},q(H.events,function(R,x){O.eventOptions[x]!==R&&(O.eventOptions[x]&&(Z(O,x,O.eventOptions[x]),delete O.eventOptions[x]),G(R)&&(O.eventOptions[x]=R,P(O,x,R,{order:0})))})}}(X||(X={})),X}),ot(A,"Core/Axis/Tick.js",[A["Core/Templating.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P,G){const{deg2rad:q}=P,{clamp:Z,correctFloat:X,defined:Y,destroyObjectProperties:O,extend:H,fireEvent:R,isNumber:x,merge:b,objectEach:E,pick:L}=G;class c{constructor(v,f,C,k,w){this.isNewLabel=this.isNew=!0,this.axis=v,this.pos=f,this.type=C||"",this.parameters=w||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,R(this,"init"),C||k||this.addLabel()}addLabel(){const v=this,f=v.axis;var C=f.options;const k=f.chart;var w=f.categories;const o=f.logarithmic,l=f.names,p=v.pos,h=L(v.options&&v.options.labels,C.labels);var d=f.tickPositions;const e=p===d[0],t=p===d[d.length-1],i=(!h.step||h.step===1)&&f.tickInterval===1;d=d.info;let a=v.label,u,_,r;w=this.parameters.category||(w?L(w[p],l[p],p):p),o&&x(w)&&(w=X(o.lin2log(w))),f.dateTime&&(d?(_=k.time.resolveDTLFormat(C.dateTimeLabelFormats[!C.grid&&d.higherRanks[p]||d.unitName]),u=_.main):x(w)&&(u=f.dateTime.getXDateFormat(w,C.dateTimeLabelFormats||{}))),v.isFirst=e,v.isLast=t;const S={axis:f,chart:k,dateTimeLabelFormat:u,isFirst:e,isLast:t,pos:p,tick:v,tickPositionInfo:d,value:w};R(this,"labelFormat",S);const $=rt=>h.formatter?h.formatter.call(rt,rt):h.format?(rt.text=f.defaultLabelFormatter.call(rt,rt),B.format(h.format,rt,k)):f.defaultLabelFormatter.call(rt,rt);C=$.call(S,S);const K=_&&_.list;v.shortenLabel=K?function(){for(r=0;r<K.length;r++)if(H(S,{dateTimeLabelFormat:K[r]}),a.attr({text:$.call(S,S)}),a.getBBox().width<f.getSlotWidth(v)-2*h.padding)return;a.attr({text:""})}:void 0,i&&f._addedPlotLB&&v.moveLabel(C,h),Y(a)||v.movedLabel?a&&a.textStr!==C&&!i&&(!a.textWidth||h.style.width||a.styles.width||a.css({width:null}),a.attr({text:C}),a.textPxLength=a.getBBox().width):(v.label=a=v.createLabel({x:0,y:0},C,h),v.rotation=0)}createLabel(v,f,C){const k=this.axis,w=k.chart;return(v=Y(f)&&C.enabled?w.renderer.text(f,v.x,v.y,C.useHTML).add(k.labelGroup):null)&&(w.styledMode||v.css(b(C.style)),v.textPxLength=v.getBBox().width),v}destroy(){O(this,this.axis)}getPosition(v,f,C,k){const w=this.axis,o=w.chart,l=k&&o.oldChartHeight||o.chartHeight;return v={x:v?X(w.translate(f+C,void 0,void 0,k)+w.transB):w.left+w.offset+(w.opposite?(k&&o.oldChartWidth||o.chartWidth)-w.right-w.left:0),y:v?l-w.bottom+w.offset-(w.opposite?w.height:0):X(l-w.translate(f+C,void 0,void 0,k)-w.transB)},v.y=Z(v.y,-1e5,1e5),R(this,"afterGetPosition",{pos:v}),v}getLabelPosition(v,f,C,k,w,o,l,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},a=k||h.reserveSpaceDefault?0:-h.labelOffset*(h.labelAlign==="center"?.5:1),u=w.distance,_={};return C=h.side===0?C.rotation?-u:-C.getBBox().height:h.side===2?i.y+u:Math.cos(C.rotation*q)*(i.y-C.getBBox(!1,0).height/2),Y(w.y)&&(C=h.side===0&&h.horiz?w.y+C:w.y),v=v+L(w.x,[0,1,0,-1][h.side]*u)+a+i.x-(o&&k?o*d*(e?-1:1):0),f=f+C-(o&&!k?o*d*(e?1:-1):0),t&&(k=l/(p||1)%t,h.opposite&&(k=t-k-1),f+=h.labelOffset/t*k),_.x=v,_.y=Math.round(f),R(this,"afterGetLabelPosition",{pos:_,tickmarkOffset:o,index:l}),_}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(v,f,C,k,w,o){return o.crispLine([["M",v,f],["L",v+(w?0:-C),f+(w?C:0)]],k)}handleOverflow(v){const f=this.axis,C=f.options.labels,k=v.x;var w=f.chart.chartWidth,o=f.chart.spacing;const l=L(f.labelLeft,Math.min(f.pos,o[3]));o=L(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,w-o[1]));const p=this.label,h=this.rotation,d={left:0,center:.5,right:1}[f.labelAlign||p.attr("align")],e=p.getBBox().width,t=f.getSlotWidth(this),i={};let a=t,u=1,_;h||C.overflow!=="justify"?0>h&&k-d*e<l?_=Math.round(k/Math.cos(h*q)-l):0<h&&k+d*e>o&&(_=Math.round((w-k)/Math.cos(h*q))):(w=k+(1-d)*e,k-d*e<l?a=v.x+a*(1-d)-l:w>o&&(a=o-v.x+a*d,u=-1),a=Math.min(t,a),a<t&&f.labelAlign==="center"&&(v.x+=u*(t-a-d*(t-Math.min(e,a)))),(e>a||f.autoRotation&&(p.styles||{}).width)&&(_=a)),_&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(_)+"px",(C.style||{}).textOverflow||(i.textOverflow="ellipsis"),p.css(i)))}moveLabel(v,f){const C=this;var k=C.label;const w=C.axis;let o=!1;k&&k.textStr===v?(C.movedLabel=k,o=!0,delete C.label):E(w.ticks,function(l){o||l.isNew||l===C||!l.label||l.label.textStr!==v||(C.movedLabel=l.label,o=!0,l.labelPos=C.movedLabel.xy,delete l.label)}),o||!C.labelPos&&!k||(k=C.labelPos||k.xy,C.movedLabel=C.createLabel(k,v,f),C.movedLabel&&C.movedLabel.attr({opacity:0}))}render(v,f,C){var k=this.axis,w=k.horiz,o=this.pos,l=L(this.tickmarkOffset,k.tickmarkOffset);o=this.getPosition(w,o,l,f),l=o.x;const p=o.y;k=w&&l===k.pos+k.len||!w&&p===k.pos?-1:1,w=L(C,this.label&&this.label.newOpacity,1),C=L(C,1),this.isActive=!0,this.renderGridLine(f,C,k),this.renderMark(o,C,k),this.renderLabel(o,f,w,v),this.isNew=!1,R(this,"afterRender")}renderGridLine(v,f,C){const k=this.axis,w=k.options,o={},l=this.pos,p=this.type,h=L(this.tickmarkOffset,k.tickmarkOffset),d=k.chart.renderer;let e=this.gridLine,t=w.gridLineWidth,i=w.gridLineColor,a=w.gridLineDashStyle;this.type==="minor"&&(t=w.minorGridLineWidth,i=w.minorGridLineColor,a=w.minorGridLineDashStyle),e||(k.chart.styledMode||(o.stroke=i,o["stroke-width"]=t||0,o.dashstyle=a),p||(o.zIndex=1),v&&(f=0),this.gridLine=e=d.path().attr(o).addClass("highcharts-"+(p?p+"-":"")+"grid-line").add(k.gridGroup)),e&&(C=k.getPlotLinePath({value:l+h,lineWidth:e.strokeWidth()*C,force:"pass",old:v,acrossPanes:!1}))&&e[v||this.isNew?"attr":"animate"]({d:C,opacity:f})}renderMark(v,f,C){const k=this.axis;var w=k.options;const o=k.chart.renderer,l=this.type,p=k.tickSize(l?l+"Tick":"tick"),h=v.x;v=v.y;const d=L(w[l!=="minor"?"tickWidth":"minorTickWidth"],!l&&k.isXAxis?1:0);w=w[l!=="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-"+(l?l+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||e.attr({stroke:w,"stroke-width":d})),e[t?"attr":"animate"]({d:this.getMarkPath(h,v,p[0],e.strokeWidth()*C,k.horiz,o),opacity:f}))}renderLabel(v,f,C,k){var w=this.axis;const o=w.horiz,l=w.options,p=this.label,h=l.labels,d=h.step;w=L(this.tickmarkOffset,w.tickmarkOffset);const e=v.x;v=v.y;let t=!0;p&&x(e)&&(p.xy=v=this.getLabelPosition(e,v,p,o,h,w,k,d),this.isFirst&&!this.isLast&&!l.showFirstLabel||this.isLast&&!this.isFirst&&!l.showLastLabel?t=!1:!o||h.step||h.rotation||f||C===0||this.handleOverflow(v),d&&k%d&&(t=!1),t&&x(v.y)?(v.opacity=C,p[this.isNewLabel?"attr":"animate"](v).show(!0),this.isNewLabel=!1):(p.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const v=this.label,f=this.axis;v&&!this.isNew&&(v.animate({opacity:0},void 0,v.destroy),delete this.label),f.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}return c}),ot(A,"Core/Axis/Axis.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/AxisDefaults.js"],A["Core/Color/Color.js"],A["Core/Defaults.js"],A["Core/Foundation.js"],A["Core/Globals.js"],A["Core/Axis/Tick.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z,X,Y,O){const{animObject:H}=B,{defaultOptions:R}=q,{registerEventOptions:x}=Z,{deg2rad:b}=X,{arrayMax:E,arrayMin:L,clamp:c,correctFloat:y,defined:v,destroyObjectProperties:f,erase:C,error:k,extend:w,fireEvent:o,getClosestDistance:l,insertItem:p,isArray:h,isNumber:d,isString:e,merge:t,normalizeTickInterval:i,objectEach:a,pick:u,relativeLength:_,removeEvent:r,splat:S,syncTimeout:$}=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,T,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,T,z)}init(s,T,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:T}),this.opposite=u(T.opposite,this.opposite),this.side=u(T.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(T),z=this.options;const V=z.labels,n=z.type;this.userOptions=T,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,T=u(z.crosshair,S(s.options.tooltip.crosshairs)[I?0:1]),this.crosshair=T===!0?{}:T,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 T=this.axis;({numberFormatter:s}=this.chart);const z=d(this.value)?this.value:NaN,I=T.chart.time,V=this.dateTimeLabelFormat;var n=R.lang;const g=n.numericSymbols;n=n.numericSymbolMagnitude||1e3;const m=T.logarithmic?Math.abs(z):T.tickInterval;let W=g&&g.length,F;if(T.categories)F=`${this.value}`;else if(V)F=I.dateFormat(V,z);else if(W&&1e3<=m)for(;W--&&typeof F>"u";)T=Math.pow(n,W+1),m>=T&&10*z%T===0&&g[W]!==null&&z!==0&&(F=s(z/T,-1)+g[W]);return typeof F>"u"&&(F=1e4<=Math.abs(z)?s(z,-1):s(z,-1,void 0,"")),F}getSeriesExtremes(){const s=this,T=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||!T.options.chart.ignoreHiddenSeries){var V=I.options;let n=V.threshold,g,m;s.hasVisibleSeries=!0,s.positiveValuesOnly&&0>=n&&(n=null),s.isXAxis?(V=I.xData)&&V.length&&(V=s.logarithmic?V.filter(W=>0<W):V,z=I.getXExtremes(V),g=z.min,m=z.max,d(g)||g instanceof Date||(V=V.filter(d),z=I.getXExtremes(V),g=z.min,m=z.max),V.length&&(s.dataMin=Math.min(u(s.dataMin,g),g),s.dataMax=Math.max(u(s.dataMax,m),m))):(I=I.applyExtremes(),d(I.dataMin)&&(g=I.dataMin,s.dataMin=Math.min(u(s.dataMin,g),g)),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,T,z,I,V,n){const g=this.linkedParent||this,m=I&&g.old?g.old.min:g.min;if(!d(m))return NaN;const W=g.minPixelPadding;V=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&V)&&g.lin2val;let F=1,N=0;return I=I&&g.old?g.old.transA:g.transA,I||(I=g.transA),z&&(F*=-1,N=g.len),g.reversed&&(F*=-1,N-=F*(g.sector||g.len)),T?(n=(s*F+N-W)/I+m,V&&(n=g.lin2val(n))):(V&&(s=g.val2lin(s)),s=F*(s-m)*I,n=(g.isRadial?s:y(s))+N+F*W+(d(n)?I*n:0)),n}toPixels(s,T){return this.translate(s,!1,!this.horiz,void 0,!0)+(T?0:this.pos)}toValue(s,T){return this.translate(s-(T?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(s){function T(U,tt,dt){return at!=="pass"&&(U<tt||U>dt)&&(at?U=c(U,tt,dt):Q=!0),U}const z=this,I=z.chart,V=z.left,n=z.top,g=s.old,m=s.value,W=s.lineWidth,F=g&&I.oldChartHeight||I.chartHeight,N=g&&I.oldChartWidth||I.chartWidth,et=z.transB;let nt=s.translatedValue,at=s.force,ht,pt,D,M,Q;return s={value:m,lineWidth:W,old:g,force:at,acrossPanes:s.acrossPanes,translatedValue:nt},o(this,"getPlotLinePath",s,function(U){nt=u(nt,z.translate(m,void 0,void 0,g)),nt=c(nt,-1e5,1e5),ht=D=Math.round(nt+et),pt=M=Math.round(F-nt-et),d(nt)?z.horiz?(pt=n,M=F-z.bottom,ht=D=T(ht,V,V+z.width)):(ht=V,D=N-z.right,pt=M=T(pt,n,n+z.height)):(Q=!0,at=!1),U.path=Q&&!at?null:I.renderer.crispLine([["M",ht,pt],["L",D,M]],W||1)}),s.path}getLinearTickPositions(s,T,z){const I=y(Math.floor(T/s)*s);z=y(Math.ceil(z/s)*s);const V=[];let n,g;if(y(I+s)===I&&(g=20),this.single)return[T];for(T=I;T<=z&&(V.push(T),T=y(T+s,g),T!==n);)n=T;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 T=this.tickPositions,z=this.minorTickInterval;var I=this.pointRangePadding||0;const V=this.min-I;I=this.max+I;const n=I-V;let g=[];if(n&&n/z<this.len/3){const m=this.logarithmic;if(m)this.paddedTicks.forEach(function(W,F,N){F&&g.push.apply(g,m.getLogTickPositions(z,N[F-1],N[F],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")g=g.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(z),V,I,s.startOfWeek));else for(s=V+(T[0]-V)%z;s<=I&&s!==g[0];s+=z)g.push(s)}return g.length!==0&&this.trimTicks(g),g}adjustForMinRange(){const s=this.options,T=this.logarithmic;let z=this.min;var I=this.max;let V,n;if(this.isXAxis&&typeof this.minRange>"u"&&!T)if(v(s.min)||v(s.max)||v(s.floor)||v(s.ceiling))this.minRange=null;else{var g=l(this.series.map(m=>{var W;return(m.xIncrement?(W=m.xData)===null||W===void 0?void 0:W.slice(0,2):m.xData)||[]}))||0;this.minRange=Math.min(5*g,this.dataMax-this.dataMin)}I-z<this.minRange&&(g=this.dataMax-this.dataMin>=this.minRange,n=this.minRange,I=(n-I+z)/2,V=[z-I,u(s.min,z-I)],g&&(V[2]=T?T.log2lin(this.dataMin):this.dataMin),z=E(V),I=[z+n,u(s.max,z+n)],g&&(I[2]=T?T.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,T;if(this.categories)T=1;else{const z=[];this.series.forEach(function(I){var V;const n=I.closestPointRange,g=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)&&g&&(T=v(T)?Math.min(T,n):n)}),z.length&&(z.sort((I,V)=>I-V),s=l([z]))}return s&&T?Math.min(s,T):s||T}nameToX(s){const T=h(this.options.categories),z=T?this.categories:this.names;let I=s.options.x,V;return s.series.requireSorting=!1,v(I)||(I=this.options.uniqueNames&&z?T?z.indexOf(s.name):u(z.keys[s.name],-1):s.series.autoIncrement()),I===-1?!T&&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,T=this.names;0<T.length&&(Object.keys(T.keys).forEach(function(z){delete T.keys[z]}),T.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,T=s.max-s.min;var z=s.linkedParent;const I=!!s.categories,V=s.isXAxis;let n=s.axisPointRange||0,g,m=0,W=0,F=s.transA;(V||I||n)&&(g=s.getClosest(),z?(m=z.minPointOffset,W=z.pointRangePadding):s.series.forEach(function(N){const et=I?1:V?u(N.options.pointRange,g,0):s.axisPointRange||0,nt=N.options.pointPlacement;n=Math.max(n,et),(!s.single||I)&&(N=N.is("xrange")?!V:V,m=Math.max(m,N&&e(nt)?0:et/2),W=Math.max(W,N&&nt==="on"?0:et))}),z=s.ordinal&&s.ordinal.slope&&g?s.ordinal.slope/g:1,s.minPointOffset=m*=z,s.pointRangePadding=W*=z,s.pointRange=Math.min(n,s.single&&I?1:T),V&&g&&(s.closestPointRange=g)),s.translationSlope=s.transA=F=s.staticScale||s.len/(T+W||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 T=this.chart;const z=this.logarithmic,I=this.options,V=this.isXAxis,n=this.isLinked,g=I.tickPixelInterval,m=this.categories,W=this.softThreshold;let F=I.maxPadding,N=I.minPadding,et=d(I.tickInterval)&&0<=I.tickInterval?I.tickInterval:void 0,nt=d(this.threshold)?this.threshold:null,at,ht,pt;if(this.dateTime||m||n||this.getTickAmount(),ht=u(this.userMin,I.min),pt=u(this.userMax,I.max),n){this.linkedParent=T[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,T)}else W&&v(nt)&&(this.dataMin>=nt?(D=nt,N=0):this.dataMax<=nt&&(at=nt,F=0)),this.min=u(ht,D,this.dataMin),this.max=u(pt,at,this.dataMax);if(z&&(this.positiveValuesOnly&&!s&&0>=Math.min(this.min,u(this.dataMin,this.min))&&k(10,1,T),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)&&(T=this.max-this.min)&&(!v(ht)&&N&&(this.min-=T*N),!v(pt)&&F&&(this.max+=T*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)),W&&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&&!et&&g===this.linkedParent.options.tickPixelInterval?et=this.linkedParent.tickInterval:u(et,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(this.max-this.min)*g/Math.max(this.len,g)),V&&!s){const M=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(M)}),o(this,"postProcessData",{hasExtremesChanged:M})}this.setAxisTranslation(),o(this,"initialAxisTranslation"),this.pointRange&&!et&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),s=u(I.minTickInterval,this.dateTime&&!this.series.some(M=>M.noSharedTooltip)?this.closestPointRange:0),!et&&this.tickInterval<s&&(this.tickInterval=s),this.dateTime||this.logarithmic||et||(this.tickInterval=K(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var s=this.options;const T=s.tickPositions,z=s.tickPositioner;var I=this.getMinorTickInterval(),V=this.hasVerticalPanning(),n=this.coll==="colorAxis";const g=(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),T)n=T.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,g,V),!this.isLinked&&d(this.min)&&d(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some(W=>W.is("heatmap")&&W.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),T||m||this.adjustTickAmount()),o(this,"afterSetTickPositions")}trimTicks(s,T,z){const I=s[0],V=s[s.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(o(this,"trimTicks"),!this.isLinked){if(T&&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,T=[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 g=W=>{const{horiz:F,options:N}=W;return[F?N.left:N.top,N.width,N.height,N.pane].join()},m=g(this);this.chart[this.coll].forEach(function(W){const{series:F}=W;F.length&&F.some(N=>N.visible)&&W!==s&&g(W)===m&&(n=!0,T.push(W))})}if(n&&I){T.forEach(m=>{m=m.getThresholdAlignment(s),d(m)&&V.push(m)});const g=1<V.length?V.reduce((m,W)=>m+W,0)/V.length:void 0;T.forEach(m=>{m.thresholdAlignment=g})}return n}getThresholdAlignment(s){if((!d(this.dataMin)||this!==s&&this.series.some(T=>T.isDirty||T.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,T=s.tickPixelInterval;let z=s.tickAmount;!v(s.tickInterval)&&!z&&this.len<T&&!this.isRadial&&!this.logarithmic&&s.startOnTick&&s.endOnTick&&(z=2),!z&&this.alignToOthers()&&(z=Math.ceil(this.len/T)+1),4>z&&(this.finalTickAmt=z,z=5),this.tickAmount=z}adjustTickAmount(){const s=this,{finalTickAmt:T,max:z,min:I,options:V,tickPositions:n,tickAmount:g,thresholdAlignment:m}=s,W=n&&n.length;var F=u(s.threshold,s.softThreshold?0:null),N=s.tickInterval;let et;if(d(m)&&(et=.5>m?Math.ceil(m*(g-1)):Math.floor(m*(g-1)),V.reversed&&(et=g-1-et)),s.hasData()&&d(I)&&d(z)){const nt=()=>{s.transA*=(W-1)/(g-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(et)&&d(s.threshold)){for(;n[et]!==F||n.length!==g||n[0]>I||n[n.length-1]<z;){for(n.length=0,n.push(s.threshold);n.length<g;)n[et]===void 0||n[et]>s.threshold?n.unshift(y(n[0]-N)):n.push(y(n[n.length-1]+N));if(N>8*s.tickInterval)break;N*=2}nt()}else if(W<g){for(;n.length<g;)n.length%2||I===F?n.push(y(n[n.length-1]+N)):n.unshift(y(n[0]-N));nt()}if(v(T)){for(N=F=n.length;N--;)(T===3&&N%2===1||2>=T&&0<N&&N<F-1)&&n.splice(N,1);s.finalTickAmt=void 0}}}setScale(){let s=!1,T=!1;this.series.forEach(function(I){s=s||I.isDirtyData||I.isDirty,T=T||I.xAxis&&I.xAxis.isDirty||!1}),this.setAxisSize();const z=this.len!==(this.old&&this.old.len);z||s||T||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,T,z,I,V){const n=this,g=n.chart;z=u(z,!0),n.series.forEach(function(m){delete m.kdTree}),V=w(V,{min:s,max:T}),o(n,"setExtremes",V,function(){n.userMin=s,n.userMax=T,n.eventArgs=V,z&&g.redraw(I)})}zoom(s,T){const z=this,I=this.dataMin,V=this.dataMax,n=this.options,g=Math.min(I,u(n.min,I)),m=Math.max(V,u(n.max,V));return s={newMin:s,newMax:T},o(this,"zoom",s,function(W){let F=W.newMin,N=W.newMax;(F!==z.min||N!==z.max)&&(z.allowZoomOutside||(v(I)&&(F<g&&(F=g),F>m&&(F=m)),v(V)&&(N<g&&(N=g),N>m&&(N=m))),z.displayBtn=typeof F<"u"||typeof N<"u",z.setExtremes(F,N,!1,void 0,{trigger:"zoom"})),W.zoomed=!0}),s.zoomed}setAxisSize(){const s=this.chart;var T=this.options;const z=T.offsets||[0,0,0,0],I=this.horiz,V=this.width=Math.round(_(u(T.width,s.plotWidth-z[3]+z[1]),s.plotWidth)),n=this.height=Math.round(_(u(T.height,s.plotHeight-z[0]+z[2]),s.plotHeight)),g=this.top=Math.round(_(u(T.top,s.plotTop+z[0]),s.plotHeight,s.plotTop));T=this.left=Math.round(_(u(T.left,s.plotLeft+z[3]),s.plotWidth,s.plotLeft)),this.bottom=s.chartHeight-n-g,this.right=s.chartWidth-V-T,this.len=Math.max(I?V:n,0),this.pos=I?T:g}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 T=this.logarithmic;const z=T?T.lin2log(this.min):this.min;return T=T?T.lin2log(this.max):this.max,s===null||s===-1/0?s=z:s===1/0?s=T:z>s?s=z:T<s&&(s=T),this.translate(s,0,1,0,1)}autoLabelAlign(s){const T=(u(s,0)-90*this.side+720)%360;return s={align:"center"},o(this,"autoLabelAlign",s,function(z){15<T&&165>T?z.align="right":195<T&&345>T&&(z.align="left")}),s.align}tickSize(s){const T=this.options,z=u(T[s==="tick"?"tickWidth":"minorTickWidth"],s==="tick"&&this.isXAxis&&!this.categories?1:0);let I=T[s==="tick"?"tickLength":"minorTickLength"],V;return z&&I&&(T[s+"Position"]==="inside"&&(I=-I),V=[I,z]),s={tickSize:V},o(this,"afterTickSize",s),s.tickSize}labelMetrics(){const s=this.chart.renderer;var T=this.ticks;return T=T[Object.keys(T)[0]]||{},this.chart.renderer.fontMetrics(T.label||T.movedLabel||s.box)}unsquish(){const s=this.options.labels;var T=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,g=Math.max(this.max-this.min,0),m=function(nt){let at=nt/(I||1);return at=1<at?Math.ceil(at):1,at*z>g&&nt!==1/0&&I!==1/0&&g&&(at=Math.ceil(g/z)),y(at*z)};let W=z,F,N=Number.MAX_VALUE,et;if(T){if(s.staggerLines||(d(V)?et=[V]:I<s.autoRotationLimit&&(et=s.autoRotation)),et){let nt;for(const at of et)(at===V||at&&-90<=at&&90>=at)&&(T=m(Math.abs(n/Math.sin(b*at))),nt=T+Math.abs(at/360),nt<N&&(N=nt,F=at,W=T))}}else W=m(n);return this.autoRotation=et,this.labelRotation=u(F,d(V)?V:0),s.step?z:W}getSlotWidth(s){const T=this.chart,z=this.horiz,I=this.options.labels,V=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=T.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-T.spacing[3]}return .33*T.chartWidth}renderUnsquish(){const s=this.chart,T=s.renderer,z=this.tickPositions,I=this.ticks,V=this.options.labels,n=V.style,g=this.horiz,m=this.getSlotWidth();var W=Math.max(1,Math.round(m-2*V.padding));const F={},N=this.labelMetrics(),et=n.textOverflow;let nt,at,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>W&&ht>N.h?F.rotation=this.labelRotation:this.labelRotation=0;else if(m&&(nt=W,!et))for(at="clip",W=z.length;!g&&W--;){var pt=z[W];(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-(N.h-N.f)&&(pt.specificTextOverflow="ellipsis"))}F.rotation&&(nt=ht>.5*s.chartHeight?.33*s.chartHeight:ht,et||(at="ellipsis")),(this.labelAlign=V.align||this.autoLabelAlign(this.labelRotation))&&(F.align=this.labelAlign),z.forEach(function(D){const M=(D=I[D])&&D.label,Q=n.width,U={};M&&(M.attr(F),D.shortenLabel?D.shortenLabel():nt&&!Q&&n.whiteSpace!=="nowrap"&&(nt<M.textPxLength||M.element.tagName==="SPAN")?(U.width=nt+"px",et||(U.textOverflow=M.specificTextOverflow||at),M.css(U)):M.styles&&M.styles.width&&!U.width&&!Q&&M.css({width:null}),delete M.specificTextOverflow,D.rotation=F.rotation)},this),this.tickRotCorr=T.rotCorr(N.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 T=this.chart.renderer,z=this.horiz,I=this.opposite,V=this.options.title,n=this.chart.styledMode;let g;this.axisTitle||((g=V.textAlign)||(g=(z?{low:"left",middle:"center",high:"right"}:{low:I?"right":"left",middle:"center",high:I?"left":"right"})[V.align]),this.axisTitle=T.text(V.text||"",0,0,V.useHTML).attr({zIndex:7,rotation:V.rotation,align:g}).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 T=this.ticks;T[s]?T[s].addLabel():T[s]=new Y(this,s)}getOffset(){const s=this,{chart:T,horiz:z,options:I,side:V,ticks:n,tickPositions:g,coll:m,axisParent:W}=s,F=T.renderer,N=T.inverted&&!s.isZAxis?[1,0,3,2][V]:V;var et=s.hasData();const nt=I.title;var at=I.labels;const ht=d(I.crossing);var pt=T.axisOffset;const D=T.clipOffset,M=[-1,1,1,-1][V],Q=I.className;let U,tt=0,dt;var ct=0;let xt=0;if(s.showAxis=U=et||I.showEmpty,s.staggerLines=s.horiz&&at.staggerLines||void 0,!s.axisGroup){const vt=(gt,mt,Ct)=>F.g(gt).attr({zIndex:Ct}).addClass(`highcharts-${m.toLowerCase()}${mt} `+(this.isRadial?`highcharts-radial-axis${mt} `:"")+(Q||"")).add(W);s.gridGroup=vt("grid","-grid",I.gridZIndex),s.axisGroup=vt("axis","",I.zIndex),s.labelGroup=vt("axis-labels","-labels",at.zIndex)}et||s.isLinked?(g.forEach(function(vt){s.generateTick(vt)}),s.renderUnsquish(),s.reserveSpaceDefault=V===0||V===2||{1:"left",3:"right"}[V]===s.labelAlign,u(at.reserveSpace,ht?!1:null,s.labelAlign==="center"?!0:null,s.reserveSpaceDefault)&&g.forEach(function(vt){xt=Math.max(n[vt].getLabelSize(),xt)}),s.staggerLines&&(xt*=s.staggerLines),s.labelOffset=xt*(s.opposite?-1:1)):a(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=tt=s.axisTitle.getBBox()[z?"height":"width"],dt=nt.offset,ct=v(dt)?0:u(nt.margin,z?5:10))),s.renderLine(),s.offset=M*u(I.offset,pt[V]?pt[V]+(I.margin||0):0),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},et=V===0?-s.labelMetrics().h:V===2?s.tickRotCorr.y:0,ct=Math.abs(xt)+ct,xt&&(ct=ct-et+M*(z?u(at.y,s.tickRotCorr.y+M*at.distance):u(at.x,M*at.distance))),s.axisTitleMargin=u(dt,ct),s.getMaxLabelDimensions&&(s.maxLabelDimensions=s.getMaxLabelDimensions(n,g)),m!=="colorAxis"&&(at=this.tickSize("tick"),pt[V]=Math.max(pt[V],(s.axisTitleMargin||0)+tt+M*s.offset,ct,g&&g.length&&at?at[0]+M*s.offset:0),pt=!s.axisLine||I.offset?0:2*Math.floor(s.axisLine.strokeWidth()/2),D[N]=Math.max(D[N],pt)),o(this,"afterGetOffset")}getLinePath(s){const T=this.chart,z=this.opposite;var I=this.offset;const V=this.horiz,n=this.left+(z?this.width:0)+I;return I=T.chartHeight-this.bottom-(z?this.height:0)+I,z&&(s*=-1),T.renderer.crispLine([["M",V?this.left:n,V?I:this.top],["L",V?T.chartWidth-this.right:n,V?I:T.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 T=this.horiz,z=this.left;const I=this.top;var V=this.len;const n=this.options.title,g=T?z:I,m=this.opposite,W=this.offset,F=n.x,N=n.y,et=this.chart.renderer.fontMetrics(s);return s=s?Math.max(s.getBBox(!1,0).height-et.h-1,0):0,V={low:g+(T?0:V),middle:g+V/2,high:g+(T?V:0)}[n.align],z=(T?I+this.height:z)+(T?1:-1)*(m?-1:1)*(this.axisTitleMargin||0)+[-s,s,et.f,-s][this.side],T={x:T?V+F:z+(m?this.width:0)+W+F,y:T?z+N-(m?this.height:0)+W:V+N},o(this,"afterGetTitlePosition",{titlePosition:T}),T}renderMinorTick(s,T){const z=this.minorTicks;z[s]||(z[s]=new Y(this,s,"minor")),T&&z[s].isNew&&z[s].render(null,!0),z[s].render(null,!1,1)}renderTick(s,T,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(T,!0,-1),I[s].render(T))}render(){const s=this,T=s.chart,z=s.logarithmic,I=s.options,V=s.isLinked,n=s.tickPositions,g=s.axisTitle,m=s.ticks,W=s.minorTicks,F=s.alternateBands,N=I.stackLabels,et=I.alternateGridColor;var nt=I.crossing;const at=s.tickmarkOffset,ht=s.axisLine,pt=s.showAxis,D=H(T.renderer.globalAnimation);let M,Q;if(s.labelEdge.length=0,s.overlap=!1,[m,W,F].forEach(function(U){a(U,function(tt){tt.isActive=!1})}),d(nt)){const U=this.isXAxis?T.yAxis[0]:T.xAxis[0],tt=[1,-1,-1,1][this.side];U&&(nt=U.toPixels(nt,!0),s.horiz&&(nt=U.len-nt),s.offset=tt*nt)}if(s.hasData()||V){const U=s.chart.hasRendered&&s.old&&d(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(tt){s.renderMinorTick(tt,U)}),n.length&&(n.forEach(function(tt,dt){s.renderTick(tt,dt,U)}),at&&(s.min===0||s.single)&&(m[-1]||(m[-1]=new Y(s,-1,null,!0)),m[-1].render(-1))),et&&n.forEach(function(tt,dt){Q=typeof n[dt+1]<"u"?n[dt+1]+at:s.max-at,dt%2===0&&tt<s.max&&Q<=s.max+(T.polar?-at:at)&&(F[tt]||(F[tt]=new X.PlotLineOrBand(s)),M=tt+at,F[tt].options={from:z?z.lin2log(M):M,to:z?z.lin2log(Q):Q,color:et,className:"highcharts-alternate-grid"},F[tt].render(),F[tt].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(function(tt){s.addPlotBandOrLine(tt)}))}[m,W,F].forEach(function(U){const tt=[],dt=D.duration;a(U,function(ct,xt){ct.isActive||(ct.render(xt,!1,0),ct.isActive=!1,tt.push(xt))}),$(function(){let ct=tt.length;for(;ct--;)U[tt[ct]]&&!U[tt[ct]].isActive&&(U[tt[ct]].destroy(),delete U[tt[ct]])},U!==F&&T.hasRendered&&dt?dt:0)}),ht&&(ht[ht.isPlaced?"animate":"attr"]({d:this.getLinePath(ht.strokeWidth())}),ht.isPlaced=!0,ht[pt?"show":"hide"](pt)),g&&pt&&(g[g.isNew?"attr":"animate"](s.getTitlePosition(g)),g.isNew=!1),N&&N.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 T=this,z=T.plotLinesAndBands,I=this.eventOptions;if(o(this,"destroy",{keepEvents:s}),s||r(T),[T.ticks,T.minorTicks,T.alternateBands].forEach(function(V){f(V)}),z)for(s=z.length;s--;)z[s].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(V){T[V]&&(T[V]=T[V].destroy())});for(const V in T.plotLinesAndBandsGroups)T.plotLinesAndBandsGroups[V]=T.plotLinesAndBandsGroups[V].destroy();a(T,function(V,n){T.getKeepProps().indexOf(n)===-1&&delete T[n]}),this.eventOptions=I}drawCrosshair(s,T){const z=this.crosshair;var I=u(z&&z.snap,!0);const V=this.chart;let n,g=this.cross;if(o(this,"drawCrosshair",{e:s,point:T}),s||(s=this.cross&&this.cross.e),z&&(v(T)||!I)!==!1){if(I?v(T)&&(n=u(this.coll!=="colorAxis"?T.crosshairPos:null,this.isXAxis?T.plotX:this.len-T.plotY)):n=s&&(this.horiz?s.chartX-this.pos:this.len-s.chartY+this.pos),v(n)){var m={value:T&&(this.isXAxis?T.x:u(T.stackY,T.y)),translatedValue:n};V.polar&&w(m,{isCrosshair:!0,chartX:s&&s.chartX,chartY:s&&s.chartY,point:T}),m=this.getPlotLinePath(m)||null}if(!v(m)){this.hideCrosshair();return}I=this.categories&&!this.isRadial,g||(this.cross=g=V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(I?"category ":"thin ")+(z.className||"")).attr({zIndex:u(z.zIndex,2)}).add(),V.styledMode||(g.attr({stroke:z.color||(I?G.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":u(z.width,1)}).css({"pointer-events":"none"}),z.dashStyle&&g.attr({dashstyle:z.dashStyle}))),g.show().attr({d:m}),I&&!z.width&&g.attr({"stroke-width":this.transA}),this.cross.e=s}else this.hideCrosshair();o(this,"afterDrawCrosshair",{e:s,point:T})}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,T){const z=this.chart;s=t(this.userOptions,s),this.destroy(!0),this.init(z,s),z.isDirtyBox=!0,u(T,!0)&&z.redraw()}remove(s){const T=this.chart,z=this.coll,I=this.series;let V=I.length;for(;V--;)I[V]&&I[V].remove(!1);C(T.axes,this),C(T[z]||[],this),T.orderItems(z),this.destroy(),T.isDirtyBox=!0,u(s,!0)&&T.redraw()}setTitle(s,T){this.update({title:s},T)}setCategories(s,T){this.update({categories:s},T)}}return rt.defaultOptions=P.defaultXAxisOptions,rt.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),rt}),ot(A,"Core/Axis/DateTimeAxis.js",[A["Core/Utilities.js"]],function(B){const{addEvent:P,getMagnitude:G,normalizeTickInterval:q,timeUnits:Z}=B;var X;return function(Y){function O(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function H(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",H)),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=Z[L[0]],v=L[1],f;for(f=0;f<c.length&&(L=c[f],y=Z[L[0]],v=L[1],!(c[f+1]&&E<=(y*v[v.length-1]+Z[c[f+1][0]])/2));f++);return y===Z.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}),ot(A,"Core/Axis/LogarithmicAxis.js",[A["Core/Utilities.js"]],function(B){const{addEvent:P,normalizeTickInterval:G,pick:q}=B;var Z;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 H=[];X.compose=function(x){return B.pushUnique(H,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,f=y.options;let C=[];if(c||(this.minorAutoInterval=void 0),.5<=b)b=Math.round(b),C=y.getLinearTickPositions(b,E,L);else if(.08<=b){f=Math.floor(E);let k,w,o,l,p;for(v=.3<b?[1,2,4]:.15<b?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<L+1&&!p;f++)for(w=v.length,k=0;k<w&&!p;k++)o=this.log2lin(this.lin2log(f)*v[k]),o>E&&(!c||l<=L)&&typeof l<"u"&&C.push(l),l>L&&(p=!0),l=o}else E=this.lin2log(E),L=this.lin2log(L),b=c?y.getMinorTickInterval():f.tickInterval,b=q(b==="auto"?null:b,this.minorAutoInterval,f.tickPixelInterval/(c?5:1)*(L-E)/((c?v/y.tickPositions.length:v)||1)),b=G(b),C=y.getLinearTickPositions(b,E,L).map(this.log2lin),c||(this.minorAutoInterval=b/5);return c||(y.tickInterval=b),C}lin2log(b){return Math.pow(10,b)}log2lin(b){return Math.log(b)/Math.LN10}}X.Additions=R}(Z||(Z={})),Z}),ot(A,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[A["Core/Utilities.js"]],function(B){const{erase:P,extend:G,isNumber:q}=B;var Z;return function(X){function Y(y){return this.addPlotBandOrLine(y,"plotBands")}function O(y,v){const f=this.userOptions;let C=new c(this,y);if(this.visible&&(C=C.render()),C){if(this._addedPlotLB||(this._addedPlotLB=!0,(f.plotLines||[]).concat(f.plotBands||[]).forEach(k=>{this.addPlotBandOrLine(k)})),v){const k=f[v]||[];k.push(y),f[v]=k}this.plotLinesAndBands.push(C)}return C}function H(y){return this.addPlotBandOrLine(y,"plotLines")}function R(y,v,f=this.options){const C=this.getPlotLinePath({value:v,force:!0,acrossPanes:f.acrossPanes}),k=[],w=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:f.acrossPanes}),f=1;let o;if(y&&C)for(v&&(o=y.toString()===C.toString(),f=0),v=0;v<y.length;v+=2){const l=y[v],p=y[v+1],h=C[v],d=C[v+1];l[0]!=="M"&&l[0]!=="L"||p[0]!=="M"&&p[0]!=="L"||h[0]!=="M"&&h[0]!=="L"||d[0]!=="M"&&d[0]!=="L"||(w&&h[1]===l[1]?(h[1]+=f,d[1]+=f):w||h[2]!==l[2]||(h[2]+=f,d[2]+=f),k.push(["M",l[1],l[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,f=this.options,C=this.userOptions;if(v){let k=v.length;for(;k--;)v[k].id===y&&v[k].destroy();[f.plotLines||[],C.plotLines||[],f.plotBands||[],C.plotBands||[]].forEach(function(w){for(k=w.length;k--;)(w[k]||{}).id===y&&P(w,w[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:H,addPlotBandOrLine:O,getPlotBandPath:R,removePlotBand:x,removePlotLine:E,removePlotBandOrLine:b}),v}}(Z||(Z={})),Z}),ot(A,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[A["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],A["Core/Utilities.js"]],function(B,P){const{arrayMax:G,arrayMin:q,defined:Z,destroyObjectProperties:X,erase:Y,fireEvent:O,merge:H,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 f=L.options,C=f.color,k=x(f.zIndex,0),w=f.events,o={},l=c.chart.renderer;let p=f.label,h=L.label,d=f.to,e=f.from,t=f.value,i=L.svgElem;var a=[];const u=Z(e)&&Z(d);a=Z(t);const _=!i,r={class:"highcharts-plot-"+(u?"band ":"line ")+(f.className||"")};let S=u?"bands":"lines";if(v&&(e=v.log2lin(e),d=v.log2lin(d),t=v.log2lin(t)),c.chart.styledMode||(a?(r.stroke=C||"#999999",r["stroke-width"]=x(f.width,1),f.dashStyle&&(r.dashstyle=f.dashStyle)):u&&(r.fill=C||"#e6e9ff",f.borderWidth&&(r.stroke=f.borderColor,r["stroke-width"]=f.borderWidth))),o.zIndex=k,S+="-"+k,(v=c.plotLinesAndBandsGroups[S])||(c.plotLinesAndBandsGroups[S]=v=l.g("plot-"+S).attr(o).add()),_&&(L.svgElem=i=l.path().attr(r).add(v)),a)a=c.getPlotLinePath({value:t,lineWidth:i.strokeWidth(),acrossPanes:f.acrossPanes});else if(u)a=c.getPlotBandPath(e,d,f);else return;return!L.eventsAdded&&w&&(R(w,function($,K){i.on(K,function(rt){w[K].apply(L,[rt])})}),L.eventsAdded=!0),(_||!i.d)&&a&&a.length?i.attr({d:a}):i&&(a?(i.show(),i.animate({d:a})):i.d&&(i.hide(),h&&(L.label=h=h.destroy()))),p&&(Z(p.text)||Z(p.formatter))&&a&&a.length&&0<c.width&&0<c.height&&!a.isFlat?(p=H({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,a,u,k)):h&&h.hide(),L}renderLabel(L,c,y,v){const f=this.axis;var C=f.chart.renderer;let k=this.label;k||(this.label=k=C.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(),f.chart.styledMode||k.css(H({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),C=q(c),k.align(L,!1,{x:y,y:C,width:G(v)-y,height:G(c)-C}),k.alignValue&&k.alignValue!=="left"||(L=L.clip?f.width:f.chart.chartWidth,k.css({width:(k.rotation===90?f.height-(k.alignAttr.y-f.top):L-(k.alignAttr.x-f.left))+"px"})),k.show(!0)}getLabelText(L){return Z(L.formatter)?L.formatter.call(this):L.text}destroy(){Y(this.axis.plotLinesAndBands,this),delete this.axis,X(this)}}return b}),ot(A,"Core/Tooltip.js",[A["Core/Templating.js"],A["Core/Globals.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z){const{format:X}=B,{doc:Y,isSafari:O}=P,{distribute:H}=G,{addEvent:R,clamp:x,css:b,discardElement:E,extend:L,fireEvent:c,isArray:y,isNumber:v,isString:f,merge:C,pick:k,splat:w,syncTimeout:o}=Z;class l{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||w(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)),Z.clearTimeout(this.hideTimer),Z.clearTimeout(this.tooltipTimeout)}getAnchor(h,d){var e=this.chart;const t=e.pointer,i=e.inverted,a=e.plotTop;if(e=e.plotLeft,h=w(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-a];else if(h[0].tooltipPos)h=h[0].tooltipPos;else{let u=0,_=0;h.forEach(function(r){(r=r.pos(!0))&&(u+=r[0],_+=r[1])}),u/=h.length,_/=h.length,this.shared&&1<h.length&&d&&(i?u=d.chartX:_=d.chartY),h=[u-e,_-a]}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(f).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 a,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 r=q.getRendererType();this.container=a=P.doc.createElement("div"),a.className="highcharts-tooltip-container",b(a,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(_&&_.zIndex||0)+3)}),P.doc.body.appendChild(a),this.renderer=u=new r(a,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 r=this.label,{xSetter:S,ySetter:$}=r;r.xSetter=function(K){S.call(r,h.distance),a.style.left=K+"px"},r.ySetter=function(K){$.call(r,h.distance),a.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,a={},u=t.inverted&&e.h||0,_=this.outside;var r=this.getPlayingField();const S=r.width,$=r.height,K=t.pointer.getChartPosition();r=g=>{const m=g==="x";return[g,m?S:$,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?S:$]:[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=r("y"),j=r("x"),s;r=!!e.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(r=!r);const T=!this.followPointer&&k(e.ttBelow,!t.inverted===r),z=function(g,m,W,F,N,et,nt){const at=_?g==="y"?i*K.scaleY:i*K.scaleX:i,ht=(W-F)/2,pt=F<N-i,D=N+i+F<m,M=N-at-W+ht;if(N=N+at-ht,T&&D)a[g]=N;else if(!T&&pt)a[g]=M;else if(pt)a[g]=Math.min(nt-F,0>M-u?M:M-u);else if(D)a[g]=Math.max(et,N+u+W>m?N:N+u);else return!1},I=function(g,m,W,F,N){let et;return N<i||N>m-i?et=!1:a[g]=N<W/2?1:N>m-F/2?m-F-2:N-W/2,et},V=function(g){const m=rt;rt=j,j=m,s=g},n=function(){z.apply(0,rt)!==!1?I.apply(0,j)!==!1||s||(V(!0),n()):s?a.x=a.y=0:(V(!0),n())};return(t.inverted||1<this.len)&&V(),n(),a}hide(h){const d=this;Z.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,a=i.now,u=i.options.animation!==!1&&!i.isHidden&&(1<Math.abs(h-a.x)||1<Math.abs(d-a.y)),_=i.followPointer||1<i.len;L(a,{x:u?(2*a.x+h)/3:h,y:u?(a.y+d)/2:d,anchorX:_?void 0:u?(2*a.anchorX+e)/3:e,anchorY:_?void 0:u?(a.anchorY+t)/2:t}),i.getLabel().attr(a),i.drawTracker(),u&&(Z.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,a=w(h),u=a[0],_=[];var r=t.format,S=t.formatter||this.defaultFormatter;const $=this.shared,K=e.styledMode;let rt={};if(t.enabled&&u.series){Z.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($&&this.allowShared?(i.applyInactiveState(a),a.forEach(function(T){T.setState("hover"),_.push(T.getLabelConfig())}),rt=u.getLabelConfig(),rt.points=_):rt=u.getLabelConfig(),this.len=_.length,r=f(r)?X(r,rt,e):S.call(rt,this),S=u.series,this.distance=k(S.tooltipOptions.distance,16),r===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(r,a);else{let T=j,z=s;if(d&&i.isDirectTouch&&(T=d.chartX-e.plotLeft,z=d.chartY-e.plotTop),e.polar||S.options.clip===!1||a.some(I=>i.isDirectTouch||I.series.shouldShowTooltip(T,z)))d=this.getLabel(),t.style.width&&!K||d.css({width:(this.outside?this.getPlayingField():e.spacingBox).width+"px"}),d.attr({text:r&&r.join?r.join(""):r}),d.addClass(this.getClassName(u),!0),K||d.attr({stroke:t.borderColor||u.color||S.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,tt,dt,ct,xt=!0){return dt?(tt=W?0:at,U=x(U-ct/2,n.left,n.right-ct-(t.outside?F:0))):(tt-=et,U=xt?U-ct-z:U+z,U=x(U,xt?U:n.left,n.right)),{x:U,y:tt}}const t=this,{chart:i,chart:{chartWidth:a,chartHeight:u,plotHeight:_,plotLeft:r,plotTop:S,pointer:$,scrollablePixelsY:K=0,scrollablePixelsX:rt,scrollingContainer:{scrollLeft:j,scrollTop:s}={scrollLeft:0,scrollTop:0},styledMode:T},distance:z,options:I,options:{positioner:V}}=t,n=t.outside&&typeof rt!="number"?Y.documentElement.getBoundingClientRect():{left:j,right:j+a,top:s,bottom:s+u},g=t.getLabel(),m=this.renderer||i.renderer,W=!(!i.xAxis[0]||!i.xAxis[0].opposite),{left:F,top:N}=$.getChartPosition();let et=S+s,nt=0,at=_-K;f(h)&&(h=[!1,h]),h=h.slice(0,d.length+1).reduce(function(U,tt,dt){if(tt!==!1&&tt!==""){dt=d[dt-1]||{isHeader:!0,plotX:d[0].plotX,plotY:_,series:{}};const Ct=dt.isHeader;var ct=Ct?t:dt.series,xt;{var vt=dt;tt=tt.toString();var gt=ct.tt;const{isHeader:Mt,series:Et}=vt;gt||(gt={padding:I.padding,r:I.borderRadius},T||(gt.fill=I.backgroundColor,gt["stroke-width"]=(xt=I.borderWidth)!==null&&xt!==void 0?xt: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(g)),gt.isActive=!0,gt.attr({text:tt}),T||gt.css(I.style).attr({stroke:I.borderColor||vt.color||Et.color||"#333333"}),xt=gt}xt=ct.tt=xt,vt=xt.getBBox(),ct=vt.width+xt.strokeWidth(),Ct&&(nt=vt.height,at+=nt,W&&(et-=nt));{const{isHeader:Mt,plotX:Et=0,plotY:_t=0,series:zt}=dt;if(Mt){tt=r+Et;var mt=S+_/2}else{const{xAxis:$t,yAxis:Ot}=zt;tt=$t.pos+x(Et,-z,$t.len+z),zt.shouldShowTooltip(0,Ot.pos-S+_t,{ignoreX:!0})&&(mt=Ot.pos+_t)}tt=x(tt,n.left-z,n.right+z),mt={anchorX:tt,anchorY:mt}}const{anchorX:bt,anchorY:wt}=mt;typeof wt=="number"?(mt=vt.height+1,vt=V?V.call(t,ct,mt,dt):e(bt,wt,Ct,ct),U.push({align:V?0:void 0,anchorX:bt,anchorY:wt,boxWidth:ct,point:dt,rank:k(vt.rank,Ct?1:0),size:mt,target:vt.y,tt:xt,x:vt.x})):xt.isActive=!1}return U},[]),!V&&h.some(U=>{var{outside:tt}=t;return tt=(tt?F:0)+U.anchorX,tt<n.left&&tt+U.boxWidth<n.right?!0:tt<F-n.left+U.boxWidth&&n.right-tt>tt})&&(h=h.map(U=>{const{x:tt,y:dt}=e(U.anchorX,U.anchorY,U.point.isHeader,U.boxWidth,!1);return L(U,{target:dt,x:tt})})),t.cleanSplit(),H(h,at);var ht=F,pt=F;h.forEach(function(U){const{x:tt,boxWidth:dt,isHeader:ct}=U;ct||(t.outside&&F+tt<ht&&(ht=F+tt),!ct&&t.outside&&ht+dt>pt&&(pt=F+tt))}),h.forEach(function(U){const{x:tt,anchorX:dt,anchorY:ct,pos:xt,point:{isHeader:vt}}=U,gt={visibility:typeof xt>"u"?"hidden":"inherit",x:tt,y:(xt||0)+et,anchorX:dt,anchorY:ct};if(t.outside&&tt<dt){const mt=F-ht;0<mt&&(vt||(gt.x=tt+mt,gt.anchorX=dt+mt),vt&&(gt.x=(pt-ht)/2,gt.anchorX=dt+mt))}U.tt.attr(gt)});const{container:D,outside:M,renderer:Q}=t;if(M&&D&&Q){const{width:U,height:tt,x:dt,y:ct}=g.getBBox();Q.setSize(U+dt,tt+ct,!1),D.style.left=ht+"px",D.style.top=N+"px"}O&&g.attr({opacity:g.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 a=i&&i.dateTime;i={isFooter:d,labelConfig:h};let u=t.xDateFormat,_=t[d?"footerFormat":"headerFormat"];return c(this,"headerFormatter",i,function(r){a&&!u&&v(h.key)&&(u=a.getXDateFormat(h.key,t.dateTimeLabelFormats)),a&&u&&(h.point&&h.point.tooltipDateKeys||["key"]).forEach(function(S){_=_.replace("{point."+S+"}","{point."+S+":"+u+"}")}),e.chart.styledMode&&(_=this.styledModeFormat(_)),r.text=X(_,{point:h,series:e},this.chart)}),i.text}update(h){this.destroy(),this.init(this.chart,C(!0,this.options,h))}updatePosition(h){const{chart:d,distance:e,options:t}=this;var i=d.pointer;const a=this.getLabel(),{left:u,top:_,scaleX:r,scaleY:S}=i.getChartPosition();i=(t.positioner||this.getPosition).call(this,a.width,a.height,h);let $=(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(a.width+K,a.height+K,!1),(r!==1||S!==1)&&(b(this.container,{transform:`scale(${r}, ${S})`}),$*=r,h*=S),$+=u-i.x,h+=_-i.y),this.move(Math.round(i.x),Math.round(i.y||0),$,h)}}return function(p){const h=[];p.compose=function(d){Z.pushUnique(h,d)&&R(d,"afterInit",function(){const e=this.chart;e.options.tooltip&&(e.tooltip=new p(e,e.options.tooltip))})}}(l||(l={})),l}),ot(A,"Core/Series/Point.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Animation/AnimationUtilities.js"],A["Core/Defaults.js"],A["Core/Templating.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z){const{animObject:X}=P,{defaultOptions:Y}=G,{format:O}=q,{addEvent:H,defined:R,erase:x,extend:b,fireEvent:E,getNestedProperty:L,isArray:c,isFunction:y,isNumber:v,isObject:f,merge:C,objectEach:k,pick:w,syncTimeout:o,removeEvent:l,uniqueKey:p}=Z;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(a){e[a]=e[a].animate(a==="dataLabel"?{x:e[a].startXPos,y:e[a].startYPos,opacity:0}:t)}),i.plural.forEach(function(a){e[a].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,a=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,a&&(this.y=h.prototype.getNestedProperty.call(this,a)),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 a=i.hoverPoints,u=X(t.series.chart.renderer.globalAnimation),_=()=>{(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(l(t),t.destroyElements());for(const r in t)delete t[r]};t.legendItem&&i.legend.destroyItem(t),a&&(t.setState(),x(a,t),a.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(a){a&&a.element&&a.destroy()}),delete t[i]})}firePointEvent(e,t,i){const a=this,u=this.series.options;(u.point.events[e]||a.options&&a.options.events&&a.options.events[e])&&a.importEvents(),e==="click"&&u.allowPointSelect&&(i=function(_){a.select&&a.select(null,_.ctrlKey||_.metaKey||_.shiftKey)}),E(a,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=[],a={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]&&a.singular.push(u);return["graphic","dataLabel","connector"].forEach(function(r){const S=r+"s";e[r]&&t[S]&&a.plural.push(S)}),a}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,a=0;for(i=t[a];this[e]>=i.value;)i=t[++a];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,a=i||t.pointArrayMap||["y"],u=a.length;let _={},r=0,S=0;if(v(e)||e===null)_[a[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]),r++);S<u;)i&&typeof e[r]>"u"||(0<a[S].indexOf(".")?h.prototype.setNestedProperty(_,e[r],a[S]):_[a[S]]=e[r]),r++,S++;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:a}=this,{chart:u,xAxis:_,yAxis:r}=a;let S=0,$=0;if(v(i)&&v(t))return e&&(S=_?_.pos:u.plotLeft,$=r?r.pos:u.plotTop),u.inverted&&_&&r?[r.len-t+$,_.len-i+S]:[i+S,t+$]}}resolveColor(){const e=this.series;var t=e.chart.styledMode;let i;var a=e.chart.options.chart.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(t||(a=e.options.colors||e.chart.options.colors,i=a[e.colorCounter],a=a.length),t=e.colorCounter,e.colorCounter++,e.colorCounter===a&&(e.colorCounter=0)):(t||(i=e.color),t=e.colorIndex),this.colorIndex=w(this.options.colorIndex,t),this.color=w(this.options.color,i)}setNestedProperty(e,t,i){return i.split(".").reduce(function(a,u,_,r){return a[u]=r.length-1===_?t:f(a[u],!0)?a[u]:{},a[u]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){const t=this.series,i=t.tooltipOptions,a=w(i.valueDecimals,""),u=i.valuePrefix||"",_=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(r){r="{point."+r,(u||_)&&(e=e.replace(RegExp(r+"}","g"),u+r+"}"+_)),e=e.replace(RegExp(r+"}","g"),r+":,."+a+"f}")}),O(e,{point:this,series:this.series},t.chart)}update(e,t,i,a){function u(){_.applyOptions(e);var j=S&&_.hasMockGraphic;j=_.y===null?!j:j,S&&j&&(_.graphic=S.destroy(),delete _.hasMockGraphic),f(e,!0)&&(S&&S.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(_.graphic=S.destroy()),e&&e.dataLabels&&_.dataLabel&&(_.dataLabel=_.dataLabel.destroy()),_.connector&&(_.connector=_.connector.destroy())),rt=_.index,r.updateParallelArrays(_,rt),K.data[rt]=f(K.data[rt],!0)||f(e,!0)?_.options:w(e,K.data[rt]),r.isDirty=r.isDirtyData=!0,!r.fixedBox&&r.hasCartesianSeries&&($.isDirtyBox=!0),K.legendType==="point"&&($.isDirtyLegend=!0),t&&$.redraw(i)}const _=this,r=_.series,S=_.graphic,$=r.chart,K=r.options;let rt;t=w(t,!0),a===!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,a=i.series,u=a.chart;this.selectedStaging=e=w(e,!i.selected),i.firePointEvent(e?"select":"unselect",{accumulate:t},function(){i.selected=i.options.selected=e,a.options.data[a.data.indexOf(i)]=i.options,i.setState(e&&"select"),t||u.getSelectedPoints().forEach(function(_){const r=_.series;_.selected&&_!==i&&(_.selected=_.options.selected=!1,r.options.data[r.data.indexOf(_)]=_.options,_.setState(u.hoverPoints&&r.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=C(e.series.options.point,e.options).events;e.events=t,k(t,function(i,a){y(i)&&H(e,a,i)}),this.hasImportedEvents=!0}}setState(e,t){const i=this.series;var a=this.state,u=i.options.states[e||"normal"]||{},_=Y.plotOptions[i.type].marker&&i.options.marker;const r=_&&_.enabled===!1,S=_&&_.states&&_.states[e||"normal"]||{},$=S.enabled===!1,K=this.marker||{},rt=i.chart,j=_&&i.markerAttribs;let s=i.halo;var T;let z;var I=i.stateMarkerGraphic;if(e=e||"",!(e===this.state&&!t||this.selected&&e!=="select"||u.enabled===!1||e&&($||r&&S.enabled===!1)||e&&K.states&&K.states[e]&&K.states[e].enabled===!1)){if(this.state=e,j&&(T=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(a&&this.graphic.removeClass("highcharts-point-"+a),e&&this.graphic.addClass("highcharts-point-"+e),!rt.styledMode){a=i.pointAttribs(this,e),z=w(rt.options.chart.animation,u.animation);const V=a.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(a,z)}T&&this.graphic.animate(T,w(rt.options.chart.animation,S.animation,_.animation)),I&&I.hide()}else e&&S&&(_=K.symbol||i.symbol,I&&I.currentSymbol!==_&&(I=I.destroy()),T&&(I?I[t?"animate":"attr"]({x:T.x,y:T.y}):_&&(i.stateMarkerGraphic=I=rt.renderer.symbol(_,T.x,T.y,T.width,T.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,T=(I=this.graphic||I)&&I.visibility||"inherit",u&&u.size&&I&&T!=="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-"+w(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:T,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}),ot(A,"Core/Pointer.js",[A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P,G){const{parse:q}=B,{charts:Z,noop:X}=P,{addEvent:Y,attr:O,css:H,defined:R,extend:x,find:b,fireEvent:E,isNumber:L,isObject:c,objectEach:y,offset:v,pick:f,splat:C}=G;class k{constructor(o,l){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=o,this.hasDragged=!1,this.options=l,this.init(o,l)}applyInactiveState(o){let l=[],p;(o||[]).forEach(function(h){p=h.series,l.push(p),p.linkedParent&&l.push(p.linkedParent),p.linkedSeries&&(l=l.concat(p.linkedSeries)),p.navigatorSeries&&l.push(p.navigatorSeries)}),this.chart.series.forEach(function(h){l.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})}destroy(){const o=this;this.eventsToUnbind.forEach(l=>l()),this.eventsToUnbind=[],P.chartCount||(k.unbindDocumentMouseUp&&(k.unbindDocumentMouseUp=k.unbindDocumentMouseUp()),k.unbindDocumentTouchEnd&&(k.unbindDocumentTouchEnd=k.unbindDocumentTouchEnd())),clearInterval(o.tooltipTimeout),y(o,function(l,p){o[p]=void 0})}getSelectionMarkerAttrs(o,l){const p={args:{chartX:o,chartY:l},attrs:{},shapeType:"rect"};return E(this,"getSelectionMarkerAttrs",p,h=>{const{chart:d,mouseDownX:e=0,mouseDownY:t=0,zoomHor:i,zoomVert:a}=this;h=h.attrs;let u;h.x=d.plotLeft,h.y=d.plotTop,h.width=i?1:d.plotWidth,h.height=a?1:d.plotHeight,i&&(u=o-e,h.width=Math.abs(u),h.x=(0<u?0:u)+e),a&&(u=l-t,h.height=Math.abs(u),h.y=(0<u?0:u)+t)}),p}drag(o){const l=this.chart,p=l.options.chart;var h=l.plotLeft;const d=l.plotTop,e=l.plotWidth,t=l.plotHeight,i=this.mouseDownX||0,a=this.mouseDownY||0,u=c(p.panning)?p.panning&&p.panning.enabled:p.panning,_=p.panKey&&o[p.panKey+"Key"];let r=o.chartX,S=o.chartY,$=this.selectionMarker;if((!$||!$.touch)&&(r<h?r=h:r>h+e&&(r=h+e),S<d?S=d:S>d+t&&(S=d+t),this.hasDragged=Math.sqrt(Math.pow(i-r,2)+Math.pow(a-S,2)),10<this.hasDragged)){h=l.isInsidePlot(i-h,a-d,{visiblePlotOnly:!0});const{shapeType:K,attrs:rt}=this.getSelectionMarkerAttrs(r,S);!l.hasCartesianSeries&&!l.mapView||!this.zoomX&&!this.zoomY||!h||_||$||(this.selectionMarker=$=l.renderer[K](),$.attr({class:"highcharts-selection-marker",zIndex:7}).add(),l.styledMode||$.attr({fill:p.selectionMarkerFill||q("#334eff").setOpacity(.25).get()})),$&&$.attr(rt),h&&!$&&u&&l.pan(o,p.panning)}}dragStart(o){const l=this.chart;l.mouseIsDown=o.type,l.cancelClick=!1,l.mouseDownX=this.mouseDownX=o.chartX,l.mouseDownY=this.mouseDownY=o.chartY}getSelectionBox(o){const l={args:{marker:o},result:{}};return E(this,"getSelectionBox",l,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}}),l.result}drop(o){const l=this,p=this.chart,h=this.hasPinched;if(this.selectionMarker){const{x:d,y:e,width:t,height:i}=this.getSelectionBox(this.selectionMarker),a={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||l[{xAxis:"zoomX",yAxis:"zoomY"}[_.coll]])&&L(d)&&L(e)&&L(t)&&L(i)){var r=_.horiz;const S=o.type==="touchend"?_.minPixelPadding:0,$=_.toValue((r?d:e)+S);r=_.toValue((r?d+t:e+i)-S),a[_.coll].push({axis:_,min:Math.min($,r),max:Math.max($,r)}),u=!0}}),u&&E(p,"selection",a,function(_){p.zoom(x(_,h?{animation:!1}:null))})),L(p.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}p&&L(p.index)&&(H(p.container,{cursor:p._cursor}),p.cancelClick=10<this.hasDragged,p.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(o,l,p){let h;return o.forEach(function(d){var e=!(d.noSharedTooltip&&l)&&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&&l?e:t!==0?t:i!==0?i:h.series.index>d.series.index?-1:1}e=0<e}e&&(h=d)}),h}getChartCoordinatesFromPoint(o,l){var p=o.series;const h=p.xAxis;p=p.yAxis;const d=o.shapeArgs;if(h&&p){let e=f(o.clientX,o.plotX),t=o.plotY||0;return o.isNode&&d&&L(d.x)&&L(d.y)&&(e=d.x,t=d.y),l?{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 l=v(o);this.chartPosition={left:l.left,top:l.top,scaleX:1,scaleY:1};const p=o.offsetWidth;return o=o.offsetHeight,2<p&&2<o&&(this.chartPosition.scaleX=l.width/p,this.chartPosition.scaleY=l.height/o),this.chartPosition}getCoordinates(o){const l={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(p){l[p.isXAxis?"xAxis":"yAxis"].push({axis:p,value:p.toValue(o[p.horiz?"chartX":"chartY"])})}),l}getHoverData(o,l,p,h,d,e){const t=[];h=!(!h||!o);const i=function(r){return r.visible&&!(!d&&r.directTouch)&&f(r.options.enableMouseTracking,!0)};let a,u={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:d};E(this,"beforeGetHoverData",u),a=l&&!l.stickyTracking?[l]:p.filter(r=>r.stickyTracking&&(u.filter||i)(r));const _=h||!e?o:this.findNearestKDPoint(a,d,e);return l=_&&_.series,_&&(d&&!l.noSharedTooltip?(a=p.filter(function(r){return u.filter?u.filter(r):i(r)&&!r.noSharedTooltip}),a.forEach(function(r){let S=b(r.points,function($){return $.x===_.x&&!$.isNull});c(S)&&(r.boosted&&r.boost&&(S=r.boost.getPoint(S)),t.push(S))})):t.push(_)),u={hoverPoint:_},E(this,"afterGetHoverData",u),{hoverPoint:u.hoverPoint,hoverSeries:l,hoverPoints:t}}getPointFromEvent(o){o=o.target;let l;for(;o&&!l;)l=o.point,o=o.parentNode;return l}onTrackerMouseOut(o){o=o.relatedTarget;const l=this.chart.hoverSeries;this.isDirectTouch=!1,!l||!o||l.stickyTracking||this.inClass(o,"highcharts-tooltip")||this.inClass(o,"highcharts-series-"+l.index)&&this.inClass(o,"highcharts-tracker")||l.onMouseOut()}inClass(o,l){let p;for(;o;){if(p=O(o,"class")){if(p.indexOf(l)!==-1)return!0;if(p.indexOf("highcharts-container")!==-1)return!1}o=o.parentElement}}init(o,l){this.options=l,this.chart=o,this.runChartClick=!(!l.chart.events||!l.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),E(this,"afterInit")}normalize(o,l){var p=o.touches,h=p?p.length?p.item(0):f(p.changedTouches,o.changedTouches)[0]:o;return l||(l=this.getChartPosition()),p=h.pageX-l.left,h=h.pageY-l.top,p/=l.scaleX,h/=l.scaleY,x(o,{chartX:Math.round(p),chartY:Math.round(h)})}onContainerClick(o){const l=this.chart,p=l.hoverPoint;o=this.normalize(o);const h=l.plotLeft,d=l.plotTop;l.cancelClick||(p&&this.inClass(o.target,"highcharts-tracker")?(E(p.series,"click",x(o,{point:p})),l.hoverPoint&&p.firePointEvent("click",o)):(x(o,this.getCoordinates(o)),l.isInsidePlot(o.chartX-h,o.chartY-d,{visiblePlotOnly:!0})&&E(l,"click",o)))}onContainerMouseDown(o){const l=((o.buttons||o.button)&1)===1;o=this.normalize(o),P.isFirefox&&o.button!==0&&this.onContainerMouseMove(o),(typeof o.button>"u"||l)&&(this.zoomOption(o),l&&o.preventDefault&&o.preventDefault(),this.dragStart(o))}onContainerMouseLeave(o){const l=Z[f(k.hoverChartIndex,-1)];o=this.normalize(o),l&&o.relatedTarget&&!this.inClass(o.relatedTarget,"highcharts-tooltip")&&(l.pointer.reset(),l.pointer.chartPosition=void 0)}onContainerMouseEnter(o){delete this.chartPosition}onContainerMouseMove(o){const l=this.chart,p=l.tooltip;o=this.normalize(o),this.setHoverChartIndex(),(l.mouseIsDown==="mousedown"||this.touchSelect(o))&&this.drag(o),l.openMenu||!this.inClass(o.target,"highcharts-tracker")&&!l.isInsidePlot(o.chartX-l.plotLeft,o.chartY-l.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(o)||(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))}onDocumentTouchEnd(o){const l=Z[f(k.hoverChartIndex,-1)];l&&l.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 l=this.chart,p=l.tooltip,h=this.chartPosition;o=this.normalize(o,h),!h||l.isInsidePlot(o.chartX-l.plotLeft,o.chartY-l.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(o)||this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(o){const l=Z[f(k.hoverChartIndex,-1)];l&&l.pointer.drop(o)}pinch(o){const l=this,p=l.chart,h=l.pinchDown,d=o.touches||[],e=d.length,t=l.lastValidTouch,i=l.hasZoom,a={},u=e===1&&(l.inClass(o.target,"highcharts-tracker")&&p.runTrackerClick||l.runChartClick),_={};var r=l.chart.tooltip;r=e===1&&f(r&&r.options.followTouchMove,!0);let S=l.selectionMarker;1<e?l.initiated=!0:r&&(l.initiated=!1),i&&l.initiated&&!u&&o.cancelable!==!1&&o.preventDefault(),[].map.call(d,function($){return l.normalize($)}),o.type==="touchstart"?([].forEach.call(d,function($,K){h[K]={chartX:$.chartX,chartY:$.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($){if($.zoomEnabled){const K=p.bounds[$.horiz?"h":"v"],rt=$.minPixelPadding,j=$.toPixels(Math.min(f($.options.min,$.dataMin),$.dataMin)),s=$.toPixels(Math.max(f($.options.max,$.dataMax),$.dataMax)),T=Math.max(j,s);K.min=Math.min($.pos,Math.min(j,s)-rt),K.max=Math.max($.pos+$.len,T+rt)}}),l.res=!0):r?this.runPointActions(l.normalize(o)):h.length&&(E(p,"touchpan",{originalEvent:o},()=>{S||(l.selectionMarker=S=x({destroy:X,touch:!0},p.plotBox)),l.pinchTranslate(h,d,a,S,_,t),l.hasPinched=i,l.scaleGroups(a,_)}),l.res&&(l.res=!1,this.reset(!1,0)))}pinchTranslate(o,l,p,h,d,e){this.zoomHor&&this.pinchTranslateDirection(!0,o,l,p,h,d,e),this.zoomVert&&this.pinchTranslateDirection(!1,o,l,p,h,d,e)}pinchTranslateDirection(o,l,p,h,d,e,t,i){const a=this.chart,u=o?"x":"y",_=o?"X":"Y",r="chart"+_,S=o?"width":"height",$=a["plot"+(o?"Left":"Top")],K=a.inverted,rt=a.bounds[o?"h":"v"],j=l.length===1,s=l[0][r],T=!j&&l[1][r];l=function(){typeof g=="number"&&20<Math.abs(s-T)&&(V=i||Math.abs(n-g)/Math.abs(s-T)),I=($-n)/V+s,z=a["plot"+(o?"Width":"Height")]/V};let z,I,V=i||1,n=p[0][r],g=!j&&p[1][r],m;l(),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 g=="number"&&(g-=.8*(g-t[u][1])),l()):t[u]=[n,g],K||(e[u]=I-$,e[S]=z),e=K?1/V:V,d[S]=z,d[u]=p,h[K?o?"scaleY":"scaleX":"scale"+_]=V,h["translate"+_]=e*$+(n-e*s)}reset(o,l){const p=this.chart,h=p.hoverSeries,d=p.hoverPoint,e=p.hoverPoints,t=p.tooltip,i=t&&t.shared?e:d;o&&i&&C(i).forEach(function(a){a.series.isCartesian&&typeof a.plotX>"u"&&(o=!1)}),o?t&&i&&C(i).length&&(t.refresh(i),t.shared&&e?e.forEach(function(a){a.setState(a.state,!0),a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):d&&(d.setState(d.state,!0),p.axes.forEach(function(a){a.crosshair&&d.series[a.coll]===a&&a.drawCrosshair(null,d)}))):(d&&d.onMouseOut(),e&&e.forEach(function(a){a.setState()}),h&&h.onMouseOut(),t&&t.hide(l),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),p.axes.forEach(function(a){a.hideCrosshair()}),this.hoverX=p.hoverPoints=p.hoverPoint=null)}runPointActions(o,l,p){const h=this.chart,d=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,e=d?d.shared:!1;let t=l||h.hoverPoint,i=t&&t.series||h.hoverSeries;l=this.getHoverData(t,i,h.series,(!o||o.type!=="touchmove")&&(!!l||i&&i.directTouch&&this.isDirectTouch),e,o),t=l.hoverPoint,i=l.hoverSeries;const a=l.hoverPoints;l=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(_){a.indexOf(_)===-1&&_.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(a),(a||[]).forEach(function(_){_.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!t.series)return;h.hoverPoints=a,h.hoverPoint=t,t.firePointEvent("mouseOver",void 0,()=>{d&&t&&d.refresh(u?a:t,o)})}else l&&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 r=Z[k.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(_)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(_){const r=f((_.crosshair||{}).snap,!0);let S;r&&((S=h.hoverPoint)&&S.series[_.coll]===_||(S=b(a,$=>$.series&&$.series[_.coll]===_))),S||!r?_.drawCrosshair(o,S):_.hideCrosshair()})}scaleGroups(o,l){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(l?p.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(d))}),p.clipRect.attr(l||p.clipBox)}setDOMEvents(){const o=this.chart.container,l=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(l,"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(l,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const o=this.chart,l=P.charts[f(k.hoverChartIndex,-1)];l&&l!==o&&l.pointer.onContainerMouseLeave({relatedTarget:o.container}),l&&l.mouseIsDown||(k.hoverChartIndex=o.index)}touch(o,l){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?(l&&this.runPointActions(o),o.type==="touchmove"&&(l=this.pinchDown,h=l[0]?4<=Math.sqrt(Math.pow(l[0].chartX-o.chartX,2)+Math.pow(l[0].chartY-o.chartY,2)):!1),f(h,!0)&&this.pinch(o)):l&&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 l=this.chart,p=l.inverted;var h=l.zooming.type||"";/touch/.test(o.type)&&(h=f(l.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(w){const o=[],l=[];w.compose=function(p){G.pushUnique(l,p)&&Y(p,"beforeRender",function(){this.pointer=new w(this,this.options)})},w.dissolve=function(){for(let p=0,h=o.length;p<h;++p)o[p]();o.length=0}}(k||(k={})),k}),ot(A,"Core/Legend/Legend.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Templating.js"],A["Core/Globals.js"],A["Core/Series/Point.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z,X){const{animObject:Y,setAnimation:O}=B,{format:H}=P,{marginNames:R}=G,{distribute:x}=Z,{addEvent:b,createElement:E,css:L,defined:c,discardElement:y,find:v,fireEvent:f,isNumber:C,merge:k,pick:w,relativeLength:o,stableSort:l,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=w(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=w(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,w(t,!0)&&i.redraw(),f(this,"afterUpdate")}colorizeItem(e,t){const{group:i,label:a,line:u,symbol:_}=e.legendItem||{};if(i&&i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:r}=this,S=r.color,$=t&&e.color||S,K=e.options&&e.options.marker;let rt={fill:$};a==null||a.css(k(t?this.itemStyle:r)),u==null||u.attr({stroke:$}),_&&(K&&_.isMarker&&(rt=e.pointAttribs(),t||(rt.stroke=rt.fill=S)),_.attr(rt))}f(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:a=0}=e.legendItem||{};var u=this.options,_=u.symbolPadding;const r=!u.rtl;u=e.checkbox,t&&t.element&&(_={translateX:r?i:this.legendWidth-i-2*_-4,translateY:a},t[c(t.translateY)?"animate":"attr"](_,void 0,()=>{f(this,"afterPositionItem",{item:e})})),u&&(u.x=i,u.y=a)}destroyItem(e){const t=e.checkbox,i=e.legendItem||{};for(const a of["group","label","line","symbol"])i[a]&&(i[a]=i[a].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 a;e&&(a=e.translateY,this.allItems.forEach(function(u){const _=u.checkbox;let r;_&&(r=a+i+_.y+(this.scrollOffset||0)+3,L(_,{left:e.translateX+u.checkboxOffset+_.x-20+"px",top:r+"px",display:this.proximate||r>a-6&&r<a+t-6?"":"none"}))},this))}renderTitle(){var e=this.options;const t=this.padding,i=e.title;let a=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(),a=e.height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:a})),this.titleHeight=a}setText(e){const t=this.options;e.legendItem.label.attr({text:t.labelFormat?H(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})}renderItem(e){const t=e.legendItem=e.legendItem||{};var i=this.chart,a=i.renderer;const u=this.options,_=this.symbolWidth,r=u.symbolPadding||0,S=this.itemStyle,$=this.itemHiddenStyle,K=u.layout==="horizontal"?w(u.itemDistance,20):0,rt=!u.rtl,j=!e.series,s=!j&&e.series.drawLegendSymbol?e.series:e;var T=s.options;const z=this.createCheckboxForItem&&T&&T.showCheckbox,I=u.useHTML,V=e.options.className;let n=t.label;T=_+r+K+(z?20:0),n||(t.group=a.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=a.text("",rt?_+r:-r,this.baseline||0,I),i.styledMode||n.css(k(e.visible?S:$)),n.attr({align:rt?"left":"right",zIndex:2}).add(t.group),this.baseline||(this.fontMetrics=a.fontMetrics(n),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,n.attr("y",this.baseline),this.symbolHeight=w(u.symbolHeight,this.fontMetrics.f),u.squareSymbol&&(this.symbolWidth=w(u.symbolWidth,Math.max(this.symbolHeight,16)),T=this.symbolWidth+r+K+(z?20:0),rt&&n.attr("x",this.symbolWidth+r))),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&&S.width||n.css({width:(u.itemWidth||this.widthOption||i.spacingBox.width)-T+"px"}),this.setText(e),i=n.getBBox(),a=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=u.itemWidth||t.labelWidth||i.width+T,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(t.labelHeight||(i.height>1.5*a?i.height:a))}layoutItem(e){var t=this.options;const i=this.padding,a=t.layout==="horizontal",u=e.itemHeight,_=this.itemMarginBottom,r=this.itemMarginTop,S=a?w(t.itemDistance,20):0,$=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>$?this.maxItemWidth:e.itemWidth;const K=e.legendItem||{};a&&this.itemX-i+t>$&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+_),this.lastLineHeight=0),this.lastItemY=r+this.itemY+_,this.lastLineHeight=Math.max(u,this.lastLineHeight),K.x=this.itemX,K.y=this.itemY,a?this.itemX+=t:(this.itemY+=r+u+_,this.lastLineHeight=u),this.offsetWidth=this.widthOption||Math.max((a?this.itemX-i-(e.checkbox?0:S):t)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){const i=t&&t.options;t&&w(i.showInLegend,c(i.linkedTo)?!1:void 0,!0)&&(e=e.concat((t.legendItem||{}).labels||(i.legendType==="point"?t.data:t)))}),f(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,a=this.options,u=this.getAlignment();u&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(_,r){_.test(u)&&!c(e[r])&&(i[R[r]]=Math.max(i[R[r]],i.legend[(r+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][r]*a[r%2?"x":"y"]+w(a.margin,12)+t[r]+(i.titleOffset[r]||0)))})}proximatePositions(){const e=this.chart,t=[],i=this.options.align==="left";this.allItems.forEach(function(u){var _,r=i;let S;u.yAxis&&(u.xAxis.options.reversed&&(r=!r),u.points&&(_=v(r?u.points:u.points.slice(0).reverse(),function($){return C($.plotY)})),r=this.itemMarginTop+u.legendItem.label.getBBox().height+this.itemMarginBottom,S=u.yAxis.top-e.plotTop,u.visible?(_=_?_.plotY:u.yAxis.height,_+=S-.3*r):_=S+u.yAxis.height,t.push({target:_,size:r,item:u}))},this);let a;for(const u of x(t,e.plotHeight))a=u.item.legendItem||{},C(u.pos)&&(a.y=e.plotTop-e.spacing[0]+u.pos)}render(){const e=this.chart,t=e.renderer,i=this.options,a=this.padding;var u=this.getAllItems();let _,r=this.group,S=this.box;this.itemX=a,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=o(i.width,e.spacingBox.width-a);var $=e.spacingBox.width-2*a-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&($/=2),this.maxLegendWidth=this.widthOption||$,r||(this.group=r=t.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=t.g().attr({zIndex:1}).add(r),this.scrollGroup=t.g().add(this.contentGroup)),this.renderTitle(),l(u,(K,rt)=>(K.options&&K.options.legendIndex||0)-(rt.options&&rt.options.legendIndex||0)),i.reversed&&u.reverse(),this.allItems=u,this.display=$=!!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)+a,_=this.lastItemY+this.lastLineHeight+this.titleHeight,_=this.handleOverflow(_),_+=a,S||(this.box=S=t.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),e.styledMode||S.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<u&&0<_&&S[S.placed?"animate":"attr"](S.crisp.call({},{x:0,y:0,width:u,height:_},S.strokeWidth())),r[$?"show":"hide"](),e.styledMode&&r.getStyle("display")==="none"&&(u=_=0),this.legendWidth=u,this.legendHeight=_,$&&this.align(),this.proximate||this.positionItems(),f(this,"afterRender")}align(e=this.chart.spacingBox){const t=this.chart,i=this.options;let a=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<t.titleOffset[0]?a+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<t.titleOffset[2]&&(a-=t.titleOffset[2]),a!==e.y&&(e=k(e,{y:a})),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,a=i.renderer,u=this.options;var _=u.y;const r=u.verticalAlign==="top",S=this.padding,$=u.maxHeight,K=u.navigation,rt=w(K.animation,!0),j=K.arrowSize||12,s=this.pages,T=this.allItems,z=function(F){typeof F=="number"?W.attr({height:F}):W&&(t.clipRect=W.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=F?"rect("+S+"px,9999px,"+(S+F)+"px,0)":"auto")},I=function(F){return t[F]=a.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,g;_=i.spacingBox.height+(r?-_:_)-S;let m=this.nav,W=this.clipRect;return u.layout!=="horizontal"||u.verticalAlign==="middle"||u.floating||(_/=2),$&&(_=Math.min(_,$)),s.length=0,e&&0<_&&e>_&&K.enabled!==!1?(this.clipHeight=V=Math.max(_-20-this.titleHeight-S,0),this.currentPage=w(this.currentPage,1),this.fullHeight=e,T.forEach((F,N)=>{g=F.legendItem||{},F=g.y||0;const et=Math.round(g.label.getBBox().height);let nt=s.length;(!nt||F-s[nt-1]>V&&(n||F)!==s[nt-1])&&(s.push(n||F),nt++),g.pageIx=nt-1,n&&((T[N-1].legendItem||{}).pageIx=nt-1),N===T.length-1&&F+et-s[nt-1]>V&&F>s[nt-1]&&(s.push(F),g.pageIx=nt),F!==n&&(n=F)}),W||(W=t.clipRect=a.clipRect(0,S-2,9999,0),t.contentGroup.clip(W)),z(V),m||(this.nav=m=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,j,j).add(m),I("upTracker").on("click",function(){t.scroll(-1,rt)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&K.style&&this.pager.css(K.style),this.pager.add(m),this.down=a.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,a=this.pages,u=a.length,_=this.clipHeight,r=this.options.navigation,S=this.pager,$=this.padding;let K=this.currentPage+e;K>u&&(K=u),0<K&&(typeof t<"u"&&O(t,i),this.nav.attr({translateX:$,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"})}),S.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?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:K===1?"default":"pointer"}),this.down.attr({fill:K===u?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:K===u?"default":"pointer"})),this.scrollOffset=-a[K-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=K,this.positionCheckboxes(),e=Y(w(t,i.renderer.globalAnimation,!0)),p(()=>{f(this,"afterScroll",{currentPage:K})},e.duration))}setItemEvents(e,t,i){const a=this,u=e.legendItem||{},_=a.chart.renderer.boxWrapper,r=e instanceof q,S="highcharts-legend-"+(r?"point":"series")+"-active",$=a.chart.styledMode;i=i?[t,u.symbol]:[u.group];const K=rt=>{a.allItems.forEach(j=>{e!==j&&[j].concat(j.linkedSeries||[]).forEach(s=>{s.setState(rt,!r)})})};for(const rt of i)rt&&rt.on("mouseover",function(){e.visible&&K("inactive"),e.setState("hover"),e.visible&&_.addClass(S),$||t.css(a.options.itemHoverStyle)}).on("mouseout",function(){a.chart.styledMode||t.css(k(e.visible?a.itemStyle:a.itemHiddenStyle)),K(""),_.removeClass(S),e.setState()}).on("click",function(j){const s=function(){e.setVisible&&e.setVisible(),K(e.visible?"inactive":"")};_.removeClass(S),j={browserEvent:j},e.firePointEvent?e.firePointEvent("legendItemClick",j,s):f(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){f(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}),ot(A,"Core/Legend/LegendSymbol.js",[A["Core/Utilities.js"]],function(B){const{extend:P,merge:G,pick:q}=B;var Z;return function(X){X.lineMarker=function(Y,O){O=this.legendItem=this.legendItem||{};var H=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=H.marker,v=0;this.chart.styledMode||(c={"stroke-width":Math.min(H.lineWidth||0,24)},H.dashStyle?c.dashstyle=H.dashStyle:H.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&&(H=Math.min(q(y.radius,b),b),this.symbol.indexOf("url")===0&&(y=G(y,{width:x,height:x}),H=0),O.symbol=O=E.symbol(this.symbol,R/2-H,Y-H,2*H,2*H,P({context:"legend"},y)).addClass("highcharts-point").add(L),O.isMarker=!0)},X.rectangle=function(Y,O){O=O.legendItem||{};const H=Y.symbolHeight,R=Y.options.squareSymbol;O.symbol=this.chart.renderer.rect(R?(Y.symbolWidth-H)/2:0,Y.baseline-H+1,R?H:Y.symbolWidth,H,q(Y.options.symbolRadius,H/2)).addClass("highcharts-point").attr({zIndex:3}).add(O.group)}}(Z||(Z={})),Z}),ot(A,"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"}}),ot(A,"Core/Series/SeriesRegistry.js",[A["Core/Globals.js"],A["Core/Defaults.js"],A["Core/Series/Point.js"],A["Core/Utilities.js"]],function(B,P,G,q){const{defaultOptions:Z}=P,{extendClass:X,merge:Y}=q;var O;return function(H){function R(x,b){const E=Z.plotOptions||{},L=b.defaultOptions,c=b.prototype;c.type=x,c.pointClass||(c.pointClass=G),L&&(E[x]=L),H.seriesTypes[x]=b}H.seriesTypes=B.seriesTypes,H.registerSeriesType=R,H.seriesType=function(x,b,E,L,c){const y=Z.plotOptions||{};return b=b||"",y[x]=Y(y[b],E),R(x,X(H.seriesTypes[b]||function(){},L)),H.seriesTypes[x].prototype.type=x,c&&(H.seriesTypes[x].prototype.pointClass=X(G,c)),H.seriesTypes[x]}}(O||(O={})),O}),ot(A,"Core/Series/Series.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Defaults.js"],A["Core/Foundation.js"],A["Core/Globals.js"],A["Core/Legend/LegendSymbol.js"],A["Core/Series/Point.js"],A["Core/Series/SeriesDefaults.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z,X,Y,O,H,R){const{animObject:x,setAnimation:b}=B,{defaultOptions:E}=P,{registerEventOptions:L}=G,{hasTouch:c,svg:y,win:v}=q,{seriesTypes:f}=O,{arrayMax:C,arrayMin:k,clamp:w,correctFloat:o,defined:l,diffObjects:p,erase:h,error:d,extend:e,find:t,fireEvent:i,getClosestDistance:a,getNestedProperty:u,insertItem:_,isArray:r,isNumber:S,isString:$,merge:K,objectEach:rt,pick:j,removeEvent:s,splat:T,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,g){i(this,"init",{options:g});const m=this,W=n.series;this.eventsToUnbind=[],m.chart=n,m.options=m.setOptions(g),g=m.options,m.linkedSeries=[],m.bindAxes(),e(m,{name:g.name,state:"",visible:g.visible!==!1,selected:g.selected===!0}),L(this,g);const F=g.events;(F&&F.click||g.point&&g.point.events&&g.point.events.click||g.allowPointSelect)&&(n.runTrackerClick=!0),m.getColor(),m.getSymbol(),m.parallelArrays.forEach(function(et){m[et+"Data"]||(m[et+"Data"]=[])}),m.isCartesian&&(n.hasCartesianSeries=!0);let N;W.length&&(N=W[W.length-1]),m._i=j(N&&N._i,-1)+1,m.opacity=m.options.opacity,n.orderItems("series",_(this,W)),g.dataSorting&&g.dataSorting.enabled?m.setDataSortingOptions():m.points||m.data||m.setData(g.data,!1),i(this,"afterInit")}is(n){return f[n]&&this instanceof f[n]}bindAxes(){const n=this,g=n.options,m=n.chart;let W;i(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(F){m[F].forEach(function(N){W=N.options,(j(g[F],0)===N.index||typeof g[F]<"u"&&g[F]===W.id)&&(_(n,N.series),n[F]=N,N.isDirty=!0)}),n[F]||n.optionalAxis===F||d(18,!0,m)})}),i(this,"afterBindAxes")}updateParallelArrays(n,g,m){const W=n.series,F=S(g)?function(N){const et=N==="y"&&W.toYData?W.toYData(n):n[N];W[N+"Data"][g]=et}:function(N){Array.prototype[g].apply(W[N+"Data"],m)};W.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 g=this.options;const m=g.pointIntervalUnit,W=g.relativeXValue,F=this.chart.time;let N=this.xIncrement,et;return N=j(N,g.pointStart,0),this.pointInterval=et=j(this.pointInterval,g.pointInterval,1),W&&S(n)&&(et*=n),m&&(g=new F.Date(N),m==="day"?F.set("Date",g,F.get("Date",g)+et):m==="month"?F.set("Month",g,F.get("Month",g)+et):m==="year"&&F.set("FullYear",g,F.get("FullYear",g)+et),et=g.getTime()-N),W&&S(n)?N+et:(this.xIncrement=N+et,N)}setDataSortingOptions(){const n=this.options;e(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),l(n.pointRange)||(n.pointRange=1)}setOptions(n){var g,m;const W=this.chart;var F=W.options.plotOptions,N=W.userOptions||{};const et=K(n);n=W.styledMode;const nt={plotOptions:F,userOptions:et};i(this,"setOptions",nt);const at=nt.plotOptions[this.type];N=N.plotOptions||{};const ht=N.series||{},pt=E.plotOptions[this.type]||{},D=N[this.type]||{};return this.userOptions=nt.userOptions,F=K(at,F.series,D,et),this.tooltipOptions=K(E.tooltip,(g=E.plotOptions.series)===null||g===void 0?void 0:g.tooltip,pt==null?void 0:pt.tooltip,W.userOptions.tooltip,(m=N.series)===null||m===void 0?void 0:m.tooltip,D.tooltip,et.tooltip),this.stickyTracking=j(et.stickyTracking,D.stickyTracking,ht.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:F.stickyTracking),at.marker===null&&delete F.marker,this.zoneAxis=F.zoneAxis,m=this.zones=(F.zones||[]).slice(),!F.negativeColor&&!F.negativeFillColor||F.zones||(g={value:F[this.zoneAxis+"Threshold"]||F.threshold||0,className:"highcharts-negative"},n||(g.color=F.negativeColor,g.fillColor=F.negativeFillColor),m.push(g)),m.length&&l(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,g,m){const W=this.chart,F=`${n}Index`,N=`${n}Counter`,et=(m==null?void 0:m.length)||W.options.chart.colorCount;if(!g){var nt=j(n==="color"?this.options.colorIndex:void 0,this[F]);l(nt)||(W.series.length||(W[N]=0),nt=W[N]%et,W[N]+=1),m&&(g=m[nt])}typeof nt<"u"&&(this[F]=nt),this[n]=g}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,g){const m=n.id,W=n.x,F=this.points;var N=this.options.dataSorting,et;let nt,at;if(m)N=this.chart.get(m),N instanceof X&&(et=N);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(et=ht=>!ht.touched&&ht.index===n.index,N&&N.matchByName?et=ht=>!ht.touched&&ht.name===n.name:this.options.relativeXValue&&(et=ht=>!ht.touched&&ht.options.x===n.x),et=t(F,et),!et))return;return et&&(at=et&&et.index,typeof at<"u"&&(nt=!0)),typeof at>"u"&&S(W)&&(at=this.xData.indexOf(W,g)),at!==-1&&typeof at<"u"&&this.cropped&&(at=at>=this.cropStart?at-this.cropStart:at),!nt&&S(at)&&F[at]&&F[at].touched&&(at=void 0),at}updateData(n,g){const m=this.options,W=m.dataSorting,F=this.points,N=[],et=this.requireSorting,nt=n.length===F.length;let at,ht,pt,D=!0;if(this.xIncrement=null,n.forEach(function(M,Q){var U=l(M)&&this.pointClass.prototype.optionsToObject.call({series:this},M)||{};const tt=U.x;U.id||S(tt)?(U=this.findPointIndex(U,pt),U===-1||typeof U>"u"?N.push(M):F[U]&&M!==m.data[U]?(F[U].update(M,!1,null,!1),F[U].touched=!0,et&&(pt=U+1)):F[U]&&(F[U].touched=!0),(!nt||Q!==U||W&&W.enabled||this.hasDerivedData)&&(at=!0)):N.push(M)},this),at)for(n=F.length;n--;)(ht=F[n])&&!ht.touched&&ht.remove&&ht.remove(!1,g);else!nt||W&&W.enabled?D=!1:(n.forEach(function(M,Q){M===F[Q].y||F[Q].destroyed||F[Q].update(M,!1,null,!1)}),N.length=0);return F.forEach(function(M){M&&(M.touched=!1)}),D?(N.forEach(function(M){this.addPoint(M,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=C(this.xData),this.autoIncrement()),!0):!1}setData(n,g=!0,m,W){var F;const N=this,et=N.points,nt=et&&et.length||0,at=N.options,ht=N.chart,pt=at.dataSorting,D=N.xAxis,M=at.turboThreshold,Q=this.xData,U=this.yData;var tt=N.pointArrayMap;tt=tt&&tt.length;const dt=at.keys;let ct,xt=0,vt=1,gt=null;if(!ht.options.chart.allowMutatingData){at.data&&delete N.options.data,N.userOptions.data&&delete N.userOptions.data;var mt=K(!0,n)}if(n=mt||n||[],mt=n.length,pt&&pt.enabled&&(n=this.sortData(n)),ht.options.chart.allowMutatingData&&W!==!1&&mt&&nt&&!N.cropped&&!N.hasGroupedData&&N.visible&&!N.boosted&&(ct=this.updateData(n,m)),!ct){if(N.xIncrement=null,N.colorCounter=0,this.parallelArrays.forEach(function(Ct){N[Ct+"Data"].length=0}),M&&mt>M)if(gt=N.getFirstValidPoint(n),S(gt))for(m=0;m<mt;m++)Q[m]=this.autoIncrement(),U[m]=n[m];else if(r(gt))if(tt)if(gt.length===tt)for(m=0;m<mt;m++)Q[m]=this.autoIncrement(),U[m]=n[m];else for(m=0;m<mt;m++)W=n[m],Q[m]=W[0],U[m]=W.slice(1,tt+1);else if(dt&&(xt=dt.indexOf("x"),vt=dt.indexOf("y"),xt=0<=xt?xt:0,vt=0<=vt?vt:1),gt.length===1&&(vt=0),xt===vt)for(m=0;m<mt;m++)Q[m]=this.autoIncrement(),U[m]=n[m][vt];else for(m=0;m<mt;m++)W=n[m],Q[m]=W[xt],U[m]=W[vt];else d(12,!1,ht);else for(m=0;m<mt;m++)W={series:N},N.pointClass.prototype.applyOptions.apply(W,[n[m]]),N.updateParallelArrays(W,m);for(U&&$(U[0])&&d(14,!0,ht),N.data=[],N.options.data=N.userOptions.data=n,m=nt;m--;)(F=et[m])===null||F===void 0||F.destroy();D&&(D.minRange=D.userMinRange),N.isDirty=ht.isDirtyBox=!0,N.isDirtyData=!!et,m=!1}at.legendType==="point"&&(this.processData(),this.generatePoints()),g&&ht.redraw(m)}sortData(n){const g=this,m=g.options.dataSorting.sortKey||"y",W=function(F,N){return l(N)&&F.pointClass.prototype.optionsToObject.call({series:F},N)||{}};return n.forEach(function(F,N){n[N]=W(g,F),n[N].index=N},this),n.concat().sort((F,N)=>(F=u(m,F),N=u(m,N),N<F?-1:N>F?1:0)).forEach(function(F,N){F.x=N},this),g.linkedSeries&&g.linkedSeries.forEach(function(F){const N=F.options,et=N.data;N.dataSorting&&N.dataSorting.enabled||!et||(et.forEach(function(nt,at){et[at]=W(F,nt),n[at]&&(et[at].x=n[at].x,et[at].index=at)}),F.setData(et,!1))}),n}getProcessedData(n){const g=this;var m=g.xAxis,W=g.options;const F=W.cropThreshold,N=n||g.getExtremesFromAll||W.getExtremesFromAll,et=m==null?void 0:m.logarithmic,nt=g.isCartesian;let at=0,ht;n=g.xData,W=g.yData;let pt=!1;const D=n.length;if(m){var M=m.getExtremes();ht=M.min,M=M.max,pt=!(!m.categories||m.names.length)}if(nt&&g.sorted&&!N&&(!F||D>F||g.forceCrop)){if(n[D-1]<ht||n[0]>M)n=[],W=[];else if(g.yData&&(n[0]<ht||n[D-1]>M)){var Q=this.cropData(g.xData,g.yData,ht,M);n=Q.xData,W=Q.yData,at=Q.start,Q=!0}}return m=a([et?n.map(et.log2lin):n],()=>g.requireSorting&&!pt&&d(15,!1,g.chart)),{xData:n,yData:W,cropped:Q,cropStart:at,closestPointRange:m}}processData(n){const g=this.xAxis;if(this.isCartesian&&!this.isDirty&&!g.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,g,m,W,F){const N=n.length;let et,nt=0,at=N;for(F=j(F,this.cropShoulder),et=0;et<N;et++)if(n[et]>=m){nt=Math.max(0,et-F);break}for(m=et;m<N;m++)if(n[m]>W){at=m+F;break}return{xData:n.slice(nt,at),yData:g.slice(nt,at),start:nt,end:at}}generatePoints(){var n=this.options;const g=this.processedData||n.data,m=this.processedXData,W=this.processedYData,F=this.pointClass,N=m.length,et=this.cropStart||0,nt=this.hasGroupedData,at=n.keys,ht=[];n=n.dataGrouping&&n.dataGrouping.groupAll?et:0;let pt,D,M,Q=this.data;if(!Q&&!nt){var U=[];U.length=g.length,Q=this.data=U}for(at&&nt&&(this.options.keys=!1),M=0;M<N;M++)U=et+M,nt?(D=new F().init(this,[m[M]].concat(T(W[M]))),D.dataGroup=this.groupMap[n+M],D.dataGroup.options&&(D.options=D.dataGroup.options,e(D,D.dataGroup.options),delete D.dataLabels)):(D=Q[U])||typeof g[U]>"u"||(Q[U]=D=new F().init(this,g[U],m[M])),D&&(D.index=nt?n+M:U,ht[M]=D);if(this.options.keys=at,Q&&(N!==(pt=Q.length)||nt))for(M=0;M<pt;M++)M!==et||nt||(M+=N),Q[M]&&(Q[M].destroyElements(),Q[M].plotX=void 0);this.data=Q,this.points=ht,i(this,"afterGeneratePoints")}getXExtremes(n){return{min:k(n),max:C(n)}}getExtremes(n,g){const m=this.xAxis;var W=this.yAxis;const F=this.processedXData||this.xData,N=[],et=this.requireSorting?this.cropShoulder:0;W=W?W.positiveValuesOnly:!1;let nt,at=0,ht=0,pt=0;n=n||this.stackedYData||this.processedYData||[];const D=n.length;if(m){var M=m.getExtremes();at=M.min,ht=M.max}for(nt=0;nt<D;nt++){var Q=F[nt];M=n[nt];var U=(S(M)||r(M))&&(M.length||0<M||!W);if(Q=g||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!m||(F[nt+et]||Q)>=at&&(F[nt-et]||Q)<=ht,U&&Q)if(U=M.length)for(;U--;)S(M[U])&&(N[pt++]=M[U]);else N[pt++]=M}return n={activeYData:N,dataMin:k(N),dataMax:C(N)},i(this,"afterGetExtremes",{dataExtremes:n}),n}applyExtremes(){const n=this.getExtremes();return this.dataMin=n.dataMin,this.dataMax=n.dataMax,n}getFirstValidPoint(n){const g=n.length;let m=0,W=null;for(;W===null&&m<g;)W=n[m],m++;return W}translate(){var n;this.processedXData||this.processData(),this.generatePoints();var g=this.options;const m=g.stacking,W=this.xAxis,F=W.categories,N=this.enabledDataSorting,et=this.yAxis,nt=this.points,at=nt.length,ht=this.pointPlacementToXValue(),pt=!!ht,D=g.threshold;g=g.startFromThreshold?D:0;let M,Q,U,tt,dt=Number.MAX_VALUE;for(M=0;M<at;M++){const ct=nt[M],xt=ct.x;let vt,gt,mt=ct.y,Ct=ct.low;const bt=m&&((n=et.stacking)===null||n===void 0?void 0:n.stacks[(this.negStacks&&mt<(g?0:D)?"-":"")+this.stackKey]);Q=W.translate(xt,!1,!1,!1,!0,ht),ct.plotX=S(Q)?o(w(Q,-1e5,1e5)):void 0,m&&this.visible&&bt&&bt[xt]&&(tt=this.getStackIndicator(tt,xt,this.index),!ct.isNull&&tt.key&&(vt=bt[xt],gt=vt.points[tt.key]),vt&&r(gt)&&(Ct=gt[0],mt=gt[1],Ct===g&&tt.key===bt[xt].base&&(Ct=j(S(D)?D:et.min)),et.positiveValuesOnly&&l(Ct)&&0>=Ct&&(Ct=void 0),ct.total=ct.stackTotal=j(vt.total),ct.percentage=l(ct.y)&&vt.total?ct.y/vt.total*100:void 0,ct.stackY=mt,this.irregularWidths||vt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),ct.yBottom=l(Ct)?w(et.translate(Ct,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(mt=this.dataModify.modifyValue(mt,M));let wt;S(mt)&&ct.plotX!==void 0&&(wt=et.translate(mt,!1,!0,!1,!0),wt=S(wt)?w(wt,-1e5,1e5):void 0),ct.plotY=wt,ct.isInside=this.isPointInside(ct),ct.clientX=pt?o(W.translate(xt,!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&&N&&(ct.isNew=!0)}this.closestPointRangePx=dt,i(this,"afterTranslate")}getValidPoints(n,g,m){const W=this.chart;return(n||this.points||[]).filter(function(F){const{plotX:N,plotY:et}=F;return!m&&(F.isNull||!S(et))||g&&!W.isInsidePlot(N,et,{inverted:W.inverted})?!1:F.visible!==!1})}getClipBox(){const{chart:n,xAxis:g,yAxis:m}=this,W=K(n.clipBox);return g&&g.len!==n.plotSizeX&&(W.width=g.len),m&&m.len!==n.plotSizeY&&(W.height=m.len),W}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}setClip(){const{chart:n,group:g,markerGroup:m}=this,W=n.sharedClips,F=n.renderer,N=this.getClipBox(),et=this.getSharedClipKey();let nt=W[et];nt?nt.animate(N):W[et]=nt=F.clipRect(N),g&&g.clip(this.options.clip===!1?void 0:nt),m&&m.clip()}animate(n){const{chart:g,group:m,markerGroup:W}=this,F=g.inverted;var N=x(this.options.animation),et=[this.getSharedClipKey(),N.duration,N.easing,N.defer].join();let nt=g.sharedClips[et],at=g.sharedClips[et+"m"];if(n&&m)N=this.getClipBox(),nt?nt.attr("height",N.height):(N.width=0,F&&(N.x=g.plotHeight),nt=g.renderer.clipRect(N),g.sharedClips[et]=nt,at=g.renderer.clipRect({x:-99,y:-99,width:F?g.plotWidth+199:99,height:F?99:g.plotHeight+199}),g.sharedClips[et+"m"]=at),m.clip(nt),W&&W.clip(at);else if(nt&&!nt.hasClass("highcharts-animating")){et=this.getClipBox();const ht=N.step;W&&W.element.childNodes.length&&(N.step=function(pt,D){ht&&ht.apply(D,arguments),D.prop==="width"&&at&&at.element&&at.attr(F?"height":"width",pt+99)}),nt.addClass("highcharts-animating").animate(et,N)}}afterAnimate(){this.setClip(),rt(this.chart.sharedClips,(n,g,m)=>{n&&!this.chart.container.querySelector(`[clip-path="url(#${n.id})"]`)&&(n.destroy(),delete m[g])}),this.finishedAnimating=!0,i(this,"afterAnimate")}drawPoints(n=this.points){const g=this.chart,m=g.styledMode,{colorAxis:W,options:F}=this,N=F.marker,et=this[this.specialGroup||"markerGroup"],nt=this.xAxis,at=j(N.enabled,!nt||nt.isRadial?!0:null,this.closestPointRangePx>=N.enabledThreshold*N.radius);let ht,pt,D,M,Q,U;if(N.enabled!==!1||this._hasPointMarkers)for(ht=0;ht<n.length;ht++){pt=n[ht],M=(D=pt.graphic)?"animate":"attr";var tt=pt.marker||{};if(Q=!!pt.marker,(at&&typeof tt.enabled>"u"||tt.enabled)&&!pt.isNull&&pt.visible!==!1){const dt=j(tt.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=g.renderer.symbol(dt,U.x,U.y,U.width,U.height,Q?tt:N).add(et),this.enabledDataSorting&&g.hasRendered&&(D.attr({x:pt.startXPos}),M="animate")),D&&M==="animate"&&D[ct?"show":"hide"](ct).animate(U),D&&(tt=this.pointAttribs(pt,m||!pt.selected?void 0:"select"),m?W&&D.css({fill:tt.fill}):D[M](tt)),D&&D.addClass(pt.getClassName(),!0)}else D&&(pt.graphic=D.destroy())}}markerAttribs(n,g){const m=this.options;var W=m.marker;const F=n.marker||{},N=F.symbol||W.symbol,et={};let nt=j(F.radius,W&&W.radius);return g&&(W=W.states[g],g=F.states&&F.states[g],nt=j(g&&g.radius,W&&W.radius,nt&&nt+(W&&W.radiusPlus||0))),n.hasImage=N&&N.indexOf("url")===0,n.hasImage&&(nt=0),n=n.pos(),S(nt)&&n&&(et.x=n[0]-nt,et.y=n[1]-nt,m.crisp&&(et.x=Math.floor(et.x))),nt&&(et.width=et.height=2*nt),et}pointAttribs(n,g){var m=this.options.marker,W=n&&n.options;const F=W&&W.marker||{};var N=W&&W.color,et=n&&n.color;const nt=n&&n.zone&&n.zone.color;let at=this.color;return n=j(F.lineWidth,m.lineWidth),W=1,at=N||nt||et||at,N=F.fillColor||m.fillColor||at,et=F.lineColor||m.lineColor||at,g=g||"normal",m=m.states[g]||{},g=F.states&&F.states[g]||{},n=j(g.lineWidth,m.lineWidth,n+j(g.lineWidthPlus,m.lineWidthPlus,0)),N=g.fillColor||m.fillColor||N,et=g.lineColor||m.lineColor||et,W=j(g.opacity,m.opacity,W),{stroke:et,"stroke-width":n,fill:N,opacity:W}}destroy(n){const g=this,m=g.chart,W=/AppleWebKit\/533/.test(v.navigator.userAgent),F=g.data||[];let N,et,nt,at;for(i(g,"destroy",{keepEventsForUpdate:n}),this.removeEvents(n),(g.axisTypes||[]).forEach(function(ht){(at=g[ht])&&at.series&&(h(at.series,g),at.isDirty=at.forceRedraw=!0)}),g.legendItem&&g.chart.legend.destroyItem(g),et=F.length;et--;)(nt=F[et])&&nt.destroy&&nt.destroy();g.clips&&g.clips.forEach(ht=>ht.destroy()),R.clearTimeout(g.animationTimeout),rt(g,function(ht,pt){ht instanceof H&&!ht.survive&&(N=W&&pt==="group"?"hide":"destroy",ht[N]())}),m.hoverSeries===g&&(m.hoverSeries=void 0),h(m.series,g),m.orderItems("series"),rt(g,function(ht,pt){n&&pt==="hcEvents"||delete g[pt]})}applyZones(){const n=this,g=this.chart,m=g.renderer,W=this.zones,F=this.clips||[],N=this.graph,et=this.area,nt=Math.max(g.plotWidth,g.plotHeight),at=this[(this.zoneAxis||"y")+"Axis"],ht=g.inverted;let pt,D,M,Q,U,tt,dt,ct,xt,vt,gt,mt=!1;W.length&&(N||et)&&at&&typeof at.min<"u"?(U=at.reversed,tt=at.horiz,N&&!this.showLine&&N.hide(),et&&et.hide(),Q=at.getExtremes(),W.forEach(function(Ct,bt){pt=U?tt?g.plotWidth:0:tt?0:at.toPixels(Q.min)||0,pt=w(j(D,pt),0,nt),D=w(Math.round(at.toPixels(j(Ct.value,Q.max),!0)||0),0,nt),mt&&(pt=D=at.toPixels(Q.max)),dt=Math.abs(pt-D),ct=Math.min(pt,D),xt=Math.max(pt,D),at.isXAxis?(M={x:ht?xt:ct,y:0,width:dt,height:nt},tt||(M.x=g.plotHeight-M.x)):(M={x:0,y:ht?xt:ct,width:nt,height:dt},tt&&(M.y=g.plotWidth-M.y)),F[bt]?F[bt].animate(M):F[bt]=m.clipRect(M),vt=n["zone-area-"+bt],gt=n["zone-graph-"+bt],N&>&>.clip(F[bt]),et&&vt&&vt.clip(F[bt]),mt=Ct.value>Q.max,n.resetZones&&D===0&&(D=void 0)}),this.clips=F):n.visible&&(N&&N.show(),et&&et.show())}plotGroup(n,g,m,W,F){let N=this[n];const et=!N;return m={visibility:m,zIndex:W||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(m.opacity=this.opacity),et&&(this[n]=N=this.chart.renderer.g().add(F)),N.addClass("highcharts-"+g+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(N.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),N.attr(m)[et?"attr":"animate"](this.getPlotBox(g)),N}getPlotBox(n){let g=this.xAxis,m=this.yAxis;const W=this.chart;return n=W.inverted&&!W.polar&&g&&this.invertible!==!1&&n==="series",W.inverted&&(g=m,m=this.xAxis),{translateX:g?g.left:W.plotLeft,translateY:m?m.top:W.plotTop,rotation:n?90:0,rotationOriginX:n?(g.len-m.len)/2:0,rotationOriginY:n?(g.len+m.len)/2:0,scaleX:n?-1:1,scaleY:1}}removeEvents(n){n||s(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(g){g()}),this.eventsToUnbind.length=0)}render(){const n=this;var g=n.chart;const m=n.options,W=x(m.animation),F=n.visible?"inherit":"hidden",N=m.zIndex,et=n.hasRendered;g=g.seriesGroup;let nt=n.finishedAnimating?0:W.duration;i(this,"render"),n.plotGroup("group","series",F,N,g),n.markerGroup=n.plotGroup("markerGroup","markers",F,N,g),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(),et||(nt&&W.defer&&(nt+=W.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,g){const m=this.xAxis,W=this.yAxis,F=this.chart.inverted;return this.searchKDTree({clientX:F?m.len-n.chartY+m.pos:n.chartX-m.pos,plotY:F?W.len-n.chartX+W.pos:n.chartY-W.pos},g,n)}buildKDTree(n){function g(F,N,et){var nt=F&&F.length;let at;if(nt)return at=m.kdAxisArray[N%et],F.sort(function(ht,pt){return ht[at]-pt[at]}),nt=Math.floor(nt/2),{point:F[nt],left:g(F.slice(0,nt),N+1,et),right:g(F.slice(nt+1),N+1,et)}}this.buildingKdTree=!0;const m=this,W=-1<m.options.findNearestPointBy.indexOf("y")?2:1;delete m.kdTree,z(function(){m.kdTree=g(m.getValidPoints(null,!m.directTouch),W,W),m.buildingKdTree=!1},m.options.kdNow||n&&n.type==="touchstart"?0:1)}searchKDTree(n,g,m){function W(at,ht,pt,D){const M=ht.point;var Q=F.kdAxisArray[pt%D];let U=M;var tt=l(at[N])&&l(M[N])?Math.pow(at[N]-M[N],2):null,dt=l(at[et])&&l(M[et])?Math.pow(at[et]-M[et],2):null;return dt=(tt||0)+(dt||0),M.dist=l(dt)?Math.sqrt(dt):Number.MAX_VALUE,M.distX=l(tt)?Math.sqrt(tt):Number.MAX_VALUE,Q=at[Q]-M[Q],dt=0>Q?"left":"right",tt=0>Q?"right":"left",ht[dt]&&(dt=W(at,ht[dt],pt+1,D),U=dt[nt]<U[nt]?dt:M),ht[tt]&&Math.sqrt(Q*Q)<U[nt]&&(at=W(at,ht[tt],pt+1,D),U=at[nt]<U[nt]?at:U),U}const F=this,N=this.kdAxisArray[0],et=this.kdAxisArray[1],nt=g?"distX":"dist";if(g=-1<F.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(m),this.kdTree)return W(n,this.kdTree,g,g)}pointPlacementToXValue(){const{options:{pointPlacement:n,pointRange:g},xAxis:m}=this;let W=n;return W==="between"&&(W=m.reversed?-.5:.5),S(W)?W*(g||m.pointRange):0}isPointInside(n){const{chart:g,xAxis:m,yAxis:W}=this;return typeof n.plotY<"u"&&typeof n.plotX<"u"&&0<=n.plotY&&n.plotY<=(W?W.len:g.plotHeight)&&0<=n.plotX&&n.plotX<=(m?m.len:g.plotWidth)}drawTracker(){const n=this,g=n.options,m=g.trackByArea,W=[].concat(m?n.areaPath:n.graphPath),F=n.chart,N=F.pointer,et=F.renderer,nt=F.options.tooltip.snap,at=n.tracker,ht=function(D){g.enableMouseTracking&&F.hoverSeries!==n&&n.onMouseOver()},pt="rgba(192,192,192,"+(y?1e-4:.002)+")";at?at.attr({d:W}):n.graph&&(n.tracker=et.path(W).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(M){N.onTrackerMouseOut(M)}),g.cursor&&!F.styledMode&&D.css({cursor:g.cursor}),c)&&D.on("touchstart",ht)})),i(this,"afterDrawTracker")}addPoint(n,g,m,W,F){const N=this.options,et=this.data,nt=this.chart;var at=this.xAxis;at=at&&at.hasNames&&at.names;const ht=N.data,pt=this.xData;let D,M;g=j(g,!0);const Q={series:this};this.pointClass.prototype.applyOptions.apply(Q,[n]);const U=Q.x;if(M=pt.length,this.requireSorting&&U<pt[M-1])for(D=!0;M&&pt[M-1]>U;)M--;this.updateParallelArrays(Q,"splice",[M,0,0]),this.updateParallelArrays(Q,M),at&&Q.name&&(at[U]=Q.name),ht.splice(M,0,n),(D||this.processedData)&&(this.data.splice(M,0,null),this.processData()),N.legendType==="point"&&this.generatePoints(),m&&(et[0]&&et[0].remove?et[0].remove(!1):(et.shift(),this.updateParallelArrays(Q,"shift"),ht.shift())),F!==!1&&i(this,"addPoint",{point:Q}),this.isDirtyData=this.isDirty=!0,g&&nt.redraw(W)}removePoint(n,g,m){const W=this,F=W.data,N=F[n],et=W.points,nt=W.chart,at=function(){et&&et.length===F.length&&et.splice(n,1),F.splice(n,1),W.options.data.splice(n,1),W.updateParallelArrays(N||{series:W},"splice",[n,1]),N&&N.destroy(),W.isDirty=!0,W.isDirtyData=!0,g&&nt.redraw()};b(m,nt),g=j(g,!0),N?N.firePointEvent("remove",null,at):at()}remove(n,g,m,W){function F(){N.destroy(W),et.isDirtyLegend=et.isDirtyBox=!0,et.linkSeries(W),j(n,!0)&&et.redraw(g)}const N=this,et=N.chart;m!==!1?i(N,"remove",null,F):F()}update(n,g){n=p(n,this.userOptions),i(this,"update",{options:n});const m=this,W=m.chart;var F=m.userOptions;const N=m.initialType||m.type;var et=W.options.plotOptions;const nt=f[N].prototype;var at=m.finishedAnimating&&{animation:!1};const ht={};let pt,D=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],M=n.type||F.type||W.options.chart.type;const Q=!(this.hasDerivedData||M&&M!==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(M=M||N,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,at,{index:typeof F.index>"u"?m.index:F.index,pointStart:j(et&&et.series&&et.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]}),et=!1,f[M]){if(et=M!==m.type,m.remove(!1,!1,!1,!0),et)if(Object.setPrototypeOf)Object.setPrototypeOf(m,f[M].prototype);else{at=Object.hasOwnProperty.call(m,"hcEvents")&&m.hcEvents;for(pt in nt)m[pt]=void 0;e(m,f[M].prototype),at?m.hcEvents=at:delete m.hcEvents}}else d(17,!0,W,{missingModuleFor:M});if(D.forEach(function(U){m[U]=D[U]}),m.init(W,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:tt}=n;F=F.marker||{},!U||U.enabled!==!1&&F.symbol===U.symbol&&F.height===U.height&&F.width===U.width||(ht.graphic=1),tt&&tt.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&&W.legend.destroyItem(U))}m.initialType=N,W.linkSeries(),et&&m.linkedSeries.length&&(m.isDirtyData=!0),i(this,"afterUpdate"),j(g,!0)&&W.redraw(Q?void 0:!1)}setName(n){this.name=this.options.name=this.userOptions.name=n,this.chart.isDirtyLegend=!0}hasOptionChanged(n){const g=this.options[n],m=this.chart.options.plotOptions,W=this.userOptions[n];return W?g!==W:g!==j(m&&m[this.type]&&m[this.type][n],m&&m.series&&m.series[n],g)}onMouseOver(){const n=this.chart,g=n.hoverSeries;n.pointer.setHoverChartIndex(),g&&g!==this&&g.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),n.hoverSeries=this}onMouseOut(){const n=this.options,g=this.chart,m=g.tooltip,W=g.hoverPoint;g.hoverSeries=null,W&&W.onMouseOut(),this&&n.events.mouseOut&&i(this,"mouseOut"),!m||this.stickyTracking||m.shared&&!this.noSharedTooltip||m.hide(),g.series.forEach(function(F){F.setState("",!0)})}setState(n,g){const m=this;var W=m.options;const F=m.graph,N=W.inactiveOtherPoints,et=W.states,nt=j(et[n||"normal"]&&et[n||"normal"].animation,m.chart.options.chart.animation);let at=W.lineWidth,ht=0,pt=W.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(et[n]&&et[n].enabled===!1)return;if(n&&(at=et[n].lineWidth||at+(et[n].lineWidthPlus||0),pt=j(et[n].opacity,pt)),F&&!F.dashstyle&&S(at))for(W={"stroke-width":at},F.animate(W,nt);m["zone-graph-"+ht];)m["zone-graph-"+ht].animate(W,nt),ht+=1;N||[m.group,m.markerGroup,m.dataLabelsGroup,m.labelBySeries].forEach(function(D){D&&D.animate({opacity:pt},nt)})}g&&N&&m.points&&m.setAllPointsToState(n||void 0)}setAllPointsToState(n){this.points.forEach(function(g){g.setState&&g.setState(n)})}setVisible(n,g){const m=this,W=m.chart,F=W.options.chart.ignoreHiddenSeries,N=m.visible,et=(m.visible=n=m.options.visible=m.userOptions.visible=typeof n>"u"?!N:n)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(nt){m[nt]&&m[nt][et]()}),(W.hoverSeries===m||(W.hoverPoint&&W.hoverPoint.series)===m)&&m.onMouseOut(),m.legendItem&&W.legend.colorizeItem(m,n),m.isDirty=!0,m.options.stacking&&W.series.forEach(function(nt){nt.options.stacking&&nt.visible&&(nt.isDirty=!0)}),m.linkedSeries.forEach(function(nt){nt.setVisible(n,!1)}),F&&(W.isDirtyBox=!0),i(m,et),g!==!1&&W.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,g,m={}){return m.series=this,m.visiblePlotOnly=!0,this.chart.isInsidePlot(n,g,m)}drawLegendSymbol(n,g){var m;(m=Z[this.options.legendSymbol||"rectangle"])===null||m===void 0||m.call(this,n,g)}}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}),ot(A,"Core/Chart/Chart.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/Axis.js"],A["Core/Defaults.js"],A["Core/Templating.js"],A["Core/Foundation.js"],A["Core/Globals.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Time.js"],A["Core/Utilities.js"],A["Core/Renderer/HTML/AST.js"]],function(B,P,G,q,Z,X,Y,O,H,R,x,b,E){const{animate:L,animObject:c,setAnimation:y}=B,{defaultOptions:v,defaultTime:f}=G,{numberFormat:C}=q,{registerEventOptions:k}=Z,{charts:w,doc:o,marginNames:l,svg:p,win:h}=X,{seriesTypes:d}=H,{addEvent:e,attr:t,createElement:i,css:a,defined:u,diffObjects:_,discardElement:r,erase:S,error:$,extend:K,find:rt,fireEvent:j,getStyle:s,isArray:T,isNumber:z,isObject:I,isString:V,merge:n,objectEach:g,pick:m,pInt:W,relativeLength:F,removeEvent:N,splat:et,syncTimeout:nt,uniqueKey:at}=b;class ht{static chart(D,M,Q){return new ht(D,M,Q)}constructor(D,M,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,M,Q)}getArgs(D,M,Q){V(D)||D.nodeName?(this.renderTo=D,this.init(M,Q)):this.init(D,M)}setZoomOptions(){const D=this.options.chart,M=D.zooming;this.zooming=Object.assign(Object.assign({},M),{type:m(D.zoomType,M.type),key:m(D.zoomKey,M.key),pinchType:m(D.pinchType,M.pinchType),singleTouch:m(D.zoomBySingleTouch,M.singleTouch,!1),resetButton:n(M.resetButton,D.resetZoomButton)})}init(D,M){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=M,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||C,this.styledMode=U.styledMode,this.hasCartesianSeries=U.showAxes,this.index=w.length,w.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 M=this.options.chart;M=D.type||M.type;const Q=d[M];return Q||$(17,!0,this,{missingModuleFor:M}),M=new Q,typeof M.init=="function"&&M.init(this,D),M}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,M){return D.linkedSeries.length||M.linkedSeries.length?M.linkedSeries.length-D.linkedSeries.length:0})}orderItems(D,M=0){const Q=this[D],U=this.options[D]=et(this.options[D]).slice();if(D=this.userOptions[D]=this.userOptions[D]?et(this.userOptions[D]).slice():[],this.hasRendered&&(U.splice(M),D.splice(M)),Q)for(let tt=M,dt=Q.length;tt<dt;++tt)(M=Q[tt])&&(M.index=tt,M instanceof O&&(M.name=M.getName()),M.options.isInternal||(U[tt]=M.options,D[tt]=M.userOptions))}isInsidePlot(D,M,Q={}){const{inverted:U,plotBox:tt,plotLeft:dt,plotTop:ct,scrollablePlotBox:xt}=this;var vt=0;let gt=0;Q.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:vt,scrollTop:gt}=this.scrollingContainer);const mt=Q.series,Ct=Q.visiblePlotOnly&&xt||tt;var bt=Q.inverted?M:D;if(M=Q.inverted?D:M,D={x:bt,y:M,isInsidePlot:!0,options:Q},!Q.ignoreX){const wt=mt&&(U&&!this.polar?mt.yAxis:mt.xAxis)||{pos:dt,len:1/0};bt=Q.paneCoordinates?wt.pos+bt:dt+bt,bt>=Math.max(vt+dt,wt.pos)&&bt<=Math.min(vt+dt+Ct.width,wt.pos+wt.len)||(D.isInsidePlot=!1)}return!Q.ignoreY&&D.isInsidePlot&&(vt=!U&&Q.axis&&!Q.axis.isXAxis&&Q.axis||mt&&(U?mt.xAxis:mt.yAxis)||{pos:ct,len:1/0},Q=Q.paneCoordinates?vt.pos+M:ct+M,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 M=this.hasCartesianSeries?this.axes:this.colorAxis||[],Q=this.series,U=this.pointer,tt=this.legend,dt=this.userOptions.legend,ct=this.renderer,xt=ct.isHidden(),vt=[];let gt,mt,Ct=this.isDirtyBox,bt=this.isDirtyLegend,wt;for(ct.rootFontSize=ct.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),y(this.hasRendered?D:!1,this),xt&&this.temporaryDisplay(),this.layOutTitles(!1),D=Q.length;D--;)if(wt=Q[D],(wt.options.stacking||wt.options.centerInCategory)&&(mt=!0,wt.isDirty)){gt=!0;break}if(gt)for(D=Q.length;D--;)wt=Q[D],wt.options.stacking&&(wt.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&&tt&&tt.options.enabled&&(tt.render(),this.isDirtyLegend=!1),mt&&this.getStacks(),M.forEach(function(Mt){Mt.updateNames(),Mt.setScale()}),this.getMargins(),M.forEach(function(Mt){Mt.isDirty&&(Ct=!0)}),M.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||mt)&&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"),xt&&this.temporaryDisplay(!0),vt.forEach(function(Mt){Mt.call()})}get(D){function M(tt){return tt.id===D||tt.options&&tt.options.id===D}const Q=this.series;let U=rt(this.axes,M)||rt(this.series,M);for(let tt=0;!U&&tt<Q.length;tt++)U=rt(Q[tt].points||[],M);return U}getAxes(){const D=this.options;j(this,"getAxes");for(const M of["xAxis","yAxis"]){const Q=D[M]=et(D[M]||{});for(const U of Q)new P(this,U,M)}j(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((D,M)=>(M.getPointsCollection().forEach(Q=>{m(Q.selectedStaging,Q.selected)&&D.push(Q)}),D),[])}getSelectedSeries(){return this.series.filter(function(D){return D.selected})}setTitle(D,M,Q){this.applyDescription("title",D),this.applyDescription("subtitle",M),this.applyDescription("caption",void 0),this.layOutTitles(Q)}applyDescription(D,M){const Q=this,U=this.options[D]=n(this.options[D],M);let tt=this[D];tt&&M&&(this[D]=tt=tt.destroy()),U&&!tt&&(tt=this.renderer.text(U.text,0,0,U.useHTML).attr({align:U.align,class:"highcharts-"+D,zIndex:U.zIndex||4}).add(),tt.update=function(dt,ct){Q.applyDescription(D,dt),Q.layOutTitles(ct)},this.styledMode||tt.css(K(D==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},U.style)),this[D]=tt)}layOutTitles(D=!0){const M=[0,0,0],Q=this.renderer,U=this.spacingBox;["title","subtitle","caption"].forEach(function(dt){const ct=this[dt],xt=this.options[dt],vt=xt.verticalAlign||"top";if(dt=dt==="title"?vt==="top"?-3:0:vt==="top"?M[0]+2:0,ct){ct.css({width:(xt.width||U.width+(xt.widthAdjust||0))+"px"});const gt=Q.fontMetrics(ct).b,mt=Math.round(ct.getBBox(xt.useHTML).height);ct.align(K({y:vt==="bottom"?gt:dt+gt,height:mt},xt),!1,"spacingBox"),xt.floating||(vt==="top"?M[0]=Math.ceil(M[0]+mt):vt==="bottom"&&(M[2]=Math.ceil(M[2]+mt)))}},this),M[0]&&(this.options.title.verticalAlign||"top")==="top"&&(M[0]+=this.options.title.margin),M[2]&&this.options.caption.verticalAlign==="bottom"&&(M[2]+=this.options.caption.margin);const tt=!this.titleOffset||this.titleOffset.join(",")!==M.join(",");this.titleOffset=M,j(this,"afterLayOutTitles"),!this.isDirtyBox&&tt&&(this.isDirtyBox=this.isDirtyLegend=tt,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 M=D.width;D=D.height;const Q=this.getContainerBox();this.chartWidth=Math.max(0,M||Q.width||600),this.chartHeight=Math.max(0,F(D,this.chartWidth)||(1<Q.height?Q.height:400)),this.containerBox=Q}temporaryDisplay(D){let M=this.renderTo;if(D)for(;M&&M.style;)M.hcOrigStyle&&(a(M,M.hcOrigStyle),delete M.hcOrigStyle),M.hcOrigDetached&&(o.body.removeChild(M),M.hcOrigDetached=!1),M=M.parentNode;else for(;M&&M.style&&(o.body.contains(M)||M.parentNode||(M.hcOrigDetached=!0,o.body.appendChild(M)),(s(M,"display",!1)==="none"||M.hcOricDetached)&&(M.hcOrigStyle={display:M.style.display,height:M.style.height,overflow:M.style.overflow},D={display:"block",overflow:"hidden"},M!==this.renderTo&&(D.height=0),a(M,D),M.offsetWidth||M.style.setProperty("display","block","important")),M=M.parentNode,M!==o.body););}setClassName(D){this.container.className="highcharts-container "+(D||"")}getContainer(){const D=this.options,M=D.chart;var Q=at();let U,tt=this.renderTo;tt||(this.renderTo=tt=M.renderTo),V(tt)&&(this.renderTo=tt=o.getElementById(tt)),tt||$(13,!0,this);var dt=W(t(tt,"data-highcharts-chart"));z(dt)&&w[dt]&&w[dt].hasRendered&&w[dt].destroy(),t(tt,"data-highcharts-chart",this.index),tt.innerHTML=E.emptyHTML,M.skipClone||tt.offsetWidth||this.temporaryDisplay(),this.getChartSize(),dt=this.chartWidth;const ct=this.chartHeight;if(a(tt,{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"},M.style||{})),this.container=Q=i("div",{id:Q},U,tt),this._cursor=Q.style.cursor,this.renderer=new(M.renderer||!p?Y.getRendererType(M.renderer):R)(Q,dt,ct,void 0,M.forExport,D.exporting&&D.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),y(void 0,this),this.setClassName(M.className),this.styledMode)for(const xt in D.defs)this.renderer.definition(D.defs[xt]);else this.renderer.setStyle(M.style);this.renderer.chartIndex=this.index,j(this,"afterGetContainer")}getMargins(D){const{spacing:M,margin:Q,titleOffset:U}=this;this.resetMargins(),U[0]&&!u(Q[0])&&(this.plotTop=Math.max(this.plotTop,U[0]+M[0])),U[2]&&!u(Q[2])&&(this.marginBottom=Math.max(this.marginBottom,U[2]+M[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Q,M),j(this,"getMargins"),D||this.getAxisMargins()}getAxisMargins(){const D=this,M=D.axisOffset=[0,0,0,0],Q=D.colorAxis,U=D.margin,tt=function(dt){dt.forEach(function(ct){ct.visible&&ct.getOffset()})};D.hasCartesianSeries?tt(D.axes):Q&&Q.length&&tt(Q),l.forEach(function(dt,ct){u(U[ct])||(D[dt]+=M[ct])}),D.setChartSize()}getOptions(){return _(this.userOptions,v)}reflow(D){const M=this;var Q=M.options.chart;Q=u(Q.width)&&u(Q.height);const U=M.containerBox,tt=M.getContainerBox();delete M.pointer.chartPosition,!Q&&!M.isPrinting&&U&&tt.width&&((tt.width!==U.width||tt.height!==U.height)&&(b.clearTimeout(M.reflowTimeout),M.reflowTimeout=nt(function(){M.container&&M.setSize(void 0,void 0,!1)},D?100:0)),M.containerBox=tt)}setReflow(){const D=this;var M=Q=>{var U;!((U=D.options)===null||U===void 0)&&U.chart.reflow&&D.hasLoaded&&D.reflow(Q)};typeof ResizeObserver=="function"?new ResizeObserver(M).observe(D.renderTo):(M=e(h,"resize",M),e(this,"destroy",M))}setSize(D,M,Q){const U=this,tt=U.renderer;U.isResizing+=1,y(Q,U),Q=tt.globalAnimation,U.oldChartHeight=U.chartHeight,U.oldChartWidth=U.chartWidth,typeof D<"u"&&(U.options.chart.width=D),typeof M<"u"&&(U.options.chart.height=M),U.getChartSize(),U.styledMode||(Q?L:a)(U.container,{width:U.chartWidth+"px",height:U.chartHeight+"px"},Q),U.setChartSize(!0),tt.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 M=this.inverted;const Q=this.renderer;var U=this.chartWidth,tt=this.chartHeight;const dt=this.options.chart,ct=this.spacing,xt=this.clipOffset;let vt,gt,mt,Ct;this.plotLeft=vt=Math.round(this.plotLeft),this.plotTop=gt=Math.round(this.plotTop),this.plotWidth=mt=Math.max(0,Math.round(U-vt-this.marginRight)),this.plotHeight=Ct=Math.max(0,Math.round(tt-gt-this.marginBottom)),this.plotSizeX=M?Ct:mt,this.plotSizeY=M?mt:Ct,this.plotBorderWidth=dt.plotBorderWidth||0,this.spacingBox=Q.spacingBox={x:ct[3],y:ct[0],width:U-ct[3]-ct[1],height:tt-ct[0]-ct[2]},this.plotBox=Q.plotBox={x:vt,y:gt,width:mt,height:Ct},M=2*Math.floor(this.plotBorderWidth/2),U=Math.ceil(Math.max(M,xt[3])/2),tt=Math.ceil(Math.max(M,xt[0])/2),this.clipBox={x:U,y:tt,width:Math.floor(this.plotSizeX-Math.max(M,xt[1])/2-U),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(M,xt[2])/2-tt))},D||(this.axes.forEach(function(bt){bt.setAxisSize(),bt.setAxisTranslation()}),Q.alignElements()),j(this,"afterSetChartSize",{skipAxes:D})}resetMargins(){j(this,"resetMargins");const D=this,M=D.options.chart;["margin","spacing"].forEach(function(Q){const U=M[Q],tt=I(U)?U:[U,U,U,U];["Top","Right","Bottom","Left"].forEach(function(dt,ct){D[Q][ct]=m(M[Q+dt],tt[ct])})}),l.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,M=this.renderer,Q=this.chartWidth,U=this.chartHeight,tt=this.styledMode,dt=this.plotBGImage;var ct=D.backgroundColor;const xt=D.plotBackgroundColor,vt=D.plotBackgroundImage,gt=this.plotLeft,mt=this.plotTop,Ct=this.plotWidth,bt=this.plotHeight,wt=this.plotBox,Mt=this.clipRect,Et=this.clipBox;let _t=this.chartBackground,zt=this.plotBackground,$t=this.plotBorder,Ot,Xt,Rt="animate";_t||(this.chartBackground=_t=M.rect().addClass("highcharts-background").add(),Rt="attr"),tt?Ot=Xt=_t.strokeWidth():(Ot=D.borderWidth||0,Xt=Ot+(D.shadow?8:0),ct={fill:ct||"none"},(Ot||_t["stroke-width"])&&(ct.stroke=D.borderColor,ct["stroke-width"]=Ot),_t.attr(ct).shadow(D.shadow)),_t[Rt]({x:Xt/2,y:Xt/2,width:Q-Xt-Ot%2,height:U-Xt-Ot%2,r:D.borderRadius}),Rt="animate",zt||(Rt="attr",this.plotBackground=zt=M.rect().addClass("highcharts-plot-background").add()),zt[Rt](wt),tt||(zt.attr({fill:xt||"none"}).shadow(D.plotShadow),vt&&(dt?(vt!==dt.attr("href")&&dt.attr("href",vt),dt.animate(wt)):this.plotBGImage=M.image(vt,gt,mt,Ct,bt).add())),Mt?Mt.animate({width:Et.width,height:Et.height}):this.clipRect=M.clipRect(Et),Rt="animate",$t||(Rt="attr",this.plotBorder=$t=M.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),tt||$t.attr({stroke:D.plotBorderColor,"stroke-width":D.plotBorderWidth||0,fill:"none"}),$t[Rt]($t.crisp({x:gt,y:mt,width:Ct,height:bt},-$t.strokeWidth())),this.isDirtyBox=!1,j(this,"afterDrawChartBox")}propFromSeries(){const D=this,M=D.options.chart,Q=D.options.series;let U,tt,dt;["inverted","angular","polar"].forEach(function(ct){for(tt=d[M.type],dt=M[ct]||tt&&tt.prototype[ct],U=Q&&Q.length;!dt&&U--;)(tt=d[Q[U].type])&&tt.prototype[ct]&&(dt=!0);D[ct]=dt})}linkSeries(D){const M=this,Q=M.series;Q.forEach(function(U){U.linkedSeries.length=0}),Q.forEach(function(U){let tt=U.options.linkedTo;V(tt)&&(tt=tt===":previous"?M.series[U.index-1]:M.get(tt))&&tt.linkedParent!==U&&(tt.linkedSeries.push(U),U.linkedParent=tt,tt.enabledDataSorting&&U.setDataSortingOptions(),U.visible=m(U.options.visible,tt.options.visible,U.visible))}),j(this,"afterLinkSeries",{isUpdating:D})}renderSeries(){this.series.forEach(function(D){D.translate(),D.render()})}render(){const D=this.axes,M=this.colorAxis,Q=this.renderer,U=function(gt){gt.forEach(function(mt){mt.visible&&mt.render()})};let tt=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 tt=21,!0});const ct=this.plotHeight=Math.max(this.plotHeight-tt,0);D.forEach(function(gt){gt.setScale()}),this.getAxisMargins();const xt=1.1<dt/this.plotWidth,vt=1.05<ct/this.plotHeight;(xt||vt)&&(D.forEach(function(gt){(gt.horiz&&xt||!gt.horiz&&vt)&>.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?U(D):M&&M.length&&U(M),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 M=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}),M.styledMode||this.credits.css(Q.style),this.credits.add().align(Q.position),this.credits.update=function(U){M.credits=M.credits.destroy(),M.addCredits(U)})}destroy(){const D=this,M=D.axes,Q=D.series,U=D.container,tt=U&&U.parentNode;let dt;for(j(D,"destroy"),D.renderer.forExport?S(w,D):w[D.index]=void 0,X.chartCount--,D.renderTo.removeAttribute("data-highcharts-chart"),N(D),dt=M.length;dt--;)M[dt]=M[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 xt=D[ct];xt&&xt.destroy&&(D[ct]=xt.destroy())}),U&&(U.innerHTML=E.emptyHTML,N(U),tt&&r(U)),g(D,function(ct,xt){delete D[xt]})}firstRender(){const D=this,M=D.options;D.getContainer(),D.resetMargins(),D.setChartSize(),D.propFromSeries(),D.getAxes();const Q=T(M.series)?M.series:[];M.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:M}=this;D&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(M&&M.element.textContent||"").replace(/</g,"<")}),D.accessibility&&D.accessibility.enabled===!1||$('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,M,Q){const U=this;let tt;return D&&(M=m(M,!0),j(U,"addSeries",{options:D},function(){tt=U.initSeries(D),U.isDirtyLegend=!0,U.linkSeries(),tt.enabledDataSorting&&tt.setData(D.data,!1),j(U,"afterAddSeries",{series:tt}),M&&U.redraw(Q)})),tt}addAxis(D,M,Q,U){return this.createAxis(M?"xAxis":"yAxis",{axis:D,redraw:Q,animation:U})}addColorAxis(D,M,Q){return this.createAxis("colorAxis",{axis:D,redraw:M,animation:Q})}createAxis(D,M){return D=new P(this,M.axis,D),m(M.redraw,!0)&&this.redraw(M.animation),D}showLoading(D){const M=this,Q=M.options,U=Q.loading,tt=function(){dt&&a(dt,{left:M.plotLeft+"px",top:M.plotTop+"px",width:M.plotWidth+"px",height:M.plotHeight+"px"})};let dt=M.loadingDiv,ct=M.loadingSpan;dt||(M.loadingDiv=dt=i("div",{className:"highcharts-loading highcharts-loading-hidden"},null,M.container)),ct||(M.loadingSpan=ct=i("span",{className:"highcharts-loading-inner"},null,dt),e(M,"redraw",tt)),dt.className="highcharts-loading",E.setElementHTML(ct,m(D,Q.lang.loading,"")),M.styledMode||(a(dt,K(U.style,{zIndex:10})),a(ct,U.labelStyle),M.loadingShown||(a(dt,{opacity:0,display:""}),L(dt,{opacity:U.style.opacity||.5},{duration:U.showDuration||0}))),M.loadingShown=!0,tt()}hideLoading(){const D=this.options,M=this.loadingDiv;M&&(M.className="highcharts-loading highcharts-loading-hidden",this.styledMode||L(M,{opacity:0},{duration:D.loading.hideDuration||100,complete:function(){a(M,{display:"none"})}})),this.loadingShown=!1}update(D,M,Q,U){const tt=this,dt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ct=D.isResponsiveOptions,xt=[];let vt,gt;j(tt,"update",{options:D}),ct||tt.setResponsive(!1,!0),D=_(D,tt.options),tt.userOptions=n(tt.userOptions,D);var mt=D.chart;if(mt){if(n(!0,tt.options.chart,mt),this.setZoomOptions(),"className"in mt&&tt.setClassName(mt.className),"inverted"in mt||"polar"in mt||"type"in mt){tt.propFromSeries();var Ct=!0}"alignTicks"in mt&&(Ct=!0),"events"in mt&&k(this,mt),g(mt,function(bt,wt){tt.propsRequireUpdateSeries.indexOf("chart."+wt)!==-1&&(vt=!0),tt.propsRequireDirtyBox.indexOf(wt)!==-1&&(tt.isDirtyBox=!0),tt.propsRequireReflow.indexOf(wt)!==-1&&(ct?tt.isDirtyBox=!0:gt=!0)}),!tt.styledMode&&mt.style&&tt.renderer.setStyle(tt.options.chart.style||{})}!tt.styledMode&&D.colors&&(this.options.colors=D.colors),D.time&&(this.time===f&&(this.time=new x(D.time)),n(!0,tt.options.time,D.time)),g(D,function(bt,wt){tt[wt]&&typeof tt[wt].update=="function"?tt[wt].update(bt,!1):typeof tt[dt[wt]]=="function"?tt[dt[wt]](bt):wt!=="colors"&&tt.collectionsWithUpdate.indexOf(wt)===-1&&n(!0,tt.options[wt],D[wt]),wt!=="chart"&&tt.propsRequireUpdateSeries.indexOf(wt)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(bt){D[bt]&&(et(D[bt]).forEach(function(wt,Mt){const Et=u(wt.id);let _t;Et&&(_t=tt.get(wt.id)),!_t&&tt[bt]&&(_t=tt[bt][m(wt.index,Mt)])&&(Et&&u(_t.options.id)||_t.options.isInternal)&&(_t=void 0),_t&&_t.coll===bt&&(_t.update(wt,!1),Q&&(_t.touched=!0)),!_t&&Q&&tt.collectionsWithInit[bt]&&(tt.collectionsWithInit[bt][0].apply(tt,[wt].concat(tt.collectionsWithInit[bt][1]||[]).concat([!1])).touched=!0)}),Q&&tt[bt].forEach(function(wt){wt.touched||wt.options.isInternal?delete wt.touched:xt.push(wt)}))}),xt.forEach(function(bt){bt.chart&&bt.remove&&bt.remove(!1)}),Ct&&tt.axes.forEach(function(bt){bt.update({},!1)}),vt&&tt.getSeriesOrderByLinks().forEach(function(bt){bt.chart&&bt.update({},!1)},this),Ct=mt&&mt.width,mt=mt&&(V(mt.height)?F(mt.height,Ct||tt.chartWidth):mt.height),gt||z(Ct)&&Ct!==tt.chartWidth||z(mt)&&mt!==tt.chartHeight?tt.setSize(Ct,mt,U):m(M,!0)&&tt.redraw(U),j(tt,"afterUpdate",{options:D,redraw:M,animation:U})}setSubtitle(D,M){this.applyDescription("subtitle",D),this.layOutTitles(M)}setCaption(D,M){this.applyDescription("caption",D),this.layOutTitles(M)}showResetZoom(){function D(){M.zoomOut()}const M=this,Q=v.lang,U=M.zooming.resetButton,tt=U.theme,dt=U.relativeTo==="chart"||U.relativeTo==="spacingBox"?null:"scrollablePlotBox";j(this,"beforeShowResetZoom",null,function(){M.resetZoomButton=M.renderer.button(Q.resetZoom,null,null,D,tt).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 M=this,Q=M.pointer;let U=!1,tt;!D||D.resetSelection?(M.axes.forEach(function(ct){tt=ct.zoom()}),Q.initiated=!1):D.xAxis.concat(D.yAxis).forEach(function(ct){const xt=ct.axis;(Q[xt.isXAxis?"zoomX":"zoomY"]&&u(Q.mouseDownX)&&u(Q.mouseDownY)&&M.isInsidePlot(Q.mouseDownX-M.plotLeft,Q.mouseDownY-M.plotTop,{axis:xt})||!u(M.inverted?Q.mouseDownX:Q.mouseDownY))&&(tt=xt.zoom(ct.min,ct.max),xt.displayBtn&&(U=!0))});const dt=M.resetZoomButton;U&&!dt?M.showResetZoom():!U&&I(dt)&&(M.resetZoomButton=dt.destroy()),tt&&M.redraw(m(M.options.chart.animation,D&&D.animation,100>M.pointCount))}pan(D,M){const Q=this,U=Q.hoverPoints;M=typeof M=="object"?M:{enabled:M,type:"x"};const tt=Q.options.chart;tt&&tt.panning&&(tt.panning=M);const dt=M.type;let ct;j(this,"pan",{originalEvent:D},function(){U&&U.forEach(function(gt){gt.setState()});let xt=Q.xAxis;dt==="xy"?xt=xt.concat(Q.yAxis):dt==="y"&&(xt=Q.yAxis);const vt={};xt.forEach(function(gt){if(gt.options.panningEnabled&&!gt.options.isInternal){var mt=gt.horiz,Ct=D[mt?"chartX":"chartY"];mt=mt?"mouseDownX":"mouseDownY";var bt=Q[mt],wt=gt.minPointOffset||0,Mt=gt.reversed&&!Q.inverted||!gt.reversed&&Q.inverted?-1:1,Et=gt.getExtremes(),_t=gt.toValue(bt-Ct,!0)+wt*Mt,zt=gt.toValue(bt+gt.len-Ct,!0)-(wt*Mt||gt.isXAxis&>.pointRangePadding||0),$t=zt<_t;Mt=gt.hasVerticalPanning(),bt=$t?zt:_t,_t=$t?_t:zt;var Ot=gt.panningState;!Mt||gt.isXAxis||Ot&&!Ot.isDirty||gt.series.forEach(function(Xt){var Rt=Xt.getProcessedData(!0);Rt=Xt.getExtremes(Rt.yData,!0),Ot||(Ot={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),z(Rt.dataMin)&&z(Rt.dataMax)&&(Ot.startMin=Math.min(m(Xt.options.threshold,1/0),Rt.dataMin,Ot.startMin),Ot.startMax=Math.max(m(Xt.options.threshold,-1/0),Rt.dataMax,Ot.startMax))}),Mt=Math.min(m(Ot&&Ot.startMin,Et.dataMin),wt?Et.min:gt.toValue(gt.toPixels(Et.min)-gt.minPixelPadding)),zt=Math.max(m(Ot&&Ot.startMax,Et.dataMax),wt?Et.max:gt.toValue(gt.toPixels(Et.max)+gt.minPixelPadding)),gt.panningState=Ot,gt.isOrdinal||(wt=Mt-bt,0<wt&&(_t+=wt,bt=Mt),wt=_t-zt,0<wt&&(_t=zt,bt-=wt),gt.series.length&&bt!==Et.min&&_t!==Et.max&&bt>=Mt&&_t<=zt&&(gt.setExtremes(bt,_t,!1,!1,{trigger:"pan"}),!Q.resetZoomButton&&bt!==Mt&&_t!==zt&&dt.match("y")&&(Q.showResetZoom(),gt.displayBtn=!1),ct=!0),vt[mt]=Ct)}}),g(vt,(gt,mt)=>{Q[mt]=gt}),ct&&Q.redraw(!1),a(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}),ot(A,"Extensions/ScrollablePlotArea.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/Axis.js"],A["Core/Chart/Chart.js"],A["Core/Series/Series.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z,X){const{stop:Y}=B,{addEvent:O,createElement:H,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 f=y[v.side].name,C=this[f],k;return this[f]=C-y[v.side].value,k=P.prototype.getPlotLinePath.apply(this,arguments),this[f]=C,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=H("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=H("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=H("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(f){(f.namespaceURI===L.SVG_NS?L.box:L.box.parentNode).appendChild(f),f.style.pointerEvents="auto"})})},G.prototype.applyFixed=function(){var E=!this.fixedDiv,L=this.options.chart,c=L.scrollablePlotArea,y=Z.getRendererType();E?(this.fixedDiv=H("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),f=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,f],["L",c,this.chartHeight],["L",y,this.chartHeight],["L",y,f],["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})}),ot(A,"Core/Axis/Stacking/StackItem.js",[A["Core/Templating.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{format:q}=B,{series:Z}=P,{destroyObjectProperties:X,fireEvent:Y,isNumber:O,pick:H}=G;class R{constructor(b,E,L,c,y){const v=b.chart.inverted,f=b.reversed;this.axis=b,b=this.isNegative=!!L!=!!f,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:H(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:f,axis:C,label:k,options:w,textAlign:o}=this,l=C.chart;L=this.getStackBox({xOffset:b,width:E,boxBottom:L,boxTop:c,defaultX:y,xAxis:v});var{verticalAlign:p}=f;if(k&&L){c=k.getBBox(),y=k.padding,v=H(w.overflow,"justify")==="justify",f.x=w.x||0,f.y=w.y||0;const{x:h,y:d}=this.adjustStackPosition({labelBox:c,verticalAlign:p,textAlign:o});L.x-=h,L.y-=d,k.align(f,!1,L),(p=l.isInsidePlot(k.alignAttr.x+f.x+h,k.alignAttr.y+f.y+d))||(v=!1),v&&Z.prototype.justifyDataLabel.call(C,k,f,k.alignAttr,c,L),k.attr({x:k.alignAttr.x,y:k.alignAttr.y,rotation:w.rotation,rotationOriginX:c.width/2,rotationOriginY:c.height/2}),H(!v&&w.crop,!0)&&(p=O(k.x)&&O(k.y)&&l.isInsidePlot(k.x-y+k.width,k.y)&&l.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:f,boxBottom:C}=b;var k=E.stacking.usePercentage?100:H(c,this.total,0);k=E.toPixels(k),b=b.xAxis||L.xAxis[0];const w=H(y,b.translate(this.x))+v;E=E.toPixels(C||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-w-f,width:E,height:f}:{x:w+b.transB-L.plotLeft,y:(o?k-E:k)-L.plotTop,width:f,height:E}}}return R}),ot(A,"Core/Axis/Stacking/StackingAxis.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/Axis.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Axis/Stacking/StackItem.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z){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 a=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?a.top:a.left,t?a.height:a.width].join())})}function Y(){const e=this.stacking;if(e){var t=e.stacks;l(t,function(i,a){C(i),t[a]=null}),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function O(){this.coll!=="yAxis"||this.stacking||(this.stacking=new h(this))}function H(e,t,i,a){return!f(e)||e.x!==t||a&&e.stackKey!==a?e={x:t,index:0,key:a,stackKey:a}:e.index++,e.key=[i,t,e.index].join(),e}function R(){const e=this,t=e.stackKey,i=e.yAxis.stacking.stacks,a=e.processedXData,u=e[e.options.stacking+"Stacker"];let _;u&&[t,"-"+t].forEach(r=>{let S=a.length,$;for(;S--;){var K=a[S];_=e.getStackIndicator(_,K,e.index,r),($=(K=i[r]&&i[r][K])&&K.points[_.key])&&u.call(e,$,K,S)}})}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&&l(e.stacks,(t,i)=>{i.slice(-5)==="group"&&(l(t,a=>a.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 a=this.processedXData,u=this.processedYData,_=[],r=u.length,S=this.options,$=S.threshold,K=p(S.startFromThreshold&&$,0);S=S.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,T=t.stacking.oldStacks,z,I;for(t.stacking.stacksTouched+=1,I=0;I<r;I++){var V=a[I],n=u[I],g=this.getStackIndicator(g,V,this.index),m=g.key,W=(z=j&&n<(K?0:$))?rt:e;s[W]||(s[W]={}),s[W][V]||(T[W]&&T[W][V]?(s[W][V]=T[W][V],s[W][V].total=null):s[W][V]=new q(t,t.options.stackLabels,!!z,V,S)),W=s[W][V],n!==null?(W.points[m]=W.points[this.index]=[p(W.cumulative,K)],f(W.cumulative)||(W.base=m),W.touched=t.stacking.stacksTouched,0<g.index&&this.singleStacks===!1&&(W.points[m][0]=W.points[this.index+","+V+",0"][0])):W.points[m]=W.points[this.index]=null,i==="percent"?(z=z?e:rt,j&&s[z]&&s[z][V]?(z=s[z][V],W.total=z.total=Math.max(z.total,W.total)+Math.abs(n)||0):W.total=v(W.total+(Math.abs(n)||0))):i==="group"?(w(n)&&(n=n[0]),n!==null&&(W.total=(W.total||0)+1)):W.total=v(W.total+(n||0)),W.cumulative=i==="group"?(W.total||1)-1:v(p(W.cumulative,K)+(n||0)),n!==null&&(W.points[m].push(W.cumulative),_[I]=W.cumulative,W.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:f,destroyObjectProperties:C,fireEvent:k,isArray:w,isNumber:o,objectEach:l,pick:p}=Z;class h{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){const t=this.axis,i=t.series,a=t.options.reversedStacks,u=i.length;let _,r;for(this.usePercentage=!1,r=u;r--;)_=i[a?r:u-r-1],_.setStackedPoints(),_.setGroupedPoints();for(r=0;r<u;r++)i[r].modifyStacks();k(t,"afterBuildStacks")}cleanStacks(){let t;this.oldStacks&&(t=this.stacks=this.oldStacks),l(t,function(i){l(i,function(a){a.cumulative=a.total})})}resetStacks(){l(this.stacks,t=>{l(t,(i,a)=>{o(i.touched)&&i.touched<this.stacksTouched?(i.destroy(),delete t[a]):(i.total=null,i.cumulative=null)})})}renderStackTotals(){var t=this.axis;const i=t.chart,a=i.renderer,u=this.stacks;t=L(i,t.options.stackLabels&&t.options.stackLabels.animation||!1);const _=this.stackTotalGroup=this.stackTotalGroup||a.g("stack-labels").attr({zIndex:6,opacity:0}).add();_.translate(i.plotLeft,i.plotTop),l(u,function(r){l(r,function(S){S.render(_)})}),_.animate({opacity:1},t)}}var d;return function(e){const t=[];e.compose=function(i,a,u){Z.pushUnique(t,i)&&(y(i,"init",O),y(i,"destroy",Y)),Z.pushUnique(t,a)&&(a.prototype.getStacks=X),Z.pushUnique(t,u)&&(i=u.prototype,i.getStackIndicator=H,i.modifyStacks=R,i.percentStacker=x,i.setGroupedPoints=b,i.setStackedPoints=E)}}(d||(d={})),d}),ot(A,"Series/Line/LineSeries.js",[A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{defined:q,merge:Z}=G;class X extends B{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const O=this,H=this.options,R=(this.gappedPath||this.getGraphPath).call(this),x=this.chart.styledMode;let b=[["graph","highcharts-graph"]];x||b[0].push(H.lineColor||this.color||"#cccccc",H.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":H.lineWidth||0,fill:O.fillGraph&&O.color||"none"},E[3]?c.dashstyle=E[3]:H.linecap!=="square"&&(c["stroke-linecap"]=c["stroke-linejoin"]="round"),y[v](c).shadow(2>L&&H.shadow)),y&&(y.startX=R.xMap,y.isArea=R.isArea)})}getGraphPath(O,H,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&&!H&&!R)),O.forEach(function(f,C){const k=f.plotX,w=f.plotY,o=O[C-1],l=f.isNull||typeof w!="number";(f.leftCliff||o&&o.rightCliff)&&!R&&(c=!0),l&&!q(H)&&0<C?c=!b.connectNulls:l&&!H?c=!0:(C===0||c?C=[["M",f.plotX,f.plotY]]:x.getPointSpline?C=[x.getPointSpline(O,f,C)]:y?(C=y===1?[["L",o.plotX,w]]:y===2?[["L",(o.plotX+k)/2,o.plotY],["L",(o.plotX+k)/2,w]]:[["L",k,o.plotY]],C.push(["L",k,w])):C=[["L",k,w]],L.push(f.x),y&&(L.push(f.x),y===2&&L.push(f.x)),E.push.apply(E,C),c=!1)}),E.xMap=L,x.graphPath=E}getZonesGraphs(O){return this.zones.forEach(function(H,R){R=["zone-graph-"+R,"highcharts-graph highcharts-zone-graph-"+R+" "+(H.className||"")],this.chart.styledMode||R.push(H.color||this.color,H.dashStyle||this.options.dashStyle),O.push(R)},this),O}}return X.defaultOptions=Z(B.defaultOptions,{legendSymbol:"lineMarker"}),P.registerSeriesType("line",X),X}),ot(A,"Series/Area/AreaSeries.js",[A["Core/Color/Color.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{seriesTypes:{line:q}}=P,{extend:Z,merge:X,objectEach:Y,pick:O}=G;class H 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 f=x[y];const C=f?"animate":"attr";f?(f.endX=x.preventGraphAnimation?null:b.xMap,f.animate({d:b})):(v.zIndex=0,f=x[y]=x.chart.renderer.path(b).addClass(c[1]).add(x.group),f.isArea=!0),x.chart.styledMode||(c[3]?v.fill=c[3]:(v.fill=c[2],v["fill-opacity"]=O(E.fillOpacity,.75))),f[C](v),f.startX=b.xMap,f.shiftUnit=E.step?2:1})}getGraphPath(x){var b=q.prototype.getGraphPath,E=this.options;const L=E.stacking,c=this.yAxis,y=[],v=[],f=this.index,C=c.stacking.stacks[this.stackKey],k=E.threshold,w=Math.round(c.getThreshold(E.threshold));E=O(E.connectNulls,L==="percent");var o=function(d,e,t){var i=x[d];d=L&&C[i.x].points[f];const a=i[t+"Null"]||0;t=i[t+"Cliff"]||0;let u,_;i=!0,t||a?(u=(a?d[0]:d[1])+t,_=d[0]+t,i=!!a):!L&&x[e]&&x[e].isNull&&(u=_=k),typeof u<"u"&&(v.push({plotX:l,plotY:u===null?w:c.getThreshold(u),isNull:i,isCliff:!0}),y.push({plotX:l,plotY:_===null?w:c.getThreshold(_),doCurve:!1}))};let l;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;l=O(x[d].rectPlotX,x[d].plotX);var h=L?O(x[d].yBottom,w):w;(!p||E)&&(E||o(d,d-1,"left"),p&&!L&&E||(v.push(x[d]),y.push({x:d,plotX:l,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],f={},C=y.series,k=C.length,w=y.options.reversedStacks?1:-1,o=C.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,f[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 l=C.map(p=>p.visible);L.forEach(function(p,h){let d=0,e,t;if(f[p]&&!f[p].isNull)E.push(f[p]),[-1,1].forEach(function(i){const a=i===1?"rightNull":"leftNull",u=v[L[h+i]];let _=0;if(u){let r=o;for(;0<=r&&r<k;){const S=C[r].index;e=u.points[S],e||(S===b.index?f[p][a]=!0:l[r]&&(t=v[p].points[S])&&(_-=t[1]-t[0])),r+=w}}f[p][i===1?"rightCliff":"leftCliff"]=_});else{let i=o;for(;0<=i&&i<k;){if(e=v[p].points[C[i].index]){d=e[1];break}i+=w}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 H.defaultOptions=X(q.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),Z(H.prototype,{singleStacks:!1}),P.registerSeriesType("area",H),H}),ot(A,"Series/Spline/SplineSeries.js",[A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P){const{line:G}=B.seriesTypes,{merge:q,pick:Z}=P;class X extends G{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(O,H,R){const x=H.plotX||0,b=H.plotY||0,E=O[R-1];R=O[R+1];let L,c,y;if(E&&!E.isNull&&E.doCurve!==!1&&!H.isCliff&&R&&!R.isNull&&R.doCurve!==!1&&!H.isCliff){O=E.plotY||0;var v=R.plotX||0;R=R.plotY||0;let f=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&&(f=(y-c)*(v-x)/(v-L)+b-y),c+=f,y+=f,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),H.rightContX=v,H.rightContY=y}return H=["C",Z(E.rightContX,E.plotX,0),Z(E.rightContY,E.plotY,0),Z(L,x,0),Z(c,b,0),x,b],E.rightContX=E.rightContY=void 0,H}}return X.defaultOptions=q(G.defaultOptions),B.registerSeriesType("spline",X),X}),ot(A,"Series/AreaSpline/AreaSplineSeries.js",[A["Series/Spline/SplineSeries.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{area:q,area:{prototype:Z}}=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:Z.getGraphPath,getStackPoints:Z.getStackPoints,drawGraph:Z.drawGraph}),P.registerSeriesType("areaspline",O),O}),ot(A,"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"}}),ot(A,"Series/Column/ColumnSeries.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Color/Color.js"],A["Series/Column/ColumnSeriesDefaults.js"],A["Core/Globals.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z,X,Y){const{animObject:O}=B,{parse:H}=P,{hasTouch:R,noop:x}=q,{clamp:b,defined:E,extend:L,fireEvent:c,isArray:y,isNumber:v,merge:f,pick:C,objectEach:k}=Y;class w extends Z{constructor(){super(...arguments),this.points=this.options=this.group=this.data=this.borderWidth=void 0}animate(l){const p=this,h=this.yAxis,d=h.pos,e=p.options,t=this.chart.inverted,i={},a=t?"translateX":"translateY";let u;l?(i.scaleY=.001,l=b(h.toPixels(e.threshold),d,d+h.len),t?i.translateX=l-h.len:i.translateY=l,p.clipBox&&p.setClip(),p.group.attr(i)):(u=Number(p.group.attr(a)),p.group.animate({scaleY:1},L(O(p.options.animation),{step:function(_,r){p.group&&(i[a]=u+r.pos*(d-u),p.group.attr(i))}})))}init(l,p){super.init.apply(this,arguments);const h=this;l=h.chart,l.hasRendered&&l.series.forEach(function(d){d.type===h.type&&(d.isDirty=!0)})}getColumnMetrics(){const l=this;var p=l.options;const h=l.xAxis,d=l.yAxis;var e=h.options.reversedStacks;e=h.reversed&&!e||!h.reversed&&e;const t={};let i,a=0;p.grouping===!1?a=1:l.chart.series.forEach(function(S){const $=S.yAxis,K=S.options;let rt;S.type!==l.type||!S.visible&&l.chart.options.chart.ignoreHiddenSeries||d.len!==$.len||d.pos!==$.pos||(K.stacking&&K.stacking!=="group"?(i=S.stackKey,typeof t[i]>"u"&&(t[i]=a++),rt=t[i]):K.grouping!==!1&&(rt=a++),S.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,r=(u-2*_)/(a||1);return p=Math.min(p.maxPointWidth||h.len,C(p.pointWidth,r*(1-2*p.pointPadding))),l.columnMetrics={width:p,offset:(r-p)/2+(_+((l.columnIndex||0)+(e?1:0))*r-u/2)*(e?-1:1),paddedWidth:r,columnCount:a},l.columnMetrics}crispCol(l,p,h,d){var e=this.borderWidth,t=-(e%2?.5:0);return e=e%2?.5:1,this.options.crisp&&(h=Math.round(l+h)+t,l=Math.round(l)+t,h-=l),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:l,y:p,width:h,height:d}}adjustForMissingColumns(l,p,h,d){const e=this.options.stacking;if(!h.isNull&&1<d.columnCount){const t=this.yAxis.options.reversedStacks;let i=0,a=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=a),_.hasValidPoints&&(t?a++:a--)):y(u)&&(u=Object.keys(_.points).filter(r=>!r.match(",")&&_.points[r]&&1<_.points[r].length).map(parseFloat).sort((r,S)=>S-r),i=u.indexOf(this.index),a=u.length))}}),l=(h.plotX||0)+((a-1)*d.paddedWidth+p)/2-p-i*d.paddedWidth}return l}translate(){const l=this,p=l.chart,h=l.options;var d=l.dense=2>l.closestPointRange*l.xAxis.transA;d=l.borderWidth=C(h.borderWidth,d?0:1);const e=l.xAxis,t=l.yAxis,i=h.threshold,a=C(h.minPointLength,5),u=l.getColumnMetrics(),_=u.width,r=l.pointXOffset=u.offset,S=l.dataMin,$=l.dataMax;let K=l.barW=Math.max(_,1+2*d),rt=l.translatedThreshold=t.getThreshold(i);p.inverted&&(rt-=.5),h.pointPadding&&(K=Math.ceil(K)),Z.prototype.translate.apply(l),l.points.forEach(function(j){const s=C(j.yBottom,rt);var T=999+Math.abs(s),z=j.plotX||0;T=b(j.plotY,-T,t.len+T);let I=Math.min(T,s),V=Math.max(T,s)-I,n=_,g=z+r,m=K;a&&Math.abs(V)<a&&(V=a,z=!t.reversed&&!j.negative||t.reversed&&j.negative,v(i)&&v($)&&j.y===i&&$<=i&&(t.min||0)<i&&(S!==$||(t.max||0)<=i)&&(z=!z,j.negative=!j.negative),I=Math.abs(I-rt)>a?s-a:rt-(z?a:0)),E(j.options.pointWidth)&&(n=m=Math.ceil(j.options.pointWidth),g-=Math.round((n-_)/2)),h.centerInCategory&&(g=l.adjustForMissingColumns(g,n,j,u)),j.barX=g,j.pointWidth=n,j.tooltipPos=p.inverted?[b(t.len+t.pos-p.plotLeft-T,t.pos-p.plotLeft,t.len+t.pos-p.plotLeft),e.len+e.pos-p.plotTop-g-m/2,V]:[e.left-p.plotLeft+g+m/2,b(T+t.pos-p.plotTop,t.pos-p.plotTop,t.len+t.pos-p.plotTop),V],j.shapeType=l.pointClass.prototype.shapeType||"roundedRect",j.shapeArgs=l.crispCol(g,j.isNull?rt:I,m,j.isNull?0:V)}),c(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(l,p){const h=this.options;var d=this.pointAttrToOptions||{},e=d.stroke||"borderColor";const t=d["stroke-width"]||"borderWidth";let i,a=l&&l.color||this.color,u=l&&l[e]||h[e]||a;d=l&&l.options.dashStyle||h.dashStyle;let _=l&&l[t]||h[t]||this[t]||0,r=C(l&&l.opacity,h.opacity,1);return l&&this.zones.length&&(i=l.getZone(),a=l.options.color||i&&(i.color||l.nonZonedColor)||this.color,i&&(u=i.borderColor||u,d=i.dashStyle||d,_=i.borderWidth||_)),p&&l&&(l=f(h.states[p],l.options.states&&l.options.states[p]||{}),p=l.brightness,a=l.color||typeof p<"u"&&H(a).brighten(l.brightness).get()||a,u=l[e]||u,_=l[t]||_,d=l.dashStyle||d,r=C(l.opacity,r)),e={fill:a,stroke:u,"stroke-width":_,opacity:r},d&&(e.dashstyle=d),e}drawPoints(l=this.points){const p=this,h=this.chart,d=p.options,e=h.renderer,t=d.animationLimit||250;let i;l.forEach(function(a){let u=a.graphic,_=!!u,r=u&&h.pointCount<t?"animate":"attr";v(a.plotY)&&a.y!==null?(i=a.shapeArgs,u&&a.hasNewShapeType()&&(u=u.destroy()),p.enabledDataSorting&&(a.startXPos=p.xAxis.reversed?-(i&&i.width||0):p.xAxis.width),u||(a.graphic=u=e[a.shapeType](i).add(a.group||p.group))&&p.enabledDataSorting&&h.hasRendered&&h.pointCount<t&&(u.attr({x:a.startXPos}),_=!0,r="animate"),u&&_&&u[r](f(i)),h.styledMode||u[r](p.pointAttribs(a,a.selected&&"select")).shadow(a.allowShadow!==!1&&d.shadow),u&&(u.addClass(a.getClassName(),!0),u.attr({visibility:a.visible?"inherit":"hidden"}))):u&&(a.graphic=u.destroy())})}drawTracker(l=this.points){const p=this,h=p.chart,d=h.pointer,e=function(i){const a=d.getPointFromEvent(i);typeof a<"u"&&p.options.enableMouseTracking&&(d.isDirectTouch=!0,a.onMouseOver(i))};let t;l.forEach(function(i){t=y(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[],i.graphic&&(i.graphic.element.point=i),t.forEach(function(a){a.div?a.div.point=i:a.element.point=i})}),p._hasTracking||(p.trackerGroups.forEach(function(i){p[i]&&(p[i].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(a){d.onTrackerMouseOut(a)}),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 l=this,p=l.chart;p.hasRendered&&p.series.forEach(function(h){h.type===l.type&&(h.isDirty=!0)}),Z.prototype.remove.apply(l,arguments)}}return w.defaultOptions=f(Z.defaultOptions,G),L(w.prototype,{cropShoulder:0,directTouch:!0,getSymbol:x,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),X.registerSeriesType("column",w),w}),ot(A,"Core/Series/DataLabel.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Templating.js"],A["Core/Utilities.js"]],function(B,P,G){const{getDeferredAnimation:q}=B,{format:Z}=P,{defined:X,extend:Y,fireEvent:O,isArray:H,isString:R,merge:x,objectEach:b,pick:E,splat:L}=G;var c;return function(y){function v(d,e,t,i,a){const u=this.chart;var _=this.isCartesian&&u.inverted;const r=this.enabledDataSorting;var S=d.plotX,$=d.plotY;const K=t.rotation;var rt=t.align;$=X(S)&&X($)&&u.isInsidePlot(S,Math.round($),{inverted:_,paneCoordinates:!0,series:this});let j=E(t.overflow,r?"none":"justify")==="justify";if(_=this.visible&&d.visible!==!1&&X(S)&&(d.series.forceDL||r&&!j||$||E(t.inside,!!this.options.stacking)&&i&&u.isInsidePlot(S,_?i.x+1:i.y+i.height-1,{inverted:_,paneCoordinates:!0,series:this})),S=d.pos(),_&&S){K&&e.attr({align:rt}),rt=e.getBBox(!0);var s=[0,0],T=u.renderer.fontMetrics(e).b;if(i=Y({x:S[0],y:Math.round(S[1]),width:0,height:0},i),Y(t,{width:rt.width,height:rt.height}),K?(j=!1,s=u.renderer.rotCorr(T,K),T={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"))],r&&this.xAxis&&!j&&this.setDataLabelStartPos(d,e,a,$,T),e[a?"attr":"animate"](T)):(r&&this.xAxis&&!j&&this.setDataLabelStartPos(d,e,a,$,i),e.align(t,void 0,i),T=e.alignAttr),j&&0<=i.height)this.justifyDataLabel(e,t,T,rt,i,a);else if(E(t.crop,!0)){let{x:z,y:I}=T;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[a?"attr":"animate"]({anchorX:S[0],anchorY:S[1]})}a&&r&&(e.placed=!1),_||r&&!j?e.show():(e.hide(),e.placed=!1)}function f(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 C(){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 w(d=this.points){var e,t;const i=this,a=i.chart,u=i.options,_=a.renderer,{backgroundColor:r,plotBackgroundColor:S}=a.options.chart,$=a.options.plotOptions,K=_.getContrast(R(S)&&S||R(r)&&r||"#000000");let rt=u.dataLabels,j,s;var T=L(rt)[0];const z=T.animation;T=T.defer?q(a,z,i):{defer:0,duration:0},rt=l(l((e=$==null?void 0:$.series)===null||e===void 0?void 0:e.dataLabels,(t=$==null?void 0:$[i.type])===null||t===void 0?void 0:t.dataLabels),rt),O(this,"drawDataLabels"),(H(rt)||rt.enabled||i._hasPointLabels)&&(s=this.initDataLabels(T),d.forEach(I=>{var V;const n=I.dataLabels||[];for(j=L(l(rt,I.dlOptions||((V=I.options)===null||V===void 0?void 0:V.dataLabels))),j.forEach((g,m)=>{var W,F=g.enabled&&(!I.isNull||I.dataLabelOnNull)&&f(I,g);const N=I.connectors?I.connectors[m]:I.connector,et=g.style||{};let nt={},at=n[m],ht=!at;const pt=E(g.distance,I.labelDistance);if(F){var D=E(g[I.formatPrefix+"Format"],g.format),M=I.getLabelConfig();if(M=X(D)?Z(D,M,a):(g[I.formatPrefix+"Formatter"]||g.formatter).call(M,g),D=g.rotation,a.styledMode||(et.color=E(g.color,et.color,R(i.color)?i.color:void 0,"#000000"),et.color==="contrast"?(I.contrastColor=_.getContrast(I.color||i.color),et.color=!X(pt)&&g.inside||0>(pt||0)||u.stacking?I.contrastColor:K):delete I.contrastColor,u.cursor&&(et.cursor=u.cursor)),nt={r:g.borderRadius||0,rotation:D,padding:g.padding,zIndex:1},!a.styledMode){const{backgroundColor:Q,borderColor:U}=g;nt.fill=Q==="auto"?I.color:Q,nt.stroke=U==="auto"?I.color:U,nt["stroke-width"]=g.borderWidth}b(nt,(Q,U)=>{typeof Q>"u"&&delete nt[U]})}!at||F&&X(M)&&!!at.div==!!g.useHTML&&(at.rotation&&g.rotation||at.rotation===g.rotation)||(at=void 0,ht=!0,N&&I.connector&&(I.connector=I.connector.destroy(),I.connectors&&(I.connectors.length===1?delete I.connectors:delete I.connectors[m]))),F&&X(M)&&(at?nt.text=M:(at=D?_.text(M,0,0,g.useHTML).addClass("highcharts-data-label"):_.label(M,0,0,g.shape,void 0,void 0,g.useHTML,void 0,"data-label"))&&at.addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(g.className||"")+(g.useHTML?" highcharts-tracker":"")),at&&(at.options=g,at.attr(nt),a.styledMode||at.css(et).shadow(g.shadow),(F=g[I.formatPrefix+"TextPath"]||g.textPath)&&!g.useHTML&&(at.setTextPath(((W=I.getDataLabelPath)===null||W===void 0?void 0:W.call(I,at))||I.graphic,F),I.dataLabelPath&&!F.enabled&&(I.dataLabelPath=I.dataLabelPath.destroy())),at.added||at.add(s),i.alignDataLabel(I,at,g,void 0,ht),at.isActive=!0,n[m]&&n[m]!==at&&n[m].destroy(),n[m]=at))}),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,a,u){const _=this.chart,r=e.align,S=e.verticalAlign,$=d.box?0:d.padding||0;let{x:K=0,y:rt=0}=e,j,s;return j=(t.x||0)+$,0>j&&(r==="right"&&0<=K?(e.align="left",e.inside=!0):K-=j,s=!0),j=(t.x||0)+i.width-$,j>_.plotWidth&&(r==="left"&&0>=K?(e.align="right",e.inside=!0):K+=_.plotWidth-j,s=!0),j=t.y+$,0>j&&(S==="bottom"&&0<=rt?(e.verticalAlign="top",e.inside=!0):rt-=j,s=!0),j=(t.y||0)+i.height-$,j>_.plotHeight&&(S==="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,a)),s}function l(d,e){let t=[],i;if(H(d)&&!H(e))t=d.map(function(a){return x(a,e)});else if(H(e)&&!H(d))t=e.map(function(a){return x(d,a)});else if(!H(d)&&!H(e))t=x(d,e);else if(H(d)&&H(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,a){const u=this.chart,_=u.inverted,r=this.xAxis,S=r.reversed,$=_?e.height/2:e.width/2;d=(d=d.pointWidth)?d/2:0,e.startXPos=_?a.x:S?-$-d:r.width-$+d,e.startYPos=_?S?this.yAxis.height-$+d:-$-d:a.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=C,d.initDataLabels=k,d.alignDataLabel=v,d.drawDataLabels=w,d.justifyDataLabel=o,d.setDataLabelStartPos=p)}}(c||(c={})),c}),ot(A,"Series/Column/ColumnDataLabel.js",[A["Core/Series/DataLabel.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{series:q}=P,{merge:Z,pick:X}=G;var Y;return function(O){function H(x,b,E,L,c){let y=this.chart.inverted;var v=x.series;let f=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0;v=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0;var C=x.dlBox||x.shapeArgs;let k=X(x.below,x.plotY>X(this.translatedThreshold,v)),w=X(E.inside,!!this.options.stacking);C&&(L=Z(C),0>L.y&&(L.height+=L.y,L.y=0),C=L.y+L.height-v,0<C&&C<L.height&&(L.height-=C),y&&(L={x:v-L.y-L.height,y:f-L.x-L.width,width:L.height,height:L.width}),w||(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||w?"center":k?"right":"left"),E.verticalAlign=X(E.verticalAlign,y||w?"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=H)}}(Y||(Y={})),Y}),ot(A,"Series/Bar/BarSeries.js",[A["Series/Column/ColumnSeries.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{extend:q,merge:Z}=G;class X extends B{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return X.defaultOptions=Z(B.defaultOptions,{}),q(X.prototype,{inverted:!0}),P.registerSeriesType("bar",X),X}),ot(A,"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/>"}}}),ot(A,"Series/Scatter/ScatterSeries.js",[A["Series/Scatter/ScatterSeriesDefaults.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{column:q,line:Z}=P.seriesTypes,{addEvent:X,extend:Y,merge:O}=G;class H extends Z{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 f="plot"+y.toUpperCase(),C,k;if(b[y]&&!L.isNull){var w=x[y+"Axis"];k=b[y]*w.transA,w&&!w.isLog&&(C=Math.max(0,L[f]-k),w=Math.min(w.len,L[f]+k),v=1e4*Math.sin(c+v*E),v-=Math.floor(v),L[f]=C+(w-C)*v,y==="x"&&(L.clientX=L.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return H.defaultOptions=O(Z.defaultOptions,B),Y(H.prototype,{drawTracker:q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),X(H,"afterTranslate",function(){this.applyJitter()}),P.registerSeriesType("scatter",H),H}),ot(A,"Series/CenteredUtilities.js",[A["Core/Globals.js"],A["Core/Series/Series.js"],A["Core/Utilities.js"]],function(B,P,G){const{deg2rad:q}=B,{fireEvent:Z,isNumber:X,pick:Y,relativeLength:O}=G;var H;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),f=x.thickness;var C=x.size;let k=x.innerSize||0;for(typeof C=="string"&&(C=parseFloat(C)),typeof k=="string"&&(k=parseFloat(k)),x=[Y(y[0],"50%"),Y(y[1],"50%"),Y(C&&0>C?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)C=x[y],b=2>y||y===2&&/%$/.test(C),x[y]=O(C,[L,c,v,x[2]][y])+(b?E:0);return x[3]>x[2]&&(x[3]=x[2]),X(f)&&2*f<x[2]&&0<f&&(x[3]=x[2]-2*f),Z(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)}}}(H||(H={})),H}),ot(A,"Series/Pie/PiePoint.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Series/Point.js"],A["Core/Utilities.js"]],function(B,P,G){const{setAnimation:q}=B,{addEvent:Z,defined:X,extend:Y,isNumber:O,pick:H,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=H(this.name,"Slice");const E=L=>{this.slice(L.type==="select")};return Z(this,"select",E),Z(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=H(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(f=>{this[f]&&this[f][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),H(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,f,C]=E.center,k=C/2,w=E.chart.plotWidth,o=E.chart.plotLeft;E=b.alignment==="left";const{x:l,y:p}=b;return L.crookDistance?(b=R(L.crookDistance,1),b=E?v+k+(w+o-v-k)*(1-b):o+(v-k)*b):b=v+(f-p)*Math.tan((this.angle||0)-Math.PI/2),L=[["M",l,p]],(E?b<=l&&b>=c.x:b>=l&&b<=c.x)&&L.push(["L",b,p]),L.push(["L",c.x,c.y],["L",y.x,y.y]),L}}}),x}),ot(A,"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}}}}),ot(A,"Series/Pie/PieSeries.js",[A["Series/CenteredUtilities.js"],A["Series/Column/ColumnSeries.js"],A["Core/Globals.js"],A["Series/Pie/PiePoint.js"],A["Series/Pie/PieSeriesDefaults.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/Symbols.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z,X,Y,O,H){const{getStartAndEndRadians:R}=B;({noop:G}=G);const{clamp:x,extend:b,fireEvent:E,merge:L,pick:c,relativeLength:y}=H;class v extends X{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(C){const k=this,w=k.points,o=k.startAngleRad;C||w.forEach(function(l){const p=l.graphic,h=l.shapeArgs;p&&h&&(p.attr({r:c(l.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 C=this.startAngleRad,k=this.endAngleRad,w=this.options;let o,l;this.total===0&&this.center?(o=this.center[0],l=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(o,l,this.center[1]/2,0,C,k).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:O.arc(o,l,this.center[2]/2,0,{start:C,end:k,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":w.borderWidth,fill:w.fillColor||"none",stroke:w.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const C=this.chart.renderer;this.points.forEach(function(k){k.graphic&&k.hasNewShapeType()&&(k.graphic=k.graphic.destroy()),k.graphic||(k.graphic=C[k.shapeType](k.shapeArgs).add(k.series.group),k.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(C,k,w){const o=this.center,l=this.radii?this.radii[w.index]||0:o[2]/2;return C=Math.asin(x((C-o[1])/(l+w.labelDistance),-1,1)),o[0]+(k?-1:1)*Math.cos(C)*(l+w.labelDistance)+(0<w.labelDistance?(k?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const C=this,k=C.chart;let w,o,l,p;this.drawEmpty(),C.group&&!k.styledMode&&C.group.shadow(C.options.shadow),C.points.forEach(function(h){const d={};o=h.graphic,!h.isNull&&o?(p=h.shapeArgs,w=h.getTranslate(),k.styledMode||(l=C.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(o.setRadialReference(C.center).attr(p).attr(w),k.styledMode||o.attr(l).attr({"stroke-linejoin":"round"}),h.delayedRendering=!1):(o.setRadialReference(C.center),k.styledMode||L(!0,d,l),L(!0,d,p,w),o.animate(d)),o.attr({visibility:h.visible?"inherit":"hidden"}),o.addClass(h.getClassName(),!0)):o&&(h.graphic=o.destroy())})}sortByAngle(C,k){C.sort(function(w,o){return typeof w.angle<"u"&&(o.angle-w.angle)*k})}translate(C){E(this,"translate"),this.generatePoints();var k=this.options;const w=k.slicedOffset,o=w+(k.borderWidth||0);var l=R(k.startAngle,k.endAngle);const p=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-p;const h=this.points,d=k.dataLabels.distance;k=k.ignoreHiddenPoint;const e=h.length;let t,i,a,u=0;for(C||(this.center=C=this.getCenter()),i=0;i<e;i++){a=h[i];var _=p+u*l;!a.isValid()||k&&!a.visible||(u+=a.percentage/100);var r=p+u*l,S={x:C[0],y:C[1],r:C[2]/2,innerR:C[3]/2,start:Math.round(1e3*_)/1e3,end:Math.round(1e3*r)/1e3};a.shapeType="arc",a.shapeArgs=S,a.labelDistance=c(a.options.dataLabels&&a.options.dataLabels.distance,d),a.labelDistance=y(a.labelDistance,S.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,a.labelDistance),r=(r+_)/2,r>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(r)*w),translateY:Math.round(Math.sin(r)*w)},S=Math.cos(r)*C[2]/2,t=Math.sin(r)*C[2]/2,a.tooltipPos=[C[0]+.7*S,C[1]+.7*t],a.half=r<-Math.PI/2||r>Math.PI/2?1:0,a.angle=r,_=Math.min(o,a.labelDistance/5),a.labelPosition={natural:{x:C[0]+S+Math.cos(r)*a.labelDistance,y:C[1]+t+Math.sin(r)*a.labelDistance},computed:{},alignment:0>a.labelDistance?"center":a.half?"right":"left",connectorPosition:{breakAt:{x:C[0]+S+Math.cos(r)*_,y:C[1]+t+Math.sin(r)*_},touchingSliceAt:{x:C[0]+S,y:C[1]+t}}}}E(this,"afterTranslate")}updateTotals(){const C=this.points,k=C.length,w=this.options.ignoreHiddenPoint;let o,l,p=0;for(o=0;o<k;o++)l=C[o],!l.isValid()||w&&!l.visible||(p+=l.y);for(this.total=p,o=0;o<k;o++)l=C[o],l.percentage=0<p&&(l.visible||!w)?l.y/p*100:0,l.total=p}}return v.defaultOptions=L(X.defaultOptions,Z),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}),ot(A,"Series/Pie/PieDataLabel.js",[A["Core/Series/DataLabel.js"],A["Core/Globals.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z){const{noop:X}=P,{distribute:Y}=G,{series:O}=q,{arrayMax:H,clamp:R,defined:x,merge:b,pick:E,relativeLength:L}=Z;var c;return function(y){function v(){const o=this,l=o.data,p=o.chart,h=o.options.dataLabels||{},d=h.connectorPadding,e=p.plotWidth,t=p.plotHeight,i=p.plotLeft,a=Math.round(p.chartWidth/3),u=o.center,_=u[2]/2,r=u[1],S=[[],[]],$=[0,0,0,0],K=o.dataLabelPositioners;let rt,j,s,T,z,I,V,n,g,m,W,F;o.visible&&(h.enabled||o._hasPointLabels)&&(l.forEach(function(N){N.dataLabel&&N.visible&&N.dataLabel.shortened&&(N.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),N.dataLabel.shortened=!1)}),O.prototype.drawDataLabels.apply(o),l.forEach(function(N){N.dataLabel&&(N.visible?(S[N.half].push(N),N.dataLabel._pos=null,!x(h.style.width)&&!x(N.options.dataLabels&&N.options.dataLabels.style&&N.options.dataLabels.style.width)&&N.dataLabel.getBBox().width>a&&(N.dataLabel.css({width:Math.round(.7*a)+"px"}),N.dataLabel.shortened=!0)):(N.dataLabel=N.dataLabel.destroy(),N.dataLabels&&N.dataLabels.length===1&&delete N.dataLabels))}),S.forEach((N,et)=>{const nt=N.length,at=[];let ht,pt=0;if(nt){if(o.sortByAngle(N,et-.5),0<o.maxLabelDistance){var D=Math.max(0,r-_-o.maxLabelDistance);ht=Math.min(r+_+o.maxLabelDistance,p.plotHeight),N.forEach(function(M){0<M.labelDistance&&M.dataLabel&&(M.top=Math.max(0,r-_-M.labelDistance),M.bottom=Math.min(r+_+M.labelDistance,p.plotHeight),pt=M.dataLabel.getBBox().height||21,M.distributeBox={target:M.labelPosition.natural.y-M.top+pt/2,size:pt,rank:M.y},at.push(M.distributeBox))}),D=ht+pt-D,Y(at,D,D/5)}for(W=0;W<nt;W++){if(rt=N[W],I=rt.labelPosition,T=rt.dataLabel,m=rt.visible===!1?"hidden":"inherit",g=D=I.natural.y,at&&x(rt.distributeBox)&&(typeof rt.distributeBox.pos>"u"?m="hidden":(V=rt.distributeBox.size,g=K.radialDistributionY(rt))),delete rt.positionIndex,h.justify)n=K.justify(rt,_,u);else switch(h.alignTo){case"connectors":n=K.alignToConnectors(N,et,e,i);break;case"plotEdges":n=K.alignToPlotEdges(T,et,e,i);break;default:n=K.radialDistributionX(o,rt,g,D)}T._attr={visibility:m,align:I.alignment},F=rt.options.dataLabels||{},T._pos={x:n+E(F.x,h.x)+({left:d,right:-d}[I.alignment]||0),y:g+E(F.y,h.y)-T.getBBox().height/2},I&&(I.computed.x=n,I.computed.y=g),E(h.crop,!0)&&(z=T.getBBox().width,D=null,n-z<d&&et===1?(D=Math.round(z-n+d),$[3]=Math.max(D,$[3])):n+z>e-d&&et===0&&(D=Math.round(n+z-e+d),$[1]=Math.max(D,$[1])),0>g-V/2?$[0]=Math.max(Math.round(-g+V/2),$[0]):g+V/2>t&&($[2]=Math.max(Math.round(g+V/2-t),$[2])),T.sideOverflow=D)}}}),H($)===0||this.verifyDataLabelOverflow($))&&(this.placeDataLabels(),this.points.forEach(function(N){if(F=b(h,N.options.dataLabels),j=E(F.connectorWidth,1)){let et;s=N.connector,(T=N.dataLabel)&&T._pos&&N.visible&&0<N.labelDistance?(m=T._attr.visibility,(et=!s)&&(N.connector=s=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+N.colorIndex+(N.className?" "+N.className:"")).add(o.dataLabelsGroup),p.styledMode||s.attr({"stroke-width":j,stroke:F.connectorColor||N.color||"#666666"})),s[et?"attr":"animate"]({d:N.getConnectorPath()}),s.attr("visibility",m)):s&&(N.connector=s.destroy())}}))}function f(){this.points.forEach(function(o){let l=o.dataLabel,p;l&&o.visible&&((p=l._pos)?(l.sideOverflow&&(l._attr.width=Math.max(l.getBBox().width-l.sideOverflow,0),l.css({width:l._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),l.shortened=!0),l.attr(l._attr),l[l.moved?"animate":"attr"](p),l.moved=!0):l&&l.attr({y:-9999})),delete o.distributeBox},this)}function C(o){let l=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(l[2]-Math.max(o[1],o[3]),d):(e=Math.max(l[2]-o[1]-o[3],d),l[0]+=(o[3]-o[1])/2),h[1]!==null?e=R(e,d,l[2]-Math.max(o[0],o[2])):(e=R(e,d,l[2]-o[0]-o[2]),l[1]+=(o[0]-o[2])/2),e<l[2]?(l[2]=e,l[3]=Math.min(p.thickness?Math.max(0,e-2*p.thickness):Math.max(0,L(p.innerSize||0,e)),e),this.translate(l),this.drawDataLabels&&this.drawDataLabels()):t=!0),t}const k=[],w={radialDistributionY:function(o){return o.top+o.distributeBox.pos},radialDistributionX:function(o,l,p,h){return o.getX(p<l.top+2||p>l.bottom-2?h:p,l.half,l)},justify:function(o,l,p){return p[0]+(o.half?-1:1)*(l+o.labelDistance)},alignToPlotEdges:function(o,l,p,h){return o=o.getBBox().width,l?o+h:p-o-h},alignToConnectors:function(o,l,p,h){let d=0,e;return o.forEach(function(t){e=t.dataLabel.getBBox().width,e>d&&(d=e)}),l?d+h:p-d-h}};y.compose=function(o){B.compose(O),Z.pushUnique(k,o)&&(o=o.prototype,o.dataLabelPositioners=w,o.alignDataLabel=X,o.drawDataLabels=v,o.placeDataLabels=f,o.verifyDataLabelOverflow=C)}}(c||(c={})),c}),ot(A,"Extensions/OverlappingDataLabels.js",[A["Core/Chart/Chart.js"],A["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"})}),Z(x,"afterHideOverlappingLabel")):R.attr({opacity:b})),R.isOld=!0),E}const{addEvent:q,fireEvent:Z,isArray:X,isNumber:Y,objectEach:O,pick:H}=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=H(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,f,C=!1;var k=function(w){let o,l;var p;let h=w.box?0:w.padding||0,d=p=0,e,t;if(w&&(!w.alignAttr||w.placed))return o=w.alignAttr||{x:w.attr("x"),y:w.attr("y")},l=w.parentGroup,w.width||(p=w.getBBox(),w.width=p.width,w.height=p.height,p=E.fontMetrics(w.element).h),e=w.width-2*h,(t={left:"0",center:"0.5",right:"1"}[w.alignValue])?d=+t*e:Y(w.x)&&Math.round(w.x)!==w.translateX&&(d=w.x-w.translateX),{x:o.x+(l.translateX||0)+h-(d||0),y:o.y+(l.translateY||0)+h-p,width:w.width-2*h,height:w.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(w,o){return(o.labelrank||0)-(w.labelrank||0)}),c=0;c<b;c++)for(v=(k=R[c])&&k.absoluteBox,L=c+1;L<b;++L)f=(y=R[L])&&y.absoluteBox,!v||!f||k===y||k.newOpacity===0||y.newOpacity===0||k.visibility==="hidden"||y.visibility==="hidden"||f.x>=v.x+v.width||f.x+f.width<=v.x||f.y>=v.y+v.height||f.y+f.height<=v.y||((k.labelrank<y.labelrank?k:y).newOpacity=0);R.forEach(function(w){G(w,x)&&(C=!0)}),C&&Z(x,"afterHideAllOverlappingLabels")}}),ot(A,"Extensions/BorderRadius.js",[A["Core/Defaults.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Utilities.js"]],function(B,P,G,q,Z,X){const{defaultOptions:Y}=B;({seriesTypes:B}=G);const{addEvent:O,extend:H,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=Z.prototype.symbols.arc;Z.prototype.symbols.arc=function(v,f,C,k,w={}){v=c(v,f,C,k,w);const{innerR:o=0,r:l=C,start:p=0,end:h=0}=w;if(w.open||!w.borderRadius)return v;for(C=h-p,f=Math.sin(C/2),w=Math.max(Math.min(b(w.borderRadius||0,l-o),(l-o)/2,l*f/(1+f)),0),C=Math.min(w,C/Math.PI*2*o),f=v.length-1;f--;){let _,r,S;k=v;var d=f,e=1<f?C:w,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"||(S=i,r=t):(S=t,r=i,_=!0),S&&r&&r.params){t=r[1];var a=r[5];i=r.params;const{start:$,end:K,cx:rt,cy:j}=i;var u=a?t-e:t+e;const s=u?Math.asin(e/u):0;a=a?s:-s,u*=Math.cos(s),_?(i.start=$+a,S[1]=rt+u*Math.cos($),S[2]=j+u*Math.sin($),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-a,r[6]=rt+t*Math.cos(i.end),r[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)])),r[4]=Math.abs(i.end-i.start)<Math.PI?0:1}}return v};const y=Z.prototype.symbols.roundedRect;Z.prototype.symbols.roundedRect=function(v,f,C,k,w={}){const o=y(v,f,C,k,w),{r:l=0,brBoxHeight:p=k,brBoxY:h=f}=w;var d=f-h,e=h+p-(f+k);w=-.1<d-l?0:l;const t=-.1<e-l?0:l;var i=Math.max(w&&d,0);const a=Math.max(t&&e,0);e=[v+w,f],d=[v+C-w,f];const u=[v+C,f+w],_=[v+C,f+k-t],r=[v+C-t,f+k],S=[v+t,f+k],$=[v,f+k-t],K=[v,f+w];if(i){const rt=Math.sqrt(Math.pow(w,2)-Math.pow(w-i,2));e[0]-=rt,d[0]+=rt,u[1]=K[1]=f+w-i}return k<w-i&&(i=Math.sqrt(Math.pow(w,2)-Math.pow(w-i-k,2)),u[0]=_[0]=v+C-w+i,r[0]=Math.min(u[0],r[0]),S[0]=Math.max(_[0],S[0]),$[0]=K[0]=v+w-i,u[1]=K[1]=f+k),a&&(i=Math.sqrt(Math.pow(t,2)-Math.pow(t-a,2)),r[0]+=i,S[0]-=i,_[1]=$[1]=f+k-t+a),k<t-a&&(k=Math.sqrt(Math.pow(t,2)-Math.pow(t-a-k,2)),u[0]=_[0]=v+C-t+k,d[0]=Math.min(u[0],d[0]),e[0]=Math.max(_[0],e[0]),$[0]=K[0]=v+t-k,_[1]=$[1]=f),o.length=0,o.push(["M",...e],["L",...d],["A",w,w,0,0,1,...u],["L",..._],["A",t,t,0,0,1,...r],["L",...S],["A",t,t,0,0,1,...$],["L",...K],["A",w,w,0,0,1,...e],["Z"]),o},O(B.pie,"afterTranslate",function(){const v=L(this.options.borderRadius);for(const f of this.points){const C=f.shapeArgs;C&&(C.borderRadius=b(v.radius,(C.r||0)-(C.innerR||0)))}}),O(P,"afterColumnTranslate",function(){var v,f;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){const{options:o,yAxis:l}=this,p=o.stacking==="percent";var C=(f=(v=Y.plotOptions)===null||v===void 0?void 0:v[this.type])===null||f===void 0?void 0:f.borderRadius;v=L(o.borderRadius,R(C)?C:{}),f=l.options.reversed;for(const h of this.points)if({shapeArgs:C}=h,h.shapeType==="roundedRect"&&C){const{width:d=0,height:e=0,y:t=0}=C;var k=t,w=e;v.scope==="stack"&&h.stackTotal&&(k=l.translate(p?100:h.stackTotal,!1,!0,!1,!0),w=l.translate(o.threshold||0,!1,!0,!1,!0),w=this.crispCol(0,Math.min(k,w),0,Math.abs(k-w)),k=w.y,w=w.height);const i=(h.negative?-1:1)*(f?-1:1)===-1;let a=v.where;!a&&this.is("waterfall")&&Math.abs((h.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(a="all"),a||(a="end");const u=Math.min(b(v.radius,d),d/2,a==="all"?e/2:1/0)||0;a==="end"&&(i&&(k-=u),w+=u),H(C,{brBoxHeight:w,brBoxY:k,r:u})}}},{order:9})}return P={optionsToObject:L},P}),ot(A,"Core/Responsive.js",[A["Core/Utilities.js"]],function(B){const{diffObjects:P,extend:G,find:q,merge:Z,pick:X,uniqueKey:Y}=B;var O;return function(H){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(f=>{typeof f._id>"u"&&(f._id=Y()),this.matchResponsiveRule(f,v)},this),L=Z(...v.map(f=>q((c||{}).rules||[],C=>C._id===f)).map(f=>f&&f.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=[];H.compose=function(E){return B.pushUnique(b,E)&&G(E.prototype,{matchResponsiveRule:R,setResponsive:x}),E}}(O||(O={})),O}),ot(A,"masters/highcharts.src.js",[A["Core/Globals.js"],A["Core/Utilities.js"],A["Core/Defaults.js"],A["Core/Animation/Fx.js"],A["Core/Animation/AnimationUtilities.js"],A["Core/Renderer/HTML/AST.js"],A["Core/Templating.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Renderer/HTML/HTMLElement.js"],A["Core/Renderer/HTML/HTMLRenderer.js"],A["Core/Axis/Axis.js"],A["Core/Axis/DateTimeAxis.js"],A["Core/Axis/LogarithmicAxis.js"],A["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],A["Core/Axis/Tick.js"],A["Core/Tooltip.js"],A["Core/Series/Point.js"],A["Core/Pointer.js"],A["Core/Legend/Legend.js"],A["Core/Chart/Chart.js"],A["Core/Axis/Stacking/StackingAxis.js"],A["Core/Axis/Stacking/StackItem.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Series/Column/ColumnSeries.js"],A["Series/Column/ColumnDataLabel.js"],A["Series/Pie/PieSeries.js"],A["Series/Pie/PieDataLabel.js"],A["Core/Series/DataLabel.js"],A["Core/Responsive.js"],A["Core/Color/Color.js"],A["Core/Time.js"]],function(B,P,G,q,Z,X,Y,O,H,R,x,b,E,L,c,y,v,f,C,k,w,o,l,p,h,d,e,t,i,a,u,_,r,S){return B.animate=Z.animate,B.animObject=Z.animObject,B.getDeferredAnimation=Z.getDeferredAnimation,B.setAnimation=Z.setAnimation,B.stop=Z.stop,B.timers=q.timers,B.AST=X,B.Axis=E,B.Chart=o,B.chart=o.chart,B.Fx=q,B.Legend=w,B.PlotLineOrBand=y,B.Point=C,B.Pointer=k,B.Series=h,B.StackItem=p,B.SVGElement=H,B.SVGRenderer=R,B.Templating=Y,B.Tick=v,B.Time=S,B.Tooltip=f,B.Color=r,B.color=r.parse,b.compose(R),x.compose(H),k.compose(o),w.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),a.compose(i),y.compose(E),_.compose(o),l.compose(E,o,h),f.compose(k),B}),A["masters/highcharts.src.js"]._modules=A,A["masters/highcharts.src.js"]})}(ce)),ce.exports}(function(lt,st){(function(ot,A){lt.exports=A(zs(),Je)})(window,function(ot,A){return P=[function(q,Z){q.exports=ot},function(q,Z){q.exports=A},function(q,Y,X){X.r(Y),X.d(Y,"Chart",function(){return f}),X.d(Y,"default",function(){return C});var Y=X(0),O=X.n(Y);function H(k,w){return function o(l,p,h){function d(e,t){!O.a.isObject(e,!h)||O.a.isClass(e)||O.a.isDOMElement(e)?l[t]=p[t]:l[t]=o(l[t]||O.a.isArray(e)?[]:{},e,h)}return O.a.isArray(p)?p.forEach(d):O.a.objectEach(p,d),l}({},k,w)}var R=X(1);function x(k){return(x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(k)}function b(k){return function(w){if(Array.isArray(w))return E(w)}(k)||function(w){if(typeof Symbol<"u"&&w[Symbol.iterator]!=null||w["@@iterator"]!=null)return Array.from(w)}(k)||function(w,o){var l;if(w)return typeof w=="string"?E(w,o):(l=(l=Object.prototype.toString.call(w).slice(8,-1))==="Object"&&w.constructor?w.constructor.name:l)==="Map"||l==="Set"?Array.from(w):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?E(w,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,w){(w==null||w>k.length)&&(w=k.length);for(var o=0,l=new Array(w);o<w;o++)l[o]=k[o];return l}function L(k,w){var o,l=Object.keys(k);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(k),w&&(o=o.filter(function(p){return Object.getOwnPropertyDescriptor(k,p).enumerable})),l.push.apply(l,o)),l}function c(k){for(var w=1;w<arguments.length;w++){var o=arguments[w]!=null?arguments[w]:{};w%2?L(Object(o),!0).forEach(function(l){var p,h;p=k,h=o[l=l],(l=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)}(l))in p?Object.defineProperty(p,l,{value:h,enumerable:!0,configurable:!0,writable:!0}):p[l]=h}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(o)):L(Object(o)).forEach(function(l){Object.defineProperty(k,l,Object.getOwnPropertyDescriptor(o,l))})}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,w){return w.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 l;(l=this.chart).update.apply(l,[H(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,H(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 l=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](l.value,H(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,[H(h,o.deepCopyOnUpdate)].concat(b(o.updateArgs)))},{deep:!0}),Object(R.onBeforeUnmount)(function(){p.value&&p.value.destroy()}),{chart:p,chartContainer:l,props:o}}})},f=v(O.a,R.version||X.n(R).a.version);function C(k){var w=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};k.component(w.tagName||"highcharts",v(w.highcharts||O.a,k.version))}}],G={},B.m=P,B.c=G,B.d=function(q,Z,X){B.o(q,Z)||Object.defineProperty(q,Z,{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,Z){if(1&Z&&(q=B(q)),8&Z||4&Z&&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&Z&&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 Z=q&&q.__esModule?function(){return q.default}:function(){return q};return B.d(Z,"a",Z),Z},B.o=function(q,Z){return Object.prototype.hasOwnProperty.call(q,Z)},B.p="",B(B.s=2);function B(q){var Z;return(G[q]||(Z=G[q]={i:q,l:!1,exports:{}},P[q].call(Z.exports,Z,Z.exports,B),Z.l=!0,Z)).exports}var P,G})})(Ne);var ne=Ne.exports;const Rs={class:"w-88vw flex flex-col md:w-92vw"},Ns={class:"mx-auto max-w-screen-xl px-4 py-4 lg:px-6 lg:py-6"},Hs={class:"lg:grid lg:grid-cols-3 sm:gap-6 xl:gap-10 space-y-8 lg:space-y-0"},$s={class:"mx-auto max-w-[16rem] flex flex-col border border-gray-100 rounded-lg bg-white p-6 text-center text-gray-900 shadow dark:border-gray-600 dark:bg-gray-800 xl:p-8 dark:text-white"},Ws={class:"mb-4 text-2xl font-semibold"},Fs={class:"my-8 flex items-baseline justify-center"},Gs={class:"mr-2 text-5xl font-extrabold"},Xs={class:"mt-8 flex flex-col gap-8"},Us=Dt({__name:"Statistics",props:{rank:null},setup(lt){const st=lt,{t:ot}=Vt(),A=kt(()=>st.rank);function B(){const P=[];return P.push({title:"standings.statistics.head_data.problems",data:A.value.contest.problems.length}),P.push({title:"standings.statistics.head_data.teams",data:A.value.teams.length}),P.push({title:"standings.statistics.head_data.submissions",data:A.value.getSubmissions().length}),P}return(P,G)=>(ut(),ft("div",Rs,[it("section",null,[it("div",Ns,[it("div",Hs,[(ut(!0),ft(Lt,null,It(B(),q=>(ut(),ft("div",{key:q.title},[it("div",$s,[it("h3",Ws,yt(J(ot)(q.title)),1),it("div",Fs,[it("span",Gs,yt(q.data),1)])])]))),128))])])]),it("div",Xs,[it("div",null,[At(J(ne.Chart),{options:("getSubmitChart"in P?P.getSubmitChart:J(js))(J(A))},null,8,["options"])]),it("div",null,[At(J(ne.Chart),{options:("getProblemChart"in P?P.getProblemChart:J(Ds))(J(A))},null,8,["options"])]),it("div",null,[At(J(ne.Chart),{options:("getTeamChart"in P?P.getTeamChart:J(Is))(J(A))},null,8,["options"])])])]))}}),Ys={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"},Vs={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},qs={class:"font-semibold text-gray-900 dark:text-white"},Ks={class:"font-semibold text-gray-900 dark:text-white"},Zs={class:"inline-flex items-stretch font-mono -space-x-px"},Js=it("span",{class:"sr-only"},"Previous",-1),Qs=it("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[it("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),to=[Js,Qs],eo={key:0},io=["onClick"],so={"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"},oo=["onClick"],no={key:1},ro=it("span",{class:"sr-only"},"Next",-1),ao=it("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[it("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),lo=[ro,ao],se="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",ho=Dt({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(lt,{emit:st}){const ot=lt,A=kt({get(){return ot.pagination},set(B){st("update:pagination",B)}});return(B,P)=>(ut(),ft("nav",Ys,[it("span",Vs,[qt(" Showing "),it("span",qs,yt(J(A).currentLeft)+"-"+yt(Math.max(0,J(A).currentRight-1)),1),qt(" of "),it("span",Ks,yt(J(A).totalSize),1)]),it("ul",Zs,[it("li",null,[it("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=>J(A).onPageChange({diff:-1}))},to)]),J(A).currentPage!==0?(ut(),ft("li",eo,[it("a",{class:Pt(se),hover:"cursor-pointer",onClick:P[1]||(P[1]=G=>J(A).onPageChange({to:0}))}," 1 ")])):St("",!0),(ut(!0),ft(Lt,null,It(J(A).leftDecrPage,G=>(ut(),ft("li",{key:G},[it("a",{class:Pt(se),hover:"cursor-pointer",onClick:q=>J(A).onPageChange({to:G})},yt(G+1),9,io)]))),128)),it("li",null,[it("a",so,yt(J(A).currentPage+1),1)]),(ut(!0),ft(Lt,null,It(J(A).rightIncrPage,G=>(ut(),ft("li",{key:G},[it("a",{hover:"cursor-pointer",class:Pt(se),onClick:q=>J(A).onPageChange({to:G})},yt(G+1),9,oo)]))),128)),J(A).currentPage!==J(A).totalPage-1&&J(A).totalPage>1?(ut(),ft("li",no,[it("a",{hover:"cursor-pointer",class:Pt(se),onClick:P[2]||(P[2]=G=>J(A).onPageChange({to:J(A).totalPage-1}))},yt(J(A).totalPage),1)])):St("",!0),it("li",null,[it("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=>J(A).onPageChange({diff:1}))},lo)])])]))}});class co{constructor(){ie(this,"totalSize");ie(this,"currentPage");ie(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 st=[];let ot=1,A=this.currentPage-ot;for(;A>0;)st.push(A),ot=ot<<1,A-=ot;return st.reverse()}get rightIncrPage(){const st=[];let ot=1,A=this.currentPage+ot;for(;A+1<this.totalPage;)st.push(A),ot=ot<<1,A+=ot;return st}onPageChange(st){const ot=this.totalPage;let A=this.currentPage;if((st==null?void 0:st.to)!==void 0&&(A=st.to),(st==null?void 0:st.diff)!==void 0){const B=st.diff;A=A+B}A<0||A>=ot||(this.currentPage=A)}}const ee=lt=>(re("data-v-8bf9d695"),lt=lt(),ae(),lt),po={"mx-auto":"","w-full":"","px-4":""},uo={"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":""},fo={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":""},go={key:0,"w-48":""},mo={key:1,"w-48":""},xo={key:2,"w-68":""},yo={key:3,"w-48":""},vo={key:4},ko=ee(()=>it("div",{"i-material-symbols-search":"","mr-1":"","h-5":"","w-5":""},null,-1)),bo={class:"overflow-x-auto"},wo={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},So={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},Co=ee(()=>it("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),Mo={key:0,scope:"col",class:"px-4 py-3"},To=ee(()=>it("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),Ao=ee(()=>it("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),Po={key:1,scope:"col",class:"px-4 py-3"},_o={key:2,scope:"col",class:"px-4 py-3"},Oo={key:3,scope:"col",class:"px-4 py-3"},Lo=ee(()=>it("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),Eo={"px-4":"","py-2":""},Do={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Io={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},jo={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Bo={flex:"","items-center":""},zo={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ro={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},No={flex:"","items-center":""},Ho={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},$o={flex:"","items-center":""},Wo=Dt({__name:"SubmissionsTable",props:{rank:null,submissions:null,pageSize:null,removeBorder:{type:Boolean},enableFilter:null},setup(lt){const st=lt,ot=kt(()=>st.rank),A=kt(()=>st.enableFilter),B=kt(()=>{if(!A.value)return!1;for(const[e,t]of Object.entries(A.value))if(t===!0)return!0;return!1}),P=Tt({orgNames:[],teamIds:[],languages:[],statuses:[]}),G=kt(()=>ot.value.organizations.map(t=>({value:t,text:t}))),q=Tt([]),Z=Tt({});function X(e,t){q.value=e,Z.value=t}const Y=kt(()=>ot.value.originTeams.map(t=>({value:t.id,text:t.organization?`${t.name} - ${t.organization}`:t.name}))),O=Tt([]),H=Tt({});function R(e,t){O.value=e,H.value=t}const x=kt(()=>ot.value.languages.map(i=>({value:i,text:i}))),b=Tt([]),E=Tt({});function L(e,t){b.value=e,E.value=t}const c=kt(()=>ot.value.statuses.map(i=>({value:i,text:ye[i]}))),y=Tt([]),v=Tt({});function f(e,t){y.value=e,v.value=t}function C(e){return e.value.toString()}const k=kt(()=>st.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 a of i.teamIds)if(a===t.teamId)return!0}if(i.orgNames.length>0){const a=ot.value.teamsMap.get(t.teamId);for(const u of i.orgNames)if(u===(a==null?void 0:a.organization))return!0}if(i.languages.length>0){for(const a of i.languages)if(a===t.language)return!0}if(i.statuses.length>0){for(const a of i.statuses)if(a===t.status)return!0}return!1}).sort(Le.compare).reverse());function w(){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=Tt(new co);o.value.currentPage=0,o.value.pageSize=st.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 l=kt(()=>k.value.slice(o.value.currentLeft,o.value.currentRight)),p=Tt(!1);function h(e){const t="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",i=e.problemId,a=ot.value.contest.problemsMap.get(i);if(a==null||!a.balloonColor)return t}function d(e){const t=e.problemId,i=ot.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,_,r,S;const i=pe,a=ho;return ut(),ft("section",null,[it("div",po,[it("div",{relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":"",class:Pt({"shadow-md":st.removeBorder!==!0,"sm:rounded-sm":st.removeBorder!==!0})},[it("div",uo,[it("div",fo,[J(ot).contest.organization&&((u=J(A))!=null&&u.organization)?(ut(),ft("div",go,[At(J(Zt),{options:J(G),"selected-options":J(q),placeholder:J(ot).contest.organization,onSelect:X},null,8,["options","selected-options","placeholder"])])):St("",!0),(_=J(A))!=null&&_.team?(ut(),ft("div",mo,[At(J(Zt),{options:J(Y),"selected-options":J(O),placeholder:"Team",onSelect:R},null,8,["options","selected-options"])])):St("",!0),(r=J(A))!=null&&r.status?(ut(),ft("div",xo,[At(J(Zt),{options:J(c),"selected-options":J(y),placeholder:"Status","custom-attr":C,onSelect:f},null,8,["options","selected-options"])])):St("",!0),(S=J(A))!=null&&S.language&&J(x).length>0?(ut(),ft("div",yo,[At(J(Zt),{options:J(x),"selected-options":J(b),placeholder:"Language",onSelect:L},null,8,["options","selected-options"])])):St("",!0),J(B)?(ut(),ft("div",vo,[it("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:w},[ko,qt(" Filter ")])])):St("",!0)])]),it("div",bo,[it("table",wo,[it("thead",So,[it("tr",null,[Co,J(ot).contest.organization?(ut(),ft("th",Mo,yt(J(ot).contest.organization),1)):St("",!0),To,Ao,J(ot).contest.options.submissionHasTimeField?(ut(),ft("th",Po," Time ")):St("",!0),J(p)?(ut(),ft("th",_o," Memory ")):St("",!0),J(ot).contest.options.submissionHasLanguageField?(ut(),ft("th",Oo," Answer ")):St("",!0),Lo])]),it("tbody",null,[(ut(!0),ft(Lt,null,It(J(l),$=>{var K,rt,j;return ut(),ft("tr",{key:$.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[it("td",Eo,[it("span",{class:Pt(["rounded px-2 py-0.5 text-sm",[h($)]]),style:Ut(d($))},yt((K=J(ot).contest.problemsMap.get($.problemId))==null?void 0:K.label),7)]),J(ot).contest.organization?(ut(),ft("td",Do,yt((rt=J(ot).teamsMap.get($.teamId))==null?void 0:rt.organization),1)):St("",!0),it("td",Io,yt((j=J(ot).teamsMap.get($.teamId))==null?void 0:j.name),1),it("td",{scope:"row",class:Pt([$.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},yt(J(ye)[$.status]),3),J(ot).contest.options.submissionHasTimeField?(ut(),ft("td",jo,[it("div",Bo,yt(`${$.time??0} ms`),1)])):St("",!0),J(p)?(ut(),ft("td",zo," 0.47 ")):St("",!0),J(ot).contest.options.submissionHasLanguageField?(ut(),ft("td",Ro,[it("div",No,yt($.language),1)])):St("",!0),it("td",Ho,[it("div",$o,[At(i,null,{popper:Ht(()=>[qt(yt($.timestampDisplayFormatWithMilliSecond),1)]),default:Ht(()=>[qt(yt($.timestampDisplayFormatWithSecond)+" ",1)]),_:2},1024)])])])}),128))])])]),At(a,{pagination:J(o),"onUpdate:pagination":t[0]||(t[0]=$=>Bt(o)?o.value=$:null)},null,8,["pagination"])],2)])])}}});const he=Gt(Wo,[["__scopeId","data-v-8bf9d695"]]),fe=lt=>(re("data-v-cd615748"),lt=lt(),ae(),lt),Fo={class:"statistics-0"},Go=["colspan"],Xo={class:"stnd"},Uo={class:"statistics-1"},Yo=["colspan"],Vo={class:"stnd"},qo=fe(()=>it("br",null,null,-1)),Ko={class:"statistics-0"},Zo=["colspan"],Jo={class:"stnd"},Qo=fe(()=>it("br",null,null,-1)),tn={class:"statistics-1"},en=["colspan"],sn={class:"stnd"},on=fe(()=>it("br",null,null,-1)),nn={class:"statistics-0"},rn=["colspan"],an={class:"stnd"},ln={class:"statistics-1"},hn=["colspan"],cn={class:"stnd"},dn=Dt({__name:"BottomStatistics",props:{rank:null},setup(lt){const st=lt,{t:ot}=Vt(),A=kt(()=>st.rank);function B(){let Y=3;return A.value.contest.organization&&Y++,A.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 Z(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(Lt,null,[it("tr",Fo,[it("td",{class:"empty",colspan:B()},null,8,Go),it("td",Xo,[it("b",null,yt(J(ot)("standings.statistics.submitted")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[it("b",null,yt(H.statistics.submittedNum),1)]))),128))]),it("tr",Uo,[it("td",{class:"empty",colspan:B()},null,8,Yo),it("td",Vo,[it("b",null,yt(J(ot)("standings.statistics.attempted")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[it("b",null,yt(H.statistics.attemptedNum),1),qo,it("b",null," ("+yt(P(H.statistics))+") ",1)]))),128))]),it("tr",Ko,[it("td",{class:"empty",colspan:B()},null,8,Zo),it("td",Jo,[it("b",null,yt(J(ot)("standings.statistics.accepted")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[it("b",null,yt(H.statistics.acceptedNum),1),Qo,it("b",null," ("+yt(G(H.statistics))+") ",1)]))),128))]),it("tr",tn,[it("td",{class:"empty",colspan:B()},null,8,en),it("td",sn,[it("b",null,yt(J(ot)("standings.statistics.dirt")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[it("b",null,yt(H.statistics.attemptedNum-H.statistics.acceptedNum),1),on,it("b",null," ("+yt(q(H.statistics))+") ",1)]))),128))]),it("tr",nn,[it("td",{class:"empty",colspan:B()},null,8,rn),it("td",an,[it("b",null,yt(J(ot)("standings.statistics.first_solved")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[it("b",null,yt(Z(H.statistics)),1)]))),128))]),it("tr",ln,[it("td",{class:"empty",colspan:B()},null,8,hn),it("td",cn,[it("b",null,yt(J(ot)("standings.statistics.last_solved")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[it("b",null,yt(X(H.statistics)),1)]))),128))])],64))}});const pn=Gt(dn,[["__scopeId","data-v-cd615748"]]),un={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},fn=Dt({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(lt,{emit:st}){const ot=lt,A=kt({get(){return ot.isHidden},set(Z){st("update:isHidden",Z)}}),B=kt(()=>ot.rank),P=kt(()=>ot.team),G=kt(()=>ot.p),q=kt(()=>`${P.value.name} - ${G.value.problem.label}`);return(Z,X)=>{const Y=he,O=le;return ut(),Nt(O,{isHidden:J(A),"onUpdate:isHidden":X[0]||(X[0]=H=>Bt(A)?A.value=H:null),title:J(q)},{default:Ht(()=>[it("div",un,[At(Y,{"w-full":"",rank:J(B),submissions:J(G).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["isHidden","title"])}}}),gn=Dt({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(lt){const st=lt,ot=Tt(!0);function A(){ot.value=!1}const B=kt(()=>st.rank),P=kt(()=>st.team),G=kt(()=>st.p);function q(Y){return Y.isSolved?"+":Y.isWrongAnswer?"-":Y.isPending?`? ${Y.pendingCount}`:""}function Z(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 H=fn;return ut(),ft("td",{class:Pt(["stnd",[X(J(G))]])},[it("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:A},[it("div",null,yt(q(J(G))),1),it("div",null,yt(Z(J(G))),1)]),it("div",null,[J(ot)?St("",!0):(ut(),Nt(H,{key:0,isHidden:J(ot),"onUpdate:isHidden":O[0]||(O[0]=R=>Bt(ot)?ot.value=R:null),rank:J(B),team:J(P),p:J(G)},null,8,["isHidden","rank","team","p"]))])],2)}}});const mn=Gt(gn,[["__scopeId","data-v-61916fae"]]),xn={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":"","items-center":""},yn={flex:"","flex-col":"","items-start":"","gap-y-2":""},vn={key:0},kn={key:1},bn={key:2,flex:"","flex-col":"","gap-2":""},wn={key:3},Sn=Dt({__name:"TeamAwards",props:{team:null,rank:null},setup(lt){const st=lt,ot=kt(()=>st.team),A=kt(()=>st.rank),B=kt(()=>st.team.problemStatistics.filter(q=>!!q.isFirstSolved).map(q=>q.problem.label).join(",")),P=kt(()=>{const q=st.team.awards;return q.includes(Ft.GOLD)?{text:"Gold"}:q.includes(Ft.SILVER)?{text:"Silver"}:q.includes(Ft.BRONZE)?{text:"Bronze"}:q.includes(Ft.HONORABLE)?{text:"Honorable"}:null}),G=kt(()=>{let q=ot.value.rank;return A.value.contest.organization&&(q=ot.value.organizationRank),q===1?"1st Place":q===2?"2nd Place":q===3?"3rd Place":""});return(q,Z)=>(ut(),ft("div",xn,[it("div",yn,[J(P)?(ut(),ft("div",vn,yt(J(P).text)+" Medalist ",1)):St("",!0),J(G).length>0?(ut(),ft("div",kn,yt(J(G)),1)):St("",!0),J(B).length?(ut(),ft("div",bn,[it("div",null," First Solved Problem "+yt(J(B)),1)])):St("",!0),J(ot).solvedProblemNum>0?(ut(),ft("div",wn," Solved "+yt(J(ot).solvedProblemNum)+" "+yt(J(ot).solvedProblemNum>1?"Problems":"Problem"),1)):St("",!0)])]))}}),Cn={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},Mn=["onClick"],He=Dt({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(lt,{emit:st}){const ot=lt,{t:A}=Vt(),B=kt({get(){return ot.currentType},set(q){st("update:currentType",q)}});function P(q){B.value=q}const G=kt(()=>ot.types.length);return(q,Z)=>(ut(),ft("div",Cn,[(ut(!0),ft(Lt,null,It(ot.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===J(G),border:Y===0||Y+1===J(G),"border-t border-x md:border-x-0 md:border-b":Y>0&&Y+1<J(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":J(B)===X}),onClick:O=>P(X)},yt(J(A)(`type_menu.${X}`)),11,Mn))),128))]))}}),Tn=["src"],$e=Dt({__name:"Badge",props:{image:null,widthClass:null},setup(lt){const st=lt,ot=kt(()=>st.image),A=kt(()=>st.widthClass?st.widthClass:"h-8 w-8");return(B,P)=>J(ot).base64?(ut(),ft("img",{key:0,src:J(Qe)(J(ot)),alt:"badge",class:Pt([J(A)])},null,10,Tn)):St("",!0)}}),An={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},Pn={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},_n={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},On={flex:"","flex-row":"","space-x-3":""},Ln={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},En={flex:"","flex-col":"","justify-start":"","items-start":""},Dn={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},In={key:0,"w-full":"",class:"mt-[-12px]"},jn={key:1,"w-full":""},Bn={key:2,"w-full":""},we="submissions",Se="statistics",Ce="awards",zn=Dt({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(lt,{emit:st}){const ot=lt,A=kt({get(){return ot.isHidden},set(X){st("update:isHidden",X)}}),B=Tt("submissions"),P=kt(()=>ot.rank),G=kt(()=>ot.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}),Z=[we,Se,Ce];return(X,Y)=>{const O=$e,H=pe,R=He,x=he,b=Sn,E=le;return ut(),Nt(E,{isHidden:J(A),"onUpdate:isHidden":Y[1]||(Y[1]=L=>Bt(A)?A.value=L:null)},{header:Ht(()=>[it("div",An,[it("div",Pn,[it("div",_n,[it("div",On,[J(G).badge?(ut(),Nt(O,{key:0,image:J(G).badge,"width-class":"h-8 w-8"},null,8,["image"])):St("",!0),At(H,null,{popper:Ht(()=>[it("div",En,[it("div",null," TeamID: "+yt(J(G).id),1)])]),default:Ht(()=>[it("h3",Ln,yt(J(q)),1)]),_:1})]),At(R,{"current-type":J(B),"onUpdate:currentType":Y[0]||(Y[0]=L=>Bt(B)?B.value=L:null),types:Z},null,8,["current-type"])])])])]),default:Ht(()=>[it("div",Dn,[J(B)===we?(ut(),ft("div",In,[At(x,{"w-full":"",rank:J(P),submissions:J(G).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):St("",!0),J(B)===Se?(ut(),ft("div",jn,[At(J(ne.Chart),{options:("getTeamPlaceChart"in X?X.getTeamPlaceChart:J(Bs))(J(P),J(G))},null,8,["options"])])):St("",!0),J(B)===Ce?(ut(),ft("div",Bn,[At(b,{team:J(G),rank:J(P)},null,8,["team","rank"])])):St("",!0)])]),_:1},8,["isHidden"])}}}),Rn={},Nn={class:"color-gray-700 dark:color-gray-200"},Hn=it("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"},[it("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"}),it("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"}),it("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"}),it("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),it("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),it("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"}),it("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"}),it("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"}),it("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"}),it("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"}),it("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"}),it("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"}),it("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),$n=[Hn];function Wn(lt,st){return ut(),ft("div",Nn,$n)}const Fn=Gt(Rn,[["render",Wn]]),Gn={},Xn={class:"color-gray-700 dark:color-gray-200"},Un=it("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"},[it("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),Yn=[Un];function Vn(lt,st){return ut(),ft("div",Xn,Yn)}const qn=Gt(Gn,[["render",Vn]]),Kn=lt=>(re("data-v-abd25ffe"),lt=lt(),ae(),lt),Zn={key:1,class:"empty flex items-center justify-center"},Jn={flex:""},Qn={class:"float-left pl-2 font-serif"},tr={key:0},er={class:"flex-1"},ir=Kn(()=>it("div",{class:"float-right"},null,-1)),sr=Dt({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean}},setup(lt){const st=lt,ot=Tt(null),A=ti(ot),B=Tt(!0);function P(){B.value=!1}const G=kt(()=>st.rank),q=kt(()=>st.team);function Z(Y,O=!1){if(O){if(Y.awards.includes(Ft.GOLD))return"gold";if(Y.awards.includes(Ft.SILVER))return"silver";if(Y.awards.includes(Ft.BRONZE))return"bronze";if(Y.awards.includes(Ft.HONORABLE))return"honorable"}if(st.isFilter)return"filter-team";const H=(G.value.rankStatistics.getTeamSolvedNumIndex(Y.solvedProblemNum)-1)%2,R=(Y.rank-1)%2;return`stand${H}${R}`}function X(){return A.value||st.ix<32}return(Y,O)=>{const H=$e,R=qn,x=Fn,b=zn,E=mn;return ut(),ft("tr",{ref_key:"el",ref:ot,class:Pt(["h-10",[st.isFilter?"filter-team":""]])},[X()?(ut(),ft("td",{key:0,class:Pt(["stnd",[Z(J(q),!0)]])},yt(J(q).rank),3)):St("",!0),J(G).contest.badge&&J(q).badge&&X()?(ut(),ft("td",Zn,[At(H,{image:J(q).badge,"width-class":"h-8 w-8"},null,8,["image"])])):St("",!0),J(G).contest.organization&&X()?(ut(),ft("td",{key:2,class:Pt(["stnd",[Z(J(q))]])},[it("div",Jn,[it("div",Qn,[J(q).organizationRank>-1?(ut(),ft("div",tr,yt(J(q).organizationRank),1)):St("",!0)]),it("div",er,yt(J(q).organization),1),ir])],2)):St("",!0),X()?(ut(),ft("td",{key:3,class:Pt(["stnd",[Z(J(q))]])},[it("div",{"cursor-pointer":"",onClick:P},[it("span",null,yt(J(q).name),1),J(q).group.includes("unofficial")?(ut(),Nt(R,{key:0,"inline-block":""})):St("",!0),J(q).group.includes("girl")?(ut(),Nt(x,{key:1,"inline-block":""})):St("",!0)]),it("div",null,[J(B)?St("",!0):(ut(),Nt(b,{key:0,isHidden:J(B),"onUpdate:isHidden":O[0]||(O[0]=L=>Bt(B)?B.value=L:null),rank:J(G),team:J(q)},null,8,["isHidden","rank","team"]))])],2)):St("",!0),X()?(ut(),ft("td",{key:4,class:Pt(["stnd",[Z(J(q))]])},yt(J(q).solvedProblemNum),3)):St("",!0),X()?(ut(),ft("td",{key:5,class:Pt(["stnd",[Z(J(q))]])},yt(J(q).penaltyToMinute),3)):St("",!0),(ut(!0),ft(Lt,null,It(J(q).problemStatistics,L=>(ut(),ft(Lt,{key:L.problem.id},[X()?(ut(),Nt(E,{key:0,rank:J(G),team:J(q),p:L},null,8,["rank","team","p"])):St("",!0)],64))),128)),X()?(ut(),ft("td",{key:6,class:Pt(["stnd",[Z(J(q))]])},yt(`${J(q).dirt}%`),3)):St("",!0)],2)}}});const or=Gt(sr,[["__scopeId","data-v-abd25ffe"]]),nr={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},rr={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},ar={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},lr={flex:"","flex-row":"","space-x-3":""},hr={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},cr={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},dr={key:0,"w-full":"",class:"mt-[-12px]"},pr={key:1,"w-full":""},ur={key:2,"w-full":""},Me="submissions",Te="statistics",Ae="awards",fr=Dt({__name:"ProblemInfoModal",props:{isHidden:{type:Boolean},rank:null,problem:null},emits:["update:isHidden"],setup(lt,{emit:st}){const ot=lt,A=kt({get(){return ot.isHidden},set(Y){st("update:isHidden",Y)}}),B=Tt("submissions"),P=kt(()=>ot.rank),G=kt(()=>ot.problem),q=kt(()=>`Problem ${G.value.label}`),Z=kt(()=>P.value.getSubmissions().filter(Y=>Y.problemId===G.value.id)),X=[Me,Te,Ae];return(Y,O)=>{const H=He,R=he,x=le;return ut(),Nt(x,{isHidden:J(A),"onUpdate:isHidden":O[1]||(O[1]=b=>Bt(A)?A.value=b:null)},{header:Ht(()=>[it("div",nr,[it("div",rr,[it("div",ar,[it("div",lr,[it("h3",hr,yt(J(q)),1)]),At(H,{"current-type":J(B),"onUpdate:currentType":O[0]||(O[0]=b=>Bt(B)?B.value=b:null),types:X},null,8,["current-type"])])])])]),default:Ht(()=>[it("div",cr,[J(B)===Me?(ut(),ft("div",dr,[At(R,{"w-full":"",rank:J(P),submissions:J(Z),"page-size":8,"remove-border":!0,"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):St("",!0),J(B)===Te?(ut(),ft("div",pr)):St("",!0),J(B)===Ae?(ut(),ft("div",ur)):St("",!0)])]),_:1},8,["isHidden"])}}}),gr=Dt({__name:"ProblemBlock",props:{rank:null,problem:null},setup(lt){const st=lt,ot=Tt(!0);function A(){ot.value=!1}const B=kt(()=>st.rank),P=kt(()=>st.problem),G=kt(()=>P.value.balloonColor);return(q,Z)=>{const X=fr;return ut(),ft("th",{key:J(P).id,class:"success","text-center":"",style:Ut([{width:"3rem"},{"background-color":J(G).background_color,color:J(G).color}])},[it("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:A},[it("div",null,yt(J(P).label),1),it("div",null,yt(J(P).statistics.acceptedNum),1)]),it("div",null,[J(ot)?St("",!0):(ut(),Nt(X,{key:0,"is-hidden":J(ot),"onUpdate:isHidden":Z[0]||(Z[0]=Y=>Bt(ot)?ot.value=Y:null),rank:J(B),problem:J(P)},null,8,["is-hidden","rank","problem"]))])],4)}}});const mr=Gt(gr,[["__scopeId","data-v-6d613751"]]),xr={class:"standings","font-mono":"","dark:text-gray-700":""},yr={class:"sticky top-0 z-99"},vr={class:"title",style:{width:"3rem"}},kr={key:0,class:"title",style:{width:"2rem"}},br={class:"title",style:{width:"3rem"}},wr={class:"title",style:{width:"4rem"}},Sr={class:"title",style:{width:"2.5rem"}},Cr=Dt({__name:"Standings",props:{rank:{}},setup(lt){const st=lt,{t:ot}=Vt(),A=kt(()=>st.rank),B=kt(()=>st.rank.teams),P=kt(()=>st.rank.teams.filter(X=>!!(st.rank.organizations&&st.rank.options.filterOrganizationMap.has(X.organization)||st.rank.options.filterTeamMap.has(X.id)))),G=kt(()=>{let Z=0;return A.value.teams.forEach(X=>{Z=Math.max(Z,X.organization.length)}),Z}),q=kt(()=>{let Z=0;return A.value.teams.forEach(X=>{Z=Math.max(Z,X.name.length)}),Z});return(Z,X)=>{const Y=mr,O=or,H=pn;return ut(),ft("div",null,[it("div",null,[it("table",xr,[it("thead",yr,[it("tr",null,[it("th",vr,yt(J(ot)("standings.place")),1),J(A).contest.badge?(ut(),ft("th",kr,yt(J(A).contest.badge),1)):St("",!0),J(A).contest.organization?(ut(),ft("th",{key:1,class:"title",style:Ut({width:`${Math.min(32,Math.ceil(J(G)*1.1))}rem`})},yt(J(A).contest.organization),5)):St("",!0),it("th",{class:"title",style:Ut({width:`${Math.min(32,Math.ceil(J(q)*1))}rem`})},yt(J(ot)("standings.team")),5),it("th",br,yt(J(ot)("standings.solved")),1),it("th",wr,yt(J(ot)("standings.penalty")),1),(ut(!0),ft(Lt,null,It(J(A).contest.problems,R=>(ut(),Nt(Y,{key:`problem-block-${R.id}`,rank:J(A),problem:R},null,8,["rank","problem"]))),128)),it("th",Sr,yt(J(ot)("standings.dirt")),1)])]),it("tbody",null,[(ut(!0),ft(Lt,null,It(J(P),(R,x)=>(ut(),Nt(O,{key:`filter-${R.id}`,ix:x,rank:J(A),team:R,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(ut(!0),ft(Lt,null,It(J(B),(R,x)=>(ut(),Nt(O,{key:R.id,ix:x,rank:J(A),team:R},null,8,["ix","rank","team"]))),128)),At(H,{rank:J(A)},null,8,["rank"])])])])])}}});const Mr=Gt(Cr,[["__scopeId","data-v-49b9fc34"]]),Tr={"font-mono":"",flex:""},Ar=["onClick"],Pr=["href"],_r={key:1},Or=Dt({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(lt,{emit:st}){const ot=lt,A=kt(()=>{var O;for(const H of ot.items)if(H.isDefault)return H.keyword;return(O=ot.items)==null?void 0:O[0].keyword}),B=de(ot.queryParamName,A.value,{transform:String}),P=kt({get(){return ot.currentItem},set(O){st("update:currentItem",O)}}),{t:G,locale:q}=Vt();function Z(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){ot.onChange&&ot.onChange(O.keyword),!(O.link||O.isModal)&&(P.value=O.keyword,B.value=O.keyword)}return je(()=>{(()=>{var O;((O=B.value)==null?void 0:O.length)>0&&((()=>{for(const H of ot.items)if(H.titles){for(const[R,x]of H.titles)if(B.value===x){B.value=H.keyword;return}}})(),P.value=B.value,ot.onChange&&ot.onChange(B.value))})()}),(O,H)=>(ut(),ft("div",Tr,[it("div",{class:Pt(["mr-[-4px]",{"flex-row-reverse":ot.reverseOrder}]),flex:""},[(ut(!0),ft(Lt,null,It(ot.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)},[it("div",null,[R.link?(ut(),ft("a",{key:0,href:R.link,target:"_blank",title:"Resolver"},yt(Z(R)),9,Pr)):St("",!0),R.link?St("",!0):(ut(),ft("div",_r,yt(Z(R)),1))])],10,Ar))),128))],2)]))}});const Lr=Gt(Or,[["__scopeId","data-v-714a998b"]]);const Er={},Dr={class:"flex items-center justify-center dark:text-black"},Ir=ei('<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),jr=[Ir];function Br(lt,st){return ut(),ft("div",Dr,jr)}const zr=Gt(Er,[["render",Br],["__scopeId","data-v-54297ce8"]]),Rr={flex:""},Nr=it("div",null,[it("div",{"i-material-symbols-info-outline":"","text-lg":""})],-1),Hr={flex:""},$r=it("div",{class:"border-l-[1px] border-r-[1px]","mx-2":"","h-6":"","border-color-black":"","dark:border-color-white":""},null,-1),Wr={flex:""},Fr=Dt({__name:"BoardTab",props:{rank:{}},setup(lt){const st=lt,ot=kt(()=>st.rank),{t:A}=Vt(),B=Ee.useToast(),{copy:P,isSupported:G}=De();let q=null;const Z=Tt(null),X=Tt(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 H(){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 je(()=>{if(Z.value&&X.value){const x={placement:"right",triggerType:"click",offsetSkidding:32,offsetDistance:5,delay:300};q=new ii(Z.value,X.value,x)}}),(x,b)=>{const E=pe;return ut(),ft("div",Rr,[it("div",null,[At(E,{"w-inherit":""},{popper:Ht(()=>{var L;return[it("div",Hr,[it("div",null,yt(J(A)("standings.options.calculation_of_penalty"))+": "+yt(J(A)(`standings.options.${(L=J(ot).contest.options)==null?void 0:L.calculationOfPenalty}`)),1)])]}),default:Ht(()=>[Nr]),_:1})]),$r,it("div",Wr,[it("div",{ref_key:"dropdownTriggerEl",ref:X,"i-material-symbols-share":"","text-lg":"","cursor-pointer":""},null,512),it("div",{ref_key:"dropdownTargetEl",ref:Z,class:"z-9999 hidden divide-y divide-gray-100 rounded shadow w-36","bg-white":"","dark:bg-gray-700":""},[it("ul",{class:"py-2 text-sm text-gray-700 dark:text-gray-200"},[it("li",null,[it("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:H}," Copy Page Link ")]),it("li",null,[it("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)])])}}}),Gr=lt=>(re("data-v-7e1c3def"),lt=lt(),ae(),lt),Xr={key:0},Ur={key:0},Yr={key:0},Vr={class:"max-w-[92%]"},qr=["src"],Kr={class:"max-w-[92%]"},Zr={"mt-2":""},Jr={class:"w-[92%]"},Qr={class:"flex font-bold font-mono"},ta={class:"float-left"},ea={class:"pl-0.5"},ia={class:"flex-1"},sa={class:"float-right"},oa={class:"pl-0.5"},na={class:"mt-2"},ra={class:"mt-2 flex font-bold font-mono"},aa={class:"float-left"},la={class:"flex-1"},ha={class:"float-right"},ca={class:"mt-4 flex"},da={class:"float-left"},pa=Gr(()=>it("div",{class:"flex-1"},null,-1)),ua={class:"float-right"},fa={class:"max-w-[92%]"},ga={key:0},ma={key:1,class:"w-[88vw]"},xa={key:2},ya={key:3},va={key:4},ka={key:1},Pe="sm:w-[1280px] xl:w-screen",oe="sm:w-[1260px] xl:w-screen",ba=Dt({__name:"Board",props:{dataSourceUrl:null},setup(lt){const st=lt,ot=Jt(),A=si(ve),{t:B}=Vt(),P=Tt(!1),G=Tt({}),q=Tt([]),Z=Tt([]),X=Tt({}),Y=oi(),O=Tt(new ni),H=Tt(!1);(()=>{const S=$i(),$=Wi();S.value.length>0&&O.value.setFilterOrganizations(S.value),$.value.length>0&&O.value.setFilterTeams($.value)})();const R=Tt("all");function x(S){S!==O.value.group&&O.value.setGroup(S)}(()=>{const S=de("group","all",{transform:String});R.value=S.value,O.value.setGroup(S.value)})();const b=de("replay-start-time",0,{transform:Number}),E=Tt(!1);function L(S={force:!1}){if(H.value&&S.force===!1||E.value===!0)return;E.value=!0;const $=new ui(G.value,q.value,Z.value);$.options=ke.cloneDeep(O.value),$.setReplayTime(b.value),$.buildRank(),X.value=$,E.value=!1}const{data:c,isError:y,error:v}=mi(st.dataSourceUrl??ot.path,Y);Qt(c,async()=>{var S,$,K;c.value===null||c.value===void 0||(G.value=ri((S=c.value)==null?void 0:S.contest),A.value=`${G.value.name} | ${ve}`,q.value=ai(($=c.value)==null?void 0:$.teams),Z.value=li((K=c.value)==null?void 0:K.submissions),!O.value.enableFilterSubmissionsByTimestamp&&(L(),P.value=!0))});function f(){P.value!==!1&&L()}Qt(O.value,()=>{if(!X.value.options.isNeedReBuildRank(O.value)){X.value.options=ke.cloneDeep(O.value);return}f()});{const{pause:S,resume:$}=hi(()=>{f()},1e3);Qt(b,()=>{b.value===0?S():(f(),$())})}const C=Tt([{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),w=kt(()=>{const S=Array();for(const[$,K]of k.value){const rt={titles:K.names,defaultLang:K.defaultLang,keyword:$,isDefault:K.isDefault};S.push(rt)}return S}),o=Tt("rank"),l=Tt(!0);function p(S){S==="options"&&(l.value=!1)}function h(){const S=document.documentElement.scrollHeight||document.body.scrollHeight,$=document.documentElement.scrollTop||document.body.scrollTop,K=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return S-$===K}let d=null;function e(){d!==null&&clearInterval(d)}ci("S",S=>{if(H.value=!H.value,H.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 S=X.value.contest.getStartTime().format("YYYY-MM-DD HH:mm:ss");return`${B("standings.start_time")}${B("common.colon")}${S}`}),i=kt(()=>{const S=X.value.contest.getEndTime().format("YYYY-MM-DD HH:mm:ss");return`${B("standings.end_time")}${B("common.colon")}${S}`}),a=kt(()=>{const S=X.value.contest.getContestElapsedTime(Y.value);return`${B("standings.elapsed")}${B("common.colon")}${S}`}),u=kt(()=>{const S=X.value.contest.getContestRemainingTime(Y.value);return`${B("standings.remaining")}${B("common.colon")}${S}`}),_=kt(()=>X.value.options.enableFilterSubmissionsByTimestamp?di.PAUSED:X.value.contest.getContestState()),r=kt(()=>Ie(X.value.options.timestamp));return pi(()=>{e()}),(S,$)=>{var F;const K=Fr,rt=fi,j=gi,s=zr,T=Lr,z=Mr,I=he,V=Us,n=Es,g=ys,m=us,W=is;return ut(),ft("div",null,[J(P)?St("",!0):(ut(),ft("div",Xr,[it("div",{class:Pt([Pe]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[it("div",null,yt(J(B)("common.loading"))+"... ",1),J(y)?(ut(),ft("div",Ur,yt(J(v)),1)):St("",!0)],2)])),J(P)?(ut(),ft("div",{key:1,class:Pt([Pe]),flex:"","flex-col":"","justify-center":"","items-center":""},[J(X).contest.banner?(ut(),ft("div",Yr,[it("div",{class:Pt([oe]),"mb-4":"",flex:"","justify-center":"","items-center":""},[it("div",Vr,[it("img",{src:["data:image/png;base64,",(F=J(X).contest.banner)==null?void 0:F.base64].join(""),alt:"banner"},null,8,qr)])],2)])):St("",!0),it("div",{class:Pt(["title",[oe]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":""},[it("div",Kr,yt(J(X).contest.name),1)],2),it("div",Zr,[At(K,{rank:J(X)},null,8,["rank"])]),it("div",{class:Pt([oe]),"mt-2":"",flex:"","flex-row":"","justify-center":""},[it("div",Jr,[it("div",Qr,[it("div",ta,[qt(yt(J(t)),1),it("sup",ea,yt(J(X).contest.getStartTime().format("z")),1)]),it("div",ia,[At(rt,{state:J(_),"pending-time":J(X).contest.getContestPendingTime(J(Y)),"paused-time":J(r)},null,8,["state","pending-time","paused-time"])]),it("div",sa,[qt(yt(J(i)),1),it("sup",oa,yt(J(X).contest.endTime.format("z")),1)])]),it("div",na,[At(j,{"rank-options":J(O),"onUpdate:rankOptions":$[0]||($[0]=N=>Bt(O)?O.value=N:null),width:J(X).contest.getContestProgressRatio(J(Y)),state:J(X).contest.getContestState(J(Y)),"need-scroll":!0,rank:J(X),"elapsed-time":J(X).contest.getContestElapsedTime(J(Y))},null,8,["rank-options","width","state","rank","elapsed-time"])]),it("div",ra,[it("div",aa,yt(J(a)),1),it("div",la,[At(s)]),it("div",ha,yt(J(u)),1)]),it("div",ca,[it("div",da,[At(T,{"current-item":J(R),"onUpdate:currentItem":$[1]||($[1]=N=>Bt(R)?R.value=N:null),items:J(w),"query-param-name":"group","on-change":x},null,8,["current-item","items"])]),pa,it("div",ua,[At(T,{"current-item":J(o),"onUpdate:currentItem":$[2]||($[2]=N=>Bt(o)?o.value=N:null),items:J(C),"reverse-order":!0,"query-param-name":"type","on-change":p},null,8,["current-item","items"])])])])],2),it("div",{"mt-4":"",class:Pt([oe]),flex:"","justify-center":""},[it("div",fa,[J(o)==="rank"?(ut(),ft("div",ga,[At(z,{rank:J(X)},null,8,["rank"])])):St("",!0),J(o)==="submissions"?(ut(),ft("div",ma,[At(I,{"w-full":"",rank:J(X),submissions:J(X).getSubmissions(),"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):St("",!0),J(o)==="statistics"?(ut(),ft("div",xa,[At(V,{rank:J(X)},null,8,["rank"])])):St("",!0),J(o)==="export"?(ut(),ft("div",ya,[At(n,{rank:J(X)},null,8,["rank"])])):St("",!0),J(o)==="utility"?(ut(),ft("div",va,[At(g,{rank:J(X)},null,8,["rank"])])):St("",!0)])],2),J(O).enableAnimatedSubmissions?(ut(),ft("div",ka,[At(m,{rank:J(X)},null,8,["rank"])])):St("",!0),J(l)?St("",!0):(ut(),Nt(W,{key:2,"is-hidden":J(l),"onUpdate:isHidden":$[3]||($[3]=N=>Bt(l)?l.value=N:null),"rank-options":J(O),"onUpdate:rankOptions":$[4]||($[4]=N=>Bt(O)?O.value=N:null),rank:J(X)},null,8,["is-hidden","rank-options","rank"]))],2)):St("",!0)])}}});const Ma=Gt(ba,[["__scopeId","data-v-7e1c3def"]]);export{Ma as _};
|
|
1
|
+
var We=Object.defineProperty;var Fe=(lt,it,ot)=>it in lt?We(lt,it,{enumerable:!0,configurable:!0,writable:!0,value:ot}):lt[it]=ot;var ie=(lt,it,ot)=>(Fe(lt,typeof it!="symbol"?it+"":it,ot),ot);import{g as Dt,s as kt,U as Ge,w as Qt,o as ut,c as ft,d as st,x as Ut,V as ge,t as yt,n as Pt,W as Yt,I as Wt,F as Lt,D as It,m as St,T as qt,M as _e,N as Xe,K as Jt,X as Oe,u as Vt,i as Tt,E as Nt,S as Ht,l as J,b as At,H as Bt,Y as Ue,Z as Ft,$ as Ye,a0 as Le,a1 as me,a as Gt,G as Ve,a2 as Kt,a3 as qe,a4 as Ee,a5 as De,a6 as Ke,a7 as xe,a8 as Ze,a9 as Ie,aa as Je,ab as ye,ac as pe,ad as re,ae,af as Qe,v as ti,J as de,ag as je,Q as ei,ah as ii,h as si,ai as ve,aj as oi,ak as ni,j as ri,y as ai,z as li,al as ke,am as hi,an as ci,p as di,k as pi,R as ui,ao as fi,ap as gi}from"./index-1304674a.js";import{u as mi}from"./useQueryBoardData-67124d23.js";const xi={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":""},yi={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},vi={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},ki={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},bi=st("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[st("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),wi=st("span",{"sr-only":""}," Close modal ",-1),Si=[bi,wi],le=Dt({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null},emits:["update:isHidden"],setup(lt,{emit:it}){const ot=lt,A=kt({get(){return ot.isHidden},set(G){it("update:isHidden",G)}});function B(){A.value=!0}const{Escape:P}=Ge();return Qt(P,G=>{G&&B()}),(G,K)=>(ut(),ft("div",xi,[st("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-9998":"",style:Ut({backgroundColor:"rgba(0, 0, 0, 0.5)"}),onClick:B},null,4),st("div",{class:Pt(["relative p-4",[ot.width??"w-[78%]"]]),"z-9999":""},[st("div",yi,[st("div",vi,[ge(G.$slots,"header",{},()=>[st("h3",ki,yt(ot.title),1)]),st("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},Si)]),ge(G.$slots,"default")])],2)]))}}),jt={openOptions(lt){lt.$refs.input.focus(),lt.showMenu=!0,lt.mousedownState=!1},blurInput(lt){lt.mousedownState||(lt.searchText="",lt.closeOptions()),lt.$emit("blur")},closeOptions(lt){lt.$refs.input.blur(),lt.showMenu=!1},prevItem(lt){const it=lt.pointer-1,ot=lt.$el.offsetHeight*it;it>=0&&(lt.pointer=it),lt.$refs.menu.scrollTop=ot},nextItem(lt){const it=lt.pointer+1,ot=lt.$el.offsetHeight*it;it<=lt.filteredOptions.length-1&&(lt.pointer=it);const A=lt.$refs.menu.offsetHeight,B=Math.ceil((lt.$refs.menu.scrollTop+lt.$el.offsetHeight)/A),P=Math.ceil(ot/A);B!==P&&(lt.$refs.menu.scrollTop=(P-1)*lt.$refs.menu.offsetHeight)},enterItem(lt){const it=lt.filteredOptions[lt.pointer],ot=it.disabled;it&&!ot&<.selectItem(it)},pointerSet(lt,it){lt.pointer=it},pointerAdjust(lt){lt.pointer>=lt.filteredOptions.length-1&&(lt.pointer=lt.filteredOptions.length?lt.filteredOptions.length-1:0)},mousedownItem(lt){lt.mousedownState=!0}};function Ci(lt){return new RegExp(lt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Be={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:(lt,it)=>lt.match(Ci(it))}}},ze=(lt,it)=>{const ot=lt.__vccOpts||lt;for(const[A,B]of it)ot[A]=B;return ot},Mi={name:"ModelSelect",mixins:[Be],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(lt){this.pointer=this.filteredOptions.findIndex(it=>it.value===this.optionValue(lt))},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 lt=this.placeholder;return this.selectedOption&&(lt=this.selectedOption.text),lt}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(lt=>this.customAttr(lt))}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(lt=>{try{return this.filterPredicate(lt.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(lt=>lt.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(lt){jt.pointerSet(this,lt)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(lt){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",lt):(this.$emit("update:modelValue",lt.value),lt.value!==void 0&<.value===lt.text&&(this.searchText=lt.value))},optionValue(lt){return typeof lt=="object"&<!==null?lt.value:lt}}},Ti=st("i",{class:"dropdown icon"},null,-1),Ai=["disabled","tabindex","id","name","value"],Pi=["data-vss-custom-attr"],_i=["data-vss-custom-attr","onClick","onMouseenter"];function Oi(lt,it,ot,A,B,P){return ut(),ft("div",{class:Pt(["ui fluid search selection dropdown",{"active visible":B.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:it[11]||(it[11]=(...G)=>P.openOptions&&P.openOptions(...G)),onFocus:it[12]||(it[12]=(...G)=>P.openOptions&&P.openOptions(...G))},[Ti,st("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,value:B.searchText,onInput:it[0]||(it[0]=G=>B.searchText=G.target.value),ref:"input",onFocus:it[1]||(it[1]=Yt((...G)=>P.openOptions&&P.openOptions(...G),["prevent"])),onKeyup:[it[2]||(it[2]=Wt((...G)=>P.closeOptions&&P.closeOptions(...G),["esc"])),it[7]||(it[7]=Wt(Yt((...G)=>P.enterItem&&P.enterItem(...G),["prevent"]),["enter"]))],onBlur:it[3]||(it[3]=(...G)=>P.blurInput&&P.blurInput(...G)),onKeydown:[it[4]||(it[4]=Wt((...G)=>P.prevItem&&P.prevItem(...G),["up"])),it[5]||(it[5]=Wt((...G)=>P.nextItem&&P.nextItem(...G),["down"])),it[6]||(it[6]=Wt(Yt(()=>{},["prevent"]),["enter"])),it[8]||(it[8]=Wt((...G)=>P.deleteTextOrItem&&P.deleteTextOrItem(...G),["delete"]))]},null,40,Ai),st("div",{class:Pt(["text",P.textClass]),"data-vss-custom-attr":P.searchTextCustomAttr},yt(P.inputText),11,Pi),st("div",{class:Pt(["menu",P.menuClass]),ref:"menu",onMousedown:it[10]||(it[10]=Yt(()=>{},["prevent"])),style:Ut(P.menuStyle),tabindex:"-1"},[(ut(!0),ft(Lt,null,It(P.filteredOptions,(G,K)=>(ut(),ft("div",{key:K,class:Pt(["item",{selected:G.selected||B.pointer===K,disabled:G.disabled}]),"data-vss-custom-attr":P.customAttrs[K]?P.customAttrs[K]:"",onClick:Yt(Z=>P.selectItem(G),["stop"]),onMousedown:it[9]||(it[9]=(...Z)=>P.mousedownItem&&P.mousedownItem(...Z)),onMouseenter:Z=>P.pointerSet(K)},yt(G.text),43,_i))),128))],38)],34)}const Li=ze(Mi,[["render",Oi]]),Ei={name:"MultiSelect",mixins:[Be],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(lt=>this.selectedOptions.findIndex(it=>it.value===lt.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(lt=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(lt.text),this.searchText):this.filterPredicate(lt.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(lt){jt.pointerSet(this,lt)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(lt){const it=this.selectedOptions.concat(lt),ot=it.filter((A,B)=>it.indexOf(A)===B);this.closeOptions(),this.searchText="",this.$emit("select",ot,lt,"insert")},deleteItem(lt){const it=this.selectedOptions.filter(ot=>ot.value!==lt.value);this.$emit("select",it,lt,"delete")},accentsTidy(lt){let it=lt.toString().toLowerCase();return it=it.replace(new RegExp("[àáâãäå]","g"),"a"),it=it.replace(new RegExp("æ","g"),"ae"),it=it.replace(new RegExp("ç","g"),"c"),it=it.replace(new RegExp("[èéêë]","g"),"e"),it=it.replace(new RegExp("[ìíîï]","g"),"i"),it=it.replace(new RegExp("ñ","g"),"n"),it=it.replace(new RegExp("[òóôõö]","g"),"o"),it=it.replace(new RegExp("œ","g"),"oe"),it=it.replace(new RegExp("[ùúûü]","g"),"u"),it=it.replace(new RegExp("[ýÿ]","g"),"y"),it}}},Di=st("i",{class:"dropdown icon"},null,-1),Ii=["data-vss-custom-attr"],ji=["onClick"],Bi=["disabled","tabindex","id","name"],zi=["data-vss-custom-attr","onClick","onMouseenter"];function Ri(lt,it,ot,A,B,P){return ut(),ft("div",{class:Pt(["ui fluid search dropdown selection multiple",{"active visible":B.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:it[11]||(it[11]=(...G)=>P.openOptions&&P.openOptions(...G)),onFocus:it[12]||(it[12]=(...G)=>P.openOptions&&P.openOptions(...G))},[Di,ot.hideSelectedOptions?St("",!0):(ut(!0),ft(Lt,{key:0},It(ot.selectedOptions,(G,K)=>(ut(),ft("a",{key:K,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":ot.customAttr(G)},[qt(yt(G.text),1),st("i",{class:"delete icon",onClick:Z=>P.deleteItem(G)},null,8,ji)],8,Ii))),128)),_e(st("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,"onUpdate:modelValue":it[0]||(it[0]=G=>B.searchText=G),ref:"input",style:Ut(P.inputWidth),onFocus:it[1]||(it[1]=Yt((...G)=>P.openOptions&&P.openOptions(...G),["prevent"])),onKeyup:[it[2]||(it[2]=Wt((...G)=>P.closeOptions&&P.closeOptions(...G),["esc"])),it[7]||(it[7]=Wt(Yt((...G)=>P.enterItem&&P.enterItem(...G),["prevent"]),["enter"]))],onBlur:it[3]||(it[3]=(...G)=>P.blurInput&&P.blurInput(...G)),onKeydown:[it[4]||(it[4]=Wt((...G)=>P.prevItem&&P.prevItem(...G),["up"])),it[5]||(it[5]=Wt((...G)=>P.nextItem&&P.nextItem(...G),["down"])),it[6]||(it[6]=Wt(Yt(()=>{},["prevent"]),["enter"])),it[8]||(it[8]=Wt((...G)=>P.deleteTextOrLastItem&&P.deleteTextOrLastItem(...G),["delete"]))]},null,44,Bi),[[Xe,B.searchText]]),st("div",{class:Pt(["text",P.textClass])},yt(P.inputText),3),st("div",{class:Pt(["menu",P.menuClass]),ref:"menu",onMousedown:it[10]||(it[10]=Yt(()=>{},["prevent"])),style:Ut(P.menuStyle),tabindex:"-1"},[(ut(!0),ft(Lt,null,It(P.filteredOptions,(G,K)=>(ut(),ft("div",{key:K,class:Pt(["item",{selected:G.selected||B.pointer===K,disabled:G.disabled}]),"data-vss-custom-attr":ot.customAttr(G),onClick:Yt(Z=>P.selectItem(G),["stop"]),onMousedown:it[9]||(it[9]=(...Z)=>P.mousedownItem&&P.mousedownItem(...Z)),onMouseenter:Z=>P.pointerSet(K)},yt(G.text),43,zi))),128))],38)],34)}const Zt=ze(Ei,[["render",Ri]]);function Ni(){return`filter-organizations-${Jt().path}`}function Hi(){return`filter-teams-${Jt().path}`}function $i(){const it=`filter-organizations-${Jt().path}`;return Oe(it,[])}function Wi(){const it=`filter-teams-${Jt().path}`;return Oe(it,[])}const Fi={"w-full":"","font-bold":"","font-mono":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},Gi={key:0,flex:"","flex-col":"","w-full":""},Xi={"w-full":"","mt-2":""},Ui={flex:"","flex-col":"","w-full":""},Yi=st("div",null," Filter Team ",-1),Vi={"w-full":"","mt-2":""},qi={flex:"","flex-col":"","w-full":""},Ki=st("div",{flex:"","mb-2":""}," Feature ",-1),Zi={flex:"","flex-row":""},Ji={class:"relative inline-flex items-center cursor-pointer"},Qi=st("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),ts=st("span",{class:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},"Animated Submissions",-1),es={"mt-2":"","w-full":"",flex:"","items-center":"","space-x-4":""},is=Dt({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(lt,{emit:it}){const ot=lt,{t:A}=Vt(),B=kt({get(){return ot.isHidden},set(f){it("update:isHidden",f)}}),P=kt({get(){return ot.rankOptions},set(f){it("update:rankOptions",f)}}),G=kt(()=>ot.rank),K=kt(()=>A("type_menu.options")),Z=Tt(P.value.enableAnimatedSubmissions),X=kt(()=>G.value.organizations.map(C=>({value:C,text:C}))),Y=Tt(P.value.filterOrganizations),O=Tt({});function H(f,C){Y.value=f,O.value=C}const R=kt(()=>G.value.originTeams.map(C=>({value:C.id,text:C.organization?`${C.name} - ${C.organization}`:C.name}))),x=Tt(P.value.filterTeams),b=Tt({});function E(f,C){x.value=f,b.value=C}function L(){B.value=!0}const c=Ni(),y=Hi();function v(){P.value.setFilterOrganizations(Y.value),P.value.setFilterTeams(x.value),localStorage.setItem(c,JSON.stringify(Y.value)),localStorage.setItem(y,JSON.stringify(x.value)),P.value.enableAnimatedSubmissions=Z.value,L()}return(f,C)=>{const k=le;return ut(),Nt(k,{isHidden:J(B),"onUpdate:isHidden":C[1]||(C[1]=w=>Bt(B)?B.value=w:null),title:J(K),width:"w-180"},{default:Ht(()=>[st("div",Fi,[J(G).contest.organization?(ut(),ft("div",Gi,[st("div",null," Filter "+yt(J(G).contest.organization),1),st("div",Xi,[At(J(Zt),{options:J(X),"selected-options":J(Y),onSelect:H},null,8,["options","selected-options"])])])):St("",!0),st("div",Ui,[Yi,st("div",Vi,[At(J(Zt),{options:J(R),"selected-options":J(x),onSelect:E},null,8,["options","selected-options"])])]),st("div",qi,[Ki,st("div",Zi,[st("label",Ji,[_e(st("input",{"onUpdate:modelValue":C[0]||(C[0]=w=>Bt(Z)?Z.value=w:null),type:"checkbox",class:"sr-only peer"},null,512),[[Ue,J(Z)]]),Qi,ts])])]),st("div",es,[st("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:v},yt(J(A)("button.confirm")),1),st("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:L},yt(J(A)("button.cancel")),1)])])]),_:1},8,["isHidden","title"])}}});function ss(lt){const it={backgroundColor:"#fff",color:"#000"};if(lt.awards.includes(Ft.GOLD))return it.backgroundColor="#fff566",it;if(lt.awards.includes(Ft.SILVER))return it.backgroundColor="#ffadd2",it;if(lt.awards.includes(Ft.BRONZE))return it.backgroundColor="#f0c0a0",it;if(lt.awards.includes(Ft.HONORABLE))return it.backgroundColor="#e6f7ff",it}function os(lt){return lt.isFirstSolved?"#3db03d":lt.isAccepted()?"#e1ffb5":lt.isPending()?"#c8d6fa":"#ffd0d0"}var te=(lt=>(lt[lt.SUBMISSION_STATUS=0]="SUBMISSION_STATUS",lt[lt.SUBMIT_TIMESTAMP=1]="SUBMIT_TIMESTAMP",lt))(te||{});const ns={"h-7":"","w-124":"","text-gray-200":"","font-mono":"",flex:"","flex-row":"","justify-center":"","items-center":"",class:"bg-resolver-bg-zero"},rs={"h-full":"","w-92":"","pl-1":"",truncate:""},as={"h-full":"","w-4":""},ls=Dt({__name:"AnimatedSubmissionBlock",props:{item:null,lastBlockDisplayType:null},setup(lt){const it=lt,ot=kt(()=>it.item);function A(){const B=ot.value.submission;if(it.lastBlockDisplayType===te.SUBMISSION_STATUS)return Ye[B.status];if(it.lastBlockDisplayType===te.SUBMIT_TIMESTAMP)return B.timestampToMinute}return(B,P)=>(ut(),ft("div",ns,[st("div",{"h-full":"","w-10":"",style:Ut(J(ss)(J(ot).team)),flex:"","justify-center":"","items-center":""},[st("div",null,yt(J(ot).team.rank),1)],4),st("div",rs,yt(J(ot).displayName),1),st("div",as,yt(J(ot).team.solvedProblemNum),1),st("div",{"h-full":"","w-6":"","border-b-3":"",flex:"","justify-center":"",style:Ut({borderColor:J(ot).problem.balloonColor.background_color})},yt(J(ot).problem.label),5),st("div",{"h-full":"","w-12":"",flex:"","justify-center":"","font-sans":"","font-medium":"","text-zinc-800":"",style:Ut({backgroundColor:("getStandingsStatusColor"in B?B.getStandingsStatusColor:J(os))(J(ot).submission)})},yt(A()),5)]))}}),hs={absolute:"",fixed:"","z-99":"","bottom-4":"","left-4":"","opacity-80":""},cs={flex:"","flex-col":""},ds={flex:"","flex-col":"","mt-6":""},ps=Dt({__name:"AnimatedSubmissionsModal",props:{rank:{}},setup(lt){const it=lt,ot=kt(()=>it.rank),A=kt(()=>{const G=ot.value.getSubmissions().sort(Le.compare).reverse();let K=0;const Z=10,X=[];let Y=0;const O=6,H=[];for(let R=0;R<G.length&&(Y<O||K<Z);R++){const x=G[R],b=x.teamId,E=x.problemId,L=ot.value.teamsMap.get(b);if(!L||ot.value.filterTeamByOrg(L))continue;const c=ot.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};K<Z&&(X.push(v),++K),x.isSolved&&Y<O&&(H.push(v),++Y)}return H.reverse(),X.reverse(),{acceptedRes:H,allRes:X}}),B=kt(()=>A.value.acceptedRes),P=kt(()=>A.value.allRes);return(G,K)=>{const Z=ls;return ut(),ft("div",hs,[st("div",cs,[st("div",null,[At(me,{name:"list",tag:"ul"},{default:Ht(()=>[(ut(!0),ft(Lt,null,It(J(B),X=>(ut(),ft("div",{key:X.submission.id},[At(Z,{item:X,"last-block-display-type":J(te).SUBMIT_TIMESTAMP},null,8,["item","last-block-display-type"])]))),128))]),_:1})])]),st("div",ds,[st("div",null,[At(me,{name:"list",tag:"ul"},{default:Ht(()=>[(ut(!0),ft(Lt,null,It(J(P),X=>(ut(),ft("div",{key:X.submission.id},[st("div",null,[At(Z,{item:X,"last-block-display-type":J(te).SUBMISSION_STATUS},null,8,["item","last-block-display-type"])])]))),128))]),_:1})])])])}}});const us=Gt(ps,[["__scopeId","data-v-c5c85310"]]),fs={"w-full":"",flex:"","mt-4":"","gap-4":""},gs={btn:"",title:"Submissions",disabled:"true"},ms={"w-full":"",flex:"","mt-4":"","gap-4":""},xs=["href"],ys=Dt({__name:"Utility",setup(lt){const{t:it}=Vt(),ot=Jt(),A=Ve(),B=kt(()=>`https://resolver.xcpcio.com/resolver?xcpcio-data-source=${ot.path}`);function P(){A.push(`/balloon/?data-source=${ot.path}`)}function G(){A.push(`/countdown/?data-source=${ot.path}`)}return(K,Z)=>(ut(),ft(Lt,null,[st("div",fs,[st("button",{btn:"",title:"Balloon",onClick:P},yt(J(it)("type_menu.balloon")),1),st("button",gs,yt(J(it)("type_menu.submissions")),1)]),st("div",ms,[st("a",{btn:"",href:J(B),target:"_blank",title:"Resolver"},yt(J(it)("type_menu.resolver")),9,xs),st("button",{btn:"",title:"Countdown",onClick:G},yt(J(it)("type_menu.countdown")),1)])],64))}});var Re={exports:{}};(function(lt,it){(function(ot,A){A()})(Kt,function(){function ot(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 A(X,Y,O){var H=new XMLHttpRequest;H.open("GET",X),H.responseType="blob",H.onload=function(){Z(H.response,Y,O)},H.onerror=function(){console.error("could not download file")},H.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,K=G.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Z=G.saveAs||(typeof window!="object"||window!==G?function(){}:"download"in HTMLAnchorElement.prototype&&!K?function(X,Y,O){var H=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)?A(X,Y,O):P(R,R.target="_blank")):(R.href=H.createObjectURL(X),setTimeout(function(){H.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(ot(X,O),Y);else if(B(X))A(X,Y,O);else{var H=document.createElement("a");H.href=X,H.target="_blank",setTimeout(function(){P(H)})}}:function(X,Y,O,H){if(H=H||open("","_blank"),H&&(H.document.title=H.document.body.innerText="downloading..."),typeof X=="string")return A(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||K)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var y=E.result;y=b?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),H?H.location.href=y:location=y,H=null},E.readAsDataURL(X)}else{var L=G.URL||G.webkitURL,c=L.createObjectURL(X);H?H.location=c:location.href=c,H=null,setTimeout(function(){L.revokeObjectURL(c)},4e4)}});G.saveAs=Z.saveAs=Z,lt.exports=Z})})(Re);var vs=Re.exports;const ks=qe(vs);var bs=setTimeout;function ws(lt,it){var ot=it.useCachedSetTimeout?bs:setTimeout;return new Promise(function(A){ot(A,lt)})}function Ss(lt){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=it.useCachedSetTimeout,A=ws(lt,{useCachedSetTimeout:ot});function B(P){return A.then(function(){return P})}return B.then=function(){return A.then.apply(A,arguments)},B.catch=Promise.resolve().catch,B}const Cs={flex:"","flex-col":""},Ms={"w-160":"","font-bold":""},Ts={"mt-8":""},As={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},Ps=["disabled"],_s=["disabled"],Os={key:1,flex:"","justify-center":""},Ls=["disabled"],Es=Dt({__name:"Export",props:{rank:null},setup(lt){const it=lt,ot=Ee.useToast(),{copy:A,isSupported:B}=De(),P=kt(()=>it.rank),G=Tt({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),K=Tt([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"}]),Z=Tt({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1});async function X(){await Ke(),await Ss(16)}async function Y(){Z.value.CfDatDownload=!0,await X();const x=new xe().convert(P.value),b=new Blob([x],{type:"text/plain;charset=utf-8"});ks.saveAs(b,"contest.dat"),Z.value.CfDatDownload=!1}async function O(){if(!B.value){ot.warning("clipboard is not supported");return}Z.value.CfDatCopy=!0,await X();const x=new xe().convert(P.value);A(x),Z.value.CfDatCopy=!1,ot.success("Copy Success")}async function H(){Z.value.GeneralXLSXDownload=!0,await X(),new Ze().convertAndWrite(P.value,`${P.value.contest.name}.xlsx`),Z.value.GeneralXLSXDownload=!1}return(R,x)=>(ut(),ft("div",Cs,[st("div",Ms,[At(J(Li),{modelValue:J(G),"onUpdate:modelValue":x[0]||(x[0]=b=>Bt(G)?G.value=b:null),options:J(K),placeholder:"Export Type"},null,8,["modelValue","options"])]),st("div",Ts,[J(G).value==="cf-dat"?(ut(),ft("div",As,[st("button",{disabled:J(Z).CfDatDownload,btn:"",onClick:Y}," Download ",8,Ps),st("button",{disabled:J(Z).CfDatCopy,btn:"",onClick:O}," Copy to Clipboard ",8,_s)])):St("",!0),J(G).value==="general-xlsx"?(ut(),ft("div",Os,[st("button",{disabled:J(Z).GeneralXLSXDownload,btn:"",onClick:H}," Download ",8,Ls)])):St("",!0)])]))}});function ue(lt,it,ot,A,B,P){return{colors:P,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:lt},xAxis:{categories:A,labels:{style:{fontSize:"16px"}},title:{text:it,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:ot,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 Ds(lt){const it=[];lt.contest.problems.forEach((P,G)=>{it.push({problem_id:P.label,index:G,solved:P.statistics.acceptedNum})}),it.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:ot,series:A,colors:B}=(()=>{const P=[],G=[];return it.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("题目通过数","题目编号","通过数",ot,A,B)}function Is(lt){const it=lt.rankStatistics.teamSolvedNum.map((P,G)=>({index:G,cnt:P})),{cat:ot,series:A,colors:B}=(()=>{const P=[],G=[];return it.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("队伍过题数","过题数","队伍数",ot,A,B)}function js(lt){const{cat:it,series:ot,colors:A}=(()=>{const B=[],P=[],G=[],K=[];return lt.contest.problems.forEach(Y=>{P.push(Y.statistics.acceptedNum),G.push(Y.statistics.rejectedNum),K.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:K}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return ue("提交分类","题目编号","提交数",it,ot,A)}function Bs(lt,it){const ot=it.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:ot,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 Ne={exports:{}},ce={exports:{}},be;function zs(){return be||(be=1,function(lt){(function(it,ot){lt.exports?(ot.default=ot,lt.exports=it.document?ot(it):ot):(it.Highcharts&&it.Highcharts.error(16,!0),it.Highcharts=ot(it))})(typeof window<"u"?window:Kt,function(it){function ot(B,P,G,K){B.hasOwnProperty(P)||(B[P]=K.apply(null,G),typeof CustomEvent=="function"&&it.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:P,module:B[P]}})))}var A={};return ot(A,"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 it<"u"?it:{},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 K=Object.defineProperty({},"passive",{get:function(){G=!0}});P.win.addEventListener&&P.win.removeEventListener&&(P.win.addEventListener("testPassive",P.noop,K),P.win.removeEventListener("testPassive",P.noop,K))}return G}(),P.charts=[],P.dateFormats={},P.seriesTypes={},P.symbolSizes={},P.chartCount=0}(B||(B={})),B}),ot(A,"Core/Utilities.js",[A["Core/Globals.js"]],function(B){function P(t,i,a,u){const _=i?"Highcharts error":"Highcharts warning";t===32&&(t=`${_}: Deprecated member`);const r=H(t);let S=r?`${_} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(typeof u<"u"){let $="";r&&(S+="?"),C(u,function(q,rt){$+=`
|
|
2
|
+
- ${rt}: ${q}`,r&&(S+=encodeURI(rt)+"="+encodeURI(q))}),S+=$}w(B,"displayError",{chart:a,code:t,message:S,params:u},function(){if(i)throw Error(S);p.console&&P.messages.indexOf(S)===-1&&console.warn(S)}),P.messages.push(S)}function G(t,i){return parseInt(t,i||10)}function K(t){return typeof t=="string"}function Z(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||!Z(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 H(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,a){const u=K(i)&&!R(a);let _;const r=(S,$)=>{R(S)?t.setAttribute($,S):u?(_=t.getAttribute($))||$!=="class"||(_=t.getAttribute($+"Name")):t.removeAttribute($)};return K(i)?r(a,i):C(i,r),_}function b(t){return Z(t)?t:[t]}function E(t,i){let a;t||(t={});for(a in i)t[a]=i[a];return t}function L(){const t=arguments,i=t.length;for(let a=0;a<i;a++){const u=t[a];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 f(t,i,a){let u;return i==="width"?(i=Math.min(t.offsetWidth,t.scrollWidth),a=t.getBoundingClientRect&&t.getBoundingClientRect().width,a<i&&a>=i-1&&(i=Math.floor(a)),Math.max(0,i-(f(t,"padding-left",!0)||0)-(f(t,"padding-right",!0)||0))):i==="height"?Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(f(t,"padding-top",!0)||0)-(f(t,"padding-bottom",!0)||0)):((t=p.getComputedStyle(t,void 0))&&(u=t.getPropertyValue(i),L(a,i!=="opacity")&&(u=G(u))),u)}function C(t,i,a){for(const u in t)Object.hasOwnProperty.call(t,u)&&i.call(a||t[u],t[u],u,t)}function k(t,i,a){function u(S,$){const q=t.removeEventListener;q&&q.call(t,S,$,!1)}function _(S){let $,q;t.nodeName&&(i?($={},$[i]=!0):$=S,C($,function(rt,j){if(S[j])for(q=S[j].length;q--;)u(j,S[j][q].fn)}))}var r=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){const S=r.hcEvents;i?(r=S[i]||[],a?(S[i]=r.filter(function($){return a!==$.fn}),u(i,a)):(_(S),S[i]=[])):(_(S),delete r.hcEvents)}}function w(t,i,a,u){if(a=a||{},l.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==B)){var _=l.createEvent("Events");_.initEvent(i,!0,!0),a=E(_,a),t.dispatchEvent?t.dispatchEvent(a):t.fireEvent(i,a)}else if(t.hcEvents){a.target||E(a,{preventDefault:function(){a.defaultPrevented=!0},target:t,type:i}),_=[];let r=t,S=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[i]&&(_.length&&(S=!0),_.unshift.apply(_,r.hcEvents[i])),r=Object.getPrototypeOf(r);S&&_.sort(($,q)=>$.order-q.order),_.forEach($=>{$.fn.call(t,a)===!1&&a.preventDefault()})}u&&!a.defaultPrevented&&u.call(t,a)}const{charts:o,doc:l,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 a;const u=t.length;for(a=0;a<u;a++)if(i(t[a],a))return t[a]};C({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){B[i]=function(a){return P(32,!1,void 0,{[`Highcharts.${i}`]:`use Array.${t}`}),Array.prototype[t].apply(a,[].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[K(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):o[x(this[0],"data-highcharts-chart")]}),h={addEvent:function(t,i,a,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 r=t.addEventListener;return r&&r.call(t,i,a,B.supportsPassiveEvents?{passive:u.passive===void 0?i.indexOf("touch")!==-1:u.passive,capture:!1}:!1),_[i]||(_[i]=[]),_[i].push({fn:a,order:typeof u.order=="number"?u.order:1/0}),_[i].sort((S,$)=>S.order-$.order),function(){k(t,i,a)}},arrayMax:function(t){let i=t.length,a=t[0];for(;i--;)t[i]>a&&(a=t[i]);return a},arrayMin:function(t){let i=t.length,a=t[0];for(;i--;)t[i]<a&&(a=t[i]);return a},attr:x,clamp:function(t,i,a){return t>i?t<a?t:a:i},clearTimeout:function(t){R(t)&&clearTimeout(t)},correctFloat:v,createElement:function(t,i,a,u,_){return t=l.createElement(t),i&&E(t,i),_&&c(t,{padding:"0",border:"none",margin:"0"}),a&&c(t,a),u&&u.appendChild(t),t},css:c,defined:R,destroyObjectProperties:function(t,i){C(t,function(a,u){a&&a!==i&&a.destroy&&a.destroy(),delete t[u]})},diffObjects:function(t,i,a,u){function _(S,$,q,rt){const j=a?$:S;C(S,function(s,T){if(!rt&&u&&-1<u.indexOf(T)&&$[T]){s=b(s),q[T]=[];for(let z=0;z<Math.max(s.length,$[T].length);z++)$[T][z]&&(s[z]===void 0?q[T][z]=$[T][z]:(q[T][z]={},_(s[z],$[T][z],q[T][z],rt+1)))}else X(s,!0)&&!s.nodeType?(q[T]=Z(s)?[]:{},_(s,$[T]||{},q[T],rt+1),Object.keys(q[T]).length!==0||T==="colorAxis"&&rt===0||delete q[T]):(S[T]!==$[T]||T in S&&!(T in $))&&(q[T]=j[T])})}const r={};return _(t,i,r,0),r},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){let a=t.length;for(;a--;)if(t[a]===i){t.splice(a,1);break}},error:P,extend:E,extendClass:function(t,i){const a=function(){};return a.prototype=new t,E(a.prototype,i),a},find:h,fireEvent:w,getClosestDistance:function(t,i){const a=!i;let u,_,r;return t.forEach(S=>{if(1<S.length)for(r=S.length-1;0<r;r--)_=S[r]-S[r-1],0>_&&!a?(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 a=t.shift();if(typeof a>"u"||a==="__proto__")return;if(a==="this"){let u;return X(i)&&(u=i["@this"]),u??i}if(i=i[a],!R(i)||typeof i=="function"||typeof i.nodeType=="number"||i===p)return}return i},getStyle:f,inArray:function(t,i,a){return P(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,a)},insertItem:function(t,i){const a=t.options.index,u=i.length;let _;for(_=t.options.isInternal?u:0;_<u+1;_++)if(!i[_]||H(a)&&a<L(i[_].options.index,i[_]._i)||i[_].options.isInternal){i.splice(_,0,t);break}return _},isArray:Z,isClass:O,isDOMElement:Y,isFunction:function(t){return typeof t=="function"},isNumber:H,isObject:X,isString:K,keys:function(t){return P(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){let t,i=arguments,a={};const u=function(r,S){return typeof r!="object"&&(r={}),C(S,function($,q){q!=="__proto__"&&q!=="constructor"&&(!X($,!0)||O($)||Y($)?r[q]=S[q]:r[q]=u(r[q]||{},$))}),r};i[0]===!0&&(a=i[1],i=Array.prototype.slice.call(i,2));const _=i.length;for(t=0;t<_;t++)a=u(a,i[t]);return a},normalizeTickInterval:function(t,i,a,u,_){let r=t;a=L(a,y(t));const S=t/a;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&&(a===1?i=i.filter(function($){return $%1===0}):.1>=a&&(i=[1/a]))),u=0;u<i.length&&(r=i[u],!(_&&r*a>=t||!_&&S<=(i[u]+(i[u+1]||i[u]))/2));u++);return r=v(r*a,-Math.round(Math.log(.001)/Math.LN10))},objectEach:C,offset:function(t){const i=l.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,a){return Array((i||2)+1-String(t).replace("-","").length).join(a||"0")+t},pick:L,pInt:G,pushUnique:function(t,i){return 0>t.indexOf(i)&&!!t.push(i)},relativeLength:function(t,i,a){return/%$/.test(t)?i*parseFloat(t)/100+(a||0):parseFloat(t)},removeEvent:k,splat:b,stableSort:function(t,i){const a=t.length;let u,_;for(_=0;_<a;_++)t[_].safeI=_;for(t.sort(function(r,S){return u=i(r,S),u===0?r.safeI-S.safeI:u}),_=0;_<a;_++)delete t[_].safeI},syncTimeout:function(t,i,a){return 0<i?setTimeout(t,i,a):(t.call(0,a),-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,a){const u=t[i];t[i]=function(){const _=arguments,r=this;return a.apply(this,[function(){return u.apply(r,arguments.length?arguments:_)}].concat([].slice.call(arguments)))}}},h}),ot(A,"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"}}),ot(A,"Core/Color/Color.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P){const{isNumber:G,merge:K,pInt:Z}=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 H=B.Color;if(H&&H!==X)return new H(O);this.init(O)}init(O){let H,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?H=[(b&16711680)>>16,(b&65280)>>8,b&255,1]:x===4&&(H=[(b&3840)>>4|(b&3840)>>8,(b&240)>>4|b&240,(b&15)<<4|b&15,1])}if(!H)for(b=X.parsers.length;b--&&!H;)R=X.parsers[b],(x=R.regex.exec(O))&&(H=R.parse(x))}H&&(this.rgba=H)}get(O){const H=this.input,R=this.rgba;if(typeof H=="object"&&typeof this.stops<"u"){const x=K(H);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(",")+")":H}brighten(O){const H=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++)H[R]+=Z(255*O),0>H[R]&&(H[R]=0),255<H[R]&&(H[R]=255);return this}setOpacity(O){return this.rgba[3]=O,this}tweenTo(O,H){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-H))+","+Math.round(x[1]+(R[1]-x[1])*(1-H))+","+Math.round(x[2]+(R[2]-x[2])*(1-H))+(O?","+(x[3]+(R[3]-x[3])*(1-H)):"")+")")}}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[Z(Y[1]),Z(Y[2]),Z(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[Z(Y[1]),Z(Y[2]),Z(Y[3]),1]}}],X.None=new X(""),X}),ot(A,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),ot(A,"Core/Time.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P){const{win:G}=B,{defined:K,error:Z,extend:X,isObject:Y,merge:O,objectEach:H,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(f){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=G.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(f)}get(f,C){if(this.variableTimezone||this.timezoneOffset){const k=C.getTime(),w=k-this.getTimezoneOffset(C);return C.setTime(w),f=C["getUTC"+f](),C.setTime(k),f}return this.useUTC?C["getUTC"+f]():C["get"+f]()}set(f,C,k){if(this.variableTimezone||this.timezoneOffset){if(f==="Milliseconds"||f==="Seconds"||f==="Minutes"&&this.getTimezoneOffset(C)%36e5===0)return C["setUTC"+f](k);var w=this.getTimezoneOffset(C);return w=C.getTime()-w,C.setTime(w),C["setUTC"+f](k),f=this.getTimezoneOffset(C),w=C.getTime()+f,C.setTime(w)}return this.useUTC||L&&f==="FullYear"?C["setUTC"+f](k):C["set"+f](k)}update(f={}){const C=x(f.useUTC,!0);this.options=f=O(!0,this.options,f),this.Date=f.Date||G.Date||Date,this.timezoneOffset=(this.useUTC=C)&&f.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=C&&!(!f.getTimezoneOffset&&!f.timezone)}makeTime(f,C,k,w,o,l){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(f,C,x(k,1),x(w,0),x(o,0),x(l,0)).getTime(),p}timezoneOffsetFunction(){const f=this,C=this.options,k=C.getTimezoneOffset,w=C.moment||G.moment;if(!this.useUTC)return function(o){return 6e4*new Date(o.toString()).getTimezoneOffset()};if(C.timezone){if(w)return function(o){return 6e4*-w.tz(o,C.timezone).utcOffset()};Z(25)}return this.useUTC&&k?function(o){return 6e4*k(o.valueOf())}:function(){return 6e4*(f.timezoneOffset||0)}}dateFormat(f,C,k){if(!K(C)||isNaN(C))return B.defaultOptions.lang&&B.defaultOptions.lang.invalidDate||"";f=x(f,"%Y-%m-%d %H:%M:%S");const w=this;var o=new this.Date(C);const l=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,a=t&&t.shortWeekdays;return o=X({a:a?a[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(l),k:l,I:R(l%12||12),l:l%12||12,M:R(this.get("Minutes",o)),p:12>l?"AM":"PM",P:12>l?"am":"pm",S:R(o.getSeconds()),L:R(Math.floor(C%1e3),3)},B.dateFormats),H(o,function(u,_){for(;f.indexOf("%"+_)!==-1;)f=f.replace("%"+_,typeof u=="function"?u.call(w,C):u)}),k?f.substr(0,1).toUpperCase()+f.substr(1):f}resolveDTLFormat(f){return Y(f,!0)?f:(f=b(f),{main:f[0],from:f[1],to:f[2]})}getTimeTicks(f,C,k,w){const o=this,l=[],p={};var h=new o.Date(C);const d=f.unitRange,e=f.count||1;let t;if(w=x(w,1),K(C)){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+w+(i<w?-7:0))),i=o.get("FullYear",h),w=o.get("Month",h);const a=o.get("Date",h),u=o.get("Hours",h);for(C=h.getTime(),!o.variableTimezone&&o.useUTC||!K(k)||(t=k-C>4*E.month||o.getTimezoneOffset(C)!==o.getTimezoneOffset(k)),C=h.getTime(),h=1;C<k;)l.push(C),C=d===E.year?o.makeTime(i+h*e,0):d===E.month?o.makeTime(i,w+h*e):!t||d!==E.day&&d!==E.week?t&&d===E.hour&&1<e?o.makeTime(i,w,a,u+h*e):C+d*e:o.makeTime(i,w,a+h*e*(d===E.day?1:7)),h++;l.push(C),d<=E.hour&&1e4>l.length&&l.forEach(function(_){_%18e5===0&&o.dateFormat("%H%M%S%L",_)==="000000000"&&(p[_]="day")})}return l.info=X(f,{higherRanks:p,totalRange:d*e}),l}getDateFormat(f,C,k,w){const o=this.dateFormat("%m-%d %H:%M:%S.%L",C),l={millisecond:15,second:12,minute:9,hour:6,day:3};let p,h="millisecond";for(p in E){if(f===E.week&&+this.dateFormat("%w",C)===k&&o.substr(6)==="00:00:00.000"){p="week";break}if(E[p]>f){p=h;break}if(l[p]&&o.substr(l[p])!=="01-01 00:00:00.000".substr(l[p]))break;p!=="week"&&(h=p)}return this.resolveDTLFormat(w[p]).main}}return y}),ot(A,"Core/Defaults.js",[A["Core/Chart/ChartDefaults.js"],A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Color/Palettes.js"],A["Core/Time.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z,X){const{isTouchDevice:Y,svg:O}=G,{merge:H}=X,R={colors:K.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 Z(R.time);return B={defaultOptions:R,defaultTime:x,getOptions:function(){return R},setOptions:function(b){return H(!0,R,b),(b.time||b.global)&&(G.time?G.time.update(H(R.global,R.time,b.global,b.time)):G.time=x),R}},B}),ot(A,"Core/Animation/Fx.js",[A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P,G){const{parse:K}=B,{win:Z}=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 f=0;f<y.length;f++){const C=c[f],k=y[f];X(C)&&X(k)&&(y[0]!=="A"||f!==4&&f!==5)?v[f]=C+b*(k-C):v[f]=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(f){return c.stopped?!1:E.step(f)},y=Z.requestAnimationFrame||function(f){setTimeout(f,13)},v=function(){for(let f=0;f<O.timers.length;f++)O.timers[f]()||O.timers.splice(f--,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(f){f!==!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,l){for(;o.length<k;){var p=o[0];const h=l[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,l){for(;o.length<k;)if(l=o[Math.floor(o.length/f)-1].slice(),l[0]==="C"&&(l[1]=l[5],l[2]=l[6]),v){const p=o[Math.floor(o.length/f)].slice();o.splice(o.length/2,0,l,p)}else o.push(l)}const c=R.startX,y=R.endX;b=b.slice();const v=R.isArea,f=v?2:1;let C,k,w;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]){C=R;break}else if(c[0]===y[y.length-c.length+R]){C=R,w=!0;break}else if(c[c.length-1]===y[y.length-c.length+R]){C=c.length-R;break}typeof C>"u"&&(x=[])}return x.length&&X(C)&&(k=b.length+C*f,w?(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,K(this.start).tweenTo(K(this.end),this.pos),void 0,!0)}}return O.timers=[],O}),ot(A,"Core/Animation/AnimationUtilities.js",[A["Core/Animation/Fx.js"],A["Core/Utilities.js"]],function(B,P){function G(E){return H(E)?R({duration:500,defer:0},E):{duration:E?500:0,defer:0}}function K(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:Z,getStyle:X,isArray:Y,isNumber:O,isObject:H,merge:R,objectEach:x,pick:b}=P;return{animate:function(E,L,c){let y,v="",f,C,k;H(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(w,o){K(E,o),C=new B(E,c,o),f=void 0,o==="d"&&Y(L.d)?(C.paths=C.initPath(E,E.pathArray,L.d),C.toD=L.d,y=0,f=1):E.attr?y=E.attr(o):(y=parseFloat(X(E,o))||0,o!=="opacity"&&(v="px")),f||(f=w),typeof f=="string"&&f.match("px")&&(f=f.replace(/px/g,"")),C.run(y,f,v)})},animObject:G,getDeferredAnimation:function(E,L,c){const y=G(L);let v=0,f=0;return(c?[c]:E.series).forEach(C=>{C=G(C.options.animation),v=L&&Z(L.defer)?y.defer:Math.max(v,C.duration+C.defer),f=Math.min(y.duration,C.duration)}),E.renderer.forExport&&(v=0),{defer:Math.max(0,v-f),duration:Math.min(v,f)}},setAnimation:function(E,L){L.renderer.globalAnimation=b(E,L.options.chart.animation,!0)},stop:K}}),ot(A,"Core/Renderer/HTML/AST.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P){const{SVG_NS:G,win:K}=B,{attr:Z,createElement:X,css:Y,error:O,isFunction:H,isString:R,objectEach:x,splat:b}=P;({trustedTypes:P}=K);const E=P&&H(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(f){return x(f,(C,k)=>{let w=!0;y.allowedAttributes.indexOf(k)===-1&&(w=!1),["background","dynsrc","href","lowsrc","src"].indexOf(k)!==-1&&(w=R(C)&&y.allowedReferences.some(o=>C.indexOf(o)===0)),w||(O(33,!1,void 0,{"Invalid attribute in config":`${k}`}),delete f[k]),R(C)&&f[k]&&(f[k]=C.replace(/</g,"<"))}),f}static parseStyle(f){return f.split(";").reduce((C,k)=>{k=k.split(":").map(o=>o.trim());const w=k.shift();return w&&k.length&&(C[w.replace(/-([a-z])/g,o=>o[1].toUpperCase())]=k.join(":")),C},{})}static setElementHTML(f,C){f.innerHTML=y.emptyHTML,C&&new y(C).addToDOM(f)}constructor(f){this.nodes=typeof f=="string"?this.parseMarkup(f):f}addToDOM(f){function C(k,w){let o;return b(k).forEach(function(l){var p=l.tagName;const h=l.textContent?B.doc.createTextNode(l.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:w.namespaceURI||G,p);const t=l.attributes||{};x(l,function(i,a){a!=="tagName"&&a!=="attributes"&&a!=="children"&&a!=="style"&&a!=="textContent"&&(t[a]=i)}),Z(p,d?t:y.filterUserAttributes(t)),l.style&&Y(p,l.style),h&&p.appendChild(h),C(l.children||[],p),e=p}else O(33,!1,void 0,{"Invalid tagName in config":p});e&&w.appendChild(e),o=e}),o}return C(this.nodes,f)}parseMarkup(f){const C=[];if(f=f.trim().replace(/ style=(["'])/g," data-style=$1"),c)f=new DOMParser().parseFromString(E?E.createHTML(f):f,"text/html");else{const w=X("div");w.innerHTML=f,f={body:w}}const k=(w,o)=>{var l=w.nodeName.toLowerCase();const p={tagName:l};if(l==="#text"&&(p.textContent=w.textContent||""),l=w.attributes){const h={};[].forEach.call(l,d=>{d.name==="data-style"?p.style=y.parseStyle(d.value):h[d.name]=d.value}),p.attributes=h}if(w.childNodes.length){const h=[];[].forEach.call(w.childNodes,d=>{k(d,h)}),h.length&&(p.children=h)}o.push(p)};return[].forEach.call(f.body.childNodes,w=>k(w,C)),C}}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}),ot(A,"Core/Templating.js",[A["Core/Defaults.js"],A["Core/Utilities.js"]],function(B,P){function G(c="",y,v){const f=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,C=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,k=[],w=/f$/,o=/\.([0-9])/,l=Z.lang,p=v&&v.time||X,h=v&&v.numberFormatter||K,d=(r="")=>{let S;return r==="true"?!0:r==="false"?!1:(S=Number(r)).toString()===r?S:O(r,y)};let e,t,i=0,a;for(;(e=f.exec(c))!==null;){const r=C.exec(e[1]);r&&(e=r,a=!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(r&&(t==null||!t.isBlock))break}return k.forEach(r=>{const{body:S,elseBody:$,expression:q,fn:rt}=r;var j;if(rt){var s=[r],T=q.split(" ");for(j=L[rt].length;j--;)s.unshift(d(T[j+1]));j=L[rt].apply(y,s),r.isBlock&&typeof j=="boolean"&&(j=G(j?S:$,y))}else s=q.split(":"),j=d(s.shift()||""),s.length&&typeof j=="number"&&(s=s.join(":"),w.test(s)?(T=parseInt((s.match(o)||["","-1"])[1],10),j!==null&&(j=h(j,T,l.decimalPoint,-1<s.indexOf(",")?l.thousandsSep:""))):j=p.dateFormat(s,j));c=c.replace(r.find,b(j,""))}),a?G(c,y,v):c}function K(c,y,v,f){c=+c||0,y=+y;const C=Z.lang;var k=(c.toString().split(".")[1]||"").split("e")[0].length;const w=c.toString().split("e"),o=y;if(y===-1)y=Math.min(k,20);else if(!R(y))y=2;else if(y&&w[1]&&0>w[1]){var l=y+ +w[1];0<=l?(w[0]=(+w[0]).toExponential(l).split("e")[0],y=l):(w[0]=w[0].split(".")[0]||0,c=20>y?(w[0]*Math.pow(10,w[1])).toFixed(y):0,w[1]=0)}l=(Math.abs(w[1]?w[0]:c)+Math.pow(10,-Math.max(y,k)-1)).toFixed(y),k=String(E(l));const p=3<k.length?k.length%3:0;return v=b(v,C.decimalPoint),f=b(f,C.thousandsSep),c=(0>c?"-":"")+(p?k.substr(0,p)+f:""),c=0>+w[1]&&!o?"0":c+k.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+f),y&&(c+=v+l.slice(-y)),w[1]&&+c!=0&&(c+="e"+w[1]),c}const{defaultOptions:Z,defaultTime:X}=B,{extend:Y,getNestedProperty:O,isArray:H,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 H(c)?c.map((v,f)=>G(y.body,Y(x(v)?v:{"@this":v},{"@index":f,"@first":f===0,"@last":f===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:K}}),ot(A,"Core/Renderer/RendererUtilities.js",[A["Core/Utilities.js"]],function(B){const{clamp:P,pick:G,stableSort:K}=B;var Z;return function(X){function Y(O,H,R){const x=O;var b=x.reducedLen||H,E=(C,k)=>(k.rank||0)-(C.rank||0);const L=(C,k)=>C.target-k.target;let c,y=!0,v=[],f=0;for(c=O.length;c--;)f+=O[c].size;if(f>b){for(K(O,E),f=c=0;f<=b;)f+=O[c].size,c++;v=O.splice(c-1,O.length)}for(K(O,L),O=O.map(C=>({size:C.size,targets:[C.target],align:G(C.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,H-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>H&&(O[c-1].pos=H-O[c-1].size),O.splice(c,1),y=!0)}return x.push.apply(x,v),c=0,O.some(C=>{let k=0;return(C.targets||[]).some(()=>(x[c].pos=C.pos+k,typeof R<"u"&&Math.abs(x[c].pos-x[c].target)>R?(x.slice(0,c+1).forEach(w=>delete w.pos),x.reducedLen=(x.reducedLen||H)-.1*H,x.reducedLen>.1*H&&Y(x,H,R),!0):(k+=x[c].size,c++,!1)))}),K(x,L),x}X.distribute=Y}(Z||(Z={})),Z}),ot(A,"Core/Renderer/SVG/SVGElement.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P,G,K){const{animate:Z,animObject:X,stop:Y}=B,{deg2rad:O,doc:H,svg:R,SVG_NS:x,win:b}=G,{addEvent:E,attr:L,createElement:c,css:y,defined:v,erase:f,extend:C,fireEvent:k,isArray:w,isFunction:o,isObject:l,isString:p,merge:h,objectEach:d,pick:e,pInt:t,syncTimeout:i,uniqueKey:a}=K;class u{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=x}_defaultGetter(r){return r=e(this[r+"Value"],this[r],this.element?this.element.getAttribute(r):null,0),/^[\-0-9\.]+$/.test(r)&&(r=parseFloat(r)),r}_defaultSetter(r,S,$){$.setAttribute(S,r)}add(r){const S=this.renderer,$=this.element;let q;return r&&(this.parentGroup=r),typeof this.textStr<"u"&&this.element.nodeName==="text"&&S.buildText(this),this.added=!0,(!r||r.handleZ||this.zIndex)&&(q=this.zIndexSetter()),q||(r?r.element:S.box).appendChild($),this.onAdd&&this.onAdd(),this}addClass(r,S){const $=S?"":this.attr("class")||"";return r=(r||"").split(/ /g).reduce(function(q,rt){return $.indexOf(rt)===-1&&q.push(rt),q},$?[$]:[]).join(" "),r!==$&&this.attr("class",r),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(r,S,$){const q={};var rt=this.renderer,j=rt.alignedObjects,s;let T,z;r?(this.alignOptions=r,this.alignByTranslate=S,(!$||p($))&&(this.alignTo=s=$||"renderer",f(j,this),j.push(this),$=void 0)):(r=this.alignOptions,S=this.alignByTranslate,s=this.alignTo),$=e($,rt[s],s==="scrollablePlotBox"?rt.plotBox:void 0,rt),s=r.align;const I=r.verticalAlign;return rt=($.x||0)+(r.x||0),j=($.y||0)+(r.y||0),s==="right"?T=1:s==="center"&&(T=2),T&&(rt+=($.width-(r.width||0))/T),q[S?"translateX":"x"]=Math.round(rt),I==="bottom"?z=1:I==="middle"&&(z=2),z&&(j+=($.height-(r.height||0))/z),q[S?"translateY":"y"]=Math.round(j),this[this.placed?"animate":"attr"](q),this.placed=!0,this.alignAttr=q,this}alignSetter(r){const S={left:"start",center:"middle",right:"end"};S[r]&&(this.alignValue=r,this.element.setAttribute("text-anchor",S[r]))}animate(r,S,$){const q=X(e(S,this.renderer.globalAnimation,!0));return S=q.defer,H.hidden&&(q.duration=0),q.duration!==0?($&&(q.complete=$),i(()=>{this.element&&Z(this,r,q)},S)):(this.attr(r,void 0,$||q.complete),d(r,function(rt,j){q.step&&q.step.call(this,rt,{prop:j,pos:1,elem:this})},this)),this}applyTextOutline(r){const S=this.element;r.indexOf("contrast")!==-1&&(r=r.replace(/contrast/g,this.renderer.getContrast(S.style.fill)));var $=r.split(" ");if(r=$[$.length-1],($=$[0])&&$!=="none"&&G.svg){this.fakeTS=!0,$=$.replace(/(^[\d\.]+)(.*?)$/g,function(j,s,T){return 2*Number(s)+T}),this.removeTextOutline();const q=H.createElementNS(x,"tspan");L(q,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":$,"stroke-linejoin":"round"}),r=S.querySelector("textPath")||S,[].forEach.call(r.childNodes,j=>{const s=j.cloneNode(!0);s.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(T=>s.removeAttribute(T)),q.appendChild(s)});let rt=0;[].forEach.call(r.querySelectorAll("text tspan"),j=>{rt+=Number(j.getAttribute("dy"))}),$=H.createElementNS(x,"tspan"),$.textContent="",L($,{x:Number(S.getAttribute("x")),dy:-rt}),q.appendChild($),r.insertBefore(q,r.firstChild)}}attr(r,S,$,q){const rt=this.element,j=u.symbolCustomAttribs;let s,T,z=this,I,V;return typeof r=="string"&&typeof S<"u"&&(s=r,r={},r[s]=S),typeof r=="string"?z=(this[r+"Getter"]||this._defaultGetter).call(this,r,rt):(d(r,function(n,g){I=!1,q||Y(this,g),this.symbolName&&j.indexOf(g)!==-1&&(T||(this.symbolAttr(r),T=!0),I=!0),!this.rotation||g!=="x"&&g!=="y"||(this.doTransform=!0),I||(V=this[g+"Setter"]||this._defaultSetter,V.call(this,n,g,rt))},this),this.afterSetters()),$&&$.call(this),z}clip(r){return this.attr("clip-path",r?"url("+this.renderer.url+"#"+r.id+")":"none")}crisp(r,S){S=S||r.strokeWidth||0;const $=Math.round(S)%2/2;return r.x=Math.floor(r.x||this.x||0)+$,r.y=Math.floor(r.y||this.y||0)+$,r.width=Math.floor((r.width||this.width||0)-2*$),r.height=Math.floor((r.height||this.height||0)-2*$),v(r.strokeWidth)&&(r.strokeWidth=S),r}complexColor(r,S,$){const q=this.renderer;let rt,j,s,T,z,I,V,n,g,m,W=[],F;k(this.renderer,"complexColor",{args:arguments},function(){if(r.radialGradient?j="radialGradient":r.linearGradient&&(j="linearGradient"),j){if(s=r[j],z=q.gradients,I=r.stops,g=$.radialReference,w(s)&&(r[j]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),j==="radialGradient"&&g&&!v(s.gradientUnits)&&(T=s,s=h(s,q.getRadialAttr(g,T),{gradientUnits:"userSpaceOnUse"})),d(s,function(N,et){et!=="id"&&W.push(et,N)}),d(I,function(N){W.push(N)}),W=W.join(","),z[W])m=z[W].attr("id");else{s.id=m=a();const N=z[W]=q.createElement(j).attr(s).add(q.defs);N.radAttr=T,N.stops=[],I.forEach(function(et){et[1].indexOf("rgba")===0?(rt=P.parse(et[1]),V=rt.get("rgb"),n=rt.get("a")):(V=et[1],n=1),et=q.createElement("stop").attr({offset:et[0],"stop-color":V,"stop-opacity":n}).add(N),N.stops.push(et)})}F="url("+q.url+"#"+m+")",$.setAttribute(S,F),$.gradient=W,r.toString=function(){return F}}})}css(r){const S=this.styles,$={},q=this.element;let rt,j=!S;if(S&&d(r,function(s,T){S&&S[T]!==s&&($[T]=s,j=!0)}),j){S&&(r=C(S,$)),r.width===null||r.width==="auto"?delete this.textWidth:q.nodeName.toLowerCase()==="text"&&r.width&&(rt=this.textWidth=t(r.width)),this.styles=r,rt&&!R&&this.renderer.forExport&&delete r.width;const s=h(r);q.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(T=>s&&delete s[T]),s.color&&(s.fill=s.color)),y(q,s)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),r.textOutline&&this.applyTextOutline(r.textOutline)),this}dashstyleSetter(r){let S=this["stroke-width"];if(S==="inherit"&&(S=1),r=r&&r.toLowerCase()){const $=r.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(r=$.length;r--;)$[r]=""+t($[r])*e(S,NaN);r=$.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",r)}}destroy(){const r=this;var S=r.element||{};const $=r.renderer;var q=S.ownerSVGElement;let rt=S.nodeName==="SPAN"&&r.parentGroup||void 0;if(S.onclick=S.onmouseout=S.onmouseover=S.onmousemove=S.point=null,Y(r),r.clipPath&&q){const j=r.clipPath;[].forEach.call(q.querySelectorAll("[clip-path],[CLIP-PATH]"),function(s){-1<s.getAttribute("clip-path").indexOf(j.element.id)&&s.removeAttribute("clip-path")}),r.clipPath=j.destroy()}if(r.stops){for(q=0;q<r.stops.length;q++)r.stops[q].destroy();r.stops.length=0,r.stops=void 0}for(r.safeRemoveChild(S);rt&&rt.div&&rt.div.childNodes.length===0;)S=rt.parentGroup,r.safeRemoveChild(rt.div),delete rt.div,rt=S;r.alignTo&&f($.alignedObjects,r),d(r,function(j,s){r[s]&&r[s].parentGroup===r&&r[s].destroy&&r[s].destroy(),delete r[s]})}dSetter(r,S,$){w(r)&&(typeof r[0]=="string"&&(r=this.renderer.pathToSegments(r)),this.pathArray=r,r=r.reduce((q,rt,j)=>rt&&rt.join?(j?q+" ":"")+rt.join(" "):(rt||"").toString(),"")),/(NaN| {2}|^$)/.test(r)&&(r="M 0 0"),this[S]!==r&&($.setAttribute(S,r),this[S]=r)}fadeOut(r){const S=this;S.animate({opacity:0},{duration:e(r,150),complete:function(){S.hide()}})}fillSetter(r,S,$){typeof r=="string"?$.setAttribute(S,r):r&&this.complexColor(r,S,$)}getBBox(r,S){const{alignValue:$,element:q,renderer:rt,styles:j,textStr:s}=this,{cache:T,cacheKeys:z}=rt;var I=q.namespaceURI===this.SVG_NS;S=e(S,this.rotation,0);var V=rt.styledMode?q&&u.prototype.getStyle.call(q,"font-size"):j&&j.fontSize;let n,g;if(v(s)&&(g=s.toString(),g.indexOf("<")===-1&&(g=g.replace(/[0-9]/g,"0")),g+=["",rt.rootFontSize,V,S,this.textWidth,$,j&&j.textOverflow,j&&j.fontWeight].join()),g&&!r&&(n=T[g]),!n){if(I||rt.forExport){try{var m=this.fakeTS&&function(nt){const at=q.querySelector(".highcharts-text-outline");at&&y(at,{display:nt})};o(m)&&m("none"),n=q.getBBox?C({},q.getBBox()):{width:q.offsetWidth,height:q.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,r=n.height,I&&(n.height=r={"11px,17":14,"13px,20":16}[`${V||""},${Math.round(r)}`]||r),S){I=Number(q.getAttribute("y")||0)-n.y,V={right:1,center:.5}[$||0]||0;var W=S*O,F=(S-90)*O,N=m*Math.cos(W);S=m*Math.sin(W);var et=Math.cos(F);W=Math.sin(F),m=n.x+V*(m-N)+I*et,F=m+N,et=F-r*et,N=et-N,I=n.y+I-V*S+I*W,V=I+S,r=V-r*W,S=r-S,n.x=Math.min(m,F,et,N),n.y=Math.min(I,V,r,S),n.width=Math.max(m,F,et,N)-n.x,n.height=Math.max(I,V,r,S)-n.y}}if(g&&(s===""||0<n.height)){for(;250<z.length;)delete T[z.shift()];T[g]||z.push(g),T[g]=n}return n}getStyle(r){return b.getComputedStyle(this.element||this,"").getPropertyValue(r)}hasClass(r){return(""+this.attr("class")).split(" ").indexOf(r)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}init(r,S){this.element=S==="span"?c(S):H.createElementNS(this.SVG_NS,S),this.renderer=r,k(this,"afterInit")}on(r,S){const{onEvents:$}=this;return $[r]&&$[r](),$[r]=E(this.element,r,S),this}opacitySetter(r,S,$){this.opacity=r=Number(Number(r).toFixed(3)),$.setAttribute(S,r)}removeClass(r){return this.attr("class",(""+this.attr("class")).replace(p(r)?new RegExp(`(^| )${r}( |$)`):r," ").replace(/ +/g," ").trim())}removeTextOutline(){const r=this.element.querySelector("tspan.highcharts-text-outline");r&&this.safeRemoveChild(r)}safeRemoveChild(r){const S=r.parentNode;S&&S.removeChild(r)}setRadialReference(r){const S=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=r,S&&S.radAttr&&S.animate(this.renderer.getRadialAttr(r,S.radAttr)),this}setTextPath(r,S){S=h(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},S);const $=this.renderer.url,q=this.text||this,rt=q.textPath,{attributes:j,enabled:s}=S;return r=r||rt&&rt.path,rt&&rt.undo(),r&&s?(S=E(q,"afterModifyTree",T=>{if(r&&s){let I=r.attr("id");I||r.attr("id",I=a());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),q.attr(z),this.attr({transform:""}),this.box&&(this.box=this.box.destroy()),z=T.nodes.slice(0),T.nodes.length=0,T.nodes[0]={tagName:"textPath",attributes:C(j,{"text-anchor":j.textAnchor,href:`${$}#${I}`}),children:z}}}),q.textPath={path:r,undo:S}):(q.attr({dx:0,dy:0}),delete q.textPath),this.added&&(q.textCache="",this.renderer.buildText(q)),this}shadow(r){var S;const{renderer:$}=this,q=h(((S=this.parentGroup)===null||S===void 0?void 0:S.rotation)===90?{offsetX:-1,offsetY:-1}:{},l(r)?r:{});return S=$.shadowDefinition(q),this.attr({filter:r?`url(${$.url}#${S})`:"none"})}show(r=!0){return this.attr({visibility:r?"inherit":"visible"})}"stroke-widthSetter"(r,S,$){this[S]=r,$.setAttribute(S,r)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const r=this.getStyle("stroke-width");let S=0,$;return r.indexOf("px")===r.length-2?S=t(r):r!==""&&($=H.createElementNS(x,"rect"),L($,{width:r,"stroke-width":0}),this.element.parentNode.appendChild($),S=$.getBBox().width,$.parentNode.removeChild($)),S}symbolAttr(r){const S=this;u.symbolCustomAttribs.forEach(function($){S[$]=e(r[$],S[$])}),S.attr({d:S.renderer.symbols[S.symbolName](S.x,S.y,S.width,S.height,S)})}textSetter(r){r!==this.textStr&&(delete this.textPxLength,this.textStr=r,this.added&&this.renderer.buildText(this))}titleSetter(r){const S=this.element,$=S.getElementsByTagName("title")[0]||H.createElementNS(this.SVG_NS,"title");S.insertBefore?S.insertBefore($,S.firstChild):S.appendChild($),$.textContent=String(e(r,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}toFront(){const r=this.element;return r.parentNode.appendChild(r),this}translate(r,S){return this.attr({translateX:r,translateY:S})}updateTransform(){const{element:r,matrix:S,rotation:$=0,scaleX:q,scaleY:rt,translateX:j=0,translateY:s=0}=this,T=["translate("+j+","+s+")"];v(S)&&T.push("matrix("+S.join(",")+")"),$&&T.push("rotate("+$+" "+e(this.rotationOriginX,r.getAttribute("x"),0)+" "+e(this.rotationOriginY,r.getAttribute("y")||0)+")"),(v(q)||v(rt))&&T.push("scale("+e(q,1)+" "+e(rt,1)+")"),T.length&&!(this.text||this).textPath&&r.setAttribute("transform",T.join(" "))}visibilitySetter(r,S,$){r==="inherit"?$.removeAttribute(S):this[S]!==r&&$.setAttribute(S,r),this[S]=r}xGetter(r){return this.element.nodeName==="circle"&&(r==="x"?r="cx":r==="y"&&(r="cy")),this._defaultGetter(r)}zIndexSetter(r,S){var $=this.renderer,q=this.parentGroup;const rt=(q||$).element||$.box,j=this.element;$=rt===$.box;let s=!1,T;var z=this.added;let I;if(v(r)?(j.setAttribute("data-z-index",r),r=+r,this[S]===r&&(z=!1)):v(this[S])&&j.removeAttribute("data-z-index"),this[S]=r,z){for((r=this.zIndex)&&q&&(q.handleZ=!0),S=rt.childNodes,I=S.length-1;0<=I&&!s;I--)q=S[I],z=q.getAttribute("data-z-index"),T=!v(z),q!==j&&(0>r&&T&&!$&&!I?(rt.insertBefore(j,S[I]),s=!0):(t(z)<=r||T&&(!v(r)||0<=r))&&(rt.insertBefore(j,S[I+1]),s=!0));s||(rt.insertBefore(j,S[$?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(_,r){this[r]=_,this.doTransform=!0},u}),ot(A,"Core/Renderer/RendererRegistry.js",[A["Core/Globals.js"]],function(B){var P;return function(G){G.rendererTypes={};let K;G.getRendererType=function(Z=K){return G.rendererTypes[Z]||G.rendererTypes[K]},G.registerRendererType=function(Z,X,Y){G.rendererTypes[Z]=X,(!K||Y)&&(K=Z,B.Renderer=X)}}(P||(P={})),P}),ot(A,"Core/Renderer/SVG/SVGLabel.js",[A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(B,P){const{defined:G,extend:K,isNumber:Z,merge:X,pick:Y,removeEvent:O}=P;class H extends B{constructor(x,b,E,L,c,y,v,f,C,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=C,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,f).attr({zIndex:1});let w;typeof c=="string"&&((w=/^url\((.*?)\)$/.test(c))||this.renderer.symbols[c])&&(this.symbolKey=c),this.bBox=H.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=x.styledMode||w,this.deferredAttr={},this.alignFactor=0}alignSetter(x){x={left:0,center:.5,right:1}[x],x!==this.alignFactor&&(this.alignFactor=x,this.bBox&&Z(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),H.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){Z(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=Z(this.widthSetting)&&Z(this.heightSetting)&&!this.textAlign||!G(x.textStr)?H.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(K(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=Z(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 H.emptyBBox={width:0,height:0,x:0,y:0},H.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),H}),ot(A,"Core/Renderer/SVG/Symbols.js",[A["Core/Utilities.js"]],function(B){function P(O,H,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)),f=Math.cos(L),C=Math.sin(L),k=Math.cos(x),w=Math.sin(x),o=Y(b.longArc,.001>x-L-Math.PI?0:1);let l=["A",c,R,0,o,Y(b.clockwise,1),O+c*k,H+R*w];l.params={start:L,end:x,cx:O,cy:H},E.push(["M",O+c*f,H+R*C],l),Z(y)&&(l=["A",y,y,0,o,Z(b.clockwise)?1-b.clockwise:0,O+y*f,H+y*C],l.params={start:x,end:L,cx:O,cy:H},E.push(v?["M",O+y*k,H+y*w]:["L",O+y*k,H+y*w],l)),v||E.push(["Z"])}return E}function G(O,H,R,x,b){return b&&b.r?K(O,H,R,x,b):[["M",O,H],["L",O+R,H],["L",O+R,H+x],["L",O,H+x],["Z"]]}function K(O,H,R,x,b){return b=(b==null?void 0:b.r)||0,[["M",O+b,H],["L",O+R-b,H],["A",b,b,0,0,1,O+R,H+b],["L",O+R,H+x-b],["A",b,b,0,0,1,O+R-b,H+x],["L",O+b,H+x],["A",b,b,0,0,1,O,H+x-b],["L",O,H+b],["A",b,b,0,0,1,O+b,H],["Z"]]}const{defined:Z,isNumber:X,pick:Y}=B;return{arc:P,callout:function(O,H,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=K(O,H,R,x,{r:E});return X(c)&&(O+c>=R?b>H+L&&b<H+x-L?y.splice(3,1,["L",O+R,b-6],["L",O+R+6,b],["L",O+R,b+6],["L",O+R,H+x-E]):y.splice(3,1,["L",O+R,x/2],["L",c,b],["L",O+R,x/2],["L",O+R,H+x-E]):0>=O+c?b>H+L&&b<H+x-L?y.splice(7,1,["L",O,b+6],["L",O-6,b],["L",O,b-6],["L",O,H+E]):y.splice(7,1,["L",O,x/2],["L",c,b],["L",O,x/2],["L",O,H+E]):b&&b>x&&c>O+L&&c<O+R-L?y.splice(5,1,["L",c+6,H+x],["L",c,H+x+6],["L",c-6,H+x],["L",O+E,H+x]):b&&0>b&&c>O+L&&c<O+R-L&&y.splice(1,1,["L",c-6,H],["L",c,H-6],["L",c+6,H],["L",R-E,H])),y},circle:function(O,H,R,x){return P(O+R/2,H+x/2,R/2,x/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(O,H,R,x){return[["M",O+R/2,H],["L",O+R,H+x/2],["L",O+R/2,H+x],["L",O,H+x/2],["Z"]]},rect:G,roundedRect:K,square:G,triangle:function(O,H,R,x){return[["M",O+R/2,H],["L",O+R,H+x],["L",O,H+x],["Z"]]},"triangle-down":function(O,H,R,x){return[["M",O,H],["L",O+R,H],["L",O+R/2,H+x],["Z"]]}}}),ot(A,"Core/Renderer/SVG/TextBuilder.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P,G){const{doc:K,SVG_NS:Z,win:X}=P,{attr:Y,extend:O,fireEvent:H,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,f=b(c.textStr,"").toString();const C=f.indexOf("<")!==-1,k=y.childNodes;v=!c.added&&v.box;const w=/<br.*?>/g;var o=[f,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]);C||this.ellipsis||this.width||c.textPath||f.indexOf(" ")!==-1&&(!this.noWrap||w.test(f))?f!==""&&(v&&v.appendChild(y),f=new B(f),this.modifyTree(f.nodes),f.addToDOM(y),this.modifyDOM(),this.ellipsis&&(y.textContent||"").indexOf("…")!==-1&&c.attr("title",this.unescapeEntities(c.textStr||"",["<",">"])),v&&v.removeChild(y)):y.appendChild(K.createTextNode(this.unescapeEntities(f))),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"),(w,o)=>{w.nextSibling&&w.previousSibling&&(o===0&&w.previousSibling.nodeType===1&&(c.firstLineMetrics=c.renderer.fontMetrics(w.previousSibling)),Y(w,{dy:this.getLineHeight(w.nextSibling),x:y}))});const f=this.width||0;if(f){var C=(w,o)=>{var l=w.textContent||"";const p=l.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)l&&this.truncate(w,l,void 0,0,Math.max(0,f-.8*d),(i,a)=>i.substring(0,a)+"…");else if(h){for(l=[],h=[];o.firstChild&&o.firstChild!==w;)h.push(o.firstChild),o.removeChild(o.firstChild);for(;p.length;)p.length&&!this.noWrap&&0<e&&(l.push(w.textContent||""),w.textContent=p.join(" ").replace(/- /g,"-")),this.truncate(w,void 0,p,e===0&&t||0,f,(i,a)=>p.slice(0,a).join(" ").replace(/- /g,"-")),t=c.actualWidth,e++;h.forEach(i=>{o.insertBefore(i,w)}),l.forEach(i=>{o.insertBefore(K.createTextNode(i),w),i=K.createElementNS(Z,"tspan"),i.textContent="",Y(i,{dy:d,x:y}),o.insertBefore(i,w)})}},k=w=>{[].slice.call(w.childNodes).forEach(o=>{o.nodeType===X.Node.TEXT_NODE?C(o,w):(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,f)=>{const{attributes:C={},children:k,style:w={},tagName:o}=v,l=this.renderer.styledMode;o==="b"||o==="strong"?l?C.class="highcharts-strong":w.fontWeight="bold":(o==="i"||o==="em")&&(l?C.class="highcharts-emphasized":w.fontStyle="italic"),w&&w.color&&(w.fill=w.color),o==="br"?(C.class="highcharts-br",v.textContent="",(f=c[f+1])&&f.textContent&&(f.textContent=f.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:C,style:w}),k&&k.filter(p=>p.tagName!=="#text").forEach(y)};c.forEach(y),H(this.svgElement,"afterModifyTree",{nodes:c})}truncate(c,y,v,f,C,k){const w=this.svgElement,{rotation:o}=w,l=[];let p=v?1:0,h=(y||v||"").length,d=h,e,t;const i=function(a,u){if(a=u||a,(u=c.parentNode)&&typeof l[a]>"u"&&u.getSubStringLength)try{l[a]=f+u.getSubStringLength(0,v?a+1:a)}catch{}return l[a]};if(w.rotation=0,t=i(c.textContent.length),f+t>C){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>C?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),w.actualWidth=t,w.rotation=o}unescapeEntities(c,y){return x(this.renderer.escapes,function(v,f){y&&y.indexOf(v)!==-1||(c=c.toString().replace(new RegExp(v,"g"),f))}),c}}return E}),ot(A,"Core/Renderer/SVG/SVGRenderer.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGLabel.js"],A["Core/Renderer/SVG/Symbols.js"],A["Core/Renderer/SVG/TextBuilder.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z,X,Y,O,H){const{charts:R,deg2rad:x,doc:b,isFirefox:E,isMS:L,isWebKit:c,noop:y,SVG_NS:v,symbolSizes:f,win:C}=G,{addEvent:k,attr:w,createElement:o,css:l,defined:p,destroyObjectProperties:h,extend:d,isArray:e,isNumber:t,isObject:i,isString:a,merge:u,pick:_,pInt:r,uniqueKey:S}=H;let $;class q{constructor(j,s,T,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,T,z,I,V,n)}init(j,s,T,z,I,V,n){const g=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),m=g.element;n||g.css(this.getStyle(z)),j.appendChild(m),w(j,"dir","ltr"),j.innerHTML.indexOf("xmlns")===-1&&w(m,"xmlns",this.SVG_NS),this.box=m,this.boxWrapper=g,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=g.getStyle("font-size"),this.setSize(s,T,!1);let W;E&&j.getBoundingClientRect&&(s=function(){l(j,{left:0,top:0}),W=j.getBoundingClientRect(),l(j,{left:Math.ceil(W.left)-W.left+"px",top:Math.ceil(W.top)-W.top+"px"})},s(),this.unSubPixelFix=k(C,"resize",s))}definition(j){return new B([j]).addToDOM(this.defs.element)}getReferenceURL(){if((E||c)&&b.getElementsByTagName("base").length){if(!p($)){var j=S();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),l(j,{position:"fixed",top:0,left:0,zIndex:9e5});const s=b.elementFromPoint(6,6);$=(s&&s.id)==="hitme",b.body.removeChild(j)}if($)return C.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,""),T=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:T.offsetX,dy:T.offsetY,"flood-color":T.color,"flood-opacity":Math.min(5*T.opacity,1),stdDeviation:T.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,T,z,I={},V,n,g,m,W){const F=this.label(j,s,T,m,void 0,void 0,W,void 0,"button"),N=this.styledMode;j=I.states||{};let et=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 at=B.filterUserAttributes(I);F.attr(u({padding:8,r:2},at));let ht,pt,D;return N||(at=u({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},at),V=u(at,{fill:"#e6e6e6"},B.filterUserAttributes(V||j.hover||{})),ht=V.style,delete V.style,n=u(at,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},B.filterUserAttributes(n||j.select||{})),pt=n.style,delete n.style,g=u(at,{style:{color:"#cccccc"}},B.filterUserAttributes(g||j.disabled||{})),D=g.style,delete g.style),k(F.element,L?"mouseover":"mouseenter",function(){et!==3&&F.setState(1)}),k(F.element,L?"mouseout":"mouseleave",function(){et!==3&&F.setState(et)}),F.setState=function(M){M!==1&&(F.state=et=M),F.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][M||0]),N||(F.attr([at,V,n,g][M||0]),M=[nt,ht,pt,D][M||0],i(M)&&F.css(M))},N||(F.attr(at).css(d({cursor:"default"},nt)),W&&F.text.css({pointerEvents:"none"})),F.on("touchstart",M=>M.stopPropagation()).on("click",function(M){et!==3&&z.call(F,M)})}crispLine(j,s,T="round"){const z=j[0],I=j[1];return p(z[1])&&z[1]===I[1]&&(z[1]=I[1]=Math[T](z[1])-s%2/2),p(z[2])&&z[2]===I[2]&&(z[2]=I[2]=Math[T](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,T){return j=i(j)?j:typeof j>"u"?{}:{x:j,y:s,r:T},s=this.createElement("circle"),s.xSetter=s.ySetter=function(z,I,V){V.setAttribute("c"+I,z)},s.attr(j)}arc(j,s,T,z,I,V){return i(j)?(z=j,s=z.y,T=z.r,j=z.x):z={innerR:z,start:I,end:V},j=this.symbol("arc",j,s,T,T,z),j.r=T,j}rect(j,s,T,z,I,V){j=i(j)?j:typeof j>"u"?{}:{x:j,y:s,r:I,width:Math.max(T||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(g,m,W){n.r=g,w(W,{rx:g,ry:g})},n.rGetter=function(){return n.r||0},n.attr(j)}roundedRect(j){return this.symbol("roundedRect").attr(j)}setSize(j,s,T){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:_(T,!0)?void 0:0}),this.alignElements()}g(j){const s=this.createElement("g");return j?s.attr({class:"highcharts-"+j}):s}image(j,s,T,z,I,V){const n={preserveAspectRatio:"none"};t(s)&&(n.x=s),t(T)&&(n.y=T),t(z)&&(n.width=z),t(I)&&(n.height=I);const g=this.createElement("image").attr(n);return s=function(m){g.attr({href:j}),V.call(g,m)},V?(g.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),T=new C.Image,k(T,"load",s),T.src=j,T.complete&&s({})):g.attr({href:j}),g}symbol(j,s,T,z,I,V){const n=this,g=/^url\((.*?)\)$/,m=g.test(j),W=!m&&(this.symbols[j]?j:"circle"),F=W&&this.symbols[W];let N,et,nt,at;if(F)typeof s=="number"&&(et=F.call(this.symbols,Math.round(s||0),Math.round(T||0),z||0,I||0,V)),N=this.path(et),n.styledMode||N.attr("fill","none"),d(N,{symbolName:W||void 0,x:s,y:T,width:z,height:I}),V&&d(N,V);else if(m){nt=j.match(g)[1];const ht=N=this.image(nt);ht.imgwidth=_(V&&V.width,f[nt]&&f[nt].width),ht.imgheight=_(V&&V.height,f[nt]&&f[nt].height),at=pt=>pt.attr({width:pt.width,height:pt.height}),["width","height"].forEach(function(pt){ht[pt+"Setter"]=function(D,M){this[M]=D;const{alignByTranslate:Q,element:U,width:tt,height:dt,imgwidth:ct,imgheight:xt}=this;if(D=this["img"+M],p(D)){let vt=1;V&&V.backgroundSize==="within"&&tt&&dt?(vt=Math.min(tt/ct,dt/xt),w(U,{width:Math.round(ct*vt),height:Math.round(xt*vt)})):U&&U.setAttribute(M,D),Q||this.translate(((tt||0)-ct*vt)/2,((dt||0)-xt*vt)/2)}}}),p(s)&&ht.attr({x:s,y:T}),ht.isImg=!0,p(ht.imgwidth)&&p(ht.imgheight)?at(ht):(ht.attr({width:0,height:0}),o("img",{onload:function(){const pt=R[n.chartIndex];this.width===0&&(l(this,{position:"absolute",top:"-999em"}),b.body.appendChild(this)),f[nt]={width:this.width,height:this.height},ht.imgwidth=this.width,ht.imgheight=this.height,ht.element&&at(ht),this.parentNode&&this.parentNode.removeChild(this),n.imgCount--,!n.imgCount&&pt&&!pt.hasLoaded&&pt.onload()},src:nt}),this.imgCount++)}return N}clipRect(j,s,T,z){const I=S()+"-",V=this.createElement("clipPath").attr({id:I}).add(this.defs);return j=this.rect(j,s,T,z,0).add(V),j.id=I,j.clipPath=V,j.count=0,j}text(j,s,T,z){const I={};return z&&(this.allowHTML||!this.forExport)?this.html(j,s,T):(I.x=Math.round(s||0),T&&(I.y=Math.round(T)),p(j)&&(I.text=j),j=this.createElement("text").attr(I),(!z||this.forExport&&!this.allowHTML)&&(j.xSetter=function(V,n,g){const m=g.getElementsByTagName("tspan"),W=g.getAttribute(n);for(let F=0,N;F<m.length;F++)N=m[F],N.getAttribute(n)===W&&N.setAttribute(n,V);g.setAttribute(n,V)}),j)}fontMetrics(j){j=r(Z.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,T){let z=j;return s&&T&&(z=Math.max(z*Math.cos(s*x),4)),{x:-j/3*Math.sin(s*x),y:z}}pathToSegments(j){const s=[],T=[],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++)a(T[0])&&t(j[I])&&T.length===z[T[0].toUpperCase()]&&j.splice(I,0,T[0].replace("M","L").replace("m","l")),typeof j[I]=="string"&&(T.length&&s.push(T.slice(0)),T.length=0),T.push(j[I]);return s.push(T.slice(0)),s}label(j,s,T,z,I,V,n,g,m){return new X(this,j,s,T,z,I,V,n,g,m)}alignElements(){this.alignedObjects.forEach(j=>j.align())}}return d(q.prototype,{Element:Z,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Y,draw:y}),K.registerRendererType("svg",q,!0),q}),ot(A,"Core/Renderer/HTML/HTMLElement.js",[A["Core/Globals.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(B,P,G){const{isFirefox:K,isMS:Z,isWebKit:X,win:Y}=B,{css:O,defined:H,extend:R,pick:x,pInt:b}=G,E=[];class L extends P{static compose(y){if(G.pushUnique(E,y)){const v=L.prototype,f=y.prototype;f.getSpanCorrection=v.getSpanCorrection,f.htmlCss=v.htmlCss,f.htmlGetBBox=v.htmlGetBBox,f.htmlUpdateTransform=v.htmlUpdateTransform,f.setSpanRotation=v.setSpanRotation}return y}getSpanCorrection(y,v,f){this.xCorr=-y*f,this.yCorr=-v}htmlCss(y){const v=this.element.tagName==="SPAN"&&y&&"width"in y,f=x(v&&y.width,void 0);let C;return v&&(delete y.width,this.textWidth=f,C=!0),y&&y.textOverflow==="ellipsis"&&(y.whiteSpace="nowrap",y.overflow="hidden"),this.styles=R(this.styles,y),O(this.element,y),C&&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,f=this.x||0,C=this.y||0,k=this.textAlign||"left",w={left:0,center:.5,right:1}[k],o=this.styles,l=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:l||"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:l||"normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e,d!==this.cTT&&(y=y.fontMetrics(v).b,!H(o)||o===(this.oldRotation||0)&&k===this.oldAlign||this.setSpanRotation(o,w,y),this.getSpanCorrection(!H(o)&&this.textPxLength||v.offsetWidth,y,w,o,k)),O(v,{left:f+(this.xCorr||0)+"px",top:C+(this.yCorr||0)+"px"}),this.cTT=d,this.oldRotation=o,this.oldAlign=k}}else this.alignOnAdd=!0}setSpanRotation(y,v,f){const C={},k=Z&&!/Edge/.test(Y.navigator.userAgent)?"-ms-transform":X?"-webkit-transform":K?"MozTransform":Y.opera?"-o-transform":void 0;k&&(C[k]=C.transform="rotate("+y+"deg)",C[k+(K?"Origin":"-origin")]=C.transformOrigin=100*v+"% "+f+"px",O(this.element,C))}}return L}),ot(A,"Core/Renderer/HTML/HTMLRenderer.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Utilities.js"]],function(B,P,G,K){const{attr:Z,createElement:X,extend:Y,pick:O}=K,H=[];class R extends G{static compose(b){return K.pushUnique(H,b)&&(b.prototype.html=R.prototype.html),b}html(b,E,L){const c=this.createElement("span"),y=c.element,v=c.renderer,f=function(C,k){["opacity","visibility"].forEach(function(w){C[w+"Setter"]=function(o,l,p){const h=C.div?C.div.style:k;P.prototype[w+"Setter"].call(this,o,l,p),h&&(h[l]=o)}}),C.addedSetters=!0};return c.textSetter=function(C){C!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,B.setElementHTML(this.element,O(C,"")),this.textStr=C,c.doTransform=!0)},f(c,c.element.style),c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(C,k){k==="align"?c.alignValue=c.textAlign=C:c[k]=C,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(C){const k=v.box.parentNode,w=[];let o;if(this.parentGroup=C){if(o=C.div,!o){for(;C;)w.push(C),C=C.parentGroup;w.reverse().forEach(function(l){function p(t,i){l[i]=t,i==="translateX"?e.left=t+"px":e.top=t+"px",l.doTransform=!0}const h=Z(l.element,"class"),d=l.styles||{};o=l.div=l.div||X("div",h?{className:h}:void 0,{position:"absolute",left:(l.translateX||0)+"px",top:(l.translateY||0)+"px",display:l.display,opacity:l.opacity,visibility:l.visibility},o||k);const e=o.style;Y(l,{classSetter:function(t){return function(i){this.element.setAttribute("class",i),t.className=i}}(o),css:function(t){return c.css.call(l,t),["cursor","pointerEvents"].forEach(i=>{t[i]&&(e[i]=t[i])}),l},on:function(){return w[0].div&&c.on.apply({element:w[0].div,onEvents:l.onEvents},arguments),l},translateXSetter:p,translateYSetter:p}),l.addedSetters||f(l),l.css(d)})}}else o=k;return o.appendChild(y),c.added=!0,c.alignOnAdd&&c.htmlUpdateTransform(),c},c}}return R}),ot(A,"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}),ot(A,"Core/Foundation.js",[A["Core/Utilities.js"]],function(B){const{addEvent:P,isFunction:G,objectEach:K,removeEvent:Z}=B;var X;return function(Y){Y.registerEventOptions=function(O,H){O.eventOptions=O.eventOptions||{},K(H.events,function(R,x){O.eventOptions[x]!==R&&(O.eventOptions[x]&&(Z(O,x,O.eventOptions[x]),delete O.eventOptions[x]),G(R)&&(O.eventOptions[x]=R,P(O,x,R,{order:0})))})}}(X||(X={})),X}),ot(A,"Core/Axis/Tick.js",[A["Core/Templating.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P,G){const{deg2rad:K}=P,{clamp:Z,correctFloat:X,defined:Y,destroyObjectProperties:O,extend:H,fireEvent:R,isNumber:x,merge:b,objectEach:E,pick:L}=G;class c{constructor(v,f,C,k,w){this.isNewLabel=this.isNew=!0,this.axis=v,this.pos=f,this.type=C||"",this.parameters=w||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,R(this,"init"),C||k||this.addLabel()}addLabel(){const v=this,f=v.axis;var C=f.options;const k=f.chart;var w=f.categories;const o=f.logarithmic,l=f.names,p=v.pos,h=L(v.options&&v.options.labels,C.labels);var d=f.tickPositions;const e=p===d[0],t=p===d[d.length-1],i=(!h.step||h.step===1)&&f.tickInterval===1;d=d.info;let a=v.label,u,_,r;w=this.parameters.category||(w?L(w[p],l[p],p):p),o&&x(w)&&(w=X(o.lin2log(w))),f.dateTime&&(d?(_=k.time.resolveDTLFormat(C.dateTimeLabelFormats[!C.grid&&d.higherRanks[p]||d.unitName]),u=_.main):x(w)&&(u=f.dateTime.getXDateFormat(w,C.dateTimeLabelFormats||{}))),v.isFirst=e,v.isLast=t;const S={axis:f,chart:k,dateTimeLabelFormat:u,isFirst:e,isLast:t,pos:p,tick:v,tickPositionInfo:d,value:w};R(this,"labelFormat",S);const $=rt=>h.formatter?h.formatter.call(rt,rt):h.format?(rt.text=f.defaultLabelFormatter.call(rt,rt),B.format(h.format,rt,k)):f.defaultLabelFormatter.call(rt,rt);C=$.call(S,S);const q=_&&_.list;v.shortenLabel=q?function(){for(r=0;r<q.length;r++)if(H(S,{dateTimeLabelFormat:q[r]}),a.attr({text:$.call(S,S)}),a.getBBox().width<f.getSlotWidth(v)-2*h.padding)return;a.attr({text:""})}:void 0,i&&f._addedPlotLB&&v.moveLabel(C,h),Y(a)||v.movedLabel?a&&a.textStr!==C&&!i&&(!a.textWidth||h.style.width||a.styles.width||a.css({width:null}),a.attr({text:C}),a.textPxLength=a.getBBox().width):(v.label=a=v.createLabel({x:0,y:0},C,h),v.rotation=0)}createLabel(v,f,C){const k=this.axis,w=k.chart;return(v=Y(f)&&C.enabled?w.renderer.text(f,v.x,v.y,C.useHTML).add(k.labelGroup):null)&&(w.styledMode||v.css(b(C.style)),v.textPxLength=v.getBBox().width),v}destroy(){O(this,this.axis)}getPosition(v,f,C,k){const w=this.axis,o=w.chart,l=k&&o.oldChartHeight||o.chartHeight;return v={x:v?X(w.translate(f+C,void 0,void 0,k)+w.transB):w.left+w.offset+(w.opposite?(k&&o.oldChartWidth||o.chartWidth)-w.right-w.left:0),y:v?l-w.bottom+w.offset-(w.opposite?w.height:0):X(l-w.translate(f+C,void 0,void 0,k)-w.transB)},v.y=Z(v.y,-1e5,1e5),R(this,"afterGetPosition",{pos:v}),v}getLabelPosition(v,f,C,k,w,o,l,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},a=k||h.reserveSpaceDefault?0:-h.labelOffset*(h.labelAlign==="center"?.5:1),u=w.distance,_={};return C=h.side===0?C.rotation?-u:-C.getBBox().height:h.side===2?i.y+u:Math.cos(C.rotation*K)*(i.y-C.getBBox(!1,0).height/2),Y(w.y)&&(C=h.side===0&&h.horiz?w.y+C:w.y),v=v+L(w.x,[0,1,0,-1][h.side]*u)+a+i.x-(o&&k?o*d*(e?-1:1):0),f=f+C-(o&&!k?o*d*(e?1:-1):0),t&&(k=l/(p||1)%t,h.opposite&&(k=t-k-1),f+=h.labelOffset/t*k),_.x=v,_.y=Math.round(f),R(this,"afterGetLabelPosition",{pos:_,tickmarkOffset:o,index:l}),_}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(v,f,C,k,w,o){return o.crispLine([["M",v,f],["L",v+(w?0:-C),f+(w?C:0)]],k)}handleOverflow(v){const f=this.axis,C=f.options.labels,k=v.x;var w=f.chart.chartWidth,o=f.chart.spacing;const l=L(f.labelLeft,Math.min(f.pos,o[3]));o=L(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,w-o[1]));const p=this.label,h=this.rotation,d={left:0,center:.5,right:1}[f.labelAlign||p.attr("align")],e=p.getBBox().width,t=f.getSlotWidth(this),i={};let a=t,u=1,_;h||C.overflow!=="justify"?0>h&&k-d*e<l?_=Math.round(k/Math.cos(h*K)-l):0<h&&k+d*e>o&&(_=Math.round((w-k)/Math.cos(h*K))):(w=k+(1-d)*e,k-d*e<l?a=v.x+a*(1-d)-l:w>o&&(a=o-v.x+a*d,u=-1),a=Math.min(t,a),a<t&&f.labelAlign==="center"&&(v.x+=u*(t-a-d*(t-Math.min(e,a)))),(e>a||f.autoRotation&&(p.styles||{}).width)&&(_=a)),_&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(_)+"px",(C.style||{}).textOverflow||(i.textOverflow="ellipsis"),p.css(i)))}moveLabel(v,f){const C=this;var k=C.label;const w=C.axis;let o=!1;k&&k.textStr===v?(C.movedLabel=k,o=!0,delete C.label):E(w.ticks,function(l){o||l.isNew||l===C||!l.label||l.label.textStr!==v||(C.movedLabel=l.label,o=!0,l.labelPos=C.movedLabel.xy,delete l.label)}),o||!C.labelPos&&!k||(k=C.labelPos||k.xy,C.movedLabel=C.createLabel(k,v,f),C.movedLabel&&C.movedLabel.attr({opacity:0}))}render(v,f,C){var k=this.axis,w=k.horiz,o=this.pos,l=L(this.tickmarkOffset,k.tickmarkOffset);o=this.getPosition(w,o,l,f),l=o.x;const p=o.y;k=w&&l===k.pos+k.len||!w&&p===k.pos?-1:1,w=L(C,this.label&&this.label.newOpacity,1),C=L(C,1),this.isActive=!0,this.renderGridLine(f,C,k),this.renderMark(o,C,k),this.renderLabel(o,f,w,v),this.isNew=!1,R(this,"afterRender")}renderGridLine(v,f,C){const k=this.axis,w=k.options,o={},l=this.pos,p=this.type,h=L(this.tickmarkOffset,k.tickmarkOffset),d=k.chart.renderer;let e=this.gridLine,t=w.gridLineWidth,i=w.gridLineColor,a=w.gridLineDashStyle;this.type==="minor"&&(t=w.minorGridLineWidth,i=w.minorGridLineColor,a=w.minorGridLineDashStyle),e||(k.chart.styledMode||(o.stroke=i,o["stroke-width"]=t||0,o.dashstyle=a),p||(o.zIndex=1),v&&(f=0),this.gridLine=e=d.path().attr(o).addClass("highcharts-"+(p?p+"-":"")+"grid-line").add(k.gridGroup)),e&&(C=k.getPlotLinePath({value:l+h,lineWidth:e.strokeWidth()*C,force:"pass",old:v,acrossPanes:!1}))&&e[v||this.isNew?"attr":"animate"]({d:C,opacity:f})}renderMark(v,f,C){const k=this.axis;var w=k.options;const o=k.chart.renderer,l=this.type,p=k.tickSize(l?l+"Tick":"tick"),h=v.x;v=v.y;const d=L(w[l!=="minor"?"tickWidth":"minorTickWidth"],!l&&k.isXAxis?1:0);w=w[l!=="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-"+(l?l+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||e.attr({stroke:w,"stroke-width":d})),e[t?"attr":"animate"]({d:this.getMarkPath(h,v,p[0],e.strokeWidth()*C,k.horiz,o),opacity:f}))}renderLabel(v,f,C,k){var w=this.axis;const o=w.horiz,l=w.options,p=this.label,h=l.labels,d=h.step;w=L(this.tickmarkOffset,w.tickmarkOffset);const e=v.x;v=v.y;let t=!0;p&&x(e)&&(p.xy=v=this.getLabelPosition(e,v,p,o,h,w,k,d),this.isFirst&&!this.isLast&&!l.showFirstLabel||this.isLast&&!this.isFirst&&!l.showLastLabel?t=!1:!o||h.step||h.rotation||f||C===0||this.handleOverflow(v),d&&k%d&&(t=!1),t&&x(v.y)?(v.opacity=C,p[this.isNewLabel?"attr":"animate"](v).show(!0),this.isNewLabel=!1):(p.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const v=this.label,f=this.axis;v&&!this.isNew&&(v.animate({opacity:0},void 0,v.destroy),delete this.label),f.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}return c}),ot(A,"Core/Axis/Axis.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/AxisDefaults.js"],A["Core/Color/Color.js"],A["Core/Defaults.js"],A["Core/Foundation.js"],A["Core/Globals.js"],A["Core/Axis/Tick.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z,X,Y,O){const{animObject:H}=B,{defaultOptions:R}=K,{registerEventOptions:x}=Z,{deg2rad:b}=X,{arrayMax:E,arrayMin:L,clamp:c,correctFloat:y,defined:v,destroyObjectProperties:f,erase:C,error:k,extend:w,fireEvent:o,getClosestDistance:l,insertItem:p,isArray:h,isNumber:d,isString:e,merge:t,normalizeTickInterval:i,objectEach:a,pick:u,relativeLength:_,removeEvent:r,splat:S,syncTimeout:$}=O,q=(j,s)=>i(s,void 0,void 0,u(j.options.allowDecimals,.5>s||j.tickAmount!==void 0),!!j.tickAmount);class rt{constructor(s,T,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,T,z)}init(s,T,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:T}),this.opposite=u(T.opposite,this.opposite),this.side=u(T.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(T),z=this.options;const V=z.labels,n=z.type;this.userOptions=T,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,T=u(z.crosshair,S(s.options.tooltip.crosshairs)[I?0:1]),this.crosshair=T===!0?{}:T,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 T=this.axis;({numberFormatter:s}=this.chart);const z=d(this.value)?this.value:NaN,I=T.chart.time,V=this.dateTimeLabelFormat;var n=R.lang;const g=n.numericSymbols;n=n.numericSymbolMagnitude||1e3;const m=T.logarithmic?Math.abs(z):T.tickInterval;let W=g&&g.length,F;if(T.categories)F=`${this.value}`;else if(V)F=I.dateFormat(V,z);else if(W&&1e3<=m)for(;W--&&typeof F>"u";)T=Math.pow(n,W+1),m>=T&&10*z%T===0&&g[W]!==null&&z!==0&&(F=s(z/T,-1)+g[W]);return typeof F>"u"&&(F=1e4<=Math.abs(z)?s(z,-1):s(z,-1,void 0,"")),F}getSeriesExtremes(){const s=this,T=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||!T.options.chart.ignoreHiddenSeries){var V=I.options;let n=V.threshold,g,m;s.hasVisibleSeries=!0,s.positiveValuesOnly&&0>=n&&(n=null),s.isXAxis?(V=I.xData)&&V.length&&(V=s.logarithmic?V.filter(W=>0<W):V,z=I.getXExtremes(V),g=z.min,m=z.max,d(g)||g instanceof Date||(V=V.filter(d),z=I.getXExtremes(V),g=z.min,m=z.max),V.length&&(s.dataMin=Math.min(u(s.dataMin,g),g),s.dataMax=Math.max(u(s.dataMax,m),m))):(I=I.applyExtremes(),d(I.dataMin)&&(g=I.dataMin,s.dataMin=Math.min(u(s.dataMin,g),g)),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,T,z,I,V,n){const g=this.linkedParent||this,m=I&&g.old?g.old.min:g.min;if(!d(m))return NaN;const W=g.minPixelPadding;V=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&V)&&g.lin2val;let F=1,N=0;return I=I&&g.old?g.old.transA:g.transA,I||(I=g.transA),z&&(F*=-1,N=g.len),g.reversed&&(F*=-1,N-=F*(g.sector||g.len)),T?(n=(s*F+N-W)/I+m,V&&(n=g.lin2val(n))):(V&&(s=g.val2lin(s)),s=F*(s-m)*I,n=(g.isRadial?s:y(s))+N+F*W+(d(n)?I*n:0)),n}toPixels(s,T){return this.translate(s,!1,!this.horiz,void 0,!0)+(T?0:this.pos)}toValue(s,T){return this.translate(s-(T?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(s){function T(U,tt,dt){return at!=="pass"&&(U<tt||U>dt)&&(at?U=c(U,tt,dt):Q=!0),U}const z=this,I=z.chart,V=z.left,n=z.top,g=s.old,m=s.value,W=s.lineWidth,F=g&&I.oldChartHeight||I.chartHeight,N=g&&I.oldChartWidth||I.chartWidth,et=z.transB;let nt=s.translatedValue,at=s.force,ht,pt,D,M,Q;return s={value:m,lineWidth:W,old:g,force:at,acrossPanes:s.acrossPanes,translatedValue:nt},o(this,"getPlotLinePath",s,function(U){nt=u(nt,z.translate(m,void 0,void 0,g)),nt=c(nt,-1e5,1e5),ht=D=Math.round(nt+et),pt=M=Math.round(F-nt-et),d(nt)?z.horiz?(pt=n,M=F-z.bottom,ht=D=T(ht,V,V+z.width)):(ht=V,D=N-z.right,pt=M=T(pt,n,n+z.height)):(Q=!0,at=!1),U.path=Q&&!at?null:I.renderer.crispLine([["M",ht,pt],["L",D,M]],W||1)}),s.path}getLinearTickPositions(s,T,z){const I=y(Math.floor(T/s)*s);z=y(Math.ceil(z/s)*s);const V=[];let n,g;if(y(I+s)===I&&(g=20),this.single)return[T];for(T=I;T<=z&&(V.push(T),T=y(T+s,g),T!==n);)n=T;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 T=this.tickPositions,z=this.minorTickInterval;var I=this.pointRangePadding||0;const V=this.min-I;I=this.max+I;const n=I-V;let g=[];if(n&&n/z<this.len/3){const m=this.logarithmic;if(m)this.paddedTicks.forEach(function(W,F,N){F&&g.push.apply(g,m.getLogTickPositions(z,N[F-1],N[F],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")g=g.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(z),V,I,s.startOfWeek));else for(s=V+(T[0]-V)%z;s<=I&&s!==g[0];s+=z)g.push(s)}return g.length!==0&&this.trimTicks(g),g}adjustForMinRange(){const s=this.options,T=this.logarithmic;let z=this.min;var I=this.max;let V,n;if(this.isXAxis&&typeof this.minRange>"u"&&!T)if(v(s.min)||v(s.max)||v(s.floor)||v(s.ceiling))this.minRange=null;else{var g=l(this.series.map(m=>{var W;return(m.xIncrement?(W=m.xData)===null||W===void 0?void 0:W.slice(0,2):m.xData)||[]}))||0;this.minRange=Math.min(5*g,this.dataMax-this.dataMin)}I-z<this.minRange&&(g=this.dataMax-this.dataMin>=this.minRange,n=this.minRange,I=(n-I+z)/2,V=[z-I,u(s.min,z-I)],g&&(V[2]=T?T.log2lin(this.dataMin):this.dataMin),z=E(V),I=[z+n,u(s.max,z+n)],g&&(I[2]=T?T.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,T;if(this.categories)T=1;else{const z=[];this.series.forEach(function(I){var V;const n=I.closestPointRange,g=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)&&g&&(T=v(T)?Math.min(T,n):n)}),z.length&&(z.sort((I,V)=>I-V),s=l([z]))}return s&&T?Math.min(s,T):s||T}nameToX(s){const T=h(this.options.categories),z=T?this.categories:this.names;let I=s.options.x,V;return s.series.requireSorting=!1,v(I)||(I=this.options.uniqueNames&&z?T?z.indexOf(s.name):u(z.keys[s.name],-1):s.series.autoIncrement()),I===-1?!T&&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,T=this.names;0<T.length&&(Object.keys(T.keys).forEach(function(z){delete T.keys[z]}),T.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,T=s.max-s.min;var z=s.linkedParent;const I=!!s.categories,V=s.isXAxis;let n=s.axisPointRange||0,g,m=0,W=0,F=s.transA;(V||I||n)&&(g=s.getClosest(),z?(m=z.minPointOffset,W=z.pointRangePadding):s.series.forEach(function(N){const et=I?1:V?u(N.options.pointRange,g,0):s.axisPointRange||0,nt=N.options.pointPlacement;n=Math.max(n,et),(!s.single||I)&&(N=N.is("xrange")?!V:V,m=Math.max(m,N&&e(nt)?0:et/2),W=Math.max(W,N&&nt==="on"?0:et))}),z=s.ordinal&&s.ordinal.slope&&g?s.ordinal.slope/g:1,s.minPointOffset=m*=z,s.pointRangePadding=W*=z,s.pointRange=Math.min(n,s.single&&I?1:T),V&&g&&(s.closestPointRange=g)),s.translationSlope=s.transA=F=s.staticScale||s.len/(T+W||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 T=this.chart;const z=this.logarithmic,I=this.options,V=this.isXAxis,n=this.isLinked,g=I.tickPixelInterval,m=this.categories,W=this.softThreshold;let F=I.maxPadding,N=I.minPadding,et=d(I.tickInterval)&&0<=I.tickInterval?I.tickInterval:void 0,nt=d(this.threshold)?this.threshold:null,at,ht,pt;if(this.dateTime||m||n||this.getTickAmount(),ht=u(this.userMin,I.min),pt=u(this.userMax,I.max),n){this.linkedParent=T[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,T)}else W&&v(nt)&&(this.dataMin>=nt?(D=nt,N=0):this.dataMax<=nt&&(at=nt,F=0)),this.min=u(ht,D,this.dataMin),this.max=u(pt,at,this.dataMax);if(z&&(this.positiveValuesOnly&&!s&&0>=Math.min(this.min,u(this.dataMin,this.min))&&k(10,1,T),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)&&(T=this.max-this.min)&&(!v(ht)&&N&&(this.min-=T*N),!v(pt)&&F&&(this.max+=T*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)),W&&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&&!et&&g===this.linkedParent.options.tickPixelInterval?et=this.linkedParent.tickInterval:u(et,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(this.max-this.min)*g/Math.max(this.len,g)),V&&!s){const M=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(M)}),o(this,"postProcessData",{hasExtremesChanged:M})}this.setAxisTranslation(),o(this,"initialAxisTranslation"),this.pointRange&&!et&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),s=u(I.minTickInterval,this.dateTime&&!this.series.some(M=>M.noSharedTooltip)?this.closestPointRange:0),!et&&this.tickInterval<s&&(this.tickInterval=s),this.dateTime||this.logarithmic||et||(this.tickInterval=q(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var s=this.options;const T=s.tickPositions,z=s.tickPositioner;var I=this.getMinorTickInterval(),V=this.hasVerticalPanning(),n=this.coll==="colorAxis";const g=(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),T)n=T.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=q(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,g,V),!this.isLinked&&d(this.min)&&d(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some(W=>W.is("heatmap")&&W.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),T||m||this.adjustTickAmount()),o(this,"afterSetTickPositions")}trimTicks(s,T,z){const I=s[0],V=s[s.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(o(this,"trimTicks"),!this.isLinked){if(T&&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,T=[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 g=W=>{const{horiz:F,options:N}=W;return[F?N.left:N.top,N.width,N.height,N.pane].join()},m=g(this);this.chart[this.coll].forEach(function(W){const{series:F}=W;F.length&&F.some(N=>N.visible)&&W!==s&&g(W)===m&&(n=!0,T.push(W))})}if(n&&I){T.forEach(m=>{m=m.getThresholdAlignment(s),d(m)&&V.push(m)});const g=1<V.length?V.reduce((m,W)=>m+W,0)/V.length:void 0;T.forEach(m=>{m.thresholdAlignment=g})}return n}getThresholdAlignment(s){if((!d(this.dataMin)||this!==s&&this.series.some(T=>T.isDirty||T.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,T=s.tickPixelInterval;let z=s.tickAmount;!v(s.tickInterval)&&!z&&this.len<T&&!this.isRadial&&!this.logarithmic&&s.startOnTick&&s.endOnTick&&(z=2),!z&&this.alignToOthers()&&(z=Math.ceil(this.len/T)+1),4>z&&(this.finalTickAmt=z,z=5),this.tickAmount=z}adjustTickAmount(){const s=this,{finalTickAmt:T,max:z,min:I,options:V,tickPositions:n,tickAmount:g,thresholdAlignment:m}=s,W=n&&n.length;var F=u(s.threshold,s.softThreshold?0:null),N=s.tickInterval;let et;if(d(m)&&(et=.5>m?Math.ceil(m*(g-1)):Math.floor(m*(g-1)),V.reversed&&(et=g-1-et)),s.hasData()&&d(I)&&d(z)){const nt=()=>{s.transA*=(W-1)/(g-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(et)&&d(s.threshold)){for(;n[et]!==F||n.length!==g||n[0]>I||n[n.length-1]<z;){for(n.length=0,n.push(s.threshold);n.length<g;)n[et]===void 0||n[et]>s.threshold?n.unshift(y(n[0]-N)):n.push(y(n[n.length-1]+N));if(N>8*s.tickInterval)break;N*=2}nt()}else if(W<g){for(;n.length<g;)n.length%2||I===F?n.push(y(n[n.length-1]+N)):n.unshift(y(n[0]-N));nt()}if(v(T)){for(N=F=n.length;N--;)(T===3&&N%2===1||2>=T&&0<N&&N<F-1)&&n.splice(N,1);s.finalTickAmt=void 0}}}setScale(){let s=!1,T=!1;this.series.forEach(function(I){s=s||I.isDirtyData||I.isDirty,T=T||I.xAxis&&I.xAxis.isDirty||!1}),this.setAxisSize();const z=this.len!==(this.old&&this.old.len);z||s||T||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,T,z,I,V){const n=this,g=n.chart;z=u(z,!0),n.series.forEach(function(m){delete m.kdTree}),V=w(V,{min:s,max:T}),o(n,"setExtremes",V,function(){n.userMin=s,n.userMax=T,n.eventArgs=V,z&&g.redraw(I)})}zoom(s,T){const z=this,I=this.dataMin,V=this.dataMax,n=this.options,g=Math.min(I,u(n.min,I)),m=Math.max(V,u(n.max,V));return s={newMin:s,newMax:T},o(this,"zoom",s,function(W){let F=W.newMin,N=W.newMax;(F!==z.min||N!==z.max)&&(z.allowZoomOutside||(v(I)&&(F<g&&(F=g),F>m&&(F=m)),v(V)&&(N<g&&(N=g),N>m&&(N=m))),z.displayBtn=typeof F<"u"||typeof N<"u",z.setExtremes(F,N,!1,void 0,{trigger:"zoom"})),W.zoomed=!0}),s.zoomed}setAxisSize(){const s=this.chart;var T=this.options;const z=T.offsets||[0,0,0,0],I=this.horiz,V=this.width=Math.round(_(u(T.width,s.plotWidth-z[3]+z[1]),s.plotWidth)),n=this.height=Math.round(_(u(T.height,s.plotHeight-z[0]+z[2]),s.plotHeight)),g=this.top=Math.round(_(u(T.top,s.plotTop+z[0]),s.plotHeight,s.plotTop));T=this.left=Math.round(_(u(T.left,s.plotLeft+z[3]),s.plotWidth,s.plotLeft)),this.bottom=s.chartHeight-n-g,this.right=s.chartWidth-V-T,this.len=Math.max(I?V:n,0),this.pos=I?T:g}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 T=this.logarithmic;const z=T?T.lin2log(this.min):this.min;return T=T?T.lin2log(this.max):this.max,s===null||s===-1/0?s=z:s===1/0?s=T:z>s?s=z:T<s&&(s=T),this.translate(s,0,1,0,1)}autoLabelAlign(s){const T=(u(s,0)-90*this.side+720)%360;return s={align:"center"},o(this,"autoLabelAlign",s,function(z){15<T&&165>T?z.align="right":195<T&&345>T&&(z.align="left")}),s.align}tickSize(s){const T=this.options,z=u(T[s==="tick"?"tickWidth":"minorTickWidth"],s==="tick"&&this.isXAxis&&!this.categories?1:0);let I=T[s==="tick"?"tickLength":"minorTickLength"],V;return z&&I&&(T[s+"Position"]==="inside"&&(I=-I),V=[I,z]),s={tickSize:V},o(this,"afterTickSize",s),s.tickSize}labelMetrics(){const s=this.chart.renderer;var T=this.ticks;return T=T[Object.keys(T)[0]]||{},this.chart.renderer.fontMetrics(T.label||T.movedLabel||s.box)}unsquish(){const s=this.options.labels;var T=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,g=Math.max(this.max-this.min,0),m=function(nt){let at=nt/(I||1);return at=1<at?Math.ceil(at):1,at*z>g&&nt!==1/0&&I!==1/0&&g&&(at=Math.ceil(g/z)),y(at*z)};let W=z,F,N=Number.MAX_VALUE,et;if(T){if(s.staggerLines||(d(V)?et=[V]:I<s.autoRotationLimit&&(et=s.autoRotation)),et){let nt;for(const at of et)(at===V||at&&-90<=at&&90>=at)&&(T=m(Math.abs(n/Math.sin(b*at))),nt=T+Math.abs(at/360),nt<N&&(N=nt,F=at,W=T))}}else W=m(n);return this.autoRotation=et,this.labelRotation=u(F,d(V)?V:0),s.step?z:W}getSlotWidth(s){const T=this.chart,z=this.horiz,I=this.options.labels,V=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=T.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-T.spacing[3]}return .33*T.chartWidth}renderUnsquish(){const s=this.chart,T=s.renderer,z=this.tickPositions,I=this.ticks,V=this.options.labels,n=V.style,g=this.horiz,m=this.getSlotWidth();var W=Math.max(1,Math.round(m-2*V.padding));const F={},N=this.labelMetrics(),et=n.textOverflow;let nt,at,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>W&&ht>N.h?F.rotation=this.labelRotation:this.labelRotation=0;else if(m&&(nt=W,!et))for(at="clip",W=z.length;!g&&W--;){var pt=z[W];(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-(N.h-N.f)&&(pt.specificTextOverflow="ellipsis"))}F.rotation&&(nt=ht>.5*s.chartHeight?.33*s.chartHeight:ht,et||(at="ellipsis")),(this.labelAlign=V.align||this.autoLabelAlign(this.labelRotation))&&(F.align=this.labelAlign),z.forEach(function(D){const M=(D=I[D])&&D.label,Q=n.width,U={};M&&(M.attr(F),D.shortenLabel?D.shortenLabel():nt&&!Q&&n.whiteSpace!=="nowrap"&&(nt<M.textPxLength||M.element.tagName==="SPAN")?(U.width=nt+"px",et||(U.textOverflow=M.specificTextOverflow||at),M.css(U)):M.styles&&M.styles.width&&!U.width&&!Q&&M.css({width:null}),delete M.specificTextOverflow,D.rotation=F.rotation)},this),this.tickRotCorr=T.rotCorr(N.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 T=this.chart.renderer,z=this.horiz,I=this.opposite,V=this.options.title,n=this.chart.styledMode;let g;this.axisTitle||((g=V.textAlign)||(g=(z?{low:"left",middle:"center",high:"right"}:{low:I?"right":"left",middle:"center",high:I?"left":"right"})[V.align]),this.axisTitle=T.text(V.text||"",0,0,V.useHTML).attr({zIndex:7,rotation:V.rotation,align:g}).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 T=this.ticks;T[s]?T[s].addLabel():T[s]=new Y(this,s)}getOffset(){const s=this,{chart:T,horiz:z,options:I,side:V,ticks:n,tickPositions:g,coll:m,axisParent:W}=s,F=T.renderer,N=T.inverted&&!s.isZAxis?[1,0,3,2][V]:V;var et=s.hasData();const nt=I.title;var at=I.labels;const ht=d(I.crossing);var pt=T.axisOffset;const D=T.clipOffset,M=[-1,1,1,-1][V],Q=I.className;let U,tt=0,dt;var ct=0;let xt=0;if(s.showAxis=U=et||I.showEmpty,s.staggerLines=s.horiz&&at.staggerLines||void 0,!s.axisGroup){const vt=(gt,mt,Ct)=>F.g(gt).attr({zIndex:Ct}).addClass(`highcharts-${m.toLowerCase()}${mt} `+(this.isRadial?`highcharts-radial-axis${mt} `:"")+(Q||"")).add(W);s.gridGroup=vt("grid","-grid",I.gridZIndex),s.axisGroup=vt("axis","",I.zIndex),s.labelGroup=vt("axis-labels","-labels",at.zIndex)}et||s.isLinked?(g.forEach(function(vt){s.generateTick(vt)}),s.renderUnsquish(),s.reserveSpaceDefault=V===0||V===2||{1:"left",3:"right"}[V]===s.labelAlign,u(at.reserveSpace,ht?!1:null,s.labelAlign==="center"?!0:null,s.reserveSpaceDefault)&&g.forEach(function(vt){xt=Math.max(n[vt].getLabelSize(),xt)}),s.staggerLines&&(xt*=s.staggerLines),s.labelOffset=xt*(s.opposite?-1:1)):a(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=tt=s.axisTitle.getBBox()[z?"height":"width"],dt=nt.offset,ct=v(dt)?0:u(nt.margin,z?5:10))),s.renderLine(),s.offset=M*u(I.offset,pt[V]?pt[V]+(I.margin||0):0),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},et=V===0?-s.labelMetrics().h:V===2?s.tickRotCorr.y:0,ct=Math.abs(xt)+ct,xt&&(ct=ct-et+M*(z?u(at.y,s.tickRotCorr.y+M*at.distance):u(at.x,M*at.distance))),s.axisTitleMargin=u(dt,ct),s.getMaxLabelDimensions&&(s.maxLabelDimensions=s.getMaxLabelDimensions(n,g)),m!=="colorAxis"&&(at=this.tickSize("tick"),pt[V]=Math.max(pt[V],(s.axisTitleMargin||0)+tt+M*s.offset,ct,g&&g.length&&at?at[0]+M*s.offset:0),pt=!s.axisLine||I.offset?0:2*Math.floor(s.axisLine.strokeWidth()/2),D[N]=Math.max(D[N],pt)),o(this,"afterGetOffset")}getLinePath(s){const T=this.chart,z=this.opposite;var I=this.offset;const V=this.horiz,n=this.left+(z?this.width:0)+I;return I=T.chartHeight-this.bottom-(z?this.height:0)+I,z&&(s*=-1),T.renderer.crispLine([["M",V?this.left:n,V?I:this.top],["L",V?T.chartWidth-this.right:n,V?I:T.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 T=this.horiz,z=this.left;const I=this.top;var V=this.len;const n=this.options.title,g=T?z:I,m=this.opposite,W=this.offset,F=n.x,N=n.y,et=this.chart.renderer.fontMetrics(s);return s=s?Math.max(s.getBBox(!1,0).height-et.h-1,0):0,V={low:g+(T?0:V),middle:g+V/2,high:g+(T?V:0)}[n.align],z=(T?I+this.height:z)+(T?1:-1)*(m?-1:1)*(this.axisTitleMargin||0)+[-s,s,et.f,-s][this.side],T={x:T?V+F:z+(m?this.width:0)+W+F,y:T?z+N-(m?this.height:0)+W:V+N},o(this,"afterGetTitlePosition",{titlePosition:T}),T}renderMinorTick(s,T){const z=this.minorTicks;z[s]||(z[s]=new Y(this,s,"minor")),T&&z[s].isNew&&z[s].render(null,!0),z[s].render(null,!1,1)}renderTick(s,T,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(T,!0,-1),I[s].render(T))}render(){const s=this,T=s.chart,z=s.logarithmic,I=s.options,V=s.isLinked,n=s.tickPositions,g=s.axisTitle,m=s.ticks,W=s.minorTicks,F=s.alternateBands,N=I.stackLabels,et=I.alternateGridColor;var nt=I.crossing;const at=s.tickmarkOffset,ht=s.axisLine,pt=s.showAxis,D=H(T.renderer.globalAnimation);let M,Q;if(s.labelEdge.length=0,s.overlap=!1,[m,W,F].forEach(function(U){a(U,function(tt){tt.isActive=!1})}),d(nt)){const U=this.isXAxis?T.yAxis[0]:T.xAxis[0],tt=[1,-1,-1,1][this.side];U&&(nt=U.toPixels(nt,!0),s.horiz&&(nt=U.len-nt),s.offset=tt*nt)}if(s.hasData()||V){const U=s.chart.hasRendered&&s.old&&d(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(tt){s.renderMinorTick(tt,U)}),n.length&&(n.forEach(function(tt,dt){s.renderTick(tt,dt,U)}),at&&(s.min===0||s.single)&&(m[-1]||(m[-1]=new Y(s,-1,null,!0)),m[-1].render(-1))),et&&n.forEach(function(tt,dt){Q=typeof n[dt+1]<"u"?n[dt+1]+at:s.max-at,dt%2===0&&tt<s.max&&Q<=s.max+(T.polar?-at:at)&&(F[tt]||(F[tt]=new X.PlotLineOrBand(s)),M=tt+at,F[tt].options={from:z?z.lin2log(M):M,to:z?z.lin2log(Q):Q,color:et,className:"highcharts-alternate-grid"},F[tt].render(),F[tt].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(function(tt){s.addPlotBandOrLine(tt)}))}[m,W,F].forEach(function(U){const tt=[],dt=D.duration;a(U,function(ct,xt){ct.isActive||(ct.render(xt,!1,0),ct.isActive=!1,tt.push(xt))}),$(function(){let ct=tt.length;for(;ct--;)U[tt[ct]]&&!U[tt[ct]].isActive&&(U[tt[ct]].destroy(),delete U[tt[ct]])},U!==F&&T.hasRendered&&dt?dt:0)}),ht&&(ht[ht.isPlaced?"animate":"attr"]({d:this.getLinePath(ht.strokeWidth())}),ht.isPlaced=!0,ht[pt?"show":"hide"](pt)),g&&pt&&(g[g.isNew?"attr":"animate"](s.getTitlePosition(g)),g.isNew=!1),N&&N.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 T=this,z=T.plotLinesAndBands,I=this.eventOptions;if(o(this,"destroy",{keepEvents:s}),s||r(T),[T.ticks,T.minorTicks,T.alternateBands].forEach(function(V){f(V)}),z)for(s=z.length;s--;)z[s].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(V){T[V]&&(T[V]=T[V].destroy())});for(const V in T.plotLinesAndBandsGroups)T.plotLinesAndBandsGroups[V]=T.plotLinesAndBandsGroups[V].destroy();a(T,function(V,n){T.getKeepProps().indexOf(n)===-1&&delete T[n]}),this.eventOptions=I}drawCrosshair(s,T){const z=this.crosshair;var I=u(z&&z.snap,!0);const V=this.chart;let n,g=this.cross;if(o(this,"drawCrosshair",{e:s,point:T}),s||(s=this.cross&&this.cross.e),z&&(v(T)||!I)!==!1){if(I?v(T)&&(n=u(this.coll!=="colorAxis"?T.crosshairPos:null,this.isXAxis?T.plotX:this.len-T.plotY)):n=s&&(this.horiz?s.chartX-this.pos:this.len-s.chartY+this.pos),v(n)){var m={value:T&&(this.isXAxis?T.x:u(T.stackY,T.y)),translatedValue:n};V.polar&&w(m,{isCrosshair:!0,chartX:s&&s.chartX,chartY:s&&s.chartY,point:T}),m=this.getPlotLinePath(m)||null}if(!v(m)){this.hideCrosshair();return}I=this.categories&&!this.isRadial,g||(this.cross=g=V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(I?"category ":"thin ")+(z.className||"")).attr({zIndex:u(z.zIndex,2)}).add(),V.styledMode||(g.attr({stroke:z.color||(I?G.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":u(z.width,1)}).css({"pointer-events":"none"}),z.dashStyle&&g.attr({dashstyle:z.dashStyle}))),g.show().attr({d:m}),I&&!z.width&&g.attr({"stroke-width":this.transA}),this.cross.e=s}else this.hideCrosshair();o(this,"afterDrawCrosshair",{e:s,point:T})}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,T){const z=this.chart;s=t(this.userOptions,s),this.destroy(!0),this.init(z,s),z.isDirtyBox=!0,u(T,!0)&&z.redraw()}remove(s){const T=this.chart,z=this.coll,I=this.series;let V=I.length;for(;V--;)I[V]&&I[V].remove(!1);C(T.axes,this),C(T[z]||[],this),T.orderItems(z),this.destroy(),T.isDirtyBox=!0,u(s,!0)&&T.redraw()}setTitle(s,T){this.update({title:s},T)}setCategories(s,T){this.update({categories:s},T)}}return rt.defaultOptions=P.defaultXAxisOptions,rt.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),rt}),ot(A,"Core/Axis/DateTimeAxis.js",[A["Core/Utilities.js"]],function(B){const{addEvent:P,getMagnitude:G,normalizeTickInterval:K,timeUnits:Z}=B;var X;return function(Y){function O(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function H(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",H)),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=Z[L[0]],v=L[1],f;for(f=0;f<c.length&&(L=c[f],y=Z[L[0]],v=L[1],!(c[f+1]&&E<=(y*v[v.length-1]+Z[c[f+1][0]])/2));f++);return y===Z.year&&E<5*y&&(v=[1,2,5]),E=K(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}),ot(A,"Core/Axis/LogarithmicAxis.js",[A["Core/Utilities.js"]],function(B){const{addEvent:P,normalizeTickInterval:G,pick:K}=B;var Z;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 H=[];X.compose=function(x){return B.pushUnique(H,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,f=y.options;let C=[];if(c||(this.minorAutoInterval=void 0),.5<=b)b=Math.round(b),C=y.getLinearTickPositions(b,E,L);else if(.08<=b){f=Math.floor(E);let k,w,o,l,p;for(v=.3<b?[1,2,4]:.15<b?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<L+1&&!p;f++)for(w=v.length,k=0;k<w&&!p;k++)o=this.log2lin(this.lin2log(f)*v[k]),o>E&&(!c||l<=L)&&typeof l<"u"&&C.push(l),l>L&&(p=!0),l=o}else E=this.lin2log(E),L=this.lin2log(L),b=c?y.getMinorTickInterval():f.tickInterval,b=K(b==="auto"?null:b,this.minorAutoInterval,f.tickPixelInterval/(c?5:1)*(L-E)/((c?v/y.tickPositions.length:v)||1)),b=G(b),C=y.getLinearTickPositions(b,E,L).map(this.log2lin),c||(this.minorAutoInterval=b/5);return c||(y.tickInterval=b),C}lin2log(b){return Math.pow(10,b)}log2lin(b){return Math.log(b)/Math.LN10}}X.Additions=R}(Z||(Z={})),Z}),ot(A,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[A["Core/Utilities.js"]],function(B){const{erase:P,extend:G,isNumber:K}=B;var Z;return function(X){function Y(y){return this.addPlotBandOrLine(y,"plotBands")}function O(y,v){const f=this.userOptions;let C=new c(this,y);if(this.visible&&(C=C.render()),C){if(this._addedPlotLB||(this._addedPlotLB=!0,(f.plotLines||[]).concat(f.plotBands||[]).forEach(k=>{this.addPlotBandOrLine(k)})),v){const k=f[v]||[];k.push(y),f[v]=k}this.plotLinesAndBands.push(C)}return C}function H(y){return this.addPlotBandOrLine(y,"plotLines")}function R(y,v,f=this.options){const C=this.getPlotLinePath({value:v,force:!0,acrossPanes:f.acrossPanes}),k=[],w=this.horiz;v=!K(this.min)||!K(this.max)||y<this.min&&v<this.min||y>this.max&&v>this.max,y=this.getPlotLinePath({value:y,force:!0,acrossPanes:f.acrossPanes}),f=1;let o;if(y&&C)for(v&&(o=y.toString()===C.toString(),f=0),v=0;v<y.length;v+=2){const l=y[v],p=y[v+1],h=C[v],d=C[v+1];l[0]!=="M"&&l[0]!=="L"||p[0]!=="M"&&p[0]!=="L"||h[0]!=="M"&&h[0]!=="L"||d[0]!=="M"&&d[0]!=="L"||(w&&h[1]===l[1]?(h[1]+=f,d[1]+=f):w||h[2]!==l[2]||(h[2]+=f,d[2]+=f),k.push(["M",l[1],l[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,f=this.options,C=this.userOptions;if(v){let k=v.length;for(;k--;)v[k].id===y&&v[k].destroy();[f.plotLines||[],C.plotLines||[],f.plotBands||[],C.plotBands||[]].forEach(function(w){for(k=w.length;k--;)(w[k]||{}).id===y&&P(w,w[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:H,addPlotBandOrLine:O,getPlotBandPath:R,removePlotBand:x,removePlotLine:E,removePlotBandOrLine:b}),v}}(Z||(Z={})),Z}),ot(A,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[A["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],A["Core/Utilities.js"]],function(B,P){const{arrayMax:G,arrayMin:K,defined:Z,destroyObjectProperties:X,erase:Y,fireEvent:O,merge:H,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 f=L.options,C=f.color,k=x(f.zIndex,0),w=f.events,o={},l=c.chart.renderer;let p=f.label,h=L.label,d=f.to,e=f.from,t=f.value,i=L.svgElem;var a=[];const u=Z(e)&&Z(d);a=Z(t);const _=!i,r={class:"highcharts-plot-"+(u?"band ":"line ")+(f.className||"")};let S=u?"bands":"lines";if(v&&(e=v.log2lin(e),d=v.log2lin(d),t=v.log2lin(t)),c.chart.styledMode||(a?(r.stroke=C||"#999999",r["stroke-width"]=x(f.width,1),f.dashStyle&&(r.dashstyle=f.dashStyle)):u&&(r.fill=C||"#e6e9ff",f.borderWidth&&(r.stroke=f.borderColor,r["stroke-width"]=f.borderWidth))),o.zIndex=k,S+="-"+k,(v=c.plotLinesAndBandsGroups[S])||(c.plotLinesAndBandsGroups[S]=v=l.g("plot-"+S).attr(o).add()),_&&(L.svgElem=i=l.path().attr(r).add(v)),a)a=c.getPlotLinePath({value:t,lineWidth:i.strokeWidth(),acrossPanes:f.acrossPanes});else if(u)a=c.getPlotBandPath(e,d,f);else return;return!L.eventsAdded&&w&&(R(w,function($,q){i.on(q,function(rt){w[q].apply(L,[rt])})}),L.eventsAdded=!0),(_||!i.d)&&a&&a.length?i.attr({d:a}):i&&(a?(i.show(),i.animate({d:a})):i.d&&(i.hide(),h&&(L.label=h=h.destroy()))),p&&(Z(p.text)||Z(p.formatter))&&a&&a.length&&0<c.width&&0<c.height&&!a.isFlat?(p=H({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,a,u,k)):h&&h.hide(),L}renderLabel(L,c,y,v){const f=this.axis;var C=f.chart.renderer;let k=this.label;k||(this.label=k=C.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(),f.chart.styledMode||k.css(H({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=K(v),C=K(c),k.align(L,!1,{x:y,y:C,width:G(v)-y,height:G(c)-C}),k.alignValue&&k.alignValue!=="left"||(L=L.clip?f.width:f.chart.chartWidth,k.css({width:(k.rotation===90?f.height-(k.alignAttr.y-f.top):L-(k.alignAttr.x-f.left))+"px"})),k.show(!0)}getLabelText(L){return Z(L.formatter)?L.formatter.call(this):L.text}destroy(){Y(this.axis.plotLinesAndBands,this),delete this.axis,X(this)}}return b}),ot(A,"Core/Tooltip.js",[A["Core/Templating.js"],A["Core/Globals.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z){const{format:X}=B,{doc:Y,isSafari:O}=P,{distribute:H}=G,{addEvent:R,clamp:x,css:b,discardElement:E,extend:L,fireEvent:c,isArray:y,isNumber:v,isString:f,merge:C,pick:k,splat:w,syncTimeout:o}=Z;class l{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||w(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)),Z.clearTimeout(this.hideTimer),Z.clearTimeout(this.tooltipTimeout)}getAnchor(h,d){var e=this.chart;const t=e.pointer,i=e.inverted,a=e.plotTop;if(e=e.plotLeft,h=w(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-a];else if(h[0].tooltipPos)h=h[0].tooltipPos;else{let u=0,_=0;h.forEach(function(r){(r=r.pos(!0))&&(u+=r[0],_+=r[1])}),u/=h.length,_/=h.length,this.shared&&1<h.length&&d&&(i?u=d.chartX:_=d.chartY),h=[u-e,_-a]}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(f).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 a,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 r=K.getRendererType();this.container=a=P.doc.createElement("div"),a.className="highcharts-tooltip-container",b(a,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(_&&_.zIndex||0)+3)}),P.doc.body.appendChild(a),this.renderer=u=new r(a,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 r=this.label,{xSetter:S,ySetter:$}=r;r.xSetter=function(q){S.call(r,h.distance),a.style.left=q+"px"},r.ySetter=function(q){$.call(r,h.distance),a.style.top=q+"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,a={},u=t.inverted&&e.h||0,_=this.outside;var r=this.getPlayingField();const S=r.width,$=r.height,q=t.pointer.getChartPosition();r=g=>{const m=g==="x";return[g,m?S:$,m?h:d].concat(_?[m?h*q.scaleX:d*q.scaleY,m?q.left-i+(e.plotX+t.plotLeft)*q.scaleX:q.top-i+(e.plotY+t.plotTop)*q.scaleY,0,m?S:$]:[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=r("y"),j=r("x"),s;r=!!e.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(r=!r);const T=!this.followPointer&&k(e.ttBelow,!t.inverted===r),z=function(g,m,W,F,N,et,nt){const at=_?g==="y"?i*q.scaleY:i*q.scaleX:i,ht=(W-F)/2,pt=F<N-i,D=N+i+F<m,M=N-at-W+ht;if(N=N+at-ht,T&&D)a[g]=N;else if(!T&&pt)a[g]=M;else if(pt)a[g]=Math.min(nt-F,0>M-u?M:M-u);else if(D)a[g]=Math.max(et,N+u+W>m?N:N+u);else return!1},I=function(g,m,W,F,N){let et;return N<i||N>m-i?et=!1:a[g]=N<W/2?1:N>m-F/2?m-F-2:N-W/2,et},V=function(g){const m=rt;rt=j,j=m,s=g},n=function(){z.apply(0,rt)!==!1?I.apply(0,j)!==!1||s||(V(!0),n()):s?a.x=a.y=0:(V(!0),n())};return(t.inverted||1<this.len)&&V(),n(),a}hide(h){const d=this;Z.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,a=i.now,u=i.options.animation!==!1&&!i.isHidden&&(1<Math.abs(h-a.x)||1<Math.abs(d-a.y)),_=i.followPointer||1<i.len;L(a,{x:u?(2*a.x+h)/3:h,y:u?(a.y+d)/2:d,anchorX:_?void 0:u?(2*a.anchorX+e)/3:e,anchorY:_?void 0:u?(a.anchorY+t)/2:t}),i.getLabel().attr(a),i.drawTracker(),u&&(Z.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,a=w(h),u=a[0],_=[];var r=t.format,S=t.formatter||this.defaultFormatter;const $=this.shared,q=e.styledMode;let rt={};if(t.enabled&&u.series){Z.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($&&this.allowShared?(i.applyInactiveState(a),a.forEach(function(T){T.setState("hover"),_.push(T.getLabelConfig())}),rt=u.getLabelConfig(),rt.points=_):rt=u.getLabelConfig(),this.len=_.length,r=f(r)?X(r,rt,e):S.call(rt,this),S=u.series,this.distance=k(S.tooltipOptions.distance,16),r===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(r,a);else{let T=j,z=s;if(d&&i.isDirectTouch&&(T=d.chartX-e.plotLeft,z=d.chartY-e.plotTop),e.polar||S.options.clip===!1||a.some(I=>i.isDirectTouch||I.series.shouldShowTooltip(T,z)))d=this.getLabel(),t.style.width&&!q||d.css({width:(this.outside?this.getPlayingField():e.spacingBox).width+"px"}),d.attr({text:r&&r.join?r.join(""):r}),d.addClass(this.getClassName(u),!0),q||d.attr({stroke:t.borderColor||u.color||S.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,tt,dt,ct,xt=!0){return dt?(tt=W?0:at,U=x(U-ct/2,n.left,n.right-ct-(t.outside?F:0))):(tt-=et,U=xt?U-ct-z:U+z,U=x(U,xt?U:n.left,n.right)),{x:U,y:tt}}const t=this,{chart:i,chart:{chartWidth:a,chartHeight:u,plotHeight:_,plotLeft:r,plotTop:S,pointer:$,scrollablePixelsY:q=0,scrollablePixelsX:rt,scrollingContainer:{scrollLeft:j,scrollTop:s}={scrollLeft:0,scrollTop:0},styledMode:T},distance:z,options:I,options:{positioner:V}}=t,n=t.outside&&typeof rt!="number"?Y.documentElement.getBoundingClientRect():{left:j,right:j+a,top:s,bottom:s+u},g=t.getLabel(),m=this.renderer||i.renderer,W=!(!i.xAxis[0]||!i.xAxis[0].opposite),{left:F,top:N}=$.getChartPosition();let et=S+s,nt=0,at=_-q;f(h)&&(h=[!1,h]),h=h.slice(0,d.length+1).reduce(function(U,tt,dt){if(tt!==!1&&tt!==""){dt=d[dt-1]||{isHeader:!0,plotX:d[0].plotX,plotY:_,series:{}};const Ct=dt.isHeader;var ct=Ct?t:dt.series,xt;{var vt=dt;tt=tt.toString();var gt=ct.tt;const{isHeader:Mt,series:Et}=vt;gt||(gt={padding:I.padding,r:I.borderRadius},T||(gt.fill=I.backgroundColor,gt["stroke-width"]=(xt=I.borderWidth)!==null&&xt!==void 0?xt: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(g)),gt.isActive=!0,gt.attr({text:tt}),T||gt.css(I.style).attr({stroke:I.borderColor||vt.color||Et.color||"#333333"}),xt=gt}xt=ct.tt=xt,vt=xt.getBBox(),ct=vt.width+xt.strokeWidth(),Ct&&(nt=vt.height,at+=nt,W&&(et-=nt));{const{isHeader:Mt,plotX:Et=0,plotY:_t=0,series:zt}=dt;if(Mt){tt=r+Et;var mt=S+_/2}else{const{xAxis:$t,yAxis:Ot}=zt;tt=$t.pos+x(Et,-z,$t.len+z),zt.shouldShowTooltip(0,Ot.pos-S+_t,{ignoreX:!0})&&(mt=Ot.pos+_t)}tt=x(tt,n.left-z,n.right+z),mt={anchorX:tt,anchorY:mt}}const{anchorX:bt,anchorY:wt}=mt;typeof wt=="number"?(mt=vt.height+1,vt=V?V.call(t,ct,mt,dt):e(bt,wt,Ct,ct),U.push({align:V?0:void 0,anchorX:bt,anchorY:wt,boxWidth:ct,point:dt,rank:k(vt.rank,Ct?1:0),size:mt,target:vt.y,tt:xt,x:vt.x})):xt.isActive=!1}return U},[]),!V&&h.some(U=>{var{outside:tt}=t;return tt=(tt?F:0)+U.anchorX,tt<n.left&&tt+U.boxWidth<n.right?!0:tt<F-n.left+U.boxWidth&&n.right-tt>tt})&&(h=h.map(U=>{const{x:tt,y:dt}=e(U.anchorX,U.anchorY,U.point.isHeader,U.boxWidth,!1);return L(U,{target:dt,x:tt})})),t.cleanSplit(),H(h,at);var ht=F,pt=F;h.forEach(function(U){const{x:tt,boxWidth:dt,isHeader:ct}=U;ct||(t.outside&&F+tt<ht&&(ht=F+tt),!ct&&t.outside&&ht+dt>pt&&(pt=F+tt))}),h.forEach(function(U){const{x:tt,anchorX:dt,anchorY:ct,pos:xt,point:{isHeader:vt}}=U,gt={visibility:typeof xt>"u"?"hidden":"inherit",x:tt,y:(xt||0)+et,anchorX:dt,anchorY:ct};if(t.outside&&tt<dt){const mt=F-ht;0<mt&&(vt||(gt.x=tt+mt,gt.anchorX=dt+mt),vt&&(gt.x=(pt-ht)/2,gt.anchorX=dt+mt))}U.tt.attr(gt)});const{container:D,outside:M,renderer:Q}=t;if(M&&D&&Q){const{width:U,height:tt,x:dt,y:ct}=g.getBBox();Q.setSize(U+dt,tt+ct,!1),D.style.left=ht+"px",D.style.top=N+"px"}O&&g.attr({opacity:g.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 a=i&&i.dateTime;i={isFooter:d,labelConfig:h};let u=t.xDateFormat,_=t[d?"footerFormat":"headerFormat"];return c(this,"headerFormatter",i,function(r){a&&!u&&v(h.key)&&(u=a.getXDateFormat(h.key,t.dateTimeLabelFormats)),a&&u&&(h.point&&h.point.tooltipDateKeys||["key"]).forEach(function(S){_=_.replace("{point."+S+"}","{point."+S+":"+u+"}")}),e.chart.styledMode&&(_=this.styledModeFormat(_)),r.text=X(_,{point:h,series:e},this.chart)}),i.text}update(h){this.destroy(),this.init(this.chart,C(!0,this.options,h))}updatePosition(h){const{chart:d,distance:e,options:t}=this;var i=d.pointer;const a=this.getLabel(),{left:u,top:_,scaleX:r,scaleY:S}=i.getChartPosition();i=(t.positioner||this.getPosition).call(this,a.width,a.height,h);let $=(h.plotX||0)+d.plotLeft;h=(h.plotY||0)+d.plotTop;let q;this.outside&&(t.positioner&&(i.x+=u-e,i.y+=_-e),q=(t.borderWidth||0)+2*e,this.renderer.setSize(a.width+q,a.height+q,!1),(r!==1||S!==1)&&(b(this.container,{transform:`scale(${r}, ${S})`}),$*=r,h*=S),$+=u-i.x,h+=_-i.y),this.move(Math.round(i.x),Math.round(i.y||0),$,h)}}return function(p){const h=[];p.compose=function(d){Z.pushUnique(h,d)&&R(d,"afterInit",function(){const e=this.chart;e.options.tooltip&&(e.tooltip=new p(e,e.options.tooltip))})}}(l||(l={})),l}),ot(A,"Core/Series/Point.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Animation/AnimationUtilities.js"],A["Core/Defaults.js"],A["Core/Templating.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z){const{animObject:X}=P,{defaultOptions:Y}=G,{format:O}=K,{addEvent:H,defined:R,erase:x,extend:b,fireEvent:E,getNestedProperty:L,isArray:c,isFunction:y,isNumber:v,isObject:f,merge:C,objectEach:k,pick:w,syncTimeout:o,removeEvent:l,uniqueKey:p}=Z;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(a){e[a]=e[a].animate(a==="dataLabel"?{x:e[a].startXPos,y:e[a].startYPos,opacity:0}:t)}),i.plural.forEach(function(a){e[a].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,a=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,a&&(this.y=h.prototype.getNestedProperty.call(this,a)),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 a=i.hoverPoints,u=X(t.series.chart.renderer.globalAnimation),_=()=>{(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(l(t),t.destroyElements());for(const r in t)delete t[r]};t.legendItem&&i.legend.destroyItem(t),a&&(t.setState(),x(a,t),a.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(a){a&&a.element&&a.destroy()}),delete t[i]})}firePointEvent(e,t,i){const a=this,u=this.series.options;(u.point.events[e]||a.options&&a.options.events&&a.options.events[e])&&a.importEvents(),e==="click"&&u.allowPointSelect&&(i=function(_){a.select&&a.select(null,_.ctrlKey||_.metaKey||_.shiftKey)}),E(a,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=[],a={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]&&a.singular.push(u);return["graphic","dataLabel","connector"].forEach(function(r){const S=r+"s";e[r]&&t[S]&&a.plural.push(S)}),a}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,a=0;for(i=t[a];this[e]>=i.value;)i=t[++a];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,a=i||t.pointArrayMap||["y"],u=a.length;let _={},r=0,S=0;if(v(e)||e===null)_[a[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]),r++);S<u;)i&&typeof e[r]>"u"||(0<a[S].indexOf(".")?h.prototype.setNestedProperty(_,e[r],a[S]):_[a[S]]=e[r]),r++,S++;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:a}=this,{chart:u,xAxis:_,yAxis:r}=a;let S=0,$=0;if(v(i)&&v(t))return e&&(S=_?_.pos:u.plotLeft,$=r?r.pos:u.plotTop),u.inverted&&_&&r?[r.len-t+$,_.len-i+S]:[i+S,t+$]}}resolveColor(){const e=this.series;var t=e.chart.styledMode;let i;var a=e.chart.options.chart.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(t||(a=e.options.colors||e.chart.options.colors,i=a[e.colorCounter],a=a.length),t=e.colorCounter,e.colorCounter++,e.colorCounter===a&&(e.colorCounter=0)):(t||(i=e.color),t=e.colorIndex),this.colorIndex=w(this.options.colorIndex,t),this.color=w(this.options.color,i)}setNestedProperty(e,t,i){return i.split(".").reduce(function(a,u,_,r){return a[u]=r.length-1===_?t:f(a[u],!0)?a[u]:{},a[u]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){const t=this.series,i=t.tooltipOptions,a=w(i.valueDecimals,""),u=i.valuePrefix||"",_=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(r){r="{point."+r,(u||_)&&(e=e.replace(RegExp(r+"}","g"),u+r+"}"+_)),e=e.replace(RegExp(r+"}","g"),r+":,."+a+"f}")}),O(e,{point:this,series:this.series},t.chart)}update(e,t,i,a){function u(){_.applyOptions(e);var j=S&&_.hasMockGraphic;j=_.y===null?!j:j,S&&j&&(_.graphic=S.destroy(),delete _.hasMockGraphic),f(e,!0)&&(S&&S.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(_.graphic=S.destroy()),e&&e.dataLabels&&_.dataLabel&&(_.dataLabel=_.dataLabel.destroy()),_.connector&&(_.connector=_.connector.destroy())),rt=_.index,r.updateParallelArrays(_,rt),q.data[rt]=f(q.data[rt],!0)||f(e,!0)?_.options:w(e,q.data[rt]),r.isDirty=r.isDirtyData=!0,!r.fixedBox&&r.hasCartesianSeries&&($.isDirtyBox=!0),q.legendType==="point"&&($.isDirtyLegend=!0),t&&$.redraw(i)}const _=this,r=_.series,S=_.graphic,$=r.chart,q=r.options;let rt;t=w(t,!0),a===!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,a=i.series,u=a.chart;this.selectedStaging=e=w(e,!i.selected),i.firePointEvent(e?"select":"unselect",{accumulate:t},function(){i.selected=i.options.selected=e,a.options.data[a.data.indexOf(i)]=i.options,i.setState(e&&"select"),t||u.getSelectedPoints().forEach(function(_){const r=_.series;_.selected&&_!==i&&(_.selected=_.options.selected=!1,r.options.data[r.data.indexOf(_)]=_.options,_.setState(u.hoverPoints&&r.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=C(e.series.options.point,e.options).events;e.events=t,k(t,function(i,a){y(i)&&H(e,a,i)}),this.hasImportedEvents=!0}}setState(e,t){const i=this.series;var a=this.state,u=i.options.states[e||"normal"]||{},_=Y.plotOptions[i.type].marker&&i.options.marker;const r=_&&_.enabled===!1,S=_&&_.states&&_.states[e||"normal"]||{},$=S.enabled===!1,q=this.marker||{},rt=i.chart,j=_&&i.markerAttribs;let s=i.halo;var T;let z;var I=i.stateMarkerGraphic;if(e=e||"",!(e===this.state&&!t||this.selected&&e!=="select"||u.enabled===!1||e&&($||r&&S.enabled===!1)||e&&q.states&&q.states[e]&&q.states[e].enabled===!1)){if(this.state=e,j&&(T=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(a&&this.graphic.removeClass("highcharts-point-"+a),e&&this.graphic.addClass("highcharts-point-"+e),!rt.styledMode){a=i.pointAttribs(this,e),z=w(rt.options.chart.animation,u.animation);const V=a.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(a,z)}T&&this.graphic.animate(T,w(rt.options.chart.animation,S.animation,_.animation)),I&&I.hide()}else e&&S&&(_=q.symbol||i.symbol,I&&I.currentSymbol!==_&&(I=I.destroy()),T&&(I?I[t?"animate":"attr"]({x:T.x,y:T.y}):_&&(i.stateMarkerGraphic=I=rt.renderer.symbol(_,T.x,T.y,T.width,T.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,T=(I=this.graphic||I)&&I.visibility||"inherit",u&&u.size&&I&&T!=="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-"+w(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:T,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}),ot(A,"Core/Pointer.js",[A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(B,P,G){const{parse:K}=B,{charts:Z,noop:X}=P,{addEvent:Y,attr:O,css:H,defined:R,extend:x,find:b,fireEvent:E,isNumber:L,isObject:c,objectEach:y,offset:v,pick:f,splat:C}=G;class k{constructor(o,l){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=o,this.hasDragged=!1,this.options=l,this.init(o,l)}applyInactiveState(o){let l=[],p;(o||[]).forEach(function(h){p=h.series,l.push(p),p.linkedParent&&l.push(p.linkedParent),p.linkedSeries&&(l=l.concat(p.linkedSeries)),p.navigatorSeries&&l.push(p.navigatorSeries)}),this.chart.series.forEach(function(h){l.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})}destroy(){const o=this;this.eventsToUnbind.forEach(l=>l()),this.eventsToUnbind=[],P.chartCount||(k.unbindDocumentMouseUp&&(k.unbindDocumentMouseUp=k.unbindDocumentMouseUp()),k.unbindDocumentTouchEnd&&(k.unbindDocumentTouchEnd=k.unbindDocumentTouchEnd())),clearInterval(o.tooltipTimeout),y(o,function(l,p){o[p]=void 0})}getSelectionMarkerAttrs(o,l){const p={args:{chartX:o,chartY:l},attrs:{},shapeType:"rect"};return E(this,"getSelectionMarkerAttrs",p,h=>{const{chart:d,mouseDownX:e=0,mouseDownY:t=0,zoomHor:i,zoomVert:a}=this;h=h.attrs;let u;h.x=d.plotLeft,h.y=d.plotTop,h.width=i?1:d.plotWidth,h.height=a?1:d.plotHeight,i&&(u=o-e,h.width=Math.abs(u),h.x=(0<u?0:u)+e),a&&(u=l-t,h.height=Math.abs(u),h.y=(0<u?0:u)+t)}),p}drag(o){const l=this.chart,p=l.options.chart;var h=l.plotLeft;const d=l.plotTop,e=l.plotWidth,t=l.plotHeight,i=this.mouseDownX||0,a=this.mouseDownY||0,u=c(p.panning)?p.panning&&p.panning.enabled:p.panning,_=p.panKey&&o[p.panKey+"Key"];let r=o.chartX,S=o.chartY,$=this.selectionMarker;if((!$||!$.touch)&&(r<h?r=h:r>h+e&&(r=h+e),S<d?S=d:S>d+t&&(S=d+t),this.hasDragged=Math.sqrt(Math.pow(i-r,2)+Math.pow(a-S,2)),10<this.hasDragged)){h=l.isInsidePlot(i-h,a-d,{visiblePlotOnly:!0});const{shapeType:q,attrs:rt}=this.getSelectionMarkerAttrs(r,S);!l.hasCartesianSeries&&!l.mapView||!this.zoomX&&!this.zoomY||!h||_||$||(this.selectionMarker=$=l.renderer[q](),$.attr({class:"highcharts-selection-marker",zIndex:7}).add(),l.styledMode||$.attr({fill:p.selectionMarkerFill||K("#334eff").setOpacity(.25).get()})),$&&$.attr(rt),h&&!$&&u&&l.pan(o,p.panning)}}dragStart(o){const l=this.chart;l.mouseIsDown=o.type,l.cancelClick=!1,l.mouseDownX=this.mouseDownX=o.chartX,l.mouseDownY=this.mouseDownY=o.chartY}getSelectionBox(o){const l={args:{marker:o},result:{}};return E(this,"getSelectionBox",l,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}}),l.result}drop(o){const l=this,p=this.chart,h=this.hasPinched;if(this.selectionMarker){const{x:d,y:e,width:t,height:i}=this.getSelectionBox(this.selectionMarker),a={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||l[{xAxis:"zoomX",yAxis:"zoomY"}[_.coll]])&&L(d)&&L(e)&&L(t)&&L(i)){var r=_.horiz;const S=o.type==="touchend"?_.minPixelPadding:0,$=_.toValue((r?d:e)+S);r=_.toValue((r?d+t:e+i)-S),a[_.coll].push({axis:_,min:Math.min($,r),max:Math.max($,r)}),u=!0}}),u&&E(p,"selection",a,function(_){p.zoom(x(_,h?{animation:!1}:null))})),L(p.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}p&&L(p.index)&&(H(p.container,{cursor:p._cursor}),p.cancelClick=10<this.hasDragged,p.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(o,l,p){let h;return o.forEach(function(d){var e=!(d.noSharedTooltip&&l)&&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&&l?e:t!==0?t:i!==0?i:h.series.index>d.series.index?-1:1}e=0<e}e&&(h=d)}),h}getChartCoordinatesFromPoint(o,l){var p=o.series;const h=p.xAxis;p=p.yAxis;const d=o.shapeArgs;if(h&&p){let e=f(o.clientX,o.plotX),t=o.plotY||0;return o.isNode&&d&&L(d.x)&&L(d.y)&&(e=d.x,t=d.y),l?{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 l=v(o);this.chartPosition={left:l.left,top:l.top,scaleX:1,scaleY:1};const p=o.offsetWidth;return o=o.offsetHeight,2<p&&2<o&&(this.chartPosition.scaleX=l.width/p,this.chartPosition.scaleY=l.height/o),this.chartPosition}getCoordinates(o){const l={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(p){l[p.isXAxis?"xAxis":"yAxis"].push({axis:p,value:p.toValue(o[p.horiz?"chartX":"chartY"])})}),l}getHoverData(o,l,p,h,d,e){const t=[];h=!(!h||!o);const i=function(r){return r.visible&&!(!d&&r.directTouch)&&f(r.options.enableMouseTracking,!0)};let a,u={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:d};E(this,"beforeGetHoverData",u),a=l&&!l.stickyTracking?[l]:p.filter(r=>r.stickyTracking&&(u.filter||i)(r));const _=h||!e?o:this.findNearestKDPoint(a,d,e);return l=_&&_.series,_&&(d&&!l.noSharedTooltip?(a=p.filter(function(r){return u.filter?u.filter(r):i(r)&&!r.noSharedTooltip}),a.forEach(function(r){let S=b(r.points,function($){return $.x===_.x&&!$.isNull});c(S)&&(r.boosted&&r.boost&&(S=r.boost.getPoint(S)),t.push(S))})):t.push(_)),u={hoverPoint:_},E(this,"afterGetHoverData",u),{hoverPoint:u.hoverPoint,hoverSeries:l,hoverPoints:t}}getPointFromEvent(o){o=o.target;let l;for(;o&&!l;)l=o.point,o=o.parentNode;return l}onTrackerMouseOut(o){o=o.relatedTarget;const l=this.chart.hoverSeries;this.isDirectTouch=!1,!l||!o||l.stickyTracking||this.inClass(o,"highcharts-tooltip")||this.inClass(o,"highcharts-series-"+l.index)&&this.inClass(o,"highcharts-tracker")||l.onMouseOut()}inClass(o,l){let p;for(;o;){if(p=O(o,"class")){if(p.indexOf(l)!==-1)return!0;if(p.indexOf("highcharts-container")!==-1)return!1}o=o.parentElement}}init(o,l){this.options=l,this.chart=o,this.runChartClick=!(!l.chart.events||!l.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),E(this,"afterInit")}normalize(o,l){var p=o.touches,h=p?p.length?p.item(0):f(p.changedTouches,o.changedTouches)[0]:o;return l||(l=this.getChartPosition()),p=h.pageX-l.left,h=h.pageY-l.top,p/=l.scaleX,h/=l.scaleY,x(o,{chartX:Math.round(p),chartY:Math.round(h)})}onContainerClick(o){const l=this.chart,p=l.hoverPoint;o=this.normalize(o);const h=l.plotLeft,d=l.plotTop;l.cancelClick||(p&&this.inClass(o.target,"highcharts-tracker")?(E(p.series,"click",x(o,{point:p})),l.hoverPoint&&p.firePointEvent("click",o)):(x(o,this.getCoordinates(o)),l.isInsidePlot(o.chartX-h,o.chartY-d,{visiblePlotOnly:!0})&&E(l,"click",o)))}onContainerMouseDown(o){const l=((o.buttons||o.button)&1)===1;o=this.normalize(o),P.isFirefox&&o.button!==0&&this.onContainerMouseMove(o),(typeof o.button>"u"||l)&&(this.zoomOption(o),l&&o.preventDefault&&o.preventDefault(),this.dragStart(o))}onContainerMouseLeave(o){const l=Z[f(k.hoverChartIndex,-1)];o=this.normalize(o),l&&o.relatedTarget&&!this.inClass(o.relatedTarget,"highcharts-tooltip")&&(l.pointer.reset(),l.pointer.chartPosition=void 0)}onContainerMouseEnter(o){delete this.chartPosition}onContainerMouseMove(o){const l=this.chart,p=l.tooltip;o=this.normalize(o),this.setHoverChartIndex(),(l.mouseIsDown==="mousedown"||this.touchSelect(o))&&this.drag(o),l.openMenu||!this.inClass(o.target,"highcharts-tracker")&&!l.isInsidePlot(o.chartX-l.plotLeft,o.chartY-l.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(o)||(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))}onDocumentTouchEnd(o){const l=Z[f(k.hoverChartIndex,-1)];l&&l.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 l=this.chart,p=l.tooltip,h=this.chartPosition;o=this.normalize(o,h),!h||l.isInsidePlot(o.chartX-l.plotLeft,o.chartY-l.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(o)||this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(o){const l=Z[f(k.hoverChartIndex,-1)];l&&l.pointer.drop(o)}pinch(o){const l=this,p=l.chart,h=l.pinchDown,d=o.touches||[],e=d.length,t=l.lastValidTouch,i=l.hasZoom,a={},u=e===1&&(l.inClass(o.target,"highcharts-tracker")&&p.runTrackerClick||l.runChartClick),_={};var r=l.chart.tooltip;r=e===1&&f(r&&r.options.followTouchMove,!0);let S=l.selectionMarker;1<e?l.initiated=!0:r&&(l.initiated=!1),i&&l.initiated&&!u&&o.cancelable!==!1&&o.preventDefault(),[].map.call(d,function($){return l.normalize($)}),o.type==="touchstart"?([].forEach.call(d,function($,q){h[q]={chartX:$.chartX,chartY:$.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($){if($.zoomEnabled){const q=p.bounds[$.horiz?"h":"v"],rt=$.minPixelPadding,j=$.toPixels(Math.min(f($.options.min,$.dataMin),$.dataMin)),s=$.toPixels(Math.max(f($.options.max,$.dataMax),$.dataMax)),T=Math.max(j,s);q.min=Math.min($.pos,Math.min(j,s)-rt),q.max=Math.max($.pos+$.len,T+rt)}}),l.res=!0):r?this.runPointActions(l.normalize(o)):h.length&&(E(p,"touchpan",{originalEvent:o},()=>{S||(l.selectionMarker=S=x({destroy:X,touch:!0},p.plotBox)),l.pinchTranslate(h,d,a,S,_,t),l.hasPinched=i,l.scaleGroups(a,_)}),l.res&&(l.res=!1,this.reset(!1,0)))}pinchTranslate(o,l,p,h,d,e){this.zoomHor&&this.pinchTranslateDirection(!0,o,l,p,h,d,e),this.zoomVert&&this.pinchTranslateDirection(!1,o,l,p,h,d,e)}pinchTranslateDirection(o,l,p,h,d,e,t,i){const a=this.chart,u=o?"x":"y",_=o?"X":"Y",r="chart"+_,S=o?"width":"height",$=a["plot"+(o?"Left":"Top")],q=a.inverted,rt=a.bounds[o?"h":"v"],j=l.length===1,s=l[0][r],T=!j&&l[1][r];l=function(){typeof g=="number"&&20<Math.abs(s-T)&&(V=i||Math.abs(n-g)/Math.abs(s-T)),I=($-n)/V+s,z=a["plot"+(o?"Width":"Height")]/V};let z,I,V=i||1,n=p[0][r],g=!j&&p[1][r],m;l(),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 g=="number"&&(g-=.8*(g-t[u][1])),l()):t[u]=[n,g],q||(e[u]=I-$,e[S]=z),e=q?1/V:V,d[S]=z,d[u]=p,h[q?o?"scaleY":"scaleX":"scale"+_]=V,h["translate"+_]=e*$+(n-e*s)}reset(o,l){const p=this.chart,h=p.hoverSeries,d=p.hoverPoint,e=p.hoverPoints,t=p.tooltip,i=t&&t.shared?e:d;o&&i&&C(i).forEach(function(a){a.series.isCartesian&&typeof a.plotX>"u"&&(o=!1)}),o?t&&i&&C(i).length&&(t.refresh(i),t.shared&&e?e.forEach(function(a){a.setState(a.state,!0),a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):d&&(d.setState(d.state,!0),p.axes.forEach(function(a){a.crosshair&&d.series[a.coll]===a&&a.drawCrosshair(null,d)}))):(d&&d.onMouseOut(),e&&e.forEach(function(a){a.setState()}),h&&h.onMouseOut(),t&&t.hide(l),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),p.axes.forEach(function(a){a.hideCrosshair()}),this.hoverX=p.hoverPoints=p.hoverPoint=null)}runPointActions(o,l,p){const h=this.chart,d=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,e=d?d.shared:!1;let t=l||h.hoverPoint,i=t&&t.series||h.hoverSeries;l=this.getHoverData(t,i,h.series,(!o||o.type!=="touchmove")&&(!!l||i&&i.directTouch&&this.isDirectTouch),e,o),t=l.hoverPoint,i=l.hoverSeries;const a=l.hoverPoints;l=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(_){a.indexOf(_)===-1&&_.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(a),(a||[]).forEach(function(_){_.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!t.series)return;h.hoverPoints=a,h.hoverPoint=t,t.firePointEvent("mouseOver",void 0,()=>{d&&t&&d.refresh(u?a:t,o)})}else l&&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 r=Z[k.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(_)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(_){const r=f((_.crosshair||{}).snap,!0);let S;r&&((S=h.hoverPoint)&&S.series[_.coll]===_||(S=b(a,$=>$.series&&$.series[_.coll]===_))),S||!r?_.drawCrosshair(o,S):_.hideCrosshair()})}scaleGroups(o,l){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(l?p.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(d))}),p.clipRect.attr(l||p.clipBox)}setDOMEvents(){const o=this.chart.container,l=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(l,"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(l,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const o=this.chart,l=P.charts[f(k.hoverChartIndex,-1)];l&&l!==o&&l.pointer.onContainerMouseLeave({relatedTarget:o.container}),l&&l.mouseIsDown||(k.hoverChartIndex=o.index)}touch(o,l){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?(l&&this.runPointActions(o),o.type==="touchmove"&&(l=this.pinchDown,h=l[0]?4<=Math.sqrt(Math.pow(l[0].chartX-o.chartX,2)+Math.pow(l[0].chartY-o.chartY,2)):!1),f(h,!0)&&this.pinch(o)):l&&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 l=this.chart,p=l.inverted;var h=l.zooming.type||"";/touch/.test(o.type)&&(h=f(l.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(w){const o=[],l=[];w.compose=function(p){G.pushUnique(l,p)&&Y(p,"beforeRender",function(){this.pointer=new w(this,this.options)})},w.dissolve=function(){for(let p=0,h=o.length;p<h;++p)o[p]();o.length=0}}(k||(k={})),k}),ot(A,"Core/Legend/Legend.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Templating.js"],A["Core/Globals.js"],A["Core/Series/Point.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z,X){const{animObject:Y,setAnimation:O}=B,{format:H}=P,{marginNames:R}=G,{distribute:x}=Z,{addEvent:b,createElement:E,css:L,defined:c,discardElement:y,find:v,fireEvent:f,isNumber:C,merge:k,pick:w,relativeLength:o,stableSort:l,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=w(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=w(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,w(t,!0)&&i.redraw(),f(this,"afterUpdate")}colorizeItem(e,t){const{group:i,label:a,line:u,symbol:_}=e.legendItem||{};if(i&&i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:r}=this,S=r.color,$=t&&e.color||S,q=e.options&&e.options.marker;let rt={fill:$};a==null||a.css(k(t?this.itemStyle:r)),u==null||u.attr({stroke:$}),_&&(q&&_.isMarker&&(rt=e.pointAttribs(),t||(rt.stroke=rt.fill=S)),_.attr(rt))}f(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:a=0}=e.legendItem||{};var u=this.options,_=u.symbolPadding;const r=!u.rtl;u=e.checkbox,t&&t.element&&(_={translateX:r?i:this.legendWidth-i-2*_-4,translateY:a},t[c(t.translateY)?"animate":"attr"](_,void 0,()=>{f(this,"afterPositionItem",{item:e})})),u&&(u.x=i,u.y=a)}destroyItem(e){const t=e.checkbox,i=e.legendItem||{};for(const a of["group","label","line","symbol"])i[a]&&(i[a]=i[a].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 a;e&&(a=e.translateY,this.allItems.forEach(function(u){const _=u.checkbox;let r;_&&(r=a+i+_.y+(this.scrollOffset||0)+3,L(_,{left:e.translateX+u.checkboxOffset+_.x-20+"px",top:r+"px",display:this.proximate||r>a-6&&r<a+t-6?"":"none"}))},this))}renderTitle(){var e=this.options;const t=this.padding,i=e.title;let a=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(),a=e.height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:a})),this.titleHeight=a}setText(e){const t=this.options;e.legendItem.label.attr({text:t.labelFormat?H(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})}renderItem(e){const t=e.legendItem=e.legendItem||{};var i=this.chart,a=i.renderer;const u=this.options,_=this.symbolWidth,r=u.symbolPadding||0,S=this.itemStyle,$=this.itemHiddenStyle,q=u.layout==="horizontal"?w(u.itemDistance,20):0,rt=!u.rtl,j=!e.series,s=!j&&e.series.drawLegendSymbol?e.series:e;var T=s.options;const z=this.createCheckboxForItem&&T&&T.showCheckbox,I=u.useHTML,V=e.options.className;let n=t.label;T=_+r+q+(z?20:0),n||(t.group=a.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=a.text("",rt?_+r:-r,this.baseline||0,I),i.styledMode||n.css(k(e.visible?S:$)),n.attr({align:rt?"left":"right",zIndex:2}).add(t.group),this.baseline||(this.fontMetrics=a.fontMetrics(n),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,n.attr("y",this.baseline),this.symbolHeight=w(u.symbolHeight,this.fontMetrics.f),u.squareSymbol&&(this.symbolWidth=w(u.symbolWidth,Math.max(this.symbolHeight,16)),T=this.symbolWidth+r+q+(z?20:0),rt&&n.attr("x",this.symbolWidth+r))),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&&S.width||n.css({width:(u.itemWidth||this.widthOption||i.spacingBox.width)-T+"px"}),this.setText(e),i=n.getBBox(),a=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=u.itemWidth||t.labelWidth||i.width+T,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(t.labelHeight||(i.height>1.5*a?i.height:a))}layoutItem(e){var t=this.options;const i=this.padding,a=t.layout==="horizontal",u=e.itemHeight,_=this.itemMarginBottom,r=this.itemMarginTop,S=a?w(t.itemDistance,20):0,$=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>$?this.maxItemWidth:e.itemWidth;const q=e.legendItem||{};a&&this.itemX-i+t>$&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+_),this.lastLineHeight=0),this.lastItemY=r+this.itemY+_,this.lastLineHeight=Math.max(u,this.lastLineHeight),q.x=this.itemX,q.y=this.itemY,a?this.itemX+=t:(this.itemY+=r+u+_,this.lastLineHeight=u),this.offsetWidth=this.widthOption||Math.max((a?this.itemX-i-(e.checkbox?0:S):t)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){const i=t&&t.options;t&&w(i.showInLegend,c(i.linkedTo)?!1:void 0,!0)&&(e=e.concat((t.legendItem||{}).labels||(i.legendType==="point"?t.data:t)))}),f(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,a=this.options,u=this.getAlignment();u&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(_,r){_.test(u)&&!c(e[r])&&(i[R[r]]=Math.max(i[R[r]],i.legend[(r+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][r]*a[r%2?"x":"y"]+w(a.margin,12)+t[r]+(i.titleOffset[r]||0)))})}proximatePositions(){const e=this.chart,t=[],i=this.options.align==="left";this.allItems.forEach(function(u){var _,r=i;let S;u.yAxis&&(u.xAxis.options.reversed&&(r=!r),u.points&&(_=v(r?u.points:u.points.slice(0).reverse(),function($){return C($.plotY)})),r=this.itemMarginTop+u.legendItem.label.getBBox().height+this.itemMarginBottom,S=u.yAxis.top-e.plotTop,u.visible?(_=_?_.plotY:u.yAxis.height,_+=S-.3*r):_=S+u.yAxis.height,t.push({target:_,size:r,item:u}))},this);let a;for(const u of x(t,e.plotHeight))a=u.item.legendItem||{},C(u.pos)&&(a.y=e.plotTop-e.spacing[0]+u.pos)}render(){const e=this.chart,t=e.renderer,i=this.options,a=this.padding;var u=this.getAllItems();let _,r=this.group,S=this.box;this.itemX=a,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=o(i.width,e.spacingBox.width-a);var $=e.spacingBox.width-2*a-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&($/=2),this.maxLegendWidth=this.widthOption||$,r||(this.group=r=t.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=t.g().attr({zIndex:1}).add(r),this.scrollGroup=t.g().add(this.contentGroup)),this.renderTitle(),l(u,(q,rt)=>(q.options&&q.options.legendIndex||0)-(rt.options&&rt.options.legendIndex||0)),i.reversed&&u.reverse(),this.allItems=u,this.display=$=!!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)+a,_=this.lastItemY+this.lastLineHeight+this.titleHeight,_=this.handleOverflow(_),_+=a,S||(this.box=S=t.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),e.styledMode||S.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<u&&0<_&&S[S.placed?"animate":"attr"](S.crisp.call({},{x:0,y:0,width:u,height:_},S.strokeWidth())),r[$?"show":"hide"](),e.styledMode&&r.getStyle("display")==="none"&&(u=_=0),this.legendWidth=u,this.legendHeight=_,$&&this.align(),this.proximate||this.positionItems(),f(this,"afterRender")}align(e=this.chart.spacingBox){const t=this.chart,i=this.options;let a=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<t.titleOffset[0]?a+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<t.titleOffset[2]&&(a-=t.titleOffset[2]),a!==e.y&&(e=k(e,{y:a})),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,a=i.renderer,u=this.options;var _=u.y;const r=u.verticalAlign==="top",S=this.padding,$=u.maxHeight,q=u.navigation,rt=w(q.animation,!0),j=q.arrowSize||12,s=this.pages,T=this.allItems,z=function(F){typeof F=="number"?W.attr({height:F}):W&&(t.clipRect=W.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=F?"rect("+S+"px,9999px,"+(S+F)+"px,0)":"auto")},I=function(F){return t[F]=a.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,g;_=i.spacingBox.height+(r?-_:_)-S;let m=this.nav,W=this.clipRect;return u.layout!=="horizontal"||u.verticalAlign==="middle"||u.floating||(_/=2),$&&(_=Math.min(_,$)),s.length=0,e&&0<_&&e>_&&q.enabled!==!1?(this.clipHeight=V=Math.max(_-20-this.titleHeight-S,0),this.currentPage=w(this.currentPage,1),this.fullHeight=e,T.forEach((F,N)=>{g=F.legendItem||{},F=g.y||0;const et=Math.round(g.label.getBBox().height);let nt=s.length;(!nt||F-s[nt-1]>V&&(n||F)!==s[nt-1])&&(s.push(n||F),nt++),g.pageIx=nt-1,n&&((T[N-1].legendItem||{}).pageIx=nt-1),N===T.length-1&&F+et-s[nt-1]>V&&F>s[nt-1]&&(s.push(F),g.pageIx=nt),F!==n&&(n=F)}),W||(W=t.clipRect=a.clipRect(0,S-2,9999,0),t.contentGroup.clip(W)),z(V),m||(this.nav=m=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,j,j).add(m),I("upTracker").on("click",function(){t.scroll(-1,rt)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&q.style&&this.pager.css(q.style),this.pager.add(m),this.down=a.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,a=this.pages,u=a.length,_=this.clipHeight,r=this.options.navigation,S=this.pager,$=this.padding;let q=this.currentPage+e;q>u&&(q=u),0<q&&(typeof t<"u"&&O(t,i),this.nav.attr({translateX:$,translateY:_+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(rt){rt.attr({class:q===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),S.attr({text:q+"/"+u}),[this.down,this.downTracker].forEach(function(rt){rt.attr({x:18+this.pager.getBBox().width,class:q===u?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:q===1?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:q===1?"default":"pointer"}),this.down.attr({fill:q===u?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:q===u?"default":"pointer"})),this.scrollOffset=-a[q-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=q,this.positionCheckboxes(),e=Y(w(t,i.renderer.globalAnimation,!0)),p(()=>{f(this,"afterScroll",{currentPage:q})},e.duration))}setItemEvents(e,t,i){const a=this,u=e.legendItem||{},_=a.chart.renderer.boxWrapper,r=e instanceof K,S="highcharts-legend-"+(r?"point":"series")+"-active",$=a.chart.styledMode;i=i?[t,u.symbol]:[u.group];const q=rt=>{a.allItems.forEach(j=>{e!==j&&[j].concat(j.linkedSeries||[]).forEach(s=>{s.setState(rt,!r)})})};for(const rt of i)rt&&rt.on("mouseover",function(){e.visible&&q("inactive"),e.setState("hover"),e.visible&&_.addClass(S),$||t.css(a.options.itemHoverStyle)}).on("mouseout",function(){a.chart.styledMode||t.css(k(e.visible?a.itemStyle:a.itemHiddenStyle)),q(""),_.removeClass(S),e.setState()}).on("click",function(j){const s=function(){e.setVisible&&e.setVisible(),q(e.visible?"inactive":"")};_.removeClass(S),j={browserEvent:j},e.firePointEvent?e.firePointEvent("legendItemClick",j,s):f(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){f(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}),ot(A,"Core/Legend/LegendSymbol.js",[A["Core/Utilities.js"]],function(B){const{extend:P,merge:G,pick:K}=B;var Z;return function(X){X.lineMarker=function(Y,O){O=this.legendItem=this.legendItem||{};var H=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=H.marker,v=0;this.chart.styledMode||(c={"stroke-width":Math.min(H.lineWidth||0,24)},H.dashStyle?c.dashstyle=H.dashStyle:H.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&&(H=Math.min(K(y.radius,b),b),this.symbol.indexOf("url")===0&&(y=G(y,{width:x,height:x}),H=0),O.symbol=O=E.symbol(this.symbol,R/2-H,Y-H,2*H,2*H,P({context:"legend"},y)).addClass("highcharts-point").add(L),O.isMarker=!0)},X.rectangle=function(Y,O){O=O.legendItem||{};const H=Y.symbolHeight,R=Y.options.squareSymbol;O.symbol=this.chart.renderer.rect(R?(Y.symbolWidth-H)/2:0,Y.baseline-H+1,R?H:Y.symbolWidth,H,K(Y.options.symbolRadius,H/2)).addClass("highcharts-point").attr({zIndex:3}).add(O.group)}}(Z||(Z={})),Z}),ot(A,"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"}}),ot(A,"Core/Series/SeriesRegistry.js",[A["Core/Globals.js"],A["Core/Defaults.js"],A["Core/Series/Point.js"],A["Core/Utilities.js"]],function(B,P,G,K){const{defaultOptions:Z}=P,{extendClass:X,merge:Y}=K;var O;return function(H){function R(x,b){const E=Z.plotOptions||{},L=b.defaultOptions,c=b.prototype;c.type=x,c.pointClass||(c.pointClass=G),L&&(E[x]=L),H.seriesTypes[x]=b}H.seriesTypes=B.seriesTypes,H.registerSeriesType=R,H.seriesType=function(x,b,E,L,c){const y=Z.plotOptions||{};return b=b||"",y[x]=Y(y[b],E),R(x,X(H.seriesTypes[b]||function(){},L)),H.seriesTypes[x].prototype.type=x,c&&(H.seriesTypes[x].prototype.pointClass=X(G,c)),H.seriesTypes[x]}}(O||(O={})),O}),ot(A,"Core/Series/Series.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Defaults.js"],A["Core/Foundation.js"],A["Core/Globals.js"],A["Core/Legend/LegendSymbol.js"],A["Core/Series/Point.js"],A["Core/Series/SeriesDefaults.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z,X,Y,O,H,R){const{animObject:x,setAnimation:b}=B,{defaultOptions:E}=P,{registerEventOptions:L}=G,{hasTouch:c,svg:y,win:v}=K,{seriesTypes:f}=O,{arrayMax:C,arrayMin:k,clamp:w,correctFloat:o,defined:l,diffObjects:p,erase:h,error:d,extend:e,find:t,fireEvent:i,getClosestDistance:a,getNestedProperty:u,insertItem:_,isArray:r,isNumber:S,isString:$,merge:q,objectEach:rt,pick:j,removeEvent:s,splat:T,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,g){i(this,"init",{options:g});const m=this,W=n.series;this.eventsToUnbind=[],m.chart=n,m.options=m.setOptions(g),g=m.options,m.linkedSeries=[],m.bindAxes(),e(m,{name:g.name,state:"",visible:g.visible!==!1,selected:g.selected===!0}),L(this,g);const F=g.events;(F&&F.click||g.point&&g.point.events&&g.point.events.click||g.allowPointSelect)&&(n.runTrackerClick=!0),m.getColor(),m.getSymbol(),m.parallelArrays.forEach(function(et){m[et+"Data"]||(m[et+"Data"]=[])}),m.isCartesian&&(n.hasCartesianSeries=!0);let N;W.length&&(N=W[W.length-1]),m._i=j(N&&N._i,-1)+1,m.opacity=m.options.opacity,n.orderItems("series",_(this,W)),g.dataSorting&&g.dataSorting.enabled?m.setDataSortingOptions():m.points||m.data||m.setData(g.data,!1),i(this,"afterInit")}is(n){return f[n]&&this instanceof f[n]}bindAxes(){const n=this,g=n.options,m=n.chart;let W;i(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(F){m[F].forEach(function(N){W=N.options,(j(g[F],0)===N.index||typeof g[F]<"u"&&g[F]===W.id)&&(_(n,N.series),n[F]=N,N.isDirty=!0)}),n[F]||n.optionalAxis===F||d(18,!0,m)})}),i(this,"afterBindAxes")}updateParallelArrays(n,g,m){const W=n.series,F=S(g)?function(N){const et=N==="y"&&W.toYData?W.toYData(n):n[N];W[N+"Data"][g]=et}:function(N){Array.prototype[g].apply(W[N+"Data"],m)};W.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 g=this.options;const m=g.pointIntervalUnit,W=g.relativeXValue,F=this.chart.time;let N=this.xIncrement,et;return N=j(N,g.pointStart,0),this.pointInterval=et=j(this.pointInterval,g.pointInterval,1),W&&S(n)&&(et*=n),m&&(g=new F.Date(N),m==="day"?F.set("Date",g,F.get("Date",g)+et):m==="month"?F.set("Month",g,F.get("Month",g)+et):m==="year"&&F.set("FullYear",g,F.get("FullYear",g)+et),et=g.getTime()-N),W&&S(n)?N+et:(this.xIncrement=N+et,N)}setDataSortingOptions(){const n=this.options;e(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),l(n.pointRange)||(n.pointRange=1)}setOptions(n){var g,m;const W=this.chart;var F=W.options.plotOptions,N=W.userOptions||{};const et=q(n);n=W.styledMode;const nt={plotOptions:F,userOptions:et};i(this,"setOptions",nt);const at=nt.plotOptions[this.type];N=N.plotOptions||{};const ht=N.series||{},pt=E.plotOptions[this.type]||{},D=N[this.type]||{};return this.userOptions=nt.userOptions,F=q(at,F.series,D,et),this.tooltipOptions=q(E.tooltip,(g=E.plotOptions.series)===null||g===void 0?void 0:g.tooltip,pt==null?void 0:pt.tooltip,W.userOptions.tooltip,(m=N.series)===null||m===void 0?void 0:m.tooltip,D.tooltip,et.tooltip),this.stickyTracking=j(et.stickyTracking,D.stickyTracking,ht.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:F.stickyTracking),at.marker===null&&delete F.marker,this.zoneAxis=F.zoneAxis,m=this.zones=(F.zones||[]).slice(),!F.negativeColor&&!F.negativeFillColor||F.zones||(g={value:F[this.zoneAxis+"Threshold"]||F.threshold||0,className:"highcharts-negative"},n||(g.color=F.negativeColor,g.fillColor=F.negativeFillColor),m.push(g)),m.length&&l(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,g,m){const W=this.chart,F=`${n}Index`,N=`${n}Counter`,et=(m==null?void 0:m.length)||W.options.chart.colorCount;if(!g){var nt=j(n==="color"?this.options.colorIndex:void 0,this[F]);l(nt)||(W.series.length||(W[N]=0),nt=W[N]%et,W[N]+=1),m&&(g=m[nt])}typeof nt<"u"&&(this[F]=nt),this[n]=g}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,g){const m=n.id,W=n.x,F=this.points;var N=this.options.dataSorting,et;let nt,at;if(m)N=this.chart.get(m),N instanceof X&&(et=N);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(et=ht=>!ht.touched&&ht.index===n.index,N&&N.matchByName?et=ht=>!ht.touched&&ht.name===n.name:this.options.relativeXValue&&(et=ht=>!ht.touched&&ht.options.x===n.x),et=t(F,et),!et))return;return et&&(at=et&&et.index,typeof at<"u"&&(nt=!0)),typeof at>"u"&&S(W)&&(at=this.xData.indexOf(W,g)),at!==-1&&typeof at<"u"&&this.cropped&&(at=at>=this.cropStart?at-this.cropStart:at),!nt&&S(at)&&F[at]&&F[at].touched&&(at=void 0),at}updateData(n,g){const m=this.options,W=m.dataSorting,F=this.points,N=[],et=this.requireSorting,nt=n.length===F.length;let at,ht,pt,D=!0;if(this.xIncrement=null,n.forEach(function(M,Q){var U=l(M)&&this.pointClass.prototype.optionsToObject.call({series:this},M)||{};const tt=U.x;U.id||S(tt)?(U=this.findPointIndex(U,pt),U===-1||typeof U>"u"?N.push(M):F[U]&&M!==m.data[U]?(F[U].update(M,!1,null,!1),F[U].touched=!0,et&&(pt=U+1)):F[U]&&(F[U].touched=!0),(!nt||Q!==U||W&&W.enabled||this.hasDerivedData)&&(at=!0)):N.push(M)},this),at)for(n=F.length;n--;)(ht=F[n])&&!ht.touched&&ht.remove&&ht.remove(!1,g);else!nt||W&&W.enabled?D=!1:(n.forEach(function(M,Q){M===F[Q].y||F[Q].destroyed||F[Q].update(M,!1,null,!1)}),N.length=0);return F.forEach(function(M){M&&(M.touched=!1)}),D?(N.forEach(function(M){this.addPoint(M,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=C(this.xData),this.autoIncrement()),!0):!1}setData(n,g=!0,m,W){var F;const N=this,et=N.points,nt=et&&et.length||0,at=N.options,ht=N.chart,pt=at.dataSorting,D=N.xAxis,M=at.turboThreshold,Q=this.xData,U=this.yData;var tt=N.pointArrayMap;tt=tt&&tt.length;const dt=at.keys;let ct,xt=0,vt=1,gt=null;if(!ht.options.chart.allowMutatingData){at.data&&delete N.options.data,N.userOptions.data&&delete N.userOptions.data;var mt=q(!0,n)}if(n=mt||n||[],mt=n.length,pt&&pt.enabled&&(n=this.sortData(n)),ht.options.chart.allowMutatingData&&W!==!1&&mt&&nt&&!N.cropped&&!N.hasGroupedData&&N.visible&&!N.boosted&&(ct=this.updateData(n,m)),!ct){if(N.xIncrement=null,N.colorCounter=0,this.parallelArrays.forEach(function(Ct){N[Ct+"Data"].length=0}),M&&mt>M)if(gt=N.getFirstValidPoint(n),S(gt))for(m=0;m<mt;m++)Q[m]=this.autoIncrement(),U[m]=n[m];else if(r(gt))if(tt)if(gt.length===tt)for(m=0;m<mt;m++)Q[m]=this.autoIncrement(),U[m]=n[m];else for(m=0;m<mt;m++)W=n[m],Q[m]=W[0],U[m]=W.slice(1,tt+1);else if(dt&&(xt=dt.indexOf("x"),vt=dt.indexOf("y"),xt=0<=xt?xt:0,vt=0<=vt?vt:1),gt.length===1&&(vt=0),xt===vt)for(m=0;m<mt;m++)Q[m]=this.autoIncrement(),U[m]=n[m][vt];else for(m=0;m<mt;m++)W=n[m],Q[m]=W[xt],U[m]=W[vt];else d(12,!1,ht);else for(m=0;m<mt;m++)W={series:N},N.pointClass.prototype.applyOptions.apply(W,[n[m]]),N.updateParallelArrays(W,m);for(U&&$(U[0])&&d(14,!0,ht),N.data=[],N.options.data=N.userOptions.data=n,m=nt;m--;)(F=et[m])===null||F===void 0||F.destroy();D&&(D.minRange=D.userMinRange),N.isDirty=ht.isDirtyBox=!0,N.isDirtyData=!!et,m=!1}at.legendType==="point"&&(this.processData(),this.generatePoints()),g&&ht.redraw(m)}sortData(n){const g=this,m=g.options.dataSorting.sortKey||"y",W=function(F,N){return l(N)&&F.pointClass.prototype.optionsToObject.call({series:F},N)||{}};return n.forEach(function(F,N){n[N]=W(g,F),n[N].index=N},this),n.concat().sort((F,N)=>(F=u(m,F),N=u(m,N),N<F?-1:N>F?1:0)).forEach(function(F,N){F.x=N},this),g.linkedSeries&&g.linkedSeries.forEach(function(F){const N=F.options,et=N.data;N.dataSorting&&N.dataSorting.enabled||!et||(et.forEach(function(nt,at){et[at]=W(F,nt),n[at]&&(et[at].x=n[at].x,et[at].index=at)}),F.setData(et,!1))}),n}getProcessedData(n){const g=this;var m=g.xAxis,W=g.options;const F=W.cropThreshold,N=n||g.getExtremesFromAll||W.getExtremesFromAll,et=m==null?void 0:m.logarithmic,nt=g.isCartesian;let at=0,ht;n=g.xData,W=g.yData;let pt=!1;const D=n.length;if(m){var M=m.getExtremes();ht=M.min,M=M.max,pt=!(!m.categories||m.names.length)}if(nt&&g.sorted&&!N&&(!F||D>F||g.forceCrop)){if(n[D-1]<ht||n[0]>M)n=[],W=[];else if(g.yData&&(n[0]<ht||n[D-1]>M)){var Q=this.cropData(g.xData,g.yData,ht,M);n=Q.xData,W=Q.yData,at=Q.start,Q=!0}}return m=a([et?n.map(et.log2lin):n],()=>g.requireSorting&&!pt&&d(15,!1,g.chart)),{xData:n,yData:W,cropped:Q,cropStart:at,closestPointRange:m}}processData(n){const g=this.xAxis;if(this.isCartesian&&!this.isDirty&&!g.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,g,m,W,F){const N=n.length;let et,nt=0,at=N;for(F=j(F,this.cropShoulder),et=0;et<N;et++)if(n[et]>=m){nt=Math.max(0,et-F);break}for(m=et;m<N;m++)if(n[m]>W){at=m+F;break}return{xData:n.slice(nt,at),yData:g.slice(nt,at),start:nt,end:at}}generatePoints(){var n=this.options;const g=this.processedData||n.data,m=this.processedXData,W=this.processedYData,F=this.pointClass,N=m.length,et=this.cropStart||0,nt=this.hasGroupedData,at=n.keys,ht=[];n=n.dataGrouping&&n.dataGrouping.groupAll?et:0;let pt,D,M,Q=this.data;if(!Q&&!nt){var U=[];U.length=g.length,Q=this.data=U}for(at&&nt&&(this.options.keys=!1),M=0;M<N;M++)U=et+M,nt?(D=new F().init(this,[m[M]].concat(T(W[M]))),D.dataGroup=this.groupMap[n+M],D.dataGroup.options&&(D.options=D.dataGroup.options,e(D,D.dataGroup.options),delete D.dataLabels)):(D=Q[U])||typeof g[U]>"u"||(Q[U]=D=new F().init(this,g[U],m[M])),D&&(D.index=nt?n+M:U,ht[M]=D);if(this.options.keys=at,Q&&(N!==(pt=Q.length)||nt))for(M=0;M<pt;M++)M!==et||nt||(M+=N),Q[M]&&(Q[M].destroyElements(),Q[M].plotX=void 0);this.data=Q,this.points=ht,i(this,"afterGeneratePoints")}getXExtremes(n){return{min:k(n),max:C(n)}}getExtremes(n,g){const m=this.xAxis;var W=this.yAxis;const F=this.processedXData||this.xData,N=[],et=this.requireSorting?this.cropShoulder:0;W=W?W.positiveValuesOnly:!1;let nt,at=0,ht=0,pt=0;n=n||this.stackedYData||this.processedYData||[];const D=n.length;if(m){var M=m.getExtremes();at=M.min,ht=M.max}for(nt=0;nt<D;nt++){var Q=F[nt];M=n[nt];var U=(S(M)||r(M))&&(M.length||0<M||!W);if(Q=g||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!m||(F[nt+et]||Q)>=at&&(F[nt-et]||Q)<=ht,U&&Q)if(U=M.length)for(;U--;)S(M[U])&&(N[pt++]=M[U]);else N[pt++]=M}return n={activeYData:N,dataMin:k(N),dataMax:C(N)},i(this,"afterGetExtremes",{dataExtremes:n}),n}applyExtremes(){const n=this.getExtremes();return this.dataMin=n.dataMin,this.dataMax=n.dataMax,n}getFirstValidPoint(n){const g=n.length;let m=0,W=null;for(;W===null&&m<g;)W=n[m],m++;return W}translate(){var n;this.processedXData||this.processData(),this.generatePoints();var g=this.options;const m=g.stacking,W=this.xAxis,F=W.categories,N=this.enabledDataSorting,et=this.yAxis,nt=this.points,at=nt.length,ht=this.pointPlacementToXValue(),pt=!!ht,D=g.threshold;g=g.startFromThreshold?D:0;let M,Q,U,tt,dt=Number.MAX_VALUE;for(M=0;M<at;M++){const ct=nt[M],xt=ct.x;let vt,gt,mt=ct.y,Ct=ct.low;const bt=m&&((n=et.stacking)===null||n===void 0?void 0:n.stacks[(this.negStacks&&mt<(g?0:D)?"-":"")+this.stackKey]);Q=W.translate(xt,!1,!1,!1,!0,ht),ct.plotX=S(Q)?o(w(Q,-1e5,1e5)):void 0,m&&this.visible&&bt&&bt[xt]&&(tt=this.getStackIndicator(tt,xt,this.index),!ct.isNull&&tt.key&&(vt=bt[xt],gt=vt.points[tt.key]),vt&&r(gt)&&(Ct=gt[0],mt=gt[1],Ct===g&&tt.key===bt[xt].base&&(Ct=j(S(D)?D:et.min)),et.positiveValuesOnly&&l(Ct)&&0>=Ct&&(Ct=void 0),ct.total=ct.stackTotal=j(vt.total),ct.percentage=l(ct.y)&&vt.total?ct.y/vt.total*100:void 0,ct.stackY=mt,this.irregularWidths||vt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),ct.yBottom=l(Ct)?w(et.translate(Ct,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(mt=this.dataModify.modifyValue(mt,M));let wt;S(mt)&&ct.plotX!==void 0&&(wt=et.translate(mt,!1,!0,!1,!0),wt=S(wt)?w(wt,-1e5,1e5):void 0),ct.plotY=wt,ct.isInside=this.isPointInside(ct),ct.clientX=pt?o(W.translate(xt,!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&&N&&(ct.isNew=!0)}this.closestPointRangePx=dt,i(this,"afterTranslate")}getValidPoints(n,g,m){const W=this.chart;return(n||this.points||[]).filter(function(F){const{plotX:N,plotY:et}=F;return!m&&(F.isNull||!S(et))||g&&!W.isInsidePlot(N,et,{inverted:W.inverted})?!1:F.visible!==!1})}getClipBox(){const{chart:n,xAxis:g,yAxis:m}=this,W=q(n.clipBox);return g&&g.len!==n.plotSizeX&&(W.width=g.len),m&&m.len!==n.plotSizeY&&(W.height=m.len),W}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}setClip(){const{chart:n,group:g,markerGroup:m}=this,W=n.sharedClips,F=n.renderer,N=this.getClipBox(),et=this.getSharedClipKey();let nt=W[et];nt?nt.animate(N):W[et]=nt=F.clipRect(N),g&&g.clip(this.options.clip===!1?void 0:nt),m&&m.clip()}animate(n){const{chart:g,group:m,markerGroup:W}=this,F=g.inverted;var N=x(this.options.animation),et=[this.getSharedClipKey(),N.duration,N.easing,N.defer].join();let nt=g.sharedClips[et],at=g.sharedClips[et+"m"];if(n&&m)N=this.getClipBox(),nt?nt.attr("height",N.height):(N.width=0,F&&(N.x=g.plotHeight),nt=g.renderer.clipRect(N),g.sharedClips[et]=nt,at=g.renderer.clipRect({x:-99,y:-99,width:F?g.plotWidth+199:99,height:F?99:g.plotHeight+199}),g.sharedClips[et+"m"]=at),m.clip(nt),W&&W.clip(at);else if(nt&&!nt.hasClass("highcharts-animating")){et=this.getClipBox();const ht=N.step;W&&W.element.childNodes.length&&(N.step=function(pt,D){ht&&ht.apply(D,arguments),D.prop==="width"&&at&&at.element&&at.attr(F?"height":"width",pt+99)}),nt.addClass("highcharts-animating").animate(et,N)}}afterAnimate(){this.setClip(),rt(this.chart.sharedClips,(n,g,m)=>{n&&!this.chart.container.querySelector(`[clip-path="url(#${n.id})"]`)&&(n.destroy(),delete m[g])}),this.finishedAnimating=!0,i(this,"afterAnimate")}drawPoints(n=this.points){const g=this.chart,m=g.styledMode,{colorAxis:W,options:F}=this,N=F.marker,et=this[this.specialGroup||"markerGroup"],nt=this.xAxis,at=j(N.enabled,!nt||nt.isRadial?!0:null,this.closestPointRangePx>=N.enabledThreshold*N.radius);let ht,pt,D,M,Q,U;if(N.enabled!==!1||this._hasPointMarkers)for(ht=0;ht<n.length;ht++){pt=n[ht],M=(D=pt.graphic)?"animate":"attr";var tt=pt.marker||{};if(Q=!!pt.marker,(at&&typeof tt.enabled>"u"||tt.enabled)&&!pt.isNull&&pt.visible!==!1){const dt=j(tt.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=g.renderer.symbol(dt,U.x,U.y,U.width,U.height,Q?tt:N).add(et),this.enabledDataSorting&&g.hasRendered&&(D.attr({x:pt.startXPos}),M="animate")),D&&M==="animate"&&D[ct?"show":"hide"](ct).animate(U),D&&(tt=this.pointAttribs(pt,m||!pt.selected?void 0:"select"),m?W&&D.css({fill:tt.fill}):D[M](tt)),D&&D.addClass(pt.getClassName(),!0)}else D&&(pt.graphic=D.destroy())}}markerAttribs(n,g){const m=this.options;var W=m.marker;const F=n.marker||{},N=F.symbol||W.symbol,et={};let nt=j(F.radius,W&&W.radius);return g&&(W=W.states[g],g=F.states&&F.states[g],nt=j(g&&g.radius,W&&W.radius,nt&&nt+(W&&W.radiusPlus||0))),n.hasImage=N&&N.indexOf("url")===0,n.hasImage&&(nt=0),n=n.pos(),S(nt)&&n&&(et.x=n[0]-nt,et.y=n[1]-nt,m.crisp&&(et.x=Math.floor(et.x))),nt&&(et.width=et.height=2*nt),et}pointAttribs(n,g){var m=this.options.marker,W=n&&n.options;const F=W&&W.marker||{};var N=W&&W.color,et=n&&n.color;const nt=n&&n.zone&&n.zone.color;let at=this.color;return n=j(F.lineWidth,m.lineWidth),W=1,at=N||nt||et||at,N=F.fillColor||m.fillColor||at,et=F.lineColor||m.lineColor||at,g=g||"normal",m=m.states[g]||{},g=F.states&&F.states[g]||{},n=j(g.lineWidth,m.lineWidth,n+j(g.lineWidthPlus,m.lineWidthPlus,0)),N=g.fillColor||m.fillColor||N,et=g.lineColor||m.lineColor||et,W=j(g.opacity,m.opacity,W),{stroke:et,"stroke-width":n,fill:N,opacity:W}}destroy(n){const g=this,m=g.chart,W=/AppleWebKit\/533/.test(v.navigator.userAgent),F=g.data||[];let N,et,nt,at;for(i(g,"destroy",{keepEventsForUpdate:n}),this.removeEvents(n),(g.axisTypes||[]).forEach(function(ht){(at=g[ht])&&at.series&&(h(at.series,g),at.isDirty=at.forceRedraw=!0)}),g.legendItem&&g.chart.legend.destroyItem(g),et=F.length;et--;)(nt=F[et])&&nt.destroy&&nt.destroy();g.clips&&g.clips.forEach(ht=>ht.destroy()),R.clearTimeout(g.animationTimeout),rt(g,function(ht,pt){ht instanceof H&&!ht.survive&&(N=W&&pt==="group"?"hide":"destroy",ht[N]())}),m.hoverSeries===g&&(m.hoverSeries=void 0),h(m.series,g),m.orderItems("series"),rt(g,function(ht,pt){n&&pt==="hcEvents"||delete g[pt]})}applyZones(){const n=this,g=this.chart,m=g.renderer,W=this.zones,F=this.clips||[],N=this.graph,et=this.area,nt=Math.max(g.plotWidth,g.plotHeight),at=this[(this.zoneAxis||"y")+"Axis"],ht=g.inverted;let pt,D,M,Q,U,tt,dt,ct,xt,vt,gt,mt=!1;W.length&&(N||et)&&at&&typeof at.min<"u"?(U=at.reversed,tt=at.horiz,N&&!this.showLine&&N.hide(),et&&et.hide(),Q=at.getExtremes(),W.forEach(function(Ct,bt){pt=U?tt?g.plotWidth:0:tt?0:at.toPixels(Q.min)||0,pt=w(j(D,pt),0,nt),D=w(Math.round(at.toPixels(j(Ct.value,Q.max),!0)||0),0,nt),mt&&(pt=D=at.toPixels(Q.max)),dt=Math.abs(pt-D),ct=Math.min(pt,D),xt=Math.max(pt,D),at.isXAxis?(M={x:ht?xt:ct,y:0,width:dt,height:nt},tt||(M.x=g.plotHeight-M.x)):(M={x:0,y:ht?xt:ct,width:nt,height:dt},tt&&(M.y=g.plotWidth-M.y)),F[bt]?F[bt].animate(M):F[bt]=m.clipRect(M),vt=n["zone-area-"+bt],gt=n["zone-graph-"+bt],N&>&>.clip(F[bt]),et&&vt&&vt.clip(F[bt]),mt=Ct.value>Q.max,n.resetZones&&D===0&&(D=void 0)}),this.clips=F):n.visible&&(N&&N.show(),et&&et.show())}plotGroup(n,g,m,W,F){let N=this[n];const et=!N;return m={visibility:m,zIndex:W||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(m.opacity=this.opacity),et&&(this[n]=N=this.chart.renderer.g().add(F)),N.addClass("highcharts-"+g+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(N.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),N.attr(m)[et?"attr":"animate"](this.getPlotBox(g)),N}getPlotBox(n){let g=this.xAxis,m=this.yAxis;const W=this.chart;return n=W.inverted&&!W.polar&&g&&this.invertible!==!1&&n==="series",W.inverted&&(g=m,m=this.xAxis),{translateX:g?g.left:W.plotLeft,translateY:m?m.top:W.plotTop,rotation:n?90:0,rotationOriginX:n?(g.len-m.len)/2:0,rotationOriginY:n?(g.len+m.len)/2:0,scaleX:n?-1:1,scaleY:1}}removeEvents(n){n||s(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(g){g()}),this.eventsToUnbind.length=0)}render(){const n=this;var g=n.chart;const m=n.options,W=x(m.animation),F=n.visible?"inherit":"hidden",N=m.zIndex,et=n.hasRendered;g=g.seriesGroup;let nt=n.finishedAnimating?0:W.duration;i(this,"render"),n.plotGroup("group","series",F,N,g),n.markerGroup=n.plotGroup("markerGroup","markers",F,N,g),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(),et||(nt&&W.defer&&(nt+=W.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,g){const m=this.xAxis,W=this.yAxis,F=this.chart.inverted;return this.searchKDTree({clientX:F?m.len-n.chartY+m.pos:n.chartX-m.pos,plotY:F?W.len-n.chartX+W.pos:n.chartY-W.pos},g,n)}buildKDTree(n){function g(F,N,et){var nt=F&&F.length;let at;if(nt)return at=m.kdAxisArray[N%et],F.sort(function(ht,pt){return ht[at]-pt[at]}),nt=Math.floor(nt/2),{point:F[nt],left:g(F.slice(0,nt),N+1,et),right:g(F.slice(nt+1),N+1,et)}}this.buildingKdTree=!0;const m=this,W=-1<m.options.findNearestPointBy.indexOf("y")?2:1;delete m.kdTree,z(function(){m.kdTree=g(m.getValidPoints(null,!m.directTouch),W,W),m.buildingKdTree=!1},m.options.kdNow||n&&n.type==="touchstart"?0:1)}searchKDTree(n,g,m){function W(at,ht,pt,D){const M=ht.point;var Q=F.kdAxisArray[pt%D];let U=M;var tt=l(at[N])&&l(M[N])?Math.pow(at[N]-M[N],2):null,dt=l(at[et])&&l(M[et])?Math.pow(at[et]-M[et],2):null;return dt=(tt||0)+(dt||0),M.dist=l(dt)?Math.sqrt(dt):Number.MAX_VALUE,M.distX=l(tt)?Math.sqrt(tt):Number.MAX_VALUE,Q=at[Q]-M[Q],dt=0>Q?"left":"right",tt=0>Q?"right":"left",ht[dt]&&(dt=W(at,ht[dt],pt+1,D),U=dt[nt]<U[nt]?dt:M),ht[tt]&&Math.sqrt(Q*Q)<U[nt]&&(at=W(at,ht[tt],pt+1,D),U=at[nt]<U[nt]?at:U),U}const F=this,N=this.kdAxisArray[0],et=this.kdAxisArray[1],nt=g?"distX":"dist";if(g=-1<F.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(m),this.kdTree)return W(n,this.kdTree,g,g)}pointPlacementToXValue(){const{options:{pointPlacement:n,pointRange:g},xAxis:m}=this;let W=n;return W==="between"&&(W=m.reversed?-.5:.5),S(W)?W*(g||m.pointRange):0}isPointInside(n){const{chart:g,xAxis:m,yAxis:W}=this;return typeof n.plotY<"u"&&typeof n.plotX<"u"&&0<=n.plotY&&n.plotY<=(W?W.len:g.plotHeight)&&0<=n.plotX&&n.plotX<=(m?m.len:g.plotWidth)}drawTracker(){const n=this,g=n.options,m=g.trackByArea,W=[].concat(m?n.areaPath:n.graphPath),F=n.chart,N=F.pointer,et=F.renderer,nt=F.options.tooltip.snap,at=n.tracker,ht=function(D){g.enableMouseTracking&&F.hoverSeries!==n&&n.onMouseOver()},pt="rgba(192,192,192,"+(y?1e-4:.002)+")";at?at.attr({d:W}):n.graph&&(n.tracker=et.path(W).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(M){N.onTrackerMouseOut(M)}),g.cursor&&!F.styledMode&&D.css({cursor:g.cursor}),c)&&D.on("touchstart",ht)})),i(this,"afterDrawTracker")}addPoint(n,g,m,W,F){const N=this.options,et=this.data,nt=this.chart;var at=this.xAxis;at=at&&at.hasNames&&at.names;const ht=N.data,pt=this.xData;let D,M;g=j(g,!0);const Q={series:this};this.pointClass.prototype.applyOptions.apply(Q,[n]);const U=Q.x;if(M=pt.length,this.requireSorting&&U<pt[M-1])for(D=!0;M&&pt[M-1]>U;)M--;this.updateParallelArrays(Q,"splice",[M,0,0]),this.updateParallelArrays(Q,M),at&&Q.name&&(at[U]=Q.name),ht.splice(M,0,n),(D||this.processedData)&&(this.data.splice(M,0,null),this.processData()),N.legendType==="point"&&this.generatePoints(),m&&(et[0]&&et[0].remove?et[0].remove(!1):(et.shift(),this.updateParallelArrays(Q,"shift"),ht.shift())),F!==!1&&i(this,"addPoint",{point:Q}),this.isDirtyData=this.isDirty=!0,g&&nt.redraw(W)}removePoint(n,g,m){const W=this,F=W.data,N=F[n],et=W.points,nt=W.chart,at=function(){et&&et.length===F.length&&et.splice(n,1),F.splice(n,1),W.options.data.splice(n,1),W.updateParallelArrays(N||{series:W},"splice",[n,1]),N&&N.destroy(),W.isDirty=!0,W.isDirtyData=!0,g&&nt.redraw()};b(m,nt),g=j(g,!0),N?N.firePointEvent("remove",null,at):at()}remove(n,g,m,W){function F(){N.destroy(W),et.isDirtyLegend=et.isDirtyBox=!0,et.linkSeries(W),j(n,!0)&&et.redraw(g)}const N=this,et=N.chart;m!==!1?i(N,"remove",null,F):F()}update(n,g){n=p(n,this.userOptions),i(this,"update",{options:n});const m=this,W=m.chart;var F=m.userOptions;const N=m.initialType||m.type;var et=W.options.plotOptions;const nt=f[N].prototype;var at=m.finishedAnimating&&{animation:!1};const ht={};let pt,D=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],M=n.type||F.type||W.options.chart.type;const Q=!(this.hasDerivedData||M&&M!==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(M=M||N,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=q(F,at,{index:typeof F.index>"u"?m.index:F.index,pointStart:j(et&&et.series&&et.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]}),et=!1,f[M]){if(et=M!==m.type,m.remove(!1,!1,!1,!0),et)if(Object.setPrototypeOf)Object.setPrototypeOf(m,f[M].prototype);else{at=Object.hasOwnProperty.call(m,"hcEvents")&&m.hcEvents;for(pt in nt)m[pt]=void 0;e(m,f[M].prototype),at?m.hcEvents=at:delete m.hcEvents}}else d(17,!0,W,{missingModuleFor:M});if(D.forEach(function(U){m[U]=D[U]}),m.init(W,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:tt}=n;F=F.marker||{},!U||U.enabled!==!1&&F.symbol===U.symbol&&F.height===U.height&&F.width===U.width||(ht.graphic=1),tt&&tt.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&&W.legend.destroyItem(U))}m.initialType=N,W.linkSeries(),et&&m.linkedSeries.length&&(m.isDirtyData=!0),i(this,"afterUpdate"),j(g,!0)&&W.redraw(Q?void 0:!1)}setName(n){this.name=this.options.name=this.userOptions.name=n,this.chart.isDirtyLegend=!0}hasOptionChanged(n){const g=this.options[n],m=this.chart.options.plotOptions,W=this.userOptions[n];return W?g!==W:g!==j(m&&m[this.type]&&m[this.type][n],m&&m.series&&m.series[n],g)}onMouseOver(){const n=this.chart,g=n.hoverSeries;n.pointer.setHoverChartIndex(),g&&g!==this&&g.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),n.hoverSeries=this}onMouseOut(){const n=this.options,g=this.chart,m=g.tooltip,W=g.hoverPoint;g.hoverSeries=null,W&&W.onMouseOut(),this&&n.events.mouseOut&&i(this,"mouseOut"),!m||this.stickyTracking||m.shared&&!this.noSharedTooltip||m.hide(),g.series.forEach(function(F){F.setState("",!0)})}setState(n,g){const m=this;var W=m.options;const F=m.graph,N=W.inactiveOtherPoints,et=W.states,nt=j(et[n||"normal"]&&et[n||"normal"].animation,m.chart.options.chart.animation);let at=W.lineWidth,ht=0,pt=W.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(et[n]&&et[n].enabled===!1)return;if(n&&(at=et[n].lineWidth||at+(et[n].lineWidthPlus||0),pt=j(et[n].opacity,pt)),F&&!F.dashstyle&&S(at))for(W={"stroke-width":at},F.animate(W,nt);m["zone-graph-"+ht];)m["zone-graph-"+ht].animate(W,nt),ht+=1;N||[m.group,m.markerGroup,m.dataLabelsGroup,m.labelBySeries].forEach(function(D){D&&D.animate({opacity:pt},nt)})}g&&N&&m.points&&m.setAllPointsToState(n||void 0)}setAllPointsToState(n){this.points.forEach(function(g){g.setState&&g.setState(n)})}setVisible(n,g){const m=this,W=m.chart,F=W.options.chart.ignoreHiddenSeries,N=m.visible,et=(m.visible=n=m.options.visible=m.userOptions.visible=typeof n>"u"?!N:n)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(nt){m[nt]&&m[nt][et]()}),(W.hoverSeries===m||(W.hoverPoint&&W.hoverPoint.series)===m)&&m.onMouseOut(),m.legendItem&&W.legend.colorizeItem(m,n),m.isDirty=!0,m.options.stacking&&W.series.forEach(function(nt){nt.options.stacking&&nt.visible&&(nt.isDirty=!0)}),m.linkedSeries.forEach(function(nt){nt.setVisible(n,!1)}),F&&(W.isDirtyBox=!0),i(m,et),g!==!1&&W.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,g,m={}){return m.series=this,m.visiblePlotOnly=!0,this.chart.isInsidePlot(n,g,m)}drawLegendSymbol(n,g){var m;(m=Z[this.options.legendSymbol||"rectangle"])===null||m===void 0||m.call(this,n,g)}}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}),ot(A,"Core/Chart/Chart.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/Axis.js"],A["Core/Defaults.js"],A["Core/Templating.js"],A["Core/Foundation.js"],A["Core/Globals.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Time.js"],A["Core/Utilities.js"],A["Core/Renderer/HTML/AST.js"]],function(B,P,G,K,Z,X,Y,O,H,R,x,b,E){const{animate:L,animObject:c,setAnimation:y}=B,{defaultOptions:v,defaultTime:f}=G,{numberFormat:C}=K,{registerEventOptions:k}=Z,{charts:w,doc:o,marginNames:l,svg:p,win:h}=X,{seriesTypes:d}=H,{addEvent:e,attr:t,createElement:i,css:a,defined:u,diffObjects:_,discardElement:r,erase:S,error:$,extend:q,find:rt,fireEvent:j,getStyle:s,isArray:T,isNumber:z,isObject:I,isString:V,merge:n,objectEach:g,pick:m,pInt:W,relativeLength:F,removeEvent:N,splat:et,syncTimeout:nt,uniqueKey:at}=b;class ht{static chart(D,M,Q){return new ht(D,M,Q)}constructor(D,M,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,M,Q)}getArgs(D,M,Q){V(D)||D.nodeName?(this.renderTo=D,this.init(M,Q)):this.init(D,M)}setZoomOptions(){const D=this.options.chart,M=D.zooming;this.zooming=Object.assign(Object.assign({},M),{type:m(D.zoomType,M.type),key:m(D.zoomKey,M.key),pinchType:m(D.pinchType,M.pinchType),singleTouch:m(D.zoomBySingleTouch,M.singleTouch,!1),resetButton:n(M.resetButton,D.resetZoomButton)})}init(D,M){j(this,"init",{args:arguments},function(){const Q=n(v,D),U=Q.chart;this.userOptions=q({},D),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=M,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||C,this.styledMode=U.styledMode,this.hasCartesianSeries=U.showAxes,this.index=w.length,w.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 M=this.options.chart;M=D.type||M.type;const Q=d[M];return Q||$(17,!0,this,{missingModuleFor:M}),M=new Q,typeof M.init=="function"&&M.init(this,D),M}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,M){return D.linkedSeries.length||M.linkedSeries.length?M.linkedSeries.length-D.linkedSeries.length:0})}orderItems(D,M=0){const Q=this[D],U=this.options[D]=et(this.options[D]).slice();if(D=this.userOptions[D]=this.userOptions[D]?et(this.userOptions[D]).slice():[],this.hasRendered&&(U.splice(M),D.splice(M)),Q)for(let tt=M,dt=Q.length;tt<dt;++tt)(M=Q[tt])&&(M.index=tt,M instanceof O&&(M.name=M.getName()),M.options.isInternal||(U[tt]=M.options,D[tt]=M.userOptions))}isInsidePlot(D,M,Q={}){const{inverted:U,plotBox:tt,plotLeft:dt,plotTop:ct,scrollablePlotBox:xt}=this;var vt=0;let gt=0;Q.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:vt,scrollTop:gt}=this.scrollingContainer);const mt=Q.series,Ct=Q.visiblePlotOnly&&xt||tt;var bt=Q.inverted?M:D;if(M=Q.inverted?D:M,D={x:bt,y:M,isInsidePlot:!0,options:Q},!Q.ignoreX){const wt=mt&&(U&&!this.polar?mt.yAxis:mt.xAxis)||{pos:dt,len:1/0};bt=Q.paneCoordinates?wt.pos+bt:dt+bt,bt>=Math.max(vt+dt,wt.pos)&&bt<=Math.min(vt+dt+Ct.width,wt.pos+wt.len)||(D.isInsidePlot=!1)}return!Q.ignoreY&&D.isInsidePlot&&(vt=!U&&Q.axis&&!Q.axis.isXAxis&&Q.axis||mt&&(U?mt.xAxis:mt.yAxis)||{pos:ct,len:1/0},Q=Q.paneCoordinates?vt.pos+M:ct+M,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 M=this.hasCartesianSeries?this.axes:this.colorAxis||[],Q=this.series,U=this.pointer,tt=this.legend,dt=this.userOptions.legend,ct=this.renderer,xt=ct.isHidden(),vt=[];let gt,mt,Ct=this.isDirtyBox,bt=this.isDirtyLegend,wt;for(ct.rootFontSize=ct.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),y(this.hasRendered?D:!1,this),xt&&this.temporaryDisplay(),this.layOutTitles(!1),D=Q.length;D--;)if(wt=Q[D],(wt.options.stacking||wt.options.centerInCategory)&&(mt=!0,wt.isDirty)){gt=!0;break}if(gt)for(D=Q.length;D--;)wt=Q[D],wt.options.stacking&&(wt.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&&tt&&tt.options.enabled&&(tt.render(),this.isDirtyLegend=!1),mt&&this.getStacks(),M.forEach(function(Mt){Mt.updateNames(),Mt.setScale()}),this.getMargins(),M.forEach(function(Mt){Mt.isDirty&&(Ct=!0)}),M.forEach(function(Mt){const Et=Mt.min+","+Mt.max;Mt.extKey!==Et&&(Mt.extKey=Et,vt.push(function(){j(Mt,"afterSetExtremes",q(Mt.eventArgs,Mt.getExtremes())),delete Mt.eventArgs})),(Ct||mt)&&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"),xt&&this.temporaryDisplay(!0),vt.forEach(function(Mt){Mt.call()})}get(D){function M(tt){return tt.id===D||tt.options&&tt.options.id===D}const Q=this.series;let U=rt(this.axes,M)||rt(this.series,M);for(let tt=0;!U&&tt<Q.length;tt++)U=rt(Q[tt].points||[],M);return U}getAxes(){const D=this.options;j(this,"getAxes");for(const M of["xAxis","yAxis"]){const Q=D[M]=et(D[M]||{});for(const U of Q)new P(this,U,M)}j(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((D,M)=>(M.getPointsCollection().forEach(Q=>{m(Q.selectedStaging,Q.selected)&&D.push(Q)}),D),[])}getSelectedSeries(){return this.series.filter(function(D){return D.selected})}setTitle(D,M,Q){this.applyDescription("title",D),this.applyDescription("subtitle",M),this.applyDescription("caption",void 0),this.layOutTitles(Q)}applyDescription(D,M){const Q=this,U=this.options[D]=n(this.options[D],M);let tt=this[D];tt&&M&&(this[D]=tt=tt.destroy()),U&&!tt&&(tt=this.renderer.text(U.text,0,0,U.useHTML).attr({align:U.align,class:"highcharts-"+D,zIndex:U.zIndex||4}).add(),tt.update=function(dt,ct){Q.applyDescription(D,dt),Q.layOutTitles(ct)},this.styledMode||tt.css(q(D==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},U.style)),this[D]=tt)}layOutTitles(D=!0){const M=[0,0,0],Q=this.renderer,U=this.spacingBox;["title","subtitle","caption"].forEach(function(dt){const ct=this[dt],xt=this.options[dt],vt=xt.verticalAlign||"top";if(dt=dt==="title"?vt==="top"?-3:0:vt==="top"?M[0]+2:0,ct){ct.css({width:(xt.width||U.width+(xt.widthAdjust||0))+"px"});const gt=Q.fontMetrics(ct).b,mt=Math.round(ct.getBBox(xt.useHTML).height);ct.align(q({y:vt==="bottom"?gt:dt+gt,height:mt},xt),!1,"spacingBox"),xt.floating||(vt==="top"?M[0]=Math.ceil(M[0]+mt):vt==="bottom"&&(M[2]=Math.ceil(M[2]+mt)))}},this),M[0]&&(this.options.title.verticalAlign||"top")==="top"&&(M[0]+=this.options.title.margin),M[2]&&this.options.caption.verticalAlign==="bottom"&&(M[2]+=this.options.caption.margin);const tt=!this.titleOffset||this.titleOffset.join(",")!==M.join(",");this.titleOffset=M,j(this,"afterLayOutTitles"),!this.isDirtyBox&&tt&&(this.isDirtyBox=this.isDirtyLegend=tt,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 M=D.width;D=D.height;const Q=this.getContainerBox();this.chartWidth=Math.max(0,M||Q.width||600),this.chartHeight=Math.max(0,F(D,this.chartWidth)||(1<Q.height?Q.height:400)),this.containerBox=Q}temporaryDisplay(D){let M=this.renderTo;if(D)for(;M&&M.style;)M.hcOrigStyle&&(a(M,M.hcOrigStyle),delete M.hcOrigStyle),M.hcOrigDetached&&(o.body.removeChild(M),M.hcOrigDetached=!1),M=M.parentNode;else for(;M&&M.style&&(o.body.contains(M)||M.parentNode||(M.hcOrigDetached=!0,o.body.appendChild(M)),(s(M,"display",!1)==="none"||M.hcOricDetached)&&(M.hcOrigStyle={display:M.style.display,height:M.style.height,overflow:M.style.overflow},D={display:"block",overflow:"hidden"},M!==this.renderTo&&(D.height=0),a(M,D),M.offsetWidth||M.style.setProperty("display","block","important")),M=M.parentNode,M!==o.body););}setClassName(D){this.container.className="highcharts-container "+(D||"")}getContainer(){const D=this.options,M=D.chart;var Q=at();let U,tt=this.renderTo;tt||(this.renderTo=tt=M.renderTo),V(tt)&&(this.renderTo=tt=o.getElementById(tt)),tt||$(13,!0,this);var dt=W(t(tt,"data-highcharts-chart"));z(dt)&&w[dt]&&w[dt].hasRendered&&w[dt].destroy(),t(tt,"data-highcharts-chart",this.index),tt.innerHTML=E.emptyHTML,M.skipClone||tt.offsetWidth||this.temporaryDisplay(),this.getChartSize(),dt=this.chartWidth;const ct=this.chartHeight;if(a(tt,{overflow:"hidden"}),this.styledMode||(U=q({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"},M.style||{})),this.container=Q=i("div",{id:Q},U,tt),this._cursor=Q.style.cursor,this.renderer=new(M.renderer||!p?Y.getRendererType(M.renderer):R)(Q,dt,ct,void 0,M.forExport,D.exporting&&D.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),y(void 0,this),this.setClassName(M.className),this.styledMode)for(const xt in D.defs)this.renderer.definition(D.defs[xt]);else this.renderer.setStyle(M.style);this.renderer.chartIndex=this.index,j(this,"afterGetContainer")}getMargins(D){const{spacing:M,margin:Q,titleOffset:U}=this;this.resetMargins(),U[0]&&!u(Q[0])&&(this.plotTop=Math.max(this.plotTop,U[0]+M[0])),U[2]&&!u(Q[2])&&(this.marginBottom=Math.max(this.marginBottom,U[2]+M[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Q,M),j(this,"getMargins"),D||this.getAxisMargins()}getAxisMargins(){const D=this,M=D.axisOffset=[0,0,0,0],Q=D.colorAxis,U=D.margin,tt=function(dt){dt.forEach(function(ct){ct.visible&&ct.getOffset()})};D.hasCartesianSeries?tt(D.axes):Q&&Q.length&&tt(Q),l.forEach(function(dt,ct){u(U[ct])||(D[dt]+=M[ct])}),D.setChartSize()}getOptions(){return _(this.userOptions,v)}reflow(D){const M=this;var Q=M.options.chart;Q=u(Q.width)&&u(Q.height);const U=M.containerBox,tt=M.getContainerBox();delete M.pointer.chartPosition,!Q&&!M.isPrinting&&U&&tt.width&&((tt.width!==U.width||tt.height!==U.height)&&(b.clearTimeout(M.reflowTimeout),M.reflowTimeout=nt(function(){M.container&&M.setSize(void 0,void 0,!1)},D?100:0)),M.containerBox=tt)}setReflow(){const D=this;var M=Q=>{var U;!((U=D.options)===null||U===void 0)&&U.chart.reflow&&D.hasLoaded&&D.reflow(Q)};typeof ResizeObserver=="function"?new ResizeObserver(M).observe(D.renderTo):(M=e(h,"resize",M),e(this,"destroy",M))}setSize(D,M,Q){const U=this,tt=U.renderer;U.isResizing+=1,y(Q,U),Q=tt.globalAnimation,U.oldChartHeight=U.chartHeight,U.oldChartWidth=U.chartWidth,typeof D<"u"&&(U.options.chart.width=D),typeof M<"u"&&(U.options.chart.height=M),U.getChartSize(),U.styledMode||(Q?L:a)(U.container,{width:U.chartWidth+"px",height:U.chartHeight+"px"},Q),U.setChartSize(!0),tt.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 M=this.inverted;const Q=this.renderer;var U=this.chartWidth,tt=this.chartHeight;const dt=this.options.chart,ct=this.spacing,xt=this.clipOffset;let vt,gt,mt,Ct;this.plotLeft=vt=Math.round(this.plotLeft),this.plotTop=gt=Math.round(this.plotTop),this.plotWidth=mt=Math.max(0,Math.round(U-vt-this.marginRight)),this.plotHeight=Ct=Math.max(0,Math.round(tt-gt-this.marginBottom)),this.plotSizeX=M?Ct:mt,this.plotSizeY=M?mt:Ct,this.plotBorderWidth=dt.plotBorderWidth||0,this.spacingBox=Q.spacingBox={x:ct[3],y:ct[0],width:U-ct[3]-ct[1],height:tt-ct[0]-ct[2]},this.plotBox=Q.plotBox={x:vt,y:gt,width:mt,height:Ct},M=2*Math.floor(this.plotBorderWidth/2),U=Math.ceil(Math.max(M,xt[3])/2),tt=Math.ceil(Math.max(M,xt[0])/2),this.clipBox={x:U,y:tt,width:Math.floor(this.plotSizeX-Math.max(M,xt[1])/2-U),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(M,xt[2])/2-tt))},D||(this.axes.forEach(function(bt){bt.setAxisSize(),bt.setAxisTranslation()}),Q.alignElements()),j(this,"afterSetChartSize",{skipAxes:D})}resetMargins(){j(this,"resetMargins");const D=this,M=D.options.chart;["margin","spacing"].forEach(function(Q){const U=M[Q],tt=I(U)?U:[U,U,U,U];["Top","Right","Bottom","Left"].forEach(function(dt,ct){D[Q][ct]=m(M[Q+dt],tt[ct])})}),l.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,M=this.renderer,Q=this.chartWidth,U=this.chartHeight,tt=this.styledMode,dt=this.plotBGImage;var ct=D.backgroundColor;const xt=D.plotBackgroundColor,vt=D.plotBackgroundImage,gt=this.plotLeft,mt=this.plotTop,Ct=this.plotWidth,bt=this.plotHeight,wt=this.plotBox,Mt=this.clipRect,Et=this.clipBox;let _t=this.chartBackground,zt=this.plotBackground,$t=this.plotBorder,Ot,Xt,Rt="animate";_t||(this.chartBackground=_t=M.rect().addClass("highcharts-background").add(),Rt="attr"),tt?Ot=Xt=_t.strokeWidth():(Ot=D.borderWidth||0,Xt=Ot+(D.shadow?8:0),ct={fill:ct||"none"},(Ot||_t["stroke-width"])&&(ct.stroke=D.borderColor,ct["stroke-width"]=Ot),_t.attr(ct).shadow(D.shadow)),_t[Rt]({x:Xt/2,y:Xt/2,width:Q-Xt-Ot%2,height:U-Xt-Ot%2,r:D.borderRadius}),Rt="animate",zt||(Rt="attr",this.plotBackground=zt=M.rect().addClass("highcharts-plot-background").add()),zt[Rt](wt),tt||(zt.attr({fill:xt||"none"}).shadow(D.plotShadow),vt&&(dt?(vt!==dt.attr("href")&&dt.attr("href",vt),dt.animate(wt)):this.plotBGImage=M.image(vt,gt,mt,Ct,bt).add())),Mt?Mt.animate({width:Et.width,height:Et.height}):this.clipRect=M.clipRect(Et),Rt="animate",$t||(Rt="attr",this.plotBorder=$t=M.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),tt||$t.attr({stroke:D.plotBorderColor,"stroke-width":D.plotBorderWidth||0,fill:"none"}),$t[Rt]($t.crisp({x:gt,y:mt,width:Ct,height:bt},-$t.strokeWidth())),this.isDirtyBox=!1,j(this,"afterDrawChartBox")}propFromSeries(){const D=this,M=D.options.chart,Q=D.options.series;let U,tt,dt;["inverted","angular","polar"].forEach(function(ct){for(tt=d[M.type],dt=M[ct]||tt&&tt.prototype[ct],U=Q&&Q.length;!dt&&U--;)(tt=d[Q[U].type])&&tt.prototype[ct]&&(dt=!0);D[ct]=dt})}linkSeries(D){const M=this,Q=M.series;Q.forEach(function(U){U.linkedSeries.length=0}),Q.forEach(function(U){let tt=U.options.linkedTo;V(tt)&&(tt=tt===":previous"?M.series[U.index-1]:M.get(tt))&&tt.linkedParent!==U&&(tt.linkedSeries.push(U),U.linkedParent=tt,tt.enabledDataSorting&&U.setDataSortingOptions(),U.visible=m(U.options.visible,tt.options.visible,U.visible))}),j(this,"afterLinkSeries",{isUpdating:D})}renderSeries(){this.series.forEach(function(D){D.translate(),D.render()})}render(){const D=this.axes,M=this.colorAxis,Q=this.renderer,U=function(gt){gt.forEach(function(mt){mt.visible&&mt.render()})};let tt=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 tt=21,!0});const ct=this.plotHeight=Math.max(this.plotHeight-tt,0);D.forEach(function(gt){gt.setScale()}),this.getAxisMargins();const xt=1.1<dt/this.plotWidth,vt=1.05<ct/this.plotHeight;(xt||vt)&&(D.forEach(function(gt){(gt.horiz&&xt||!gt.horiz&&vt)&>.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?U(D):M&&M.length&&U(M),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 M=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}),M.styledMode||this.credits.css(Q.style),this.credits.add().align(Q.position),this.credits.update=function(U){M.credits=M.credits.destroy(),M.addCredits(U)})}destroy(){const D=this,M=D.axes,Q=D.series,U=D.container,tt=U&&U.parentNode;let dt;for(j(D,"destroy"),D.renderer.forExport?S(w,D):w[D.index]=void 0,X.chartCount--,D.renderTo.removeAttribute("data-highcharts-chart"),N(D),dt=M.length;dt--;)M[dt]=M[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 xt=D[ct];xt&&xt.destroy&&(D[ct]=xt.destroy())}),U&&(U.innerHTML=E.emptyHTML,N(U),tt&&r(U)),g(D,function(ct,xt){delete D[xt]})}firstRender(){const D=this,M=D.options;D.getContainer(),D.resetMargins(),D.setChartSize(),D.propFromSeries(),D.getAxes();const Q=T(M.series)?M.series:[];M.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:M}=this;D&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(M&&M.element.textContent||"").replace(/</g,"<")}),D.accessibility&&D.accessibility.enabled===!1||$('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,M,Q){const U=this;let tt;return D&&(M=m(M,!0),j(U,"addSeries",{options:D},function(){tt=U.initSeries(D),U.isDirtyLegend=!0,U.linkSeries(),tt.enabledDataSorting&&tt.setData(D.data,!1),j(U,"afterAddSeries",{series:tt}),M&&U.redraw(Q)})),tt}addAxis(D,M,Q,U){return this.createAxis(M?"xAxis":"yAxis",{axis:D,redraw:Q,animation:U})}addColorAxis(D,M,Q){return this.createAxis("colorAxis",{axis:D,redraw:M,animation:Q})}createAxis(D,M){return D=new P(this,M.axis,D),m(M.redraw,!0)&&this.redraw(M.animation),D}showLoading(D){const M=this,Q=M.options,U=Q.loading,tt=function(){dt&&a(dt,{left:M.plotLeft+"px",top:M.plotTop+"px",width:M.plotWidth+"px",height:M.plotHeight+"px"})};let dt=M.loadingDiv,ct=M.loadingSpan;dt||(M.loadingDiv=dt=i("div",{className:"highcharts-loading highcharts-loading-hidden"},null,M.container)),ct||(M.loadingSpan=ct=i("span",{className:"highcharts-loading-inner"},null,dt),e(M,"redraw",tt)),dt.className="highcharts-loading",E.setElementHTML(ct,m(D,Q.lang.loading,"")),M.styledMode||(a(dt,q(U.style,{zIndex:10})),a(ct,U.labelStyle),M.loadingShown||(a(dt,{opacity:0,display:""}),L(dt,{opacity:U.style.opacity||.5},{duration:U.showDuration||0}))),M.loadingShown=!0,tt()}hideLoading(){const D=this.options,M=this.loadingDiv;M&&(M.className="highcharts-loading highcharts-loading-hidden",this.styledMode||L(M,{opacity:0},{duration:D.loading.hideDuration||100,complete:function(){a(M,{display:"none"})}})),this.loadingShown=!1}update(D,M,Q,U){const tt=this,dt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ct=D.isResponsiveOptions,xt=[];let vt,gt;j(tt,"update",{options:D}),ct||tt.setResponsive(!1,!0),D=_(D,tt.options),tt.userOptions=n(tt.userOptions,D);var mt=D.chart;if(mt){if(n(!0,tt.options.chart,mt),this.setZoomOptions(),"className"in mt&&tt.setClassName(mt.className),"inverted"in mt||"polar"in mt||"type"in mt){tt.propFromSeries();var Ct=!0}"alignTicks"in mt&&(Ct=!0),"events"in mt&&k(this,mt),g(mt,function(bt,wt){tt.propsRequireUpdateSeries.indexOf("chart."+wt)!==-1&&(vt=!0),tt.propsRequireDirtyBox.indexOf(wt)!==-1&&(tt.isDirtyBox=!0),tt.propsRequireReflow.indexOf(wt)!==-1&&(ct?tt.isDirtyBox=!0:gt=!0)}),!tt.styledMode&&mt.style&&tt.renderer.setStyle(tt.options.chart.style||{})}!tt.styledMode&&D.colors&&(this.options.colors=D.colors),D.time&&(this.time===f&&(this.time=new x(D.time)),n(!0,tt.options.time,D.time)),g(D,function(bt,wt){tt[wt]&&typeof tt[wt].update=="function"?tt[wt].update(bt,!1):typeof tt[dt[wt]]=="function"?tt[dt[wt]](bt):wt!=="colors"&&tt.collectionsWithUpdate.indexOf(wt)===-1&&n(!0,tt.options[wt],D[wt]),wt!=="chart"&&tt.propsRequireUpdateSeries.indexOf(wt)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(bt){D[bt]&&(et(D[bt]).forEach(function(wt,Mt){const Et=u(wt.id);let _t;Et&&(_t=tt.get(wt.id)),!_t&&tt[bt]&&(_t=tt[bt][m(wt.index,Mt)])&&(Et&&u(_t.options.id)||_t.options.isInternal)&&(_t=void 0),_t&&_t.coll===bt&&(_t.update(wt,!1),Q&&(_t.touched=!0)),!_t&&Q&&tt.collectionsWithInit[bt]&&(tt.collectionsWithInit[bt][0].apply(tt,[wt].concat(tt.collectionsWithInit[bt][1]||[]).concat([!1])).touched=!0)}),Q&&tt[bt].forEach(function(wt){wt.touched||wt.options.isInternal?delete wt.touched:xt.push(wt)}))}),xt.forEach(function(bt){bt.chart&&bt.remove&&bt.remove(!1)}),Ct&&tt.axes.forEach(function(bt){bt.update({},!1)}),vt&&tt.getSeriesOrderByLinks().forEach(function(bt){bt.chart&&bt.update({},!1)},this),Ct=mt&&mt.width,mt=mt&&(V(mt.height)?F(mt.height,Ct||tt.chartWidth):mt.height),gt||z(Ct)&&Ct!==tt.chartWidth||z(mt)&&mt!==tt.chartHeight?tt.setSize(Ct,mt,U):m(M,!0)&&tt.redraw(U),j(tt,"afterUpdate",{options:D,redraw:M,animation:U})}setSubtitle(D,M){this.applyDescription("subtitle",D),this.layOutTitles(M)}setCaption(D,M){this.applyDescription("caption",D),this.layOutTitles(M)}showResetZoom(){function D(){M.zoomOut()}const M=this,Q=v.lang,U=M.zooming.resetButton,tt=U.theme,dt=U.relativeTo==="chart"||U.relativeTo==="spacingBox"?null:"scrollablePlotBox";j(this,"beforeShowResetZoom",null,function(){M.resetZoomButton=M.renderer.button(Q.resetZoom,null,null,D,tt).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 M=this,Q=M.pointer;let U=!1,tt;!D||D.resetSelection?(M.axes.forEach(function(ct){tt=ct.zoom()}),Q.initiated=!1):D.xAxis.concat(D.yAxis).forEach(function(ct){const xt=ct.axis;(Q[xt.isXAxis?"zoomX":"zoomY"]&&u(Q.mouseDownX)&&u(Q.mouseDownY)&&M.isInsidePlot(Q.mouseDownX-M.plotLeft,Q.mouseDownY-M.plotTop,{axis:xt})||!u(M.inverted?Q.mouseDownX:Q.mouseDownY))&&(tt=xt.zoom(ct.min,ct.max),xt.displayBtn&&(U=!0))});const dt=M.resetZoomButton;U&&!dt?M.showResetZoom():!U&&I(dt)&&(M.resetZoomButton=dt.destroy()),tt&&M.redraw(m(M.options.chart.animation,D&&D.animation,100>M.pointCount))}pan(D,M){const Q=this,U=Q.hoverPoints;M=typeof M=="object"?M:{enabled:M,type:"x"};const tt=Q.options.chart;tt&&tt.panning&&(tt.panning=M);const dt=M.type;let ct;j(this,"pan",{originalEvent:D},function(){U&&U.forEach(function(gt){gt.setState()});let xt=Q.xAxis;dt==="xy"?xt=xt.concat(Q.yAxis):dt==="y"&&(xt=Q.yAxis);const vt={};xt.forEach(function(gt){if(gt.options.panningEnabled&&!gt.options.isInternal){var mt=gt.horiz,Ct=D[mt?"chartX":"chartY"];mt=mt?"mouseDownX":"mouseDownY";var bt=Q[mt],wt=gt.minPointOffset||0,Mt=gt.reversed&&!Q.inverted||!gt.reversed&&Q.inverted?-1:1,Et=gt.getExtremes(),_t=gt.toValue(bt-Ct,!0)+wt*Mt,zt=gt.toValue(bt+gt.len-Ct,!0)-(wt*Mt||gt.isXAxis&>.pointRangePadding||0),$t=zt<_t;Mt=gt.hasVerticalPanning(),bt=$t?zt:_t,_t=$t?_t:zt;var Ot=gt.panningState;!Mt||gt.isXAxis||Ot&&!Ot.isDirty||gt.series.forEach(function(Xt){var Rt=Xt.getProcessedData(!0);Rt=Xt.getExtremes(Rt.yData,!0),Ot||(Ot={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),z(Rt.dataMin)&&z(Rt.dataMax)&&(Ot.startMin=Math.min(m(Xt.options.threshold,1/0),Rt.dataMin,Ot.startMin),Ot.startMax=Math.max(m(Xt.options.threshold,-1/0),Rt.dataMax,Ot.startMax))}),Mt=Math.min(m(Ot&&Ot.startMin,Et.dataMin),wt?Et.min:gt.toValue(gt.toPixels(Et.min)-gt.minPixelPadding)),zt=Math.max(m(Ot&&Ot.startMax,Et.dataMax),wt?Et.max:gt.toValue(gt.toPixels(Et.max)+gt.minPixelPadding)),gt.panningState=Ot,gt.isOrdinal||(wt=Mt-bt,0<wt&&(_t+=wt,bt=Mt),wt=_t-zt,0<wt&&(_t=zt,bt-=wt),gt.series.length&&bt!==Et.min&&_t!==Et.max&&bt>=Mt&&_t<=zt&&(gt.setExtremes(bt,_t,!1,!1,{trigger:"pan"}),!Q.resetZoomButton&&bt!==Mt&&_t!==zt&&dt.match("y")&&(Q.showResetZoom(),gt.displayBtn=!1),ct=!0),vt[mt]=Ct)}}),g(vt,(gt,mt)=>{Q[mt]=gt}),ct&&Q.redraw(!1),a(Q.container,{cursor:"move"})})}}return q(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}),ot(A,"Extensions/ScrollablePlotArea.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/Axis.js"],A["Core/Chart/Chart.js"],A["Core/Series/Series.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z,X){const{stop:Y}=B,{addEvent:O,createElement:H,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 f=y[v.side].name,C=this[f],k;return this[f]=C-y[v.side].value,k=P.prototype.getPlotLinePath.apply(this,arguments),this[f]=C,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=H("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=H("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=H("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(f){(f.namespaceURI===L.SVG_NS?L.box:L.box.parentNode).appendChild(f),f.style.pointerEvents="auto"})})},G.prototype.applyFixed=function(){var E=!this.fixedDiv,L=this.options.chart,c=L.scrollablePlotArea,y=Z.getRendererType();E?(this.fixedDiv=H("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),f=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,f],["L",c,this.chartHeight],["L",y,this.chartHeight],["L",y,f],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:E})},O(P,"afterInit",function(){this.chart.scrollableDirty=!0}),O(K,"show",function(){this.chart.scrollableDirty=!0})}),ot(A,"Core/Axis/Stacking/StackItem.js",[A["Core/Templating.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{format:K}=B,{series:Z}=P,{destroyObjectProperties:X,fireEvent:Y,isNumber:O,pick:H}=G;class R{constructor(b,E,L,c,y){const v=b.chart.inverted,f=b.reversed;this.axis=b,b=this.isNegative=!!L!=!!f,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?K(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:H(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:f,axis:C,label:k,options:w,textAlign:o}=this,l=C.chart;L=this.getStackBox({xOffset:b,width:E,boxBottom:L,boxTop:c,defaultX:y,xAxis:v});var{verticalAlign:p}=f;if(k&&L){c=k.getBBox(),y=k.padding,v=H(w.overflow,"justify")==="justify",f.x=w.x||0,f.y=w.y||0;const{x:h,y:d}=this.adjustStackPosition({labelBox:c,verticalAlign:p,textAlign:o});L.x-=h,L.y-=d,k.align(f,!1,L),(p=l.isInsidePlot(k.alignAttr.x+f.x+h,k.alignAttr.y+f.y+d))||(v=!1),v&&Z.prototype.justifyDataLabel.call(C,k,f,k.alignAttr,c,L),k.attr({x:k.alignAttr.x,y:k.alignAttr.y,rotation:w.rotation,rotationOriginX:c.width/2,rotationOriginY:c.height/2}),H(!v&&w.crop,!0)&&(p=O(k.x)&&O(k.y)&&l.isInsidePlot(k.x-y+k.width,k.y)&&l.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:f,boxBottom:C}=b;var k=E.stacking.usePercentage?100:H(c,this.total,0);k=E.toPixels(k),b=b.xAxis||L.xAxis[0];const w=H(y,b.translate(this.x))+v;E=E.toPixels(C||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-w-f,width:E,height:f}:{x:w+b.transB-L.plotLeft,y:(o?k-E:k)-L.plotTop,width:f,height:E}}}return R}),ot(A,"Core/Axis/Stacking/StackingAxis.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/Axis.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Axis/Stacking/StackItem.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z){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 a=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?a.top:a.left,t?a.height:a.width].join())})}function Y(){const e=this.stacking;if(e){var t=e.stacks;l(t,function(i,a){C(i),t[a]=null}),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function O(){this.coll!=="yAxis"||this.stacking||(this.stacking=new h(this))}function H(e,t,i,a){return!f(e)||e.x!==t||a&&e.stackKey!==a?e={x:t,index:0,key:a,stackKey:a}:e.index++,e.key=[i,t,e.index].join(),e}function R(){const e=this,t=e.stackKey,i=e.yAxis.stacking.stacks,a=e.processedXData,u=e[e.options.stacking+"Stacker"];let _;u&&[t,"-"+t].forEach(r=>{let S=a.length,$;for(;S--;){var q=a[S];_=e.getStackIndicator(_,q,e.index,r),($=(q=i[r]&&i[r][q])&&q.points[_.key])&&u.call(e,$,q,S)}})}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&&l(e.stacks,(t,i)=>{i.slice(-5)==="group"&&(l(t,a=>a.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 a=this.processedXData,u=this.processedYData,_=[],r=u.length,S=this.options,$=S.threshold,q=p(S.startFromThreshold&&$,0);S=S.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,T=t.stacking.oldStacks,z,I;for(t.stacking.stacksTouched+=1,I=0;I<r;I++){var V=a[I],n=u[I],g=this.getStackIndicator(g,V,this.index),m=g.key,W=(z=j&&n<(q?0:$))?rt:e;s[W]||(s[W]={}),s[W][V]||(T[W]&&T[W][V]?(s[W][V]=T[W][V],s[W][V].total=null):s[W][V]=new K(t,t.options.stackLabels,!!z,V,S)),W=s[W][V],n!==null?(W.points[m]=W.points[this.index]=[p(W.cumulative,q)],f(W.cumulative)||(W.base=m),W.touched=t.stacking.stacksTouched,0<g.index&&this.singleStacks===!1&&(W.points[m][0]=W.points[this.index+","+V+",0"][0])):W.points[m]=W.points[this.index]=null,i==="percent"?(z=z?e:rt,j&&s[z]&&s[z][V]?(z=s[z][V],W.total=z.total=Math.max(z.total,W.total)+Math.abs(n)||0):W.total=v(W.total+(Math.abs(n)||0))):i==="group"?(w(n)&&(n=n[0]),n!==null&&(W.total=(W.total||0)+1)):W.total=v(W.total+(n||0)),W.cumulative=i==="group"?(W.total||1)-1:v(p(W.cumulative,q)+(n||0)),n!==null&&(W.points[m].push(W.cumulative),_[I]=W.cumulative,W.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:f,destroyObjectProperties:C,fireEvent:k,isArray:w,isNumber:o,objectEach:l,pick:p}=Z;class h{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){const t=this.axis,i=t.series,a=t.options.reversedStacks,u=i.length;let _,r;for(this.usePercentage=!1,r=u;r--;)_=i[a?r:u-r-1],_.setStackedPoints(),_.setGroupedPoints();for(r=0;r<u;r++)i[r].modifyStacks();k(t,"afterBuildStacks")}cleanStacks(){let t;this.oldStacks&&(t=this.stacks=this.oldStacks),l(t,function(i){l(i,function(a){a.cumulative=a.total})})}resetStacks(){l(this.stacks,t=>{l(t,(i,a)=>{o(i.touched)&&i.touched<this.stacksTouched?(i.destroy(),delete t[a]):(i.total=null,i.cumulative=null)})})}renderStackTotals(){var t=this.axis;const i=t.chart,a=i.renderer,u=this.stacks;t=L(i,t.options.stackLabels&&t.options.stackLabels.animation||!1);const _=this.stackTotalGroup=this.stackTotalGroup||a.g("stack-labels").attr({zIndex:6,opacity:0}).add();_.translate(i.plotLeft,i.plotTop),l(u,function(r){l(r,function(S){S.render(_)})}),_.animate({opacity:1},t)}}var d;return function(e){const t=[];e.compose=function(i,a,u){Z.pushUnique(t,i)&&(y(i,"init",O),y(i,"destroy",Y)),Z.pushUnique(t,a)&&(a.prototype.getStacks=X),Z.pushUnique(t,u)&&(i=u.prototype,i.getStackIndicator=H,i.modifyStacks=R,i.percentStacker=x,i.setGroupedPoints=b,i.setStackedPoints=E)}}(d||(d={})),d}),ot(A,"Series/Line/LineSeries.js",[A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{defined:K,merge:Z}=G;class X extends B{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const O=this,H=this.options,R=(this.gappedPath||this.getGraphPath).call(this),x=this.chart.styledMode;let b=[["graph","highcharts-graph"]];x||b[0].push(H.lineColor||this.color||"#cccccc",H.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":H.lineWidth||0,fill:O.fillGraph&&O.color||"none"},E[3]?c.dashstyle=E[3]:H.linecap!=="square"&&(c["stroke-linecap"]=c["stroke-linejoin"]="round"),y[v](c).shadow(2>L&&H.shadow)),y&&(y.startX=R.xMap,y.isArea=R.isArea)})}getGraphPath(O,H,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&&!H&&!R)),O.forEach(function(f,C){const k=f.plotX,w=f.plotY,o=O[C-1],l=f.isNull||typeof w!="number";(f.leftCliff||o&&o.rightCliff)&&!R&&(c=!0),l&&!K(H)&&0<C?c=!b.connectNulls:l&&!H?c=!0:(C===0||c?C=[["M",f.plotX,f.plotY]]:x.getPointSpline?C=[x.getPointSpline(O,f,C)]:y?(C=y===1?[["L",o.plotX,w]]:y===2?[["L",(o.plotX+k)/2,o.plotY],["L",(o.plotX+k)/2,w]]:[["L",k,o.plotY]],C.push(["L",k,w])):C=[["L",k,w]],L.push(f.x),y&&(L.push(f.x),y===2&&L.push(f.x)),E.push.apply(E,C),c=!1)}),E.xMap=L,x.graphPath=E}getZonesGraphs(O){return this.zones.forEach(function(H,R){R=["zone-graph-"+R,"highcharts-graph highcharts-zone-graph-"+R+" "+(H.className||"")],this.chart.styledMode||R.push(H.color||this.color,H.dashStyle||this.options.dashStyle),O.push(R)},this),O}}return X.defaultOptions=Z(B.defaultOptions,{legendSymbol:"lineMarker"}),P.registerSeriesType("line",X),X}),ot(A,"Series/Area/AreaSeries.js",[A["Core/Color/Color.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{seriesTypes:{line:K}}=P,{extend:Z,merge:X,objectEach:Y,pick:O}=G;class H extends K{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 f=x[y];const C=f?"animate":"attr";f?(f.endX=x.preventGraphAnimation?null:b.xMap,f.animate({d:b})):(v.zIndex=0,f=x[y]=x.chart.renderer.path(b).addClass(c[1]).add(x.group),f.isArea=!0),x.chart.styledMode||(c[3]?v.fill=c[3]:(v.fill=c[2],v["fill-opacity"]=O(E.fillOpacity,.75))),f[C](v),f.startX=b.xMap,f.shiftUnit=E.step?2:1})}getGraphPath(x){var b=K.prototype.getGraphPath,E=this.options;const L=E.stacking,c=this.yAxis,y=[],v=[],f=this.index,C=c.stacking.stacks[this.stackKey],k=E.threshold,w=Math.round(c.getThreshold(E.threshold));E=O(E.connectNulls,L==="percent");var o=function(d,e,t){var i=x[d];d=L&&C[i.x].points[f];const a=i[t+"Null"]||0;t=i[t+"Cliff"]||0;let u,_;i=!0,t||a?(u=(a?d[0]:d[1])+t,_=d[0]+t,i=!!a):!L&&x[e]&&x[e].isNull&&(u=_=k),typeof u<"u"&&(v.push({plotX:l,plotY:u===null?w:c.getThreshold(u),isNull:i,isCliff:!0}),y.push({plotX:l,plotY:_===null?w:c.getThreshold(_),doCurve:!1}))};let l;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;l=O(x[d].rectPlotX,x[d].plotX);var h=L?O(x[d].yBottom,w):w;(!p||E)&&(E||o(d,d-1,"left"),p&&!L&&E||(v.push(x[d]),y.push({x:d,plotX:l,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],f={},C=y.series,k=C.length,w=y.options.reversedStacks?1:-1,o=C.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,f[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 l=C.map(p=>p.visible);L.forEach(function(p,h){let d=0,e,t;if(f[p]&&!f[p].isNull)E.push(f[p]),[-1,1].forEach(function(i){const a=i===1?"rightNull":"leftNull",u=v[L[h+i]];let _=0;if(u){let r=o;for(;0<=r&&r<k;){const S=C[r].index;e=u.points[S],e||(S===b.index?f[p][a]=!0:l[r]&&(t=v[p].points[S])&&(_-=t[1]-t[0])),r+=w}}f[p][i===1?"rightCliff":"leftCliff"]=_});else{let i=o;for(;0<=i&&i<k;){if(e=v[p].points[C[i].index]){d=e[1];break}i+=w}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 H.defaultOptions=X(K.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),Z(H.prototype,{singleStacks:!1}),P.registerSeriesType("area",H),H}),ot(A,"Series/Spline/SplineSeries.js",[A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P){const{line:G}=B.seriesTypes,{merge:K,pick:Z}=P;class X extends G{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(O,H,R){const x=H.plotX||0,b=H.plotY||0,E=O[R-1];R=O[R+1];let L,c,y;if(E&&!E.isNull&&E.doCurve!==!1&&!H.isCliff&&R&&!R.isNull&&R.doCurve!==!1&&!H.isCliff){O=E.plotY||0;var v=R.plotX||0;R=R.plotY||0;let f=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&&(f=(y-c)*(v-x)/(v-L)+b-y),c+=f,y+=f,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),H.rightContX=v,H.rightContY=y}return H=["C",Z(E.rightContX,E.plotX,0),Z(E.rightContY,E.plotY,0),Z(L,x,0),Z(c,b,0),x,b],E.rightContX=E.rightContY=void 0,H}}return X.defaultOptions=K(G.defaultOptions),B.registerSeriesType("spline",X),X}),ot(A,"Series/AreaSpline/AreaSplineSeries.js",[A["Series/Spline/SplineSeries.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{area:K,area:{prototype:Z}}=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,K.defaultOptions),X(O.prototype,{getGraphPath:Z.getGraphPath,getStackPoints:Z.getStackPoints,drawGraph:Z.drawGraph}),P.registerSeriesType("areaspline",O),O}),ot(A,"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"}}),ot(A,"Series/Column/ColumnSeries.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Color/Color.js"],A["Series/Column/ColumnSeriesDefaults.js"],A["Core/Globals.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z,X,Y){const{animObject:O}=B,{parse:H}=P,{hasTouch:R,noop:x}=K,{clamp:b,defined:E,extend:L,fireEvent:c,isArray:y,isNumber:v,merge:f,pick:C,objectEach:k}=Y;class w extends Z{constructor(){super(...arguments),this.points=this.options=this.group=this.data=this.borderWidth=void 0}animate(l){const p=this,h=this.yAxis,d=h.pos,e=p.options,t=this.chart.inverted,i={},a=t?"translateX":"translateY";let u;l?(i.scaleY=.001,l=b(h.toPixels(e.threshold),d,d+h.len),t?i.translateX=l-h.len:i.translateY=l,p.clipBox&&p.setClip(),p.group.attr(i)):(u=Number(p.group.attr(a)),p.group.animate({scaleY:1},L(O(p.options.animation),{step:function(_,r){p.group&&(i[a]=u+r.pos*(d-u),p.group.attr(i))}})))}init(l,p){super.init.apply(this,arguments);const h=this;l=h.chart,l.hasRendered&&l.series.forEach(function(d){d.type===h.type&&(d.isDirty=!0)})}getColumnMetrics(){const l=this;var p=l.options;const h=l.xAxis,d=l.yAxis;var e=h.options.reversedStacks;e=h.reversed&&!e||!h.reversed&&e;const t={};let i,a=0;p.grouping===!1?a=1:l.chart.series.forEach(function(S){const $=S.yAxis,q=S.options;let rt;S.type!==l.type||!S.visible&&l.chart.options.chart.ignoreHiddenSeries||d.len!==$.len||d.pos!==$.pos||(q.stacking&&q.stacking!=="group"?(i=S.stackKey,typeof t[i]>"u"&&(t[i]=a++),rt=t[i]):q.grouping!==!1&&(rt=a++),S.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,r=(u-2*_)/(a||1);return p=Math.min(p.maxPointWidth||h.len,C(p.pointWidth,r*(1-2*p.pointPadding))),l.columnMetrics={width:p,offset:(r-p)/2+(_+((l.columnIndex||0)+(e?1:0))*r-u/2)*(e?-1:1),paddedWidth:r,columnCount:a},l.columnMetrics}crispCol(l,p,h,d){var e=this.borderWidth,t=-(e%2?.5:0);return e=e%2?.5:1,this.options.crisp&&(h=Math.round(l+h)+t,l=Math.round(l)+t,h-=l),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:l,y:p,width:h,height:d}}adjustForMissingColumns(l,p,h,d){const e=this.options.stacking;if(!h.isNull&&1<d.columnCount){const t=this.yAxis.options.reversedStacks;let i=0,a=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=a),_.hasValidPoints&&(t?a++:a--)):y(u)&&(u=Object.keys(_.points).filter(r=>!r.match(",")&&_.points[r]&&1<_.points[r].length).map(parseFloat).sort((r,S)=>S-r),i=u.indexOf(this.index),a=u.length))}}),l=(h.plotX||0)+((a-1)*d.paddedWidth+p)/2-p-i*d.paddedWidth}return l}translate(){const l=this,p=l.chart,h=l.options;var d=l.dense=2>l.closestPointRange*l.xAxis.transA;d=l.borderWidth=C(h.borderWidth,d?0:1);const e=l.xAxis,t=l.yAxis,i=h.threshold,a=C(h.minPointLength,5),u=l.getColumnMetrics(),_=u.width,r=l.pointXOffset=u.offset,S=l.dataMin,$=l.dataMax;let q=l.barW=Math.max(_,1+2*d),rt=l.translatedThreshold=t.getThreshold(i);p.inverted&&(rt-=.5),h.pointPadding&&(q=Math.ceil(q)),Z.prototype.translate.apply(l),l.points.forEach(function(j){const s=C(j.yBottom,rt);var T=999+Math.abs(s),z=j.plotX||0;T=b(j.plotY,-T,t.len+T);let I=Math.min(T,s),V=Math.max(T,s)-I,n=_,g=z+r,m=q;a&&Math.abs(V)<a&&(V=a,z=!t.reversed&&!j.negative||t.reversed&&j.negative,v(i)&&v($)&&j.y===i&&$<=i&&(t.min||0)<i&&(S!==$||(t.max||0)<=i)&&(z=!z,j.negative=!j.negative),I=Math.abs(I-rt)>a?s-a:rt-(z?a:0)),E(j.options.pointWidth)&&(n=m=Math.ceil(j.options.pointWidth),g-=Math.round((n-_)/2)),h.centerInCategory&&(g=l.adjustForMissingColumns(g,n,j,u)),j.barX=g,j.pointWidth=n,j.tooltipPos=p.inverted?[b(t.len+t.pos-p.plotLeft-T,t.pos-p.plotLeft,t.len+t.pos-p.plotLeft),e.len+e.pos-p.plotTop-g-m/2,V]:[e.left-p.plotLeft+g+m/2,b(T+t.pos-p.plotTop,t.pos-p.plotTop,t.len+t.pos-p.plotTop),V],j.shapeType=l.pointClass.prototype.shapeType||"roundedRect",j.shapeArgs=l.crispCol(g,j.isNull?rt:I,m,j.isNull?0:V)}),c(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(l,p){const h=this.options;var d=this.pointAttrToOptions||{},e=d.stroke||"borderColor";const t=d["stroke-width"]||"borderWidth";let i,a=l&&l.color||this.color,u=l&&l[e]||h[e]||a;d=l&&l.options.dashStyle||h.dashStyle;let _=l&&l[t]||h[t]||this[t]||0,r=C(l&&l.opacity,h.opacity,1);return l&&this.zones.length&&(i=l.getZone(),a=l.options.color||i&&(i.color||l.nonZonedColor)||this.color,i&&(u=i.borderColor||u,d=i.dashStyle||d,_=i.borderWidth||_)),p&&l&&(l=f(h.states[p],l.options.states&&l.options.states[p]||{}),p=l.brightness,a=l.color||typeof p<"u"&&H(a).brighten(l.brightness).get()||a,u=l[e]||u,_=l[t]||_,d=l.dashStyle||d,r=C(l.opacity,r)),e={fill:a,stroke:u,"stroke-width":_,opacity:r},d&&(e.dashstyle=d),e}drawPoints(l=this.points){const p=this,h=this.chart,d=p.options,e=h.renderer,t=d.animationLimit||250;let i;l.forEach(function(a){let u=a.graphic,_=!!u,r=u&&h.pointCount<t?"animate":"attr";v(a.plotY)&&a.y!==null?(i=a.shapeArgs,u&&a.hasNewShapeType()&&(u=u.destroy()),p.enabledDataSorting&&(a.startXPos=p.xAxis.reversed?-(i&&i.width||0):p.xAxis.width),u||(a.graphic=u=e[a.shapeType](i).add(a.group||p.group))&&p.enabledDataSorting&&h.hasRendered&&h.pointCount<t&&(u.attr({x:a.startXPos}),_=!0,r="animate"),u&&_&&u[r](f(i)),h.styledMode||u[r](p.pointAttribs(a,a.selected&&"select")).shadow(a.allowShadow!==!1&&d.shadow),u&&(u.addClass(a.getClassName(),!0),u.attr({visibility:a.visible?"inherit":"hidden"}))):u&&(a.graphic=u.destroy())})}drawTracker(l=this.points){const p=this,h=p.chart,d=h.pointer,e=function(i){const a=d.getPointFromEvent(i);typeof a<"u"&&p.options.enableMouseTracking&&(d.isDirectTouch=!0,a.onMouseOver(i))};let t;l.forEach(function(i){t=y(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[],i.graphic&&(i.graphic.element.point=i),t.forEach(function(a){a.div?a.div.point=i:a.element.point=i})}),p._hasTracking||(p.trackerGroups.forEach(function(i){p[i]&&(p[i].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(a){d.onTrackerMouseOut(a)}),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 l=this,p=l.chart;p.hasRendered&&p.series.forEach(function(h){h.type===l.type&&(h.isDirty=!0)}),Z.prototype.remove.apply(l,arguments)}}return w.defaultOptions=f(Z.defaultOptions,G),L(w.prototype,{cropShoulder:0,directTouch:!0,getSymbol:x,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),X.registerSeriesType("column",w),w}),ot(A,"Core/Series/DataLabel.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Templating.js"],A["Core/Utilities.js"]],function(B,P,G){const{getDeferredAnimation:K}=B,{format:Z}=P,{defined:X,extend:Y,fireEvent:O,isArray:H,isString:R,merge:x,objectEach:b,pick:E,splat:L}=G;var c;return function(y){function v(d,e,t,i,a){const u=this.chart;var _=this.isCartesian&&u.inverted;const r=this.enabledDataSorting;var S=d.plotX,$=d.plotY;const q=t.rotation;var rt=t.align;$=X(S)&&X($)&&u.isInsidePlot(S,Math.round($),{inverted:_,paneCoordinates:!0,series:this});let j=E(t.overflow,r?"none":"justify")==="justify";if(_=this.visible&&d.visible!==!1&&X(S)&&(d.series.forceDL||r&&!j||$||E(t.inside,!!this.options.stacking)&&i&&u.isInsidePlot(S,_?i.x+1:i.y+i.height-1,{inverted:_,paneCoordinates:!0,series:this})),S=d.pos(),_&&S){q&&e.attr({align:rt}),rt=e.getBBox(!0);var s=[0,0],T=u.renderer.fontMetrics(e).b;if(i=Y({x:S[0],y:Math.round(S[1]),width:0,height:0},i),Y(t,{width:rt.width,height:rt.height}),q?(j=!1,s=u.renderer.rotCorr(T,q),T={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"))],r&&this.xAxis&&!j&&this.setDataLabelStartPos(d,e,a,$,T),e[a?"attr":"animate"](T)):(r&&this.xAxis&&!j&&this.setDataLabelStartPos(d,e,a,$,i),e.align(t,void 0,i),T=e.alignAttr),j&&0<=i.height)this.justifyDataLabel(e,t,T,rt,i,a);else if(E(t.crop,!0)){let{x:z,y:I}=T;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&&!q&&e[a?"attr":"animate"]({anchorX:S[0],anchorY:S[1]})}a&&r&&(e.placed=!1),_||r&&!j?e.show():(e.hide(),e.placed=!1)}function f(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 C(){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 w(d=this.points){var e,t;const i=this,a=i.chart,u=i.options,_=a.renderer,{backgroundColor:r,plotBackgroundColor:S}=a.options.chart,$=a.options.plotOptions,q=_.getContrast(R(S)&&S||R(r)&&r||"#000000");let rt=u.dataLabels,j,s;var T=L(rt)[0];const z=T.animation;T=T.defer?K(a,z,i):{defer:0,duration:0},rt=l(l((e=$==null?void 0:$.series)===null||e===void 0?void 0:e.dataLabels,(t=$==null?void 0:$[i.type])===null||t===void 0?void 0:t.dataLabels),rt),O(this,"drawDataLabels"),(H(rt)||rt.enabled||i._hasPointLabels)&&(s=this.initDataLabels(T),d.forEach(I=>{var V;const n=I.dataLabels||[];for(j=L(l(rt,I.dlOptions||((V=I.options)===null||V===void 0?void 0:V.dataLabels))),j.forEach((g,m)=>{var W,F=g.enabled&&(!I.isNull||I.dataLabelOnNull)&&f(I,g);const N=I.connectors?I.connectors[m]:I.connector,et=g.style||{};let nt={},at=n[m],ht=!at;const pt=E(g.distance,I.labelDistance);if(F){var D=E(g[I.formatPrefix+"Format"],g.format),M=I.getLabelConfig();if(M=X(D)?Z(D,M,a):(g[I.formatPrefix+"Formatter"]||g.formatter).call(M,g),D=g.rotation,a.styledMode||(et.color=E(g.color,et.color,R(i.color)?i.color:void 0,"#000000"),et.color==="contrast"?(I.contrastColor=_.getContrast(I.color||i.color),et.color=!X(pt)&&g.inside||0>(pt||0)||u.stacking?I.contrastColor:q):delete I.contrastColor,u.cursor&&(et.cursor=u.cursor)),nt={r:g.borderRadius||0,rotation:D,padding:g.padding,zIndex:1},!a.styledMode){const{backgroundColor:Q,borderColor:U}=g;nt.fill=Q==="auto"?I.color:Q,nt.stroke=U==="auto"?I.color:U,nt["stroke-width"]=g.borderWidth}b(nt,(Q,U)=>{typeof Q>"u"&&delete nt[U]})}!at||F&&X(M)&&!!at.div==!!g.useHTML&&(at.rotation&&g.rotation||at.rotation===g.rotation)||(at=void 0,ht=!0,N&&I.connector&&(I.connector=I.connector.destroy(),I.connectors&&(I.connectors.length===1?delete I.connectors:delete I.connectors[m]))),F&&X(M)&&(at?nt.text=M:(at=D?_.text(M,0,0,g.useHTML).addClass("highcharts-data-label"):_.label(M,0,0,g.shape,void 0,void 0,g.useHTML,void 0,"data-label"))&&at.addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(g.className||"")+(g.useHTML?" highcharts-tracker":"")),at&&(at.options=g,at.attr(nt),a.styledMode||at.css(et).shadow(g.shadow),(F=g[I.formatPrefix+"TextPath"]||g.textPath)&&!g.useHTML&&(at.setTextPath(((W=I.getDataLabelPath)===null||W===void 0?void 0:W.call(I,at))||I.graphic,F),I.dataLabelPath&&!F.enabled&&(I.dataLabelPath=I.dataLabelPath.destroy())),at.added||at.add(s),i.alignDataLabel(I,at,g,void 0,ht),at.isActive=!0,n[m]&&n[m]!==at&&n[m].destroy(),n[m]=at))}),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,a,u){const _=this.chart,r=e.align,S=e.verticalAlign,$=d.box?0:d.padding||0;let{x:q=0,y:rt=0}=e,j,s;return j=(t.x||0)+$,0>j&&(r==="right"&&0<=q?(e.align="left",e.inside=!0):q-=j,s=!0),j=(t.x||0)+i.width-$,j>_.plotWidth&&(r==="left"&&0>=q?(e.align="right",e.inside=!0):q+=_.plotWidth-j,s=!0),j=t.y+$,0>j&&(S==="bottom"&&0<=rt?(e.verticalAlign="top",e.inside=!0):rt-=j,s=!0),j=(t.y||0)+i.height-$,j>_.plotHeight&&(S==="top"&&0>=rt?(e.verticalAlign="bottom",e.inside=!0):rt+=_.plotHeight-j,s=!0),s&&(e.x=q,e.y=rt,d.placed=!u,d.align(e,void 0,a)),s}function l(d,e){let t=[],i;if(H(d)&&!H(e))t=d.map(function(a){return x(a,e)});else if(H(e)&&!H(d))t=e.map(function(a){return x(d,a)});else if(!H(d)&&!H(e))t=x(d,e);else if(H(d)&&H(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,a){const u=this.chart,_=u.inverted,r=this.xAxis,S=r.reversed,$=_?e.height/2:e.width/2;d=(d=d.pointWidth)?d/2:0,e.startXPos=_?a.x:S?-$-d:r.width-$+d,e.startYPos=_?S?this.yAxis.height-$+d:-$-d:a.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=C,d.initDataLabels=k,d.alignDataLabel=v,d.drawDataLabels=w,d.justifyDataLabel=o,d.setDataLabelStartPos=p)}}(c||(c={})),c}),ot(A,"Series/Column/ColumnDataLabel.js",[A["Core/Series/DataLabel.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{series:K}=P,{merge:Z,pick:X}=G;var Y;return function(O){function H(x,b,E,L,c){let y=this.chart.inverted;var v=x.series;let f=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0;v=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0;var C=x.dlBox||x.shapeArgs;let k=X(x.below,x.plotY>X(this.translatedThreshold,v)),w=X(E.inside,!!this.options.stacking);C&&(L=Z(C),0>L.y&&(L.height+=L.y,L.y=0),C=L.y+L.height-v,0<C&&C<L.height&&(L.height-=C),y&&(L={x:v-L.y-L.height,y:f-L.x-L.width,width:L.height,height:L.width}),w||(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||w?"center":k?"right":"left"),E.verticalAlign=X(E.verticalAlign,y||w?"middle":k?"top":"bottom"),K.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(K),G.pushUnique(R,x)&&(x.prototype.alignDataLabel=H)}}(Y||(Y={})),Y}),ot(A,"Series/Bar/BarSeries.js",[A["Series/Column/ColumnSeries.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{extend:K,merge:Z}=G;class X extends B{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return X.defaultOptions=Z(B.defaultOptions,{}),K(X.prototype,{inverted:!0}),P.registerSeriesType("bar",X),X}),ot(A,"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/>"}}}),ot(A,"Series/Scatter/ScatterSeries.js",[A["Series/Scatter/ScatterSeriesDefaults.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G){const{column:K,line:Z}=P.seriesTypes,{addEvent:X,extend:Y,merge:O}=G;class H extends Z{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 f="plot"+y.toUpperCase(),C,k;if(b[y]&&!L.isNull){var w=x[y+"Axis"];k=b[y]*w.transA,w&&!w.isLog&&(C=Math.max(0,L[f]-k),w=Math.min(w.len,L[f]+k),v=1e4*Math.sin(c+v*E),v-=Math.floor(v),L[f]=C+(w-C)*v,y==="x"&&(L.clientX=L.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return H.defaultOptions=O(Z.defaultOptions,B),Y(H.prototype,{drawTracker:K.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),X(H,"afterTranslate",function(){this.applyJitter()}),P.registerSeriesType("scatter",H),H}),ot(A,"Series/CenteredUtilities.js",[A["Core/Globals.js"],A["Core/Series/Series.js"],A["Core/Utilities.js"]],function(B,P,G){const{deg2rad:K}=B,{fireEvent:Z,isNumber:X,pick:Y,relativeLength:O}=G;var H;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),f=x.thickness;var C=x.size;let k=x.innerSize||0;for(typeof C=="string"&&(C=parseFloat(C)),typeof k=="string"&&(k=parseFloat(k)),x=[Y(y[0],"50%"),Y(y[1],"50%"),Y(C&&0>C?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)C=x[y],b=2>y||y===2&&/%$/.test(C),x[y]=O(C,[L,c,v,x[2]][y])+(b?E:0);return x[3]>x[2]&&(x[3]=x[2]),X(f)&&2*f<x[2]&&0<f&&(x[3]=x[2]-2*f),Z(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:K*(x+-90),end:K*(b+-90)}}}(H||(H={})),H}),ot(A,"Series/Pie/PiePoint.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Series/Point.js"],A["Core/Utilities.js"]],function(B,P,G){const{setAnimation:K}=B,{addEvent:Z,defined:X,extend:Y,isNumber:O,pick:H,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=H(this.name,"Slice");const E=L=>{this.slice(L.type==="select")};return Z(this,"select",E),Z(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=H(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(f=>{this[f]&&this[f][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;K(c,y.chart),H(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,f,C]=E.center,k=C/2,w=E.chart.plotWidth,o=E.chart.plotLeft;E=b.alignment==="left";const{x:l,y:p}=b;return L.crookDistance?(b=R(L.crookDistance,1),b=E?v+k+(w+o-v-k)*(1-b):o+(v-k)*b):b=v+(f-p)*Math.tan((this.angle||0)-Math.PI/2),L=[["M",l,p]],(E?b<=l&&b>=c.x:b>=l&&b<=c.x)&&L.push(["L",b,p]),L.push(["L",c.x,c.y],["L",y.x,y.y]),L}}}),x}),ot(A,"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}}}}),ot(A,"Series/Pie/PieSeries.js",[A["Series/CenteredUtilities.js"],A["Series/Column/ColumnSeries.js"],A["Core/Globals.js"],A["Series/Pie/PiePoint.js"],A["Series/Pie/PieSeriesDefaults.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/Symbols.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z,X,Y,O,H){const{getStartAndEndRadians:R}=B;({noop:G}=G);const{clamp:x,extend:b,fireEvent:E,merge:L,pick:c,relativeLength:y}=H;class v extends X{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(C){const k=this,w=k.points,o=k.startAngleRad;C||w.forEach(function(l){const p=l.graphic,h=l.shapeArgs;p&&h&&(p.attr({r:c(l.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 C=this.startAngleRad,k=this.endAngleRad,w=this.options;let o,l;this.total===0&&this.center?(o=this.center[0],l=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(o,l,this.center[1]/2,0,C,k).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:O.arc(o,l,this.center[2]/2,0,{start:C,end:k,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":w.borderWidth,fill:w.fillColor||"none",stroke:w.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const C=this.chart.renderer;this.points.forEach(function(k){k.graphic&&k.hasNewShapeType()&&(k.graphic=k.graphic.destroy()),k.graphic||(k.graphic=C[k.shapeType](k.shapeArgs).add(k.series.group),k.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(C,k,w){const o=this.center,l=this.radii?this.radii[w.index]||0:o[2]/2;return C=Math.asin(x((C-o[1])/(l+w.labelDistance),-1,1)),o[0]+(k?-1:1)*Math.cos(C)*(l+w.labelDistance)+(0<w.labelDistance?(k?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const C=this,k=C.chart;let w,o,l,p;this.drawEmpty(),C.group&&!k.styledMode&&C.group.shadow(C.options.shadow),C.points.forEach(function(h){const d={};o=h.graphic,!h.isNull&&o?(p=h.shapeArgs,w=h.getTranslate(),k.styledMode||(l=C.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(o.setRadialReference(C.center).attr(p).attr(w),k.styledMode||o.attr(l).attr({"stroke-linejoin":"round"}),h.delayedRendering=!1):(o.setRadialReference(C.center),k.styledMode||L(!0,d,l),L(!0,d,p,w),o.animate(d)),o.attr({visibility:h.visible?"inherit":"hidden"}),o.addClass(h.getClassName(),!0)):o&&(h.graphic=o.destroy())})}sortByAngle(C,k){C.sort(function(w,o){return typeof w.angle<"u"&&(o.angle-w.angle)*k})}translate(C){E(this,"translate"),this.generatePoints();var k=this.options;const w=k.slicedOffset,o=w+(k.borderWidth||0);var l=R(k.startAngle,k.endAngle);const p=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-p;const h=this.points,d=k.dataLabels.distance;k=k.ignoreHiddenPoint;const e=h.length;let t,i,a,u=0;for(C||(this.center=C=this.getCenter()),i=0;i<e;i++){a=h[i];var _=p+u*l;!a.isValid()||k&&!a.visible||(u+=a.percentage/100);var r=p+u*l,S={x:C[0],y:C[1],r:C[2]/2,innerR:C[3]/2,start:Math.round(1e3*_)/1e3,end:Math.round(1e3*r)/1e3};a.shapeType="arc",a.shapeArgs=S,a.labelDistance=c(a.options.dataLabels&&a.options.dataLabels.distance,d),a.labelDistance=y(a.labelDistance,S.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,a.labelDistance),r=(r+_)/2,r>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(r)*w),translateY:Math.round(Math.sin(r)*w)},S=Math.cos(r)*C[2]/2,t=Math.sin(r)*C[2]/2,a.tooltipPos=[C[0]+.7*S,C[1]+.7*t],a.half=r<-Math.PI/2||r>Math.PI/2?1:0,a.angle=r,_=Math.min(o,a.labelDistance/5),a.labelPosition={natural:{x:C[0]+S+Math.cos(r)*a.labelDistance,y:C[1]+t+Math.sin(r)*a.labelDistance},computed:{},alignment:0>a.labelDistance?"center":a.half?"right":"left",connectorPosition:{breakAt:{x:C[0]+S+Math.cos(r)*_,y:C[1]+t+Math.sin(r)*_},touchingSliceAt:{x:C[0]+S,y:C[1]+t}}}}E(this,"afterTranslate")}updateTotals(){const C=this.points,k=C.length,w=this.options.ignoreHiddenPoint;let o,l,p=0;for(o=0;o<k;o++)l=C[o],!l.isValid()||w&&!l.visible||(p+=l.y);for(this.total=p,o=0;o<k;o++)l=C[o],l.percentage=0<p&&(l.visible||!w)?l.y/p*100:0,l.total=p}}return v.defaultOptions=L(X.defaultOptions,Z),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:K,requireSorting:!1,searchPoint:G,trackerGroups:["group","dataLabelsGroup"]}),Y.registerSeriesType("pie",v),v}),ot(A,"Series/Pie/PieDataLabel.js",[A["Core/Series/DataLabel.js"],A["Core/Globals.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z){const{noop:X}=P,{distribute:Y}=G,{series:O}=K,{arrayMax:H,clamp:R,defined:x,merge:b,pick:E,relativeLength:L}=Z;var c;return function(y){function v(){const o=this,l=o.data,p=o.chart,h=o.options.dataLabels||{},d=h.connectorPadding,e=p.plotWidth,t=p.plotHeight,i=p.plotLeft,a=Math.round(p.chartWidth/3),u=o.center,_=u[2]/2,r=u[1],S=[[],[]],$=[0,0,0,0],q=o.dataLabelPositioners;let rt,j,s,T,z,I,V,n,g,m,W,F;o.visible&&(h.enabled||o._hasPointLabels)&&(l.forEach(function(N){N.dataLabel&&N.visible&&N.dataLabel.shortened&&(N.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),N.dataLabel.shortened=!1)}),O.prototype.drawDataLabels.apply(o),l.forEach(function(N){N.dataLabel&&(N.visible?(S[N.half].push(N),N.dataLabel._pos=null,!x(h.style.width)&&!x(N.options.dataLabels&&N.options.dataLabels.style&&N.options.dataLabels.style.width)&&N.dataLabel.getBBox().width>a&&(N.dataLabel.css({width:Math.round(.7*a)+"px"}),N.dataLabel.shortened=!0)):(N.dataLabel=N.dataLabel.destroy(),N.dataLabels&&N.dataLabels.length===1&&delete N.dataLabels))}),S.forEach((N,et)=>{const nt=N.length,at=[];let ht,pt=0;if(nt){if(o.sortByAngle(N,et-.5),0<o.maxLabelDistance){var D=Math.max(0,r-_-o.maxLabelDistance);ht=Math.min(r+_+o.maxLabelDistance,p.plotHeight),N.forEach(function(M){0<M.labelDistance&&M.dataLabel&&(M.top=Math.max(0,r-_-M.labelDistance),M.bottom=Math.min(r+_+M.labelDistance,p.plotHeight),pt=M.dataLabel.getBBox().height||21,M.distributeBox={target:M.labelPosition.natural.y-M.top+pt/2,size:pt,rank:M.y},at.push(M.distributeBox))}),D=ht+pt-D,Y(at,D,D/5)}for(W=0;W<nt;W++){if(rt=N[W],I=rt.labelPosition,T=rt.dataLabel,m=rt.visible===!1?"hidden":"inherit",g=D=I.natural.y,at&&x(rt.distributeBox)&&(typeof rt.distributeBox.pos>"u"?m="hidden":(V=rt.distributeBox.size,g=q.radialDistributionY(rt))),delete rt.positionIndex,h.justify)n=q.justify(rt,_,u);else switch(h.alignTo){case"connectors":n=q.alignToConnectors(N,et,e,i);break;case"plotEdges":n=q.alignToPlotEdges(T,et,e,i);break;default:n=q.radialDistributionX(o,rt,g,D)}T._attr={visibility:m,align:I.alignment},F=rt.options.dataLabels||{},T._pos={x:n+E(F.x,h.x)+({left:d,right:-d}[I.alignment]||0),y:g+E(F.y,h.y)-T.getBBox().height/2},I&&(I.computed.x=n,I.computed.y=g),E(h.crop,!0)&&(z=T.getBBox().width,D=null,n-z<d&&et===1?(D=Math.round(z-n+d),$[3]=Math.max(D,$[3])):n+z>e-d&&et===0&&(D=Math.round(n+z-e+d),$[1]=Math.max(D,$[1])),0>g-V/2?$[0]=Math.max(Math.round(-g+V/2),$[0]):g+V/2>t&&($[2]=Math.max(Math.round(g+V/2-t),$[2])),T.sideOverflow=D)}}}),H($)===0||this.verifyDataLabelOverflow($))&&(this.placeDataLabels(),this.points.forEach(function(N){if(F=b(h,N.options.dataLabels),j=E(F.connectorWidth,1)){let et;s=N.connector,(T=N.dataLabel)&&T._pos&&N.visible&&0<N.labelDistance?(m=T._attr.visibility,(et=!s)&&(N.connector=s=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+N.colorIndex+(N.className?" "+N.className:"")).add(o.dataLabelsGroup),p.styledMode||s.attr({"stroke-width":j,stroke:F.connectorColor||N.color||"#666666"})),s[et?"attr":"animate"]({d:N.getConnectorPath()}),s.attr("visibility",m)):s&&(N.connector=s.destroy())}}))}function f(){this.points.forEach(function(o){let l=o.dataLabel,p;l&&o.visible&&((p=l._pos)?(l.sideOverflow&&(l._attr.width=Math.max(l.getBBox().width-l.sideOverflow,0),l.css({width:l._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),l.shortened=!0),l.attr(l._attr),l[l.moved?"animate":"attr"](p),l.moved=!0):l&&l.attr({y:-9999})),delete o.distributeBox},this)}function C(o){let l=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(l[2]-Math.max(o[1],o[3]),d):(e=Math.max(l[2]-o[1]-o[3],d),l[0]+=(o[3]-o[1])/2),h[1]!==null?e=R(e,d,l[2]-Math.max(o[0],o[2])):(e=R(e,d,l[2]-o[0]-o[2]),l[1]+=(o[0]-o[2])/2),e<l[2]?(l[2]=e,l[3]=Math.min(p.thickness?Math.max(0,e-2*p.thickness):Math.max(0,L(p.innerSize||0,e)),e),this.translate(l),this.drawDataLabels&&this.drawDataLabels()):t=!0),t}const k=[],w={radialDistributionY:function(o){return o.top+o.distributeBox.pos},radialDistributionX:function(o,l,p,h){return o.getX(p<l.top+2||p>l.bottom-2?h:p,l.half,l)},justify:function(o,l,p){return p[0]+(o.half?-1:1)*(l+o.labelDistance)},alignToPlotEdges:function(o,l,p,h){return o=o.getBBox().width,l?o+h:p-o-h},alignToConnectors:function(o,l,p,h){let d=0,e;return o.forEach(function(t){e=t.dataLabel.getBBox().width,e>d&&(d=e)}),l?d+h:p-d-h}};y.compose=function(o){B.compose(O),Z.pushUnique(k,o)&&(o=o.prototype,o.dataLabelPositioners=w,o.alignDataLabel=X,o.drawDataLabels=v,o.placeDataLabels=f,o.verifyDataLabelOverflow=C)}}(c||(c={})),c}),ot(A,"Extensions/OverlappingDataLabels.js",[A["Core/Chart/Chart.js"],A["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"})}),Z(x,"afterHideOverlappingLabel")):R.attr({opacity:b})),R.isOld=!0),E}const{addEvent:K,fireEvent:Z,isArray:X,isNumber:Y,objectEach:O,pick:H}=P;K(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=H(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,f,C=!1;var k=function(w){let o,l;var p;let h=w.box?0:w.padding||0,d=p=0,e,t;if(w&&(!w.alignAttr||w.placed))return o=w.alignAttr||{x:w.attr("x"),y:w.attr("y")},l=w.parentGroup,w.width||(p=w.getBBox(),w.width=p.width,w.height=p.height,p=E.fontMetrics(w.element).h),e=w.width-2*h,(t={left:"0",center:"0.5",right:"1"}[w.alignValue])?d=+t*e:Y(w.x)&&Math.round(w.x)!==w.translateX&&(d=w.x-w.translateX),{x:o.x+(l.translateX||0)+h-(d||0),y:o.y+(l.translateY||0)+h-p,width:w.width-2*h,height:w.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(w,o){return(o.labelrank||0)-(w.labelrank||0)}),c=0;c<b;c++)for(v=(k=R[c])&&k.absoluteBox,L=c+1;L<b;++L)f=(y=R[L])&&y.absoluteBox,!v||!f||k===y||k.newOpacity===0||y.newOpacity===0||k.visibility==="hidden"||y.visibility==="hidden"||f.x>=v.x+v.width||f.x+f.width<=v.x||f.y>=v.y+v.height||f.y+f.height<=v.y||((k.labelrank<y.labelrank?k:y).newOpacity=0);R.forEach(function(w){G(w,x)&&(C=!0)}),C&&Z(x,"afterHideAllOverlappingLabels")}}),ot(A,"Extensions/BorderRadius.js",[A["Core/Defaults.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Utilities.js"]],function(B,P,G,K,Z,X){const{defaultOptions:Y}=B;({seriesTypes:B}=G);const{addEvent:O,extend:H,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(K.symbolCustomAttribs.indexOf("borderRadius")===-1){K.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const c=Z.prototype.symbols.arc;Z.prototype.symbols.arc=function(v,f,C,k,w={}){v=c(v,f,C,k,w);const{innerR:o=0,r:l=C,start:p=0,end:h=0}=w;if(w.open||!w.borderRadius)return v;for(C=h-p,f=Math.sin(C/2),w=Math.max(Math.min(b(w.borderRadius||0,l-o),(l-o)/2,l*f/(1+f)),0),C=Math.min(w,C/Math.PI*2*o),f=v.length-1;f--;){let _,r,S;k=v;var d=f,e=1<f?C:w,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"||(S=i,r=t):(S=t,r=i,_=!0),S&&r&&r.params){t=r[1];var a=r[5];i=r.params;const{start:$,end:q,cx:rt,cy:j}=i;var u=a?t-e:t+e;const s=u?Math.asin(e/u):0;a=a?s:-s,u*=Math.cos(s),_?(i.start=$+a,S[1]=rt+u*Math.cos($),S[2]=j+u*Math.sin($),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=q-a,r[6]=rt+t*Math.cos(i.end),r[7]=j+t*Math.sin(i.end),k.splice(d+1,0,["A",e,e,0,0,1,rt+u*Math.cos(q),j+u*Math.sin(q)])),r[4]=Math.abs(i.end-i.start)<Math.PI?0:1}}return v};const y=Z.prototype.symbols.roundedRect;Z.prototype.symbols.roundedRect=function(v,f,C,k,w={}){const o=y(v,f,C,k,w),{r:l=0,brBoxHeight:p=k,brBoxY:h=f}=w;var d=f-h,e=h+p-(f+k);w=-.1<d-l?0:l;const t=-.1<e-l?0:l;var i=Math.max(w&&d,0);const a=Math.max(t&&e,0);e=[v+w,f],d=[v+C-w,f];const u=[v+C,f+w],_=[v+C,f+k-t],r=[v+C-t,f+k],S=[v+t,f+k],$=[v,f+k-t],q=[v,f+w];if(i){const rt=Math.sqrt(Math.pow(w,2)-Math.pow(w-i,2));e[0]-=rt,d[0]+=rt,u[1]=q[1]=f+w-i}return k<w-i&&(i=Math.sqrt(Math.pow(w,2)-Math.pow(w-i-k,2)),u[0]=_[0]=v+C-w+i,r[0]=Math.min(u[0],r[0]),S[0]=Math.max(_[0],S[0]),$[0]=q[0]=v+w-i,u[1]=q[1]=f+k),a&&(i=Math.sqrt(Math.pow(t,2)-Math.pow(t-a,2)),r[0]+=i,S[0]-=i,_[1]=$[1]=f+k-t+a),k<t-a&&(k=Math.sqrt(Math.pow(t,2)-Math.pow(t-a-k,2)),u[0]=_[0]=v+C-t+k,d[0]=Math.min(u[0],d[0]),e[0]=Math.max(_[0],e[0]),$[0]=q[0]=v+t-k,_[1]=$[1]=f),o.length=0,o.push(["M",...e],["L",...d],["A",w,w,0,0,1,...u],["L",..._],["A",t,t,0,0,1,...r],["L",...S],["A",t,t,0,0,1,...$],["L",...q],["A",w,w,0,0,1,...e],["Z"]),o},O(B.pie,"afterTranslate",function(){const v=L(this.options.borderRadius);for(const f of this.points){const C=f.shapeArgs;C&&(C.borderRadius=b(v.radius,(C.r||0)-(C.innerR||0)))}}),O(P,"afterColumnTranslate",function(){var v,f;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){const{options:o,yAxis:l}=this,p=o.stacking==="percent";var C=(f=(v=Y.plotOptions)===null||v===void 0?void 0:v[this.type])===null||f===void 0?void 0:f.borderRadius;v=L(o.borderRadius,R(C)?C:{}),f=l.options.reversed;for(const h of this.points)if({shapeArgs:C}=h,h.shapeType==="roundedRect"&&C){const{width:d=0,height:e=0,y:t=0}=C;var k=t,w=e;v.scope==="stack"&&h.stackTotal&&(k=l.translate(p?100:h.stackTotal,!1,!0,!1,!0),w=l.translate(o.threshold||0,!1,!0,!1,!0),w=this.crispCol(0,Math.min(k,w),0,Math.abs(k-w)),k=w.y,w=w.height);const i=(h.negative?-1:1)*(f?-1:1)===-1;let a=v.where;!a&&this.is("waterfall")&&Math.abs((h.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(a="all"),a||(a="end");const u=Math.min(b(v.radius,d),d/2,a==="all"?e/2:1/0)||0;a==="end"&&(i&&(k-=u),w+=u),H(C,{brBoxHeight:w,brBoxY:k,r:u})}}},{order:9})}return P={optionsToObject:L},P}),ot(A,"Core/Responsive.js",[A["Core/Utilities.js"]],function(B){const{diffObjects:P,extend:G,find:K,merge:Z,pick:X,uniqueKey:Y}=B;var O;return function(H){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(f=>{typeof f._id>"u"&&(f._id=Y()),this.matchResponsiveRule(f,v)},this),L=Z(...v.map(f=>K((c||{}).rules||[],C=>C._id===f)).map(f=>f&&f.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=[];H.compose=function(E){return B.pushUnique(b,E)&&G(E.prototype,{matchResponsiveRule:R,setResponsive:x}),E}}(O||(O={})),O}),ot(A,"masters/highcharts.src.js",[A["Core/Globals.js"],A["Core/Utilities.js"],A["Core/Defaults.js"],A["Core/Animation/Fx.js"],A["Core/Animation/AnimationUtilities.js"],A["Core/Renderer/HTML/AST.js"],A["Core/Templating.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Renderer/HTML/HTMLElement.js"],A["Core/Renderer/HTML/HTMLRenderer.js"],A["Core/Axis/Axis.js"],A["Core/Axis/DateTimeAxis.js"],A["Core/Axis/LogarithmicAxis.js"],A["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],A["Core/Axis/Tick.js"],A["Core/Tooltip.js"],A["Core/Series/Point.js"],A["Core/Pointer.js"],A["Core/Legend/Legend.js"],A["Core/Chart/Chart.js"],A["Core/Axis/Stacking/StackingAxis.js"],A["Core/Axis/Stacking/StackItem.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Series/Column/ColumnSeries.js"],A["Series/Column/ColumnDataLabel.js"],A["Series/Pie/PieSeries.js"],A["Series/Pie/PieDataLabel.js"],A["Core/Series/DataLabel.js"],A["Core/Responsive.js"],A["Core/Color/Color.js"],A["Core/Time.js"]],function(B,P,G,K,Z,X,Y,O,H,R,x,b,E,L,c,y,v,f,C,k,w,o,l,p,h,d,e,t,i,a,u,_,r,S){return B.animate=Z.animate,B.animObject=Z.animObject,B.getDeferredAnimation=Z.getDeferredAnimation,B.setAnimation=Z.setAnimation,B.stop=Z.stop,B.timers=K.timers,B.AST=X,B.Axis=E,B.Chart=o,B.chart=o.chart,B.Fx=K,B.Legend=w,B.PlotLineOrBand=y,B.Point=C,B.Pointer=k,B.Series=h,B.StackItem=p,B.SVGElement=H,B.SVGRenderer=R,B.Templating=Y,B.Tick=v,B.Time=S,B.Tooltip=f,B.Color=r,B.color=r.parse,b.compose(R),x.compose(H),k.compose(o),w.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),a.compose(i),y.compose(E),_.compose(o),l.compose(E,o,h),f.compose(k),B}),A["masters/highcharts.src.js"]._modules=A,A["masters/highcharts.src.js"]})}(ce)),ce.exports}(function(lt,it){(function(ot,A){lt.exports=A(zs(),Je)})(window,function(ot,A){return P=[function(K,Z){K.exports=ot},function(K,Z){K.exports=A},function(K,Y,X){X.r(Y),X.d(Y,"Chart",function(){return f}),X.d(Y,"default",function(){return C});var Y=X(0),O=X.n(Y);function H(k,w){return function o(l,p,h){function d(e,t){!O.a.isObject(e,!h)||O.a.isClass(e)||O.a.isDOMElement(e)?l[t]=p[t]:l[t]=o(l[t]||O.a.isArray(e)?[]:{},e,h)}return O.a.isArray(p)?p.forEach(d):O.a.objectEach(p,d),l}({},k,w)}var R=X(1);function x(k){return(x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(k)}function b(k){return function(w){if(Array.isArray(w))return E(w)}(k)||function(w){if(typeof Symbol<"u"&&w[Symbol.iterator]!=null||w["@@iterator"]!=null)return Array.from(w)}(k)||function(w,o){var l;if(w)return typeof w=="string"?E(w,o):(l=(l=Object.prototype.toString.call(w).slice(8,-1))==="Object"&&w.constructor?w.constructor.name:l)==="Map"||l==="Set"?Array.from(w):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?E(w,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,w){(w==null||w>k.length)&&(w=k.length);for(var o=0,l=new Array(w);o<w;o++)l[o]=k[o];return l}function L(k,w){var o,l=Object.keys(k);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(k),w&&(o=o.filter(function(p){return Object.getOwnPropertyDescriptor(k,p).enumerable})),l.push.apply(l,o)),l}function c(k){for(var w=1;w<arguments.length;w++){var o=arguments[w]!=null?arguments[w]:{};w%2?L(Object(o),!0).forEach(function(l){var p,h;p=k,h=o[l=l],(l=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)}(l))in p?Object.defineProperty(p,l,{value:h,enumerable:!0,configurable:!0,writable:!0}):p[l]=h}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(o)):L(Object(o)).forEach(function(l){Object.defineProperty(k,l,Object.getOwnPropertyDescriptor(o,l))})}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,w){return w.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 l;(l=this.chart).update.apply(l,[H(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,H(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 l=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](l.value,H(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,[H(h,o.deepCopyOnUpdate)].concat(b(o.updateArgs)))},{deep:!0}),Object(R.onBeforeUnmount)(function(){p.value&&p.value.destroy()}),{chart:p,chartContainer:l,props:o}}})},f=v(O.a,R.version||X.n(R).a.version);function C(k){var w=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};k.component(w.tagName||"highcharts",v(w.highcharts||O.a,k.version))}}],G={},B.m=P,B.c=G,B.d=function(K,Z,X){B.o(K,Z)||Object.defineProperty(K,Z,{enumerable:!0,get:X})},B.r=function(K){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(K,"__esModule",{value:!0})},B.t=function(K,Z){if(1&Z&&(K=B(K)),8&Z||4&Z&&typeof K=="object"&&K&&K.__esModule)return K;var X=Object.create(null);if(B.r(X),Object.defineProperty(X,"default",{enumerable:!0,value:K}),2&Z&&typeof K!="string")for(var Y in K)B.d(X,Y,(function(O){return K[O]}).bind(null,Y));return X},B.n=function(K){var Z=K&&K.__esModule?function(){return K.default}:function(){return K};return B.d(Z,"a",Z),Z},B.o=function(K,Z){return Object.prototype.hasOwnProperty.call(K,Z)},B.p="",B(B.s=2);function B(K){var Z;return(G[K]||(Z=G[K]={i:K,l:!1,exports:{}},P[K].call(Z.exports,Z,Z.exports,B),Z.l=!0,Z)).exports}var P,G})})(Ne);var ne=Ne.exports;const Rs={class:"w-88vw flex flex-col md:w-92vw"},Ns={class:"mx-auto max-w-screen-xl px-4 py-4 lg:px-6 lg:py-6"},Hs={class:"lg:grid lg:grid-cols-3 sm:gap-6 xl:gap-10 space-y-8 lg:space-y-0"},$s={class:"mx-auto max-w-[16rem] flex flex-col border border-gray-100 rounded-lg bg-white p-6 text-center text-gray-900 shadow dark:border-gray-600 dark:bg-gray-800 xl:p-8 dark:text-white"},Ws={class:"mb-4 text-2xl font-semibold"},Fs={class:"my-8 flex items-baseline justify-center"},Gs={class:"mr-2 text-5xl font-extrabold"},Xs={class:"mt-8 flex flex-col gap-8"},Us=Dt({__name:"Statistics",props:{rank:null},setup(lt){const it=lt,{t:ot}=Vt(),A=kt(()=>it.rank);function B(){const P=[];return P.push({title:"standings.statistics.head_data.problems",data:A.value.contest.problems.length}),P.push({title:"standings.statistics.head_data.teams",data:A.value.teams.length}),P.push({title:"standings.statistics.head_data.submissions",data:A.value.getSubmissions().length}),P}return(P,G)=>(ut(),ft("div",Rs,[st("section",null,[st("div",Ns,[st("div",Hs,[(ut(!0),ft(Lt,null,It(B(),K=>(ut(),ft("div",{key:K.title},[st("div",$s,[st("h3",Ws,yt(J(ot)(K.title)),1),st("div",Fs,[st("span",Gs,yt(K.data),1)])])]))),128))])])]),st("div",Xs,[st("div",null,[At(J(ne.Chart),{options:("getSubmitChart"in P?P.getSubmitChart:J(js))(J(A))},null,8,["options"])]),st("div",null,[At(J(ne.Chart),{options:("getProblemChart"in P?P.getProblemChart:J(Ds))(J(A))},null,8,["options"])]),st("div",null,[At(J(ne.Chart),{options:("getTeamChart"in P?P.getTeamChart:J(Is))(J(A))},null,8,["options"])])])]))}}),Ys={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"},Vs={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},qs={class:"font-semibold text-gray-900 dark:text-white"},Ks={class:"font-semibold text-gray-900 dark:text-white"},Zs={class:"inline-flex items-stretch font-mono -space-x-px"},Js=st("span",{class:"sr-only"},"Previous",-1),Qs=st("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[st("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),to=[Js,Qs],eo={key:0},io=["onClick"],so={"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"},oo=["onClick"],no={key:1},ro=st("span",{class:"sr-only"},"Next",-1),ao=st("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[st("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),lo=[ro,ao],se="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",ho=Dt({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(lt,{emit:it}){const ot=lt,A=kt({get(){return ot.pagination},set(B){it("update:pagination",B)}});return(B,P)=>(ut(),ft("nav",Ys,[st("span",Vs,[qt(" Showing "),st("span",qs,yt(J(A).currentLeft)+"-"+yt(Math.max(0,J(A).currentRight-1)),1),qt(" of "),st("span",Ks,yt(J(A).totalSize),1)]),st("ul",Zs,[st("li",null,[st("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=>J(A).onPageChange({diff:-1}))},to)]),J(A).currentPage!==0?(ut(),ft("li",eo,[st("a",{class:Pt(se),hover:"cursor-pointer",onClick:P[1]||(P[1]=G=>J(A).onPageChange({to:0}))}," 1 ")])):St("",!0),(ut(!0),ft(Lt,null,It(J(A).leftDecrPage,G=>(ut(),ft("li",{key:G},[st("a",{class:Pt(se),hover:"cursor-pointer",onClick:K=>J(A).onPageChange({to:G})},yt(G+1),9,io)]))),128)),st("li",null,[st("a",so,yt(J(A).currentPage+1),1)]),(ut(!0),ft(Lt,null,It(J(A).rightIncrPage,G=>(ut(),ft("li",{key:G},[st("a",{hover:"cursor-pointer",class:Pt(se),onClick:K=>J(A).onPageChange({to:G})},yt(G+1),9,oo)]))),128)),J(A).currentPage!==J(A).totalPage-1&&J(A).totalPage>1?(ut(),ft("li",no,[st("a",{hover:"cursor-pointer",class:Pt(se),onClick:P[2]||(P[2]=G=>J(A).onPageChange({to:J(A).totalPage-1}))},yt(J(A).totalPage),1)])):St("",!0),st("li",null,[st("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=>J(A).onPageChange({diff:1}))},lo)])])]))}});class co{constructor(){ie(this,"totalSize");ie(this,"currentPage");ie(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 it=[];let ot=1,A=this.currentPage-ot;for(;A>0;)it.push(A),ot=ot<<1,A-=ot;return it.reverse()}get rightIncrPage(){const it=[];let ot=1,A=this.currentPage+ot;for(;A+1<this.totalPage;)it.push(A),ot=ot<<1,A+=ot;return it}onPageChange(it){const ot=this.totalPage;let A=this.currentPage;if((it==null?void 0:it.to)!==void 0&&(A=it.to),(it==null?void 0:it.diff)!==void 0){const B=it.diff;A=A+B}A<0||A>=ot||(this.currentPage=A)}}const ee=lt=>(re("data-v-8bf9d695"),lt=lt(),ae(),lt),po={"mx-auto":"","w-full":"","px-4":""},uo={"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":""},fo={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":""},go={key:0,"w-48":""},mo={key:1,"w-48":""},xo={key:2,"w-68":""},yo={key:3,"w-48":""},vo={key:4},ko=ee(()=>st("div",{"i-material-symbols-search":"","mr-1":"","h-5":"","w-5":""},null,-1)),bo={class:"overflow-x-auto"},wo={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},So={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},Co=ee(()=>st("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),Mo={key:0,scope:"col",class:"px-4 py-3"},To=ee(()=>st("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),Ao=ee(()=>st("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),Po={key:1,scope:"col",class:"px-4 py-3"},_o={key:2,scope:"col",class:"px-4 py-3"},Oo={key:3,scope:"col",class:"px-4 py-3"},Lo=ee(()=>st("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),Eo={"px-4":"","py-2":""},Do={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Io={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},jo={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Bo={flex:"","items-center":""},zo={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ro={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},No={flex:"","items-center":""},Ho={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},$o={flex:"","items-center":""},Wo=Dt({__name:"SubmissionsTable",props:{rank:null,submissions:null,pageSize:null,removeBorder:{type:Boolean},enableFilter:null},setup(lt){const it=lt,ot=kt(()=>it.rank),A=kt(()=>it.enableFilter),B=kt(()=>{if(!A.value)return!1;for(const[e,t]of Object.entries(A.value))if(t===!0)return!0;return!1}),P=Tt({orgNames:[],teamIds:[],languages:[],statuses:[]}),G=kt(()=>ot.value.organizations.map(t=>({value:t,text:t}))),K=Tt([]),Z=Tt({});function X(e,t){K.value=e,Z.value=t}const Y=kt(()=>ot.value.originTeams.map(t=>({value:t.id,text:t.organization?`${t.name} - ${t.organization}`:t.name}))),O=Tt([]),H=Tt({});function R(e,t){O.value=e,H.value=t}const x=kt(()=>ot.value.languages.map(i=>({value:i,text:i}))),b=Tt([]),E=Tt({});function L(e,t){b.value=e,E.value=t}const c=kt(()=>ot.value.statuses.map(i=>({value:i,text:ye[i]}))),y=Tt([]),v=Tt({});function f(e,t){y.value=e,v.value=t}function C(e){return e.value.toString()}const k=kt(()=>it.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 a of i.teamIds)if(a===t.teamId)return!0}if(i.orgNames.length>0){const a=ot.value.teamsMap.get(t.teamId);for(const u of i.orgNames)if(u===(a==null?void 0:a.organization))return!0}if(i.languages.length>0){for(const a of i.languages)if(a===t.language)return!0}if(i.statuses.length>0){for(const a of i.statuses)if(a===t.status)return!0}return!1}).sort(Le.compare).reverse());function w(){const e={orgNames:[],teamIds:[],languages:[],statuses:[]};e.orgNames=K.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=Tt(new co);o.value.currentPage=0,o.value.pageSize=it.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 l=kt(()=>k.value.slice(o.value.currentLeft,o.value.currentRight)),p=Tt(!1);function h(e){const t="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",i=e.problemId,a=ot.value.contest.problemsMap.get(i);if(a==null||!a.balloonColor)return t}function d(e){const t=e.problemId,i=ot.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,_,r,S;const i=pe,a=ho;return ut(),ft("section",null,[st("div",po,[st("div",{relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":"",class:Pt({"shadow-md":it.removeBorder!==!0,"sm:rounded-sm":it.removeBorder!==!0})},[st("div",uo,[st("div",fo,[J(ot).contest.organization&&((u=J(A))!=null&&u.organization)?(ut(),ft("div",go,[At(J(Zt),{options:J(G),"selected-options":J(K),placeholder:J(ot).contest.organization,onSelect:X},null,8,["options","selected-options","placeholder"])])):St("",!0),(_=J(A))!=null&&_.team?(ut(),ft("div",mo,[At(J(Zt),{options:J(Y),"selected-options":J(O),placeholder:"Team",onSelect:R},null,8,["options","selected-options"])])):St("",!0),(r=J(A))!=null&&r.status?(ut(),ft("div",xo,[At(J(Zt),{options:J(c),"selected-options":J(y),placeholder:"Status","custom-attr":C,onSelect:f},null,8,["options","selected-options"])])):St("",!0),(S=J(A))!=null&&S.language&&J(x).length>0?(ut(),ft("div",yo,[At(J(Zt),{options:J(x),"selected-options":J(b),placeholder:"Language",onSelect:L},null,8,["options","selected-options"])])):St("",!0),J(B)?(ut(),ft("div",vo,[st("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:w},[ko,qt(" Filter ")])])):St("",!0)])]),st("div",bo,[st("table",wo,[st("thead",So,[st("tr",null,[Co,J(ot).contest.organization?(ut(),ft("th",Mo,yt(J(ot).contest.organization),1)):St("",!0),To,Ao,J(ot).contest.options.submissionHasTimeField?(ut(),ft("th",Po," Time ")):St("",!0),J(p)?(ut(),ft("th",_o," Memory ")):St("",!0),J(ot).contest.options.submissionHasLanguageField?(ut(),ft("th",Oo," Answer ")):St("",!0),Lo])]),st("tbody",null,[(ut(!0),ft(Lt,null,It(J(l),$=>{var q,rt,j;return ut(),ft("tr",{key:$.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[st("td",Eo,[st("span",{class:Pt(["rounded px-2 py-0.5 text-sm",[h($)]]),style:Ut(d($))},yt((q=J(ot).contest.problemsMap.get($.problemId))==null?void 0:q.label),7)]),J(ot).contest.organization?(ut(),ft("td",Do,yt((rt=J(ot).teamsMap.get($.teamId))==null?void 0:rt.organization),1)):St("",!0),st("td",Io,yt((j=J(ot).teamsMap.get($.teamId))==null?void 0:j.name),1),st("td",{scope:"row",class:Pt([$.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},yt(J(ye)[$.status]),3),J(ot).contest.options.submissionHasTimeField?(ut(),ft("td",jo,[st("div",Bo,yt(`${$.time??0} ms`),1)])):St("",!0),J(p)?(ut(),ft("td",zo," 0.47 ")):St("",!0),J(ot).contest.options.submissionHasLanguageField?(ut(),ft("td",Ro,[st("div",No,yt($.language),1)])):St("",!0),st("td",Ho,[st("div",$o,[At(i,null,{popper:Ht(()=>[qt(yt($.timestampDisplayFormatWithMilliSecond),1)]),default:Ht(()=>[qt(yt($.timestampDisplayFormatWithSecond)+" ",1)]),_:2},1024)])])])}),128))])])]),At(a,{pagination:J(o),"onUpdate:pagination":t[0]||(t[0]=$=>Bt(o)?o.value=$:null)},null,8,["pagination"])],2)])])}}});const he=Gt(Wo,[["__scopeId","data-v-8bf9d695"]]),fe=lt=>(re("data-v-cd615748"),lt=lt(),ae(),lt),Fo={class:"statistics-0"},Go=["colspan"],Xo={class:"stnd"},Uo={class:"statistics-1"},Yo=["colspan"],Vo={class:"stnd"},qo=fe(()=>st("br",null,null,-1)),Ko={class:"statistics-0"},Zo=["colspan"],Jo={class:"stnd"},Qo=fe(()=>st("br",null,null,-1)),tn={class:"statistics-1"},en=["colspan"],sn={class:"stnd"},on=fe(()=>st("br",null,null,-1)),nn={class:"statistics-0"},rn=["colspan"],an={class:"stnd"},ln={class:"statistics-1"},hn=["colspan"],cn={class:"stnd"},dn=Dt({__name:"BottomStatistics",props:{rank:null},setup(lt){const it=lt,{t:ot}=Vt(),A=kt(()=>it.rank);function B(){let Y=3;return A.value.contest.organization&&Y++,A.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 K(Y){return Y.attemptedNum===0?"NaN":`${Y.dirt}%`}function Z(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(Lt,null,[st("tr",Fo,[st("td",{class:"empty",colspan:B()},null,8,Go),st("td",Xo,[st("b",null,yt(J(ot)("standings.statistics.submitted")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[st("b",null,yt(H.statistics.submittedNum),1)]))),128))]),st("tr",Uo,[st("td",{class:"empty",colspan:B()},null,8,Yo),st("td",Vo,[st("b",null,yt(J(ot)("standings.statistics.attempted")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[st("b",null,yt(H.statistics.attemptedNum),1),qo,st("b",null," ("+yt(P(H.statistics))+") ",1)]))),128))]),st("tr",Ko,[st("td",{class:"empty",colspan:B()},null,8,Zo),st("td",Jo,[st("b",null,yt(J(ot)("standings.statistics.accepted")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[st("b",null,yt(H.statistics.acceptedNum),1),Qo,st("b",null," ("+yt(G(H.statistics))+") ",1)]))),128))]),st("tr",tn,[st("td",{class:"empty",colspan:B()},null,8,en),st("td",sn,[st("b",null,yt(J(ot)("standings.statistics.dirt")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[st("b",null,yt(H.statistics.attemptedNum-H.statistics.acceptedNum),1),on,st("b",null," ("+yt(K(H.statistics))+") ",1)]))),128))]),st("tr",nn,[st("td",{class:"empty",colspan:B()},null,8,rn),st("td",an,[st("b",null,yt(J(ot)("standings.statistics.first_solved")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[st("b",null,yt(Z(H.statistics)),1)]))),128))]),st("tr",ln,[st("td",{class:"empty",colspan:B()},null,8,hn),st("td",cn,[st("b",null,yt(J(ot)("standings.statistics.last_solved")),1)]),(ut(!0),ft(Lt,null,It(J(A).contest.problems,H=>(ut(),ft("td",{key:H.id,class:"stnd"},[st("b",null,yt(X(H.statistics)),1)]))),128))])],64))}});const pn=Gt(dn,[["__scopeId","data-v-cd615748"]]),un={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},fn=Dt({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(lt,{emit:it}){const ot=lt,A=kt({get(){return ot.isHidden},set(Z){it("update:isHidden",Z)}}),B=kt(()=>ot.rank),P=kt(()=>ot.team),G=kt(()=>ot.p),K=kt(()=>`${P.value.name} - ${G.value.problem.label}`);return(Z,X)=>{const Y=he,O=le;return ut(),Nt(O,{isHidden:J(A),"onUpdate:isHidden":X[0]||(X[0]=H=>Bt(A)?A.value=H:null),title:J(K)},{default:Ht(()=>[st("div",un,[At(Y,{"w-full":"",rank:J(B),submissions:J(G).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["isHidden","title"])}}}),gn=Dt({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(lt){const it=lt,ot=Tt(!0);function A(){ot.value=!1}const B=kt(()=>it.rank),P=kt(()=>it.team),G=kt(()=>it.p);function K(Y){return Y.isSolved?"+":Y.isWrongAnswer?"-":Y.isPending?`? ${Y.pendingCount}`:""}function Z(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 H=fn;return ut(),ft("td",{class:Pt(["stnd",[X(J(G))]])},[st("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:A},[st("div",null,yt(K(J(G))),1),st("div",null,yt(Z(J(G))),1)]),st("div",null,[J(ot)?St("",!0):(ut(),Nt(H,{key:0,isHidden:J(ot),"onUpdate:isHidden":O[0]||(O[0]=R=>Bt(ot)?ot.value=R:null),rank:J(B),team:J(P),p:J(G)},null,8,["isHidden","rank","team","p"]))])],2)}}});const mn=Gt(gn,[["__scopeId","data-v-61916fae"]]),xn={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":"","items-center":""},yn={flex:"","flex-col":"","items-start":"","gap-y-2":""},vn={key:0},kn={key:1},bn={key:2,flex:"","flex-col":"","gap-2":""},wn={key:3},Sn=Dt({__name:"TeamAwards",props:{team:null,rank:null},setup(lt){const it=lt,ot=kt(()=>it.team),A=kt(()=>it.rank),B=kt(()=>it.team.problemStatistics.filter(K=>!!K.isFirstSolved).map(K=>K.problem.label).join(",")),P=kt(()=>{const K=it.team.awards;return K.includes(Ft.GOLD)?{text:"Gold"}:K.includes(Ft.SILVER)?{text:"Silver"}:K.includes(Ft.BRONZE)?{text:"Bronze"}:K.includes(Ft.HONORABLE)?{text:"Honorable"}:null}),G=kt(()=>{let K=ot.value.rank;return A.value.contest.organization&&(K=ot.value.organizationRank),K===1?"1st Place":K===2?"2nd Place":K===3?"3rd Place":""});return(K,Z)=>(ut(),ft("div",xn,[st("div",yn,[J(P)?(ut(),ft("div",vn,yt(J(P).text)+" Medalist ",1)):St("",!0),J(G).length>0?(ut(),ft("div",kn,yt(J(G)),1)):St("",!0),J(B).length?(ut(),ft("div",bn,[st("div",null," First Solved Problem "+yt(J(B)),1)])):St("",!0),J(ot).solvedProblemNum>0?(ut(),ft("div",wn," Solved "+yt(J(ot).solvedProblemNum)+" "+yt(J(ot).solvedProblemNum>1?"Problems":"Problem"),1)):St("",!0)])]))}}),Cn={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},Mn=["onClick"],He=Dt({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(lt,{emit:it}){const ot=lt,{t:A}=Vt(),B=kt({get(){return ot.currentType},set(K){it("update:currentType",K)}});function P(K){B.value=K}const G=kt(()=>ot.types.length);return(K,Z)=>(ut(),ft("div",Cn,[(ut(!0),ft(Lt,null,It(ot.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===J(G),border:Y===0||Y+1===J(G),"border-t border-x md:border-x-0 md:border-b":Y>0&&Y+1<J(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":J(B)===X}),onClick:O=>P(X)},yt(J(A)(`type_menu.${X}`)),11,Mn))),128))]))}}),Tn=["src"],$e=Dt({__name:"Badge",props:{image:null,widthClass:null},setup(lt){const it=lt,ot=kt(()=>it.image),A=kt(()=>it.widthClass?it.widthClass:"h-8 w-8");return(B,P)=>J(ot).base64?(ut(),ft("img",{key:0,src:J(Qe)(J(ot)),alt:"badge",class:Pt([J(A)])},null,10,Tn)):St("",!0)}}),An={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},Pn={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},_n={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},On={flex:"","flex-row":"","space-x-3":""},Ln={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},En={flex:"","flex-col":"","justify-start":"","items-start":""},Dn={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},In={key:0,"w-full":"",class:"mt-[-12px]"},jn={key:1,"w-full":""},Bn={key:2,"w-full":""},we="submissions",Se="statistics",Ce="awards",zn=Dt({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(lt,{emit:it}){const ot=lt,A=kt({get(){return ot.isHidden},set(X){it("update:isHidden",X)}}),B=Tt("submissions"),P=kt(()=>ot.rank),G=kt(()=>ot.team),K=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}),Z=[we,Se,Ce];return(X,Y)=>{const O=$e,H=pe,R=He,x=he,b=Sn,E=le;return ut(),Nt(E,{isHidden:J(A),"onUpdate:isHidden":Y[1]||(Y[1]=L=>Bt(A)?A.value=L:null)},{header:Ht(()=>[st("div",An,[st("div",Pn,[st("div",_n,[st("div",On,[J(G).badge?(ut(),Nt(O,{key:0,image:J(G).badge,"width-class":"h-8 w-8"},null,8,["image"])):St("",!0),At(H,null,{popper:Ht(()=>[st("div",En,[st("div",null," TeamID: "+yt(J(G).id),1)])]),default:Ht(()=>[st("h3",Ln,yt(J(K)),1)]),_:1})]),At(R,{"current-type":J(B),"onUpdate:currentType":Y[0]||(Y[0]=L=>Bt(B)?B.value=L:null),types:Z},null,8,["current-type"])])])])]),default:Ht(()=>[st("div",Dn,[J(B)===we?(ut(),ft("div",In,[At(x,{"w-full":"",rank:J(P),submissions:J(G).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):St("",!0),J(B)===Se?(ut(),ft("div",jn,[At(J(ne.Chart),{options:("getTeamPlaceChart"in X?X.getTeamPlaceChart:J(Bs))(J(P),J(G))},null,8,["options"])])):St("",!0),J(B)===Ce?(ut(),ft("div",Bn,[At(b,{team:J(G),rank:J(P)},null,8,["team","rank"])])):St("",!0)])]),_:1},8,["isHidden"])}}}),Rn={},Nn={class:"color-gray-700 dark:color-gray-200"},Hn=st("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"},[st("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"}),st("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"}),st("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"}),st("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),st("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),st("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"}),st("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"}),st("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"}),st("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"}),st("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"}),st("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"}),st("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"}),st("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),$n=[Hn];function Wn(lt,it){return ut(),ft("div",Nn,$n)}const Fn=Gt(Rn,[["render",Wn]]),Gn={},Xn={class:"color-gray-700 dark:color-gray-200"},Un=st("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"},[st("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),Yn=[Un];function Vn(lt,it){return ut(),ft("div",Xn,Yn)}const qn=Gt(Gn,[["render",Vn]]),Kn=lt=>(re("data-v-b039cd0e"),lt=lt(),ae(),lt),Zn={key:1,class:"empty flex items-center justify-center"},Jn={flex:""},Qn={class:"float-left pl-2 font-serif"},tr={key:0},er={class:"flex-1"},ir=Kn(()=>st("div",{class:"float-right"},null,-1)),sr=Dt({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean}},setup(lt){const it=lt,ot=Tt(null),A=ti(ot),B=Tt(!0);function P(){B.value=!1}const G=kt(()=>it.rank),K=kt(()=>it.team);function Z(Y,O=!1){if(O){if(Y.awards.includes(Ft.GOLD))return"gold";if(Y.awards.includes(Ft.SILVER))return"silver";if(Y.awards.includes(Ft.BRONZE))return"bronze";if(Y.awards.includes(Ft.HONORABLE))return"honorable"}if(it.isFilter)return"filter-team";const H=(G.value.rankStatistics.getTeamSolvedNumIndex(Y.solvedProblemNum)-1)%2,R=it.ix%2;return`stand${H}${R}`}function X(){return A.value||it.ix<32}return(Y,O)=>{const H=$e,R=qn,x=Fn,b=zn,E=mn;return ut(),ft("tr",{ref_key:"el",ref:ot,class:Pt(["h-10",[it.isFilter?"filter-team":""]])},[X()?(ut(),ft("td",{key:0,class:Pt(["stnd",[Z(J(K),!0)]])},yt(J(K).rank),3)):St("",!0),J(G).contest.badge&&J(K).badge&&X()?(ut(),ft("td",Zn,[At(H,{image:J(K).badge,"width-class":"h-8 w-8"},null,8,["image"])])):St("",!0),J(G).contest.organization&&X()?(ut(),ft("td",{key:2,class:Pt(["stnd",[Z(J(K))]])},[st("div",Jn,[st("div",Qn,[J(K).organizationRank>-1?(ut(),ft("div",tr,yt(J(K).organizationRank),1)):St("",!0)]),st("div",er,yt(J(K).organization),1),ir])],2)):St("",!0),X()?(ut(),ft("td",{key:3,class:Pt(["stnd",[Z(J(K))]])},[st("div",{"cursor-pointer":"",onClick:P},[st("span",null,yt(J(K).name),1),J(K).group.includes("unofficial")?(ut(),Nt(R,{key:0,"inline-block":""})):St("",!0),J(K).group.includes("girl")?(ut(),Nt(x,{key:1,"inline-block":""})):St("",!0)]),st("div",null,[J(B)?St("",!0):(ut(),Nt(b,{key:0,isHidden:J(B),"onUpdate:isHidden":O[0]||(O[0]=L=>Bt(B)?B.value=L:null),rank:J(G),team:J(K)},null,8,["isHidden","rank","team"]))])],2)):St("",!0),X()?(ut(),ft("td",{key:4,class:Pt(["stnd",[Z(J(K))]])},yt(J(K).solvedProblemNum),3)):St("",!0),X()?(ut(),ft("td",{key:5,class:Pt(["stnd",[Z(J(K))]])},yt(J(K).penaltyToMinute),3)):St("",!0),(ut(!0),ft(Lt,null,It(J(K).problemStatistics,L=>(ut(),ft(Lt,{key:L.problem.id},[X()?(ut(),Nt(E,{key:0,rank:J(G),team:J(K),p:L},null,8,["rank","team","p"])):St("",!0)],64))),128)),X()?(ut(),ft("td",{key:6,class:Pt(["stnd",[Z(J(K))]])},yt(`${J(K).dirt}%`),3)):St("",!0)],2)}}});const or=Gt(sr,[["__scopeId","data-v-b039cd0e"]]),nr={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},rr={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},ar={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},lr={flex:"","flex-row":"","space-x-3":""},hr={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},cr={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},dr={key:0,"w-full":"",class:"mt-[-12px]"},pr={key:1,"w-full":""},ur={key:2,"w-full":""},Me="submissions",Te="statistics",Ae="awards",fr=Dt({__name:"ProblemInfoModal",props:{isHidden:{type:Boolean},rank:null,problem:null},emits:["update:isHidden"],setup(lt,{emit:it}){const ot=lt,A=kt({get(){return ot.isHidden},set(Y){it("update:isHidden",Y)}}),B=Tt("submissions"),P=kt(()=>ot.rank),G=kt(()=>ot.problem),K=kt(()=>`Problem ${G.value.label}`),Z=kt(()=>P.value.getSubmissions().filter(Y=>Y.problemId===G.value.id)),X=[Me,Te,Ae];return(Y,O)=>{const H=He,R=he,x=le;return ut(),Nt(x,{isHidden:J(A),"onUpdate:isHidden":O[1]||(O[1]=b=>Bt(A)?A.value=b:null)},{header:Ht(()=>[st("div",nr,[st("div",rr,[st("div",ar,[st("div",lr,[st("h3",hr,yt(J(K)),1)]),At(H,{"current-type":J(B),"onUpdate:currentType":O[0]||(O[0]=b=>Bt(B)?B.value=b:null),types:X},null,8,["current-type"])])])])]),default:Ht(()=>[st("div",cr,[J(B)===Me?(ut(),ft("div",dr,[At(R,{"w-full":"",rank:J(P),submissions:J(Z),"page-size":8,"remove-border":!0,"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):St("",!0),J(B)===Te?(ut(),ft("div",pr)):St("",!0),J(B)===Ae?(ut(),ft("div",ur)):St("",!0)])]),_:1},8,["isHidden"])}}}),gr=Dt({__name:"ProblemBlock",props:{rank:null,problem:null},setup(lt){const it=lt,ot=Tt(!0);function A(){ot.value=!1}const B=kt(()=>it.rank),P=kt(()=>it.problem),G=kt(()=>P.value.balloonColor);return(K,Z)=>{const X=fr;return ut(),ft("th",{key:J(P).id,class:"success","text-center":"",style:Ut([{width:"3rem"},{"background-color":J(G).background_color,color:J(G).color}])},[st("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:A},[st("div",null,yt(J(P).label),1),st("div",null,yt(J(P).statistics.acceptedNum),1)]),st("div",null,[J(ot)?St("",!0):(ut(),Nt(X,{key:0,"is-hidden":J(ot),"onUpdate:isHidden":Z[0]||(Z[0]=Y=>Bt(ot)?ot.value=Y:null),rank:J(B),problem:J(P)},null,8,["is-hidden","rank","problem"]))])],4)}}});const mr=Gt(gr,[["__scopeId","data-v-6d613751"]]),xr={class:"standings","font-mono":"","dark:text-gray-700":""},yr={class:"sticky top-0 z-99"},vr={class:"title",style:{width:"3rem"}},kr={key:0,class:"title",style:{width:"2rem"}},br={class:"title",style:{width:"3rem"}},wr={class:"title",style:{width:"4rem"}},Sr={class:"title",style:{width:"2.5rem"}},Cr=Dt({__name:"Standings",props:{rank:{}},setup(lt){const it=lt,{t:ot}=Vt(),A=kt(()=>it.rank),B=kt(()=>it.rank.teams),P=kt(()=>it.rank.teams.filter(X=>!!(it.rank.organizations&&it.rank.options.filterOrganizationMap.has(X.organization)||it.rank.options.filterTeamMap.has(X.id)))),G=kt(()=>{let Z=0;return A.value.teams.forEach(X=>{Z=Math.max(Z,X.organization.length)}),Z}),K=kt(()=>{let Z=0;return A.value.teams.forEach(X=>{Z=Math.max(Z,X.name.length)}),Z});return(Z,X)=>{const Y=mr,O=or,H=pn;return ut(),ft("div",null,[st("div",null,[st("table",xr,[st("thead",yr,[st("tr",null,[st("th",vr,yt(J(ot)("standings.place")),1),J(A).contest.badge?(ut(),ft("th",kr,yt(J(A).contest.badge),1)):St("",!0),J(A).contest.organization?(ut(),ft("th",{key:1,class:"title",style:Ut({width:`${Math.min(32,Math.ceil(J(G)*1.1))}rem`})},yt(J(A).contest.organization),5)):St("",!0),st("th",{class:"title",style:Ut({width:`${Math.min(32,Math.ceil(J(K)*1))}rem`})},yt(J(ot)("standings.team")),5),st("th",br,yt(J(ot)("standings.solved")),1),st("th",wr,yt(J(ot)("standings.penalty")),1),(ut(!0),ft(Lt,null,It(J(A).contest.problems,R=>(ut(),Nt(Y,{key:`problem-block-${R.id}`,rank:J(A),problem:R},null,8,["rank","problem"]))),128)),st("th",Sr,yt(J(ot)("standings.dirt")),1)])]),st("tbody",null,[(ut(!0),ft(Lt,null,It(J(P),(R,x)=>(ut(),Nt(O,{key:`filter-${R.id}`,ix:x,rank:J(A),team:R,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(ut(!0),ft(Lt,null,It(J(B),(R,x)=>(ut(),Nt(O,{key:R.id,ix:x,rank:J(A),team:R},null,8,["ix","rank","team"]))),128)),At(H,{rank:J(A)},null,8,["rank"])])])])])}}});const Mr=Gt(Cr,[["__scopeId","data-v-49b9fc34"]]),Tr={"font-mono":"",flex:""},Ar=["onClick"],Pr=["href"],_r={key:1},Or=Dt({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(lt,{emit:it}){const ot=lt,A=kt(()=>{var O;for(const H of ot.items)if(H.isDefault)return H.keyword;return(O=ot.items)==null?void 0:O[0].keyword}),B=de(ot.queryParamName,A.value,{transform:String}),P=kt({get(){return ot.currentItem},set(O){it("update:currentItem",O)}}),{t:G,locale:K}=Vt();function Z(O){return O.title?G(O.title):O.titles?O.titles.get(K.value)??O.titles.get(O.defaultLang):""}function X(O){return P.value===O.keyword}function Y(O){ot.onChange&&ot.onChange(O.keyword),!(O.link||O.isModal)&&(P.value=O.keyword,B.value=O.keyword)}return je(()=>{(()=>{var O;((O=B.value)==null?void 0:O.length)>0&&((()=>{for(const H of ot.items)if(H.titles){for(const[R,x]of H.titles)if(B.value===x){B.value=H.keyword;return}}})(),P.value=B.value,ot.onChange&&ot.onChange(B.value))})()}),(O,H)=>(ut(),ft("div",Tr,[st("div",{class:Pt(["mr-[-4px]",{"flex-row-reverse":ot.reverseOrder}]),flex:""},[(ut(!0),ft(Lt,null,It(ot.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)},[st("div",null,[R.link?(ut(),ft("a",{key:0,href:R.link,target:"_blank",title:"Resolver"},yt(Z(R)),9,Pr)):St("",!0),R.link?St("",!0):(ut(),ft("div",_r,yt(Z(R)),1))])],10,Ar))),128))],2)]))}});const Lr=Gt(Or,[["__scopeId","data-v-714a998b"]]);const Er={},Dr={class:"flex items-center justify-center dark:text-black"},Ir=ei('<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),jr=[Ir];function Br(lt,it){return ut(),ft("div",Dr,jr)}const zr=Gt(Er,[["render",Br],["__scopeId","data-v-54297ce8"]]),Rr={flex:""},Nr=st("div",null,[st("div",{"i-material-symbols-info-outline":"","text-lg":""})],-1),Hr={flex:""},$r=st("div",{class:"border-l-[1px] border-r-[1px]","mx-2":"","h-6":"","border-color-black":"","dark:border-color-white":""},null,-1),Wr={flex:""},Fr=Dt({__name:"BoardTab",props:{rank:{}},setup(lt){const it=lt,ot=kt(()=>it.rank),{t:A}=Vt(),B=Ee.useToast(),{copy:P,isSupported:G}=De();let K=null;const Z=Tt(null),X=Tt(null);function Y(){return window?G.value?!0:(B.warning("clipboard is not supported"),K==null||K.hide(),!1):!1}function O(){B.success("copy success"),K==null||K.hide()}function H(){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 je(()=>{if(Z.value&&X.value){const x={placement:"right",triggerType:"click",offsetSkidding:32,offsetDistance:5,delay:300};K=new ii(Z.value,X.value,x)}}),(x,b)=>{const E=pe;return ut(),ft("div",Rr,[st("div",null,[At(E,{"w-inherit":""},{popper:Ht(()=>{var L;return[st("div",Hr,[st("div",null,yt(J(A)("standings.options.calculation_of_penalty"))+": "+yt(J(A)(`standings.options.${(L=J(ot).contest.options)==null?void 0:L.calculationOfPenalty}`)),1)])]}),default:Ht(()=>[Nr]),_:1})]),$r,st("div",Wr,[st("div",{ref_key:"dropdownTriggerEl",ref:X,"i-material-symbols-share":"","text-lg":"","cursor-pointer":""},null,512),st("div",{ref_key:"dropdownTargetEl",ref:Z,class:"z-9999 hidden divide-y divide-gray-100 rounded shadow w-36","bg-white":"","dark:bg-gray-700":""},[st("ul",{class:"py-2 text-sm text-gray-700 dark:text-gray-200"},[st("li",null,[st("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:H}," Copy Page Link ")]),st("li",null,[st("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)])])}}}),Gr=lt=>(re("data-v-9fe56a11"),lt=lt(),ae(),lt),Xr={key:0},Ur={key:0},Yr={key:0},Vr={class:"max-w-[92%]"},qr=["src"],Kr={class:"max-w-[92%]"},Zr={"mt-2":""},Jr={class:"w-[92%]"},Qr={class:"flex font-bold font-mono"},ta={class:"float-left"},ea={class:"pl-0.5"},ia={class:"flex-1"},sa={class:"float-right"},oa={class:"pl-0.5"},na={class:"mt-2"},ra={class:"mt-2 flex font-bold font-mono"},aa={class:"float-left"},la={class:"flex-1"},ha={class:"float-right"},ca={class:"mt-4 flex"},da={class:"float-left"},pa=Gr(()=>st("div",{class:"flex-1"},null,-1)),ua={class:"float-right"},fa={class:"max-w-[92%]"},ga={key:0},ma={key:1,class:"w-[88vw]"},xa={key:2},ya={key:3},va={key:4},ka={key:1},Pe="sm:w-[1280px] xl:w-screen",oe="sm:w-[1260px] xl:w-screen",ba=Dt({__name:"Board",props:{dataSourceUrl:null},setup(lt){const it=lt,ot=Jt(),A=si(ve),{t:B}=Vt(),P=Tt(!1),G=Tt({}),K=Tt([]),Z=Tt([]),X=Tt({}),Y=oi(),O=Tt(new ni),H=Tt(!1);(()=>{const S=$i(),$=Wi();S.value.length>0&&O.value.setFilterOrganizations(S.value),$.value.length>0&&O.value.setFilterTeams($.value)})();const R=Tt("all");function x(S){S!==O.value.group&&O.value.setGroup(S)}(()=>{const S=de("group","all",{transform:String});R.value=S.value,O.value.setGroup(S.value)})();const b=de("replay-start-time",0,{transform:Number}),E=Tt(!1);function L(S={force:!1}){if(H.value&&S.force===!1||E.value===!0)return;E.value=!0;const $=new ui(G.value,K.value,Z.value);$.options=ke.cloneDeep(O.value),$.setReplayTime(b.value),$.buildRank(),X.value=$,E.value=!1}const{data:c,isError:y,error:v}=mi(it.dataSourceUrl??ot.path,Y);Qt(c,async()=>{var S,$,q;c.value===null||c.value===void 0||(G.value=ri((S=c.value)==null?void 0:S.contest),A.value=`${G.value.name} | ${ve}`,K.value=ai(($=c.value)==null?void 0:$.teams),Z.value=li((q=c.value)==null?void 0:q.submissions),!O.value.enableFilterSubmissionsByTimestamp&&(L(),P.value=!0))});function f(){P.value!==!1&&L()}Qt(O.value,()=>{if(!X.value.options.isNeedReBuildRank(O.value)){X.value.options=ke.cloneDeep(O.value);return}f()});{let S=function(){b.value===0?$():(f(),q())};const{pause:$,resume:q}=hi(()=>{f()},1e3);S(),Qt(b,()=>{S()})}const C=Tt([{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),w=kt(()=>{const S=Array();for(const[$,q]of k.value){const rt={titles:q.names,defaultLang:q.defaultLang,keyword:$,isDefault:q.isDefault};S.push(rt)}return S}),o=Tt("rank"),l=Tt(!0);function p(S){S==="options"&&(l.value=!1)}function h(){const S=document.documentElement.scrollHeight||document.body.scrollHeight,$=document.documentElement.scrollTop||document.body.scrollTop,q=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return S-$===q}let d=null;function e(){d!==null&&clearInterval(d)}ci("S",S=>{if(H.value=!H.value,H.value===!0){let q=0,rt="DOWN";d=setInterval(()=>{if(rt==="DOWN"){if(h()){rt="UP",L({force:!0});return}q+=2}else{if(q===0){rt="DOWN",L({force:!0});return}q-=2}window.scrollTo({top:q,behavior:"smooth"})},64)}else e()},{dedupe:!1});const t=kt(()=>{const S=X.value.contest.getStartTime().format("YYYY-MM-DD HH:mm:ss");return`${B("standings.start_time")}${B("common.colon")}${S}`}),i=kt(()=>{const S=X.value.contest.getEndTime().format("YYYY-MM-DD HH:mm:ss");return`${B("standings.end_time")}${B("common.colon")}${S}`}),a=kt(()=>{const S=X.value.contest.getContestElapsedTime(Y.value);return`${B("standings.elapsed")}${B("common.colon")}${S}`}),u=kt(()=>{const S=X.value.contest.getContestRemainingTime(Y.value);return`${B("standings.remaining")}${B("common.colon")}${S}`}),_=kt(()=>X.value.options.enableFilterSubmissionsByTimestamp?di.PAUSED:X.value.contest.getContestState()),r=kt(()=>Ie(X.value.options.timestamp));return pi(()=>{e()}),(S,$)=>{var F;const q=Fr,rt=fi,j=gi,s=zr,T=Lr,z=Mr,I=he,V=Us,n=Es,g=ys,m=us,W=is;return ut(),ft("div",null,[J(P)?St("",!0):(ut(),ft("div",Xr,[st("div",{class:Pt([Pe]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[st("div",null,yt(J(B)("common.loading"))+"... ",1),J(y)?(ut(),ft("div",Ur,yt(J(v)),1)):St("",!0)],2)])),J(P)?(ut(),ft("div",{key:1,class:Pt([Pe]),flex:"","flex-col":"","justify-center":"","items-center":""},[J(X).contest.banner?(ut(),ft("div",Yr,[st("div",{class:Pt([oe]),"mb-4":"",flex:"","justify-center":"","items-center":""},[st("div",Vr,[st("img",{src:["data:image/png;base64,",(F=J(X).contest.banner)==null?void 0:F.base64].join(""),alt:"banner"},null,8,qr)])],2)])):St("",!0),st("div",{class:Pt(["title",[oe]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":""},[st("div",Kr,yt(J(X).contest.name),1)],2),st("div",Zr,[At(q,{rank:J(X)},null,8,["rank"])]),st("div",{class:Pt([oe]),"mt-2":"",flex:"","flex-row":"","justify-center":""},[st("div",Jr,[st("div",Qr,[st("div",ta,[qt(yt(J(t)),1),st("sup",ea,yt(J(X).contest.getStartTime().format("z")),1)]),st("div",ia,[At(rt,{state:J(_),"pending-time":J(X).contest.getContestPendingTime(J(Y)),"paused-time":J(r)},null,8,["state","pending-time","paused-time"])]),st("div",sa,[qt(yt(J(i)),1),st("sup",oa,yt(J(X).contest.endTime.format("z")),1)])]),st("div",na,[At(j,{"rank-options":J(O),"onUpdate:rankOptions":$[0]||($[0]=N=>Bt(O)?O.value=N:null),width:J(X).contest.getContestProgressRatio(J(Y)),state:J(X).contest.getContestState(J(Y)),"need-scroll":!0,rank:J(X),"elapsed-time":J(X).contest.getContestElapsedTime(J(Y))},null,8,["rank-options","width","state","rank","elapsed-time"])]),st("div",ra,[st("div",aa,yt(J(a)),1),st("div",la,[At(s)]),st("div",ha,yt(J(u)),1)]),st("div",ca,[st("div",da,[At(T,{"current-item":J(R),"onUpdate:currentItem":$[1]||($[1]=N=>Bt(R)?R.value=N:null),items:J(w),"query-param-name":"group","on-change":x},null,8,["current-item","items"])]),pa,st("div",ua,[At(T,{"current-item":J(o),"onUpdate:currentItem":$[2]||($[2]=N=>Bt(o)?o.value=N:null),items:J(C),"reverse-order":!0,"query-param-name":"type","on-change":p},null,8,["current-item","items"])])])])],2),st("div",{"mt-4":"",class:Pt([oe]),flex:"","justify-center":""},[st("div",fa,[J(o)==="rank"?(ut(),ft("div",ga,[At(z,{rank:J(X)},null,8,["rank"])])):St("",!0),J(o)==="submissions"?(ut(),ft("div",ma,[At(I,{"w-full":"",rank:J(X),submissions:J(X).getSubmissions(),"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):St("",!0),J(o)==="statistics"?(ut(),ft("div",xa,[At(V,{rank:J(X)},null,8,["rank"])])):St("",!0),J(o)==="export"?(ut(),ft("div",ya,[At(n,{rank:J(X)},null,8,["rank"])])):St("",!0),J(o)==="utility"?(ut(),ft("div",va,[At(g,{rank:J(X)},null,8,["rank"])])):St("",!0)])],2),J(O).enableAnimatedSubmissions?(ut(),ft("div",ka,[At(m,{rank:J(X)},null,8,["rank"])])):St("",!0),J(l)?St("",!0):(ut(),Nt(W,{key:2,"is-hidden":J(l),"onUpdate:isHidden":$[3]||($[3]=N=>Bt(l)?l.value=N:null),"rank-options":J(O),"onUpdate:rankOptions":$[4]||($[4]=N=>Bt(O)?O.value=N:null),rank:J(X)},null,8,["is-hidden","rank-options","rank"]))],2)):St("",!0)])}}});const Ma=Gt(ba,[["__scopeId","data-v-9fe56a11"]]);export{Ma as _};
|