@xcpcio/board-app 0.23.0 → 0.24.3

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.
Files changed (53) hide show
  1. package/dist/about.html +2 -2
  2. package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-bdd603c5.js +1 -0
  3. package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-19d39372.js +1 -0
  4. package/dist/assets/{_...all_-bca664b6.css → _...all_-65bba7d0.css} +1 -1
  5. package/dist/assets/_...all_-76798627.js +3 -0
  6. package/dist/assets/_name_-82a33e88.js +1 -0
  7. package/dist/assets/{about-caa3031e.js → about-6cc32222.js} +2 -2
  8. package/dist/assets/{app-dacf61f3.js → app-a6c41ce5.js} +52 -52
  9. package/dist/assets/{board-layout-127eb0a9.js → board-layout-a5587489.js} +1 -1
  10. package/dist/assets/headless-13d3a223.js +1 -0
  11. package/dist/assets/{home-c816ad74.js → home-6560de4b.js} +1 -1
  12. package/dist/assets/index-4ddb0930.js +1 -0
  13. package/dist/assets/{index-517541e1.css → index-da8e69bb.css} +2 -2
  14. package/dist/assets/{index-layout-650bba92.js → index-layout-f4d3ebfe.js} +1 -1
  15. package/dist/assets/test-4090a9c4.js +1 -0
  16. package/dist/assets/{user-5e7a1733.js → user-5e01721a.js} +1 -1
  17. package/dist/assets/{virtual_pwa-register-54c5c068.js → virtual_pwa-register-af30bbb9.js} +1 -1
  18. package/dist/balloon.html +1 -0
  19. package/dist/index.html +1 -1
  20. package/dist/sitemap.xml +1 -1
  21. package/dist/ssr-manifest.json +181 -163
  22. package/dist/sw.js +1 -1
  23. package/dist/test.html +1 -1
  24. package/package.json +3 -3
  25. package/src/auto-imports.d.ts +12 -0
  26. package/src/components/Balloon.vue +99 -0
  27. package/src/components/BalloonBlock.vue +85 -0
  28. package/src/components/{ContestIndex.vue → ContestIndexUI.vue} +3 -3
  29. package/src/components/CustomBalloon.vue +25 -0
  30. package/src/components/CustomBoard.vue +15 -0
  31. package/src/components/{board/CustomBoard.vue → DataSourceInput.vue} +8 -20
  32. package/src/components/board/Board.vue +3 -2
  33. package/src/components/board/TeamUI.vue +4 -1
  34. package/src/components/board/Utility.vue +23 -1
  35. package/src/components.d.ts +6 -3
  36. package/src/composables/constant.ts +3 -0
  37. package/src/composables/query.ts +9 -0
  38. package/src/layouts/headless.vue +7 -0
  39. package/src/pages/balloon/index.vue +10 -0
  40. package/src/pages/index.vue +4 -1
  41. package/src/styles/color.css +8 -0
  42. package/src/styles/main.css +1 -0
  43. package/src/styles/resolver.css +8 -0
  44. package/uno.config.ts +11 -0
  45. package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-7e223c40.js +0 -1
  46. package/dist/assets/_...all_-f4969270.js +0 -3
  47. package/dist/assets/_name_-8f131dce.js +0 -1
  48. package/dist/assets/test-a2803908.js +0 -1
  49. package/src/components/board/Balloon.vue +0 -5
  50. /package/src/{components → composables}/logo/ccpc.ts +0 -0
  51. /package/src/{components → composables}/logo/hunan-cpc.ts +0 -0
  52. /package/src/{components → composables}/logo/icpc.ts +0 -0
  53. /package/src/{components → composables}/logo/index.ts +0 -0
@@ -1,3 +0,0 @@
1
- var We=Object.defineProperty;var Fe=(st,Y,q)=>Y in st?We(st,Y,{enumerable:!0,configurable:!0,writable:!0,value:q}):st[Y]=q;var ie=(st,Y,q)=>(Fe(st,typeof Y!="symbol"?Y+"":Y,q),q);import{S as Ge,s as ae,p as Xe,q as ge,v as me,x as Ue,y as Ye,z as Ve,A as xe,B as qe,C as Ke,D as Ze,E as Qe,G as Je,H as wt,I as ti,J as Vt,K as ye,L as ei,M as ii,N as si,O as oi,j as nt,P as ni,Q as ri,g as Dt,R as ai,o as pt,c as ft,d as lt,T as Kt,U as ve,t as vt,V as Tt,W as Xt,w as Ht,F as Et,X as It,Y as St,Z as Nt,$ as li,a0 as hi,a1 as Zt,a2 as De,i as Gt,h as Ot,a3 as Wt,a4 as ee,b as Pt,k as zt,a5 as Qt,a6 as ci,a7 as di,a8 as ui,a9 as pi,aa as ke,ab as fi,ac as Ie,ad as gi,ae as mi,af as xi,ag as Jt,ah as te,a as Ut,ai as qt,aj as yi,ak as vi,al as he,am as ki,n as bi,an as wi,ao as Si,ap as Ci,aq as Mi,ar as Ti,as as be,at as Ai,au as Pi,av as Oi,aw as Li,ax as _i,ay as Ei,u as je,r as Di,l as we}from"./app-dacf61f3.js";import{_ as Ii}from"./TheInput.vue_vue_type_script_setup_true_lang-7e223c40.js";class ji extends Ge{constructor(Y,q){super(),this.client=Y,this.options=q,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(q)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Se(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return le(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return le(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(Y,q){const k=this.options,D=this.currentQuery;if(this.options=this.client.defaultQueryOptions(Y),ae(k,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=k.queryKey),this.updateQuery();const M=this.hasListeners();M&&Ce(this.currentQuery,D,this.options,k)&&this.executeFetch(),this.updateResult(q),M&&(this.currentQuery!==D||this.options.enabled!==k.enabled||this.options.staleTime!==k.staleTime)&&this.updateStaleTimeout();const H=this.computeRefetchInterval();M&&(this.currentQuery!==D||this.options.enabled!==k.enabled||H!==this.currentRefetchInterval)&&this.updateRefetchInterval(H)}getOptimisticResult(Y){const q=this.client.getQueryCache().build(this.client,Y),k=this.createResult(q,Y);return Bi(this,k,Y)&&(this.currentResult=k,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),k}getCurrentResult(){return this.currentResult}trackResult(Y){const q={};return Object.keys(Y).forEach(k=>{Object.defineProperty(q,k,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(k),Y[k])})}),q}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:Y,...q}={}){return this.fetch({...q,meta:{refetchPage:Y}})}fetchOptimistic(Y){const q=this.client.defaultQueryOptions(Y),k=this.client.getQueryCache().build(this.client,q);return k.isFetchingOptimistic=!0,k.fetch().then(()=>this.createResult(k,q))}fetch(Y){var q;return this.executeFetch({...Y,cancelRefetch:(q=Y.cancelRefetch)!=null?q:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(Y){this.updateQuery();let q=this.currentQuery.fetch(this.options,Y);return Y!=null&&Y.throwOnError||(q=q.catch(Xe)),q}updateStaleTimeout(){if(this.clearStaleTimeout(),ge||this.currentResult.isStale||!me(this.options.staleTime))return;const q=Ue(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},q)}computeRefetchInterval(){var Y;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(Y=this.options.refetchInterval)!=null?Y:!1}updateRefetchInterval(Y){this.clearRefetchInterval(),this.currentRefetchInterval=Y,!(ge||this.options.enabled===!1||!me(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ye.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(Y,q){const k=this.currentQuery,D=this.options,M=this.currentResult,H=this.currentResultState,Q=this.currentResultOptions,Z=Y!==k,X=Z?Y.state:this.currentQueryInitialState,U=Z?this.currentResult:this.previousQueryResult,{state:O}=Y;let{dataUpdatedAt:z,error:R,errorUpdatedAt:y,fetchStatus:S,status:L}=O,j=!1,c=!1,x;if(q._optimisticResults){const b=this.hasListeners(),n=!b&&Se(Y,q),a=b&&Ce(Y,k,q,D);(n||a)&&(S=Ve(Y.options.networkMode)?"fetching":"paused",z||(L="loading")),q._optimisticResults==="isRestoring"&&(S="idle")}if(q.keepPreviousData&&!O.dataUpdatedAt&&U!=null&&U.isSuccess&&L!=="error")x=U.data,z=U.dataUpdatedAt,L=U.status,j=!0;else if(q.select&&typeof O.data<"u")if(M&&O.data===(H==null?void 0:H.data)&&q.select===this.selectFn)x=this.selectResult;else try{this.selectFn=q.select,x=q.select(O.data),x=xe(M==null?void 0:M.data,x,q),this.selectResult=x,this.selectError=null}catch(b){this.selectError=b}else x=O.data;if(typeof q.placeholderData<"u"&&typeof x>"u"&&L==="loading"){let b;if(M!=null&&M.isPlaceholderData&&q.placeholderData===(Q==null?void 0:Q.placeholderData))b=M.data;else if(b=typeof q.placeholderData=="function"?q.placeholderData():q.placeholderData,q.select&&typeof b<"u")try{b=q.select(b),this.selectError=null}catch(n){this.selectError=n}typeof b<"u"&&(L="success",x=xe(M==null?void 0:M.data,b,q),c=!0)}this.selectError&&(R=this.selectError,x=this.selectResult,y=Date.now(),L="error");const v=S==="fetching",p=L==="loading",P=L==="error";return{status:L,fetchStatus:S,isLoading:p,isSuccess:L==="success",isError:P,isInitialLoading:p&&v,data:x,dataUpdatedAt:z,error:R,errorUpdatedAt:y,failureCount:O.fetchFailureCount,failureReason:O.fetchFailureReason,errorUpdateCount:O.errorUpdateCount,isFetched:O.dataUpdateCount>0||O.errorUpdateCount>0,isFetchedAfterMount:O.dataUpdateCount>X.dataUpdateCount||O.errorUpdateCount>X.errorUpdateCount,isFetching:v,isRefetching:v&&!p,isLoadingError:P&&O.dataUpdatedAt===0,isPaused:S==="paused",isPlaceholderData:c,isPreviousData:j,isRefetchError:P&&O.dataUpdatedAt!==0,isStale:ce(Y,q),refetch:this.refetch,remove:this.remove}}updateResult(Y){const q=this.currentResult,k=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,ae(k,q))return;this.currentResult=k;const D={cache:!0},M=()=>{if(!q)return!0;const{notifyOnChangeProps:H}=this.options,Q=typeof H=="function"?H():H;if(Q==="all"||!Q&&!this.trackedProps.size)return!0;const Z=new Set(Q??this.trackedProps);return this.options.useErrorBoundary&&Z.add("error"),Object.keys(this.currentResult).some(X=>{const U=X;return this.currentResult[U]!==q[U]&&Z.has(U)})};(Y==null?void 0:Y.listeners)!==!1&&M()&&(D.listeners=!0),this.notify({...D,...Y})}updateQuery(){const Y=this.client.getQueryCache().build(this.client,this.options);if(Y===this.currentQuery)return;const q=this.currentQuery;this.currentQuery=Y,this.currentQueryInitialState=Y.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(q==null||q.removeObserver(this),Y.addObserver(this))}onQueryUpdate(Y){const q={};Y.type==="success"?q.onSuccess=!Y.manual:Y.type==="error"&&!qe(Y.error)&&(q.onError=!0),this.updateResult(q),this.hasListeners()&&this.updateTimers()}notify(Y){Ke.batch(()=>{if(Y.onSuccess){var q,k,D,M;(q=(k=this.options).onSuccess)==null||q.call(k,this.currentResult.data),(D=(M=this.options).onSettled)==null||D.call(M,this.currentResult.data,null)}else if(Y.onError){var H,Q,Z,X;(H=(Q=this.options).onError)==null||H.call(Q,this.currentResult.error),(Z=(X=this.options).onSettled)==null||Z.call(X,void 0,this.currentResult.error)}Y.listeners&&this.listeners.forEach(({listener:U})=>{U(this.currentResult)}),Y.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Ri(st,Y){return Y.enabled!==!1&&!st.state.dataUpdatedAt&&!(st.state.status==="error"&&Y.retryOnMount===!1)}function Se(st,Y){return Ri(st,Y)||st.state.dataUpdatedAt>0&&le(st,Y,Y.refetchOnMount)}function le(st,Y,q){if(Y.enabled!==!1){const k=typeof q=="function"?q(st):q;return k==="always"||k!==!1&&ce(st,Y)}return!1}function Ce(st,Y,q,k){return q.enabled!==!1&&(st!==Y||k.enabled===!1)&&(!q.suspense||st.state.status!=="error")&&ce(st,q)}function ce(st,Y){return st.isStaleByTime(Y.staleTime)}function Bi(st,Y,q){return q.keepPreviousData?!1:q.placeholderData!==void 0?Y.isPlaceholderData:!ae(st.getCurrentResult(),Y)}function zi(st=""){var Y;if(!((Y=Ze())==null?void 0:Y.proxy))throw new Error("vue-query hooks can only be used inside setup() function.");const k=Je(st),D=Qe(k);if(!D)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return D}function Ni(st,Y,q={},k={}){var D;const M=wt(()=>Hi(Y,q,k)),H=(D=M.value.queryClient)!=null?D:zi(M.value.queryClientKey),Q=wt(()=>{const z=H.defaultQueryOptions(M.value);return z._optimisticResults=H.isRestoring.value?"isRestoring":"optimistic",z}),Z=new st(H,Q.value),X=ti(Z.getCurrentResult());let U=()=>{};Vt(H.isRestoring,z=>{z||(U(),U=Z.subscribe(R=>{ye(X,R)}))},{immediate:!0}),Vt(Q,()=>{Z.setOptions(Q.value),ye(X,Z.getCurrentResult())}),ei(()=>{U()});const O=()=>new Promise((z,R)=>{let y=()=>{};const S=()=>{if(Q.value.enabled!==!1){const L=Z.getOptimisticResult(Q.value);L.isStale?(y(),Z.fetchOptimistic(Q.value).then(z,R)):(y(),z(L))}};S(),y=Vt(Q,S,{deep:!0})});return Vt(()=>X.error,z=>{if(X.isError&&!X.isFetching&&ii(Q.value.useErrorBoundary,[z,Z.getCurrentQuery()]))throw z}),{...si(oi(X)),suspense:O}}function Hi(st,Y={},q={}){const k=nt(st),D=nt(Y),M=nt(q);let H=k;return ni(k)?typeof D=="function"?H={...M,queryKey:k,queryFn:D}:H={...D,queryKey:k}:H=k,ri(H)}function $i(st,Y,q){const k=Ni(ji,st,Y,q);return{...k,refetch:k.refetch.value,remove:k.remove.value}}const Wi={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":""},Fi={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},Gi={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},Xi={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},Ui=lt("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[lt("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),Yi=lt("span",{"sr-only":""}," Close modal ",-1),Vi=[Ui,Yi],de=Dt({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null},emits:["update:isHidden"],setup(st,{emit:Y}){const q=st,k=wt({get(){return q.isHidden},set(H){Y("update:isHidden",H)}});function D(){k.value=!0}const{Escape:M}=ai();return Vt(M,H=>{H&&D()}),(H,Q)=>(pt(),ft("div",Wi,[lt("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-9998":"",style:Kt({backgroundColor:"rgba(0, 0, 0, 0.5)"}),onClick:D},null,4),lt("div",{class:Tt(["relative p-4",[q.width??"w-[78%]"]]),"z-9999":""},[lt("div",Fi,[lt("div",Gi,[ve(H.$slots,"header",{},()=>[lt("h3",Xi,vt(q.title),1)]),lt("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:D},Vi)]),ve(H.$slots,"default")])],2)]))}}),jt={openOptions(st){st.$refs.input.focus(),st.showMenu=!0,st.mousedownState=!1},blurInput(st){st.mousedownState||(st.searchText="",st.closeOptions()),st.$emit("blur")},closeOptions(st){st.$refs.input.blur(),st.showMenu=!1},prevItem(st){const Y=st.pointer-1,q=st.$el.offsetHeight*Y;Y>=0&&(st.pointer=Y),st.$refs.menu.scrollTop=q},nextItem(st){const Y=st.pointer+1,q=st.$el.offsetHeight*Y;Y<=st.filteredOptions.length-1&&(st.pointer=Y);const k=st.$refs.menu.offsetHeight,D=Math.ceil((st.$refs.menu.scrollTop+st.$el.offsetHeight)/k),M=Math.ceil(q/k);D!==M&&(st.$refs.menu.scrollTop=(M-1)*st.$refs.menu.offsetHeight)},enterItem(st){const Y=st.filteredOptions[st.pointer],q=Y.disabled;Y&&!q&&st.selectItem(Y)},pointerSet(st,Y){st.pointer=Y},pointerAdjust(st){st.pointer>=st.filteredOptions.length-1&&(st.pointer=st.filteredOptions.length?st.filteredOptions.length-1:0)},mousedownItem(st){st.mousedownState=!0}};function qi(st){return new RegExp(st.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Re={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:(st,Y)=>st.match(qi(Y))}}},Be=(st,Y)=>{const q=st.__vccOpts||st;for(const[k,D]of Y)q[k]=D;return q},Ki={name:"ModelSelect",mixins:[Re],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(st){this.pointer=this.filteredOptions.findIndex(Y=>Y.value===this.optionValue(st))},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 st=this.placeholder;return this.selectedOption&&(st=this.selectedOption.text),st}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(st=>this.customAttr(st))}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(st=>{try{return this.filterPredicate(st.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(st=>st.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(st){jt.pointerSet(this,st)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(st){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",st):(this.$emit("update:modelValue",st.value),st.value!==void 0&&st.value===st.text&&(this.searchText=st.value))},optionValue(st){return typeof st=="object"&&st!==null?st.value:st}}},Zi=lt("i",{class:"dropdown icon"},null,-1),Qi=["disabled","tabindex","id","name","value"],Ji=["data-vss-custom-attr"],ts=["data-vss-custom-attr","onClick","onMouseenter"];function es(st,Y,q,k,D,M){return pt(),ft("div",{class:Tt(["ui fluid search selection dropdown",{"active visible":D.showMenu,error:st.isError,disabled:st.isDisabled}]),onClick:Y[11]||(Y[11]=(...H)=>M.openOptions&&M.openOptions(...H)),onFocus:Y[12]||(Y[12]=(...H)=>M.openOptions&&M.openOptions(...H))},[Zi,lt("input",{class:"search",autocomplete:"off",disabled:st.isDisabled,tabindex:st.isDisabled?-1:0,id:st.id,name:st.name,value:D.searchText,onInput:Y[0]||(Y[0]=H=>D.searchText=H.target.value),ref:"input",onFocus:Y[1]||(Y[1]=Xt((...H)=>M.openOptions&&M.openOptions(...H),["prevent"])),onKeyup:[Y[2]||(Y[2]=Ht((...H)=>M.closeOptions&&M.closeOptions(...H),["esc"])),Y[7]||(Y[7]=Ht(Xt((...H)=>M.enterItem&&M.enterItem(...H),["prevent"]),["enter"]))],onBlur:Y[3]||(Y[3]=(...H)=>M.blurInput&&M.blurInput(...H)),onKeydown:[Y[4]||(Y[4]=Ht((...H)=>M.prevItem&&M.prevItem(...H),["up"])),Y[5]||(Y[5]=Ht((...H)=>M.nextItem&&M.nextItem(...H),["down"])),Y[6]||(Y[6]=Ht(Xt(()=>{},["prevent"]),["enter"])),Y[8]||(Y[8]=Ht((...H)=>M.deleteTextOrItem&&M.deleteTextOrItem(...H),["delete"]))]},null,40,Qi),lt("div",{class:Tt(["text",M.textClass]),"data-vss-custom-attr":M.searchTextCustomAttr},vt(M.inputText),11,Ji),lt("div",{class:Tt(["menu",M.menuClass]),ref:"menu",onMousedown:Y[10]||(Y[10]=Xt(()=>{},["prevent"])),style:Kt(M.menuStyle),tabindex:"-1"},[(pt(!0),ft(Et,null,It(M.filteredOptions,(H,Q)=>(pt(),ft("div",{key:Q,class:Tt(["item",{selected:H.selected||D.pointer===Q,disabled:H.disabled}]),"data-vss-custom-attr":M.customAttrs[Q]?M.customAttrs[Q]:"",onClick:Xt(Z=>M.selectItem(H),["stop"]),onMousedown:Y[9]||(Y[9]=(...Z)=>M.mousedownItem&&M.mousedownItem(...Z)),onMouseenter:Z=>M.pointerSet(Q)},vt(H.text),43,ts))),128))],38)],34)}const is=Be(Ki,[["render",es]]),ss={name:"MultiSelect",mixins:[Re],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(st=>this.selectedOptions.findIndex(Y=>Y.value===st.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(st=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(st.text),this.searchText):this.filterPredicate(st.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(st){jt.pointerSet(this,st)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(st){const Y=this.selectedOptions.concat(st),q=Y.filter((k,D)=>Y.indexOf(k)===D);this.closeOptions(),this.searchText="",this.$emit("select",q,st,"insert")},deleteItem(st){const Y=this.selectedOptions.filter(q=>q.value!==st.value);this.$emit("select",Y,st,"delete")},accentsTidy(st){let Y=st.toString().toLowerCase();return Y=Y.replace(new RegExp("[àáâãäå]","g"),"a"),Y=Y.replace(new RegExp("æ","g"),"ae"),Y=Y.replace(new RegExp("ç","g"),"c"),Y=Y.replace(new RegExp("[èéêë]","g"),"e"),Y=Y.replace(new RegExp("[ìíîï]","g"),"i"),Y=Y.replace(new RegExp("ñ","g"),"n"),Y=Y.replace(new RegExp("[òóôõö]","g"),"o"),Y=Y.replace(new RegExp("œ","g"),"oe"),Y=Y.replace(new RegExp("[ùúûü]","g"),"u"),Y=Y.replace(new RegExp("[ýÿ]","g"),"y"),Y}}},os=lt("i",{class:"dropdown icon"},null,-1),ns=["data-vss-custom-attr"],rs=["onClick"],as=["disabled","tabindex","id","name"],ls=["data-vss-custom-attr","onClick","onMouseenter"];function hs(st,Y,q,k,D,M){return pt(),ft("div",{class:Tt(["ui fluid search dropdown selection multiple",{"active visible":D.showMenu,error:st.isError,disabled:st.isDisabled}]),onClick:Y[11]||(Y[11]=(...H)=>M.openOptions&&M.openOptions(...H)),onFocus:Y[12]||(Y[12]=(...H)=>M.openOptions&&M.openOptions(...H))},[os,q.hideSelectedOptions?St("",!0):(pt(!0),ft(Et,{key:0},It(q.selectedOptions,(H,Q)=>(pt(),ft("a",{key:Q,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":q.customAttr(H)},[Nt(vt(H.text),1),lt("i",{class:"delete icon",onClick:Z=>M.deleteItem(H)},null,8,rs)],8,ns))),128)),li(lt("input",{class:"search",autocomplete:"off",disabled:st.isDisabled,tabindex:st.isDisabled?-1:0,id:st.id,name:st.name,"onUpdate:modelValue":Y[0]||(Y[0]=H=>D.searchText=H),ref:"input",style:Kt(M.inputWidth),onFocus:Y[1]||(Y[1]=Xt((...H)=>M.openOptions&&M.openOptions(...H),["prevent"])),onKeyup:[Y[2]||(Y[2]=Ht((...H)=>M.closeOptions&&M.closeOptions(...H),["esc"])),Y[7]||(Y[7]=Ht(Xt((...H)=>M.enterItem&&M.enterItem(...H),["prevent"]),["enter"]))],onBlur:Y[3]||(Y[3]=(...H)=>M.blurInput&&M.blurInput(...H)),onKeydown:[Y[4]||(Y[4]=Ht((...H)=>M.prevItem&&M.prevItem(...H),["up"])),Y[5]||(Y[5]=Ht((...H)=>M.nextItem&&M.nextItem(...H),["down"])),Y[6]||(Y[6]=Ht(Xt(()=>{},["prevent"]),["enter"])),Y[8]||(Y[8]=Ht((...H)=>M.deleteTextOrLastItem&&M.deleteTextOrLastItem(...H),["delete"]))]},null,44,as),[[hi,D.searchText]]),lt("div",{class:Tt(["text",M.textClass])},vt(M.inputText),3),lt("div",{class:Tt(["menu",M.menuClass]),ref:"menu",onMousedown:Y[10]||(Y[10]=Xt(()=>{},["prevent"])),style:Kt(M.menuStyle),tabindex:"-1"},[(pt(!0),ft(Et,null,It(M.filteredOptions,(H,Q)=>(pt(),ft("div",{key:Q,class:Tt(["item",{selected:H.selected||D.pointer===Q,disabled:H.disabled}]),"data-vss-custom-attr":q.customAttr(H),onClick:Xt(Z=>M.selectItem(H),["stop"]),onMousedown:Y[9]||(Y[9]=(...Z)=>M.mousedownItem&&M.mousedownItem(...Z)),onMouseenter:Z=>M.pointerSet(Q)},vt(H.text),43,ls))),128))],38)],34)}const Me=Be(ss,[["render",hs]]);function cs(){return`filter-organizations-${Zt().path}`}function ds(){return`filter-teams-${Zt().path}`}function us(){const Y=`filter-organizations-${Zt().path}`;return De(Y,[])}function ps(){const Y=`filter-teams-${Zt().path}`;return De(Y,[])}const fs={"w-full":"","font-bold":"","font-mono":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},gs={key:0,flex:"","flex-col":"","w-full":""},ms={"w-full":"","mt-2":""},xs={flex:"","flex-col":"","w-full":""},ys=lt("div",null," Filter Team ",-1),vs={"w-full":"","mt-2":""},ks={"mt-2":"","w-full":"",flex:"","items-center":"","space-x-4":""},bs=Dt({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(st,{emit:Y}){const q=st,{t:k}=Gt(),D=wt({get(){return q.isHidden},set(v){Y("update:isHidden",v)}}),M=wt({get(){return q.rankOptions},set(v){Y("update:rankOptions",v)}}),H=wt(()=>q.rank),Q=wt(()=>k("type_menu.options")),Z=wt(()=>H.value.organizations.map(p=>({value:p,text:p}))),X=Ot(M.value.filterOrganizations),U=Ot({});function O(v,p){X.value=v,U.value=p}const z=wt(()=>H.value.originTeams.map(p=>({value:p.id,text:p.organization?`${p.name} - ${p.organization}`:p.name}))),R=Ot(M.value.filterTeams),y=Ot({});function S(v,p){R.value=v,y.value=p}function L(){D.value=!0}const j=cs(),c=ds();function x(){M.value.setFilterOrganizations(X.value),M.value.setFilterTeams(R.value),localStorage.setItem(j,JSON.stringify(X.value)),localStorage.setItem(c,JSON.stringify(R.value)),L()}return(v,p)=>{const P=de;return pt(),Wt(P,{isHidden:nt(D),"onUpdate:isHidden":p[0]||(p[0]=w=>zt(D)?D.value=w:null),title:nt(Q),width:"w-180"},{default:ee(()=>[lt("div",fs,[nt(H).contest.organization?(pt(),ft("div",gs,[lt("div",null," Filter "+vt(nt(H).contest.organization),1),lt("div",ms,[Pt(nt(Me),{options:nt(Z),"selected-options":nt(X),onSelect:O},null,8,["options","selected-options"])])])):St("",!0),lt("div",xs,[ys,lt("div",vs,[Pt(nt(Me),{options:nt(z),"selected-options":nt(R),onSelect:S},null,8,["options","selected-options"])])]),lt("div",ks,[lt("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:x},vt(nt(k)("button.confirm")),1),lt("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},vt(nt(k)("button.cancel")),1)])])]),_:1},8,["isHidden","title"])}}}),ws={flex:"","w-full":"","mt-4":""},Ss=["href"],Cs=Dt({__name:"Utility",setup(st){const{t:Y}=Gt(),q=Zt(),k=wt(()=>`https://resolver.xcpcio.com/resolver?xcpcio-data-source=${q.path}`);return(D,M)=>(pt(),ft("div",ws,[lt("a",{btn:"",href:nt(k),target:"_blank",title:"Resolver"},vt(nt(Y)("type_menu.resolver")),9,Ss)]))}});var ze={exports:{}};(function(st,Y){(function(q,k){k()})(Qt,function(){function q(X,U){return typeof U>"u"?U={autoBom:!1}:typeof U!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.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 k(X,U,O){var z=new XMLHttpRequest;z.open("GET",X),z.responseType="blob",z.onload=function(){Z(z.response,U,O)},z.onerror=function(){console.error("could not download file")},z.send()}function D(X){var U=new XMLHttpRequest;U.open("HEAD",X,!1);try{U.send()}catch{}return 200<=U.status&&299>=U.status}function M(X){try{X.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),X.dispatchEvent(U)}}var H=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Qt=="object"&&Qt.global===Qt?Qt:void 0,Q=H.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Z=H.saveAs||(typeof window!="object"||window!==H?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function(X,U,O){var z=H.URL||H.webkitURL,R=document.createElement("a");U=U||X.name||"download",R.download=U,R.rel="noopener",typeof X=="string"?(R.href=X,R.origin===location.origin?M(R):D(R.href)?k(X,U,O):M(R,R.target="_blank")):(R.href=z.createObjectURL(X),setTimeout(function(){z.revokeObjectURL(R.href)},4e4),setTimeout(function(){M(R)},0))}:"msSaveOrOpenBlob"in navigator?function(X,U,O){if(U=U||X.name||"download",typeof X!="string")navigator.msSaveOrOpenBlob(q(X,O),U);else if(D(X))k(X,U,O);else{var z=document.createElement("a");z.href=X,z.target="_blank",setTimeout(function(){M(z)})}}:function(X,U,O,z){if(z=z||open("","_blank"),z&&(z.document.title=z.document.body.innerText="downloading..."),typeof X=="string")return k(X,U,O);var R=X.type==="application/octet-stream",y=/constructor/i.test(H.HTMLElement)||H.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||R&&y||Q)&&typeof FileReader<"u"){var L=new FileReader;L.onloadend=function(){var x=L.result;x=S?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=x:location=x,z=null},L.readAsDataURL(X)}else{var j=H.URL||H.webkitURL,c=j.createObjectURL(X);z?z.location=c:location.href=c,z=null,setTimeout(function(){j.revokeObjectURL(c)},4e4)}});H.saveAs=Z.saveAs=Z,st.exports=Z})})(ze);var Ms=ze.exports;const Ts=ci(Ms);var As=setTimeout;function Ps(st,Y){var q=Y.useCachedSetTimeout?As:setTimeout;return new Promise(function(k){q(k,st)})}function Os(st){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=Y.useCachedSetTimeout,k=Ps(st,{useCachedSetTimeout:q});function D(M){return k.then(function(){return M})}return D.then=function(){return k.then.apply(k,arguments)},D.catch=Promise.resolve().catch,D}const Ls={flex:"","flex-col":""},_s={"w-160":"","font-bold":""},Es={"mt-8":""},Ds={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},Is=["disabled"],js=["disabled"],Rs={key:1,flex:"","justify-center":""},Bs=["disabled"],zs=Dt({__name:"Export",props:{rank:null},setup(st){const Y=st,q=di.useToast(),{copy:k,isSupported:D}=ui(),M=wt(()=>Y.rank),H=Ot({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),Q=Ot([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"}]),Z=Ot({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1});async function X(){await pi(),await Os(16)}async function U(){Z.value.CfDatDownload=!0,await X();const y=new ke().convert(M.value),S=new Blob([y],{type:"text/plain;charset=utf-8"});Ts.saveAs(S,"contest.dat"),Z.value.CfDatDownload=!1}async function O(){if(!D.value){q.warning("clipboard is not supported");return}Z.value.CfDatCopy=!0,await X();const y=new ke().convert(M.value);k(y),Z.value.CfDatCopy=!1,q.success("Copy Success")}async function z(){Z.value.GeneralXLSXDownload=!0,await X(),new fi().convertAndWrite(M.value,`${M.value.contest.name}.xlsx`),Z.value.GeneralXLSXDownload=!1}return(R,y)=>(pt(),ft("div",Ls,[lt("div",_s,[Pt(nt(is),{modelValue:nt(H),"onUpdate:modelValue":y[0]||(y[0]=S=>zt(H)?H.value=S:null),options:nt(Q),placeholder:"Export Type"},null,8,["modelValue","options"])]),lt("div",Es,[nt(H).value==="cf-dat"?(pt(),ft("div",Ds,[lt("button",{disabled:nt(Z).CfDatDownload,btn:"",onClick:U}," Download ",8,Is),lt("button",{disabled:nt(Z).CfDatCopy,btn:"",onClick:O}," Copy to Clipboard ",8,js)])):St("",!0),nt(H).value==="general-xlsx"?(pt(),ft("div",Rs,[lt("button",{disabled:nt(Z).GeneralXLSXDownload,btn:"",onClick:z}," Download ",8,Bs)])):St("",!0)])]))}});function ue(st,Y,q,k,D,M){return{colors:M,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:st},xAxis:{categories:k,labels:{style:{fontSize:"16px"}},title:{text:Y,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:q,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:D}}function Ns(st){const Y=[];st.contest.problems.forEach((M,H)=>{Y.push({problem_id:M.label,index:H,solved:M.statistics.acceptedNum})}),Y.sort((M,H)=>M.solved>H.solved?-1:M.solved<H.solved?1:M.index<H.index?-1:M.index>H.index?1:0);const{cat:q,series:k,colors:D}=(()=>{const M=[],H=[];return Y.forEach(X=>{M.push(X.problem_id),H.push(X.solved)}),{cat:M,series:[{name:"队伍数",showInLegend:!1,data:H}],colors:["rgb(124, 181, 236)"]}})();return ue("题目通过数统计","题目编号","通过数",q,k,D)}function Hs(st){const Y=st.rankStatistics.teamSolvedNum.map((M,H)=>({index:H,cnt:M})),{cat:q,series:k,colors:D}=(()=>{const M=[],H=[];return Y.forEach(X=>{M.push(X.index),H.push(X.cnt)}),{cat:M,series:[{name:"队伍数",showInLegend:!1,data:H}],colors:["rgb(124, 181, 236)"]}})();return ue("队伍过题数统计","过题数","队伍数",q,k,D)}function $s(st){const{cat:Y,series:q,colors:k}=(()=>{const D=[],M=[],H=[],Q=[];return st.contest.problems.forEach(U=>{M.push(U.statistics.acceptedNum),H.push(U.statistics.rejectedNum),Q.push(U.statistics.pendingNum),D.push(U.label)}),{cat:D,series:[{name:"Accepted",showInLegend:!1,data:M},{name:"Rejected",showInLegend:!1,data:H},{name:"Pending",showInLegend:!1,data:Q}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return ue("提交分类统计","题目编号","提交数",Y,q,k)}function Ws(st,Y){const q=Y.placeChartPoints.map(D=>{var M,H;return{x:D.timePoint,y:D.rank,showX:Ie(D.timePoint),lastSolved:(M=D.lastSolvedProblem)!=null&&M.label?`Last Solved Problem ${(H=D.lastSolvedProblem)==null?void 0:H.label}`:""}});return{chart:{type:"spline"},title:{text:"排名变化趋势图"},series:[{showInLegend:!1,allowPointSelect:!1,name:"rank",type:"spline",data:q,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:{}},re={exports:{}},Te;function Fs(){return Te||(Te=1,function(st){(function(Y,q){st.exports?(q.default=q,st.exports=Y.document?q(Y):q):(Y.Highcharts&&Y.Highcharts.error(16,!0),Y.Highcharts=q(Y))})(typeof window<"u"?window:Qt,function(Y){function q(D,M,H,Q){D.hasOwnProperty(M)||(D[M]=Q.apply(null,H),typeof CustomEvent=="function"&&Y.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:M,module:D[M]}})))}var k={};return q(k,"Core/Globals.js",[],function(){var D;return function(M){M.SVG_NS="http://www.w3.org/2000/svg",M.product="Highcharts",M.version="11.1.0",M.win=typeof Y<"u"?Y:{},M.doc=M.win.document,M.svg=M.doc&&M.doc.createElementNS&&!!M.doc.createElementNS(M.SVG_NS,"svg").createSVGRect,M.userAgent=M.win.navigator&&M.win.navigator.userAgent||"",M.isChrome=M.userAgent.indexOf("Chrome")!==-1,M.isFirefox=M.userAgent.indexOf("Firefox")!==-1,M.isMS=/(edge|msie|trident)/i.test(M.userAgent)&&!M.win.opera,M.isSafari=!M.isChrome&&M.userAgent.indexOf("Safari")!==-1,M.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(M.userAgent),M.isWebKit=M.userAgent.indexOf("AppleWebKit")!==-1,M.deg2rad=2*Math.PI/360,M.hasBidiBug=M.isFirefox&&4>parseInt(M.userAgent.split("Firefox/")[1],10),M.hasTouch=!!M.win.TouchEvent,M.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],M.noop=function(){},M.supportsPassiveEvents=function(){let H=!1;if(!M.isMS){const Q=Object.defineProperty({},"passive",{get:function(){H=!0}});M.win.addEventListener&&M.win.removeEventListener&&(M.win.addEventListener("testPassive",M.noop,Q),M.win.removeEventListener("testPassive",M.noop,Q))}return H}(),M.charts=[],M.dateFormats={},M.seriesTypes={},M.symbolSizes={},M.chartCount=0}(D||(D={})),D}),q(k,"Core/Utilities.js",[k["Core/Globals.js"]],function(D){function M(t,i,l,f){const _=i?"Highcharts error":"Highcharts warning";t===32&&(t=`${_}: Deprecated member`);const r=z(t);let C=r?`${_} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(typeof f<"u"){let G="";r&&(C+="?"),P(f,function(J,rt){G+=`
2
- - ${rt}: ${J}`,r&&(C+=encodeURI(rt)+"="+encodeURI(J))}),C+=G}b(D,"displayError",{chart:l,code:t,message:C,params:f},function(){if(i)throw Error(C);u.console&&M.messages.indexOf(C)===-1&&console.warn(C)}),M.messages.push(C)}function H(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 U(t){return X(t)&&typeof t.nodeType=="number"}function O(t){const i=t&&t.constructor;return!(!X(t,!0)||U(t)||!i||!i.name||i.name==="Object")}function z(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function R(t){return typeof t<"u"&&t!==null}function y(t,i,l){const f=Q(i)&&!R(l);let _;const r=(C,G)=>{R(C)?t.setAttribute(G,C):f?(_=t.getAttribute(G))||G!=="class"||(_=t.getAttribute(G+"Name")):t.removeAttribute(G)};return Q(i)?r(l,i):P(i,r),_}function S(t){return Z(t)?t:[t]}function L(t,i){let l;t||(t={});for(l in i)t[l]=i[l];return t}function j(){const t=arguments,i=t.length;for(let l=0;l<i;l++){const f=t[l];if(typeof f<"u"&&f!==null)return f}}function c(t,i){D.isMS&&!D.svg&&i&&R(i.opacity)&&(i.filter=`alpha(opacity=${100*i.opacity})`),L(t.style,i)}function x(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 p(t,i,l){let f;return i==="width"?(i=Math.min(t.offsetWidth,t.scrollWidth),l=t.getBoundingClientRect&&t.getBoundingClientRect().width,l<i&&l>=i-1&&(i=Math.floor(l)),Math.max(0,i-(p(t,"padding-left",!0)||0)-(p(t,"padding-right",!0)||0))):i==="height"?Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(p(t,"padding-top",!0)||0)-(p(t,"padding-bottom",!0)||0)):((t=u.getComputedStyle(t,void 0))&&(f=t.getPropertyValue(i),j(l,i!=="opacity")&&(f=H(f))),f)}function P(t,i,l){for(const f in t)Object.hasOwnProperty.call(t,f)&&i.call(l||t[f],t[f],f,t)}function w(t,i,l){function f(C,G){const J=t.removeEventListener;J&&J.call(t,C,G,!1)}function _(C){let G,J;t.nodeName&&(i?(G={},G[i]=!0):G=C,P(G,function(rt,B){if(C[B])for(J=C[B].length;J--;)f(B,C[B][J].fn)}))}var r=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){const C=r.hcEvents;i?(r=C[i]||[],l?(C[i]=r.filter(function(G){return l!==G.fn}),f(i,l)):(_(C),C[i]=[])):(_(C),delete r.hcEvents)}}function b(t,i,l,f){if(l=l||{},a.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==D)){var _=a.createEvent("Events");_.initEvent(i,!0,!0),l=L(_,l),t.dispatchEvent?t.dispatchEvent(l):t.fireEvent(i,l)}else if(t.hcEvents){l.target||L(l,{preventDefault:function(){l.defaultPrevented=!0},target:t,type:i}),_=[];let r=t,C=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[i]&&(_.length&&(C=!0),_.unshift.apply(_,r.hcEvents[i])),r=Object.getPrototypeOf(r);C&&_.sort((G,J)=>G.order-J.order),_.forEach(G=>{G.fn.call(t,l)===!1&&l.preventDefault()})}f&&!l.defaultPrevented&&f.call(t,l)}const{charts:n,doc:a,win:u}=D;(M||(M={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var h=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){let l;const f=t.length;for(l=0;l<f;l++)if(i(t[l],l))return t[l]};P({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){D[i]=function(l){return M(32,!1,void 0,{[`Highcharts.${i}`]:`use Array.${t}`}),Array.prototype[t].apply(l,[].slice.call(arguments,1))}});let d;const e=function(){const t=Math.random().toString(36).substring(2,9)+"-";let i=0;return function(){return"highcharts-"+(d?"":t)+i++}}();return u.jQuery&&(u.jQuery.fn.highcharts=function(){const t=[].slice.call(arguments);if(this[0])return t[0]?(new D[Q(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):n[y(this[0],"data-highcharts-chart")]}),h={addEvent:function(t,i,l,f={}){var _=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(_,"hcEvents")||(_.hcEvents={}),_=_.hcEvents,D.Point&&t instanceof D.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);const r=t.addEventListener;return r&&r.call(t,i,l,D.supportsPassiveEvents?{passive:f.passive===void 0?i.indexOf("touch")!==-1:f.passive,capture:!1}:!1),_[i]||(_[i]=[]),_[i].push({fn:l,order:typeof f.order=="number"?f.order:1/0}),_[i].sort((C,G)=>C.order-G.order),function(){w(t,i,l)}},arrayMax:function(t){let i=t.length,l=t[0];for(;i--;)t[i]>l&&(l=t[i]);return l},arrayMin:function(t){let i=t.length,l=t[0];for(;i--;)t[i]<l&&(l=t[i]);return l},attr:y,clamp:function(t,i,l){return t>i?t<l?t:l:i},clearTimeout:function(t){R(t)&&clearTimeout(t)},correctFloat:v,createElement:function(t,i,l,f,_){return t=a.createElement(t),i&&L(t,i),_&&c(t,{padding:"0",border:"none",margin:"0"}),l&&c(t,l),f&&f.appendChild(t),t},css:c,defined:R,destroyObjectProperties:function(t,i){P(t,function(l,f){l&&l!==i&&l.destroy&&l.destroy(),delete t[f]})},diffObjects:function(t,i,l,f){function _(C,G,J,rt){const B=l?G:C;P(C,function(s,A){if(!rt&&f&&-1<f.indexOf(A)&&G[A]){s=S(s),J[A]=[];for(let N=0;N<Math.max(s.length,G[A].length);N++)G[A][N]&&(s[N]===void 0?J[A][N]=G[A][N]:(J[A][N]={},_(s[N],G[A][N],J[A][N],rt+1)))}else X(s,!0)&&!s.nodeType?(J[A]=Z(s)?[]:{},_(s,G[A]||{},J[A],rt+1),Object.keys(J[A]).length!==0||A==="colorAxis"&&rt===0||delete J[A]):(C[A]!==G[A]||A in C&&!(A in G))&&(J[A]=B[A])})}const r={};return _(t,i,r,0),r},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){let l=t.length;for(;l--;)if(t[l]===i){t.splice(l,1);break}},error:M,extend:L,extendClass:function(t,i){const l=function(){};return l.prototype=new t,L(l.prototype,i),l},find:h,fireEvent:b,getClosestDistance:function(t,i){const l=!i;let f,_,r;return t.forEach(C=>{if(1<C.length)for(r=C.length-1;0<r;r--)_=C[r]-C[r-1],0>_&&!l?(i==null||i(),i=void 0):_&&(typeof f>"u"||_<f)&&(f=_)}),f},getMagnitude:x,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&R(i);){const l=t.shift();if(typeof l>"u"||l==="__proto__")return;if(l==="this"){let f;return X(i)&&(f=i["@this"]),f??i}if(i=i[l],!R(i)||typeof i=="function"||typeof i.nodeType=="number"||i===u)return}return i},getStyle:p,inArray:function(t,i,l){return M(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,l)},insertItem:function(t,i){const l=t.options.index,f=i.length;let _;for(_=t.options.isInternal?f:0;_<f+1;_++)if(!i[_]||z(l)&&l<j(i[_].options.index,i[_]._i)||i[_].options.isInternal){i.splice(_,0,t);break}return _},isArray:Z,isClass:O,isDOMElement:U,isFunction:function(t){return typeof t=="function"},isNumber:z,isObject:X,isString:Q,keys:function(t){return M(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){let t,i=arguments,l={};const f=function(r,C){return typeof r!="object"&&(r={}),P(C,function(G,J){J!=="__proto__"&&J!=="constructor"&&(!X(G,!0)||O(G)||U(G)?r[J]=C[J]:r[J]=f(r[J]||{},G))}),r};i[0]===!0&&(l=i[1],i=Array.prototype.slice.call(i,2));const _=i.length;for(t=0;t<_;t++)l=f(l,i[t]);return l},normalizeTickInterval:function(t,i,l,f,_){let r=t;l=j(l,x(t));const C=t/l;for(i||(i=_?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],f===!1&&(l===1?i=i.filter(function(G){return G%1===0}):.1>=l&&(i=[1/l]))),f=0;f<i.length&&(r=i[f],!(_&&r*l>=t||!_&&C<=(i[f]+(i[f+1]||i[f]))/2));f++);return r=v(r*l,-Math.round(Math.log(.001)/Math.LN10))},objectEach:P,offset:function(t){const i=a.documentElement;return t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0},{top:t.top+(u.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(u.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,l){return Array((i||2)+1-String(t).replace("-","").length).join(l||"0")+t},pick:j,pInt:H,pushUnique:function(t,i){return 0>t.indexOf(i)&&!!t.push(i)},relativeLength:function(t,i,l){return/%$/.test(t)?i*parseFloat(t)/100+(l||0):parseFloat(t)},removeEvent:w,splat:S,stableSort:function(t,i){const l=t.length;let f,_;for(_=0;_<l;_++)t[_].safeI=_;for(t.sort(function(r,C){return f=i(r,C),f===0?r.safeI-C.safeI:f}),_=0;_<l;_++)delete t[_].safeI},syncTimeout:function(t,i,l){return 0<i?setTimeout(t,i,l):(t.call(0,l),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:e,useSerialIds:function(t){return d=j(t,d)},wrap:function(t,i,l){const f=t[i];t[i]=function(){const _=arguments,r=this;return l.apply(this,[function(){return f.apply(r,arguments.length?arguments:_)}].concat([].slice.call(arguments)))}}},h}),q(k,"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"}}),q(k,"Core/Color/Color.js",[k["Core/Globals.js"],k["Core/Utilities.js"]],function(D,M){const{isNumber:H,merge:Q,pInt:Z}=M;class X{static parse(O){return O?new X(O):X.None}constructor(O){this.rgba=[NaN,NaN,NaN,NaN],this.input=O;const z=D.Color;if(z&&z!==X)return new z(O);this.init(O)}init(O){let z,R;if(typeof O=="object"&&typeof O.stops<"u")this.stops=O.stops.map(L=>new X(L[1]));else if(typeof O=="string"){if(this.input=O=X.names[O.toLowerCase()]||O,O.charAt(0)==="#"){var y=O.length,S=parseInt(O.substr(1),16);y===7?z=[(S&16711680)>>16,(S&65280)>>8,S&255,1]:y===4&&(z=[(S&3840)>>4|(S&3840)>>8,(S&240)>>4|S&240,(S&15)<<4|S&15,1])}if(!z)for(S=X.parsers.length;S--&&!z;)R=X.parsers[S],(y=R.regex.exec(O))&&(z=R.parse(y))}z&&(this.rgba=z)}get(O){const z=this.input,R=this.rgba;if(typeof z=="object"&&typeof this.stops<"u"){const y=Q(z);return y.stops=[].slice.call(y.stops),this.stops.forEach((S,L)=>{y.stops[L]=[y.stops[L][0],S.get(O)]}),y}return R&&H(R[0])?O==="rgb"||!O&&R[3]===1?"rgb("+R[0]+","+R[1]+","+R[2]+")":O==="a"?`${R[3]}`:"rgba("+R.join(",")+")":z}brighten(O){const z=this.rgba;if(this.stops)this.stops.forEach(function(R){R.brighten(O)});else if(H(O)&&O!==0)for(let R=0;3>R;R++)z[R]+=Z(255*O),0>z[R]&&(z[R]=0),255<z[R]&&(z[R]=255);return this}setOpacity(O){return this.rgba[3]=O,this}tweenTo(O,z){const R=this.rgba,y=O.rgba;return!H(R[0])||!H(y[0])?O.input||"none":(O=y[3]!==1||R[3]!==1,(O?"rgba(":"rgb(")+Math.round(y[0]+(R[0]-y[0])*(1-z))+","+Math.round(y[1]+(R[1]-y[1])*(1-z))+","+Math.round(y[2]+(R[2]-y[2])*(1-z))+(O?","+(y[3]+(R[3]-y[3])*(1-z)):"")+")")}}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(U){return[Z(U[1]),Z(U[2]),Z(U[3]),parseFloat(U[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(U){return[Z(U[1]),Z(U[2]),Z(U[3]),1]}}],X.None=new X(""),X}),q(k,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),q(k,"Core/Time.js",[k["Core/Globals.js"],k["Core/Utilities.js"]],function(D,M){const{win:H}=D,{defined:Q,error:Z,extend:X,isObject:U,merge:O,objectEach:z,pad:R,pick:y,splat:S,timeUnits:L}=M,j=D.isSafari&&H.Intl&&H.Intl.DateTimeFormat.prototype.formatRange,c=D.isSafari&&H.Intl&&!H.Intl.DateTimeFormat.prototype.formatRange;class x{constructor(p){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=H.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(p)}get(p,P){if(this.variableTimezone||this.timezoneOffset){const w=P.getTime(),b=w-this.getTimezoneOffset(P);return P.setTime(b),p=P["getUTC"+p](),P.setTime(w),p}return this.useUTC?P["getUTC"+p]():P["get"+p]()}set(p,P,w){if(this.variableTimezone||this.timezoneOffset){if(p==="Milliseconds"||p==="Seconds"||p==="Minutes"&&this.getTimezoneOffset(P)%36e5===0)return P["setUTC"+p](w);var b=this.getTimezoneOffset(P);return b=P.getTime()-b,P.setTime(b),P["setUTC"+p](w),p=this.getTimezoneOffset(P),b=P.getTime()+p,P.setTime(b)}return this.useUTC||j&&p==="FullYear"?P["setUTC"+p](w):P["set"+p](w)}update(p={}){const P=y(p.useUTC,!0);this.options=p=O(!0,this.options,p),this.Date=p.Date||H.Date||Date,this.timezoneOffset=(this.useUTC=P)&&p.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=P&&!(!p.getTimezoneOffset&&!p.timezone)}makeTime(p,P,w,b,n,a){let u,h,d;return this.useUTC?(u=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(u),u+=h,d=this.getTimezoneOffset(u),h!==d?u+=d-h:h-36e5!==this.getTimezoneOffset(u-36e5)||c||(u-=36e5)):u=new this.Date(p,P,y(w,1),y(b,0),y(n,0),y(a,0)).getTime(),u}timezoneOffsetFunction(){const p=this,P=this.options,w=P.getTimezoneOffset,b=P.moment||H.moment;if(!this.useUTC)return function(n){return 6e4*new Date(n.toString()).getTimezoneOffset()};if(P.timezone){if(b)return function(n){return 6e4*-b.tz(n,P.timezone).utcOffset()};Z(25)}return this.useUTC&&w?function(n){return 6e4*w(n.valueOf())}:function(){return 6e4*(p.timezoneOffset||0)}}dateFormat(p,P,w){if(!Q(P)||isNaN(P))return D.defaultOptions.lang&&D.defaultOptions.lang.invalidDate||"";p=y(p,"%Y-%m-%d %H:%M:%S");const b=this;var n=new this.Date(P);const a=this.get("Hours",n),u=this.get("Day",n),h=this.get("Date",n),d=this.get("Month",n),e=this.get("FullYear",n),t=D.defaultOptions.lang,i=t&&t.weekdays,l=t&&t.shortWeekdays;return n=X({a:l?l[u]:i[u].substr(0,3),A:i[u],d:R(h),e:R(h,2," "),w:u,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(a),k:a,I:R(a%12||12),l:a%12||12,M:R(this.get("Minutes",n)),p:12>a?"AM":"PM",P:12>a?"am":"pm",S:R(n.getSeconds()),L:R(Math.floor(P%1e3),3)},D.dateFormats),z(n,function(f,_){for(;p.indexOf("%"+_)!==-1;)p=p.replace("%"+_,typeof f=="function"?f.call(b,P):f)}),w?p.substr(0,1).toUpperCase()+p.substr(1):p}resolveDTLFormat(p){return U(p,!0)?p:(p=S(p),{main:p[0],from:p[1],to:p[2]})}getTimeTicks(p,P,w,b){const n=this,a=[],u={};var h=new n.Date(P);const d=p.unitRange,e=p.count||1;let t;if(b=y(b,1),Q(P)){if(n.set("Milliseconds",h,d>=L.second?0:e*Math.floor(n.get("Milliseconds",h)/e)),d>=L.second&&n.set("Seconds",h,d>=L.minute?0:e*Math.floor(n.get("Seconds",h)/e)),d>=L.minute&&n.set("Minutes",h,d>=L.hour?0:e*Math.floor(n.get("Minutes",h)/e)),d>=L.hour&&n.set("Hours",h,d>=L.day?0:e*Math.floor(n.get("Hours",h)/e)),d>=L.day&&n.set("Date",h,d>=L.month?1:Math.max(1,e*Math.floor(n.get("Date",h)/e))),d>=L.month){n.set("Month",h,d>=L.year?0:e*Math.floor(n.get("Month",h)/e));var i=n.get("FullYear",h)}d>=L.year&&n.set("FullYear",h,i-i%e),d===L.week&&(i=n.get("Day",h),n.set("Date",h,n.get("Date",h)-i+b+(i<b?-7:0))),i=n.get("FullYear",h),b=n.get("Month",h);const l=n.get("Date",h),f=n.get("Hours",h);for(P=h.getTime(),!n.variableTimezone&&n.useUTC||!Q(w)||(t=w-P>4*L.month||n.getTimezoneOffset(P)!==n.getTimezoneOffset(w)),P=h.getTime(),h=1;P<w;)a.push(P),P=d===L.year?n.makeTime(i+h*e,0):d===L.month?n.makeTime(i,b+h*e):!t||d!==L.day&&d!==L.week?t&&d===L.hour&&1<e?n.makeTime(i,b,l,f+h*e):P+d*e:n.makeTime(i,b,l+h*e*(d===L.day?1:7)),h++;a.push(P),d<=L.hour&&1e4>a.length&&a.forEach(function(_){_%18e5===0&&n.dateFormat("%H%M%S%L",_)==="000000000"&&(u[_]="day")})}return a.info=X(p,{higherRanks:u,totalRange:d*e}),a}getDateFormat(p,P,w,b){const n=this.dateFormat("%m-%d %H:%M:%S.%L",P),a={millisecond:15,second:12,minute:9,hour:6,day:3};let u,h="millisecond";for(u in L){if(p===L.week&&+this.dateFormat("%w",P)===w&&n.substr(6)==="00:00:00.000"){u="week";break}if(L[u]>p){u=h;break}if(a[u]&&n.substr(a[u])!=="01-01 00:00:00.000".substr(a[u]))break;u!=="week"&&(h=u)}return this.resolveDTLFormat(b[u]).main}}return x}),q(k,"Core/Defaults.js",[k["Core/Chart/ChartDefaults.js"],k["Core/Color/Color.js"],k["Core/Globals.js"],k["Core/Color/Palettes.js"],k["Core/Time.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z,X){const{isTouchDevice:U,svg:O}=H,{merge:z}=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:D,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:U?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 y=new Z(R.time);return D={defaultOptions:R,defaultTime:y,getOptions:function(){return R},setOptions:function(S){return z(!0,R,S),(S.time||S.global)&&(H.time?H.time.update(z(R.global,R.time,S.global,S.time)):H.time=y),R}},D}),q(k,"Core/Animation/Fx.js",[k["Core/Color/Color.js"],k["Core/Globals.js"],k["Core/Utilities.js"]],function(D,M,H){const{parse:Q}=D,{win:Z}=M,{isNumber:X,objectEach:U}=H;class O{constructor(R,y,S){this.pos=NaN,this.options=y,this.elem=R,this.prop=S}dSetter(){var R=this.paths;const y=R&&R[0];R=R&&R[1];const S=this.now||0;let L=[];if(S!==1&&y&&R)if(y.length===R.length&&1>S)for(let j=0;j<R.length;j++){const c=y[j],x=R[j],v=[];for(let p=0;p<x.length;p++){const P=c[p],w=x[p];X(P)&&X(w)&&(x[0]!=="A"||p!==4&&p!==5)?v[p]=P+S*(w-P):v[p]=w}L.push(v)}else L=R;else L=this.toD||[];this.elem.attr("d",L,void 0,!0)}update(){const R=this.elem,y=this.prop,S=this.now,L=this.options.step;this[y+"Setter"]?this[y+"Setter"]():R.attr?R.element&&R.attr(y,S,null,!0):R.style[y]=S+this.unit,L&&L.call(R,S,this)}run(R,y,S){const L=this,j=L.options,c=function(p){return c.stopped?!1:L.step(p)},x=Z.requestAnimationFrame||function(p){setTimeout(p,13)},v=function(){for(let p=0;p<O.timers.length;p++)O.timers[p]()||O.timers.splice(p--,1);O.timers.length&&x(v)};R!==y||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=R,this.end=y,this.unit=S,this.now=this.start,this.pos=0,c.elem=this.elem,c.prop=this.prop,c()&&O.timers.push(c)===1&&x(v)):(delete j.curAnim[this.prop],j.complete&&Object.keys(j.curAnim).length===0&&j.complete.call(this.elem))}step(R){const y=+new Date,S=this.options,L=this.elem,j=S.complete,c=S.duration,x=S.curAnim;let v;return L.attr&&!L.element?R=!1:R||y>=c+this.startTime?(this.now=this.end,this.pos=1,this.update(),v=x[this.prop]=!0,U(x,function(p){p!==!0&&(v=!1)}),v&&j&&j.call(L),R=!1):(this.pos=S.easing((y-this.startTime)/c),this.now=this.start+(this.end-this.start)*this.pos,this.update(),R=!0),R}initPath(R,y,S){function L(n,a){for(;n.length<w;){var u=n[0];const h=a[w-n.length];h&&u[0]==="M"&&(n[0]=h[0]==="C"?["C",u[1],u[2],u[1],u[2],u[1],u[2]]:["L",u[1],u[2]]),n.unshift(u),v&&(u=n.pop(),n.push(n[n.length-1],u))}}function j(n,a){for(;n.length<w;)if(a=n[Math.floor(n.length/p)-1].slice(),a[0]==="C"&&(a[1]=a[5],a[2]=a[6]),v){const u=n[Math.floor(n.length/p)].slice();n.splice(n.length/2,0,a,u)}else n.push(a)}const c=R.startX,x=R.endX;S=S.slice();const v=R.isArea,p=v?2:1;let P,w,b;if(y=y&&y.slice(),!y)return[S,S];if(c&&x&&x.length){for(R=0;R<c.length;R++)if(c[R]===x[0]){P=R;break}else if(c[0]===x[x.length-c.length+R]){P=R,b=!0;break}else if(c[c.length-1]===x[x.length-c.length+R]){P=c.length-R;break}typeof P>"u"&&(y=[])}return y.length&&X(P)&&(w=S.length+P*p,b?(L(y,S),j(S,y)):(L(S,y),j(y,S))),[y,S]}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}),q(k,"Core/Animation/AnimationUtilities.js",[k["Core/Animation/Fx.js"],k["Core/Utilities.js"]],function(D,M){function H(L){return z(L)?R({duration:500,defer:0},L):{duration:L?500:0,defer:0}}function Q(L,j){let c=D.timers.length;for(;c--;)D.timers[c].elem!==L||j&&j!==D.timers[c].prop||(D.timers[c].stopped=!0)}const{defined:Z,getStyle:X,isArray:U,isNumber:O,isObject:z,merge:R,objectEach:y,pick:S}=M;return{animate:function(L,j,c){let x,v="",p,P,w;z(c)||(w=arguments,c={duration:w[2],easing:w[3],complete:w[4]}),O(c.duration)||(c.duration=400),c.easing=typeof c.easing=="function"?c.easing:Math[c.easing]||Math.easeInOutSine,c.curAnim=R(j),y(j,function(b,n){Q(L,n),P=new D(L,c,n),p=void 0,n==="d"&&U(j.d)?(P.paths=P.initPath(L,L.pathArray,j.d),P.toD=j.d,x=0,p=1):L.attr?x=L.attr(n):(x=parseFloat(X(L,n))||0,n!=="opacity"&&(v="px")),p||(p=b),typeof p=="string"&&p.match("px")&&(p=p.replace(/px/g,"")),P.run(x,p,v)})},animObject:H,getDeferredAnimation:function(L,j,c){const x=H(j);let v=0,p=0;return(c?[c]:L.series).forEach(P=>{P=H(P.options.animation),v=j&&Z(j.defer)?x.defer:Math.max(v,P.duration+P.defer),p=Math.min(x.duration,P.duration)}),L.renderer.forExport&&(v=0),{defer:Math.max(0,v-p),duration:Math.min(v,p)}},setAnimation:function(L,j){j.renderer.globalAnimation=S(L,j.options.chart.animation,!0)},stop:Q}}),q(k,"Core/Renderer/HTML/AST.js",[k["Core/Globals.js"],k["Core/Utilities.js"]],function(D,M){const{SVG_NS:H,win:Q}=D,{attr:Z,createElement:X,css:U,error:O,isFunction:z,isString:R,objectEach:y,splat:S}=M;({trustedTypes:M}=Q);const L=M&&z(M.createPolicy)&&M.createPolicy("highcharts",{createHTML:v=>v});M=L?L.createHTML(""):"";try{var j=!!new DOMParser().parseFromString(M,"text/html")}catch{j=!1}const c=j;class x{static filterUserAttributes(p){return y(p,(P,w)=>{let b=!0;x.allowedAttributes.indexOf(w)===-1&&(b=!1),["background","dynsrc","href","lowsrc","src"].indexOf(w)!==-1&&(b=R(P)&&x.allowedReferences.some(n=>P.indexOf(n)===0)),b||(O(33,!1,void 0,{"Invalid attribute in config":`${w}`}),delete p[w]),R(P)&&p[w]&&(p[w]=P.replace(/</g,"&lt;"))}),p}static parseStyle(p){return p.split(";").reduce((P,w)=>{w=w.split(":").map(n=>n.trim());const b=w.shift();return b&&w.length&&(P[b.replace(/-([a-z])/g,n=>n[1].toUpperCase())]=w.join(":")),P},{})}static setElementHTML(p,P){p.innerHTML=x.emptyHTML,P&&new x(P).addToDOM(p)}constructor(p){this.nodes=typeof p=="string"?this.parseMarkup(p):p}addToDOM(p){function P(w,b){let n;return S(w).forEach(function(a){var u=a.tagName;const h=a.textContent?D.doc.createTextNode(a.textContent):void 0,d=x.bypassHTMLFiltering;let e;if(u)if(u==="#text")e=h;else if(x.allowedTags.indexOf(u)!==-1||d){u=D.doc.createElementNS(u==="svg"?H:b.namespaceURI||H,u);const t=a.attributes||{};y(a,function(i,l){l!=="tagName"&&l!=="attributes"&&l!=="children"&&l!=="style"&&l!=="textContent"&&(t[l]=i)}),Z(u,d?t:x.filterUserAttributes(t)),a.style&&U(u,a.style),h&&u.appendChild(h),P(a.children||[],u),e=u}else O(33,!1,void 0,{"Invalid tagName in config":u});e&&b.appendChild(e),n=e}),n}return P(this.nodes,p)}parseMarkup(p){const P=[];if(p=p.trim().replace(/ style=(["'])/g," data-style=$1"),c)p=new DOMParser().parseFromString(L?L.createHTML(p):p,"text/html");else{const b=X("div");b.innerHTML=p,p={body:b}}const w=(b,n)=>{var a=b.nodeName.toLowerCase();const u={tagName:a};if(a==="#text"&&(u.textContent=b.textContent||""),a=b.attributes){const h={};[].forEach.call(a,d=>{d.name==="data-style"?u.style=x.parseStyle(d.value):h[d.name]=d.value}),u.attributes=h}if(b.childNodes.length){const h=[];[].forEach.call(b.childNodes,d=>{w(d,h)}),h.length&&(u.children=h)}n.push(u)};return[].forEach.call(p.body.childNodes,b=>w(b,P)),P}}return x.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(" "),x.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),x.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(" "),x.emptyHTML=M,x.bypassHTMLFiltering=!1,x}),q(k,"Core/Templating.js",[k["Core/Defaults.js"],k["Core/Utilities.js"]],function(D,M){function H(c="",x,v){const p=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,P=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,w=[],b=/f$/,n=/\.([0-9])/,a=Z.lang,u=v&&v.time||X,h=v&&v.numberFormatter||Q,d=(r="")=>{let C;return r==="true"?!0:r==="false"?!1:(C=Number(r)).toString()===r?C:O(r,x)};let e,t,i=0,l;for(;(e=p.exec(c))!==null;){const r=P.exec(e[1]);r&&(e=r,l=!0),t&&t.isBlock||(t={ctx:x,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 f=e[1].split(" ")[0].replace("#","");if(j[f]&&(t.isBlock&&f===t.fn&&i++,t.fn||(t.fn=f)),f=e[1]==="else",t.isBlock&&t.fn&&(e[1]===`/${t.fn}`||f))if(i)f||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],f||(w.push(t),t=void 0)}else t.isBlock||w.push(t);if(r&&(t==null||!t.isBlock))break}return w.forEach(r=>{const{body:C,elseBody:G,expression:J,fn:rt}=r;var B;if(rt){var s=[r],A=J.split(" ");for(B=j[rt].length;B--;)s.unshift(d(A[B+1]));B=j[rt].apply(x,s),r.isBlock&&typeof B=="boolean"&&(B=H(B?C:G,x))}else s=J.split(":"),B=d(s.shift()||""),s.length&&typeof B=="number"&&(s=s.join(":"),b.test(s)?(A=parseInt((s.match(n)||["","-1"])[1],10),B!==null&&(B=h(B,A,a.decimalPoint,-1<s.indexOf(",")?a.thousandsSep:""))):B=u.dateFormat(s,B));c=c.replace(r.find,S(B,""))}),l?H(c,x,v):c}function Q(c,x,v,p){c=+c||0,x=+x;const P=Z.lang;var w=(c.toString().split(".")[1]||"").split("e")[0].length;const b=c.toString().split("e"),n=x;if(x===-1)x=Math.min(w,20);else if(!R(x))x=2;else if(x&&b[1]&&0>b[1]){var a=x+ +b[1];0<=a?(b[0]=(+b[0]).toExponential(a).split("e")[0],x=a):(b[0]=b[0].split(".")[0]||0,c=20>x?(b[0]*Math.pow(10,b[1])).toFixed(x):0,b[1]=0)}a=(Math.abs(b[1]?b[0]:c)+Math.pow(10,-Math.max(x,w)-1)).toFixed(x),w=String(L(a));const u=3<w.length?w.length%3:0;return v=S(v,P.decimalPoint),p=S(p,P.thousandsSep),c=(0>c?"-":"")+(u?w.substr(0,u)+p:""),c=0>+b[1]&&!n?"0":c+w.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+p),x&&(c+=v+a.slice(-x)),b[1]&&+c!=0&&(c+="e"+b[1]),c}const{defaultOptions:Z,defaultTime:X}=D,{extend:U,getNestedProperty:O,isArray:z,isNumber:R,isObject:y,pick:S,pInt:L}=M,j={add:(c,x)=>c+x,divide:(c,x)=>x!==0?c/x:"",eq:(c,x)=>c==x,each:function(c){const x=arguments[arguments.length-1];return z(c)?c.map((v,p)=>H(x.body,U(y(v)?v:{"@this":v},{"@index":p,"@first":p===0,"@last":p===c.length-1}))).join(""):!1},ge:(c,x)=>c>=x,gt:(c,x)=>c>x,if:c=>!!c,le:(c,x)=>c<=x,lt:(c,x)=>c<x,multiply:(c,x)=>c*x,ne:(c,x)=>c!=x,subtract:(c,x)=>c-x,unless:c=>!c};return{dateFormat:function(c,x,v){return X.dateFormat(c,x,v)},format:H,helpers:j,numberFormat:Q}}),q(k,"Core/Renderer/RendererUtilities.js",[k["Core/Utilities.js"]],function(D){const{clamp:M,pick:H,stableSort:Q}=D;var Z;return function(X){function U(O,z,R){const y=O;var S=y.reducedLen||z,L=(P,w)=>(w.rank||0)-(P.rank||0);const j=(P,w)=>P.target-w.target;let c,x=!0,v=[],p=0;for(c=O.length;c--;)p+=O[c].size;if(p>S){for(Q(O,L),p=c=0;p<=S;)p+=O[c].size,c++;v=O.splice(c-1,O.length)}for(Q(O,j),O=O.map(P=>({size:P.size,targets:[P.target],align:H(P.align,.5)}));x;){for(c=O.length;c--;)S=O[c],L=(Math.min.apply(0,S.targets)+Math.max.apply(0,S.targets))/2,S.pos=M(L-S.size*S.align,0,z-S.size);for(c=O.length,x=!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>z&&(O[c-1].pos=z-O[c-1].size),O.splice(c,1),x=!0)}return y.push.apply(y,v),c=0,O.some(P=>{let w=0;return(P.targets||[]).some(()=>(y[c].pos=P.pos+w,typeof R<"u"&&Math.abs(y[c].pos-y[c].target)>R?(y.slice(0,c+1).forEach(b=>delete b.pos),y.reducedLen=(y.reducedLen||z)-.1*z,y.reducedLen>.1*z&&U(y,z,R),!0):(w+=y[c].size,c++,!1)))}),Q(y,j),y}X.distribute=U}(Z||(Z={})),Z}),q(k,"Core/Renderer/SVG/SVGElement.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Color/Color.js"],k["Core/Globals.js"],k["Core/Utilities.js"]],function(D,M,H,Q){const{animate:Z,animObject:X,stop:U}=D,{deg2rad:O,doc:z,svg:R,SVG_NS:y,win:S}=H,{addEvent:L,attr:j,createElement:c,css:x,defined:v,erase:p,extend:P,fireEvent:w,isArray:b,isFunction:n,isObject:a,isString:u,merge:h,objectEach:d,pick:e,pInt:t,syncTimeout:i,uniqueKey:l}=Q;class f{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=y}_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,C,G){G.setAttribute(C,r)}add(r){const C=this.renderer,G=this.element;let J;return r&&(this.parentGroup=r),typeof this.textStr<"u"&&this.element.nodeName==="text"&&C.buildText(this),this.added=!0,(!r||r.handleZ||this.zIndex)&&(J=this.zIndexSetter()),J||(r?r.element:C.box).appendChild(G),this.onAdd&&this.onAdd(),this}addClass(r,C){const G=C?"":this.attr("class")||"";return r=(r||"").split(/ /g).reduce(function(J,rt){return G.indexOf(rt)===-1&&J.push(rt),J},G?[G]:[]).join(" "),r!==G&&this.attr("class",r),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(r,C,G){const J={};var rt=this.renderer,B=rt.alignedObjects,s;let A,N;r?(this.alignOptions=r,this.alignByTranslate=C,(!G||u(G))&&(this.alignTo=s=G||"renderer",p(B,this),B.push(this),G=void 0)):(r=this.alignOptions,C=this.alignByTranslate,s=this.alignTo),G=e(G,rt[s],s==="scrollablePlotBox"?rt.plotBox:void 0,rt),s=r.align;const I=r.verticalAlign;return rt=(G.x||0)+(r.x||0),B=(G.y||0)+(r.y||0),s==="right"?A=1:s==="center"&&(A=2),A&&(rt+=(G.width-(r.width||0))/A),J[C?"translateX":"x"]=Math.round(rt),I==="bottom"?N=1:I==="middle"&&(N=2),N&&(B+=(G.height-(r.height||0))/N),J[C?"translateY":"y"]=Math.round(B),this[this.placed?"animate":"attr"](J),this.placed=!0,this.alignAttr=J,this}alignSetter(r){const C={left:"start",center:"middle",right:"end"};C[r]&&(this.alignValue=r,this.element.setAttribute("text-anchor",C[r]))}animate(r,C,G){const J=X(e(C,this.renderer.globalAnimation,!0));return C=J.defer,z.hidden&&(J.duration=0),J.duration!==0?(G&&(J.complete=G),i(()=>{this.element&&Z(this,r,J)},C)):(this.attr(r,void 0,G||J.complete),d(r,function(rt,B){J.step&&J.step.call(this,rt,{prop:B,pos:1,elem:this})},this)),this}applyTextOutline(r){const C=this.element;r.indexOf("contrast")!==-1&&(r=r.replace(/contrast/g,this.renderer.getContrast(C.style.fill)));var G=r.split(" ");if(r=G[G.length-1],(G=G[0])&&G!=="none"&&H.svg){this.fakeTS=!0,G=G.replace(/(^[\d\.]+)(.*?)$/g,function(B,s,A){return 2*Number(s)+A}),this.removeTextOutline();const J=z.createElementNS(y,"tspan");j(J,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":G,"stroke-linejoin":"round"}),r=C.querySelector("textPath")||C,[].forEach.call(r.childNodes,B=>{const s=B.cloneNode(!0);s.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(A=>s.removeAttribute(A)),J.appendChild(s)});let rt=0;[].forEach.call(r.querySelectorAll("text tspan"),B=>{rt+=Number(B.getAttribute("dy"))}),G=z.createElementNS(y,"tspan"),G.textContent="​",j(G,{x:Number(C.getAttribute("x")),dy:-rt}),J.appendChild(G),r.insertBefore(J,r.firstChild)}}attr(r,C,G,J){const rt=this.element,B=f.symbolCustomAttribs;let s,A,N=this,I,K;return typeof r=="string"&&typeof C<"u"&&(s=r,r={},r[s]=C),typeof r=="string"?N=(this[r+"Getter"]||this._defaultGetter).call(this,r,rt):(d(r,function(o,m){I=!1,J||U(this,m),this.symbolName&&B.indexOf(m)!==-1&&(A||(this.symbolAttr(r),A=!0),I=!0),!this.rotation||m!=="x"&&m!=="y"||(this.doTransform=!0),I||(K=this[m+"Setter"]||this._defaultSetter,K.call(this,o,m,rt))},this),this.afterSetters()),G&&G.call(this),N}clip(r){return this.attr("clip-path",r?"url("+this.renderer.url+"#"+r.id+")":"none")}crisp(r,C){C=C||r.strokeWidth||0;const G=Math.round(C)%2/2;return r.x=Math.floor(r.x||this.x||0)+G,r.y=Math.floor(r.y||this.y||0)+G,r.width=Math.floor((r.width||this.width||0)-2*G),r.height=Math.floor((r.height||this.height||0)-2*G),v(r.strokeWidth)&&(r.strokeWidth=C),r}complexColor(r,C,G){const J=this.renderer;let rt,B,s,A,N,I,K,o,m,g,W=[],F;w(this.renderer,"complexColor",{args:arguments},function(){if(r.radialGradient?B="radialGradient":r.linearGradient&&(B="linearGradient"),B){if(s=r[B],N=J.gradients,I=r.stops,m=G.radialReference,b(s)&&(r[B]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),B==="radialGradient"&&m&&!v(s.gradientUnits)&&(A=s,s=h(s,J.getRadialAttr(m,A),{gradientUnits:"userSpaceOnUse"})),d(s,function($,it){it!=="id"&&W.push(it,$)}),d(I,function($){W.push($)}),W=W.join(","),N[W])g=N[W].attr("id");else{s.id=g=l();const $=N[W]=J.createElement(B).attr(s).add(J.defs);$.radAttr=A,$.stops=[],I.forEach(function(it){it[1].indexOf("rgba")===0?(rt=M.parse(it[1]),K=rt.get("rgb"),o=rt.get("a")):(K=it[1],o=1),it=J.createElement("stop").attr({offset:it[0],"stop-color":K,"stop-opacity":o}).add($),$.stops.push(it)})}F="url("+J.url+"#"+g+")",G.setAttribute(C,F),G.gradient=W,r.toString=function(){return F}}})}css(r){const C=this.styles,G={},J=this.element;let rt,B=!C;if(C&&d(r,function(s,A){C&&C[A]!==s&&(G[A]=s,B=!0)}),B){C&&(r=P(C,G)),r.width===null||r.width==="auto"?delete this.textWidth:J.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);J.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(A=>s&&delete s[A]),s.color&&(s.fill=s.color)),x(J,s)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),r.textOutline&&this.applyTextOutline(r.textOutline)),this}dashstyleSetter(r){let C=this["stroke-width"];if(C==="inherit"&&(C=1),r=r&&r.toLowerCase()){const G=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=G.length;r--;)G[r]=""+t(G[r])*e(C,NaN);r=G.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",r)}}destroy(){const r=this;var C=r.element||{};const G=r.renderer;var J=C.ownerSVGElement;let rt=C.nodeName==="SPAN"&&r.parentGroup||void 0;if(C.onclick=C.onmouseout=C.onmouseover=C.onmousemove=C.point=null,U(r),r.clipPath&&J){const B=r.clipPath;[].forEach.call(J.querySelectorAll("[clip-path],[CLIP-PATH]"),function(s){-1<s.getAttribute("clip-path").indexOf(B.element.id)&&s.removeAttribute("clip-path")}),r.clipPath=B.destroy()}if(r.stops){for(J=0;J<r.stops.length;J++)r.stops[J].destroy();r.stops.length=0,r.stops=void 0}for(r.safeRemoveChild(C);rt&&rt.div&&rt.div.childNodes.length===0;)C=rt.parentGroup,r.safeRemoveChild(rt.div),delete rt.div,rt=C;r.alignTo&&p(G.alignedObjects,r),d(r,function(B,s){r[s]&&r[s].parentGroup===r&&r[s].destroy&&r[s].destroy(),delete r[s]})}dSetter(r,C,G){b(r)&&(typeof r[0]=="string"&&(r=this.renderer.pathToSegments(r)),this.pathArray=r,r=r.reduce((J,rt,B)=>rt&&rt.join?(B?J+" ":"")+rt.join(" "):(rt||"").toString(),"")),/(NaN| {2}|^$)/.test(r)&&(r="M 0 0"),this[C]!==r&&(G.setAttribute(C,r),this[C]=r)}fadeOut(r){const C=this;C.animate({opacity:0},{duration:e(r,150),complete:function(){C.hide()}})}fillSetter(r,C,G){typeof r=="string"?G.setAttribute(C,r):r&&this.complexColor(r,C,G)}getBBox(r,C){const{alignValue:G,element:J,renderer:rt,styles:B,textStr:s}=this,{cache:A,cacheKeys:N}=rt;var I=J.namespaceURI===this.SVG_NS;C=e(C,this.rotation,0);var K=rt.styledMode?J&&f.prototype.getStyle.call(J,"font-size"):B&&B.fontSize;let o,m;if(v(s)&&(m=s.toString(),m.indexOf("<")===-1&&(m=m.replace(/[0-9]/g,"0")),m+=["",rt.rootFontSize,K,C,this.textWidth,G,B&&B.textOverflow,B&&B.fontWeight].join()),m&&!r&&(o=A[m]),!o){if(I||rt.forExport){try{var g=this.fakeTS&&function(ot){const at=J.querySelector(".highcharts-text-outline");at&&x(at,{display:ot})};n(g)&&g("none"),o=J.getBBox?P({},J.getBBox()):{width:J.offsetWidth,height:J.offsetHeight,x:0,y:0},n(g)&&g("")}catch{}(!o||0>o.width)&&(o={x:0,y:0,width:0,height:0})}else o=this.htmlGetBBox();if(g=o.width,r=o.height,I&&(o.height=r={"11px,17":14,"13px,20":16}[`${K||""},${Math.round(r)}`]||r),C){I=Number(J.getAttribute("y")||0)-o.y,K={right:1,center:.5}[G||0]||0;var W=C*O,F=(C-90)*O,$=g*Math.cos(W);C=g*Math.sin(W);var it=Math.cos(F);W=Math.sin(F),g=o.x+K*(g-$)+I*it,F=g+$,it=F-r*it,$=it-$,I=o.y+I-K*C+I*W,K=I+C,r=K-r*W,C=r-C,o.x=Math.min(g,F,it,$),o.y=Math.min(I,K,r,C),o.width=Math.max(g,F,it,$)-o.x,o.height=Math.max(I,K,r,C)-o.y}}if(m&&(s===""||0<o.height)){for(;250<N.length;)delete A[N.shift()];A[m]||N.push(m),A[m]=o}return o}getStyle(r){return S.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,C){this.element=C==="span"?c(C):z.createElementNS(this.SVG_NS,C),this.renderer=r,w(this,"afterInit")}on(r,C){const{onEvents:G}=this;return G[r]&&G[r](),G[r]=L(this.element,r,C),this}opacitySetter(r,C,G){this.opacity=r=Number(Number(r).toFixed(3)),G.setAttribute(C,r)}removeClass(r){return this.attr("class",(""+this.attr("class")).replace(u(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 C=r.parentNode;C&&C.removeChild(r)}setRadialReference(r){const C=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=r,C&&C.radAttr&&C.animate(this.renderer.getRadialAttr(r,C.radAttr)),this}setTextPath(r,C){C=h(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},C);const G=this.renderer.url,J=this.text||this,rt=J.textPath,{attributes:B,enabled:s}=C;return r=r||rt&&rt.path,rt&&rt.undo(),r&&s?(C=L(J,"afterModifyTree",A=>{if(r&&s){let I=r.attr("id");I||r.attr("id",I=l());var N={x:0,y:0};v(B.dx)&&(N.dx=B.dx,delete B.dx),v(B.dy)&&(N.dy=B.dy,delete B.dy),J.attr(N),this.attr({transform:""}),this.box&&(this.box=this.box.destroy()),N=A.nodes.slice(0),A.nodes.length=0,A.nodes[0]={tagName:"textPath",attributes:P(B,{"text-anchor":B.textAnchor,href:`${G}#${I}`}),children:N}}}),J.textPath={path:r,undo:C}):(J.attr({dx:0,dy:0}),delete J.textPath),this.added&&(J.textCache="",this.renderer.buildText(J)),this}shadow(r){var C;const{renderer:G}=this,J=h(((C=this.parentGroup)===null||C===void 0?void 0:C.rotation)===90?{offsetX:-1,offsetY:-1}:{},a(r)?r:{});return C=G.shadowDefinition(J),this.attr({filter:r?`url(${G.url}#${C})`:"none"})}show(r=!0){return this.attr({visibility:r?"inherit":"visible"})}"stroke-widthSetter"(r,C,G){this[C]=r,G.setAttribute(C,r)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const r=this.getStyle("stroke-width");let C=0,G;return r.indexOf("px")===r.length-2?C=t(r):r!==""&&(G=z.createElementNS(y,"rect"),j(G,{width:r,"stroke-width":0}),this.element.parentNode.appendChild(G),C=G.getBBox().width,G.parentNode.removeChild(G)),C}symbolAttr(r){const C=this;f.symbolCustomAttribs.forEach(function(G){C[G]=e(r[G],C[G])}),C.attr({d:C.renderer.symbols[C.symbolName](C.x,C.y,C.width,C.height,C)})}textSetter(r){r!==this.textStr&&(delete this.textPxLength,this.textStr=r,this.added&&this.renderer.buildText(this))}titleSetter(r){const C=this.element,G=C.getElementsByTagName("title")[0]||z.createElementNS(this.SVG_NS,"title");C.insertBefore?C.insertBefore(G,C.firstChild):C.appendChild(G),G.textContent=String(e(r,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){const r=this.element;return r.parentNode.appendChild(r),this}translate(r,C){return this.attr({translateX:r,translateY:C})}updateTransform(){const{element:r,matrix:C,rotation:G=0,scaleX:J,scaleY:rt,translateX:B=0,translateY:s=0}=this,A=["translate("+B+","+s+")"];v(C)&&A.push("matrix("+C.join(",")+")"),G&&A.push("rotate("+G+" "+e(this.rotationOriginX,r.getAttribute("x"),0)+" "+e(this.rotationOriginY,r.getAttribute("y")||0)+")"),(v(J)||v(rt))&&A.push("scale("+e(J,1)+" "+e(rt,1)+")"),A.length&&!(this.text||this).textPath&&r.setAttribute("transform",A.join(" "))}visibilitySetter(r,C,G){r==="inherit"?G.removeAttribute(C):this[C]!==r&&G.setAttribute(C,r),this[C]=r}xGetter(r){return this.element.nodeName==="circle"&&(r==="x"?r="cx":r==="y"&&(r="cy")),this._defaultGetter(r)}zIndexSetter(r,C){var G=this.renderer,J=this.parentGroup;const rt=(J||G).element||G.box,B=this.element;G=rt===G.box;let s=!1,A;var N=this.added;let I;if(v(r)?(B.setAttribute("data-z-index",r),r=+r,this[C]===r&&(N=!1)):v(this[C])&&B.removeAttribute("data-z-index"),this[C]=r,N){for((r=this.zIndex)&&J&&(J.handleZ=!0),C=rt.childNodes,I=C.length-1;0<=I&&!s;I--)J=C[I],N=J.getAttribute("data-z-index"),A=!v(N),J!==B&&(0>r&&A&&!G&&!I?(rt.insertBefore(B,C[I]),s=!0):(t(N)<=r||A&&(!v(r)||0<=r))&&(rt.insertBefore(B,C[I+1]),s=!0));s||(rt.insertBefore(B,C[G?3:0]),s=!0)}return s}}return f.symbolCustomAttribs="anchorX anchorY clockwise end height innerR r start width x y".split(" "),f.prototype.strokeSetter=f.prototype.fillSetter,f.prototype.yGetter=f.prototype.xGetter,f.prototype.matrixSetter=f.prototype.rotationOriginXSetter=f.prototype.rotationOriginYSetter=f.prototype.rotationSetter=f.prototype.scaleXSetter=f.prototype.scaleYSetter=f.prototype.translateXSetter=f.prototype.translateYSetter=f.prototype.verticalAlignSetter=function(_,r){this[r]=_,this.doTransform=!0},f}),q(k,"Core/Renderer/RendererRegistry.js",[k["Core/Globals.js"]],function(D){var M;return function(H){H.rendererTypes={};let Q;H.getRendererType=function(Z=Q){return H.rendererTypes[Z]||H.rendererTypes[Q]},H.registerRendererType=function(Z,X,U){H.rendererTypes[Z]=X,(!Q||U)&&(Q=Z,D.Renderer=X)}}(M||(M={})),M}),q(k,"Core/Renderer/SVG/SVGLabel.js",[k["Core/Renderer/SVG/SVGElement.js"],k["Core/Utilities.js"]],function(D,M){const{defined:H,extend:Q,isNumber:Z,merge:X,pick:U,removeEvent:O}=M;class z extends D{constructor(y,S,L,j,c,x,v,p,P,w){super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(y,"g"),this.textStr=S,this.x=L,this.y=j,this.anchorX=x,this.anchorY=v,this.baseline=P,this.className=w,this.addClass(w==="button"?"highcharts-no-tooltip":"highcharts-label"),w&&this.addClass("highcharts-"+w),this.text=y.text(void 0,0,0,p).attr({zIndex:1});let b;typeof c=="string"&&((b=/^url\((.*?)\)$/.test(c))||this.renderer.symbols[c])&&(this.symbolKey=c),this.bBox=z.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=y.styledMode||b,this.deferredAttr={},this.alignFactor=0}alignSetter(y){y={left:0,center:.5,right:1}[y],y!==this.alignFactor&&(this.alignFactor=y,this.bBox&&Z(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(y,S){this.anchorX=y,this.boxAttr(S,Math.round(y)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(y,S){this.anchorY=y,this.boxAttr(S,y-this.ySetting)}boxAttr(y,S){this.box?this.box.attr(y,S):this.deferredAttr[y]=S}css(y){if(y){const S={};y=X(y),z.textProps.forEach(L=>{typeof y[L]<"u"&&(S[L]=y[L],delete y[L])}),this.text.css(S),"fontSize"in S||"fontWeight"in S?this.updateTextPadding():("width"in S||"textOverflow"in S)&&this.updateBoxSize()}return D.prototype.css.call(this,y)}destroy(){O(this.element,"mouseenter"),O(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),D.prototype.destroy.call(this)}fillSetter(y,S){y&&(this.needsBox=!0),this.fill=y,this.boxAttr(S,y)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const y=this.padding,S=U(this.paddingLeft,y);return{width:this.width,height:this.height,x:this.bBox.x-S,y:this.bBox.y-y}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(y){this.heightSetting=y}onAdd(){this.text.add(this),this.attr({text:U(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&H(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(y,S){Z(y)?y!==this[S]&&(this[S]=y,this.updateTextPadding()):this[S]=void 0}rSetter(y,S){this.boxAttr(S,y)}strokeSetter(y,S){this.stroke=y,this.boxAttr(S,y)}"stroke-widthSetter"(y,S){y&&(this.needsBox=!0),this["stroke-width"]=y,this.boxAttr(S,y)}"text-alignSetter"(y){this.textAlign=y}textSetter(y){typeof y<"u"&&this.text.attr({text:y}),this.updateTextPadding()}updateBoxSize(){var y=this.text;const S={},L=this.padding,j=this.bBox=Z(this.widthSetting)&&Z(this.heightSetting)&&!this.textAlign||!H(y.textStr)?z.emptyBBox:y.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||j.height||0)+2*L;const c=this.renderer.fontMetrics(y);this.baselineOffset=L+Math.min((this.text.firstLineMetrics||c).b,j.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-c.h)/2),this.needsBox&&!y.textPath&&(this.box||(y=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),y.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),y.add(this)),y=this.getCrispAdjust(),S.x=y,S.y=(this.baseline?-this.baselineOffset:0)+y,S.width=Math.round(this.width),S.height=Math.round(this.height),this.box.attr(Q(S,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const y=this.text;if(!y.textPath){this.updateBoxSize();const S=this.baseline?0:this.baselineOffset;let L=U(this.paddingLeft,this.padding);H(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(L+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(L!==y.x||S!==y.y)&&(y.attr("x",L),y.hasBoxWidthChanged&&(this.bBox=y.getBBox(!0)),typeof S<"u"&&y.attr("y",S)),y.x=L,y.y=S}}widthSetter(y){this.widthSetting=Z(y)?y:void 0}getPaddedWidth(){var y=this.padding;const S=U(this.paddingLeft,y);return y=U(this.paddingRight,y),(this.widthSetting||this.bBox.width||0)+S+y}xSetter(y){this.x=y,this.alignFactor&&(y-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(y),this.attr("translateX",this.xSetting)}ySetter(y){this.ySetting=this.y=Math.round(y),this.attr("translateY",this.ySetting)}}return z.emptyBBox={width:0,height:0,x:0,y:0},z.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),z}),q(k,"Core/Renderer/SVG/Symbols.js",[k["Core/Utilities.js"]],function(D){function M(O,z,R,y,S){const L=[];if(S){const j=S.start||0,c=U(S.r,R);R=U(S.r,y||R),y=(S.end||0)-.001;const x=S.innerR,v=U(S.open,.001>Math.abs((S.end||0)-j-2*Math.PI)),p=Math.cos(j),P=Math.sin(j),w=Math.cos(y),b=Math.sin(y),n=U(S.longArc,.001>y-j-Math.PI?0:1);let a=["A",c,R,0,n,U(S.clockwise,1),O+c*w,z+R*b];a.params={start:j,end:y,cx:O,cy:z},L.push(["M",O+c*p,z+R*P],a),Z(x)&&(a=["A",x,x,0,n,Z(S.clockwise)?1-S.clockwise:0,O+x*p,z+x*P],a.params={start:y,end:j,cx:O,cy:z},L.push(v?["M",O+x*w,z+x*b]:["L",O+x*w,z+x*b],a)),v||L.push(["Z"])}return L}function H(O,z,R,y,S){return S&&S.r?Q(O,z,R,y,S):[["M",O,z],["L",O+R,z],["L",O+R,z+y],["L",O,z+y],["Z"]]}function Q(O,z,R,y,S){return S=(S==null?void 0:S.r)||0,[["M",O+S,z],["L",O+R-S,z],["A",S,S,0,0,1,O+R,z+S],["L",O+R,z+y-S],["A",S,S,0,0,1,O+R-S,z+y],["L",O+S,z+y],["A",S,S,0,0,1,O,z+y-S],["L",O,z+S],["A",S,S,0,0,1,O+S,z],["Z"]]}const{defined:Z,isNumber:X,pick:U}=D;return{arc:M,callout:function(O,z,R,y,S){const L=Math.min(S&&S.r||0,R,y),j=L+6,c=S&&S.anchorX;S=S&&S.anchorY||0;const x=Q(O,z,R,y,{r:L});return X(c)&&(O+c>=R?S>z+j&&S<z+y-j?x.splice(3,1,["L",O+R,S-6],["L",O+R+6,S],["L",O+R,S+6],["L",O+R,z+y-L]):x.splice(3,1,["L",O+R,y/2],["L",c,S],["L",O+R,y/2],["L",O+R,z+y-L]):0>=O+c?S>z+j&&S<z+y-j?x.splice(7,1,["L",O,S+6],["L",O-6,S],["L",O,S-6],["L",O,z+L]):x.splice(7,1,["L",O,y/2],["L",c,S],["L",O,y/2],["L",O,z+L]):S&&S>y&&c>O+j&&c<O+R-j?x.splice(5,1,["L",c+6,z+y],["L",c,z+y+6],["L",c-6,z+y],["L",O+L,z+y]):S&&0>S&&c>O+j&&c<O+R-j&&x.splice(1,1,["L",c-6,z],["L",c,z-6],["L",c+6,z],["L",R-L,z])),x},circle:function(O,z,R,y){return M(O+R/2,z+y/2,R/2,y/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(O,z,R,y){return[["M",O+R/2,z],["L",O+R,z+y/2],["L",O+R/2,z+y],["L",O,z+y/2],["Z"]]},rect:H,roundedRect:Q,square:H,triangle:function(O,z,R,y){return[["M",O+R/2,z],["L",O+R,z+y],["L",O,z+y],["Z"]]},"triangle-down":function(O,z,R,y){return[["M",O,z],["L",O+R,z],["L",O+R/2,z+y],["Z"]]}}}),q(k,"Core/Renderer/SVG/TextBuilder.js",[k["Core/Renderer/HTML/AST.js"],k["Core/Globals.js"],k["Core/Utilities.js"]],function(D,M,H){const{doc:Q,SVG_NS:Z,win:X}=M,{attr:U,extend:O,fireEvent:z,isString:R,objectEach:y,pick:S}=H;class L{constructor(c){const x=c.styles;this.renderer=c.renderer,this.svgElement=c,this.width=c.textWidth,this.textLineHeight=x&&x.lineHeight,this.textOutline=x&&x.textOutline,this.ellipsis=!(!x||x.textOverflow!=="ellipsis"),this.noWrap=!(!x||x.whiteSpace!=="nowrap")}buildSVG(){const c=this.svgElement,x=c.element;var v=c.renderer,p=S(c.textStr,"").toString();const P=p.indexOf("<")!==-1,w=x.childNodes;v=!c.added&&v.box;const b=/<br.*?>/g;var n=[p,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,c.getStyle("font-size"),this.width].join();if(n!==c.textCache){for(c.textCache=n,delete c.actualWidth,n=w.length;n--;)x.removeChild(w[n]);P||this.ellipsis||this.width||c.textPath||p.indexOf(" ")!==-1&&(!this.noWrap||b.test(p))?p!==""&&(v&&v.appendChild(x),p=new D(p),this.modifyTree(p.nodes),p.addToDOM(x),this.modifyDOM(),this.ellipsis&&(x.textContent||"").indexOf("…")!==-1&&c.attr("title",this.unescapeEntities(c.textStr||"",["&lt;","&gt;"])),v&&v.removeChild(x)):x.appendChild(Q.createTextNode(this.unescapeEntities(p))),R(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}}modifyDOM(){const c=this.svgElement,x=U(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"),(b,n)=>{b.nextSibling&&b.previousSibling&&(n===0&&b.previousSibling.nodeType===1&&(c.firstLineMetrics=c.renderer.fontMetrics(b.previousSibling)),U(b,{dy:this.getLineHeight(b.nextSibling),x}))});const p=this.width||0;if(p){var P=(b,n)=>{var a=b.textContent||"";const u=a.replace(/([^\^])-/g,"$1- ").split(" ");var h=!this.noWrap&&(1<u.length||1<c.element.childNodes.length);const d=this.getLineHeight(n);let e=0,t=c.actualWidth;if(this.ellipsis)a&&this.truncate(b,a,void 0,0,Math.max(0,p-.8*d),(i,l)=>i.substring(0,l)+"…");else if(h){for(a=[],h=[];n.firstChild&&n.firstChild!==b;)h.push(n.firstChild),n.removeChild(n.firstChild);for(;u.length;)u.length&&!this.noWrap&&0<e&&(a.push(b.textContent||""),b.textContent=u.join(" ").replace(/- /g,"-")),this.truncate(b,void 0,u,e===0&&t||0,p,(i,l)=>u.slice(0,l).join(" ").replace(/- /g,"-")),t=c.actualWidth,e++;h.forEach(i=>{n.insertBefore(i,b)}),a.forEach(i=>{n.insertBefore(Q.createTextNode(i),b),i=Q.createElementNS(Z,"tspan"),i.textContent="​",U(i,{dy:d,x}),n.insertBefore(i,b)})}},w=b=>{[].slice.call(b.childNodes).forEach(n=>{n.nodeType===X.Node.TEXT_NODE?P(n,b):(n.className.baseVal.indexOf("highcharts-br")!==-1&&(c.actualWidth=0),w(n))})};w(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 x=(v,p)=>{const{attributes:P={},children:w,style:b={},tagName:n}=v,a=this.renderer.styledMode;n==="b"||n==="strong"?a?P.class="highcharts-strong":b.fontWeight="bold":(n==="i"||n==="em")&&(a?P.class="highcharts-emphasized":b.fontStyle="italic"),b&&b.color&&(b.fill=b.color),n==="br"?(P.class="highcharts-br",v.textContent="​",(p=c[p+1])&&p.textContent&&(p.textContent=p.textContent.replace(/^ +/gm,""))):n==="a"&&w&&w.some(u=>u.tagName==="#text")&&(v.children=[{children:w,tagName:"tspan"}]),n!=="#text"&&n!=="a"&&(v.tagName="tspan"),O(v,{attributes:P,style:b}),w&&w.filter(u=>u.tagName!=="#text").forEach(x)};c.forEach(x),z(this.svgElement,"afterModifyTree",{nodes:c})}truncate(c,x,v,p,P,w){const b=this.svgElement,{rotation:n}=b,a=[];let u=v?1:0,h=(x||v||"").length,d=h,e,t;const i=function(l,f){if(l=f||l,(f=c.parentNode)&&typeof a[l]>"u"&&f.getSubStringLength)try{a[l]=p+f.getSubStringLength(0,v?l+1:l)}catch{}return a[l]};if(b.rotation=0,t=i(c.textContent.length),p+t>P){for(;u<=h;)d=Math.ceil((u+h)/2),v&&(e=w(v,d)),t=i(d,e&&e.length-1),u===h?u=h+1:t>P?h=d-1:u=d;h===0?c.textContent="":x&&h===x.length-1||(c.textContent=e||w(x||v,d))}v&&v.splice(0,d),b.actualWidth=t,b.rotation=n}unescapeEntities(c,x){return y(this.renderer.escapes,function(v,p){x&&x.indexOf(v)!==-1||(c=c.toString().replace(new RegExp(v,"g"),p))}),c}}return L}),q(k,"Core/Renderer/SVG/SVGRenderer.js",[k["Core/Renderer/HTML/AST.js"],k["Core/Color/Color.js"],k["Core/Globals.js"],k["Core/Renderer/RendererRegistry.js"],k["Core/Renderer/SVG/SVGElement.js"],k["Core/Renderer/SVG/SVGLabel.js"],k["Core/Renderer/SVG/Symbols.js"],k["Core/Renderer/SVG/TextBuilder.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z,X,U,O,z){const{charts:R,deg2rad:y,doc:S,isFirefox:L,isMS:j,isWebKit:c,noop:x,SVG_NS:v,symbolSizes:p,win:P}=H,{addEvent:w,attr:b,createElement:n,css:a,defined:u,destroyObjectProperties:h,extend:d,isArray:e,isNumber:t,isObject:i,isString:l,merge:f,pick:_,pInt:r,uniqueKey:C}=z;let G;class J{constructor(B,s,A,N,I,K,o){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(B,s,A,N,I,K,o)}init(B,s,A,N,I,K,o){const m=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),g=m.element;o||m.css(this.getStyle(N)),B.appendChild(g),b(B,"dir","ltr"),B.innerHTML.indexOf("xmlns")===-1&&b(g,"xmlns",this.SVG_NS),this.box=g,this.boxWrapper=m,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(S.createTextNode("Created with Highcharts 11.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=K,this.forExport=I,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=m.getStyle("font-size"),this.setSize(s,A,!1);let W;L&&B.getBoundingClientRect&&(s=function(){a(B,{left:0,top:0}),W=B.getBoundingClientRect(),a(B,{left:Math.ceil(W.left)-W.left+"px",top:Math.ceil(W.top)-W.top+"px"})},s(),this.unSubPixelFix=w(P,"resize",s))}definition(B){return new D([B]).addToDOM(this.defs.element)}getReferenceURL(){if((L||c)&&S.getElementsByTagName("base").length){if(!u(G)){var B=C();B=new D([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:B},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${B})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(S.body),a(B,{position:"fixed",top:0,left:0,zIndex:9e5});const s=S.elementFromPoint(6,6);G=(s&&s.id)==="hitme",S.body.removeChild(B)}if(G)return P.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(B){return this.style=d({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},B)}setStyle(B){this.boxWrapper.css(this.getStyle(B))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const B=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),h(this.gradients||{}),this.gradients=null,this.defs=B.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}createElement(B){const s=new this.Element;return s.init(this,B),s}getRadialAttr(B,s){return{cx:B[0]-B[2]/2+(s.cx||0)*B[2],cy:B[1]-B[2]/2+(s.cy||0)*B[2],r:(s.r||0)*B[2]}}shadowDefinition(B){const s=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(B).map(N=>B[N])].join("-").replace(/[^a-z0-9\-]/g,""),A=f({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},B);return this.defs.element.querySelector(`#${s}`)||this.definition({tagName:"filter",attributes:{id:s},children:[{tagName:"feDropShadow",attributes:{dx:A.offsetX,dy:A.offsetY,"flood-color":A.color,"flood-opacity":Math.min(5*A.opacity,1),stdDeviation:A.width/2}}]}),s}buildText(B){new O(B).buildSVG()}getContrast(B){return B=M.parse(B).rgba.map(s=>(s/=255,.03928>=s?s/12.92:Math.pow((s+.055)/1.055,2.4))),B=.2126*B[0]+.7152*B[1]+.0722*B[2],1.05/(B+.05)>(B+.05)/.05?"#FFFFFF":"#000000"}button(B,s,A,N,I={},K,o,m,g,W){const F=this.label(B,s,A,g,void 0,void 0,W,void 0,"button"),$=this.styledMode;B=I.states||{};let it=0;I=f(I),delete I.states;const ot=f({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},I.style);delete I.style;let at=D.filterUserAttributes(I);F.attr(f({padding:8,r:2},at));let ht,ut,E;return $||(at=f({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},at),K=f(at,{fill:"#e6e6e6"},D.filterUserAttributes(K||B.hover||{})),ht=K.style,delete K.style,o=f(at,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},D.filterUserAttributes(o||B.select||{})),ut=o.style,delete o.style,m=f(at,{style:{color:"#cccccc"}},D.filterUserAttributes(m||B.disabled||{})),E=m.style,delete m.style),w(F.element,j?"mouseover":"mouseenter",function(){it!==3&&F.setState(1)}),w(F.element,j?"mouseout":"mouseleave",function(){it!==3&&F.setState(it)}),F.setState=function(T){T!==1&&(F.state=it=T),F.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][T||0]),$||(F.attr([at,K,o,m][T||0]),T=[ot,ht,ut,E][T||0],i(T)&&F.css(T))},$||(F.attr(at).css(d({cursor:"default"},ot)),W&&F.text.css({pointerEvents:"none"})),F.on("touchstart",T=>T.stopPropagation()).on("click",function(T){it!==3&&N.call(F,T)})}crispLine(B,s,A="round"){const N=B[0],I=B[1];return u(N[1])&&N[1]===I[1]&&(N[1]=I[1]=Math[A](N[1])-s%2/2),u(N[2])&&N[2]===I[2]&&(N[2]=I[2]=Math[A](N[2])+s%2/2),B}path(B){const s=this.styledMode?{}:{fill:"none"};return e(B)?s.d=B:i(B)&&d(s,B),this.createElement("path").attr(s)}circle(B,s,A){return B=i(B)?B:typeof B>"u"?{}:{x:B,y:s,r:A},s=this.createElement("circle"),s.xSetter=s.ySetter=function(N,I,K){K.setAttribute("c"+I,N)},s.attr(B)}arc(B,s,A,N,I,K){return i(B)?(N=B,s=N.y,A=N.r,B=N.x):N={innerR:N,start:I,end:K},B=this.symbol("arc",B,s,A,A,N),B.r=A,B}rect(B,s,A,N,I,K){B=i(B)?B:typeof B>"u"?{}:{x:B,y:s,r:I,width:Math.max(A||0,0),height:Math.max(N||0,0)};const o=this.createElement("rect");return this.styledMode||(typeof K<"u"&&(B["stroke-width"]=K,d(B,o.crisp(B))),B.fill="none"),o.rSetter=function(m,g,W){o.r=m,b(W,{rx:m,ry:m})},o.rGetter=function(){return o.r||0},o.attr(B)}roundedRect(B){return this.symbol("roundedRect").attr(B)}setSize(B,s,A){this.width=B,this.height=s,this.boxWrapper.animate({width:B,height:s},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:_(A,!0)?void 0:0}),this.alignElements()}g(B){const s=this.createElement("g");return B?s.attr({class:"highcharts-"+B}):s}image(B,s,A,N,I,K){const o={preserveAspectRatio:"none"};t(s)&&(o.x=s),t(A)&&(o.y=A),t(N)&&(o.width=N),t(I)&&(o.height=I);const m=this.createElement("image").attr(o);return s=function(g){m.attr({href:B}),K.call(m,g)},K?(m.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),A=new P.Image,w(A,"load",s),A.src=B,A.complete&&s({})):m.attr({href:B}),m}symbol(B,s,A,N,I,K){const o=this,m=/^url\((.*?)\)$/,g=m.test(B),W=!g&&(this.symbols[B]?B:"circle"),F=W&&this.symbols[W];let $,it,ot,at;if(F)typeof s=="number"&&(it=F.call(this.symbols,Math.round(s||0),Math.round(A||0),N||0,I||0,K)),$=this.path(it),o.styledMode||$.attr("fill","none"),d($,{symbolName:W||void 0,x:s,y:A,width:N,height:I}),K&&d($,K);else if(g){ot=B.match(m)[1];const ht=$=this.image(ot);ht.imgwidth=_(K&&K.width,p[ot]&&p[ot].width),ht.imgheight=_(K&&K.height,p[ot]&&p[ot].height),at=ut=>ut.attr({width:ut.width,height:ut.height}),["width","height"].forEach(function(ut){ht[ut+"Setter"]=function(E,T){this[T]=E;const{alignByTranslate:tt,element:V,width:et,height:dt,imgwidth:ct,imgheight:xt}=this;if(E=this["img"+T],u(E)){let yt=1;K&&K.backgroundSize==="within"&&et&&dt?(yt=Math.min(et/ct,dt/xt),b(V,{width:Math.round(ct*yt),height:Math.round(xt*yt)})):V&&V.setAttribute(T,E),tt||this.translate(((et||0)-ct*yt)/2,((dt||0)-xt*yt)/2)}}}),u(s)&&ht.attr({x:s,y:A}),ht.isImg=!0,u(ht.imgwidth)&&u(ht.imgheight)?at(ht):(ht.attr({width:0,height:0}),n("img",{onload:function(){const ut=R[o.chartIndex];this.width===0&&(a(this,{position:"absolute",top:"-999em"}),S.body.appendChild(this)),p[ot]={width:this.width,height:this.height},ht.imgwidth=this.width,ht.imgheight=this.height,ht.element&&at(ht),this.parentNode&&this.parentNode.removeChild(this),o.imgCount--,!o.imgCount&&ut&&!ut.hasLoaded&&ut.onload()},src:ot}),this.imgCount++)}return $}clipRect(B,s,A,N){const I=C()+"-",K=this.createElement("clipPath").attr({id:I}).add(this.defs);return B=this.rect(B,s,A,N,0).add(K),B.id=I,B.clipPath=K,B.count=0,B}text(B,s,A,N){const I={};return N&&(this.allowHTML||!this.forExport)?this.html(B,s,A):(I.x=Math.round(s||0),A&&(I.y=Math.round(A)),u(B)&&(I.text=B),B=this.createElement("text").attr(I),(!N||this.forExport&&!this.allowHTML)&&(B.xSetter=function(K,o,m){const g=m.getElementsByTagName("tspan"),W=m.getAttribute(o);for(let F=0,$;F<g.length;F++)$=g[F],$.getAttribute(o)===W&&$.setAttribute(o,K);m.setAttribute(o,K)}),B)}fontMetrics(B){B=r(Z.prototype.getStyle.call(B,"font-size")||0);const s=24>B?B+3:Math.round(1.2*B);return{h:s,b:Math.round(.8*s),f:B}}rotCorr(B,s,A){let N=B;return s&&A&&(N=Math.max(N*Math.cos(s*y),4)),{x:-B/3*Math.sin(s*y),y:N}}pathToSegments(B){const s=[],A=[],N={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let I=0;I<B.length;I++)l(A[0])&&t(B[I])&&A.length===N[A[0].toUpperCase()]&&B.splice(I,0,A[0].replace("M","L").replace("m","l")),typeof B[I]=="string"&&(A.length&&s.push(A.slice(0)),A.length=0),A.push(B[I]);return s.push(A.slice(0)),s}label(B,s,A,N,I,K,o,m,g){return new X(this,B,s,A,N,I,K,o,m,g)}alignElements(){this.alignedObjects.forEach(B=>B.align())}}return d(J.prototype,{Element:Z,SVG_NS:v,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:U,draw:x}),Q.registerRendererType("svg",J,!0),J}),q(k,"Core/Renderer/HTML/HTMLElement.js",[k["Core/Globals.js"],k["Core/Renderer/SVG/SVGElement.js"],k["Core/Utilities.js"]],function(D,M,H){const{isFirefox:Q,isMS:Z,isWebKit:X,win:U}=D,{css:O,defined:z,extend:R,pick:y,pInt:S}=H,L=[];class j extends M{static compose(x){if(H.pushUnique(L,x)){const v=j.prototype,p=x.prototype;p.getSpanCorrection=v.getSpanCorrection,p.htmlCss=v.htmlCss,p.htmlGetBBox=v.htmlGetBBox,p.htmlUpdateTransform=v.htmlUpdateTransform,p.setSpanRotation=v.setSpanRotation}return x}getSpanCorrection(x,v,p){this.xCorr=-x*p,this.yCorr=-v}htmlCss(x){const v=this.element.tagName==="SPAN"&&x&&"width"in x,p=y(v&&x.width,void 0);let P;return v&&(delete x.width,this.textWidth=p,P=!0),x&&x.textOverflow==="ellipsis"&&(x.whiteSpace="nowrap",x.overflow="hidden"),this.styles=R(this.styles,x),O(this.element,x),P&&this.htmlUpdateTransform(),this}htmlGetBBox(){const x=this.element;return{x:x.offsetLeft,y:x.offsetTop,width:x.offsetWidth,height:x.offsetHeight}}htmlUpdateTransform(){if(this.added){var x=this.renderer,v=this.element,p=this.x||0,P=this.y||0,w=this.textAlign||"left",b={left:0,center:.5,right:1}[w],n=this.styles,a=n&&n.whiteSpace;if(O(v,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),v.tagName==="SPAN"){n=this.rotation;const h=this.textWidth&&S(this.textWidth),d=[n,w,v.innerHTML,this.textWidth,this.textAlign].join();let e=!1;if(h!==this.oldTextWidth){if(this.textPxLength)var u=this.textPxLength;else O(v,{width:"",whiteSpace:a||"nowrap"}),u=v.offsetWidth;(h>this.oldTextWidth||u>h)&&(/[ \-]/.test(v.textContent||v.innerText)||v.style.textOverflow==="ellipsis")&&(O(v,{width:u>h||n?h+"px":"auto",display:"block",whiteSpace:a||"normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e,d!==this.cTT&&(x=x.fontMetrics(v).b,!z(n)||n===(this.oldRotation||0)&&w===this.oldAlign||this.setSpanRotation(n,b,x),this.getSpanCorrection(!z(n)&&this.textPxLength||v.offsetWidth,x,b,n,w)),O(v,{left:p+(this.xCorr||0)+"px",top:P+(this.yCorr||0)+"px"}),this.cTT=d,this.oldRotation=n,this.oldAlign=w}}else this.alignOnAdd=!0}setSpanRotation(x,v,p){const P={},w=Z&&!/Edge/.test(U.navigator.userAgent)?"-ms-transform":X?"-webkit-transform":Q?"MozTransform":U.opera?"-o-transform":void 0;w&&(P[w]=P.transform="rotate("+x+"deg)",P[w+(Q?"Origin":"-origin")]=P.transformOrigin=100*v+"% "+p+"px",O(this.element,P))}}return j}),q(k,"Core/Renderer/HTML/HTMLRenderer.js",[k["Core/Renderer/HTML/AST.js"],k["Core/Renderer/SVG/SVGElement.js"],k["Core/Renderer/SVG/SVGRenderer.js"],k["Core/Utilities.js"]],function(D,M,H,Q){const{attr:Z,createElement:X,extend:U,pick:O}=Q,z=[];class R extends H{static compose(S){return Q.pushUnique(z,S)&&(S.prototype.html=R.prototype.html),S}html(S,L,j){const c=this.createElement("span"),x=c.element,v=c.renderer,p=function(P,w){["opacity","visibility"].forEach(function(b){P[b+"Setter"]=function(n,a,u){const h=P.div?P.div.style:w;M.prototype[b+"Setter"].call(this,n,a,u),h&&(h[a]=n)}}),P.addedSetters=!0};return c.textSetter=function(P){P!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,D.setElementHTML(this.element,O(P,"")),this.textStr=P,c.doTransform=!0)},p(c,c.element.style),c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(P,w){w==="align"?c.alignValue=c.textAlign=P:c[w]=P,c.doTransform=!0},c.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},c.attr({text:S,x:Math.round(L),y:Math.round(j)}).css({position:"absolute"}),v.styledMode||c.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),x.style.whiteSpace="nowrap",c.css=c.htmlCss,c.add=function(P){const w=v.box.parentNode,b=[];let n;if(this.parentGroup=P){if(n=P.div,!n){for(;P;)b.push(P),P=P.parentGroup;b.reverse().forEach(function(a){function u(t,i){a[i]=t,i==="translateX"?e.left=t+"px":e.top=t+"px",a.doTransform=!0}const h=Z(a.element,"class"),d=a.styles||{};n=a.div=a.div||X("div",h?{className:h}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,visibility:a.visibility},n||w);const e=n.style;U(a,{classSetter:function(t){return function(i){this.element.setAttribute("class",i),t.className=i}}(n),css:function(t){return c.css.call(a,t),["cursor","pointerEvents"].forEach(i=>{t[i]&&(e[i]=t[i])}),a},on:function(){return b[0].div&&c.on.apply({element:b[0].div,onEvents:a.onEvents},arguments),a},translateXSetter:u,translateYSetter:u}),a.addedSetters||p(a),a.css(d)})}}else n=w;return n.appendChild(x),c.added=!0,c.alignOnAdd&&c.htmlUpdateTransform(),c},c}}return R}),q(k,"Core/Axis/AxisDefaults.js",[],function(){var D;return function(M){M.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"},M.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:H}=this.axis.chart;return H(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},M.defaultLeftAxisOptions={title:{rotation:270}},M.defaultRightAxisOptions={title:{rotation:90}},M.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},M.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(D||(D={})),D}),q(k,"Core/Foundation.js",[k["Core/Utilities.js"]],function(D){const{addEvent:M,isFunction:H,objectEach:Q,removeEvent:Z}=D;var X;return function(U){U.registerEventOptions=function(O,z){O.eventOptions=O.eventOptions||{},Q(z.events,function(R,y){O.eventOptions[y]!==R&&(O.eventOptions[y]&&(Z(O,y,O.eventOptions[y]),delete O.eventOptions[y]),H(R)&&(O.eventOptions[y]=R,M(O,y,R,{order:0})))})}}(X||(X={})),X}),q(k,"Core/Axis/Tick.js",[k["Core/Templating.js"],k["Core/Globals.js"],k["Core/Utilities.js"]],function(D,M,H){const{deg2rad:Q}=M,{clamp:Z,correctFloat:X,defined:U,destroyObjectProperties:O,extend:z,fireEvent:R,isNumber:y,merge:S,objectEach:L,pick:j}=H;class c{constructor(v,p,P,w,b){this.isNewLabel=this.isNew=!0,this.axis=v,this.pos=p,this.type=P||"",this.parameters=b||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,R(this,"init"),P||w||this.addLabel()}addLabel(){const v=this,p=v.axis;var P=p.options;const w=p.chart;var b=p.categories;const n=p.logarithmic,a=p.names,u=v.pos,h=j(v.options&&v.options.labels,P.labels);var d=p.tickPositions;const e=u===d[0],t=u===d[d.length-1],i=(!h.step||h.step===1)&&p.tickInterval===1;d=d.info;let l=v.label,f,_,r;b=this.parameters.category||(b?j(b[u],a[u],u):u),n&&y(b)&&(b=X(n.lin2log(b))),p.dateTime&&(d?(_=w.time.resolveDTLFormat(P.dateTimeLabelFormats[!P.grid&&d.higherRanks[u]||d.unitName]),f=_.main):y(b)&&(f=p.dateTime.getXDateFormat(b,P.dateTimeLabelFormats||{}))),v.isFirst=e,v.isLast=t;const C={axis:p,chart:w,dateTimeLabelFormat:f,isFirst:e,isLast:t,pos:u,tick:v,tickPositionInfo:d,value:b};R(this,"labelFormat",C);const G=rt=>h.formatter?h.formatter.call(rt,rt):h.format?(rt.text=p.defaultLabelFormatter.call(rt,rt),D.format(h.format,rt,w)):p.defaultLabelFormatter.call(rt,rt);P=G.call(C,C);const J=_&&_.list;v.shortenLabel=J?function(){for(r=0;r<J.length;r++)if(z(C,{dateTimeLabelFormat:J[r]}),l.attr({text:G.call(C,C)}),l.getBBox().width<p.getSlotWidth(v)-2*h.padding)return;l.attr({text:""})}:void 0,i&&p._addedPlotLB&&v.moveLabel(P,h),U(l)||v.movedLabel?l&&l.textStr!==P&&!i&&(!l.textWidth||h.style.width||l.styles.width||l.css({width:null}),l.attr({text:P}),l.textPxLength=l.getBBox().width):(v.label=l=v.createLabel({x:0,y:0},P,h),v.rotation=0)}createLabel(v,p,P){const w=this.axis,b=w.chart;return(v=U(p)&&P.enabled?b.renderer.text(p,v.x,v.y,P.useHTML).add(w.labelGroup):null)&&(b.styledMode||v.css(S(P.style)),v.textPxLength=v.getBBox().width),v}destroy(){O(this,this.axis)}getPosition(v,p,P,w){const b=this.axis,n=b.chart,a=w&&n.oldChartHeight||n.chartHeight;return v={x:v?X(b.translate(p+P,void 0,void 0,w)+b.transB):b.left+b.offset+(b.opposite?(w&&n.oldChartWidth||n.chartWidth)-b.right-b.left:0),y:v?a-b.bottom+b.offset-(b.opposite?b.height:0):X(a-b.translate(p+P,void 0,void 0,w)-b.transB)},v.y=Z(v.y,-1e5,1e5),R(this,"afterGetPosition",{pos:v}),v}getLabelPosition(v,p,P,w,b,n,a,u){const h=this.axis,d=h.transA,e=h.isLinked&&h.linkedParent?h.linkedParent.reversed:h.reversed,t=h.staggerLines,i=h.tickRotCorr||{x:0,y:0},l=w||h.reserveSpaceDefault?0:-h.labelOffset*(h.labelAlign==="center"?.5:1),f=b.distance,_={};return P=h.side===0?P.rotation?-f:-P.getBBox().height:h.side===2?i.y+f:Math.cos(P.rotation*Q)*(i.y-P.getBBox(!1,0).height/2),U(b.y)&&(P=h.side===0&&h.horiz?b.y+P:b.y),v=v+j(b.x,[0,1,0,-1][h.side]*f)+l+i.x-(n&&w?n*d*(e?-1:1):0),p=p+P-(n&&!w?n*d*(e?1:-1):0),t&&(w=a/(u||1)%t,h.opposite&&(w=t-w-1),p+=h.labelOffset/t*w),_.x=v,_.y=Math.round(p),R(this,"afterGetLabelPosition",{pos:_,tickmarkOffset:n,index:a}),_}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(v,p,P,w,b,n){return n.crispLine([["M",v,p],["L",v+(b?0:-P),p+(b?P:0)]],w)}handleOverflow(v){const p=this.axis,P=p.options.labels,w=v.x;var b=p.chart.chartWidth,n=p.chart.spacing;const a=j(p.labelLeft,Math.min(p.pos,n[3]));n=j(p.labelRight,Math.max(p.isRadial?0:p.pos+p.len,b-n[1]));const u=this.label,h=this.rotation,d={left:0,center:.5,right:1}[p.labelAlign||u.attr("align")],e=u.getBBox().width,t=p.getSlotWidth(this),i={};let l=t,f=1,_;h||P.overflow!=="justify"?0>h&&w-d*e<a?_=Math.round(w/Math.cos(h*Q)-a):0<h&&w+d*e>n&&(_=Math.round((b-w)/Math.cos(h*Q))):(b=w+(1-d)*e,w-d*e<a?l=v.x+l*(1-d)-a:b>n&&(l=n-v.x+l*d,f=-1),l=Math.min(t,l),l<t&&p.labelAlign==="center"&&(v.x+=f*(t-l-d*(t-Math.min(e,l)))),(e>l||p.autoRotation&&(u.styles||{}).width)&&(_=l)),_&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(_)+"px",(P.style||{}).textOverflow||(i.textOverflow="ellipsis"),u.css(i)))}moveLabel(v,p){const P=this;var w=P.label;const b=P.axis;let n=!1;w&&w.textStr===v?(P.movedLabel=w,n=!0,delete P.label):L(b.ticks,function(a){n||a.isNew||a===P||!a.label||a.label.textStr!==v||(P.movedLabel=a.label,n=!0,a.labelPos=P.movedLabel.xy,delete a.label)}),n||!P.labelPos&&!w||(w=P.labelPos||w.xy,P.movedLabel=P.createLabel(w,v,p),P.movedLabel&&P.movedLabel.attr({opacity:0}))}render(v,p,P){var w=this.axis,b=w.horiz,n=this.pos,a=j(this.tickmarkOffset,w.tickmarkOffset);n=this.getPosition(b,n,a,p),a=n.x;const u=n.y;w=b&&a===w.pos+w.len||!b&&u===w.pos?-1:1,b=j(P,this.label&&this.label.newOpacity,1),P=j(P,1),this.isActive=!0,this.renderGridLine(p,P,w),this.renderMark(n,P,w),this.renderLabel(n,p,b,v),this.isNew=!1,R(this,"afterRender")}renderGridLine(v,p,P){const w=this.axis,b=w.options,n={},a=this.pos,u=this.type,h=j(this.tickmarkOffset,w.tickmarkOffset),d=w.chart.renderer;let e=this.gridLine,t=b.gridLineWidth,i=b.gridLineColor,l=b.gridLineDashStyle;this.type==="minor"&&(t=b.minorGridLineWidth,i=b.minorGridLineColor,l=b.minorGridLineDashStyle),e||(w.chart.styledMode||(n.stroke=i,n["stroke-width"]=t||0,n.dashstyle=l),u||(n.zIndex=1),v&&(p=0),this.gridLine=e=d.path().attr(n).addClass("highcharts-"+(u?u+"-":"")+"grid-line").add(w.gridGroup)),e&&(P=w.getPlotLinePath({value:a+h,lineWidth:e.strokeWidth()*P,force:"pass",old:v,acrossPanes:!1}))&&e[v||this.isNew?"attr":"animate"]({d:P,opacity:p})}renderMark(v,p,P){const w=this.axis;var b=w.options;const n=w.chart.renderer,a=this.type,u=w.tickSize(a?a+"Tick":"tick"),h=v.x;v=v.y;const d=j(b[a!=="minor"?"tickWidth":"minorTickWidth"],!a&&w.isXAxis?1:0);b=b[a!=="minor"?"tickColor":"minorTickColor"];let e=this.mark;const t=!e;u&&(w.opposite&&(u[0]=-u[0]),e||(this.mark=e=n.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(w.axisGroup),w.chart.styledMode||e.attr({stroke:b,"stroke-width":d})),e[t?"attr":"animate"]({d:this.getMarkPath(h,v,u[0],e.strokeWidth()*P,w.horiz,n),opacity:p}))}renderLabel(v,p,P,w){var b=this.axis;const n=b.horiz,a=b.options,u=this.label,h=a.labels,d=h.step;b=j(this.tickmarkOffset,b.tickmarkOffset);const e=v.x;v=v.y;let t=!0;u&&y(e)&&(u.xy=v=this.getLabelPosition(e,v,u,n,h,b,w,d),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?t=!1:!n||h.step||h.rotation||p||P===0||this.handleOverflow(v),d&&w%d&&(t=!1),t&&y(v.y)?(v.opacity=P,u[this.isNewLabel?"attr":"animate"](v).show(!0),this.isNewLabel=!1):(u.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const v=this.label,p=this.axis;v&&!this.isNew&&(v.animate({opacity:0},void 0,v.destroy),delete this.label),p.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}return c}),q(k,"Core/Axis/Axis.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Axis/AxisDefaults.js"],k["Core/Color/Color.js"],k["Core/Defaults.js"],k["Core/Foundation.js"],k["Core/Globals.js"],k["Core/Axis/Tick.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z,X,U,O){const{animObject:z}=D,{defaultOptions:R}=Q,{registerEventOptions:y}=Z,{deg2rad:S}=X,{arrayMax:L,arrayMin:j,clamp:c,correctFloat:x,defined:v,destroyObjectProperties:p,erase:P,error:w,extend:b,fireEvent:n,getClosestDistance:a,insertItem:u,isArray:h,isNumber:d,isString:e,merge:t,normalizeTickInterval:i,objectEach:l,pick:f,relativeLength:_,removeEvent:r,splat:C,syncTimeout:G}=O,J=(B,s)=>i(s,void 0,void 0,f(B.options.allowDecimals,.5>s||B.tickAmount!==void 0),!!B.tickAmount);class rt{constructor(s,A,N){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,A,N)}init(s,A,N=this.coll){const I=N==="xAxis";this.chart=s,this.horiz=this.isZAxis||(s.inverted?!I:I),this.isXAxis=I,this.coll=N,n(this,"init",{userOptions:A}),this.opposite=f(A.opposite,this.opposite),this.side=f(A.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(A),N=this.options;const K=N.labels,o=N.type;this.userOptions=A,this.minPixelPadding=0,this.reversed=f(N.reversed,this.reversed),this.visible=N.visible,this.zoomEnabled=N.zoomEnabled,this.hasNames=o==="category"||N.categories===!0,this.categories=N.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=v(N.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=N.minRange||N.maxZoom,this.range=N.range,this.offset=N.offset||0,this.min=this.max=null,A=f(N.crosshair,C(s.options.tooltip.crosshairs)[I?0:1]),this.crosshair=A===!0?{}:A,s.axes.indexOf(this)===-1&&(I?s.axes.splice(s.xAxis.length,0,this):s.axes.push(this),u(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(K.rotation)?K.rotation:void 0,y(this,N),n(this,"afterInit")}setOptions(s){this.options=t(M.defaultXAxisOptions,this.coll==="yAxis"&&M.defaultYAxisOptions,[M.defaultTopAxisOptions,M.defaultRightAxisOptions,M.defaultBottomAxisOptions,M.defaultLeftAxisOptions][this.side],t(R[this.coll],s)),n(this,"afterSetOptions",{userOptions:s})}defaultLabelFormatter(s){var A=this.axis;({numberFormatter:s}=this.chart);const N=d(this.value)?this.value:NaN,I=A.chart.time,K=this.dateTimeLabelFormat;var o=R.lang;const m=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;const g=A.logarithmic?Math.abs(N):A.tickInterval;let W=m&&m.length,F;if(A.categories)F=`${this.value}`;else if(K)F=I.dateFormat(K,N);else if(W&&1e3<=g)for(;W--&&typeof F>"u";)A=Math.pow(o,W+1),g>=A&&10*N%A===0&&m[W]!==null&&N!==0&&(F=s(N/A,-1)+m[W]);return typeof F>"u"&&(F=1e4<=Math.abs(N)?s(N,-1):s(N,-1,void 0,"")),F}getSeriesExtremes(){const s=this,A=s.chart;let N;n(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||!A.options.chart.ignoreHiddenSeries){var K=I.options;let o=K.threshold,m,g;s.hasVisibleSeries=!0,s.positiveValuesOnly&&0>=o&&(o=null),s.isXAxis?(K=I.xData)&&K.length&&(K=s.logarithmic?K.filter(W=>0<W):K,N=I.getXExtremes(K),m=N.min,g=N.max,d(m)||m instanceof Date||(K=K.filter(d),N=I.getXExtremes(K),m=N.min,g=N.max),K.length&&(s.dataMin=Math.min(f(s.dataMin,m),m),s.dataMax=Math.max(f(s.dataMax,g),g))):(I=I.applyExtremes(),d(I.dataMin)&&(m=I.dataMin,s.dataMin=Math.min(f(s.dataMin,m),m)),d(I.dataMax)&&(g=I.dataMax,s.dataMax=Math.max(f(s.dataMax,g),g)),v(o)&&(s.threshold=o),(!K.softThreshold||s.positiveValuesOnly)&&(s.softThreshold=!1))}})}),n(this,"afterGetSeriesExtremes")}translate(s,A,N,I,K,o){const m=this.linkedParent||this,g=I&&m.old?m.old.min:m.min;if(!d(g))return NaN;const W=m.minPixelPadding;K=(m.isOrdinal||m.brokenAxis&&m.brokenAxis.hasBreaks||m.logarithmic&&K)&&m.lin2val;let F=1,$=0;return I=I&&m.old?m.old.transA:m.transA,I||(I=m.transA),N&&(F*=-1,$=m.len),m.reversed&&(F*=-1,$-=F*(m.sector||m.len)),A?(o=(s*F+$-W)/I+g,K&&(o=m.lin2val(o))):(K&&(s=m.val2lin(s)),s=F*(s-g)*I,o=(m.isRadial?s:x(s))+$+F*W+(d(o)?I*o:0)),o}toPixels(s,A){return this.translate(s,!1,!this.horiz,void 0,!0)+(A?0:this.pos)}toValue(s,A){return this.translate(s-(A?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(s){function A(V,et,dt){return at!=="pass"&&(V<et||V>dt)&&(at?V=c(V,et,dt):tt=!0),V}const N=this,I=N.chart,K=N.left,o=N.top,m=s.old,g=s.value,W=s.lineWidth,F=m&&I.oldChartHeight||I.chartHeight,$=m&&I.oldChartWidth||I.chartWidth,it=N.transB;let ot=s.translatedValue,at=s.force,ht,ut,E,T,tt;return s={value:g,lineWidth:W,old:m,force:at,acrossPanes:s.acrossPanes,translatedValue:ot},n(this,"getPlotLinePath",s,function(V){ot=f(ot,N.translate(g,void 0,void 0,m)),ot=c(ot,-1e5,1e5),ht=E=Math.round(ot+it),ut=T=Math.round(F-ot-it),d(ot)?N.horiz?(ut=o,T=F-N.bottom,ht=E=A(ht,K,K+N.width)):(ht=K,E=$-N.right,ut=T=A(ut,o,o+N.height)):(tt=!0,at=!1),V.path=tt&&!at?null:I.renderer.crispLine([["M",ht,ut],["L",E,T]],W||1)}),s.path}getLinearTickPositions(s,A,N){const I=x(Math.floor(A/s)*s);N=x(Math.ceil(N/s)*s);const K=[];let o,m;if(x(I+s)===I&&(m=20),this.single)return[A];for(A=I;A<=N&&(K.push(A),A=x(A+s,m),A!==o);)o=A;return K}getMinorTickInterval(){const s=this.options;return s.minorTicks===!0?f(s.minorTickInterval,"auto"):s.minorTicks===!1?null:s.minorTickInterval}getMinorTickPositions(){var s=this.options;const A=this.tickPositions,N=this.minorTickInterval;var I=this.pointRangePadding||0;const K=this.min-I;I=this.max+I;const o=I-K;let m=[];if(o&&o/N<this.len/3){const g=this.logarithmic;if(g)this.paddedTicks.forEach(function(W,F,$){F&&m.push.apply(m,g.getLogTickPositions(N,$[F-1],$[F],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")m=m.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(N),K,I,s.startOfWeek));else for(s=K+(A[0]-K)%N;s<=I&&s!==m[0];s+=N)m.push(s)}return m.length!==0&&this.trimTicks(m),m}adjustForMinRange(){const s=this.options,A=this.logarithmic;let N=this.min;var I=this.max;let K,o;if(this.isXAxis&&typeof this.minRange>"u"&&!A)if(v(s.min)||v(s.max)||v(s.floor)||v(s.ceiling))this.minRange=null;else{var m=a(this.series.map(g=>{var W;return(g.xIncrement?(W=g.xData)===null||W===void 0?void 0:W.slice(0,2):g.xData)||[]}))||0;this.minRange=Math.min(5*m,this.dataMax-this.dataMin)}I-N<this.minRange&&(m=this.dataMax-this.dataMin>=this.minRange,o=this.minRange,I=(o-I+N)/2,K=[N-I,f(s.min,N-I)],m&&(K[2]=A?A.log2lin(this.dataMin):this.dataMin),N=L(K),I=[N+o,f(s.max,N+o)],m&&(I[2]=A?A.log2lin(this.dataMax):this.dataMax),I=j(I),I-N<o&&(K[0]=I-o,K[1]=f(s.min,I-o),N=L(K))),this.min=N,this.max=I}getClosest(){let s,A;if(this.categories)A=1;else{const N=[];this.series.forEach(function(I){var K;const o=I.closestPointRange,m=I.visible||!I.chart.options.chart.ignoreHiddenSeries;((K=I.xData)===null||K===void 0?void 0:K.length)===1?N.push(I.xData[0]):!I.noSharedTooltip&&v(o)&&m&&(A=v(A)?Math.min(A,o):o)}),N.length&&(N.sort((I,K)=>I-K),s=a([N]))}return s&&A?Math.min(s,A):s||A}nameToX(s){const A=h(this.options.categories),N=A?this.categories:this.names;let I=s.options.x,K;return s.series.requireSorting=!1,v(I)||(I=this.options.uniqueNames&&N?A?N.indexOf(s.name):f(N.keys[s.name],-1):s.series.autoIncrement()),I===-1?!A&&N&&(K=N.length):K=I,typeof K<"u"?(this.names[K]=s.name,this.names.keys[s.name]=K):s.x&&(K=s.x),K}updateNames(){const s=this,A=this.names;0<A.length&&(Object.keys(A.keys).forEach(function(N){delete A.keys[N]}),A.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(N){N.xIncrement=null,(!N.points||N.isDirtyData)&&(s.max=Math.max(s.max,N.xData.length-1),N.processData(),N.generatePoints()),N.data.forEach(function(I,K){let o;I&&I.options&&typeof I.name<"u"&&(o=s.nameToX(I),typeof o<"u"&&o!==I.x&&(I.x=o,N.xData[K]=o))})}))}setAxisTranslation(){const s=this,A=s.max-s.min;var N=s.linkedParent;const I=!!s.categories,K=s.isXAxis;let o=s.axisPointRange||0,m,g=0,W=0,F=s.transA;(K||I||o)&&(m=s.getClosest(),N?(g=N.minPointOffset,W=N.pointRangePadding):s.series.forEach(function($){const it=I?1:K?f($.options.pointRange,m,0):s.axisPointRange||0,ot=$.options.pointPlacement;o=Math.max(o,it),(!s.single||I)&&($=$.is("xrange")?!K:K,g=Math.max(g,$&&e(ot)?0:it/2),W=Math.max(W,$&&ot==="on"?0:it))}),N=s.ordinal&&s.ordinal.slope&&m?s.ordinal.slope/m:1,s.minPointOffset=g*=N,s.pointRangePadding=W*=N,s.pointRange=Math.min(o,s.single&&I?1:A),K&&m&&(s.closestPointRange=m)),s.translationSlope=s.transA=F=s.staticScale||s.len/(A+W||1),s.transB=s.horiz?s.left:s.bottom,s.minPixelPadding=F*g,n(this,"afterSetAxisTranslation")}minFromRange(){return this.max-this.range}setTickInterval(s){var A=this.chart;const N=this.logarithmic,I=this.options,K=this.isXAxis,o=this.isLinked,m=I.tickPixelInterval,g=this.categories,W=this.softThreshold;let F=I.maxPadding,$=I.minPadding,it=d(I.tickInterval)&&0<=I.tickInterval?I.tickInterval:void 0,ot=d(this.threshold)?this.threshold:null,at,ht,ut;if(this.dateTime||g||o||this.getTickAmount(),ht=f(this.userMin,I.min),ut=f(this.userMax,I.max),o){this.linkedParent=A[this.coll][I.linkedTo];var E=this.linkedParent.getExtremes();this.min=f(E.min,E.dataMin),this.max=f(E.max,E.dataMax),I.type!==this.linkedParent.options.type&&w(11,1,A)}else W&&v(ot)&&(this.dataMin>=ot?(E=ot,$=0):this.dataMax<=ot&&(at=ot,F=0)),this.min=f(ht,E,this.dataMin),this.max=f(ut,at,this.dataMax);if(N&&(this.positiveValuesOnly&&!s&&0>=Math.min(this.min,f(this.dataMin,this.min))&&w(10,1,A),this.min=x(N.log2lin(this.min),16),this.max=x(N.log2lin(this.max),16)),this.range&&v(this.max)&&(this.userMin=this.min=ht=Math.max(this.dataMin,this.minFromRange()),this.userMax=ut=this.max,this.range=null),n(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=ut=I.softMax),!(g||this.axisPointRange||this.stacking&&this.stacking.usePercentage||o)&&v(this.min)&&v(this.max)&&(A=this.max-this.min)&&(!v(ht)&&$&&(this.min-=A*$),!v(ut)&&F&&(this.max+=A*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)&&(ot=ot||0,!v(ht)&&this.min<ot&&this.dataMin>=ot?this.min=this.options.minRange?Math.min(ot,this.max-this.minRange):ot:!v(ut)&&this.max>ot&&this.dataMax<=ot&&(this.max=this.options.minRange?Math.max(ot,this.min+this.minRange):ot)),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:o&&this.linkedParent&&!it&&m===this.linkedParent.options.tickPixelInterval?it=this.linkedParent.tickInterval:f(it,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,g?1:(this.max-this.min)*m/Math.max(this.len,m)),K&&!s){const T=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(tt){tt.forceCrop=tt.forceCropping&&tt.forceCropping(),tt.processData(T)}),n(this,"postProcessData",{hasExtremesChanged:T})}this.setAxisTranslation(),n(this,"initialAxisTranslation"),this.pointRange&&!it&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),s=f(I.minTickInterval,this.dateTime&&!this.series.some(T=>T.noSharedTooltip)?this.closestPointRange:0),!it&&this.tickInterval<s&&(this.tickInterval=s),this.dateTime||this.logarithmic||it||(this.tickInterval=J(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var s=this.options;const A=s.tickPositions,N=s.tickPositioner;var I=this.getMinorTickInterval(),K=this.hasVerticalPanning(),o=this.coll==="colorAxis";const m=(o||!K)&&s.startOnTick;K=(o||!K)&&s.endOnTick,o=[];let g;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),A)o=A.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)o=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)o=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(I=s=this.tickInterval;I<=2*s&&(o=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&o.length>this.tickAmount);)this.tickInterval=J(this,I*=1.1);else o=[this.min,this.max],w(19,!1,this.chart);o.length>this.len&&(o=[o[0],o[o.length-1]],o[0]===o[1]&&(o.length=1)),N&&(this.tickPositions=o,(g=N.apply(this,[this.min,this.max]))&&(o=g))}this.tickPositions=o,this.paddedTicks=o.slice(0),this.trimTicks(o,m,K),!this.isLinked&&d(this.min)&&d(this.max)&&(this.single&&2>o.length&&!this.categories&&!this.series.some(W=>W.is("heatmap")&&W.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),A||g||this.adjustTickAmount()),n(this,"afterSetTickPositions")}trimTicks(s,A,N){const I=s[0],K=s[s.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(n(this,"trimTicks"),!this.isLinked){if(A&&I!==-1/0)this.min=I;else for(;this.min-o>s[0];)s.shift();if(N)this.max=K;else for(;this.max+o<s[s.length-1];)s.pop();s.length===0&&v(I)&&!this.options.tickPositions&&s.push((K+I)/2)}}alignToOthers(){const s=this,A=[this],N=s.options,I=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,K=[];let o;if(s.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||I)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!s.logarithmic){const m=W=>{const{horiz:F,options:$}=W;return[F?$.left:$.top,$.width,$.height,$.pane].join()},g=m(this);this.chart[this.coll].forEach(function(W){const{series:F}=W;F.length&&F.some($=>$.visible)&&W!==s&&m(W)===g&&(o=!0,A.push(W))})}if(o&&I){A.forEach(g=>{g=g.getThresholdAlignment(s),d(g)&&K.push(g)});const m=1<K.length?K.reduce((g,W)=>g+W,0)/K.length:void 0;A.forEach(g=>{g.thresholdAlignment=m})}return o}getThresholdAlignment(s){if((!d(this.dataMin)||this!==s&&this.series.some(A=>A.isDirty||A.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,A=s.tickPixelInterval;let N=s.tickAmount;!v(s.tickInterval)&&!N&&this.len<A&&!this.isRadial&&!this.logarithmic&&s.startOnTick&&s.endOnTick&&(N=2),!N&&this.alignToOthers()&&(N=Math.ceil(this.len/A)+1),4>N&&(this.finalTickAmt=N,N=5),this.tickAmount=N}adjustTickAmount(){const s=this,{finalTickAmt:A,max:N,min:I,options:K,tickPositions:o,tickAmount:m,thresholdAlignment:g}=s,W=o&&o.length;var F=f(s.threshold,s.softThreshold?0:null),$=s.tickInterval;let it;if(d(g)&&(it=.5>g?Math.ceil(g*(m-1)):Math.floor(g*(m-1)),K.reversed&&(it=m-1-it)),s.hasData()&&d(I)&&d(N)){const ot=()=>{s.transA*=(W-1)/(m-1),s.min=K.startOnTick?o[0]:Math.min(I,o[0]),s.max=K.endOnTick?o[o.length-1]:Math.max(N,o[o.length-1])};if(d(it)&&d(s.threshold)){for(;o[it]!==F||o.length!==m||o[0]>I||o[o.length-1]<N;){for(o.length=0,o.push(s.threshold);o.length<m;)o[it]===void 0||o[it]>s.threshold?o.unshift(x(o[0]-$)):o.push(x(o[o.length-1]+$));if($>8*s.tickInterval)break;$*=2}ot()}else if(W<m){for(;o.length<m;)o.length%2||I===F?o.push(x(o[o.length-1]+$)):o.unshift(x(o[0]-$));ot()}if(v(A)){for($=F=o.length;$--;)(A===3&&$%2===1||2>=A&&0<$&&$<F-1)&&o.splice($,1);s.finalTickAmt=void 0}}}setScale(){let s=!1,A=!1;this.series.forEach(function(I){s=s||I.isDirtyData||I.isDirty,A=A||I.xAxis&&I.xAxis.isDirty||!1}),this.setAxisSize();const N=this.len!==(this.old&&this.old.len);N||s||A||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=N||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),n(this,"afterSetScale")}setExtremes(s,A,N,I,K){const o=this,m=o.chart;N=f(N,!0),o.series.forEach(function(g){delete g.kdTree}),K=b(K,{min:s,max:A}),n(o,"setExtremes",K,function(){o.userMin=s,o.userMax=A,o.eventArgs=K,N&&m.redraw(I)})}zoom(s,A){const N=this,I=this.dataMin,K=this.dataMax,o=this.options,m=Math.min(I,f(o.min,I)),g=Math.max(K,f(o.max,K));return s={newMin:s,newMax:A},n(this,"zoom",s,function(W){let F=W.newMin,$=W.newMax;(F!==N.min||$!==N.max)&&(N.allowZoomOutside||(v(I)&&(F<m&&(F=m),F>g&&(F=g)),v(K)&&($<m&&($=m),$>g&&($=g))),N.displayBtn=typeof F<"u"||typeof $<"u",N.setExtremes(F,$,!1,void 0,{trigger:"zoom"})),W.zoomed=!0}),s.zoomed}setAxisSize(){const s=this.chart;var A=this.options;const N=A.offsets||[0,0,0,0],I=this.horiz,K=this.width=Math.round(_(f(A.width,s.plotWidth-N[3]+N[1]),s.plotWidth)),o=this.height=Math.round(_(f(A.height,s.plotHeight-N[0]+N[2]),s.plotHeight)),m=this.top=Math.round(_(f(A.top,s.plotTop+N[0]),s.plotHeight,s.plotTop));A=this.left=Math.round(_(f(A.left,s.plotLeft+N[3]),s.plotWidth,s.plotLeft)),this.bottom=s.chartHeight-o-m,this.right=s.chartWidth-K-A,this.len=Math.max(I?K:o,0),this.pos=I?A:m}getExtremes(){const s=this.logarithmic;return{min:s?x(s.lin2log(this.min)):this.min,max:s?x(s.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(s){var A=this.logarithmic;const N=A?A.lin2log(this.min):this.min;return A=A?A.lin2log(this.max):this.max,s===null||s===-1/0?s=N:s===1/0?s=A:N>s?s=N:A<s&&(s=A),this.translate(s,0,1,0,1)}autoLabelAlign(s){const A=(f(s,0)-90*this.side+720)%360;return s={align:"center"},n(this,"autoLabelAlign",s,function(N){15<A&&165>A?N.align="right":195<A&&345>A&&(N.align="left")}),s.align}tickSize(s){const A=this.options,N=f(A[s==="tick"?"tickWidth":"minorTickWidth"],s==="tick"&&this.isXAxis&&!this.categories?1:0);let I=A[s==="tick"?"tickLength":"minorTickLength"],K;return N&&I&&(A[s+"Position"]==="inside"&&(I=-I),K=[I,N]),s={tickSize:K},n(this,"afterTickSize",s),s.tickSize}labelMetrics(){const s=this.chart.renderer;var A=this.ticks;return A=A[Object.keys(A)[0]]||{},this.chart.renderer.fontMetrics(A.label||A.movedLabel||s.box)}unsquish(){const s=this.options.labels;var A=this.horiz;const N=this.tickInterval,I=this.len/(((this.categories?1:0)+this.max-this.min)/N),K=s.rotation,o=.75*this.labelMetrics().h,m=Math.max(this.max-this.min,0),g=function(ot){let at=ot/(I||1);return at=1<at?Math.ceil(at):1,at*N>m&&ot!==1/0&&I!==1/0&&m&&(at=Math.ceil(m/N)),x(at*N)};let W=N,F,$=Number.MAX_VALUE,it;if(A){if(s.staggerLines||(d(K)?it=[K]:I<s.autoRotationLimit&&(it=s.autoRotation)),it){let ot;for(const at of it)(at===K||at&&-90<=at&&90>=at)&&(A=g(Math.abs(o/Math.sin(S*at))),ot=A+Math.abs(at/360),ot<$&&($=ot,F=at,W=A))}}else W=g(o);return this.autoRotation=it,this.labelRotation=f(F,d(K)?K:0),s.step?N:W}getSlotWidth(s){const A=this.chart,N=this.horiz,I=this.options.labels,K=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=A.margin[3];if(s&&d(s.slotWidth))return s.slotWidth;if(N&&2>I.step)return I.rotation?0:(this.staggerLines||1)*this.len/K;if(!N){if(s=I.style.width,s!==void 0)return parseInt(String(s),10);if(o)return o-A.spacing[3]}return .33*A.chartWidth}renderUnsquish(){const s=this.chart,A=s.renderer,N=this.tickPositions,I=this.ticks,K=this.options.labels,o=K.style,m=this.horiz,g=this.getSlotWidth();var W=Math.max(1,Math.round(g-2*K.padding));const F={},$=this.labelMetrics(),it=o.textOverflow;let ot,at,ht=0;if(e(K.rotation)||(F.rotation=K.rotation||0),N.forEach(function(E){E=I[E],E.movedLabel&&E.replaceMovedLabel(),E&&E.label&&E.label.textPxLength>ht&&(ht=E.label.textPxLength)}),this.maxLabelLength=ht,this.autoRotation)ht>W&&ht>$.h?F.rotation=this.labelRotation:this.labelRotation=0;else if(g&&(ot=W,!it))for(at="clip",W=N.length;!m&&W--;){var ut=N[W];(ut=I[ut].label)&&(ut.styles&&ut.styles.textOverflow==="ellipsis"?ut.css({textOverflow:"clip"}):ut.textPxLength>g&&ut.css({width:g+"px"}),ut.getBBox().height>this.len/N.length-($.h-$.f)&&(ut.specificTextOverflow="ellipsis"))}F.rotation&&(ot=ht>.5*s.chartHeight?.33*s.chartHeight:ht,it||(at="ellipsis")),(this.labelAlign=K.align||this.autoLabelAlign(this.labelRotation))&&(F.align=this.labelAlign),N.forEach(function(E){const T=(E=I[E])&&E.label,tt=o.width,V={};T&&(T.attr(F),E.shortenLabel?E.shortenLabel():ot&&!tt&&o.whiteSpace!=="nowrap"&&(ot<T.textPxLength||T.element.tagName==="SPAN")?(V.width=ot+"px",it||(V.textOverflow=T.specificTextOverflow||at),T.css(V)):T.styles&&T.styles.width&&!V.width&&!tt&&T.css({width:null}),delete T.specificTextOverflow,E.rotation=F.rotation)},this),this.tickRotCorr=A.rotCorr($.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 A=this.chart.renderer,N=this.horiz,I=this.opposite,K=this.options.title,o=this.chart.styledMode;let m;this.axisTitle||((m=K.textAlign)||(m=(N?{low:"left",middle:"center",high:"right"}:{low:I?"right":"left",middle:"center",high:I?"left":"right"})[K.align]),this.axisTitle=A.text(K.text||"",0,0,K.useHTML).attr({zIndex:7,rotation:K.rotation,align:m}).addClass("highcharts-axis-title"),o||this.axisTitle.css(t(K.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),o||K.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[s?"show":"hide"](s)}generateTick(s){const A=this.ticks;A[s]?A[s].addLabel():A[s]=new U(this,s)}getOffset(){const s=this,{chart:A,horiz:N,options:I,side:K,ticks:o,tickPositions:m,coll:g,axisParent:W}=s,F=A.renderer,$=A.inverted&&!s.isZAxis?[1,0,3,2][K]:K;var it=s.hasData();const ot=I.title;var at=I.labels;const ht=d(I.crossing);var ut=A.axisOffset;const E=A.clipOffset,T=[-1,1,1,-1][K],tt=I.className;let V,et=0,dt;var ct=0;let xt=0;if(s.showAxis=V=it||I.showEmpty,s.staggerLines=s.horiz&&at.staggerLines||void 0,!s.axisGroup){const yt=(gt,mt,Ct)=>F.g(gt).attr({zIndex:Ct}).addClass(`highcharts-${g.toLowerCase()}${mt} `+(this.isRadial?`highcharts-radial-axis${mt} `:"")+(tt||"")).add(W);s.gridGroup=yt("grid","-grid",I.gridZIndex),s.axisGroup=yt("axis","",I.zIndex),s.labelGroup=yt("axis-labels","-labels",at.zIndex)}it||s.isLinked?(m.forEach(function(yt){s.generateTick(yt)}),s.renderUnsquish(),s.reserveSpaceDefault=K===0||K===2||{1:"left",3:"right"}[K]===s.labelAlign,f(at.reserveSpace,ht?!1:null,s.labelAlign==="center"?!0:null,s.reserveSpaceDefault)&&m.forEach(function(yt){xt=Math.max(o[yt].getLabelSize(),xt)}),s.staggerLines&&(xt*=s.staggerLines),s.labelOffset=xt*(s.opposite?-1:1)):l(o,function(yt,gt){yt.destroy(),delete o[gt]}),ot&&ot.text&&ot.enabled!==!1&&(s.addTitle(V),V&&!ht&&ot.reserveSpace!==!1&&(s.titleOffset=et=s.axisTitle.getBBox()[N?"height":"width"],dt=ot.offset,ct=v(dt)?0:f(ot.margin,N?5:10))),s.renderLine(),s.offset=T*f(I.offset,ut[K]?ut[K]+(I.margin||0):0),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},it=K===0?-s.labelMetrics().h:K===2?s.tickRotCorr.y:0,ct=Math.abs(xt)+ct,xt&&(ct=ct-it+T*(N?f(at.y,s.tickRotCorr.y+T*at.distance):f(at.x,T*at.distance))),s.axisTitleMargin=f(dt,ct),s.getMaxLabelDimensions&&(s.maxLabelDimensions=s.getMaxLabelDimensions(o,m)),g!=="colorAxis"&&(at=this.tickSize("tick"),ut[K]=Math.max(ut[K],(s.axisTitleMargin||0)+et+T*s.offset,ct,m&&m.length&&at?at[0]+T*s.offset:0),ut=!s.axisLine||I.offset?0:2*Math.floor(s.axisLine.strokeWidth()/2),E[$]=Math.max(E[$],ut)),n(this,"afterGetOffset")}getLinePath(s){const A=this.chart,N=this.opposite;var I=this.offset;const K=this.horiz,o=this.left+(N?this.width:0)+I;return I=A.chartHeight-this.bottom-(N?this.height:0)+I,N&&(s*=-1),A.renderer.crispLine([["M",K?this.left:o,K?I:this.top],["L",K?A.chartWidth-this.right:o,K?I:A.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 A=this.horiz,N=this.left;const I=this.top;var K=this.len;const o=this.options.title,m=A?N:I,g=this.opposite,W=this.offset,F=o.x,$=o.y,it=this.chart.renderer.fontMetrics(s);return s=s?Math.max(s.getBBox(!1,0).height-it.h-1,0):0,K={low:m+(A?0:K),middle:m+K/2,high:m+(A?K:0)}[o.align],N=(A?I+this.height:N)+(A?1:-1)*(g?-1:1)*(this.axisTitleMargin||0)+[-s,s,it.f,-s][this.side],A={x:A?K+F:N+(g?this.width:0)+W+F,y:A?N+$-(g?this.height:0)+W:K+$},n(this,"afterGetTitlePosition",{titlePosition:A}),A}renderMinorTick(s,A){const N=this.minorTicks;N[s]||(N[s]=new U(this,s,"minor")),A&&N[s].isNew&&N[s].render(null,!0),N[s].render(null,!1,1)}renderTick(s,A,N){const I=this.ticks;(!this.isLinked||s>=this.min&&s<=this.max||this.grid&&this.grid.isColumn)&&(I[s]||(I[s]=new U(this,s)),N&&I[s].isNew&&I[s].render(A,!0,-1),I[s].render(A))}render(){const s=this,A=s.chart,N=s.logarithmic,I=s.options,K=s.isLinked,o=s.tickPositions,m=s.axisTitle,g=s.ticks,W=s.minorTicks,F=s.alternateBands,$=I.stackLabels,it=I.alternateGridColor;var ot=I.crossing;const at=s.tickmarkOffset,ht=s.axisLine,ut=s.showAxis,E=z(A.renderer.globalAnimation);let T,tt;if(s.labelEdge.length=0,s.overlap=!1,[g,W,F].forEach(function(V){l(V,function(et){et.isActive=!1})}),d(ot)){const V=this.isXAxis?A.yAxis[0]:A.xAxis[0],et=[1,-1,-1,1][this.side];V&&(ot=V.toPixels(ot,!0),s.horiz&&(ot=V.len-ot),s.offset=et*ot)}if(s.hasData()||K){const V=s.chart.hasRendered&&s.old&&d(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(et){s.renderMinorTick(et,V)}),o.length&&(o.forEach(function(et,dt){s.renderTick(et,dt,V)}),at&&(s.min===0||s.single)&&(g[-1]||(g[-1]=new U(s,-1,null,!0)),g[-1].render(-1))),it&&o.forEach(function(et,dt){tt=typeof o[dt+1]<"u"?o[dt+1]+at:s.max-at,dt%2===0&&et<s.max&&tt<=s.max+(A.polar?-at:at)&&(F[et]||(F[et]=new X.PlotLineOrBand(s)),T=et+at,F[et].options={from:N?N.lin2log(T):T,to:N?N.lin2log(tt):tt,color:it,className:"highcharts-alternate-grid"},F[et].render(),F[et].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(function(et){s.addPlotBandOrLine(et)}))}[g,W,F].forEach(function(V){const et=[],dt=E.duration;l(V,function(ct,xt){ct.isActive||(ct.render(xt,!1,0),ct.isActive=!1,et.push(xt))}),G(function(){let ct=et.length;for(;ct--;)V[et[ct]]&&!V[et[ct]].isActive&&(V[et[ct]].destroy(),delete V[et[ct]])},V!==F&&A.hasRendered&&dt?dt:0)}),ht&&(ht[ht.isPlaced?"animate":"attr"]({d:this.getLinePath(ht.strokeWidth())}),ht.isPlaced=!0,ht[ut?"show":"hide"](ut)),m&&ut&&(m[m.isNew?"attr":"animate"](s.getTitlePosition(m)),m.isNew=!1),$&&$.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,n(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 A=this,N=A.plotLinesAndBands,I=this.eventOptions;if(n(this,"destroy",{keepEvents:s}),s||r(A),[A.ticks,A.minorTicks,A.alternateBands].forEach(function(K){p(K)}),N)for(s=N.length;s--;)N[s].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(K){A[K]&&(A[K]=A[K].destroy())});for(const K in A.plotLinesAndBandsGroups)A.plotLinesAndBandsGroups[K]=A.plotLinesAndBandsGroups[K].destroy();l(A,function(K,o){A.getKeepProps().indexOf(o)===-1&&delete A[o]}),this.eventOptions=I}drawCrosshair(s,A){const N=this.crosshair;var I=f(N&&N.snap,!0);const K=this.chart;let o,m=this.cross;if(n(this,"drawCrosshair",{e:s,point:A}),s||(s=this.cross&&this.cross.e),N&&(v(A)||!I)!==!1){if(I?v(A)&&(o=f(this.coll!=="colorAxis"?A.crosshairPos:null,this.isXAxis?A.plotX:this.len-A.plotY)):o=s&&(this.horiz?s.chartX-this.pos:this.len-s.chartY+this.pos),v(o)){var g={value:A&&(this.isXAxis?A.x:f(A.stackY,A.y)),translatedValue:o};K.polar&&b(g,{isCrosshair:!0,chartX:s&&s.chartX,chartY:s&&s.chartY,point:A}),g=this.getPlotLinePath(g)||null}if(!v(g)){this.hideCrosshair();return}I=this.categories&&!this.isRadial,m||(this.cross=m=K.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(I?"category ":"thin ")+(N.className||"")).attr({zIndex:f(N.zIndex,2)}).add(),K.styledMode||(m.attr({stroke:N.color||(I?H.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":f(N.width,1)}).css({"pointer-events":"none"}),N.dashStyle&&m.attr({dashstyle:N.dashStyle}))),m.show().attr({d:g}),I&&!N.width&&m.attr({"stroke-width":this.transA}),this.cross.e=s}else this.hideCrosshair();n(this,"afterDrawCrosshair",{e:s,point:A})}hideCrosshair(){this.cross&&this.cross.hide(),n(this,"afterHideCrosshair")}hasVerticalPanning(){const s=this.chart.options.chart.panning;return!!(s&&s.enabled&&/y/.test(s.type))}update(s,A){const N=this.chart;s=t(this.userOptions,s),this.destroy(!0),this.init(N,s),N.isDirtyBox=!0,f(A,!0)&&N.redraw()}remove(s){const A=this.chart,N=this.coll,I=this.series;let K=I.length;for(;K--;)I[K]&&I[K].remove(!1);P(A.axes,this),P(A[N]||[],this),A.orderItems(N),this.destroy(),A.isDirtyBox=!0,f(s,!0)&&A.redraw()}setTitle(s,A){this.update({title:s},A)}setCategories(s,A){this.update({categories:s},A)}}return rt.defaultOptions=M.defaultXAxisOptions,rt.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),rt}),q(k,"Core/Axis/DateTimeAxis.js",[k["Core/Utilities.js"]],function(D){const{addEvent:M,getMagnitude:H,normalizeTickInterval:Q,timeUnits:Z}=D;var X;return function(U){function O(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function z(S){S.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new y(this))}const R=[];U.compose=function(S){return D.pushUnique(R,S)&&(S.keepProps.push("dateTime"),S.prototype.getTimeTicks=O,M(S,"init",z)),S};class y{constructor(L){this.axis=L}normalizeTimeTickInterval(L,j){const c=j||[["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]];j=c[c.length-1];let x=Z[j[0]],v=j[1],p;for(p=0;p<c.length&&(j=c[p],x=Z[j[0]],v=j[1],!(c[p+1]&&L<=(x*v[v.length-1]+Z[c[p+1][0]])/2));p++);return x===Z.year&&L<5*x&&(v=[1,2,5]),L=Q(L/x,v,j[0]==="year"?Math.max(H(L/x),1):1),{unitRange:x,count:L,unitName:j[0]}}getXDateFormat(L,j){const{axis:c}=this,x=c.chart.time;return c.closestPointRange?x.getDateFormat(c.closestPointRange,L,c.options.startOfWeek,j)||x.resolveDTLFormat(j.year).main:x.resolveDTLFormat(j.day).main}}U.Additions=y}(X||(X={})),X}),q(k,"Core/Axis/LogarithmicAxis.js",[k["Core/Utilities.js"]],function(D){const{addEvent:M,normalizeTickInterval:H,pick:Q}=D;var Z;return function(X){function U(y){let S=this.logarithmic;y.userOptions.type!=="logarithmic"?this.logarithmic=void 0:S||(this.logarithmic=new R(this))}function O(){const y=this.logarithmic;y&&(this.lin2val=function(S){return y.lin2log(S)},this.val2lin=function(S){return y.log2lin(S)})}const z=[];X.compose=function(y){return D.pushUnique(z,y)&&(y.keepProps.push("logarithmic"),M(y,"init",U),M(y,"afterInit",O)),y};class R{constructor(S){this.axis=S}getLogTickPositions(S,L,j,c){const x=this.axis;var v=x.len,p=x.options;let P=[];if(c||(this.minorAutoInterval=void 0),.5<=S)S=Math.round(S),P=x.getLinearTickPositions(S,L,j);else if(.08<=S){p=Math.floor(L);let w,b,n,a,u;for(v=.3<S?[1,2,4]:.15<S?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];p<j+1&&!u;p++)for(b=v.length,w=0;w<b&&!u;w++)n=this.log2lin(this.lin2log(p)*v[w]),n>L&&(!c||a<=j)&&typeof a<"u"&&P.push(a),a>j&&(u=!0),a=n}else L=this.lin2log(L),j=this.lin2log(j),S=c?x.getMinorTickInterval():p.tickInterval,S=Q(S==="auto"?null:S,this.minorAutoInterval,p.tickPixelInterval/(c?5:1)*(j-L)/((c?v/x.tickPositions.length:v)||1)),S=H(S),P=x.getLinearTickPositions(S,L,j).map(this.log2lin),c||(this.minorAutoInterval=S/5);return c||(x.tickInterval=S),P}lin2log(S){return Math.pow(10,S)}log2lin(S){return Math.log(S)/Math.LN10}}X.Additions=R}(Z||(Z={})),Z}),q(k,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[k["Core/Utilities.js"]],function(D){const{erase:M,extend:H,isNumber:Q}=D;var Z;return function(X){function U(x){return this.addPlotBandOrLine(x,"plotBands")}function O(x,v){const p=this.userOptions;let P=new c(this,x);if(this.visible&&(P=P.render()),P){if(this._addedPlotLB||(this._addedPlotLB=!0,(p.plotLines||[]).concat(p.plotBands||[]).forEach(w=>{this.addPlotBandOrLine(w)})),v){const w=p[v]||[];w.push(x),p[v]=w}this.plotLinesAndBands.push(P)}return P}function z(x){return this.addPlotBandOrLine(x,"plotLines")}function R(x,v,p=this.options){const P=this.getPlotLinePath({value:v,force:!0,acrossPanes:p.acrossPanes}),w=[],b=this.horiz;v=!Q(this.min)||!Q(this.max)||x<this.min&&v<this.min||x>this.max&&v>this.max,x=this.getPlotLinePath({value:x,force:!0,acrossPanes:p.acrossPanes}),p=1;let n;if(x&&P)for(v&&(n=x.toString()===P.toString(),p=0),v=0;v<x.length;v+=2){const a=x[v],u=x[v+1],h=P[v],d=P[v+1];a[0]!=="M"&&a[0]!=="L"||u[0]!=="M"&&u[0]!=="L"||h[0]!=="M"&&h[0]!=="L"||d[0]!=="M"&&d[0]!=="L"||(b&&h[1]===a[1]?(h[1]+=p,d[1]+=p):b||h[2]!==a[2]||(h[2]+=p,d[2]+=p),w.push(["M",a[1],a[2]],["L",u[1],u[2]],["L",d[1],d[2]],["L",h[1],h[2]],["Z"])),w.isFlat=n}return w}function y(x){this.removePlotBandOrLine(x)}function S(x){const v=this.plotLinesAndBands,p=this.options,P=this.userOptions;if(v){let w=v.length;for(;w--;)v[w].id===x&&v[w].destroy();[p.plotLines||[],P.plotLines||[],p.plotBands||[],P.plotBands||[]].forEach(function(b){for(w=b.length;w--;)(b[w]||{}).id===x&&M(b,b[w])})}}function L(x){this.removePlotBandOrLine(x)}const j=[];let c;X.compose=function(x,v){return c||(c=x),D.pushUnique(j,v)&&H(v.prototype,{addPlotBand:U,addPlotLine:z,addPlotBandOrLine:O,getPlotBandPath:R,removePlotBand:y,removePlotLine:L,removePlotBandOrLine:S}),v}}(Z||(Z={})),Z}),q(k,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[k["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],k["Core/Utilities.js"]],function(D,M){const{arrayMax:H,arrayMin:Q,defined:Z,destroyObjectProperties:X,erase:U,fireEvent:O,merge:z,objectEach:R,pick:y}=M;class S{static compose(j){return D.compose(S,j)}constructor(j,c){this.axis=j,c&&(this.options=c,this.id=c.id)}render(){O(this,"render");const j=this,c=j.axis,x=c.horiz;var v=c.logarithmic;const p=j.options,P=p.color,w=y(p.zIndex,0),b=p.events,n={},a=c.chart.renderer;let u=p.label,h=j.label,d=p.to,e=p.from,t=p.value,i=j.svgElem;var l=[];const f=Z(e)&&Z(d);l=Z(t);const _=!i,r={class:"highcharts-plot-"+(f?"band ":"line ")+(p.className||"")};let C=f?"bands":"lines";if(v&&(e=v.log2lin(e),d=v.log2lin(d),t=v.log2lin(t)),c.chart.styledMode||(l?(r.stroke=P||"#999999",r["stroke-width"]=y(p.width,1),p.dashStyle&&(r.dashstyle=p.dashStyle)):f&&(r.fill=P||"#e6e9ff",p.borderWidth&&(r.stroke=p.borderColor,r["stroke-width"]=p.borderWidth))),n.zIndex=w,C+="-"+w,(v=c.plotLinesAndBandsGroups[C])||(c.plotLinesAndBandsGroups[C]=v=a.g("plot-"+C).attr(n).add()),_&&(j.svgElem=i=a.path().attr(r).add(v)),l)l=c.getPlotLinePath({value:t,lineWidth:i.strokeWidth(),acrossPanes:p.acrossPanes});else if(f)l=c.getPlotBandPath(e,d,p);else return;return!j.eventsAdded&&b&&(R(b,function(G,J){i.on(J,function(rt){b[J].apply(j,[rt])})}),j.eventsAdded=!0),(_||!i.d)&&l&&l.length?i.attr({d:l}):i&&(l?(i.show(),i.animate({d:l})):i.d&&(i.hide(),h&&(j.label=h=h.destroy()))),u&&(Z(u.text)||Z(u.formatter))&&l&&l.length&&0<c.width&&0<c.height&&!l.isFlat?(u=z({align:x&&f&&"center",x:x?!f&&4:10,verticalAlign:!x&&f&&"middle",y:x?f?16:10:f?6:-4,rotation:x&&!f&&90},u),this.renderLabel(u,l,f,w)):h&&h.hide(),j}renderLabel(j,c,x,v){const p=this.axis;var P=p.chart.renderer;let w=this.label;w||(this.label=w=P.text(this.getLabelText(j),0,0,j.useHTML).attr({align:j.textAlign||j.align,rotation:j.rotation,class:"highcharts-plot-"+(x?"band":"line")+"-label "+(j.className||""),zIndex:v}).add(),p.chart.styledMode||w.css(z({fontSize:"0.8em",textOverflow:"ellipsis"},j.style))),v=c.xBounds||[c[0][1],c[1][1],x?c[2][1]:c[0][1]],c=c.yBounds||[c[0][2],c[1][2],x?c[2][2]:c[0][2]],x=Q(v),P=Q(c),w.align(j,!1,{x,y:P,width:H(v)-x,height:H(c)-P}),w.alignValue&&w.alignValue!=="left"||(j=j.clip?p.width:p.chart.chartWidth,w.css({width:(w.rotation===90?p.height-(w.alignAttr.y-p.top):j-(w.alignAttr.x-p.left))+"px"})),w.show(!0)}getLabelText(j){return Z(j.formatter)?j.formatter.call(this):j.text}destroy(){U(this.axis.plotLinesAndBands,this),delete this.axis,X(this)}}return S}),q(k,"Core/Tooltip.js",[k["Core/Templating.js"],k["Core/Globals.js"],k["Core/Renderer/RendererUtilities.js"],k["Core/Renderer/RendererRegistry.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z){const{format:X}=D,{doc:U,isSafari:O}=M,{distribute:z}=H,{addEvent:R,clamp:y,css:S,discardElement:L,extend:j,fireEvent:c,isArray:x,isNumber:v,isString:p,merge:P,pick:w,splat:b,syncTimeout:n}=Z;class a{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||b(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(),L(this.container)),Z.clearTimeout(this.hideTimer),Z.clearTimeout(this.tooltipTimeout)}getAnchor(h,d){var e=this.chart;const t=e.pointer,i=e.inverted,l=e.plotTop;if(e=e.plotLeft,h=b(h),h[0].series&&h[0].series.yAxis&&!h[0].series.yAxis.options.reversedStacks&&(h=h.slice().reverse()),this.followPointer&&d)typeof d.chartX>"u"&&(d=t.normalize(d)),h=[d.chartX-e,d.chartY-l];else if(h[0].tooltipPos)h=h[0].tooltipPos;else{let f=0,_=0;h.forEach(function(r){(r=r.pos(!0))&&(f+=r[0],_+=r[1])}),f/=h.length,_/=h.length,this.shared&&1<h.length&&d&&(i?f=d.chartX:_=d.chartY),h=[f-e,_-l]}return h.map(Math.round)}getClassName(h,d,e){const t=h.series,i=t.options;return[this.options.className,"highcharts-label",e&&"highcharts-tooltip-header",d?"highcharts-tooltip-box":"highcharts-tooltip",!e&&"highcharts-color-"+w(h.colorIndex,t.colorIndex),i&&i.className].filter(p).join(" ")}getLabel(){const h=this,d=this.chart.styledMode,e=this.options,t=this.split&&this.allowShared,i=e.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none");let l,f=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=l=M.doc.createElement("div"),l.className="highcharts-tooltip-container",S(l,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(_&&_.zIndex||0)+3)}),M.doc.body.appendChild(l),this.renderer=f=new r(l,0,0,_,void 0,void 0,f.styledMode)}if(t?this.label=f.g("tooltip"):(this.label=f.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:C,ySetter:G}=r;r.xSetter=function(J){C.call(r,h.distance),l.style.left=J+"px"},r.ySetter=function(J){G.call(r,h.distance),l.style.top=J+"px"}}this.label.attr({zIndex:8}).shadow(e.shadow).add()}return this.label}getPlayingField(){const{body:h,documentElement:d}=U,{chart:e,distance:t,outside:i}=this;return{width:i?Math.max(h.scrollWidth,d.scrollWidth,h.offsetWidth,d.offsetWidth,d.clientWidth)-2*t:e.chartWidth,height:i?Math.max(h.scrollHeight,d.scrollHeight,h.offsetHeight,d.offsetHeight,d.clientHeight):e.chartHeight}}getPosition(h,d,e){const t=this.chart,i=this.distance,l={},f=t.inverted&&e.h||0,_=this.outside;var r=this.getPlayingField();const C=r.width,G=r.height,J=t.pointer.getChartPosition();r=m=>{const g=m==="x";return[m,g?C:G,g?h:d].concat(_?[g?h*J.scaleX:d*J.scaleY,g?J.left-i+(e.plotX+t.plotLeft)*J.scaleX:J.top-i+(e.plotY+t.plotTop)*J.scaleY,0,g?C:G]:[g?h:d,g?e.plotX+t.plotLeft:e.plotY+t.plotTop,g?t.plotLeft:t.plotTop,g?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])};let rt=r("y"),B=r("x"),s;r=!!e.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(r=!r);const A=!this.followPointer&&w(e.ttBelow,!t.inverted===r),N=function(m,g,W,F,$,it,ot){const at=_?m==="y"?i*J.scaleY:i*J.scaleX:i,ht=(W-F)/2,ut=F<$-i,E=$+i+F<g,T=$-at-W+ht;if($=$+at-ht,A&&E)l[m]=$;else if(!A&&ut)l[m]=T;else if(ut)l[m]=Math.min(ot-F,0>T-f?T:T-f);else if(E)l[m]=Math.max(it,$+f+W>g?$:$+f);else return!1},I=function(m,g,W,F,$){let it;return $<i||$>g-i?it=!1:l[m]=$<W/2?1:$>g-F/2?g-F-2:$-W/2,it},K=function(m){const g=rt;rt=B,B=g,s=m},o=function(){N.apply(0,rt)!==!1?I.apply(0,B)!==!1||s||(K(!0),o()):s?l.x=l.y=0:(K(!0),o())};return(t.inverted||1<this.len)&&K(),o(),l}hide(h){const d=this;Z.clearTimeout(this.hideTimer),h=w(h,this.options.hideDelay),this.isHidden||(this.hideTimer=n(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=w(d.outside,!(!h.scrollablePixelsX&&!h.scrollablePixelsY))}shouldStickOnContact(h){return!(this.followPointer||!this.options.stickOnContact||h&&!this.chart.pointer.inClass(h.target,"highcharts-tooltip"))}move(h,d,e,t){const i=this,l=i.now,f=i.options.animation!==!1&&!i.isHidden&&(1<Math.abs(h-l.x)||1<Math.abs(d-l.y)),_=i.followPointer||1<i.len;j(l,{x:f?(2*l.x+h)/3:h,y:f?(l.y+d)/2:d,anchorX:_?void 0:f?(2*l.anchorX+e)/3:e,anchorY:_?void 0:f?(l.anchorY+t)/2:t}),i.getLabel().attr(l),i.drawTracker(),f&&(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,l=b(h),f=l[0],_=[];var r=t.format,C=t.formatter||this.defaultFormatter;const G=this.shared,J=e.styledMode;let rt={};if(t.enabled&&f.series){Z.clearTimeout(this.hideTimer),this.allowShared=!(!x(h)&&h.series&&h.series.noSharedTooltip),this.followPointer=!this.split&&f.series.tooltipOptions.followPointer,h=this.getAnchor(h,d);var B=h[0],s=h[1];if(G&&this.allowShared?(i.applyInactiveState(l),l.forEach(function(A){A.setState("hover"),_.push(A.getLabelConfig())}),rt=f.getLabelConfig(),rt.points=_):rt=f.getLabelConfig(),this.len=_.length,r=p(r)?X(r,rt,e):C.call(rt,this),C=f.series,this.distance=w(C.tooltipOptions.distance,16),r===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(r,l);else{let A=B,N=s;if(d&&i.isDirectTouch&&(A=d.chartX-e.plotLeft,N=d.chartY-e.plotTop),e.polar||C.options.clip===!1||l.some(I=>i.isDirectTouch||I.series.shouldShowTooltip(A,N)))d=this.getLabel(),t.style.width&&!J||d.css({width:(this.outside?this.getPlayingField():e.spacingBox).width+"px"}),d.attr({text:r&&r.join?r.join(""):r}),d.addClass(this.getClassName(f),!0),J||d.attr({stroke:t.borderColor||f.color||C.color||"#666666"}),this.updatePosition({plotX:B,plotY:s,negative:f.negative,ttBelow:f.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(V,et,dt,ct,xt=!0){return dt?(et=W?0:at,V=y(V-ct/2,o.left,o.right-ct-(t.outside?F:0))):(et-=it,V=xt?V-ct-N:V+N,V=y(V,xt?V:o.left,o.right)),{x:V,y:et}}const t=this,{chart:i,chart:{chartWidth:l,chartHeight:f,plotHeight:_,plotLeft:r,plotTop:C,pointer:G,scrollablePixelsY:J=0,scrollablePixelsX:rt,scrollingContainer:{scrollLeft:B,scrollTop:s}={scrollLeft:0,scrollTop:0},styledMode:A},distance:N,options:I,options:{positioner:K}}=t,o=t.outside&&typeof rt!="number"?U.documentElement.getBoundingClientRect():{left:B,right:B+l,top:s,bottom:s+f},m=t.getLabel(),g=this.renderer||i.renderer,W=!(!i.xAxis[0]||!i.xAxis[0].opposite),{left:F,top:$}=G.getChartPosition();let it=C+s,ot=0,at=_-J;p(h)&&(h=[!1,h]),h=h.slice(0,d.length+1).reduce(function(V,et,dt){if(et!==!1&&et!==""){dt=d[dt-1]||{isHeader:!0,plotX:d[0].plotX,plotY:_,series:{}};const Ct=dt.isHeader;var ct=Ct?t:dt.series,xt;{var yt=dt;et=et.toString();var gt=ct.tt;const{isHeader:Mt,series:_t}=yt;gt||(gt={padding:I.padding,r:I.borderRadius},A||(gt.fill=I.backgroundColor,gt["stroke-width"]=(xt=I.borderWidth)!==null&&xt!==void 0?xt:1),gt=g.label("",0,0,I[Mt?"headerShape":"shape"],void 0,void 0,I.useHTML).addClass(t.getClassName(yt,!0,Mt)).attr(gt).add(m)),gt.isActive=!0,gt.attr({text:et}),A||gt.css(I.style).attr({stroke:I.borderColor||yt.color||_t.color||"#333333"}),xt=gt}xt=ct.tt=xt,yt=xt.getBBox(),ct=yt.width+xt.strokeWidth(),Ct&&(ot=yt.height,at+=ot,W&&(it-=ot));{const{isHeader:Mt,plotX:_t=0,plotY:At=0,series:Rt}=dt;if(Mt){et=r+_t;var mt=C+_/2}else{const{xAxis:$t,yAxis:Lt}=Rt;et=$t.pos+y(_t,-N,$t.len+N),Rt.shouldShowTooltip(0,Lt.pos-C+At,{ignoreX:!0})&&(mt=Lt.pos+At)}et=y(et,o.left-N,o.right+N),mt={anchorX:et,anchorY:mt}}const{anchorX:kt,anchorY:bt}=mt;typeof bt=="number"?(mt=yt.height+1,yt=K?K.call(t,ct,mt,dt):e(kt,bt,Ct,ct),V.push({align:K?0:void 0,anchorX:kt,anchorY:bt,boxWidth:ct,point:dt,rank:w(yt.rank,Ct?1:0),size:mt,target:yt.y,tt:xt,x:yt.x})):xt.isActive=!1}return V},[]),!K&&h.some(V=>{var{outside:et}=t;return et=(et?F:0)+V.anchorX,et<o.left&&et+V.boxWidth<o.right?!0:et<F-o.left+V.boxWidth&&o.right-et>et})&&(h=h.map(V=>{const{x:et,y:dt}=e(V.anchorX,V.anchorY,V.point.isHeader,V.boxWidth,!1);return j(V,{target:dt,x:et})})),t.cleanSplit(),z(h,at);var ht=F,ut=F;h.forEach(function(V){const{x:et,boxWidth:dt,isHeader:ct}=V;ct||(t.outside&&F+et<ht&&(ht=F+et),!ct&&t.outside&&ht+dt>ut&&(ut=F+et))}),h.forEach(function(V){const{x:et,anchorX:dt,anchorY:ct,pos:xt,point:{isHeader:yt}}=V,gt={visibility:typeof xt>"u"?"hidden":"inherit",x:et,y:(xt||0)+it,anchorX:dt,anchorY:ct};if(t.outside&&et<dt){const mt=F-ht;0<mt&&(yt||(gt.x=et+mt,gt.anchorX=dt+mt),yt&&(gt.x=(ut-ht)/2,gt.anchorX=dt+mt))}V.tt.attr(gt)});const{container:E,outside:T,renderer:tt}=t;if(T&&E&&tt){const{width:V,height:et,x:dt,y:ct}=m.getBBox();tt.setSize(V+dt,et+ct,!1),E.style.left=ht+"px",E.style.top=$+"px"}O&&m.attr({opacity:m.opacity===1?.999:1})}drawTracker(){if(this.shouldStickOnContact()){var h=this.chart,d=this.label,e=this.shared?h.hoverPoints:h.hoverPoint;if(d&&e){var t={x:0,y:0,width:0,height:0};e=this.getAnchor(e);var i=d.getBBox();e[0]+=h.plotLeft-d.translateX,e[1]+=h.plotTop-d.translateY,t.x=Math.min(0,e[0]),t.y=Math.min(0,e[1]),t.width=0>e[0]?Math.max(Math.abs(e[0]),i.width-e[0]):Math.max(Math.abs(e[0]),i.width),t.height=0>e[1]?Math.max(Math.abs(e[1]),i.height-Math.abs(e[1])):Math.max(Math.abs(e[1]),i.height),this.tracker?this.tracker.attr(t):(this.tracker=d.renderer.rect(t).addClass("highcharts-tracker").add(d),h.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&(this.tracker=this.tracker.destroy())}styledModeFormat(h){return h.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(h,d){const e=h.series,t=e.tooltipOptions;var i=e.xAxis;const l=i&&i.dateTime;i={isFooter:d,labelConfig:h};let f=t.xDateFormat,_=t[d?"footerFormat":"headerFormat"];return c(this,"headerFormatter",i,function(r){l&&!f&&v(h.key)&&(f=l.getXDateFormat(h.key,t.dateTimeLabelFormats)),l&&f&&(h.point&&h.point.tooltipDateKeys||["key"]).forEach(function(C){_=_.replace("{point."+C+"}","{point."+C+":"+f+"}")}),e.chart.styledMode&&(_=this.styledModeFormat(_)),r.text=X(_,{point:h,series:e},this.chart)}),i.text}update(h){this.destroy(),this.init(this.chart,P(!0,this.options,h))}updatePosition(h){const{chart:d,distance:e,options:t}=this;var i=d.pointer;const l=this.getLabel(),{left:f,top:_,scaleX:r,scaleY:C}=i.getChartPosition();i=(t.positioner||this.getPosition).call(this,l.width,l.height,h);let G=(h.plotX||0)+d.plotLeft;h=(h.plotY||0)+d.plotTop;let J;this.outside&&(t.positioner&&(i.x+=f-e,i.y+=_-e),J=(t.borderWidth||0)+2*e,this.renderer.setSize(l.width+J,l.height+J,!1),(r!==1||C!==1)&&(S(this.container,{transform:`scale(${r}, ${C})`}),G*=r,h*=C),G+=f-i.x,h+=_-i.y),this.move(Math.round(i.x),Math.round(i.y||0),G,h)}}return function(u){const h=[];u.compose=function(d){Z.pushUnique(h,d)&&R(d,"afterInit",function(){const e=this.chart;e.options.tooltip&&(e.tooltip=new u(e,e.options.tooltip))})}}(a||(a={})),a}),q(k,"Core/Series/Point.js",[k["Core/Renderer/HTML/AST.js"],k["Core/Animation/AnimationUtilities.js"],k["Core/Defaults.js"],k["Core/Templating.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z){const{animObject:X}=M,{defaultOptions:U}=H,{format:O}=Q,{addEvent:z,defined:R,erase:y,extend:S,fireEvent:L,getNestedProperty:j,isArray:c,isFunction:x,isNumber:v,isObject:p,merge:P,objectEach:w,pick:b,syncTimeout:n,removeEvent:a,uniqueKey:u}=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(l){e[l]=e[l].animate(l==="dataLabel"?{x:e[l].startXPos,y:e[l].startYPos,opacity:0}:t)}),i.plural.forEach(function(l){e[l].forEach(function(f){f.element&&f.animate(S({x:e.startXPos},f.startYPos?{x:f.startXPos,y:f.startYPos}:{}))})})}applyOptions(e,t){const i=this.series,l=i.options.pointValKey||i.pointValKey;return e=h.prototype.optionsToObject.call(this,e),S(this,e),this.options=this.options?S(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,l&&(this.y=h.prototype.getNestedProperty.call(this,l)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof t>"u"&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),typeof this.x>"u"&&i?this.x=typeof t>"u"?i.autoIncrement():t:v(e.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(e.x)),this}destroy(){if(!this.destroyed){const t=this;var e=t.series;const i=e.chart;e=e.options.dataSorting;const l=i.hoverPoints,f=X(t.series.chart.renderer.globalAnimation),_=()=>{(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(a(t),t.destroyElements());for(const r in t)delete t[r]};t.legendItem&&i.legend.destroyItem(t),l&&(t.setState(),y(l,t),l.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),e&&e.enabled?(this.animateBeforeDestroy(),n(_,f.duration)):_(),i.pointCount--}this.destroyed=!0}destroyElements(e){const t=this;e=t.getGraphicalProps(e),e.singular.forEach(function(i){t[i]=t[i].destroy()}),e.plural.forEach(function(i){t[i].forEach(function(l){l&&l.element&&l.destroy()}),delete t[i]})}firePointEvent(e,t,i){const l=this,f=this.series.options;(f.point.events[e]||l.options&&l.options.events&&l.options.events[e])&&l.importEvents(),e==="click"&&f.allowPointSelect&&(i=function(_){l.select&&l.select(null,_.ctrlKey||_.metaKey||_.shiftKey)}),L(l,e,t,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){const t=this,i=[],l={singular:[],plural:[]};let f,_;for(e=e||{graphic:1,dataLabel:1},e.graphic&&i.push("graphic"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),_=i.length;_--;)f=i[_],t[f]&&l.singular.push(f);return["graphic","dataLabel","connector"].forEach(function(r){const C=r+"s";e[r]&&t[C]&&l.plural.push(C)}),l}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(e){if(e)return e.indexOf("custom.")===0?j(e,this.options):this[e]}getZone(){var e=this.series;const t=e.zones;e=e.zoneAxis||"y";let i,l=0;for(i=t[l];this[e]>=i.value;)i=t[++l];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}init(e,t,i){return this.series=e,this.applyOptions(t,i),this.id=R(this.id)?this.id:u(),this.resolveColor(),e.chart.pointCount++,L(this,"afterInit"),this}isValid(){return this.x!==null&&v(this.y)}optionsToObject(e){var t=this.series;const i=t.options.keys,l=i||t.pointArrayMap||["y"],f=l.length;let _={},r=0,C=0;if(v(e)||e===null)_[l[0]]=e;else if(c(e))for(!i&&e.length>f&&(t=typeof e[0],t==="string"?_.name=e[0]:t==="number"&&(_.x=e[0]),r++);C<f;)i&&typeof e[r]>"u"||(0<l[C].indexOf(".")?h.prototype.setNestedProperty(_,e[r],l[C]):_[l[C]]=e[r]),r++,C++;else typeof e=="object"&&(_=e,e.dataLabels&&(t._hasPointLabels=!0),e.marker&&(t._hasPointMarkers=!0));return _}pos(e,t=this.plotY){if(!this.destroyed){const{plotX:i,series:l}=this,{chart:f,xAxis:_,yAxis:r}=l;let C=0,G=0;if(v(i)&&v(t))return e&&(C=_?_.pos:f.plotLeft,G=r?r.pos:f.plotTop),f.inverted&&_&&r?[r.len-t+G,_.len-i+C]:[i+C,t+G]}}resolveColor(){const e=this.series;var t=e.chart.styledMode;let i;var l=e.chart.options.chart.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(t||(l=e.options.colors||e.chart.options.colors,i=l[e.colorCounter],l=l.length),t=e.colorCounter,e.colorCounter++,e.colorCounter===l&&(e.colorCounter=0)):(t||(i=e.color),t=e.colorIndex),this.colorIndex=b(this.options.colorIndex,t),this.color=b(this.options.color,i)}setNestedProperty(e,t,i){return i.split(".").reduce(function(l,f,_,r){return l[f]=r.length-1===_?t:p(l[f],!0)?l[f]:{},l[f]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){const t=this.series,i=t.tooltipOptions,l=b(i.valueDecimals,""),f=i.valuePrefix||"",_=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(r){r="{point."+r,(f||_)&&(e=e.replace(RegExp(r+"}","g"),f+r+"}"+_)),e=e.replace(RegExp(r+"}","g"),r+":,."+l+"f}")}),O(e,{point:this,series:this.series},t.chart)}update(e,t,i,l){function f(){_.applyOptions(e);var B=C&&_.hasMockGraphic;B=_.y===null?!B:B,C&&B&&(_.graphic=C.destroy(),delete _.hasMockGraphic),p(e,!0)&&(C&&C.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(_.graphic=C.destroy()),e&&e.dataLabels&&_.dataLabel&&(_.dataLabel=_.dataLabel.destroy()),_.connector&&(_.connector=_.connector.destroy())),rt=_.index,r.updateParallelArrays(_,rt),J.data[rt]=p(J.data[rt],!0)||p(e,!0)?_.options:b(e,J.data[rt]),r.isDirty=r.isDirtyData=!0,!r.fixedBox&&r.hasCartesianSeries&&(G.isDirtyBox=!0),J.legendType==="point"&&(G.isDirtyLegend=!0),t&&G.redraw(i)}const _=this,r=_.series,C=_.graphic,G=r.chart,J=r.options;let rt;t=b(t,!0),l===!1?f():_.firePointEvent("update",{options:e},f)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){const i=this,l=i.series,f=l.chart;this.selectedStaging=e=b(e,!i.selected),i.firePointEvent(e?"select":"unselect",{accumulate:t},function(){i.selected=i.options.selected=e,l.options.data[l.data.indexOf(i)]=i.options,i.setState(e&&"select"),t||f.getSelectedPoints().forEach(function(_){const r=_.series;_.selected&&_!==i&&(_.selected=_.options.selected=!1,r.options.data[r.data.indexOf(_)]=_.options,_.setState(f.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=P(e.series.options.point,e.options).events;e.events=t,w(t,function(i,l){x(i)&&z(e,l,i)}),this.hasImportedEvents=!0}}setState(e,t){const i=this.series;var l=this.state,f=i.options.states[e||"normal"]||{},_=U.plotOptions[i.type].marker&&i.options.marker;const r=_&&_.enabled===!1,C=_&&_.states&&_.states[e||"normal"]||{},G=C.enabled===!1,J=this.marker||{},rt=i.chart,B=_&&i.markerAttribs;let s=i.halo;var A;let N;var I=i.stateMarkerGraphic;if(e=e||"",!(e===this.state&&!t||this.selected&&e!=="select"||f.enabled===!1||e&&(G||r&&C.enabled===!1)||e&&J.states&&J.states[e]&&J.states[e].enabled===!1)){if(this.state=e,B&&(A=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(l&&this.graphic.removeClass("highcharts-point-"+l),e&&this.graphic.addClass("highcharts-point-"+e),!rt.styledMode){l=i.pointAttribs(this,e),N=b(rt.options.chart.animation,f.animation);const K=l.opacity;i.options.inactiveOtherPoints&&v(K)&&((this.dataLabels||[]).forEach(function(o){o&&!o.hasClass("highcharts-data-label-hidden")&&o.animate({opacity:K},N)}),this.connector&&this.connector.animate({opacity:K},N)),this.graphic.animate(l,N)}A&&this.graphic.animate(A,b(rt.options.chart.animation,C.animation,_.animation)),I&&I.hide()}else e&&C&&(_=J.symbol||i.symbol,I&&I.currentSymbol!==_&&(I=I.destroy()),A&&(I?I[t?"animate":"attr"]({x:A.x,y:A.y}):_&&(i.stateMarkerGraphic=I=rt.renderer.symbol(_,A.x,A.y,A.width,A.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));f=f.halo,A=(I=this.graphic||I)&&I.visibility||"inherit",f&&f.size&&I&&A!=="hidden"&&!this.isCluster?(s||(i.halo=s=rt.renderer.path().add(I.parentGroup)),s.show()[t?"animate":"attr"]({d:this.haloPath(f.size)}),s.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:A,zIndex:-1}),s.point=this,rt.styledMode||s.attr(S({fill:this.color||i.color,"fill-opacity":f.opacity},D.filterUserAttributes(f.attributes||{})))):s&&s.point&&s.point.haloPath&&s.animate({d:s.point.haloPath(0)},null,s.hide),L(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}),q(k,"Core/Pointer.js",[k["Core/Color/Color.js"],k["Core/Globals.js"],k["Core/Utilities.js"]],function(D,M,H){const{parse:Q}=D,{charts:Z,noop:X}=M,{addEvent:U,attr:O,css:z,defined:R,extend:y,find:S,fireEvent:L,isNumber:j,isObject:c,objectEach:x,offset:v,pick:p,splat:P}=H;class w{constructor(n,a){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=n,this.hasDragged=!1,this.options=a,this.init(n,a)}applyInactiveState(n){let a=[],u;(n||[]).forEach(function(h){u=h.series,a.push(u),u.linkedParent&&a.push(u.linkedParent),u.linkedSeries&&(a=a.concat(u.linkedSeries)),u.navigatorSeries&&a.push(u.navigatorSeries)}),this.chart.series.forEach(function(h){a.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})}destroy(){const n=this;this.eventsToUnbind.forEach(a=>a()),this.eventsToUnbind=[],M.chartCount||(w.unbindDocumentMouseUp&&(w.unbindDocumentMouseUp=w.unbindDocumentMouseUp()),w.unbindDocumentTouchEnd&&(w.unbindDocumentTouchEnd=w.unbindDocumentTouchEnd())),clearInterval(n.tooltipTimeout),x(n,function(a,u){n[u]=void 0})}getSelectionMarkerAttrs(n,a){const u={args:{chartX:n,chartY:a},attrs:{},shapeType:"rect"};return L(this,"getSelectionMarkerAttrs",u,h=>{const{chart:d,mouseDownX:e=0,mouseDownY:t=0,zoomHor:i,zoomVert:l}=this;h=h.attrs;let f;h.x=d.plotLeft,h.y=d.plotTop,h.width=i?1:d.plotWidth,h.height=l?1:d.plotHeight,i&&(f=n-e,h.width=Math.abs(f),h.x=(0<f?0:f)+e),l&&(f=a-t,h.height=Math.abs(f),h.y=(0<f?0:f)+t)}),u}drag(n){const a=this.chart,u=a.options.chart;var h=a.plotLeft;const d=a.plotTop,e=a.plotWidth,t=a.plotHeight,i=this.mouseDownX||0,l=this.mouseDownY||0,f=c(u.panning)?u.panning&&u.panning.enabled:u.panning,_=u.panKey&&n[u.panKey+"Key"];let r=n.chartX,C=n.chartY,G=this.selectionMarker;if((!G||!G.touch)&&(r<h?r=h:r>h+e&&(r=h+e),C<d?C=d:C>d+t&&(C=d+t),this.hasDragged=Math.sqrt(Math.pow(i-r,2)+Math.pow(l-C,2)),10<this.hasDragged)){h=a.isInsidePlot(i-h,l-d,{visiblePlotOnly:!0});const{shapeType:J,attrs:rt}=this.getSelectionMarkerAttrs(r,C);!a.hasCartesianSeries&&!a.mapView||!this.zoomX&&!this.zoomY||!h||_||G||(this.selectionMarker=G=a.renderer[J](),G.attr({class:"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||G.attr({fill:u.selectionMarkerFill||Q("#334eff").setOpacity(.25).get()})),G&&G.attr(rt),h&&!G&&f&&a.pan(n,u.panning)}}dragStart(n){const a=this.chart;a.mouseIsDown=n.type,a.cancelClick=!1,a.mouseDownX=this.mouseDownX=n.chartX,a.mouseDownY=this.mouseDownY=n.chartY}getSelectionBox(n){const a={args:{marker:n},result:{}};return L(this,"getSelectionBox",a,u=>{u.result={x:n.attr?+n.attr("x"):n.x,y:n.attr?+n.attr("y"):n.y,width:n.attr?n.attr("width"):n.width,height:n.attr?n.attr("height"):n.height}}),a.result}drop(n){const a=this,u=this.chart,h=this.hasPinched;if(this.selectionMarker){const{x:d,y:e,width:t,height:i}=this.getSelectionBox(this.selectionMarker),l={originalEvent:n,xAxis:[],yAxis:[],x:d,y:e,width:t,height:i};let f=!!u.mapView;(this.hasDragged||h)&&(u.axes.forEach(function(_){if(_.zoomEnabled&&R(_.min)&&(h||a[{xAxis:"zoomX",yAxis:"zoomY"}[_.coll]])&&j(d)&&j(e)&&j(t)&&j(i)){var r=_.horiz;const C=n.type==="touchend"?_.minPixelPadding:0,G=_.toValue((r?d:e)+C);r=_.toValue((r?d+t:e+i)-C),l[_.coll].push({axis:_,min:Math.min(G,r),max:Math.max(G,r)}),f=!0}}),f&&L(u,"selection",l,function(_){u.zoom(y(_,h?{animation:!1}:null))})),j(u.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}u&&j(u.index)&&(z(u.container,{cursor:u._cursor}),u.cancelClick=10<this.hasDragged,u.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(n,a,u){let h;return n.forEach(function(d){var e=!(d.noSharedTooltip&&a)&&0>d.options.findNearestPointBy.indexOf("y");if(d=d.searchPoint(u,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&&a?e:t!==0?t:i!==0?i:h.series.index>d.series.index?-1:1}e=0<e}e&&(h=d)}),h}getChartCoordinatesFromPoint(n,a){var u=n.series;const h=u.xAxis;u=u.yAxis;const d=n.shapeArgs;if(h&&u){let e=p(n.clientX,n.plotX),t=n.plotY||0;return n.isNode&&d&&j(d.x)&&j(d.y)&&(e=d.x,t=d.y),a?{chartX:u.len+u.pos-t,chartY:h.len+h.pos-e}:{chartX:e+h.pos,chartY:t+u.pos}}if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;var{container:n}=this.chart;const a=v(n);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};const u=n.offsetWidth;return n=n.offsetHeight,2<u&&2<n&&(this.chartPosition.scaleX=a.width/u,this.chartPosition.scaleY=a.height/n),this.chartPosition}getCoordinates(n){const a={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(u){a[u.isXAxis?"xAxis":"yAxis"].push({axis:u,value:u.toValue(n[u.horiz?"chartX":"chartY"])})}),a}getHoverData(n,a,u,h,d,e){const t=[];h=!(!h||!n);const i=function(r){return r.visible&&!(!d&&r.directTouch)&&p(r.options.enableMouseTracking,!0)};let l,f={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:d};L(this,"beforeGetHoverData",f),l=a&&!a.stickyTracking?[a]:u.filter(r=>r.stickyTracking&&(f.filter||i)(r));const _=h||!e?n:this.findNearestKDPoint(l,d,e);return a=_&&_.series,_&&(d&&!a.noSharedTooltip?(l=u.filter(function(r){return f.filter?f.filter(r):i(r)&&!r.noSharedTooltip}),l.forEach(function(r){let C=S(r.points,function(G){return G.x===_.x&&!G.isNull});c(C)&&(r.boosted&&r.boost&&(C=r.boost.getPoint(C)),t.push(C))})):t.push(_)),f={hoverPoint:_},L(this,"afterGetHoverData",f),{hoverPoint:f.hoverPoint,hoverSeries:a,hoverPoints:t}}getPointFromEvent(n){n=n.target;let a;for(;n&&!a;)a=n.point,n=n.parentNode;return a}onTrackerMouseOut(n){n=n.relatedTarget;const a=this.chart.hoverSeries;this.isDirectTouch=!1,!a||!n||a.stickyTracking||this.inClass(n,"highcharts-tooltip")||this.inClass(n,"highcharts-series-"+a.index)&&this.inClass(n,"highcharts-tracker")||a.onMouseOut()}inClass(n,a){let u;for(;n;){if(u=O(n,"class")){if(u.indexOf(a)!==-1)return!0;if(u.indexOf("highcharts-container")!==-1)return!1}n=n.parentElement}}init(n,a){this.options=a,this.chart=n,this.runChartClick=!(!a.chart.events||!a.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),L(this,"afterInit")}normalize(n,a){var u=n.touches,h=u?u.length?u.item(0):p(u.changedTouches,n.changedTouches)[0]:n;return a||(a=this.getChartPosition()),u=h.pageX-a.left,h=h.pageY-a.top,u/=a.scaleX,h/=a.scaleY,y(n,{chartX:Math.round(u),chartY:Math.round(h)})}onContainerClick(n){const a=this.chart,u=a.hoverPoint;n=this.normalize(n);const h=a.plotLeft,d=a.plotTop;a.cancelClick||(u&&this.inClass(n.target,"highcharts-tracker")?(L(u.series,"click",y(n,{point:u})),a.hoverPoint&&u.firePointEvent("click",n)):(y(n,this.getCoordinates(n)),a.isInsidePlot(n.chartX-h,n.chartY-d,{visiblePlotOnly:!0})&&L(a,"click",n)))}onContainerMouseDown(n){const a=((n.buttons||n.button)&1)===1;n=this.normalize(n),M.isFirefox&&n.button!==0&&this.onContainerMouseMove(n),(typeof n.button>"u"||a)&&(this.zoomOption(n),a&&n.preventDefault&&n.preventDefault(),this.dragStart(n))}onContainerMouseLeave(n){const a=Z[p(w.hoverChartIndex,-1)];n=this.normalize(n),a&&n.relatedTarget&&!this.inClass(n.relatedTarget,"highcharts-tooltip")&&(a.pointer.reset(),a.pointer.chartPosition=void 0)}onContainerMouseEnter(n){delete this.chartPosition}onContainerMouseMove(n){const a=this.chart,u=a.tooltip;n=this.normalize(n),this.setHoverChartIndex(),(a.mouseIsDown==="mousedown"||this.touchSelect(n))&&this.drag(n),a.openMenu||!this.inClass(n.target,"highcharts-tracker")&&!a.isInsidePlot(n.chartX-a.plotLeft,n.chartY-a.plotTop,{visiblePlotOnly:!0})||u&&u.shouldStickOnContact(n)||(this.inClass(n.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(n))}onDocumentTouchEnd(n){const a=Z[p(w.hoverChartIndex,-1)];a&&a.pointer.drop(n)}onContainerTouchMove(n){this.touchSelect(n)?this.onContainerMouseMove(n):this.touch(n)}onContainerTouchStart(n){this.touchSelect(n)?this.onContainerMouseDown(n):(this.zoomOption(n),this.touch(n,!0))}onDocumentMouseMove(n){const a=this.chart,u=a.tooltip,h=this.chartPosition;n=this.normalize(n,h),!h||a.isInsidePlot(n.chartX-a.plotLeft,n.chartY-a.plotTop,{visiblePlotOnly:!0})||u&&u.shouldStickOnContact(n)||this.inClass(n.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(n){const a=Z[p(w.hoverChartIndex,-1)];a&&a.pointer.drop(n)}pinch(n){const a=this,u=a.chart,h=a.pinchDown,d=n.touches||[],e=d.length,t=a.lastValidTouch,i=a.hasZoom,l={},f=e===1&&(a.inClass(n.target,"highcharts-tracker")&&u.runTrackerClick||a.runChartClick),_={};var r=a.chart.tooltip;r=e===1&&p(r&&r.options.followTouchMove,!0);let C=a.selectionMarker;1<e?a.initiated=!0:r&&(a.initiated=!1),i&&a.initiated&&!f&&n.cancelable!==!1&&n.preventDefault(),[].map.call(d,function(G){return a.normalize(G)}),n.type==="touchstart"?([].forEach.call(d,function(G,J){h[J]={chartX:G.chartX,chartY:G.chartY}}),t.x=[h[0].chartX,h[1]&&h[1].chartX],t.y=[h[0].chartY,h[1]&&h[1].chartY],u.axes.forEach(function(G){if(G.zoomEnabled){const J=u.bounds[G.horiz?"h":"v"],rt=G.minPixelPadding,B=G.toPixels(Math.min(p(G.options.min,G.dataMin),G.dataMin)),s=G.toPixels(Math.max(p(G.options.max,G.dataMax),G.dataMax)),A=Math.max(B,s);J.min=Math.min(G.pos,Math.min(B,s)-rt),J.max=Math.max(G.pos+G.len,A+rt)}}),a.res=!0):r?this.runPointActions(a.normalize(n)):h.length&&(L(u,"touchpan",{originalEvent:n},()=>{C||(a.selectionMarker=C=y({destroy:X,touch:!0},u.plotBox)),a.pinchTranslate(h,d,l,C,_,t),a.hasPinched=i,a.scaleGroups(l,_)}),a.res&&(a.res=!1,this.reset(!1,0)))}pinchTranslate(n,a,u,h,d,e){this.zoomHor&&this.pinchTranslateDirection(!0,n,a,u,h,d,e),this.zoomVert&&this.pinchTranslateDirection(!1,n,a,u,h,d,e)}pinchTranslateDirection(n,a,u,h,d,e,t,i){const l=this.chart,f=n?"x":"y",_=n?"X":"Y",r="chart"+_,C=n?"width":"height",G=l["plot"+(n?"Left":"Top")],J=l.inverted,rt=l.bounds[n?"h":"v"],B=a.length===1,s=a[0][r],A=!B&&a[1][r];a=function(){typeof m=="number"&&20<Math.abs(s-A)&&(K=i||Math.abs(o-m)/Math.abs(s-A)),I=(G-o)/K+s,N=l["plot"+(n?"Width":"Height")]/K};let N,I,K=i||1,o=u[0][r],m=!B&&u[1][r],g;a(),u=I,u<rt.min?(u=rt.min,g=!0):u+N>rt.max&&(u=rt.max-N,g=!0),g?(o-=.8*(o-t[f][0]),typeof m=="number"&&(m-=.8*(m-t[f][1])),a()):t[f]=[o,m],J||(e[f]=I-G,e[C]=N),e=J?1/K:K,d[C]=N,d[f]=u,h[J?n?"scaleY":"scaleX":"scale"+_]=K,h["translate"+_]=e*G+(o-e*s)}reset(n,a){const u=this.chart,h=u.hoverSeries,d=u.hoverPoint,e=u.hoverPoints,t=u.tooltip,i=t&&t.shared?e:d;n&&i&&P(i).forEach(function(l){l.series.isCartesian&&typeof l.plotX>"u"&&(n=!1)}),n?t&&i&&P(i).length&&(t.refresh(i),t.shared&&e?e.forEach(function(l){l.setState(l.state,!0),l.series.isCartesian&&(l.series.xAxis.crosshair&&l.series.xAxis.drawCrosshair(null,l),l.series.yAxis.crosshair&&l.series.yAxis.drawCrosshair(null,l))}):d&&(d.setState(d.state,!0),u.axes.forEach(function(l){l.crosshair&&d.series[l.coll]===l&&l.drawCrosshair(null,d)}))):(d&&d.onMouseOut(),e&&e.forEach(function(l){l.setState()}),h&&h.onMouseOut(),t&&t.hide(a),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),u.axes.forEach(function(l){l.hideCrosshair()}),this.hoverX=u.hoverPoints=u.hoverPoint=null)}runPointActions(n,a,u){const h=this.chart,d=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,e=d?d.shared:!1;let t=a||h.hoverPoint,i=t&&t.series||h.hoverSeries;a=this.getHoverData(t,i,h.series,(!n||n.type!=="touchmove")&&(!!a||i&&i.directTouch&&this.isDirectTouch),e,n),t=a.hoverPoint,i=a.hoverSeries;const l=a.hoverPoints;a=i&&i.tooltipOptions.followPointer&&!i.tooltipOptions.split;const f=e&&i&&!i.noSharedTooltip;if(t&&(u||t!==h.hoverPoint||d&&d.isHidden)){if((h.hoverPoints||[]).forEach(function(_){l.indexOf(_)===-1&&_.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(l),(l||[]).forEach(function(_){_.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!t.series)return;h.hoverPoints=l,h.hoverPoint=t,t.firePointEvent("mouseOver",void 0,()=>{d&&t&&d.refresh(f?l:t,n)})}else a&&d&&!d.isHidden&&(u=d.getAnchor([{}],n),h.isInsidePlot(u[0],u[1],{visiblePlotOnly:!0})&&d.updatePosition({plotX:u[0],plotY:u[1]}));this.unDocMouseMove||(this.unDocMouseMove=U(h.container.ownerDocument,"mousemove",function(_){const r=Z[w.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(_)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(_){const r=p((_.crosshair||{}).snap,!0);let C;r&&((C=h.hoverPoint)&&C.series[_.coll]===_||(C=S(l,G=>G.series&&G.series[_.coll]===_))),C||!r?_.drawCrosshair(n,C):_.hideCrosshair()})}scaleGroups(n,a){const u=this.chart;u.series.forEach(function(h){const d=n||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||u.mapView)&&(h.group.attr(d),h.markerGroup&&(h.markerGroup.attr(d),h.markerGroup.clip(a?u.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(d))}),u.clipRect.attr(a||u.clipBox)}setDOMEvents(){const n=this.chart.container,a=n.ownerDocument;n.onmousedown=this.onContainerMouseDown.bind(this),n.onmousemove=this.onContainerMouseMove.bind(this),n.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(U(n,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(U(n,"mouseleave",this.onContainerMouseLeave.bind(this))),w.unbindDocumentMouseUp||(w.unbindDocumentMouseUp=U(a,"mouseup",this.onDocumentMouseUp.bind(this)));let u=this.chart.renderTo.parentElement;for(;u&&u.tagName!=="BODY";)this.eventsToUnbind.push(U(u,"scroll",()=>{delete this.chartPosition})),u=u.parentElement;M.hasTouch&&(this.eventsToUnbind.push(U(n,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(U(n,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),w.unbindDocumentTouchEnd||(w.unbindDocumentTouchEnd=U(a,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const n=this.chart,a=M.charts[p(w.hoverChartIndex,-1)];a&&a!==n&&a.pointer.onContainerMouseLeave({relatedTarget:n.container}),a&&a.mouseIsDown||(w.hoverChartIndex=n.index)}touch(n,a){const u=this.chart;let h;this.setHoverChartIndex(),n.touches.length===1?(n=this.normalize(n),u.isInsidePlot(n.chartX-u.plotLeft,n.chartY-u.plotTop,{visiblePlotOnly:!0})&&!u.openMenu?(a&&this.runPointActions(n),n.type==="touchmove"&&(a=this.pinchDown,h=a[0]?4<=Math.sqrt(Math.pow(a[0].chartX-n.chartX,2)+Math.pow(a[0].chartY-n.chartY,2)):!1),p(h,!0)&&this.pinch(n)):a&&this.reset()):n.touches.length===2&&this.pinch(n)}touchSelect(n){return!(!this.chart.zooming.singleTouch||!n.touches||n.touches.length!==1)}zoomOption(n){const a=this.chart,u=a.inverted;var h=a.zooming.type||"";/touch/.test(n.type)&&(h=p(a.zooming.pinchType,h)),this.zoomX=n=/x/.test(h),this.zoomY=h=/y/.test(h),this.zoomHor=n&&!u||h&&u,this.zoomVert=h&&!u||n&&u,this.hasZoom=n||h}}return function(b){const n=[],a=[];b.compose=function(u){H.pushUnique(a,u)&&U(u,"beforeRender",function(){this.pointer=new b(this,this.options)})},b.dissolve=function(){for(let u=0,h=n.length;u<h;++u)n[u]();n.length=0}}(w||(w={})),w}),q(k,"Core/Legend/Legend.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Templating.js"],k["Core/Globals.js"],k["Core/Series/Point.js"],k["Core/Renderer/RendererUtilities.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z,X){const{animObject:U,setAnimation:O}=D,{format:z}=M,{marginNames:R}=H,{distribute:y}=Z,{addEvent:S,createElement:L,css:j,defined:c,discardElement:x,find:v,fireEvent:p,isNumber:P,merge:w,pick:b,relativeLength:n,stableSort:a,syncTimeout:u}=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(),S(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),S(this.chart,"render",()=>{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(e){const t=b(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=w(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=b(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(w(!0,this.options,e)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,b(t,!0)&&i.redraw(),p(this,"afterUpdate")}colorizeItem(e,t){const{group:i,label:l,line:f,symbol:_}=e.legendItem||{};if(i&&i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:r}=this,C=r.color,G=t&&e.color||C,J=e.options&&e.options.marker;let rt={fill:G};l==null||l.css(w(t?this.itemStyle:r)),f==null||f.attr({stroke:G}),_&&(J&&_.isMarker&&(rt=e.pointAttribs(),t||(rt.stroke=rt.fill=C)),_.attr(rt))}p(this,"afterColorizeItem",{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){const{group:t,x:i=0,y:l=0}=e.legendItem||{};var f=this.options,_=f.symbolPadding;const r=!f.rtl;f=e.checkbox,t&&t.element&&(_={translateX:r?i:this.legendWidth-i-2*_-4,translateY:l},t[c(t.translateY)?"animate":"attr"](_,void 0,()=>{p(this,"afterPositionItem",{item:e})})),f&&(f.x=i,f.y=l)}destroyItem(e){const t=e.checkbox,i=e.legendItem||{};for(const l of["group","label","line","symbol"])i[l]&&(i[l]=i[l].destroy());t&&x(t),e.legendItem=void 0}destroy(){for(const e of this.getAllItems())this.destroyItem(e);for(const e of"clipRect up down pager nav box title group".split(" "))this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){const e=this.group&&this.group.alignAttr,t=this.clipHeight||this.legendHeight,i=this.titleHeight;let l;e&&(l=e.translateY,this.allItems.forEach(function(f){const _=f.checkbox;let r;_&&(r=l+i+_.y+(this.scrollOffset||0)+3,j(_,{left:e.translateX+f.checkboxOffset+_.x-20+"px",top:r+"px",display:this.proximate||r>l-6&&r<l+t-6?"":"none"}))},this))}renderTitle(){var e=this.options;const t=this.padding,i=e.title;let l=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,t-3,t-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),e=this.title.getBBox(),l=e.height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:l})),this.titleHeight=l}setText(e){const t=this.options;e.legendItem.label.attr({text:t.labelFormat?z(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})}renderItem(e){const t=e.legendItem=e.legendItem||{};var i=this.chart,l=i.renderer;const f=this.options,_=this.symbolWidth,r=f.symbolPadding||0,C=this.itemStyle,G=this.itemHiddenStyle,J=f.layout==="horizontal"?b(f.itemDistance,20):0,rt=!f.rtl,B=!e.series,s=!B&&e.series.drawLegendSymbol?e.series:e;var A=s.options;const N=this.createCheckboxForItem&&A&&A.showCheckbox,I=f.useHTML,K=e.options.className;let o=t.label;A=_+r+J+(N?20:0),o||(t.group=l.g("legend-item").addClass("highcharts-"+s.type+"-series highcharts-color-"+e.colorIndex+(K?" "+K:"")+(B?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.label=o=l.text("",rt?_+r:-r,this.baseline||0,I),i.styledMode||o.css(w(e.visible?C:G)),o.attr({align:rt?"left":"right",zIndex:2}).add(t.group),this.baseline||(this.fontMetrics=l.fontMetrics(o),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,o.attr("y",this.baseline),this.symbolHeight=b(f.symbolHeight,this.fontMetrics.f),f.squareSymbol&&(this.symbolWidth=b(f.symbolWidth,Math.max(this.symbolHeight,16)),A=this.symbolWidth+r+J+(N?20:0),rt&&o.attr("x",this.symbolWidth+r))),s.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,o,I)),N&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),!i.styledMode&&C.width||o.css({width:(f.itemWidth||this.widthOption||i.spacingBox.width)-A+"px"}),this.setText(e),i=o.getBBox(),l=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=f.itemWidth||t.labelWidth||i.width+A,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(t.labelHeight||(i.height>1.5*l?i.height:l))}layoutItem(e){var t=this.options;const i=this.padding,l=t.layout==="horizontal",f=e.itemHeight,_=this.itemMarginBottom,r=this.itemMarginTop,C=l?b(t.itemDistance,20):0,G=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>G?this.maxItemWidth:e.itemWidth;const J=e.legendItem||{};l&&this.itemX-i+t>G&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+_),this.lastLineHeight=0),this.lastItemY=r+this.itemY+_,this.lastLineHeight=Math.max(f,this.lastLineHeight),J.x=this.itemX,J.y=this.itemY,l?this.itemX+=t:(this.itemY+=r+f+_,this.lastLineHeight=f),this.offsetWidth=this.widthOption||Math.max((l?this.itemX-i-(e.checkbox?0:C):t)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){const i=t&&t.options;t&&b(i.showInLegend,c(i.linkedTo)?!1:void 0,!0)&&(e=e.concat((t.legendItem||{}).labels||(i.legendType==="point"?t.data:t)))}),p(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){const e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){const i=this.chart,l=this.options,f=this.getAlignment();f&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(_,r){_.test(f)&&!c(e[r])&&(i[R[r]]=Math.max(i[R[r]],i.legend[(r+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][r]*l[r%2?"x":"y"]+b(l.margin,12)+t[r]+(i.titleOffset[r]||0)))})}proximatePositions(){const e=this.chart,t=[],i=this.options.align==="left";this.allItems.forEach(function(f){var _,r=i;let C;f.yAxis&&(f.xAxis.options.reversed&&(r=!r),f.points&&(_=v(r?f.points:f.points.slice(0).reverse(),function(G){return P(G.plotY)})),r=this.itemMarginTop+f.legendItem.label.getBBox().height+this.itemMarginBottom,C=f.yAxis.top-e.plotTop,f.visible?(_=_?_.plotY:f.yAxis.height,_+=C-.3*r):_=C+f.yAxis.height,t.push({target:_,size:r,item:f}))},this);let l;for(const f of y(t,e.plotHeight))l=f.item.legendItem||{},P(f.pos)&&(l.y=e.plotTop-e.spacing[0]+f.pos)}render(){const e=this.chart,t=e.renderer,i=this.options,l=this.padding;var f=this.getAllItems();let _,r=this.group,C=this.box;this.itemX=l,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=n(i.width,e.spacingBox.width-l);var G=e.spacingBox.width-2*l-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(G/=2),this.maxLegendWidth=this.widthOption||G,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(),a(f,(J,rt)=>(J.options&&J.options.legendIndex||0)-(rt.options&&rt.options.legendIndex||0)),i.reversed&&f.reverse(),this.allItems=f,this.display=G=!!f.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,f.forEach(this.renderItem,this),f.forEach(this.layoutItem,this),f=(this.widthOption||this.offsetWidth)+l,_=this.lastItemY+this.lastLineHeight+this.titleHeight,_=this.handleOverflow(_),_+=l,C||(this.box=C=t.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),e.styledMode||C.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<f&&0<_&&C[C.placed?"animate":"attr"](C.crisp.call({},{x:0,y:0,width:f,height:_},C.strokeWidth())),r[G?"show":"hide"](),e.styledMode&&r.getStyle("display")==="none"&&(f=_=0),this.legendWidth=f,this.legendHeight=_,G&&this.align(),this.proximate||this.positionItems(),p(this,"afterRender")}align(e=this.chart.spacingBox){const t=this.chart,i=this.options;let l=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<t.titleOffset[0]?l+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<t.titleOffset[2]&&(l-=t.titleOffset[2]),l!==e.y&&(e=w(e,{y:l})),t.hasRendered||(this.group.placed=!1),this.group.align(w(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,e)}handleOverflow(e){const t=this,i=this.chart,l=i.renderer,f=this.options;var _=f.y;const r=f.verticalAlign==="top",C=this.padding,G=f.maxHeight,J=f.navigation,rt=b(J.animation,!0),B=J.arrowSize||12,s=this.pages,A=this.allItems,N=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("+C+"px,9999px,"+(C+F)+"px,0)":"auto")},I=function(F){return t[F]=l.circle(0,0,1.3*B).translate(B/2,B/2).add(g),i.styledMode||t[F].attr("fill","rgba(0,0,0,0.0001)"),t[F]};let K,o,m;_=i.spacingBox.height+(r?-_:_)-C;let g=this.nav,W=this.clipRect;return f.layout!=="horizontal"||f.verticalAlign==="middle"||f.floating||(_/=2),G&&(_=Math.min(_,G)),s.length=0,e&&0<_&&e>_&&J.enabled!==!1?(this.clipHeight=K=Math.max(_-20-this.titleHeight-C,0),this.currentPage=b(this.currentPage,1),this.fullHeight=e,A.forEach((F,$)=>{m=F.legendItem||{},F=m.y||0;const it=Math.round(m.label.getBBox().height);let ot=s.length;(!ot||F-s[ot-1]>K&&(o||F)!==s[ot-1])&&(s.push(o||F),ot++),m.pageIx=ot-1,o&&((A[$-1].legendItem||{}).pageIx=ot-1),$===A.length-1&&F+it-s[ot-1]>K&&F>s[ot-1]&&(s.push(F),m.pageIx=ot),F!==o&&(o=F)}),W||(W=t.clipRect=l.clipRect(0,C-2,9999,0),t.contentGroup.clip(W)),N(K),g||(this.nav=g=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,B,B).add(g),I("upTracker").on("click",function(){t.scroll(-1,rt)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&J.style&&this.pager.css(J.style),this.pager.add(g),this.down=l.symbol("triangle-down",0,0,B,B).add(g),I("downTracker").on("click",function(){t.scroll(1,rt)})),t.scroll(0),e=_):g&&(N(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){const i=this.chart,l=this.pages,f=l.length,_=this.clipHeight,r=this.options.navigation,C=this.pager,G=this.padding;let J=this.currentPage+e;J>f&&(J=f),0<J&&(typeof t<"u"&&O(t,i),this.nav.attr({translateX:G,translateY:_+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(rt){rt.attr({class:J===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),C.attr({text:J+"/"+f}),[this.down,this.downTracker].forEach(function(rt){rt.attr({x:18+this.pager.getBBox().width,class:J===f?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:J===1?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:J===1?"default":"pointer"}),this.down.attr({fill:J===f?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:J===f?"default":"pointer"})),this.scrollOffset=-l[J-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=J,this.positionCheckboxes(),e=U(b(t,i.renderer.globalAnimation,!0)),u(()=>{p(this,"afterScroll",{currentPage:J})},e.duration))}setItemEvents(e,t,i){const l=this,f=e.legendItem||{},_=l.chart.renderer.boxWrapper,r=e instanceof Q,C="highcharts-legend-"+(r?"point":"series")+"-active",G=l.chart.styledMode;i=i?[t,f.symbol]:[f.group];const J=rt=>{l.allItems.forEach(B=>{e!==B&&[B].concat(B.linkedSeries||[]).forEach(s=>{s.setState(rt,!r)})})};for(const rt of i)rt&&rt.on("mouseover",function(){e.visible&&J("inactive"),e.setState("hover"),e.visible&&_.addClass(C),G||t.css(l.options.itemHoverStyle)}).on("mouseout",function(){l.chart.styledMode||t.css(w(e.visible?l.itemStyle:l.itemHiddenStyle)),J(""),_.removeClass(C),e.setState()}).on("click",function(B){const s=function(){e.setVisible&&e.setVisible(),J(e.visible?"inactive":"")};_.removeClass(C),B={browserEvent:B},e.firePointEvent?e.firePointEvent("legendItemClick",B,s):p(e,"legendItemClick",B,s)})}createCheckboxForItem(e){e.checkbox=L("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),S(e.checkbox,"click",function(t){p(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)&&S(t,"beforeMargins",function(){this.legend=new d(this,this.options.legend)})}}(h||(h={})),h}),q(k,"Core/Legend/LegendSymbol.js",[k["Core/Utilities.js"]],function(D){const{extend:M,merge:H,pick:Q}=D;var Z;return function(X){X.lineMarker=function(U,O){O=this.legendItem=this.legendItem||{};var z=this.options;const R=U.symbolWidth,y=U.symbolHeight,S=y/2,L=this.chart.renderer,j=O.group;U=U.baseline-Math.round(.3*U.fontMetrics.b);let c={},x=z.marker,v=0;this.chart.styledMode||(c={"stroke-width":Math.min(z.lineWidth||0,24)},z.dashStyle?c.dashstyle=z.dashStyle:z.linecap!=="square"&&(c["stroke-linecap"]="round")),O.line=L.path().addClass("highcharts-graph").attr(c).add(j),c["stroke-linecap"]&&(v=Math.min(O.line.strokeWidth(),R)/2),R&&O.line.attr({d:[["M",v,U],["L",R-v,U]]}),x&&x.enabled!==!1&&R&&(z=Math.min(Q(x.radius,S),S),this.symbol.indexOf("url")===0&&(x=H(x,{width:y,height:y}),z=0),O.symbol=O=L.symbol(this.symbol,R/2-z,U-z,2*z,2*z,M({context:"legend"},x)).addClass("highcharts-point").add(j),O.isMarker=!0)},X.rectangle=function(U,O){O=O.legendItem||{};const z=U.symbolHeight,R=U.options.squareSymbol;O.symbol=this.chart.renderer.rect(R?(U.symbolWidth-z)/2:0,U.baseline-z+1,R?z:U.symbolWidth,z,Q(U.options.symbolRadius,z/2)).addClass("highcharts-point").attr({zIndex:3}).add(O.group)}}(Z||(Z={})),Z}),q(k,"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:D}=this.series.chart;return typeof this.y!="number"?"":D(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"}}),q(k,"Core/Series/SeriesRegistry.js",[k["Core/Globals.js"],k["Core/Defaults.js"],k["Core/Series/Point.js"],k["Core/Utilities.js"]],function(D,M,H,Q){const{defaultOptions:Z}=M,{extendClass:X,merge:U}=Q;var O;return function(z){function R(y,S){const L=Z.plotOptions||{},j=S.defaultOptions,c=S.prototype;c.type=y,c.pointClass||(c.pointClass=H),j&&(L[y]=j),z.seriesTypes[y]=S}z.seriesTypes=D.seriesTypes,z.registerSeriesType=R,z.seriesType=function(y,S,L,j,c){const x=Z.plotOptions||{};return S=S||"",x[y]=U(x[S],L),R(y,X(z.seriesTypes[S]||function(){},j)),z.seriesTypes[y].prototype.type=y,c&&(z.seriesTypes[y].prototype.pointClass=X(H,c)),z.seriesTypes[y]}}(O||(O={})),O}),q(k,"Core/Series/Series.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Defaults.js"],k["Core/Foundation.js"],k["Core/Globals.js"],k["Core/Legend/LegendSymbol.js"],k["Core/Series/Point.js"],k["Core/Series/SeriesDefaults.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Renderer/SVG/SVGElement.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z,X,U,O,z,R){const{animObject:y,setAnimation:S}=D,{defaultOptions:L}=M,{registerEventOptions:j}=H,{hasTouch:c,svg:x,win:v}=Q,{seriesTypes:p}=O,{arrayMax:P,arrayMin:w,clamp:b,correctFloat:n,defined:a,diffObjects:u,erase:h,error:d,extend:e,find:t,fireEvent:i,getClosestDistance:l,getNestedProperty:f,insertItem:_,isArray:r,isNumber:C,isString:G,merge:J,objectEach:rt,pick:B,removeEvent:s,splat:A,syncTimeout:N}=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(o,m){i(this,"init",{options:m});const g=this,W=o.series;this.eventsToUnbind=[],g.chart=o,g.options=g.setOptions(m),m=g.options,g.linkedSeries=[],g.bindAxes(),e(g,{name:m.name,state:"",visible:m.visible!==!1,selected:m.selected===!0}),j(this,m);const F=m.events;(F&&F.click||m.point&&m.point.events&&m.point.events.click||m.allowPointSelect)&&(o.runTrackerClick=!0),g.getColor(),g.getSymbol(),g.parallelArrays.forEach(function(it){g[it+"Data"]||(g[it+"Data"]=[])}),g.isCartesian&&(o.hasCartesianSeries=!0);let $;W.length&&($=W[W.length-1]),g._i=B($&&$._i,-1)+1,g.opacity=g.options.opacity,o.orderItems("series",_(this,W)),m.dataSorting&&m.dataSorting.enabled?g.setDataSortingOptions():g.points||g.data||g.setData(m.data,!1),i(this,"afterInit")}is(o){return p[o]&&this instanceof p[o]}bindAxes(){const o=this,m=o.options,g=o.chart;let W;i(this,"bindAxes",null,function(){(o.axisTypes||[]).forEach(function(F){g[F].forEach(function($){W=$.options,(B(m[F],0)===$.index||typeof m[F]<"u"&&m[F]===W.id)&&(_(o,$.series),o[F]=$,$.isDirty=!0)}),o[F]||o.optionalAxis===F||d(18,!0,g)})}),i(this,"afterBindAxes")}updateParallelArrays(o,m,g){const W=o.series,F=C(m)?function($){const it=$==="y"&&W.toYData?W.toYData(o):o[$];W[$+"Data"][m]=it}:function($){Array.prototype[m].apply(W[$+"Data"],g)};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(o){var m=this.options;const g=m.pointIntervalUnit,W=m.relativeXValue,F=this.chart.time;let $=this.xIncrement,it;return $=B($,m.pointStart,0),this.pointInterval=it=B(this.pointInterval,m.pointInterval,1),W&&C(o)&&(it*=o),g&&(m=new F.Date($),g==="day"?F.set("Date",m,F.get("Date",m)+it):g==="month"?F.set("Month",m,F.get("Month",m)+it):g==="year"&&F.set("FullYear",m,F.get("FullYear",m)+it),it=m.getTime()-$),W&&C(o)?$+it:(this.xIncrement=$+it,$)}setDataSortingOptions(){const o=this.options;e(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),a(o.pointRange)||(o.pointRange=1)}setOptions(o){var m,g;const W=this.chart;var F=W.options.plotOptions,$=W.userOptions||{};const it=J(o);o=W.styledMode;const ot={plotOptions:F,userOptions:it};i(this,"setOptions",ot);const at=ot.plotOptions[this.type];$=$.plotOptions||{};const ht=$.series||{},ut=L.plotOptions[this.type]||{},E=$[this.type]||{};return this.userOptions=ot.userOptions,F=J(at,F.series,E,it),this.tooltipOptions=J(L.tooltip,(m=L.plotOptions.series)===null||m===void 0?void 0:m.tooltip,ut==null?void 0:ut.tooltip,W.userOptions.tooltip,(g=$.series)===null||g===void 0?void 0:g.tooltip,E.tooltip,it.tooltip),this.stickyTracking=B(it.stickyTracking,E.stickyTracking,ht.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:F.stickyTracking),at.marker===null&&delete F.marker,this.zoneAxis=F.zoneAxis,g=this.zones=(F.zones||[]).slice(),!F.negativeColor&&!F.negativeFillColor||F.zones||(m={value:F[this.zoneAxis+"Threshold"]||F.threshold||0,className:"highcharts-negative"},o||(m.color=F.negativeColor,m.fillColor=F.negativeFillColor),g.push(m)),g.length&&a(g[g.length-1].value)&&g.push(o?{}:{color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:F}),F}getName(){return B(this.options.name,"Series "+(this.index+1))}getCyclic(o,m,g){const W=this.chart,F=`${o}Index`,$=`${o}Counter`,it=(g==null?void 0:g.length)||W.options.chart.colorCount;if(!m){var ot=B(o==="color"?this.options.colorIndex:void 0,this[F]);a(ot)||(W.series.length||(W[$]=0),ot=W[$]%it,W[$]+=1),g&&(m=g[ot])}typeof ot<"u"&&(this[F]=ot),this[o]=m}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||L.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(o,m){const g=o.id,W=o.x,F=this.points;var $=this.options.dataSorting,it;let ot,at;if(g)$=this.chart.get(g),$ instanceof X&&(it=$);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(it=ht=>!ht.touched&&ht.index===o.index,$&&$.matchByName?it=ht=>!ht.touched&&ht.name===o.name:this.options.relativeXValue&&(it=ht=>!ht.touched&&ht.options.x===o.x),it=t(F,it),!it))return;return it&&(at=it&&it.index,typeof at<"u"&&(ot=!0)),typeof at>"u"&&C(W)&&(at=this.xData.indexOf(W,m)),at!==-1&&typeof at<"u"&&this.cropped&&(at=at>=this.cropStart?at-this.cropStart:at),!ot&&C(at)&&F[at]&&F[at].touched&&(at=void 0),at}updateData(o,m){const g=this.options,W=g.dataSorting,F=this.points,$=[],it=this.requireSorting,ot=o.length===F.length;let at,ht,ut,E=!0;if(this.xIncrement=null,o.forEach(function(T,tt){var V=a(T)&&this.pointClass.prototype.optionsToObject.call({series:this},T)||{};const et=V.x;V.id||C(et)?(V=this.findPointIndex(V,ut),V===-1||typeof V>"u"?$.push(T):F[V]&&T!==g.data[V]?(F[V].update(T,!1,null,!1),F[V].touched=!0,it&&(ut=V+1)):F[V]&&(F[V].touched=!0),(!ot||tt!==V||W&&W.enabled||this.hasDerivedData)&&(at=!0)):$.push(T)},this),at)for(o=F.length;o--;)(ht=F[o])&&!ht.touched&&ht.remove&&ht.remove(!1,m);else!ot||W&&W.enabled?E=!1:(o.forEach(function(T,tt){T===F[tt].y||F[tt].destroyed||F[tt].update(T,!1,null,!1)}),$.length=0);return F.forEach(function(T){T&&(T.touched=!1)}),E?($.forEach(function(T){this.addPoint(T,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=P(this.xData),this.autoIncrement()),!0):!1}setData(o,m=!0,g,W){var F;const $=this,it=$.points,ot=it&&it.length||0,at=$.options,ht=$.chart,ut=at.dataSorting,E=$.xAxis,T=at.turboThreshold,tt=this.xData,V=this.yData;var et=$.pointArrayMap;et=et&&et.length;const dt=at.keys;let ct,xt=0,yt=1,gt=null;if(!ht.options.chart.allowMutatingData){at.data&&delete $.options.data,$.userOptions.data&&delete $.userOptions.data;var mt=J(!0,o)}if(o=mt||o||[],mt=o.length,ut&&ut.enabled&&(o=this.sortData(o)),ht.options.chart.allowMutatingData&&W!==!1&&mt&&ot&&!$.cropped&&!$.hasGroupedData&&$.visible&&!$.boosted&&(ct=this.updateData(o,g)),!ct){if($.xIncrement=null,$.colorCounter=0,this.parallelArrays.forEach(function(Ct){$[Ct+"Data"].length=0}),T&&mt>T)if(gt=$.getFirstValidPoint(o),C(gt))for(g=0;g<mt;g++)tt[g]=this.autoIncrement(),V[g]=o[g];else if(r(gt))if(et)if(gt.length===et)for(g=0;g<mt;g++)tt[g]=this.autoIncrement(),V[g]=o[g];else for(g=0;g<mt;g++)W=o[g],tt[g]=W[0],V[g]=W.slice(1,et+1);else if(dt&&(xt=dt.indexOf("x"),yt=dt.indexOf("y"),xt=0<=xt?xt:0,yt=0<=yt?yt:1),gt.length===1&&(yt=0),xt===yt)for(g=0;g<mt;g++)tt[g]=this.autoIncrement(),V[g]=o[g][yt];else for(g=0;g<mt;g++)W=o[g],tt[g]=W[xt],V[g]=W[yt];else d(12,!1,ht);else for(g=0;g<mt;g++)W={series:$},$.pointClass.prototype.applyOptions.apply(W,[o[g]]),$.updateParallelArrays(W,g);for(V&&G(V[0])&&d(14,!0,ht),$.data=[],$.options.data=$.userOptions.data=o,g=ot;g--;)(F=it[g])===null||F===void 0||F.destroy();E&&(E.minRange=E.userMinRange),$.isDirty=ht.isDirtyBox=!0,$.isDirtyData=!!it,g=!1}at.legendType==="point"&&(this.processData(),this.generatePoints()),m&&ht.redraw(g)}sortData(o){const m=this,g=m.options.dataSorting.sortKey||"y",W=function(F,$){return a($)&&F.pointClass.prototype.optionsToObject.call({series:F},$)||{}};return o.forEach(function(F,$){o[$]=W(m,F),o[$].index=$},this),o.concat().sort((F,$)=>(F=f(g,F),$=f(g,$),$<F?-1:$>F?1:0)).forEach(function(F,$){F.x=$},this),m.linkedSeries&&m.linkedSeries.forEach(function(F){const $=F.options,it=$.data;$.dataSorting&&$.dataSorting.enabled||!it||(it.forEach(function(ot,at){it[at]=W(F,ot),o[at]&&(it[at].x=o[at].x,it[at].index=at)}),F.setData(it,!1))}),o}getProcessedData(o){const m=this;var g=m.xAxis,W=m.options;const F=W.cropThreshold,$=o||m.getExtremesFromAll||W.getExtremesFromAll,it=g==null?void 0:g.logarithmic,ot=m.isCartesian;let at=0,ht;o=m.xData,W=m.yData;let ut=!1;const E=o.length;if(g){var T=g.getExtremes();ht=T.min,T=T.max,ut=!(!g.categories||g.names.length)}if(ot&&m.sorted&&!$&&(!F||E>F||m.forceCrop)){if(o[E-1]<ht||o[0]>T)o=[],W=[];else if(m.yData&&(o[0]<ht||o[E-1]>T)){var tt=this.cropData(m.xData,m.yData,ht,T);o=tt.xData,W=tt.yData,at=tt.start,tt=!0}}return g=l([it?o.map(it.log2lin):o],()=>m.requireSorting&&!ut&&d(15,!1,m.chart)),{xData:o,yData:W,cropped:tt,cropStart:at,closestPointRange:g}}processData(o){const m=this.xAxis;if(this.isCartesian&&!this.isDirty&&!m.isDirty&&!this.yAxis.isDirty&&!o)return!1;o=this.getProcessedData(),this.cropped=o.cropped,this.cropStart=o.cropStart,this.processedXData=o.xData,this.processedYData=o.yData,this.closestPointRange=this.basePointRange=o.closestPointRange,i(this,"afterProcessData")}cropData(o,m,g,W,F){const $=o.length;let it,ot=0,at=$;for(F=B(F,this.cropShoulder),it=0;it<$;it++)if(o[it]>=g){ot=Math.max(0,it-F);break}for(g=it;g<$;g++)if(o[g]>W){at=g+F;break}return{xData:o.slice(ot,at),yData:m.slice(ot,at),start:ot,end:at}}generatePoints(){var o=this.options;const m=this.processedData||o.data,g=this.processedXData,W=this.processedYData,F=this.pointClass,$=g.length,it=this.cropStart||0,ot=this.hasGroupedData,at=o.keys,ht=[];o=o.dataGrouping&&o.dataGrouping.groupAll?it:0;let ut,E,T,tt=this.data;if(!tt&&!ot){var V=[];V.length=m.length,tt=this.data=V}for(at&&ot&&(this.options.keys=!1),T=0;T<$;T++)V=it+T,ot?(E=new F().init(this,[g[T]].concat(A(W[T]))),E.dataGroup=this.groupMap[o+T],E.dataGroup.options&&(E.options=E.dataGroup.options,e(E,E.dataGroup.options),delete E.dataLabels)):(E=tt[V])||typeof m[V]>"u"||(tt[V]=E=new F().init(this,m[V],g[T])),E&&(E.index=ot?o+T:V,ht[T]=E);if(this.options.keys=at,tt&&($!==(ut=tt.length)||ot))for(T=0;T<ut;T++)T!==it||ot||(T+=$),tt[T]&&(tt[T].destroyElements(),tt[T].plotX=void 0);this.data=tt,this.points=ht,i(this,"afterGeneratePoints")}getXExtremes(o){return{min:w(o),max:P(o)}}getExtremes(o,m){const g=this.xAxis;var W=this.yAxis;const F=this.processedXData||this.xData,$=[],it=this.requireSorting?this.cropShoulder:0;W=W?W.positiveValuesOnly:!1;let ot,at=0,ht=0,ut=0;o=o||this.stackedYData||this.processedYData||[];const E=o.length;if(g){var T=g.getExtremes();at=T.min,ht=T.max}for(ot=0;ot<E;ot++){var tt=F[ot];T=o[ot];var V=(C(T)||r(T))&&(T.length||0<T||!W);if(tt=m||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!g||(F[ot+it]||tt)>=at&&(F[ot-it]||tt)<=ht,V&&tt)if(V=T.length)for(;V--;)C(T[V])&&($[ut++]=T[V]);else $[ut++]=T}return o={activeYData:$,dataMin:w($),dataMax:P($)},i(this,"afterGetExtremes",{dataExtremes:o}),o}applyExtremes(){const o=this.getExtremes();return this.dataMin=o.dataMin,this.dataMax=o.dataMax,o}getFirstValidPoint(o){const m=o.length;let g=0,W=null;for(;W===null&&g<m;)W=o[g],g++;return W}translate(){var o;this.processedXData||this.processData(),this.generatePoints();var m=this.options;const g=m.stacking,W=this.xAxis,F=W.categories,$=this.enabledDataSorting,it=this.yAxis,ot=this.points,at=ot.length,ht=this.pointPlacementToXValue(),ut=!!ht,E=m.threshold;m=m.startFromThreshold?E:0;let T,tt,V,et,dt=Number.MAX_VALUE;for(T=0;T<at;T++){const ct=ot[T],xt=ct.x;let yt,gt,mt=ct.y,Ct=ct.low;const kt=g&&((o=it.stacking)===null||o===void 0?void 0:o.stacks[(this.negStacks&&mt<(m?0:E)?"-":"")+this.stackKey]);tt=W.translate(xt,!1,!1,!1,!0,ht),ct.plotX=C(tt)?n(b(tt,-1e5,1e5)):void 0,g&&this.visible&&kt&&kt[xt]&&(et=this.getStackIndicator(et,xt,this.index),!ct.isNull&&et.key&&(yt=kt[xt],gt=yt.points[et.key]),yt&&r(gt)&&(Ct=gt[0],mt=gt[1],Ct===m&&et.key===kt[xt].base&&(Ct=B(C(E)?E:it.min)),it.positiveValuesOnly&&a(Ct)&&0>=Ct&&(Ct=void 0),ct.total=ct.stackTotal=B(yt.total),ct.percentage=a(ct.y)&&yt.total?ct.y/yt.total*100:void 0,ct.stackY=mt,this.irregularWidths||yt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),ct.yBottom=a(Ct)?b(it.translate(Ct,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(mt=this.dataModify.modifyValue(mt,T));let bt;C(mt)&&ct.plotX!==void 0&&(bt=it.translate(mt,!1,!0,!1,!0),bt=C(bt)?b(bt,-1e5,1e5):void 0),ct.plotY=bt,ct.isInside=this.isPointInside(ct),ct.clientX=ut?n(W.translate(xt,!1,!1,!1,!0,ht)):tt,ct.negative=(ct.y||0)<(E||0),ct.category=B(F&&F[ct.x],ct.x),ct.isNull||ct.visible===!1||(typeof V<"u"&&(dt=Math.min(dt,Math.abs(tt-V))),V=tt),ct.zone=this.zones.length?ct.getZone():void 0,!ct.graphic&&this.group&&$&&(ct.isNew=!0)}this.closestPointRangePx=dt,i(this,"afterTranslate")}getValidPoints(o,m,g){const W=this.chart;return(o||this.points||[]).filter(function(F){const{plotX:$,plotY:it}=F;return!g&&(F.isNull||!C(it))||m&&!W.isInsidePlot($,it,{inverted:W.inverted})?!1:F.visible!==!1})}getClipBox(){const{chart:o,xAxis:m,yAxis:g}=this,W=J(o.clipBox);return m&&m.len!==o.plotSizeX&&(W.width=m.len),g&&g.len!==o.plotSizeY&&(W.height=g.len),W}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}setClip(){const{chart:o,group:m,markerGroup:g}=this,W=o.sharedClips,F=o.renderer,$=this.getClipBox(),it=this.getSharedClipKey();let ot=W[it];ot?ot.animate($):W[it]=ot=F.clipRect($),m&&m.clip(this.options.clip===!1?void 0:ot),g&&g.clip()}animate(o){const{chart:m,group:g,markerGroup:W}=this,F=m.inverted;var $=y(this.options.animation),it=[this.getSharedClipKey(),$.duration,$.easing,$.defer].join();let ot=m.sharedClips[it],at=m.sharedClips[it+"m"];if(o&&g)$=this.getClipBox(),ot?ot.attr("height",$.height):($.width=0,F&&($.x=m.plotHeight),ot=m.renderer.clipRect($),m.sharedClips[it]=ot,at=m.renderer.clipRect({x:-99,y:-99,width:F?m.plotWidth+199:99,height:F?99:m.plotHeight+199}),m.sharedClips[it+"m"]=at),g.clip(ot),W&&W.clip(at);else if(ot&&!ot.hasClass("highcharts-animating")){it=this.getClipBox();const ht=$.step;W&&W.element.childNodes.length&&($.step=function(ut,E){ht&&ht.apply(E,arguments),E.prop==="width"&&at&&at.element&&at.attr(F?"height":"width",ut+99)}),ot.addClass("highcharts-animating").animate(it,$)}}afterAnimate(){this.setClip(),rt(this.chart.sharedClips,(o,m,g)=>{o&&!this.chart.container.querySelector(`[clip-path="url(#${o.id})"]`)&&(o.destroy(),delete g[m])}),this.finishedAnimating=!0,i(this,"afterAnimate")}drawPoints(o=this.points){const m=this.chart,g=m.styledMode,{colorAxis:W,options:F}=this,$=F.marker,it=this[this.specialGroup||"markerGroup"],ot=this.xAxis,at=B($.enabled,!ot||ot.isRadial?!0:null,this.closestPointRangePx>=$.enabledThreshold*$.radius);let ht,ut,E,T,tt,V;if($.enabled!==!1||this._hasPointMarkers)for(ht=0;ht<o.length;ht++){ut=o[ht],T=(E=ut.graphic)?"animate":"attr";var et=ut.marker||{};if(tt=!!ut.marker,(at&&typeof et.enabled>"u"||et.enabled)&&!ut.isNull&&ut.visible!==!1){const dt=B(et.symbol,this.symbol,"rect");V=this.markerAttribs(ut,ut.selected&&"select"),this.enabledDataSorting&&(ut.startXPos=ot.reversed?-(V.width||0):ot.width);const ct=ut.isInside!==!1;!E&&ct&&(0<(V.width||0)||ut.hasImage)&&(ut.graphic=E=m.renderer.symbol(dt,V.x,V.y,V.width,V.height,tt?et:$).add(it),this.enabledDataSorting&&m.hasRendered&&(E.attr({x:ut.startXPos}),T="animate")),E&&T==="animate"&&E[ct?"show":"hide"](ct).animate(V),E&&(et=this.pointAttribs(ut,g||!ut.selected?void 0:"select"),g?W&&E.css({fill:et.fill}):E[T](et)),E&&E.addClass(ut.getClassName(),!0)}else E&&(ut.graphic=E.destroy())}}markerAttribs(o,m){const g=this.options;var W=g.marker;const F=o.marker||{},$=F.symbol||W.symbol,it={};let ot=B(F.radius,W&&W.radius);return m&&(W=W.states[m],m=F.states&&F.states[m],ot=B(m&&m.radius,W&&W.radius,ot&&ot+(W&&W.radiusPlus||0))),o.hasImage=$&&$.indexOf("url")===0,o.hasImage&&(ot=0),o=o.pos(),C(ot)&&o&&(it.x=o[0]-ot,it.y=o[1]-ot,g.crisp&&(it.x=Math.floor(it.x))),ot&&(it.width=it.height=2*ot),it}pointAttribs(o,m){var g=this.options.marker,W=o&&o.options;const F=W&&W.marker||{};var $=W&&W.color,it=o&&o.color;const ot=o&&o.zone&&o.zone.color;let at=this.color;return o=B(F.lineWidth,g.lineWidth),W=1,at=$||ot||it||at,$=F.fillColor||g.fillColor||at,it=F.lineColor||g.lineColor||at,m=m||"normal",g=g.states[m]||{},m=F.states&&F.states[m]||{},o=B(m.lineWidth,g.lineWidth,o+B(m.lineWidthPlus,g.lineWidthPlus,0)),$=m.fillColor||g.fillColor||$,it=m.lineColor||g.lineColor||it,W=B(m.opacity,g.opacity,W),{stroke:it,"stroke-width":o,fill:$,opacity:W}}destroy(o){const m=this,g=m.chart,W=/AppleWebKit\/533/.test(v.navigator.userAgent),F=m.data||[];let $,it,ot,at;for(i(m,"destroy",{keepEventsForUpdate:o}),this.removeEvents(o),(m.axisTypes||[]).forEach(function(ht){(at=m[ht])&&at.series&&(h(at.series,m),at.isDirty=at.forceRedraw=!0)}),m.legendItem&&m.chart.legend.destroyItem(m),it=F.length;it--;)(ot=F[it])&&ot.destroy&&ot.destroy();m.clips&&m.clips.forEach(ht=>ht.destroy()),R.clearTimeout(m.animationTimeout),rt(m,function(ht,ut){ht instanceof z&&!ht.survive&&($=W&&ut==="group"?"hide":"destroy",ht[$]())}),g.hoverSeries===m&&(g.hoverSeries=void 0),h(g.series,m),g.orderItems("series"),rt(m,function(ht,ut){o&&ut==="hcEvents"||delete m[ut]})}applyZones(){const o=this,m=this.chart,g=m.renderer,W=this.zones,F=this.clips||[],$=this.graph,it=this.area,ot=Math.max(m.plotWidth,m.plotHeight),at=this[(this.zoneAxis||"y")+"Axis"],ht=m.inverted;let ut,E,T,tt,V,et,dt,ct,xt,yt,gt,mt=!1;W.length&&($||it)&&at&&typeof at.min<"u"?(V=at.reversed,et=at.horiz,$&&!this.showLine&&$.hide(),it&&it.hide(),tt=at.getExtremes(),W.forEach(function(Ct,kt){ut=V?et?m.plotWidth:0:et?0:at.toPixels(tt.min)||0,ut=b(B(E,ut),0,ot),E=b(Math.round(at.toPixels(B(Ct.value,tt.max),!0)||0),0,ot),mt&&(ut=E=at.toPixels(tt.max)),dt=Math.abs(ut-E),ct=Math.min(ut,E),xt=Math.max(ut,E),at.isXAxis?(T={x:ht?xt:ct,y:0,width:dt,height:ot},et||(T.x=m.plotHeight-T.x)):(T={x:0,y:ht?xt:ct,width:ot,height:dt},et&&(T.y=m.plotWidth-T.y)),F[kt]?F[kt].animate(T):F[kt]=g.clipRect(T),yt=o["zone-area-"+kt],gt=o["zone-graph-"+kt],$&&gt&&gt.clip(F[kt]),it&&yt&&yt.clip(F[kt]),mt=Ct.value>tt.max,o.resetZones&&E===0&&(E=void 0)}),this.clips=F):o.visible&&($&&$.show(),it&&it.show())}plotGroup(o,m,g,W,F){let $=this[o];const it=!$;return g={visibility:g,zIndex:W||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(g.opacity=this.opacity),it&&(this[o]=$=this.chart.renderer.g().add(F)),$.addClass("highcharts-"+m+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(a(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+($.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),$.attr(g)[it?"attr":"animate"](this.getPlotBox(m)),$}getPlotBox(o){let m=this.xAxis,g=this.yAxis;const W=this.chart;return o=W.inverted&&!W.polar&&m&&this.invertible!==!1&&o==="series",W.inverted&&(m=g,g=this.xAxis),{translateX:m?m.left:W.plotLeft,translateY:g?g.top:W.plotTop,rotation:o?90:0,rotationOriginX:o?(m.len-g.len)/2:0,rotationOriginY:o?(m.len+g.len)/2:0,scaleX:o?-1:1,scaleY:1}}removeEvents(o){o||s(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(m){m()}),this.eventsToUnbind.length=0)}render(){const o=this;var m=o.chart;const g=o.options,W=y(g.animation),F=o.visible?"inherit":"hidden",$=g.zIndex,it=o.hasRendered;m=m.seriesGroup;let ot=o.finishedAnimating?0:W.duration;i(this,"render"),o.plotGroup("group","series",F,$,m),o.markerGroup=o.plotGroup("markerGroup","markers",F,$,m),g.clip!==!1&&o.setClip(),o.animate&&ot&&o.animate(!0),o.drawGraph&&(o.drawGraph(),o.applyZones()),o.visible&&o.drawPoints(),o.drawDataLabels&&o.drawDataLabels(),o.redrawPoints&&o.redrawPoints(),o.drawTracker&&g.enableMouseTracking&&o.drawTracker(),o.animate&&ot&&o.animate(),it||(ot&&W.defer&&(ot+=W.defer),o.animationTimeout=N(function(){o.afterAnimate()},ot||0)),o.isDirty=!1,o.hasRendered=!0,i(o,"afterRender")}redraw(){const o=this.isDirty||this.isDirtyData;this.translate(),this.render(),o&&delete this.kdTree}searchPoint(o,m){const g=this.xAxis,W=this.yAxis,F=this.chart.inverted;return this.searchKDTree({clientX:F?g.len-o.chartY+g.pos:o.chartX-g.pos,plotY:F?W.len-o.chartX+W.pos:o.chartY-W.pos},m,o)}buildKDTree(o){function m(F,$,it){var ot=F&&F.length;let at;if(ot)return at=g.kdAxisArray[$%it],F.sort(function(ht,ut){return ht[at]-ut[at]}),ot=Math.floor(ot/2),{point:F[ot],left:m(F.slice(0,ot),$+1,it),right:m(F.slice(ot+1),$+1,it)}}this.buildingKdTree=!0;const g=this,W=-1<g.options.findNearestPointBy.indexOf("y")?2:1;delete g.kdTree,N(function(){g.kdTree=m(g.getValidPoints(null,!g.directTouch),W,W),g.buildingKdTree=!1},g.options.kdNow||o&&o.type==="touchstart"?0:1)}searchKDTree(o,m,g){function W(at,ht,ut,E){const T=ht.point;var tt=F.kdAxisArray[ut%E];let V=T;var et=a(at[$])&&a(T[$])?Math.pow(at[$]-T[$],2):null,dt=a(at[it])&&a(T[it])?Math.pow(at[it]-T[it],2):null;return dt=(et||0)+(dt||0),T.dist=a(dt)?Math.sqrt(dt):Number.MAX_VALUE,T.distX=a(et)?Math.sqrt(et):Number.MAX_VALUE,tt=at[tt]-T[tt],dt=0>tt?"left":"right",et=0>tt?"right":"left",ht[dt]&&(dt=W(at,ht[dt],ut+1,E),V=dt[ot]<V[ot]?dt:T),ht[et]&&Math.sqrt(tt*tt)<V[ot]&&(at=W(at,ht[et],ut+1,E),V=at[ot]<V[ot]?at:V),V}const F=this,$=this.kdAxisArray[0],it=this.kdAxisArray[1],ot=m?"distX":"dist";if(m=-1<F.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(g),this.kdTree)return W(o,this.kdTree,m,m)}pointPlacementToXValue(){const{options:{pointPlacement:o,pointRange:m},xAxis:g}=this;let W=o;return W==="between"&&(W=g.reversed?-.5:.5),C(W)?W*(m||g.pointRange):0}isPointInside(o){const{chart:m,xAxis:g,yAxis:W}=this;return typeof o.plotY<"u"&&typeof o.plotX<"u"&&0<=o.plotY&&o.plotY<=(W?W.len:m.plotHeight)&&0<=o.plotX&&o.plotX<=(g?g.len:m.plotWidth)}drawTracker(){const o=this,m=o.options,g=m.trackByArea,W=[].concat(g?o.areaPath:o.graphPath),F=o.chart,$=F.pointer,it=F.renderer,ot=F.options.tooltip.snap,at=o.tracker,ht=function(E){m.enableMouseTracking&&F.hoverSeries!==o&&o.onMouseOver()},ut="rgba(192,192,192,"+(x?1e-4:.002)+")";at?at.attr({d:W}):o.graph&&(o.tracker=it.path(W).attr({visibility:o.visible?"inherit":"hidden",zIndex:2}).addClass(g?"highcharts-tracker-area":"highcharts-tracker-line").add(o.group),F.styledMode||o.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:ut,fill:g?ut:"none","stroke-width":o.graph.strokeWidth()+(g?0:2*ot)}),[o.tracker,o.markerGroup,o.dataLabelsGroup].forEach(function(E){E&&(E.addClass("highcharts-tracker").on("mouseover",ht).on("mouseout",function(T){$.onTrackerMouseOut(T)}),m.cursor&&!F.styledMode&&E.css({cursor:m.cursor}),c)&&E.on("touchstart",ht)})),i(this,"afterDrawTracker")}addPoint(o,m,g,W,F){const $=this.options,it=this.data,ot=this.chart;var at=this.xAxis;at=at&&at.hasNames&&at.names;const ht=$.data,ut=this.xData;let E,T;m=B(m,!0);const tt={series:this};this.pointClass.prototype.applyOptions.apply(tt,[o]);const V=tt.x;if(T=ut.length,this.requireSorting&&V<ut[T-1])for(E=!0;T&&ut[T-1]>V;)T--;this.updateParallelArrays(tt,"splice",[T,0,0]),this.updateParallelArrays(tt,T),at&&tt.name&&(at[V]=tt.name),ht.splice(T,0,o),(E||this.processedData)&&(this.data.splice(T,0,null),this.processData()),$.legendType==="point"&&this.generatePoints(),g&&(it[0]&&it[0].remove?it[0].remove(!1):(it.shift(),this.updateParallelArrays(tt,"shift"),ht.shift())),F!==!1&&i(this,"addPoint",{point:tt}),this.isDirtyData=this.isDirty=!0,m&&ot.redraw(W)}removePoint(o,m,g){const W=this,F=W.data,$=F[o],it=W.points,ot=W.chart,at=function(){it&&it.length===F.length&&it.splice(o,1),F.splice(o,1),W.options.data.splice(o,1),W.updateParallelArrays($||{series:W},"splice",[o,1]),$&&$.destroy(),W.isDirty=!0,W.isDirtyData=!0,m&&ot.redraw()};S(g,ot),m=B(m,!0),$?$.firePointEvent("remove",null,at):at()}remove(o,m,g,W){function F(){$.destroy(W),it.isDirtyLegend=it.isDirtyBox=!0,it.linkSeries(W),B(o,!0)&&it.redraw(m)}const $=this,it=$.chart;g!==!1?i($,"remove",null,F):F()}update(o,m){o=u(o,this.userOptions),i(this,"update",{options:o});const g=this,W=g.chart;var F=g.userOptions;const $=g.initialType||g.type;var it=W.options.plotOptions;const ot=p[$].prototype;var at=g.finishedAnimating&&{animation:!1};const ht={};let ut,E=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],T=o.type||F.type||W.options.chart.type;const tt=!(this.hasDerivedData||T&&T!==this.type||typeof o.pointStart<"u"||typeof o.pointInterval<"u"||typeof o.relativeXValue<"u"||o.joinBy||o.mapData||g.hasOptionChanged("dataGrouping")||g.hasOptionChanged("pointStart")||g.hasOptionChanged("pointInterval")||g.hasOptionChanged("pointIntervalUnit")||g.hasOptionChanged("keys"));if(T=T||$,tt&&(E.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),o.visible!==!1&&E.push("area","graph"),g.parallelArrays.forEach(function(V){E.push(V+"Data")}),o.data&&(o.dataSorting&&e(g.options.dataSorting,o.dataSorting),this.setData(o.data,!1))),o=J(F,at,{index:typeof F.index>"u"?g.index:F.index,pointStart:B(it&&it.series&&it.series.pointStart,F.pointStart,g.xData[0])},!tt&&{data:g.options.data},o),tt&&o.data&&(o.data=g.options.data),E=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(E),E.forEach(function(V){E[V]=g[V],delete g[V]}),it=!1,p[T]){if(it=T!==g.type,g.remove(!1,!1,!1,!0),it)if(Object.setPrototypeOf)Object.setPrototypeOf(g,p[T].prototype);else{at=Object.hasOwnProperty.call(g,"hcEvents")&&g.hcEvents;for(ut in ot)g[ut]=void 0;e(g,p[T].prototype),at?g.hcEvents=at:delete g.hcEvents}}else d(17,!0,W,{missingModuleFor:T});if(E.forEach(function(V){g[V]=E[V]}),g.init(W,o),tt&&this.points){if(o=g.options,o.visible===!1)ht.graphic=1,ht.dataLabel=1;else if(!g._hasPointLabels){const{marker:V,dataLabels:et}=o;F=F.marker||{},!V||V.enabled!==!1&&F.symbol===V.symbol&&F.height===V.height&&F.width===V.width||(ht.graphic=1),et&&et.enabled===!1&&(ht.dataLabel=1)}for(const V of this.points)V&&V.series&&(V.resolveColor(),Object.keys(ht).length&&V.destroyElements(ht),o.showInLegend===!1&&V.legendItem&&W.legend.destroyItem(V))}g.initialType=$,W.linkSeries(),it&&g.linkedSeries.length&&(g.isDirtyData=!0),i(this,"afterUpdate"),B(m,!0)&&W.redraw(tt?void 0:!1)}setName(o){this.name=this.options.name=this.userOptions.name=o,this.chart.isDirtyLegend=!0}hasOptionChanged(o){const m=this.options[o],g=this.chart.options.plotOptions,W=this.userOptions[o];return W?m!==W:m!==B(g&&g[this.type]&&g[this.type][o],g&&g.series&&g.series[o],m)}onMouseOver(){const o=this.chart,m=o.hoverSeries;o.pointer.setHoverChartIndex(),m&&m!==this&&m.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),o.hoverSeries=this}onMouseOut(){const o=this.options,m=this.chart,g=m.tooltip,W=m.hoverPoint;m.hoverSeries=null,W&&W.onMouseOut(),this&&o.events.mouseOut&&i(this,"mouseOut"),!g||this.stickyTracking||g.shared&&!this.noSharedTooltip||g.hide(),m.series.forEach(function(F){F.setState("",!0)})}setState(o,m){const g=this;var W=g.options;const F=g.graph,$=W.inactiveOtherPoints,it=W.states,ot=B(it[o||"normal"]&&it[o||"normal"].animation,g.chart.options.chart.animation);let at=W.lineWidth,ht=0,ut=W.opacity;if(o=o||"",g.state!==o&&([g.group,g.markerGroup,g.dataLabelsGroup].forEach(function(E){E&&(g.state&&E.removeClass("highcharts-series-"+g.state),o&&E.addClass("highcharts-series-"+o))}),g.state=o,!g.chart.styledMode)){if(it[o]&&it[o].enabled===!1)return;if(o&&(at=it[o].lineWidth||at+(it[o].lineWidthPlus||0),ut=B(it[o].opacity,ut)),F&&!F.dashstyle&&C(at))for(W={"stroke-width":at},F.animate(W,ot);g["zone-graph-"+ht];)g["zone-graph-"+ht].animate(W,ot),ht+=1;$||[g.group,g.markerGroup,g.dataLabelsGroup,g.labelBySeries].forEach(function(E){E&&E.animate({opacity:ut},ot)})}m&&$&&g.points&&g.setAllPointsToState(o||void 0)}setAllPointsToState(o){this.points.forEach(function(m){m.setState&&m.setState(o)})}setVisible(o,m){const g=this,W=g.chart,F=W.options.chart.ignoreHiddenSeries,$=g.visible,it=(g.visible=o=g.options.visible=g.userOptions.visible=typeof o>"u"?!$:o)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(ot){g[ot]&&g[ot][it]()}),(W.hoverSeries===g||(W.hoverPoint&&W.hoverPoint.series)===g)&&g.onMouseOut(),g.legendItem&&W.legend.colorizeItem(g,o),g.isDirty=!0,g.options.stacking&&W.series.forEach(function(ot){ot.options.stacking&&ot.visible&&(ot.isDirty=!0)}),g.linkedSeries.forEach(function(ot){ot.setVisible(o,!1)}),F&&(W.isDirtyBox=!0),i(g,it),m!==!1&&W.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(o){this.selected=o=this.options.selected=typeof o>"u"?!this.selected:o,this.checkbox&&(this.checkbox.checked=o),i(this,o?"select":"unselect")}shouldShowTooltip(o,m,g={}){return g.series=this,g.visiblePlotOnly=!0,this.chart.isInsidePlot(o,m,g)}drawLegendSymbol(o,m){var g;(g=Z[this.options.legendSymbol||"rectangle"])===null||g===void 0||g.call(this,o,m)}}return I.defaultOptions=U,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}),q(k,"Core/Chart/Chart.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Axis/Axis.js"],k["Core/Defaults.js"],k["Core/Templating.js"],k["Core/Foundation.js"],k["Core/Globals.js"],k["Core/Renderer/RendererRegistry.js"],k["Core/Series/Series.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Renderer/SVG/SVGRenderer.js"],k["Core/Time.js"],k["Core/Utilities.js"],k["Core/Renderer/HTML/AST.js"]],function(D,M,H,Q,Z,X,U,O,z,R,y,S,L){const{animate:j,animObject:c,setAnimation:x}=D,{defaultOptions:v,defaultTime:p}=H,{numberFormat:P}=Q,{registerEventOptions:w}=Z,{charts:b,doc:n,marginNames:a,svg:u,win:h}=X,{seriesTypes:d}=z,{addEvent:e,attr:t,createElement:i,css:l,defined:f,diffObjects:_,discardElement:r,erase:C,error:G,extend:J,find:rt,fireEvent:B,getStyle:s,isArray:A,isNumber:N,isObject:I,isString:K,merge:o,objectEach:m,pick:g,pInt:W,relativeLength:F,removeEvent:$,splat:it,syncTimeout:ot,uniqueKey:at}=S;class ht{static chart(E,T,tt){return new ht(E,T,tt)}constructor(E,T,tt){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(E,T,tt)}getArgs(E,T,tt){K(E)||E.nodeName?(this.renderTo=E,this.init(T,tt)):this.init(E,T)}setZoomOptions(){const E=this.options.chart,T=E.zooming;this.zooming=Object.assign(Object.assign({},T),{type:g(E.zoomType,T.type),key:g(E.zoomKey,T.key),pinchType:g(E.pinchType,T.pinchType),singleTouch:g(E.zoomBySingleTouch,T.singleTouch,!1),resetButton:o(T.resetButton,E.resetZoomButton)})}init(E,T){B(this,"init",{args:arguments},function(){const tt=o(v,E),V=tt.chart;this.userOptions=J({},E),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=T,this.isResizing=0,this.options=tt,this.axes=[],this.series=[],this.time=E.time&&Object.keys(E.time).length?new y(E.time):X.time,this.numberFormatter=V.numberFormatter||P,this.styledMode=V.styledMode,this.hasCartesianSeries=V.showAxes,this.index=b.length,b.push(this),X.chartCount++,w(this,V),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),B(this,"afterInit"),this.firstRender()})}initSeries(E){var T=this.options.chart;T=E.type||T.type;const tt=d[T];return tt||G(17,!0,this,{missingModuleFor:T}),T=new tt,typeof T.init=="function"&&T.init(this,E),T}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(E){E.points||E.data||!E.enabledDataSorting||E.setData(E.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(E,T){return E.linkedSeries.length||T.linkedSeries.length?T.linkedSeries.length-E.linkedSeries.length:0})}orderItems(E,T=0){const tt=this[E],V=this.options[E]=it(this.options[E]).slice();if(E=this.userOptions[E]=this.userOptions[E]?it(this.userOptions[E]).slice():[],this.hasRendered&&(V.splice(T),E.splice(T)),tt)for(let et=T,dt=tt.length;et<dt;++et)(T=tt[et])&&(T.index=et,T instanceof O&&(T.name=T.getName()),T.options.isInternal||(V[et]=T.options,E[et]=T.userOptions))}isInsidePlot(E,T,tt={}){const{inverted:V,plotBox:et,plotLeft:dt,plotTop:ct,scrollablePlotBox:xt}=this;var yt=0;let gt=0;tt.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:yt,scrollTop:gt}=this.scrollingContainer);const mt=tt.series,Ct=tt.visiblePlotOnly&&xt||et;var kt=tt.inverted?T:E;if(T=tt.inverted?E:T,E={x:kt,y:T,isInsidePlot:!0,options:tt},!tt.ignoreX){const bt=mt&&(V&&!this.polar?mt.yAxis:mt.xAxis)||{pos:dt,len:1/0};kt=tt.paneCoordinates?bt.pos+kt:dt+kt,kt>=Math.max(yt+dt,bt.pos)&&kt<=Math.min(yt+dt+Ct.width,bt.pos+bt.len)||(E.isInsidePlot=!1)}return!tt.ignoreY&&E.isInsidePlot&&(yt=!V&&tt.axis&&!tt.axis.isXAxis&&tt.axis||mt&&(V?mt.xAxis:mt.yAxis)||{pos:ct,len:1/0},tt=tt.paneCoordinates?yt.pos+T:ct+T,tt>=Math.max(gt+ct,yt.pos)&&tt<=Math.min(gt+ct+Ct.height,yt.pos+yt.len)||(E.isInsidePlot=!1)),B(this,"afterIsInsidePlot",E),E.isInsidePlot}redraw(E){B(this,"beforeRedraw");const T=this.hasCartesianSeries?this.axes:this.colorAxis||[],tt=this.series,V=this.pointer,et=this.legend,dt=this.userOptions.legend,ct=this.renderer,xt=ct.isHidden(),yt=[];let gt,mt,Ct=this.isDirtyBox,kt=this.isDirtyLegend,bt;for(ct.rootFontSize=ct.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),x(this.hasRendered?E:!1,this),xt&&this.temporaryDisplay(),this.layOutTitles(!1),E=tt.length;E--;)if(bt=tt[E],(bt.options.stacking||bt.options.centerInCategory)&&(mt=!0,bt.isDirty)){gt=!0;break}if(gt)for(E=tt.length;E--;)bt=tt[E],bt.options.stacking&&(bt.isDirty=!0);tt.forEach(function(Mt){Mt.isDirty&&(Mt.options.legendType==="point"?(typeof Mt.updateTotals=="function"&&Mt.updateTotals(),kt=!0):dt&&(dt.labelFormatter||dt.labelFormat)&&(kt=!0)),Mt.isDirtyData&&B(Mt,"updatedData")}),kt&&et&&et.options.enabled&&(et.render(),this.isDirtyLegend=!1),mt&&this.getStacks(),T.forEach(function(Mt){Mt.updateNames(),Mt.setScale()}),this.getMargins(),T.forEach(function(Mt){Mt.isDirty&&(Ct=!0)}),T.forEach(function(Mt){const _t=Mt.min+","+Mt.max;Mt.extKey!==_t&&(Mt.extKey=_t,yt.push(function(){B(Mt,"afterSetExtremes",J(Mt.eventArgs,Mt.getExtremes())),delete Mt.eventArgs})),(Ct||mt)&&Mt.redraw()}),Ct&&this.drawChartBox(),B(this,"predraw"),tt.forEach(function(Mt){(Ct||Mt.isDirty)&&Mt.visible&&Mt.redraw(),Mt.isDirtyData=!1}),V&&V.reset(!0),ct.draw(),B(this,"redraw"),B(this,"render"),xt&&this.temporaryDisplay(!0),yt.forEach(function(Mt){Mt.call()})}get(E){function T(et){return et.id===E||et.options&&et.options.id===E}const tt=this.series;let V=rt(this.axes,T)||rt(this.series,T);for(let et=0;!V&&et<tt.length;et++)V=rt(tt[et].points||[],T);return V}getAxes(){const E=this.options;B(this,"getAxes");for(const T of["xAxis","yAxis"]){const tt=E[T]=it(E[T]||{});for(const V of tt)new M(this,V,T)}B(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((E,T)=>(T.getPointsCollection().forEach(tt=>{g(tt.selectedStaging,tt.selected)&&E.push(tt)}),E),[])}getSelectedSeries(){return this.series.filter(function(E){return E.selected})}setTitle(E,T,tt){this.applyDescription("title",E),this.applyDescription("subtitle",T),this.applyDescription("caption",void 0),this.layOutTitles(tt)}applyDescription(E,T){const tt=this,V=this.options[E]=o(this.options[E],T);let et=this[E];et&&T&&(this[E]=et=et.destroy()),V&&!et&&(et=this.renderer.text(V.text,0,0,V.useHTML).attr({align:V.align,class:"highcharts-"+E,zIndex:V.zIndex||4}).add(),et.update=function(dt,ct){tt.applyDescription(E,dt),tt.layOutTitles(ct)},this.styledMode||et.css(J(E==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},V.style)),this[E]=et)}layOutTitles(E=!0){const T=[0,0,0],tt=this.renderer,V=this.spacingBox;["title","subtitle","caption"].forEach(function(dt){const ct=this[dt],xt=this.options[dt],yt=xt.verticalAlign||"top";if(dt=dt==="title"?yt==="top"?-3:0:yt==="top"?T[0]+2:0,ct){ct.css({width:(xt.width||V.width+(xt.widthAdjust||0))+"px"});const gt=tt.fontMetrics(ct).b,mt=Math.round(ct.getBBox(xt.useHTML).height);ct.align(J({y:yt==="bottom"?gt:dt+gt,height:mt},xt),!1,"spacingBox"),xt.floating||(yt==="top"?T[0]=Math.ceil(T[0]+mt):yt==="bottom"&&(T[2]=Math.ceil(T[2]+mt)))}},this),T[0]&&(this.options.title.verticalAlign||"top")==="top"&&(T[0]+=this.options.title.margin),T[2]&&this.options.caption.verticalAlign==="bottom"&&(T[2]+=this.options.caption.margin);const et=!this.titleOffset||this.titleOffset.join(",")!==T.join(",");this.titleOffset=T,B(this,"afterLayOutTitles"),!this.isDirtyBox&&et&&(this.isDirtyBox=this.isDirtyLegend=et,this.hasRendered&&E&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:s(this.renderTo,"width",!0)||0,height:s(this.renderTo,"height",!0)||0}}getChartSize(){var E=this.options.chart;const T=E.width;E=E.height;const tt=this.getContainerBox();this.chartWidth=Math.max(0,T||tt.width||600),this.chartHeight=Math.max(0,F(E,this.chartWidth)||(1<tt.height?tt.height:400)),this.containerBox=tt}temporaryDisplay(E){let T=this.renderTo;if(E)for(;T&&T.style;)T.hcOrigStyle&&(l(T,T.hcOrigStyle),delete T.hcOrigStyle),T.hcOrigDetached&&(n.body.removeChild(T),T.hcOrigDetached=!1),T=T.parentNode;else for(;T&&T.style&&(n.body.contains(T)||T.parentNode||(T.hcOrigDetached=!0,n.body.appendChild(T)),(s(T,"display",!1)==="none"||T.hcOricDetached)&&(T.hcOrigStyle={display:T.style.display,height:T.style.height,overflow:T.style.overflow},E={display:"block",overflow:"hidden"},T!==this.renderTo&&(E.height=0),l(T,E),T.offsetWidth||T.style.setProperty("display","block","important")),T=T.parentNode,T!==n.body););}setClassName(E){this.container.className="highcharts-container "+(E||"")}getContainer(){const E=this.options,T=E.chart;var tt=at();let V,et=this.renderTo;et||(this.renderTo=et=T.renderTo),K(et)&&(this.renderTo=et=n.getElementById(et)),et||G(13,!0,this);var dt=W(t(et,"data-highcharts-chart"));N(dt)&&b[dt]&&b[dt].hasRendered&&b[dt].destroy(),t(et,"data-highcharts-chart",this.index),et.innerHTML=L.emptyHTML,T.skipClone||et.offsetWidth||this.temporaryDisplay(),this.getChartSize(),dt=this.chartWidth;const ct=this.chartHeight;if(l(et,{overflow:"hidden"}),this.styledMode||(V=J({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"},T.style||{})),this.container=tt=i("div",{id:tt},V,et),this._cursor=tt.style.cursor,this.renderer=new(T.renderer||!u?U.getRendererType(T.renderer):R)(tt,dt,ct,void 0,T.forExport,E.exporting&&E.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),x(void 0,this),this.setClassName(T.className),this.styledMode)for(const xt in E.defs)this.renderer.definition(E.defs[xt]);else this.renderer.setStyle(T.style);this.renderer.chartIndex=this.index,B(this,"afterGetContainer")}getMargins(E){const{spacing:T,margin:tt,titleOffset:V}=this;this.resetMargins(),V[0]&&!f(tt[0])&&(this.plotTop=Math.max(this.plotTop,V[0]+T[0])),V[2]&&!f(tt[2])&&(this.marginBottom=Math.max(this.marginBottom,V[2]+T[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(tt,T),B(this,"getMargins"),E||this.getAxisMargins()}getAxisMargins(){const E=this,T=E.axisOffset=[0,0,0,0],tt=E.colorAxis,V=E.margin,et=function(dt){dt.forEach(function(ct){ct.visible&&ct.getOffset()})};E.hasCartesianSeries?et(E.axes):tt&&tt.length&&et(tt),a.forEach(function(dt,ct){f(V[ct])||(E[dt]+=T[ct])}),E.setChartSize()}getOptions(){return _(this.userOptions,v)}reflow(E){const T=this;var tt=T.options.chart;tt=f(tt.width)&&f(tt.height);const V=T.containerBox,et=T.getContainerBox();delete T.pointer.chartPosition,!tt&&!T.isPrinting&&V&&et.width&&((et.width!==V.width||et.height!==V.height)&&(S.clearTimeout(T.reflowTimeout),T.reflowTimeout=ot(function(){T.container&&T.setSize(void 0,void 0,!1)},E?100:0)),T.containerBox=et)}setReflow(){const E=this;var T=tt=>{var V;!((V=E.options)===null||V===void 0)&&V.chart.reflow&&E.hasLoaded&&E.reflow(tt)};typeof ResizeObserver=="function"?new ResizeObserver(T).observe(E.renderTo):(T=e(h,"resize",T),e(this,"destroy",T))}setSize(E,T,tt){const V=this,et=V.renderer;V.isResizing+=1,x(tt,V),tt=et.globalAnimation,V.oldChartHeight=V.chartHeight,V.oldChartWidth=V.chartWidth,typeof E<"u"&&(V.options.chart.width=E),typeof T<"u"&&(V.options.chart.height=T),V.getChartSize(),V.styledMode||(tt?j:l)(V.container,{width:V.chartWidth+"px",height:V.chartHeight+"px"},tt),V.setChartSize(!0),et.setSize(V.chartWidth,V.chartHeight,tt),V.axes.forEach(function(dt){dt.isDirty=!0,dt.setScale()}),V.isDirtyLegend=!0,V.isDirtyBox=!0,V.layOutTitles(),V.getMargins(),V.redraw(tt),V.oldChartHeight=null,B(V,"resize"),ot(function(){V&&B(V,"endResize",null,function(){--V.isResizing})},c(tt).duration)}setChartSize(E){var T=this.inverted;const tt=this.renderer;var V=this.chartWidth,et=this.chartHeight;const dt=this.options.chart,ct=this.spacing,xt=this.clipOffset;let yt,gt,mt,Ct;this.plotLeft=yt=Math.round(this.plotLeft),this.plotTop=gt=Math.round(this.plotTop),this.plotWidth=mt=Math.max(0,Math.round(V-yt-this.marginRight)),this.plotHeight=Ct=Math.max(0,Math.round(et-gt-this.marginBottom)),this.plotSizeX=T?Ct:mt,this.plotSizeY=T?mt:Ct,this.plotBorderWidth=dt.plotBorderWidth||0,this.spacingBox=tt.spacingBox={x:ct[3],y:ct[0],width:V-ct[3]-ct[1],height:et-ct[0]-ct[2]},this.plotBox=tt.plotBox={x:yt,y:gt,width:mt,height:Ct},T=2*Math.floor(this.plotBorderWidth/2),V=Math.ceil(Math.max(T,xt[3])/2),et=Math.ceil(Math.max(T,xt[0])/2),this.clipBox={x:V,y:et,width:Math.floor(this.plotSizeX-Math.max(T,xt[1])/2-V),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(T,xt[2])/2-et))},E||(this.axes.forEach(function(kt){kt.setAxisSize(),kt.setAxisTranslation()}),tt.alignElements()),B(this,"afterSetChartSize",{skipAxes:E})}resetMargins(){B(this,"resetMargins");const E=this,T=E.options.chart;["margin","spacing"].forEach(function(tt){const V=T[tt],et=I(V)?V:[V,V,V,V];["Top","Right","Bottom","Left"].forEach(function(dt,ct){E[tt][ct]=g(T[tt+dt],et[ct])})}),a.forEach(function(tt,V){E[tt]=g(E.margin[V],E.spacing[V])}),E.axisOffset=[0,0,0,0],E.clipOffset=[0,0,0,0]}drawChartBox(){const E=this.options.chart,T=this.renderer,tt=this.chartWidth,V=this.chartHeight,et=this.styledMode,dt=this.plotBGImage;var ct=E.backgroundColor;const xt=E.plotBackgroundColor,yt=E.plotBackgroundImage,gt=this.plotLeft,mt=this.plotTop,Ct=this.plotWidth,kt=this.plotHeight,bt=this.plotBox,Mt=this.clipRect,_t=this.clipBox;let At=this.chartBackground,Rt=this.plotBackground,$t=this.plotBorder,Lt,Ft,Bt="animate";At||(this.chartBackground=At=T.rect().addClass("highcharts-background").add(),Bt="attr"),et?Lt=Ft=At.strokeWidth():(Lt=E.borderWidth||0,Ft=Lt+(E.shadow?8:0),ct={fill:ct||"none"},(Lt||At["stroke-width"])&&(ct.stroke=E.borderColor,ct["stroke-width"]=Lt),At.attr(ct).shadow(E.shadow)),At[Bt]({x:Ft/2,y:Ft/2,width:tt-Ft-Lt%2,height:V-Ft-Lt%2,r:E.borderRadius}),Bt="animate",Rt||(Bt="attr",this.plotBackground=Rt=T.rect().addClass("highcharts-plot-background").add()),Rt[Bt](bt),et||(Rt.attr({fill:xt||"none"}).shadow(E.plotShadow),yt&&(dt?(yt!==dt.attr("href")&&dt.attr("href",yt),dt.animate(bt)):this.plotBGImage=T.image(yt,gt,mt,Ct,kt).add())),Mt?Mt.animate({width:_t.width,height:_t.height}):this.clipRect=T.clipRect(_t),Bt="animate",$t||(Bt="attr",this.plotBorder=$t=T.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),et||$t.attr({stroke:E.plotBorderColor,"stroke-width":E.plotBorderWidth||0,fill:"none"}),$t[Bt]($t.crisp({x:gt,y:mt,width:Ct,height:kt},-$t.strokeWidth())),this.isDirtyBox=!1,B(this,"afterDrawChartBox")}propFromSeries(){const E=this,T=E.options.chart,tt=E.options.series;let V,et,dt;["inverted","angular","polar"].forEach(function(ct){for(et=d[T.type],dt=T[ct]||et&&et.prototype[ct],V=tt&&tt.length;!dt&&V--;)(et=d[tt[V].type])&&et.prototype[ct]&&(dt=!0);E[ct]=dt})}linkSeries(E){const T=this,tt=T.series;tt.forEach(function(V){V.linkedSeries.length=0}),tt.forEach(function(V){let et=V.options.linkedTo;K(et)&&(et=et===":previous"?T.series[V.index-1]:T.get(et))&&et.linkedParent!==V&&(et.linkedSeries.push(V),V.linkedParent=et,et.enabledDataSorting&&V.setDataSortingOptions(),V.visible=g(V.options.visible,et.options.visible,V.visible))}),B(this,"afterLinkSeries",{isUpdating:E})}renderSeries(){this.series.forEach(function(E){E.translate(),E.render()})}render(){const E=this.axes,T=this.colorAxis,tt=this.renderer,V=function(gt){gt.forEach(function(mt){mt.visible&&mt.render()})};let et=0;this.setTitle(),B(this,"beforeMargins"),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize();const dt=this.plotWidth;E.some(function(gt){if(gt.horiz&&gt.visible&&gt.options.labels.enabled&&gt.series.length)return et=21,!0});const ct=this.plotHeight=Math.max(this.plotHeight-et,0);E.forEach(function(gt){gt.setScale()}),this.getAxisMargins();const xt=1.1<dt/this.plotWidth,yt=1.05<ct/this.plotHeight;(xt||yt)&&(E.forEach(function(gt){(gt.horiz&&xt||!gt.horiz&&yt)&&gt.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?V(E):T&&T.length&&V(T),this.seriesGroup||(this.seriesGroup=tt.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(E){const T=this,tt=o(!0,this.options.credits,E);tt.enabled&&!this.credits&&(this.credits=this.renderer.text(tt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){tt.href&&(h.location.href=tt.href)}).attr({align:tt.position.align,zIndex:8}),T.styledMode||this.credits.css(tt.style),this.credits.add().align(tt.position),this.credits.update=function(V){T.credits=T.credits.destroy(),T.addCredits(V)})}destroy(){const E=this,T=E.axes,tt=E.series,V=E.container,et=V&&V.parentNode;let dt;for(B(E,"destroy"),E.renderer.forExport?C(b,E):b[E.index]=void 0,X.chartCount--,E.renderTo.removeAttribute("data-highcharts-chart"),$(E),dt=T.length;dt--;)T[dt]=T[dt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),dt=tt.length;dt--;)tt[dt]=tt[dt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ct){const xt=E[ct];xt&&xt.destroy&&(E[ct]=xt.destroy())}),V&&(V.innerHTML=L.emptyHTML,$(V),et&&r(V)),m(E,function(ct,xt){delete E[xt]})}firstRender(){const E=this,T=E.options;E.getContainer(),E.resetMargins(),E.setChartSize(),E.propFromSeries(),E.getAxes();const tt=A(T.series)?T.series:[];T.series=[],tt.forEach(function(V){E.initSeries(V)}),E.linkSeries(),E.setSeriesData(),B(E,"beforeRender"),E.render(),E.pointer.getChartPosition(),!E.renderer.imgCount&&!E.hasLoaded&&E.onload(),E.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(E){E&&typeof this.index<"u"&&E.apply(this,[this])},this),B(this,"load"),B(this,"render"),f(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){const{options:E,title:T}=this;E&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(T&&T.element.textContent||"").replace(/</g,"&lt;")}),E.accessibility&&E.accessibility.enabled===!1||G('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(E,T,tt){const V=this;let et;return E&&(T=g(T,!0),B(V,"addSeries",{options:E},function(){et=V.initSeries(E),V.isDirtyLegend=!0,V.linkSeries(),et.enabledDataSorting&&et.setData(E.data,!1),B(V,"afterAddSeries",{series:et}),T&&V.redraw(tt)})),et}addAxis(E,T,tt,V){return this.createAxis(T?"xAxis":"yAxis",{axis:E,redraw:tt,animation:V})}addColorAxis(E,T,tt){return this.createAxis("colorAxis",{axis:E,redraw:T,animation:tt})}createAxis(E,T){return E=new M(this,T.axis,E),g(T.redraw,!0)&&this.redraw(T.animation),E}showLoading(E){const T=this,tt=T.options,V=tt.loading,et=function(){dt&&l(dt,{left:T.plotLeft+"px",top:T.plotTop+"px",width:T.plotWidth+"px",height:T.plotHeight+"px"})};let dt=T.loadingDiv,ct=T.loadingSpan;dt||(T.loadingDiv=dt=i("div",{className:"highcharts-loading highcharts-loading-hidden"},null,T.container)),ct||(T.loadingSpan=ct=i("span",{className:"highcharts-loading-inner"},null,dt),e(T,"redraw",et)),dt.className="highcharts-loading",L.setElementHTML(ct,g(E,tt.lang.loading,"")),T.styledMode||(l(dt,J(V.style,{zIndex:10})),l(ct,V.labelStyle),T.loadingShown||(l(dt,{opacity:0,display:""}),j(dt,{opacity:V.style.opacity||.5},{duration:V.showDuration||0}))),T.loadingShown=!0,et()}hideLoading(){const E=this.options,T=this.loadingDiv;T&&(T.className="highcharts-loading highcharts-loading-hidden",this.styledMode||j(T,{opacity:0},{duration:E.loading.hideDuration||100,complete:function(){l(T,{display:"none"})}})),this.loadingShown=!1}update(E,T,tt,V){const et=this,dt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ct=E.isResponsiveOptions,xt=[];let yt,gt;B(et,"update",{options:E}),ct||et.setResponsive(!1,!0),E=_(E,et.options),et.userOptions=o(et.userOptions,E);var mt=E.chart;if(mt){if(o(!0,et.options.chart,mt),this.setZoomOptions(),"className"in mt&&et.setClassName(mt.className),"inverted"in mt||"polar"in mt||"type"in mt){et.propFromSeries();var Ct=!0}"alignTicks"in mt&&(Ct=!0),"events"in mt&&w(this,mt),m(mt,function(kt,bt){et.propsRequireUpdateSeries.indexOf("chart."+bt)!==-1&&(yt=!0),et.propsRequireDirtyBox.indexOf(bt)!==-1&&(et.isDirtyBox=!0),et.propsRequireReflow.indexOf(bt)!==-1&&(ct?et.isDirtyBox=!0:gt=!0)}),!et.styledMode&&mt.style&&et.renderer.setStyle(et.options.chart.style||{})}!et.styledMode&&E.colors&&(this.options.colors=E.colors),E.time&&(this.time===p&&(this.time=new y(E.time)),o(!0,et.options.time,E.time)),m(E,function(kt,bt){et[bt]&&typeof et[bt].update=="function"?et[bt].update(kt,!1):typeof et[dt[bt]]=="function"?et[dt[bt]](kt):bt!=="colors"&&et.collectionsWithUpdate.indexOf(bt)===-1&&o(!0,et.options[bt],E[bt]),bt!=="chart"&&et.propsRequireUpdateSeries.indexOf(bt)!==-1&&(yt=!0)}),this.collectionsWithUpdate.forEach(function(kt){E[kt]&&(it(E[kt]).forEach(function(bt,Mt){const _t=f(bt.id);let At;_t&&(At=et.get(bt.id)),!At&&et[kt]&&(At=et[kt][g(bt.index,Mt)])&&(_t&&f(At.options.id)||At.options.isInternal)&&(At=void 0),At&&At.coll===kt&&(At.update(bt,!1),tt&&(At.touched=!0)),!At&&tt&&et.collectionsWithInit[kt]&&(et.collectionsWithInit[kt][0].apply(et,[bt].concat(et.collectionsWithInit[kt][1]||[]).concat([!1])).touched=!0)}),tt&&et[kt].forEach(function(bt){bt.touched||bt.options.isInternal?delete bt.touched:xt.push(bt)}))}),xt.forEach(function(kt){kt.chart&&kt.remove&&kt.remove(!1)}),Ct&&et.axes.forEach(function(kt){kt.update({},!1)}),yt&&et.getSeriesOrderByLinks().forEach(function(kt){kt.chart&&kt.update({},!1)},this),Ct=mt&&mt.width,mt=mt&&(K(mt.height)?F(mt.height,Ct||et.chartWidth):mt.height),gt||N(Ct)&&Ct!==et.chartWidth||N(mt)&&mt!==et.chartHeight?et.setSize(Ct,mt,V):g(T,!0)&&et.redraw(V),B(et,"afterUpdate",{options:E,redraw:T,animation:V})}setSubtitle(E,T){this.applyDescription("subtitle",E),this.layOutTitles(T)}setCaption(E,T){this.applyDescription("caption",E),this.layOutTitles(T)}showResetZoom(){function E(){T.zoomOut()}const T=this,tt=v.lang,V=T.zooming.resetButton,et=V.theme,dt=V.relativeTo==="chart"||V.relativeTo==="spacingBox"?null:"scrollablePlotBox";B(this,"beforeShowResetZoom",null,function(){T.resetZoomButton=T.renderer.button(tt.resetZoom,null,null,E,et).attr({align:V.position.align,title:tt.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(V.position,!1,dt)}),B(this,"afterShowResetZoom")}zoomOut(){B(this,"selection",{resetSelection:!0},this.zoom)}zoom(E){const T=this,tt=T.pointer;let V=!1,et;!E||E.resetSelection?(T.axes.forEach(function(ct){et=ct.zoom()}),tt.initiated=!1):E.xAxis.concat(E.yAxis).forEach(function(ct){const xt=ct.axis;(tt[xt.isXAxis?"zoomX":"zoomY"]&&f(tt.mouseDownX)&&f(tt.mouseDownY)&&T.isInsidePlot(tt.mouseDownX-T.plotLeft,tt.mouseDownY-T.plotTop,{axis:xt})||!f(T.inverted?tt.mouseDownX:tt.mouseDownY))&&(et=xt.zoom(ct.min,ct.max),xt.displayBtn&&(V=!0))});const dt=T.resetZoomButton;V&&!dt?T.showResetZoom():!V&&I(dt)&&(T.resetZoomButton=dt.destroy()),et&&T.redraw(g(T.options.chart.animation,E&&E.animation,100>T.pointCount))}pan(E,T){const tt=this,V=tt.hoverPoints;T=typeof T=="object"?T:{enabled:T,type:"x"};const et=tt.options.chart;et&&et.panning&&(et.panning=T);const dt=T.type;let ct;B(this,"pan",{originalEvent:E},function(){V&&V.forEach(function(gt){gt.setState()});let xt=tt.xAxis;dt==="xy"?xt=xt.concat(tt.yAxis):dt==="y"&&(xt=tt.yAxis);const yt={};xt.forEach(function(gt){if(gt.options.panningEnabled&&!gt.options.isInternal){var mt=gt.horiz,Ct=E[mt?"chartX":"chartY"];mt=mt?"mouseDownX":"mouseDownY";var kt=tt[mt],bt=gt.minPointOffset||0,Mt=gt.reversed&&!tt.inverted||!gt.reversed&&tt.inverted?-1:1,_t=gt.getExtremes(),At=gt.toValue(kt-Ct,!0)+bt*Mt,Rt=gt.toValue(kt+gt.len-Ct,!0)-(bt*Mt||gt.isXAxis&&gt.pointRangePadding||0),$t=Rt<At;Mt=gt.hasVerticalPanning(),kt=$t?Rt:At,At=$t?At:Rt;var Lt=gt.panningState;!Mt||gt.isXAxis||Lt&&!Lt.isDirty||gt.series.forEach(function(Ft){var Bt=Ft.getProcessedData(!0);Bt=Ft.getExtremes(Bt.yData,!0),Lt||(Lt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),N(Bt.dataMin)&&N(Bt.dataMax)&&(Lt.startMin=Math.min(g(Ft.options.threshold,1/0),Bt.dataMin,Lt.startMin),Lt.startMax=Math.max(g(Ft.options.threshold,-1/0),Bt.dataMax,Lt.startMax))}),Mt=Math.min(g(Lt&&Lt.startMin,_t.dataMin),bt?_t.min:gt.toValue(gt.toPixels(_t.min)-gt.minPixelPadding)),Rt=Math.max(g(Lt&&Lt.startMax,_t.dataMax),bt?_t.max:gt.toValue(gt.toPixels(_t.max)+gt.minPixelPadding)),gt.panningState=Lt,gt.isOrdinal||(bt=Mt-kt,0<bt&&(At+=bt,kt=Mt),bt=At-Rt,0<bt&&(At=Rt,kt-=bt),gt.series.length&&kt!==_t.min&&At!==_t.max&&kt>=Mt&&At<=Rt&&(gt.setExtremes(kt,At,!1,!1,{trigger:"pan"}),!tt.resetZoomButton&&kt!==Mt&&At!==Rt&&dt.match("y")&&(tt.showResetZoom(),gt.displayBtn=!1),ct=!0),yt[mt]=Ct)}}),m(yt,(gt,mt)=>{tt[mt]=gt}),ct&&tt.redraw(!1),l(tt.container,{cursor:"move"})})}}return J(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}),q(k,"Extensions/ScrollablePlotArea.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Axis/Axis.js"],k["Core/Chart/Chart.js"],k["Core/Series/Series.js"],k["Core/Renderer/RendererRegistry.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z,X){const{stop:U}=D,{addEvent:O,createElement:z,defined:R,merge:y,pick:S}=X;O(H,"afterSetChartSize",function(L){var j=this.options.chart.scrollablePlotArea,c=j&&j.minWidth;j=j&&j.minHeight;let x;this.renderer.forExport||(c?(this.scrollablePixelsX=c=Math.max(0,c-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=y(this.plotBox),this.plotBox.width=this.plotWidth+=c,this.inverted?this.clipBox.height+=c:this.clipBox.width+=c,x={1:{name:"right",value:c}}):j&&(this.scrollablePixelsY=c=Math.max(0,j-this.chartHeight),R(c)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=y(this.plotBox),this.plotBox.height=this.plotHeight+=c,this.inverted?this.clipBox.width+=c:this.clipBox.height+=c,x={2:{name:"bottom",value:c}})),x&&!L.skipAxes&&this.axes.forEach(function(v){x[v.side]?v.getPlotLinePath=function(){let p=x[v.side].name,P=this[p],w;return this[p]=P-x[v.side].value,w=M.prototype.getPlotLinePath.apply(this,arguments),this[p]=P,w}:(v.setAxisSize(),v.setAxisTranslation())}))}),O(H,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),H.prototype.setUpScrolling=function(){const L={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(L.overflowX="auto"),this.scrollablePixelsY&&(L.overflowY="auto"),this.scrollingParent=z("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=z("div",{className:"highcharts-scrolling"},L,this.scrollingParent);let j;O(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(j=this.hoverPoint),this.pointer.runPointActions(void 0,j,!0))}),this.innerContainer=z("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},H.prototype.moveFixedElements=function(){let L=this.container,j=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(" "),x;this.scrollablePixelsX&&!this.inverted?x=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?x=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(x=".highcharts-yaxis"),x&&c.push(`${x}:not(.highcharts-radial-axis)`,`${x}-labels:not(.highcharts-radial-axis-labels)`),c.forEach(function(v){[].forEach.call(L.querySelectorAll(v),function(p){(p.namespaceURI===j.SVG_NS?j.box:j.box.parentNode).appendChild(p),p.style.pointerEvents="auto"})})},H.prototype.applyFixed=function(){var L=!this.fixedDiv,j=this.options.chart,c=j.scrollablePlotArea,x=Z.getRendererType();L?(this.fixedDiv=z("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(j.style&&j.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=j=new x(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=j.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":S(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||L)&&(this.scrollableDirty=!1,this.moveFixedElements()),j=this.chartWidth+(this.scrollablePixelsX||0),x=this.chartHeight+(this.scrollablePixelsY||0),U(this.container),this.container.style.width=j+"px",this.container.style.height=x+"px",this.renderer.boxWrapper.attr({width:j,height:x,viewBox:[0,0,j,x].join(" ")}),this.chartBackground.attr({width:j,height:x}),this.scrollingContainer.style.height=this.chartHeight+"px",L&&(c.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*c.scrollPositionX),c.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*c.scrollPositionY)),x=this.axisOffset,L=this.plotTop-x[0]-1,c=this.plotLeft-x[3]-1,j=this.plotTop+this.plotHeight+x[2]+1,x=this.plotLeft+this.plotWidth+x[1]+1;let v=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),p=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);L=this.scrollablePixelsX?[["M",0,L],["L",this.plotLeft-1,L],["L",this.plotLeft-1,j],["L",0,j],["Z"],["M",v,L],["L",this.chartWidth,L],["L",this.chartWidth,j],["L",v,j],["Z"]]:this.scrollablePixelsY?[["M",c,0],["L",c,this.plotTop-1],["L",x,this.plotTop-1],["L",x,0],["Z"],["M",c,p],["L",c,this.chartHeight],["L",x,this.chartHeight],["L",x,p],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:L})},O(M,"afterInit",function(){this.chart.scrollableDirty=!0}),O(Q,"show",function(){this.chart.scrollableDirty=!0})}),q(k,"Core/Axis/Stacking/StackItem.js",[k["Core/Templating.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Utilities.js"]],function(D,M,H){const{format:Q}=D,{series:Z}=M,{destroyObjectProperties:X,fireEvent:U,isNumber:O,pick:z}=H;class R{constructor(S,L,j,c,x){const v=S.chart.inverted,p=S.reversed;this.axis=S,S=this.isNegative=!!j!=!!p,this.options=L=L||{},this.x=c,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=x,this.rightCliff=this.leftCliff=0,this.alignOptions={align:L.align||(v?S?"left":"right":"center"),verticalAlign:L.verticalAlign||(v?"middle":S?"bottom":"top"),y:L.y,x:L.x},this.textAlign=L.textAlign||(v?S?"right":"left":"center")}destroy(){X(this,this.axis)}render(S){const L=this.axis.chart,j=this.options;var c=j.format;c=c?Q(c,this,L):j.formatter.call(this),this.label?this.label.attr({text:c,visibility:"hidden"}):(this.label=L.renderer.label(c,null,void 0,j.shape,void 0,void 0,j.useHTML,!1,"stack-labels"),c={r:j.borderRadius||0,text:c,padding:z(j.padding,5),visibility:"hidden"},L.styledMode||(c.fill=j.backgroundColor,c.stroke=j.borderColor,c["stroke-width"]=j.borderWidth,this.label.css(j.style||{})),this.label.attr(c),this.label.added||this.label.add(S)),this.label.labelrank=L.plotSizeY,U(this,"afterRender")}setOffset(S,L,j,c,x,v){const{alignOptions:p,axis:P,label:w,options:b,textAlign:n}=this,a=P.chart;j=this.getStackBox({xOffset:S,width:L,boxBottom:j,boxTop:c,defaultX:x,xAxis:v});var{verticalAlign:u}=p;if(w&&j){c=w.getBBox(),x=w.padding,v=z(b.overflow,"justify")==="justify",p.x=b.x||0,p.y=b.y||0;const{x:h,y:d}=this.adjustStackPosition({labelBox:c,verticalAlign:u,textAlign:n});j.x-=h,j.y-=d,w.align(p,!1,j),(u=a.isInsidePlot(w.alignAttr.x+p.x+h,w.alignAttr.y+p.y+d))||(v=!1),v&&Z.prototype.justifyDataLabel.call(P,w,p,w.alignAttr,c,j),w.attr({x:w.alignAttr.x,y:w.alignAttr.y,rotation:b.rotation,rotationOriginX:c.width/2,rotationOriginY:c.height/2}),z(!v&&b.crop,!0)&&(u=O(w.x)&&O(w.y)&&a.isInsidePlot(w.x-x+w.width,w.y)&&a.isInsidePlot(w.x+x,w.y)),w[u?"show":"hide"]()}U(this,"afterSetOffset",{xOffset:S,width:L})}adjustStackPosition({labelBox:S,verticalAlign:L,textAlign:j}){const c={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:S.width/2+S.width/2*c[j],y:S.height/2*c[L]}}getStackBox(S){var L=this.axis;const j=L.chart,{boxTop:c,defaultX:x,xOffset:v,width:p,boxBottom:P}=S;var w=L.stacking.usePercentage?100:z(c,this.total,0);w=L.toPixels(w),S=S.xAxis||j.xAxis[0];const b=z(x,S.translate(this.x))+v;L=L.toPixels(P||O(L.min)&&L.logarithmic&&L.logarithmic.lin2log(L.min)||0),L=Math.abs(w-L);const n=this.isNegative;return j.inverted?{x:(n?w:w-L)-j.plotLeft,y:S.height-b-p,width:L,height:p}:{x:b+S.transB-j.plotLeft,y:(n?w-L:w)-j.plotTop,width:p,height:L}}}return R}),q(k,"Core/Axis/Stacking/StackingAxis.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Axis/Axis.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Axis/Stacking/StackItem.js"],k["Core/Utilities.js"]],function(D,M,H,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 l=i.xAxis&&i.xAxis.options||{};!i.options.stacking||i.visible!==!0&&e.options.chart.ignoreHiddenSeries!==!1||(i.stackKey=[i.type,u(i.options.stack,""),t?l.top:l.left,t?l.height:l.width].join())})}function U(){const e=this.stacking;if(e){var t=e.stacks;a(t,function(i,l){P(i),t[l]=null}),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function O(){this.coll!=="yAxis"||this.stacking||(this.stacking=new h(this))}function z(e,t,i,l){return!p(e)||e.x!==t||l&&e.stackKey!==l?e={x:t,index:0,key:l,stackKey:l}:e.index++,e.key=[i,t,e.index].join(),e}function R(){const e=this,t=e.stackKey,i=e.yAxis.stacking.stacks,l=e.processedXData,f=e[e.options.stacking+"Stacker"];let _;f&&[t,"-"+t].forEach(r=>{let C=l.length,G;for(;C--;){var J=l[C];_=e.getStackIndicator(_,J,e.index,r),(G=(J=i[r]&&i[r][J])&&J.points[_.key])&&f.call(e,G,J,C)}})}function y(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 S(){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&&a(e.stacks,(t,i)=>{i.slice(-5)==="group"&&(a(t,l=>l.destroy()),delete e.stacks[i])})}function L(e){var t=this.chart;const i=e||this.options.stacking;if(i&&(this.visible===!0||t.options.chart.ignoreHiddenSeries===!1)){var l=this.processedXData,f=this.processedYData,_=[],r=f.length,C=this.options,G=C.threshold,J=u(C.startFromThreshold&&G,0);C=C.stack,e=e?`${this.type},${i}`:this.stackKey;var rt="-"+e,B=this.negStacks;t=i==="group"?t.yAxis[0]:this.yAxis;var s=t.stacking.stacks,A=t.stacking.oldStacks,N,I;for(t.stacking.stacksTouched+=1,I=0;I<r;I++){var K=l[I],o=f[I],m=this.getStackIndicator(m,K,this.index),g=m.key,W=(N=B&&o<(J?0:G))?rt:e;s[W]||(s[W]={}),s[W][K]||(A[W]&&A[W][K]?(s[W][K]=A[W][K],s[W][K].total=null):s[W][K]=new Q(t,t.options.stackLabels,!!N,K,C)),W=s[W][K],o!==null?(W.points[g]=W.points[this.index]=[u(W.cumulative,J)],p(W.cumulative)||(W.base=g),W.touched=t.stacking.stacksTouched,0<m.index&&this.singleStacks===!1&&(W.points[g][0]=W.points[this.index+","+K+",0"][0])):W.points[g]=W.points[this.index]=null,i==="percent"?(N=N?e:rt,B&&s[N]&&s[N][K]?(N=s[N][K],W.total=N.total=Math.max(N.total,W.total)+Math.abs(o)||0):W.total=v(W.total+(Math.abs(o)||0))):i==="group"?(b(o)&&(o=o[0]),o!==null&&(W.total=(W.total||0)+1)):W.total=v(W.total+(o||0)),W.cumulative=i==="group"?(W.total||1)-1:v(u(W.cumulative,J)+(o||0)),o!==null&&(W.points[g].push(W.cumulative),_[I]=W.cumulative,W.hasValidPoints=!0)}i==="percent"&&(t.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=_),t.stacking.oldStacks={}}}const{getDeferredAnimation:j}=D,{series:{prototype:c}}=H,{addEvent:x,correctFloat:v,defined:p,destroyObjectProperties:P,fireEvent:w,isArray:b,isNumber:n,objectEach:a,pick:u}=Z;class h{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){const t=this.axis,i=t.series,l=t.options.reversedStacks,f=i.length;let _,r;for(this.usePercentage=!1,r=f;r--;)_=i[l?r:f-r-1],_.setStackedPoints(),_.setGroupedPoints();for(r=0;r<f;r++)i[r].modifyStacks();w(t,"afterBuildStacks")}cleanStacks(){let t;this.oldStacks&&(t=this.stacks=this.oldStacks),a(t,function(i){a(i,function(l){l.cumulative=l.total})})}resetStacks(){a(this.stacks,t=>{a(t,(i,l)=>{n(i.touched)&&i.touched<this.stacksTouched?(i.destroy(),delete t[l]):(i.total=null,i.cumulative=null)})})}renderStackTotals(){var t=this.axis;const i=t.chart,l=i.renderer,f=this.stacks;t=j(i,t.options.stackLabels&&t.options.stackLabels.animation||!1);const _=this.stackTotalGroup=this.stackTotalGroup||l.g("stack-labels").attr({zIndex:6,opacity:0}).add();_.translate(i.plotLeft,i.plotTop),a(f,function(r){a(r,function(C){C.render(_)})}),_.animate({opacity:1},t)}}var d;return function(e){const t=[];e.compose=function(i,l,f){Z.pushUnique(t,i)&&(x(i,"init",O),x(i,"destroy",U)),Z.pushUnique(t,l)&&(l.prototype.getStacks=X),Z.pushUnique(t,f)&&(i=f.prototype,i.getStackIndicator=z,i.modifyStacks=R,i.percentStacker=y,i.setGroupedPoints=S,i.setStackedPoints=L)}}(d||(d={})),d}),q(k,"Series/Line/LineSeries.js",[k["Core/Series/Series.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Utilities.js"]],function(D,M,H){const{defined:Q,merge:Z}=H;class X extends D{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const O=this,z=this.options,R=(this.gappedPath||this.getGraphPath).call(this),y=this.chart.styledMode;let S=[["graph","highcharts-graph"]];y||S[0].push(z.lineColor||this.color||"#cccccc",z.dashStyle),S=O.getZonesGraphs(S),S.forEach(function(L,j){var c=L[0];let x=O[c];const v=x?"animate":"attr";x?(x.endX=O.preventGraphAnimation?null:R.xMap,x.animate({d:R})):R.length&&(O[c]=x=O.chart.renderer.path(R).addClass(L[1]).attr({zIndex:1}).add(O.group)),x&&!y&&(c={stroke:L[2],"stroke-width":z.lineWidth||0,fill:O.fillGraph&&O.color||"none"},L[3]?c.dashstyle=L[3]:z.linecap!=="square"&&(c["stroke-linecap"]=c["stroke-linejoin"]="round"),x[v](c).shadow(2>j&&z.shadow)),x&&(x.startX=R.xMap,x.isArea=R.isArea)})}getGraphPath(O,z,R){const y=this,S=y.options,L=[],j=[];let c,x=S.step;O=O||y.points;const v=O.reversed;return v&&O.reverse(),(x={right:1,center:2}[x]||x&&3)&&v&&(x=4-x),O=this.getValidPoints(O,!1,!(S.connectNulls&&!z&&!R)),O.forEach(function(p,P){const w=p.plotX,b=p.plotY,n=O[P-1],a=p.isNull||typeof b!="number";(p.leftCliff||n&&n.rightCliff)&&!R&&(c=!0),a&&!Q(z)&&0<P?c=!S.connectNulls:a&&!z?c=!0:(P===0||c?P=[["M",p.plotX,p.plotY]]:y.getPointSpline?P=[y.getPointSpline(O,p,P)]:x?(P=x===1?[["L",n.plotX,b]]:x===2?[["L",(n.plotX+w)/2,n.plotY],["L",(n.plotX+w)/2,b]]:[["L",w,n.plotY]],P.push(["L",w,b])):P=[["L",w,b]],j.push(p.x),x&&(j.push(p.x),x===2&&j.push(p.x)),L.push.apply(L,P),c=!1)}),L.xMap=j,y.graphPath=L}getZonesGraphs(O){return this.zones.forEach(function(z,R){R=["zone-graph-"+R,"highcharts-graph highcharts-zone-graph-"+R+" "+(z.className||"")],this.chart.styledMode||R.push(z.color||this.color,z.dashStyle||this.options.dashStyle),O.push(R)},this),O}}return X.defaultOptions=Z(D.defaultOptions,{legendSymbol:"lineMarker"}),M.registerSeriesType("line",X),X}),q(k,"Series/Area/AreaSeries.js",[k["Core/Color/Color.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Utilities.js"]],function(D,M,H){const{seriesTypes:{line:Q}}=M,{extend:Z,merge:X,objectEach:U,pick:O}=H;class z extends Q{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const y=this,S=this.areaPath,L=this.options,j=[["area","highcharts-area",this.color,L.fillColor]];this.zones.forEach(function(c,x){j.push(["zone-area-"+x,"highcharts-area highcharts-zone-area-"+x+" "+c.className,c.color||y.color,c.fillColor||L.fillColor])}),j.forEach(function(c){const x=c[0],v={};let p=y[x];const P=p?"animate":"attr";p?(p.endX=y.preventGraphAnimation?null:S.xMap,p.animate({d:S})):(v.zIndex=0,p=y[x]=y.chart.renderer.path(S).addClass(c[1]).add(y.group),p.isArea=!0),y.chart.styledMode||(c[3]?v.fill=c[3]:(v.fill=c[2],v["fill-opacity"]=O(L.fillOpacity,.75))),p[P](v),p.startX=S.xMap,p.shiftUnit=L.step?2:1})}getGraphPath(y){var S=Q.prototype.getGraphPath,L=this.options;const j=L.stacking,c=this.yAxis,x=[],v=[],p=this.index,P=c.stacking.stacks[this.stackKey],w=L.threshold,b=Math.round(c.getThreshold(L.threshold));L=O(L.connectNulls,j==="percent");var n=function(d,e,t){var i=y[d];d=j&&P[i.x].points[p];const l=i[t+"Null"]||0;t=i[t+"Cliff"]||0;let f,_;i=!0,t||l?(f=(l?d[0]:d[1])+t,_=d[0]+t,i=!!l):!j&&y[e]&&y[e].isNull&&(f=_=w),typeof f<"u"&&(v.push({plotX:a,plotY:f===null?b:c.getThreshold(f),isNull:i,isCliff:!0}),x.push({plotX:a,plotY:_===null?b:c.getThreshold(_),doCurve:!1}))};let a;y=y||this.points,j&&(y=this.getStackPoints(y));for(let d=0,e=y.length;d<e;++d){j||(y[d].leftCliff=y[d].rightCliff=y[d].leftNull=y[d].rightNull=void 0);var u=y[d].isNull;a=O(y[d].rectPlotX,y[d].plotX);var h=j?O(y[d].yBottom,b):b;(!u||L)&&(L||n(d,d-1,"left"),u&&!j&&L||(v.push(y[d]),x.push({x:d,plotX:a,plotY:h})),L||n(d,d+1,"right"))}return n=S.call(this,v,!0,!0),x.reversed=!0,u=S.call(this,x,!0,!0),(h=u[0])&&h[0]==="M"&&(u[0]=["L",h[1],h[2]]),u=n.concat(u),u.length&&u.push(["Z"]),S=S.call(this,v,!1,L),u.xMap=n.xMap,this.areaPath=u,S}getStackPoints(y){const S=this,L=[],j=[],c=this.xAxis,x=this.yAxis,v=x.stacking.stacks[this.stackKey],p={},P=x.series,w=P.length,b=x.options.reversedStacks?1:-1,n=P.indexOf(S);if(y=y||this.points,this.options.stacking){for(let u=0;u<y.length;u++)y[u].leftNull=y[u].rightNull=void 0,p[y[u].x]=y[u];U(v,function(u,h){u.total!==null&&j.push(h)}),j.sort(function(u,h){return u-h});const a=P.map(u=>u.visible);j.forEach(function(u,h){let d=0,e,t;if(p[u]&&!p[u].isNull)L.push(p[u]),[-1,1].forEach(function(i){const l=i===1?"rightNull":"leftNull",f=v[j[h+i]];let _=0;if(f){let r=n;for(;0<=r&&r<w;){const C=P[r].index;e=f.points[C],e||(C===S.index?p[u][l]=!0:a[r]&&(t=v[u].points[C])&&(_-=t[1]-t[0])),r+=b}}p[u][i===1?"rightCliff":"leftCliff"]=_});else{let i=n;for(;0<=i&&i<w;){if(e=v[u].points[P[i].index]){d=e[1];break}i+=b}d=O(d,0),d=x.translate(d,0,1,0,1),L.push({isNull:!0,plotX:c.translate(u,0,0,0,1),x:u,plotY:d,yBottom:d})}})}return L}}return z.defaultOptions=X(Q.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),Z(z.prototype,{singleStacks:!1}),M.registerSeriesType("area",z),z}),q(k,"Series/Spline/SplineSeries.js",[k["Core/Series/SeriesRegistry.js"],k["Core/Utilities.js"]],function(D,M){const{line:H}=D.seriesTypes,{merge:Q,pick:Z}=M;class X extends H{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(O,z,R){const y=z.plotX||0,S=z.plotY||0,L=O[R-1];R=O[R+1];let j,c,x;if(L&&!L.isNull&&L.doCurve!==!1&&!z.isCliff&&R&&!R.isNull&&R.doCurve!==!1&&!z.isCliff){O=L.plotY||0;var v=R.plotX||0;R=R.plotY||0;let p=0;j=(1.5*y+(L.plotX||0))/2.5,c=(1.5*S+O)/2.5,v=(1.5*y+v)/2.5,x=(1.5*S+R)/2.5,v!==j&&(p=(x-c)*(v-y)/(v-j)+S-x),c+=p,x+=p,c>O&&c>S?(c=Math.max(O,S),x=2*S-c):c<O&&c<S&&(c=Math.min(O,S),x=2*S-c),x>R&&x>S?(x=Math.max(R,S),c=2*S-x):x<R&&x<S&&(x=Math.min(R,S),c=2*S-x),z.rightContX=v,z.rightContY=x}return z=["C",Z(L.rightContX,L.plotX,0),Z(L.rightContY,L.plotY,0),Z(j,y,0),Z(c,S,0),y,S],L.rightContX=L.rightContY=void 0,z}}return X.defaultOptions=Q(H.defaultOptions),D.registerSeriesType("spline",X),X}),q(k,"Series/AreaSpline/AreaSplineSeries.js",[k["Series/Spline/SplineSeries.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Utilities.js"]],function(D,M,H){const{area:Q,area:{prototype:Z}}=M.seriesTypes,{extend:X,merge:U}=H;class O extends D{constructor(){super(...arguments),this.options=this.points=this.data=void 0}}return O.defaultOptions=U(D.defaultOptions,Q.defaultOptions),X(O.prototype,{getGraphPath:Z.getGraphPath,getStackPoints:Z.getStackPoints,drawGraph:Z.drawGraph}),M.registerSeriesType("areaspline",O),O}),q(k,"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"}}),q(k,"Series/Column/ColumnSeries.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Color/Color.js"],k["Series/Column/ColumnSeriesDefaults.js"],k["Core/Globals.js"],k["Core/Series/Series.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z,X,U){const{animObject:O}=D,{parse:z}=M,{hasTouch:R,noop:y}=Q,{clamp:S,defined:L,extend:j,fireEvent:c,isArray:x,isNumber:v,merge:p,pick:P,objectEach:w}=U;class b extends Z{constructor(){super(...arguments),this.points=this.options=this.group=this.data=this.borderWidth=void 0}animate(a){const u=this,h=this.yAxis,d=h.pos,e=u.options,t=this.chart.inverted,i={},l=t?"translateX":"translateY";let f;a?(i.scaleY=.001,a=S(h.toPixels(e.threshold),d,d+h.len),t?i.translateX=a-h.len:i.translateY=a,u.clipBox&&u.setClip(),u.group.attr(i)):(f=Number(u.group.attr(l)),u.group.animate({scaleY:1},j(O(u.options.animation),{step:function(_,r){u.group&&(i[l]=f+r.pos*(d-f),u.group.attr(i))}})))}init(a,u){super.init.apply(this,arguments);const h=this;a=h.chart,a.hasRendered&&a.series.forEach(function(d){d.type===h.type&&(d.isDirty=!0)})}getColumnMetrics(){const a=this;var u=a.options;const h=a.xAxis,d=a.yAxis;var e=h.options.reversedStacks;e=h.reversed&&!e||!h.reversed&&e;const t={};let i,l=0;u.grouping===!1?l=1:a.chart.series.forEach(function(C){const G=C.yAxis,J=C.options;let rt;C.type!==a.type||!C.visible&&a.chart.options.chart.ignoreHiddenSeries||d.len!==G.len||d.pos!==G.pos||(J.stacking&&J.stacking!=="group"?(i=C.stackKey,typeof t[i]>"u"&&(t[i]=l++),rt=t[i]):J.grouping!==!1&&(rt=l++),C.columnIndex=rt)});const f=Math.min(Math.abs(h.transA)*(h.ordinal&&h.ordinal.slope||u.pointRange||h.closestPointRange||h.tickInterval||1),h.len),_=f*u.groupPadding,r=(f-2*_)/(l||1);return u=Math.min(u.maxPointWidth||h.len,P(u.pointWidth,r*(1-2*u.pointPadding))),a.columnMetrics={width:u,offset:(r-u)/2+(_+((a.columnIndex||0)+(e?1:0))*r-f/2)*(e?-1:1),paddedWidth:r,columnCount:l},a.columnMetrics}crispCol(a,u,h,d){var e=this.borderWidth,t=-(e%2?.5:0);return e=e%2?.5:1,this.options.crisp&&(h=Math.round(a+h)+t,a=Math.round(a)+t,h-=a),d=Math.round(u+d)+e,t=.5>=Math.abs(u)&&.5<d,u=Math.round(u)+e,d-=u,t&&d&&(--u,d+=1),{x:a,y:u,width:h,height:d}}adjustForMissingColumns(a,u,h,d){const e=this.options.stacking;if(!h.isNull&&1<d.columnCount){const t=this.yAxis.options.reversedStacks;let i=0,l=t?0:-d.columnCount;w(this.yAxis.stacking&&this.yAxis.stacking.stacks,f=>{if(typeof h.x=="number"){const _=f[h.x.toString()];_&&(f=_.points[this.index],e?(f&&(i=l),_.hasValidPoints&&(t?l++:l--)):x(f)&&(f=Object.keys(_.points).filter(r=>!r.match(",")&&_.points[r]&&1<_.points[r].length).map(parseFloat).sort((r,C)=>C-r),i=f.indexOf(this.index),l=f.length))}}),a=(h.plotX||0)+((l-1)*d.paddedWidth+u)/2-u-i*d.paddedWidth}return a}translate(){const a=this,u=a.chart,h=a.options;var d=a.dense=2>a.closestPointRange*a.xAxis.transA;d=a.borderWidth=P(h.borderWidth,d?0:1);const e=a.xAxis,t=a.yAxis,i=h.threshold,l=P(h.minPointLength,5),f=a.getColumnMetrics(),_=f.width,r=a.pointXOffset=f.offset,C=a.dataMin,G=a.dataMax;let J=a.barW=Math.max(_,1+2*d),rt=a.translatedThreshold=t.getThreshold(i);u.inverted&&(rt-=.5),h.pointPadding&&(J=Math.ceil(J)),Z.prototype.translate.apply(a),a.points.forEach(function(B){const s=P(B.yBottom,rt);var A=999+Math.abs(s),N=B.plotX||0;A=S(B.plotY,-A,t.len+A);let I=Math.min(A,s),K=Math.max(A,s)-I,o=_,m=N+r,g=J;l&&Math.abs(K)<l&&(K=l,N=!t.reversed&&!B.negative||t.reversed&&B.negative,v(i)&&v(G)&&B.y===i&&G<=i&&(t.min||0)<i&&(C!==G||(t.max||0)<=i)&&(N=!N,B.negative=!B.negative),I=Math.abs(I-rt)>l?s-l:rt-(N?l:0)),L(B.options.pointWidth)&&(o=g=Math.ceil(B.options.pointWidth),m-=Math.round((o-_)/2)),h.centerInCategory&&(m=a.adjustForMissingColumns(m,o,B,f)),B.barX=m,B.pointWidth=o,B.tooltipPos=u.inverted?[S(t.len+t.pos-u.plotLeft-A,t.pos-u.plotLeft,t.len+t.pos-u.plotLeft),e.len+e.pos-u.plotTop-m-g/2,K]:[e.left-u.plotLeft+m+g/2,S(A+t.pos-u.plotTop,t.pos-u.plotTop,t.len+t.pos-u.plotTop),K],B.shapeType=a.pointClass.prototype.shapeType||"roundedRect",B.shapeArgs=a.crispCol(m,B.isNull?rt:I,g,B.isNull?0:K)}),c(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(a,u){const h=this.options;var d=this.pointAttrToOptions||{},e=d.stroke||"borderColor";const t=d["stroke-width"]||"borderWidth";let i,l=a&&a.color||this.color,f=a&&a[e]||h[e]||l;d=a&&a.options.dashStyle||h.dashStyle;let _=a&&a[t]||h[t]||this[t]||0,r=P(a&&a.opacity,h.opacity,1);return a&&this.zones.length&&(i=a.getZone(),l=a.options.color||i&&(i.color||a.nonZonedColor)||this.color,i&&(f=i.borderColor||f,d=i.dashStyle||d,_=i.borderWidth||_)),u&&a&&(a=p(h.states[u],a.options.states&&a.options.states[u]||{}),u=a.brightness,l=a.color||typeof u<"u"&&z(l).brighten(a.brightness).get()||l,f=a[e]||f,_=a[t]||_,d=a.dashStyle||d,r=P(a.opacity,r)),e={fill:l,stroke:f,"stroke-width":_,opacity:r},d&&(e.dashstyle=d),e}drawPoints(a=this.points){const u=this,h=this.chart,d=u.options,e=h.renderer,t=d.animationLimit||250;let i;a.forEach(function(l){let f=l.graphic,_=!!f,r=f&&h.pointCount<t?"animate":"attr";v(l.plotY)&&l.y!==null?(i=l.shapeArgs,f&&l.hasNewShapeType()&&(f=f.destroy()),u.enabledDataSorting&&(l.startXPos=u.xAxis.reversed?-(i&&i.width||0):u.xAxis.width),f||(l.graphic=f=e[l.shapeType](i).add(l.group||u.group))&&u.enabledDataSorting&&h.hasRendered&&h.pointCount<t&&(f.attr({x:l.startXPos}),_=!0,r="animate"),f&&_&&f[r](p(i)),h.styledMode||f[r](u.pointAttribs(l,l.selected&&"select")).shadow(l.allowShadow!==!1&&d.shadow),f&&(f.addClass(l.getClassName(),!0),f.attr({visibility:l.visible?"inherit":"hidden"}))):f&&(l.graphic=f.destroy())})}drawTracker(a=this.points){const u=this,h=u.chart,d=h.pointer,e=function(i){const l=d.getPointFromEvent(i);typeof l<"u"&&u.options.enableMouseTracking&&(d.isDirectTouch=!0,l.onMouseOver(i))};let t;a.forEach(function(i){t=x(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[],i.graphic&&(i.graphic.element.point=i),t.forEach(function(l){l.div?l.div.point=i:l.element.point=i})}),u._hasTracking||(u.trackerGroups.forEach(function(i){u[i]&&(u[i].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(l){d.onTrackerMouseOut(l)}),R&&u[i].on("touchstart",e),!h.styledMode&&u.options.cursor&&u[i].css({cursor:u.options.cursor}))}),u._hasTracking=!0),c(this,"afterDrawTracker")}remove(){const a=this,u=a.chart;u.hasRendered&&u.series.forEach(function(h){h.type===a.type&&(h.isDirty=!0)}),Z.prototype.remove.apply(a,arguments)}}return b.defaultOptions=p(Z.defaultOptions,H),j(b.prototype,{cropShoulder:0,directTouch:!0,getSymbol:y,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),X.registerSeriesType("column",b),b}),q(k,"Core/Series/DataLabel.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Templating.js"],k["Core/Utilities.js"]],function(D,M,H){const{getDeferredAnimation:Q}=D,{format:Z}=M,{defined:X,extend:U,fireEvent:O,isArray:z,isString:R,merge:y,objectEach:S,pick:L,splat:j}=H;var c;return function(x){function v(d,e,t,i,l){const f=this.chart;var _=this.isCartesian&&f.inverted;const r=this.enabledDataSorting;var C=d.plotX,G=d.plotY;const J=t.rotation;var rt=t.align;G=X(C)&&X(G)&&f.isInsidePlot(C,Math.round(G),{inverted:_,paneCoordinates:!0,series:this});let B=L(t.overflow,r?"none":"justify")==="justify";if(_=this.visible&&d.visible!==!1&&X(C)&&(d.series.forceDL||r&&!B||G||L(t.inside,!!this.options.stacking)&&i&&f.isInsidePlot(C,_?i.x+1:i.y+i.height-1,{inverted:_,paneCoordinates:!0,series:this})),C=d.pos(),_&&C){J&&e.attr({align:rt}),rt=e.getBBox(!0);var s=[0,0],A=f.renderer.fontMetrics(e).b;if(i=U({x:C[0],y:Math.round(C[1]),width:0,height:0},i),U(t,{width:rt.width,height:rt.height}),J?(B=!1,s=f.renderer.rotCorr(A,J),A={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&&!B&&this.setDataLabelStartPos(d,e,l,G,A),e[l?"attr":"animate"](A)):(r&&this.xAxis&&!B&&this.setDataLabelStartPos(d,e,l,G,i),e.align(t,void 0,i),A=e.alignAttr),B&&0<=i.height)this.justifyDataLabel(e,t,A,rt,i,l);else if(L(t.crop,!0)){let{x:N,y:I}=A;N+=s[0],I+=s[1],_=f.isInsidePlot(N,I,{paneCoordinates:!0,series:this})&&f.isInsidePlot(N+rt.width,I+rt.height,{paneCoordinates:!0,series:this})}t.shape&&!J&&e[l?"attr":"animate"]({anchorX:C[0],anchorY:C[1]})}l&&r&&(e.placed=!1),_||r&&!B?e.show():(e.hide(),e.placed=!1)}function p(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 P(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function w(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 b(d=this.points){var e,t;const i=this,l=i.chart,f=i.options,_=l.renderer,{backgroundColor:r,plotBackgroundColor:C}=l.options.chart,G=l.options.plotOptions,J=_.getContrast(R(C)&&C||R(r)&&r||"#000000");let rt=f.dataLabels,B,s;var A=j(rt)[0];const N=A.animation;A=A.defer?Q(l,N,i):{defer:0,duration:0},rt=a(a((e=G==null?void 0:G.series)===null||e===void 0?void 0:e.dataLabels,(t=G==null?void 0:G[i.type])===null||t===void 0?void 0:t.dataLabels),rt),O(this,"drawDataLabels"),(z(rt)||rt.enabled||i._hasPointLabels)&&(s=this.initDataLabels(A),d.forEach(I=>{var K;const o=I.dataLabels||[];for(B=j(a(rt,I.dlOptions||((K=I.options)===null||K===void 0?void 0:K.dataLabels))),B.forEach((m,g)=>{var W,F=m.enabled&&(!I.isNull||I.dataLabelOnNull)&&p(I,m);const $=I.connectors?I.connectors[g]:I.connector,it=m.style||{};let ot={},at=o[g],ht=!at;const ut=L(m.distance,I.labelDistance);if(F){var E=L(m[I.formatPrefix+"Format"],m.format),T=I.getLabelConfig();if(T=X(E)?Z(E,T,l):(m[I.formatPrefix+"Formatter"]||m.formatter).call(T,m),E=m.rotation,l.styledMode||(it.color=L(m.color,it.color,R(i.color)?i.color:void 0,"#000000"),it.color==="contrast"?(I.contrastColor=_.getContrast(I.color||i.color),it.color=!X(ut)&&m.inside||0>(ut||0)||f.stacking?I.contrastColor:J):delete I.contrastColor,f.cursor&&(it.cursor=f.cursor)),ot={r:m.borderRadius||0,rotation:E,padding:m.padding,zIndex:1},!l.styledMode){const{backgroundColor:tt,borderColor:V}=m;ot.fill=tt==="auto"?I.color:tt,ot.stroke=V==="auto"?I.color:V,ot["stroke-width"]=m.borderWidth}S(ot,(tt,V)=>{typeof tt>"u"&&delete ot[V]})}!at||F&&X(T)&&!!at.div==!!m.useHTML&&(at.rotation&&m.rotation||at.rotation===m.rotation)||(at=void 0,ht=!0,$&&I.connector&&(I.connector=I.connector.destroy(),I.connectors&&(I.connectors.length===1?delete I.connectors:delete I.connectors[g]))),F&&X(T)&&(at?ot.text=T:(at=E?_.text(T,0,0,m.useHTML).addClass("highcharts-data-label"):_.label(T,0,0,m.shape,void 0,void 0,m.useHTML,void 0,"data-label"))&&at.addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(m.className||"")+(m.useHTML?" highcharts-tracker":"")),at&&(at.options=m,at.attr(ot),l.styledMode||at.css(it).shadow(m.shadow),(F=m[I.formatPrefix+"TextPath"]||m.textPath)&&!m.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,m,void 0,ht),at.isActive=!0,o[g]&&o[g]!==at&&o[g].destroy(),o[g]=at))}),K=o.length;K--;)o[K].isActive?o[K].isActive=!1:(o[K].destroy(),o.splice(K,1));I.dataLabel=o[0],I.dataLabels=o})),O(this,"afterDrawDataLabels")}function n(d,e,t,i,l,f){const _=this.chart,r=e.align,C=e.verticalAlign,G=d.box?0:d.padding||0;let{x:J=0,y:rt=0}=e,B,s;return B=(t.x||0)+G,0>B&&(r==="right"&&0<=J?(e.align="left",e.inside=!0):J-=B,s=!0),B=(t.x||0)+i.width-G,B>_.plotWidth&&(r==="left"&&0>=J?(e.align="right",e.inside=!0):J+=_.plotWidth-B,s=!0),B=t.y+G,0>B&&(C==="bottom"&&0<=rt?(e.verticalAlign="top",e.inside=!0):rt-=B,s=!0),B=(t.y||0)+i.height-G,B>_.plotHeight&&(C==="top"&&0>=rt?(e.verticalAlign="bottom",e.inside=!0):rt+=_.plotHeight-B,s=!0),s&&(e.x=J,e.y=rt,d.placed=!f,d.align(e,void 0,l)),s}function a(d,e){let t=[],i;if(z(d)&&!z(e))t=d.map(function(l){return y(l,e)});else if(z(e)&&!z(d))t=e.map(function(l){return y(d,l)});else if(!z(d)&&!z(e))t=y(d,e);else if(z(d)&&z(e))for(i=Math.max(d.length,e.length);i--;)t[i]=y(d[i],e[i]);return t}function u(d,e,t,i,l){const f=this.chart,_=f.inverted,r=this.xAxis,C=r.reversed,G=_?e.height/2:e.width/2;d=(d=d.pointWidth)?d/2:0,e.startXPos=_?l.x:C?-G-d:r.width-G+d,e.startYPos=_?C?this.yAxis.height-G+d:-G-d:l.y,i?e.visibility==="hidden"&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),f.hasRendered&&(t&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}const h=[];x.compose=function(d){H.pushUnique(h,d)&&(d=d.prototype,d.initDataLabelsGroup=P,d.initDataLabels=w,d.alignDataLabel=v,d.drawDataLabels=b,d.justifyDataLabel=n,d.setDataLabelStartPos=u)}}(c||(c={})),c}),q(k,"Series/Column/ColumnDataLabel.js",[k["Core/Series/DataLabel.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Utilities.js"]],function(D,M,H){const{series:Q}=M,{merge:Z,pick:X}=H;var U;return function(O){function z(y,S,L,j,c){let x=this.chart.inverted;var v=y.series;let p=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0;v=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0;var P=y.dlBox||y.shapeArgs;let w=X(y.below,y.plotY>X(this.translatedThreshold,v)),b=X(L.inside,!!this.options.stacking);P&&(j=Z(P),0>j.y&&(j.height+=j.y,j.y=0),P=j.y+j.height-v,0<P&&P<j.height&&(j.height-=P),x&&(j={x:v-j.y-j.height,y:p-j.x-j.width,width:j.height,height:j.width}),b||(x?(j.x+=w?0:j.width,j.width=0):(j.y+=w?j.height:0,j.height=0))),L.align=X(L.align,!x||b?"center":w?"right":"left"),L.verticalAlign=X(L.verticalAlign,x||b?"middle":w?"top":"bottom"),Q.prototype.alignDataLabel.call(this,y,S,L,j,c),L.inside&&y.contrastColor&&S.css({color:y.contrastColor})}const R=[];O.compose=function(y){D.compose(Q),H.pushUnique(R,y)&&(y.prototype.alignDataLabel=z)}}(U||(U={})),U}),q(k,"Series/Bar/BarSeries.js",[k["Series/Column/ColumnSeries.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Utilities.js"]],function(D,M,H){const{extend:Q,merge:Z}=H;class X extends D{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return X.defaultOptions=Z(D.defaultOptions,{}),Q(X.prototype,{inverted:!0}),M.registerSeriesType("bar",X),X}),q(k,"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/>"}}}),q(k,"Series/Scatter/ScatterSeries.js",[k["Series/Scatter/ScatterSeriesDefaults.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Utilities.js"]],function(D,M,H){const{column:Q,line:Z}=M.seriesTypes,{addEvent:X,extend:U,merge:O}=H;class z extends Z{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const y=this,S=this.options.jitter,L=this.points.length;S&&this.points.forEach(function(j,c){["x","y"].forEach(function(x,v){let p="plot"+x.toUpperCase(),P,w;if(S[x]&&!j.isNull){var b=y[x+"Axis"];w=S[x]*b.transA,b&&!b.isLog&&(P=Math.max(0,j[p]-w),b=Math.min(b.len,j[p]+w),v=1e4*Math.sin(c+v*L),v-=Math.floor(v),j[p]=P+(b-P)*v,x==="x"&&(j.clientX=j.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return z.defaultOptions=O(Z.defaultOptions,D),U(z.prototype,{drawTracker:Q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),X(z,"afterTranslate",function(){this.applyJitter()}),M.registerSeriesType("scatter",z),z}),q(k,"Series/CenteredUtilities.js",[k["Core/Globals.js"],k["Core/Series/Series.js"],k["Core/Utilities.js"]],function(D,M,H){const{deg2rad:Q}=D,{fireEvent:Z,isNumber:X,pick:U,relativeLength:O}=H;var z;return function(R){R.getCenter=function(){var y=this.options,S=this.chart;const L=2*(y.slicedOffset||0),j=S.plotWidth-2*L,c=S.plotHeight-2*L;var x=y.center;const v=Math.min(j,c),p=y.thickness;var P=y.size;let w=y.innerSize||0;for(typeof P=="string"&&(P=parseFloat(P)),typeof w=="string"&&(w=parseFloat(w)),y=[U(x[0],"50%"),U(x[1],"50%"),U(P&&0>P?void 0:y.size,"100%"),U(w&&0>w?void 0:y.innerSize||0,"0%")],!S.angular||this instanceof M||(y[3]=0),x=0;4>x;++x)P=y[x],S=2>x||x===2&&/%$/.test(P),y[x]=O(P,[j,c,v,y[2]][x])+(S?L:0);return y[3]>y[2]&&(y[3]=y[2]),X(p)&&2*p<y[2]&&0<p&&(y[3]=y[2]-2*p),Z(this,"afterGetCenter",{positions:y}),y},R.getStartAndEndRadians=function(y,S){return y=X(y)?y:0,S=X(S)&&S>y&&360>S-y?S:y+360,{start:Q*(y+-90),end:Q*(S+-90)}}}(z||(z={})),z}),q(k,"Series/Pie/PiePoint.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Series/Point.js"],k["Core/Utilities.js"]],function(D,M,H){const{setAnimation:Q}=D,{addEvent:Z,defined:X,extend:U,isNumber:O,pick:z,relativeLength:R}=H;class y extends M{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const L=this.labelPosition,j=this.series.options.dataLabels,c=this.connectorShapes;let x=j.connectorShape;return c[x]&&(x=c[x]),x.call(this,{x:L.computed.x,y:L.computed.y,alignment:L.alignment},L.connectorPosition,j)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(L){const j=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(j.x,j.y,j.r+L,j.r+L,{innerR:j.r-1,start:j.start,end:j.end,borderRadius:j.borderRadius})}init(){super.init.apply(this,arguments),this.name=z(this.name,"Slice");const L=j=>{this.slice(j.type==="select")};return Z(this,"select",L),Z(this,"unselect",L),this}isValid(){return O(this.y)&&0<=this.y}setVisible(L,j){const c=this.series,x=c.chart,v=c.options.ignoreHiddenPoint;j=z(j,v),L!==this.visible&&(this.visible=this.options.visible=L=typeof L>"u"?!this.visible:L,c.options.data[c.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(p=>{this[p]&&this[p][L?"show":"hide"](L)}),this.legendItem&&x.legend.colorizeItem(this,L),L||this.state!=="hover"||this.setState(""),v&&(c.isDirty=!0),j&&x.redraw())}slice(L,j,c){const x=this.series;Q(c,x.chart),z(j,!0),this.sliced=this.options.sliced=X(L)?L:!this.sliced,x.options.data[x.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return U(y.prototype,{connectorShapes:{fixedOffset:function(S,L,j){const c=L.breakAt;return L=L.touchingSliceAt,[["M",S.x,S.y],j.softConnector?["C",S.x+(S.alignment==="left"?-5:5),S.y,2*c.x-L.x,2*c.y-L.y,c.x,c.y]:["L",c.x,c.y],["L",L.x,L.y]]},straight:function(S,L){return L=L.touchingSliceAt,[["M",S.x,S.y],["L",L.x,L.y]]},crookedLine:function(S,L,j){const{breakAt:c,touchingSliceAt:x}=L;({series:L}=this);const[v,p,P]=L.center,w=P/2,b=L.chart.plotWidth,n=L.chart.plotLeft;L=S.alignment==="left";const{x:a,y:u}=S;return j.crookDistance?(S=R(j.crookDistance,1),S=L?v+w+(b+n-v-w)*(1-S):n+(v-w)*S):S=v+(p-u)*Math.tan((this.angle||0)-Math.PI/2),j=[["M",a,u]],(L?S<=a&&S>=c.x:S>=a&&S<=c.x)&&j.push(["L",S,u]),j.push(["L",c.x,c.y],["L",x.x,x.y]),j}}}),y}),q(k,"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}}}}),q(k,"Series/Pie/PieSeries.js",[k["Series/CenteredUtilities.js"],k["Series/Column/ColumnSeries.js"],k["Core/Globals.js"],k["Series/Pie/PiePoint.js"],k["Series/Pie/PieSeriesDefaults.js"],k["Core/Series/Series.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Renderer/SVG/Symbols.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z,X,U,O,z){const{getStartAndEndRadians:R}=D;({noop:H}=H);const{clamp:y,extend:S,fireEvent:L,merge:j,pick:c,relativeLength:x}=z;class v extends X{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(P){const w=this,b=w.points,n=w.startAngleRad;P||b.forEach(function(a){const u=a.graphic,h=a.shapeArgs;u&&h&&(u.attr({r:c(a.startR,w.center&&w.center[3]/2),start:n,end:n}),u.animate({r:h.r,start:h.start,end:h.end},w.options.animation))})}drawEmpty(){const P=this.startAngleRad,w=this.endAngleRad,b=this.options;let n,a;this.total===0&&this.center?(n=this.center[0],a=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(n,a,this.center[1]/2,0,P,w).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:O.arc(n,a,this.center[2]/2,0,{start:P,end:w,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":b.borderWidth,fill:b.fillColor||"none",stroke:b.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const P=this.chart.renderer;this.points.forEach(function(w){w.graphic&&w.hasNewShapeType()&&(w.graphic=w.graphic.destroy()),w.graphic||(w.graphic=P[w.shapeType](w.shapeArgs).add(w.series.group),w.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(P,w,b){const n=this.center,a=this.radii?this.radii[b.index]||0:n[2]/2;return P=Math.asin(y((P-n[1])/(a+b.labelDistance),-1,1)),n[0]+(w?-1:1)*Math.cos(P)*(a+b.labelDistance)+(0<b.labelDistance?(w?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const P=this,w=P.chart;let b,n,a,u;this.drawEmpty(),P.group&&!w.styledMode&&P.group.shadow(P.options.shadow),P.points.forEach(function(h){const d={};n=h.graphic,!h.isNull&&n?(u=h.shapeArgs,b=h.getTranslate(),w.styledMode||(a=P.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(n.setRadialReference(P.center).attr(u).attr(b),w.styledMode||n.attr(a).attr({"stroke-linejoin":"round"}),h.delayedRendering=!1):(n.setRadialReference(P.center),w.styledMode||j(!0,d,a),j(!0,d,u,b),n.animate(d)),n.attr({visibility:h.visible?"inherit":"hidden"}),n.addClass(h.getClassName(),!0)):n&&(h.graphic=n.destroy())})}sortByAngle(P,w){P.sort(function(b,n){return typeof b.angle<"u"&&(n.angle-b.angle)*w})}translate(P){L(this,"translate"),this.generatePoints();var w=this.options;const b=w.slicedOffset,n=b+(w.borderWidth||0);var a=R(w.startAngle,w.endAngle);const u=this.startAngleRad=a.start;a=(this.endAngleRad=a.end)-u;const h=this.points,d=w.dataLabels.distance;w=w.ignoreHiddenPoint;const e=h.length;let t,i,l,f=0;for(P||(this.center=P=this.getCenter()),i=0;i<e;i++){l=h[i];var _=u+f*a;!l.isValid()||w&&!l.visible||(f+=l.percentage/100);var r=u+f*a,C={x:P[0],y:P[1],r:P[2]/2,innerR:P[3]/2,start:Math.round(1e3*_)/1e3,end:Math.round(1e3*r)/1e3};l.shapeType="arc",l.shapeArgs=C,l.labelDistance=c(l.options.dataLabels&&l.options.dataLabels.distance,d),l.labelDistance=x(l.labelDistance,C.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,l.labelDistance),r=(r+_)/2,r>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(r)*b),translateY:Math.round(Math.sin(r)*b)},C=Math.cos(r)*P[2]/2,t=Math.sin(r)*P[2]/2,l.tooltipPos=[P[0]+.7*C,P[1]+.7*t],l.half=r<-Math.PI/2||r>Math.PI/2?1:0,l.angle=r,_=Math.min(n,l.labelDistance/5),l.labelPosition={natural:{x:P[0]+C+Math.cos(r)*l.labelDistance,y:P[1]+t+Math.sin(r)*l.labelDistance},computed:{},alignment:0>l.labelDistance?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:P[0]+C+Math.cos(r)*_,y:P[1]+t+Math.sin(r)*_},touchingSliceAt:{x:P[0]+C,y:P[1]+t}}}}L(this,"afterTranslate")}updateTotals(){const P=this.points,w=P.length,b=this.options.ignoreHiddenPoint;let n,a,u=0;for(n=0;n<w;n++)a=P[n],!a.isValid()||b&&!a.visible||(u+=a.y);for(this.total=u,n=0;n<w;n++)a=P[n],a.percentage=0<u&&(a.visible||!b)?a.y/u*100:0,a.total=u}}return v.defaultOptions=j(X.defaultOptions,Z),S(v.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:M.prototype.drawTracker,getCenter:D.getCenter,getSymbol:H,isCartesian:!1,noSharedTooltip:!0,pointAttribs:M.prototype.pointAttribs,pointClass:Q,requireSorting:!1,searchPoint:H,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("pie",v),v}),q(k,"Series/Pie/PieDataLabel.js",[k["Core/Series/DataLabel.js"],k["Core/Globals.js"],k["Core/Renderer/RendererUtilities.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z){const{noop:X}=M,{distribute:U}=H,{series:O}=Q,{arrayMax:z,clamp:R,defined:y,merge:S,pick:L,relativeLength:j}=Z;var c;return function(x){function v(){const n=this,a=n.data,u=n.chart,h=n.options.dataLabels||{},d=h.connectorPadding,e=u.plotWidth,t=u.plotHeight,i=u.plotLeft,l=Math.round(u.chartWidth/3),f=n.center,_=f[2]/2,r=f[1],C=[[],[]],G=[0,0,0,0],J=n.dataLabelPositioners;let rt,B,s,A,N,I,K,o,m,g,W,F;n.visible&&(h.enabled||n._hasPointLabels)&&(a.forEach(function($){$.dataLabel&&$.visible&&$.dataLabel.shortened&&($.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),$.dataLabel.shortened=!1)}),O.prototype.drawDataLabels.apply(n),a.forEach(function($){$.dataLabel&&($.visible?(C[$.half].push($),$.dataLabel._pos=null,!y(h.style.width)&&!y($.options.dataLabels&&$.options.dataLabels.style&&$.options.dataLabels.style.width)&&$.dataLabel.getBBox().width>l&&($.dataLabel.css({width:Math.round(.7*l)+"px"}),$.dataLabel.shortened=!0)):($.dataLabel=$.dataLabel.destroy(),$.dataLabels&&$.dataLabels.length===1&&delete $.dataLabels))}),C.forEach(($,it)=>{const ot=$.length,at=[];let ht,ut=0;if(ot){if(n.sortByAngle($,it-.5),0<n.maxLabelDistance){var E=Math.max(0,r-_-n.maxLabelDistance);ht=Math.min(r+_+n.maxLabelDistance,u.plotHeight),$.forEach(function(T){0<T.labelDistance&&T.dataLabel&&(T.top=Math.max(0,r-_-T.labelDistance),T.bottom=Math.min(r+_+T.labelDistance,u.plotHeight),ut=T.dataLabel.getBBox().height||21,T.distributeBox={target:T.labelPosition.natural.y-T.top+ut/2,size:ut,rank:T.y},at.push(T.distributeBox))}),E=ht+ut-E,U(at,E,E/5)}for(W=0;W<ot;W++){if(rt=$[W],I=rt.labelPosition,A=rt.dataLabel,g=rt.visible===!1?"hidden":"inherit",m=E=I.natural.y,at&&y(rt.distributeBox)&&(typeof rt.distributeBox.pos>"u"?g="hidden":(K=rt.distributeBox.size,m=J.radialDistributionY(rt))),delete rt.positionIndex,h.justify)o=J.justify(rt,_,f);else switch(h.alignTo){case"connectors":o=J.alignToConnectors($,it,e,i);break;case"plotEdges":o=J.alignToPlotEdges(A,it,e,i);break;default:o=J.radialDistributionX(n,rt,m,E)}A._attr={visibility:g,align:I.alignment},F=rt.options.dataLabels||{},A._pos={x:o+L(F.x,h.x)+({left:d,right:-d}[I.alignment]||0),y:m+L(F.y,h.y)-A.getBBox().height/2},I&&(I.computed.x=o,I.computed.y=m),L(h.crop,!0)&&(N=A.getBBox().width,E=null,o-N<d&&it===1?(E=Math.round(N-o+d),G[3]=Math.max(E,G[3])):o+N>e-d&&it===0&&(E=Math.round(o+N-e+d),G[1]=Math.max(E,G[1])),0>m-K/2?G[0]=Math.max(Math.round(-m+K/2),G[0]):m+K/2>t&&(G[2]=Math.max(Math.round(m+K/2-t),G[2])),A.sideOverflow=E)}}}),z(G)===0||this.verifyDataLabelOverflow(G))&&(this.placeDataLabels(),this.points.forEach(function($){if(F=S(h,$.options.dataLabels),B=L(F.connectorWidth,1)){let it;s=$.connector,(A=$.dataLabel)&&A._pos&&$.visible&&0<$.labelDistance?(g=A._attr.visibility,(it=!s)&&($.connector=s=u.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+$.colorIndex+($.className?" "+$.className:"")).add(n.dataLabelsGroup),u.styledMode||s.attr({"stroke-width":B,stroke:F.connectorColor||$.color||"#666666"})),s[it?"attr":"animate"]({d:$.getConnectorPath()}),s.attr("visibility",g)):s&&($.connector=s.destroy())}}))}function p(){this.points.forEach(function(n){let a=n.dataLabel,u;a&&n.visible&&((u=a._pos)?(a.sideOverflow&&(a._attr.width=Math.max(a.getBBox().width-a.sideOverflow,0),a.css({width:a._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),a.shortened=!0),a.attr(a._attr),a[a.moved?"animate":"attr"](u),a.moved=!0):a&&a.attr({y:-9999})),delete n.distributeBox},this)}function P(n){let a=this.center,u=this.options,h=u.center,d=u.minSize||80,e,t=u.size!==null;return t||(h[0]!==null?e=Math.max(a[2]-Math.max(n[1],n[3]),d):(e=Math.max(a[2]-n[1]-n[3],d),a[0]+=(n[3]-n[1])/2),h[1]!==null?e=R(e,d,a[2]-Math.max(n[0],n[2])):(e=R(e,d,a[2]-n[0]-n[2]),a[1]+=(n[0]-n[2])/2),e<a[2]?(a[2]=e,a[3]=Math.min(u.thickness?Math.max(0,e-2*u.thickness):Math.max(0,j(u.innerSize||0,e)),e),this.translate(a),this.drawDataLabels&&this.drawDataLabels()):t=!0),t}const w=[],b={radialDistributionY:function(n){return n.top+n.distributeBox.pos},radialDistributionX:function(n,a,u,h){return n.getX(u<a.top+2||u>a.bottom-2?h:u,a.half,a)},justify:function(n,a,u){return u[0]+(n.half?-1:1)*(a+n.labelDistance)},alignToPlotEdges:function(n,a,u,h){return n=n.getBBox().width,a?n+h:u-n-h},alignToConnectors:function(n,a,u,h){let d=0,e;return n.forEach(function(t){e=t.dataLabel.getBBox().width,e>d&&(d=e)}),a?d+h:u-d-h}};x.compose=function(n){D.compose(O),Z.pushUnique(w,n)&&(n=n.prototype,n.dataLabelPositioners=b,n.alignDataLabel=X,n.drawDataLabels=v,n.placeDataLabels=p,n.verifyDataLabelOverflow=P)}}(c||(c={})),c}),q(k,"Extensions/OverlappingDataLabels.js",[k["Core/Chart/Chart.js"],k["Core/Utilities.js"]],function(D,M){function H(R,y){let S,L=!1;return R&&(S=R.newOpacity,R.oldOpacity!==S&&(R.alignAttr&&R.placed?(R[S?"removeClass":"addClass"]("highcharts-data-label-hidden"),L=!0,R.alignAttr.opacity=S,R[R.isOld?"animate":"attr"](R.alignAttr,null,function(){y.styledMode||R.css({pointerEvents:S?"auto":"none"})}),Z(y,"afterHideOverlappingLabel")):R.attr({opacity:S})),R.isOld=!0),L}const{addEvent:Q,fireEvent:Z,isArray:X,isNumber:U,objectEach:O,pick:z}=M;Q(D,"render",function(){let R=this,y=[];(this.labelCollectors||[]).forEach(function(S){y=y.concat(S())}),(this.yAxis||[]).forEach(function(S){S.stacking&&S.options.stackLabels&&!S.options.stackLabels.allowOverlap&&O(S.stacking.stacks,function(L){O(L,function(j){j.label&&y.push(j.label)})})}),(this.series||[]).forEach(function(S){var L=S.options.dataLabels;S.visible&&(L.enabled!==!1||S._hasPointLabels)&&(L=j=>j.forEach(c=>{c.visible&&(X(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[]).forEach(function(x){const v=x.options;x.labelrank=z(v.labelrank,c.labelrank,c.shapeArgs&&c.shapeArgs.height),v.allowOverlap?(x.oldOpacity=x.opacity,x.newOpacity=1,H(x,R)):y.push(x)})}),L(S.nodes||[]),L(S.points))}),this.hideOverlappingLabels(y)}),D.prototype.hideOverlappingLabels=function(R){let y=this,S=R.length,L=y.renderer;var j;let c,x,v,p,P=!1;var w=function(b){let n,a;var u;let h=b.box?0:b.padding||0,d=u=0,e,t;if(b&&(!b.alignAttr||b.placed))return n=b.alignAttr||{x:b.attr("x"),y:b.attr("y")},a=b.parentGroup,b.width||(u=b.getBBox(),b.width=u.width,b.height=u.height,u=L.fontMetrics(b.element).h),e=b.width-2*h,(t={left:"0",center:"0.5",right:"1"}[b.alignValue])?d=+t*e:U(b.x)&&Math.round(b.x)!==b.translateX&&(d=b.x-b.translateX),{x:n.x+(a.translateX||0)+h-(d||0),y:n.y+(a.translateY||0)+h-u,width:b.width-2*h,height:b.height-2*h}};for(c=0;c<S;c++)(j=R[c])&&(j.oldOpacity=j.opacity,j.newOpacity=1,j.absoluteBox=w(j));for(R.sort(function(b,n){return(n.labelrank||0)-(b.labelrank||0)}),c=0;c<S;c++)for(v=(w=R[c])&&w.absoluteBox,j=c+1;j<S;++j)p=(x=R[j])&&x.absoluteBox,!v||!p||w===x||w.newOpacity===0||x.newOpacity===0||w.visibility==="hidden"||x.visibility==="hidden"||p.x>=v.x+v.width||p.x+p.width<=v.x||p.y>=v.y+v.height||p.y+p.height<=v.y||((w.labelrank<x.labelrank?w:x).newOpacity=0);R.forEach(function(b){H(b,y)&&(P=!0)}),P&&Z(y,"afterHideAllOverlappingLabels")}}),q(k,"Extensions/BorderRadius.js",[k["Core/Defaults.js"],k["Core/Series/Series.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Renderer/SVG/SVGElement.js"],k["Core/Renderer/SVG/SVGRenderer.js"],k["Core/Utilities.js"]],function(D,M,H,Q,Z,X){const{defaultOptions:U}=D;({seriesTypes:D}=H);const{addEvent:O,extend:z,isObject:R,merge:y,relativeLength:S}=X,L={radius:0,scope:"stack",where:void 0},j=(c,x)=>(R(c)||(c={radius:c||0}),y(L,x,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,p,P,w,b={}){v=c(v,p,P,w,b);const{innerR:n=0,r:a=P,start:u=0,end:h=0}=b;if(b.open||!b.borderRadius)return v;for(P=h-u,p=Math.sin(P/2),b=Math.max(Math.min(S(b.borderRadius||0,a-n),(a-n)/2,a*p/(1+p)),0),P=Math.min(b,P/Math.PI*2*n),p=v.length-1;p--;){let _,r,C;w=v;var d=p,e=1<p?P:b,t=w[d],i=w[d+1];if(i[0]==="Z"&&(i=w[0]),t[0]!=="M"&&t[0]!=="L"||i[0]!=="A"?t[0]!=="A"||i[0]!=="M"&&i[0]!=="L"||(C=i,r=t):(C=t,r=i,_=!0),C&&r&&r.params){t=r[1];var l=r[5];i=r.params;const{start:G,end:J,cx:rt,cy:B}=i;var f=l?t-e:t+e;const s=f?Math.asin(e/f):0;l=l?s:-s,f*=Math.cos(s),_?(i.start=G+l,C[1]=rt+f*Math.cos(G),C[2]=B+f*Math.sin(G),w.splice(d+1,0,["A",e,e,0,0,1,rt+t*Math.cos(i.start),B+t*Math.sin(i.start)])):(i.end=J-l,r[6]=rt+t*Math.cos(i.end),r[7]=B+t*Math.sin(i.end),w.splice(d+1,0,["A",e,e,0,0,1,rt+f*Math.cos(J),B+f*Math.sin(J)])),r[4]=Math.abs(i.end-i.start)<Math.PI?0:1}}return v};const x=Z.prototype.symbols.roundedRect;Z.prototype.symbols.roundedRect=function(v,p,P,w,b={}){const n=x(v,p,P,w,b),{r:a=0,brBoxHeight:u=w,brBoxY:h=p}=b;var d=p-h,e=h+u-(p+w);b=-.1<d-a?0:a;const t=-.1<e-a?0:a;var i=Math.max(b&&d,0);const l=Math.max(t&&e,0);e=[v+b,p],d=[v+P-b,p];const f=[v+P,p+b],_=[v+P,p+w-t],r=[v+P-t,p+w],C=[v+t,p+w],G=[v,p+w-t],J=[v,p+b];if(i){const rt=Math.sqrt(Math.pow(b,2)-Math.pow(b-i,2));e[0]-=rt,d[0]+=rt,f[1]=J[1]=p+b-i}return w<b-i&&(i=Math.sqrt(Math.pow(b,2)-Math.pow(b-i-w,2)),f[0]=_[0]=v+P-b+i,r[0]=Math.min(f[0],r[0]),C[0]=Math.max(_[0],C[0]),G[0]=J[0]=v+b-i,f[1]=J[1]=p+w),l&&(i=Math.sqrt(Math.pow(t,2)-Math.pow(t-l,2)),r[0]+=i,C[0]-=i,_[1]=G[1]=p+w-t+l),w<t-l&&(w=Math.sqrt(Math.pow(t,2)-Math.pow(t-l-w,2)),f[0]=_[0]=v+P-t+w,d[0]=Math.min(f[0],d[0]),e[0]=Math.max(_[0],e[0]),G[0]=J[0]=v+t-w,_[1]=G[1]=p),n.length=0,n.push(["M",...e],["L",...d],["A",b,b,0,0,1,...f],["L",..._],["A",t,t,0,0,1,...r],["L",...C],["A",t,t,0,0,1,...G],["L",...J],["A",b,b,0,0,1,...e],["Z"]),n},O(D.pie,"afterTranslate",function(){const v=j(this.options.borderRadius);for(const p of this.points){const P=p.shapeArgs;P&&(P.borderRadius=S(v.radius,(P.r||0)-(P.innerR||0)))}}),O(M,"afterColumnTranslate",function(){var v,p;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){const{options:n,yAxis:a}=this,u=n.stacking==="percent";var P=(p=(v=U.plotOptions)===null||v===void 0?void 0:v[this.type])===null||p===void 0?void 0:p.borderRadius;v=j(n.borderRadius,R(P)?P:{}),p=a.options.reversed;for(const h of this.points)if({shapeArgs:P}=h,h.shapeType==="roundedRect"&&P){const{width:d=0,height:e=0,y:t=0}=P;var w=t,b=e;v.scope==="stack"&&h.stackTotal&&(w=a.translate(u?100:h.stackTotal,!1,!0,!1,!0),b=a.translate(n.threshold||0,!1,!0,!1,!0),b=this.crispCol(0,Math.min(w,b),0,Math.abs(w-b)),w=b.y,b=b.height);const i=(h.negative?-1:1)*(p?-1:1)===-1;let l=v.where;!l&&this.is("waterfall")&&Math.abs((h.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(l="all"),l||(l="end");const f=Math.min(S(v.radius,d),d/2,l==="all"?e/2:1/0)||0;l==="end"&&(i&&(w-=f),b+=f),z(P,{brBoxHeight:b,brBoxY:w,r:f})}}},{order:9})}return M={optionsToObject:j},M}),q(k,"Core/Responsive.js",[k["Core/Utilities.js"]],function(D){const{diffObjects:M,extend:H,find:Q,merge:Z,pick:X,uniqueKey:U}=D;var O;return function(z){function R(L,j){const c=L.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)&&j.push(L._id)}function y(L,j){const c=this.options.responsive;var x=this.currentResponsive;let v=[];!j&&c&&c.rules&&c.rules.forEach(p=>{typeof p._id>"u"&&(p._id=U()),this.matchResponsiveRule(p,v)},this),j=Z(...v.map(p=>Q((c||{}).rules||[],P=>P._id===p)).map(p=>p&&p.chartOptions)),j.isResponsiveOptions=!0,v=v.toString()||void 0,v!==(x&&x.ruleIds)&&(x&&this.update(x.undoOptions,L,!0),v?(x=M(j,this.options,!0,this.collectionsWithUpdate),x.isResponsiveOptions=!0,this.currentResponsive={ruleIds:v,mergedOptions:j,undoOptions:x},this.update(j,L,!0)):this.currentResponsive=void 0)}const S=[];z.compose=function(L){return D.pushUnique(S,L)&&H(L.prototype,{matchResponsiveRule:R,setResponsive:y}),L}}(O||(O={})),O}),q(k,"masters/highcharts.src.js",[k["Core/Globals.js"],k["Core/Utilities.js"],k["Core/Defaults.js"],k["Core/Animation/Fx.js"],k["Core/Animation/AnimationUtilities.js"],k["Core/Renderer/HTML/AST.js"],k["Core/Templating.js"],k["Core/Renderer/RendererUtilities.js"],k["Core/Renderer/SVG/SVGElement.js"],k["Core/Renderer/SVG/SVGRenderer.js"],k["Core/Renderer/HTML/HTMLElement.js"],k["Core/Renderer/HTML/HTMLRenderer.js"],k["Core/Axis/Axis.js"],k["Core/Axis/DateTimeAxis.js"],k["Core/Axis/LogarithmicAxis.js"],k["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],k["Core/Axis/Tick.js"],k["Core/Tooltip.js"],k["Core/Series/Point.js"],k["Core/Pointer.js"],k["Core/Legend/Legend.js"],k["Core/Chart/Chart.js"],k["Core/Axis/Stacking/StackingAxis.js"],k["Core/Axis/Stacking/StackItem.js"],k["Core/Series/Series.js"],k["Core/Series/SeriesRegistry.js"],k["Series/Column/ColumnSeries.js"],k["Series/Column/ColumnDataLabel.js"],k["Series/Pie/PieSeries.js"],k["Series/Pie/PieDataLabel.js"],k["Core/Series/DataLabel.js"],k["Core/Responsive.js"],k["Core/Color/Color.js"],k["Core/Time.js"]],function(D,M,H,Q,Z,X,U,O,z,R,y,S,L,j,c,x,v,p,P,w,b,n,a,u,h,d,e,t,i,l,f,_,r,C){return D.animate=Z.animate,D.animObject=Z.animObject,D.getDeferredAnimation=Z.getDeferredAnimation,D.setAnimation=Z.setAnimation,D.stop=Z.stop,D.timers=Q.timers,D.AST=X,D.Axis=L,D.Chart=n,D.chart=n.chart,D.Fx=Q,D.Legend=b,D.PlotLineOrBand=x,D.Point=P,D.Pointer=w,D.Series=h,D.StackItem=u,D.SVGElement=z,D.SVGRenderer=R,D.Templating=U,D.Tick=v,D.Time=C,D.Tooltip=p,D.Color=r,D.color=r.parse,S.compose(R),y.compose(z),w.compose(n),b.compose(n),D.defaultOptions=H.defaultOptions,D.getOptions=H.getOptions,D.time=H.defaultTime,D.setOptions=H.setOptions,D.dateFormat=U.dateFormat,D.format=U.format,D.numberFormat=U.numberFormat,D.addEvent=M.addEvent,D.arrayMax=M.arrayMax,D.arrayMin=M.arrayMin,D.attr=M.attr,D.clearTimeout=M.clearTimeout,D.correctFloat=M.correctFloat,D.createElement=M.createElement,D.css=M.css,D.defined=M.defined,D.destroyObjectProperties=M.destroyObjectProperties,D.discardElement=M.discardElement,D.distribute=O.distribute,D.erase=M.erase,D.error=M.error,D.extend=M.extend,D.extendClass=M.extendClass,D.find=M.find,D.fireEvent=M.fireEvent,D.getMagnitude=M.getMagnitude,D.getStyle=M.getStyle,D.inArray=M.inArray,D.isArray=M.isArray,D.isClass=M.isClass,D.isDOMElement=M.isDOMElement,D.isFunction=M.isFunction,D.isNumber=M.isNumber,D.isObject=M.isObject,D.isString=M.isString,D.keys=M.keys,D.merge=M.merge,D.normalizeTickInterval=M.normalizeTickInterval,D.objectEach=M.objectEach,D.offset=M.offset,D.pad=M.pad,D.pick=M.pick,D.pInt=M.pInt,D.relativeLength=M.relativeLength,D.removeEvent=M.removeEvent,D.seriesType=d.seriesType,D.splat=M.splat,D.stableSort=M.stableSort,D.syncTimeout=M.syncTimeout,D.timeUnits=M.timeUnits,D.uniqueKey=M.uniqueKey,D.useSerialIds=M.useSerialIds,D.wrap=M.wrap,t.compose(e),f.compose(h),j.compose(L),c.compose(L),l.compose(i),x.compose(L),_.compose(n),a.compose(L,n,h),p.compose(w),D}),k["masters/highcharts.src.js"]._modules=k,k["masters/highcharts.src.js"]})}(re)),re.exports}(function(st,Y){(function(q,k){st.exports=k(Fs(),gi)})(window,function(q,k){return M=[function(Q,Z){Q.exports=q},function(Q,Z){Q.exports=k},function(Q,U,X){X.r(U),X.d(U,"Chart",function(){return p}),X.d(U,"default",function(){return P});var U=X(0),O=X.n(U);function z(w,b){return function n(a,u,h){function d(e,t){!O.a.isObject(e,!h)||O.a.isClass(e)||O.a.isDOMElement(e)?a[t]=u[t]:a[t]=n(a[t]||O.a.isArray(e)?[]:{},e,h)}return O.a.isArray(u)?u.forEach(d):O.a.objectEach(u,d),a}({},w,b)}var R=X(1);function y(w){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(w)}function S(w){return function(b){if(Array.isArray(b))return L(b)}(w)||function(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}(w)||function(b,n){var a;if(b)return typeof b=="string"?L(b,n):(a=(a=Object.prototype.toString.call(b).slice(8,-1))==="Object"&&b.constructor?b.constructor.name:a)==="Map"||a==="Set"?Array.from(b):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?L(b,n):void 0}(w)||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 L(w,b){(b==null||b>w.length)&&(b=w.length);for(var n=0,a=new Array(b);n<b;n++)a[n]=w[n];return a}function j(w,b){var n,a=Object.keys(w);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(w),b&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(w,u).enumerable})),a.push.apply(a,n)),a}function c(w){for(var b=1;b<arguments.length;b++){var n=arguments[b]!=null?arguments[b]:{};b%2?j(Object(n),!0).forEach(function(a){var u,h;u=w,h=n[a=a],(a=function(d){return d=function(e,t){if(y(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"),y(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(d,"string"),y(d)==="symbol"?d:String(d)}(a))in u?Object.defineProperty(u,a,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[a]=h}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(a){Object.defineProperty(w,a,Object.getOwnPropertyDescriptor(n,a))})}return w}var x={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(w,b){return b.split(".")[0]<3?c(c({},x),{},{render:function(n){return n("div",{ref:"chart"})},beforeDestroy:function(){this.chart&&this.chart.destroy()},watch:{options:{handler:function(n){var a;(a=this.chart).update.apply(a,[z(n,this.deepCopyOnUpdate)].concat(S(this.updateArgs)))},deep:!0}},mounted:function(){var n=this.highcharts||w;this.options&&n[this.constructorType]?this.chart=n[this.constructorType](this.$refs.chart,z(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({},x),{},{render:function(){return Object(R.h)("div",{ref:"chartContainer"})},setup:function(n){var a=Object(R.ref)(null),u=Object(R.shallowRef)({});return Object(R.onMounted)(function(){var h=n.highcharts||w;n.options&&h[n.constructorType]?u.value=h[n.constructorType](a.value,z(n.options,!0),n.callback||null):n.options?console.warn("'".concat(n.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 n.options},function(h,d){var e;(e=u.value).update.apply(e,[z(h,n.deepCopyOnUpdate)].concat(S(n.updateArgs)))},{deep:!0}),Object(R.onBeforeUnmount)(function(){u.value&&u.value.destroy()}),{chart:u,chartContainer:a,props:n}}})},p=v(O.a,R.version||X.n(R).a.version);function P(w){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};w.component(b.tagName||"highcharts",v(b.highcharts||O.a,w.version))}}],H={},D.m=M,D.c=H,D.d=function(Q,Z,X){D.o(Q,Z)||Object.defineProperty(Q,Z,{enumerable:!0,get:X})},D.r=function(Q){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Q,"__esModule",{value:!0})},D.t=function(Q,Z){if(1&Z&&(Q=D(Q)),8&Z||4&Z&&typeof Q=="object"&&Q&&Q.__esModule)return Q;var X=Object.create(null);if(D.r(X),Object.defineProperty(X,"default",{enumerable:!0,value:Q}),2&Z&&typeof Q!="string")for(var U in Q)D.d(X,U,(function(O){return Q[O]}).bind(null,U));return X},D.n=function(Q){var Z=Q&&Q.__esModule?function(){return Q.default}:function(){return Q};return D.d(Z,"a",Z),Z},D.o=function(Q,Z){return Object.prototype.hasOwnProperty.call(Q,Z)},D.p="",D(D.s=2);function D(Q){var Z;return(H[Q]||(Z=H[Q]={i:Q,l:!1,exports:{}},M[Q].call(Z.exports,Z,Z.exports,D),Z.l=!0,Z)).exports}var M,H})})(Ne);var ne=Ne.exports;const Gs={class:"w-88vw flex flex-col md:w-92vw"},Xs={class:"mx-auto max-w-screen-xl px-4 py-4 lg:px-6 lg:py-6"},Us={class:"lg:grid lg:grid-cols-3 sm:gap-6 xl:gap-10 space-y-8 lg:space-y-0"},Ys={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"},Vs={class:"mb-4 text-2xl font-semibold"},qs={class:"my-8 flex items-baseline justify-center"},Ks={class:"mr-2 text-5xl font-extrabold"},Zs={class:"mt-8 flex flex-col gap-8"},Qs=Dt({__name:"Statistics",props:{rank:null},setup(st){const Y=st,{t:q}=Gt(),k=wt(()=>Y.rank);function D(){const M=[];return M.push({title:"standings.statistics.head_data.problems",data:k.value.contest.problems.length}),M.push({title:"standings.statistics.head_data.teams",data:k.value.teams.length}),M.push({title:"standings.statistics.head_data.submissions",data:k.value.getSubmissions().length}),M}return(M,H)=>(pt(),ft("div",Gs,[lt("section",null,[lt("div",Xs,[lt("div",Us,[(pt(!0),ft(Et,null,It(D(),Q=>(pt(),ft("div",{key:Q.title},[lt("div",Ys,[lt("h3",Vs,vt(nt(q)(Q.title)),1),lt("div",qs,[lt("span",Ks,vt(Q.data),1)])])]))),128))])])]),lt("div",Zs,[lt("div",null,[Pt(nt(ne.Chart),{options:("getSubmitChart"in M?M.getSubmitChart:nt($s))(nt(k))},null,8,["options"])]),lt("div",null,[Pt(nt(ne.Chart),{options:("getProblemChart"in M?M.getProblemChart:nt(Ns))(nt(k))},null,8,["options"])]),lt("div",null,[Pt(nt(ne.Chart),{options:("getTeamChart"in M?M.getTeamChart:nt(Hs))(nt(k))},null,8,["options"])])])]))}}),Js={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"},to={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},eo={class:"font-semibold text-gray-900 dark:text-white"},io={class:"font-semibold text-gray-900 dark:text-white"},so={class:"inline-flex items-stretch font-mono -space-x-px"},oo=lt("span",{class:"sr-only"},"Previous",-1),no=lt("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[lt("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),ro=[oo,no],ao={key:0},lo=["onClick"],ho={"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"},co=["onClick"],uo={key:1},po=lt("span",{class:"sr-only"},"Next",-1),fo=lt("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[lt("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),go=[po,fo],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",mo=Dt({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(st,{emit:Y}){const q=st,k=wt({get(){return q.pagination},set(D){Y("update:pagination",D)}});return(D,M)=>(pt(),ft("nav",Js,[lt("span",to,[Nt(" Showing "),lt("span",eo,vt(nt(k).currentLeft)+"-"+vt(Math.max(0,nt(k).currentRight-1)),1),Nt(" of "),lt("span",io,vt(nt(k).totalSize),1)]),lt("ul",so,[lt("li",null,[lt("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:M[0]||(M[0]=H=>nt(k).onPageChange({diff:-1}))},ro)]),nt(k).currentPage!==0?(pt(),ft("li",ao,[lt("a",{class:Tt(se),hover:"cursor-pointer",onClick:M[1]||(M[1]=H=>nt(k).onPageChange({to:0}))}," 1 ")])):St("",!0),(pt(!0),ft(Et,null,It(nt(k).leftDecrPage,H=>(pt(),ft("li",{key:H},[lt("a",{class:Tt(se),hover:"cursor-pointer",onClick:Q=>nt(k).onPageChange({to:H})},vt(H+1),9,lo)]))),128)),lt("li",null,[lt("a",ho,vt(nt(k).currentPage+1),1)]),(pt(!0),ft(Et,null,It(nt(k).rightIncrPage,H=>(pt(),ft("li",{key:H},[lt("a",{hover:"cursor-pointer",class:Tt(se),onClick:Q=>nt(k).onPageChange({to:H})},vt(H+1),9,co)]))),128)),nt(k).currentPage!==nt(k).totalPage-1&&nt(k).totalPage>1?(pt(),ft("li",uo,[lt("a",{hover:"cursor-pointer",class:Tt(se),onClick:M[2]||(M[2]=H=>nt(k).onPageChange({to:nt(k).totalPage-1}))},vt(nt(k).totalPage),1)])):St("",!0),lt("li",null,[lt("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:M[3]||(M[3]=H=>nt(k).onPageChange({diff:1}))},go)])])]))}});class xo{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 Y=[];let q=1,k=this.currentPage-q;for(;k>0;)Y.push(k),q=q<<1,k-=q;return Y.reverse()}get rightIncrPage(){const Y=[];let q=1,k=this.currentPage+q;for(;k+1<this.totalPage;)Y.push(k),q=q<<1,k+=q;return Y}onPageChange(Y){const q=this.totalPage;let k=this.currentPage;if((Y==null?void 0:Y.to)!==void 0&&(k=Y.to),(Y==null?void 0:Y.diff)!==void 0){const D=Y.diff;k=k+D}k<0||k>=q||(this.currentPage=k)}}const Yt=st=>(Jt("data-v-3e64440f"),st=st(),te(),st),yo={class:"mx-auto w-full","px-4":""},vo={class:"lg:flex-row lg:items-center lg:justify-between space-y-3 lg:space-x-4 lg:space-y-0",flex:"","flex-col":"","px-4":"","py-3":""},ko={class:"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"},bo={key:0,type:"button",class:"flex items-center justify-center rounded-lg bg-primary-700 px-4 py-2 text-sm font-medium text-white dark:bg-primary-600 hover:bg-primary-800 focus:outline-none focus:ring-4 focus:ring-primary-300 dark:hover:bg-primary-700 dark:focus:ring-primary-800"},wo=Yt(()=>lt("svg",{class:"mr-2 h-3.5 w-3.5",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[lt("path",{"clip-rule":"evenodd","fill-rule":"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"})],-1)),So={key:1,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"},Co=Yt(()=>lt("svg",{class:"mr-2 h-4 w-4",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"none",viewbox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[lt("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"})],-1)),Mo={key:2,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"},To=Yt(()=>lt("div",{"i-pajamas-export":"",class:"mr-2 h-4 w-4"},null,-1)),Ao={class:"overflow-x-auto"},Po={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},Oo={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},Lo=Yt(()=>lt("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),_o={key:0,scope:"col",class:"px-4 py-3"},Eo=Yt(()=>lt("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),Do=Yt(()=>lt("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),Io={key:1,scope:"col",class:"px-4 py-3"},jo={key:2,scope:"col",class:"px-4 py-3"},Ro={key:3,scope:"col",class:"px-4 py-3"},Bo=Yt(()=>lt("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),zo={"px-4":"","py-2":""},No={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ho={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},$o={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Wo=Yt(()=>lt("div",{class:"flex items-center"},[lt("div",{class:"mr-2 inline-block h-4 w-4 rounded-full bg-red-700"}),Nt(" 95 ")],-1)),Fo=[Wo],Go={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Xo={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Uo=Yt(()=>lt("div",{class:"flex items-center"},[lt("span",{class:"ml-1 text-gray-500 dark:text-gray-400"},"5.0")],-1)),Yo=[Uo],Vo={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},qo={class:"flex items-center"},Ko=Dt({__name:"SubmissionsTable",props:{rank:null,submissions:null,pageSize:null,removeBorder:{type:Boolean}},setup(st){const Y=st,q=wt(()=>Y.rank),k=wt(()=>Y.submissions.sort(mi.compare).reverse()),D=Ot(new xo);D.value.currentPage=0,D.value.pageSize=Y.pageSize??16,D.value.totalSize=k.value.length,Vt(k,()=>{D.value.totalSize=k.value.length,D.value.currentPage>=D.value.totalPage&&(D.value.currentPage=D.value.totalPage-1)});const M=wt(()=>k.value.slice(D.value.currentLeft,D.value.currentRight)),H=Ot(!1);function Q(U){const O=Math.floor(U/3600),z=Math.floor(U%3600/60),R=U%60,y=S=>S.toString().padStart(2,"0");return`${y(O)}:${y(z)}:${y(R)}`}function Z(U){const O="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",z=U.problemId,R=q.value.contest.problemsMap.get(z);if(R==null||!R.balloonColor)return O}function X(U){const O=U.problemId,z=q.value.contest.problemsMap.get(O);if(z==null||!z.balloonColor)return;const R=z.balloonColor;return{backgroundColor:R.background_color,color:R.color}}return(U,O)=>{const z=mo;return pt(),ft("section",null,[lt("div",yo,[lt("div",{class:Tt(["relative overflow-hidden bg-white dark:bg-gray-800",{"shadow-md":Y.removeBorder!==!0,"sm:rounded-sm":Y.removeBorder!==!0}])},[lt("div",vo,[lt("div",ko,[nt(H)?(pt(),ft("button",bo,[wo,Nt(" Add new product ")])):St("",!0),nt(H)?(pt(),ft("button",So,[Co,Nt(" Update stocks 1/250 ")])):St("",!0),nt(H)?(pt(),ft("button",Mo,[To,Nt(" Export ")])):St("",!0)])]),lt("div",Ao,[lt("table",Po,[lt("thead",Oo,[lt("tr",null,[Lo,nt(q).contest.organization?(pt(),ft("th",_o,vt(nt(q).contest.organization),1)):St("",!0),Eo,Do,nt(H)?(pt(),ft("th",Io," Time ")):St("",!0),nt(H)?(pt(),ft("th",jo," Memory ")):St("",!0),nt(H)?(pt(),ft("th",Ro," Answer ")):St("",!0),Bo])]),lt("tbody",null,[(pt(!0),ft(Et,null,It(nt(M),R=>{var y,S,L;return pt(),ft("tr",{key:R.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[lt("td",zo,[lt("span",{class:Tt(["rounded px-2 py-0.5 text-sm",[Z(R)]]),style:Kt(X(R))},vt((y=nt(q).contest.problemsMap.get(R.problemId))==null?void 0:y.label),7)]),nt(q).contest.organization?(pt(),ft("td",No,vt((S=nt(q).teamsMap.get(R.teamId))==null?void 0:S.organization),1)):St("",!0),lt("td",Ho,vt((L=nt(q).teamsMap.get(R.teamId))==null?void 0:L.name),1),lt("td",{scope:"row",class:Tt([R.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},vt(nt(xi)[R.status]),3),nt(H)?(pt(),ft("td",$o,Fo)):St("",!0),nt(H)?(pt(),ft("td",Go," 0.47 ")):St("",!0),nt(H)?(pt(),ft("td",Xo,Yo)):St("",!0),lt("td",Vo,[lt("div",qo,vt(Q(R.timestamp)),1)])])}),128))])])]),Pt(z,{pagination:nt(D),"onUpdate:pagination":O[0]||(O[0]=R=>zt(D)?D.value=R:null)},null,8,["pagination"])],2)])])}}});const pe=Ut(Ko,[["__scopeId","data-v-3e64440f"]]),fe=st=>(Jt("data-v-e6b57d04"),st=st(),te(),st),Zo={class:"statistics-0"},Qo=["colspan"],Jo={class:"stnd"},tn={class:"statistics-1"},en=["colspan"],sn={class:"stnd"},on=fe(()=>lt("br",null,null,-1)),nn={class:"statistics-0"},rn=["colspan"],an={class:"stnd"},ln=fe(()=>lt("br",null,null,-1)),hn={class:"statistics-1"},cn=["colspan"],dn={class:"stnd"},un=fe(()=>lt("br",null,null,-1)),pn={class:"statistics-0"},fn=["colspan"],gn={class:"stnd"},mn={class:"statistics-1"},xn=["colspan"],yn={class:"stnd"},vn=Dt({__name:"BottomStatistics",props:{rank:null},setup(st){const Y=st,{t:q}=Gt(),k=wt(()=>Y.rank);function D(){let U=3;return k.value.contest.organization&&U++,k.value.contest.badge&&U++,U}function M(U){return U.submittedNum===0?"NaN":`${Math.floor(U.attemptedNum*100/U.submittedNum)}%`}function H(U){return U.submittedNum===0?"NaN":`${Math.floor(U.acceptedNum*100/U.submittedNum)}%`}function Q(U){return U.attemptedNum===0?"NaN":`${U.dirt}%`}function Z(U){return U.firstSolveSubmissions.length===0?"Null":`${Math.floor(U.firstSolveSubmissions[0].timestamp/60)}`}function X(U){return U.lastSolveSubmissions.length===0?"Null":`${Math.floor(U.lastSolveSubmissions[0].timestamp/60)}`}return(U,O)=>(pt(),ft(Et,null,[lt("tr",Zo,[lt("td",{class:"empty",colspan:D()},null,8,Qo),lt("td",Jo,[lt("b",null,vt(nt(q)("standings.statistics.submitted")),1)]),(pt(!0),ft(Et,null,It(nt(k).contest.problems,z=>(pt(),ft("td",{key:z.id,class:"stnd"},[lt("b",null,vt(z.statistics.submittedNum),1)]))),128))]),lt("tr",tn,[lt("td",{class:"empty",colspan:D()},null,8,en),lt("td",sn,[lt("b",null,vt(nt(q)("standings.statistics.attempted")),1)]),(pt(!0),ft(Et,null,It(nt(k).contest.problems,z=>(pt(),ft("td",{key:z.id,class:"stnd"},[lt("b",null,vt(z.statistics.attemptedNum),1),on,lt("b",null," ("+vt(M(z.statistics))+") ",1)]))),128))]),lt("tr",nn,[lt("td",{class:"empty",colspan:D()},null,8,rn),lt("td",an,[lt("b",null,vt(nt(q)("standings.statistics.accepted")),1)]),(pt(!0),ft(Et,null,It(nt(k).contest.problems,z=>(pt(),ft("td",{key:z.id,class:"stnd"},[lt("b",null,vt(z.statistics.acceptedNum),1),ln,lt("b",null," ("+vt(H(z.statistics))+") ",1)]))),128))]),lt("tr",hn,[lt("td",{class:"empty",colspan:D()},null,8,cn),lt("td",dn,[lt("b",null,vt(nt(q)("standings.statistics.dirt")),1)]),(pt(!0),ft(Et,null,It(nt(k).contest.problems,z=>(pt(),ft("td",{key:z.id,class:"stnd"},[lt("b",null,vt(z.statistics.attemptedNum-z.statistics.acceptedNum),1),un,lt("b",null," ("+vt(Q(z.statistics))+") ",1)]))),128))]),lt("tr",pn,[lt("td",{class:"empty",colspan:D()},null,8,fn),lt("td",gn,[lt("b",null,vt(nt(q)("standings.statistics.first_solved")),1)]),(pt(!0),ft(Et,null,It(nt(k).contest.problems,z=>(pt(),ft("td",{key:z.id,class:"stnd"},[lt("b",null,vt(Z(z.statistics)),1)]))),128))]),lt("tr",mn,[lt("td",{class:"empty",colspan:D()},null,8,xn),lt("td",yn,[lt("b",null,vt(nt(q)("standings.statistics.last_solved")),1)]),(pt(!0),ft(Et,null,It(nt(k).contest.problems,z=>(pt(),ft("td",{key:z.id,class:"stnd"},[lt("b",null,vt(X(z.statistics)),1)]))),128))])],64))}});const kn=Ut(vn,[["__scopeId","data-v-e6b57d04"]]),bn={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},wn=Dt({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(st,{emit:Y}){const q=st,k=wt({get(){return q.isHidden},set(Z){Y("update:isHidden",Z)}}),D=wt(()=>q.rank),M=wt(()=>q.team),H=wt(()=>q.p),Q=wt(()=>`${M.value.name} - ${H.value.problem.label}`);return(Z,X)=>{const U=pe,O=de;return pt(),Wt(O,{isHidden:nt(k),"onUpdate:isHidden":X[0]||(X[0]=z=>zt(k)?k.value=z:null),title:nt(Q)},{default:ee(()=>[lt("div",bn,[Pt(U,{"w-full":"",rank:nt(D),submissions:nt(H).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["isHidden","title"])}}}),Sn=st=>(Jt("data-v-dbdd6e30"),st=st(),te(),st),Cn=Sn(()=>lt("br",null,null,-1)),Mn=Dt({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(st){const Y=st,q=Ot(!0);function k(){q.value=!1}const D=wt(()=>Y.rank),M=wt(()=>Y.team),H=wt(()=>Y.p);function Q(U){return U.isSolved?"+":U.isWrongAnswer?"-":U.isPending?`? ${U.pendingCount}`:""}function Z(U){let O="";return U.isUnSubmitted||(O+=`${U.failedCount+Number(U.isSolved)}`),(U.isSolved&&D.value.contest.statusTimeDisplay.correct||U.isPending&&D.value.contest.statusTimeDisplay.pending||U.isWrongAnswer&&D.value.contest.statusTimeDisplay.incorrect)&&(O+=`/${Math.floor(U.lastSubmitTimestamp/60)}`),O}function X(U){return U.isFirstSolved?"first-solve":U.isSolved?"correct":U.isWrongAnswer?"incorrect":U.isPending?"pending":"unattempted"}return(U,O)=>{const z=wn;return pt(),ft("td",{class:Tt(["stnd",[X(nt(H))]])},[lt("div",{"cursor-pointer":"",onClick:k},[Nt(vt(Q(nt(H)))+" ",1),Cn,Nt(" "+vt(Z(nt(H))),1)]),lt("div",null,[nt(q)?St("",!0):(pt(),Wt(z,{key:0,isHidden:nt(q),"onUpdate:isHidden":O[0]||(O[0]=R=>zt(q)?q.value=R:null),rank:nt(D),team:nt(M),p:nt(H)},null,8,["isHidden","rank","team","p"]))])],2)}}});const Tn=Ut(Mn,[["__scopeId","data-v-dbdd6e30"]]),An={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":""},Pn={key:0},On={key:1,flex:"","flex-col":"","gap-2":""},Ln={key:2},_n=Dt({__name:"TeamAwards",props:{team:null,rank:null},setup(st){const Y=st,q=wt(()=>Y.team),k=wt(()=>Y.rank),D=wt(()=>Y.team.problemStatistics.filter(H=>!!H.isFirstSolved).map(H=>H.problem.label).join(",")),M=wt(()=>{const H=Y.team.awards;return H.includes(qt.GOLD)?{text:"Gold"}:H.includes(qt.SILVER)?{text:"Silver"}:H.includes(qt.BRONZE)?{text:"Bronze"}:H.includes(qt.HONORABLE)?{text:"Honorable"}:null});return(H,Q)=>(pt(),ft("div",An,[lt("div",null," Team Rank: "+vt(nt(q).rank),1),nt(q).organization&&nt(q).organizationRank!==-1?(pt(),ft("div",Pn,vt(nt(k).contest.organization)+" Rank: "+vt(nt(q).organizationRank),1)):St("",!0),nt(D).length?(pt(),ft("div",On,[lt("div",null," First Solved Problem "+vt(nt(D)),1)])):St("",!0),nt(M)?(pt(),ft("div",Ln,vt(nt(M).text)+" Medal ",1)):St("",!0)]))}}),En={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},Dn=["onClick"],In=Dt({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(st,{emit:Y}){const q=st,{t:k}=Gt(),D=wt({get(){return q.currentType},set(Q){Y("update:currentType",Q)}});function M(Q){D.value=Q}const H=wt(()=>q.types.length);return(Q,Z)=>(pt(),ft("div",En,[(pt(!0),ft(Et,null,It(q.types,(X,U)=>(pt(),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:Tt({"rounded-t-lg md:rounded-tr-none md:rounded-l-lg":U===0,"rounded-b-lg md:rounded-bl-none md:rounded-r-lg mr-2":U+1===nt(H),border:U===0||U+1===nt(H),"border-t border-x md:border-x-0 md:border-b":U>0&&U+1<nt(H),"md:border-r-0":U===0,"md:border-l":U>0,"z-10 ring-2 ring-primary-700 text-primary-700 dark:ring-primary-600 dark:text-white":nt(D)===X}),onClick:O=>M(X)},vt(nt(k)(`type_menu.${X}`)),11,Dn))),128))]))}}),jn=["src"],He=Dt({__name:"Badge",props:{image:null,widthClass:null},setup(st){const Y=st,q=wt(()=>Y.image),k=wt(()=>Y.widthClass?Y.widthClass:"h-8 w-8");return(D,M)=>nt(q).base64?(pt(),ft("img",{key:0,src:nt(yi)(nt(q)),alt:"badge",class:Tt([nt(k)])},null,10,jn)):St("",!0)}}),Rn={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},Bn={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},zn={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},Nn={flex:"","flex-row":"","space-x-3":""},Hn={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},$n={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},Wn={key:0,"w-full":"",class:"mt-[-12px]"},Fn={key:1,"w-full":""},Gn={key:2,"w-full":""},Ae="submissions",Pe="statistics",Oe="awards",Xn=Dt({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(st,{emit:Y}){const q=st,k=wt({get(){return q.isHidden},set(X){Y("update:isHidden",X)}}),D=Ot("submissions"),M=wt(()=>q.rank),H=wt(()=>q.team),Q=wt(()=>{let X="";return M.value.contest.organization&&H.value.organization.length>0&&(X+=`${H.value.organization} - `),X+=`${H.value.name}`,H.value.members&&(X+=` - ${H.value.members}`),H.value.coach&&(X+=` - ${H.value.coach}(coach)`),X}),Z=[Ae,Pe,Oe];return(X,U)=>{const O=He,z=In,R=pe,y=_n,S=de;return pt(),Wt(S,{isHidden:nt(k),"onUpdate:isHidden":U[1]||(U[1]=L=>zt(k)?k.value=L:null)},{header:ee(()=>[lt("div",Rn,[lt("div",Bn,[lt("div",zn,[lt("div",Nn,[nt(H).badge?(pt(),Wt(O,{key:0,image:nt(H).badge,"width-class":"h-8 w-8"},null,8,["image"])):St("",!0),lt("h3",Hn,vt(nt(Q)),1)]),Pt(z,{"current-type":nt(D),"onUpdate:currentType":U[0]||(U[0]=L=>zt(D)?D.value=L:null),types:Z},null,8,["current-type"])])])])]),default:ee(()=>[lt("div",$n,[nt(D)===Ae?(pt(),ft("div",Wn,[Pt(R,{"w-full":"",rank:nt(M),submissions:nt(H).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):St("",!0),nt(D)===Pe?(pt(),ft("div",Fn,[Pt(nt(ne.Chart),{options:("getTeamPlaceChart"in X?X.getTeamPlaceChart:nt(Ws))(nt(M),nt(H))},null,8,["options"])])):St("",!0),nt(D)===Oe?(pt(),ft("div",Gn,[Pt(y,{team:nt(H),rank:nt(M)},null,8,["team","rank"])])):St("",!0)])]),_:1},8,["isHidden"])}}}),Un={},Yn={class:"color-gray-700 dark:color-gray-200"},Vn=lt("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"},[lt("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"}),lt("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"}),lt("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"}),lt("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),lt("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),lt("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"}),lt("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"}),lt("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"}),lt("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"}),lt("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"}),lt("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"}),lt("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"}),lt("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),qn=[Vn];function Kn(st,Y){return pt(),ft("div",Yn,qn)}const Zn=Ut(Un,[["render",Kn]]),Qn={},Jn={class:"color-gray-700 dark:color-gray-200"},tr=lt("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"},[lt("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),er=[tr];function ir(st,Y){return pt(),ft("div",Jn,er)}const sr=Ut(Qn,[["render",ir]]),or=st=>(Jt("data-v-ed9a9de8"),st=st(),te(),st),nr={key:1,class:"empty flex items-center justify-center"},rr={flex:""},ar={class:"float-left pl-2 font-serif"},lr={key:0},hr={class:"flex-1"},cr=or(()=>lt("div",{class:"float-right"},null,-1)),dr=Dt({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean}},setup(st){const Y=st,q=Ot(null),k=vi(q),D=Ot(!0);function M(){D.value=!1}const H=wt(()=>Y.rank),Q=wt(()=>Y.team);function Z(U,O=!1){if(Y.isFilter)return"filter-team";if(O){if(U.awards.includes(qt.GOLD))return"gold";if(U.awards.includes(qt.SILVER))return"silver";if(U.awards.includes(qt.BRONZE))return"bronze";if(U.awards.includes(qt.HONORABLE))return"honorable"}return`stand${(H.value.rankStatistics.maxSolvedProblems-U.solvedProblemNum)%2}${(U.rank-1)%2}`}function X(){return k.value||Y.ix<32}return(U,O)=>{const z=He,R=sr,y=Zn,S=Xn,L=Tn;return pt(),ft("tr",{ref_key:"el",ref:q,class:Tt(["h-10",[Y.isFilter?"filter-team":""]])},[X()?(pt(),ft("td",{key:0,class:Tt(["stnd",[Z(nt(Q),!0)]])},vt(nt(Q).rank),3)):St("",!0),nt(H).contest.badge&&nt(Q).badge&&X()?(pt(),ft("td",nr,[Pt(z,{image:nt(Q).badge,"width-class":"h-8 w-8"},null,8,["image"])])):St("",!0),nt(H).contest.organization&&X()?(pt(),ft("td",{key:2,class:Tt(["stnd",[Z(nt(Q))]])},[lt("div",rr,[lt("div",ar,[nt(Q).organizationRank>-1?(pt(),ft("div",lr,vt(nt(Q).organizationRank),1)):St("",!0)]),lt("div",hr,vt(nt(Q).organization),1),cr])],2)):St("",!0),X()?(pt(),ft("td",{key:3,class:Tt(["stnd",[Z(nt(Q))]])},[lt("div",{"cursor-pointer":"",onClick:M},[lt("span",null,vt(nt(Q).name),1),nt(Q).group.includes("unofficial")?(pt(),Wt(R,{key:0,"inline-block":""})):St("",!0),nt(Q).group.includes("girl")?(pt(),Wt(y,{key:1,"inline-block":""})):St("",!0)]),lt("div",null,[nt(D)?St("",!0):(pt(),Wt(S,{key:0,isHidden:nt(D),"onUpdate:isHidden":O[0]||(O[0]=j=>zt(D)?D.value=j:null),rank:nt(H),team:nt(Q)},null,8,["isHidden","rank","team"]))])],2)):St("",!0),X()?(pt(),ft("td",{key:4,class:Tt(["stnd",[Z(nt(Q))]])},vt(nt(Q).solvedProblemNum),3)):St("",!0),X()?(pt(),ft("td",{key:5,class:Tt(["stnd",[Z(nt(Q))]])},vt(nt(Q).penaltyToMinute),3)):St("",!0),(pt(!0),ft(Et,null,It(nt(Q).problemStatistics,j=>(pt(),ft(Et,{key:j.problem.id},[X()?(pt(),Wt(L,{key:0,rank:nt(H),team:nt(Q),p:j},null,8,["rank","team","p"])):St("",!0)],64))),128)),X()?(pt(),ft("td",{key:6,class:Tt(["stnd",[Z(nt(Q))]])},vt(`${nt(Q).dirt}%`),3)):St("",!0)],2)}}});const ur=Ut(dr,[["__scopeId","data-v-ed9a9de8"]]),pr=st=>(Jt("data-v-1d18161e"),st=st(),te(),st),fr={class:"standings","font-mono":"","dark:text-gray-700":""},gr={class:"sticky top-0 z-99"},mr={class:"title",style:{width:"3rem"}},xr={key:0,class:"title",style:{width:"2rem"}},yr={class:"title",style:{width:"3rem"}},vr={class:"title",style:{width:"4rem"}},kr=pr(()=>lt("br",null,null,-1)),br={class:"title",style:{width:"2.5rem"}},wr=Dt({__name:"Standings",props:{rank:null},setup(st){const Y=st,{t:q}=Gt(),k=wt(()=>Y.rank),D=wt(()=>Y.rank.teams),M=wt(()=>Y.rank.teams.filter(X=>!!(Y.rank.organizations&&Y.rank.options.filterOrganizationMap.has(X.organization)||Y.rank.options.filterTeamMap.has(X.id)))),H=wt(()=>{let Z=0;return k.value.teams.forEach(X=>{Z=Math.max(Z,X.organization.length)}),Z}),Q=wt(()=>{let Z=0;return k.value.teams.forEach(X=>{Z=Math.max(Z,X.name.length)}),Z});return(Z,X)=>{const U=ur,O=kn;return pt(),ft("div",null,[lt("div",null,[lt("table",fr,[lt("thead",gr,[lt("tr",null,[lt("th",mr,vt(nt(q)("standings.place")),1),nt(k).contest.badge?(pt(),ft("th",xr,vt(nt(k).contest.badge),1)):St("",!0),nt(k).contest.organization?(pt(),ft("th",{key:1,class:"title",style:Kt({width:`${Math.min(32,Math.ceil(nt(H)*1.1))}rem`})},vt(nt(k).contest.organization),5)):St("",!0),lt("th",{class:"title",style:Kt({width:`${Math.min(32,Math.ceil(nt(Q)*1))}rem`})},vt(nt(q)("standings.team")),5),lt("th",yr,vt(nt(q)("standings.solved")),1),lt("th",vr,vt(nt(q)("standings.penalty")),1),(pt(!0),ft(Et,null,It(nt(k).contest.problems,z=>{var R,y;return pt(),ft("th",{key:z.id,class:"success","text-center":"",style:Kt([{width:"3rem"},{"background-color":(R=z.balloonColor)==null?void 0:R.background_color,color:(y=z.balloonColor)==null?void 0:y.color}])},[Nt(vt(z.label)+" ",1),kr,lt("s",null,vt(z.statistics.acceptedNum),1)],4)}),128)),lt("th",br,vt(nt(q)("standings.dirt")),1)])]),lt("tbody",null,[(pt(!0),ft(Et,null,It(nt(M),(z,R)=>(pt(),Wt(U,{key:`filter-${z.id}`,ix:R,rank:nt(k),team:z,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(pt(!0),ft(Et,null,It(nt(D),(z,R)=>(pt(),Wt(U,{key:z.id,ix:R,rank:nt(k),team:z},null,8,["ix","rank","team"]))),128)),Pt(O,{rank:nt(k)},null,8,["rank"])])])])])}}});const Sr=Ut(wr,[["__scopeId","data-v-1d18161e"]]),Cr={"font-mono":"",flex:""},Mr=["onClick"],Tr=["href"],Ar={key:1},Pr=Dt({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(st,{emit:Y}){const q=st,k=wt(()=>{var O;for(const z of q.items)if(z.isDefault)return z.keyword;return(O=q.items)==null?void 0:O[0].keyword}),D=he(q.queryParamName,k.value,{transform:String}),M=wt({get(){return q.currentItem},set(O){Y("update:currentItem",O)}}),{t:H,locale:Q}=Gt();function Z(O){return O.title?H(O.title):O.titles?O.titles.get(Q.value)??O.titles.get(O.defaultLang):""}function X(O){return M.value===O.keyword}function U(O){q.onChange&&q.onChange(O.keyword),!(O.link||O.isModal)&&(M.value=O.keyword,D.value=O.keyword)}return ki(()=>{(()=>{var O;((O=D.value)==null?void 0:O.length)>0&&((()=>{for(const z of q.items)if(z.titles){for(const[R,y]of z.titles)if(D.value===y){D.value=z.keyword;return}}})(),M.value=D.value,q.onChange&&q.onChange(D.value))})()}),(O,z)=>(pt(),ft("div",Cr,[lt("div",{class:Tt(["mr-[-4px]",{"flex-row-reverse":q.reverseOrder}]),flex:""},[(pt(!0),ft(Et,null,It(q.items,R=>(pt(),ft("div",{key:R.keyword,class:Tt(["second-level-menu-item",[X(R)?"second-level-menu-item-current":""]]),onClick:y=>U(R)},[lt("div",null,[R.link?(pt(),ft("a",{key:0,href:R.link,target:"_blank",title:"Resolver"},vt(Z(R)),9,Tr)):St("",!0),R.link?St("",!0):(pt(),ft("div",Ar,vt(Z(R)),1))])],10,Mr))),128))],2)]))}});const Or=Ut(Pr,[["__scopeId","data-v-714a998b"]]);const Lr={},_r={class:"flex items-center justify-center dark:text-black"},Er=bi('<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),Dr=[Er];function Ir(st,Y){return pt(),ft("div",_r,Dr)}const jr=Ut(Lr,[["render",Ir],["__scopeId","data-v-54297ce8"]]),Rr=3,Le=30*1e3;async function Br(st,Y){const q=st.startsWith("/")?st.slice(1):st;let k=`${window.DATA_HOST}${q}`;st.startsWith("http")&&(k=st),k.endsWith("/")&&(k=k.slice(0,-1));const D=await fetch(`${k}/config.json?t=${Y??0}`),M=await fetch(`${k}/team.json?t=${Y??0}`),H=await fetch(`${k}/run.json?t=${Y??0}`);return Promise.all([D.json(),M.json(),H.json()]).then(Z=>({contest:Z[0],teams:Z[1],submissions:Z[2]}))}function zr(st,Y){return $i({queryKey:[st,Y.value.getTime()],queryFn:()=>Br(st,Y.value.getTime()),retry:Rr,staleTime:Le,refetchInterval:Le})}const Nr=st=>(Jt("data-v-91234c6a"),st=st(),te(),st),Hr={key:0},$r={key:0},Wr={key:0},Fr={class:"max-w-[92%]"},Gr=["src"],Xr={class:"max-w-[92%]"},Ur={class:"w-[92%]"},Yr={class:"flex font-bold font-mono"},Vr={class:"float-left"},qr={class:"pl-0.5"},Kr={class:"flex-1"},Zr={class:"float-right"},Qr={class:"pl-0.5"},Jr={class:"mt-2"},ta={class:"mt-2 flex font-bold font-mono"},ea={class:"float-left"},ia={class:"flex-1"},sa={class:"float-right"},oa={class:"mt-4 flex"},na={class:"float-left"},ra=Nr(()=>lt("div",{class:"flex-1"},null,-1)),aa={class:"float-right"},la={class:"max-w-[92%]"},ha={key:0},ca={key:1,class:"w-[88vw]"},da={key:2},ua={key:3},pa={key:4},_e="sm:w-[1280px] xl:w-screen",oe="sm:w-[1260px] xl:w-screen",fa=Dt({__name:"Board",props:{dataSourceUrl:null},setup(st){const Y=st,q=Zt(),k=wi(),{t:D}=Gt(),M=Ot(!1),H=Ot({}),Q=Ot([]),Z=Ot([]),X=Ot({}),U=Ot(new Date),O=Ot(new Si),z=Ot(!1);(()=>{const r=us(),C=ps();r.value.length>0&&O.value.setFilterOrganizations(r.value),C.value.length>0&&O.value.setFilterTeams(C.value)})();const R=Ot("all");function y(r){r!==O.value.group&&O.value.setGroup(r)}(()=>{const r=he("group","all",{transform:String});R.value=r.value,O.value.setGroup(r.value)})();function S(r={force:!1}){if(z.value&&r.force===!1)return;const C=new Li(H.value,Q.value,Z.value);C.options=be.cloneDeep(O.value),C.buildRank(),X.value=C}const{data:L,isError:j,error:c}=zr(Y.dataSourceUrl??q.path,U);Vt(L,async()=>{var r,C,G;L.value===null||L.value===void 0||(H.value=Ci((r=L.value)==null?void 0:r.contest),k.value=`${H.value.name} - XCPCIO Board`,Q.value=Mi((C=L.value)==null?void 0:C.teams),Z.value=Ti((G=L.value)==null?void 0:G.submissions),!O.value.enableFilterSubmissionsByTimestamp&&(S(),M.value=!0))});const x=Ot(!1);Vt(O.value,()=>{if(M.value!==!1){if(!X.value.options.isNeedReBuildRank(O.value)){X.value.options=be.cloneDeep(O.value);return}x.value!==!0&&(x.value=!0,S(),x.value=!1)}});const v=Ot([{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}]),p=wt(()=>X.value.contest.group),P=wt(()=>{const r=Array();for(const[C,G]of p.value){const J={titles:G.names,defaultLang:G.defaultLang,keyword:C,isDefault:G.isDefault};r.push(J)}return r}),w=Ot("rank"),b=Ot(!0);function n(r){r==="options"&&(b.value=!1)}function a(){const r=document.documentElement.scrollHeight||document.body.scrollHeight,C=document.documentElement.scrollTop||document.body.scrollTop,G=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return r-C===G}let u=null;function h(){u!==null&&clearInterval(u)}Ai("S",r=>{if(z.value=!z.value,z.value===!0){let G=0,J="DOWN";u=setInterval(()=>{if(J==="DOWN"){if(a()){J="UP",S({force:!0});return}G+=2}else{if(G===0){J="DOWN",S({force:!0});return}G-=2}window.scrollTo({top:G,behavior:"smooth"})},64)}else h()},{dedupe:!1});const d=wt(()=>{const r=X.value.contest.startTime.format("YYYY-MM-DD HH:mm:ss");return`${D("standings.start_time")}${D("common.colon")}${r}`}),e=wt(()=>{const r=X.value.contest.endTime.format("YYYY-MM-DD HH:mm:ss");return`${D("standings.end_time")}${D("common.colon")}${r}`}),t=wt(()=>{const r=X.value.contest.getContestElapsedTime(U.value);return`${D("standings.elapsed")}${D("common.colon")}${r}`}),i=wt(()=>{const r=X.value.contest.getContestRemainingTime(U.value);return`${D("standings.remaining")}${D("common.colon")}${r}`}),l=wt(()=>X.value.options.enableFilterSubmissionsByTimestamp?Pi.PAUSED:X.value.contest.getContestState()),f=wt(()=>Ie(X.value.options.timestamp)),_=setInterval(()=>{U.value=new Date},1e3);return Oi(()=>{clearInterval(_),h()}),(r,C)=>{var m;const G=_i,J=Ei,rt=jr,B=Or,s=Sr,A=pe,N=Qs,I=zs,K=Cs,o=bs;return pt(),ft("div",null,[nt(M)?St("",!0):(pt(),ft("div",Hr,[lt("div",{class:Tt([_e]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[lt("div",null,vt(nt(D)("common.loading"))+"... ",1),nt(j)?(pt(),ft("div",$r,vt(nt(c)),1)):St("",!0)],2)])),nt(M)?(pt(),ft("div",{key:1,class:Tt([_e]),flex:"","flex-col":"","justify-center":"","items-center":""},[nt(X).contest.banner?(pt(),ft("div",Wr,[lt("div",{class:Tt([oe]),"mb-4":"",flex:"","justify-center":"","items-center":""},[lt("div",Fr,[lt("img",{src:["data:image/png;base64,",(m=nt(X).contest.banner)==null?void 0:m.base64].join(""),alt:"banner"},null,8,Gr)])],2)])):St("",!0),lt("div",{class:Tt(["title",[oe]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":""},[lt("div",Xr,vt(nt(X).contest.name),1)],2),lt("div",{class:Tt([oe]),"mt-4":"",flex:"","flex-row":"","justify-center":""},[lt("div",Ur,[lt("div",Yr,[lt("div",Vr,[Nt(vt(nt(d)),1),lt("sup",qr,vt(nt(X).contest.startTime.format("z")),1)]),lt("div",Kr,[Pt(G,{state:nt(l),"pending-time":nt(X).contest.getContestPendingTime(nt(U)),"paused-time":nt(f)},null,8,["state","pending-time","paused-time"])]),lt("div",Zr,[Nt(vt(nt(e)),1),lt("sup",Qr,vt(nt(X).contest.endTime.format("z")),1)])]),lt("div",Jr,[Pt(J,{"rank-options":nt(O),"onUpdate:rankOptions":C[0]||(C[0]=g=>zt(O)?O.value=g:null),width:nt(X).contest.getContestProgressRatio(nt(U)),state:nt(X).contest.getContestState(nt(U)),"need-scroll":!0,rank:nt(X),"elapsed-time":nt(X).contest.getContestElapsedTime(nt(U))},null,8,["rank-options","width","state","rank","elapsed-time"])]),lt("div",ta,[lt("div",ea,vt(nt(t)),1),lt("div",ia,[Pt(rt)]),lt("div",sa,vt(nt(i)),1)]),lt("div",oa,[lt("div",na,[Pt(B,{"current-item":nt(R),"onUpdate:currentItem":C[1]||(C[1]=g=>zt(R)?R.value=g:null),items:nt(P),"query-param-name":"group","on-change":y},null,8,["current-item","items"])]),ra,lt("div",aa,[Pt(B,{"current-item":nt(w),"onUpdate:currentItem":C[2]||(C[2]=g=>zt(w)?w.value=g:null),items:nt(v),"reverse-order":!0,"query-param-name":"type","on-change":n},null,8,["current-item","items"])])])])],2),lt("div",{"mt-4":"",class:Tt([oe]),flex:"","justify-center":""},[lt("div",la,[nt(w)==="rank"?(pt(),ft("div",ha,[Pt(s,{rank:nt(X)},null,8,["rank"])])):St("",!0),nt(w)==="submissions"?(pt(),ft("div",ca,[Pt(A,{"w-full":"",rank:nt(X),submissions:nt(X).getSubmissions()},null,8,["rank","submissions"])])):St("",!0),nt(w)==="statistics"?(pt(),ft("div",da,[Pt(N,{rank:nt(X)},null,8,["rank"])])):St("",!0),nt(w)==="export"?(pt(),ft("div",ua,[Pt(I,{rank:nt(X)},null,8,["rank"])])):St("",!0),nt(w)==="utility"?(pt(),ft("div",pa,[Pt(K,{rank:nt(X)},null,8,["rank"])])):St("",!0)])],2)],2)):St("",!0),nt(b)?St("",!0):(pt(),Wt(o,{key:2,"is-hidden":nt(b),"onUpdate:isHidden":C[3]||(C[3]=g=>zt(b)?b.value=g:null),"rank-options":nt(O),"onUpdate:rankOptions":C[4]||(C[4]=g=>zt(O)?O.value=g:null),rank:nt(X)},null,8,["is-hidden","rank-options","rank"]))])}}});const $e=Ut(fa,[["__scopeId","data-v-91234c6a"]]),ga={key:0,class:"flex flex-col items-center"},ma={"w-128":""},xa=lt("div",{"py-2":""},null,-1),ya=["disabled"],va={key:1},Ee="Data Source URL",ka=Dt({__name:"CustomBoard",setup(st){const Y=he("data-source","",{transform:String}),{t:q}=Gt(),k=Ot(""),D=je();function M(){k.value&&D.push(`/board/?data-source=${k.value.trim()}`)}return(H,Q)=>{const Z=Ii,X=$e;return nt(Y).length===0?(pt(),ft("div",ga,[lt("div",ma,[Pt(Z,{modelValue:nt(k),"onUpdate:modelValue":Q[0]||(Q[0]=U=>zt(k)?k.value=U:null),"w-full":"",placeholder:Ee,autocomplete:"false",onKeydown:Ht(M,["enter"])},null,8,["modelValue","onKeydown"]),lt("label",{class:"hidden",for:"input"},vt(Ee))]),xa,lt("div",null,[lt("button",{"m-3":"","text-sm":"",btn:"",disabled:!nt(k),onClick:M},vt(nt(q)("button.go")),9,ya)])])):(pt(),ft("div",va,[Pt(X,{"data-source-url":nt(Y)},null,8,["data-source-url"])]))}}}),ba=Dt({__name:"GoBack",setup(st){const Y=je(),{t:q}=Gt();return(k,D)=>{const M=Di("RouterLink");return pt(),ft("div",null,[lt("div",{class:"m-3 text-sm btn",onClick:D[0]||(D[0]=H=>nt(Y).back())},vt(nt(q)("button.back")),1),Pt(M,{class:"m-3 text-sm btn",to:"/"},{default:ee(()=>[Nt(vt(nt(q)("button.home")),1)]),_:1})])}}}),wa={key:0,class:"flex flex-col items-center"},Sa=lt("div",{"text-4xl":""},[lt("div",{"i-carbon-warning":""})],-1),Ca={key:1},Ma={key:2},Ta=Dt({__name:"[...all]",setup(st){const{t:Y}=Gt(),q=Zt(),D=!["camp","icpc","ccpc","provincial-contest","board"].some(H=>q.fullPath.startsWith(`/${H}`)),M=wt(()=>q.fullPath.startsWith("/board"));return(H,Q)=>{const Z=ba,X=ka,U=$e;return pt(),ft(Et,null,[D?(pt(),ft("div",wa,[Sa,Nt(" "+vt(nt(Y)("not-found"))+" ",1),Pt(Z)])):St("",!0),nt(M)?(pt(),ft("div",Ca,[Pt(X)])):(pt(),ft("div",Ma,[Pt(U)]))],64)}}});typeof we=="function"&&we(Ta);export{Ta as default};