@xcpcio/board-app 0.6.3 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +6 -0
- package/LICENSE +1 -1
- package/README.md +13 -30
- package/cypress.config.ts +14 -0
- package/dist/_headers +3 -0
- package/dist/about.html +11 -0
- package/dist/assets/_...all_-27c7ae93.css +1 -0
- package/dist/assets/_...all_-d56798b5.js +3 -0
- package/dist/assets/_name_-8eab6137.js +1 -0
- package/dist/assets/about-a8cb8700.js +11 -0
- package/dist/assets/app-37f77a84.js +65 -0
- package/dist/assets/board-layout-deaedfc1.js +1 -0
- package/dist/assets/en-caedd340.js +1 -0
- package/dist/assets/home-49c336e5.js +1 -0
- package/dist/assets/index-a270cacd.css +5 -0
- package/dist/assets/index-layout-d65c80ea.js +1 -0
- package/dist/assets/test-0a3d6f7a.js +1 -0
- package/dist/assets/user-108782a1.js +1 -0
- package/dist/assets/virtual_pwa-register-1c1b9161.js +1 -0
- package/dist/assets/workbox-window.prod.es5-a7b12eab.js +2 -0
- package/dist/assets/zh-CN-86269804.js +1 -0
- package/dist/favicon-dark.svg +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/index.html +1 -171
- package/dist/manifest.webmanifest +1 -0
- package/dist/pwa-192x192.png +0 -0
- package/dist/pwa-512x512.png +0 -0
- package/dist/robots.txt +4 -0
- package/dist/safari-pinned-tab.svg +41 -0
- package/dist/sitemap.xml +1 -0
- package/dist/ssr-manifest.json +486 -0
- package/dist/sw.js +1 -0
- package/dist/test.html +1 -0
- package/dist/workbox-b8d87ee1.js +1 -0
- package/package.json +94 -50
- package/public/_headers +3 -0
- package/public/favicon-dark.svg +1 -0
- package/public/favicon.svg +1 -0
- package/public/pwa-192x192.png +0 -0
- package/public/pwa-512x512.png +0 -0
- package/public/safari-pinned-tab.svg +41 -0
- package/src/App.vue +33 -0
- package/src/auto-imports.d.ts +909 -0
- package/src/components/ContestIndex.vue +227 -0
- package/src/components/Footer.vue +94 -0
- package/src/components/GoBack.vue +22 -0
- package/src/components/NavBar.vue +152 -0
- package/src/components/SearchInput.vue +50 -0
- package/src/components/TheCounter.vue +19 -0
- package/src/components/TheInput.vue +20 -0
- package/src/components/board/Balloon.vue +5 -0
- package/src/components/board/Board.vue +396 -0
- package/src/components/board/BottomStatistics.vue +159 -0
- package/src/components/board/ContestStateBadge.vue +41 -0
- package/src/components/board/Export.vue +75 -0
- package/src/components/board/Modal.vue +107 -0
- package/src/components/board/ModalMenu.vue +64 -0
- package/src/components/board/OptionsModal.vue +179 -0
- package/src/components/board/Progress.less +442 -0
- package/src/components/board/Progress.vue +229 -0
- package/src/components/board/SecondLevelMenu.vue +190 -0
- package/src/components/board/Standings.less +1162 -0
- package/src/components/board/Standings.vue +154 -0
- package/src/components/board/StandingsAnnotate.vue +38 -0
- package/src/components/board/Statistics.vue +77 -0
- package/src/components/board/SubmissionsTable.vue +312 -0
- package/src/components/board/SubmissionsTableModal.vue +52 -0
- package/src/components/board/TeamAwards.vue +93 -0
- package/src/components/board/TeamInfoModal.vue +128 -0
- package/src/components/board/TeamProblemBlock.vue +100 -0
- package/src/components/board/TeamUI.vue +161 -0
- package/src/components/board/Utility.vue +28 -0
- package/src/components/icon/GirlIcon.vue +80 -0
- package/src/components/icon/RightArrowIcon.vue +26 -0
- package/src/components/icon/StarIcon.vue +19 -0
- package/src/components/table/TablePagination.vue +108 -0
- package/src/components.d.ts +44 -0
- package/src/composables/dark.ts +4 -0
- package/src/composables/pagination.ts +81 -0
- package/src/composables/statistics.ts +280 -0
- package/src/composables/useLocalStorage.ts +29 -0
- package/src/composables/useQueryBoardData.ts +43 -0
- package/src/composables/utils.ts +11 -0
- package/src/layouts/board-layout.vue +14 -0
- package/src/layouts/default.vue +10 -0
- package/src/layouts/home.vue +12 -0
- package/src/layouts/index-layout.vue +15 -0
- package/src/main.ts +36 -0
- package/src/modules/README.md +11 -0
- package/src/modules/i18n.ts +52 -0
- package/src/modules/nprogress.ts +15 -0
- package/src/modules/pinia.ts +18 -0
- package/src/modules/pwa.ts +15 -0
- package/src/modules/toast.ts +10 -0
- package/src/pages/[...all].vue +34 -0
- package/src/pages/about.md +21 -0
- package/src/pages/hi/[name].vue +50 -0
- package/src/pages/index.vue +129 -0
- package/src/pages/test.vue +57 -0
- package/src/shims.d.ts +16 -0
- package/src/stores/user.ts +36 -0
- package/src/styles/color.css +51 -0
- package/src/styles/main.css +30 -0
- package/src/styles/markdown.css +28 -0
- package/src/styles/submission-status.css +123 -0
- package/src/types.ts +3 -0
- package/tsconfig.json +39 -0
- package/uno.config.ts +65 -0
- package/vite.config.ts +176 -0
- package/dist/favicon.ico +0 -0
- package/dist/umi.00ae29f6.js +0 -1
- package/dist/umi.bd64c248.css +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var Re=Object.defineProperty;var Be=(ot,U,K)=>U in ot?Re(ot,U,{enumerable:!0,configurable:!0,writable:!0,value:K}):ot[U]=K;var ee=(ot,U,K)=>(Be(ot,typeof U!="symbol"?U+"":U,K),K);import{S as ze,x as re,y as Ne,z as pe,A as fe,B as He,C as We,D as $e,E as ge,G as Fe,H as Ge,I as Xe,J as Ue,K as Ye,L as wt,M as Ve,N as Vt,O as me,P as qe,Q as Ke,R as Ze,T as Qe,u as at,U as Je,V as ti,g as Dt,W as ei,o as pt,c as ft,d as lt,X as Kt,Y as xe,t as vt,Z as At,$ as Gt,n as Wt,F as _t,a0 as It,a1 as St,a2 as zt,w as ii,v as si,a3 as Zt,a4 as Le,l as Xt,j as Lt,a5 as Ft,a6 as te,b as Pt,i as Nt,a7 as oi,a8 as ni,a9 as ye,aa as Ee,ab as ri,ac as ai,ad as li,ae as hi,af as Qt,ag as Jt,a as Ut,ah as qt,ai as ci,aj as _e,ak as di,s as ui,al as pi,am as fi,an as gi,ao as mi,ap as xi,aq as ve,ar as yi,as as vi,at as ki,au as bi,av as wi,k as Si,r as Ci,p as ke}from"./app-37f77a84.js";class Mi extends ze{constructor(U,K){super(),this.client=U,this.options=K,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(K)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),be(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ae(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ae(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(U,K){const w=this.options,j=this.currentQuery;if(this.options=this.client.defaultQueryOptions(U),re(w,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=w.queryKey),this.updateQuery();const A=this.hasListeners();A&&we(this.currentQuery,j,this.options,w)&&this.executeFetch(),this.updateResult(K),A&&(this.currentQuery!==j||this.options.enabled!==w.enabled||this.options.staleTime!==w.staleTime)&&this.updateStaleTimeout();const $=this.computeRefetchInterval();A&&(this.currentQuery!==j||this.options.enabled!==w.enabled||$!==this.currentRefetchInterval)&&this.updateRefetchInterval($)}getOptimisticResult(U){const K=this.client.getQueryCache().build(this.client,U),w=this.createResult(K,U);return Ai(this,w,U)&&(this.currentResult=w,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),w}getCurrentResult(){return this.currentResult}trackResult(U){const K={};return Object.keys(U).forEach(w=>{Object.defineProperty(K,w,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(w),U[w])})}),K}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:U,...K}={}){return this.fetch({...K,meta:{refetchPage:U}})}fetchOptimistic(U){const K=this.client.defaultQueryOptions(U),w=this.client.getQueryCache().build(this.client,K);return w.isFetchingOptimistic=!0,w.fetch().then(()=>this.createResult(w,K))}fetch(U){var K;return this.executeFetch({...U,cancelRefetch:(K=U.cancelRefetch)!=null?K:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(U){this.updateQuery();let K=this.currentQuery.fetch(this.options,U);return U!=null&&U.throwOnError||(K=K.catch(Ne)),K}updateStaleTimeout(){if(this.clearStaleTimeout(),pe||this.currentResult.isStale||!fe(this.options.staleTime))return;const K=He(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},K)}computeRefetchInterval(){var U;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(U=this.options.refetchInterval)!=null?U:!1}updateRefetchInterval(U){this.clearRefetchInterval(),this.currentRefetchInterval=U,!(pe||this.options.enabled===!1||!fe(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||We.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(U,K){const w=this.currentQuery,j=this.options,A=this.currentResult,$=this.currentResultState,Z=this.currentResultOptions,V=U!==w,tt=V?U.state:this.currentQueryInitialState,Y=V?this.currentResult:this.previousQueryResult,{state:E}=U;let{dataUpdatedAt:N,error:z,errorUpdatedAt:v,fetchStatus:S,status:L}=E,D=!1,d=!1,x;if(K._optimisticResults){const k=this.hasListeners(),n=!k&&be(U,K),a=k&&we(U,w,K,j);(n||a)&&(S=$e(U.options.networkMode)?"fetching":"paused",N||(L="loading")),K._optimisticResults==="isRestoring"&&(S="idle")}if(K.keepPreviousData&&!E.dataUpdatedAt&&Y!=null&&Y.isSuccess&&L!=="error")x=Y.data,N=Y.dataUpdatedAt,L=Y.status,D=!0;else if(K.select&&typeof E.data<"u")if(A&&E.data===($==null?void 0:$.data)&&K.select===this.selectFn)x=this.selectResult;else try{this.selectFn=K.select,x=K.select(E.data),x=ge(A==null?void 0:A.data,x,K),this.selectResult=x,this.selectError=null}catch(k){this.selectError=k}else x=E.data;if(typeof K.placeholderData<"u"&&typeof x>"u"&&L==="loading"){let k;if(A!=null&&A.isPlaceholderData&&K.placeholderData===(Z==null?void 0:Z.placeholderData))k=A.data;else if(k=typeof K.placeholderData=="function"?K.placeholderData():K.placeholderData,K.select&&typeof k<"u")try{k=K.select(k),this.selectError=null}catch(n){this.selectError=n}typeof k<"u"&&(L="success",x=ge(A==null?void 0:A.data,k,K),d=!0)}this.selectError&&(z=this.selectError,x=this.selectResult,v=Date.now(),L="error");const y=S==="fetching",u=L==="loading",M=L==="error";return{status:L,fetchStatus:S,isLoading:u,isSuccess:L==="success",isError:M,isInitialLoading:u&&y,data:x,dataUpdatedAt:N,error:z,errorUpdatedAt:v,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>tt.dataUpdateCount||E.errorUpdateCount>tt.errorUpdateCount,isFetching:y,isRefetching:y&&!u,isLoadingError:M&&E.dataUpdatedAt===0,isPaused:S==="paused",isPlaceholderData:d,isPreviousData:D,isRefetchError:M&&E.dataUpdatedAt!==0,isStale:le(U,K),refetch:this.refetch,remove:this.remove}}updateResult(U){const K=this.currentResult,w=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,re(w,K))return;this.currentResult=w;const j={cache:!0},A=()=>{if(!K)return!0;const{notifyOnChangeProps:$}=this.options,Z=typeof $=="function"?$():$;if(Z==="all"||!Z&&!this.trackedProps.size)return!0;const V=new Set(Z??this.trackedProps);return this.options.useErrorBoundary&&V.add("error"),Object.keys(this.currentResult).some(tt=>{const Y=tt;return this.currentResult[Y]!==K[Y]&&V.has(Y)})};(U==null?void 0:U.listeners)!==!1&&A()&&(j.listeners=!0),this.notify({...j,...U})}updateQuery(){const U=this.client.getQueryCache().build(this.client,this.options);if(U===this.currentQuery)return;const K=this.currentQuery;this.currentQuery=U,this.currentQueryInitialState=U.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(K==null||K.removeObserver(this),U.addObserver(this))}onQueryUpdate(U){const K={};U.type==="success"?K.onSuccess=!U.manual:U.type==="error"&&!Fe(U.error)&&(K.onError=!0),this.updateResult(K),this.hasListeners()&&this.updateTimers()}notify(U){Ge.batch(()=>{if(U.onSuccess){var K,w,j,A;(K=(w=this.options).onSuccess)==null||K.call(w,this.currentResult.data),(j=(A=this.options).onSettled)==null||j.call(A,this.currentResult.data,null)}else if(U.onError){var $,Z,V,tt;($=(Z=this.options).onError)==null||$.call(Z,this.currentResult.error),(V=(tt=this.options).onSettled)==null||V.call(tt,void 0,this.currentResult.error)}U.listeners&&this.listeners.forEach(({listener:Y})=>{Y(this.currentResult)}),U.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Ti(ot,U){return U.enabled!==!1&&!ot.state.dataUpdatedAt&&!(ot.state.status==="error"&&U.retryOnMount===!1)}function be(ot,U){return Ti(ot,U)||ot.state.dataUpdatedAt>0&&ae(ot,U,U.refetchOnMount)}function ae(ot,U,K){if(U.enabled!==!1){const w=typeof K=="function"?K(ot):K;return w==="always"||w!==!1&&le(ot,U)}return!1}function we(ot,U,K,w){return K.enabled!==!1&&(ot!==U||w.enabled===!1)&&(!K.suspense||ot.state.status!=="error")&&le(ot,K)}function le(ot,U){return ot.isStaleByTime(U.staleTime)}function Ai(ot,U,K){return K.keepPreviousData?!1:K.placeholderData!==void 0?U.isPlaceholderData:!re(ot.getCurrentResult(),U)}function Pi(ot=""){var U;if(!((U=Xe())==null?void 0:U.proxy))throw new Error("vue-query hooks can only be used inside setup() function.");const w=Ye(ot),j=Ue(w);if(!j)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return j}function Oi(ot,U,K={},w={}){var j;const A=wt(()=>Li(U,K,w)),$=(j=A.value.queryClient)!=null?j:Pi(A.value.queryClientKey),Z=wt(()=>{const N=$.defaultQueryOptions(A.value);return N._optimisticResults=$.isRestoring.value?"isRestoring":"optimistic",N}),V=new ot($,Z.value),tt=Ve(V.getCurrentResult());let Y=()=>{};Vt($.isRestoring,N=>{N||(Y(),Y=V.subscribe(z=>{me(tt,z)}))},{immediate:!0}),Vt(Z,()=>{V.setOptions(Z.value),me(tt,V.getCurrentResult())}),qe(()=>{Y()});const E=()=>new Promise((N,z)=>{let v=()=>{};const S=()=>{if(Z.value.enabled!==!1){const L=V.getOptimisticResult(Z.value);L.isStale?(v(),V.fetchOptimistic(Z.value).then(N,z)):(v(),N(L))}};S(),v=Vt(Z,S,{deep:!0})});return Vt(()=>tt.error,N=>{if(tt.isError&&!tt.isFetching&&Ke(Z.value.useErrorBoundary,[N,V.getCurrentQuery()]))throw N}),{...Ze(Qe(tt)),suspense:E}}function Li(ot,U={},K={}){const w=at(ot),j=at(U),A=at(K);let $=w;return Je(w)?typeof j=="function"?$={...A,queryKey:w,queryFn:j}:$={...j,queryKey:w}:$=w,ti($)}function Ei(ot,U,K){const w=Oi(Mi,ot,U,K);return{...w,refetch:w.refetch.value,remove:w.remove.value}}const _i={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":""},Ii={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},Di={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},ji={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},Ri=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),Bi=lt("span",{"sr-only":""}," Close modal ",-1),zi=[Ri,Bi],he=Dt({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null},emits:["update:isHidden"],setup(ot,{emit:U}){const K=ot,w=wt({get(){return K.isHidden},set($){U("update:isHidden",$)}});function j(){w.value=!0}const{Escape:A}=ei();return Vt(A,$=>{$&&j()}),($,Z)=>(pt(),ft("div",_i,[lt("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-9998":"",style:Kt({backgroundColor:"rgba(0, 0, 0, 0.5)"}),onClick:j},null,4),lt("div",{class:At(["relative p-4",[K.width??"w-[78%]"]]),"z-9999":""},[lt("div",Ii,[lt("div",Di,[xe($.$slots,"header",{},()=>[lt("h3",ji,vt(K.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:j},zi)]),xe($.$slots,"default")])],2)]))}}),jt={openOptions(ot){ot.$refs.input.focus(),ot.showMenu=!0,ot.mousedownState=!1},blurInput(ot){ot.mousedownState||(ot.searchText="",ot.closeOptions()),ot.$emit("blur")},closeOptions(ot){ot.$refs.input.blur(),ot.showMenu=!1},prevItem(ot){const U=ot.pointer-1,K=ot.$el.offsetHeight*U;U>=0&&(ot.pointer=U),ot.$refs.menu.scrollTop=K},nextItem(ot){const U=ot.pointer+1,K=ot.$el.offsetHeight*U;U<=ot.filteredOptions.length-1&&(ot.pointer=U);const w=ot.$refs.menu.offsetHeight,j=Math.ceil((ot.$refs.menu.scrollTop+ot.$el.offsetHeight)/w),A=Math.ceil(K/w);j!==A&&(ot.$refs.menu.scrollTop=(A-1)*ot.$refs.menu.offsetHeight)},enterItem(ot){const U=ot.filteredOptions[ot.pointer],K=U.disabled;U&&!K&&ot.selectItem(U)},pointerSet(ot,U){ot.pointer=U},pointerAdjust(ot){ot.pointer>=ot.filteredOptions.length-1&&(ot.pointer=ot.filteredOptions.length?ot.filteredOptions.length-1:0)},mousedownItem(ot){ot.mousedownState=!0}};function Ni(ot){return new RegExp(ot.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Ie={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:(ot,U)=>ot.match(Ni(U))}}},De=(ot,U)=>{const K=ot.__vccOpts||ot;for(const[w,j]of U)K[w]=j;return K},Hi={name:"ModelSelect",mixins:[Ie],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(ot){this.pointer=this.filteredOptions.findIndex(U=>U.value===this.optionValue(ot))},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 ot=this.placeholder;return this.selectedOption&&(ot=this.selectedOption.text),ot}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(ot=>this.customAttr(ot))}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(ot=>{try{return this.filterPredicate(ot.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(ot=>ot.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(ot){jt.pointerSet(this,ot)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(ot){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",ot):(this.$emit("update:modelValue",ot.value),ot.value!==void 0&&ot.value===ot.text&&(this.searchText=ot.value))},optionValue(ot){return typeof ot=="object"&&ot!==null?ot.value:ot}}},Wi=lt("i",{class:"dropdown icon"},null,-1),$i=["disabled","tabindex","id","name","value"],Fi=["data-vss-custom-attr"],Gi=["data-vss-custom-attr","onClick","onMouseenter"];function Xi(ot,U,K,w,j,A){return pt(),ft("div",{class:At(["ui fluid search selection dropdown",{"active visible":j.showMenu,error:ot.isError,disabled:ot.isDisabled}]),onClick:U[11]||(U[11]=(...$)=>A.openOptions&&A.openOptions(...$)),onFocus:U[12]||(U[12]=(...$)=>A.openOptions&&A.openOptions(...$))},[Wi,lt("input",{class:"search",autocomplete:"off",disabled:ot.isDisabled,tabindex:ot.isDisabled?-1:0,id:ot.id,name:ot.name,value:j.searchText,onInput:U[0]||(U[0]=$=>j.searchText=$.target.value),ref:"input",onFocus:U[1]||(U[1]=Gt((...$)=>A.openOptions&&A.openOptions(...$),["prevent"])),onKeyup:[U[2]||(U[2]=Wt((...$)=>A.closeOptions&&A.closeOptions(...$),["esc"])),U[7]||(U[7]=Wt(Gt((...$)=>A.enterItem&&A.enterItem(...$),["prevent"]),["enter"]))],onBlur:U[3]||(U[3]=(...$)=>A.blurInput&&A.blurInput(...$)),onKeydown:[U[4]||(U[4]=Wt((...$)=>A.prevItem&&A.prevItem(...$),["up"])),U[5]||(U[5]=Wt((...$)=>A.nextItem&&A.nextItem(...$),["down"])),U[6]||(U[6]=Wt(Gt(()=>{},["prevent"]),["enter"])),U[8]||(U[8]=Wt((...$)=>A.deleteTextOrItem&&A.deleteTextOrItem(...$),["delete"]))]},null,40,$i),lt("div",{class:At(["text",A.textClass]),"data-vss-custom-attr":A.searchTextCustomAttr},vt(A.inputText),11,Fi),lt("div",{class:At(["menu",A.menuClass]),ref:"menu",onMousedown:U[10]||(U[10]=Gt(()=>{},["prevent"])),style:Kt(A.menuStyle),tabindex:"-1"},[(pt(!0),ft(_t,null,It(A.filteredOptions,($,Z)=>(pt(),ft("div",{key:Z,class:At(["item",{selected:$.selected||j.pointer===Z,disabled:$.disabled}]),"data-vss-custom-attr":A.customAttrs[Z]?A.customAttrs[Z]:"",onClick:Gt(V=>A.selectItem($),["stop"]),onMousedown:U[9]||(U[9]=(...V)=>A.mousedownItem&&A.mousedownItem(...V)),onMouseenter:V=>A.pointerSet(Z)},vt($.text),43,Gi))),128))],38)],34)}const Ui=De(Hi,[["render",Xi]]),Yi={name:"MultiSelect",mixins:[Ie],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(ot=>this.selectedOptions.findIndex(U=>U.value===ot.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(ot=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(ot.text),this.searchText):this.filterPredicate(ot.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(ot){jt.pointerSet(this,ot)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(ot){const U=this.selectedOptions.concat(ot),K=U.filter((w,j)=>U.indexOf(w)===j);this.closeOptions(),this.searchText="",this.$emit("select",K,ot,"insert")},deleteItem(ot){const U=this.selectedOptions.filter(K=>K.value!==ot.value);this.$emit("select",U,ot,"delete")},accentsTidy(ot){let U=ot.toString().toLowerCase();return U=U.replace(new RegExp("[àáâãäå]","g"),"a"),U=U.replace(new RegExp("æ","g"),"ae"),U=U.replace(new RegExp("ç","g"),"c"),U=U.replace(new RegExp("[èéêë]","g"),"e"),U=U.replace(new RegExp("[ìíîï]","g"),"i"),U=U.replace(new RegExp("ñ","g"),"n"),U=U.replace(new RegExp("[òóôõö]","g"),"o"),U=U.replace(new RegExp("œ","g"),"oe"),U=U.replace(new RegExp("[ùúûü]","g"),"u"),U=U.replace(new RegExp("[ýÿ]","g"),"y"),U}}},Vi=lt("i",{class:"dropdown icon"},null,-1),qi=["data-vss-custom-attr"],Ki=["onClick"],Zi=["disabled","tabindex","id","name"],Qi=["data-vss-custom-attr","onClick","onMouseenter"];function Ji(ot,U,K,w,j,A){return pt(),ft("div",{class:At(["ui fluid search dropdown selection multiple",{"active visible":j.showMenu,error:ot.isError,disabled:ot.isDisabled}]),onClick:U[11]||(U[11]=(...$)=>A.openOptions&&A.openOptions(...$)),onFocus:U[12]||(U[12]=(...$)=>A.openOptions&&A.openOptions(...$))},[Vi,K.hideSelectedOptions?St("",!0):(pt(!0),ft(_t,{key:0},It(K.selectedOptions,($,Z)=>(pt(),ft("a",{key:Z,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":K.customAttr($)},[zt(vt($.text),1),lt("i",{class:"delete icon",onClick:V=>A.deleteItem($)},null,8,Ki)],8,qi))),128)),ii(lt("input",{class:"search",autocomplete:"off",disabled:ot.isDisabled,tabindex:ot.isDisabled?-1:0,id:ot.id,name:ot.name,"onUpdate:modelValue":U[0]||(U[0]=$=>j.searchText=$),ref:"input",style:Kt(A.inputWidth),onFocus:U[1]||(U[1]=Gt((...$)=>A.openOptions&&A.openOptions(...$),["prevent"])),onKeyup:[U[2]||(U[2]=Wt((...$)=>A.closeOptions&&A.closeOptions(...$),["esc"])),U[7]||(U[7]=Wt(Gt((...$)=>A.enterItem&&A.enterItem(...$),["prevent"]),["enter"]))],onBlur:U[3]||(U[3]=(...$)=>A.blurInput&&A.blurInput(...$)),onKeydown:[U[4]||(U[4]=Wt((...$)=>A.prevItem&&A.prevItem(...$),["up"])),U[5]||(U[5]=Wt((...$)=>A.nextItem&&A.nextItem(...$),["down"])),U[6]||(U[6]=Wt(Gt(()=>{},["prevent"]),["enter"])),U[8]||(U[8]=Wt((...$)=>A.deleteTextOrLastItem&&A.deleteTextOrLastItem(...$),["delete"]))]},null,44,Zi),[[si,j.searchText]]),lt("div",{class:At(["text",A.textClass])},vt(A.inputText),3),lt("div",{class:At(["menu",A.menuClass]),ref:"menu",onMousedown:U[10]||(U[10]=Gt(()=>{},["prevent"])),style:Kt(A.menuStyle),tabindex:"-1"},[(pt(!0),ft(_t,null,It(A.filteredOptions,($,Z)=>(pt(),ft("div",{key:Z,class:At(["item",{selected:$.selected||j.pointer===Z,disabled:$.disabled}]),"data-vss-custom-attr":K.customAttr($),onClick:Gt(V=>A.selectItem($),["stop"]),onMousedown:U[9]||(U[9]=(...V)=>A.mousedownItem&&A.mousedownItem(...V)),onMouseenter:V=>A.pointerSet(Z)},vt($.text),43,Qi))),128))],38)],34)}const Se=De(Yi,[["render",Ji]]);function ts(){return`filter-organizations-${Zt().path}`}function es(){return`filter-teams-${Zt().path}`}function is(){const U=`filter-organizations-${Zt().path}`;return Le(U,[])}function ss(){const U=`filter-teams-${Zt().path}`;return Le(U,[])}const os={"w-full":"","font-bold":"","font-mono":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},ns={key:0,flex:"","flex-col":"","w-full":""},rs={"w-full":"","mt-2":""},as={flex:"","flex-col":"","w-full":""},ls=lt("div",null," Filter Team ",-1),hs={"w-full":"","mt-2":""},cs={"mt-2":"","w-full":"",flex:"","items-center":"","space-x-4":""},ds=Dt({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(ot,{emit:U}){const K=ot,{t:w}=Xt(),j=wt({get(){return K.isHidden},set(y){U("update:isHidden",y)}}),A=wt({get(){return K.rankOptions},set(y){U("update:rankOptions",y)}}),$=wt(()=>K.rank),Z=wt(()=>w("type_menu.options")),V=wt(()=>$.value.organizations.map(u=>({value:u,text:u}))),tt=Lt(A.value.filterOrganizations),Y=Lt({});function E(y,u){tt.value=y,Y.value=u}const N=wt(()=>$.value.originTeams.map(u=>({value:u.id,text:u.organization?`${u.name} - ${u.organization}`:u.name}))),z=Lt(A.value.filterTeams),v=Lt({});function S(y,u){z.value=y,v.value=u}function L(){j.value=!0}const D=ts(),d=es();function x(){A.value.setFilterOrganizations(tt.value),A.value.setFilterTeams(z.value),localStorage.setItem(D,JSON.stringify(tt.value)),localStorage.setItem(d,JSON.stringify(z.value)),L()}return(y,u)=>{const M=he;return pt(),Ft(M,{isHidden:at(j),"onUpdate:isHidden":u[0]||(u[0]=b=>Nt(j)?j.value=b:null),title:at(Z),width:"w-180"},{default:te(()=>[lt("div",os,[at($).contest.organization?(pt(),ft("div",ns,[lt("div",null," Filter "+vt(at($).contest.organization),1),lt("div",rs,[Pt(at(Se),{options:at(V),"selected-options":at(tt),onSelect:E},null,8,["options","selected-options"])])])):St("",!0),lt("div",as,[ls,lt("div",hs,[Pt(at(Se),{options:at(N),"selected-options":at(z),onSelect:S},null,8,["options","selected-options"])])]),lt("div",cs,[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(at(w)("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(at(w)("button.cancel")),1)])])]),_:1},8,["isHidden","title"])}}}),us={flex:"","w-full":"","mt-4":""},ps=["href"],fs=Dt({__name:"Utility",setup(ot){const{t:U}=Xt(),K=Zt(),w=wt(()=>`https://resolver.xcpcio.com/resolver?xcpcio-data-source=${K.path}`);return(j,A)=>(pt(),ft("div",us,[lt("a",{btn:"",href:at(w),target:"_blank",title:"Resolver"},vt(at(U)("type_menu.resolver")),9,ps)]))}});function gs(ot,U){const K=new Blob([ot],{type:"text/plain"}),w=URL.createObjectURL(K),j=document.createElement("a");j.href=w,j.download=U,j.click(),URL.revokeObjectURL(w)}const ms={flex:"","flex-col":""},xs={"w-160":"","font-bold":""},ys={key:0,"mt-8":"",flex:"","flex-row":"","justify-center":"","gap-4":""},vs=Dt({__name:"Export",props:{rank:null},setup(ot){const U=ot,K=oi.useToast(),{copy:w,isSupported:j}=ni(),A=wt(()=>U.rank),$=Lt({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),Z=Lt([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}]);function V(){const Y=ye(A.value);gs(Y,"contest.dat")}function tt(){if(!j.value){K.warning("clipboard is not supported");return}const Y=ye(A.value);w(Y),K.success("Copy Success")}return(Y,E)=>(pt(),ft("div",ms,[lt("div",xs,[Pt(at(Ui),{modelValue:at($),"onUpdate:modelValue":E[0]||(E[0]=N=>Nt($)?$.value=N:null),options:at(Z),placeholder:"Export Type"},null,8,["modelValue","options"])]),at($).value==="cf-dat"?(pt(),ft("div",ys,[lt("button",{btn:"",onClick:E[1]||(E[1]=N=>V())}," Download "),lt("button",{btn:"",onClick:E[2]||(E[2]=N=>tt())}," Copy to Clipboard ")])):St("",!0)]))}});function ce(ot,U,K,w,j,A){return{colors:A,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:ot},xAxis:{categories:w,labels:{style:{fontSize:"16px"}},title:{text:U,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:K,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:j}}function ks(ot){const U=[];ot.contest.problems.forEach((A,$)=>{U.push({problem_id:A.label,index:$,solved:A.statistics.acceptedNum})}),U.sort((A,$)=>A.solved>$.solved?-1:A.solved<$.solved?1:A.index<$.index?-1:A.index>$.index?1:0);const{cat:K,series:w,colors:j}=(()=>{const A=[],$=[];return U.forEach(tt=>{A.push(tt.problem_id),$.push(tt.solved)}),{cat:A,series:[{name:"队伍数",showInLegend:!1,data:$}],colors:["rgb(124, 181, 236)"]}})();return ce("题目通过数统计","题目编号","通过数",K,w,j)}function bs(ot){const U=ot.rankStatistics.teamSolvedNum.map((A,$)=>({index:$,cnt:A})),{cat:K,series:w,colors:j}=(()=>{const A=[],$=[];return U.forEach(tt=>{A.push(tt.index),$.push(tt.cnt)}),{cat:A,series:[{name:"队伍数",showInLegend:!1,data:$}],colors:["rgb(124, 181, 236)"]}})();return ce("队伍过题数统计","过题数","队伍数",K,w,j)}function ws(ot){const{cat:U,series:K,colors:w}=(()=>{const j=[],A=[],$=[],Z=[];return ot.contest.problems.forEach(Y=>{A.push(Y.statistics.acceptedNum),$.push(Y.statistics.rejectedNum),Z.push(Y.statistics.pendingNum),j.push(Y.label)}),{cat:j,series:[{name:"Accepted",showInLegend:!1,data:A},{name:"Rejected",showInLegend:!1,data:$},{name:"Pending",showInLegend:!1,data:Z}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return ce("提交分类统计","题目编号","提交数",U,K,w)}function Ss(ot,U){const K=U.placeChartPoints.map(j=>{var A,$;return{x:j.timePoint,y:j.rank,showX:Ee(j.timePoint),lastSolved:(A=j.lastSolvedProblem)!=null&&A.label?`Last Solved Problem ${($=j.lastSolvedProblem)==null?void 0:$.label}`:""}});return{chart:{type:"spline"},title:{text:"排名变化趋势图"},series:[{showInLegend:!1,allowPointSelect:!1,name:"rank",type:"spline",data:K,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 je={exports:{}},ne={exports:{}},Ce;function Cs(){return Ce||(Ce=1,function(ot){(function(U,K){ot.exports?(K.default=K,ot.exports=U.document?K(U):K):(U.Highcharts&&U.Highcharts.error(16,!0),U.Highcharts=K(U))})(typeof window<"u"?window:ri,function(U){function K(j,A,$,Z){j.hasOwnProperty(A)||(j[A]=Z.apply(null,$),typeof CustomEvent=="function"&&U.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:A,module:j[A]}})))}var w={};return K(w,"Core/Globals.js",[],function(){var j;return function(A){A.SVG_NS="http://www.w3.org/2000/svg",A.product="Highcharts",A.version="11.1.0",A.win=typeof U<"u"?U:{},A.doc=A.win.document,A.svg=A.doc&&A.doc.createElementNS&&!!A.doc.createElementNS(A.SVG_NS,"svg").createSVGRect,A.userAgent=A.win.navigator&&A.win.navigator.userAgent||"",A.isChrome=A.userAgent.indexOf("Chrome")!==-1,A.isFirefox=A.userAgent.indexOf("Firefox")!==-1,A.isMS=/(edge|msie|trident)/i.test(A.userAgent)&&!A.win.opera,A.isSafari=!A.isChrome&&A.userAgent.indexOf("Safari")!==-1,A.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(A.userAgent),A.isWebKit=A.userAgent.indexOf("AppleWebKit")!==-1,A.deg2rad=2*Math.PI/360,A.hasBidiBug=A.isFirefox&&4>parseInt(A.userAgent.split("Firefox/")[1],10),A.hasTouch=!!A.win.TouchEvent,A.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],A.noop=function(){},A.supportsPassiveEvents=function(){let $=!1;if(!A.isMS){const Z=Object.defineProperty({},"passive",{get:function(){$=!0}});A.win.addEventListener&&A.win.removeEventListener&&(A.win.addEventListener("testPassive",A.noop,Z),A.win.removeEventListener("testPassive",A.noop,Z))}return $}(),A.charts=[],A.dateFormats={},A.seriesTypes={},A.symbolSizes={},A.chartCount=0}(j||(j={})),j}),K(w,"Core/Utilities.js",[w["Core/Globals.js"]],function(j){function A(t,i,l,f){const O=i?"Highcharts error":"Highcharts warning";t===32&&(t=`${O}: Deprecated member`);const r=N(t);let P=r?`${O} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(typeof f<"u"){let G="";r&&(P+="?"),M(f,function(Q,nt){G+=`
|
|
2
|
+
- ${nt}: ${Q}`,r&&(P+=encodeURI(nt)+"="+encodeURI(Q))}),P+=G}k(j,"displayError",{chart:l,code:t,message:P,params:f},function(){if(i)throw Error(P);p.console&&A.messages.indexOf(P)===-1&&console.warn(P)}),A.messages.push(P)}function $(t,i){return parseInt(t,i||10)}function Z(t){return typeof t=="string"}function V(t){return t=Object.prototype.toString.call(t),t==="[object Array]"||t==="[object Array Iterator]"}function tt(t,i){return!!t&&typeof t=="object"&&(!i||!V(t))}function Y(t){return tt(t)&&typeof t.nodeType=="number"}function E(t){const i=t&&t.constructor;return!(!tt(t,!0)||Y(t)||!i||!i.name||i.name==="Object")}function N(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function z(t){return typeof t<"u"&&t!==null}function v(t,i,l){const f=Z(i)&&!z(l);let O;const r=(P,G)=>{z(P)?t.setAttribute(G,P):f?(O=t.getAttribute(G))||G!=="class"||(O=t.getAttribute(G+"Name")):t.removeAttribute(G)};return Z(i)?r(l,i):M(i,r),O}function S(t){return V(t)?t:[t]}function L(t,i){let l;t||(t={});for(l in i)t[l]=i[l];return t}function D(){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 d(t,i){j.isMS&&!j.svg&&i&&z(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 y(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function u(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-(u(t,"padding-left",!0)||0)-(u(t,"padding-right",!0)||0))):i==="height"?Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(u(t,"padding-top",!0)||0)-(u(t,"padding-bottom",!0)||0)):((t=p.getComputedStyle(t,void 0))&&(f=t.getPropertyValue(i),D(l,i!=="opacity")&&(f=$(f))),f)}function M(t,i,l){for(const f in t)Object.hasOwnProperty.call(t,f)&&i.call(l||t[f],t[f],f,t)}function b(t,i,l){function f(P,G){const Q=t.removeEventListener;Q&&Q.call(t,P,G,!1)}function O(P){let G,Q;t.nodeName&&(i?(G={},G[i]=!0):G=P,M(G,function(nt,B){if(P[B])for(Q=P[B].length;Q--;)f(B,P[B][Q].fn)}))}var r=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){const P=r.hcEvents;i?(r=P[i]||[],l?(P[i]=r.filter(function(G){return l!==G.fn}),f(i,l)):(O(P),P[i]=[])):(O(P),delete r.hcEvents)}}function k(t,i,l,f){if(l=l||{},a.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==j)){var O=a.createEvent("Events");O.initEvent(i,!0,!0),l=L(O,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}),O=[];let r=t,P=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[i]&&(O.length&&(P=!0),O.unshift.apply(O,r.hcEvents[i])),r=Object.getPrototypeOf(r);P&&O.sort((G,Q)=>G.order-Q.order),O.forEach(G=>{G.fn.call(t,l)===!1&&l.preventDefault()})}f&&!l.defaultPrevented&&f.call(t,l)}const{charts:n,doc:a,win:p}=j;(A||(A={})).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]};M({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){j[i]=function(l){return A(32,!1,void 0,{[`Highcharts.${i}`]:`use Array.${t}`}),Array.prototype[t].apply(l,[].slice.call(arguments,1))}});let c;const e=function(){const t=Math.random().toString(36).substring(2,9)+"-";let i=0;return function(){return"highcharts-"+(c?"":t)+i++}}();return p.jQuery&&(p.jQuery.fn.highcharts=function(){const t=[].slice.call(arguments);if(this[0])return t[0]?(new j[Z(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):n[v(this[0],"data-highcharts-chart")]}),h={addEvent:function(t,i,l,f={}){var O=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(O,"hcEvents")||(O.hcEvents={}),O=O.hcEvents,j.Point&&t instanceof j.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);const r=t.addEventListener;return r&&r.call(t,i,l,j.supportsPassiveEvents?{passive:f.passive===void 0?i.indexOf("touch")!==-1:f.passive,capture:!1}:!1),O[i]||(O[i]=[]),O[i].push({fn:l,order:typeof f.order=="number"?f.order:1/0}),O[i].sort((P,G)=>P.order-G.order),function(){b(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:v,clamp:function(t,i,l){return t>i?t<l?t:l:i},clearTimeout:function(t){z(t)&&clearTimeout(t)},correctFloat:y,createElement:function(t,i,l,f,O){return t=a.createElement(t),i&&L(t,i),O&&d(t,{padding:"0",border:"none",margin:"0"}),l&&d(t,l),f&&f.appendChild(t),t},css:d,defined:z,destroyObjectProperties:function(t,i){M(t,function(l,f){l&&l!==i&&l.destroy&&l.destroy(),delete t[f]})},diffObjects:function(t,i,l,f){function O(P,G,Q,nt){const B=l?G:P;M(P,function(s,T){if(!nt&&f&&-1<f.indexOf(T)&&G[T]){s=S(s),Q[T]=[];for(let R=0;R<Math.max(s.length,G[T].length);R++)G[T][R]&&(s[R]===void 0?Q[T][R]=G[T][R]:(Q[T][R]={},O(s[R],G[T][R],Q[T][R],nt+1)))}else tt(s,!0)&&!s.nodeType?(Q[T]=V(s)?[]:{},O(s,G[T]||{},Q[T],nt+1),Object.keys(Q[T]).length!==0||T==="colorAxis"&&nt===0||delete Q[T]):(P[T]!==G[T]||T in P&&!(T in G))&&(Q[T]=B[T])})}const r={};return O(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:A,extend:L,extendClass:function(t,i){const l=function(){};return l.prototype=new t,L(l.prototype,i),l},find:h,fireEvent:k,getClosestDistance:function(t,i){const l=!i;let f,O,r;return t.forEach(P=>{if(1<P.length)for(r=P.length-1;0<r;r--)O=P[r]-P[r-1],0>O&&!l?(i==null||i(),i=void 0):O&&(typeof f>"u"||O<f)&&(f=O)}),f},getMagnitude:x,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&z(i);){const l=t.shift();if(typeof l>"u"||l==="__proto__")return;if(l==="this"){let f;return tt(i)&&(f=i["@this"]),f??i}if(i=i[l],!z(i)||typeof i=="function"||typeof i.nodeType=="number"||i===p)return}return i},getStyle:u,inArray:function(t,i,l){return A(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 O;for(O=t.options.isInternal?f:0;O<f+1;O++)if(!i[O]||N(l)&&l<D(i[O].options.index,i[O]._i)||i[O].options.isInternal){i.splice(O,0,t);break}return O},isArray:V,isClass:E,isDOMElement:Y,isFunction:function(t){return typeof t=="function"},isNumber:N,isObject:tt,isString:Z,keys:function(t){return A(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){let t,i=arguments,l={};const f=function(r,P){return typeof r!="object"&&(r={}),M(P,function(G,Q){Q!=="__proto__"&&Q!=="constructor"&&(!tt(G,!0)||E(G)||Y(G)?r[Q]=P[Q]:r[Q]=f(r[Q]||{},G))}),r};i[0]===!0&&(l=i[1],i=Array.prototype.slice.call(i,2));const O=i.length;for(t=0;t<O;t++)l=f(l,i[t]);return l},normalizeTickInterval:function(t,i,l,f,O){let r=t;l=D(l,x(t));const P=t/l;for(i||(i=O?[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],!(O&&r*l>=t||!O&&P<=(i[f]+(i[f+1]||i[f]))/2));f++);return r=y(r*l,-Math.round(Math.log(.001)/Math.LN10))},objectEach:M,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+(p.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(p.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,l){return Array((i||2)+1-String(t).replace("-","").length).join(l||"0")+t},pick:D,pInt:$,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:b,splat:S,stableSort:function(t,i){const l=t.length;let f,O;for(O=0;O<l;O++)t[O].safeI=O;for(t.sort(function(r,P){return f=i(r,P),f===0?r.safeI-P.safeI:f}),O=0;O<l;O++)delete t[O].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 c=D(t,c)},wrap:function(t,i,l){const f=t[i];t[i]=function(){const O=arguments,r=this;return l.apply(this,[function(){return f.apply(r,arguments.length?arguments:O)}].concat([].slice.call(arguments)))}}},h}),K(w,"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"}}),K(w,"Core/Color/Color.js",[w["Core/Globals.js"],w["Core/Utilities.js"]],function(j,A){const{isNumber:$,merge:Z,pInt:V}=A;class tt{static parse(E){return E?new tt(E):tt.None}constructor(E){this.rgba=[NaN,NaN,NaN,NaN],this.input=E;const N=j.Color;if(N&&N!==tt)return new N(E);this.init(E)}init(E){let N,z;if(typeof E=="object"&&typeof E.stops<"u")this.stops=E.stops.map(L=>new tt(L[1]));else if(typeof E=="string"){if(this.input=E=tt.names[E.toLowerCase()]||E,E.charAt(0)==="#"){var v=E.length,S=parseInt(E.substr(1),16);v===7?N=[(S&16711680)>>16,(S&65280)>>8,S&255,1]:v===4&&(N=[(S&3840)>>4|(S&3840)>>8,(S&240)>>4|S&240,(S&15)<<4|S&15,1])}if(!N)for(S=tt.parsers.length;S--&&!N;)z=tt.parsers[S],(v=z.regex.exec(E))&&(N=z.parse(v))}N&&(this.rgba=N)}get(E){const N=this.input,z=this.rgba;if(typeof N=="object"&&typeof this.stops<"u"){const v=Z(N);return v.stops=[].slice.call(v.stops),this.stops.forEach((S,L)=>{v.stops[L]=[v.stops[L][0],S.get(E)]}),v}return z&&$(z[0])?E==="rgb"||!E&&z[3]===1?"rgb("+z[0]+","+z[1]+","+z[2]+")":E==="a"?`${z[3]}`:"rgba("+z.join(",")+")":N}brighten(E){const N=this.rgba;if(this.stops)this.stops.forEach(function(z){z.brighten(E)});else if($(E)&&E!==0)for(let z=0;3>z;z++)N[z]+=V(255*E),0>N[z]&&(N[z]=0),255<N[z]&&(N[z]=255);return this}setOpacity(E){return this.rgba[3]=E,this}tweenTo(E,N){const z=this.rgba,v=E.rgba;return!$(z[0])||!$(v[0])?E.input||"none":(E=v[3]!==1||z[3]!==1,(E?"rgba(":"rgb(")+Math.round(v[0]+(z[0]-v[0])*(1-N))+","+Math.round(v[1]+(z[1]-v[1])*(1-N))+","+Math.round(v[2]+(z[2]-v[2])*(1-N))+(E?","+(v[3]+(z[3]-v[3])*(1-N)):"")+")")}}return tt.names={white:"#ffffff",black:"#000000"},tt.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(Y){return[V(Y[1]),V(Y[2]),V(Y[3]),parseFloat(Y[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(Y){return[V(Y[1]),V(Y[2]),V(Y[3]),1]}}],tt.None=new tt(""),tt}),K(w,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),K(w,"Core/Time.js",[w["Core/Globals.js"],w["Core/Utilities.js"]],function(j,A){const{win:$}=j,{defined:Z,error:V,extend:tt,isObject:Y,merge:E,objectEach:N,pad:z,pick:v,splat:S,timeUnits:L}=A,D=j.isSafari&&$.Intl&&$.Intl.DateTimeFormat.prototype.formatRange,d=j.isSafari&&$.Intl&&!$.Intl.DateTimeFormat.prototype.formatRange;class x{constructor(u){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=$.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(u)}get(u,M){if(this.variableTimezone||this.timezoneOffset){const b=M.getTime(),k=b-this.getTimezoneOffset(M);return M.setTime(k),u=M["getUTC"+u](),M.setTime(b),u}return this.useUTC?M["getUTC"+u]():M["get"+u]()}set(u,M,b){if(this.variableTimezone||this.timezoneOffset){if(u==="Milliseconds"||u==="Seconds"||u==="Minutes"&&this.getTimezoneOffset(M)%36e5===0)return M["setUTC"+u](b);var k=this.getTimezoneOffset(M);return k=M.getTime()-k,M.setTime(k),M["setUTC"+u](b),u=this.getTimezoneOffset(M),k=M.getTime()+u,M.setTime(k)}return this.useUTC||D&&u==="FullYear"?M["setUTC"+u](b):M["set"+u](b)}update(u={}){const M=v(u.useUTC,!0);this.options=u=E(!0,this.options,u),this.Date=u.Date||$.Date||Date,this.timezoneOffset=(this.useUTC=M)&&u.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=M&&!(!u.getTimezoneOffset&&!u.timezone)}makeTime(u,M,b,k,n,a){let p,h,c;return this.useUTC?(p=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(p),p+=h,c=this.getTimezoneOffset(p),h!==c?p+=c-h:h-36e5!==this.getTimezoneOffset(p-36e5)||d||(p-=36e5)):p=new this.Date(u,M,v(b,1),v(k,0),v(n,0),v(a,0)).getTime(),p}timezoneOffsetFunction(){const u=this,M=this.options,b=M.getTimezoneOffset,k=M.moment||$.moment;if(!this.useUTC)return function(n){return 6e4*new Date(n.toString()).getTimezoneOffset()};if(M.timezone){if(k)return function(n){return 6e4*-k.tz(n,M.timezone).utcOffset()};V(25)}return this.useUTC&&b?function(n){return 6e4*b(n.valueOf())}:function(){return 6e4*(u.timezoneOffset||0)}}dateFormat(u,M,b){if(!Z(M)||isNaN(M))return j.defaultOptions.lang&&j.defaultOptions.lang.invalidDate||"";u=v(u,"%Y-%m-%d %H:%M:%S");const k=this;var n=new this.Date(M);const a=this.get("Hours",n),p=this.get("Day",n),h=this.get("Date",n),c=this.get("Month",n),e=this.get("FullYear",n),t=j.defaultOptions.lang,i=t&&t.weekdays,l=t&&t.shortWeekdays;return n=tt({a:l?l[p]:i[p].substr(0,3),A:i[p],d:z(h),e:z(h,2," "),w:p,b:t.shortMonths[c],B:t.months[c],m:z(c+1),o:c+1,y:e.toString().substr(2,2),Y:e,H:z(a),k:a,I:z(a%12||12),l:a%12||12,M:z(this.get("Minutes",n)),p:12>a?"AM":"PM",P:12>a?"am":"pm",S:z(n.getSeconds()),L:z(Math.floor(M%1e3),3)},j.dateFormats),N(n,function(f,O){for(;u.indexOf("%"+O)!==-1;)u=u.replace("%"+O,typeof f=="function"?f.call(k,M):f)}),b?u.substr(0,1).toUpperCase()+u.substr(1):u}resolveDTLFormat(u){return Y(u,!0)?u:(u=S(u),{main:u[0],from:u[1],to:u[2]})}getTimeTicks(u,M,b,k){const n=this,a=[],p={};var h=new n.Date(M);const c=u.unitRange,e=u.count||1;let t;if(k=v(k,1),Z(M)){if(n.set("Milliseconds",h,c>=L.second?0:e*Math.floor(n.get("Milliseconds",h)/e)),c>=L.second&&n.set("Seconds",h,c>=L.minute?0:e*Math.floor(n.get("Seconds",h)/e)),c>=L.minute&&n.set("Minutes",h,c>=L.hour?0:e*Math.floor(n.get("Minutes",h)/e)),c>=L.hour&&n.set("Hours",h,c>=L.day?0:e*Math.floor(n.get("Hours",h)/e)),c>=L.day&&n.set("Date",h,c>=L.month?1:Math.max(1,e*Math.floor(n.get("Date",h)/e))),c>=L.month){n.set("Month",h,c>=L.year?0:e*Math.floor(n.get("Month",h)/e));var i=n.get("FullYear",h)}c>=L.year&&n.set("FullYear",h,i-i%e),c===L.week&&(i=n.get("Day",h),n.set("Date",h,n.get("Date",h)-i+k+(i<k?-7:0))),i=n.get("FullYear",h),k=n.get("Month",h);const l=n.get("Date",h),f=n.get("Hours",h);for(M=h.getTime(),!n.variableTimezone&&n.useUTC||!Z(b)||(t=b-M>4*L.month||n.getTimezoneOffset(M)!==n.getTimezoneOffset(b)),M=h.getTime(),h=1;M<b;)a.push(M),M=c===L.year?n.makeTime(i+h*e,0):c===L.month?n.makeTime(i,k+h*e):!t||c!==L.day&&c!==L.week?t&&c===L.hour&&1<e?n.makeTime(i,k,l,f+h*e):M+c*e:n.makeTime(i,k,l+h*e*(c===L.day?1:7)),h++;a.push(M),c<=L.hour&&1e4>a.length&&a.forEach(function(O){O%18e5===0&&n.dateFormat("%H%M%S%L",O)==="000000000"&&(p[O]="day")})}return a.info=tt(u,{higherRanks:p,totalRange:c*e}),a}getDateFormat(u,M,b,k){const n=this.dateFormat("%m-%d %H:%M:%S.%L",M),a={millisecond:15,second:12,minute:9,hour:6,day:3};let p,h="millisecond";for(p in L){if(u===L.week&&+this.dateFormat("%w",M)===b&&n.substr(6)==="00:00:00.000"){p="week";break}if(L[p]>u){p=h;break}if(a[p]&&n.substr(a[p])!=="01-01 00:00:00.000".substr(a[p]))break;p!=="week"&&(h=p)}return this.resolveDTLFormat(k[p]).main}}return x}),K(w,"Core/Defaults.js",[w["Core/Chart/ChartDefaults.js"],w["Core/Color/Color.js"],w["Core/Globals.js"],w["Core/Color/Palettes.js"],w["Core/Time.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V,tt){const{isTouchDevice:Y,svg:E}=$,{merge:N}=tt,z={colors:Z.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:j,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:E,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:Y?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};z.chart.styledMode=!1;const v=new V(z.time);return j={defaultOptions:z,defaultTime:v,getOptions:function(){return z},setOptions:function(S){return N(!0,z,S),(S.time||S.global)&&($.time?$.time.update(N(z.global,z.time,S.global,S.time)):$.time=v),z}},j}),K(w,"Core/Animation/Fx.js",[w["Core/Color/Color.js"],w["Core/Globals.js"],w["Core/Utilities.js"]],function(j,A,$){const{parse:Z}=j,{win:V}=A,{isNumber:tt,objectEach:Y}=$;class E{constructor(z,v,S){this.pos=NaN,this.options=v,this.elem=z,this.prop=S}dSetter(){var z=this.paths;const v=z&&z[0];z=z&&z[1];const S=this.now||0;let L=[];if(S!==1&&v&&z)if(v.length===z.length&&1>S)for(let D=0;D<z.length;D++){const d=v[D],x=z[D],y=[];for(let u=0;u<x.length;u++){const M=d[u],b=x[u];tt(M)&&tt(b)&&(x[0]!=="A"||u!==4&&u!==5)?y[u]=M+S*(b-M):y[u]=b}L.push(y)}else L=z;else L=this.toD||[];this.elem.attr("d",L,void 0,!0)}update(){const z=this.elem,v=this.prop,S=this.now,L=this.options.step;this[v+"Setter"]?this[v+"Setter"]():z.attr?z.element&&z.attr(v,S,null,!0):z.style[v]=S+this.unit,L&&L.call(z,S,this)}run(z,v,S){const L=this,D=L.options,d=function(u){return d.stopped?!1:L.step(u)},x=V.requestAnimationFrame||function(u){setTimeout(u,13)},y=function(){for(let u=0;u<E.timers.length;u++)E.timers[u]()||E.timers.splice(u--,1);E.timers.length&&x(y)};z!==v||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=z,this.end=v,this.unit=S,this.now=this.start,this.pos=0,d.elem=this.elem,d.prop=this.prop,d()&&E.timers.push(d)===1&&x(y)):(delete D.curAnim[this.prop],D.complete&&Object.keys(D.curAnim).length===0&&D.complete.call(this.elem))}step(z){const v=+new Date,S=this.options,L=this.elem,D=S.complete,d=S.duration,x=S.curAnim;let y;return L.attr&&!L.element?z=!1:z||v>=d+this.startTime?(this.now=this.end,this.pos=1,this.update(),y=x[this.prop]=!0,Y(x,function(u){u!==!0&&(y=!1)}),y&&D&&D.call(L),z=!1):(this.pos=S.easing((v-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),z=!0),z}initPath(z,v,S){function L(n,a){for(;n.length<b;){var p=n[0];const h=a[b-n.length];h&&p[0]==="M"&&(n[0]=h[0]==="C"?["C",p[1],p[2],p[1],p[2],p[1],p[2]]:["L",p[1],p[2]]),n.unshift(p),y&&(p=n.pop(),n.push(n[n.length-1],p))}}function D(n,a){for(;n.length<b;)if(a=n[Math.floor(n.length/u)-1].slice(),a[0]==="C"&&(a[1]=a[5],a[2]=a[6]),y){const p=n[Math.floor(n.length/u)].slice();n.splice(n.length/2,0,a,p)}else n.push(a)}const d=z.startX,x=z.endX;S=S.slice();const y=z.isArea,u=y?2:1;let M,b,k;if(v=v&&v.slice(),!v)return[S,S];if(d&&x&&x.length){for(z=0;z<d.length;z++)if(d[z]===x[0]){M=z;break}else if(d[0]===x[x.length-d.length+z]){M=z,k=!0;break}else if(d[d.length-1]===x[x.length-d.length+z]){M=d.length-z;break}typeof M>"u"&&(v=[])}return v.length&&tt(M)&&(b=S.length+M*u,k?(L(v,S),D(S,v)):(L(S,v),D(v,S))),[v,S]}fillSetter(){E.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,Z(this.start).tweenTo(Z(this.end),this.pos),void 0,!0)}}return E.timers=[],E}),K(w,"Core/Animation/AnimationUtilities.js",[w["Core/Animation/Fx.js"],w["Core/Utilities.js"]],function(j,A){function $(L){return N(L)?z({duration:500,defer:0},L):{duration:L?500:0,defer:0}}function Z(L,D){let d=j.timers.length;for(;d--;)j.timers[d].elem!==L||D&&D!==j.timers[d].prop||(j.timers[d].stopped=!0)}const{defined:V,getStyle:tt,isArray:Y,isNumber:E,isObject:N,merge:z,objectEach:v,pick:S}=A;return{animate:function(L,D,d){let x,y="",u,M,b;N(d)||(b=arguments,d={duration:b[2],easing:b[3],complete:b[4]}),E(d.duration)||(d.duration=400),d.easing=typeof d.easing=="function"?d.easing:Math[d.easing]||Math.easeInOutSine,d.curAnim=z(D),v(D,function(k,n){Z(L,n),M=new j(L,d,n),u=void 0,n==="d"&&Y(D.d)?(M.paths=M.initPath(L,L.pathArray,D.d),M.toD=D.d,x=0,u=1):L.attr?x=L.attr(n):(x=parseFloat(tt(L,n))||0,n!=="opacity"&&(y="px")),u||(u=k),typeof u=="string"&&u.match("px")&&(u=u.replace(/px/g,"")),M.run(x,u,y)})},animObject:$,getDeferredAnimation:function(L,D,d){const x=$(D);let y=0,u=0;return(d?[d]:L.series).forEach(M=>{M=$(M.options.animation),y=D&&V(D.defer)?x.defer:Math.max(y,M.duration+M.defer),u=Math.min(x.duration,M.duration)}),L.renderer.forExport&&(y=0),{defer:Math.max(0,y-u),duration:Math.min(y,u)}},setAnimation:function(L,D){D.renderer.globalAnimation=S(L,D.options.chart.animation,!0)},stop:Z}}),K(w,"Core/Renderer/HTML/AST.js",[w["Core/Globals.js"],w["Core/Utilities.js"]],function(j,A){const{SVG_NS:$,win:Z}=j,{attr:V,createElement:tt,css:Y,error:E,isFunction:N,isString:z,objectEach:v,splat:S}=A;({trustedTypes:A}=Z);const L=A&&N(A.createPolicy)&&A.createPolicy("highcharts",{createHTML:y=>y});A=L?L.createHTML(""):"";try{var D=!!new DOMParser().parseFromString(A,"text/html")}catch{D=!1}const d=D;class x{static filterUserAttributes(u){return v(u,(M,b)=>{let k=!0;x.allowedAttributes.indexOf(b)===-1&&(k=!1),["background","dynsrc","href","lowsrc","src"].indexOf(b)!==-1&&(k=z(M)&&x.allowedReferences.some(n=>M.indexOf(n)===0)),k||(E(33,!1,void 0,{"Invalid attribute in config":`${b}`}),delete u[b]),z(M)&&u[b]&&(u[b]=M.replace(/</g,"<"))}),u}static parseStyle(u){return u.split(";").reduce((M,b)=>{b=b.split(":").map(n=>n.trim());const k=b.shift();return k&&b.length&&(M[k.replace(/-([a-z])/g,n=>n[1].toUpperCase())]=b.join(":")),M},{})}static setElementHTML(u,M){u.innerHTML=x.emptyHTML,M&&new x(M).addToDOM(u)}constructor(u){this.nodes=typeof u=="string"?this.parseMarkup(u):u}addToDOM(u){function M(b,k){let n;return S(b).forEach(function(a){var p=a.tagName;const h=a.textContent?j.doc.createTextNode(a.textContent):void 0,c=x.bypassHTMLFiltering;let e;if(p)if(p==="#text")e=h;else if(x.allowedTags.indexOf(p)!==-1||c){p=j.doc.createElementNS(p==="svg"?$:k.namespaceURI||$,p);const t=a.attributes||{};v(a,function(i,l){l!=="tagName"&&l!=="attributes"&&l!=="children"&&l!=="style"&&l!=="textContent"&&(t[l]=i)}),V(p,c?t:x.filterUserAttributes(t)),a.style&&Y(p,a.style),h&&p.appendChild(h),M(a.children||[],p),e=p}else E(33,!1,void 0,{"Invalid tagName in config":p});e&&k.appendChild(e),n=e}),n}return M(this.nodes,u)}parseMarkup(u){const M=[];if(u=u.trim().replace(/ style=(["'])/g," data-style=$1"),d)u=new DOMParser().parseFromString(L?L.createHTML(u):u,"text/html");else{const k=tt("div");k.innerHTML=u,u={body:k}}const b=(k,n)=>{var a=k.nodeName.toLowerCase();const p={tagName:a};if(a==="#text"&&(p.textContent=k.textContent||""),a=k.attributes){const h={};[].forEach.call(a,c=>{c.name==="data-style"?p.style=x.parseStyle(c.value):h[c.name]=c.value}),p.attributes=h}if(k.childNodes.length){const h=[];[].forEach.call(k.childNodes,c=>{b(c,h)}),h.length&&(p.children=h)}n.push(p)};return[].forEach.call(u.body.childNodes,k=>b(k,M)),M}}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=A,x.bypassHTMLFiltering=!1,x}),K(w,"Core/Templating.js",[w["Core/Defaults.js"],w["Core/Utilities.js"]],function(j,A){function $(d="",x,y){const u=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,M=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,b=[],k=/f$/,n=/\.([0-9])/,a=V.lang,p=y&&y.time||tt,h=y&&y.numberFormatter||Z,c=(r="")=>{let P;return r==="true"?!0:r==="false"?!1:(P=Number(r)).toString()===r?P:E(r,x)};let e,t,i=0,l;for(;(e=u.exec(d))!==null;){const r=M.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(D[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 O=t.startInner;O=d.substr(O,e.index-O),t.body===void 0?(t.body=O,t.startInner=e.index+e[0].length):t.elseBody=O,t.find+=O+e[0],f||(b.push(t),t=void 0)}else t.isBlock||b.push(t);if(r&&(t==null||!t.isBlock))break}return b.forEach(r=>{const{body:P,elseBody:G,expression:Q,fn:nt}=r;var B;if(nt){var s=[r],T=Q.split(" ");for(B=D[nt].length;B--;)s.unshift(c(T[B+1]));B=D[nt].apply(x,s),r.isBlock&&typeof B=="boolean"&&(B=$(B?P:G,x))}else s=Q.split(":"),B=c(s.shift()||""),s.length&&typeof B=="number"&&(s=s.join(":"),k.test(s)?(T=parseInt((s.match(n)||["","-1"])[1],10),B!==null&&(B=h(B,T,a.decimalPoint,-1<s.indexOf(",")?a.thousandsSep:""))):B=p.dateFormat(s,B));d=d.replace(r.find,S(B,""))}),l?$(d,x,y):d}function Z(d,x,y,u){d=+d||0,x=+x;const M=V.lang;var b=(d.toString().split(".")[1]||"").split("e")[0].length;const k=d.toString().split("e"),n=x;if(x===-1)x=Math.min(b,20);else if(!z(x))x=2;else if(x&&k[1]&&0>k[1]){var a=x+ +k[1];0<=a?(k[0]=(+k[0]).toExponential(a).split("e")[0],x=a):(k[0]=k[0].split(".")[0]||0,d=20>x?(k[0]*Math.pow(10,k[1])).toFixed(x):0,k[1]=0)}a=(Math.abs(k[1]?k[0]:d)+Math.pow(10,-Math.max(x,b)-1)).toFixed(x),b=String(L(a));const p=3<b.length?b.length%3:0;return y=S(y,M.decimalPoint),u=S(u,M.thousandsSep),d=(0>d?"-":"")+(p?b.substr(0,p)+u:""),d=0>+k[1]&&!n?"0":d+b.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+u),x&&(d+=y+a.slice(-x)),k[1]&&+d!=0&&(d+="e"+k[1]),d}const{defaultOptions:V,defaultTime:tt}=j,{extend:Y,getNestedProperty:E,isArray:N,isNumber:z,isObject:v,pick:S,pInt:L}=A,D={add:(d,x)=>d+x,divide:(d,x)=>x!==0?d/x:"",eq:(d,x)=>d==x,each:function(d){const x=arguments[arguments.length-1];return N(d)?d.map((y,u)=>$(x.body,Y(v(y)?y:{"@this":y},{"@index":u,"@first":u===0,"@last":u===d.length-1}))).join(""):!1},ge:(d,x)=>d>=x,gt:(d,x)=>d>x,if:d=>!!d,le:(d,x)=>d<=x,lt:(d,x)=>d<x,multiply:(d,x)=>d*x,ne:(d,x)=>d!=x,subtract:(d,x)=>d-x,unless:d=>!d};return{dateFormat:function(d,x,y){return tt.dateFormat(d,x,y)},format:$,helpers:D,numberFormat:Z}}),K(w,"Core/Renderer/RendererUtilities.js",[w["Core/Utilities.js"]],function(j){const{clamp:A,pick:$,stableSort:Z}=j;var V;return function(tt){function Y(E,N,z){const v=E;var S=v.reducedLen||N,L=(M,b)=>(b.rank||0)-(M.rank||0);const D=(M,b)=>M.target-b.target;let d,x=!0,y=[],u=0;for(d=E.length;d--;)u+=E[d].size;if(u>S){for(Z(E,L),u=d=0;u<=S;)u+=E[d].size,d++;y=E.splice(d-1,E.length)}for(Z(E,D),E=E.map(M=>({size:M.size,targets:[M.target],align:$(M.align,.5)}));x;){for(d=E.length;d--;)S=E[d],L=(Math.min.apply(0,S.targets)+Math.max.apply(0,S.targets))/2,S.pos=A(L-S.size*S.align,0,N-S.size);for(d=E.length,x=!1;d--;)0<d&&E[d-1].pos+E[d-1].size>E[d].pos&&(E[d-1].size+=E[d].size,E[d-1].targets=E[d-1].targets.concat(E[d].targets),E[d-1].align=.5,E[d-1].pos+E[d-1].size>N&&(E[d-1].pos=N-E[d-1].size),E.splice(d,1),x=!0)}return v.push.apply(v,y),d=0,E.some(M=>{let b=0;return(M.targets||[]).some(()=>(v[d].pos=M.pos+b,typeof z<"u"&&Math.abs(v[d].pos-v[d].target)>z?(v.slice(0,d+1).forEach(k=>delete k.pos),v.reducedLen=(v.reducedLen||N)-.1*N,v.reducedLen>.1*N&&Y(v,N,z),!0):(b+=v[d].size,d++,!1)))}),Z(v,D),v}tt.distribute=Y}(V||(V={})),V}),K(w,"Core/Renderer/SVG/SVGElement.js",[w["Core/Animation/AnimationUtilities.js"],w["Core/Color/Color.js"],w["Core/Globals.js"],w["Core/Utilities.js"]],function(j,A,$,Z){const{animate:V,animObject:tt,stop:Y}=j,{deg2rad:E,doc:N,svg:z,SVG_NS:v,win:S}=$,{addEvent:L,attr:D,createElement:d,css:x,defined:y,erase:u,extend:M,fireEvent:b,isArray:k,isFunction:n,isObject:a,isString:p,merge:h,objectEach:c,pick:e,pInt:t,syncTimeout:i,uniqueKey:l}=Z;class f{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=v}_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,P,G){G.setAttribute(P,r)}add(r){const P=this.renderer,G=this.element;let Q;return r&&(this.parentGroup=r),typeof this.textStr<"u"&&this.element.nodeName==="text"&&P.buildText(this),this.added=!0,(!r||r.handleZ||this.zIndex)&&(Q=this.zIndexSetter()),Q||(r?r.element:P.box).appendChild(G),this.onAdd&&this.onAdd(),this}addClass(r,P){const G=P?"":this.attr("class")||"";return r=(r||"").split(/ /g).reduce(function(Q,nt){return G.indexOf(nt)===-1&&Q.push(nt),Q},G?[G]:[]).join(" "),r!==G&&this.attr("class",r),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(r,P,G){const Q={};var nt=this.renderer,B=nt.alignedObjects,s;let T,R;r?(this.alignOptions=r,this.alignByTranslate=P,(!G||p(G))&&(this.alignTo=s=G||"renderer",u(B,this),B.push(this),G=void 0)):(r=this.alignOptions,P=this.alignByTranslate,s=this.alignTo),G=e(G,nt[s],s==="scrollablePlotBox"?nt.plotBox:void 0,nt),s=r.align;const I=r.verticalAlign;return nt=(G.x||0)+(r.x||0),B=(G.y||0)+(r.y||0),s==="right"?T=1:s==="center"&&(T=2),T&&(nt+=(G.width-(r.width||0))/T),Q[P?"translateX":"x"]=Math.round(nt),I==="bottom"?R=1:I==="middle"&&(R=2),R&&(B+=(G.height-(r.height||0))/R),Q[P?"translateY":"y"]=Math.round(B),this[this.placed?"animate":"attr"](Q),this.placed=!0,this.alignAttr=Q,this}alignSetter(r){const P={left:"start",center:"middle",right:"end"};P[r]&&(this.alignValue=r,this.element.setAttribute("text-anchor",P[r]))}animate(r,P,G){const Q=tt(e(P,this.renderer.globalAnimation,!0));return P=Q.defer,N.hidden&&(Q.duration=0),Q.duration!==0?(G&&(Q.complete=G),i(()=>{this.element&&V(this,r,Q)},P)):(this.attr(r,void 0,G||Q.complete),c(r,function(nt,B){Q.step&&Q.step.call(this,nt,{prop:B,pos:1,elem:this})},this)),this}applyTextOutline(r){const P=this.element;r.indexOf("contrast")!==-1&&(r=r.replace(/contrast/g,this.renderer.getContrast(P.style.fill)));var G=r.split(" ");if(r=G[G.length-1],(G=G[0])&&G!=="none"&&$.svg){this.fakeTS=!0,G=G.replace(/(^[\d\.]+)(.*?)$/g,function(B,s,T){return 2*Number(s)+T}),this.removeTextOutline();const Q=N.createElementNS(v,"tspan");D(Q,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":G,"stroke-linejoin":"round"}),r=P.querySelector("textPath")||P,[].forEach.call(r.childNodes,B=>{const s=B.cloneNode(!0);s.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(T=>s.removeAttribute(T)),Q.appendChild(s)});let nt=0;[].forEach.call(r.querySelectorAll("text tspan"),B=>{nt+=Number(B.getAttribute("dy"))}),G=N.createElementNS(v,"tspan"),G.textContent="",D(G,{x:Number(P.getAttribute("x")),dy:-nt}),Q.appendChild(G),r.insertBefore(Q,r.firstChild)}}attr(r,P,G,Q){const nt=this.element,B=f.symbolCustomAttribs;let s,T,R=this,I,q;return typeof r=="string"&&typeof P<"u"&&(s=r,r={},r[s]=P),typeof r=="string"?R=(this[r+"Getter"]||this._defaultGetter).call(this,r,nt):(c(r,function(o,g){I=!1,Q||Y(this,g),this.symbolName&&B.indexOf(g)!==-1&&(T||(this.symbolAttr(r),T=!0),I=!0),!this.rotation||g!=="x"&&g!=="y"||(this.doTransform=!0),I||(q=this[g+"Setter"]||this._defaultSetter,q.call(this,o,g,nt))},this),this.afterSetters()),G&&G.call(this),R}clip(r){return this.attr("clip-path",r?"url("+this.renderer.url+"#"+r.id+")":"none")}crisp(r,P){P=P||r.strokeWidth||0;const G=Math.round(P)%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),y(r.strokeWidth)&&(r.strokeWidth=P),r}complexColor(r,P,G){const Q=this.renderer;let nt,B,s,T,R,I,q,o,g,m,W=[],F;b(this.renderer,"complexColor",{args:arguments},function(){if(r.radialGradient?B="radialGradient":r.linearGradient&&(B="linearGradient"),B){if(s=r[B],R=Q.gradients,I=r.stops,g=G.radialReference,k(s)&&(r[B]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),B==="radialGradient"&&g&&!y(s.gradientUnits)&&(T=s,s=h(s,Q.getRadialAttr(g,T),{gradientUnits:"userSpaceOnUse"})),c(s,function(H,it){it!=="id"&&W.push(it,H)}),c(I,function(H){W.push(H)}),W=W.join(","),R[W])m=R[W].attr("id");else{s.id=m=l();const H=R[W]=Q.createElement(B).attr(s).add(Q.defs);H.radAttr=T,H.stops=[],I.forEach(function(it){it[1].indexOf("rgba")===0?(nt=A.parse(it[1]),q=nt.get("rgb"),o=nt.get("a")):(q=it[1],o=1),it=Q.createElement("stop").attr({offset:it[0],"stop-color":q,"stop-opacity":o}).add(H),H.stops.push(it)})}F="url("+Q.url+"#"+m+")",G.setAttribute(P,F),G.gradient=W,r.toString=function(){return F}}})}css(r){const P=this.styles,G={},Q=this.element;let nt,B=!P;if(P&&c(r,function(s,T){P&&P[T]!==s&&(G[T]=s,B=!0)}),B){P&&(r=M(P,G)),r.width===null||r.width==="auto"?delete this.textWidth:Q.nodeName.toLowerCase()==="text"&&r.width&&(nt=this.textWidth=t(r.width)),this.styles=r,nt&&!z&&this.renderer.forExport&&delete r.width;const s=h(r);Q.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(T=>s&&delete s[T]),s.color&&(s.fill=s.color)),x(Q,s)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),r.textOutline&&this.applyTextOutline(r.textOutline)),this}dashstyleSetter(r){let P=this["stroke-width"];if(P==="inherit"&&(P=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(P,NaN);r=G.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",r)}}destroy(){const r=this;var P=r.element||{};const G=r.renderer;var Q=P.ownerSVGElement;let nt=P.nodeName==="SPAN"&&r.parentGroup||void 0;if(P.onclick=P.onmouseout=P.onmouseover=P.onmousemove=P.point=null,Y(r),r.clipPath&&Q){const B=r.clipPath;[].forEach.call(Q.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(Q=0;Q<r.stops.length;Q++)r.stops[Q].destroy();r.stops.length=0,r.stops=void 0}for(r.safeRemoveChild(P);nt&&nt.div&&nt.div.childNodes.length===0;)P=nt.parentGroup,r.safeRemoveChild(nt.div),delete nt.div,nt=P;r.alignTo&&u(G.alignedObjects,r),c(r,function(B,s){r[s]&&r[s].parentGroup===r&&r[s].destroy&&r[s].destroy(),delete r[s]})}dSetter(r,P,G){k(r)&&(typeof r[0]=="string"&&(r=this.renderer.pathToSegments(r)),this.pathArray=r,r=r.reduce((Q,nt,B)=>nt&&nt.join?(B?Q+" ":"")+nt.join(" "):(nt||"").toString(),"")),/(NaN| {2}|^$)/.test(r)&&(r="M 0 0"),this[P]!==r&&(G.setAttribute(P,r),this[P]=r)}fadeOut(r){const P=this;P.animate({opacity:0},{duration:e(r,150),complete:function(){P.hide()}})}fillSetter(r,P,G){typeof r=="string"?G.setAttribute(P,r):r&&this.complexColor(r,P,G)}getBBox(r,P){const{alignValue:G,element:Q,renderer:nt,styles:B,textStr:s}=this,{cache:T,cacheKeys:R}=nt;var I=Q.namespaceURI===this.SVG_NS;P=e(P,this.rotation,0);var q=nt.styledMode?Q&&f.prototype.getStyle.call(Q,"font-size"):B&&B.fontSize;let o,g;if(y(s)&&(g=s.toString(),g.indexOf("<")===-1&&(g=g.replace(/[0-9]/g,"0")),g+=["",nt.rootFontSize,q,P,this.textWidth,G,B&&B.textOverflow,B&&B.fontWeight].join()),g&&!r&&(o=T[g]),!o){if(I||nt.forExport){try{var m=this.fakeTS&&function(st){const rt=Q.querySelector(".highcharts-text-outline");rt&&x(rt,{display:st})};n(m)&&m("none"),o=Q.getBBox?M({},Q.getBBox()):{width:Q.offsetWidth,height:Q.offsetHeight,x:0,y:0},n(m)&&m("")}catch{}(!o||0>o.width)&&(o={x:0,y:0,width:0,height:0})}else o=this.htmlGetBBox();if(m=o.width,r=o.height,I&&(o.height=r={"11px,17":14,"13px,20":16}[`${q||""},${Math.round(r)}`]||r),P){I=Number(Q.getAttribute("y")||0)-o.y,q={right:1,center:.5}[G||0]||0;var W=P*E,F=(P-90)*E,H=m*Math.cos(W);P=m*Math.sin(W);var it=Math.cos(F);W=Math.sin(F),m=o.x+q*(m-H)+I*it,F=m+H,it=F-r*it,H=it-H,I=o.y+I-q*P+I*W,q=I+P,r=q-r*W,P=r-P,o.x=Math.min(m,F,it,H),o.y=Math.min(I,q,r,P),o.width=Math.max(m,F,it,H)-o.x,o.height=Math.max(I,q,r,P)-o.y}}if(g&&(s===""||0<o.height)){for(;250<R.length;)delete T[R.shift()];T[g]||R.push(g),T[g]=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,P){this.element=P==="span"?d(P):N.createElementNS(this.SVG_NS,P),this.renderer=r,b(this,"afterInit")}on(r,P){const{onEvents:G}=this;return G[r]&&G[r](),G[r]=L(this.element,r,P),this}opacitySetter(r,P,G){this.opacity=r=Number(Number(r).toFixed(3)),G.setAttribute(P,r)}removeClass(r){return this.attr("class",(""+this.attr("class")).replace(p(r)?new RegExp(`(^| )${r}( |$)`):r," ").replace(/ +/g," ").trim())}removeTextOutline(){const r=this.element.querySelector("tspan.highcharts-text-outline");r&&this.safeRemoveChild(r)}safeRemoveChild(r){const P=r.parentNode;P&&P.removeChild(r)}setRadialReference(r){const P=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=r,P&&P.radAttr&&P.animate(this.renderer.getRadialAttr(r,P.radAttr)),this}setTextPath(r,P){P=h(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},P);const G=this.renderer.url,Q=this.text||this,nt=Q.textPath,{attributes:B,enabled:s}=P;return r=r||nt&&nt.path,nt&&nt.undo(),r&&s?(P=L(Q,"afterModifyTree",T=>{if(r&&s){let I=r.attr("id");I||r.attr("id",I=l());var R={x:0,y:0};y(B.dx)&&(R.dx=B.dx,delete B.dx),y(B.dy)&&(R.dy=B.dy,delete B.dy),Q.attr(R),this.attr({transform:""}),this.box&&(this.box=this.box.destroy()),R=T.nodes.slice(0),T.nodes.length=0,T.nodes[0]={tagName:"textPath",attributes:M(B,{"text-anchor":B.textAnchor,href:`${G}#${I}`}),children:R}}}),Q.textPath={path:r,undo:P}):(Q.attr({dx:0,dy:0}),delete Q.textPath),this.added&&(Q.textCache="",this.renderer.buildText(Q)),this}shadow(r){var P;const{renderer:G}=this,Q=h(((P=this.parentGroup)===null||P===void 0?void 0:P.rotation)===90?{offsetX:-1,offsetY:-1}:{},a(r)?r:{});return P=G.shadowDefinition(Q),this.attr({filter:r?`url(${G.url}#${P})`:"none"})}show(r=!0){return this.attr({visibility:r?"inherit":"visible"})}"stroke-widthSetter"(r,P,G){this[P]=r,G.setAttribute(P,r)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const r=this.getStyle("stroke-width");let P=0,G;return r.indexOf("px")===r.length-2?P=t(r):r!==""&&(G=N.createElementNS(v,"rect"),D(G,{width:r,"stroke-width":0}),this.element.parentNode.appendChild(G),P=G.getBBox().width,G.parentNode.removeChild(G)),P}symbolAttr(r){const P=this;f.symbolCustomAttribs.forEach(function(G){P[G]=e(r[G],P[G])}),P.attr({d:P.renderer.symbols[P.symbolName](P.x,P.y,P.width,P.height,P)})}textSetter(r){r!==this.textStr&&(delete this.textPxLength,this.textStr=r,this.added&&this.renderer.buildText(this))}titleSetter(r){const P=this.element,G=P.getElementsByTagName("title")[0]||N.createElementNS(this.SVG_NS,"title");P.insertBefore?P.insertBefore(G,P.firstChild):P.appendChild(G),G.textContent=String(e(r,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}toFront(){const r=this.element;return r.parentNode.appendChild(r),this}translate(r,P){return this.attr({translateX:r,translateY:P})}updateTransform(){const{element:r,matrix:P,rotation:G=0,scaleX:Q,scaleY:nt,translateX:B=0,translateY:s=0}=this,T=["translate("+B+","+s+")"];y(P)&&T.push("matrix("+P.join(",")+")"),G&&T.push("rotate("+G+" "+e(this.rotationOriginX,r.getAttribute("x"),0)+" "+e(this.rotationOriginY,r.getAttribute("y")||0)+")"),(y(Q)||y(nt))&&T.push("scale("+e(Q,1)+" "+e(nt,1)+")"),T.length&&!(this.text||this).textPath&&r.setAttribute("transform",T.join(" "))}visibilitySetter(r,P,G){r==="inherit"?G.removeAttribute(P):this[P]!==r&&G.setAttribute(P,r),this[P]=r}xGetter(r){return this.element.nodeName==="circle"&&(r==="x"?r="cx":r==="y"&&(r="cy")),this._defaultGetter(r)}zIndexSetter(r,P){var G=this.renderer,Q=this.parentGroup;const nt=(Q||G).element||G.box,B=this.element;G=nt===G.box;let s=!1,T;var R=this.added;let I;if(y(r)?(B.setAttribute("data-z-index",r),r=+r,this[P]===r&&(R=!1)):y(this[P])&&B.removeAttribute("data-z-index"),this[P]=r,R){for((r=this.zIndex)&&Q&&(Q.handleZ=!0),P=nt.childNodes,I=P.length-1;0<=I&&!s;I--)Q=P[I],R=Q.getAttribute("data-z-index"),T=!y(R),Q!==B&&(0>r&&T&&!G&&!I?(nt.insertBefore(B,P[I]),s=!0):(t(R)<=r||T&&(!y(r)||0<=r))&&(nt.insertBefore(B,P[I+1]),s=!0));s||(nt.insertBefore(B,P[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(O,r){this[r]=O,this.doTransform=!0},f}),K(w,"Core/Renderer/RendererRegistry.js",[w["Core/Globals.js"]],function(j){var A;return function($){$.rendererTypes={};let Z;$.getRendererType=function(V=Z){return $.rendererTypes[V]||$.rendererTypes[Z]},$.registerRendererType=function(V,tt,Y){$.rendererTypes[V]=tt,(!Z||Y)&&(Z=V,j.Renderer=tt)}}(A||(A={})),A}),K(w,"Core/Renderer/SVG/SVGLabel.js",[w["Core/Renderer/SVG/SVGElement.js"],w["Core/Utilities.js"]],function(j,A){const{defined:$,extend:Z,isNumber:V,merge:tt,pick:Y,removeEvent:E}=A;class N extends j{constructor(v,S,L,D,d,x,y,u,M,b){super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(v,"g"),this.textStr=S,this.x=L,this.y=D,this.anchorX=x,this.anchorY=y,this.baseline=M,this.className=b,this.addClass(b==="button"?"highcharts-no-tooltip":"highcharts-label"),b&&this.addClass("highcharts-"+b),this.text=v.text(void 0,0,0,u).attr({zIndex:1});let k;typeof d=="string"&&((k=/^url\((.*?)\)$/.test(d))||this.renderer.symbols[d])&&(this.symbolKey=d),this.bBox=N.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=v.styledMode||k,this.deferredAttr={},this.alignFactor=0}alignSetter(v){v={left:0,center:.5,right:1}[v],v!==this.alignFactor&&(this.alignFactor=v,this.bBox&&V(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(v,S){this.anchorX=v,this.boxAttr(S,Math.round(v)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(v,S){this.anchorY=v,this.boxAttr(S,v-this.ySetting)}boxAttr(v,S){this.box?this.box.attr(v,S):this.deferredAttr[v]=S}css(v){if(v){const S={};v=tt(v),N.textProps.forEach(L=>{typeof v[L]<"u"&&(S[L]=v[L],delete v[L])}),this.text.css(S),"fontSize"in S||"fontWeight"in S?this.updateTextPadding():("width"in S||"textOverflow"in S)&&this.updateBoxSize()}return j.prototype.css.call(this,v)}destroy(){E(this.element,"mouseenter"),E(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),j.prototype.destroy.call(this)}fillSetter(v,S){v&&(this.needsBox=!0),this.fill=v,this.boxAttr(S,v)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const v=this.padding,S=Y(this.paddingLeft,v);return{width:this.width,height:this.height,x:this.bBox.x-S,y:this.bBox.y-v}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(v){this.heightSetting=v}onAdd(){this.text.add(this),this.attr({text:Y(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&$(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(v,S){V(v)?v!==this[S]&&(this[S]=v,this.updateTextPadding()):this[S]=void 0}rSetter(v,S){this.boxAttr(S,v)}strokeSetter(v,S){this.stroke=v,this.boxAttr(S,v)}"stroke-widthSetter"(v,S){v&&(this.needsBox=!0),this["stroke-width"]=v,this.boxAttr(S,v)}"text-alignSetter"(v){this.textAlign=v}textSetter(v){typeof v<"u"&&this.text.attr({text:v}),this.updateTextPadding()}updateBoxSize(){var v=this.text;const S={},L=this.padding,D=this.bBox=V(this.widthSetting)&&V(this.heightSetting)&&!this.textAlign||!$(v.textStr)?N.emptyBBox:v.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||D.height||0)+2*L;const d=this.renderer.fontMetrics(v);this.baselineOffset=L+Math.min((this.text.firstLineMetrics||d).b,D.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-d.h)/2),this.needsBox&&!v.textPath&&(this.box||(v=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),v.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),v.add(this)),v=this.getCrispAdjust(),S.x=v,S.y=(this.baseline?-this.baselineOffset:0)+v,S.width=Math.round(this.width),S.height=Math.round(this.height),this.box.attr(Z(S,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const v=this.text;if(!v.textPath){this.updateBoxSize();const S=this.baseline?0:this.baselineOffset;let L=Y(this.paddingLeft,this.padding);$(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(L+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(L!==v.x||S!==v.y)&&(v.attr("x",L),v.hasBoxWidthChanged&&(this.bBox=v.getBBox(!0)),typeof S<"u"&&v.attr("y",S)),v.x=L,v.y=S}}widthSetter(v){this.widthSetting=V(v)?v:void 0}getPaddedWidth(){var v=this.padding;const S=Y(this.paddingLeft,v);return v=Y(this.paddingRight,v),(this.widthSetting||this.bBox.width||0)+S+v}xSetter(v){this.x=v,this.alignFactor&&(v-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(v),this.attr("translateX",this.xSetting)}ySetter(v){this.ySetting=this.y=Math.round(v),this.attr("translateY",this.ySetting)}}return N.emptyBBox={width:0,height:0,x:0,y:0},N.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),N}),K(w,"Core/Renderer/SVG/Symbols.js",[w["Core/Utilities.js"]],function(j){function A(E,N,z,v,S){const L=[];if(S){const D=S.start||0,d=Y(S.r,z);z=Y(S.r,v||z),v=(S.end||0)-.001;const x=S.innerR,y=Y(S.open,.001>Math.abs((S.end||0)-D-2*Math.PI)),u=Math.cos(D),M=Math.sin(D),b=Math.cos(v),k=Math.sin(v),n=Y(S.longArc,.001>v-D-Math.PI?0:1);let a=["A",d,z,0,n,Y(S.clockwise,1),E+d*b,N+z*k];a.params={start:D,end:v,cx:E,cy:N},L.push(["M",E+d*u,N+z*M],a),V(x)&&(a=["A",x,x,0,n,V(S.clockwise)?1-S.clockwise:0,E+x*u,N+x*M],a.params={start:v,end:D,cx:E,cy:N},L.push(y?["M",E+x*b,N+x*k]:["L",E+x*b,N+x*k],a)),y||L.push(["Z"])}return L}function $(E,N,z,v,S){return S&&S.r?Z(E,N,z,v,S):[["M",E,N],["L",E+z,N],["L",E+z,N+v],["L",E,N+v],["Z"]]}function Z(E,N,z,v,S){return S=(S==null?void 0:S.r)||0,[["M",E+S,N],["L",E+z-S,N],["A",S,S,0,0,1,E+z,N+S],["L",E+z,N+v-S],["A",S,S,0,0,1,E+z-S,N+v],["L",E+S,N+v],["A",S,S,0,0,1,E,N+v-S],["L",E,N+S],["A",S,S,0,0,1,E+S,N],["Z"]]}const{defined:V,isNumber:tt,pick:Y}=j;return{arc:A,callout:function(E,N,z,v,S){const L=Math.min(S&&S.r||0,z,v),D=L+6,d=S&&S.anchorX;S=S&&S.anchorY||0;const x=Z(E,N,z,v,{r:L});return tt(d)&&(E+d>=z?S>N+D&&S<N+v-D?x.splice(3,1,["L",E+z,S-6],["L",E+z+6,S],["L",E+z,S+6],["L",E+z,N+v-L]):x.splice(3,1,["L",E+z,v/2],["L",d,S],["L",E+z,v/2],["L",E+z,N+v-L]):0>=E+d?S>N+D&&S<N+v-D?x.splice(7,1,["L",E,S+6],["L",E-6,S],["L",E,S-6],["L",E,N+L]):x.splice(7,1,["L",E,v/2],["L",d,S],["L",E,v/2],["L",E,N+L]):S&&S>v&&d>E+D&&d<E+z-D?x.splice(5,1,["L",d+6,N+v],["L",d,N+v+6],["L",d-6,N+v],["L",E+L,N+v]):S&&0>S&&d>E+D&&d<E+z-D&&x.splice(1,1,["L",d-6,N],["L",d,N-6],["L",d+6,N],["L",z-L,N])),x},circle:function(E,N,z,v){return A(E+z/2,N+v/2,z/2,v/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(E,N,z,v){return[["M",E+z/2,N],["L",E+z,N+v/2],["L",E+z/2,N+v],["L",E,N+v/2],["Z"]]},rect:$,roundedRect:Z,square:$,triangle:function(E,N,z,v){return[["M",E+z/2,N],["L",E+z,N+v],["L",E,N+v],["Z"]]},"triangle-down":function(E,N,z,v){return[["M",E,N],["L",E+z,N],["L",E+z/2,N+v],["Z"]]}}}),K(w,"Core/Renderer/SVG/TextBuilder.js",[w["Core/Renderer/HTML/AST.js"],w["Core/Globals.js"],w["Core/Utilities.js"]],function(j,A,$){const{doc:Z,SVG_NS:V,win:tt}=A,{attr:Y,extend:E,fireEvent:N,isString:z,objectEach:v,pick:S}=$;class L{constructor(d){const x=d.styles;this.renderer=d.renderer,this.svgElement=d,this.width=d.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 d=this.svgElement,x=d.element;var y=d.renderer,u=S(d.textStr,"").toString();const M=u.indexOf("<")!==-1,b=x.childNodes;y=!d.added&&y.box;const k=/<br.*?>/g;var n=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,d.getStyle("font-size"),this.width].join();if(n!==d.textCache){for(d.textCache=n,delete d.actualWidth,n=b.length;n--;)x.removeChild(b[n]);M||this.ellipsis||this.width||d.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||k.test(u))?u!==""&&(y&&y.appendChild(x),u=new j(u),this.modifyTree(u.nodes),u.addToDOM(x),this.modifyDOM(),this.ellipsis&&(x.textContent||"").indexOf("…")!==-1&&d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),y&&y.removeChild(x)):x.appendChild(Z.createTextNode(this.unescapeEntities(u))),z(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}}modifyDOM(){const d=this.svgElement,x=Y(d.element,"x");d.firstLineMetrics=void 0;let y;for(;(y=d.element.firstChild)&&/^[\s\u200B]*$/.test(y.textContent||" ");)d.element.removeChild(y);[].forEach.call(d.element.querySelectorAll("tspan.highcharts-br"),(k,n)=>{k.nextSibling&&k.previousSibling&&(n===0&&k.previousSibling.nodeType===1&&(d.firstLineMetrics=d.renderer.fontMetrics(k.previousSibling)),Y(k,{dy:this.getLineHeight(k.nextSibling),x}))});const u=this.width||0;if(u){var M=(k,n)=>{var a=k.textContent||"";const p=a.replace(/([^\^])-/g,"$1- ").split(" ");var h=!this.noWrap&&(1<p.length||1<d.element.childNodes.length);const c=this.getLineHeight(n);let e=0,t=d.actualWidth;if(this.ellipsis)a&&this.truncate(k,a,void 0,0,Math.max(0,u-.8*c),(i,l)=>i.substring(0,l)+"…");else if(h){for(a=[],h=[];n.firstChild&&n.firstChild!==k;)h.push(n.firstChild),n.removeChild(n.firstChild);for(;p.length;)p.length&&!this.noWrap&&0<e&&(a.push(k.textContent||""),k.textContent=p.join(" ").replace(/- /g,"-")),this.truncate(k,void 0,p,e===0&&t||0,u,(i,l)=>p.slice(0,l).join(" ").replace(/- /g,"-")),t=d.actualWidth,e++;h.forEach(i=>{n.insertBefore(i,k)}),a.forEach(i=>{n.insertBefore(Z.createTextNode(i),k),i=Z.createElementNS(V,"tspan"),i.textContent="",Y(i,{dy:c,x}),n.insertBefore(i,k)})}},b=k=>{[].slice.call(k.childNodes).forEach(n=>{n.nodeType===tt.Node.TEXT_NODE?M(n,k):(n.className.baseVal.indexOf("highcharts-br")!==-1&&(d.actualWidth=0),b(n))})};b(d.element)}}getLineHeight(d){return d=d.nodeType===tt.Node.TEXT_NODE?d.parentElement:d,this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(d||this.svgElement.element).h}modifyTree(d){const x=(y,u)=>{const{attributes:M={},children:b,style:k={},tagName:n}=y,a=this.renderer.styledMode;n==="b"||n==="strong"?a?M.class="highcharts-strong":k.fontWeight="bold":(n==="i"||n==="em")&&(a?M.class="highcharts-emphasized":k.fontStyle="italic"),k&&k.color&&(k.fill=k.color),n==="br"?(M.class="highcharts-br",y.textContent="",(u=d[u+1])&&u.textContent&&(u.textContent=u.textContent.replace(/^ +/gm,""))):n==="a"&&b&&b.some(p=>p.tagName==="#text")&&(y.children=[{children:b,tagName:"tspan"}]),n!=="#text"&&n!=="a"&&(y.tagName="tspan"),E(y,{attributes:M,style:k}),b&&b.filter(p=>p.tagName!=="#text").forEach(x)};d.forEach(x),N(this.svgElement,"afterModifyTree",{nodes:d})}truncate(d,x,y,u,M,b){const k=this.svgElement,{rotation:n}=k,a=[];let p=y?1:0,h=(x||y||"").length,c=h,e,t;const i=function(l,f){if(l=f||l,(f=d.parentNode)&&typeof a[l]>"u"&&f.getSubStringLength)try{a[l]=u+f.getSubStringLength(0,y?l+1:l)}catch{}return a[l]};if(k.rotation=0,t=i(d.textContent.length),u+t>M){for(;p<=h;)c=Math.ceil((p+h)/2),y&&(e=b(y,c)),t=i(c,e&&e.length-1),p===h?p=h+1:t>M?h=c-1:p=c;h===0?d.textContent="":x&&h===x.length-1||(d.textContent=e||b(x||y,c))}y&&y.splice(0,c),k.actualWidth=t,k.rotation=n}unescapeEntities(d,x){return v(this.renderer.escapes,function(y,u){x&&x.indexOf(y)!==-1||(d=d.toString().replace(new RegExp(y,"g"),u))}),d}}return L}),K(w,"Core/Renderer/SVG/SVGRenderer.js",[w["Core/Renderer/HTML/AST.js"],w["Core/Color/Color.js"],w["Core/Globals.js"],w["Core/Renderer/RendererRegistry.js"],w["Core/Renderer/SVG/SVGElement.js"],w["Core/Renderer/SVG/SVGLabel.js"],w["Core/Renderer/SVG/Symbols.js"],w["Core/Renderer/SVG/TextBuilder.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V,tt,Y,E,N){const{charts:z,deg2rad:v,doc:S,isFirefox:L,isMS:D,isWebKit:d,noop:x,SVG_NS:y,symbolSizes:u,win:M}=$,{addEvent:b,attr:k,createElement:n,css:a,defined:p,destroyObjectProperties:h,extend:c,isArray:e,isNumber:t,isObject:i,isString:l,merge:f,pick:O,pInt:r,uniqueKey:P}=N;let G;class Q{constructor(B,s,T,R,I,q,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,T,R,I,q,o)}init(B,s,T,R,I,q,o){const g=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),m=g.element;o||g.css(this.getStyle(R)),B.appendChild(m),k(B,"dir","ltr"),B.innerHTML.indexOf("xmlns")===-1&&k(m,"xmlns",this.SVG_NS),this.box=m,this.boxWrapper=g,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=q,this.forExport=I,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=g.getStyle("font-size"),this.setSize(s,T,!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=b(M,"resize",s))}definition(B){return new j([B]).addToDOM(this.defs.element)}getReferenceURL(){if((L||d)&&S.getElementsByTagName("base").length){if(!p(G)){var B=P();B=new j([{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 M.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(B){return this.style=c({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(R=>B[R])].join("-").replace(/[^a-z0-9\-]/g,""),T=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:T.offsetX,dy:T.offsetY,"flood-color":T.color,"flood-opacity":Math.min(5*T.opacity,1),stdDeviation:T.width/2}}]}),s}buildText(B){new E(B).buildSVG()}getContrast(B){return B=A.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,T,R,I={},q,o,g,m,W){const F=this.label(B,s,T,m,void 0,void 0,W,void 0,"button"),H=this.styledMode;B=I.states||{};let it=0;I=f(I),delete I.states;const st=f({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},I.style);delete I.style;let rt=j.filterUserAttributes(I);F.attr(f({padding:8,r:2},rt));let ht,ut,_;return H||(rt=f({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},rt),q=f(rt,{fill:"#e6e6e6"},j.filterUserAttributes(q||B.hover||{})),ht=q.style,delete q.style,o=f(rt,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},j.filterUserAttributes(o||B.select||{})),ut=o.style,delete o.style,g=f(rt,{style:{color:"#cccccc"}},j.filterUserAttributes(g||B.disabled||{})),_=g.style,delete g.style),b(F.element,D?"mouseover":"mouseenter",function(){it!==3&&F.setState(1)}),b(F.element,D?"mouseout":"mouseleave",function(){it!==3&&F.setState(it)}),F.setState=function(C){C!==1&&(F.state=it=C),F.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][C||0]),H||(F.attr([rt,q,o,g][C||0]),C=[st,ht,ut,_][C||0],i(C)&&F.css(C))},H||(F.attr(rt).css(c({cursor:"default"},st)),W&&F.text.css({pointerEvents:"none"})),F.on("touchstart",C=>C.stopPropagation()).on("click",function(C){it!==3&&R.call(F,C)})}crispLine(B,s,T="round"){const R=B[0],I=B[1];return p(R[1])&&R[1]===I[1]&&(R[1]=I[1]=Math[T](R[1])-s%2/2),p(R[2])&&R[2]===I[2]&&(R[2]=I[2]=Math[T](R[2])+s%2/2),B}path(B){const s=this.styledMode?{}:{fill:"none"};return e(B)?s.d=B:i(B)&&c(s,B),this.createElement("path").attr(s)}circle(B,s,T){return B=i(B)?B:typeof B>"u"?{}:{x:B,y:s,r:T},s=this.createElement("circle"),s.xSetter=s.ySetter=function(R,I,q){q.setAttribute("c"+I,R)},s.attr(B)}arc(B,s,T,R,I,q){return i(B)?(R=B,s=R.y,T=R.r,B=R.x):R={innerR:R,start:I,end:q},B=this.symbol("arc",B,s,T,T,R),B.r=T,B}rect(B,s,T,R,I,q){B=i(B)?B:typeof B>"u"?{}:{x:B,y:s,r:I,width:Math.max(T||0,0),height:Math.max(R||0,0)};const o=this.createElement("rect");return this.styledMode||(typeof q<"u"&&(B["stroke-width"]=q,c(B,o.crisp(B))),B.fill="none"),o.rSetter=function(g,m,W){o.r=g,k(W,{rx:g,ry:g})},o.rGetter=function(){return o.r||0},o.attr(B)}roundedRect(B){return this.symbol("roundedRect").attr(B)}setSize(B,s,T){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:O(T,!0)?void 0:0}),this.alignElements()}g(B){const s=this.createElement("g");return B?s.attr({class:"highcharts-"+B}):s}image(B,s,T,R,I,q){const o={preserveAspectRatio:"none"};t(s)&&(o.x=s),t(T)&&(o.y=T),t(R)&&(o.width=R),t(I)&&(o.height=I);const g=this.createElement("image").attr(o);return s=function(m){g.attr({href:B}),q.call(g,m)},q?(g.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),T=new M.Image,b(T,"load",s),T.src=B,T.complete&&s({})):g.attr({href:B}),g}symbol(B,s,T,R,I,q){const o=this,g=/^url\((.*?)\)$/,m=g.test(B),W=!m&&(this.symbols[B]?B:"circle"),F=W&&this.symbols[W];let H,it,st,rt;if(F)typeof s=="number"&&(it=F.call(this.symbols,Math.round(s||0),Math.round(T||0),R||0,I||0,q)),H=this.path(it),o.styledMode||H.attr("fill","none"),c(H,{symbolName:W||void 0,x:s,y:T,width:R,height:I}),q&&c(H,q);else if(m){st=B.match(g)[1];const ht=H=this.image(st);ht.imgwidth=O(q&&q.width,u[st]&&u[st].width),ht.imgheight=O(q&&q.height,u[st]&&u[st].height),rt=ut=>ut.attr({width:ut.width,height:ut.height}),["width","height"].forEach(function(ut){ht[ut+"Setter"]=function(_,C){this[C]=_;const{alignByTranslate:J,element:X,width:et,height:dt,imgwidth:ct,imgheight:xt}=this;if(_=this["img"+C],p(_)){let yt=1;q&&q.backgroundSize==="within"&&et&&dt?(yt=Math.min(et/ct,dt/xt),k(X,{width:Math.round(ct*yt),height:Math.round(xt*yt)})):X&&X.setAttribute(C,_),J||this.translate(((et||0)-ct*yt)/2,((dt||0)-xt*yt)/2)}}}),p(s)&&ht.attr({x:s,y:T}),ht.isImg=!0,p(ht.imgwidth)&&p(ht.imgheight)?rt(ht):(ht.attr({width:0,height:0}),n("img",{onload:function(){const ut=z[o.chartIndex];this.width===0&&(a(this,{position:"absolute",top:"-999em"}),S.body.appendChild(this)),u[st]={width:this.width,height:this.height},ht.imgwidth=this.width,ht.imgheight=this.height,ht.element&&rt(ht),this.parentNode&&this.parentNode.removeChild(this),o.imgCount--,!o.imgCount&&ut&&!ut.hasLoaded&&ut.onload()},src:st}),this.imgCount++)}return H}clipRect(B,s,T,R){const I=P()+"-",q=this.createElement("clipPath").attr({id:I}).add(this.defs);return B=this.rect(B,s,T,R,0).add(q),B.id=I,B.clipPath=q,B.count=0,B}text(B,s,T,R){const I={};return R&&(this.allowHTML||!this.forExport)?this.html(B,s,T):(I.x=Math.round(s||0),T&&(I.y=Math.round(T)),p(B)&&(I.text=B),B=this.createElement("text").attr(I),(!R||this.forExport&&!this.allowHTML)&&(B.xSetter=function(q,o,g){const m=g.getElementsByTagName("tspan"),W=g.getAttribute(o);for(let F=0,H;F<m.length;F++)H=m[F],H.getAttribute(o)===W&&H.setAttribute(o,q);g.setAttribute(o,q)}),B)}fontMetrics(B){B=r(V.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,T){let R=B;return s&&T&&(R=Math.max(R*Math.cos(s*v),4)),{x:-B/3*Math.sin(s*v),y:R}}pathToSegments(B){const s=[],T=[],R={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(T[0])&&t(B[I])&&T.length===R[T[0].toUpperCase()]&&B.splice(I,0,T[0].replace("M","L").replace("m","l")),typeof B[I]=="string"&&(T.length&&s.push(T.slice(0)),T.length=0),T.push(B[I]);return s.push(T.slice(0)),s}label(B,s,T,R,I,q,o,g,m){return new tt(this,B,s,T,R,I,q,o,g,m)}alignElements(){this.alignedObjects.forEach(B=>B.align())}}return c(Q.prototype,{Element:V,SVG_NS:y,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Y,draw:x}),Z.registerRendererType("svg",Q,!0),Q}),K(w,"Core/Renderer/HTML/HTMLElement.js",[w["Core/Globals.js"],w["Core/Renderer/SVG/SVGElement.js"],w["Core/Utilities.js"]],function(j,A,$){const{isFirefox:Z,isMS:V,isWebKit:tt,win:Y}=j,{css:E,defined:N,extend:z,pick:v,pInt:S}=$,L=[];class D extends A{static compose(x){if($.pushUnique(L,x)){const y=D.prototype,u=x.prototype;u.getSpanCorrection=y.getSpanCorrection,u.htmlCss=y.htmlCss,u.htmlGetBBox=y.htmlGetBBox,u.htmlUpdateTransform=y.htmlUpdateTransform,u.setSpanRotation=y.setSpanRotation}return x}getSpanCorrection(x,y,u){this.xCorr=-x*u,this.yCorr=-y}htmlCss(x){const y=this.element.tagName==="SPAN"&&x&&"width"in x,u=v(y&&x.width,void 0);let M;return y&&(delete x.width,this.textWidth=u,M=!0),x&&x.textOverflow==="ellipsis"&&(x.whiteSpace="nowrap",x.overflow="hidden"),this.styles=z(this.styles,x),E(this.element,x),M&&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,y=this.element,u=this.x||0,M=this.y||0,b=this.textAlign||"left",k={left:0,center:.5,right:1}[b],n=this.styles,a=n&&n.whiteSpace;if(E(y,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),y.tagName==="SPAN"){n=this.rotation;const h=this.textWidth&&S(this.textWidth),c=[n,b,y.innerHTML,this.textWidth,this.textAlign].join();let e=!1;if(h!==this.oldTextWidth){if(this.textPxLength)var p=this.textPxLength;else E(y,{width:"",whiteSpace:a||"nowrap"}),p=y.offsetWidth;(h>this.oldTextWidth||p>h)&&(/[ \-]/.test(y.textContent||y.innerText)||y.style.textOverflow==="ellipsis")&&(E(y,{width:p>h||n?h+"px":"auto",display:"block",whiteSpace:a||"normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e,c!==this.cTT&&(x=x.fontMetrics(y).b,!N(n)||n===(this.oldRotation||0)&&b===this.oldAlign||this.setSpanRotation(n,k,x),this.getSpanCorrection(!N(n)&&this.textPxLength||y.offsetWidth,x,k,n,b)),E(y,{left:u+(this.xCorr||0)+"px",top:M+(this.yCorr||0)+"px"}),this.cTT=c,this.oldRotation=n,this.oldAlign=b}}else this.alignOnAdd=!0}setSpanRotation(x,y,u){const M={},b=V&&!/Edge/.test(Y.navigator.userAgent)?"-ms-transform":tt?"-webkit-transform":Z?"MozTransform":Y.opera?"-o-transform":void 0;b&&(M[b]=M.transform="rotate("+x+"deg)",M[b+(Z?"Origin":"-origin")]=M.transformOrigin=100*y+"% "+u+"px",E(this.element,M))}}return D}),K(w,"Core/Renderer/HTML/HTMLRenderer.js",[w["Core/Renderer/HTML/AST.js"],w["Core/Renderer/SVG/SVGElement.js"],w["Core/Renderer/SVG/SVGRenderer.js"],w["Core/Utilities.js"]],function(j,A,$,Z){const{attr:V,createElement:tt,extend:Y,pick:E}=Z,N=[];class z extends ${static compose(S){return Z.pushUnique(N,S)&&(S.prototype.html=z.prototype.html),S}html(S,L,D){const d=this.createElement("span"),x=d.element,y=d.renderer,u=function(M,b){["opacity","visibility"].forEach(function(k){M[k+"Setter"]=function(n,a,p){const h=M.div?M.div.style:b;A.prototype[k+"Setter"].call(this,n,a,p),h&&(h[a]=n)}}),M.addedSetters=!0};return d.textSetter=function(M){M!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,j.setElementHTML(this.element,E(M,"")),this.textStr=M,d.doTransform=!0)},u(d,d.element.style),d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(M,b){b==="align"?d.alignValue=d.textAlign=M:d[b]=M,d.doTransform=!0},d.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},d.attr({text:S,x:Math.round(L),y:Math.round(D)}).css({position:"absolute"}),y.styledMode||d.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),x.style.whiteSpace="nowrap",d.css=d.htmlCss,d.add=function(M){const b=y.box.parentNode,k=[];let n;if(this.parentGroup=M){if(n=M.div,!n){for(;M;)k.push(M),M=M.parentGroup;k.reverse().forEach(function(a){function p(t,i){a[i]=t,i==="translateX"?e.left=t+"px":e.top=t+"px",a.doTransform=!0}const h=V(a.element,"class"),c=a.styles||{};n=a.div=a.div||tt("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||b);const e=n.style;Y(a,{classSetter:function(t){return function(i){this.element.setAttribute("class",i),t.className=i}}(n),css:function(t){return d.css.call(a,t),["cursor","pointerEvents"].forEach(i=>{t[i]&&(e[i]=t[i])}),a},on:function(){return k[0].div&&d.on.apply({element:k[0].div,onEvents:a.onEvents},arguments),a},translateXSetter:p,translateYSetter:p}),a.addedSetters||u(a),a.css(c)})}}else n=b;return n.appendChild(x),d.added=!0,d.alignOnAdd&&d.htmlUpdateTransform(),d},d}}return z}),K(w,"Core/Axis/AxisDefaults.js",[],function(){var j;return function(A){A.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"},A.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:$}=this.axis.chart;return $(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},A.defaultLeftAxisOptions={title:{rotation:270}},A.defaultRightAxisOptions={title:{rotation:90}},A.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},A.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(j||(j={})),j}),K(w,"Core/Foundation.js",[w["Core/Utilities.js"]],function(j){const{addEvent:A,isFunction:$,objectEach:Z,removeEvent:V}=j;var tt;return function(Y){Y.registerEventOptions=function(E,N){E.eventOptions=E.eventOptions||{},Z(N.events,function(z,v){E.eventOptions[v]!==z&&(E.eventOptions[v]&&(V(E,v,E.eventOptions[v]),delete E.eventOptions[v]),$(z)&&(E.eventOptions[v]=z,A(E,v,z,{order:0})))})}}(tt||(tt={})),tt}),K(w,"Core/Axis/Tick.js",[w["Core/Templating.js"],w["Core/Globals.js"],w["Core/Utilities.js"]],function(j,A,$){const{deg2rad:Z}=A,{clamp:V,correctFloat:tt,defined:Y,destroyObjectProperties:E,extend:N,fireEvent:z,isNumber:v,merge:S,objectEach:L,pick:D}=$;class d{constructor(y,u,M,b,k){this.isNewLabel=this.isNew=!0,this.axis=y,this.pos=u,this.type=M||"",this.parameters=k||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,z(this,"init"),M||b||this.addLabel()}addLabel(){const y=this,u=y.axis;var M=u.options;const b=u.chart;var k=u.categories;const n=u.logarithmic,a=u.names,p=y.pos,h=D(y.options&&y.options.labels,M.labels);var c=u.tickPositions;const e=p===c[0],t=p===c[c.length-1],i=(!h.step||h.step===1)&&u.tickInterval===1;c=c.info;let l=y.label,f,O,r;k=this.parameters.category||(k?D(k[p],a[p],p):p),n&&v(k)&&(k=tt(n.lin2log(k))),u.dateTime&&(c?(O=b.time.resolveDTLFormat(M.dateTimeLabelFormats[!M.grid&&c.higherRanks[p]||c.unitName]),f=O.main):v(k)&&(f=u.dateTime.getXDateFormat(k,M.dateTimeLabelFormats||{}))),y.isFirst=e,y.isLast=t;const P={axis:u,chart:b,dateTimeLabelFormat:f,isFirst:e,isLast:t,pos:p,tick:y,tickPositionInfo:c,value:k};z(this,"labelFormat",P);const G=nt=>h.formatter?h.formatter.call(nt,nt):h.format?(nt.text=u.defaultLabelFormatter.call(nt,nt),j.format(h.format,nt,b)):u.defaultLabelFormatter.call(nt,nt);M=G.call(P,P);const Q=O&&O.list;y.shortenLabel=Q?function(){for(r=0;r<Q.length;r++)if(N(P,{dateTimeLabelFormat:Q[r]}),l.attr({text:G.call(P,P)}),l.getBBox().width<u.getSlotWidth(y)-2*h.padding)return;l.attr({text:""})}:void 0,i&&u._addedPlotLB&&y.moveLabel(M,h),Y(l)||y.movedLabel?l&&l.textStr!==M&&!i&&(!l.textWidth||h.style.width||l.styles.width||l.css({width:null}),l.attr({text:M}),l.textPxLength=l.getBBox().width):(y.label=l=y.createLabel({x:0,y:0},M,h),y.rotation=0)}createLabel(y,u,M){const b=this.axis,k=b.chart;return(y=Y(u)&&M.enabled?k.renderer.text(u,y.x,y.y,M.useHTML).add(b.labelGroup):null)&&(k.styledMode||y.css(S(M.style)),y.textPxLength=y.getBBox().width),y}destroy(){E(this,this.axis)}getPosition(y,u,M,b){const k=this.axis,n=k.chart,a=b&&n.oldChartHeight||n.chartHeight;return y={x:y?tt(k.translate(u+M,void 0,void 0,b)+k.transB):k.left+k.offset+(k.opposite?(b&&n.oldChartWidth||n.chartWidth)-k.right-k.left:0),y:y?a-k.bottom+k.offset-(k.opposite?k.height:0):tt(a-k.translate(u+M,void 0,void 0,b)-k.transB)},y.y=V(y.y,-1e5,1e5),z(this,"afterGetPosition",{pos:y}),y}getLabelPosition(y,u,M,b,k,n,a,p){const h=this.axis,c=h.transA,e=h.isLinked&&h.linkedParent?h.linkedParent.reversed:h.reversed,t=h.staggerLines,i=h.tickRotCorr||{x:0,y:0},l=b||h.reserveSpaceDefault?0:-h.labelOffset*(h.labelAlign==="center"?.5:1),f=k.distance,O={};return M=h.side===0?M.rotation?-f:-M.getBBox().height:h.side===2?i.y+f:Math.cos(M.rotation*Z)*(i.y-M.getBBox(!1,0).height/2),Y(k.y)&&(M=h.side===0&&h.horiz?k.y+M:k.y),y=y+D(k.x,[0,1,0,-1][h.side]*f)+l+i.x-(n&&b?n*c*(e?-1:1):0),u=u+M-(n&&!b?n*c*(e?1:-1):0),t&&(b=a/(p||1)%t,h.opposite&&(b=t-b-1),u+=h.labelOffset/t*b),O.x=y,O.y=Math.round(u),z(this,"afterGetLabelPosition",{pos:O,tickmarkOffset:n,index:a}),O}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(y,u,M,b,k,n){return n.crispLine([["M",y,u],["L",y+(k?0:-M),u+(k?M:0)]],b)}handleOverflow(y){const u=this.axis,M=u.options.labels,b=y.x;var k=u.chart.chartWidth,n=u.chart.spacing;const a=D(u.labelLeft,Math.min(u.pos,n[3]));n=D(u.labelRight,Math.max(u.isRadial?0:u.pos+u.len,k-n[1]));const p=this.label,h=this.rotation,c={left:0,center:.5,right:1}[u.labelAlign||p.attr("align")],e=p.getBBox().width,t=u.getSlotWidth(this),i={};let l=t,f=1,O;h||M.overflow!=="justify"?0>h&&b-c*e<a?O=Math.round(b/Math.cos(h*Z)-a):0<h&&b+c*e>n&&(O=Math.round((k-b)/Math.cos(h*Z))):(k=b+(1-c)*e,b-c*e<a?l=y.x+l*(1-c)-a:k>n&&(l=n-y.x+l*c,f=-1),l=Math.min(t,l),l<t&&u.labelAlign==="center"&&(y.x+=f*(t-l-c*(t-Math.min(e,l)))),(e>l||u.autoRotation&&(p.styles||{}).width)&&(O=l)),O&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(O)+"px",(M.style||{}).textOverflow||(i.textOverflow="ellipsis"),p.css(i)))}moveLabel(y,u){const M=this;var b=M.label;const k=M.axis;let n=!1;b&&b.textStr===y?(M.movedLabel=b,n=!0,delete M.label):L(k.ticks,function(a){n||a.isNew||a===M||!a.label||a.label.textStr!==y||(M.movedLabel=a.label,n=!0,a.labelPos=M.movedLabel.xy,delete a.label)}),n||!M.labelPos&&!b||(b=M.labelPos||b.xy,M.movedLabel=M.createLabel(b,y,u),M.movedLabel&&M.movedLabel.attr({opacity:0}))}render(y,u,M){var b=this.axis,k=b.horiz,n=this.pos,a=D(this.tickmarkOffset,b.tickmarkOffset);n=this.getPosition(k,n,a,u),a=n.x;const p=n.y;b=k&&a===b.pos+b.len||!k&&p===b.pos?-1:1,k=D(M,this.label&&this.label.newOpacity,1),M=D(M,1),this.isActive=!0,this.renderGridLine(u,M,b),this.renderMark(n,M,b),this.renderLabel(n,u,k,y),this.isNew=!1,z(this,"afterRender")}renderGridLine(y,u,M){const b=this.axis,k=b.options,n={},a=this.pos,p=this.type,h=D(this.tickmarkOffset,b.tickmarkOffset),c=b.chart.renderer;let e=this.gridLine,t=k.gridLineWidth,i=k.gridLineColor,l=k.gridLineDashStyle;this.type==="minor"&&(t=k.minorGridLineWidth,i=k.minorGridLineColor,l=k.minorGridLineDashStyle),e||(b.chart.styledMode||(n.stroke=i,n["stroke-width"]=t||0,n.dashstyle=l),p||(n.zIndex=1),y&&(u=0),this.gridLine=e=c.path().attr(n).addClass("highcharts-"+(p?p+"-":"")+"grid-line").add(b.gridGroup)),e&&(M=b.getPlotLinePath({value:a+h,lineWidth:e.strokeWidth()*M,force:"pass",old:y,acrossPanes:!1}))&&e[y||this.isNew?"attr":"animate"]({d:M,opacity:u})}renderMark(y,u,M){const b=this.axis;var k=b.options;const n=b.chart.renderer,a=this.type,p=b.tickSize(a?a+"Tick":"tick"),h=y.x;y=y.y;const c=D(k[a!=="minor"?"tickWidth":"minorTickWidth"],!a&&b.isXAxis?1:0);k=k[a!=="minor"?"tickColor":"minorTickColor"];let e=this.mark;const t=!e;p&&(b.opposite&&(p[0]=-p[0]),e||(this.mark=e=n.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(b.axisGroup),b.chart.styledMode||e.attr({stroke:k,"stroke-width":c})),e[t?"attr":"animate"]({d:this.getMarkPath(h,y,p[0],e.strokeWidth()*M,b.horiz,n),opacity:u}))}renderLabel(y,u,M,b){var k=this.axis;const n=k.horiz,a=k.options,p=this.label,h=a.labels,c=h.step;k=D(this.tickmarkOffset,k.tickmarkOffset);const e=y.x;y=y.y;let t=!0;p&&v(e)&&(p.xy=y=this.getLabelPosition(e,y,p,n,h,k,b,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?t=!1:!n||h.step||h.rotation||u||M===0||this.handleOverflow(y),c&&b%c&&(t=!1),t&&v(y.y)?(y.opacity=M,p[this.isNewLabel?"attr":"animate"](y).show(!0),this.isNewLabel=!1):(p.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const y=this.label,u=this.axis;y&&!this.isNew&&(y.animate({opacity:0},void 0,y.destroy),delete this.label),u.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}return d}),K(w,"Core/Axis/Axis.js",[w["Core/Animation/AnimationUtilities.js"],w["Core/Axis/AxisDefaults.js"],w["Core/Color/Color.js"],w["Core/Defaults.js"],w["Core/Foundation.js"],w["Core/Globals.js"],w["Core/Axis/Tick.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V,tt,Y,E){const{animObject:N}=j,{defaultOptions:z}=Z,{registerEventOptions:v}=V,{deg2rad:S}=tt,{arrayMax:L,arrayMin:D,clamp:d,correctFloat:x,defined:y,destroyObjectProperties:u,erase:M,error:b,extend:k,fireEvent:n,getClosestDistance:a,insertItem:p,isArray:h,isNumber:c,isString:e,merge:t,normalizeTickInterval:i,objectEach:l,pick:f,relativeLength:O,removeEvent:r,splat:P,syncTimeout:G}=E,Q=(B,s)=>i(s,void 0,void 0,f(B.options.allowDecimals,.5>s||B.tickAmount!==void 0),!!B.tickAmount);class nt{constructor(s,T,R){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.index=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(s,T,R)}init(s,T,R=this.coll){const I=R==="xAxis";this.chart=s,this.horiz=this.isZAxis||(s.inverted?!I:I),this.isXAxis=I,this.coll=R,n(this,"init",{userOptions:T}),this.opposite=f(T.opposite,this.opposite),this.side=f(T.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(T),R=this.options;const q=R.labels,o=R.type;this.userOptions=T,this.minPixelPadding=0,this.reversed=f(R.reversed,this.reversed),this.visible=R.visible,this.zoomEnabled=R.zoomEnabled,this.hasNames=o==="category"||R.categories===!0,this.categories=R.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=y(R.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=R.minRange||R.maxZoom,this.range=R.range,this.offset=R.offset||0,this.min=this.max=null,T=f(R.crosshair,P(s.options.tooltip.crosshairs)[I?0:1]),this.crosshair=T===!0?{}:T,s.axes.indexOf(this)===-1&&(I?s.axes.splice(s.xAxis.length,0,this):s.axes.push(this),p(this,s[this.coll])),s.orderItems(this.coll),this.series=this.series||[],s.inverted&&!this.isZAxis&&I&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=c(q.rotation)?q.rotation:void 0,v(this,R),n(this,"afterInit")}setOptions(s){this.options=t(A.defaultXAxisOptions,this.coll==="yAxis"&&A.defaultYAxisOptions,[A.defaultTopAxisOptions,A.defaultRightAxisOptions,A.defaultBottomAxisOptions,A.defaultLeftAxisOptions][this.side],t(z[this.coll],s)),n(this,"afterSetOptions",{userOptions:s})}defaultLabelFormatter(s){var T=this.axis;({numberFormatter:s}=this.chart);const R=c(this.value)?this.value:NaN,I=T.chart.time,q=this.dateTimeLabelFormat;var o=z.lang;const g=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;const m=T.logarithmic?Math.abs(R):T.tickInterval;let W=g&&g.length,F;if(T.categories)F=`${this.value}`;else if(q)F=I.dateFormat(q,R);else if(W&&1e3<=m)for(;W--&&typeof F>"u";)T=Math.pow(o,W+1),m>=T&&10*R%T===0&&g[W]!==null&&R!==0&&(F=s(R/T,-1)+g[W]);return typeof F>"u"&&(F=1e4<=Math.abs(R)?s(R,-1):s(R,-1,void 0,"")),F}getSeriesExtremes(){const s=this,T=s.chart;let R;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||!T.options.chart.ignoreHiddenSeries){var q=I.options;let o=q.threshold,g,m;s.hasVisibleSeries=!0,s.positiveValuesOnly&&0>=o&&(o=null),s.isXAxis?(q=I.xData)&&q.length&&(q=s.logarithmic?q.filter(W=>0<W):q,R=I.getXExtremes(q),g=R.min,m=R.max,c(g)||g instanceof Date||(q=q.filter(c),R=I.getXExtremes(q),g=R.min,m=R.max),q.length&&(s.dataMin=Math.min(f(s.dataMin,g),g),s.dataMax=Math.max(f(s.dataMax,m),m))):(I=I.applyExtremes(),c(I.dataMin)&&(g=I.dataMin,s.dataMin=Math.min(f(s.dataMin,g),g)),c(I.dataMax)&&(m=I.dataMax,s.dataMax=Math.max(f(s.dataMax,m),m)),y(o)&&(s.threshold=o),(!q.softThreshold||s.positiveValuesOnly)&&(s.softThreshold=!1))}})}),n(this,"afterGetSeriesExtremes")}translate(s,T,R,I,q,o){const g=this.linkedParent||this,m=I&&g.old?g.old.min:g.min;if(!c(m))return NaN;const W=g.minPixelPadding;q=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&q)&&g.lin2val;let F=1,H=0;return I=I&&g.old?g.old.transA:g.transA,I||(I=g.transA),R&&(F*=-1,H=g.len),g.reversed&&(F*=-1,H-=F*(g.sector||g.len)),T?(o=(s*F+H-W)/I+m,q&&(o=g.lin2val(o))):(q&&(s=g.val2lin(s)),s=F*(s-m)*I,o=(g.isRadial?s:x(s))+H+F*W+(c(o)?I*o:0)),o}toPixels(s,T){return this.translate(s,!1,!this.horiz,void 0,!0)+(T?0:this.pos)}toValue(s,T){return this.translate(s-(T?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(s){function T(X,et,dt){return rt!=="pass"&&(X<et||X>dt)&&(rt?X=d(X,et,dt):J=!0),X}const R=this,I=R.chart,q=R.left,o=R.top,g=s.old,m=s.value,W=s.lineWidth,F=g&&I.oldChartHeight||I.chartHeight,H=g&&I.oldChartWidth||I.chartWidth,it=R.transB;let st=s.translatedValue,rt=s.force,ht,ut,_,C,J;return s={value:m,lineWidth:W,old:g,force:rt,acrossPanes:s.acrossPanes,translatedValue:st},n(this,"getPlotLinePath",s,function(X){st=f(st,R.translate(m,void 0,void 0,g)),st=d(st,-1e5,1e5),ht=_=Math.round(st+it),ut=C=Math.round(F-st-it),c(st)?R.horiz?(ut=o,C=F-R.bottom,ht=_=T(ht,q,q+R.width)):(ht=q,_=H-R.right,ut=C=T(ut,o,o+R.height)):(J=!0,rt=!1),X.path=J&&!rt?null:I.renderer.crispLine([["M",ht,ut],["L",_,C]],W||1)}),s.path}getLinearTickPositions(s,T,R){const I=x(Math.floor(T/s)*s);R=x(Math.ceil(R/s)*s);const q=[];let o,g;if(x(I+s)===I&&(g=20),this.single)return[T];for(T=I;T<=R&&(q.push(T),T=x(T+s,g),T!==o);)o=T;return q}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 T=this.tickPositions,R=this.minorTickInterval;var I=this.pointRangePadding||0;const q=this.min-I;I=this.max+I;const o=I-q;let g=[];if(o&&o/R<this.len/3){const m=this.logarithmic;if(m)this.paddedTicks.forEach(function(W,F,H){F&&g.push.apply(g,m.getLogTickPositions(R,H[F-1],H[F],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")g=g.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(R),q,I,s.startOfWeek));else for(s=q+(T[0]-q)%R;s<=I&&s!==g[0];s+=R)g.push(s)}return g.length!==0&&this.trimTicks(g),g}adjustForMinRange(){const s=this.options,T=this.logarithmic;let R=this.min;var I=this.max;let q,o;if(this.isXAxis&&typeof this.minRange>"u"&&!T)if(y(s.min)||y(s.max)||y(s.floor)||y(s.ceiling))this.minRange=null;else{var g=a(this.series.map(m=>{var W;return(m.xIncrement?(W=m.xData)===null||W===void 0?void 0:W.slice(0,2):m.xData)||[]}))||0;this.minRange=Math.min(5*g,this.dataMax-this.dataMin)}I-R<this.minRange&&(g=this.dataMax-this.dataMin>=this.minRange,o=this.minRange,I=(o-I+R)/2,q=[R-I,f(s.min,R-I)],g&&(q[2]=T?T.log2lin(this.dataMin):this.dataMin),R=L(q),I=[R+o,f(s.max,R+o)],g&&(I[2]=T?T.log2lin(this.dataMax):this.dataMax),I=D(I),I-R<o&&(q[0]=I-o,q[1]=f(s.min,I-o),R=L(q))),this.min=R,this.max=I}getClosest(){let s,T;if(this.categories)T=1;else{const R=[];this.series.forEach(function(I){var q;const o=I.closestPointRange,g=I.visible||!I.chart.options.chart.ignoreHiddenSeries;((q=I.xData)===null||q===void 0?void 0:q.length)===1?R.push(I.xData[0]):!I.noSharedTooltip&&y(o)&&g&&(T=y(T)?Math.min(T,o):o)}),R.length&&(R.sort((I,q)=>I-q),s=a([R]))}return s&&T?Math.min(s,T):s||T}nameToX(s){const T=h(this.options.categories),R=T?this.categories:this.names;let I=s.options.x,q;return s.series.requireSorting=!1,y(I)||(I=this.options.uniqueNames&&R?T?R.indexOf(s.name):f(R.keys[s.name],-1):s.series.autoIncrement()),I===-1?!T&&R&&(q=R.length):q=I,typeof q<"u"?(this.names[q]=s.name,this.names.keys[s.name]=q):s.x&&(q=s.x),q}updateNames(){const s=this,T=this.names;0<T.length&&(Object.keys(T.keys).forEach(function(R){delete T.keys[R]}),T.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(R){R.xIncrement=null,(!R.points||R.isDirtyData)&&(s.max=Math.max(s.max,R.xData.length-1),R.processData(),R.generatePoints()),R.data.forEach(function(I,q){let o;I&&I.options&&typeof I.name<"u"&&(o=s.nameToX(I),typeof o<"u"&&o!==I.x&&(I.x=o,R.xData[q]=o))})}))}setAxisTranslation(){const s=this,T=s.max-s.min;var R=s.linkedParent;const I=!!s.categories,q=s.isXAxis;let o=s.axisPointRange||0,g,m=0,W=0,F=s.transA;(q||I||o)&&(g=s.getClosest(),R?(m=R.minPointOffset,W=R.pointRangePadding):s.series.forEach(function(H){const it=I?1:q?f(H.options.pointRange,g,0):s.axisPointRange||0,st=H.options.pointPlacement;o=Math.max(o,it),(!s.single||I)&&(H=H.is("xrange")?!q:q,m=Math.max(m,H&&e(st)?0:it/2),W=Math.max(W,H&&st==="on"?0:it))}),R=s.ordinal&&s.ordinal.slope&&g?s.ordinal.slope/g:1,s.minPointOffset=m*=R,s.pointRangePadding=W*=R,s.pointRange=Math.min(o,s.single&&I?1:T),q&&g&&(s.closestPointRange=g)),s.translationSlope=s.transA=F=s.staticScale||s.len/(T+W||1),s.transB=s.horiz?s.left:s.bottom,s.minPixelPadding=F*m,n(this,"afterSetAxisTranslation")}minFromRange(){return this.max-this.range}setTickInterval(s){var T=this.chart;const R=this.logarithmic,I=this.options,q=this.isXAxis,o=this.isLinked,g=I.tickPixelInterval,m=this.categories,W=this.softThreshold;let F=I.maxPadding,H=I.minPadding,it=c(I.tickInterval)&&0<=I.tickInterval?I.tickInterval:void 0,st=c(this.threshold)?this.threshold:null,rt,ht,ut;if(this.dateTime||m||o||this.getTickAmount(),ht=f(this.userMin,I.min),ut=f(this.userMax,I.max),o){this.linkedParent=T[this.coll][I.linkedTo];var _=this.linkedParent.getExtremes();this.min=f(_.min,_.dataMin),this.max=f(_.max,_.dataMax),I.type!==this.linkedParent.options.type&&b(11,1,T)}else W&&y(st)&&(this.dataMin>=st?(_=st,H=0):this.dataMax<=st&&(rt=st,F=0)),this.min=f(ht,_,this.dataMin),this.max=f(ut,rt,this.dataMax);if(R&&(this.positiveValuesOnly&&!s&&0>=Math.min(this.min,f(this.dataMin,this.min))&&b(10,1,T),this.min=x(R.log2lin(this.min),16),this.max=x(R.log2lin(this.max),16)),this.range&&y(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(),!c(this.userMin)&&c(I.softMin)&&I.softMin<this.min&&(this.min=ht=I.softMin),!c(this.userMax)&&c(I.softMax)&&I.softMax>this.max&&(this.max=ut=I.softMax),!(m||this.axisPointRange||this.stacking&&this.stacking.usePercentage||o)&&y(this.min)&&y(this.max)&&(T=this.max-this.min)&&(!y(ht)&&H&&(this.min-=T*H),!y(ut)&&F&&(this.max+=T*F)),!c(this.userMin)&&c(I.floor)&&(this.min=Math.max(this.min,I.floor)),!c(this.userMax)&&c(I.ceiling)&&(this.max=Math.min(this.max,I.ceiling)),W&&y(this.dataMin)&&(st=st||0,!y(ht)&&this.min<st&&this.dataMin>=st?this.min=this.options.minRange?Math.min(st,this.max-this.minRange):st:!y(ut)&&this.max>st&&this.dataMax<=st&&(this.max=this.options.minRange?Math.max(st,this.min+this.minRange):st)),c(this.min)&&c(this.max)&&!this.chart.polar&&this.min>this.max&&(y(this.options.min)?this.max=this.min:y(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&&g===this.linkedParent.options.tickPixelInterval?it=this.linkedParent.tickInterval:f(it,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(this.max-this.min)*g/Math.max(this.len,g)),q&&!s){const C=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(J){J.forceCrop=J.forceCropping&&J.forceCropping(),J.processData(C)}),n(this,"postProcessData",{hasExtremesChanged:C})}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(C=>C.noSharedTooltip)?this.closestPointRange:0),!it&&this.tickInterval<s&&(this.tickInterval=s),this.dateTime||this.logarithmic||it||(this.tickInterval=Q(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var s=this.options;const T=s.tickPositions,R=s.tickPositioner;var I=this.getMinorTickInterval(),q=this.hasVerticalPanning(),o=this.coll==="colorAxis";const g=(o||!q)&&s.startOnTick;q=(o||!q)&&s.endOnTick,o=[];let m;if(this.tickmarkOffset=this.categories&&s.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=I==="auto"&&this.tickInterval?this.tickInterval/s.minorTicksPerMajor:I,this.single=this.min===this.max&&y(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||s.allowDecimals!==!1),T)o=T.slice();else if(c(this.min)&&c(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=Q(this,I*=1.1);else o=[this.min,this.max],b(19,!1,this.chart);o.length>this.len&&(o=[o[0],o[o.length-1]],o[0]===o[1]&&(o.length=1)),R&&(this.tickPositions=o,(m=R.apply(this,[this.min,this.max]))&&(o=m))}this.tickPositions=o,this.paddedTicks=o.slice(0),this.trimTicks(o,g,q),!this.isLinked&&c(this.min)&&c(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),T||m||this.adjustTickAmount()),n(this,"afterSetTickPositions")}trimTicks(s,T,R){const I=s[0],q=s[s.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(n(this,"trimTicks"),!this.isLinked){if(T&&I!==-1/0)this.min=I;else for(;this.min-o>s[0];)s.shift();if(R)this.max=q;else for(;this.max+o<s[s.length-1];)s.pop();s.length===0&&y(I)&&!this.options.tickPositions&&s.push((q+I)/2)}}alignToOthers(){const s=this,T=[this],R=s.options,I=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,q=[];let o;if(s.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&R.alignTicks||I)&&R.startOnTick!==!1&&R.endOnTick!==!1&&!s.logarithmic){const g=W=>{const{horiz:F,options:H}=W;return[F?H.left:H.top,H.width,H.height,H.pane].join()},m=g(this);this.chart[this.coll].forEach(function(W){const{series:F}=W;F.length&&F.some(H=>H.visible)&&W!==s&&g(W)===m&&(o=!0,T.push(W))})}if(o&&I){T.forEach(m=>{m=m.getThresholdAlignment(s),c(m)&&q.push(m)});const g=1<q.length?q.reduce((m,W)=>m+W,0)/q.length:void 0;T.forEach(m=>{m.thresholdAlignment=g})}return o}getThresholdAlignment(s){if((!c(this.dataMin)||this!==s&&this.series.some(T=>T.isDirty||T.isDirtyData))&&this.getSeriesExtremes(),c(this.threshold))return s=d((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(s=1-s),s}getTickAmount(){const s=this.options,T=s.tickPixelInterval;let R=s.tickAmount;!y(s.tickInterval)&&!R&&this.len<T&&!this.isRadial&&!this.logarithmic&&s.startOnTick&&s.endOnTick&&(R=2),!R&&this.alignToOthers()&&(R=Math.ceil(this.len/T)+1),4>R&&(this.finalTickAmt=R,R=5),this.tickAmount=R}adjustTickAmount(){const s=this,{finalTickAmt:T,max:R,min:I,options:q,tickPositions:o,tickAmount:g,thresholdAlignment:m}=s,W=o&&o.length;var F=f(s.threshold,s.softThreshold?0:null),H=s.tickInterval;let it;if(c(m)&&(it=.5>m?Math.ceil(m*(g-1)):Math.floor(m*(g-1)),q.reversed&&(it=g-1-it)),s.hasData()&&c(I)&&c(R)){const st=()=>{s.transA*=(W-1)/(g-1),s.min=q.startOnTick?o[0]:Math.min(I,o[0]),s.max=q.endOnTick?o[o.length-1]:Math.max(R,o[o.length-1])};if(c(it)&&c(s.threshold)){for(;o[it]!==F||o.length!==g||o[0]>I||o[o.length-1]<R;){for(o.length=0,o.push(s.threshold);o.length<g;)o[it]===void 0||o[it]>s.threshold?o.unshift(x(o[0]-H)):o.push(x(o[o.length-1]+H));if(H>8*s.tickInterval)break;H*=2}st()}else if(W<g){for(;o.length<g;)o.length%2||I===F?o.push(x(o[o.length-1]+H)):o.unshift(x(o[0]-H));st()}if(y(T)){for(H=F=o.length;H--;)(T===3&&H%2===1||2>=T&&0<H&&H<F-1)&&o.splice(H,1);s.finalTickAmt=void 0}}}setScale(){let s=!1,T=!1;this.series.forEach(function(I){s=s||I.isDirtyData||I.isDirty,T=T||I.xAxis&&I.xAxis.isDirty||!1}),this.setAxisSize();const R=this.len!==(this.old&&this.old.len);R||s||T||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=R||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,T,R,I,q){const o=this,g=o.chart;R=f(R,!0),o.series.forEach(function(m){delete m.kdTree}),q=k(q,{min:s,max:T}),n(o,"setExtremes",q,function(){o.userMin=s,o.userMax=T,o.eventArgs=q,R&&g.redraw(I)})}zoom(s,T){const R=this,I=this.dataMin,q=this.dataMax,o=this.options,g=Math.min(I,f(o.min,I)),m=Math.max(q,f(o.max,q));return s={newMin:s,newMax:T},n(this,"zoom",s,function(W){let F=W.newMin,H=W.newMax;(F!==R.min||H!==R.max)&&(R.allowZoomOutside||(y(I)&&(F<g&&(F=g),F>m&&(F=m)),y(q)&&(H<g&&(H=g),H>m&&(H=m))),R.displayBtn=typeof F<"u"||typeof H<"u",R.setExtremes(F,H,!1,void 0,{trigger:"zoom"})),W.zoomed=!0}),s.zoomed}setAxisSize(){const s=this.chart;var T=this.options;const R=T.offsets||[0,0,0,0],I=this.horiz,q=this.width=Math.round(O(f(T.width,s.plotWidth-R[3]+R[1]),s.plotWidth)),o=this.height=Math.round(O(f(T.height,s.plotHeight-R[0]+R[2]),s.plotHeight)),g=this.top=Math.round(O(f(T.top,s.plotTop+R[0]),s.plotHeight,s.plotTop));T=this.left=Math.round(O(f(T.left,s.plotLeft+R[3]),s.plotWidth,s.plotLeft)),this.bottom=s.chartHeight-o-g,this.right=s.chartWidth-q-T,this.len=Math.max(I?q:o,0),this.pos=I?T:g}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 T=this.logarithmic;const R=T?T.lin2log(this.min):this.min;return T=T?T.lin2log(this.max):this.max,s===null||s===-1/0?s=R:s===1/0?s=T:R>s?s=R:T<s&&(s=T),this.translate(s,0,1,0,1)}autoLabelAlign(s){const T=(f(s,0)-90*this.side+720)%360;return s={align:"center"},n(this,"autoLabelAlign",s,function(R){15<T&&165>T?R.align="right":195<T&&345>T&&(R.align="left")}),s.align}tickSize(s){const T=this.options,R=f(T[s==="tick"?"tickWidth":"minorTickWidth"],s==="tick"&&this.isXAxis&&!this.categories?1:0);let I=T[s==="tick"?"tickLength":"minorTickLength"],q;return R&&I&&(T[s+"Position"]==="inside"&&(I=-I),q=[I,R]),s={tickSize:q},n(this,"afterTickSize",s),s.tickSize}labelMetrics(){const s=this.chart.renderer;var T=this.ticks;return T=T[Object.keys(T)[0]]||{},this.chart.renderer.fontMetrics(T.label||T.movedLabel||s.box)}unsquish(){const s=this.options.labels;var T=this.horiz;const R=this.tickInterval,I=this.len/(((this.categories?1:0)+this.max-this.min)/R),q=s.rotation,o=.75*this.labelMetrics().h,g=Math.max(this.max-this.min,0),m=function(st){let rt=st/(I||1);return rt=1<rt?Math.ceil(rt):1,rt*R>g&&st!==1/0&&I!==1/0&&g&&(rt=Math.ceil(g/R)),x(rt*R)};let W=R,F,H=Number.MAX_VALUE,it;if(T){if(s.staggerLines||(c(q)?it=[q]:I<s.autoRotationLimit&&(it=s.autoRotation)),it){let st;for(const rt of it)(rt===q||rt&&-90<=rt&&90>=rt)&&(T=m(Math.abs(o/Math.sin(S*rt))),st=T+Math.abs(rt/360),st<H&&(H=st,F=rt,W=T))}}else W=m(o);return this.autoRotation=it,this.labelRotation=f(F,c(q)?q:0),s.step?R:W}getSlotWidth(s){const T=this.chart,R=this.horiz,I=this.options.labels,q=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=T.margin[3];if(s&&c(s.slotWidth))return s.slotWidth;if(R&&2>I.step)return I.rotation?0:(this.staggerLines||1)*this.len/q;if(!R){if(s=I.style.width,s!==void 0)return parseInt(String(s),10);if(o)return o-T.spacing[3]}return .33*T.chartWidth}renderUnsquish(){const s=this.chart,T=s.renderer,R=this.tickPositions,I=this.ticks,q=this.options.labels,o=q.style,g=this.horiz,m=this.getSlotWidth();var W=Math.max(1,Math.round(m-2*q.padding));const F={},H=this.labelMetrics(),it=o.textOverflow;let st,rt,ht=0;if(e(q.rotation)||(F.rotation=q.rotation||0),R.forEach(function(_){_=I[_],_.movedLabel&&_.replaceMovedLabel(),_&&_.label&&_.label.textPxLength>ht&&(ht=_.label.textPxLength)}),this.maxLabelLength=ht,this.autoRotation)ht>W&&ht>H.h?F.rotation=this.labelRotation:this.labelRotation=0;else if(m&&(st=W,!it))for(rt="clip",W=R.length;!g&&W--;){var ut=R[W];(ut=I[ut].label)&&(ut.styles&&ut.styles.textOverflow==="ellipsis"?ut.css({textOverflow:"clip"}):ut.textPxLength>m&&ut.css({width:m+"px"}),ut.getBBox().height>this.len/R.length-(H.h-H.f)&&(ut.specificTextOverflow="ellipsis"))}F.rotation&&(st=ht>.5*s.chartHeight?.33*s.chartHeight:ht,it||(rt="ellipsis")),(this.labelAlign=q.align||this.autoLabelAlign(this.labelRotation))&&(F.align=this.labelAlign),R.forEach(function(_){const C=(_=I[_])&&_.label,J=o.width,X={};C&&(C.attr(F),_.shortenLabel?_.shortenLabel():st&&!J&&o.whiteSpace!=="nowrap"&&(st<C.textPxLength||C.element.tagName==="SPAN")?(X.width=st+"px",it||(X.textOverflow=C.specificTextOverflow||rt),C.css(X)):C.styles&&C.styles.width&&!X.width&&!J&&C.css({width:null}),delete C.specificTextOverflow,_.rotation=F.rotation)},this),this.tickRotCorr=T.rotCorr(H.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(s){return s.hasData()})||this.options.showEmpty&&y(this.min)&&y(this.max)}addTitle(s){const T=this.chart.renderer,R=this.horiz,I=this.opposite,q=this.options.title,o=this.chart.styledMode;let g;this.axisTitle||((g=q.textAlign)||(g=(R?{low:"left",middle:"center",high:"right"}:{low:I?"right":"left",middle:"center",high:I?"left":"right"})[q.align]),this.axisTitle=T.text(q.text||"",0,0,q.useHTML).attr({zIndex:7,rotation:q.rotation,align:g}).addClass("highcharts-axis-title"),o||this.axisTitle.css(t(q.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),o||q.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[s?"show":"hide"](s)}generateTick(s){const T=this.ticks;T[s]?T[s].addLabel():T[s]=new Y(this,s)}getOffset(){const s=this,{chart:T,horiz:R,options:I,side:q,ticks:o,tickPositions:g,coll:m,axisParent:W}=s,F=T.renderer,H=T.inverted&&!s.isZAxis?[1,0,3,2][q]:q;var it=s.hasData();const st=I.title;var rt=I.labels;const ht=c(I.crossing);var ut=T.axisOffset;const _=T.clipOffset,C=[-1,1,1,-1][q],J=I.className;let X,et=0,dt;var ct=0;let xt=0;if(s.showAxis=X=it||I.showEmpty,s.staggerLines=s.horiz&&rt.staggerLines||void 0,!s.axisGroup){const yt=(gt,mt,Ct)=>F.g(gt).attr({zIndex:Ct}).addClass(`highcharts-${m.toLowerCase()}${mt} `+(this.isRadial?`highcharts-radial-axis${mt} `:"")+(J||"")).add(W);s.gridGroup=yt("grid","-grid",I.gridZIndex),s.axisGroup=yt("axis","",I.zIndex),s.labelGroup=yt("axis-labels","-labels",rt.zIndex)}it||s.isLinked?(g.forEach(function(yt){s.generateTick(yt)}),s.renderUnsquish(),s.reserveSpaceDefault=q===0||q===2||{1:"left",3:"right"}[q]===s.labelAlign,f(rt.reserveSpace,ht?!1:null,s.labelAlign==="center"?!0:null,s.reserveSpaceDefault)&&g.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]}),st&&st.text&&st.enabled!==!1&&(s.addTitle(X),X&&!ht&&st.reserveSpace!==!1&&(s.titleOffset=et=s.axisTitle.getBBox()[R?"height":"width"],dt=st.offset,ct=y(dt)?0:f(st.margin,R?5:10))),s.renderLine(),s.offset=C*f(I.offset,ut[q]?ut[q]+(I.margin||0):0),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},it=q===0?-s.labelMetrics().h:q===2?s.tickRotCorr.y:0,ct=Math.abs(xt)+ct,xt&&(ct=ct-it+C*(R?f(rt.y,s.tickRotCorr.y+C*rt.distance):f(rt.x,C*rt.distance))),s.axisTitleMargin=f(dt,ct),s.getMaxLabelDimensions&&(s.maxLabelDimensions=s.getMaxLabelDimensions(o,g)),m!=="colorAxis"&&(rt=this.tickSize("tick"),ut[q]=Math.max(ut[q],(s.axisTitleMargin||0)+et+C*s.offset,ct,g&&g.length&&rt?rt[0]+C*s.offset:0),ut=!s.axisLine||I.offset?0:2*Math.floor(s.axisLine.strokeWidth()/2),_[H]=Math.max(_[H],ut)),n(this,"afterGetOffset")}getLinePath(s){const T=this.chart,R=this.opposite;var I=this.offset;const q=this.horiz,o=this.left+(R?this.width:0)+I;return I=T.chartHeight-this.bottom-(R?this.height:0)+I,R&&(s*=-1),T.renderer.crispLine([["M",q?this.left:o,q?I:this.top],["L",q?T.chartWidth-this.right:o,q?I:T.chartHeight-this.bottom]],s)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(s){var T=this.horiz,R=this.left;const I=this.top;var q=this.len;const o=this.options.title,g=T?R:I,m=this.opposite,W=this.offset,F=o.x,H=o.y,it=this.chart.renderer.fontMetrics(s);return s=s?Math.max(s.getBBox(!1,0).height-it.h-1,0):0,q={low:g+(T?0:q),middle:g+q/2,high:g+(T?q:0)}[o.align],R=(T?I+this.height:R)+(T?1:-1)*(m?-1:1)*(this.axisTitleMargin||0)+[-s,s,it.f,-s][this.side],T={x:T?q+F:R+(m?this.width:0)+W+F,y:T?R+H-(m?this.height:0)+W:q+H},n(this,"afterGetTitlePosition",{titlePosition:T}),T}renderMinorTick(s,T){const R=this.minorTicks;R[s]||(R[s]=new Y(this,s,"minor")),T&&R[s].isNew&&R[s].render(null,!0),R[s].render(null,!1,1)}renderTick(s,T,R){const I=this.ticks;(!this.isLinked||s>=this.min&&s<=this.max||this.grid&&this.grid.isColumn)&&(I[s]||(I[s]=new Y(this,s)),R&&I[s].isNew&&I[s].render(T,!0,-1),I[s].render(T))}render(){const s=this,T=s.chart,R=s.logarithmic,I=s.options,q=s.isLinked,o=s.tickPositions,g=s.axisTitle,m=s.ticks,W=s.minorTicks,F=s.alternateBands,H=I.stackLabels,it=I.alternateGridColor;var st=I.crossing;const rt=s.tickmarkOffset,ht=s.axisLine,ut=s.showAxis,_=N(T.renderer.globalAnimation);let C,J;if(s.labelEdge.length=0,s.overlap=!1,[m,W,F].forEach(function(X){l(X,function(et){et.isActive=!1})}),c(st)){const X=this.isXAxis?T.yAxis[0]:T.xAxis[0],et=[1,-1,-1,1][this.side];X&&(st=X.toPixels(st,!0),s.horiz&&(st=X.len-st),s.offset=et*st)}if(s.hasData()||q){const X=s.chart.hasRendered&&s.old&&c(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(et){s.renderMinorTick(et,X)}),o.length&&(o.forEach(function(et,dt){s.renderTick(et,dt,X)}),rt&&(s.min===0||s.single)&&(m[-1]||(m[-1]=new Y(s,-1,null,!0)),m[-1].render(-1))),it&&o.forEach(function(et,dt){J=typeof o[dt+1]<"u"?o[dt+1]+rt:s.max-rt,dt%2===0&&et<s.max&&J<=s.max+(T.polar?-rt:rt)&&(F[et]||(F[et]=new tt.PlotLineOrBand(s)),C=et+rt,F[et].options={from:R?R.lin2log(C):C,to:R?R.lin2log(J):J,color:it,className:"highcharts-alternate-grid"},F[et].render(),F[et].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(function(et){s.addPlotBandOrLine(et)}))}[m,W,F].forEach(function(X){const et=[],dt=_.duration;l(X,function(ct,xt){ct.isActive||(ct.render(xt,!1,0),ct.isActive=!1,et.push(xt))}),G(function(){let ct=et.length;for(;ct--;)X[et[ct]]&&!X[et[ct]].isActive&&(X[et[ct]].destroy(),delete X[et[ct]])},X!==F&&T.hasRendered&&dt?dt:0)}),ht&&(ht[ht.isPlaced?"animate":"attr"]({d:this.getLinePath(ht.strokeWidth())}),ht.isPlaced=!0,ht[ut?"show":"hide"](ut)),g&&ut&&(g[g.isNew?"attr":"animate"](s.getTitlePosition(g)),g.isNew=!1),H&&H.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||nt.keepProps}destroy(s){const T=this,R=T.plotLinesAndBands,I=this.eventOptions;if(n(this,"destroy",{keepEvents:s}),s||r(T),[T.ticks,T.minorTicks,T.alternateBands].forEach(function(q){u(q)}),R)for(s=R.length;s--;)R[s].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(q){T[q]&&(T[q]=T[q].destroy())});for(const q in T.plotLinesAndBandsGroups)T.plotLinesAndBandsGroups[q]=T.plotLinesAndBandsGroups[q].destroy();l(T,function(q,o){T.getKeepProps().indexOf(o)===-1&&delete T[o]}),this.eventOptions=I}drawCrosshair(s,T){const R=this.crosshair;var I=f(R&&R.snap,!0);const q=this.chart;let o,g=this.cross;if(n(this,"drawCrosshair",{e:s,point:T}),s||(s=this.cross&&this.cross.e),R&&(y(T)||!I)!==!1){if(I?y(T)&&(o=f(this.coll!=="colorAxis"?T.crosshairPos:null,this.isXAxis?T.plotX:this.len-T.plotY)):o=s&&(this.horiz?s.chartX-this.pos:this.len-s.chartY+this.pos),y(o)){var m={value:T&&(this.isXAxis?T.x:f(T.stackY,T.y)),translatedValue:o};q.polar&&k(m,{isCrosshair:!0,chartX:s&&s.chartX,chartY:s&&s.chartY,point:T}),m=this.getPlotLinePath(m)||null}if(!y(m)){this.hideCrosshair();return}I=this.categories&&!this.isRadial,g||(this.cross=g=q.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(I?"category ":"thin ")+(R.className||"")).attr({zIndex:f(R.zIndex,2)}).add(),q.styledMode||(g.attr({stroke:R.color||(I?$.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":f(R.width,1)}).css({"pointer-events":"none"}),R.dashStyle&&g.attr({dashstyle:R.dashStyle}))),g.show().attr({d:m}),I&&!R.width&&g.attr({"stroke-width":this.transA}),this.cross.e=s}else this.hideCrosshair();n(this,"afterDrawCrosshair",{e:s,point:T})}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,T){const R=this.chart;s=t(this.userOptions,s),this.destroy(!0),this.init(R,s),R.isDirtyBox=!0,f(T,!0)&&R.redraw()}remove(s){const T=this.chart,R=this.coll,I=this.series;let q=I.length;for(;q--;)I[q]&&I[q].remove(!1);M(T.axes,this),M(T[R]||[],this),T.orderItems(R),this.destroy(),T.isDirtyBox=!0,f(s,!0)&&T.redraw()}setTitle(s,T){this.update({title:s},T)}setCategories(s,T){this.update({categories:s},T)}}return nt.defaultOptions=A.defaultXAxisOptions,nt.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),nt}),K(w,"Core/Axis/DateTimeAxis.js",[w["Core/Utilities.js"]],function(j){const{addEvent:A,getMagnitude:$,normalizeTickInterval:Z,timeUnits:V}=j;var tt;return function(Y){function E(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function N(S){S.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new v(this))}const z=[];Y.compose=function(S){return j.pushUnique(z,S)&&(S.keepProps.push("dateTime"),S.prototype.getTimeTicks=E,A(S,"init",N)),S};class v{constructor(L){this.axis=L}normalizeTimeTickInterval(L,D){const d=D||[["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]];D=d[d.length-1];let x=V[D[0]],y=D[1],u;for(u=0;u<d.length&&(D=d[u],x=V[D[0]],y=D[1],!(d[u+1]&&L<=(x*y[y.length-1]+V[d[u+1][0]])/2));u++);return x===V.year&&L<5*x&&(y=[1,2,5]),L=Z(L/x,y,D[0]==="year"?Math.max($(L/x),1):1),{unitRange:x,count:L,unitName:D[0]}}getXDateFormat(L,D){const{axis:d}=this,x=d.chart.time;return d.closestPointRange?x.getDateFormat(d.closestPointRange,L,d.options.startOfWeek,D)||x.resolveDTLFormat(D.year).main:x.resolveDTLFormat(D.day).main}}Y.Additions=v}(tt||(tt={})),tt}),K(w,"Core/Axis/LogarithmicAxis.js",[w["Core/Utilities.js"]],function(j){const{addEvent:A,normalizeTickInterval:$,pick:Z}=j;var V;return function(tt){function Y(v){let S=this.logarithmic;v.userOptions.type!=="logarithmic"?this.logarithmic=void 0:S||(this.logarithmic=new z(this))}function E(){const v=this.logarithmic;v&&(this.lin2val=function(S){return v.lin2log(S)},this.val2lin=function(S){return v.log2lin(S)})}const N=[];tt.compose=function(v){return j.pushUnique(N,v)&&(v.keepProps.push("logarithmic"),A(v,"init",Y),A(v,"afterInit",E)),v};class z{constructor(S){this.axis=S}getLogTickPositions(S,L,D,d){const x=this.axis;var y=x.len,u=x.options;let M=[];if(d||(this.minorAutoInterval=void 0),.5<=S)S=Math.round(S),M=x.getLinearTickPositions(S,L,D);else if(.08<=S){u=Math.floor(L);let b,k,n,a,p;for(y=.3<S?[1,2,4]:.15<S?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];u<D+1&&!p;u++)for(k=y.length,b=0;b<k&&!p;b++)n=this.log2lin(this.lin2log(u)*y[b]),n>L&&(!d||a<=D)&&typeof a<"u"&&M.push(a),a>D&&(p=!0),a=n}else L=this.lin2log(L),D=this.lin2log(D),S=d?x.getMinorTickInterval():u.tickInterval,S=Z(S==="auto"?null:S,this.minorAutoInterval,u.tickPixelInterval/(d?5:1)*(D-L)/((d?y/x.tickPositions.length:y)||1)),S=$(S),M=x.getLinearTickPositions(S,L,D).map(this.log2lin),d||(this.minorAutoInterval=S/5);return d||(x.tickInterval=S),M}lin2log(S){return Math.pow(10,S)}log2lin(S){return Math.log(S)/Math.LN10}}tt.Additions=z}(V||(V={})),V}),K(w,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[w["Core/Utilities.js"]],function(j){const{erase:A,extend:$,isNumber:Z}=j;var V;return function(tt){function Y(x){return this.addPlotBandOrLine(x,"plotBands")}function E(x,y){const u=this.userOptions;let M=new d(this,x);if(this.visible&&(M=M.render()),M){if(this._addedPlotLB||(this._addedPlotLB=!0,(u.plotLines||[]).concat(u.plotBands||[]).forEach(b=>{this.addPlotBandOrLine(b)})),y){const b=u[y]||[];b.push(x),u[y]=b}this.plotLinesAndBands.push(M)}return M}function N(x){return this.addPlotBandOrLine(x,"plotLines")}function z(x,y,u=this.options){const M=this.getPlotLinePath({value:y,force:!0,acrossPanes:u.acrossPanes}),b=[],k=this.horiz;y=!Z(this.min)||!Z(this.max)||x<this.min&&y<this.min||x>this.max&&y>this.max,x=this.getPlotLinePath({value:x,force:!0,acrossPanes:u.acrossPanes}),u=1;let n;if(x&&M)for(y&&(n=x.toString()===M.toString(),u=0),y=0;y<x.length;y+=2){const a=x[y],p=x[y+1],h=M[y],c=M[y+1];a[0]!=="M"&&a[0]!=="L"||p[0]!=="M"&&p[0]!=="L"||h[0]!=="M"&&h[0]!=="L"||c[0]!=="M"&&c[0]!=="L"||(k&&h[1]===a[1]?(h[1]+=u,c[1]+=u):k||h[2]!==a[2]||(h[2]+=u,c[2]+=u),b.push(["M",a[1],a[2]],["L",p[1],p[2]],["L",c[1],c[2]],["L",h[1],h[2]],["Z"])),b.isFlat=n}return b}function v(x){this.removePlotBandOrLine(x)}function S(x){const y=this.plotLinesAndBands,u=this.options,M=this.userOptions;if(y){let b=y.length;for(;b--;)y[b].id===x&&y[b].destroy();[u.plotLines||[],M.plotLines||[],u.plotBands||[],M.plotBands||[]].forEach(function(k){for(b=k.length;b--;)(k[b]||{}).id===x&&A(k,k[b])})}}function L(x){this.removePlotBandOrLine(x)}const D=[];let d;tt.compose=function(x,y){return d||(d=x),j.pushUnique(D,y)&&$(y.prototype,{addPlotBand:Y,addPlotLine:N,addPlotBandOrLine:E,getPlotBandPath:z,removePlotBand:v,removePlotLine:L,removePlotBandOrLine:S}),y}}(V||(V={})),V}),K(w,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[w["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],w["Core/Utilities.js"]],function(j,A){const{arrayMax:$,arrayMin:Z,defined:V,destroyObjectProperties:tt,erase:Y,fireEvent:E,merge:N,objectEach:z,pick:v}=A;class S{static compose(D){return j.compose(S,D)}constructor(D,d){this.axis=D,d&&(this.options=d,this.id=d.id)}render(){E(this,"render");const D=this,d=D.axis,x=d.horiz;var y=d.logarithmic;const u=D.options,M=u.color,b=v(u.zIndex,0),k=u.events,n={},a=d.chart.renderer;let p=u.label,h=D.label,c=u.to,e=u.from,t=u.value,i=D.svgElem;var l=[];const f=V(e)&&V(c);l=V(t);const O=!i,r={class:"highcharts-plot-"+(f?"band ":"line ")+(u.className||"")};let P=f?"bands":"lines";if(y&&(e=y.log2lin(e),c=y.log2lin(c),t=y.log2lin(t)),d.chart.styledMode||(l?(r.stroke=M||"#999999",r["stroke-width"]=v(u.width,1),u.dashStyle&&(r.dashstyle=u.dashStyle)):f&&(r.fill=M||"#e6e9ff",u.borderWidth&&(r.stroke=u.borderColor,r["stroke-width"]=u.borderWidth))),n.zIndex=b,P+="-"+b,(y=d.plotLinesAndBandsGroups[P])||(d.plotLinesAndBandsGroups[P]=y=a.g("plot-"+P).attr(n).add()),O&&(D.svgElem=i=a.path().attr(r).add(y)),l)l=d.getPlotLinePath({value:t,lineWidth:i.strokeWidth(),acrossPanes:u.acrossPanes});else if(f)l=d.getPlotBandPath(e,c,u);else return;return!D.eventsAdded&&k&&(z(k,function(G,Q){i.on(Q,function(nt){k[Q].apply(D,[nt])})}),D.eventsAdded=!0),(O||!i.d)&&l&&l.length?i.attr({d:l}):i&&(l?(i.show(),i.animate({d:l})):i.d&&(i.hide(),h&&(D.label=h=h.destroy()))),p&&(V(p.text)||V(p.formatter))&&l&&l.length&&0<d.width&&0<d.height&&!l.isFlat?(p=N({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},p),this.renderLabel(p,l,f,b)):h&&h.hide(),D}renderLabel(D,d,x,y){const u=this.axis;var M=u.chart.renderer;let b=this.label;b||(this.label=b=M.text(this.getLabelText(D),0,0,D.useHTML).attr({align:D.textAlign||D.align,rotation:D.rotation,class:"highcharts-plot-"+(x?"band":"line")+"-label "+(D.className||""),zIndex:y}).add(),u.chart.styledMode||b.css(N({fontSize:"0.8em",textOverflow:"ellipsis"},D.style))),y=d.xBounds||[d[0][1],d[1][1],x?d[2][1]:d[0][1]],d=d.yBounds||[d[0][2],d[1][2],x?d[2][2]:d[0][2]],x=Z(y),M=Z(d),b.align(D,!1,{x,y:M,width:$(y)-x,height:$(d)-M}),b.alignValue&&b.alignValue!=="left"||(D=D.clip?u.width:u.chart.chartWidth,b.css({width:(b.rotation===90?u.height-(b.alignAttr.y-u.top):D-(b.alignAttr.x-u.left))+"px"})),b.show(!0)}getLabelText(D){return V(D.formatter)?D.formatter.call(this):D.text}destroy(){Y(this.axis.plotLinesAndBands,this),delete this.axis,tt(this)}}return S}),K(w,"Core/Tooltip.js",[w["Core/Templating.js"],w["Core/Globals.js"],w["Core/Renderer/RendererUtilities.js"],w["Core/Renderer/RendererRegistry.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V){const{format:tt}=j,{doc:Y,isSafari:E}=A,{distribute:N}=$,{addEvent:z,clamp:v,css:S,discardElement:L,extend:D,fireEvent:d,isArray:x,isNumber:y,isString:u,merge:M,pick:b,splat:k,syncTimeout:n}=V;class a{constructor(h,c){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,c)}bodyFormatter(h){return h.map(function(c){const e=c.series.tooltipOptions;return(e[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,e[(c.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(h){this.chart.series.forEach(function(c){const e=c&&c.tt;e&&(!e.isActive||h?c.tt=e.destroy():e.isActive=!1)})}defaultFormatter(h){const c=this.points||k(this);let e;return e=[h.tooltipFooterHeaderFormatter(c[0])],e=e.concat(h.bodyFormatter(c)),e.push(h.tooltipFooterHeaderFormatter(c[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)),V.clearTimeout(this.hideTimer),V.clearTimeout(this.tooltipTimeout)}getAnchor(h,c){var e=this.chart;const t=e.pointer,i=e.inverted,l=e.plotTop;if(e=e.plotLeft,h=k(h),h[0].series&&h[0].series.yAxis&&!h[0].series.yAxis.options.reversedStacks&&(h=h.slice().reverse()),this.followPointer&&c)typeof c.chartX>"u"&&(c=t.normalize(c)),h=[c.chartX-e,c.chartY-l];else if(h[0].tooltipPos)h=h[0].tooltipPos;else{let f=0,O=0;h.forEach(function(r){(r=r.pos(!0))&&(f+=r[0],O+=r[1])}),f/=h.length,O/=h.length,this.shared&&1<h.length&&c&&(i?f=c.chartX:O=c.chartY),h=[f-e,O-l]}return h.map(Math.round)}getClassName(h,c,e){const t=h.series,i=t.options;return[this.options.className,"highcharts-label",e&&"highcharts-tooltip-header",c?"highcharts-tooltip-box":"highcharts-tooltip",!e&&"highcharts-color-"+b(h.colorIndex,t.colorIndex),i&&i.className].filter(u).join(" ")}getLabel(){const h=this,c=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 O=!this.label.hasClass("highcharts-label");(!t&&O||t&&!O)&&this.destroy()}if(!this.label){if(this.outside){O=this.chart.options.chart.style;const r=Z.getRendererType();this.container=l=A.doc.createElement("div"),l.className="highcharts-tooltip-container",S(l,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(O&&O.zIndex||0)+3)}),A.doc.body.appendChild(l),this.renderer=f=new r(l,0,0,O,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}),c||this.label.attr({fill:e.backgroundColor,"stroke-width":e.borderWidth||0}).css(e.style).css({pointerEvents:i})),h.outside){const r=this.label,{xSetter:P,ySetter:G}=r;r.xSetter=function(Q){P.call(r,h.distance),l.style.left=Q+"px"},r.ySetter=function(Q){G.call(r,h.distance),l.style.top=Q+"px"}}this.label.attr({zIndex:8}).shadow(e.shadow).add()}return this.label}getPlayingField(){const{body:h,documentElement:c}=Y,{chart:e,distance:t,outside:i}=this;return{width:i?Math.max(h.scrollWidth,c.scrollWidth,h.offsetWidth,c.offsetWidth,c.clientWidth)-2*t:e.chartWidth,height:i?Math.max(h.scrollHeight,c.scrollHeight,h.offsetHeight,c.offsetHeight,c.clientHeight):e.chartHeight}}getPosition(h,c,e){const t=this.chart,i=this.distance,l={},f=t.inverted&&e.h||0,O=this.outside;var r=this.getPlayingField();const P=r.width,G=r.height,Q=t.pointer.getChartPosition();r=g=>{const m=g==="x";return[g,m?P:G,m?h:c].concat(O?[m?h*Q.scaleX:c*Q.scaleY,m?Q.left-i+(e.plotX+t.plotLeft)*Q.scaleX:Q.top-i+(e.plotY+t.plotTop)*Q.scaleY,0,m?P:G]:[m?h:c,m?e.plotX+t.plotLeft:e.plotY+t.plotTop,m?t.plotLeft:t.plotTop,m?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])};let nt=r("y"),B=r("x"),s;r=!!e.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(r=!r);const T=!this.followPointer&&b(e.ttBelow,!t.inverted===r),R=function(g,m,W,F,H,it,st){const rt=O?g==="y"?i*Q.scaleY:i*Q.scaleX:i,ht=(W-F)/2,ut=F<H-i,_=H+i+F<m,C=H-rt-W+ht;if(H=H+rt-ht,T&&_)l[g]=H;else if(!T&&ut)l[g]=C;else if(ut)l[g]=Math.min(st-F,0>C-f?C:C-f);else if(_)l[g]=Math.max(it,H+f+W>m?H:H+f);else return!1},I=function(g,m,W,F,H){let it;return H<i||H>m-i?it=!1:l[g]=H<W/2?1:H>m-F/2?m-F-2:H-W/2,it},q=function(g){const m=nt;nt=B,B=m,s=g},o=function(){R.apply(0,nt)!==!1?I.apply(0,B)!==!1||s||(q(!0),o()):s?l.x=l.y=0:(q(!0),o())};return(t.inverted||1<this.len)&&q(),o(),l}hide(h){const c=this;V.clearTimeout(this.hideTimer),h=b(h,this.options.hideDelay),this.isHidden||(this.hideTimer=n(function(){c.getLabel().fadeOut(h&&void 0),c.isHidden=!0},h))}init(h,c){this.chart=h,this.options=c,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=c.split&&!h.inverted&&!h.polar,this.shared=c.shared||this.split,this.outside=b(c.outside,!(!h.scrollablePixelsX&&!h.scrollablePixelsY))}shouldStickOnContact(h){return!(this.followPointer||!this.options.stickOnContact||h&&!this.chart.pointer.inClass(h.target,"highcharts-tooltip"))}move(h,c,e,t){const i=this,l=i.now,f=i.options.animation!==!1&&!i.isHidden&&(1<Math.abs(h-l.x)||1<Math.abs(c-l.y)),O=i.followPointer||1<i.len;D(l,{x:f?(2*l.x+h)/3:h,y:f?(l.y+c)/2:c,anchorX:O?void 0:f?(2*l.anchorX+e)/3:e,anchorY:O?void 0:f?(l.anchorY+t)/2:t}),i.getLabel().attr(l),i.drawTracker(),f&&(V.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){i&&i.move(h,c,e,t)},32))}refresh(h,c){const e=this.chart,t=this.options,i=e.pointer,l=k(h),f=l[0],O=[];var r=t.format,P=t.formatter||this.defaultFormatter;const G=this.shared,Q=e.styledMode;let nt={};if(t.enabled&&f.series){V.clearTimeout(this.hideTimer),this.allowShared=!(!x(h)&&h.series&&h.series.noSharedTooltip),this.followPointer=!this.split&&f.series.tooltipOptions.followPointer,h=this.getAnchor(h,c);var B=h[0],s=h[1];if(G&&this.allowShared?(i.applyInactiveState(l),l.forEach(function(T){T.setState("hover"),O.push(T.getLabelConfig())}),nt=f.getLabelConfig(),nt.points=O):nt=f.getLabelConfig(),this.len=O.length,r=u(r)?tt(r,nt,e):P.call(nt,this),P=f.series,this.distance=b(P.tooltipOptions.distance,16),r===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(r,l);else{let T=B,R=s;if(c&&i.isDirectTouch&&(T=c.chartX-e.plotLeft,R=c.chartY-e.plotTop),e.polar||P.options.clip===!1||l.some(I=>i.isDirectTouch||I.series.shouldShowTooltip(T,R)))c=this.getLabel(),t.style.width&&!Q||c.css({width:(this.outside?this.getPlayingField():e.spacingBox).width+"px"}),c.attr({text:r&&r.join?r.join(""):r}),c.addClass(this.getClassName(f),!0),Q||c.attr({stroke:t.borderColor||f.color||P.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}d(this,"refresh")}}renderSplit(h,c){function e(X,et,dt,ct,xt=!0){return dt?(et=W?0:rt,X=v(X-ct/2,o.left,o.right-ct-(t.outside?F:0))):(et-=it,X=xt?X-ct-R:X+R,X=v(X,xt?X:o.left,o.right)),{x:X,y:et}}const t=this,{chart:i,chart:{chartWidth:l,chartHeight:f,plotHeight:O,plotLeft:r,plotTop:P,pointer:G,scrollablePixelsY:Q=0,scrollablePixelsX:nt,scrollingContainer:{scrollLeft:B,scrollTop:s}={scrollLeft:0,scrollTop:0},styledMode:T},distance:R,options:I,options:{positioner:q}}=t,o=t.outside&&typeof nt!="number"?Y.documentElement.getBoundingClientRect():{left:B,right:B+l,top:s,bottom:s+f},g=t.getLabel(),m=this.renderer||i.renderer,W=!(!i.xAxis[0]||!i.xAxis[0].opposite),{left:F,top:H}=G.getChartPosition();let it=P+s,st=0,rt=O-Q;u(h)&&(h=[!1,h]),h=h.slice(0,c.length+1).reduce(function(X,et,dt){if(et!==!1&&et!==""){dt=c[dt-1]||{isHeader:!0,plotX:c[0].plotX,plotY:O,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:Et}=yt;gt||(gt={padding:I.padding,r:I.borderRadius},T||(gt.fill=I.backgroundColor,gt["stroke-width"]=(xt=I.borderWidth)!==null&&xt!==void 0?xt:1),gt=m.label("",0,0,I[Mt?"headerShape":"shape"],void 0,void 0,I.useHTML).addClass(t.getClassName(yt,!0,Mt)).attr(gt).add(g)),gt.isActive=!0,gt.attr({text:et}),T||gt.css(I.style).attr({stroke:I.borderColor||yt.color||Et.color||"#333333"}),xt=gt}xt=ct.tt=xt,yt=xt.getBBox(),ct=yt.width+xt.strokeWidth(),Ct&&(st=yt.height,rt+=st,W&&(it-=st));{const{isHeader:Mt,plotX:Et=0,plotY:Tt=0,series:Rt}=dt;if(Mt){et=r+Et;var mt=P+O/2}else{const{xAxis:Ht,yAxis:Ot}=Rt;et=Ht.pos+v(Et,-R,Ht.len+R),Rt.shouldShowTooltip(0,Ot.pos-P+Tt,{ignoreX:!0})&&(mt=Ot.pos+Tt)}et=v(et,o.left-R,o.right+R),mt={anchorX:et,anchorY:mt}}const{anchorX:kt,anchorY:bt}=mt;typeof bt=="number"?(mt=yt.height+1,yt=q?q.call(t,ct,mt,dt):e(kt,bt,Ct,ct),X.push({align:q?0:void 0,anchorX:kt,anchorY:bt,boxWidth:ct,point:dt,rank:b(yt.rank,Ct?1:0),size:mt,target:yt.y,tt:xt,x:yt.x})):xt.isActive=!1}return X},[]),!q&&h.some(X=>{var{outside:et}=t;return et=(et?F:0)+X.anchorX,et<o.left&&et+X.boxWidth<o.right?!0:et<F-o.left+X.boxWidth&&o.right-et>et})&&(h=h.map(X=>{const{x:et,y:dt}=e(X.anchorX,X.anchorY,X.point.isHeader,X.boxWidth,!1);return D(X,{target:dt,x:et})})),t.cleanSplit(),N(h,rt);var ht=F,ut=F;h.forEach(function(X){const{x:et,boxWidth:dt,isHeader:ct}=X;ct||(t.outside&&F+et<ht&&(ht=F+et),!ct&&t.outside&&ht+dt>ut&&(ut=F+et))}),h.forEach(function(X){const{x:et,anchorX:dt,anchorY:ct,pos:xt,point:{isHeader:yt}}=X,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))}X.tt.attr(gt)});const{container:_,outside:C,renderer:J}=t;if(C&&_&&J){const{width:X,height:et,x:dt,y:ct}=g.getBBox();J.setSize(X+dt,et+ct,!1),_.style.left=ht+"px",_.style.top=H+"px"}E&&g.attr({opacity:g.opacity===1?.999:1})}drawTracker(){if(this.shouldStickOnContact()){var h=this.chart,c=this.label,e=this.shared?h.hoverPoints:h.hoverPoint;if(c&&e){var t={x:0,y:0,width:0,height:0};e=this.getAnchor(e);var i=c.getBBox();e[0]+=h.plotLeft-c.translateX,e[1]+=h.plotTop-c.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=c.renderer.rect(t).addClass("highcharts-tracker").add(c),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,c){const e=h.series,t=e.tooltipOptions;var i=e.xAxis;const l=i&&i.dateTime;i={isFooter:c,labelConfig:h};let f=t.xDateFormat,O=t[c?"footerFormat":"headerFormat"];return d(this,"headerFormatter",i,function(r){l&&!f&&y(h.key)&&(f=l.getXDateFormat(h.key,t.dateTimeLabelFormats)),l&&f&&(h.point&&h.point.tooltipDateKeys||["key"]).forEach(function(P){O=O.replace("{point."+P+"}","{point."+P+":"+f+"}")}),e.chart.styledMode&&(O=this.styledModeFormat(O)),r.text=tt(O,{point:h,series:e},this.chart)}),i.text}update(h){this.destroy(),this.init(this.chart,M(!0,this.options,h))}updatePosition(h){const{chart:c,distance:e,options:t}=this;var i=c.pointer;const l=this.getLabel(),{left:f,top:O,scaleX:r,scaleY:P}=i.getChartPosition();i=(t.positioner||this.getPosition).call(this,l.width,l.height,h);let G=(h.plotX||0)+c.plotLeft;h=(h.plotY||0)+c.plotTop;let Q;this.outside&&(t.positioner&&(i.x+=f-e,i.y+=O-e),Q=(t.borderWidth||0)+2*e,this.renderer.setSize(l.width+Q,l.height+Q,!1),(r!==1||P!==1)&&(S(this.container,{transform:`scale(${r}, ${P})`}),G*=r,h*=P),G+=f-i.x,h+=O-i.y),this.move(Math.round(i.x),Math.round(i.y||0),G,h)}}return function(p){const h=[];p.compose=function(c){V.pushUnique(h,c)&&z(c,"afterInit",function(){const e=this.chart;e.options.tooltip&&(e.tooltip=new p(e,e.options.tooltip))})}}(a||(a={})),a}),K(w,"Core/Series/Point.js",[w["Core/Renderer/HTML/AST.js"],w["Core/Animation/AnimationUtilities.js"],w["Core/Defaults.js"],w["Core/Templating.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V){const{animObject:tt}=A,{defaultOptions:Y}=$,{format:E}=Z,{addEvent:N,defined:z,erase:v,extend:S,fireEvent:L,getNestedProperty:D,isArray:d,isFunction:x,isNumber:y,isObject:u,merge:M,objectEach:b,pick:k,syncTimeout:n,removeEvent:a,uniqueKey:p}=V;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:y(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=tt(t.series.chart.renderer.globalAnimation),O=()=>{(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(),v(l,t),l.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),e&&e.enabled?(this.animateBeforeDestroy(),n(O,f.duration)):O(),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(O){l.select&&l.select(null,O.ctrlKey||O.metaKey||O.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,O;for(e=e||{graphic:1,dataLabel:1},e.graphic&&i.push("graphic"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),O=i.length;O--;)f=i[O],t[f]&&l.singular.push(f);return["graphic","dataLabel","connector"].forEach(function(r){const P=r+"s";e[r]&&t[P]&&l.plural.push(P)}),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?D(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=z(this.id)?this.id:p(),this.resolveColor(),e.chart.pointCount++,L(this,"afterInit"),this}isValid(){return this.x!==null&&y(this.y)}optionsToObject(e){var t=this.series;const i=t.options.keys,l=i||t.pointArrayMap||["y"],f=l.length;let O={},r=0,P=0;if(y(e)||e===null)O[l[0]]=e;else if(d(e))for(!i&&e.length>f&&(t=typeof e[0],t==="string"?O.name=e[0]:t==="number"&&(O.x=e[0]),r++);P<f;)i&&typeof e[r]>"u"||(0<l[P].indexOf(".")?h.prototype.setNestedProperty(O,e[r],l[P]):O[l[P]]=e[r]),r++,P++;else typeof e=="object"&&(O=e,e.dataLabels&&(t._hasPointLabels=!0),e.marker&&(t._hasPointMarkers=!0));return O}pos(e,t=this.plotY){if(!this.destroyed){const{plotX:i,series:l}=this,{chart:f,xAxis:O,yAxis:r}=l;let P=0,G=0;if(y(i)&&y(t))return e&&(P=O?O.pos:f.plotLeft,G=r?r.pos:f.plotTop),f.inverted&&O&&r?[r.len-t+G,O.len-i+P]:[i+P,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=k(this.options.colorIndex,t),this.color=k(this.options.color,i)}setNestedProperty(e,t,i){return i.split(".").reduce(function(l,f,O,r){return l[f]=r.length-1===O?t:u(l[f],!0)?l[f]:{},l[f]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){const t=this.series,i=t.tooltipOptions,l=k(i.valueDecimals,""),f=i.valuePrefix||"",O=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(r){r="{point."+r,(f||O)&&(e=e.replace(RegExp(r+"}","g"),f+r+"}"+O)),e=e.replace(RegExp(r+"}","g"),r+":,."+l+"f}")}),E(e,{point:this,series:this.series},t.chart)}update(e,t,i,l){function f(){O.applyOptions(e);var B=P&&O.hasMockGraphic;B=O.y===null?!B:B,P&&B&&(O.graphic=P.destroy(),delete O.hasMockGraphic),u(e,!0)&&(P&&P.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(O.graphic=P.destroy()),e&&e.dataLabels&&O.dataLabel&&(O.dataLabel=O.dataLabel.destroy()),O.connector&&(O.connector=O.connector.destroy())),nt=O.index,r.updateParallelArrays(O,nt),Q.data[nt]=u(Q.data[nt],!0)||u(e,!0)?O.options:k(e,Q.data[nt]),r.isDirty=r.isDirtyData=!0,!r.fixedBox&&r.hasCartesianSeries&&(G.isDirtyBox=!0),Q.legendType==="point"&&(G.isDirtyLegend=!0),t&&G.redraw(i)}const O=this,r=O.series,P=O.graphic,G=r.chart,Q=r.options;let nt;t=k(t,!0),l===!1?f():O.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=k(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(O){const r=O.series;O.selected&&O!==i&&(O.selected=O.options.selected=!1,r.options.data[r.data.indexOf(O)]=O.options,O.setState(f.hoverPoints&&r.options.inactiveOtherPoints?"inactive":""),O.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=M(e.series.options.point,e.options).events;e.events=t,b(t,function(i,l){x(i)&&N(e,l,i)}),this.hasImportedEvents=!0}}setState(e,t){const i=this.series;var l=this.state,f=i.options.states[e||"normal"]||{},O=Y.plotOptions[i.type].marker&&i.options.marker;const r=O&&O.enabled===!1,P=O&&O.states&&O.states[e||"normal"]||{},G=P.enabled===!1,Q=this.marker||{},nt=i.chart,B=O&&i.markerAttribs;let s=i.halo;var T;let R;var I=i.stateMarkerGraphic;if(e=e||"",!(e===this.state&&!t||this.selected&&e!=="select"||f.enabled===!1||e&&(G||r&&P.enabled===!1)||e&&Q.states&&Q.states[e]&&Q.states[e].enabled===!1)){if(this.state=e,B&&(T=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(l&&this.graphic.removeClass("highcharts-point-"+l),e&&this.graphic.addClass("highcharts-point-"+e),!nt.styledMode){l=i.pointAttribs(this,e),R=k(nt.options.chart.animation,f.animation);const q=l.opacity;i.options.inactiveOtherPoints&&y(q)&&((this.dataLabels||[]).forEach(function(o){o&&!o.hasClass("highcharts-data-label-hidden")&&o.animate({opacity:q},R)}),this.connector&&this.connector.animate({opacity:q},R)),this.graphic.animate(l,R)}T&&this.graphic.animate(T,k(nt.options.chart.animation,P.animation,O.animation)),I&&I.hide()}else e&&P&&(O=Q.symbol||i.symbol,I&&I.currentSymbol!==O&&(I=I.destroy()),T&&(I?I[t?"animate":"attr"]({x:T.x,y:T.y}):O&&(i.stateMarkerGraphic=I=nt.renderer.symbol(O,T.x,T.y,T.width,T.height).add(i.markerGroup),I.currentSymbol=O)),!nt.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,T=(I=this.graphic||I)&&I.visibility||"inherit",f&&f.size&&I&&T!=="hidden"&&!this.isCluster?(s||(i.halo=s=nt.renderer.path().add(I.parentGroup)),s.show()[t?"animate":"attr"]({d:this.haloPath(f.size)}),s.attr({class:"highcharts-halo highcharts-color-"+k(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:T,zIndex:-1}),s.point=this,nt.styledMode||s.attr(S({fill:this.color||i.color,"fill-opacity":f.opacity},j.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}),K(w,"Core/Pointer.js",[w["Core/Color/Color.js"],w["Core/Globals.js"],w["Core/Utilities.js"]],function(j,A,$){const{parse:Z}=j,{charts:V,noop:tt}=A,{addEvent:Y,attr:E,css:N,defined:z,extend:v,find:S,fireEvent:L,isNumber:D,isObject:d,objectEach:x,offset:y,pick:u,splat:M}=$;class b{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=[],p;(n||[]).forEach(function(h){p=h.series,a.push(p),p.linkedParent&&a.push(p.linkedParent),p.linkedSeries&&(a=a.concat(p.linkedSeries)),p.navigatorSeries&&a.push(p.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=[],A.chartCount||(b.unbindDocumentMouseUp&&(b.unbindDocumentMouseUp=b.unbindDocumentMouseUp()),b.unbindDocumentTouchEnd&&(b.unbindDocumentTouchEnd=b.unbindDocumentTouchEnd())),clearInterval(n.tooltipTimeout),x(n,function(a,p){n[p]=void 0})}getSelectionMarkerAttrs(n,a){const p={args:{chartX:n,chartY:a},attrs:{},shapeType:"rect"};return L(this,"getSelectionMarkerAttrs",p,h=>{const{chart:c,mouseDownX:e=0,mouseDownY:t=0,zoomHor:i,zoomVert:l}=this;h=h.attrs;let f;h.x=c.plotLeft,h.y=c.plotTop,h.width=i?1:c.plotWidth,h.height=l?1:c.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)}),p}drag(n){const a=this.chart,p=a.options.chart;var h=a.plotLeft;const c=a.plotTop,e=a.plotWidth,t=a.plotHeight,i=this.mouseDownX||0,l=this.mouseDownY||0,f=d(p.panning)?p.panning&&p.panning.enabled:p.panning,O=p.panKey&&n[p.panKey+"Key"];let r=n.chartX,P=n.chartY,G=this.selectionMarker;if((!G||!G.touch)&&(r<h?r=h:r>h+e&&(r=h+e),P<c?P=c:P>c+t&&(P=c+t),this.hasDragged=Math.sqrt(Math.pow(i-r,2)+Math.pow(l-P,2)),10<this.hasDragged)){h=a.isInsidePlot(i-h,l-c,{visiblePlotOnly:!0});const{shapeType:Q,attrs:nt}=this.getSelectionMarkerAttrs(r,P);!a.hasCartesianSeries&&!a.mapView||!this.zoomX&&!this.zoomY||!h||O||G||(this.selectionMarker=G=a.renderer[Q](),G.attr({class:"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||G.attr({fill:p.selectionMarkerFill||Z("#334eff").setOpacity(.25).get()})),G&&G.attr(nt),h&&!G&&f&&a.pan(n,p.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,p=>{p.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,p=this.chart,h=this.hasPinched;if(this.selectionMarker){const{x:c,y:e,width:t,height:i}=this.getSelectionBox(this.selectionMarker),l={originalEvent:n,xAxis:[],yAxis:[],x:c,y:e,width:t,height:i};let f=!!p.mapView;(this.hasDragged||h)&&(p.axes.forEach(function(O){if(O.zoomEnabled&&z(O.min)&&(h||a[{xAxis:"zoomX",yAxis:"zoomY"}[O.coll]])&&D(c)&&D(e)&&D(t)&&D(i)){var r=O.horiz;const P=n.type==="touchend"?O.minPixelPadding:0,G=O.toValue((r?c:e)+P);r=O.toValue((r?c+t:e+i)-P),l[O.coll].push({axis:O,min:Math.min(G,r),max:Math.max(G,r)}),f=!0}}),f&&L(p,"selection",l,function(O){p.zoom(v(O,h?{animation:!1}:null))})),D(p.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}p&&D(p.index)&&(N(p.container,{cursor:p._cursor}),p.cancelClick=10<this.hasDragged,p.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(n,a,p){let h;return n.forEach(function(c){var e=!(c.noSharedTooltip&&a)&&0>c.options.findNearestPointBy.indexOf("y");if(c=c.searchPoint(p,e),(e=d(c,!0)&&c.series)&&!(e=!d(h,!0))){{e=h.distX-c.distX;const t=h.dist-c.dist,i=(c.series.group&&c.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);e=e!==0&&a?e:t!==0?t:i!==0?i:h.series.index>c.series.index?-1:1}e=0<e}e&&(h=c)}),h}getChartCoordinatesFromPoint(n,a){var p=n.series;const h=p.xAxis;p=p.yAxis;const c=n.shapeArgs;if(h&&p){let e=u(n.clientX,n.plotX),t=n.plotY||0;return n.isNode&&c&&D(c.x)&&D(c.y)&&(e=c.x,t=c.y),a?{chartX:p.len+p.pos-t,chartY:h.len+h.pos-e}:{chartX:e+h.pos,chartY:t+p.pos}}if(c&&c.x&&c.y)return{chartX:c.x,chartY:c.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;var{container:n}=this.chart;const a=y(n);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};const p=n.offsetWidth;return n=n.offsetHeight,2<p&&2<n&&(this.chartPosition.scaleX=a.width/p,this.chartPosition.scaleY=a.height/n),this.chartPosition}getCoordinates(n){const a={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(p){a[p.isXAxis?"xAxis":"yAxis"].push({axis:p,value:p.toValue(n[p.horiz?"chartX":"chartY"])})}),a}getHoverData(n,a,p,h,c,e){const t=[];h=!(!h||!n);const i=function(r){return r.visible&&!(!c&&r.directTouch)&&u(r.options.enableMouseTracking,!0)};let l,f={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:c};L(this,"beforeGetHoverData",f),l=a&&!a.stickyTracking?[a]:p.filter(r=>r.stickyTracking&&(f.filter||i)(r));const O=h||!e?n:this.findNearestKDPoint(l,c,e);return a=O&&O.series,O&&(c&&!a.noSharedTooltip?(l=p.filter(function(r){return f.filter?f.filter(r):i(r)&&!r.noSharedTooltip}),l.forEach(function(r){let P=S(r.points,function(G){return G.x===O.x&&!G.isNull});d(P)&&(r.boosted&&r.boost&&(P=r.boost.getPoint(P)),t.push(P))})):t.push(O)),f={hoverPoint:O},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 p;for(;n;){if(p=E(n,"class")){if(p.indexOf(a)!==-1)return!0;if(p.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 p=n.touches,h=p?p.length?p.item(0):u(p.changedTouches,n.changedTouches)[0]:n;return a||(a=this.getChartPosition()),p=h.pageX-a.left,h=h.pageY-a.top,p/=a.scaleX,h/=a.scaleY,v(n,{chartX:Math.round(p),chartY:Math.round(h)})}onContainerClick(n){const a=this.chart,p=a.hoverPoint;n=this.normalize(n);const h=a.plotLeft,c=a.plotTop;a.cancelClick||(p&&this.inClass(n.target,"highcharts-tracker")?(L(p.series,"click",v(n,{point:p})),a.hoverPoint&&p.firePointEvent("click",n)):(v(n,this.getCoordinates(n)),a.isInsidePlot(n.chartX-h,n.chartY-c,{visiblePlotOnly:!0})&&L(a,"click",n)))}onContainerMouseDown(n){const a=((n.buttons||n.button)&1)===1;n=this.normalize(n),A.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=V[u(b.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,p=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})||p&&p.shouldStickOnContact(n)||(this.inClass(n.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(n))}onDocumentTouchEnd(n){const a=V[u(b.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,p=a.tooltip,h=this.chartPosition;n=this.normalize(n,h),!h||a.isInsidePlot(n.chartX-a.plotLeft,n.chartY-a.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(n)||this.inClass(n.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(n){const a=V[u(b.hoverChartIndex,-1)];a&&a.pointer.drop(n)}pinch(n){const a=this,p=a.chart,h=a.pinchDown,c=n.touches||[],e=c.length,t=a.lastValidTouch,i=a.hasZoom,l={},f=e===1&&(a.inClass(n.target,"highcharts-tracker")&&p.runTrackerClick||a.runChartClick),O={};var r=a.chart.tooltip;r=e===1&&u(r&&r.options.followTouchMove,!0);let P=a.selectionMarker;1<e?a.initiated=!0:r&&(a.initiated=!1),i&&a.initiated&&!f&&n.cancelable!==!1&&n.preventDefault(),[].map.call(c,function(G){return a.normalize(G)}),n.type==="touchstart"?([].forEach.call(c,function(G,Q){h[Q]={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],p.axes.forEach(function(G){if(G.zoomEnabled){const Q=p.bounds[G.horiz?"h":"v"],nt=G.minPixelPadding,B=G.toPixels(Math.min(u(G.options.min,G.dataMin),G.dataMin)),s=G.toPixels(Math.max(u(G.options.max,G.dataMax),G.dataMax)),T=Math.max(B,s);Q.min=Math.min(G.pos,Math.min(B,s)-nt),Q.max=Math.max(G.pos+G.len,T+nt)}}),a.res=!0):r?this.runPointActions(a.normalize(n)):h.length&&(L(p,"touchpan",{originalEvent:n},()=>{P||(a.selectionMarker=P=v({destroy:tt,touch:!0},p.plotBox)),a.pinchTranslate(h,c,l,P,O,t),a.hasPinched=i,a.scaleGroups(l,O)}),a.res&&(a.res=!1,this.reset(!1,0)))}pinchTranslate(n,a,p,h,c,e){this.zoomHor&&this.pinchTranslateDirection(!0,n,a,p,h,c,e),this.zoomVert&&this.pinchTranslateDirection(!1,n,a,p,h,c,e)}pinchTranslateDirection(n,a,p,h,c,e,t,i){const l=this.chart,f=n?"x":"y",O=n?"X":"Y",r="chart"+O,P=n?"width":"height",G=l["plot"+(n?"Left":"Top")],Q=l.inverted,nt=l.bounds[n?"h":"v"],B=a.length===1,s=a[0][r],T=!B&&a[1][r];a=function(){typeof g=="number"&&20<Math.abs(s-T)&&(q=i||Math.abs(o-g)/Math.abs(s-T)),I=(G-o)/q+s,R=l["plot"+(n?"Width":"Height")]/q};let R,I,q=i||1,o=p[0][r],g=!B&&p[1][r],m;a(),p=I,p<nt.min?(p=nt.min,m=!0):p+R>nt.max&&(p=nt.max-R,m=!0),m?(o-=.8*(o-t[f][0]),typeof g=="number"&&(g-=.8*(g-t[f][1])),a()):t[f]=[o,g],Q||(e[f]=I-G,e[P]=R),e=Q?1/q:q,c[P]=R,c[f]=p,h[Q?n?"scaleY":"scaleX":"scale"+O]=q,h["translate"+O]=e*G+(o-e*s)}reset(n,a){const p=this.chart,h=p.hoverSeries,c=p.hoverPoint,e=p.hoverPoints,t=p.tooltip,i=t&&t.shared?e:c;n&&i&&M(i).forEach(function(l){l.series.isCartesian&&typeof l.plotX>"u"&&(n=!1)}),n?t&&i&&M(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))}):c&&(c.setState(c.state,!0),p.axes.forEach(function(l){l.crosshair&&c.series[l.coll]===l&&l.drawCrosshair(null,c)}))):(c&&c.onMouseOut(),e&&e.forEach(function(l){l.setState()}),h&&h.onMouseOut(),t&&t.hide(a),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),p.axes.forEach(function(l){l.hideCrosshair()}),this.hoverX=p.hoverPoints=p.hoverPoint=null)}runPointActions(n,a,p){const h=this.chart,c=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,e=c?c.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&&(p||t!==h.hoverPoint||c&&c.isHidden)){if((h.hoverPoints||[]).forEach(function(O){l.indexOf(O)===-1&&O.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(l),(l||[]).forEach(function(O){O.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!t.series)return;h.hoverPoints=l,h.hoverPoint=t,t.firePointEvent("mouseOver",void 0,()=>{c&&t&&c.refresh(f?l:t,n)})}else a&&c&&!c.isHidden&&(p=c.getAnchor([{}],n),h.isInsidePlot(p[0],p[1],{visiblePlotOnly:!0})&&c.updatePosition({plotX:p[0],plotY:p[1]}));this.unDocMouseMove||(this.unDocMouseMove=Y(h.container.ownerDocument,"mousemove",function(O){const r=V[b.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(O)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(O){const r=u((O.crosshair||{}).snap,!0);let P;r&&((P=h.hoverPoint)&&P.series[O.coll]===O||(P=S(l,G=>G.series&&G.series[O.coll]===O))),P||!r?O.drawCrosshair(n,P):O.hideCrosshair()})}scaleGroups(n,a){const p=this.chart;p.series.forEach(function(h){const c=n||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||p.mapView)&&(h.group.attr(c),h.markerGroup&&(h.markerGroup.attr(c),h.markerGroup.clip(a?p.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(c))}),p.clipRect.attr(a||p.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(Y(n,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(Y(n,"mouseleave",this.onContainerMouseLeave.bind(this))),b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=Y(a,"mouseup",this.onDocumentMouseUp.bind(this)));let p=this.chart.renderTo.parentElement;for(;p&&p.tagName!=="BODY";)this.eventsToUnbind.push(Y(p,"scroll",()=>{delete this.chartPosition})),p=p.parentElement;A.hasTouch&&(this.eventsToUnbind.push(Y(n,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(Y(n,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=Y(a,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const n=this.chart,a=A.charts[u(b.hoverChartIndex,-1)];a&&a!==n&&a.pointer.onContainerMouseLeave({relatedTarget:n.container}),a&&a.mouseIsDown||(b.hoverChartIndex=n.index)}touch(n,a){const p=this.chart;let h;this.setHoverChartIndex(),n.touches.length===1?(n=this.normalize(n),p.isInsidePlot(n.chartX-p.plotLeft,n.chartY-p.plotTop,{visiblePlotOnly:!0})&&!p.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),u(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,p=a.inverted;var h=a.zooming.type||"";/touch/.test(n.type)&&(h=u(a.zooming.pinchType,h)),this.zoomX=n=/x/.test(h),this.zoomY=h=/y/.test(h),this.zoomHor=n&&!p||h&&p,this.zoomVert=h&&!p||n&&p,this.hasZoom=n||h}}return function(k){const n=[],a=[];k.compose=function(p){$.pushUnique(a,p)&&Y(p,"beforeRender",function(){this.pointer=new k(this,this.options)})},k.dissolve=function(){for(let p=0,h=n.length;p<h;++p)n[p]();n.length=0}}(b||(b={})),b}),K(w,"Core/Legend/Legend.js",[w["Core/Animation/AnimationUtilities.js"],w["Core/Templating.js"],w["Core/Globals.js"],w["Core/Series/Point.js"],w["Core/Renderer/RendererUtilities.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V,tt){const{animObject:Y,setAnimation:E}=j,{format:N}=A,{marginNames:z}=$,{distribute:v}=V,{addEvent:S,createElement:L,css:D,defined:d,discardElement:x,find:y,fireEvent:u,isNumber:M,merge:b,pick:k,relativeLength:n,stableSort:a,syncTimeout:p}=tt;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=k(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=b(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=k(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(b(!0,this.options,e)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,k(t,!0)&&i.redraw(),u(this,"afterUpdate")}colorizeItem(e,t){const{group:i,label:l,line:f,symbol:O}=e.legendItem||{};if(i&&i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:r}=this,P=r.color,G=t&&e.color||P,Q=e.options&&e.options.marker;let nt={fill:G};l==null||l.css(b(t?this.itemStyle:r)),f==null||f.attr({stroke:G}),O&&(Q&&O.isMarker&&(nt=e.pointAttribs(),t||(nt.stroke=nt.fill=P)),O.attr(nt))}u(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,O=f.symbolPadding;const r=!f.rtl;f=e.checkbox,t&&t.element&&(O={translateX:r?i:this.legendWidth-i-2*O-4,translateY:l},t[d(t.translateY)?"animate":"attr"](O,void 0,()=>{u(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 O=f.checkbox;let r;O&&(r=l+i+O.y+(this.scrollOffset||0)+3,D(O,{left:e.translateX+f.checkboxOffset+O.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?N(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})}renderItem(e){const t=e.legendItem=e.legendItem||{};var i=this.chart,l=i.renderer;const f=this.options,O=this.symbolWidth,r=f.symbolPadding||0,P=this.itemStyle,G=this.itemHiddenStyle,Q=f.layout==="horizontal"?k(f.itemDistance,20):0,nt=!f.rtl,B=!e.series,s=!B&&e.series.drawLegendSymbol?e.series:e;var T=s.options;const R=this.createCheckboxForItem&&T&&T.showCheckbox,I=f.useHTML,q=e.options.className;let o=t.label;T=O+r+Q+(R?20:0),o||(t.group=l.g("legend-item").addClass("highcharts-"+s.type+"-series highcharts-color-"+e.colorIndex+(q?" "+q:"")+(B?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.label=o=l.text("",nt?O+r:-r,this.baseline||0,I),i.styledMode||o.css(b(e.visible?P:G)),o.attr({align:nt?"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=k(f.symbolHeight,this.fontMetrics.f),f.squareSymbol&&(this.symbolWidth=k(f.symbolWidth,Math.max(this.symbolHeight,16)),T=this.symbolWidth+r+Q+(R?20:0),nt&&o.attr("x",this.symbolWidth+r))),s.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,o,I)),R&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),!i.styledMode&&P.width||o.css({width:(f.itemWidth||this.widthOption||i.spacingBox.width)-T+"px"}),this.setText(e),i=o.getBBox(),l=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=f.itemWidth||t.labelWidth||i.width+T,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(t.labelHeight||(i.height>1.5*l?i.height:l))}layoutItem(e){var t=this.options;const i=this.padding,l=t.layout==="horizontal",f=e.itemHeight,O=this.itemMarginBottom,r=this.itemMarginTop,P=l?k(t.itemDistance,20):0,G=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>G?this.maxItemWidth:e.itemWidth;const Q=e.legendItem||{};l&&this.itemX-i+t>G&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+O),this.lastLineHeight=0),this.lastItemY=r+this.itemY+O,this.lastLineHeight=Math.max(f,this.lastLineHeight),Q.x=this.itemX,Q.y=this.itemY,l?this.itemX+=t:(this.itemY+=r+f+O,this.lastLineHeight=f),this.offsetWidth=this.widthOption||Math.max((l?this.itemX-i-(e.checkbox?0:P):t)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){const i=t&&t.options;t&&k(i.showInLegend,d(i.linkedTo)?!1:void 0,!0)&&(e=e.concat((t.legendItem||{}).labels||(i.legendType==="point"?t.data:t)))}),u(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(O,r){O.test(f)&&!d(e[r])&&(i[z[r]]=Math.max(i[z[r]],i.legend[(r+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][r]*l[r%2?"x":"y"]+k(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 O,r=i;let P;f.yAxis&&(f.xAxis.options.reversed&&(r=!r),f.points&&(O=y(r?f.points:f.points.slice(0).reverse(),function(G){return M(G.plotY)})),r=this.itemMarginTop+f.legendItem.label.getBBox().height+this.itemMarginBottom,P=f.yAxis.top-e.plotTop,f.visible?(O=O?O.plotY:f.yAxis.height,O+=P-.3*r):O=P+f.yAxis.height,t.push({target:O,size:r,item:f}))},this);let l;for(const f of v(t,e.plotHeight))l=f.item.legendItem||{},M(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 O,r=this.group,P=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,(Q,nt)=>(Q.options&&Q.options.legendIndex||0)-(nt.options&&nt.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,O=this.lastItemY+this.lastLineHeight+this.titleHeight,O=this.handleOverflow(O),O+=l,P||(this.box=P=t.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),e.styledMode||P.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<f&&0<O&&P[P.placed?"animate":"attr"](P.crisp.call({},{x:0,y:0,width:f,height:O},P.strokeWidth())),r[G?"show":"hide"](),e.styledMode&&r.getStyle("display")==="none"&&(f=O=0),this.legendWidth=f,this.legendHeight=O,G&&this.align(),this.proximate||this.positionItems(),u(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=b(e,{y:l})),t.hasRendered||(this.group.placed=!1),this.group.align(b(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 O=f.y;const r=f.verticalAlign==="top",P=this.padding,G=f.maxHeight,Q=f.navigation,nt=k(Q.animation,!0),B=Q.arrowSize||12,s=this.pages,T=this.allItems,R=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("+P+"px,9999px,"+(P+F)+"px,0)":"auto")},I=function(F){return t[F]=l.circle(0,0,1.3*B).translate(B/2,B/2).add(m),i.styledMode||t[F].attr("fill","rgba(0,0,0,0.0001)"),t[F]};let q,o,g;O=i.spacingBox.height+(r?-O:O)-P;let m=this.nav,W=this.clipRect;return f.layout!=="horizontal"||f.verticalAlign==="middle"||f.floating||(O/=2),G&&(O=Math.min(O,G)),s.length=0,e&&0<O&&e>O&&Q.enabled!==!1?(this.clipHeight=q=Math.max(O-20-this.titleHeight-P,0),this.currentPage=k(this.currentPage,1),this.fullHeight=e,T.forEach((F,H)=>{g=F.legendItem||{},F=g.y||0;const it=Math.round(g.label.getBBox().height);let st=s.length;(!st||F-s[st-1]>q&&(o||F)!==s[st-1])&&(s.push(o||F),st++),g.pageIx=st-1,o&&((T[H-1].legendItem||{}).pageIx=st-1),H===T.length-1&&F+it-s[st-1]>q&&F>s[st-1]&&(s.push(F),g.pageIx=st),F!==o&&(o=F)}),W||(W=t.clipRect=l.clipRect(0,P-2,9999,0),t.contentGroup.clip(W)),R(q),m||(this.nav=m=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,B,B).add(m),I("upTracker").on("click",function(){t.scroll(-1,nt)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&Q.style&&this.pager.css(Q.style),this.pager.add(m),this.down=l.symbol("triangle-down",0,0,B,B).add(m),I("downTracker").on("click",function(){t.scroll(1,nt)})),t.scroll(0),e=O):m&&(R(),this.nav=m.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){const i=this.chart,l=this.pages,f=l.length,O=this.clipHeight,r=this.options.navigation,P=this.pager,G=this.padding;let Q=this.currentPage+e;Q>f&&(Q=f),0<Q&&(typeof t<"u"&&E(t,i),this.nav.attr({translateX:G,translateY:O+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(nt){nt.attr({class:Q===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),P.attr({text:Q+"/"+f}),[this.down,this.downTracker].forEach(function(nt){nt.attr({x:18+this.pager.getBBox().width,class:Q===f?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:Q===1?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:Q===1?"default":"pointer"}),this.down.attr({fill:Q===f?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:Q===f?"default":"pointer"})),this.scrollOffset=-l[Q-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=Q,this.positionCheckboxes(),e=Y(k(t,i.renderer.globalAnimation,!0)),p(()=>{u(this,"afterScroll",{currentPage:Q})},e.duration))}setItemEvents(e,t,i){const l=this,f=e.legendItem||{},O=l.chart.renderer.boxWrapper,r=e instanceof Z,P="highcharts-legend-"+(r?"point":"series")+"-active",G=l.chart.styledMode;i=i?[t,f.symbol]:[f.group];const Q=nt=>{l.allItems.forEach(B=>{e!==B&&[B].concat(B.linkedSeries||[]).forEach(s=>{s.setState(nt,!r)})})};for(const nt of i)nt&&nt.on("mouseover",function(){e.visible&&Q("inactive"),e.setState("hover"),e.visible&&O.addClass(P),G||t.css(l.options.itemHoverStyle)}).on("mouseout",function(){l.chart.styledMode||t.css(b(e.visible?l.itemStyle:l.itemHiddenStyle)),Q(""),O.removeClass(P),e.setState()}).on("click",function(B){const s=function(){e.setVisible&&e.setVisible(),Q(e.visible?"inactive":"")};O.removeClass(P),B={browserEvent:B},e.firePointEvent?e.firePointEvent("legendItemClick",B,s):u(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){u(e.series||e,"checkboxClick",{checked:t.target.checked,item:e},function(){e.select()})})}}return function(c){const e=[];c.compose=function(t){tt.pushUnique(e,t)&&S(t,"beforeMargins",function(){this.legend=new c(this,this.options.legend)})}}(h||(h={})),h}),K(w,"Core/Legend/LegendSymbol.js",[w["Core/Utilities.js"]],function(j){const{extend:A,merge:$,pick:Z}=j;var V;return function(tt){tt.lineMarker=function(Y,E){E=this.legendItem=this.legendItem||{};var N=this.options;const z=Y.symbolWidth,v=Y.symbolHeight,S=v/2,L=this.chart.renderer,D=E.group;Y=Y.baseline-Math.round(.3*Y.fontMetrics.b);let d={},x=N.marker,y=0;this.chart.styledMode||(d={"stroke-width":Math.min(N.lineWidth||0,24)},N.dashStyle?d.dashstyle=N.dashStyle:N.linecap!=="square"&&(d["stroke-linecap"]="round")),E.line=L.path().addClass("highcharts-graph").attr(d).add(D),d["stroke-linecap"]&&(y=Math.min(E.line.strokeWidth(),z)/2),z&&E.line.attr({d:[["M",y,Y],["L",z-y,Y]]}),x&&x.enabled!==!1&&z&&(N=Math.min(Z(x.radius,S),S),this.symbol.indexOf("url")===0&&(x=$(x,{width:v,height:v}),N=0),E.symbol=E=L.symbol(this.symbol,z/2-N,Y-N,2*N,2*N,A({context:"legend"},x)).addClass("highcharts-point").add(D),E.isMarker=!0)},tt.rectangle=function(Y,E){E=E.legendItem||{};const N=Y.symbolHeight,z=Y.options.squareSymbol;E.symbol=this.chart.renderer.rect(z?(Y.symbolWidth-N)/2:0,Y.baseline-N+1,z?N:Y.symbolWidth,N,Z(Y.options.symbolRadius,N/2)).addClass("highcharts-point").attr({zIndex:3}).add(E.group)}}(V||(V={})),V}),K(w,"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:j}=this.series.chart;return typeof this.y!="number"?"":j(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"}}),K(w,"Core/Series/SeriesRegistry.js",[w["Core/Globals.js"],w["Core/Defaults.js"],w["Core/Series/Point.js"],w["Core/Utilities.js"]],function(j,A,$,Z){const{defaultOptions:V}=A,{extendClass:tt,merge:Y}=Z;var E;return function(N){function z(v,S){const L=V.plotOptions||{},D=S.defaultOptions,d=S.prototype;d.type=v,d.pointClass||(d.pointClass=$),D&&(L[v]=D),N.seriesTypes[v]=S}N.seriesTypes=j.seriesTypes,N.registerSeriesType=z,N.seriesType=function(v,S,L,D,d){const x=V.plotOptions||{};return S=S||"",x[v]=Y(x[S],L),z(v,tt(N.seriesTypes[S]||function(){},D)),N.seriesTypes[v].prototype.type=v,d&&(N.seriesTypes[v].prototype.pointClass=tt($,d)),N.seriesTypes[v]}}(E||(E={})),E}),K(w,"Core/Series/Series.js",[w["Core/Animation/AnimationUtilities.js"],w["Core/Defaults.js"],w["Core/Foundation.js"],w["Core/Globals.js"],w["Core/Legend/LegendSymbol.js"],w["Core/Series/Point.js"],w["Core/Series/SeriesDefaults.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Renderer/SVG/SVGElement.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V,tt,Y,E,N,z){const{animObject:v,setAnimation:S}=j,{defaultOptions:L}=A,{registerEventOptions:D}=$,{hasTouch:d,svg:x,win:y}=Z,{seriesTypes:u}=E,{arrayMax:M,arrayMin:b,clamp:k,correctFloat:n,defined:a,diffObjects:p,erase:h,error:c,extend:e,find:t,fireEvent:i,getClosestDistance:l,getNestedProperty:f,insertItem:O,isArray:r,isNumber:P,isString:G,merge:Q,objectEach:nt,pick:B,removeEvent:s,splat:T,syncTimeout:R}=z;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,g){i(this,"init",{options:g});const m=this,W=o.series;this.eventsToUnbind=[],m.chart=o,m.options=m.setOptions(g),g=m.options,m.linkedSeries=[],m.bindAxes(),e(m,{name:g.name,state:"",visible:g.visible!==!1,selected:g.selected===!0}),D(this,g);const F=g.events;(F&&F.click||g.point&&g.point.events&&g.point.events.click||g.allowPointSelect)&&(o.runTrackerClick=!0),m.getColor(),m.getSymbol(),m.parallelArrays.forEach(function(it){m[it+"Data"]||(m[it+"Data"]=[])}),m.isCartesian&&(o.hasCartesianSeries=!0);let H;W.length&&(H=W[W.length-1]),m._i=B(H&&H._i,-1)+1,m.opacity=m.options.opacity,o.orderItems("series",O(this,W)),g.dataSorting&&g.dataSorting.enabled?m.setDataSortingOptions():m.points||m.data||m.setData(g.data,!1),i(this,"afterInit")}is(o){return u[o]&&this instanceof u[o]}bindAxes(){const o=this,g=o.options,m=o.chart;let W;i(this,"bindAxes",null,function(){(o.axisTypes||[]).forEach(function(F){m[F].forEach(function(H){W=H.options,(B(g[F],0)===H.index||typeof g[F]<"u"&&g[F]===W.id)&&(O(o,H.series),o[F]=H,H.isDirty=!0)}),o[F]||o.optionalAxis===F||c(18,!0,m)})}),i(this,"afterBindAxes")}updateParallelArrays(o,g,m){const W=o.series,F=P(g)?function(H){const it=H==="y"&&W.toYData?W.toYData(o):o[H];W[H+"Data"][g]=it}:function(H){Array.prototype[g].apply(W[H+"Data"],m)};W.parallelArrays.forEach(F)}hasData(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length}autoIncrement(o){var g=this.options;const m=g.pointIntervalUnit,W=g.relativeXValue,F=this.chart.time;let H=this.xIncrement,it;return H=B(H,g.pointStart,0),this.pointInterval=it=B(this.pointInterval,g.pointInterval,1),W&&P(o)&&(it*=o),m&&(g=new F.Date(H),m==="day"?F.set("Date",g,F.get("Date",g)+it):m==="month"?F.set("Month",g,F.get("Month",g)+it):m==="year"&&F.set("FullYear",g,F.get("FullYear",g)+it),it=g.getTime()-H),W&&P(o)?H+it:(this.xIncrement=H+it,H)}setDataSortingOptions(){const o=this.options;e(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),a(o.pointRange)||(o.pointRange=1)}setOptions(o){var g,m;const W=this.chart;var F=W.options.plotOptions,H=W.userOptions||{};const it=Q(o);o=W.styledMode;const st={plotOptions:F,userOptions:it};i(this,"setOptions",st);const rt=st.plotOptions[this.type];H=H.plotOptions||{};const ht=H.series||{},ut=L.plotOptions[this.type]||{},_=H[this.type]||{};return this.userOptions=st.userOptions,F=Q(rt,F.series,_,it),this.tooltipOptions=Q(L.tooltip,(g=L.plotOptions.series)===null||g===void 0?void 0:g.tooltip,ut==null?void 0:ut.tooltip,W.userOptions.tooltip,(m=H.series)===null||m===void 0?void 0:m.tooltip,_.tooltip,it.tooltip),this.stickyTracking=B(it.stickyTracking,_.stickyTracking,ht.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:F.stickyTracking),rt.marker===null&&delete F.marker,this.zoneAxis=F.zoneAxis,m=this.zones=(F.zones||[]).slice(),!F.negativeColor&&!F.negativeFillColor||F.zones||(g={value:F[this.zoneAxis+"Threshold"]||F.threshold||0,className:"highcharts-negative"},o||(g.color=F.negativeColor,g.fillColor=F.negativeFillColor),m.push(g)),m.length&&a(m[m.length-1].value)&&m.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,g,m){const W=this.chart,F=`${o}Index`,H=`${o}Counter`,it=(m==null?void 0:m.length)||W.options.chart.colorCount;if(!g){var st=B(o==="color"?this.options.colorIndex:void 0,this[F]);a(st)||(W.series.length||(W[H]=0),st=W[H]%it,W[H]+=1),m&&(g=m[st])}typeof st<"u"&&(this[F]=st),this[o]=g}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,g){const m=o.id,W=o.x,F=this.points;var H=this.options.dataSorting,it;let st,rt;if(m)H=this.chart.get(m),H instanceof tt&&(it=H);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(it=ht=>!ht.touched&&ht.index===o.index,H&&H.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&&(rt=it&&it.index,typeof rt<"u"&&(st=!0)),typeof rt>"u"&&P(W)&&(rt=this.xData.indexOf(W,g)),rt!==-1&&typeof rt<"u"&&this.cropped&&(rt=rt>=this.cropStart?rt-this.cropStart:rt),!st&&P(rt)&&F[rt]&&F[rt].touched&&(rt=void 0),rt}updateData(o,g){const m=this.options,W=m.dataSorting,F=this.points,H=[],it=this.requireSorting,st=o.length===F.length;let rt,ht,ut,_=!0;if(this.xIncrement=null,o.forEach(function(C,J){var X=a(C)&&this.pointClass.prototype.optionsToObject.call({series:this},C)||{};const et=X.x;X.id||P(et)?(X=this.findPointIndex(X,ut),X===-1||typeof X>"u"?H.push(C):F[X]&&C!==m.data[X]?(F[X].update(C,!1,null,!1),F[X].touched=!0,it&&(ut=X+1)):F[X]&&(F[X].touched=!0),(!st||J!==X||W&&W.enabled||this.hasDerivedData)&&(rt=!0)):H.push(C)},this),rt)for(o=F.length;o--;)(ht=F[o])&&!ht.touched&&ht.remove&&ht.remove(!1,g);else!st||W&&W.enabled?_=!1:(o.forEach(function(C,J){C===F[J].y||F[J].destroyed||F[J].update(C,!1,null,!1)}),H.length=0);return F.forEach(function(C){C&&(C.touched=!1)}),_?(H.forEach(function(C){this.addPoint(C,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=M(this.xData),this.autoIncrement()),!0):!1}setData(o,g=!0,m,W){var F;const H=this,it=H.points,st=it&&it.length||0,rt=H.options,ht=H.chart,ut=rt.dataSorting,_=H.xAxis,C=rt.turboThreshold,J=this.xData,X=this.yData;var et=H.pointArrayMap;et=et&&et.length;const dt=rt.keys;let ct,xt=0,yt=1,gt=null;if(!ht.options.chart.allowMutatingData){rt.data&&delete H.options.data,H.userOptions.data&&delete H.userOptions.data;var mt=Q(!0,o)}if(o=mt||o||[],mt=o.length,ut&&ut.enabled&&(o=this.sortData(o)),ht.options.chart.allowMutatingData&&W!==!1&&mt&&st&&!H.cropped&&!H.hasGroupedData&&H.visible&&!H.boosted&&(ct=this.updateData(o,m)),!ct){if(H.xIncrement=null,H.colorCounter=0,this.parallelArrays.forEach(function(Ct){H[Ct+"Data"].length=0}),C&&mt>C)if(gt=H.getFirstValidPoint(o),P(gt))for(m=0;m<mt;m++)J[m]=this.autoIncrement(),X[m]=o[m];else if(r(gt))if(et)if(gt.length===et)for(m=0;m<mt;m++)J[m]=this.autoIncrement(),X[m]=o[m];else for(m=0;m<mt;m++)W=o[m],J[m]=W[0],X[m]=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(m=0;m<mt;m++)J[m]=this.autoIncrement(),X[m]=o[m][yt];else for(m=0;m<mt;m++)W=o[m],J[m]=W[xt],X[m]=W[yt];else c(12,!1,ht);else for(m=0;m<mt;m++)W={series:H},H.pointClass.prototype.applyOptions.apply(W,[o[m]]),H.updateParallelArrays(W,m);for(X&&G(X[0])&&c(14,!0,ht),H.data=[],H.options.data=H.userOptions.data=o,m=st;m--;)(F=it[m])===null||F===void 0||F.destroy();_&&(_.minRange=_.userMinRange),H.isDirty=ht.isDirtyBox=!0,H.isDirtyData=!!it,m=!1}rt.legendType==="point"&&(this.processData(),this.generatePoints()),g&&ht.redraw(m)}sortData(o){const g=this,m=g.options.dataSorting.sortKey||"y",W=function(F,H){return a(H)&&F.pointClass.prototype.optionsToObject.call({series:F},H)||{}};return o.forEach(function(F,H){o[H]=W(g,F),o[H].index=H},this),o.concat().sort((F,H)=>(F=f(m,F),H=f(m,H),H<F?-1:H>F?1:0)).forEach(function(F,H){F.x=H},this),g.linkedSeries&&g.linkedSeries.forEach(function(F){const H=F.options,it=H.data;H.dataSorting&&H.dataSorting.enabled||!it||(it.forEach(function(st,rt){it[rt]=W(F,st),o[rt]&&(it[rt].x=o[rt].x,it[rt].index=rt)}),F.setData(it,!1))}),o}getProcessedData(o){const g=this;var m=g.xAxis,W=g.options;const F=W.cropThreshold,H=o||g.getExtremesFromAll||W.getExtremesFromAll,it=m==null?void 0:m.logarithmic,st=g.isCartesian;let rt=0,ht;o=g.xData,W=g.yData;let ut=!1;const _=o.length;if(m){var C=m.getExtremes();ht=C.min,C=C.max,ut=!(!m.categories||m.names.length)}if(st&&g.sorted&&!H&&(!F||_>F||g.forceCrop)){if(o[_-1]<ht||o[0]>C)o=[],W=[];else if(g.yData&&(o[0]<ht||o[_-1]>C)){var J=this.cropData(g.xData,g.yData,ht,C);o=J.xData,W=J.yData,rt=J.start,J=!0}}return m=l([it?o.map(it.log2lin):o],()=>g.requireSorting&&!ut&&c(15,!1,g.chart)),{xData:o,yData:W,cropped:J,cropStart:rt,closestPointRange:m}}processData(o){const g=this.xAxis;if(this.isCartesian&&!this.isDirty&&!g.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,g,m,W,F){const H=o.length;let it,st=0,rt=H;for(F=B(F,this.cropShoulder),it=0;it<H;it++)if(o[it]>=m){st=Math.max(0,it-F);break}for(m=it;m<H;m++)if(o[m]>W){rt=m+F;break}return{xData:o.slice(st,rt),yData:g.slice(st,rt),start:st,end:rt}}generatePoints(){var o=this.options;const g=this.processedData||o.data,m=this.processedXData,W=this.processedYData,F=this.pointClass,H=m.length,it=this.cropStart||0,st=this.hasGroupedData,rt=o.keys,ht=[];o=o.dataGrouping&&o.dataGrouping.groupAll?it:0;let ut,_,C,J=this.data;if(!J&&!st){var X=[];X.length=g.length,J=this.data=X}for(rt&&st&&(this.options.keys=!1),C=0;C<H;C++)X=it+C,st?(_=new F().init(this,[m[C]].concat(T(W[C]))),_.dataGroup=this.groupMap[o+C],_.dataGroup.options&&(_.options=_.dataGroup.options,e(_,_.dataGroup.options),delete _.dataLabels)):(_=J[X])||typeof g[X]>"u"||(J[X]=_=new F().init(this,g[X],m[C])),_&&(_.index=st?o+C:X,ht[C]=_);if(this.options.keys=rt,J&&(H!==(ut=J.length)||st))for(C=0;C<ut;C++)C!==it||st||(C+=H),J[C]&&(J[C].destroyElements(),J[C].plotX=void 0);this.data=J,this.points=ht,i(this,"afterGeneratePoints")}getXExtremes(o){return{min:b(o),max:M(o)}}getExtremes(o,g){const m=this.xAxis;var W=this.yAxis;const F=this.processedXData||this.xData,H=[],it=this.requireSorting?this.cropShoulder:0;W=W?W.positiveValuesOnly:!1;let st,rt=0,ht=0,ut=0;o=o||this.stackedYData||this.processedYData||[];const _=o.length;if(m){var C=m.getExtremes();rt=C.min,ht=C.max}for(st=0;st<_;st++){var J=F[st];C=o[st];var X=(P(C)||r(C))&&(C.length||0<C||!W);if(J=g||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!m||(F[st+it]||J)>=rt&&(F[st-it]||J)<=ht,X&&J)if(X=C.length)for(;X--;)P(C[X])&&(H[ut++]=C[X]);else H[ut++]=C}return o={activeYData:H,dataMin:b(H),dataMax:M(H)},i(this,"afterGetExtremes",{dataExtremes:o}),o}applyExtremes(){const o=this.getExtremes();return this.dataMin=o.dataMin,this.dataMax=o.dataMax,o}getFirstValidPoint(o){const g=o.length;let m=0,W=null;for(;W===null&&m<g;)W=o[m],m++;return W}translate(){var o;this.processedXData||this.processData(),this.generatePoints();var g=this.options;const m=g.stacking,W=this.xAxis,F=W.categories,H=this.enabledDataSorting,it=this.yAxis,st=this.points,rt=st.length,ht=this.pointPlacementToXValue(),ut=!!ht,_=g.threshold;g=g.startFromThreshold?_:0;let C,J,X,et,dt=Number.MAX_VALUE;for(C=0;C<rt;C++){const ct=st[C],xt=ct.x;let yt,gt,mt=ct.y,Ct=ct.low;const kt=m&&((o=it.stacking)===null||o===void 0?void 0:o.stacks[(this.negStacks&&mt<(g?0:_)?"-":"")+this.stackKey]);J=W.translate(xt,!1,!1,!1,!0,ht),ct.plotX=P(J)?n(k(J,-1e5,1e5)):void 0,m&&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===g&&et.key===kt[xt].base&&(Ct=B(P(_)?_: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)?k(it.translate(Ct,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(mt=this.dataModify.modifyValue(mt,C));let bt;P(mt)&&ct.plotX!==void 0&&(bt=it.translate(mt,!1,!0,!1,!0),bt=P(bt)?k(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)):J,ct.negative=(ct.y||0)<(_||0),ct.category=B(F&&F[ct.x],ct.x),ct.isNull||ct.visible===!1||(typeof X<"u"&&(dt=Math.min(dt,Math.abs(J-X))),X=J),ct.zone=this.zones.length?ct.getZone():void 0,!ct.graphic&&this.group&&H&&(ct.isNew=!0)}this.closestPointRangePx=dt,i(this,"afterTranslate")}getValidPoints(o,g,m){const W=this.chart;return(o||this.points||[]).filter(function(F){const{plotX:H,plotY:it}=F;return!m&&(F.isNull||!P(it))||g&&!W.isInsidePlot(H,it,{inverted:W.inverted})?!1:F.visible!==!1})}getClipBox(){const{chart:o,xAxis:g,yAxis:m}=this,W=Q(o.clipBox);return g&&g.len!==o.plotSizeX&&(W.width=g.len),m&&m.len!==o.plotSizeY&&(W.height=m.len),W}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}setClip(){const{chart:o,group:g,markerGroup:m}=this,W=o.sharedClips,F=o.renderer,H=this.getClipBox(),it=this.getSharedClipKey();let st=W[it];st?st.animate(H):W[it]=st=F.clipRect(H),g&&g.clip(this.options.clip===!1?void 0:st),m&&m.clip()}animate(o){const{chart:g,group:m,markerGroup:W}=this,F=g.inverted;var H=v(this.options.animation),it=[this.getSharedClipKey(),H.duration,H.easing,H.defer].join();let st=g.sharedClips[it],rt=g.sharedClips[it+"m"];if(o&&m)H=this.getClipBox(),st?st.attr("height",H.height):(H.width=0,F&&(H.x=g.plotHeight),st=g.renderer.clipRect(H),g.sharedClips[it]=st,rt=g.renderer.clipRect({x:-99,y:-99,width:F?g.plotWidth+199:99,height:F?99:g.plotHeight+199}),g.sharedClips[it+"m"]=rt),m.clip(st),W&&W.clip(rt);else if(st&&!st.hasClass("highcharts-animating")){it=this.getClipBox();const ht=H.step;W&&W.element.childNodes.length&&(H.step=function(ut,_){ht&&ht.apply(_,arguments),_.prop==="width"&&rt&&rt.element&&rt.attr(F?"height":"width",ut+99)}),st.addClass("highcharts-animating").animate(it,H)}}afterAnimate(){this.setClip(),nt(this.chart.sharedClips,(o,g,m)=>{o&&!this.chart.container.querySelector(`[clip-path="url(#${o.id})"]`)&&(o.destroy(),delete m[g])}),this.finishedAnimating=!0,i(this,"afterAnimate")}drawPoints(o=this.points){const g=this.chart,m=g.styledMode,{colorAxis:W,options:F}=this,H=F.marker,it=this[this.specialGroup||"markerGroup"],st=this.xAxis,rt=B(H.enabled,!st||st.isRadial?!0:null,this.closestPointRangePx>=H.enabledThreshold*H.radius);let ht,ut,_,C,J,X;if(H.enabled!==!1||this._hasPointMarkers)for(ht=0;ht<o.length;ht++){ut=o[ht],C=(_=ut.graphic)?"animate":"attr";var et=ut.marker||{};if(J=!!ut.marker,(rt&&typeof et.enabled>"u"||et.enabled)&&!ut.isNull&&ut.visible!==!1){const dt=B(et.symbol,this.symbol,"rect");X=this.markerAttribs(ut,ut.selected&&"select"),this.enabledDataSorting&&(ut.startXPos=st.reversed?-(X.width||0):st.width);const ct=ut.isInside!==!1;!_&&ct&&(0<(X.width||0)||ut.hasImage)&&(ut.graphic=_=g.renderer.symbol(dt,X.x,X.y,X.width,X.height,J?et:H).add(it),this.enabledDataSorting&&g.hasRendered&&(_.attr({x:ut.startXPos}),C="animate")),_&&C==="animate"&&_[ct?"show":"hide"](ct).animate(X),_&&(et=this.pointAttribs(ut,m||!ut.selected?void 0:"select"),m?W&&_.css({fill:et.fill}):_[C](et)),_&&_.addClass(ut.getClassName(),!0)}else _&&(ut.graphic=_.destroy())}}markerAttribs(o,g){const m=this.options;var W=m.marker;const F=o.marker||{},H=F.symbol||W.symbol,it={};let st=B(F.radius,W&&W.radius);return g&&(W=W.states[g],g=F.states&&F.states[g],st=B(g&&g.radius,W&&W.radius,st&&st+(W&&W.radiusPlus||0))),o.hasImage=H&&H.indexOf("url")===0,o.hasImage&&(st=0),o=o.pos(),P(st)&&o&&(it.x=o[0]-st,it.y=o[1]-st,m.crisp&&(it.x=Math.floor(it.x))),st&&(it.width=it.height=2*st),it}pointAttribs(o,g){var m=this.options.marker,W=o&&o.options;const F=W&&W.marker||{};var H=W&&W.color,it=o&&o.color;const st=o&&o.zone&&o.zone.color;let rt=this.color;return o=B(F.lineWidth,m.lineWidth),W=1,rt=H||st||it||rt,H=F.fillColor||m.fillColor||rt,it=F.lineColor||m.lineColor||rt,g=g||"normal",m=m.states[g]||{},g=F.states&&F.states[g]||{},o=B(g.lineWidth,m.lineWidth,o+B(g.lineWidthPlus,m.lineWidthPlus,0)),H=g.fillColor||m.fillColor||H,it=g.lineColor||m.lineColor||it,W=B(g.opacity,m.opacity,W),{stroke:it,"stroke-width":o,fill:H,opacity:W}}destroy(o){const g=this,m=g.chart,W=/AppleWebKit\/533/.test(y.navigator.userAgent),F=g.data||[];let H,it,st,rt;for(i(g,"destroy",{keepEventsForUpdate:o}),this.removeEvents(o),(g.axisTypes||[]).forEach(function(ht){(rt=g[ht])&&rt.series&&(h(rt.series,g),rt.isDirty=rt.forceRedraw=!0)}),g.legendItem&&g.chart.legend.destroyItem(g),it=F.length;it--;)(st=F[it])&&st.destroy&&st.destroy();g.clips&&g.clips.forEach(ht=>ht.destroy()),z.clearTimeout(g.animationTimeout),nt(g,function(ht,ut){ht instanceof N&&!ht.survive&&(H=W&&ut==="group"?"hide":"destroy",ht[H]())}),m.hoverSeries===g&&(m.hoverSeries=void 0),h(m.series,g),m.orderItems("series"),nt(g,function(ht,ut){o&&ut==="hcEvents"||delete g[ut]})}applyZones(){const o=this,g=this.chart,m=g.renderer,W=this.zones,F=this.clips||[],H=this.graph,it=this.area,st=Math.max(g.plotWidth,g.plotHeight),rt=this[(this.zoneAxis||"y")+"Axis"],ht=g.inverted;let ut,_,C,J,X,et,dt,ct,xt,yt,gt,mt=!1;W.length&&(H||it)&&rt&&typeof rt.min<"u"?(X=rt.reversed,et=rt.horiz,H&&!this.showLine&&H.hide(),it&&it.hide(),J=rt.getExtremes(),W.forEach(function(Ct,kt){ut=X?et?g.plotWidth:0:et?0:rt.toPixels(J.min)||0,ut=k(B(_,ut),0,st),_=k(Math.round(rt.toPixels(B(Ct.value,J.max),!0)||0),0,st),mt&&(ut=_=rt.toPixels(J.max)),dt=Math.abs(ut-_),ct=Math.min(ut,_),xt=Math.max(ut,_),rt.isXAxis?(C={x:ht?xt:ct,y:0,width:dt,height:st},et||(C.x=g.plotHeight-C.x)):(C={x:0,y:ht?xt:ct,width:st,height:dt},et&&(C.y=g.plotWidth-C.y)),F[kt]?F[kt].animate(C):F[kt]=m.clipRect(C),yt=o["zone-area-"+kt],gt=o["zone-graph-"+kt],H&>&>.clip(F[kt]),it&&yt&&yt.clip(F[kt]),mt=Ct.value>J.max,o.resetZones&&_===0&&(_=void 0)}),this.clips=F):o.visible&&(H&&H.show(),it&&it.show())}plotGroup(o,g,m,W,F){let H=this[o];const it=!H;return m={visibility:m,zIndex:W||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(m.opacity=this.opacity),it&&(this[o]=H=this.chart.renderer.g().add(F)),H.addClass("highcharts-"+g+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(a(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(H.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),H.attr(m)[it?"attr":"animate"](this.getPlotBox(g)),H}getPlotBox(o){let g=this.xAxis,m=this.yAxis;const W=this.chart;return o=W.inverted&&!W.polar&&g&&this.invertible!==!1&&o==="series",W.inverted&&(g=m,m=this.xAxis),{translateX:g?g.left:W.plotLeft,translateY:m?m.top:W.plotTop,rotation:o?90:0,rotationOriginX:o?(g.len-m.len)/2:0,rotationOriginY:o?(g.len+m.len)/2:0,scaleX:o?-1:1,scaleY:1}}removeEvents(o){o||s(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(g){g()}),this.eventsToUnbind.length=0)}render(){const o=this;var g=o.chart;const m=o.options,W=v(m.animation),F=o.visible?"inherit":"hidden",H=m.zIndex,it=o.hasRendered;g=g.seriesGroup;let st=o.finishedAnimating?0:W.duration;i(this,"render"),o.plotGroup("group","series",F,H,g),o.markerGroup=o.plotGroup("markerGroup","markers",F,H,g),m.clip!==!1&&o.setClip(),o.animate&&st&&o.animate(!0),o.drawGraph&&(o.drawGraph(),o.applyZones()),o.visible&&o.drawPoints(),o.drawDataLabels&&o.drawDataLabels(),o.redrawPoints&&o.redrawPoints(),o.drawTracker&&m.enableMouseTracking&&o.drawTracker(),o.animate&&st&&o.animate(),it||(st&&W.defer&&(st+=W.defer),o.animationTimeout=R(function(){o.afterAnimate()},st||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,g){const m=this.xAxis,W=this.yAxis,F=this.chart.inverted;return this.searchKDTree({clientX:F?m.len-o.chartY+m.pos:o.chartX-m.pos,plotY:F?W.len-o.chartX+W.pos:o.chartY-W.pos},g,o)}buildKDTree(o){function g(F,H,it){var st=F&&F.length;let rt;if(st)return rt=m.kdAxisArray[H%it],F.sort(function(ht,ut){return ht[rt]-ut[rt]}),st=Math.floor(st/2),{point:F[st],left:g(F.slice(0,st),H+1,it),right:g(F.slice(st+1),H+1,it)}}this.buildingKdTree=!0;const m=this,W=-1<m.options.findNearestPointBy.indexOf("y")?2:1;delete m.kdTree,R(function(){m.kdTree=g(m.getValidPoints(null,!m.directTouch),W,W),m.buildingKdTree=!1},m.options.kdNow||o&&o.type==="touchstart"?0:1)}searchKDTree(o,g,m){function W(rt,ht,ut,_){const C=ht.point;var J=F.kdAxisArray[ut%_];let X=C;var et=a(rt[H])&&a(C[H])?Math.pow(rt[H]-C[H],2):null,dt=a(rt[it])&&a(C[it])?Math.pow(rt[it]-C[it],2):null;return dt=(et||0)+(dt||0),C.dist=a(dt)?Math.sqrt(dt):Number.MAX_VALUE,C.distX=a(et)?Math.sqrt(et):Number.MAX_VALUE,J=rt[J]-C[J],dt=0>J?"left":"right",et=0>J?"right":"left",ht[dt]&&(dt=W(rt,ht[dt],ut+1,_),X=dt[st]<X[st]?dt:C),ht[et]&&Math.sqrt(J*J)<X[st]&&(rt=W(rt,ht[et],ut+1,_),X=rt[st]<X[st]?rt:X),X}const F=this,H=this.kdAxisArray[0],it=this.kdAxisArray[1],st=g?"distX":"dist";if(g=-1<F.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(m),this.kdTree)return W(o,this.kdTree,g,g)}pointPlacementToXValue(){const{options:{pointPlacement:o,pointRange:g},xAxis:m}=this;let W=o;return W==="between"&&(W=m.reversed?-.5:.5),P(W)?W*(g||m.pointRange):0}isPointInside(o){const{chart:g,xAxis:m,yAxis:W}=this;return typeof o.plotY<"u"&&typeof o.plotX<"u"&&0<=o.plotY&&o.plotY<=(W?W.len:g.plotHeight)&&0<=o.plotX&&o.plotX<=(m?m.len:g.plotWidth)}drawTracker(){const o=this,g=o.options,m=g.trackByArea,W=[].concat(m?o.areaPath:o.graphPath),F=o.chart,H=F.pointer,it=F.renderer,st=F.options.tooltip.snap,rt=o.tracker,ht=function(_){g.enableMouseTracking&&F.hoverSeries!==o&&o.onMouseOver()},ut="rgba(192,192,192,"+(x?1e-4:.002)+")";rt?rt.attr({d:W}):o.graph&&(o.tracker=it.path(W).attr({visibility:o.visible?"inherit":"hidden",zIndex:2}).addClass(m?"highcharts-tracker-area":"highcharts-tracker-line").add(o.group),F.styledMode||o.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:ut,fill:m?ut:"none","stroke-width":o.graph.strokeWidth()+(m?0:2*st)}),[o.tracker,o.markerGroup,o.dataLabelsGroup].forEach(function(_){_&&(_.addClass("highcharts-tracker").on("mouseover",ht).on("mouseout",function(C){H.onTrackerMouseOut(C)}),g.cursor&&!F.styledMode&&_.css({cursor:g.cursor}),d)&&_.on("touchstart",ht)})),i(this,"afterDrawTracker")}addPoint(o,g,m,W,F){const H=this.options,it=this.data,st=this.chart;var rt=this.xAxis;rt=rt&&rt.hasNames&&rt.names;const ht=H.data,ut=this.xData;let _,C;g=B(g,!0);const J={series:this};this.pointClass.prototype.applyOptions.apply(J,[o]);const X=J.x;if(C=ut.length,this.requireSorting&&X<ut[C-1])for(_=!0;C&&ut[C-1]>X;)C--;this.updateParallelArrays(J,"splice",[C,0,0]),this.updateParallelArrays(J,C),rt&&J.name&&(rt[X]=J.name),ht.splice(C,0,o),(_||this.processedData)&&(this.data.splice(C,0,null),this.processData()),H.legendType==="point"&&this.generatePoints(),m&&(it[0]&&it[0].remove?it[0].remove(!1):(it.shift(),this.updateParallelArrays(J,"shift"),ht.shift())),F!==!1&&i(this,"addPoint",{point:J}),this.isDirtyData=this.isDirty=!0,g&&st.redraw(W)}removePoint(o,g,m){const W=this,F=W.data,H=F[o],it=W.points,st=W.chart,rt=function(){it&&it.length===F.length&&it.splice(o,1),F.splice(o,1),W.options.data.splice(o,1),W.updateParallelArrays(H||{series:W},"splice",[o,1]),H&&H.destroy(),W.isDirty=!0,W.isDirtyData=!0,g&&st.redraw()};S(m,st),g=B(g,!0),H?H.firePointEvent("remove",null,rt):rt()}remove(o,g,m,W){function F(){H.destroy(W),it.isDirtyLegend=it.isDirtyBox=!0,it.linkSeries(W),B(o,!0)&&it.redraw(g)}const H=this,it=H.chart;m!==!1?i(H,"remove",null,F):F()}update(o,g){o=p(o,this.userOptions),i(this,"update",{options:o});const m=this,W=m.chart;var F=m.userOptions;const H=m.initialType||m.type;var it=W.options.plotOptions;const st=u[H].prototype;var rt=m.finishedAnimating&&{animation:!1};const ht={};let ut,_=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],C=o.type||F.type||W.options.chart.type;const J=!(this.hasDerivedData||C&&C!==this.type||typeof o.pointStart<"u"||typeof o.pointInterval<"u"||typeof o.relativeXValue<"u"||o.joinBy||o.mapData||m.hasOptionChanged("dataGrouping")||m.hasOptionChanged("pointStart")||m.hasOptionChanged("pointInterval")||m.hasOptionChanged("pointIntervalUnit")||m.hasOptionChanged("keys"));if(C=C||H,J&&(_.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),o.visible!==!1&&_.push("area","graph"),m.parallelArrays.forEach(function(X){_.push(X+"Data")}),o.data&&(o.dataSorting&&e(m.options.dataSorting,o.dataSorting),this.setData(o.data,!1))),o=Q(F,rt,{index:typeof F.index>"u"?m.index:F.index,pointStart:B(it&&it.series&&it.series.pointStart,F.pointStart,m.xData[0])},!J&&{data:m.options.data},o),J&&o.data&&(o.data=m.options.data),_=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(_),_.forEach(function(X){_[X]=m[X],delete m[X]}),it=!1,u[C]){if(it=C!==m.type,m.remove(!1,!1,!1,!0),it)if(Object.setPrototypeOf)Object.setPrototypeOf(m,u[C].prototype);else{rt=Object.hasOwnProperty.call(m,"hcEvents")&&m.hcEvents;for(ut in st)m[ut]=void 0;e(m,u[C].prototype),rt?m.hcEvents=rt:delete m.hcEvents}}else c(17,!0,W,{missingModuleFor:C});if(_.forEach(function(X){m[X]=_[X]}),m.init(W,o),J&&this.points){if(o=m.options,o.visible===!1)ht.graphic=1,ht.dataLabel=1;else if(!m._hasPointLabels){const{marker:X,dataLabels:et}=o;F=F.marker||{},!X||X.enabled!==!1&&F.symbol===X.symbol&&F.height===X.height&&F.width===X.width||(ht.graphic=1),et&&et.enabled===!1&&(ht.dataLabel=1)}for(const X of this.points)X&&X.series&&(X.resolveColor(),Object.keys(ht).length&&X.destroyElements(ht),o.showInLegend===!1&&X.legendItem&&W.legend.destroyItem(X))}m.initialType=H,W.linkSeries(),it&&m.linkedSeries.length&&(m.isDirtyData=!0),i(this,"afterUpdate"),B(g,!0)&&W.redraw(J?void 0:!1)}setName(o){this.name=this.options.name=this.userOptions.name=o,this.chart.isDirtyLegend=!0}hasOptionChanged(o){const g=this.options[o],m=this.chart.options.plotOptions,W=this.userOptions[o];return W?g!==W:g!==B(m&&m[this.type]&&m[this.type][o],m&&m.series&&m.series[o],g)}onMouseOver(){const o=this.chart,g=o.hoverSeries;o.pointer.setHoverChartIndex(),g&&g!==this&&g.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),o.hoverSeries=this}onMouseOut(){const o=this.options,g=this.chart,m=g.tooltip,W=g.hoverPoint;g.hoverSeries=null,W&&W.onMouseOut(),this&&o.events.mouseOut&&i(this,"mouseOut"),!m||this.stickyTracking||m.shared&&!this.noSharedTooltip||m.hide(),g.series.forEach(function(F){F.setState("",!0)})}setState(o,g){const m=this;var W=m.options;const F=m.graph,H=W.inactiveOtherPoints,it=W.states,st=B(it[o||"normal"]&&it[o||"normal"].animation,m.chart.options.chart.animation);let rt=W.lineWidth,ht=0,ut=W.opacity;if(o=o||"",m.state!==o&&([m.group,m.markerGroup,m.dataLabelsGroup].forEach(function(_){_&&(m.state&&_.removeClass("highcharts-series-"+m.state),o&&_.addClass("highcharts-series-"+o))}),m.state=o,!m.chart.styledMode)){if(it[o]&&it[o].enabled===!1)return;if(o&&(rt=it[o].lineWidth||rt+(it[o].lineWidthPlus||0),ut=B(it[o].opacity,ut)),F&&!F.dashstyle&&P(rt))for(W={"stroke-width":rt},F.animate(W,st);m["zone-graph-"+ht];)m["zone-graph-"+ht].animate(W,st),ht+=1;H||[m.group,m.markerGroup,m.dataLabelsGroup,m.labelBySeries].forEach(function(_){_&&_.animate({opacity:ut},st)})}g&&H&&m.points&&m.setAllPointsToState(o||void 0)}setAllPointsToState(o){this.points.forEach(function(g){g.setState&&g.setState(o)})}setVisible(o,g){const m=this,W=m.chart,F=W.options.chart.ignoreHiddenSeries,H=m.visible,it=(m.visible=o=m.options.visible=m.userOptions.visible=typeof o>"u"?!H:o)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(st){m[st]&&m[st][it]()}),(W.hoverSeries===m||(W.hoverPoint&&W.hoverPoint.series)===m)&&m.onMouseOut(),m.legendItem&&W.legend.colorizeItem(m,o),m.isDirty=!0,m.options.stacking&&W.series.forEach(function(st){st.options.stacking&&st.visible&&(st.isDirty=!0)}),m.linkedSeries.forEach(function(st){st.setVisible(o,!1)}),F&&(W.isDirtyBox=!0),i(m,it),g!==!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,g,m={}){return m.series=this,m.visiblePlotOnly=!0,this.chart.isInsidePlot(o,g,m)}drawLegendSymbol(o,g){var m;(m=V[this.options.legendSymbol||"rectangle"])===null||m===void 0||m.call(this,o,g)}}return I.defaultOptions=Y,I.types=E.seriesTypes,I.registerType=E.registerSeriesType,e(I.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:tt,requireSorting:!0,sorted:!0}),E.series=I,I}),K(w,"Core/Chart/Chart.js",[w["Core/Animation/AnimationUtilities.js"],w["Core/Axis/Axis.js"],w["Core/Defaults.js"],w["Core/Templating.js"],w["Core/Foundation.js"],w["Core/Globals.js"],w["Core/Renderer/RendererRegistry.js"],w["Core/Series/Series.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Renderer/SVG/SVGRenderer.js"],w["Core/Time.js"],w["Core/Utilities.js"],w["Core/Renderer/HTML/AST.js"]],function(j,A,$,Z,V,tt,Y,E,N,z,v,S,L){const{animate:D,animObject:d,setAnimation:x}=j,{defaultOptions:y,defaultTime:u}=$,{numberFormat:M}=Z,{registerEventOptions:b}=V,{charts:k,doc:n,marginNames:a,svg:p,win:h}=tt,{seriesTypes:c}=N,{addEvent:e,attr:t,createElement:i,css:l,defined:f,diffObjects:O,discardElement:r,erase:P,error:G,extend:Q,find:nt,fireEvent:B,getStyle:s,isArray:T,isNumber:R,isObject:I,isString:q,merge:o,objectEach:g,pick:m,pInt:W,relativeLength:F,removeEvent:H,splat:it,syncTimeout:st,uniqueKey:rt}=S;class ht{static chart(_,C,J){return new ht(_,C,J)}constructor(_,C,J){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(_,C,J)}getArgs(_,C,J){q(_)||_.nodeName?(this.renderTo=_,this.init(C,J)):this.init(_,C)}setZoomOptions(){const _=this.options.chart,C=_.zooming;this.zooming=Object.assign(Object.assign({},C),{type:m(_.zoomType,C.type),key:m(_.zoomKey,C.key),pinchType:m(_.pinchType,C.pinchType),singleTouch:m(_.zoomBySingleTouch,C.singleTouch,!1),resetButton:o(C.resetButton,_.resetZoomButton)})}init(_,C){B(this,"init",{args:arguments},function(){const J=o(y,_),X=J.chart;this.userOptions=Q({},_),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=C,this.isResizing=0,this.options=J,this.axes=[],this.series=[],this.time=_.time&&Object.keys(_.time).length?new v(_.time):tt.time,this.numberFormatter=X.numberFormatter||M,this.styledMode=X.styledMode,this.hasCartesianSeries=X.showAxes,this.index=k.length,k.push(this),tt.chartCount++,b(this,X),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),B(this,"afterInit"),this.firstRender()})}initSeries(_){var C=this.options.chart;C=_.type||C.type;const J=c[C];return J||G(17,!0,this,{missingModuleFor:C}),C=new J,typeof C.init=="function"&&C.init(this,_),C}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(_){_.points||_.data||!_.enabledDataSorting||_.setData(_.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(_,C){return _.linkedSeries.length||C.linkedSeries.length?C.linkedSeries.length-_.linkedSeries.length:0})}orderItems(_,C=0){const J=this[_],X=this.options[_]=it(this.options[_]).slice();if(_=this.userOptions[_]=this.userOptions[_]?it(this.userOptions[_]).slice():[],this.hasRendered&&(X.splice(C),_.splice(C)),J)for(let et=C,dt=J.length;et<dt;++et)(C=J[et])&&(C.index=et,C instanceof E&&(C.name=C.getName()),C.options.isInternal||(X[et]=C.options,_[et]=C.userOptions))}isInsidePlot(_,C,J={}){const{inverted:X,plotBox:et,plotLeft:dt,plotTop:ct,scrollablePlotBox:xt}=this;var yt=0;let gt=0;J.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:yt,scrollTop:gt}=this.scrollingContainer);const mt=J.series,Ct=J.visiblePlotOnly&&xt||et;var kt=J.inverted?C:_;if(C=J.inverted?_:C,_={x:kt,y:C,isInsidePlot:!0,options:J},!J.ignoreX){const bt=mt&&(X&&!this.polar?mt.yAxis:mt.xAxis)||{pos:dt,len:1/0};kt=J.paneCoordinates?bt.pos+kt:dt+kt,kt>=Math.max(yt+dt,bt.pos)&&kt<=Math.min(yt+dt+Ct.width,bt.pos+bt.len)||(_.isInsidePlot=!1)}return!J.ignoreY&&_.isInsidePlot&&(yt=!X&&J.axis&&!J.axis.isXAxis&&J.axis||mt&&(X?mt.xAxis:mt.yAxis)||{pos:ct,len:1/0},J=J.paneCoordinates?yt.pos+C:ct+C,J>=Math.max(gt+ct,yt.pos)&&J<=Math.min(gt+ct+Ct.height,yt.pos+yt.len)||(_.isInsidePlot=!1)),B(this,"afterIsInsidePlot",_),_.isInsidePlot}redraw(_){B(this,"beforeRedraw");const C=this.hasCartesianSeries?this.axes:this.colorAxis||[],J=this.series,X=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?_:!1,this),xt&&this.temporaryDisplay(),this.layOutTitles(!1),_=J.length;_--;)if(bt=J[_],(bt.options.stacking||bt.options.centerInCategory)&&(mt=!0,bt.isDirty)){gt=!0;break}if(gt)for(_=J.length;_--;)bt=J[_],bt.options.stacking&&(bt.isDirty=!0);J.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(),C.forEach(function(Mt){Mt.updateNames(),Mt.setScale()}),this.getMargins(),C.forEach(function(Mt){Mt.isDirty&&(Ct=!0)}),C.forEach(function(Mt){const Et=Mt.min+","+Mt.max;Mt.extKey!==Et&&(Mt.extKey=Et,yt.push(function(){B(Mt,"afterSetExtremes",Q(Mt.eventArgs,Mt.getExtremes())),delete Mt.eventArgs})),(Ct||mt)&&Mt.redraw()}),Ct&&this.drawChartBox(),B(this,"predraw"),J.forEach(function(Mt){(Ct||Mt.isDirty)&&Mt.visible&&Mt.redraw(),Mt.isDirtyData=!1}),X&&X.reset(!0),ct.draw(),B(this,"redraw"),B(this,"render"),xt&&this.temporaryDisplay(!0),yt.forEach(function(Mt){Mt.call()})}get(_){function C(et){return et.id===_||et.options&&et.options.id===_}const J=this.series;let X=nt(this.axes,C)||nt(this.series,C);for(let et=0;!X&&et<J.length;et++)X=nt(J[et].points||[],C);return X}getAxes(){const _=this.options;B(this,"getAxes");for(const C of["xAxis","yAxis"]){const J=_[C]=it(_[C]||{});for(const X of J)new A(this,X,C)}B(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((_,C)=>(C.getPointsCollection().forEach(J=>{m(J.selectedStaging,J.selected)&&_.push(J)}),_),[])}getSelectedSeries(){return this.series.filter(function(_){return _.selected})}setTitle(_,C,J){this.applyDescription("title",_),this.applyDescription("subtitle",C),this.applyDescription("caption",void 0),this.layOutTitles(J)}applyDescription(_,C){const J=this,X=this.options[_]=o(this.options[_],C);let et=this[_];et&&C&&(this[_]=et=et.destroy()),X&&!et&&(et=this.renderer.text(X.text,0,0,X.useHTML).attr({align:X.align,class:"highcharts-"+_,zIndex:X.zIndex||4}).add(),et.update=function(dt,ct){J.applyDescription(_,dt),J.layOutTitles(ct)},this.styledMode||et.css(Q(_==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},X.style)),this[_]=et)}layOutTitles(_=!0){const C=[0,0,0],J=this.renderer,X=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"?C[0]+2:0,ct){ct.css({width:(xt.width||X.width+(xt.widthAdjust||0))+"px"});const gt=J.fontMetrics(ct).b,mt=Math.round(ct.getBBox(xt.useHTML).height);ct.align(Q({y:yt==="bottom"?gt:dt+gt,height:mt},xt),!1,"spacingBox"),xt.floating||(yt==="top"?C[0]=Math.ceil(C[0]+mt):yt==="bottom"&&(C[2]=Math.ceil(C[2]+mt)))}},this),C[0]&&(this.options.title.verticalAlign||"top")==="top"&&(C[0]+=this.options.title.margin),C[2]&&this.options.caption.verticalAlign==="bottom"&&(C[2]+=this.options.caption.margin);const et=!this.titleOffset||this.titleOffset.join(",")!==C.join(",");this.titleOffset=C,B(this,"afterLayOutTitles"),!this.isDirtyBox&&et&&(this.isDirtyBox=this.isDirtyLegend=et,this.hasRendered&&_&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:s(this.renderTo,"width",!0)||0,height:s(this.renderTo,"height",!0)||0}}getChartSize(){var _=this.options.chart;const C=_.width;_=_.height;const J=this.getContainerBox();this.chartWidth=Math.max(0,C||J.width||600),this.chartHeight=Math.max(0,F(_,this.chartWidth)||(1<J.height?J.height:400)),this.containerBox=J}temporaryDisplay(_){let C=this.renderTo;if(_)for(;C&&C.style;)C.hcOrigStyle&&(l(C,C.hcOrigStyle),delete C.hcOrigStyle),C.hcOrigDetached&&(n.body.removeChild(C),C.hcOrigDetached=!1),C=C.parentNode;else for(;C&&C.style&&(n.body.contains(C)||C.parentNode||(C.hcOrigDetached=!0,n.body.appendChild(C)),(s(C,"display",!1)==="none"||C.hcOricDetached)&&(C.hcOrigStyle={display:C.style.display,height:C.style.height,overflow:C.style.overflow},_={display:"block",overflow:"hidden"},C!==this.renderTo&&(_.height=0),l(C,_),C.offsetWidth||C.style.setProperty("display","block","important")),C=C.parentNode,C!==n.body););}setClassName(_){this.container.className="highcharts-container "+(_||"")}getContainer(){const _=this.options,C=_.chart;var J=rt();let X,et=this.renderTo;et||(this.renderTo=et=C.renderTo),q(et)&&(this.renderTo=et=n.getElementById(et)),et||G(13,!0,this);var dt=W(t(et,"data-highcharts-chart"));R(dt)&&k[dt]&&k[dt].hasRendered&&k[dt].destroy(),t(et,"data-highcharts-chart",this.index),et.innerHTML=L.emptyHTML,C.skipClone||et.offsetWidth||this.temporaryDisplay(),this.getChartSize(),dt=this.chartWidth;const ct=this.chartHeight;if(l(et,{overflow:"hidden"}),this.styledMode||(X=Q({position:"relative",overflow:"hidden",width:dt+"px",height:ct+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},C.style||{})),this.container=J=i("div",{id:J},X,et),this._cursor=J.style.cursor,this.renderer=new(C.renderer||!p?Y.getRendererType(C.renderer):z)(J,dt,ct,void 0,C.forExport,_.exporting&&_.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),x(void 0,this),this.setClassName(C.className),this.styledMode)for(const xt in _.defs)this.renderer.definition(_.defs[xt]);else this.renderer.setStyle(C.style);this.renderer.chartIndex=this.index,B(this,"afterGetContainer")}getMargins(_){const{spacing:C,margin:J,titleOffset:X}=this;this.resetMargins(),X[0]&&!f(J[0])&&(this.plotTop=Math.max(this.plotTop,X[0]+C[0])),X[2]&&!f(J[2])&&(this.marginBottom=Math.max(this.marginBottom,X[2]+C[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(J,C),B(this,"getMargins"),_||this.getAxisMargins()}getAxisMargins(){const _=this,C=_.axisOffset=[0,0,0,0],J=_.colorAxis,X=_.margin,et=function(dt){dt.forEach(function(ct){ct.visible&&ct.getOffset()})};_.hasCartesianSeries?et(_.axes):J&&J.length&&et(J),a.forEach(function(dt,ct){f(X[ct])||(_[dt]+=C[ct])}),_.setChartSize()}getOptions(){return O(this.userOptions,y)}reflow(_){const C=this;var J=C.options.chart;J=f(J.width)&&f(J.height);const X=C.containerBox,et=C.getContainerBox();delete C.pointer.chartPosition,!J&&!C.isPrinting&&X&&et.width&&((et.width!==X.width||et.height!==X.height)&&(S.clearTimeout(C.reflowTimeout),C.reflowTimeout=st(function(){C.container&&C.setSize(void 0,void 0,!1)},_?100:0)),C.containerBox=et)}setReflow(){const _=this;var C=J=>{var X;!((X=_.options)===null||X===void 0)&&X.chart.reflow&&_.hasLoaded&&_.reflow(J)};typeof ResizeObserver=="function"?new ResizeObserver(C).observe(_.renderTo):(C=e(h,"resize",C),e(this,"destroy",C))}setSize(_,C,J){const X=this,et=X.renderer;X.isResizing+=1,x(J,X),J=et.globalAnimation,X.oldChartHeight=X.chartHeight,X.oldChartWidth=X.chartWidth,typeof _<"u"&&(X.options.chart.width=_),typeof C<"u"&&(X.options.chart.height=C),X.getChartSize(),X.styledMode||(J?D:l)(X.container,{width:X.chartWidth+"px",height:X.chartHeight+"px"},J),X.setChartSize(!0),et.setSize(X.chartWidth,X.chartHeight,J),X.axes.forEach(function(dt){dt.isDirty=!0,dt.setScale()}),X.isDirtyLegend=!0,X.isDirtyBox=!0,X.layOutTitles(),X.getMargins(),X.redraw(J),X.oldChartHeight=null,B(X,"resize"),st(function(){X&&B(X,"endResize",null,function(){--X.isResizing})},d(J).duration)}setChartSize(_){var C=this.inverted;const J=this.renderer;var X=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(X-yt-this.marginRight)),this.plotHeight=Ct=Math.max(0,Math.round(et-gt-this.marginBottom)),this.plotSizeX=C?Ct:mt,this.plotSizeY=C?mt:Ct,this.plotBorderWidth=dt.plotBorderWidth||0,this.spacingBox=J.spacingBox={x:ct[3],y:ct[0],width:X-ct[3]-ct[1],height:et-ct[0]-ct[2]},this.plotBox=J.plotBox={x:yt,y:gt,width:mt,height:Ct},C=2*Math.floor(this.plotBorderWidth/2),X=Math.ceil(Math.max(C,xt[3])/2),et=Math.ceil(Math.max(C,xt[0])/2),this.clipBox={x:X,y:et,width:Math.floor(this.plotSizeX-Math.max(C,xt[1])/2-X),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(C,xt[2])/2-et))},_||(this.axes.forEach(function(kt){kt.setAxisSize(),kt.setAxisTranslation()}),J.alignElements()),B(this,"afterSetChartSize",{skipAxes:_})}resetMargins(){B(this,"resetMargins");const _=this,C=_.options.chart;["margin","spacing"].forEach(function(J){const X=C[J],et=I(X)?X:[X,X,X,X];["Top","Right","Bottom","Left"].forEach(function(dt,ct){_[J][ct]=m(C[J+dt],et[ct])})}),a.forEach(function(J,X){_[J]=m(_.margin[X],_.spacing[X])}),_.axisOffset=[0,0,0,0],_.clipOffset=[0,0,0,0]}drawChartBox(){const _=this.options.chart,C=this.renderer,J=this.chartWidth,X=this.chartHeight,et=this.styledMode,dt=this.plotBGImage;var ct=_.backgroundColor;const xt=_.plotBackgroundColor,yt=_.plotBackgroundImage,gt=this.plotLeft,mt=this.plotTop,Ct=this.plotWidth,kt=this.plotHeight,bt=this.plotBox,Mt=this.clipRect,Et=this.clipBox;let Tt=this.chartBackground,Rt=this.plotBackground,Ht=this.plotBorder,Ot,$t,Bt="animate";Tt||(this.chartBackground=Tt=C.rect().addClass("highcharts-background").add(),Bt="attr"),et?Ot=$t=Tt.strokeWidth():(Ot=_.borderWidth||0,$t=Ot+(_.shadow?8:0),ct={fill:ct||"none"},(Ot||Tt["stroke-width"])&&(ct.stroke=_.borderColor,ct["stroke-width"]=Ot),Tt.attr(ct).shadow(_.shadow)),Tt[Bt]({x:$t/2,y:$t/2,width:J-$t-Ot%2,height:X-$t-Ot%2,r:_.borderRadius}),Bt="animate",Rt||(Bt="attr",this.plotBackground=Rt=C.rect().addClass("highcharts-plot-background").add()),Rt[Bt](bt),et||(Rt.attr({fill:xt||"none"}).shadow(_.plotShadow),yt&&(dt?(yt!==dt.attr("href")&&dt.attr("href",yt),dt.animate(bt)):this.plotBGImage=C.image(yt,gt,mt,Ct,kt).add())),Mt?Mt.animate({width:Et.width,height:Et.height}):this.clipRect=C.clipRect(Et),Bt="animate",Ht||(Bt="attr",this.plotBorder=Ht=C.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),et||Ht.attr({stroke:_.plotBorderColor,"stroke-width":_.plotBorderWidth||0,fill:"none"}),Ht[Bt](Ht.crisp({x:gt,y:mt,width:Ct,height:kt},-Ht.strokeWidth())),this.isDirtyBox=!1,B(this,"afterDrawChartBox")}propFromSeries(){const _=this,C=_.options.chart,J=_.options.series;let X,et,dt;["inverted","angular","polar"].forEach(function(ct){for(et=c[C.type],dt=C[ct]||et&&et.prototype[ct],X=J&&J.length;!dt&&X--;)(et=c[J[X].type])&&et.prototype[ct]&&(dt=!0);_[ct]=dt})}linkSeries(_){const C=this,J=C.series;J.forEach(function(X){X.linkedSeries.length=0}),J.forEach(function(X){let et=X.options.linkedTo;q(et)&&(et=et===":previous"?C.series[X.index-1]:C.get(et))&&et.linkedParent!==X&&(et.linkedSeries.push(X),X.linkedParent=et,et.enabledDataSorting&&X.setDataSortingOptions(),X.visible=m(X.options.visible,et.options.visible,X.visible))}),B(this,"afterLinkSeries",{isUpdating:_})}renderSeries(){this.series.forEach(function(_){_.translate(),_.render()})}render(){const _=this.axes,C=this.colorAxis,J=this.renderer,X=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;_.some(function(gt){if(gt.horiz&>.visible&>.options.labels.enabled&>.series.length)return et=21,!0});const ct=this.plotHeight=Math.max(this.plotHeight-et,0);_.forEach(function(gt){gt.setScale()}),this.getAxisMargins();const xt=1.1<dt/this.plotWidth,yt=1.05<ct/this.plotHeight;(xt||yt)&&(_.forEach(function(gt){(gt.horiz&&xt||!gt.horiz&&yt)&>.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?X(_):C&&C.length&&X(C),this.seriesGroup||(this.seriesGroup=J.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(_){const C=this,J=o(!0,this.options.credits,_);J.enabled&&!this.credits&&(this.credits=this.renderer.text(J.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){J.href&&(h.location.href=J.href)}).attr({align:J.position.align,zIndex:8}),C.styledMode||this.credits.css(J.style),this.credits.add().align(J.position),this.credits.update=function(X){C.credits=C.credits.destroy(),C.addCredits(X)})}destroy(){const _=this,C=_.axes,J=_.series,X=_.container,et=X&&X.parentNode;let dt;for(B(_,"destroy"),_.renderer.forExport?P(k,_):k[_.index]=void 0,tt.chartCount--,_.renderTo.removeAttribute("data-highcharts-chart"),H(_),dt=C.length;dt--;)C[dt]=C[dt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),dt=J.length;dt--;)J[dt]=J[dt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ct){const xt=_[ct];xt&&xt.destroy&&(_[ct]=xt.destroy())}),X&&(X.innerHTML=L.emptyHTML,H(X),et&&r(X)),g(_,function(ct,xt){delete _[xt]})}firstRender(){const _=this,C=_.options;_.getContainer(),_.resetMargins(),_.setChartSize(),_.propFromSeries(),_.getAxes();const J=T(C.series)?C.series:[];C.series=[],J.forEach(function(X){_.initSeries(X)}),_.linkSeries(),_.setSeriesData(),B(_,"beforeRender"),_.render(),_.pointer.getChartPosition(),!_.renderer.imgCount&&!_.hasLoaded&&_.onload(),_.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(_){_&&typeof this.index<"u"&&_.apply(this,[this])},this),B(this,"load"),B(this,"render"),f(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){const{options:_,title:C}=this;_&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(C&&C.element.textContent||"").replace(/</g,"<")}),_.accessibility&&_.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(_,C,J){const X=this;let et;return _&&(C=m(C,!0),B(X,"addSeries",{options:_},function(){et=X.initSeries(_),X.isDirtyLegend=!0,X.linkSeries(),et.enabledDataSorting&&et.setData(_.data,!1),B(X,"afterAddSeries",{series:et}),C&&X.redraw(J)})),et}addAxis(_,C,J,X){return this.createAxis(C?"xAxis":"yAxis",{axis:_,redraw:J,animation:X})}addColorAxis(_,C,J){return this.createAxis("colorAxis",{axis:_,redraw:C,animation:J})}createAxis(_,C){return _=new A(this,C.axis,_),m(C.redraw,!0)&&this.redraw(C.animation),_}showLoading(_){const C=this,J=C.options,X=J.loading,et=function(){dt&&l(dt,{left:C.plotLeft+"px",top:C.plotTop+"px",width:C.plotWidth+"px",height:C.plotHeight+"px"})};let dt=C.loadingDiv,ct=C.loadingSpan;dt||(C.loadingDiv=dt=i("div",{className:"highcharts-loading highcharts-loading-hidden"},null,C.container)),ct||(C.loadingSpan=ct=i("span",{className:"highcharts-loading-inner"},null,dt),e(C,"redraw",et)),dt.className="highcharts-loading",L.setElementHTML(ct,m(_,J.lang.loading,"")),C.styledMode||(l(dt,Q(X.style,{zIndex:10})),l(ct,X.labelStyle),C.loadingShown||(l(dt,{opacity:0,display:""}),D(dt,{opacity:X.style.opacity||.5},{duration:X.showDuration||0}))),C.loadingShown=!0,et()}hideLoading(){const _=this.options,C=this.loadingDiv;C&&(C.className="highcharts-loading highcharts-loading-hidden",this.styledMode||D(C,{opacity:0},{duration:_.loading.hideDuration||100,complete:function(){l(C,{display:"none"})}})),this.loadingShown=!1}update(_,C,J,X){const et=this,dt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ct=_.isResponsiveOptions,xt=[];let yt,gt;B(et,"update",{options:_}),ct||et.setResponsive(!1,!0),_=O(_,et.options),et.userOptions=o(et.userOptions,_);var mt=_.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&&b(this,mt),g(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&&_.colors&&(this.options.colors=_.colors),_.time&&(this.time===u&&(this.time=new v(_.time)),o(!0,et.options.time,_.time)),g(_,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],_[bt]),bt!=="chart"&&et.propsRequireUpdateSeries.indexOf(bt)!==-1&&(yt=!0)}),this.collectionsWithUpdate.forEach(function(kt){_[kt]&&(it(_[kt]).forEach(function(bt,Mt){const Et=f(bt.id);let Tt;Et&&(Tt=et.get(bt.id)),!Tt&&et[kt]&&(Tt=et[kt][m(bt.index,Mt)])&&(Et&&f(Tt.options.id)||Tt.options.isInternal)&&(Tt=void 0),Tt&&Tt.coll===kt&&(Tt.update(bt,!1),J&&(Tt.touched=!0)),!Tt&&J&&et.collectionsWithInit[kt]&&(et.collectionsWithInit[kt][0].apply(et,[bt].concat(et.collectionsWithInit[kt][1]||[]).concat([!1])).touched=!0)}),J&&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&&(q(mt.height)?F(mt.height,Ct||et.chartWidth):mt.height),gt||R(Ct)&&Ct!==et.chartWidth||R(mt)&&mt!==et.chartHeight?et.setSize(Ct,mt,X):m(C,!0)&&et.redraw(X),B(et,"afterUpdate",{options:_,redraw:C,animation:X})}setSubtitle(_,C){this.applyDescription("subtitle",_),this.layOutTitles(C)}setCaption(_,C){this.applyDescription("caption",_),this.layOutTitles(C)}showResetZoom(){function _(){C.zoomOut()}const C=this,J=y.lang,X=C.zooming.resetButton,et=X.theme,dt=X.relativeTo==="chart"||X.relativeTo==="spacingBox"?null:"scrollablePlotBox";B(this,"beforeShowResetZoom",null,function(){C.resetZoomButton=C.renderer.button(J.resetZoom,null,null,_,et).attr({align:X.position.align,title:J.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(X.position,!1,dt)}),B(this,"afterShowResetZoom")}zoomOut(){B(this,"selection",{resetSelection:!0},this.zoom)}zoom(_){const C=this,J=C.pointer;let X=!1,et;!_||_.resetSelection?(C.axes.forEach(function(ct){et=ct.zoom()}),J.initiated=!1):_.xAxis.concat(_.yAxis).forEach(function(ct){const xt=ct.axis;(J[xt.isXAxis?"zoomX":"zoomY"]&&f(J.mouseDownX)&&f(J.mouseDownY)&&C.isInsidePlot(J.mouseDownX-C.plotLeft,J.mouseDownY-C.plotTop,{axis:xt})||!f(C.inverted?J.mouseDownX:J.mouseDownY))&&(et=xt.zoom(ct.min,ct.max),xt.displayBtn&&(X=!0))});const dt=C.resetZoomButton;X&&!dt?C.showResetZoom():!X&&I(dt)&&(C.resetZoomButton=dt.destroy()),et&&C.redraw(m(C.options.chart.animation,_&&_.animation,100>C.pointCount))}pan(_,C){const J=this,X=J.hoverPoints;C=typeof C=="object"?C:{enabled:C,type:"x"};const et=J.options.chart;et&&et.panning&&(et.panning=C);const dt=C.type;let ct;B(this,"pan",{originalEvent:_},function(){X&&X.forEach(function(gt){gt.setState()});let xt=J.xAxis;dt==="xy"?xt=xt.concat(J.yAxis):dt==="y"&&(xt=J.yAxis);const yt={};xt.forEach(function(gt){if(gt.options.panningEnabled&&!gt.options.isInternal){var mt=gt.horiz,Ct=_[mt?"chartX":"chartY"];mt=mt?"mouseDownX":"mouseDownY";var kt=J[mt],bt=gt.minPointOffset||0,Mt=gt.reversed&&!J.inverted||!gt.reversed&&J.inverted?-1:1,Et=gt.getExtremes(),Tt=gt.toValue(kt-Ct,!0)+bt*Mt,Rt=gt.toValue(kt+gt.len-Ct,!0)-(bt*Mt||gt.isXAxis&>.pointRangePadding||0),Ht=Rt<Tt;Mt=gt.hasVerticalPanning(),kt=Ht?Rt:Tt,Tt=Ht?Tt:Rt;var Ot=gt.panningState;!Mt||gt.isXAxis||Ot&&!Ot.isDirty||gt.series.forEach(function($t){var Bt=$t.getProcessedData(!0);Bt=$t.getExtremes(Bt.yData,!0),Ot||(Ot={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),R(Bt.dataMin)&&R(Bt.dataMax)&&(Ot.startMin=Math.min(m($t.options.threshold,1/0),Bt.dataMin,Ot.startMin),Ot.startMax=Math.max(m($t.options.threshold,-1/0),Bt.dataMax,Ot.startMax))}),Mt=Math.min(m(Ot&&Ot.startMin,Et.dataMin),bt?Et.min:gt.toValue(gt.toPixels(Et.min)-gt.minPixelPadding)),Rt=Math.max(m(Ot&&Ot.startMax,Et.dataMax),bt?Et.max:gt.toValue(gt.toPixels(Et.max)+gt.minPixelPadding)),gt.panningState=Ot,gt.isOrdinal||(bt=Mt-kt,0<bt&&(Tt+=bt,kt=Mt),bt=Tt-Rt,0<bt&&(Tt=Rt,kt-=bt),gt.series.length&&kt!==Et.min&&Tt!==Et.max&&kt>=Mt&&Tt<=Rt&&(gt.setExtremes(kt,Tt,!1,!1,{trigger:"pan"}),!J.resetZoomButton&&kt!==Mt&&Tt!==Rt&&dt.match("y")&&(J.showResetZoom(),gt.displayBtn=!1),ct=!0),yt[mt]=Ct)}}),g(yt,(gt,mt)=>{J[mt]=gt}),ct&&J.redraw(!1),l(J.container,{cursor:"move"})})}}return Q(ht.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ht.prototype.addAxis,[!0]],yAxis:[ht.prototype.addAxis,[!1]],series:[ht.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),ht}),K(w,"Extensions/ScrollablePlotArea.js",[w["Core/Animation/AnimationUtilities.js"],w["Core/Axis/Axis.js"],w["Core/Chart/Chart.js"],w["Core/Series/Series.js"],w["Core/Renderer/RendererRegistry.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V,tt){const{stop:Y}=j,{addEvent:E,createElement:N,defined:z,merge:v,pick:S}=tt;E($,"afterSetChartSize",function(L){var D=this.options.chart.scrollablePlotArea,d=D&&D.minWidth;D=D&&D.minHeight;let x;this.renderer.forExport||(d?(this.scrollablePixelsX=d=Math.max(0,d-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=v(this.plotBox),this.plotBox.width=this.plotWidth+=d,this.inverted?this.clipBox.height+=d:this.clipBox.width+=d,x={1:{name:"right",value:d}}):D&&(this.scrollablePixelsY=d=Math.max(0,D-this.chartHeight),z(d)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=v(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,x={2:{name:"bottom",value:d}})),x&&!L.skipAxes&&this.axes.forEach(function(y){x[y.side]?y.getPlotLinePath=function(){let u=x[y.side].name,M=this[u],b;return this[u]=M-x[y.side].value,b=A.prototype.getPlotLinePath.apply(this,arguments),this[u]=M,b}:(y.setAxisSize(),y.setAxisTranslation())}))}),E($,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),$.prototype.setUpScrolling=function(){const L={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(L.overflowX="auto"),this.scrollablePixelsY&&(L.overflowY="auto"),this.scrollingParent=N("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=N("div",{className:"highcharts-scrolling"},L,this.scrollingParent);let D;E(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(D=this.hoverPoint),this.pointer.runPointActions(void 0,D,!0))}),this.innerContainer=N("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},$.prototype.moveFixedElements=function(){let L=this.container,D=this.fixedRenderer,d=".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&&d.push(`${x}:not(.highcharts-radial-axis)`,`${x}-labels:not(.highcharts-radial-axis-labels)`),d.forEach(function(y){[].forEach.call(L.querySelectorAll(y),function(u){(u.namespaceURI===D.SVG_NS?D.box:D.box.parentNode).appendChild(u),u.style.pointerEvents="auto"})})},$.prototype.applyFixed=function(){var L=!this.fixedDiv,D=this.options.chart,d=D.scrollablePlotArea,x=V.getRendererType();L?(this.fixedDiv=N("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(D.style&&D.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=D=new x(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=D.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":S(d.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),E(this,"afterShowResetZoom",this.moveFixedElements),E(this,"afterApplyDrilldown",this.moveFixedElements),E(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||L)&&(this.scrollableDirty=!1,this.moveFixedElements()),D=this.chartWidth+(this.scrollablePixelsX||0),x=this.chartHeight+(this.scrollablePixelsY||0),Y(this.container),this.container.style.width=D+"px",this.container.style.height=x+"px",this.renderer.boxWrapper.attr({width:D,height:x,viewBox:[0,0,D,x].join(" ")}),this.chartBackground.attr({width:D,height:x}),this.scrollingContainer.style.height=this.chartHeight+"px",L&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*d.scrollPositionY)),x=this.axisOffset,L=this.plotTop-x[0]-1,d=this.plotLeft-x[3]-1,D=this.plotTop+this.plotHeight+x[2]+1,x=this.plotLeft+this.plotWidth+x[1]+1;let y=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),u=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);L=this.scrollablePixelsX?[["M",0,L],["L",this.plotLeft-1,L],["L",this.plotLeft-1,D],["L",0,D],["Z"],["M",y,L],["L",this.chartWidth,L],["L",this.chartWidth,D],["L",y,D],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop-1],["L",x,this.plotTop-1],["L",x,0],["Z"],["M",d,u],["L",d,this.chartHeight],["L",x,this.chartHeight],["L",x,u],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:L})},E(A,"afterInit",function(){this.chart.scrollableDirty=!0}),E(Z,"show",function(){this.chart.scrollableDirty=!0})}),K(w,"Core/Axis/Stacking/StackItem.js",[w["Core/Templating.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Utilities.js"]],function(j,A,$){const{format:Z}=j,{series:V}=A,{destroyObjectProperties:tt,fireEvent:Y,isNumber:E,pick:N}=$;class z{constructor(S,L,D,d,x){const y=S.chart.inverted,u=S.reversed;this.axis=S,S=this.isNegative=!!D!=!!u,this.options=L=L||{},this.x=d,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=x,this.rightCliff=this.leftCliff=0,this.alignOptions={align:L.align||(y?S?"left":"right":"center"),verticalAlign:L.verticalAlign||(y?"middle":S?"bottom":"top"),y:L.y,x:L.x},this.textAlign=L.textAlign||(y?S?"right":"left":"center")}destroy(){tt(this,this.axis)}render(S){const L=this.axis.chart,D=this.options;var d=D.format;d=d?Z(d,this,L):D.formatter.call(this),this.label?this.label.attr({text:d,visibility:"hidden"}):(this.label=L.renderer.label(d,null,void 0,D.shape,void 0,void 0,D.useHTML,!1,"stack-labels"),d={r:D.borderRadius||0,text:d,padding:N(D.padding,5),visibility:"hidden"},L.styledMode||(d.fill=D.backgroundColor,d.stroke=D.borderColor,d["stroke-width"]=D.borderWidth,this.label.css(D.style||{})),this.label.attr(d),this.label.added||this.label.add(S)),this.label.labelrank=L.plotSizeY,Y(this,"afterRender")}setOffset(S,L,D,d,x,y){const{alignOptions:u,axis:M,label:b,options:k,textAlign:n}=this,a=M.chart;D=this.getStackBox({xOffset:S,width:L,boxBottom:D,boxTop:d,defaultX:x,xAxis:y});var{verticalAlign:p}=u;if(b&&D){d=b.getBBox(),x=b.padding,y=N(k.overflow,"justify")==="justify",u.x=k.x||0,u.y=k.y||0;const{x:h,y:c}=this.adjustStackPosition({labelBox:d,verticalAlign:p,textAlign:n});D.x-=h,D.y-=c,b.align(u,!1,D),(p=a.isInsidePlot(b.alignAttr.x+u.x+h,b.alignAttr.y+u.y+c))||(y=!1),y&&V.prototype.justifyDataLabel.call(M,b,u,b.alignAttr,d,D),b.attr({x:b.alignAttr.x,y:b.alignAttr.y,rotation:k.rotation,rotationOriginX:d.width/2,rotationOriginY:d.height/2}),N(!y&&k.crop,!0)&&(p=E(b.x)&&E(b.y)&&a.isInsidePlot(b.x-x+b.width,b.y)&&a.isInsidePlot(b.x+x,b.y)),b[p?"show":"hide"]()}Y(this,"afterSetOffset",{xOffset:S,width:L})}adjustStackPosition({labelBox:S,verticalAlign:L,textAlign:D}){const d={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:S.width/2+S.width/2*d[D],y:S.height/2*d[L]}}getStackBox(S){var L=this.axis;const D=L.chart,{boxTop:d,defaultX:x,xOffset:y,width:u,boxBottom:M}=S;var b=L.stacking.usePercentage?100:N(d,this.total,0);b=L.toPixels(b),S=S.xAxis||D.xAxis[0];const k=N(x,S.translate(this.x))+y;L=L.toPixels(M||E(L.min)&&L.logarithmic&&L.logarithmic.lin2log(L.min)||0),L=Math.abs(b-L);const n=this.isNegative;return D.inverted?{x:(n?b:b-L)-D.plotLeft,y:S.height-k-u,width:L,height:u}:{x:k+S.transB-D.plotLeft,y:(n?b-L:b)-D.plotTop,width:u,height:L}}}return z}),K(w,"Core/Axis/Stacking/StackingAxis.js",[w["Core/Animation/AnimationUtilities.js"],w["Core/Axis/Axis.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Axis/Stacking/StackItem.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V){function tt(){const e=this,t=e.inverted;e.yAxis.forEach(i=>{i.stacking&&i.stacking.stacks&&i.hasVisibleSeries&&(i.stacking.oldStacks=i.stacking.stacks)}),e.series.forEach(i=>{const l=i.xAxis&&i.xAxis.options||{};!i.options.stacking||i.visible!==!0&&e.options.chart.ignoreHiddenSeries!==!1||(i.stackKey=[i.type,p(i.options.stack,""),t?l.top:l.left,t?l.height:l.width].join())})}function Y(){const e=this.stacking;if(e){var t=e.stacks;a(t,function(i,l){M(i),t[l]=null}),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function E(){this.coll!=="yAxis"||this.stacking||(this.stacking=new h(this))}function N(e,t,i,l){return!u(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 z(){const e=this,t=e.stackKey,i=e.yAxis.stacking.stacks,l=e.processedXData,f=e[e.options.stacking+"Stacker"];let O;f&&[t,"-"+t].forEach(r=>{let P=l.length,G;for(;P--;){var Q=l[P];O=e.getStackIndicator(O,Q,e.index,r),(G=(Q=i[r]&&i[r][Q])&&Q.points[O.key])&&f.call(e,G,Q,P)}})}function v(e,t,i){t=t.total?100/t.total:0,e[0]=y(e[0]*t),e[1]=y(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?d.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,O=[],r=f.length,P=this.options,G=P.threshold,Q=p(P.startFromThreshold&&G,0);P=P.stack,e=e?`${this.type},${i}`:this.stackKey;var nt="-"+e,B=this.negStacks;t=i==="group"?t.yAxis[0]:this.yAxis;var s=t.stacking.stacks,T=t.stacking.oldStacks,R,I;for(t.stacking.stacksTouched+=1,I=0;I<r;I++){var q=l[I],o=f[I],g=this.getStackIndicator(g,q,this.index),m=g.key,W=(R=B&&o<(Q?0:G))?nt:e;s[W]||(s[W]={}),s[W][q]||(T[W]&&T[W][q]?(s[W][q]=T[W][q],s[W][q].total=null):s[W][q]=new Z(t,t.options.stackLabels,!!R,q,P)),W=s[W][q],o!==null?(W.points[m]=W.points[this.index]=[p(W.cumulative,Q)],u(W.cumulative)||(W.base=m),W.touched=t.stacking.stacksTouched,0<g.index&&this.singleStacks===!1&&(W.points[m][0]=W.points[this.index+","+q+",0"][0])):W.points[m]=W.points[this.index]=null,i==="percent"?(R=R?e:nt,B&&s[R]&&s[R][q]?(R=s[R][q],W.total=R.total=Math.max(R.total,W.total)+Math.abs(o)||0):W.total=y(W.total+(Math.abs(o)||0))):i==="group"?(k(o)&&(o=o[0]),o!==null&&(W.total=(W.total||0)+1)):W.total=y(W.total+(o||0)),W.cumulative=i==="group"?(W.total||1)-1:y(p(W.cumulative,Q)+(o||0)),o!==null&&(W.points[m].push(W.cumulative),O[I]=W.cumulative,W.hasValidPoints=!0)}i==="percent"&&(t.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=O),t.stacking.oldStacks={}}}const{getDeferredAnimation:D}=j,{series:{prototype:d}}=$,{addEvent:x,correctFloat:y,defined:u,destroyObjectProperties:M,fireEvent:b,isArray:k,isNumber:n,objectEach:a,pick:p}=V;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 O,r;for(this.usePercentage=!1,r=f;r--;)O=i[l?r:f-r-1],O.setStackedPoints(),O.setGroupedPoints();for(r=0;r<f;r++)i[r].modifyStacks();b(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=D(i,t.options.stackLabels&&t.options.stackLabels.animation||!1);const O=this.stackTotalGroup=this.stackTotalGroup||l.g("stack-labels").attr({zIndex:6,opacity:0}).add();O.translate(i.plotLeft,i.plotTop),a(f,function(r){a(r,function(P){P.render(O)})}),O.animate({opacity:1},t)}}var c;return function(e){const t=[];e.compose=function(i,l,f){V.pushUnique(t,i)&&(x(i,"init",E),x(i,"destroy",Y)),V.pushUnique(t,l)&&(l.prototype.getStacks=tt),V.pushUnique(t,f)&&(i=f.prototype,i.getStackIndicator=N,i.modifyStacks=z,i.percentStacker=v,i.setGroupedPoints=S,i.setStackedPoints=L)}}(c||(c={})),c}),K(w,"Series/Line/LineSeries.js",[w["Core/Series/Series.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Utilities.js"]],function(j,A,$){const{defined:Z,merge:V}=$;class tt extends j{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const E=this,N=this.options,z=(this.gappedPath||this.getGraphPath).call(this),v=this.chart.styledMode;let S=[["graph","highcharts-graph"]];v||S[0].push(N.lineColor||this.color||"#cccccc",N.dashStyle),S=E.getZonesGraphs(S),S.forEach(function(L,D){var d=L[0];let x=E[d];const y=x?"animate":"attr";x?(x.endX=E.preventGraphAnimation?null:z.xMap,x.animate({d:z})):z.length&&(E[d]=x=E.chart.renderer.path(z).addClass(L[1]).attr({zIndex:1}).add(E.group)),x&&!v&&(d={stroke:L[2],"stroke-width":N.lineWidth||0,fill:E.fillGraph&&E.color||"none"},L[3]?d.dashstyle=L[3]:N.linecap!=="square"&&(d["stroke-linecap"]=d["stroke-linejoin"]="round"),x[y](d).shadow(2>D&&N.shadow)),x&&(x.startX=z.xMap,x.isArea=z.isArea)})}getGraphPath(E,N,z){const v=this,S=v.options,L=[],D=[];let d,x=S.step;E=E||v.points;const y=E.reversed;return y&&E.reverse(),(x={right:1,center:2}[x]||x&&3)&&y&&(x=4-x),E=this.getValidPoints(E,!1,!(S.connectNulls&&!N&&!z)),E.forEach(function(u,M){const b=u.plotX,k=u.plotY,n=E[M-1],a=u.isNull||typeof k!="number";(u.leftCliff||n&&n.rightCliff)&&!z&&(d=!0),a&&!Z(N)&&0<M?d=!S.connectNulls:a&&!N?d=!0:(M===0||d?M=[["M",u.plotX,u.plotY]]:v.getPointSpline?M=[v.getPointSpline(E,u,M)]:x?(M=x===1?[["L",n.plotX,k]]:x===2?[["L",(n.plotX+b)/2,n.plotY],["L",(n.plotX+b)/2,k]]:[["L",b,n.plotY]],M.push(["L",b,k])):M=[["L",b,k]],D.push(u.x),x&&(D.push(u.x),x===2&&D.push(u.x)),L.push.apply(L,M),d=!1)}),L.xMap=D,v.graphPath=L}getZonesGraphs(E){return this.zones.forEach(function(N,z){z=["zone-graph-"+z,"highcharts-graph highcharts-zone-graph-"+z+" "+(N.className||"")],this.chart.styledMode||z.push(N.color||this.color,N.dashStyle||this.options.dashStyle),E.push(z)},this),E}}return tt.defaultOptions=V(j.defaultOptions,{legendSymbol:"lineMarker"}),A.registerSeriesType("line",tt),tt}),K(w,"Series/Area/AreaSeries.js",[w["Core/Color/Color.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Utilities.js"]],function(j,A,$){const{seriesTypes:{line:Z}}=A,{extend:V,merge:tt,objectEach:Y,pick:E}=$;class N extends Z{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const v=this,S=this.areaPath,L=this.options,D=[["area","highcharts-area",this.color,L.fillColor]];this.zones.forEach(function(d,x){D.push(["zone-area-"+x,"highcharts-area highcharts-zone-area-"+x+" "+d.className,d.color||v.color,d.fillColor||L.fillColor])}),D.forEach(function(d){const x=d[0],y={};let u=v[x];const M=u?"animate":"attr";u?(u.endX=v.preventGraphAnimation?null:S.xMap,u.animate({d:S})):(y.zIndex=0,u=v[x]=v.chart.renderer.path(S).addClass(d[1]).add(v.group),u.isArea=!0),v.chart.styledMode||(d[3]?y.fill=d[3]:(y.fill=d[2],y["fill-opacity"]=E(L.fillOpacity,.75))),u[M](y),u.startX=S.xMap,u.shiftUnit=L.step?2:1})}getGraphPath(v){var S=Z.prototype.getGraphPath,L=this.options;const D=L.stacking,d=this.yAxis,x=[],y=[],u=this.index,M=d.stacking.stacks[this.stackKey],b=L.threshold,k=Math.round(d.getThreshold(L.threshold));L=E(L.connectNulls,D==="percent");var n=function(c,e,t){var i=v[c];c=D&&M[i.x].points[u];const l=i[t+"Null"]||0;t=i[t+"Cliff"]||0;let f,O;i=!0,t||l?(f=(l?c[0]:c[1])+t,O=c[0]+t,i=!!l):!D&&v[e]&&v[e].isNull&&(f=O=b),typeof f<"u"&&(y.push({plotX:a,plotY:f===null?k:d.getThreshold(f),isNull:i,isCliff:!0}),x.push({plotX:a,plotY:O===null?k:d.getThreshold(O),doCurve:!1}))};let a;v=v||this.points,D&&(v=this.getStackPoints(v));for(let c=0,e=v.length;c<e;++c){D||(v[c].leftCliff=v[c].rightCliff=v[c].leftNull=v[c].rightNull=void 0);var p=v[c].isNull;a=E(v[c].rectPlotX,v[c].plotX);var h=D?E(v[c].yBottom,k):k;(!p||L)&&(L||n(c,c-1,"left"),p&&!D&&L||(y.push(v[c]),x.push({x:c,plotX:a,plotY:h})),L||n(c,c+1,"right"))}return n=S.call(this,y,!0,!0),x.reversed=!0,p=S.call(this,x,!0,!0),(h=p[0])&&h[0]==="M"&&(p[0]=["L",h[1],h[2]]),p=n.concat(p),p.length&&p.push(["Z"]),S=S.call(this,y,!1,L),p.xMap=n.xMap,this.areaPath=p,S}getStackPoints(v){const S=this,L=[],D=[],d=this.xAxis,x=this.yAxis,y=x.stacking.stacks[this.stackKey],u={},M=x.series,b=M.length,k=x.options.reversedStacks?1:-1,n=M.indexOf(S);if(v=v||this.points,this.options.stacking){for(let p=0;p<v.length;p++)v[p].leftNull=v[p].rightNull=void 0,u[v[p].x]=v[p];Y(y,function(p,h){p.total!==null&&D.push(h)}),D.sort(function(p,h){return p-h});const a=M.map(p=>p.visible);D.forEach(function(p,h){let c=0,e,t;if(u[p]&&!u[p].isNull)L.push(u[p]),[-1,1].forEach(function(i){const l=i===1?"rightNull":"leftNull",f=y[D[h+i]];let O=0;if(f){let r=n;for(;0<=r&&r<b;){const P=M[r].index;e=f.points[P],e||(P===S.index?u[p][l]=!0:a[r]&&(t=y[p].points[P])&&(O-=t[1]-t[0])),r+=k}}u[p][i===1?"rightCliff":"leftCliff"]=O});else{let i=n;for(;0<=i&&i<b;){if(e=y[p].points[M[i].index]){c=e[1];break}i+=k}c=E(c,0),c=x.translate(c,0,1,0,1),L.push({isNull:!0,plotX:d.translate(p,0,0,0,1),x:p,plotY:c,yBottom:c})}})}return L}}return N.defaultOptions=tt(Z.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),V(N.prototype,{singleStacks:!1}),A.registerSeriesType("area",N),N}),K(w,"Series/Spline/SplineSeries.js",[w["Core/Series/SeriesRegistry.js"],w["Core/Utilities.js"]],function(j,A){const{line:$}=j.seriesTypes,{merge:Z,pick:V}=A;class tt extends ${constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(E,N,z){const v=N.plotX||0,S=N.plotY||0,L=E[z-1];z=E[z+1];let D,d,x;if(L&&!L.isNull&&L.doCurve!==!1&&!N.isCliff&&z&&!z.isNull&&z.doCurve!==!1&&!N.isCliff){E=L.plotY||0;var y=z.plotX||0;z=z.plotY||0;let u=0;D=(1.5*v+(L.plotX||0))/2.5,d=(1.5*S+E)/2.5,y=(1.5*v+y)/2.5,x=(1.5*S+z)/2.5,y!==D&&(u=(x-d)*(y-v)/(y-D)+S-x),d+=u,x+=u,d>E&&d>S?(d=Math.max(E,S),x=2*S-d):d<E&&d<S&&(d=Math.min(E,S),x=2*S-d),x>z&&x>S?(x=Math.max(z,S),d=2*S-x):x<z&&x<S&&(x=Math.min(z,S),d=2*S-x),N.rightContX=y,N.rightContY=x}return N=["C",V(L.rightContX,L.plotX,0),V(L.rightContY,L.plotY,0),V(D,v,0),V(d,S,0),v,S],L.rightContX=L.rightContY=void 0,N}}return tt.defaultOptions=Z($.defaultOptions),j.registerSeriesType("spline",tt),tt}),K(w,"Series/AreaSpline/AreaSplineSeries.js",[w["Series/Spline/SplineSeries.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Utilities.js"]],function(j,A,$){const{area:Z,area:{prototype:V}}=A.seriesTypes,{extend:tt,merge:Y}=$;class E extends j{constructor(){super(...arguments),this.options=this.points=this.data=void 0}}return E.defaultOptions=Y(j.defaultOptions,Z.defaultOptions),tt(E.prototype,{getGraphPath:V.getGraphPath,getStackPoints:V.getStackPoints,drawGraph:V.drawGraph}),A.registerSeriesType("areaspline",E),E}),K(w,"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"}}),K(w,"Series/Column/ColumnSeries.js",[w["Core/Animation/AnimationUtilities.js"],w["Core/Color/Color.js"],w["Series/Column/ColumnSeriesDefaults.js"],w["Core/Globals.js"],w["Core/Series/Series.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V,tt,Y){const{animObject:E}=j,{parse:N}=A,{hasTouch:z,noop:v}=Z,{clamp:S,defined:L,extend:D,fireEvent:d,isArray:x,isNumber:y,merge:u,pick:M,objectEach:b}=Y;class k extends V{constructor(){super(...arguments),this.points=this.options=this.group=this.data=this.borderWidth=void 0}animate(a){const p=this,h=this.yAxis,c=h.pos,e=p.options,t=this.chart.inverted,i={},l=t?"translateX":"translateY";let f;a?(i.scaleY=.001,a=S(h.toPixels(e.threshold),c,c+h.len),t?i.translateX=a-h.len:i.translateY=a,p.clipBox&&p.setClip(),p.group.attr(i)):(f=Number(p.group.attr(l)),p.group.animate({scaleY:1},D(E(p.options.animation),{step:function(O,r){p.group&&(i[l]=f+r.pos*(c-f),p.group.attr(i))}})))}init(a,p){super.init.apply(this,arguments);const h=this;a=h.chart,a.hasRendered&&a.series.forEach(function(c){c.type===h.type&&(c.isDirty=!0)})}getColumnMetrics(){const a=this;var p=a.options;const h=a.xAxis,c=a.yAxis;var e=h.options.reversedStacks;e=h.reversed&&!e||!h.reversed&&e;const t={};let i,l=0;p.grouping===!1?l=1:a.chart.series.forEach(function(P){const G=P.yAxis,Q=P.options;let nt;P.type!==a.type||!P.visible&&a.chart.options.chart.ignoreHiddenSeries||c.len!==G.len||c.pos!==G.pos||(Q.stacking&&Q.stacking!=="group"?(i=P.stackKey,typeof t[i]>"u"&&(t[i]=l++),nt=t[i]):Q.grouping!==!1&&(nt=l++),P.columnIndex=nt)});const f=Math.min(Math.abs(h.transA)*(h.ordinal&&h.ordinal.slope||p.pointRange||h.closestPointRange||h.tickInterval||1),h.len),O=f*p.groupPadding,r=(f-2*O)/(l||1);return p=Math.min(p.maxPointWidth||h.len,M(p.pointWidth,r*(1-2*p.pointPadding))),a.columnMetrics={width:p,offset:(r-p)/2+(O+((a.columnIndex||0)+(e?1:0))*r-f/2)*(e?-1:1),paddedWidth:r,columnCount:l},a.columnMetrics}crispCol(a,p,h,c){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),c=Math.round(p+c)+e,t=.5>=Math.abs(p)&&.5<c,p=Math.round(p)+e,c-=p,t&&c&&(--p,c+=1),{x:a,y:p,width:h,height:c}}adjustForMissingColumns(a,p,h,c){const e=this.options.stacking;if(!h.isNull&&1<c.columnCount){const t=this.yAxis.options.reversedStacks;let i=0,l=t?0:-c.columnCount;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,f=>{if(typeof h.x=="number"){const O=f[h.x.toString()];O&&(f=O.points[this.index],e?(f&&(i=l),O.hasValidPoints&&(t?l++:l--)):x(f)&&(f=Object.keys(O.points).filter(r=>!r.match(",")&&O.points[r]&&1<O.points[r].length).map(parseFloat).sort((r,P)=>P-r),i=f.indexOf(this.index),l=f.length))}}),a=(h.plotX||0)+((l-1)*c.paddedWidth+p)/2-p-i*c.paddedWidth}return a}translate(){const a=this,p=a.chart,h=a.options;var c=a.dense=2>a.closestPointRange*a.xAxis.transA;c=a.borderWidth=M(h.borderWidth,c?0:1);const e=a.xAxis,t=a.yAxis,i=h.threshold,l=M(h.minPointLength,5),f=a.getColumnMetrics(),O=f.width,r=a.pointXOffset=f.offset,P=a.dataMin,G=a.dataMax;let Q=a.barW=Math.max(O,1+2*c),nt=a.translatedThreshold=t.getThreshold(i);p.inverted&&(nt-=.5),h.pointPadding&&(Q=Math.ceil(Q)),V.prototype.translate.apply(a),a.points.forEach(function(B){const s=M(B.yBottom,nt);var T=999+Math.abs(s),R=B.plotX||0;T=S(B.plotY,-T,t.len+T);let I=Math.min(T,s),q=Math.max(T,s)-I,o=O,g=R+r,m=Q;l&&Math.abs(q)<l&&(q=l,R=!t.reversed&&!B.negative||t.reversed&&B.negative,y(i)&&y(G)&&B.y===i&&G<=i&&(t.min||0)<i&&(P!==G||(t.max||0)<=i)&&(R=!R,B.negative=!B.negative),I=Math.abs(I-nt)>l?s-l:nt-(R?l:0)),L(B.options.pointWidth)&&(o=m=Math.ceil(B.options.pointWidth),g-=Math.round((o-O)/2)),h.centerInCategory&&(g=a.adjustForMissingColumns(g,o,B,f)),B.barX=g,B.pointWidth=o,B.tooltipPos=p.inverted?[S(t.len+t.pos-p.plotLeft-T,t.pos-p.plotLeft,t.len+t.pos-p.plotLeft),e.len+e.pos-p.plotTop-g-m/2,q]:[e.left-p.plotLeft+g+m/2,S(T+t.pos-p.plotTop,t.pos-p.plotTop,t.len+t.pos-p.plotTop),q],B.shapeType=a.pointClass.prototype.shapeType||"roundedRect",B.shapeArgs=a.crispCol(g,B.isNull?nt:I,m,B.isNull?0:q)}),d(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(a,p){const h=this.options;var c=this.pointAttrToOptions||{},e=c.stroke||"borderColor";const t=c["stroke-width"]||"borderWidth";let i,l=a&&a.color||this.color,f=a&&a[e]||h[e]||l;c=a&&a.options.dashStyle||h.dashStyle;let O=a&&a[t]||h[t]||this[t]||0,r=M(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,c=i.dashStyle||c,O=i.borderWidth||O)),p&&a&&(a=u(h.states[p],a.options.states&&a.options.states[p]||{}),p=a.brightness,l=a.color||typeof p<"u"&&N(l).brighten(a.brightness).get()||l,f=a[e]||f,O=a[t]||O,c=a.dashStyle||c,r=M(a.opacity,r)),e={fill:l,stroke:f,"stroke-width":O,opacity:r},c&&(e.dashstyle=c),e}drawPoints(a=this.points){const p=this,h=this.chart,c=p.options,e=h.renderer,t=c.animationLimit||250;let i;a.forEach(function(l){let f=l.graphic,O=!!f,r=f&&h.pointCount<t?"animate":"attr";y(l.plotY)&&l.y!==null?(i=l.shapeArgs,f&&l.hasNewShapeType()&&(f=f.destroy()),p.enabledDataSorting&&(l.startXPos=p.xAxis.reversed?-(i&&i.width||0):p.xAxis.width),f||(l.graphic=f=e[l.shapeType](i).add(l.group||p.group))&&p.enabledDataSorting&&h.hasRendered&&h.pointCount<t&&(f.attr({x:l.startXPos}),O=!0,r="animate"),f&&O&&f[r](u(i)),h.styledMode||f[r](p.pointAttribs(l,l.selected&&"select")).shadow(l.allowShadow!==!1&&c.shadow),f&&(f.addClass(l.getClassName(),!0),f.attr({visibility:l.visible?"inherit":"hidden"}))):f&&(l.graphic=f.destroy())})}drawTracker(a=this.points){const p=this,h=p.chart,c=h.pointer,e=function(i){const l=c.getPointFromEvent(i);typeof l<"u"&&p.options.enableMouseTracking&&(c.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})}),p._hasTracking||(p.trackerGroups.forEach(function(i){p[i]&&(p[i].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(l){c.onTrackerMouseOut(l)}),z&&p[i].on("touchstart",e),!h.styledMode&&p.options.cursor&&p[i].css({cursor:p.options.cursor}))}),p._hasTracking=!0),d(this,"afterDrawTracker")}remove(){const a=this,p=a.chart;p.hasRendered&&p.series.forEach(function(h){h.type===a.type&&(h.isDirty=!0)}),V.prototype.remove.apply(a,arguments)}}return k.defaultOptions=u(V.defaultOptions,$),D(k.prototype,{cropShoulder:0,directTouch:!0,getSymbol:v,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),tt.registerSeriesType("column",k),k}),K(w,"Core/Series/DataLabel.js",[w["Core/Animation/AnimationUtilities.js"],w["Core/Templating.js"],w["Core/Utilities.js"]],function(j,A,$){const{getDeferredAnimation:Z}=j,{format:V}=A,{defined:tt,extend:Y,fireEvent:E,isArray:N,isString:z,merge:v,objectEach:S,pick:L,splat:D}=$;var d;return function(x){function y(c,e,t,i,l){const f=this.chart;var O=this.isCartesian&&f.inverted;const r=this.enabledDataSorting;var P=c.plotX,G=c.plotY;const Q=t.rotation;var nt=t.align;G=tt(P)&&tt(G)&&f.isInsidePlot(P,Math.round(G),{inverted:O,paneCoordinates:!0,series:this});let B=L(t.overflow,r?"none":"justify")==="justify";if(O=this.visible&&c.visible!==!1&&tt(P)&&(c.series.forceDL||r&&!B||G||L(t.inside,!!this.options.stacking)&&i&&f.isInsidePlot(P,O?i.x+1:i.y+i.height-1,{inverted:O,paneCoordinates:!0,series:this})),P=c.pos(),O&&P){Q&&e.attr({align:nt}),nt=e.getBBox(!0);var s=[0,0],T=f.renderer.fontMetrics(e).b;if(i=Y({x:P[0],y:Math.round(P[1]),width:0,height:0},i),Y(t,{width:nt.width,height:nt.height}),Q?(B=!1,s=f.renderer.rotCorr(T,Q),T={x:i.x+(t.x||0)+i.width/2+s.x,y:i.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*i.height},s=[nt.x-Number(e.attr("x")),nt.y-Number(e.attr("y"))],r&&this.xAxis&&!B&&this.setDataLabelStartPos(c,e,l,G,T),e[l?"attr":"animate"](T)):(r&&this.xAxis&&!B&&this.setDataLabelStartPos(c,e,l,G,i),e.align(t,void 0,i),T=e.alignAttr),B&&0<=i.height)this.justifyDataLabel(e,t,T,nt,i,l);else if(L(t.crop,!0)){let{x:R,y:I}=T;R+=s[0],I+=s[1],O=f.isInsidePlot(R,I,{paneCoordinates:!0,series:this})&&f.isInsidePlot(R+nt.width,I+nt.height,{paneCoordinates:!0,series:this})}t.shape&&!Q&&e[l?"attr":"animate"]({anchorX:P[0],anchorY:P[1]})}l&&r&&(e.placed=!1),O||r&&!B?e.show():(e.hide(),e.placed=!1)}function u(c,e){var t=e.filter;return t?(e=t.operator,c=c[t.property],t=t.value,e===">"&&c>t||e==="<"&&c<t||e===">="&&c>=t||e==="<="&&c<=t||e==="=="&&c==t||e==="==="&&c===t):!0}function M(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function b(c){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},c):t.attr({opacity:1})),t}function k(c=this.points){var e,t;const i=this,l=i.chart,f=i.options,O=l.renderer,{backgroundColor:r,plotBackgroundColor:P}=l.options.chart,G=l.options.plotOptions,Q=O.getContrast(z(P)&&P||z(r)&&r||"#000000");let nt=f.dataLabels,B,s;var T=D(nt)[0];const R=T.animation;T=T.defer?Z(l,R,i):{defer:0,duration:0},nt=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),nt),E(this,"drawDataLabels"),(N(nt)||nt.enabled||i._hasPointLabels)&&(s=this.initDataLabels(T),c.forEach(I=>{var q;const o=I.dataLabels||[];for(B=D(a(nt,I.dlOptions||((q=I.options)===null||q===void 0?void 0:q.dataLabels))),B.forEach((g,m)=>{var W,F=g.enabled&&(!I.isNull||I.dataLabelOnNull)&&u(I,g);const H=I.connectors?I.connectors[m]:I.connector,it=g.style||{};let st={},rt=o[m],ht=!rt;const ut=L(g.distance,I.labelDistance);if(F){var _=L(g[I.formatPrefix+"Format"],g.format),C=I.getLabelConfig();if(C=tt(_)?V(_,C,l):(g[I.formatPrefix+"Formatter"]||g.formatter).call(C,g),_=g.rotation,l.styledMode||(it.color=L(g.color,it.color,z(i.color)?i.color:void 0,"#000000"),it.color==="contrast"?(I.contrastColor=O.getContrast(I.color||i.color),it.color=!tt(ut)&&g.inside||0>(ut||0)||f.stacking?I.contrastColor:Q):delete I.contrastColor,f.cursor&&(it.cursor=f.cursor)),st={r:g.borderRadius||0,rotation:_,padding:g.padding,zIndex:1},!l.styledMode){const{backgroundColor:J,borderColor:X}=g;st.fill=J==="auto"?I.color:J,st.stroke=X==="auto"?I.color:X,st["stroke-width"]=g.borderWidth}S(st,(J,X)=>{typeof J>"u"&&delete st[X]})}!rt||F&&tt(C)&&!!rt.div==!!g.useHTML&&(rt.rotation&&g.rotation||rt.rotation===g.rotation)||(rt=void 0,ht=!0,H&&I.connector&&(I.connector=I.connector.destroy(),I.connectors&&(I.connectors.length===1?delete I.connectors:delete I.connectors[m]))),F&&tt(C)&&(rt?st.text=C:(rt=_?O.text(C,0,0,g.useHTML).addClass("highcharts-data-label"):O.label(C,0,0,g.shape,void 0,void 0,g.useHTML,void 0,"data-label"))&&rt.addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(g.className||"")+(g.useHTML?" highcharts-tracker":"")),rt&&(rt.options=g,rt.attr(st),l.styledMode||rt.css(it).shadow(g.shadow),(F=g[I.formatPrefix+"TextPath"]||g.textPath)&&!g.useHTML&&(rt.setTextPath(((W=I.getDataLabelPath)===null||W===void 0?void 0:W.call(I,rt))||I.graphic,F),I.dataLabelPath&&!F.enabled&&(I.dataLabelPath=I.dataLabelPath.destroy())),rt.added||rt.add(s),i.alignDataLabel(I,rt,g,void 0,ht),rt.isActive=!0,o[m]&&o[m]!==rt&&o[m].destroy(),o[m]=rt))}),q=o.length;q--;)o[q].isActive?o[q].isActive=!1:(o[q].destroy(),o.splice(q,1));I.dataLabel=o[0],I.dataLabels=o})),E(this,"afterDrawDataLabels")}function n(c,e,t,i,l,f){const O=this.chart,r=e.align,P=e.verticalAlign,G=c.box?0:c.padding||0;let{x:Q=0,y:nt=0}=e,B,s;return B=(t.x||0)+G,0>B&&(r==="right"&&0<=Q?(e.align="left",e.inside=!0):Q-=B,s=!0),B=(t.x||0)+i.width-G,B>O.plotWidth&&(r==="left"&&0>=Q?(e.align="right",e.inside=!0):Q+=O.plotWidth-B,s=!0),B=t.y+G,0>B&&(P==="bottom"&&0<=nt?(e.verticalAlign="top",e.inside=!0):nt-=B,s=!0),B=(t.y||0)+i.height-G,B>O.plotHeight&&(P==="top"&&0>=nt?(e.verticalAlign="bottom",e.inside=!0):nt+=O.plotHeight-B,s=!0),s&&(e.x=Q,e.y=nt,c.placed=!f,c.align(e,void 0,l)),s}function a(c,e){let t=[],i;if(N(c)&&!N(e))t=c.map(function(l){return v(l,e)});else if(N(e)&&!N(c))t=e.map(function(l){return v(c,l)});else if(!N(c)&&!N(e))t=v(c,e);else if(N(c)&&N(e))for(i=Math.max(c.length,e.length);i--;)t[i]=v(c[i],e[i]);return t}function p(c,e,t,i,l){const f=this.chart,O=f.inverted,r=this.xAxis,P=r.reversed,G=O?e.height/2:e.width/2;c=(c=c.pointWidth)?c/2:0,e.startXPos=O?l.x:P?-G-c:r.width-G+c,e.startYPos=O?P?this.yAxis.height-G+c:-G-c: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(c){$.pushUnique(h,c)&&(c=c.prototype,c.initDataLabelsGroup=M,c.initDataLabels=b,c.alignDataLabel=y,c.drawDataLabels=k,c.justifyDataLabel=n,c.setDataLabelStartPos=p)}}(d||(d={})),d}),K(w,"Series/Column/ColumnDataLabel.js",[w["Core/Series/DataLabel.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Utilities.js"]],function(j,A,$){const{series:Z}=A,{merge:V,pick:tt}=$;var Y;return function(E){function N(v,S,L,D,d){let x=this.chart.inverted;var y=v.series;let u=(y.xAxis?y.xAxis.len:this.chart.plotSizeX)||0;y=(y.yAxis?y.yAxis.len:this.chart.plotSizeY)||0;var M=v.dlBox||v.shapeArgs;let b=tt(v.below,v.plotY>tt(this.translatedThreshold,y)),k=tt(L.inside,!!this.options.stacking);M&&(D=V(M),0>D.y&&(D.height+=D.y,D.y=0),M=D.y+D.height-y,0<M&&M<D.height&&(D.height-=M),x&&(D={x:y-D.y-D.height,y:u-D.x-D.width,width:D.height,height:D.width}),k||(x?(D.x+=b?0:D.width,D.width=0):(D.y+=b?D.height:0,D.height=0))),L.align=tt(L.align,!x||k?"center":b?"right":"left"),L.verticalAlign=tt(L.verticalAlign,x||k?"middle":b?"top":"bottom"),Z.prototype.alignDataLabel.call(this,v,S,L,D,d),L.inside&&v.contrastColor&&S.css({color:v.contrastColor})}const z=[];E.compose=function(v){j.compose(Z),$.pushUnique(z,v)&&(v.prototype.alignDataLabel=N)}}(Y||(Y={})),Y}),K(w,"Series/Bar/BarSeries.js",[w["Series/Column/ColumnSeries.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Utilities.js"]],function(j,A,$){const{extend:Z,merge:V}=$;class tt extends j{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return tt.defaultOptions=V(j.defaultOptions,{}),Z(tt.prototype,{inverted:!0}),A.registerSeriesType("bar",tt),tt}),K(w,"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/>"}}}),K(w,"Series/Scatter/ScatterSeries.js",[w["Series/Scatter/ScatterSeriesDefaults.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Utilities.js"]],function(j,A,$){const{column:Z,line:V}=A.seriesTypes,{addEvent:tt,extend:Y,merge:E}=$;class N extends V{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const v=this,S=this.options.jitter,L=this.points.length;S&&this.points.forEach(function(D,d){["x","y"].forEach(function(x,y){let u="plot"+x.toUpperCase(),M,b;if(S[x]&&!D.isNull){var k=v[x+"Axis"];b=S[x]*k.transA,k&&!k.isLog&&(M=Math.max(0,D[u]-b),k=Math.min(k.len,D[u]+b),y=1e4*Math.sin(d+y*L),y-=Math.floor(y),D[u]=M+(k-M)*y,x==="x"&&(D.clientX=D.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return N.defaultOptions=E(V.defaultOptions,j),Y(N.prototype,{drawTracker:Z.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),tt(N,"afterTranslate",function(){this.applyJitter()}),A.registerSeriesType("scatter",N),N}),K(w,"Series/CenteredUtilities.js",[w["Core/Globals.js"],w["Core/Series/Series.js"],w["Core/Utilities.js"]],function(j,A,$){const{deg2rad:Z}=j,{fireEvent:V,isNumber:tt,pick:Y,relativeLength:E}=$;var N;return function(z){z.getCenter=function(){var v=this.options,S=this.chart;const L=2*(v.slicedOffset||0),D=S.plotWidth-2*L,d=S.plotHeight-2*L;var x=v.center;const y=Math.min(D,d),u=v.thickness;var M=v.size;let b=v.innerSize||0;for(typeof M=="string"&&(M=parseFloat(M)),typeof b=="string"&&(b=parseFloat(b)),v=[Y(x[0],"50%"),Y(x[1],"50%"),Y(M&&0>M?void 0:v.size,"100%"),Y(b&&0>b?void 0:v.innerSize||0,"0%")],!S.angular||this instanceof A||(v[3]=0),x=0;4>x;++x)M=v[x],S=2>x||x===2&&/%$/.test(M),v[x]=E(M,[D,d,y,v[2]][x])+(S?L:0);return v[3]>v[2]&&(v[3]=v[2]),tt(u)&&2*u<v[2]&&0<u&&(v[3]=v[2]-2*u),V(this,"afterGetCenter",{positions:v}),v},z.getStartAndEndRadians=function(v,S){return v=tt(v)?v:0,S=tt(S)&&S>v&&360>S-v?S:v+360,{start:Z*(v+-90),end:Z*(S+-90)}}}(N||(N={})),N}),K(w,"Series/Pie/PiePoint.js",[w["Core/Animation/AnimationUtilities.js"],w["Core/Series/Point.js"],w["Core/Utilities.js"]],function(j,A,$){const{setAnimation:Z}=j,{addEvent:V,defined:tt,extend:Y,isNumber:E,pick:N,relativeLength:z}=$;class v extends A{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const L=this.labelPosition,D=this.series.options.dataLabels,d=this.connectorShapes;let x=D.connectorShape;return d[x]&&(x=d[x]),x.call(this,{x:L.computed.x,y:L.computed.y,alignment:L.alignment},L.connectorPosition,D)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(L){const D=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(D.x,D.y,D.r+L,D.r+L,{innerR:D.r-1,start:D.start,end:D.end,borderRadius:D.borderRadius})}init(){super.init.apply(this,arguments),this.name=N(this.name,"Slice");const L=D=>{this.slice(D.type==="select")};return V(this,"select",L),V(this,"unselect",L),this}isValid(){return E(this.y)&&0<=this.y}setVisible(L,D){const d=this.series,x=d.chart,y=d.options.ignoreHiddenPoint;D=N(D,y),L!==this.visible&&(this.visible=this.options.visible=L=typeof L>"u"?!this.visible:L,d.options.data[d.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(u=>{this[u]&&this[u][L?"show":"hide"](L)}),this.legendItem&&x.legend.colorizeItem(this,L),L||this.state!=="hover"||this.setState(""),y&&(d.isDirty=!0),D&&x.redraw())}slice(L,D,d){const x=this.series;Z(d,x.chart),N(D,!0),this.sliced=this.options.sliced=tt(L)?L:!this.sliced,x.options.data[x.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return Y(v.prototype,{connectorShapes:{fixedOffset:function(S,L,D){const d=L.breakAt;return L=L.touchingSliceAt,[["M",S.x,S.y],D.softConnector?["C",S.x+(S.alignment==="left"?-5:5),S.y,2*d.x-L.x,2*d.y-L.y,d.x,d.y]:["L",d.x,d.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,D){const{breakAt:d,touchingSliceAt:x}=L;({series:L}=this);const[y,u,M]=L.center,b=M/2,k=L.chart.plotWidth,n=L.chart.plotLeft;L=S.alignment==="left";const{x:a,y:p}=S;return D.crookDistance?(S=z(D.crookDistance,1),S=L?y+b+(k+n-y-b)*(1-S):n+(y-b)*S):S=y+(u-p)*Math.tan((this.angle||0)-Math.PI/2),D=[["M",a,p]],(L?S<=a&&S>=d.x:S>=a&&S<=d.x)&&D.push(["L",S,p]),D.push(["L",d.x,d.y],["L",x.x,x.y]),D}}}),v}),K(w,"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}}}}),K(w,"Series/Pie/PieSeries.js",[w["Series/CenteredUtilities.js"],w["Series/Column/ColumnSeries.js"],w["Core/Globals.js"],w["Series/Pie/PiePoint.js"],w["Series/Pie/PieSeriesDefaults.js"],w["Core/Series/Series.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Renderer/SVG/Symbols.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V,tt,Y,E,N){const{getStartAndEndRadians:z}=j;({noop:$}=$);const{clamp:v,extend:S,fireEvent:L,merge:D,pick:d,relativeLength:x}=N;class y extends tt{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(M){const b=this,k=b.points,n=b.startAngleRad;M||k.forEach(function(a){const p=a.graphic,h=a.shapeArgs;p&&h&&(p.attr({r:d(a.startR,b.center&&b.center[3]/2),start:n,end:n}),p.animate({r:h.r,start:h.start,end:h.end},b.options.animation))})}drawEmpty(){const M=this.startAngleRad,b=this.endAngleRad,k=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,M,b).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:E.arc(n,a,this.center[2]/2,0,{start:M,end:b,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":k.borderWidth,fill:k.fillColor||"none",stroke:k.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const M=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy()),b.graphic||(b.graphic=M[b.shapeType](b.shapeArgs).add(b.series.group),b.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(M,b,k){const n=this.center,a=this.radii?this.radii[k.index]||0:n[2]/2;return M=Math.asin(v((M-n[1])/(a+k.labelDistance),-1,1)),n[0]+(b?-1:1)*Math.cos(M)*(a+k.labelDistance)+(0<k.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const M=this,b=M.chart;let k,n,a,p;this.drawEmpty(),M.group&&!b.styledMode&&M.group.shadow(M.options.shadow),M.points.forEach(function(h){const c={};n=h.graphic,!h.isNull&&n?(p=h.shapeArgs,k=h.getTranslate(),b.styledMode||(a=M.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(n.setRadialReference(M.center).attr(p).attr(k),b.styledMode||n.attr(a).attr({"stroke-linejoin":"round"}),h.delayedRendering=!1):(n.setRadialReference(M.center),b.styledMode||D(!0,c,a),D(!0,c,p,k),n.animate(c)),n.attr({visibility:h.visible?"inherit":"hidden"}),n.addClass(h.getClassName(),!0)):n&&(h.graphic=n.destroy())})}sortByAngle(M,b){M.sort(function(k,n){return typeof k.angle<"u"&&(n.angle-k.angle)*b})}translate(M){L(this,"translate"),this.generatePoints();var b=this.options;const k=b.slicedOffset,n=k+(b.borderWidth||0);var a=z(b.startAngle,b.endAngle);const p=this.startAngleRad=a.start;a=(this.endAngleRad=a.end)-p;const h=this.points,c=b.dataLabels.distance;b=b.ignoreHiddenPoint;const e=h.length;let t,i,l,f=0;for(M||(this.center=M=this.getCenter()),i=0;i<e;i++){l=h[i];var O=p+f*a;!l.isValid()||b&&!l.visible||(f+=l.percentage/100);var r=p+f*a,P={x:M[0],y:M[1],r:M[2]/2,innerR:M[3]/2,start:Math.round(1e3*O)/1e3,end:Math.round(1e3*r)/1e3};l.shapeType="arc",l.shapeArgs=P,l.labelDistance=d(l.options.dataLabels&&l.options.dataLabels.distance,c),l.labelDistance=x(l.labelDistance,P.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,l.labelDistance),r=(r+O)/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)*k),translateY:Math.round(Math.sin(r)*k)},P=Math.cos(r)*M[2]/2,t=Math.sin(r)*M[2]/2,l.tooltipPos=[M[0]+.7*P,M[1]+.7*t],l.half=r<-Math.PI/2||r>Math.PI/2?1:0,l.angle=r,O=Math.min(n,l.labelDistance/5),l.labelPosition={natural:{x:M[0]+P+Math.cos(r)*l.labelDistance,y:M[1]+t+Math.sin(r)*l.labelDistance},computed:{},alignment:0>l.labelDistance?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:M[0]+P+Math.cos(r)*O,y:M[1]+t+Math.sin(r)*O},touchingSliceAt:{x:M[0]+P,y:M[1]+t}}}}L(this,"afterTranslate")}updateTotals(){const M=this.points,b=M.length,k=this.options.ignoreHiddenPoint;let n,a,p=0;for(n=0;n<b;n++)a=M[n],!a.isValid()||k&&!a.visible||(p+=a.y);for(this.total=p,n=0;n<b;n++)a=M[n],a.percentage=0<p&&(a.visible||!k)?a.y/p*100:0,a.total=p}}return y.defaultOptions=D(tt.defaultOptions,V),S(y.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:A.prototype.drawTracker,getCenter:j.getCenter,getSymbol:$,isCartesian:!1,noSharedTooltip:!0,pointAttribs:A.prototype.pointAttribs,pointClass:Z,requireSorting:!1,searchPoint:$,trackerGroups:["group","dataLabelsGroup"]}),Y.registerSeriesType("pie",y),y}),K(w,"Series/Pie/PieDataLabel.js",[w["Core/Series/DataLabel.js"],w["Core/Globals.js"],w["Core/Renderer/RendererUtilities.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V){const{noop:tt}=A,{distribute:Y}=$,{series:E}=Z,{arrayMax:N,clamp:z,defined:v,merge:S,pick:L,relativeLength:D}=V;var d;return function(x){function y(){const n=this,a=n.data,p=n.chart,h=n.options.dataLabels||{},c=h.connectorPadding,e=p.plotWidth,t=p.plotHeight,i=p.plotLeft,l=Math.round(p.chartWidth/3),f=n.center,O=f[2]/2,r=f[1],P=[[],[]],G=[0,0,0,0],Q=n.dataLabelPositioners;let nt,B,s,T,R,I,q,o,g,m,W,F;n.visible&&(h.enabled||n._hasPointLabels)&&(a.forEach(function(H){H.dataLabel&&H.visible&&H.dataLabel.shortened&&(H.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),H.dataLabel.shortened=!1)}),E.prototype.drawDataLabels.apply(n),a.forEach(function(H){H.dataLabel&&(H.visible?(P[H.half].push(H),H.dataLabel._pos=null,!v(h.style.width)&&!v(H.options.dataLabels&&H.options.dataLabels.style&&H.options.dataLabels.style.width)&&H.dataLabel.getBBox().width>l&&(H.dataLabel.css({width:Math.round(.7*l)+"px"}),H.dataLabel.shortened=!0)):(H.dataLabel=H.dataLabel.destroy(),H.dataLabels&&H.dataLabels.length===1&&delete H.dataLabels))}),P.forEach((H,it)=>{const st=H.length,rt=[];let ht,ut=0;if(st){if(n.sortByAngle(H,it-.5),0<n.maxLabelDistance){var _=Math.max(0,r-O-n.maxLabelDistance);ht=Math.min(r+O+n.maxLabelDistance,p.plotHeight),H.forEach(function(C){0<C.labelDistance&&C.dataLabel&&(C.top=Math.max(0,r-O-C.labelDistance),C.bottom=Math.min(r+O+C.labelDistance,p.plotHeight),ut=C.dataLabel.getBBox().height||21,C.distributeBox={target:C.labelPosition.natural.y-C.top+ut/2,size:ut,rank:C.y},rt.push(C.distributeBox))}),_=ht+ut-_,Y(rt,_,_/5)}for(W=0;W<st;W++){if(nt=H[W],I=nt.labelPosition,T=nt.dataLabel,m=nt.visible===!1?"hidden":"inherit",g=_=I.natural.y,rt&&v(nt.distributeBox)&&(typeof nt.distributeBox.pos>"u"?m="hidden":(q=nt.distributeBox.size,g=Q.radialDistributionY(nt))),delete nt.positionIndex,h.justify)o=Q.justify(nt,O,f);else switch(h.alignTo){case"connectors":o=Q.alignToConnectors(H,it,e,i);break;case"plotEdges":o=Q.alignToPlotEdges(T,it,e,i);break;default:o=Q.radialDistributionX(n,nt,g,_)}T._attr={visibility:m,align:I.alignment},F=nt.options.dataLabels||{},T._pos={x:o+L(F.x,h.x)+({left:c,right:-c}[I.alignment]||0),y:g+L(F.y,h.y)-T.getBBox().height/2},I&&(I.computed.x=o,I.computed.y=g),L(h.crop,!0)&&(R=T.getBBox().width,_=null,o-R<c&&it===1?(_=Math.round(R-o+c),G[3]=Math.max(_,G[3])):o+R>e-c&&it===0&&(_=Math.round(o+R-e+c),G[1]=Math.max(_,G[1])),0>g-q/2?G[0]=Math.max(Math.round(-g+q/2),G[0]):g+q/2>t&&(G[2]=Math.max(Math.round(g+q/2-t),G[2])),T.sideOverflow=_)}}}),N(G)===0||this.verifyDataLabelOverflow(G))&&(this.placeDataLabels(),this.points.forEach(function(H){if(F=S(h,H.options.dataLabels),B=L(F.connectorWidth,1)){let it;s=H.connector,(T=H.dataLabel)&&T._pos&&H.visible&&0<H.labelDistance?(m=T._attr.visibility,(it=!s)&&(H.connector=s=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+H.colorIndex+(H.className?" "+H.className:"")).add(n.dataLabelsGroup),p.styledMode||s.attr({"stroke-width":B,stroke:F.connectorColor||H.color||"#666666"})),s[it?"attr":"animate"]({d:H.getConnectorPath()}),s.attr("visibility",m)):s&&(H.connector=s.destroy())}}))}function u(){this.points.forEach(function(n){let a=n.dataLabel,p;a&&n.visible&&((p=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"](p),a.moved=!0):a&&a.attr({y:-9999})),delete n.distributeBox},this)}function M(n){let a=this.center,p=this.options,h=p.center,c=p.minSize||80,e,t=p.size!==null;return t||(h[0]!==null?e=Math.max(a[2]-Math.max(n[1],n[3]),c):(e=Math.max(a[2]-n[1]-n[3],c),a[0]+=(n[3]-n[1])/2),h[1]!==null?e=z(e,c,a[2]-Math.max(n[0],n[2])):(e=z(e,c,a[2]-n[0]-n[2]),a[1]+=(n[0]-n[2])/2),e<a[2]?(a[2]=e,a[3]=Math.min(p.thickness?Math.max(0,e-2*p.thickness):Math.max(0,D(p.innerSize||0,e)),e),this.translate(a),this.drawDataLabels&&this.drawDataLabels()):t=!0),t}const b=[],k={radialDistributionY:function(n){return n.top+n.distributeBox.pos},radialDistributionX:function(n,a,p,h){return n.getX(p<a.top+2||p>a.bottom-2?h:p,a.half,a)},justify:function(n,a,p){return p[0]+(n.half?-1:1)*(a+n.labelDistance)},alignToPlotEdges:function(n,a,p,h){return n=n.getBBox().width,a?n+h:p-n-h},alignToConnectors:function(n,a,p,h){let c=0,e;return n.forEach(function(t){e=t.dataLabel.getBBox().width,e>c&&(c=e)}),a?c+h:p-c-h}};x.compose=function(n){j.compose(E),V.pushUnique(b,n)&&(n=n.prototype,n.dataLabelPositioners=k,n.alignDataLabel=tt,n.drawDataLabels=y,n.placeDataLabels=u,n.verifyDataLabelOverflow=M)}}(d||(d={})),d}),K(w,"Extensions/OverlappingDataLabels.js",[w["Core/Chart/Chart.js"],w["Core/Utilities.js"]],function(j,A){function $(z,v){let S,L=!1;return z&&(S=z.newOpacity,z.oldOpacity!==S&&(z.alignAttr&&z.placed?(z[S?"removeClass":"addClass"]("highcharts-data-label-hidden"),L=!0,z.alignAttr.opacity=S,z[z.isOld?"animate":"attr"](z.alignAttr,null,function(){v.styledMode||z.css({pointerEvents:S?"auto":"none"})}),V(v,"afterHideOverlappingLabel")):z.attr({opacity:S})),z.isOld=!0),L}const{addEvent:Z,fireEvent:V,isArray:tt,isNumber:Y,objectEach:E,pick:N}=A;Z(j,"render",function(){let z=this,v=[];(this.labelCollectors||[]).forEach(function(S){v=v.concat(S())}),(this.yAxis||[]).forEach(function(S){S.stacking&&S.options.stackLabels&&!S.options.stackLabels.allowOverlap&&E(S.stacking.stacks,function(L){E(L,function(D){D.label&&v.push(D.label)})})}),(this.series||[]).forEach(function(S){var L=S.options.dataLabels;S.visible&&(L.enabled!==!1||S._hasPointLabels)&&(L=D=>D.forEach(d=>{d.visible&&(tt(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[]).forEach(function(x){const y=x.options;x.labelrank=N(y.labelrank,d.labelrank,d.shapeArgs&&d.shapeArgs.height),y.allowOverlap?(x.oldOpacity=x.opacity,x.newOpacity=1,$(x,z)):v.push(x)})}),L(S.nodes||[]),L(S.points))}),this.hideOverlappingLabels(v)}),j.prototype.hideOverlappingLabels=function(z){let v=this,S=z.length,L=v.renderer;var D;let d,x,y,u,M=!1;var b=function(k){let n,a;var p;let h=k.box?0:k.padding||0,c=p=0,e,t;if(k&&(!k.alignAttr||k.placed))return n=k.alignAttr||{x:k.attr("x"),y:k.attr("y")},a=k.parentGroup,k.width||(p=k.getBBox(),k.width=p.width,k.height=p.height,p=L.fontMetrics(k.element).h),e=k.width-2*h,(t={left:"0",center:"0.5",right:"1"}[k.alignValue])?c=+t*e:Y(k.x)&&Math.round(k.x)!==k.translateX&&(c=k.x-k.translateX),{x:n.x+(a.translateX||0)+h-(c||0),y:n.y+(a.translateY||0)+h-p,width:k.width-2*h,height:k.height-2*h}};for(d=0;d<S;d++)(D=z[d])&&(D.oldOpacity=D.opacity,D.newOpacity=1,D.absoluteBox=b(D));for(z.sort(function(k,n){return(n.labelrank||0)-(k.labelrank||0)}),d=0;d<S;d++)for(y=(b=z[d])&&b.absoluteBox,D=d+1;D<S;++D)u=(x=z[D])&&x.absoluteBox,!y||!u||b===x||b.newOpacity===0||x.newOpacity===0||b.visibility==="hidden"||x.visibility==="hidden"||u.x>=y.x+y.width||u.x+u.width<=y.x||u.y>=y.y+y.height||u.y+u.height<=y.y||((b.labelrank<x.labelrank?b:x).newOpacity=0);z.forEach(function(k){$(k,v)&&(M=!0)}),M&&V(v,"afterHideAllOverlappingLabels")}}),K(w,"Extensions/BorderRadius.js",[w["Core/Defaults.js"],w["Core/Series/Series.js"],w["Core/Series/SeriesRegistry.js"],w["Core/Renderer/SVG/SVGElement.js"],w["Core/Renderer/SVG/SVGRenderer.js"],w["Core/Utilities.js"]],function(j,A,$,Z,V,tt){const{defaultOptions:Y}=j;({seriesTypes:j}=$);const{addEvent:E,extend:N,isObject:z,merge:v,relativeLength:S}=tt,L={radius:0,scope:"stack",where:void 0},D=(d,x)=>(z(d)||(d={radius:d||0}),v(L,x,d));if(Z.symbolCustomAttribs.indexOf("borderRadius")===-1){Z.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const d=V.prototype.symbols.arc;V.prototype.symbols.arc=function(y,u,M,b,k={}){y=d(y,u,M,b,k);const{innerR:n=0,r:a=M,start:p=0,end:h=0}=k;if(k.open||!k.borderRadius)return y;for(M=h-p,u=Math.sin(M/2),k=Math.max(Math.min(S(k.borderRadius||0,a-n),(a-n)/2,a*u/(1+u)),0),M=Math.min(k,M/Math.PI*2*n),u=y.length-1;u--;){let O,r,P;b=y;var c=u,e=1<u?M:k,t=b[c],i=b[c+1];if(i[0]==="Z"&&(i=b[0]),t[0]!=="M"&&t[0]!=="L"||i[0]!=="A"?t[0]!=="A"||i[0]!=="M"&&i[0]!=="L"||(P=i,r=t):(P=t,r=i,O=!0),P&&r&&r.params){t=r[1];var l=r[5];i=r.params;const{start:G,end:Q,cx:nt,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),O?(i.start=G+l,P[1]=nt+f*Math.cos(G),P[2]=B+f*Math.sin(G),b.splice(c+1,0,["A",e,e,0,0,1,nt+t*Math.cos(i.start),B+t*Math.sin(i.start)])):(i.end=Q-l,r[6]=nt+t*Math.cos(i.end),r[7]=B+t*Math.sin(i.end),b.splice(c+1,0,["A",e,e,0,0,1,nt+f*Math.cos(Q),B+f*Math.sin(Q)])),r[4]=Math.abs(i.end-i.start)<Math.PI?0:1}}return y};const x=V.prototype.symbols.roundedRect;V.prototype.symbols.roundedRect=function(y,u,M,b,k={}){const n=x(y,u,M,b,k),{r:a=0,brBoxHeight:p=b,brBoxY:h=u}=k;var c=u-h,e=h+p-(u+b);k=-.1<c-a?0:a;const t=-.1<e-a?0:a;var i=Math.max(k&&c,0);const l=Math.max(t&&e,0);e=[y+k,u],c=[y+M-k,u];const f=[y+M,u+k],O=[y+M,u+b-t],r=[y+M-t,u+b],P=[y+t,u+b],G=[y,u+b-t],Q=[y,u+k];if(i){const nt=Math.sqrt(Math.pow(k,2)-Math.pow(k-i,2));e[0]-=nt,c[0]+=nt,f[1]=Q[1]=u+k-i}return b<k-i&&(i=Math.sqrt(Math.pow(k,2)-Math.pow(k-i-b,2)),f[0]=O[0]=y+M-k+i,r[0]=Math.min(f[0],r[0]),P[0]=Math.max(O[0],P[0]),G[0]=Q[0]=y+k-i,f[1]=Q[1]=u+b),l&&(i=Math.sqrt(Math.pow(t,2)-Math.pow(t-l,2)),r[0]+=i,P[0]-=i,O[1]=G[1]=u+b-t+l),b<t-l&&(b=Math.sqrt(Math.pow(t,2)-Math.pow(t-l-b,2)),f[0]=O[0]=y+M-t+b,c[0]=Math.min(f[0],c[0]),e[0]=Math.max(O[0],e[0]),G[0]=Q[0]=y+t-b,O[1]=G[1]=u),n.length=0,n.push(["M",...e],["L",...c],["A",k,k,0,0,1,...f],["L",...O],["A",t,t,0,0,1,...r],["L",...P],["A",t,t,0,0,1,...G],["L",...Q],["A",k,k,0,0,1,...e],["Z"]),n},E(j.pie,"afterTranslate",function(){const y=D(this.options.borderRadius);for(const u of this.points){const M=u.shapeArgs;M&&(M.borderRadius=S(y.radius,(M.r||0)-(M.innerR||0)))}}),E(A,"afterColumnTranslate",function(){var y,u;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){const{options:n,yAxis:a}=this,p=n.stacking==="percent";var M=(u=(y=Y.plotOptions)===null||y===void 0?void 0:y[this.type])===null||u===void 0?void 0:u.borderRadius;y=D(n.borderRadius,z(M)?M:{}),u=a.options.reversed;for(const h of this.points)if({shapeArgs:M}=h,h.shapeType==="roundedRect"&&M){const{width:c=0,height:e=0,y:t=0}=M;var b=t,k=e;y.scope==="stack"&&h.stackTotal&&(b=a.translate(p?100:h.stackTotal,!1,!0,!1,!0),k=a.translate(n.threshold||0,!1,!0,!1,!0),k=this.crispCol(0,Math.min(b,k),0,Math.abs(b-k)),b=k.y,k=k.height);const i=(h.negative?-1:1)*(u?-1:1)===-1;let l=y.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(y.radius,c),c/2,l==="all"?e/2:1/0)||0;l==="end"&&(i&&(b-=f),k+=f),N(M,{brBoxHeight:k,brBoxY:b,r:f})}}},{order:9})}return A={optionsToObject:D},A}),K(w,"Core/Responsive.js",[w["Core/Utilities.js"]],function(j){const{diffObjects:A,extend:$,find:Z,merge:V,pick:tt,uniqueKey:Y}=j;var E;return function(N){function z(L,D){const d=L.condition;(d.callback||function(){return this.chartWidth<=tt(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=tt(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=tt(d.minWidth,0)&&this.chartHeight>=tt(d.minHeight,0)}).call(this)&&D.push(L._id)}function v(L,D){const d=this.options.responsive;var x=this.currentResponsive;let y=[];!D&&d&&d.rules&&d.rules.forEach(u=>{typeof u._id>"u"&&(u._id=Y()),this.matchResponsiveRule(u,y)},this),D=V(...y.map(u=>Z((d||{}).rules||[],M=>M._id===u)).map(u=>u&&u.chartOptions)),D.isResponsiveOptions=!0,y=y.toString()||void 0,y!==(x&&x.ruleIds)&&(x&&this.update(x.undoOptions,L,!0),y?(x=A(D,this.options,!0,this.collectionsWithUpdate),x.isResponsiveOptions=!0,this.currentResponsive={ruleIds:y,mergedOptions:D,undoOptions:x},this.update(D,L,!0)):this.currentResponsive=void 0)}const S=[];N.compose=function(L){return j.pushUnique(S,L)&&$(L.prototype,{matchResponsiveRule:z,setResponsive:v}),L}}(E||(E={})),E}),K(w,"masters/highcharts.src.js",[w["Core/Globals.js"],w["Core/Utilities.js"],w["Core/Defaults.js"],w["Core/Animation/Fx.js"],w["Core/Animation/AnimationUtilities.js"],w["Core/Renderer/HTML/AST.js"],w["Core/Templating.js"],w["Core/Renderer/RendererUtilities.js"],w["Core/Renderer/SVG/SVGElement.js"],w["Core/Renderer/SVG/SVGRenderer.js"],w["Core/Renderer/HTML/HTMLElement.js"],w["Core/Renderer/HTML/HTMLRenderer.js"],w["Core/Axis/Axis.js"],w["Core/Axis/DateTimeAxis.js"],w["Core/Axis/LogarithmicAxis.js"],w["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],w["Core/Axis/Tick.js"],w["Core/Tooltip.js"],w["Core/Series/Point.js"],w["Core/Pointer.js"],w["Core/Legend/Legend.js"],w["Core/Chart/Chart.js"],w["Core/Axis/Stacking/StackingAxis.js"],w["Core/Axis/Stacking/StackItem.js"],w["Core/Series/Series.js"],w["Core/Series/SeriesRegistry.js"],w["Series/Column/ColumnSeries.js"],w["Series/Column/ColumnDataLabel.js"],w["Series/Pie/PieSeries.js"],w["Series/Pie/PieDataLabel.js"],w["Core/Series/DataLabel.js"],w["Core/Responsive.js"],w["Core/Color/Color.js"],w["Core/Time.js"]],function(j,A,$,Z,V,tt,Y,E,N,z,v,S,L,D,d,x,y,u,M,b,k,n,a,p,h,c,e,t,i,l,f,O,r,P){return j.animate=V.animate,j.animObject=V.animObject,j.getDeferredAnimation=V.getDeferredAnimation,j.setAnimation=V.setAnimation,j.stop=V.stop,j.timers=Z.timers,j.AST=tt,j.Axis=L,j.Chart=n,j.chart=n.chart,j.Fx=Z,j.Legend=k,j.PlotLineOrBand=x,j.Point=M,j.Pointer=b,j.Series=h,j.StackItem=p,j.SVGElement=N,j.SVGRenderer=z,j.Templating=Y,j.Tick=y,j.Time=P,j.Tooltip=u,j.Color=r,j.color=r.parse,S.compose(z),v.compose(N),b.compose(n),k.compose(n),j.defaultOptions=$.defaultOptions,j.getOptions=$.getOptions,j.time=$.defaultTime,j.setOptions=$.setOptions,j.dateFormat=Y.dateFormat,j.format=Y.format,j.numberFormat=Y.numberFormat,j.addEvent=A.addEvent,j.arrayMax=A.arrayMax,j.arrayMin=A.arrayMin,j.attr=A.attr,j.clearTimeout=A.clearTimeout,j.correctFloat=A.correctFloat,j.createElement=A.createElement,j.css=A.css,j.defined=A.defined,j.destroyObjectProperties=A.destroyObjectProperties,j.discardElement=A.discardElement,j.distribute=E.distribute,j.erase=A.erase,j.error=A.error,j.extend=A.extend,j.extendClass=A.extendClass,j.find=A.find,j.fireEvent=A.fireEvent,j.getMagnitude=A.getMagnitude,j.getStyle=A.getStyle,j.inArray=A.inArray,j.isArray=A.isArray,j.isClass=A.isClass,j.isDOMElement=A.isDOMElement,j.isFunction=A.isFunction,j.isNumber=A.isNumber,j.isObject=A.isObject,j.isString=A.isString,j.keys=A.keys,j.merge=A.merge,j.normalizeTickInterval=A.normalizeTickInterval,j.objectEach=A.objectEach,j.offset=A.offset,j.pad=A.pad,j.pick=A.pick,j.pInt=A.pInt,j.relativeLength=A.relativeLength,j.removeEvent=A.removeEvent,j.seriesType=c.seriesType,j.splat=A.splat,j.stableSort=A.stableSort,j.syncTimeout=A.syncTimeout,j.timeUnits=A.timeUnits,j.uniqueKey=A.uniqueKey,j.useSerialIds=A.useSerialIds,j.wrap=A.wrap,t.compose(e),f.compose(h),D.compose(L),d.compose(L),l.compose(i),x.compose(L),O.compose(n),a.compose(L,n,h),u.compose(b),j}),w["masters/highcharts.src.js"]._modules=w,w["masters/highcharts.src.js"]})}(ne)),ne.exports}(function(ot,U){(function(K,w){ot.exports=w(Cs(),ai)})(window,function(K,w){return A=[function(Z,V){Z.exports=K},function(Z,V){Z.exports=w},function(Z,Y,tt){tt.r(Y),tt.d(Y,"Chart",function(){return u}),tt.d(Y,"default",function(){return M});var Y=tt(0),E=tt.n(Y);function N(b,k){return function n(a,p,h){function c(e,t){!E.a.isObject(e,!h)||E.a.isClass(e)||E.a.isDOMElement(e)?a[t]=p[t]:a[t]=n(a[t]||E.a.isArray(e)?[]:{},e,h)}return E.a.isArray(p)?p.forEach(c):E.a.objectEach(p,c),a}({},b,k)}var z=tt(1);function v(b){return(v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(b)}function S(b){return function(k){if(Array.isArray(k))return L(k)}(b)||function(k){if(typeof Symbol<"u"&&k[Symbol.iterator]!=null||k["@@iterator"]!=null)return Array.from(k)}(b)||function(k,n){var a;if(k)return typeof k=="string"?L(k,n):(a=(a=Object.prototype.toString.call(k).slice(8,-1))==="Object"&&k.constructor?k.constructor.name:a)==="Map"||a==="Set"?Array.from(k):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?L(k,n):void 0}(b)||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(b,k){(k==null||k>b.length)&&(k=b.length);for(var n=0,a=new Array(k);n<k;n++)a[n]=b[n];return a}function D(b,k){var n,a=Object.keys(b);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(b),k&&(n=n.filter(function(p){return Object.getOwnPropertyDescriptor(b,p).enumerable})),a.push.apply(a,n)),a}function d(b){for(var k=1;k<arguments.length;k++){var n=arguments[k]!=null?arguments[k]:{};k%2?D(Object(n),!0).forEach(function(a){var p,h;p=b,h=n[a=a],(a=function(c){return c=function(e,t){if(v(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"),v(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(c,"string"),v(c)==="symbol"?c:String(c)}(a))in p?Object.defineProperty(p,a,{value:h,enumerable:!0,configurable:!0,writable:!0}):p[a]=h}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(a){Object.defineProperty(b,a,Object.getOwnPropertyDescriptor(n,a))})}return b}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}}},y=function(b,k){return k.split(".")[0]<3?d(d({},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,[N(n,this.deepCopyOnUpdate)].concat(S(this.updateArgs)))},deep:!0}},mounted:function(){var n=this.highcharts||b;this.options&&n[this.constructorType]?this.chart=n[this.constructorType](this.$refs.chart,N(this.options,!0),this.callback||null):this.options?console.warn("'".concat(this.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')}}):d(d({},x),{},{render:function(){return Object(z.h)("div",{ref:"chartContainer"})},setup:function(n){var a=Object(z.ref)(null),p=Object(z.shallowRef)({});return Object(z.onMounted)(function(){var h=n.highcharts||b;n.options&&h[n.constructorType]?p.value=h[n.constructorType](a.value,N(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(z.watch)(function(){return n.options},function(h,c){var e;(e=p.value).update.apply(e,[N(h,n.deepCopyOnUpdate)].concat(S(n.updateArgs)))},{deep:!0}),Object(z.onBeforeUnmount)(function(){p.value&&p.value.destroy()}),{chart:p,chartContainer:a,props:n}}})},u=y(E.a,z.version||tt.n(z).a.version);function M(b){var k=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};b.component(k.tagName||"highcharts",y(k.highcharts||E.a,b.version))}}],$={},j.m=A,j.c=$,j.d=function(Z,V,tt){j.o(Z,V)||Object.defineProperty(Z,V,{enumerable:!0,get:tt})},j.r=function(Z){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Z,"__esModule",{value:!0})},j.t=function(Z,V){if(1&V&&(Z=j(Z)),8&V||4&V&&typeof Z=="object"&&Z&&Z.__esModule)return Z;var tt=Object.create(null);if(j.r(tt),Object.defineProperty(tt,"default",{enumerable:!0,value:Z}),2&V&&typeof Z!="string")for(var Y in Z)j.d(tt,Y,(function(E){return Z[E]}).bind(null,Y));return tt},j.n=function(Z){var V=Z&&Z.__esModule?function(){return Z.default}:function(){return Z};return j.d(V,"a",V),V},j.o=function(Z,V){return Object.prototype.hasOwnProperty.call(Z,V)},j.p="",j(j.s=2);function j(Z){var V;return($[Z]||(V=$[Z]={i:Z,l:!1,exports:{}},A[Z].call(V.exports,V,V.exports,j),V.l=!0,V)).exports}var A,$})})(je);var oe=je.exports;const Ms={class:"w-88vw flex flex-col md:w-92vw"},Ts={class:"mx-auto max-w-screen-xl px-4 py-4 lg:px-6 lg:py-6"},As={class:"lg:grid lg:grid-cols-3 sm:gap-6 xl:gap-10 space-y-8 lg:space-y-0"},Ps={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"},Os={class:"mb-4 text-2xl font-semibold"},Ls={class:"my-8 flex items-baseline justify-center"},Es={class:"mr-2 text-5xl font-extrabold"},_s={class:"mt-8 flex flex-col gap-8"},Is=Dt({__name:"Statistics",props:{rank:null},setup(ot){const U=ot,{t:K}=Xt(),w=wt(()=>U.rank);function j(){const A=[];return A.push({title:"standings.statistics.head_data.problems",data:w.value.contest.problems.length}),A.push({title:"standings.statistics.head_data.teams",data:w.value.teams.length}),A.push({title:"standings.statistics.head_data.submissions",data:w.value.getSubmissions().length}),A}return(A,$)=>(pt(),ft("div",Ms,[lt("section",null,[lt("div",Ts,[lt("div",As,[(pt(!0),ft(_t,null,It(j(),Z=>(pt(),ft("div",{key:Z.title},[lt("div",Ps,[lt("h3",Os,vt(at(K)(Z.title)),1),lt("div",Ls,[lt("span",Es,vt(Z.data),1)])])]))),128))])])]),lt("div",_s,[lt("div",null,[Pt(at(oe.Chart),{options:("getSubmitChart"in A?A.getSubmitChart:at(ws))(at(w))},null,8,["options"])]),lt("div",null,[Pt(at(oe.Chart),{options:("getProblemChart"in A?A.getProblemChart:at(ks))(at(w))},null,8,["options"])]),lt("div",null,[Pt(at(oe.Chart),{options:("getTeamChart"in A?A.getTeamChart:at(bs))(at(w))},null,8,["options"])])])]))}}),Ds={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"},js={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},Rs={class:"font-semibold text-gray-900 dark:text-white"},Bs={class:"font-semibold text-gray-900 dark:text-white"},zs={class:"inline-flex items-stretch font-mono -space-x-px"},Ns=lt("span",{class:"sr-only"},"Previous",-1),Hs=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),Ws=[Ns,Hs],$s={key:0},Fs=["onClick"],Gs={"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"},Xs=["onClick"],Us={key:1},Ys=lt("span",{class:"sr-only"},"Next",-1),Vs=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),qs=[Ys,Vs],ie="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",Ks=Dt({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(ot,{emit:U}){const K=ot,w=wt({get(){return K.pagination},set(j){U("update:pagination",j)}});return(j,A)=>(pt(),ft("nav",Ds,[lt("span",js,[zt(" Showing "),lt("span",Rs,vt(at(w).currentLeft)+"-"+vt(Math.max(0,at(w).currentRight-1)),1),zt(" of "),lt("span",Bs,vt(at(w).totalSize),1)]),lt("ul",zs,[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:A[0]||(A[0]=$=>at(w).onPageChange({diff:-1}))},Ws)]),at(w).currentPage!==0?(pt(),ft("li",$s,[lt("a",{class:At(ie),hover:"cursor-pointer",onClick:A[1]||(A[1]=$=>at(w).onPageChange({to:0}))}," 1 ")])):St("",!0),(pt(!0),ft(_t,null,It(at(w).leftDecrPage,$=>(pt(),ft("li",{key:$},[lt("a",{class:At(ie),hover:"cursor-pointer",onClick:Z=>at(w).onPageChange({to:$})},vt($+1),9,Fs)]))),128)),lt("li",null,[lt("a",Gs,vt(at(w).currentPage+1),1)]),(pt(!0),ft(_t,null,It(at(w).rightIncrPage,$=>(pt(),ft("li",{key:$},[lt("a",{hover:"cursor-pointer",class:At(ie),onClick:Z=>at(w).onPageChange({to:$})},vt($+1),9,Xs)]))),128)),at(w).currentPage!==at(w).totalPage-1&&at(w).totalPage>1?(pt(),ft("li",Us,[lt("a",{hover:"cursor-pointer",class:At(ie),onClick:A[2]||(A[2]=$=>at(w).onPageChange({to:at(w).totalPage-1}))},vt(at(w).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:A[3]||(A[3]=$=>at(w).onPageChange({diff:1}))},qs)])])]))}});class Zs{constructor(){ee(this,"totalSize");ee(this,"currentPage");ee(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 U=[];let K=1,w=this.currentPage-K;for(;w>0;)U.push(w),K=K<<1,w-=K;return U.reverse()}get rightIncrPage(){const U=[];let K=1,w=this.currentPage+K;for(;w+1<this.totalPage;)U.push(w),K=K<<1,w+=K;return U}onPageChange(U){const K=this.totalPage;let w=this.currentPage;if((U==null?void 0:U.to)!==void 0&&(w=U.to),(U==null?void 0:U.diff)!==void 0){const j=U.diff;w=w+j}w<0||w>=K||(this.currentPage=w)}}const Yt=ot=>(Qt("data-v-3e64440f"),ot=ot(),Jt(),ot),Qs={class:"mx-auto w-full","px-4":""},Js={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":""},to={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"},eo={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"},io=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"},oo=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)),no={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"},ro=Yt(()=>lt("div",{"i-pajamas-export":"",class:"mr-2 h-4 w-4"},null,-1)),ao={class:"overflow-x-auto"},lo={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},ho={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},co=Yt(()=>lt("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),uo={key:0,scope:"col",class:"px-4 py-3"},po=Yt(()=>lt("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),fo=Yt(()=>lt("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),go={key:1,scope:"col",class:"px-4 py-3"},mo={key:2,scope:"col",class:"px-4 py-3"},xo={key:3,scope:"col",class:"px-4 py-3"},yo=Yt(()=>lt("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),vo={"px-4":"","py-2":""},ko={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},bo={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},wo={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},So=Yt(()=>lt("div",{class:"flex items-center"},[lt("div",{class:"mr-2 inline-block h-4 w-4 rounded-full bg-red-700"}),zt(" 95 ")],-1)),Co=[So],Mo={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},To={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ao=Yt(()=>lt("div",{class:"flex items-center"},[lt("span",{class:"ml-1 text-gray-500 dark:text-gray-400"},"5.0")],-1)),Po=[Ao],Oo={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Lo={class:"flex items-center"},Eo=Dt({__name:"SubmissionsTable",props:{rank:null,submissions:null,pageSize:null,removeBorder:{type:Boolean}},setup(ot){const U=ot,K=wt(()=>U.rank),w=wt(()=>U.submissions.sort(li.compare).reverse()),j=Lt(new Zs);j.value.currentPage=0,j.value.pageSize=U.pageSize??16,j.value.totalSize=w.value.length,Vt(w,()=>{j.value.totalSize=w.value.length,j.value.currentPage>=j.value.totalPage&&(j.value.currentPage=j.value.totalPage-1)});const A=wt(()=>w.value.slice(j.value.currentLeft,j.value.currentRight)),$=Lt(!1);function Z(Y){const E=Math.floor(Y/3600),N=Math.floor(Y%3600/60),z=Y%60,v=S=>S.toString().padStart(2,"0");return`${v(E)}:${v(N)}:${v(z)}`}function V(Y){const E="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",N=Y.problemId,z=K.value.contest.problemsMap.get(N);if(z==null||!z.balloonColor)return E}function tt(Y){const E=Y.problemId,N=K.value.contest.problemsMap.get(E);if(N==null||!N.balloonColor)return;const z=N.balloonColor;return{backgroundColor:z.background_color,color:z.color}}return(Y,E)=>{const N=Ks;return pt(),ft("section",null,[lt("div",Qs,[lt("div",{class:At(["relative overflow-hidden bg-white dark:bg-gray-800",{"shadow-md":U.removeBorder!==!0,"sm:rounded-sm":U.removeBorder!==!0}])},[lt("div",Js,[lt("div",to,[at($)?(pt(),ft("button",eo,[io,zt(" Add new product ")])):St("",!0),at($)?(pt(),ft("button",so,[oo,zt(" Update stocks 1/250 ")])):St("",!0),at($)?(pt(),ft("button",no,[ro,zt(" Export ")])):St("",!0)])]),lt("div",ao,[lt("table",lo,[lt("thead",ho,[lt("tr",null,[co,at(K).contest.organization?(pt(),ft("th",uo,vt(at(K).contest.organization),1)):St("",!0),po,fo,at($)?(pt(),ft("th",go," Time ")):St("",!0),at($)?(pt(),ft("th",mo," Memory ")):St("",!0),at($)?(pt(),ft("th",xo," Answer ")):St("",!0),yo])]),lt("tbody",null,[(pt(!0),ft(_t,null,It(at(A),z=>{var v,S,L;return pt(),ft("tr",{key:z.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[lt("td",vo,[lt("span",{class:At(["rounded px-2 py-0.5 text-sm",[V(z)]]),style:Kt(tt(z))},vt((v=at(K).contest.problemsMap.get(z.problemId))==null?void 0:v.label),7)]),at(K).contest.organization?(pt(),ft("td",ko,vt((S=at(K).teamsMap.get(z.teamId))==null?void 0:S.organization),1)):St("",!0),lt("td",bo,vt((L=at(K).teamsMap.get(z.teamId))==null?void 0:L.name),1),lt("td",{scope:"row",class:At([z.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},vt(at(hi)[z.status]),3),at($)?(pt(),ft("td",wo,Co)):St("",!0),at($)?(pt(),ft("td",Mo," 0.47 ")):St("",!0),at($)?(pt(),ft("td",To,Po)):St("",!0),lt("td",Oo,[lt("div",Lo,vt(Z(z.timestamp)),1)])])}),128))])])]),Pt(N,{pagination:at(j),"onUpdate:pagination":E[0]||(E[0]=z=>Nt(j)?j.value=z:null)},null,8,["pagination"])],2)])])}}});const de=Ut(Eo,[["__scopeId","data-v-3e64440f"]]),ue=ot=>(Qt("data-v-3a15ec2a"),ot=ot(),Jt(),ot),_o={class:"statistics-0"},Io=["colspan"],Do={class:"stnd"},jo={class:"statistics-1"},Ro=["colspan"],Bo={class:"stnd"},zo=ue(()=>lt("br",null,null,-1)),No={class:"statistics-0"},Ho=["colspan"],Wo={class:"stnd"},$o=ue(()=>lt("br",null,null,-1)),Fo={class:"statistics-1"},Go=["colspan"],Xo={class:"stnd"},Uo=ue(()=>lt("br",null,null,-1)),Yo={class:"statistics-0"},Vo=["colspan"],qo={class:"stnd"},Ko={class:"statistics-1"},Zo=["colspan"],Qo={class:"stnd"},Jo=Dt({__name:"BottomStatistics",props:{rank:null},setup(ot){const U=ot,{t:K}=Xt(),w=wt(()=>U.rank);function j(){let Y=3;return w.value.contest.organization&&Y++,w.value.contest.badge&&Y++,Y}function A(Y){return Y.submittedNum===0?"NaN":`${Math.floor(Y.attemptedNum*100/Y.submittedNum)}%`}function $(Y){return Y.submittedNum===0?"NaN":`${Math.floor(Y.acceptedNum*100/Y.submittedNum)}%`}function Z(Y){return Y.attemptedNum===0?"NaN":`${Y.dict}%`}function V(Y){return Y.firstSolveSubmissions.length===0?"Null":`${Math.floor(Y.firstSolveSubmissions[0].timestamp/60)}`}function tt(Y){return Y.lastSolveSubmissions.length===0?"Null":`${Math.floor(Y.lastSolveSubmissions[0].timestamp/60)}`}return(Y,E)=>(pt(),ft(_t,null,[lt("tr",_o,[lt("td",{class:"empty",colspan:j()},null,8,Io),lt("td",Do,[lt("b",null,vt(at(K)("standings.statistics.submitted")),1)]),(pt(!0),ft(_t,null,It(at(w).contest.problems,N=>(pt(),ft("td",{key:N.id,class:"stnd"},[lt("b",null,vt(N.statistics.submittedNum),1)]))),128))]),lt("tr",jo,[lt("td",{class:"empty",colspan:j()},null,8,Ro),lt("td",Bo,[lt("b",null,vt(at(K)("standings.statistics.attempted")),1)]),(pt(!0),ft(_t,null,It(at(w).contest.problems,N=>(pt(),ft("td",{key:N.id,class:"stnd"},[lt("b",null,vt(N.statistics.attemptedNum),1),zo,lt("b",null," ("+vt(A(N.statistics))+") ",1)]))),128))]),lt("tr",No,[lt("td",{class:"empty",colspan:j()},null,8,Ho),lt("td",Wo,[lt("b",null,vt(at(K)("standings.statistics.accepted")),1)]),(pt(!0),ft(_t,null,It(at(w).contest.problems,N=>(pt(),ft("td",{key:N.id,class:"stnd"},[lt("b",null,vt(N.statistics.acceptedNum),1),$o,lt("b",null," ("+vt($(N.statistics))+") ",1)]))),128))]),lt("tr",Fo,[lt("td",{class:"empty",colspan:j()},null,8,Go),lt("td",Xo,[lt("b",null,vt(at(K)("standings.statistics.dict")),1)]),(pt(!0),ft(_t,null,It(at(w).contest.problems,N=>(pt(),ft("td",{key:N.id,class:"stnd"},[lt("b",null,vt(N.statistics.attemptedNum-N.statistics.acceptedNum),1),Uo,lt("b",null," ("+vt(Z(N.statistics))+") ",1)]))),128))]),lt("tr",Yo,[lt("td",{class:"empty",colspan:j()},null,8,Vo),lt("td",qo,[lt("b",null,vt(at(K)("standings.statistics.first_solved")),1)]),(pt(!0),ft(_t,null,It(at(w).contest.problems,N=>(pt(),ft("td",{key:N.id,class:"stnd"},[lt("b",null,vt(V(N.statistics)),1)]))),128))]),lt("tr",Ko,[lt("td",{class:"empty",colspan:j()},null,8,Zo),lt("td",Qo,[lt("b",null,vt(at(K)("standings.statistics.last_solved")),1)]),(pt(!0),ft(_t,null,It(at(w).contest.problems,N=>(pt(),ft("td",{key:N.id,class:"stnd"},[lt("b",null,vt(tt(N.statistics)),1)]))),128))])],64))}});const tn=Ut(Jo,[["__scopeId","data-v-3a15ec2a"]]),en={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},sn=Dt({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(ot,{emit:U}){const K=ot,w=wt({get(){return K.isHidden},set(V){U("update:isHidden",V)}}),j=wt(()=>K.rank),A=wt(()=>K.team),$=wt(()=>K.p),Z=wt(()=>`${A.value.name} - ${$.value.problem.label}`);return(V,tt)=>{const Y=de,E=he;return pt(),Ft(E,{isHidden:at(w),"onUpdate:isHidden":tt[0]||(tt[0]=N=>Nt(w)?w.value=N:null),title:at(Z)},{default:te(()=>[lt("div",en,[Pt(Y,{"w-full":"",rank:at(j),submissions:at($).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["isHidden","title"])}}}),on=ot=>(Qt("data-v-dbdd6e30"),ot=ot(),Jt(),ot),nn=on(()=>lt("br",null,null,-1)),rn=Dt({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(ot){const U=ot,K=Lt(!0);function w(){K.value=!1}const j=wt(()=>U.rank),A=wt(()=>U.team),$=wt(()=>U.p);function Z(Y){return Y.isSolved?"+":Y.isWrongAnswer?"-":Y.isPending?`? ${Y.pendingCount}`:""}function V(Y){let E="";return Y.isUnSubmitted||(E+=`${Y.failedCount+Number(Y.isSolved)}`),(Y.isSolved&&j.value.contest.statusTimeDisplay.correct||Y.isPending&&j.value.contest.statusTimeDisplay.pending||Y.isWrongAnswer&&j.value.contest.statusTimeDisplay.incorrect)&&(E+=`/${Math.floor(Y.lastSubmitTimestamp/60)}`),E}function tt(Y){return Y.isFirstSolved?"first-solve":Y.isSolved?"correct":Y.isWrongAnswer?"incorrect":Y.isPending?"pending":"unattempted"}return(Y,E)=>{const N=sn;return pt(),ft("td",{class:At(["stnd",[tt(at($))]])},[lt("div",{"cursor-pointer":"",onClick:w},[zt(vt(Z(at($)))+" ",1),nn,zt(" "+vt(V(at($))),1)]),lt("div",null,[at(K)?St("",!0):(pt(),Ft(N,{key:0,isHidden:at(K),"onUpdate:isHidden":E[0]||(E[0]=z=>Nt(K)?K.value=z:null),rank:at(j),team:at(A),p:at($)},null,8,["isHidden","rank","team","p"]))])],2)}}});const an=Ut(rn,[["__scopeId","data-v-dbdd6e30"]]),ln={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":""},hn={key:0},cn={key:1,flex:"","flex-col":"","gap-2":""},dn={key:2},un=Dt({__name:"TeamAwards",props:{team:null},setup(ot){const U=ot,K=wt(()=>U.team),w=wt(()=>U.team.problemStatistics.filter(A=>!!A.isFirstSolved)),j=wt(()=>{const A=U.team.awards;return A.includes(qt.GOLD)?{text:"Gold"}:A.includes(qt.SILVER)?{text:"Silver"}:A.includes(qt.BRONZE)?{text:"Bronze"}:A.includes(qt.HONORABLE)?{text:"Honorable"}:null});return(A,$)=>(pt(),ft("div",ln,[lt("div",null," Team Rank: "+vt(at(K).rank),1),at(K).organization&&at(K).organizationRank!==-1?(pt(),ft("div",hn," School Rank: "+vt(at(K).organizationRank),1)):St("",!0),at(w).length?(pt(),ft("div",cn,[(pt(!0),ft(_t,null,It(at(w),Z=>(pt(),ft("div",{key:Z.problem.id}," First Solved Problem "+vt(Z.problem.label),1))),128))])):St("",!0),at(j)?(pt(),ft("div",dn,vt(at(j).text)+" Medal ",1)):St("",!0)]))}}),pn={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},fn=["onClick"],gn=Dt({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(ot,{emit:U}){const K=ot,{t:w}=Xt(),j=wt({get(){return K.currentType},set(Z){U("update:currentType",Z)}});function A(Z){j.value=Z}const $=wt(()=>K.types.length);return(Z,V)=>(pt(),ft("div",pn,[(pt(!0),ft(_t,null,It(K.types,(tt,Y)=>(pt(),ft("button",{key:tt,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:At({"rounded-t-lg md:rounded-tr-none md:rounded-l-lg":Y===0,"rounded-b-lg md:rounded-bl-none md:rounded-r-lg mr-2":Y+1===at($),border:Y===0||Y+1===at($),"border-t border-x md:border-x-0 md:border-b":Y>0&&Y+1<at($),"md:border-r-0":Y===0,"md:border-l":Y>0,"z-10 ring-2 ring-primary-700 text-primary-700 dark:ring-primary-600 dark:text-white":at(j)===tt}),onClick:E=>A(tt)},vt(at(w)(`type_menu.${tt}`)),11,fn))),128))]))}}),mn={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},xn={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},yn={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":"","md:space-x-4":""},vn={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},kn={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},bn={key:0,"w-full":"",class:"mt-[-12px]"},wn={key:1,"w-full":""},Sn={key:2,"w-full":""},Me="submissions",Te="statistics",Ae="awards",Cn=Dt({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(ot,{emit:U}){const K=ot,w=wt({get(){return K.isHidden},set(tt){U("update:isHidden",tt)}}),j=Lt("submissions"),A=wt(()=>K.rank),$=wt(()=>K.team),Z=wt(()=>{let tt="";return A.value.contest.organization&&$.value.organization.length>0&&(tt+=`${$.value.organization} - `),tt+=`${$.value.name}`,$.value.members&&(tt+=` - ${$.value.members}`),$.value.coach&&(tt+=` - ${$.value.coach}(coach)`),tt}),V=[Me,Te,Ae];return(tt,Y)=>{const E=gn,N=de,z=un,v=he;return pt(),Ft(v,{isHidden:at(w),"onUpdate:isHidden":Y[1]||(Y[1]=S=>Nt(w)?w.value=S:null)},{header:te(()=>[lt("div",mn,[lt("div",xn,[lt("div",yn,[lt("h3",vn,vt(at(Z)),1),Pt(E,{"current-type":at(j),"onUpdate:currentType":Y[0]||(Y[0]=S=>Nt(j)?j.value=S:null),types:V},null,8,["current-type"])])])])]),default:te(()=>[lt("div",kn,[at(j)===Me?(pt(),ft("div",bn,[Pt(N,{"w-full":"",rank:at(A),submissions:at($).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):St("",!0),at(j)===Te?(pt(),ft("div",wn,[Pt(at(oe.Chart),{options:("getTeamPlaceChart"in tt?tt.getTeamPlaceChart:at(Ss))(at(A),at($))},null,8,["options"])])):St("",!0),at(j)===Ae?(pt(),ft("div",Sn,[Pt(z,{team:at($)},null,8,["team"])])):St("",!0)])]),_:1},8,["isHidden"])}}}),Mn={},Tn={class:"color-gray-700 dark:color-gray-200"},An=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),Pn=[An];function On(ot,U){return pt(),ft("div",Tn,Pn)}const Ln=Ut(Mn,[["render",On]]),En={},_n={class:"color-gray-700 dark:color-gray-200"},In=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),Dn=[In];function jn(ot,U){return pt(),ft("div",_n,Dn)}const Rn=Ut(En,[["render",jn]]),Bn=ot=>(Qt("data-v-40c78d8c"),ot=ot(),Jt(),ot),zn={key:1,class:"empty flex items-center justify-center"},Nn=["src"],Hn={flex:""},Wn={class:"float-left pl-2 font-serif"},$n={key:0},Fn={class:"flex-1"},Gn=Bn(()=>lt("div",{class:"float-right"},null,-1)),Xn=Dt({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean}},setup(ot){const U=ot,K=Lt(null),w=ci(K),j=Lt(!0);function A(){j.value=!1}const $=wt(()=>U.rank),Z=wt(()=>U.team);function V(Y,E=!1){if(U.isFilter)return"filter-team";if(E){if(Y.awards.includes(qt.GOLD))return"gold";if(Y.awards.includes(qt.SILVER))return"silver";if(Y.awards.includes(qt.BRONZE))return"bronze";if(Y.awards.includes(qt.HONORABLE))return"honorable"}return`stand${($.value.rankStatistics.maxSolvedProblems-Y.solvedProblemNum)%2}${(Y.rank-1)%2}`}function tt(){return w.value||U.ix<32}return(Y,E)=>{var L;const N=Rn,z=Ln,v=Cn,S=an;return pt(),ft("tr",{ref_key:"el",ref:K,class:At(["h-10",[U.isFilter?"filter-team":""]])},[tt()?(pt(),ft("td",{key:0,class:At(["stnd",[V(at(Z),!0)]])},vt(at(Z).rank),3)):St("",!0),at($).contest.badge&&tt()?(pt(),ft("td",zn,[lt("img",{src:["data:image/png;base64,",(L=at(Z).badge)==null?void 0:L.base64].join(""),alt:"",class:"h-8 w-8"},null,8,Nn)])):St("",!0),at($).contest.organization&&tt()?(pt(),ft("td",{key:2,class:At(["stnd",[V(at(Z))]])},[lt("div",Hn,[lt("div",Wn,[at(Z).organizationRank>-1?(pt(),ft("div",$n,vt(at(Z).organizationRank),1)):St("",!0)]),lt("div",Fn,vt(at(Z).organization),1),Gn])],2)):St("",!0),tt()?(pt(),ft("td",{key:3,class:At(["stnd",[V(at(Z))]])},[lt("div",{"cursor-pointer":"",onClick:A},[lt("span",null,vt(at(Z).name),1),at(Z).group.includes("unofficial")?(pt(),Ft(N,{key:0,"inline-block":""})):St("",!0),at(Z).group.includes("girl")?(pt(),Ft(z,{key:1,"inline-block":""})):St("",!0)]),lt("div",null,[at(j)?St("",!0):(pt(),Ft(v,{key:0,isHidden:at(j),"onUpdate:isHidden":E[0]||(E[0]=D=>Nt(j)?j.value=D:null),rank:at($),team:at(Z)},null,8,["isHidden","rank","team"]))])],2)):St("",!0),tt()?(pt(),ft("td",{key:4,class:At(["stnd",[V(at(Z))]])},vt(at(Z).solvedProblemNum),3)):St("",!0),tt()?(pt(),ft("td",{key:5,class:At(["stnd",[V(at(Z))]])},vt(at(Z).penaltyToMinute),3)):St("",!0),(pt(!0),ft(_t,null,It(at(Z).problemStatistics,D=>(pt(),ft(_t,{key:D.problem.id},[tt()?(pt(),Ft(S,{key:0,rank:at($),team:at(Z),p:D},null,8,["rank","team","p"])):St("",!0)],64))),128)),tt()?(pt(),ft("td",{key:6,class:At(["stnd",[V(at(Z))]])},vt(`${at(Z).dict}%`),3)):St("",!0)],2)}}});const Un=Ut(Xn,[["__scopeId","data-v-40c78d8c"]]),Yn=ot=>(Qt("data-v-9edb8d1e"),ot=ot(),Jt(),ot),Vn={class:"standings","font-mono":"","dark:text-gray-700":""},qn={class:"sticky top-0 z-99"},Kn={class:"title",style:{width:"3rem"}},Zn={key:0,class:"title",style:{width:"2rem"}},Qn={class:"title",style:{width:"3rem"}},Jn={class:"title",style:{width:"4rem"}},tr=Yn(()=>lt("br",null,null,-1)),er={class:"title",style:{width:"2.5rem"}},ir=Dt({__name:"Standings",props:{rank:null},setup(ot){const U=ot,{t:K}=Xt(),w=wt(()=>U.rank),j=wt(()=>U.rank.teams),A=wt(()=>U.rank.teams.filter(tt=>!!(U.rank.organizations&&U.rank.options.filterOrganizationMap.has(tt.organization)||U.rank.options.filterTeamMap.has(tt.id)))),$=wt(()=>{let V=0;return w.value.teams.forEach(tt=>{V=Math.max(V,tt.organization.length)}),V}),Z=wt(()=>{let V=0;return w.value.teams.forEach(tt=>{V=Math.max(V,tt.name.length)}),V});return(V,tt)=>{const Y=Un,E=tn;return pt(),ft("div",null,[lt("div",null,[lt("table",Vn,[lt("thead",qn,[lt("tr",null,[lt("th",Kn,vt(at(K)("standings.place")),1),at(w).contest.badge?(pt(),ft("th",Zn,vt(at(w).contest.badge),1)):St("",!0),at(w).contest.organization?(pt(),ft("th",{key:1,class:"title",style:Kt({width:`${Math.min(32,Math.ceil(at($)*1.1))}rem`})},vt(at(w).contest.organization),5)):St("",!0),lt("th",{class:"title",style:Kt({width:`${Math.min(32,Math.ceil(at(Z)*1))}rem`})},vt(at(K)("standings.team")),5),lt("th",Qn,vt(at(K)("standings.solved")),1),lt("th",Jn,vt(at(K)("standings.penalty")),1),(pt(!0),ft(_t,null,It(at(w).contest.problems,N=>{var z,v;return pt(),ft("th",{key:N.id,class:"success","text-center":"",style:Kt([{width:"3rem"},{"background-color":(z=N.balloonColor)==null?void 0:z.background_color,color:(v=N.balloonColor)==null?void 0:v.color}])},[zt(vt(N.label)+" ",1),tr,lt("s",null,vt(N.statistics.acceptedNum),1)],4)}),128)),lt("th",er,vt(at(K)("standings.dict")),1)])]),lt("tbody",null,[(pt(!0),ft(_t,null,It(at(A),(N,z)=>(pt(),Ft(Y,{key:`filter-${N.id}`,ix:z,rank:at(w),team:N,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(pt(!0),ft(_t,null,It(at(j),(N,z)=>(pt(),Ft(Y,{key:N.id,ix:z,rank:at(w),team:N},null,8,["ix","rank","team"]))),128)),Pt(E,{rank:at(w)},null,8,["rank"])])])])])}}});const sr=Ut(ir,[["__scopeId","data-v-9edb8d1e"]]),or={"font-mono":"",flex:""},nr=["onClick"],rr=["href"],ar={key:1},lr=Dt({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(ot,{emit:U}){const K=ot,w=wt(()=>{var E;for(const N of K.items)if(N.isDefault)return N.keyword;return(E=K.items)==null?void 0:E[0].keyword}),j=_e(K.queryParamName,w.value,{transform:String}),A=wt({get(){return K.currentItem},set(E){U("update:currentItem",E)}}),{t:$,locale:Z}=Xt();function V(E){return E.title?$(E.title):E.titles?E.titles.get(Z.value)??E.titles.get(E.defaultLang):""}function tt(E){return A.value===E.keyword}function Y(E){K.onChange&&K.onChange(E.keyword),!(E.link||E.isModal)&&(A.value=E.keyword,j.value=E.keyword)}return di(()=>{(()=>{var E;((E=j.value)==null?void 0:E.length)>0&&((()=>{for(const N of K.items)if(N.titles){for(const[z,v]of N.titles)if(j.value===v){j.value=N.keyword;return}}})(),A.value=j.value,K.onChange&&K.onChange(j.value))})()}),(E,N)=>(pt(),ft("div",or,[lt("div",{class:At(["mr-[-4px]",{"flex-row-reverse":K.reverseOrder}]),flex:""},[(pt(!0),ft(_t,null,It(K.items,z=>(pt(),ft("div",{key:z.keyword,class:At(["second-level-menu-item",[tt(z)?"second-level-menu-item-current":""]]),onClick:v=>Y(z)},[lt("div",null,[z.link?(pt(),ft("a",{key:0,href:z.link,target:"_blank",title:"Resolver"},vt(V(z)),9,rr)):St("",!0),z.link?St("",!0):(pt(),ft("div",ar,vt(V(z)),1))])],10,nr))),128))],2)]))}});const hr=Ut(lr,[["__scopeId","data-v-714a998b"]]);const cr={},dr={class:"flex items-center justify-center dark:text-black"},ur=ui('<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),pr=[ur];function fr(ot,U){return pt(),ft("div",dr,pr)}const gr=Ut(cr,[["render",fr],["__scopeId","data-v-54297ce8"]]),mr=3,Pe=30*1e3;async function xr(ot,U){const K=ot.startsWith("/")?ot.slice(1):ot,w=`${window.DATA_HOST}${K}`,j=await fetch(`${w}/config.json?t=${U??0}`),A=await fetch(`${w}/team.json?t=${U??0}`),$=await fetch(`${w}/run.json?t=${U??0}`);return Promise.all([j.json(),A.json(),$.json()]).then(V=>({contest:V[0],teams:V[1],submissions:V[2]}))}function yr(ot,U){return Ei({queryKey:[ot,U.value.getTime()],queryFn:()=>xr(ot,U.value.getTime()),retry:mr,staleTime:Pe,refetchInterval:Pe})}const vr=ot=>(Qt("data-v-3b181610"),ot=ot(),Jt(),ot),kr={key:0},br={key:0},wr={key:0},Sr={class:"max-w-[92%]"},Cr=["src"],Mr={class:"max-w-[92%]"},Tr={class:"w-[92%]"},Ar={class:"flex font-bold font-mono"},Pr={class:"float-left"},Or={class:"pl-0.5"},Lr={class:"flex-1"},Er={class:"float-right"},_r={class:"pl-0.5"},Ir={class:"mt-2"},Dr={class:"mt-2 flex font-bold font-mono"},jr={class:"float-left"},Rr={class:"flex-1"},Br={class:"float-right"},zr={class:"mt-4 flex"},Nr={class:"float-left"},Hr=vr(()=>lt("div",{class:"flex-1"},null,-1)),Wr={class:"float-right"},$r={class:"max-w-[92%]"},Fr={key:0},Gr={key:1,class:"w-[88vw]"},Xr={key:2},Ur={key:3},Yr={key:4},Oe="sm:w-[1280px] xl:w-screen",se="sm:w-[1260px] xl:w-screen",Vr=Dt({__name:"Board",setup(ot){const U=Zt(),K=pi(),{t:w}=Xt(),j=Lt(!1),A=Lt({}),$=Lt([]),Z=Lt([]),V=Lt({}),tt=Lt(new Date),Y=Lt(new fi);(()=>{const t=is(),i=ss();t.value.length>0&&Y.value.setFilterOrganizations(t.value),i.value.length>0&&Y.value.setFilterTeams(i.value)})();const E=Lt("all");function N(t){t!==Y.value.group&&Y.value.setGroup(t)}(()=>{const t=_e("group","all",{transform:String});E.value=t.value,Y.value.setGroup(t.value)})();function z(){const t=new ki(A.value,$.value,Z.value);t.options=ve.cloneDeep(Y.value),t.buildRank(),V.value=t}const{data:v,isError:S,error:L}=yr(U.path,tt);Vt(v,async()=>{var t,i,l;v.value===null||v.value===void 0||(A.value=gi((t=v.value)==null?void 0:t.contest),K.value=`${A.value.name} - XCPCIO Board`,$.value=mi((i=v.value)==null?void 0:i.teams),Z.value=xi((l=v.value)==null?void 0:l.submissions),!Y.value.enableFilterSubmissionsByTimestamp&&(z(),j.value=!0))});const D=Lt(!1);Vt(Y.value,()=>{if(j.value!==!1){if(!V.value.options.isNeedReBuildRank(Y.value)){V.value.options=ve.cloneDeep(Y.value);return}D.value!==!0&&(D.value=!0,z(),D.value=!1)}});const d=Lt([{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}]),x=wt(()=>V.value.contest.group),y=wt(()=>{const t=Array();for(const[i,l]of x.value){const f={titles:l.names,defaultLang:l.defaultLang,keyword:i,isDefault:l.isDefault};t.push(f)}return t}),u=Lt("rank"),M=Lt(!0);function b(t){t==="options"&&(M.value=!1)}const k=wt(()=>{const t=V.value.contest.startTime.format("YYYY-MM-DD HH:mm:ss");return`${w("standings.start_time")}${w("common.colon")}${t}`}),n=wt(()=>{const t=V.value.contest.endTime.format("YYYY-MM-DD HH:mm:ss");return`${w("standings.end_time")}${w("common.colon")}${t}`}),a=wt(()=>{const t=V.value.contest.getContestElapsedTime(tt.value);return`${w("standings.elapsed")}${w("common.colon")}${t}`}),p=wt(()=>{const t=V.value.contest.getContestRemainingTime(tt.value);return`${w("standings.remaining")}${w("common.colon")}${t}`}),h=wt(()=>V.value.options.enableFilterSubmissionsByTimestamp?yi.PAUSED:V.value.contest.getContestState()),c=wt(()=>Ee(V.value.options.timestamp)),e=setInterval(()=>{tt.value=new Date},1e3);return vi(()=>{clearInterval(e)}),(t,i)=>{var T;const l=bi,f=wi,O=gr,r=hr,P=sr,G=de,Q=Is,nt=vs,B=fs,s=ds;return pt(),ft("div",null,[at(j)?St("",!0):(pt(),ft("div",kr,[lt("div",{class:At([Oe]),flex:"","justify-center":"","items-center":""},[zt(vt(at(w)("common.loading"))+"... ",1),at(S)?(pt(),ft("div",br,vt(at(L)),1)):St("",!0)],2)])),at(j)?(pt(),ft("div",{key:1,class:At([Oe]),flex:"","flex-col":"","justify-center":"","items-center":""},[at(V).contest.banner?(pt(),ft("div",wr,[lt("div",{class:At([se]),"mb-4":"",flex:"","justify-center":"","items-center":""},[lt("div",Sr,[lt("img",{src:["data:image/png;base64,",(T=at(V).contest.banner)==null?void 0:T.base64].join(""),alt:"banner"},null,8,Cr)])],2)])):St("",!0),lt("div",{class:At(["title",[se]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":""},[lt("div",Mr,vt(at(V).contest.name),1)],2),lt("div",{class:At([se]),"mt-4":"",flex:"","flex-row":"","justify-center":""},[lt("div",Tr,[lt("div",Ar,[lt("div",Pr,[zt(vt(at(k)),1),lt("sup",Or,vt(at(V).contest.startTime.format("z")),1)]),lt("div",Lr,[Pt(l,{state:at(h),"pending-time":at(V).contest.getContestPendingTime(at(tt)),"paused-time":at(c)},null,8,["state","pending-time","paused-time"])]),lt("div",Er,[zt(vt(at(n)),1),lt("sup",_r,vt(at(V).contest.endTime.format("z")),1)])]),lt("div",Ir,[Pt(f,{"rank-options":at(Y),"onUpdate:rankOptions":i[0]||(i[0]=R=>Nt(Y)?Y.value=R:null),width:at(V).contest.getContestProgressRatio(at(tt)),state:at(V).contest.getContestState(at(tt)),"need-scroll":!0,rank:at(V),"elapsed-time":at(V).contest.getContestElapsedTime(at(tt))},null,8,["rank-options","width","state","rank","elapsed-time"])]),lt("div",Dr,[lt("div",jr,vt(at(a)),1),lt("div",Rr,[Pt(O)]),lt("div",Br,vt(at(p)),1)]),lt("div",zr,[lt("div",Nr,[Pt(r,{"current-item":at(E),"onUpdate:currentItem":i[1]||(i[1]=R=>Nt(E)?E.value=R:null),items:at(y),"query-param-name":"group","on-change":N},null,8,["current-item","items"])]),Hr,lt("div",Wr,[Pt(r,{"current-item":at(u),"onUpdate:currentItem":i[2]||(i[2]=R=>Nt(u)?u.value=R:null),items:at(d),"reverse-order":!0,"query-param-name":"type","on-change":b},null,8,["current-item","items"])])])])],2),lt("div",{"mt-4":"",class:At([se]),flex:"","justify-center":""},[lt("div",$r,[at(u)==="rank"?(pt(),ft("div",Fr,[Pt(P,{rank:at(V)},null,8,["rank"])])):St("",!0),at(u)==="submissions"?(pt(),ft("div",Gr,[Pt(G,{"w-full":"",rank:at(V),submissions:at(V).getSubmissions()},null,8,["rank","submissions"])])):St("",!0),at(u)==="statistics"?(pt(),ft("div",Xr,[Pt(Q,{rank:at(V)},null,8,["rank"])])):St("",!0),at(u)==="export"?(pt(),ft("div",Ur,[Pt(nt,{rank:at(V)},null,8,["rank"])])):St("",!0),at(u)==="utility"?(pt(),ft("div",Yr,[Pt(B,{rank:at(V)},null,8,["rank"])])):St("",!0)])],2)],2)):St("",!0),at(M)?St("",!0):(pt(),Ft(s,{key:2,"is-hidden":at(M),"onUpdate:isHidden":i[3]||(i[3]=R=>Nt(M)?M.value=R:null),"rank-options":at(Y),"onUpdate:rankOptions":i[4]||(i[4]=R=>Nt(Y)?Y.value=R:null),rank:at(V)},null,8,["is-hidden","rank-options","rank"]))])}}});const qr=Ut(Vr,[["__scopeId","data-v-3b181610"]]),Kr=Dt({__name:"GoBack",setup(ot){const U=Si(),{t:K}=Xt();return(w,j)=>{const A=Ci("RouterLink");return pt(),ft("div",null,[lt("div",{class:"m-3 text-sm btn",onClick:j[0]||(j[0]=$=>at(U).back())},vt(at(K)("button.back")),1),Pt(A,{class:"m-3 text-sm btn",to:"/"},{default:te(()=>[zt(vt(at(K)("button.home")),1)]),_:1})])}}}),Zr={key:0,class:"flex flex-col items-center"},Qr=lt("div",{"text-4xl":""},[lt("div",{"i-carbon-warning":""})],-1),Jr={key:1},ta=Dt({__name:"[...all]",setup(ot){const{t:U}=Xt(),K=Zt(),j=!["camp","icpc","ccpc","provincial-contest"].some(A=>K.fullPath.startsWith(`/${A}`));return(A,$)=>{const Z=Kr,V=qr;return j?(pt(),ft("div",Zr,[Qr,zt(" "+vt(at(U)("not-found"))+" ",1),Pt(Z)])):(pt(),ft("div",Jr,[Pt(V)]))}}});typeof ke=="function"&&ke(ta);export{ta as default};
|