marketplacepos 5.41.2 → 5.41.4
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/Marketplace/3rdpartylicenses.txt +123 -123
- package/Marketplace/chunk-2BBMPSAE.js +93 -0
- package/Marketplace/chunk-3CZJUTLZ.js +1 -0
- package/Marketplace/chunk-4ASUM4N5.js +1 -0
- package/Marketplace/chunk-4G3QN54S.js +193 -0
- package/Marketplace/chunk-4S4G5UPJ.js +1 -0
- package/Marketplace/{chunk-4DV4IT7R.js → chunk-5FEQZAWX.js} +1 -1
- package/Marketplace/{chunk-UMY6NG57.js → chunk-5GX2GLRY.js} +1 -1
- package/Marketplace/{chunk-25OT4I3W.js → chunk-5MRT2EFE.js} +1 -1
- package/Marketplace/chunk-62PFQNHJ.js +1 -0
- package/Marketplace/chunk-6ALHX2I4.js +1 -0
- package/Marketplace/{chunk-SYENQYR7.js → chunk-6IAGGRZN.js} +1 -1
- package/Marketplace/{chunk-FWG4H3QG.js → chunk-6NNAICJE.js} +1 -1
- package/Marketplace/{chunk-WGXUKTYP.js → chunk-6XFYITUD.js} +1 -1
- package/Marketplace/chunk-742J5UZZ.js +1 -0
- package/Marketplace/{chunk-4CTORK4F.js → chunk-7477X7LJ.js} +1 -1
- package/Marketplace/{chunk-R76V3PTN.js → chunk-75BDXSG3.js} +10 -10
- package/Marketplace/{chunk-ACIMXBIC.js → chunk-77IUCPIQ.js} +1 -1
- package/Marketplace/{chunk-ZR5IXNXB.js → chunk-7FUVW73P.js} +1 -1
- package/Marketplace/chunk-7G53KEUW.js +1 -0
- package/Marketplace/chunk-7GQIIDFF.js +4 -0
- package/Marketplace/chunk-7P3SGW2P.js +1 -0
- package/Marketplace/{chunk-PO7JVKK3.js → chunk-7TWBIV3T.js} +1 -1
- package/Marketplace/chunk-AIIRPK4M.js +1 -0
- package/Marketplace/chunk-B54QGLED.js +2 -0
- package/Marketplace/chunk-BG6DO7RW.js +5 -0
- package/Marketplace/{chunk-4M63ID5T.js → chunk-BUFEIJAI.js} +1 -1
- package/Marketplace/{chunk-SIYMMMKQ.js → chunk-CH2MLZU7.js} +1 -1
- package/Marketplace/{chunk-KX5AWR75.js → chunk-COBHWPGI.js} +1 -1
- package/Marketplace/chunk-D54NUPYF.js +153 -0
- package/Marketplace/chunk-DPLEMBB4.js +1 -0
- package/Marketplace/{chunk-R5TTZPDX.js → chunk-DVE7IIN7.js} +11 -11
- package/Marketplace/{chunk-PBGDP6XV.js → chunk-E3HHEPKQ.js} +1 -1
- package/Marketplace/chunk-E3HMIPER.js +2 -0
- package/Marketplace/{chunk-KQQCKHF3.js → chunk-E6HA2AGS.js} +1 -1
- package/Marketplace/{chunk-JOBWFOGC.js → chunk-EGTYAIU5.js} +1 -1
- package/Marketplace/chunk-EYNCNJ3I.js +1 -0
- package/Marketplace/chunk-FX6CFPPN.js +1 -0
- package/Marketplace/chunk-G5CQLP7H.js +1 -0
- package/Marketplace/{chunk-OKAPL3YZ.js → chunk-G6EG5QJS.js} +1 -1
- package/Marketplace/{chunk-IKPRRD5D.js → chunk-GBABJLPQ.js} +1 -1
- package/Marketplace/{chunk-MCJRJUAO.js → chunk-GCJBQRHI.js} +1 -1
- package/Marketplace/{chunk-ZIOAOUAM.js → chunk-GHQH62TZ.js} +1 -1
- package/Marketplace/chunk-GPEVUTDI.js +2 -0
- package/Marketplace/chunk-HMB7FZD7.js +1 -0
- package/Marketplace/chunk-HNYOBOEW.js +4 -0
- package/Marketplace/chunk-HUMGZRJQ.js +1 -0
- package/Marketplace/{chunk-GPC4DECX.js → chunk-ICSMRW7O.js} +1 -1
- package/Marketplace/chunk-IIJMZKPL.js +1 -0
- package/Marketplace/{chunk-6X2OBNJQ.js → chunk-ITTRZMEX.js} +4 -4
- package/Marketplace/{chunk-A2YNWIX6.js → chunk-IYYVZ6B6.js} +1 -1
- package/Marketplace/{chunk-XQGRC7V2.js → chunk-J3P46Z53.js} +1 -1
- package/Marketplace/{chunk-LHD7CYML.js → chunk-J7AGLBPL.js} +1 -1
- package/Marketplace/{chunk-NRCXYGO3.js → chunk-JBKHY4HH.js} +5 -5
- package/Marketplace/chunk-JTZJTXCN.js +1 -0
- package/Marketplace/chunk-K2H6WANG.js +1 -0
- package/Marketplace/chunk-K3FQGMAY.js +1 -0
- package/Marketplace/chunk-KC2DJUBC.js +1 -0
- package/Marketplace/{chunk-HPYTL6TX.js → chunk-KHWTOD6H.js} +1 -1
- package/Marketplace/chunk-KOJ2R5XW.js +1 -0
- package/Marketplace/chunk-KVP6OL4J.js +2 -0
- package/Marketplace/{chunk-2TZBEYNY.js → chunk-KXZCGKQW.js} +1 -1
- package/Marketplace/chunk-L4JWBBBC.js +1 -0
- package/Marketplace/chunk-LEMNVA5V.js +3 -0
- package/Marketplace/chunk-LFJIZAV2.js +15 -0
- package/Marketplace/chunk-LJTMOYLO.js +1 -0
- package/Marketplace/chunk-LPXBSHUI.js +180 -0
- package/Marketplace/{chunk-LSXUXG54.js → chunk-M3SJUKTG.js} +1 -1
- package/Marketplace/chunk-MATSRG2L.js +447 -0
- package/Marketplace/{chunk-XEMNZHW6.js → chunk-MNFHFW3E.js} +1 -1
- package/Marketplace/chunk-O5SSMLCS.js +1 -0
- package/Marketplace/{chunk-YPVYJUXS.js → chunk-OAS72QB2.js} +1 -1
- package/Marketplace/chunk-OAVAVDIP.js +1 -0
- package/Marketplace/{chunk-TNKPTRB3.js → chunk-OE2JYQHN.js} +1 -1
- package/Marketplace/{chunk-6MPSYC77.js → chunk-OLSC6KHB.js} +1 -1
- package/Marketplace/{chunk-JRWFZQ5K.js → chunk-PPDHTO44.js} +1 -1
- package/Marketplace/chunk-PQ6Z7K5L.js +1 -0
- package/Marketplace/chunk-PXB4YEY3.js +1 -0
- package/Marketplace/chunk-PZTMYAA7.js +1 -0
- package/Marketplace/{chunk-M5IQRAHV.js → chunk-Q2OEJFVT.js} +1 -1
- package/Marketplace/{chunk-6LH7FSOW.js → chunk-Q72ZXPDP.js} +1 -1
- package/Marketplace/{chunk-SXLKJLAE.js → chunk-QCZIDOKW.js} +1 -1
- package/Marketplace/chunk-QJFAPDI7.js +1 -0
- package/Marketplace/chunk-REYGC4GG.js +1 -0
- package/Marketplace/{chunk-FBZW4Y3J.js → chunk-RGR34QZ3.js} +1 -1
- package/Marketplace/{chunk-MQXPOHBV.js → chunk-RIHLYYZU.js} +1 -1
- package/Marketplace/{chunk-55OI2SUF.js → chunk-RVYGL22E.js} +1 -1
- package/Marketplace/chunk-S7LCZRSD.js +1 -0
- package/Marketplace/chunk-SL4ID42P.js +1 -0
- package/Marketplace/chunk-SZ6MQ6EW.js +1 -0
- package/Marketplace/chunk-T5ONJF63.js +7 -0
- package/Marketplace/chunk-T6QOFDEE.js +1 -0
- package/Marketplace/{chunk-HFKKITEW.js → chunk-TMFFA26Y.js} +1 -1
- package/Marketplace/chunk-TXPNZLOJ.js +5 -0
- package/Marketplace/chunk-TZXF4K2V.js +1 -0
- package/Marketplace/{chunk-GHBGGQNM.js → chunk-UBMI3NQH.js} +1 -1
- package/Marketplace/chunk-UUUVVJG4.js +2 -0
- package/Marketplace/{chunk-5XI7HWS5.js → chunk-V2OJQHE3.js} +2 -2
- package/Marketplace/{chunk-TGMCGROM.js → chunk-V5WYSCVT.js} +1 -1
- package/Marketplace/chunk-VDSO2BHA.js +1 -0
- package/Marketplace/chunk-VETHPEVU.js +1 -0
- package/Marketplace/{chunk-SH7KN2AS.js → chunk-VGXQU74M.js} +1 -1
- package/Marketplace/chunk-VSEWXNVC.js +291 -0
- package/Marketplace/{chunk-OZ77CAJD.js → chunk-WAW37FIG.js} +1 -1
- package/Marketplace/chunk-XFCMKJV6.js +1 -0
- package/Marketplace/chunk-XM6GN4VF.js +1 -0
- package/Marketplace/chunk-Y7VC2AGS.js +1 -0
- package/Marketplace/chunk-YIUQQGOQ.js +1 -0
- package/Marketplace/chunk-YPM6IC2W.js +1 -0
- package/Marketplace/{chunk-UPYS4A4M.js → chunk-YXFTLQ5M.js} +1 -1
- package/Marketplace/chunk-Z46DDENN.js +1 -0
- package/Marketplace/{chunk-E2CS7ZMC.js → chunk-ZD5LURJS.js} +1 -1
- package/Marketplace/{chunk-WHZ44BAL.js → chunk-ZZVNB72Q.js} +1 -1
- package/Marketplace/index.html +3 -3
- package/Marketplace/main-5HHAD6NX.js +1 -0
- package/Marketplace/{styles-X3FXEB7T.css → styles-NJFTKO3E.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-2BUABOHG.js +0 -1
- package/Marketplace/chunk-2SXRC4IG.js +0 -1
- package/Marketplace/chunk-2ZTDLZVZ.js +0 -1
- package/Marketplace/chunk-33IXC6UG.js +0 -1
- package/Marketplace/chunk-4HZR3O3W.js +0 -1
- package/Marketplace/chunk-4JG3ZRYP.js +0 -5
- package/Marketplace/chunk-4PZ5Q3HI.js +0 -1
- package/Marketplace/chunk-4YOHPIVG.js +0 -1
- package/Marketplace/chunk-5B4KSPFM.js +0 -1
- package/Marketplace/chunk-5DIRXS7I.js +0 -1
- package/Marketplace/chunk-5EQNOCXP.js +0 -1
- package/Marketplace/chunk-5JYR3YJW.js +0 -1
- package/Marketplace/chunk-5QAURMZF.js +0 -222
- package/Marketplace/chunk-5ZX2OVBB.js +0 -1
- package/Marketplace/chunk-66YHNWRR.js +0 -1
- package/Marketplace/chunk-6IFZ2TO6.js +0 -1
- package/Marketplace/chunk-6RSAOZUV.js +0 -1
- package/Marketplace/chunk-6SBCWEJJ.js +0 -1
- package/Marketplace/chunk-6UEHSA6E.js +0 -1
- package/Marketplace/chunk-7H5ILTTK.js +0 -1
- package/Marketplace/chunk-A4F37V57.js +0 -1
- package/Marketplace/chunk-AGRVVEIR.js +0 -397
- package/Marketplace/chunk-ALKC77XL.js +0 -78
- package/Marketplace/chunk-AVEGIEYT.js +0 -193
- package/Marketplace/chunk-BBVWQJ7M.js +0 -1
- package/Marketplace/chunk-BM4KX73T.js +0 -1
- package/Marketplace/chunk-BQTUAYGY.js +0 -1
- package/Marketplace/chunk-C7QA2BEN.js +0 -3
- package/Marketplace/chunk-CEQA4PTY.js +0 -1
- package/Marketplace/chunk-CMZW5QAE.js +0 -1
- package/Marketplace/chunk-CSSG7NAJ.js +0 -1
- package/Marketplace/chunk-DG32XLYI.js +0 -1
- package/Marketplace/chunk-DJILLV4M.js +0 -1
- package/Marketplace/chunk-DS4AAABV.js +0 -1
- package/Marketplace/chunk-EL2JACEW.js +0 -1
- package/Marketplace/chunk-EU2KAMEK.js +0 -1
- package/Marketplace/chunk-EVLYO3HX.js +0 -1
- package/Marketplace/chunk-F4GMWHYJ.js +0 -33
- package/Marketplace/chunk-FFAZ3Q3F.js +0 -1
- package/Marketplace/chunk-FUWROOE4.js +0 -265
- package/Marketplace/chunk-GCECFUOP.js +0 -1
- package/Marketplace/chunk-GOS4RIF2.js +0 -1
- package/Marketplace/chunk-GZXQUJKX.js +0 -1
- package/Marketplace/chunk-H4PA2O6O.js +0 -1
- package/Marketplace/chunk-H6WIS2HR.js +0 -2
- package/Marketplace/chunk-HPGFBOM4.js +0 -1
- package/Marketplace/chunk-HTQJCQ32.js +0 -1
- package/Marketplace/chunk-IARG7PLL.js +0 -1
- package/Marketplace/chunk-IIMHYIRJ.js +0 -1
- package/Marketplace/chunk-JS55A2RS.js +0 -7
- package/Marketplace/chunk-JV4MMNGD.js +0 -79
- package/Marketplace/chunk-K6YEZYU4.js +0 -5
- package/Marketplace/chunk-KJHSB4A2.js +0 -1
- package/Marketplace/chunk-KOKHDU4I.js +0 -1
- package/Marketplace/chunk-KTIKLSOU.js +0 -1
- package/Marketplace/chunk-KTXS7IPU.js +0 -1
- package/Marketplace/chunk-KWQS4KX7.js +0 -1
- package/Marketplace/chunk-KXS76PRS.js +0 -70
- package/Marketplace/chunk-KYIY3VQ6.js +0 -141
- package/Marketplace/chunk-LOPJ3O56.js +0 -1
- package/Marketplace/chunk-LR4UZ2OS.js +0 -30
- package/Marketplace/chunk-LWSRD5LF.js +0 -1
- package/Marketplace/chunk-MGVYUYPC.js +0 -15
- package/Marketplace/chunk-MP43HA4R.js +0 -1
- package/Marketplace/chunk-MTUIRWOB.js +0 -2
- package/Marketplace/chunk-MZI5AYCE.js +0 -1
- package/Marketplace/chunk-NTW6FBP5.js +0 -1
- package/Marketplace/chunk-NZA4BEER.js +0 -102
- package/Marketplace/chunk-O55KM5KY.js +0 -1
- package/Marketplace/chunk-OZ7LWNOK.js +0 -15
- package/Marketplace/chunk-P5FCWMYK.js +0 -1
- package/Marketplace/chunk-PE5AFID4.js +0 -1
- package/Marketplace/chunk-PEA6KVUS.js +0 -252
- package/Marketplace/chunk-PW42BQIY.js +0 -1
- package/Marketplace/chunk-Q6V3IOGL.js +0 -1
- package/Marketplace/chunk-REL734JM.js +0 -1
- package/Marketplace/chunk-RHRJXX4W.js +0 -1
- package/Marketplace/chunk-S3YMF63V.js +0 -1
- package/Marketplace/chunk-SD7M7HOB.js +0 -1
- package/Marketplace/chunk-SLQA5QBT.js +0 -1
- package/Marketplace/chunk-SRJREA2O.js +0 -5
- package/Marketplace/chunk-T4K3CJ2R.js +0 -1
- package/Marketplace/chunk-TQ4ZLZ7C.js +0 -1
- package/Marketplace/chunk-TQIIWFRF.js +0 -1
- package/Marketplace/chunk-UDQBFSOV.js +0 -1
- package/Marketplace/chunk-UF4FKEE7.js +0 -93
- package/Marketplace/chunk-UJYSVGLV.js +0 -1
- package/Marketplace/chunk-UYW53K3I.js +0 -1
- package/Marketplace/chunk-VRI3CYGG.js +0 -1
- package/Marketplace/chunk-WTAJSWM2.js +0 -4
- package/Marketplace/chunk-WX5S3HCU.js +0 -1
- package/Marketplace/chunk-XGYBJAFE.js +0 -1
- package/Marketplace/chunk-YP2IPJ2O.js +0 -1
- package/Marketplace/chunk-Z3ITXK3D.js +0 -1
- package/Marketplace/chunk-Z3KD73SP.js +0 -2
- package/Marketplace/chunk-ZAVDOMSW.js +0 -1
- package/Marketplace/chunk-ZGZ74AJR.js +0 -1
- package/Marketplace/chunk-ZIUDNFYT.js +0 -1
- package/Marketplace/chunk-ZLNGASME.js +0 -1
- package/Marketplace/chunk-ZNDU44GH.js +0 -51
- package/Marketplace/main-SPNULRF2.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as
|
|
1
|
+
import{a as Ye,b as Ue,c as Ve}from"./chunk-RGR34QZ3.js";import{b as Ke}from"./chunk-COBHWPGI.js";import{a as Be,b as Ne,d as He,e as We}from"./chunk-6IAGGRZN.js";import"./chunk-KHWTOD6H.js";import{m as Ge,n as Fe}from"./chunk-ITTRZMEX.js";import{r as _e,s as Xe}from"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{h as Ie,m as Re,y as ze}from"./chunk-DPLEMBB4.js";import{a as Gt,b as Bt,c as It,f as ue}from"./chunk-PXB4YEY3.js";import{J as je,f as Pe,g as Ae,h as Oe,j as Le,k as be,m as Ee,n as qt,x as De}from"./chunk-GPEVUTDI.js";import{$c as $t,Eb as Ht,Ec as kt,Fb as Vt,Fc as _t,Gc as Rt,Hb as ke,Ic as pe,J as oe,Jc as ce,Ka as ne,Kb as Wt,Kc as de,La as Se,Oa as Ce,P as re,Pc as we,Qc as Te,Wb as At,Z as se,Zc as Ot,_b as Kt,_c as Et,gc as yt,hc as vt,ic as Dt,ja as me,jc as ae,ka as Yt,kc as he,mc as Me,oa as ye,ob as zt,q as ie,qb as Ct,rc as le,sc as Zt,v as Xt,wb as Nt,xa as Ut,ya as ve,za as xe}from"./chunk-T5ONJF63.js";import{e as ei,g as ge}from"./chunk-K2H6WANG.js";var fe=ei((Ze,Qt)=>{(function(ct,lt){typeof Qt=="object"&&Qt.exports?(lt.default=lt,Qt.exports=ct.document?lt(ct):lt):typeof define=="function"&&define.amd?define("highcharts/highcharts",function(){return lt(ct)}):(ct.Highcharts&&ct.Highcharts.error(16,!0),ct.Highcharts=lt(ct))})(typeof window<"u"?window:Ze,function(ct){function lt(j,W,Y,Q){j.hasOwnProperty(W)||(j[W]=Q.apply(null,Y),typeof CustomEvent=="function"&&ct.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:W,module:j[W]}})))}var E={};return lt(E,"Core/Globals.js",[],function(){var j;return function(W){W.SVG_NS="http://www.w3.org/2000/svg",W.product="Highcharts",W.version="10.3.3",W.win=typeof ct<"u"?ct:{},W.doc=W.win.document,W.svg=W.doc&&W.doc.createElementNS&&!!W.doc.createElementNS(W.SVG_NS,"svg").createSVGRect,W.userAgent=W.win.navigator&&W.win.navigator.userAgent||"",W.isChrome=W.userAgent.indexOf("Chrome")!==-1,W.isFirefox=W.userAgent.indexOf("Firefox")!==-1,W.isMS=/(edge|msie|trident)/i.test(W.userAgent)&&!W.win.opera,W.isSafari=!W.isChrome&&W.userAgent.indexOf("Safari")!==-1,W.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(W.userAgent),W.isWebKit=W.userAgent.indexOf("AppleWebKit")!==-1,W.deg2rad=2*Math.PI/360,W.hasBidiBug=W.isFirefox&&4>parseInt(W.userAgent.split("Firefox/")[1],10),W.hasTouch=!!W.win.TouchEvent,W.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],W.noop=function(){},W.supportsPassiveEvents=function(){var Y=!1;if(!W.isMS){var Q=Object.defineProperty({},"passive",{get:function(){Y=!0}});W.win.addEventListener&&W.win.removeEventListener&&(W.win.addEventListener("testPassive",W.noop,Q),W.win.removeEventListener("testPassive",W.noop,Q))}return Y}(),W.charts=[],W.dateFormats={},W.seriesTypes={},W.symbolSizes={},W.chartCount=0}(j||(j={})),j}),lt(E,"Core/Utilities.js",[E["Core/Globals.js"]],function(j){function W(i,s,c,a){var m=s?"Highcharts error":"Highcharts warning";i===32&&(i=""+m+": Deprecated member");var A=P(i),F=A?""+m+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(typeof a<"u"){var z="";A&&(F+="?"),D(a,function(e,l){z+=`
|
|
2
2
|
- `.concat(l,": ").concat(e),A&&(F+=encodeURI(l)+"="+encodeURI(e))}),F+=z}k(j,"displayError",{chart:c,code:i,message:F,params:a},function(){if(s)throw Error(F);o.console&&W.messages.indexOf(F)===-1&&console.warn(F)}),W.messages.push(F)}function Y(i,s){var c={};return D(i,function(a,m){K(i[m],!0)&&!i.nodeType&&s[m]?(a=Y(i[m],s[m]),Object.keys(a).length&&(c[m]=a)):(K(i[m])||i[m]!==s[m]||m in i&&!(m in s))&&(c[m]=i[m])}),c}function Q(i,s){return parseInt(i,s||10)}function J(i){return typeof i=="string"}function tt(i){return i=Object.prototype.toString.call(i),i==="[object Array]"||i==="[object Array Iterator]"}function K(i,s){return!!i&&typeof i=="object"&&(!s||!tt(i))}function B(i){return K(i)&&typeof i.nodeType=="number"}function I(i){var s=i&&i.constructor;return!(!K(i,!0)||B(i)||!s||!s.name||s.name==="Object")}function P(i){return typeof i=="number"&&!isNaN(i)&&1/0>i&&-1/0<i}function g(i){return typeof i<"u"&&i!==null}function f(i,s,c){var a=J(s)&&!g(c),m,A=function(F,z){g(F)?i.setAttribute(z,F):a?(m=i.getAttribute(z))||z!=="class"||(m=i.getAttribute(z+"Name")):i.removeAttribute(z)};return J(s)?A(c,s):D(s,A),m}function y(i,s){var c;i||(i={});for(c in s)i[c]=s[c];return i}function C(){for(var i=arguments,s=i.length,c=0;c<s;c++){var a=i[c];if(typeof a<"u"&&a!==null)return a}}function v(i,s){j.isMS&&!j.svg&&s&&g(s.opacity)&&(s.filter="alpha(opacity=".concat(100*s.opacity,")")),y(i.style,s)}function S(i){return Math.pow(10,Math.floor(Math.log(i)/Math.LN10))}function M(i,s){return 1e14<i?i:parseFloat(i.toPrecision(s||14))}function w(i,s,c){var a=j.getStyle||w;if(s==="width")return s=Math.min(i.offsetWidth,i.scrollWidth),c=i.getBoundingClientRect&&i.getBoundingClientRect().width,c<s&&c>=s-1&&(s=Math.floor(c)),Math.max(0,s-(a(i,"padding-left",!0)||0)-(a(i,"padding-right",!0)||0));if(s==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(a(i,"padding-top",!0)||0)-(a(i,"padding-bottom",!0)||0));if(o.getComputedStyle||W(27,!0),i=o.getComputedStyle(i,void 0)){var m=i.getPropertyValue(s);C(c,s!=="opacity")&&(m=Q(m))}return m}function D(i,s,c){for(var a in i)Object.hasOwnProperty.call(i,a)&&s.call(c||i[a],i[a],a,i)}function R(i,s,c){function a(z,e){var l=i.removeEventListener||j.removeEventListenerPolyfill;l&&l.call(i,z,e,!1)}function m(z){var e;if(i.nodeName){if(s){var l={};l[s]=!0}else l=z;D(l,function(T,b){if(z[b])for(e=z[b].length;e--;)a(b,z[b][e].fn)})}}var A=typeof i=="function"&&i.prototype||i;if(Object.hasOwnProperty.call(A,"hcEvents")){var F=A.hcEvents;s?(A=F[s]||[],c?(F[s]=A.filter(function(z){return c!==z.fn}),a(s,c)):(m(F),F[s]=[])):(m(F),delete A.hcEvents)}}function k(i,s,c,a){if(c=c||{},d.createEvent&&(i.dispatchEvent||i.fireEvent&&i!==j)){var m=d.createEvent("Events");m.initEvent(s,!0,!0),c=y(m,c),i.dispatchEvent?i.dispatchEvent(c):i.fireEvent(s,c)}else if(i.hcEvents){c.target||y(c,{preventDefault:function(){c.defaultPrevented=!0},target:i,type:s}),m=[];for(var A=i,F=!1;A.hcEvents;)Object.hasOwnProperty.call(A,"hcEvents")&&A.hcEvents[s]&&(m.length&&(F=!0),m.unshift.apply(m,A.hcEvents[s])),A=Object.getPrototypeOf(A);F&&m.sort(function(z,e){return z.order-e.order}),m.forEach(function(z){z.fn.call(i,c)===!1&&c.preventDefault()})}a&&!c.defaultPrevented&&a.call(i,c)}var r=j.charts,d=j.doc,o=j.win;(W||(W={})).messages=[],Math.easeInOutSine=function(i){return-.5*(Math.cos(Math.PI*i)-1)};var h=Array.prototype.find?function(i,s){return i.find(s)}:function(i,s){var c,a=i.length;for(c=0;c<a;c++)if(s(i[c],c))return i[c]};D({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,s){j[s]=function(c){var a;return W(32,!1,void 0,(a={},a["Highcharts.".concat(s)]="use Array.".concat(i),a)),Array.prototype[i].apply(c,[].slice.call(arguments,1))}});var t,p=function(){var i=Math.random().toString(36).substring(2,9)+"-",s=0;return function(){return"highcharts-"+(t?"":i)+s++}}();return o.jQuery&&(o.jQuery.fn.highcharts=function(){var i=[].slice.call(arguments);if(this[0])return i[0]?(new j[J(i[0])?i.shift():"Chart"](this[0],i[0],i[1]),this):r[f(this[0],"data-highcharts-chart")]}),h={addEvent:function(i,s,c,a){a===void 0&&(a={});var m=typeof i=="function"&&i.prototype||i;Object.hasOwnProperty.call(m,"hcEvents")||(m.hcEvents={}),m=m.hcEvents,j.Point&&i instanceof j.Point&&i.series&&i.series.chart&&(i.series.chart.runTrackerClick=!0);var A=i.addEventListener||j.addEventListenerPolyfill;return A&&A.call(i,s,c,j.supportsPassiveEvents?{passive:a.passive===void 0?s.indexOf("touch")!==-1:a.passive,capture:!1}:!1),m[s]||(m[s]=[]),m[s].push({fn:c,order:typeof a.order=="number"?a.order:1/0}),m[s].sort(function(F,z){return F.order-z.order}),function(){R(i,s,c)}},arrayMax:function(i){for(var s=i.length,c=i[0];s--;)i[s]>c&&(c=i[s]);return c},arrayMin:function(i){for(var s=i.length,c=i[0];s--;)i[s]<c&&(c=i[s]);return c},attr:f,clamp:function(i,s,c){return i>s?i<c?i:c:s},cleanRecursively:Y,clearTimeout:function(i){g(i)&&clearTimeout(i)},correctFloat:M,createElement:function(i,s,c,a,m){return i=d.createElement(i),s&&y(i,s),m&&v(i,{padding:"0",border:"none",margin:"0"}),c&&v(i,c),a&&a.appendChild(i),i},css:v,defined:g,destroyObjectProperties:function(i,s){D(i,function(c,a){c&&c!==s&&c.destroy&&c.destroy(),delete i[a]})},discardElement:function(i){i&&i.parentElement&&i.parentElement.removeChild(i)},erase:function(i,s){for(var c=i.length;c--;)if(i[c]===s){i.splice(c,1);break}},error:W,extend:y,extendClass:function(i,s){var c=function(){};return c.prototype=new i,y(c.prototype,s),c},find:h,fireEvent:k,getMagnitude:S,getNestedProperty:function(i,s){for(i=i.split(".");i.length&&g(s);){var c=i.shift();if(typeof c>"u"||c==="__proto__"||(s=s[c],!g(s)||typeof s=="function"||typeof s.nodeType=="number"||s===o))return}return s},getStyle:w,inArray:function(i,s,c){return W(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),s.indexOf(i,c)},isArray:tt,isClass:I,isDOMElement:B,isFunction:function(i){return typeof i=="function"},isNumber:P,isObject:K,isString:J,keys:function(i){return W(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(i)},merge:function(){var i,s=arguments,c={},a=function(A,F){return typeof A!="object"&&(A={}),D(F,function(z,e){e!=="__proto__"&&e!=="constructor"&&(!K(z,!0)||I(z)||B(z)?A[e]=F[e]:A[e]=a(A[e]||{},z))}),A};s[0]===!0&&(c=s[1],s=Array.prototype.slice.call(s,2));var m=s.length;for(i=0;i<m;i++)c=a(c,s[i]);return c},normalizeTickInterval:function(i,s,c,a,m){var A=i;c=C(c,S(i));var F=i/c;for(s||(s=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],a===!1&&(c===1?s=s.filter(function(z){return z%1===0}):.1>=c&&(s=[1/c]))),a=0;a<s.length&&(A=s[a],!(m&&A*c>=i||!m&&F<=(s[a]+(s[a+1]||s[a]))/2));a++);return A=M(A*c,-Math.round(Math.log(.001)/Math.LN10))},objectEach:D,offset:function(i){var s=d.documentElement;return i=i.parentElement||i.parentNode?i.getBoundingClientRect():{top:0,left:0,width:0,height:0},{top:i.top+(o.pageYOffset||s.scrollTop)-(s.clientTop||0),left:i.left+(o.pageXOffset||s.scrollLeft)-(s.clientLeft||0),width:i.width,height:i.height}},pad:function(i,s,c){return Array((s||2)+1-String(i).replace("-","").length).join(c||"0")+i},pick:C,pInt:Q,relativeLength:function(i,s,c){return/%$/.test(i)?s*parseFloat(i)/100+(c||0):parseFloat(i)},removeEvent:R,splat:function(i){return tt(i)?i:[i]},stableSort:function(i,s){var c=i.length,a,m;for(m=0;m<c;m++)i[m].safeI=m;for(i.sort(function(A,F){return a=s(A,F),a===0?A.safeI-F.safeI:a}),m=0;m<c;m++)delete i[m].safeI},syncTimeout:function(i,s,c){return 0<s?setTimeout(i,s,c):(i.call(0,c),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:p,useSerialIds:function(i){return t=C(i,t)},wrap:function(i,s,c){var a=i[s];i[s]=function(){var m=arguments,A=this;return c.apply(this,[function(){return a.apply(A,arguments.length?arguments:m)}].concat([].slice.call(arguments)))}}},h}),lt(E,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),lt(E,"Core/Color/Color.js",[E["Core/Globals.js"],E["Core/Utilities.js"]],function(j,W){var Y=W.isNumber,Q=W.merge,J=W.pInt;return W=function(){function tt(K){this.rgba=[NaN,NaN,NaN,NaN],this.input=K;var B=j.Color;if(B&&B!==tt)return new B(K);if(!(this instanceof tt))return new tt(K);this.init(K)}return tt.parse=function(K){return K?new tt(K):tt.None},tt.prototype.init=function(K){var B;if(typeof K=="object"&&typeof K.stops<"u")this.stops=K.stops.map(function(f){return new tt(f[1])});else if(typeof K=="string"){if(this.input=K=tt.names[K.toLowerCase()]||K,K.charAt(0)==="#"){var I=K.length,P=parseInt(K.substr(1),16);I===7?B=[(P&16711680)>>16,(P&65280)>>8,P&255,1]:I===4&&(B=[(P&3840)>>4|(P&3840)>>8,(P&240)>>4|P&240,(P&15)<<4|P&15,1])}if(!B)for(P=tt.parsers.length;P--&&!B;){var g=tt.parsers[P];(I=g.regex.exec(K))&&(B=g.parse(I))}}B&&(this.rgba=B)},tt.prototype.get=function(K){var B=this.input,I=this.rgba;if(typeof B=="object"&&typeof this.stops<"u"){var P=Q(B);return P.stops=[].slice.call(P.stops),this.stops.forEach(function(g,f){P.stops[f]=[P.stops[f][0],g.get(K)]}),P}return I&&Y(I[0])?K==="rgb"||!K&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":K==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":B},tt.prototype.brighten=function(K){var B=this.rgba;if(this.stops)this.stops.forEach(function(P){P.brighten(K)});else if(Y(K)&&K!==0)for(var I=0;3>I;I++)B[I]+=J(255*K),0>B[I]&&(B[I]=0),255<B[I]&&(B[I]=255);return this},tt.prototype.setOpacity=function(K){return this.rgba[3]=K,this},tt.prototype.tweenTo=function(K,B){var I=this.rgba,P=K.rgba;return!Y(I[0])||!Y(P[0])?K.input||"none":(K=P[3]!==1||I[3]!==1,(K?"rgba(":"rgb(")+Math.round(P[0]+(I[0]-P[0])*(1-B))+","+Math.round(P[1]+(I[1]-P[1])*(1-B))+","+Math.round(P[2]+(I[2]-P[2])*(1-B))+(K?","+(P[3]+(I[3]-P[3])*(1-B)):"")+")")},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(K){return[J(K[1]),J(K[2]),J(K[3]),parseFloat(K[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(K){return[J(K[1]),J(K[2]),J(K[3]),1]}}],tt.None=new tt(""),tt}(),W}),lt(E,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),lt(E,"Core/Time.js",[E["Core/Globals.js"],E["Core/Utilities.js"]],function(j,W){var Y=j.win,Q=W.defined,J=W.error,tt=W.extend,K=W.isObject,B=W.merge,I=W.objectEach,P=W.pad,g=W.pick,f=W.splat,y=W.timeUnits,C=j.isSafari&&Y.Intl&&Y.Intl.DateTimeFormat.prototype.formatRange,v=j.isSafari&&Y.Intl&&!Y.Intl.DateTimeFormat.prototype.formatRange;return W=function(){function S(M){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=Y.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(M)}return S.prototype.get=function(M,w){if(this.variableTimezone||this.timezoneOffset){var D=w.getTime(),R=D-this.getTimezoneOffset(w);return w.setTime(R),M=w["getUTC"+M](),w.setTime(D),M}return this.useUTC?w["getUTC"+M]():w["get"+M]()},S.prototype.set=function(M,w,D){if(this.variableTimezone||this.timezoneOffset){if(M==="Milliseconds"||M==="Seconds"||M==="Minutes"&&this.getTimezoneOffset(w)%36e5===0)return w["setUTC"+M](D);var R=this.getTimezoneOffset(w);return R=w.getTime()-R,w.setTime(R),w["setUTC"+M](D),M=this.getTimezoneOffset(w),R=w.getTime()+M,w.setTime(R)}return this.useUTC||C&&M==="FullYear"?w["setUTC"+M](D):w["set"+M](D)},S.prototype.update=function(M){M===void 0&&(M={});var w=g(M.useUTC,!0);this.options=M=B(!0,this.options,M),this.Date=M.Date||Y.Date||Date,this.timezoneOffset=(this.useUTC=w)&&M.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=w&&!(!M.getTimezoneOffset&&!M.timezone)},S.prototype.makeTime=function(M,w,D,R,k,r){if(this.useUTC){var d=this.Date.UTC.apply(0,arguments),o=this.getTimezoneOffset(d);d+=o;var h=this.getTimezoneOffset(d);o!==h?d+=h-o:o-36e5!==this.getTimezoneOffset(d-36e5)||v||(d-=36e5)}else d=new this.Date(M,w,g(D,1),g(R,0),g(k,0),g(r,0)).getTime();return d},S.prototype.timezoneOffsetFunction=function(){var M=this,w=this.options,D=w.getTimezoneOffset,R=w.moment||Y.moment;if(!this.useUTC)return function(k){return 6e4*new Date(k.toString()).getTimezoneOffset()};if(w.timezone){if(R)return function(k){return 6e4*-R.tz(k,w.timezone).utcOffset()};J(25)}return this.useUTC&&D?function(k){return 6e4*D(k.valueOf())}:function(){return 6e4*(M.timezoneOffset||0)}},S.prototype.dateFormat=function(M,w,D){if(!Q(w)||isNaN(w))return j.defaultOptions.lang&&j.defaultOptions.lang.invalidDate||"";M=g(M,"%Y-%m-%d %H:%M:%S");var R=this,k=new this.Date(w),r=this.get("Hours",k),d=this.get("Day",k),o=this.get("Date",k),h=this.get("Month",k),t=this.get("FullYear",k),p=j.defaultOptions.lang,i=p&&p.weekdays,s=p&&p.shortWeekdays;return k=tt({a:s?s[d]:i[d].substr(0,3),A:i[d],d:P(o),e:P(o,2," "),w:d,b:p.shortMonths[h],B:p.months[h],m:P(h+1),o:h+1,y:t.toString().substr(2,2),Y:t,H:P(r),k:r,I:P(r%12||12),l:r%12||12,M:P(this.get("Minutes",k)),p:12>r?"AM":"PM",P:12>r?"am":"pm",S:P(k.getSeconds()),L:P(Math.floor(w%1e3),3)},j.dateFormats),I(k,function(c,a){for(;M.indexOf("%"+a)!==-1;)M=M.replace("%"+a,typeof c=="function"?c.call(R,w):c)}),D?M.substr(0,1).toUpperCase()+M.substr(1):M},S.prototype.resolveDTLFormat=function(M){return K(M,!0)?M:(M=f(M),{main:M[0],from:M[1],to:M[2]})},S.prototype.getTimeTicks=function(M,w,D,R){var k=this,r=[],d={},o=new k.Date(w),h=M.unitRange,t=M.count||1,p;if(R=g(R,1),Q(w)){if(k.set("Milliseconds",o,h>=y.second?0:t*Math.floor(k.get("Milliseconds",o)/t)),h>=y.second&&k.set("Seconds",o,h>=y.minute?0:t*Math.floor(k.get("Seconds",o)/t)),h>=y.minute&&k.set("Minutes",o,h>=y.hour?0:t*Math.floor(k.get("Minutes",o)/t)),h>=y.hour&&k.set("Hours",o,h>=y.day?0:t*Math.floor(k.get("Hours",o)/t)),h>=y.day&&k.set("Date",o,h>=y.month?1:Math.max(1,t*Math.floor(k.get("Date",o)/t))),h>=y.month){k.set("Month",o,h>=y.year?0:t*Math.floor(k.get("Month",o)/t));var i=k.get("FullYear",o)}h>=y.year&&k.set("FullYear",o,i-i%t),h===y.week&&(i=k.get("Day",o),k.set("Date",o,k.get("Date",o)-i+R+(i<R?-7:0))),i=k.get("FullYear",o),R=k.get("Month",o);var s=k.get("Date",o),c=k.get("Hours",o);for(w=o.getTime(),!k.variableTimezone&&k.useUTC||!Q(D)||(p=D-w>4*y.month||k.getTimezoneOffset(w)!==k.getTimezoneOffset(D)),w=o.getTime(),o=1;w<D;)r.push(w),w=h===y.year?k.makeTime(i+o*t,0):h===y.month?k.makeTime(i,R+o*t):!p||h!==y.day&&h!==y.week?p&&h===y.hour&&1<t?k.makeTime(i,R,s,c+o*t):w+h*t:k.makeTime(i,R,s+o*t*(h===y.day?1:7)),o++;r.push(w),h<=y.hour&&1e4>r.length&&r.forEach(function(a){a%18e5===0&&k.dateFormat("%H%M%S%L",a)==="000000000"&&(d[a]="day")})}return r.info=tt(M,{higherRanks:d,totalRange:h*t}),r},S.prototype.getDateFormat=function(M,w,D,R){var k=this.dateFormat("%m-%d %H:%M:%S.%L",w),r={millisecond:15,second:12,minute:9,hour:6,day:3},d="millisecond";for(o in y){if(M===y.week&&+this.dateFormat("%w",w)===D&&k.substr(6)==="00:00:00.000"){var o="week";break}if(y[o]>M){o=d;break}if(r[o]&&k.substr(r[o])!=="01-01 00:00:00.000".substr(r[o]))break;o!=="week"&&(d=o)}return this.resolveDTLFormat(R[o]).main},S}(),W}),lt(E,"Core/Defaults.js",[E["Core/Chart/ChartDefaults.js"],E["Core/Color/Color.js"],E["Core/Globals.js"],E["Core/Color/Palettes.js"],E["Core/Time.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J,tt){W=W.parse;var K=tt.merge,B={colors:Q.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:j,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:Y.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:Y.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:W("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},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:"9px"},text:"Highcharts.com"}};B.chart.styledMode=!1;var I=new J(K(B.global,B.time));return j={defaultOptions:B,defaultTime:I,getOptions:function(){return B},setOptions:function(P){return K(!0,B,P),(P.time||P.global)&&(Y.time?Y.time.update(K(B.global,B.time,P.global,P.time)):Y.time=I),B}},j}),lt(E,"Core/Animation/Fx.js",[E["Core/Color/Color.js"],E["Core/Globals.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=j.parse,J=W.win,tt=Y.isNumber,K=Y.objectEach;return function(){function B(I,P,g){this.pos=NaN,this.options=P,this.elem=I,this.prop=g}return B.prototype.dSetter=function(){var I=this.paths,P=I&&I[0];I=I&&I[1];var g=this.now||0,f=[];if(g!==1&&P&&I)if(P.length===I.length&&1>g)for(var y=0;y<I.length;y++){for(var C=P[y],v=I[y],S=[],M=0;M<v.length;M++){var w=C[M],D=v[M];tt(w)&&tt(D)&&(v[0]!=="A"||M!==4&&M!==5)?S[M]=w+g*(D-w):S[M]=D}f.push(S)}else f=I;else f=this.toD||[];this.elem.attr("d",f,void 0,!0)},B.prototype.update=function(){var I=this.elem,P=this.prop,g=this.now,f=this.options.step;this[P+"Setter"]?this[P+"Setter"]():I.attr?I.element&&I.attr(P,g,null,!0):I.style[P]=g+this.unit,f&&f.call(I,g,this)},B.prototype.run=function(I,P,g){var f=this,y=f.options,C=function(M){return C.stopped?!1:f.step(M)},v=J.requestAnimationFrame||function(M){setTimeout(M,13)},S=function(){for(var M=0;M<B.timers.length;M++)B.timers[M]()||B.timers.splice(M--,1);B.timers.length&&v(S)};I!==P||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=I,this.end=P,this.unit=g,this.now=this.start,this.pos=0,C.elem=this.elem,C.prop=this.prop,C()&&B.timers.push(C)===1&&v(S)):(delete y.curAnim[this.prop],y.complete&&Object.keys(y.curAnim).length===0&&y.complete.call(this.elem))},B.prototype.step=function(I){var P=+new Date,g=this.options,f=this.elem,y=g.complete,C=g.duration,v=g.curAnim;if(f.attr&&!f.element)I=!1;else if(I||P>=C+this.startTime){this.now=this.end,this.pos=1,this.update();var S=v[this.prop]=!0;K(v,function(M){M!==!0&&(S=!1)}),S&&y&&y.call(f),I=!1}else this.pos=g.easing((P-this.startTime)/C),this.now=this.start+(this.end-this.start)*this.pos,this.update(),I=!0;return I},B.prototype.initPath=function(I,P,g){function f(k,r){for(;k.length<R;){var d=k[0],o=r[R-k.length];o&&d[0]==="M"&&(k[0]=o[0]==="C"?["C",d[1],d[2],d[1],d[2],d[1],d[2]]:["L",d[1],d[2]]),k.unshift(d),S&&(d=k.pop(),k.push(k[k.length-1],d))}}function y(k,r){for(;k.length<R;)if(r=k[Math.floor(k.length/M)-1].slice(),r[0]==="C"&&(r[1]=r[5],r[2]=r[6]),S){var d=k[Math.floor(k.length/M)].slice();k.splice(k.length/2,0,r,d)}else k.push(r)}var C=I.startX,v=I.endX;g=g.slice();var S=I.isArea,M=S?2:1;if(P=P&&P.slice(),!P)return[g,g];if(C&&v&&v.length){for(I=0;I<C.length;I++)if(C[I]===v[0]){var w=I;break}else if(C[0]===v[v.length-C.length+I]){w=I;var D=!0;break}else if(C[C.length-1]===v[v.length-C.length+I]){w=C.length-I;break}typeof w>"u"&&(P=[])}if(P.length&&tt(w)){var R=g.length+w*M;D?(f(P,g),y(g,P)):(f(g,P),y(P,g))}return[P,g]},B.prototype.fillSetter=function(){B.prototype.strokeSetter.apply(this,arguments)},B.prototype.strokeSetter=function(){this.elem.attr(this.prop,Q(this.start).tweenTo(Q(this.end),this.pos),void 0,!0)},B.timers=[],B}()}),lt(E,"Core/Animation/AnimationUtilities.js",[E["Core/Animation/Fx.js"],E["Core/Utilities.js"]],function(j,W){function Y(y){return I(y)?P({duration:500,defer:0},y):{duration:y?500:0,defer:0}}function Q(y,C){for(var v=j.timers.length;v--;)j.timers[v].elem!==y||C&&C!==j.timers[v].prop||(j.timers[v].stopped=!0)}var J=W.defined,tt=W.getStyle,K=W.isArray,B=W.isNumber,I=W.isObject,P=W.merge,g=W.objectEach,f=W.pick;return{animate:function(y,C,v){var S,M="",w,D;if(!I(v)){var R=arguments;v={duration:R[2],easing:R[3],complete:R[4]}}B(v.duration)||(v.duration=400),v.easing=typeof v.easing=="function"?v.easing:Math[v.easing]||Math.easeInOutSine,v.curAnim=P(C),g(C,function(k,r){Q(y,r),D=new j(y,v,r),w=void 0,r==="d"&&K(C.d)?(D.paths=D.initPath(y,y.pathArray,C.d),D.toD=C.d,S=0,w=1):y.attr?S=y.attr(r):(S=parseFloat(tt(y,r))||0,r!=="opacity"&&(M="px")),w||(w=k),typeof w=="string"&&w.match("px")&&(w=w.replace(/px/g,"")),D.run(S,w,M)})},animObject:Y,getDeferredAnimation:function(y,C,v){var S=Y(C),M=0,w=0;return(v?[v]:y.series).forEach(function(D){D=Y(D.options.animation),M=C&&J(C.defer)?S.defer:Math.max(M,D.duration+D.defer),w=Math.min(S.duration,D.duration)}),y.renderer.forExport&&(M=0),{defer:Math.max(0,M-w),duration:Math.min(M,w)}},setAnimation:function(y,C){C.renderer.globalAnimation=f(y,C.options.chart.animation,!0)},stop:Q}}),lt(E,"Core/Renderer/HTML/AST.js",[E["Core/Globals.js"],E["Core/Utilities.js"]],function(j,W){var Y=j.SVG_NS,Q=W.attr,J=W.createElement,tt=W.css,K=W.error,B=W.isFunction,I=W.isString,P=W.objectEach,g=W.splat,f=(W=j.win.trustedTypes)&&B(W.createPolicy)&&W.createPolicy("highcharts",{createHTML:function(v){return v}}),y=f?f.createHTML(""):"";try{var C=!!new DOMParser().parseFromString(y,"text/html")}catch{C=!1}return B=function(){function v(S){this.nodes=typeof S=="string"?this.parseMarkup(S):S}return v.filterUserAttributes=function(S){return P(S,function(M,w){var D=!0;v.allowedAttributes.indexOf(w)===-1&&(D=!1),["background","dynsrc","href","lowsrc","src"].indexOf(w)!==-1&&(D=I(M)&&v.allowedReferences.some(function(R){return M.indexOf(R)===0})),D||(K(33,!1,void 0,{"Invalid attribute in config":"".concat(w)}),delete S[w]),I(M)&&S[w]&&(S[w]=M.replace(/</g,"<"))}),S},v.parseStyle=function(S){return S.split(";").reduce(function(M,w){w=w.split(":").map(function(R){return R.trim()});var D=w.shift();return D&&w.length&&(M[D.replace(/-([a-z])/g,function(R){return R[1].toUpperCase()})]=w.join(":")),M},{})},v.setElementHTML=function(S,M){S.innerHTML=v.emptyHTML,M&&new v(M).addToDOM(S)},v.prototype.addToDOM=function(S){function M(w,D){var R;return g(w).forEach(function(k){var r=k.tagName,d=k.textContent?j.doc.createTextNode(k.textContent):void 0,o=v.bypassHTMLFiltering;if(r)if(r==="#text")var h=d;else if(v.allowedTags.indexOf(r)!==-1||o){r=j.doc.createElementNS(r==="svg"?Y:D.namespaceURI||Y,r);var t=k.attributes||{};P(k,function(p,i){i!=="tagName"&&i!=="attributes"&&i!=="children"&&i!=="style"&&i!=="textContent"&&(t[i]=p)}),Q(r,o?t:v.filterUserAttributes(t)),k.style&&tt(r,k.style),d&&r.appendChild(d),M(k.children||[],r),h=r}else K(33,!1,void 0,{"Invalid tagName in config":r});h&&D.appendChild(h),R=h}),R}return M(this.nodes,S)},v.prototype.parseMarkup=function(S){var M=[];if(S=S.trim().replace(/ style=(["'])/g," data-style=$1"),C)S=new DOMParser().parseFromString(f?f.createHTML(S):S,"text/html");else{var w=J("div");w.innerHTML=S,S={body:w}}var D=function(R,k){var r=R.nodeName.toLowerCase(),d={tagName:r};if(r==="#text"&&(d.textContent=R.textContent||""),r=R.attributes){var o={};[].forEach.call(r,function(t){t.name==="data-style"?d.style=v.parseStyle(t.value):o[t.name]=t.value}),d.attributes=o}if(R.childNodes.length){var h=[];[].forEach.call(R.childNodes,function(t){D(t,h)}),h.length&&(d.children=h)}k.push(d)};return[].forEach.call(S.body.childNodes,function(R){return D(R,M)}),M},v.allowedAttributes="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 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(" "),v.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),v.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer 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(" "),v.emptyHTML=y,v.bypassHTMLFiltering=!1,v}(),B}),lt(E,"Core/FormatUtilities.js",[E["Core/Defaults.js"],E["Core/Utilities.js"]],function(j,W){function Y(P,g,f,y){P=+P||0,g=+g;var C=Q.lang,v=(P.toString().split(".")[1]||"").split("e")[0].length,S=P.toString().split("e"),M=g;if(g===-1)g=Math.min(v,20);else if(!K(g))g=2;else if(g&&S[1]&&0>S[1]){var w=g+ +S[1];0<=w?(S[0]=(+S[0]).toExponential(w).split("e")[0],g=w):(S[0]=S[0].split(".")[0]||0,P=20>g?(S[0]*Math.pow(10,S[1])).toFixed(g):0,S[1]=0)}w=(Math.abs(S[1]?S[0]:P)+Math.pow(10,-Math.max(g,v)-1)).toFixed(g),v=String(I(w));var D=3<v.length?v.length%3:0;return f=B(f,C.decimalPoint),y=B(y,C.thousandsSep),P=(0>P?"-":"")+(D?v.substr(0,D)+y:""),P=0>+S[1]&&!M?"0":P+v.substr(D).replace(/(\d{3})(?=\d)/g,"$1"+y),g&&(P+=f+w.slice(-g)),S[1]&&+P!=0&&(P+="e"+S[1]),P}var Q=j.defaultOptions,J=j.defaultTime,tt=W.getNestedProperty,K=W.isNumber,B=W.pick,I=W.pInt;return{dateFormat:function(P,g,f){return J.dateFormat(P,g,f)},format:function(P,g,f){var y="{",C=!1,v=/f$/,S=/\.([0-9])/,M=Q.lang,w=f&&f.time||J;f=f&&f.numberFormatter||Y;for(var D=[];P;){var R=P.indexOf(y);if(R===-1)break;var k=P.slice(0,R);if(C){if(k=k.split(":"),y=tt(k.shift()||"",g),k.length&&typeof y=="number")if(k=k.join(":"),v.test(k)){var r=parseInt((k.match(S)||["","-1"])[1],10);y!==null&&(y=f(y,r,M.decimalPoint,-1<k.indexOf(",")?M.thousandsSep:""))}else y=w.dateFormat(k,y);D.push(y)}else D.push(k);P=P.slice(R+1),y=(C=!C)?"}":"{"}return D.push(P),D.join("")},numberFormat:Y}}),lt(E,"Core/Renderer/RendererUtilities.js",[E["Core/Utilities.js"]],function(j){var W=j.clamp,Y=j.pick,Q=j.stableSort,J;return function(tt){function K(B,I,P){var g=B,f=g.reducedLen||I,y=function(D,R){return(R.rank||0)-(D.rank||0)},C=function(D,R){return D.target-R.target},v,S=!0,M=[],w=0;for(v=B.length;v--;)w+=B[v].size;if(w>f){for(Q(B,y),w=v=0;w<=f;)w+=B[v].size,v++;M=B.splice(v-1,B.length)}for(Q(B,C),B=B.map(function(D){return{size:D.size,targets:[D.target],align:Y(D.align,.5)}});S;){for(v=B.length;v--;)f=B[v],y=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=W(y-f.size*f.align,0,I-f.size);for(v=B.length,S=!1;v--;)0<v&&B[v-1].pos+B[v-1].size>B[v].pos&&(B[v-1].size+=B[v].size,B[v-1].targets=B[v-1].targets.concat(B[v].targets),B[v-1].align=.5,B[v-1].pos+B[v-1].size>I&&(B[v-1].pos=I-B[v-1].size),B.splice(v,1),S=!0)}return g.push.apply(g,M),v=0,B.some(function(D){var R=0;return(D.targets||[]).some(function(){return g[v].pos=D.pos+R,typeof P<"u"&&Math.abs(g[v].pos-g[v].target)>P?(g.slice(0,v+1).forEach(function(k){return delete k.pos}),g.reducedLen=(g.reducedLen||I)-.1*I,g.reducedLen>.1*I&&K(g,I,P),!0):(R+=g[v].size,v++,!1)})}),Q(g,C),g}tt.distribute=K}(J||(J={})),J}),lt(E,"Core/Renderer/SVG/SVGElement.js",[E["Core/Animation/AnimationUtilities.js"],E["Core/Color/Color.js"],E["Core/Globals.js"],E["Core/Utilities.js"]],function(j,W,Y,Q){var J=j.animate,tt=j.animObject,K=j.stop,B=Y.deg2rad,I=Y.doc,P=Y.svg,g=Y.SVG_NS,f=Y.win,y=Q.addEvent,C=Q.attr,v=Q.createElement,S=Q.css,M=Q.defined,w=Q.erase,D=Q.extend,R=Q.fireEvent,k=Q.isArray,r=Q.isFunction,d=Q.isString,o=Q.merge,h=Q.objectEach,t=Q.pick,p=Q.pInt,i=Q.syncTimeout,s=Q.uniqueKey;return j=function(){function c(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=g,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return c.prototype._defaultGetter=function(a){return a=t(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},c.prototype._defaultSetter=function(a,m,A){A.setAttribute(m,a)},c.prototype.add=function(a){var m=this.renderer,A=this.element;if(a&&(this.parentGroup=a),typeof this.textStr<"u"&&this.element.nodeName==="text"&&m.buildText(this),this.added=!0,!a||a.handleZ||this.zIndex)var F=this.zIndexSetter();return F||(a?a.element:m.box).appendChild(A),this.onAdd&&this.onAdd(),this},c.prototype.addClass=function(a,m){var A=m?"":this.attr("class")||"";return a=(a||"").split(/ /g).reduce(function(F,z){return A.indexOf(z)===-1&&F.push(z),F},A?[A]:[]).join(" "),a!==A&&this.attr("class",a),this},c.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},c.prototype.align=function(a,m,A){var F={},z=this.renderer,e=z.alignedObjects,l,T,b;a?(this.alignOptions=a,this.alignByTranslate=m,(!A||d(A))&&(this.alignTo=l=A||"renderer",w(e,this),e.push(this),A=void 0)):(a=this.alignOptions,m=this.alignByTranslate,l=this.alignTo),A=t(A,z[l],l==="scrollablePlotBox"?z.plotBox:void 0,z),l=a.align;var O=a.verticalAlign;return z=(A.x||0)+(a.x||0),e=(A.y||0)+(a.y||0),l==="right"?T=1:l==="center"&&(T=2),T&&(z+=(A.width-(a.width||0))/T),F[m?"translateX":"x"]=Math.round(z),O==="bottom"?b=1:O==="middle"&&(b=2),b&&(e+=(A.height-(a.height||0))/b),F[m?"translateY":"y"]=Math.round(e),this[this.placed?"animate":"attr"](F),this.placed=!0,this.alignAttr=F,this},c.prototype.alignSetter=function(a){var m={left:"start",center:"middle",right:"end"};m[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",m[a]))},c.prototype.animate=function(a,m,A){var F=this,z=tt(t(m,this.renderer.globalAnimation,!0));return m=z.defer,t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(z.duration=0),z.duration!==0?(A&&(z.complete=A),i(function(){F.element&&J(F,a,z)},m)):(this.attr(a,void 0,A||z.complete),h(a,function(e,l){z.step&&z.step.call(this,e,{prop:l,pos:1,elem:this})},this)),this},c.prototype.applyTextOutline=function(a){var m=this.element;a.indexOf("contrast")!==-1&&(a=a.replace(/contrast/g,this.renderer.getContrast(m.style.fill)));var A=a.split(" ");if(a=A[A.length-1],(A=A[0])&&A!=="none"&&Y.svg){this.fakeTS=!0,A=A.replace(/(^[\d\.]+)(.*?)$/g,function(e,l,T){return 2*Number(l)+T}),this.removeTextOutline();var F=I.createElementNS(g,"tspan");C(F,{class:"highcharts-text-outline",fill:a,stroke:a,"stroke-width":A,"stroke-linejoin":"round"}),a=m.querySelector("textPath")||m,[].forEach.call(a.childNodes,function(e){var l=e.cloneNode(!0);l.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(T){return l.removeAttribute(T)}),F.appendChild(l)});var z=0;[].forEach.call(a.querySelectorAll("text tspan"),function(e){z+=Number(e.getAttribute("dy"))}),A=I.createElementNS(g,"tspan"),A.textContent="\u200B",C(A,{x:Number(m.getAttribute("x")),dy:-z}),F.appendChild(A),a.insertBefore(F,a.firstChild)}},c.prototype.attr=function(a,m,A,F){var z=this.element,e=this.symbolCustomAttribs,l,T=this,b,O;if(typeof a=="string"&&typeof m<"u"){var n=a;a={},a[n]=m}return typeof a=="string"?T=(this[a+"Getter"]||this._defaultGetter).call(this,a,z):(h(a,function(x,u){b=!1,F||K(this,u),this.symbolName&&e.indexOf(u)!==-1&&(l||(this.symbolAttr(a),l=!0),b=!0),!this.rotation||u!=="x"&&u!=="y"||(this.doTransform=!0),b||(O=this[u+"Setter"]||this._defaultSetter,O.call(this,x,u,z),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(u)&&this.updateShadows(u,x,O))},this),this.afterSetters()),A&&A.call(this),T},c.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},c.prototype.crisp=function(a,m){m=m||a.strokeWidth||0;var A=Math.round(m)%2/2;return a.x=Math.floor(a.x||this.x||0)+A,a.y=Math.floor(a.y||this.y||0)+A,a.width=Math.floor((a.width||this.width||0)-2*A),a.height=Math.floor((a.height||this.height||0)-2*A),M(a.strokeWidth)&&(a.strokeWidth=m),a},c.prototype.complexColor=function(a,m,A){var F=this.renderer,z,e,l,T,b,O,n,x,u,N,L=[],H;R(this.renderer,"complexColor",{args:arguments},function(){if(a.radialGradient?e="radialGradient":a.linearGradient&&(e="linearGradient"),e){if(l=a[e],b=F.gradients,O=a.stops,u=A.radialReference,k(l)&&(a[e]=l={x1:l[0],y1:l[1],x2:l[2],y2:l[3],gradientUnits:"userSpaceOnUse"}),e==="radialGradient"&&u&&!M(l.gradientUnits)&&(T=l,l=o(l,F.getRadialAttr(u,T),{gradientUnits:"userSpaceOnUse"})),h(l,function(U,V){V!=="id"&&L.push(V,U)}),h(O,function(U){L.push(U)}),L=L.join(","),b[L])N=b[L].attr("id");else{l.id=N=s();var G=b[L]=F.createElement(e).attr(l).add(F.defs);G.radAttr=T,G.stops=[],O.forEach(function(U){U[1].indexOf("rgba")===0?(z=W.parse(U[1]),n=z.get("rgb"),x=z.get("a")):(n=U[1],x=1),U=F.createElement("stop").attr({offset:U[0],"stop-color":n,"stop-opacity":x}).add(G),G.stops.push(U)})}H="url("+F.url+"#"+N+")",A.setAttribute(m,H),A.gradient=L,a.toString=function(){return H}}})},c.prototype.css=function(a){var m=this.styles,A={},F=this.element,z=!m;if(a.color&&(a.fill=a.color),m&&h(a,function(T,b){m&&m[b]!==T&&(A[b]=T,z=!0)}),z){if(m&&(a=D(m,A)),a.width===null||a.width==="auto")delete this.textWidth;else if(F.nodeName.toLowerCase()==="text"&&a.width)var e=this.textWidth=p(a.width);this.styles=a,e&&!P&&this.renderer.forExport&&delete a.width;var l=o(a);F.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(T){return l&&delete l[T]}),S(F,l),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),a.textOutline&&this.applyTextOutline(a.textOutline))}return this},c.prototype.dashstyleSetter=function(a){var m=this["stroke-width"];if(m==="inherit"&&(m=1),a=a&&a.toLowerCase()){var A=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(a=A.length;a--;)A[a]=""+p(A[a])*t(m,NaN);a=A.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}},c.prototype.destroy=function(){var a=this,m=a.element||{},A=a.renderer,F=m.ownerSVGElement,z=A.isSVG&&m.nodeName==="SPAN"&&a.parentGroup||void 0;if(m.onclick=m.onmouseout=m.onmouseover=m.onmousemove=m.point=null,K(a),a.clipPath&&F){var e=a.clipPath;[].forEach.call(F.querySelectorAll("[clip-path],[CLIP-PATH]"),function(l){-1<l.getAttribute("clip-path").indexOf(e.element.id)&&l.removeAttribute("clip-path")}),a.clipPath=e.destroy()}if(a.stops){for(F=0;F<a.stops.length;F++)a.stops[F].destroy();a.stops.length=0,a.stops=void 0}for(a.safeRemoveChild(m),A.styledMode||a.destroyShadows();z&&z.div&&z.div.childNodes.length===0;)m=z.parentGroup,a.safeRemoveChild(z.div),delete z.div,z=m;a.alignTo&&w(A.alignedObjects,a),h(a,function(l,T){a[T]&&a[T].parentGroup===a&&a[T].destroy&&a[T].destroy(),delete a[T]})},c.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this),this.shadows=void 0},c.prototype.dSetter=function(a,m,A){k(a)&&(typeof a[0]=="string"&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(F,z,e){return z&&z.join?(e?F+" ":"")+z.join(" "):(z||"").toString()},"")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),this[m]!==a&&(A.setAttribute(m,a),this[m]=a)},c.prototype.fadeOut=function(a){var m=this;m.animate({opacity:0},{duration:t(a,150),complete:function(){m.hide()}})},c.prototype.fillSetter=function(a,m,A){typeof a=="string"?A.setAttribute(m,a):a&&this.complexColor(a,m,A)},c.prototype.getBBox=function(a,m){var A=this.alignValue,F=this.element,z=this.renderer,e=this.styles,l=this.textStr,T=z.cache,b=z.cacheKeys,O=F.namespaceURI===this.SVG_NS;m=t(m,this.rotation,0);var n=z.styledMode?F&&c.prototype.getStyle.call(F,"font-size"):e&&e.fontSize,x;if(M(l)){var u=l.toString();u.indexOf("<")===-1&&(u=u.replace(/[0-9]/g,"0")),u+=["",m,n,this.textWidth,A,e&&e.textOverflow,e&&e.fontWeight].join()}if(u&&!a&&(x=T[u]),!x){if(O||z.forExport){try{var N=this.fakeTS&&function(H){var G=F.querySelector(".highcharts-text-outline");G&&S(G,{display:H})};r(N)&&N("none"),x=F.getBBox?D({},F.getBBox()):{width:F.offsetWidth,height:F.offsetHeight,x:0,y:0},r(N)&&N("")}catch{}(!x||0>x.width)&&(x={x:0,y:0,width:0,height:0})}else x=this.htmlGetBBox();if(z.isSVG&&(z=x.width,a=x.height,O&&(x.height=a={"11px,17":14,"13px,20":16}[""+(n||"")+",".concat(Math.round(a))]||a),m)){O=Number(F.getAttribute("y")||0)-x.y,A={right:1,center:.5}[A||0]||0,e=m*B,n=(m-90)*B;var L=z*Math.cos(e);m=z*Math.sin(e),N=Math.cos(n),e=Math.sin(n),z=x.x+A*(z-L)+O*N,n=z+L,N=n-a*N,L=N-L,O=x.y+O-A*m+O*e,A=O+m,a=A-a*e,m=a-m,x.x=Math.min(z,n,N,L),x.y=Math.min(O,A,a,m),x.width=Math.max(z,n,N,L)-x.x,x.height=Math.max(O,A,a,m)-x.y}if(u&&(l===""||0<x.height)){for(;250<b.length;)delete T[b.shift()];T[u]||b.push(u),T[u]=x}}return x},c.prototype.getStyle=function(a){return f.getComputedStyle(this.element||this,"").getPropertyValue(a)},c.prototype.hasClass=function(a){return(""+this.attr("class")).split(" ").indexOf(a)!==-1},c.prototype.hide=function(){return this.attr({visibility:"hidden"})},c.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},c.prototype.init=function(a,m){this.element=m==="span"?v(m):I.createElementNS(this.SVG_NS,m),this.renderer=a,R(this,"afterInit")},c.prototype.on=function(a,m){var A=this.onEvents;return A[a]&&A[a](),A[a]=y(this.element,a,m),this},c.prototype.opacitySetter=function(a,m,A){this.opacity=a=Number(Number(a).toFixed(3)),A.setAttribute(m,a)},c.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(d(a)?new RegExp("(^| )".concat(a,"( |$)")):a," ").replace(/ +/g," ").trim())},c.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)},c.prototype.safeRemoveChild=function(a){var m=a.parentNode;m&&m.removeChild(a)},c.prototype.setRadialReference=function(a){var m=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,m&&m.radAttr&&m.animate(this.renderer.getRadialAttr(a,m.radAttr)),this},c.prototype.setTextPath=function(a,m){var A=this;m=o(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},m);var F=this.renderer.url,z=this.text||this,e=z.textPath,l=m.attributes,T=m.enabled;return a=a||e&&e.path,e&&e.undo(),a&&T?(m=y(z,"afterModifyTree",function(b){if(a&&T){var O=a.attr("id");O||a.attr("id",O=s());var n={x:0,y:0};M(l.dx)&&(n.dx=l.dx,delete l.dx),M(l.dy)&&(n.dy=l.dy,delete l.dy),z.attr(n),A.attr({transform:""}),A.box&&(A.box=A.box.destroy()),n=b.nodes.slice(0),b.nodes.length=0,b.nodes[0]={tagName:"textPath",attributes:D(l,{"text-anchor":l.textAnchor,href:""+F+"#".concat(O)}),children:n}}}),z.textPath={path:a,undo:m}):(z.attr({dx:0,dy:0}),delete z.textPath),this.added&&(z.textCache="",this.renderer.buildText(z)),this},c.prototype.shadow=function(a,m,A){var F=[],z=this.element,e=this.oldShadowOptions,l=this.parentGroup,T=l&&l.rotation===90;l={color:"#000000",offsetX:T?-1:1,offsetY:T?-1:1,opacity:.15,width:3};var b=!1,O;if(a===!0?O=l:typeof a=="object"&&(O=D(l,a)),O&&(O&&e&&h(O,function(N,L){N!==e[L]&&(b=!0)}),b&&this.destroyShadows(),this.oldShadowOptions=O),!O)this.destroyShadows();else if(!this.shadows){l=O.opacity/O.width;var n=T?"translate(".concat(O.offsetY,", ").concat(O.offsetX,")"):"translate(".concat(O.offsetX,", ").concat(O.offsetY,")");for(T=1;T<=O.width;T++){var x=z.cloneNode(!1),u=2*O.width+1-2*T;C(x,{stroke:a.color||"#000000","stroke-opacity":l*T,"stroke-width":u,transform:n,fill:"none"}),x.setAttribute("class",(x.getAttribute("class")||"")+" highcharts-shadow"),A&&(C(x,"height",Math.max(C(x,"height")-u,0)),x.cutHeight=u),m?m.element.appendChild(x):z.parentNode&&z.parentNode.insertBefore(x,z),F.push(x)}this.shadows=F}return this},c.prototype.show=function(a){return a===void 0&&(a=!0),this.attr({visibility:a?"inherit":"visible"})},c.prototype["stroke-widthSetter"]=function(a,m,A){this[m]=a,A.setAttribute(m,a)},c.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),m=0;if(a.indexOf("px")===a.length-2)m=p(a);else if(a!==""){var A=I.createElementNS(g,"rect");C(A,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(A),m=A.getBBox().width,A.parentNode.removeChild(A)}return m},c.prototype.symbolAttr=function(a){var m=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(A){m[A]=t(a[A],m[A])}),m.attr({d:m.renderer.symbols[m.symbolName](m.x,m.y,m.width,m.height,m)})},c.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))},c.prototype.titleSetter=function(a){var m=this.element,A=m.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");m.insertBefore?m.insertBefore(A,m.firstChild):m.appendChild(A),A.textContent=String(t(a,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},c.prototype.toFront=function(){var a=this.element;return a.parentNode.appendChild(a),this},c.prototype.translate=function(a,m){return this.attr({translateX:a,translateY:m})},c.prototype.updateShadows=function(a,m,A){var F=this.shadows;if(F)for(var z=F.length;z--;)A.call(F[z],a==="height"?Math.max(m-(F[z].cutHeight||0),0):a==="d"?this.d:m,a,F[z])},c.prototype.updateTransform=function(){var a=this.element,m=this.matrix,A=this.rotation;A=A===void 0?0:A;var F=this.scaleX,z=this.scaleY,e=this.translateX,l=this.translateY;e=["translate("+(e===void 0?0:e)+","+(l===void 0?0:l)+")"],M(m)&&e.push("matrix("+m.join(",")+")"),A&&e.push("rotate("+A+" "+t(this.rotationOriginX,a.getAttribute("x"),0)+" "+t(this.rotationOriginY,a.getAttribute("y")||0)+")"),(M(F)||M(z))&&e.push("scale("+t(F,1)+" "+t(z,1)+")"),e.length&&!(this.text||this).textPath&&a.setAttribute("transform",e.join(" "))},c.prototype.visibilitySetter=function(a,m,A){a==="inherit"?A.removeAttribute(m):this[m]!==a&&A.setAttribute(m,a),this[m]=a},c.prototype.xGetter=function(a){return this.element.nodeName==="circle"&&(a==="x"?a="cx":a==="y"&&(a="cy")),this._defaultGetter(a)},c.prototype.zIndexSetter=function(a,m){var A=this.renderer,F=this.parentGroup,z=(F||A).element||A.box,e=this.element;A=z===A.box;var l=!1,T=this.added,b;if(M(a)?(e.setAttribute("data-z-index",a),a=+a,this[m]===a&&(T=!1)):M(this[m])&&e.removeAttribute("data-z-index"),this[m]=a,T){for((a=this.zIndex)&&F&&(F.handleZ=!0),m=z.childNodes,b=m.length-1;0<=b&&!l;b--){F=m[b],T=F.getAttribute("data-z-index");var O=!M(T);F!==e&&(0>a&&O&&!A&&!b?(z.insertBefore(e,m[b]),l=!0):(p(T)<=a||O&&(!M(a)||0<=a))&&(z.insertBefore(e,m[b+1]||null),l=!0))}l||(z.insertBefore(e,m[A?3:0]||null),l=!0)}return l},c}(),j.prototype.strokeSetter=j.prototype.fillSetter,j.prototype.yGetter=j.prototype.xGetter,j.prototype.matrixSetter=j.prototype.rotationOriginXSetter=j.prototype.rotationOriginYSetter=j.prototype.rotationSetter=j.prototype.scaleXSetter=j.prototype.scaleYSetter=j.prototype.translateXSetter=j.prototype.translateYSetter=j.prototype.verticalAlignSetter=function(c,a){this[a]=c,this.doTransform=!0},j}),lt(E,"Core/Renderer/RendererRegistry.js",[E["Core/Globals.js"]],function(j){var W;return function(Y){Y.rendererTypes={};var Q;Y.getRendererType=function(J){return J===void 0&&(J=Q),Y.rendererTypes[J]||Y.rendererTypes[Q]},Y.registerRendererType=function(J,tt,K){Y.rendererTypes[J]=tt,(!Q||K)&&(Q=J,j.Renderer=tt)}}(W||(W={})),W}),lt(E,"Core/Renderer/SVG/SVGLabel.js",[E["Core/Renderer/SVG/SVGElement.js"],E["Core/Utilities.js"]],function(j,W){var Y=this&&this.__extends||function(){var P=function(g,f){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])},P(g,f)};return function(g,f){function y(){this.constructor=g}P(g,f),g.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),Q=W.defined,J=W.extend,tt=W.isNumber,K=W.merge,B=W.pick,I=W.removeEvent;return function(P){function g(f,y,C,v,S,M,w,D,R,k){var r=P.call(this)||this;r.paddingLeftSetter=r.paddingSetter,r.paddingRightSetter=r.paddingSetter,r.init(f,"g"),r.textStr=y,r.x=C,r.y=v,r.anchorX=M,r.anchorY=w,r.baseline=R,r.className=k,r.addClass(k==="button"?"highcharts-no-tooltip":"highcharts-label"),k&&r.addClass("highcharts-"+k),r.text=f.text(void 0,0,0,D).attr({zIndex:1});var d;return typeof S=="string"&&((d=/^url\((.*?)\)$/.test(S))||r.renderer.symbols[S])&&(r.symbolKey=S),r.bBox=g.emptyBBox,r.padding=3,r.baselineOffset=0,r.needsBox=f.styledMode||d,r.deferredAttr={},r.alignFactor=0,r}return Y(g,P),g.prototype.alignSetter=function(f){f={left:0,center:.5,right:1}[f],f!==this.alignFactor&&(this.alignFactor=f,this.bBox&&tt(this.xSetting)&&this.attr({x:this.xSetting}))},g.prototype.anchorXSetter=function(f,y){this.anchorX=f,this.boxAttr(y,Math.round(f)-this.getCrispAdjust()-this.xSetting)},g.prototype.anchorYSetter=function(f,y){this.anchorY=f,this.boxAttr(y,f-this.ySetting)},g.prototype.boxAttr=function(f,y){this.box?this.box.attr(f,y):this.deferredAttr[f]=y},g.prototype.css=function(f){if(f){var y={};f=K(f),g.textProps.forEach(function(C){typeof f[C]<"u"&&(y[C]=f[C],delete f[C])}),this.text.css(y),"fontSize"in y||"fontWeight"in y?this.updateTextPadding():("width"in y||"textOverflow"in y)&&this.updateBoxSize()}return j.prototype.css.call(this,f)},g.prototype.destroy=function(){I(this.element,"mouseenter"),I(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),j.prototype.destroy.call(this)},g.prototype.fillSetter=function(f,y){f&&(this.needsBox=!0),this.fill=f,this.boxAttr(y,f)},g.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var f=this.padding,y=B(this.paddingLeft,f);return{width:this.width,height:this.height,x:this.bBox.x-y,y:this.bBox.y-f}},g.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},g.prototype.heightSetter=function(f){this.heightSetting=f},g.prototype.onAdd=function(){this.text.add(this),this.attr({text:B(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&Q(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},g.prototype.paddingSetter=function(f,y){tt(f)?f!==this[y]&&(this[y]=f,this.updateTextPadding()):this[y]=void 0},g.prototype.rSetter=function(f,y){this.boxAttr(y,f)},g.prototype.shadow=function(f){return f&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(f)),this},g.prototype.strokeSetter=function(f,y){this.stroke=f,this.boxAttr(y,f)},g.prototype["stroke-widthSetter"]=function(f,y){f&&(this.needsBox=!0),this["stroke-width"]=f,this.boxAttr(y,f)},g.prototype["text-alignSetter"]=function(f){this.textAlign=f},g.prototype.textSetter=function(f){typeof f<"u"&&this.text.attr({text:f}),this.updateTextPadding()},g.prototype.updateBoxSize=function(){var f=this.text,y=f.element.style,C={},v=this.padding,S=this.bBox=tt(this.widthSetting)&&tt(this.heightSetting)&&!this.textAlign||!Q(f.textStr)?g.emptyBBox:f.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||S.height||0)+2*v,y=this.renderer.fontMetrics(y&&y.fontSize,f),this.baselineOffset=v+Math.min((this.text.firstLineMetrics||y).b,S.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-y.h)/2),this.needsBox&&!f.textPath&&(this.box||(f=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),f.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),f.add(this)),f=this.getCrispAdjust(),C.x=f,C.y=(this.baseline?-this.baselineOffset:0)+f,C.width=Math.round(this.width),C.height=Math.round(this.height),this.box.attr(J(C,this.deferredAttr)),this.deferredAttr={})},g.prototype.updateTextPadding=function(){var f=this.text;if(!f.textPath){this.updateBoxSize();var y=this.baseline?0:this.baselineOffset,C=B(this.paddingLeft,this.padding);Q(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(C+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(C!==f.x||y!==f.y)&&(f.attr("x",C),f.hasBoxWidthChanged&&(this.bBox=f.getBBox(!0)),typeof y<"u"&&f.attr("y",y)),f.x=C,f.y=y}},g.prototype.widthSetter=function(f){this.widthSetting=tt(f)?f:void 0},g.prototype.getPaddedWidth=function(){var f=this.padding,y=B(this.paddingLeft,f);return f=B(this.paddingRight,f),(this.widthSetting||this.bBox.width||0)+y+f},g.prototype.xSetter=function(f){this.x=f,this.alignFactor&&(f-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(f),this.attr("translateX",this.xSetting)},g.prototype.ySetter=function(f){this.ySetting=this.y=Math.round(f),this.attr("translateY",this.ySetting)},g.emptyBBox={width:0,height:0,x:0,y:0},g.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),g}(j)}),lt(E,"Core/Renderer/SVG/Symbols.js",[E["Core/Utilities.js"]],function(j){function W(B,I,P,g,f){var y=[];if(f){var C=f.start||0,v=K(f.r,P);P=K(f.r,g||P);var S=(f.end||0)-.001;g=f.innerR;var M=K(f.open,.001>Math.abs((f.end||0)-C-2*Math.PI)),w=Math.cos(C),D=Math.sin(C),R=Math.cos(S),k=Math.sin(S);C=K(f.longArc,.001>S-C-Math.PI?0:1),y.push(["M",B+v*w,I+P*D],["A",v,P,0,C,K(f.clockwise,1),B+v*R,I+P*k]),J(g)&&y.push(M?["M",B+g*R,I+g*k]:["L",B+g*R,I+g*k],["A",g,g,0,C,J(f.clockwise)?1-f.clockwise:0,B+g*w,I+g*D]),M||y.push(["Z"])}return y}function Y(B,I,P,g,f){return f&&f.r?Q(B,I,P,g,f):[["M",B,I],["L",B+P,I],["L",B+P,I+g],["L",B,I+g],["Z"]]}function Q(B,I,P,g,f){return f=f&&f.r||0,[["M",B+f,I],["L",B+P-f,I],["C",B+P,I,B+P,I,B+P,I+f],["L",B+P,I+g-f],["C",B+P,I+g,B+P,I+g,B+P-f,I+g],["L",B+f,I+g],["C",B,I+g,B,I+g,B,I+g-f],["L",B,I+f],["C",B,I,B,I,B+f,I]]}var J=j.defined,tt=j.isNumber,K=j.pick;return{arc:W,callout:function(B,I,P,g,f){var y=Math.min(f&&f.r||0,P,g),C=y+6,v=f&&f.anchorX;f=f&&f.anchorY||0;var S=Q(B,I,P,g,{r:y});return tt(v)&&(B+v>=P?f>I+C&&f<I+g-C?S.splice(3,1,["L",B+P,f-6],["L",B+P+6,f],["L",B+P,f+6],["L",B+P,I+g-y]):S.splice(3,1,["L",B+P,g/2],["L",v,f],["L",B+P,g/2],["L",B+P,I+g-y]):0>=B+v?f>I+C&&f<I+g-C?S.splice(7,1,["L",B,f+6],["L",B-6,f],["L",B,f-6],["L",B,I+y]):S.splice(7,1,["L",B,g/2],["L",v,f],["L",B,g/2],["L",B,I+y]):f&&f>g&&v>B+C&&v<B+P-C?S.splice(5,1,["L",v+6,I+g],["L",v,I+g+6],["L",v-6,I+g],["L",B+y,I+g]):f&&0>f&&v>B+C&&v<B+P-C&&S.splice(1,1,["L",v-6,I],["L",v,I-6],["L",v+6,I],["L",P-y,I])),S},circle:function(B,I,P,g){return W(B+P/2,I+g/2,P/2,g/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(B,I,P,g){return[["M",B+P/2,I],["L",B+P,I+g/2],["L",B+P/2,I+g],["L",B,I+g/2],["Z"]]},rect:Y,roundedRect:Q,square:Y,triangle:function(B,I,P,g){return[["M",B+P/2,I],["L",B+P,I+g],["L",B,I+g],["Z"]]},"triangle-down":function(B,I,P,g){return[["M",B,I],["L",B+P,I],["L",B+P/2,I+g],["Z"]]}}}),lt(E,"Core/Renderer/SVG/TextBuilder.js",[E["Core/Renderer/HTML/AST.js"],E["Core/Globals.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=W.doc,J=W.SVG_NS,tt=W.win,K=Y.attr,B=Y.extend,I=Y.fireEvent,P=Y.isString,g=Y.objectEach,f=Y.pick;return function(){function y(C){var v=C.styles;this.renderer=C.renderer,this.svgElement=C,this.width=C.textWidth,this.textLineHeight=v&&v.lineHeight,this.textOutline=v&&v.textOutline,this.ellipsis=!(!v||v.textOverflow!=="ellipsis"),this.noWrap=!(!v||v.whiteSpace!=="nowrap"),this.fontSize=v&&v.fontSize}return y.prototype.buildSVG=function(){var C=this.svgElement,v=C.element,S=C.renderer,M=f(C.textStr,"").toString(),w=M.indexOf("<")!==-1,D=v.childNodes;S=this.width&&!C.added&&S.box;var R=/<br.*?>/g,k=[M,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(k!==C.textCache){for(C.textCache=k,delete C.actualWidth,k=D.length;k--;)v.removeChild(D[k]);w||this.ellipsis||this.width||C.textPath||M.indexOf(" ")!==-1&&(!this.noWrap||R.test(M))?M!==""&&(S&&S.appendChild(v),M=new j(M),this.modifyTree(M.nodes),M.addToDOM(v),this.modifyDOM(),this.ellipsis&&(v.textContent||"").indexOf("\u2026")!==-1&&C.attr("title",this.unescapeEntities(C.textStr||"",["<",">"])),S&&S.removeChild(v)):v.appendChild(Q.createTextNode(this.unescapeEntities(M))),P(this.textOutline)&&C.applyTextOutline&&C.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var C=this,v=this.svgElement,S=K(v.element,"x");v.firstLineMetrics=void 0;for(var M;(M=v.element.firstChild)&&/^[\s\u200B]*$/.test(M.textContent||" ");)v.element.removeChild(M);[].forEach.call(v.element.querySelectorAll("tspan.highcharts-br"),function(k,r){k.nextSibling&&k.previousSibling&&(r===0&&k.previousSibling.nodeType===1&&(v.firstLineMetrics=v.renderer.fontMetrics(void 0,k.previousSibling)),K(k,{dy:C.getLineHeight(k.nextSibling),x:S}))});var w=this.width||0;if(w){var D=function(k,r){var d=k.textContent||"",o=d.replace(/([^\^])-/g,"$1- ").split(" "),h=!C.noWrap&&(1<o.length||1<v.element.childNodes.length),t=C.getLineHeight(r),p=0,i=v.actualWidth;if(C.ellipsis)d&&C.truncate(k,d,void 0,0,Math.max(0,w-parseInt(C.fontSize||12,10)),function(s,c){return s.substring(0,c)+"\u2026"});else if(h){for(d=[],h=[];r.firstChild&&r.firstChild!==k;)h.push(r.firstChild),r.removeChild(r.firstChild);for(;o.length;)o.length&&!C.noWrap&&0<p&&(d.push(k.textContent||""),k.textContent=o.join(" ").replace(/- /g,"-")),C.truncate(k,void 0,o,p===0&&i||0,w,function(s,c){return o.slice(0,c).join(" ").replace(/- /g,"-")}),i=v.actualWidth,p++;h.forEach(function(s){r.insertBefore(s,k)}),d.forEach(function(s){r.insertBefore(Q.createTextNode(s),k),s=Q.createElementNS(J,"tspan"),s.textContent="\u200B",K(s,{dy:t,x:S}),r.insertBefore(s,k)})}},R=function(k){[].slice.call(k.childNodes).forEach(function(r){r.nodeType===tt.Node.TEXT_NODE?D(r,k):(r.className.baseVal.indexOf("highcharts-br")!==-1&&(v.actualWidth=0),R(r))})};R(v.element)}},y.prototype.getLineHeight=function(C){var v;return C=C.nodeType===tt.Node.TEXT_NODE?C.parentElement:C,this.renderer.styledMode||(v=C&&/(px|em)$/.test(C.style.fontSize)?C.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(v,C||this.svgElement.element).h},y.prototype.modifyTree=function(C){var v=this,S=function(M,w){var D=M.attributes;D=D===void 0?{}:D;var R=M.children,k=M.style;k=k===void 0?{}:k;var r=M.tagName,d=v.renderer.styledMode;r==="b"||r==="strong"?d?D.class="highcharts-strong":k.fontWeight="bold":(r==="i"||r==="em")&&(d?D.class="highcharts-emphasized":k.fontStyle="italic"),k&&k.color&&(k.fill=k.color),r==="br"?(D.class="highcharts-br",M.textContent="\u200B",(w=C[w+1])&&w.textContent&&(w.textContent=w.textContent.replace(/^ +/gm,""))):r==="a"&&R&&R.some(function(o){return o.tagName==="#text"})&&(M.children=[{children:R,tagName:"tspan"}]),r!=="#text"&&r!=="a"&&(M.tagName="tspan"),B(M,{attributes:D,style:k}),R&&R.filter(function(o){return o.tagName!=="#text"}).forEach(S)};C.forEach(S),I(this.svgElement,"afterModifyTree",{nodes:C})},y.prototype.truncate=function(C,v,S,M,w,D){var R=this.svgElement,k=R.renderer,r=R.rotation,d=[],o=S?1:0,h=(v||S||"").length,t=h,p,i=function(c,a){a=a||c;var m=C.parentNode;if(m&&typeof d[a]>"u")if(m.getSubStringLength)try{d[a]=M+m.getSubStringLength(0,S?a+1:a)}catch{}else k.getSpanWidth&&(C.textContent=D(v||S,c),d[a]=M+k.getSpanWidth(R,C));return d[a]};R.rotation=0;var s=i(C.textContent.length);if(M+s>w){for(;o<=h;)t=Math.ceil((o+h)/2),S&&(p=D(S,t)),s=i(t,p&&p.length-1),o===h?o=h+1:s>w?h=t-1:o=t;h===0?C.textContent="":v&&h===v.length-1||(C.textContent=p||D(v||S,t))}S&&S.splice(0,t),R.actualWidth=s,R.rotation=r},y.prototype.unescapeEntities=function(C,v){return g(this.renderer.escapes,function(S,M){v&&v.indexOf(S)!==-1||(C=C.toString().replace(new RegExp(S,"g"),M))}),C},y}()}),lt(E,"Core/Renderer/SVG/SVGRenderer.js",[E["Core/Renderer/HTML/AST.js"],E["Core/Color/Color.js"],E["Core/Globals.js"],E["Core/Renderer/RendererRegistry.js"],E["Core/Renderer/SVG/SVGElement.js"],E["Core/Renderer/SVG/SVGLabel.js"],E["Core/Renderer/SVG/Symbols.js"],E["Core/Renderer/SVG/TextBuilder.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J,tt,K,B,I){var P=Y.charts,g=Y.deg2rad,f=Y.doc,y=Y.isFirefox,C=Y.isMS,v=Y.isWebKit,S=Y.noop,M=Y.SVG_NS,w=Y.symbolSizes,D=Y.win,R=I.addEvent,k=I.attr,r=I.createElement,d=I.css,o=I.defined,h=I.destroyObjectProperties,t=I.extend,p=I.isArray,i=I.isNumber,s=I.isObject,c=I.isString,a=I.merge,m=I.pick,A=I.pInt,F=I.uniqueKey,z;return Y=function(){function e(l,T,b,O,n,x,u){this.width=this.url=this.style=this.isSVG=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(l,T,b,O,n,x,u)}return e.prototype.init=function(l,T,b,O,n,x,u){var N=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),L=N.element;u||N.css(this.getStyle(O)),l.appendChild(L),k(l,"dir","ltr"),l.innerHTML.indexOf("xmlns")===-1&&k(L,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=L,this.boxWrapper=N,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(f.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=x,this.forExport=n,this.styledMode=u,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(T,b,!1);var H;y&&l.getBoundingClientRect&&(T=function(){d(l,{left:0,top:0}),H=l.getBoundingClientRect(),d(l,{left:Math.ceil(H.left)-H.left+"px",top:Math.ceil(H.top)-H.top+"px"})},T(),this.unSubPixelFix=R(D,"resize",T))},e.prototype.definition=function(l){return new j([l]).addToDOM(this.defs.element)},e.prototype.getReferenceURL=function(){if((y||v)&&f.getElementsByTagName("base").length){if(!o(z)){var l=F();l=new j([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:l},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(l,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(f.body),d(l,{position:"fixed",top:0,left:0,zIndex:9e5});var T=f.elementFromPoint(6,6);z=(T&&T.id)==="hitme",f.body.removeChild(l)}if(z)return D.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},e.prototype.getStyle=function(l){return this.style=t({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},l)},e.prototype.setStyle=function(l){this.boxWrapper.css(this.getStyle(l))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var l=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),h(this.gradients||{}),this.gradients=null,l&&(this.defs=l.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(l){var T=new this.Element;return T.init(this,l),T},e.prototype.getRadialAttr=function(l,T){return{cx:l[0]-l[2]/2+(T.cx||0)*l[2],cy:l[1]-l[2]/2+(T.cy||0)*l[2],r:(T.r||0)*l[2]}},e.prototype.buildText=function(l){new B(l).buildSVG()},e.prototype.getContrast=function(l){return l=W.parse(l).rgba.map(function(T){return T/=255,.03928>=T?T/12.92:Math.pow((T+.055)/1.055,2.4)}),l=.2126*l[0]+.7152*l[1]+.0722*l[2],1.05/(l+.05)>(l+.05)/.05?"#FFFFFF":"#000000"},e.prototype.button=function(l,T,b,O,n,x,u,N,L,H){n===void 0&&(n={});var G=this.label(l,T,b,L,void 0,void 0,H,void 0,"button"),U=this.styledMode;l=n.states||{};var V=0;n=a(n),delete n.states;var rt=a({color:"#333333",cursor:"pointer",fontWeight:"normal"},n.style);delete n.style;var st=j.filterUserAttributes(n);if(G.attr(a({padding:8,r:2},st)),!U){st=a({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},st),x=a(st,{fill:"#e6e6e6"},j.filterUserAttributes(x||l.hover||{}));var ot=x.style;delete x.style,u=a(st,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},j.filterUserAttributes(u||l.select||{}));var et=u.style;delete u.style,N=a(st,{style:{color:"#cccccc"}},j.filterUserAttributes(N||l.disabled||{}));var at=N.style;delete N.style}return R(G.element,C?"mouseover":"mouseenter",function(){V!==3&&G.setState(1)}),R(G.element,C?"mouseout":"mouseleave",function(){V!==3&&G.setState(V)}),G.setState=function($){$!==1&&(G.state=V=$),G.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][$||0]),U||(G.attr([st,x,u,N][$||0]),$=[rt,ot,et,at][$||0],s($)&&G.css($))},U||(G.attr(st).css(t({cursor:"default"},rt)),H&&G.text.css({pointerEvents:"none"})),G.on("touchstart",function($){return $.stopPropagation()}).on("click",function($){V!==3&&O.call(G,$)})},e.prototype.crispLine=function(l,T,b){b===void 0&&(b="round");var O=l[0],n=l[1];return o(O[1])&&O[1]===n[1]&&(O[1]=n[1]=Math[b](O[1])-T%2/2),o(O[2])&&O[2]===n[2]&&(O[2]=n[2]=Math[b](O[2])+T%2/2),l},e.prototype.path=function(l){var T=this.styledMode?{}:{fill:"none"};return p(l)?T.d=l:s(l)&&t(T,l),this.createElement("path").attr(T)},e.prototype.circle=function(l,T,b){return l=s(l)?l:typeof l>"u"?{}:{x:l,y:T,r:b},T=this.createElement("circle"),T.xSetter=T.ySetter=function(O,n,x){x.setAttribute("c"+n,O)},T.attr(l)},e.prototype.arc=function(l,T,b,O,n,x){return s(l)?(O=l,T=O.y,b=O.r,l=O.x):O={innerR:O,start:n,end:x},l=this.symbol("arc",l,T,b,b,O),l.r=b,l},e.prototype.rect=function(l,T,b,O,n,x){n=s(l)?l.r:n;var u=this.createElement("rect");return l=s(l)?l:typeof l>"u"?{}:{x:l,y:T,width:Math.max(b,0),height:Math.max(O,0)},this.styledMode||(typeof x<"u"&&(l["stroke-width"]=x,l=u.crisp(l)),l.fill="none"),n&&(l.r=n),u.rSetter=function(N,L,H){u.r=N,k(H,{rx:N,ry:N})},u.rGetter=function(){return u.r||0},u.attr(l)},e.prototype.setSize=function(l,T,b){this.width=l,this.height=T,this.boxWrapper.animate({width:l,height:T},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:m(b,!0)?void 0:0}),this.alignElements()},e.prototype.g=function(l){var T=this.createElement("g");return l?T.attr({class:"highcharts-"+l}):T},e.prototype.image=function(l,T,b,O,n,x){var u={preserveAspectRatio:"none"},N=function(H,G){H.setAttributeNS?H.setAttributeNS("http://www.w3.org/1999/xlink","href",G):H.setAttribute("hc-svg-href",G)};i(T)&&(u.x=T),i(b)&&(u.y=b),i(O)&&(u.width=O),i(n)&&(u.height=n);var L=this.createElement("image").attr(u);return T=function(H){N(L.element,l),x.call(L,H)},x?(N(L.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),b=new D.Image,R(b,"load",T),b.src=l,b.complete&&T({})):N(L.element,l),L},e.prototype.symbol=function(l,T,b,O,n,x){var u=this,N=/^url\((.*?)\)$/,L=N.test(l),H=!L&&(this.symbols[l]?l:"circle"),G=H&&this.symbols[H],U;if(G){typeof T=="number"&&(U=G.call(this.symbols,Math.round(T||0),Math.round(b||0),O||0,n||0,x));var V=this.path(U);u.styledMode||V.attr("fill","none"),t(V,{symbolName:H||void 0,x:T,y:b,width:O,height:n}),x&&t(V,x)}else if(L){var rt=l.match(N)[1],st=V=this.image(rt);st.imgwidth=m(w[rt]&&w[rt].width,x&&x.width),st.imgheight=m(w[rt]&&w[rt].height,x&&x.height);var ot=function(et){return et.attr({width:et.width,height:et.height})};["width","height"].forEach(function(et){st[et+"Setter"]=function(at,$){this[$]=at,at=this.alignByTranslate;var _=this.element,X=this.width,Z=this.height,q=this.imgwidth,it=this.imgheight,nt=this["img"+$];if(o(nt)){var ht=1;x&&x.backgroundSize==="within"&&X&&Z?(ht=Math.min(X/q,Z/it),nt=Math.round(nt*ht),k(_,{width:Math.round(q*ht),height:Math.round(it*ht)})):_&&_.setAttribute($,nt),at||this.translate(((X||0)-nt*ht)/2,((Z||0)-nt*ht)/2)}}}),o(T)&&st.attr({x:T,y:b}),st.isImg=!0,o(st.imgwidth)&&o(st.imgheight)?ot(st):(st.attr({width:0,height:0}),r("img",{onload:function(){var et=P[u.chartIndex];this.width===0&&(d(this,{position:"absolute",top:"-999em"}),f.body.appendChild(this)),w[rt]={width:this.width,height:this.height},st.imgwidth=this.width,st.imgheight=this.height,st.element&&ot(st),this.parentNode&&this.parentNode.removeChild(this),u.imgCount--,!u.imgCount&&et&&!et.hasLoaded&&et.onload()},src:rt}),this.imgCount++)}return V},e.prototype.clipRect=function(l,T,b,O){var n=F()+"-",x=this.createElement("clipPath").attr({id:n}).add(this.defs);return l=this.rect(l,T,b,O,0).add(x),l.id=n,l.clipPath=x,l.count=0,l},e.prototype.text=function(l,T,b,O){var n={};return O&&(this.allowHTML||!this.forExport)?this.html(l,T,b):(n.x=Math.round(T||0),b&&(n.y=Math.round(b)),o(l)&&(n.text=l),l=this.createElement("text").attr(n),(!O||this.forExport&&!this.allowHTML)&&(l.xSetter=function(x,u,N){for(var L=N.getElementsByTagName("tspan"),H=N.getAttribute(u),G=0,U;G<L.length;G++)U=L[G],U.getAttribute(u)===H&&U.setAttribute(u,x);N.setAttribute(u,x)}),l)},e.prototype.fontMetrics=function(l,T){return l=!this.styledMode&&/px/.test(l)||!D.getComputedStyle?l||T&&T.style&&T.style.fontSize||this.style&&this.style.fontSize:T&&J.prototype.getStyle.call(T,"font-size"),l=/px/.test(l)?A(l):12,T=24>l?l+3:Math.round(1.2*l),{h:T,b:Math.round(.8*T),f:l}},e.prototype.rotCorr=function(l,T,b){var O=l;return T&&b&&(O=Math.max(O*Math.cos(T*g),4)),{x:-l/3*Math.sin(T*g),y:O}},e.prototype.pathToSegments=function(l){for(var T=[],b=[],O={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n=0;n<l.length;n++)c(b[0])&&i(l[n])&&b.length===O[b[0].toUpperCase()]&&l.splice(n,0,b[0].replace("M","L").replace("m","l")),typeof l[n]=="string"&&(b.length&&T.push(b.slice(0)),b.length=0),b.push(l[n]);return T.push(b.slice(0)),T},e.prototype.label=function(l,T,b,O,n,x,u,N,L){return new tt(this,l,T,b,O,n,x,u,N,L)},e.prototype.alignElements=function(){this.alignedObjects.forEach(function(l){return l.align()})},e}(),t(Y.prototype,{Element:J,SVG_NS:M,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:K,draw:S}),Q.registerRendererType("svg",Y,!0),Y}),lt(E,"Core/Renderer/HTML/HTMLElement.js",[E["Core/Globals.js"],E["Core/Renderer/SVG/SVGElement.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=this&&this.__extends||function(){var C=function(v,S){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,w){M.__proto__=w}||function(M,w){for(var D in w)w.hasOwnProperty(D)&&(M[D]=w[D])},C(v,S)};return function(v,S){function M(){this.constructor=v}C(v,S),v.prototype=S===null?Object.create(S):(M.prototype=S.prototype,new M)}}(),J=j.isFirefox,tt=j.isMS,K=j.isWebKit,B=j.win,I=Y.css,P=Y.defined,g=Y.extend,f=Y.pick,y=Y.pInt;return function(C){function v(){return C!==null&&C.apply(this,arguments)||this}return Q(v,C),v.compose=function(S){if(v.composedClasses.indexOf(S)===-1){v.composedClasses.push(S);var M=v.prototype,w=S.prototype;w.getSpanCorrection=M.getSpanCorrection,w.htmlCss=M.htmlCss,w.htmlGetBBox=M.htmlGetBBox,w.htmlUpdateTransform=M.htmlUpdateTransform,w.setSpanRotation=M.setSpanRotation}return S},v.prototype.getSpanCorrection=function(S,M,w){this.xCorr=-S*w,this.yCorr=-M},v.prototype.htmlCss=function(S){var M=this.element.tagName==="SPAN"&&S&&"width"in S,w=f(M&&S.width,void 0);if(M){delete S.width,this.textWidth=w;var D=!0}return S&&S.textOverflow==="ellipsis"&&(S.whiteSpace="nowrap",S.overflow="hidden"),this.styles=g(this.styles,S),I(this.element,S),D&&this.htmlUpdateTransform(),this},v.prototype.htmlGetBBox=function(){var S=this.element;return{x:S.offsetLeft,y:S.offsetTop,width:S.offsetWidth,height:S.offsetHeight}},v.prototype.htmlUpdateTransform=function(){if(this.added){var S=this.renderer,M=this.element,w=this.translateX||0,D=this.translateY||0,R=this.x||0,k=this.y||0,r=this.textAlign||"left",d={left:0,center:.5,right:1}[r],o=this.styles;if(o=o&&o.whiteSpace,I(M,{marginLeft:w,marginTop:D}),!S.styledMode&&this.shadows&&this.shadows.forEach(function(c){I(c,{marginLeft:w+1,marginTop:D+1})}),this.inverted&&[].forEach.call(M.childNodes,function(c){S.invertChild(c,M)}),M.tagName==="SPAN"){var h=this.rotation,t=this.textWidth&&y(this.textWidth),p=[h,r,M.innerHTML,this.textWidth,this.textAlign].join(),i=void 0;if(i=!1,t!==this.oldTextWidth){if(this.textPxLength)var s=this.textPxLength;else I(M,{width:"",whiteSpace:o||"nowrap"}),s=M.offsetWidth;(t>this.oldTextWidth||s>t)&&(/[ \-]/.test(M.textContent||M.innerText)||M.style.textOverflow==="ellipsis")&&(I(M,{width:s>t||h?t+"px":"auto",display:"block",whiteSpace:o||"normal"}),this.oldTextWidth=t,i=!0)}this.hasBoxWidthChanged=i,p!==this.cTT&&(i=S.fontMetrics(M.style.fontSize,M).b,!P(h)||h===(this.oldRotation||0)&&r===this.oldAlign||this.setSpanRotation(h,d,i),this.getSpanCorrection(!P(h)&&this.textPxLength||M.offsetWidth,i,d,h,r)),I(M,{left:R+(this.xCorr||0)+"px",top:k+(this.yCorr||0)+"px"}),this.cTT=p,this.oldRotation=h,this.oldAlign=r}}else this.alignOnAdd=!0},v.prototype.setSpanRotation=function(S,M,w){var D={},R=tt&&!/Edge/.test(B.navigator.userAgent)?"-ms-transform":K?"-webkit-transform":J?"MozTransform":B.opera?"-o-transform":void 0;R&&(D[R]=D.transform="rotate("+S+"deg)",D[R+(J?"Origin":"-origin")]=D.transformOrigin=100*M+"% "+w+"px",I(this.element,D))},v.composedClasses=[],v}(W)}),lt(E,"Core/Renderer/HTML/HTMLRenderer.js",[E["Core/Renderer/HTML/AST.js"],E["Core/Renderer/SVG/SVGElement.js"],E["Core/Renderer/SVG/SVGRenderer.js"],E["Core/Utilities.js"]],function(j,W,Y,Q){var J=this&&this.__extends||function(){var P=function(g,f){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])},P(g,f)};return function(g,f){function y(){this.constructor=g}P(g,f),g.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),tt=Q.attr,K=Q.createElement,B=Q.extend,I=Q.pick;return function(P){function g(){return P!==null&&P.apply(this,arguments)||this}return J(g,P),g.compose=function(f){return g.composedClasses.indexOf(f)===-1&&(g.composedClasses.push(f),f.prototype.html=g.prototype.html),f},g.prototype.html=function(f,y,C){var v=this.createElement("span"),S=v.element,M=v.renderer,w=M.isSVG,D=function(R,k){["opacity","visibility"].forEach(function(r){R[r+"Setter"]=function(d,o,h){var t=R.div?R.div.style:k;W.prototype[r+"Setter"].call(this,d,o,h),t&&(t[o]=d)}}),R.addedSetters=!0};return v.textSetter=function(R){R!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,j.setElementHTML(this.element,I(R,"")),this.textStr=R,v.doTransform=!0)},w&&D(v,v.element.style),v.xSetter=v.ySetter=v.alignSetter=v.rotationSetter=function(R,k){k==="align"?v.alignValue=v.textAlign=R:v[k]=R,v.doTransform=!0},v.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},v.attr({text:f,x:Math.round(y),y:Math.round(C)}).css({position:"absolute"}),M.styledMode||v.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),S.style.whiteSpace="nowrap",v.css=v.htmlCss,w&&(v.add=function(R){var k=M.box.parentNode,r=[];if(this.parentGroup=R){var d=R.div;if(!d){for(;R;)r.push(R),R=R.parentGroup;r.reverse().forEach(function(o){function h(s,c){o[c]=s,c==="translateX"?i.left=s+"px":i.top=s+"px",o.doTransform=!0}var t=tt(o.element,"class"),p=o.styles||{};d=o.div=o.div||K("div",t?{className:t}:void 0,{position:"absolute",left:(o.translateX||0)+"px",top:(o.translateY||0)+"px",display:o.display,opacity:o.opacity,cursor:p.cursor,pointerEvents:p.pointerEvents,visibility:o.visibility},d||k);var i=d.style;B(o,{classSetter:function(s){return function(c){this.element.setAttribute("class",c),s.className=c}}(d),on:function(){return r[0].div&&v.on.apply({element:r[0].div,onEvents:o.onEvents},arguments),o},translateXSetter:h,translateYSetter:h}),o.addedSetters||D(o)})}}else d=k;return d.appendChild(S),v.added=!0,v.alignOnAdd&&v.htmlUpdateTransform(),v}),v},g.composedClasses=[],g}(Y)}),lt(E,"Core/Axis/AxisDefaults.js",[],function(){var j=function(W){return W.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:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",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"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},W.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var Y=this.axis.chart.numberFormatter;return Y(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},W.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},W.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},W.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},W.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},W}(j||{});return j}),lt(E,"Core/Foundation.js",[E["Core/Utilities.js"]],function(j){var W=j.addEvent,Y=j.isFunction,Q=j.objectEach,J=j.removeEvent,tt;return function(K){K.registerEventOptions=function(B,I){B.eventOptions=B.eventOptions||{},Q(I.events,function(P,g){B.eventOptions[g]!==P&&(B.eventOptions[g]&&(J(B,g,B.eventOptions[g]),delete B.eventOptions[g]),Y(P)&&(B.eventOptions[g]=P,W(B,g,P)))})}}(tt||(tt={})),tt}),lt(E,"Core/Axis/Tick.js",[E["Core/FormatUtilities.js"],E["Core/Globals.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=W.deg2rad,J=Y.clamp,tt=Y.correctFloat,K=Y.defined,B=Y.destroyObjectProperties,I=Y.extend,P=Y.fireEvent,g=Y.isNumber,f=Y.merge,y=Y.objectEach,C=Y.pick;return W=function(){function v(S,M,w,D,R){this.isNewLabel=this.isNew=!0,this.axis=S,this.pos=M,this.type=w||"",this.parameters=R||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,P(this,"init"),w||D||this.addLabel()}return v.prototype.addLabel=function(){var S=this,M=S.axis,w=M.options,D=M.chart,R=M.categories,k=M.logarithmic,r=M.names,d=S.pos,o=C(S.options&&S.options.labels,w.labels),h=M.tickPositions,t=d===h[0],p=d===h[h.length-1],i=(!o.step||o.step===1)&&M.tickInterval===1;h=h.info;var s=S.label,c;if(R=this.parameters.category||(R?C(R[d],r[d],d):d),k&&g(R)&&(R=tt(k.lin2log(R))),M.dateTime)if(h)var a=D.time.resolveDTLFormat(w.dateTimeLabelFormats[!w.grid&&h.higherRanks[d]||h.unitName]),m=a.main;else g(R)&&(m=M.dateTime.getXDateFormat(R,w.dateTimeLabelFormats||{}));S.isFirst=t,S.isLast=p;var A={axis:M,chart:D,dateTimeLabelFormat:m,isFirst:t,isLast:p,pos:d,tick:S,tickPositionInfo:h,value:R};P(this,"labelFormat",A);var F=function(e){return o.formatter?o.formatter.call(e,e):o.format?(e.text=M.defaultLabelFormatter.call(e,e),j.format(o.format,e,D)):M.defaultLabelFormatter.call(e,e)};w=F.call(A,A);var z=a&&a.list;S.shortenLabel=z?function(){for(c=0;c<z.length;c++)if(I(A,{dateTimeLabelFormat:z[c]}),s.attr({text:F.call(A,A)}),s.getBBox().width<M.getSlotWidth(S)-2*o.padding)return;s.attr({text:""})}:void 0,i&&M._addedPlotLB&&S.moveLabel(w,o),K(s)||S.movedLabel?s&&s.textStr!==w&&!i&&(!s.textWidth||o.style.width||s.styles.width||s.css({width:null}),s.attr({text:w}),s.textPxLength=s.getBBox().width):(S.label=s=S.createLabel({x:0,y:0},w,o),S.rotation=0)},v.prototype.createLabel=function(S,M,w){var D=this.axis,R=D.chart;return(S=K(M)&&w.enabled?R.renderer.text(M,S.x,S.y,w.useHTML).add(D.labelGroup):null)&&(R.styledMode||S.css(f(w.style)),S.textPxLength=S.getBBox().width),S},v.prototype.destroy=function(){B(this,this.axis)},v.prototype.getPosition=function(S,M,w,D){var R=this.axis,k=R.chart,r=D&&k.oldChartHeight||k.chartHeight;return S={x:S?tt(R.translate(M+w,void 0,void 0,D)+R.transB):R.left+R.offset+(R.opposite?(D&&k.oldChartWidth||k.chartWidth)-R.right-R.left:0),y:S?r-R.bottom+R.offset-(R.opposite?R.height:0):tt(r-R.translate(M+w,void 0,void 0,D)-R.transB)},S.y=J(S.y,-1e5,1e5),P(this,"afterGetPosition",{pos:S}),S},v.prototype.getLabelPosition=function(S,M,w,D,R,k,r,d){var o=this.axis,h=o.transA,t=o.isLinked&&o.linkedParent?o.linkedParent.reversed:o.reversed,p=o.staggerLines,i=o.tickRotCorr||{x:0,y:0},s=D||o.reserveSpaceDefault?0:-o.labelOffset*(o.labelAlign==="center"?.5:1),c={};return w=o.side===0?w.rotation?-8:-w.getBBox().height:o.side===2?i.y+8:Math.cos(w.rotation*Q)*(i.y-w.getBBox(!1,0).height/2),K(R.y)&&(w=o.side===0&&o.horiz?R.y+w:R.y),S=S+R.x+s+i.x-(k&&D?k*h*(t?-1:1):0),M=M+w-(k&&!D?k*h*(t?1:-1):0),p&&(D=r/(d||1)%p,o.opposite&&(D=p-D-1),M+=o.labelOffset/p*D),c.x=S,c.y=Math.round(M),P(this,"afterGetLabelPosition",{pos:c,tickmarkOffset:k,index:r}),c},v.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},v.prototype.getMarkPath=function(S,M,w,D,R,k){return k.crispLine([["M",S,M],["L",S+(R?0:-w),M+(R?w:0)]],D)},v.prototype.handleOverflow=function(S){var M=this.axis,w=M.options.labels,D=S.x,R=M.chart.chartWidth,k=M.chart.spacing,r=C(M.labelLeft,Math.min(M.pos,k[3]));k=C(M.labelRight,Math.max(M.isRadial?0:M.pos+M.len,R-k[1]));var d=this.label,o=this.rotation,h={left:0,center:.5,right:1}[M.labelAlign||d.attr("align")],t=d.getBBox().width,p=M.getSlotWidth(this),i={},s=p,c=1,a;o||w.overflow!=="justify"?0>o&&D-h*t<r?a=Math.round(D/Math.cos(o*Q)-r):0<o&&D+h*t>k&&(a=Math.round((R-D)/Math.cos(o*Q))):(R=D+(1-h)*t,D-h*t<r?s=S.x+s*(1-h)-r:R>k&&(s=k-S.x+s*h,c=-1),s=Math.min(p,s),s<p&&M.labelAlign==="center"&&(S.x+=c*(p-s-h*(p-Math.min(t,s)))),(t>s||M.autoRotation&&(d.styles||{}).width)&&(a=s)),a&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(a)+"px",(w.style||{}).textOverflow||(i.textOverflow="ellipsis"),d.css(i)))},v.prototype.moveLabel=function(S,M){var w=this,D=w.label,R=w.axis,k=R.reversed,r=!1;if(D&&D.textStr===S?(w.movedLabel=D,r=!0,delete w.label):y(R.ticks,function(o){r||o.isNew||o===w||!o.label||o.label.textStr!==S||(w.movedLabel=o.label,r=!0,o.labelPos=w.movedLabel.xy,delete o.label)}),!r&&(w.labelPos||D)){var d=w.labelPos||D.xy;D=R.horiz?k?0:R.width+R.left:d.x,R=R.horiz?d.y:k?R.width+R.left:0,w.movedLabel=w.createLabel({x:D,y:R},S,M),w.movedLabel&&w.movedLabel.attr({opacity:0})}},v.prototype.render=function(S,M,w){var D=this.axis,R=D.horiz,k=this.pos,r=C(this.tickmarkOffset,D.tickmarkOffset);k=this.getPosition(R,k,r,M),r=k.x;var d=k.y;D=R&&r===D.pos+D.len||!R&&d===D.pos?-1:1,R=C(w,this.label&&this.label.newOpacity,1),w=C(w,1),this.isActive=!0,this.renderGridLine(M,w,D),this.renderMark(k,w,D),this.renderLabel(k,M,R,S),this.isNew=!1,P(this,"afterRender")},v.prototype.renderGridLine=function(S,M,w){var D=this.axis,R=D.options,k={},r=this.pos,d=this.type,o=C(this.tickmarkOffset,D.tickmarkOffset),h=D.chart.renderer,t=this.gridLine,p=R.gridLineWidth,i=R.gridLineColor,s=R.gridLineDashStyle;this.type==="minor"&&(p=R.minorGridLineWidth,i=R.minorGridLineColor,s=R.minorGridLineDashStyle),t||(D.chart.styledMode||(k.stroke=i,k["stroke-width"]=p||0,k.dashstyle=s),d||(k.zIndex=1),S&&(M=0),this.gridLine=t=h.path().attr(k).addClass("highcharts-"+(d?d+"-":"")+"grid-line").add(D.gridGroup)),t&&(w=D.getPlotLinePath({value:r+o,lineWidth:t.strokeWidth()*w,force:"pass",old:S,acrossPanes:!1}))&&t[S||this.isNew?"attr":"animate"]({d:w,opacity:M})},v.prototype.renderMark=function(S,M,w){var D=this.axis,R=D.options,k=D.chart.renderer,r=this.type,d=D.tickSize(r?r+"Tick":"tick"),o=S.x;S=S.y;var h=C(R[r!=="minor"?"tickWidth":"minorTickWidth"],!r&&D.isXAxis?1:0);R=R[r!=="minor"?"tickColor":"minorTickColor"];var t=this.mark,p=!t;d&&(D.opposite&&(d[0]=-d[0]),t||(this.mark=t=k.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(D.axisGroup),D.chart.styledMode||t.attr({stroke:R,"stroke-width":h})),t[p?"attr":"animate"]({d:this.getMarkPath(o,S,d[0],t.strokeWidth()*w,D.horiz,k),opacity:M}))},v.prototype.renderLabel=function(S,M,w,D){var R=this.axis,k=R.horiz,r=R.options,d=this.label,o=r.labels,h=o.step;R=C(this.tickmarkOffset,R.tickmarkOffset);var t=S.x;S=S.y;var p=!0;d&&g(t)&&(d.xy=S=this.getLabelPosition(t,S,d,k,o,R,D,h),this.isFirst&&!this.isLast&&!r.showFirstLabel||this.isLast&&!this.isFirst&&!r.showLastLabel?p=!1:!k||o.step||o.rotation||M||w===0||this.handleOverflow(S),h&&D%h&&(p=!1),p&&g(S.y)?(S.opacity=w,d[this.isNewLabel?"attr":"animate"](S).show(!0),this.isNewLabel=!1):(d.hide(),this.isNewLabel=!0))},v.prototype.replaceMovedLabel=function(){var S=this.label,M=this.axis,w=M.reversed;if(S&&!this.isNew){var D=M.horiz?w?M.left:M.width+M.left:S.xy.x;w=M.horiz?S.xy.y:w?M.width+M.top:M.top,S.animate({x:D,y:w,opacity:0},void 0,S.destroy),delete this.label}M.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},v}(),W}),lt(E,"Core/Axis/Axis.js",[E["Core/Animation/AnimationUtilities.js"],E["Core/Axis/AxisDefaults.js"],E["Core/Color/Color.js"],E["Core/Defaults.js"],E["Core/Foundation.js"],E["Core/Globals.js"],E["Core/Axis/Tick.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J,tt,K,B){var I=j.animObject,P=Q.defaultOptions,g=J.registerEventOptions,f=tt.deg2rad,y=B.arrayMax,C=B.arrayMin,v=B.clamp,S=B.correctFloat,M=B.defined,w=B.destroyObjectProperties,D=B.erase,R=B.error,k=B.extend,r=B.fireEvent,d=B.isArray,o=B.isNumber,h=B.isString,t=B.merge,p=B.normalizeTickInterval,i=B.objectEach,s=B.pick,c=B.relativeLength,a=B.removeEvent,m=B.splat,A=B.syncTimeout,F=function(z,e){return p(e,void 0,void 0,s(z.options.allowDecimals,.5>e||z.tickAmount!==void 0),!!z.tickAmount)};return j=function(){function z(e,l){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.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(e,l)}return z.prototype.init=function(e,l){var T=l.isX;this.chart=e,this.horiz=e.inverted&&!this.isZAxis?!T:T,this.isXAxis=T,this.coll=this.coll||(T?"xAxis":"yAxis"),r(this,"init",{userOptions:l}),this.opposite=s(l.opposite,this.opposite),this.side=s(l.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(l);var b=this.options,O=b.labels,n=b.type;this.userOptions=l,this.minPixelPadding=0,this.reversed=s(b.reversed,this.reversed),this.visible=b.visible,this.zoomEnabled=b.zoomEnabled,this.hasNames=n==="category"||b.categories===!0,this.categories=b.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=M(b.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=b.minRange||b.maxZoom,this.range=b.range,this.offset=b.offset||0,this.min=this.max=null,l=s(b.crosshair,m(e.options.tooltip.crosshairs)[T?0:1]),this.crosshair=l===!0?{}:l,e.axes.indexOf(this)===-1&&(T?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this)),this.series=this.series||[],e.inverted&&!this.isZAxis&&T&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=o(O.rotation)?O.rotation:void 0,g(this,b),r(this,"afterInit")},z.prototype.setOptions=function(e){this.options=t(W.defaultXAxisOptions,this.coll==="yAxis"&&W.defaultYAxisOptions,[W.defaultTopAxisOptions,W.defaultRightAxisOptions,W.defaultBottomAxisOptions,W.defaultLeftAxisOptions][this.side],t(P[this.coll],e)),r(this,"afterSetOptions",{userOptions:e})},z.prototype.defaultLabelFormatter=function(e){var l=this.axis;e=this.chart.numberFormatter;var T=o(this.value)?this.value:NaN,b=l.chart.time,O=this.dateTimeLabelFormat,n=P.lang,x=n.numericSymbols;n=n.numericSymbolMagnitude||1e3;var u=l.logarithmic?Math.abs(T):l.tickInterval,N=x&&x.length;if(l.categories)var L="".concat(this.value);else if(O)L=b.dateFormat(O,T);else if(N&&1e3<=u)for(;N--&&typeof L>"u";)l=Math.pow(n,N+1),u>=l&&10*T%l===0&&x[N]!==null&&T!==0&&(L=e(T/l,-1)+x[N]);return typeof L>"u"&&(L=1e4<=Math.abs(T)?e(T,-1):e(T,-1,void 0,"")),L},z.prototype.getSeriesExtremes=function(){var e=this,l=e.chart,T;r(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach(function(b){if(b.visible||!l.options.chart.ignoreHiddenSeries){var O=b.options,n=O.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=n&&(n=null),e.isXAxis){if(O=b.xData,O.length){O=e.logarithmic?O.filter(e.validatePositiveValue):O,T=b.getXExtremes(O);var x=T.min,u=T.max;o(x)||x instanceof Date||(O=O.filter(o),T=b.getXExtremes(O),x=T.min,u=T.max),O.length&&(e.dataMin=Math.min(s(e.dataMin,x),x),e.dataMax=Math.max(s(e.dataMax,u),u))}}else b=b.applyExtremes(),o(b.dataMin)&&(x=b.dataMin,e.dataMin=Math.min(s(e.dataMin,x),x)),o(b.dataMax)&&(u=b.dataMax,e.dataMax=Math.max(s(e.dataMax,u),u)),M(n)&&(e.threshold=n),(!O.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),r(this,"afterGetSeriesExtremes")},z.prototype.translate=function(e,l,T,b,O,n){var x=this.linkedParent||this,u=b&&x.old?x.old.min:x.min;if(!o(u))return NaN;var N=x.minPixelPadding;O=(x.isOrdinal||x.brokenAxis&&x.brokenAxis.hasBreaks||x.logarithmic&&O)&&x.lin2val;var L=1,H=0;return b=b&&x.old?x.old.transA:x.transA,b||(b=x.transA),T&&(L*=-1,H=x.len),x.reversed&&(L*=-1,H-=L*(x.sector||x.len)),l?(n=(e*L+H-N)/b+u,O&&(n=x.lin2val(n))):(O&&(e=x.val2lin(e)),e=L*(e-u)*b,n=(x.isRadial?e:S(e))+H+L*N+(o(n)?b*n:0)),n},z.prototype.toPixels=function(e,l){return this.translate(e,!1,!this.horiz,void 0,!0)+(l?0:this.pos)},z.prototype.toValue=function(e,l){return this.translate(e-(l?0:this.pos),!0,!this.horiz,void 0,!0)},z.prototype.getPlotLinePath=function(e){function l($,_,X){return V!=="pass"&&($<_||$>X)&&(V?$=v($,_,X):at=!0),$}var T=this,b=T.chart,O=T.left,n=T.top,x=e.old,u=e.value,N=e.lineWidth,L=x&&b.oldChartHeight||b.chartHeight,H=x&&b.oldChartWidth||b.chartWidth,G=T.transB,U=e.translatedValue,V=e.force,rt,st,ot,et,at;return e={value:u,lineWidth:N,old:x,force:V,acrossPanes:e.acrossPanes,translatedValue:U},r(this,"getPlotLinePath",e,function($){U=s(U,T.translate(u,void 0,void 0,x)),U=v(U,-1e5,1e5),rt=ot=Math.round(U+G),st=et=Math.round(L-U-G),o(U)?T.horiz?(st=n,et=L-T.bottom,rt=ot=l(rt,O,O+T.width)):(rt=O,ot=H-T.right,st=et=l(st,n,n+T.height)):(at=!0,V=!1),$.path=at&&!V?null:b.renderer.crispLine([["M",rt,st],["L",ot,et]],N||1)}),e.path},z.prototype.getLinearTickPositions=function(e,l,T){var b=S(Math.floor(l/e)*e);T=S(Math.ceil(T/e)*e);var O=[],n;if(S(b+e)===b&&(n=20),this.single)return[l];for(l=b;l<=T&&(O.push(l),l=S(l+e,n),l!==x);)var x=l;return O},z.prototype.getMinorTickInterval=function(){var e=this.options;return e.minorTicks===!0?s(e.minorTickInterval,"auto"):e.minorTicks===!1?null:e.minorTickInterval},z.prototype.getMinorTickPositions=function(){var e=this.options,l=this.tickPositions,T=this.minorTickInterval,b=this.pointRangePadding||0,O=this.min-b;b=this.max+b;var n=b-O,x=[];if(n&&n/T<this.len/3){var u=this.logarithmic;if(u)this.paddedTicks.forEach(function(N,L,H){L&&x.push.apply(x,u.getLogTickPositions(T,H[L-1],H[L],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")x=x.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(T),O,b,e.startOfWeek));else for(e=O+(l[0]-O)%T;e<=b&&e!==x[0];e+=T)x.push(e)}return x.length!==0&&this.trimTicks(x),x},z.prototype.adjustForMinRange=function(){var e=this.options,l=this.logarithmic,T=this.min,b=this.max,O=0,n,x,u,N;if(this.isXAxis&&typeof this.minRange>"u"&&!l&&(M(e.min)||M(e.max)||M(e.floor)||M(e.ceiling)?this.minRange=null:(this.series.forEach(function(U){if(u=U.xData,N=U.xIncrement?1:u.length-1,1<u.length)for(n=N;0<n;n--)x=u[n]-u[n-1],(!O||x<O)&&(O=x)}),this.minRange=Math.min(5*O,this.dataMax-this.dataMin))),b-T<this.minRange){var L=this.dataMax-this.dataMin>=this.minRange,H=this.minRange,G=(H-b+T)/2;G=[T-G,s(e.min,T-G)],L&&(G[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),T=y(G),b=[T+H,s(e.max,T+H)],L&&(b[2]=l?l.log2lin(this.dataMax):this.dataMax),b=C(b),b-T<H&&(G[0]=b-H,G[1]=s(e.min,b-H),T=y(G))}this.min=T,this.max=b},z.prototype.getClosest=function(){var e;return this.categories?e=1:this.series.forEach(function(l){var T=l.closestPointRange,b=l.visible||!l.chart.options.chart.ignoreHiddenSeries;!l.noSharedTooltip&&M(T)&&b&&(e=M(e)?Math.min(e,T):T)}),e},z.prototype.nameToX=function(e){var l=d(this.options.categories),T=l?this.categories:this.names,b=e.options.x;if(e.series.requireSorting=!1,M(b)||(b=this.options.uniqueNames&&T?l?T.indexOf(e.name):s(T.keys[e.name],-1):e.series.autoIncrement()),b===-1){if(!l&&T)var O=T.length}else O=b;return typeof O<"u"?(this.names[O]=e.name,this.names.keys[e.name]=O):e.x&&(O=e.x),O},z.prototype.updateNames=function(){var e=this,l=this.names;0<l.length&&(Object.keys(l.keys).forEach(function(T){delete l.keys[T]}),l.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(T){T.xIncrement=null,(!T.points||T.isDirtyData)&&(e.max=Math.max(e.max,T.xData.length-1),T.processData(),T.generatePoints()),T.data.forEach(function(b,O){if(b&&b.options&&typeof b.name<"u"){var n=e.nameToX(b);typeof n<"u"&&n!==b.x&&(b.x=n,T.xData[O]=n)}})}))},z.prototype.setAxisTranslation=function(){var e=this,l=e.max-e.min,T=e.linkedParent,b=!!e.categories,O=e.isXAxis,n=e.axisPointRange||0,x=0,u=0,N=e.transA;if(O||b||n){var L=e.getClosest();T?(x=T.minPointOffset,u=T.pointRangePadding):e.series.forEach(function(H){var G=b?1:O?s(H.options.pointRange,L,0):e.axisPointRange||0,U=H.options.pointPlacement;n=Math.max(n,G),(!e.single||b)&&(H=H.is("xrange")?!O:O,x=Math.max(x,H&&h(U)?0:G/2),u=Math.max(u,H&&U==="on"?0:G))}),T=e.ordinal&&e.ordinal.slope&&L?e.ordinal.slope/L:1,e.minPointOffset=x*=T,e.pointRangePadding=u*=T,e.pointRange=Math.min(n,e.single&&b?1:l),O&&(e.closestPointRange=L)}e.translationSlope=e.transA=N=e.staticScale||e.len/(l+u||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=N*x,r(this,"afterSetAxisTranslation")},z.prototype.minFromRange=function(){return this.max-this.range},z.prototype.setTickInterval=function(e){var l=this.chart,T=this.logarithmic,b=this.options,O=this.isXAxis,n=this.isLinked,x=b.tickPixelInterval,u=this.categories,N=this.softThreshold,L=b.maxPadding,H=b.minPadding,G=o(b.tickInterval)&&0<=b.tickInterval?b.tickInterval:void 0,U=o(this.threshold)?this.threshold:null;this.dateTime||u||n||this.getTickAmount();var V=s(this.userMin,b.min),rt=s(this.userMax,b.max);if(n){this.linkedParent=l[this.coll][b.linkedTo];var st=this.linkedParent.getExtremes();this.min=s(st.min,st.dataMin),this.max=s(st.max,st.dataMax),b.type!==this.linkedParent.options.type&&R(11,1,l)}else{if(N&&M(U)){if(this.dataMin>=U)st=U,H=0;else if(this.dataMax<=U){var ot=U;L=0}}this.min=s(V,st,this.dataMin),this.max=s(rt,ot,this.dataMax)}if(T&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,s(this.dataMin,this.min))&&R(10,1,l),this.min=S(T.log2lin(this.min),16),this.max=S(T.log2lin(this.max),16)),this.range&&M(this.max)&&(this.userMin=this.min=V=Math.max(this.dataMin,this.minFromRange()),this.userMax=rt=this.max,this.range=null),r(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(u||this.axisPointRange||this.stacking&&this.stacking.usePercentage||n)&&M(this.min)&&M(this.max)&&(l=this.max-this.min)&&(!M(V)&&H&&(this.min-=l*H),!M(rt)&&L&&(this.max+=l*L)),o(this.userMin)||(o(b.softMin)&&b.softMin<this.min&&(this.min=V=b.softMin),o(b.floor)&&(this.min=Math.max(this.min,b.floor))),o(this.userMax)||(o(b.softMax)&&b.softMax>this.max&&(this.max=rt=b.softMax),o(b.ceiling)&&(this.max=Math.min(this.max,b.ceiling))),N&&M(this.dataMin)&&(U=U||0,!M(V)&&this.min<U&&this.dataMin>=U?this.min=this.options.minRange?Math.min(U,this.max-this.minRange):U:!M(rt)&&this.max>U&&this.dataMax<=U&&(this.max=this.options.minRange?Math.max(U,this.min+this.minRange):U)),o(this.min)&&o(this.max)&&!this.chart.polar&&this.min>this.max&&(M(this.options.min)?this.max=this.min:M(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||typeof this.min>"u"||typeof this.max>"u"?1:n&&this.linkedParent&&!G&&x===this.linkedParent.options.tickPixelInterval?G=this.linkedParent.tickInterval:s(G,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,u?1:(this.max-this.min)*x/Math.max(this.len,x)),O&&!e){var et=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(at){at.forceCrop=at.forceCropping&&at.forceCropping(),at.processData(et)}),r(this,"postProcessData",{hasExtremesChanged:et})}this.setAxisTranslation(),r(this,"initialAxisTranslation"),this.pointRange&&!G&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),e=s(b.minTickInterval,this.dateTime&&!this.series.some(function(at){return at.noSharedTooltip})?this.closestPointRange:0),!G&&this.tickInterval<e&&(this.tickInterval=e),this.dateTime||this.logarithmic||G||(this.tickInterval=F(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},z.prototype.setTickPositions=function(){var e=this.options,l=e.tickPositions,T=e.tickPositioner,b=this.getMinorTickInterval(),O=this.hasVerticalPanning(),n=this.coll==="colorAxis",x=(n||!O)&&e.startOnTick;O=(n||!O)&&e.endOnTick,n=[];var u;if(this.tickmarkOffset=this.categories&&e.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=b==="auto"&&this.tickInterval?this.tickInterval/5:b,this.single=this.min===this.max&&M(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||e.allowDecimals!==!1),l)n=l.slice();else if(o(this.min)&&o(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(b=e=this.tickInterval;b<=2*e&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=F(this,b*=1.1);else n=[this.min,this.max],R(19,!1,this.chart);n.length>this.len&&(n=[n[0],n[n.length-1]],n[0]===n[1]&&(n.length=1)),T&&(this.tickPositions=n,(u=T.apply(this,[this.min,this.max]))&&(n=u))}this.tickPositions=n,this.paddedTicks=n.slice(0),this.trimTicks(n,x,O),!this.isLinked&&o(this.min)&&o(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some(function(N){return N.is("heatmap")&&N.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),l||u||this.adjustTickAmount()),r(this,"afterSetTickPositions")},z.prototype.trimTicks=function(e,l,T){var b=e[0],O=e[e.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(r(this,"trimTicks"),!this.isLinked){if(l&&b!==-1/0)this.min=b;else for(;this.min-n>e[0];)e.shift();if(T)this.max=O;else for(;this.max+n<e[e.length-1];)e.pop();e.length===0&&M(b)&&!this.options.tickPositions&&e.push((O+b)/2)}},z.prototype.alignToOthers=function(){var e=this,l=[this],T=e.options,b=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,O=[],n;if(e.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&T.alignTicks||b)&&T.startOnTick!==!1&&T.endOnTick!==!1&&!e.logarithmic){var x=function(L){var H=L.options;return[L.horiz?H.left:H.top,H.width,H.height,H.pane].join()},u=x(this);this.chart[this.coll].forEach(function(L){var H=L.series;H.length&&H.some(function(G){return G.visible})&&L!==e&&x(L)===u&&(n=!0,l.push(L))})}if(n&&b){l.forEach(function(L){L=L.getThresholdAlignment(e),o(L)&&O.push(L)});var N=1<O.length?O.reduce(function(L,H){return L+H},0)/O.length:void 0;l.forEach(function(L){L.thresholdAlignment=N})}return n},z.prototype.getThresholdAlignment=function(e){if((!o(this.dataMin)||this!==e&&this.series.some(function(l){return l.isDirty||l.isDirtyData}))&&this.getSeriesExtremes(),o(this.threshold))return e=v((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(e=1-e),e},z.prototype.getTickAmount=function(){var e=this.options,l=e.tickPixelInterval,T=e.tickAmount;!M(e.tickInterval)&&!T&&this.len<l&&!this.isRadial&&!this.logarithmic&&e.startOnTick&&e.endOnTick&&(T=2),!T&&this.alignToOthers()&&(T=Math.ceil(this.len/l)+1),4>T&&(this.finalTickAmt=T,T=5),this.tickAmount=T},z.prototype.adjustTickAmount=function(){var e=this,l=e.finalTickAmt,T=e.max,b=e.min,O=e.options,n=e.tickPositions,x=e.tickAmount,u=e.thresholdAlignment,N=n&&n.length,L=s(e.threshold,e.softThreshold?0:null),H=e.tickInterval;if(o(u)){var G=.5>u?Math.ceil(u*(x-1)):Math.floor(u*(x-1));O.reversed&&(G=x-1-G)}if(e.hasData()&&o(b)&&o(T)){if(u=function(){e.transA*=(N-1)/(x-1),e.min=O.startOnTick?n[0]:Math.min(b,n[0]),e.max=O.endOnTick?n[n.length-1]:Math.max(T,n[n.length-1])},o(G)&&o(e.threshold)){for(;n[G]!==L||n.length!==x||n[0]>b||n[n.length-1]<T;){for(n.length=0,n.push(e.threshold);n.length<x;)n[G]===void 0||n[G]>e.threshold?n.unshift(S(n[0]-H)):n.push(S(n[n.length-1]+H));if(H>8*e.tickInterval)break;H*=2}u()}else if(N<x){for(;n.length<x;)n.length%2||b===L?n.push(S(n[n.length-1]+H)):n.unshift(S(n[0]-H));u()}if(M(l)){for(H=L=n.length;H--;)(l===3&&H%2===1||2>=l&&0<H&&H<L-1)&&n.splice(H,1);e.finalTickAmt=void 0}}},z.prototype.setScale=function(){var e=!1,l=!1;this.series.forEach(function(b){e=e||b.isDirtyData||b.isDirty,l=l||b.xAxis&&b.xAxis.isDirty||!1}),this.setAxisSize();var T=this.len!==(this.old&&this.old.len);T||e||l||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.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=T||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),e&&this.panningState&&(this.panningState.isDirty=!0),r(this,"afterSetScale")},z.prototype.setExtremes=function(e,l,T,b,O){var n=this,x=n.chart;T=s(T,!0),n.series.forEach(function(u){delete u.kdTree}),O=k(O,{min:e,max:l}),r(n,"setExtremes",O,function(){n.userMin=e,n.userMax=l,n.eventArgs=O,T&&x.redraw(b)})},z.prototype.zoom=function(e,l){var T=this,b=this.dataMin,O=this.dataMax,n=this.options,x=Math.min(b,s(n.min,b)),u=Math.max(O,s(n.max,O));return e={newMin:e,newMax:l},r(this,"zoom",e,function(N){var L=N.newMin,H=N.newMax;(L!==T.min||H!==T.max)&&(T.allowZoomOutside||(M(b)&&(L<x&&(L=x),L>u&&(L=u)),M(O)&&(H<x&&(H=x),H>u&&(H=u))),T.displayBtn=typeof L<"u"||typeof H<"u",T.setExtremes(L,H,!1,void 0,{trigger:"zoom"})),N.zoomed=!0}),e.zoomed},z.prototype.setAxisSize=function(){var e=this.chart,l=this.options,T=l.offsets||[0,0,0,0],b=this.horiz,O=this.width=Math.round(c(s(l.width,e.plotWidth-T[3]+T[1]),e.plotWidth)),n=this.height=Math.round(c(s(l.height,e.plotHeight-T[0]+T[2]),e.plotHeight)),x=this.top=Math.round(c(s(l.top,e.plotTop+T[0]),e.plotHeight,e.plotTop));l=this.left=Math.round(c(s(l.left,e.plotLeft+T[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-n-x,this.right=e.chartWidth-O-l,this.len=Math.max(b?O:n,0),this.pos=b?l:x},z.prototype.getExtremes=function(){var e=this.logarithmic;return{min:e?S(e.lin2log(this.min)):this.min,max:e?S(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},z.prototype.getThreshold=function(e){var l=this.logarithmic,T=l?l.lin2log(this.min):this.min;return l=l?l.lin2log(this.max):this.max,e===null||e===-1/0?e=T:e===1/0?e=l:T>e?e=T:l<e&&(e=l),this.translate(e,0,1,0,1)},z.prototype.autoLabelAlign=function(e){var l=(s(e,0)-90*this.side+720)%360;return e={align:"center"},r(this,"autoLabelAlign",e,function(T){15<l&&165>l?T.align="right":195<l&&345>l&&(T.align="left")}),e.align},z.prototype.tickSize=function(e){var l=this.options,T=s(l[e==="tick"?"tickWidth":"minorTickWidth"],e==="tick"&&this.isXAxis&&!this.categories?1:0),b=l[e==="tick"?"tickLength":"minorTickLength"];if(T&&b){l[e+"Position"]==="inside"&&(b=-b);var O=[b,T]}return e={tickSize:O},r(this,"afterTickSize",e),e.tickSize},z.prototype.labelMetrics=function(){var e=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[e]&&this.ticks[e].label)},z.prototype.unsquish=function(){var e=this.options.labels,l=this.horiz,T=this.tickInterval,b=this.len/(((this.categories?1:0)+this.max-this.min)/T),O=e.rotation,n=this.labelMetrics(),x=Math.max(this.max-this.min,0),u=function(ot){var et=ot/(b||1);return et=1<et?Math.ceil(et):1,et*T>x&&ot!==1/0&&b!==1/0&&x&&(et=Math.ceil(x/T)),S(et*T)},N=T,L=Number.MAX_VALUE;if(l){if(!e.staggerLines)if(o(O))var H=[O];else b<e.autoRotationLimit&&(H=e.autoRotation);if(H)for(var G=l=void 0,U=0,V=H;U<V.length;U++){var rt=V[U];if((rt===O||rt&&-90<=rt&&90>=rt)&&(l=u(Math.abs(n.h/Math.sin(f*rt))),G=l+Math.abs(rt/360),G<L)){L=G;var st=rt;N=l}}}else N=u(n.h);return this.autoRotation=H,this.labelRotation=s(st,o(O)?O:0),e.step?T:N},z.prototype.getSlotWidth=function(e){var l=this.chart,T=this.horiz,b=this.options.labels,O=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=l.margin[3];if(e&&o(e.slotWidth))return e.slotWidth;if(T&&2>b.step)return b.rotation?0:(this.staggerLines||1)*this.len/O;if(!T){if(e=b.style.width,e!==void 0)return parseInt(String(e),10);if(n)return n-l.spacing[3]}return .33*l.chartWidth},z.prototype.renderUnsquish=function(){var e=this.chart,l=e.renderer,T=this.tickPositions,b=this.ticks,O=this.options.labels,n=O.style,x=this.horiz,u=this.getSlotWidth(),N=Math.max(1,Math.round(u-2*O.padding)),L={},H=this.labelMetrics(),G=n.textOverflow,U=0;if(h(O.rotation)||(L.rotation=O.rotation||0),T.forEach(function(ot){ot=b[ot],ot.movedLabel&&ot.replaceMovedLabel(),ot&&ot.label&&ot.label.textPxLength>U&&(U=ot.label.textPxLength)}),this.maxLabelLength=U,this.autoRotation)U>N&&U>H.h?L.rotation=this.labelRotation:this.labelRotation=0;else if(u){var V=N;if(!G){var rt="clip";for(N=T.length;!x&&N--;){var st=T[N];(st=b[st].label)&&(st.styles&&st.styles.textOverflow==="ellipsis"?st.css({textOverflow:"clip"}):st.textPxLength>u&&st.css({width:u+"px"}),st.getBBox().height>this.len/T.length-(H.h-H.f)&&(st.specificTextOverflow="ellipsis"))}}}L.rotation&&(V=U>.5*e.chartHeight?.33*e.chartHeight:U,G||(rt="ellipsis")),(this.labelAlign=O.align||this.autoLabelAlign(this.labelRotation))&&(L.align=this.labelAlign),T.forEach(function(ot){var et=(ot=b[ot])&&ot.label,at=n.width,$={};et&&(et.attr(L),ot.shortenLabel?ot.shortenLabel():V&&!at&&n.whiteSpace!=="nowrap"&&(V<et.textPxLength||et.element.tagName==="SPAN")?($.width=V+"px",G||($.textOverflow=et.specificTextOverflow||rt),et.css($)):et.styles&&et.styles.width&&!$.width&&!at&&et.css({width:null}),delete et.specificTextOverflow,ot.rotation=L.rotation)},this),this.tickRotCorr=l.rotCorr(H.b,this.labelRotation||0,this.side!==0)},z.prototype.hasData=function(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&M(this.min)&&M(this.max)},z.prototype.addTitle=function(e){var l=this.chart.renderer,T=this.horiz,b=this.opposite,O=this.options.title,n=this.chart.styledMode,x;this.axisTitle||((x=O.textAlign)||(x=(T?{low:"left",middle:"center",high:"right"}:{low:b?"right":"left",middle:"center",high:b?"left":"right"})[O.align]),this.axisTitle=l.text(O.text||"",0,0,O.useHTML).attr({zIndex:7,rotation:O.rotation,align:x}).addClass("highcharts-axis-title"),n||this.axisTitle.css(t(O.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||O.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)},z.prototype.generateTick=function(e){var l=this.ticks;l[e]?l[e].addLabel():l[e]=new K(this,e)},z.prototype.getOffset=function(){var e=this,l=this,T=l.chart,b=l.horiz,O=l.options,n=l.side,x=l.ticks,u=l.tickPositions,N=l.coll,L=l.axisParent,H=T.renderer,G=T.inverted&&!l.isZAxis?[1,0,3,2][n]:n,U=l.hasData(),V=O.title,rt=O.labels,st=T.axisOffset;T=T.clipOffset;var ot=[-1,1,1,-1][n],et=O.className,at,$=0,_=0,X=0;if(l.showAxis=at=U||O.showEmpty,l.staggerLines=l.horiz&&rt.staggerLines||void 0,!l.axisGroup){var Z=function(it,nt,ht){return H.g(it).attr({zIndex:ht}).addClass("highcharts-".concat(N.toLowerCase()).concat(nt," ")+(e.isRadial?"highcharts-radial-axis".concat(nt," "):"")+(et||"")).add(L)};l.gridGroup=Z("grid","-grid",O.gridZIndex),l.axisGroup=Z("axis","",O.zIndex),l.labelGroup=Z("axis-labels","-labels",rt.zIndex)}if(U||l.isLinked?(u.forEach(function(it){l.generateTick(it)}),l.renderUnsquish(),l.reserveSpaceDefault=n===0||n===2||{1:"left",3:"right"}[n]===l.labelAlign,s(rt.reserveSpace,l.labelAlign==="center"?!0:null,l.reserveSpaceDefault)&&u.forEach(function(it){X=Math.max(x[it].getLabelSize(),X)}),l.staggerLines&&(X*=l.staggerLines),l.labelOffset=X*(l.opposite?-1:1)):i(x,function(it,nt){it.destroy(),delete x[nt]}),V&&V.text&&V.enabled!==!1&&(l.addTitle(at),at&&V.reserveSpace!==!1)){l.titleOffset=$=l.axisTitle.getBBox()[b?"height":"width"];var q=V.offset;_=M(q)?0:s(V.margin,b?5:10)}l.renderLine(),l.offset=ot*s(O.offset,st[n]?st[n]+(O.margin||0):0),l.tickRotCorr=l.tickRotCorr||{x:0,y:0},V=n===0?-l.labelMetrics().h:n===2?l.tickRotCorr.y:0,U=Math.abs(X)+_,X&&(U=U-V+ot*(b?s(rt.y,l.tickRotCorr.y+8*ot):rt.x)),l.axisTitleMargin=s(q,U),l.getMaxLabelDimensions&&(l.maxLabelDimensions=l.getMaxLabelDimensions(x,u)),N!=="colorAxis"&&(b=this.tickSize("tick"),st[n]=Math.max(st[n],(l.axisTitleMargin||0)+$+ot*l.offset,U,u&&u.length&&b?b[0]+ot*l.offset:0),O=!l.axisLine||O.offset?0:2*Math.floor(l.axisLine.strokeWidth()/2),T[G]=Math.max(T[G],O)),r(this,"afterGetOffset")},z.prototype.getLinePath=function(e){var l=this.chart,T=this.opposite,b=this.offset,O=this.horiz,n=this.left+(T?this.width:0)+b;return b=l.chartHeight-this.bottom-(T?this.height:0)+b,T&&(e*=-1),l.renderer.crispLine([["M",O?this.left:n,O?b:this.top],["L",O?l.chartWidth-this.right:n,O?b:l.chartHeight-this.bottom]],e)},z.prototype.renderLine=function(){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}))},z.prototype.getTitlePosition=function(){var e=this.horiz,l=this.left,T=this.top,b=this.len,O=this.options.title,n=e?l:T,x=this.opposite,u=this.offset,N=O.x,L=O.y,H=this.axisTitle,G=this.chart.renderer.fontMetrics(O.style.fontSize,H);return H=H?Math.max(H.getBBox(!1,0).height-G.h-1,0):0,b={low:n+(e?0:b),middle:n+b/2,high:n+(e?b:0)}[O.align],l=(e?T+this.height:l)+(e?1:-1)*(x?-1:1)*(this.axisTitleMargin||0)+[-H,H,G.f,-H][this.side],e={x:e?b+N:l+(x?this.width:0)+u+N,y:e?l+L-(x?this.height:0)+u:b+L},r(this,"afterGetTitlePosition",{titlePosition:e}),e},z.prototype.renderMinorTick=function(e,l){var T=this.minorTicks;T[e]||(T[e]=new K(this,e,"minor")),l&&T[e].isNew&&T[e].render(null,!0),T[e].render(null,!1,1)},z.prototype.renderTick=function(e,l,T){var b=this.ticks;(!this.isLinked||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(b[e]||(b[e]=new K(this,e)),T&&b[e].isNew&&b[e].render(l,!0,-1),b[e].render(l))},z.prototype.render=function(){var e=this,l=e.chart,T=e.logarithmic,b=e.options,O=e.isLinked,n=e.tickPositions,x=e.axisTitle,u=e.ticks,N=e.minorTicks,L=e.alternateBands,H=b.stackLabels,G=b.alternateGridColor,U=e.tickmarkOffset,V=e.axisLine,rt=e.showAxis,st=I(l.renderer.globalAnimation),ot,et;if(e.labelEdge.length=0,e.overlap=!1,[u,N,L].forEach(function($){i($,function(_){_.isActive=!1})}),e.hasData()||O){var at=e.chart.hasRendered&&e.old&&o(e.old.min);e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEach(function($){e.renderMinorTick($,at)}),n.length&&(n.forEach(function($,_){e.renderTick($,_,at)}),U&&(e.min===0||e.single)&&(u[-1]||(u[-1]=new K(e,-1,null,!0)),u[-1].render(-1))),G&&n.forEach(function($,_){et=typeof n[_+1]<"u"?n[_+1]+U:e.max-U,_%2===0&&$<e.max&&et<=e.max+(l.polar?-U:U)&&(L[$]||(L[$]=new tt.PlotLineOrBand(e)),ot=$+U,L[$].options={from:T?T.lin2log(ot):ot,to:T?T.lin2log(et):et,color:G,className:"highcharts-alternate-grid"},L[$].render(),L[$].isActive=!0)}),e._addedPlotLB||(e._addedPlotLB=!0,(b.plotLines||[]).concat(b.plotBands||[]).forEach(function($){e.addPlotBandOrLine($)}))}[u,N,L].forEach(function($){var _=[],X=st.duration;i($,function(Z,q){Z.isActive||(Z.render(q,!1,0),Z.isActive=!1,_.push(q))}),A(function(){for(var Z=_.length;Z--;)$[_[Z]]&&!$[_[Z]].isActive&&($[_[Z]].destroy(),delete $[_[Z]])},$!==L&&l.hasRendered&&X?X:0)}),V&&(V[V.isPlaced?"animate":"attr"]({d:this.getLinePath(V.strokeWidth())}),V.isPlaced=!0,V[rt?"show":"hide"](rt)),x&&rt&&(b=e.getTitlePosition(),x[x.isNew?"attr":"animate"](b),x.isNew=!1),H&&H.enabled&&e.stacking&&e.stacking.renderStackTotals(),e.old={len:e.len,max:e.max,min:e.min,transA:e.transA,userMax:e.userMax,userMin:e.userMin},e.isDirty=!1,r(this,"afterRender")},z.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})},z.prototype.getKeepProps=function(){return this.keepProps||z.keepProps},z.prototype.destroy=function(e){var l=this,T=l.plotLinesAndBands,b=this.eventOptions;if(r(this,"destroy",{keepEvents:e}),e||a(l),[l.ticks,l.minorTicks,l.alternateBands].forEach(function(n){w(n)}),T)for(e=T.length;e--;)T[e].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(n){l[n]&&(l[n]=l[n].destroy())});for(var O in l.plotLinesAndBandsGroups)l.plotLinesAndBandsGroups[O]=l.plotLinesAndBandsGroups[O].destroy();i(l,function(n,x){l.getKeepProps().indexOf(x)===-1&&delete l[x]}),this.eventOptions=b},z.prototype.drawCrosshair=function(e,l){var T=this.crosshair,b=s(T&&T.snap,!0),O=this.chart,n,x=this.cross;if(r(this,"drawCrosshair",{e,point:l}),e||(e=this.cross&&this.cross.e),T&&(M(l)||!b)!==!1){if(b?M(l)&&(n=s(this.coll!=="colorAxis"?l.crosshairPos:null,this.isXAxis?l.plotX:this.len-l.plotY)):n=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),M(n)){var u={value:l&&(this.isXAxis?l.x:s(l.stackY,l.y)),translatedValue:n};O.polar&&k(u,{isCrosshair:!0,chartX:e&&e.chartX,chartY:e&&e.chartY,point:l}),u=this.getPlotLinePath(u)||null}if(!M(u)){this.hideCrosshair();return}b=this.categories&&!this.isRadial,x||(this.cross=x=O.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(b?"category ":"thin ")+(T.className||"")).attr({zIndex:s(T.zIndex,2)}).add(),O.styledMode||(x.attr({stroke:T.color||(b?Y.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":s(T.width,1)}).css({"pointer-events":"none"}),T.dashStyle&&x.attr({dashstyle:T.dashStyle}))),x.show().attr({d:u}),b&&!T.width&&x.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();r(this,"afterDrawCrosshair",{e,point:l})},z.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),r(this,"afterHideCrosshair")},z.prototype.hasVerticalPanning=function(){var e=this.chart.options.chart.panning;return!!(e&&e.enabled&&/y/.test(e.type))},z.prototype.validatePositiveValue=function(e){return o(e)&&0<e},z.prototype.update=function(e,l){var T=this.chart;e=t(this.userOptions,e),this.destroy(!0),this.init(T,e),T.isDirtyBox=!0,s(l,!0)&&T.redraw()},z.prototype.remove=function(e){for(var l=this.chart,T=this.coll,b=this.series,O=b.length;O--;)b[O]&&b[O].remove(!1);D(l.axes,this),D(l[T],this),l[T].forEach(function(n,x){n.options.index=n.userOptions.index=x}),this.destroy(),l.isDirtyBox=!0,s(e,!0)&&l.redraw()},z.prototype.setTitle=function(e,l){this.update({title:e},l)},z.prototype.setCategories=function(e,l){this.update({categories:e},l)},z.defaultOptions=W.defaultXAxisOptions,z.keepProps="extKey hcEvents names series userMax userMin".split(" "),z}(),j}),lt(E,"Core/Axis/DateTimeAxis.js",[E["Core/Utilities.js"]],function(j){var W=j.addEvent,Y=j.getMagnitude,Q=j.normalizeTickInterval,J=j.timeUnits,tt;return function(K){function B(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function I(f){f.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new g(this))}var P=[];K.compose=function(f){return P.indexOf(f)===-1&&(P.push(f),f.keepProps.push("dateTime"),f.prototype.getTimeTicks=B,W(f,"init",I)),f};var g=function(){function f(y){this.axis=y}return f.prototype.normalizeTimeTickInterval=function(y,C){var v=C||[["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]];C=v[v.length-1];var S=J[C[0]],M=C[1],w;for(w=0;w<v.length&&(C=v[w],S=J[C[0]],M=C[1],!(v[w+1]&&y<=(S*M[M.length-1]+J[v[w+1][0]])/2));w++);return S===J.year&&y<5*S&&(M=[1,2,5]),y=Q(y/S,M,C[0]==="year"?Math.max(Y(y/S),1):1),{unitRange:S,count:y,unitName:C[0]}},f.prototype.getXDateFormat=function(y,C){var v=this.axis,S=v.chart.time;return v.closestPointRange?S.getDateFormat(v.closestPointRange,y,v.options.startOfWeek,C)||S.resolveDTLFormat(C.year).main:S.resolveDTLFormat(C.day).main},f}();K.Additions=g}(tt||(tt={})),tt}),lt(E,"Core/Axis/LogarithmicAxis.js",[E["Core/Utilities.js"]],function(j){var W=j.addEvent,Y=j.normalizeTickInterval,Q=j.pick,J;return function(tt){function K(g){var f=this.logarithmic;g.userOptions.type!=="logarithmic"?this.logarithmic=void 0:f||(this.logarithmic=new P(this))}function B(){var g=this.logarithmic;g&&(this.lin2val=function(f){return g.lin2log(f)},this.val2lin=function(f){return g.log2lin(f)})}var I=[];tt.compose=function(g){return I.indexOf(g)===-1&&(I.push(g),g.keepProps.push("logarithmic"),W(g,"init",K),W(g,"afterInit",B)),g};var P=function(){function g(f){this.axis=f}return g.prototype.getLogTickPositions=function(f,y,C,v){var S=this.axis,M=S.len,w=S.options,D=[];if(v||(this.minorAutoInterval=void 0),.5<=f)f=Math.round(f),D=S.getLinearTickPositions(f,y,C);else if(.08<=f){var R=Math.floor(y),k,r=w=void 0;for(M=.3<f?[1,2,4]:.15<f?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];R<C+1&&!r;R++){var d=M.length;for(k=0;k<d&&!r;k++){var o=this.log2lin(this.lin2log(R)*M[k]);o>y&&(!v||w<=C)&&typeof w<"u"&&D.push(w),w>C&&(r=!0),w=o}}}else y=this.lin2log(y),C=this.lin2log(C),f=v?S.getMinorTickInterval():w.tickInterval,f=Q(f==="auto"?null:f,this.minorAutoInterval,w.tickPixelInterval/(v?5:1)*(C-y)/((v?M/S.tickPositions.length:M)||1)),f=Y(f),D=S.getLinearTickPositions(f,y,C).map(this.log2lin),v||(this.minorAutoInterval=f/5);return v||(S.tickInterval=f),D},g.prototype.lin2log=function(f){return Math.pow(10,f)},g.prototype.log2lin=function(f){return Math.log(f)/Math.LN10},g}();tt.Additions=P}(J||(J={})),J}),lt(E,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[E["Core/Utilities.js"]],function(j){var W=j.erase,Y=j.extend,Q=j.isNumber,J;return function(tt){var K=[],B;tt.compose=function(P,g){return B||(B=P),K.indexOf(g)===-1&&(K.push(g),Y(g.prototype,I.prototype)),g};var I=function(){function P(){}return P.prototype.getPlotBandPath=function(g,f,y){y===void 0&&(y=this.options);var C=this.getPlotLinePath({value:f,force:!0,acrossPanes:y.acrossPanes}),v=[],S=this.horiz;if(f=!Q(this.min)||!Q(this.max)||g<this.min&&f<this.min||g>this.max&&f>this.max,g=this.getPlotLinePath({value:g,force:!0,acrossPanes:y.acrossPanes}),y=1,g&&C){if(f){var M=g.toString()===C.toString();y=0}for(f=0;f<g.length;f+=2){var w=g[f],D=g[f+1],R=C[f],k=C[f+1];w[0]!=="M"&&w[0]!=="L"||D[0]!=="M"&&D[0]!=="L"||R[0]!=="M"&&R[0]!=="L"||k[0]!=="M"&&k[0]!=="L"||(S&&R[1]===w[1]?(R[1]+=y,k[1]+=y):S||R[2]!==w[2]||(R[2]+=y,k[2]+=y),v.push(["M",w[1],w[2]],["L",D[1],D[2]],["L",k[1],k[2]],["L",R[1],R[2]],["Z"])),v.isFlat=M}}return v},P.prototype.addPlotBand=function(g){return this.addPlotBandOrLine(g,"plotBands")},P.prototype.addPlotLine=function(g){return this.addPlotBandOrLine(g,"plotLines")},P.prototype.addPlotBandOrLine=function(g,f){var y=this,C=this.userOptions,v=new B(this,g);if(this.visible&&(v=v.render()),v){if(this._addedPlotLB||(this._addedPlotLB=!0,(C.plotLines||[]).concat(C.plotBands||[]).forEach(function(M){y.addPlotBandOrLine(M)})),f){var S=C[f]||[];S.push(g),C[f]=S}this.plotLinesAndBands.push(v)}return v},P.prototype.removePlotBandOrLine=function(g){var f=this.plotLinesAndBands,y=this.options,C=this.userOptions;if(f){for(var v=f.length;v--;)f[v].id===g&&f[v].destroy();[y.plotLines||[],C.plotLines||[],y.plotBands||[],C.plotBands||[]].forEach(function(S){for(v=S.length;v--;)(S[v]||{}).id===g&&W(S,S[v])})}},P.prototype.removePlotBand=function(g){this.removePlotBandOrLine(g)},P.prototype.removePlotLine=function(g){this.removePlotBandOrLine(g)},P}()}(J||(J={})),J}),lt(E,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[E["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],E["Core/Utilities.js"]],function(j,W){var Y=W.arrayMax,Q=W.arrayMin,J=W.defined,tt=W.destroyObjectProperties,K=W.erase,B=W.fireEvent,I=W.merge,P=W.objectEach,g=W.pick;return W=function(){function f(y,C){this.axis=y,C&&(this.options=C,this.id=C.id)}return f.compose=function(y){return j.compose(f,y)},f.prototype.render=function(){B(this,"render");var y=this,C=y.axis,v=C.horiz,S=C.logarithmic,M=y.options,w=M.color,D=g(M.zIndex,0),R=M.events,k={},r=C.chart.renderer,d=M.label,o=y.label,h=M.to,t=M.from,p=M.value,i=y.svgElem,s=[],c=J(t)&&J(h);s=J(p);var a=!i,m={class:"highcharts-plot-"+(c?"band ":"line ")+(M.className||"")},A=c?"bands":"lines";if(S&&(t=S.log2lin(t),h=S.log2lin(h),p=S.log2lin(p)),C.chart.styledMode||(s?(m.stroke=w||"#999999",m["stroke-width"]=g(M.width,1),M.dashStyle&&(m.dashstyle=M.dashStyle)):c&&(m.fill=w||"#e6ebf5",M.borderWidth&&(m.stroke=M.borderColor,m["stroke-width"]=M.borderWidth))),k.zIndex=D,A+="-"+D,(S=C.plotLinesAndBandsGroups[A])||(C.plotLinesAndBandsGroups[A]=S=r.g("plot-"+A).attr(k).add()),a&&(y.svgElem=i=r.path().attr(m).add(S)),s)s=C.getPlotLinePath({value:p,lineWidth:i.strokeWidth(),acrossPanes:M.acrossPanes});else if(c)s=C.getPlotBandPath(t,h,M);else return;return!y.eventsAdded&&R&&(P(R,function(F,z){i.on(z,function(e){R[z].apply(y,[e])})}),y.eventsAdded=!0),(a||!i.d)&&s&&s.length?i.attr({d:s}):i&&(s?(i.show(),i.animate({d:s})):i.d&&(i.hide(),o&&(y.label=o=o.destroy()))),d&&(J(d.text)||J(d.formatter))&&s&&s.length&&0<C.width&&0<C.height&&!s.isFlat?(d=I({align:v&&c&&"center",x:v?!c&&4:10,verticalAlign:!v&&c&&"middle",y:v?c?16:10:c?6:-4,rotation:v&&!c&&90},d),this.renderLabel(d,s,c,D)):o&&o.hide(),y},f.prototype.renderLabel=function(y,C,v,S){var M=this.axis,w=M.chart.renderer,D=this.label;D||(this.label=D=w.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(v?"band":"line")+"-label "+(y.className||""),zIndex:S}).add(),M.chart.styledMode||D.css(I({textOverflow:"ellipsis"},y.style))),S=C.xBounds||[C[0][1],C[1][1],v?C[2][1]:C[0][1]],C=C.yBounds||[C[0][2],C[1][2],v?C[2][2]:C[0][2]],v=Q(S),w=Q(C),D.align(y,!1,{x:v,y:w,width:Y(S)-v,height:Y(C)-w}),D.alignValue&&D.alignValue!=="left"||(y=y.clip?M.width:M.chart.chartWidth,D.css({width:(D.rotation===90?M.height-(D.alignAttr.y-M.top):y-(D.alignAttr.x-M.left))+"px"})),D.show(!0)},f.prototype.getLabelText=function(y){return J(y.formatter)?y.formatter.call(this):y.text},f.prototype.destroy=function(){K(this.axis.plotLinesAndBands,this),delete this.axis,tt(this)},f}(),W}),lt(E,"Core/Tooltip.js",[E["Core/FormatUtilities.js"],E["Core/Globals.js"],E["Core/Renderer/RendererUtilities.js"],E["Core/Renderer/RendererRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J){var tt=j.format,K=W.doc,B=Y.distribute,I=J.clamp,P=J.css,g=J.discardElement,f=J.extend,y=J.fireEvent,C=J.isArray,v=J.isNumber,S=J.isString,M=J.merge,w=J.pick,D=J.splat,R=J.syncTimeout;return j=function(){function k(r,d){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=r,this.init(r,d)}return k.prototype.applyFilter=function(){var r=this.chart;r.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+r.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},k.prototype.bodyFormatter=function(r){return r.map(function(d){var o=d.series.tooltipOptions;return(o[(d.point.formatPrefix||"point")+"Formatter"]||d.point.tooltipFormatter).call(d.point,o[(d.point.formatPrefix||"point")+"Format"]||"")})},k.prototype.cleanSplit=function(r){this.chart.series.forEach(function(d){var o=d&&d.tt;o&&(!o.isActive||r?d.tt=o.destroy():o.isActive=!1)})},k.prototype.defaultFormatter=function(r){var d=this.points||D(this),o=[r.tooltipFooterHeaderFormatter(d[0])];return o=o.concat(r.bodyFormatter(d)),o.push(r.tooltipFooterHeaderFormatter(d[0],!0)),o},k.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),g(this.container)),J.clearTimeout(this.hideTimer),J.clearTimeout(this.tooltipTimeout)},k.prototype.getAnchor=function(r,d){var o=this.chart,h=o.pointer,t=o.inverted,p=o.plotTop;if(o=o.plotLeft,r=D(r),r[0].series&&r[0].series.yAxis&&!r[0].series.yAxis.options.reversedStacks&&(r=r.slice().reverse()),this.followPointer&&d)typeof d.chartX>"u"&&(d=h.normalize(d)),r=[d.chartX-o,d.chartY-p];else if(r[0].tooltipPos)r=r[0].tooltipPos;else{var i=0,s=0;r.forEach(function(c){(c=c.pos(!0))&&(i+=c[0],s+=c[1])}),i/=r.length,s/=r.length,this.shared&&1<r.length&&d&&(t?i=d.chartX:s=d.chartY),r=[i-o,s-p]}return r.map(Math.round)},k.prototype.getClassName=function(r,d,o){var h=r.series,t=h.options;return[this.options.className,"highcharts-label",o&&"highcharts-tooltip-header",d?"highcharts-tooltip-box":"highcharts-tooltip",!o&&"highcharts-color-"+w(r.colorIndex,h.colorIndex),t&&t.className].filter(S).join(" ")},k.prototype.getLabel=function(){var r=this,d=this.chart.styledMode,o=this.options,h=this.split&&this.allowShared,t=o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),p,i=this.chart.renderer;if(r.label){var s=!r.label.hasClass("highcharts-label");(h&&!s||!h&&s)&&r.destroy()}if(!this.label){if(this.outside){s=this.chart.options.chart.style;var c=Q.getRendererType();this.container=p=W.doc.createElement("div"),p.className="highcharts-tooltip-container",P(p,{position:"absolute",top:"1px",pointerEvents:t,zIndex:Math.max(this.options.style.zIndex||0,(s&&s.zIndex||0)+3)}),W.doc.body.appendChild(p),this.renderer=i=new c(p,0,0,s,void 0,void 0,i.styledMode)}if(h?this.label=i.g("tooltip"):(this.label=i.label("",0,0,o.shape,void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),d||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).css({pointerEvents:t}).shadow(o.shadow)),d&&o.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),r.outside&&!r.split){var a=this.label,m=a.xSetter,A=a.ySetter;a.xSetter=function(F){m.call(a,r.distance),p.style.left=F+"px"},a.ySetter=function(F){A.call(a,r.distance),p.style.top=F+"px"}}this.label.attr({zIndex:8}).add()}return this.label},k.prototype.getPosition=function(r,d,o){var h=this.chart,t=this.distance,p={},i=h.inverted&&o.h||0,s=this.outside,c=s?K.documentElement.clientWidth-2*t:h.chartWidth,a=s?Math.max(K.body.scrollHeight,K.documentElement.scrollHeight,K.body.offsetHeight,K.documentElement.offsetHeight,K.documentElement.clientHeight):h.chartHeight,m=h.pointer.getChartPosition(),A=function(x){var u=x==="x";return[x,u?c:a,u?r:d].concat(s?[u?r*m.scaleX:d*m.scaleY,u?m.left-t+(o.plotX+h.plotLeft)*m.scaleX:m.top-t+(o.plotY+h.plotTop)*m.scaleY,0,u?c:a]:[u?r:d,u?o.plotX+h.plotLeft:o.plotY+h.plotTop,u?h.plotLeft:h.plotTop,u?h.plotLeft+h.plotWidth:h.plotTop+h.plotHeight])},F=A("y"),z=A("x"),e;A=!!o.negative,!h.polar&&h.hoverSeries&&h.hoverSeries.yAxis&&h.hoverSeries.yAxis.reversed&&(A=!A);var l=!this.followPointer&&w(o.ttBelow,!h.inverted===A),T=function(x,u,N,L,H,G,U){var V=s?x==="y"?t*m.scaleY:t*m.scaleX:t,rt=(N-L)/2,st=L<H-t,ot=H+t+L<u,et=H-V-N+rt;if(H=H+V-rt,l&&ot)p[x]=H;else if(!l&&st)p[x]=et;else if(st)p[x]=Math.min(U-L,0>et-i?et:et-i);else if(ot)p[x]=Math.max(G,H+i+N>u?H:H+i);else return!1},b=function(x,u,N,L,H){var G;return H<t||H>u-t?G=!1:p[x]=H<N/2?1:H>u-L/2?u-L-2:H-N/2,G},O=function(x){var u=F;F=z,z=u,e=x},n=function(){T.apply(0,F)!==!1?b.apply(0,z)!==!1||e||(O(!0),n()):e?p.x=p.y=0:(O(!0),n())};return(h.inverted||1<this.len)&&O(),n(),p},k.prototype.hide=function(r){var d=this;J.clearTimeout(this.hideTimer),r=w(r,this.options.hideDelay),this.isHidden||(this.hideTimer=R(function(){d.getLabel().fadeOut(r&&void 0),d.isHidden=!0},r))},k.prototype.init=function(r,d){this.chart=r,this.options=d,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=d.split&&!r.inverted&&!r.polar,this.shared=d.shared||this.split,this.outside=w(d.outside,!(!r.scrollablePixelsX&&!r.scrollablePixelsY))},k.prototype.shouldStickOnContact=function(r){return!(this.followPointer||!this.options.stickOnContact||r&&!this.chart.pointer.inClass(r.target,"highcharts-tooltip"))},k.prototype.move=function(r,d,o,h){var t=this,p=t.now,i=t.options.animation!==!1&&!t.isHidden&&(1<Math.abs(r-p.x)||1<Math.abs(d-p.y)),s=t.followPointer||1<t.len;f(p,{x:i?(2*p.x+r)/3:r,y:i?(p.y+d)/2:d,anchorX:s?void 0:i?(2*p.anchorX+o)/3:o,anchorY:s?void 0:i?(p.anchorY+h)/2:h}),t.getLabel().attr(p),t.drawTracker(),i&&(J.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(r,d,o,h)},32))},k.prototype.refresh=function(r,d){var o=this.chart,h=this.options,t=o.pointer,p=D(r),i=p[0],s=[],c=h.formatter||this.defaultFormatter,a=this.shared,m=o.styledMode,A={};if(h.enabled&&i.series){J.clearTimeout(this.hideTimer),this.allowShared=!(!C(r)&&r.series&&r.series.noSharedTooltip),this.followPointer=!this.split&&i.series.tooltipOptions.followPointer,r=this.getAnchor(r,d);var F=r[0],z=r[1];if(a&&this.allowShared?(t.applyInactiveState(p),p.forEach(function(T){T.setState("hover"),s.push(T.getLabelConfig())}),A={x:i.category,y:i.y},A.points=s):A=i.getLabelConfig(),this.len=s.length,c=c.call(A,this),a=i.series,this.distance=w(a.tooltipOptions.distance,16),c===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(c,p);else{var e=F,l=z;if(d&&t.isDirectTouch&&(e=d.chartX-o.plotLeft,l=d.chartY-o.plotTop),o.polar||a.options.clip===!1||p.some(function(T){return t.isDirectTouch||T.series.shouldShowTooltip(e,l)}))d=this.getLabel(),h.style.width&&!m||d.css({width:o.spacingBox.width+"px"}),d.attr({text:c&&c.join?c.join(""):c}),d.addClass(this.getClassName(i),!0),m||d.attr({stroke:h.borderColor||i.color||a.color||"#666666"}),this.updatePosition({plotX:F,plotY:z,negative:i.negative,ttBelow:i.ttBelow,h:r[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}},k.prototype.renderSplit=function(r,d){function o(ot,et,at,$,_){return _===void 0&&(_=!0),at?(et=L?0:V,ot=I(ot-$/2,x.left,x.right-$-(h.outside?H:0))):(et-=G,ot=_?ot-$-b:ot+b,ot=I(ot,_?ot:x.left,x.right)),{x:ot,y:et}}var h=this,t=h.chart,p=h.chart,i=p.chartWidth,s=p.chartHeight,c=p.plotHeight,a=p.plotLeft,m=p.plotTop,A=p.pointer,F=p.scrollablePixelsY;F=F===void 0?0:F;var z=p.scrollablePixelsX,e=p.scrollingContainer;e=e===void 0?{scrollLeft:0,scrollTop:0}:e;var l=e.scrollLeft;e=e.scrollTop;var T=p.styledMode,b=h.distance,O=h.options,n=h.options.positioner,x=h.outside&&typeof z!="number"?K.documentElement.getBoundingClientRect():{left:l,right:l+i,top:e,bottom:e+s},u=h.getLabel(),N=this.renderer||t.renderer,L=!(!t.xAxis[0]||!t.xAxis[0].opposite);t=A.getChartPosition();var H=t.left;t=t.top;var G=m+e,U=0,V=c-F;S(r)&&(r=[!1,r]),r=r.slice(0,d.length+1).reduce(function(ot,et,at){if(et!==!1&&et!==""){at=d[at-1]||{isHeader:!0,plotX:d[0].plotX,plotY:c,series:{}};var $=at.isHeader,_=$?h:at.series;et=et.toString();var X=_.tt,Z=at.isHeader,q=at.series;X||(X={padding:O.padding,r:O.borderRadius},T||(X.fill=O.backgroundColor,X["stroke-width"]=O.borderWidth),X=N.label("",0,0,O[Z?"headerShape":"shape"],void 0,void 0,O.useHTML).addClass(h.getClassName(at,!0,Z)).attr(X).add(u)),X.isActive=!0,X.attr({text:et}),T||X.css(O.style).shadow(O.shadow).attr({stroke:O.borderColor||at.color||q.color||"#333333"}),_=_.tt=X,Z=_.getBBox(),et=Z.width+_.strokeWidth(),$&&(U=Z.height,V+=U,L&&(G-=U)),q=at.plotX,q=q===void 0?0:q,X=at.plotY,X=X===void 0?0:X;var it=at.series;if(at.isHeader){q=a+q;var nt=m+c/2}else{var ht=it.xAxis,dt=it.yAxis;q=ht.pos+I(q,-b,ht.len+b),it.shouldShowTooltip(0,dt.pos-m+X,{ignoreX:!0})&&(nt=dt.pos+X)}q=I(q,x.left-b,x.right+b),typeof nt=="number"?(Z=Z.height+1,X=n?n.call(h,et,Z,at):o(q,nt,$,et),ot.push({align:n?0:void 0,anchorX:q,anchorY:nt,boxWidth:et,point:at,rank:w(X.rank,$?1:0),size:Z,target:X.y,tt:_,x:X.x})):_.isActive=!1}return ot},[]),!n&&r.some(function(ot){var et=(h.outside?H:0)+ot.anchorX;return et<x.left&&et+ot.boxWidth<x.right?!0:et<H-x.left+ot.boxWidth&&x.right-et>et})&&(r=r.map(function(ot){var et=o(ot.anchorX,ot.anchorY,ot.point.isHeader,ot.boxWidth,!1);return f(ot,{target:et.y,x:et.x})})),h.cleanSplit(),B(r,V);var rt=H,st=H;r.forEach(function(ot){var et=ot.x,at=ot.boxWidth;ot=ot.isHeader,ot||(h.outside&&H+et<rt&&(rt=H+et),!ot&&h.outside&&rt+at>st&&(st=H+et))}),r.forEach(function(ot){var et=ot.x,at=ot.anchorX,$=ot.pos,_=ot.point.isHeader;if($={visibility:typeof $>"u"?"hidden":"inherit",x:et,y:($||0)+G,anchorX:at,anchorY:ot.anchorY},h.outside&&et<at){var X=H-rt;0<X&&(_||($.x=et+X,$.anchorX=at+X),_&&($.x=(st-rt)/2,$.anchorX=at+X))}ot.tt.attr($)}),r=h.container,F=h.renderer,h.outside&&r&&F&&(p=u.getBBox(),F.setSize(p.width+p.x,p.height+p.y,!1),r.style.left=rt+"px",r.style.top=t+"px")},k.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var r=this.chart,d=this.label,o=this.shared?r.hoverPoints:r.hoverPoint;if(d&&o){var h={x:0,y:0,width:0,height:0};o=this.getAnchor(o);var t=d.getBBox();o[0]+=r.plotLeft-d.translateX,o[1]+=r.plotTop-d.translateY,h.x=Math.min(0,o[0]),h.y=Math.min(0,o[1]),h.width=0>o[0]?Math.max(Math.abs(o[0]),t.width-o[0]):Math.max(Math.abs(o[0]),t.width),h.height=0>o[1]?Math.max(Math.abs(o[1]),t.height-Math.abs(o[1])):Math.max(Math.abs(o[1]),t.height),this.tracker?this.tracker.attr(h):(this.tracker=d.renderer.rect(h).addClass("highcharts-tracker").add(d),r.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},k.prototype.styledModeFormat=function(r){return r.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},k.prototype.tooltipFooterHeaderFormatter=function(r,d){var o=r.series,h=o.tooltipOptions,t=o.xAxis,p=t&&t.dateTime;t={isFooter:d,labelConfig:r};var i=h.xDateFormat,s=h[d?"footerFormat":"headerFormat"];return y(this,"headerFormatter",t,function(c){p&&!i&&v(r.key)&&(i=p.getXDateFormat(r.key,h.dateTimeLabelFormats)),p&&i&&(r.point&&r.point.tooltipDateKeys||["key"]).forEach(function(a){s=s.replace("{point."+a+"}","{point."+a+":"+i+"}")}),o.chart.styledMode&&(s=this.styledModeFormat(s)),c.text=tt(s,{point:r,series:o},this.chart)}),t.text},k.prototype.update=function(r){this.destroy(),M(!0,this.chart.options.tooltip.userOptions,r),this.init(this.chart,M(!0,this.options,r))},k.prototype.updatePosition=function(r){var d=this.chart,o=this.distance,h=this.options,t=d.pointer,p=this.getLabel(),i=t.getChartPosition();t=i.left;var s=i.top,c=i.scaleX;i=i.scaleY;var a=(h.positioner||this.getPosition).call(this,p.width,p.height,r),m=(r.plotX||0)+d.plotLeft;r=(r.plotY||0)+d.plotTop,this.outside&&(h.positioner&&(a.x+=t-o,a.y+=s-o),o=h.borderWidth+2*o,this.renderer.setSize(p.width+o,p.height+o,!1),(c!==1||i!==1)&&(P(this.container,{transform:"scale(".concat(c,", ").concat(i,")")}),m*=c,r*=i),m+=t-a.x,r+=s-a.y),this.move(Math.round(a.x),Math.round(a.y||0),m,r)},k}(),j}),lt(E,"Core/Series/Point.js",[E["Core/Renderer/HTML/AST.js"],E["Core/Animation/AnimationUtilities.js"],E["Core/Defaults.js"],E["Core/FormatUtilities.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J){var tt=W.animObject,K=Y.defaultOptions,B=Q.format,I=J.addEvent,P=J.defined,g=J.erase,f=J.extend,y=J.fireEvent,C=J.getNestedProperty,v=J.isArray,S=J.isFunction,M=J.isNumber,w=J.isObject,D=J.merge,R=J.objectEach,k=J.pick,r=J.syncTimeout,d=J.removeEvent,o=J.uniqueKey;return W=function(){function h(){this.category=void 0,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}return h.prototype.animateBeforeDestroy=function(){var t=this,p={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(s){t[s]=t[s].animate(s==="dataLabel"?{x:t[s].startXPos,y:t[s].startYPos,opacity:0}:p)}),i.plural.forEach(function(s){t[s].forEach(function(c){c.element&&c.animate(f({x:t.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})},h.prototype.applyOptions=function(t,p){var i=this.series,s=i.options.pointValKey||i.pointValKey;return t=h.prototype.optionsToObject.call(this,t),f(this,t),this.options=this.options?f(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=h.prototype.getNestedProperty.call(this,s)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof p>"u"&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),typeof this.x>"u"&&i?this.x=typeof p>"u"?i.autoIncrement():p:M(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this},h.prototype.destroy=function(){function t(){(p.graphic||p.graphics||p.dataLabel||p.dataLabels)&&(d(p),p.destroyElements());for(m in p)p[m]=null}var p=this,i=p.series,s=i.chart;i=i.options.dataSorting;var c=s.hoverPoints,a=tt(p.series.chart.renderer.globalAnimation),m;p.legendItem&&s.legend.destroyItem(p),c&&(p.setState(),g(c,p),c.length||(s.hoverPoints=null)),p===s.hoverPoint&&p.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),r(t,a.duration)):t(),s.pointCount--},h.prototype.destroyElements=function(t){var p=this;t=p.getGraphicalProps(t),t.singular.forEach(function(i){p[i]=p[i].destroy()}),t.plural.forEach(function(i){p[i].forEach(function(s){s&&s.element&&s.destroy()}),delete p[i]})},h.prototype.firePointEvent=function(t,p,i){var s=this,c=this.series.options;(c.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&s.importEvents(),t==="click"&&c.allowPointSelect&&(i=function(a){s.select&&s.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),y(s,t,p,i)},h.prototype.getClassName=function(){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",""):"")},h.prototype.getGraphicalProps=function(t){var p=this,i=[],s={singular:[],plural:[]},c;for(t=t||{graphic:1,dataLabel:1},t.graphic&&i.push("graphic","shadowGroup"),t.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),c=i.length;c--;){var a=i[c];p[a]&&s.singular.push(a)}return["graphic","dataLabel","connector"].forEach(function(m){var A=m+"s";t[m]&&p[A]&&s.plural.push(A)}),s},h.prototype.getLabelConfig=function(){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}},h.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?C(t,this.options):this[t]},h.prototype.getZone=function(){var t=this.series,p=t.zones;t=t.zoneAxis||"y";var i,s=0;for(i=p[s];this[t]>=i.value;)i=p[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},h.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},h.prototype.init=function(t,p,i){return this.series=t,this.applyOptions(p,i),this.id=P(this.id)?this.id:o(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},h.prototype.isValid=function(){return this.x!==null&&M(this.y)},h.prototype.optionsToObject=function(t){var p=this.series,i=p.options.keys,s=i||p.pointArrayMap||["y"],c=s.length,a={},m=0,A=0;if(M(t)||t===null)a[s[0]]=t;else if(v(t))for(!i&&t.length>c&&(p=typeof t[0],p==="string"?a.name=t[0]:p==="number"&&(a.x=t[0]),m++);A<c;)i&&typeof t[m]>"u"||(0<s[A].indexOf(".")?h.prototype.setNestedProperty(a,t[m],s[A]):a[s[A]]=t[m]),m++,A++;else typeof t=="object"&&(a=t,t.dataLabels&&(p._hasPointLabels=!0),t.marker&&(p._hasPointMarkers=!0));return a},h.prototype.pos=function(t,p){p===void 0&&(p=this.plotY);var i=this.plotX,s=this.series,c=s.chart,a=s.xAxis;s=s.yAxis;var m=0,A=0;if(M(i)&&M(p))return t&&(m=a?a.pos:c.plotLeft,A=s?s.pos:c.plotTop),c.inverted&&a&&s?[s.len-p+A,a.len-i+m]:[i+m,p+A]},h.prototype.resolveColor=function(){var t=this.series,p=t.chart.styledMode,i=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!p){i=t.options.colors||t.chart.options.colors;var s=i[t.colorCounter];i=i.length}p=t.colorCounter,t.colorCounter++,t.colorCounter===i&&(t.colorCounter=0)}else p||(s=t.color),p=t.colorIndex;this.colorIndex=k(this.options.colorIndex,p),this.color=k(this.options.color,s)},h.prototype.setNestedProperty=function(t,p,i){return i.split(".").reduce(function(s,c,a,m){return s[c]=m.length-1===a?p:w(s[c],!0)?s[c]:{},s[c]},t),t},h.prototype.shouldDraw=function(){return!this.isNull},h.prototype.tooltipFormatter=function(t){var p=this.series,i=p.tooltipOptions,s=k(i.valueDecimals,""),c=i.valuePrefix||"",a=i.valueSuffix||"";return p.chart.styledMode&&(t=p.chart.tooltip.styledModeFormat(t)),(p.pointArrayMap||["y"]).forEach(function(m){m="{point."+m,(c||a)&&(t=t.replace(RegExp(m+"}","g"),c+m+"}"+a)),t=t.replace(RegExp(m+"}","g"),m+":,."+s+"f}")}),B(t,{point:this,series:this.series},p.chart)},h.prototype.update=function(t,p,i,s){function c(){a.applyOptions(t);var l=A&&a.hasMockGraphic;l=a.y===null?!l:l,A&&l&&(a.graphic=A.destroy(),delete a.hasMockGraphic),w(t,!0)&&(A&&A.element&&t&&t.marker&&typeof t.marker.symbol<"u"&&(a.graphic=A.destroy()),t&&t.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),e=a.index,m.updateParallelArrays(a,e),z.data[e]=w(z.data[e],!0)||w(t,!0)?a.options:k(t,z.data[e]),m.isDirty=m.isDirtyData=!0,!m.fixedBox&&m.hasCartesianSeries&&(F.isDirtyBox=!0),z.legendType==="point"&&(F.isDirtyLegend=!0),p&&F.redraw(i)}var a=this,m=a.series,A=a.graphic,F=m.chart,z=m.options,e;p=k(p,!0),s===!1?c():a.firePointEvent("update",{options:t},c)},h.prototype.remove=function(t,p){this.series.removePoint(this.series.data.indexOf(this),t,p)},h.prototype.select=function(t,p){var i=this,s=i.series,c=s.chart;this.selectedStaging=t=k(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:p},function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),p||c.getSelectedPoints().forEach(function(a){var m=a.series;a.selected&&a!==i&&(a.selected=a.options.selected=!1,m.options.data[m.data.indexOf(a)]=a.options,a.setState(c.hoverPoints&&m.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})}),delete this.selectedStaging},h.prototype.onMouseOver=function(t){var p=this.series.chart,i=p.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,p.inverted),i.runPointActions(t,this)},h.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(p){p.setState()}),t.hoverPoints=t.hoverPoint=null},h.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,p=D(t.series.options.point,t.options).events;t.events=p,R(p,function(i,s){S(i)&&I(t,s,i)}),this.hasImportedEvents=!0}},h.prototype.setState=function(t,p){var i=this.series,s=this.state,c=i.options.states[t||"normal"]||{},a=K.plotOptions[i.type].marker&&i.options.marker,m=a&&a.enabled===!1,A=a&&a.states&&a.states[t||"normal"]||{},F=A.enabled===!1,z=this.marker||{},e=i.chart,l=a&&i.markerAttribs,T=i.halo,b,O=i.stateMarkerGraphic;if(t=t||"",!(t===this.state&&!p||this.selected&&t!=="select"||c.enabled===!1||t&&(F||m&&A.enabled===!1)||t&&z.states&&z.states[t]&&z.states[t].enabled===!1)){if(this.state=t,l&&(b=i.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!e.styledMode){s=i.pointAttribs(this,t);var n=k(e.options.chart.animation,c.animation),x=s.opacity;i.options.inactiveOtherPoints&&M(x)&&((this.dataLabels||[]).forEach(function(u){u&&!u.hasClass("highcharts-data-label-hidden")&&u.animate({opacity:x},n)}),this.connector&&this.connector.animate({opacity:x},n)),this.graphic.animate(s,n)}b&&this.graphic.animate(b,k(e.options.chart.animation,A.animation,a.animation)),O&&O.hide()}else t&&A&&(a=z.symbol||i.symbol,O&&O.currentSymbol!==a&&(O=O.destroy()),b&&(O?O[p?"animate":"attr"]({x:b.x,y:b.y}):a&&(i.stateMarkerGraphic=O=e.renderer.symbol(a,b.x,b.y,b.width,b.height).add(i.markerGroup),O.currentSymbol=a)),!e.styledMode&&O&&this.state!=="inactive"&&O.attr(i.pointAttribs(this,t))),O&&(O[t&&this.isInside?"show":"hide"](),O.element.point=this,O.addClass(this.getClassName(),!0));c=c.halo,b=(O=this.graphic||O)&&O.visibility||"inherit",c&&c.size&&O&&b!=="hidden"&&!this.isCluster?(T||(i.halo=T=e.renderer.path().add(O.parentGroup)),T.show()[p?"animate":"attr"]({d:this.haloPath(c.size)}),T.attr({class:"highcharts-halo highcharts-color-"+k(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:b,zIndex:-1}),T.point=this,e.styledMode||T.attr(f({fill:this.color||i.color,"fill-opacity":c.opacity},j.filterUserAttributes(c.attributes||{})))):T&&T.point&&T.point.haloPath&&T.animate({d:T.point.haloPath(0)},null,T.hide),y(this,"afterSetState",{state:t})}},h.prototype.haloPath=function(t){var p=this.pos();return p?this.series.chart.renderer.symbols.circle(Math.floor(p[0])-t,p[1]-t,2*t,2*t):[]},h}(),W}),lt(E,"Core/Pointer.js",[E["Core/Color/Color.js"],E["Core/Globals.js"],E["Core/Tooltip.js"],E["Core/Utilities.js"]],function(j,W,Y,Q){var J=j.parse,tt=W.charts,K=W.noop,B=Q.addEvent,I=Q.attr,P=Q.css,g=Q.defined,f=Q.extend,y=Q.find,C=Q.fireEvent,v=Q.isNumber,S=Q.isObject,M=Q.objectEach,w=Q.offset,D=Q.pick,R=Q.splat;return j=function(){function k(r,d){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=r,this.hasDragged=!1,this.options=d,this.init(r,d)}return k.prototype.applyInactiveState=function(r){var d=[],o;(r||[]).forEach(function(h){o=h.series,d.push(o),o.linkedParent&&d.push(o.linkedParent),o.linkedSeries&&(d=d.concat(o.linkedSeries)),o.navigatorSeries&&d.push(o.navigatorSeries)}),this.chart.series.forEach(function(h){d.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})},k.prototype.destroy=function(){var r=this;this.eventsToUnbind.forEach(function(d){return d()}),this.eventsToUnbind=[],W.chartCount||(k.unbindDocumentMouseUp&&(k.unbindDocumentMouseUp=k.unbindDocumentMouseUp()),k.unbindDocumentTouchEnd&&(k.unbindDocumentTouchEnd=k.unbindDocumentTouchEnd())),clearInterval(r.tooltipTimeout),M(r,function(d,o){r[o]=void 0})},k.prototype.getSelectionMarkerAttrs=function(r,d){var o=this,h={args:{chartX:r,chartY:d},attrs:{},shapeType:"rect"};return C(this,"getSelectionMarkerAttrs",h,function(t){var p=o.chart,i=o.mouseDownX;i=i===void 0?0:i;var s=o.mouseDownY;s=s===void 0?0:s;var c=o.zoomHor,a=o.zoomVert;t=t.attrs,t.x=p.plotLeft,t.y=p.plotTop,t.width=c?1:p.plotWidth,t.height=a?1:p.plotHeight,c&&(p=r-i,t.width=Math.abs(p),t.x=(0<p?0:p)+i),a&&(p=d-s,t.height=Math.abs(p),t.y=(0<p?0:p)+s)}),h},k.prototype.drag=function(r){var d=this.chart,o=d.options.chart,h=d.plotLeft,t=d.plotTop,p=d.plotWidth,i=d.plotHeight,s=this.mouseDownX||0,c=this.mouseDownY||0,a=S(o.panning)?o.panning&&o.panning.enabled:o.panning,m=o.panKey&&r[o.panKey+"Key"],A=r.chartX,F=r.chartY,z=this.selectionMarker;z&&z.touch||(A<h?A=h:A>h+p&&(A=h+p),F<t?F=t:F>t+i&&(F=t+i),this.hasDragged=Math.sqrt(Math.pow(s-A,2)+Math.pow(c-F,2)),10<this.hasDragged&&(h=d.isInsidePlot(s-h,c-t,{visiblePlotOnly:!0}),F=this.getSelectionMarkerAttrs(A,F),A=F.shapeType,F=F.attrs,!d.hasCartesianSeries&&!d.mapView||!this.zoomX&&!this.zoomY||!h||m||z||(this.selectionMarker=z=d.renderer[A](),z.attr({class:"highcharts-selection-marker",zIndex:7}).add(),d.styledMode||z.attr({fill:o.selectionMarkerFill||J("#335cad").setOpacity(.25).get()})),z&&z.attr(F),h&&!z&&a&&d.pan(r,o.panning)))},k.prototype.dragStart=function(r){var d=this.chart;d.mouseIsDown=r.type,d.cancelClick=!1,d.mouseDownX=this.mouseDownX=r.chartX,d.mouseDownY=this.mouseDownY=r.chartY},k.prototype.getSelectionBox=function(r){var d={args:{marker:r},result:{}};return C(this,"getSelectionBox",d,function(o){o.result={x:r.attr?+r.attr("x"):r.x,y:r.attr?+r.attr("y"):r.y,width:r.attr?r.attr("width"):r.width,height:r.attr?r.attr("height"):r.height}}),d.result},k.prototype.drop=function(r){var d=this,o=this.chart,h=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),p=t.x,i=t.y,s=t.width,c=t.height,a={originalEvent:r,xAxis:[],yAxis:[],x:p,y:i,width:s,height:c},m=!!o.mapView;(this.hasDragged||h)&&(o.axes.forEach(function(A){if(A.zoomEnabled&&g(A.min)&&(h||d[{xAxis:"zoomX",yAxis:"zoomY"}[A.coll]])&&v(p)&&v(i)&&v(s)&&v(c)){var F=A.horiz,z=r.type==="touchend"?A.minPixelPadding:0,e=A.toValue((F?p:i)+z);F=A.toValue((F?p+s:i+c)-z),a[A.coll].push({axis:A,min:Math.min(e,F),max:Math.max(e,F)}),m=!0}}),m&&C(o,"selection",a,function(A){o.zoom(f(A,h?{animation:!1}:null))})),v(o.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}o&&v(o.index)&&(P(o.container,{cursor:o._cursor}),o.cancelClick=10<this.hasDragged,o.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},k.prototype.findNearestKDPoint=function(r,d,o){var h;return r.forEach(function(t){var p=!(t.noSharedTooltip&&d)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(o,p),(p=S(t,!0)&&t.series)&&!(p=!S(h,!0))){p=h.distX-t.distX;var i=h.dist-t.dist,s=(t.series.group&&t.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);p=0<(p!==0&&d?p:i!==0?i:s!==0?s:h.series.index>t.series.index?-1:1)}p&&(h=t)}),h},k.prototype.getChartCoordinatesFromPoint=function(r,d){var o=r.series,h=o.xAxis;o=o.yAxis;var t=r.shapeArgs;if(h&&o){var p=D(r.clientX,r.plotX),i=r.plotY||0;return r.isNode&&t&&v(t.x)&&v(t.y)&&(p=t.x,i=t.y),d?{chartX:o.len+o.pos-i,chartY:h.len+h.pos-p}:{chartX:p+h.pos,chartY:i+o.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}},k.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var r=this.chart.container,d=w(r);this.chartPosition={left:d.left,top:d.top,scaleX:1,scaleY:1};var o=r.offsetWidth;return r=r.offsetHeight,2<o&&2<r&&(this.chartPosition.scaleX=d.width/o,this.chartPosition.scaleY=d.height/r),this.chartPosition},k.prototype.getCoordinates=function(r){var d={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(o){d[o.isXAxis?"xAxis":"yAxis"].push({axis:o,value:o.toValue(r[o.horiz?"chartX":"chartY"])})}),d},k.prototype.getHoverData=function(r,d,o,h,t,p){var i=[];h=!(!h||!r);var s=function(A){return A.visible&&!(!t&&A.directTouch)&&D(A.options.enableMouseTracking,!0)},c={chartX:p?p.chartX:void 0,chartY:p?p.chartY:void 0,shared:t};C(this,"beforeGetHoverData",c);var a=d&&!d.stickyTracking?[d]:o.filter(function(A){return A.stickyTracking&&(c.filter||s)(A)}),m=h||!p?r:this.findNearestKDPoint(a,t,p);return d=m&&m.series,m&&(t&&!d.noSharedTooltip?(a=o.filter(function(A){return c.filter?c.filter(A):s(A)&&!A.noSharedTooltip}),a.forEach(function(A){var F=y(A.points,function(z){return z.x===m.x&&!z.isNull});S(F)&&(A.boosted&&A.boost&&(F=A.boost.getPoint(F)),i.push(F))})):i.push(m)),c={hoverPoint:m},C(this,"afterGetHoverData",c),{hoverPoint:c.hoverPoint,hoverSeries:d,hoverPoints:i}},k.prototype.getPointFromEvent=function(r){r=r.target;for(var d;r&&!d;)d=r.point,r=r.parentNode;return d},k.prototype.onTrackerMouseOut=function(r){r=r.relatedTarget||r.toElement;var d=this.chart.hoverSeries;this.isDirectTouch=!1,!d||!r||d.stickyTracking||this.inClass(r,"highcharts-tooltip")||this.inClass(r,"highcharts-series-"+d.index)&&this.inClass(r,"highcharts-tracker")||d.onMouseOut()},k.prototype.inClass=function(r,d){for(var o;r;){if(o=I(r,"class")){if(o.indexOf(d)!==-1)return!0;if(o.indexOf("highcharts-container")!==-1)return!1}r=r.parentElement}},k.prototype.init=function(r,d){this.options=d,this.chart=r,this.runChartClick=!(!d.chart.events||!d.chart.events.click),this.pinchDown=[],this.lastValidTouch={},Y&&(r.tooltip=new Y(r,d.tooltip)),this.setDOMEvents()},k.prototype.normalize=function(r,d){var o=r.touches,h=o?o.length?o.item(0):D(o.changedTouches,r.changedTouches)[0]:r;return d||(d=this.getChartPosition()),o=h.pageX-d.left,h=h.pageY-d.top,o/=d.scaleX,h/=d.scaleY,f(r,{chartX:Math.round(o),chartY:Math.round(h)})},k.prototype.onContainerClick=function(r){var d=this.chart,o=d.hoverPoint;r=this.normalize(r);var h=d.plotLeft,t=d.plotTop;d.cancelClick||(o&&this.inClass(r.target,"highcharts-tracker")?(C(o.series,"click",f(r,{point:o})),d.hoverPoint&&o.firePointEvent("click",r)):(f(r,this.getCoordinates(r)),d.isInsidePlot(r.chartX-h,r.chartY-t,{visiblePlotOnly:!0})&&C(d,"click",r)))},k.prototype.onContainerMouseDown=function(r){var d=((r.buttons||r.button)&1)===1;r=this.normalize(r),W.isFirefox&&r.button!==0&&this.onContainerMouseMove(r),(typeof r.button>"u"||d)&&(this.zoomOption(r),d&&r.preventDefault&&r.preventDefault(),this.dragStart(r))},k.prototype.onContainerMouseLeave=function(r){var d=tt[D(k.hoverChartIndex,-1)],o=this.chart.tooltip;r=this.normalize(r),d&&(r.relatedTarget||r.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),o&&!o.isHidden&&this.reset()},k.prototype.onContainerMouseEnter=function(r){delete this.chartPosition},k.prototype.onContainerMouseMove=function(r){var d=this.chart,o=d.tooltip;r=this.normalize(r),this.setHoverChartIndex(),r.preventDefault||(r.returnValue=!1),(d.mouseIsDown==="mousedown"||this.touchSelect(r))&&this.drag(r),d.openMenu||!this.inClass(r.target,"highcharts-tracker")&&!d.isInsidePlot(r.chartX-d.plotLeft,r.chartY-d.plotTop,{visiblePlotOnly:!0})||o&&o.shouldStickOnContact(r)||(this.inClass(r.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(r))},k.prototype.onDocumentTouchEnd=function(r){var d=tt[D(k.hoverChartIndex,-1)];d&&d.pointer.drop(r)},k.prototype.onContainerTouchMove=function(r){this.touchSelect(r)?this.onContainerMouseMove(r):this.touch(r)},k.prototype.onContainerTouchStart=function(r){this.touchSelect(r)?this.onContainerMouseDown(r):(this.zoomOption(r),this.touch(r,!0))},k.prototype.onDocumentMouseMove=function(r){var d=this.chart,o=d.tooltip,h=this.chartPosition;r=this.normalize(r,h),!h||d.isInsidePlot(r.chartX-d.plotLeft,r.chartY-d.plotTop,{visiblePlotOnly:!0})||o&&o.shouldStickOnContact(r)||this.inClass(r.target,"highcharts-tracker")||this.reset()},k.prototype.onDocumentMouseUp=function(r){var d=tt[D(k.hoverChartIndex,-1)];d&&d.pointer.drop(r)},k.prototype.pinch=function(r){var d=this,o=d.chart,h=d.pinchDown,t=r.touches||[],p=t.length,i=d.lastValidTouch,s=d.hasZoom,c={},a=p===1&&(d.inClass(r.target,"highcharts-tracker")&&o.runTrackerClick||d.runChartClick),m={},A=d.chart.tooltip;A=p===1&&D(A&&A.options.followTouchMove,!0);var F=d.selectionMarker;1<p?d.initiated=!0:A&&(d.initiated=!1),s&&d.initiated&&!a&&r.cancelable!==!1&&r.preventDefault(),[].map.call(t,function(z){return d.normalize(z)}),r.type==="touchstart"?([].forEach.call(t,function(z,e){h[e]={chartX:z.chartX,chartY:z.chartY}}),i.x=[h[0].chartX,h[1]&&h[1].chartX],i.y=[h[0].chartY,h[1]&&h[1].chartY],o.axes.forEach(function(z){if(z.zoomEnabled){var e=o.bounds[z.horiz?"h":"v"],l=z.minPixelPadding,T=z.toPixels(Math.min(D(z.options.min,z.dataMin),z.dataMin)),b=z.toPixels(Math.max(D(z.options.max,z.dataMax),z.dataMax)),O=Math.max(T,b);e.min=Math.min(z.pos,Math.min(T,b)-l),e.max=Math.max(z.pos+z.len,O+l)}}),d.res=!0):A?this.runPointActions(d.normalize(r)):h.length&&(C(o,"touchpan",{originalEvent:r},function(){F||(d.selectionMarker=F=f({destroy:K,touch:!0},o.plotBox)),d.pinchTranslate(h,t,c,F,m,i),d.hasPinched=s,d.scaleGroups(c,m)}),d.res&&(d.res=!1,this.reset(!1,0)))},k.prototype.pinchTranslate=function(r,d,o,h,t,p){this.zoomHor&&this.pinchTranslateDirection(!0,r,d,o,h,t,p),this.zoomVert&&this.pinchTranslateDirection(!1,r,d,o,h,t,p)},k.prototype.pinchTranslateDirection=function(r,d,o,h,t,p,i,s){var c=this.chart,a=r?"x":"y",m=r?"X":"Y",A="chart"+m,F=r?"width":"height",z=c["plot"+(r?"Left":"Top")],e=c.inverted,l=c.bounds[r?"h":"v"],T=d.length===1,b=d[0][A],O=!T&&d[1][A];d=function(){typeof L=="number"&&20<Math.abs(b-O)&&(u=s||Math.abs(N-L)/Math.abs(b-O)),x=(z-N)/u+b,n=c["plot"+(r?"Width":"Height")]/u};var n,x,u=s||1,N=o[0][A],L=!T&&o[1][A];if(d(),o=x,o<l.min){o=l.min;var H=!0}else o+n>l.max&&(o=l.max-n,H=!0);H?(N-=.8*(N-i[a][0]),typeof L=="number"&&(L-=.8*(L-i[a][1])),d()):i[a]=[N,L],e||(p[a]=x-z,p[F]=n),p=e?1/u:u,t[F]=n,t[a]=o,h[e?r?"scaleY":"scaleX":"scale"+m]=u,h["translate"+m]=p*z+(N-p*b)},k.prototype.reset=function(r,d){var o=this.chart,h=o.hoverSeries,t=o.hoverPoint,p=o.hoverPoints,i=o.tooltip,s=i&&i.shared?p:t;r&&s&&R(s).forEach(function(c){c.series.isCartesian&&typeof c.plotX>"u"&&(r=!1)}),r?i&&s&&R(s).length&&(i.refresh(s),i.shared&&p?p.forEach(function(c){c.setState(c.state,!0),c.series.isCartesian&&(c.series.xAxis.crosshair&&c.series.xAxis.drawCrosshair(null,c),c.series.yAxis.crosshair&&c.series.yAxis.drawCrosshair(null,c))}):t&&(t.setState(t.state,!0),o.axes.forEach(function(c){c.crosshair&&t.series[c.coll]===c&&c.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),p&&p.forEach(function(c){c.setState()}),h&&h.onMouseOut(),i&&i.hide(d),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),o.axes.forEach(function(c){c.hideCrosshair()}),this.hoverX=o.hoverPoints=o.hoverPoint=null)},k.prototype.runPointActions=function(r,d,o){var h=this.chart,t=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,p=t?t.shared:!1,i=d||h.hoverPoint,s=i&&i.series||h.hoverSeries;d=this.getHoverData(i,s,h.series,(!r||r.type!=="touchmove")&&(!!d||s&&s.directTouch&&this.isDirectTouch),p,r),i=d.hoverPoint,s=d.hoverSeries;var c=d.hoverPoints;d=s&&s.tooltipOptions.followPointer&&!s.tooltipOptions.split;var a=p&&s&&!s.noSharedTooltip;if(i&&(o||i!==h.hoverPoint||t&&t.isHidden)){if((h.hoverPoints||[]).forEach(function(m){c.indexOf(m)===-1&&m.setState()}),h.hoverSeries!==s&&s.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(m){m.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!i.series)return;h.hoverPoints=c,h.hoverPoint=i,i.firePointEvent("mouseOver",void 0,function(){t&&i&&t.refresh(a?c:i,r)})}else d&&t&&!t.isHidden&&(o=t.getAnchor([{}],r),h.isInsidePlot(o[0],o[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:o[0],plotY:o[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(h.container.ownerDocument,"mousemove",function(m){var A=tt[k.hoverChartIndex];A&&A.pointer.onDocumentMouseMove(m)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(m){var A=D((m.crosshair||{}).snap,!0),F;A&&((F=h.hoverPoint)&&F.series[m.coll]===m||(F=y(c,function(z){return z.series&&z.series[m.coll]===m}))),F||!A?m.drawCrosshair(r,F):m.hideCrosshair()})},k.prototype.scaleGroups=function(r,d){var o=this.chart;o.series.forEach(function(h){var t=r||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||o.mapView)&&(h.group.attr(t),h.markerGroup&&(h.markerGroup.attr(t),h.markerGroup.clip(d?o.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(t))}),o.clipRect.attr(d||o.clipBox)},k.prototype.setDOMEvents=function(){var r=this,d=this.chart.container,o=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this),d.onmousemove=this.onContainerMouseMove.bind(this),d.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(B(d,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(B(d,"mouseleave",this.onContainerMouseLeave.bind(this))),k.unbindDocumentMouseUp||(k.unbindDocumentMouseUp=B(o,"mouseup",this.onDocumentMouseUp.bind(this)));for(var h=this.chart.renderTo.parentElement;h&&h.tagName!=="BODY";)this.eventsToUnbind.push(B(h,"scroll",function(){delete r.chartPosition})),h=h.parentElement;W.hasTouch&&(this.eventsToUnbind.push(B(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(B(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),k.unbindDocumentTouchEnd||(k.unbindDocumentTouchEnd=B(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},k.prototype.setHoverChartIndex=function(){var r=this.chart,d=W.charts[D(k.hoverChartIndex,-1)];d&&d!==r&&d.pointer.onContainerMouseLeave({relatedTarget:r.container}),d&&d.mouseIsDown||(k.hoverChartIndex=r.index)},k.prototype.touch=function(r,d){var o=this.chart,h;if(this.setHoverChartIndex(),r.touches.length===1)if(r=this.normalize(r),(h=o.isInsidePlot(r.chartX-o.plotLeft,r.chartY-o.plotTop,{visiblePlotOnly:!0}))&&!o.openMenu){if(d&&this.runPointActions(r),r.type==="touchmove"){d=this.pinchDown;var t=d[0]?4<=Math.sqrt(Math.pow(d[0].chartX-r.chartX,2)+Math.pow(d[0].chartY-r.chartY,2)):!1}D(t,!0)&&this.pinch(r)}else d&&this.reset();else r.touches.length===2&&this.pinch(r)},k.prototype.touchSelect=function(r){return!(!this.chart.options.chart.zooming.singleTouch||!r.touches||r.touches.length!==1)},k.prototype.zoomOption=function(r){var d=this.chart,o=d.options.chart;d=d.inverted;var h=o.zooming.type||"";/touch/.test(r.type)&&(h=D(o.zooming.pinchType,h)),this.zoomX=r=/x/.test(h),this.zoomY=o=/y/.test(h),this.zoomHor=r&&!d||o&&d,this.zoomVert=o&&!d||r&&d,this.hasZoom=r||o},k}(),j}),lt(E,"Core/MSPointer.js",[E["Core/Globals.js"],E["Core/Pointer.js"],E["Core/Utilities.js"]],function(j,W,Y){function Q(){var w=[];return w.item=function(D){return this[D]},y(S,function(D){w.push({pageX:D.pageX,pageY:D.pageY,target:D.target})}),w}function J(w,D,R,k){var r=K[W.hoverChartIndex||NaN];w.pointerType!=="touch"&&w.pointerType!==w.MSPOINTER_TYPE_TOUCH||!r||(r=r.pointer,k(w),r[D]({type:R,target:w.currentTarget,preventDefault:I,touches:Q()}))}var tt=this&&this.__extends||function(){var w=function(D,R){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,r){k.__proto__=r}||function(k,r){for(var d in r)r.hasOwnProperty(d)&&(k[d]=r[d])},w(D,R)};return function(D,R){function k(){this.constructor=D}w(D,R),D.prototype=R===null?Object.create(R):(k.prototype=R.prototype,new k)}}(),K=j.charts,B=j.doc,I=j.noop,P=j.win,g=Y.addEvent,f=Y.css,y=Y.objectEach,C=Y.pick,v=Y.removeEvent,S={},M=!!P.PointerEvent;return function(w){function D(){return w!==null&&w.apply(this,arguments)||this}return tt(D,w),D.isRequired=function(){return!(j.hasTouch||!P.PointerEvent&&!P.MSPointerEvent)},D.prototype.batchMSEvents=function(R){R(this.chart.container,M?"pointerdown":"MSPointerDown",this.onContainerPointerDown),R(this.chart.container,M?"pointermove":"MSPointerMove",this.onContainerPointerMove),R(B,M?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},D.prototype.destroy=function(){this.batchMSEvents(v),w.prototype.destroy.call(this)},D.prototype.init=function(R,k){w.prototype.init.call(this,R,k),this.hasZoom&&f(R.container,{"-ms-touch-action":"none","touch-action":"none"})},D.prototype.onContainerPointerDown=function(R){J(R,"onContainerTouchStart","touchstart",function(k){S[k.pointerId]={pageX:k.pageX,pageY:k.pageY,target:k.currentTarget}})},D.prototype.onContainerPointerMove=function(R){J(R,"onContainerTouchMove","touchmove",function(k){S[k.pointerId]={pageX:k.pageX,pageY:k.pageY},S[k.pointerId].target||(S[k.pointerId].target=k.currentTarget)})},D.prototype.onDocumentPointerUp=function(R){J(R,"onDocumentTouchEnd","touchend",function(k){delete S[k.pointerId]})},D.prototype.setDOMEvents=function(){var R=this.chart.tooltip;w.prototype.setDOMEvents.call(this),(this.hasZoom||C(R&&R.options.followTouchMove,!0))&&this.batchMSEvents(g)},D}(W)}),lt(E,"Core/Legend/Legend.js",[E["Core/Animation/AnimationUtilities.js"],E["Core/FormatUtilities.js"],E["Core/Globals.js"],E["Core/Series/Point.js"],E["Core/Renderer/RendererUtilities.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J,tt){var K=j.animObject,B=j.setAnimation,I=W.format,P=Y.marginNames,g=J.distribute,f=tt.addEvent,y=tt.createElement,C=tt.css,v=tt.defined,S=tt.discardElement,M=tt.find,w=tt.fireEvent,D=tt.isNumber,R=tt.merge,k=tt.pick,r=tt.relativeLength,d=tt.stableSort,o=tt.syncTimeout;return j=function(){function h(t,p){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=t,this.init(t,p)}return h.prototype.init=function(t,p){this.chart=t,this.setOptions(p),p.enabled&&(this.render(),f(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=f(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},h.prototype.setOptions=function(t){var p=k(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=R(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=p,this.initialItemY=p-5,this.symbolWidth=k(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},h.prototype.update=function(t,p){var i=this.chart;this.setOptions(R(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,k(p,!0)&&i.redraw(),w(this,"afterUpdate")},h.prototype.colorizeItem=function(t,p){var i=t.legendItem||{},s=i.group,c=i.label,a=i.line;if(i=i.symbol,s&&s[p?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var m=this.options;s=this.itemHiddenStyle.color,m=p?m.itemStyle.color:s;var A=p&&t.color||s,F=t.options&&t.options.marker,z={fill:A};c&&c.css({fill:m,color:m}),a&&a.attr({stroke:A}),i&&(F&&i.isMarker&&(z=t.pointAttribs(),p||(z.stroke=z.fill=s)),i.attr(z))}w(this,"afterColorizeItem",{item:t,visible:p})},h.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},h.prototype.positionItem=function(t){var p=this,i=t.legendItem||{},s=i.group,c=i.x;c=c===void 0?0:c,i=i.y,i=i===void 0?0:i;var a=this.options,m=a.symbolPadding,A=!a.rtl;a=t.checkbox,s&&s.element&&(m={translateX:A?c:this.legendWidth-c-2*m-4,translateY:i},s[v(s.translateY)?"animate":"attr"](m,void 0,function(){w(p,"afterPositionItem",{item:t})})),a&&(a.x=c,a.y=i)},h.prototype.destroyItem=function(t){for(var p=t.checkbox,i=t.legendItem||{},s=0,c=["group","label","line","symbol"];s<c.length;s++){var a=c[s];i[a]&&(i[a]=i[a].destroy())}p&&S(p),t.legendItem=void 0},h.prototype.destroy=function(){for(var t=0,p=this.getAllItems();t<p.length;t++)this.destroyItem(p[t]);for(t=0,p="clipRect up down pager nav box title group".split(" ");t<p.length;t++){var i=p[t];this[i]&&(this[i]=this[i].destroy())}this.display=null},h.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,p=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var s=t.translateY;this.allItems.forEach(function(c){var a=c.checkbox;if(a){var m=s+i+a.y+(this.scrollOffset||0)+3;C(a,{left:t.translateX+c.checkboxOffset+a.x-20+"px",top:m+"px",display:this.proximate||m>s-6&&m<s+p-6?"":"none"})}},this)}},h.prototype.renderTitle=function(){var t=this.options,p=this.padding,i=t.title,s=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,p-3,p-4,void 0,void 0,void 0,t.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"}),t=this.title.getBBox(),s=t.height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},h.prototype.setText=function(t){var p=this.options;t.legendItem.label.attr({text:p.labelFormat?I(p.labelFormat,t,this.chart):p.labelFormatter.call(t)})},h.prototype.renderItem=function(t){var p=t.legendItem=t.legendItem||{},i=this.chart,s=i.renderer,c=this.options,a=this.symbolWidth,m=c.symbolPadding||0,A=this.itemStyle,F=this.itemHiddenStyle,z=c.layout==="horizontal"?k(c.itemDistance,20):0,e=!c.rtl,l=!t.series,T=!l&&t.series.drawLegendSymbol?t.series:t,b=T.options,O=this.createCheckboxForItem&&b&&b.showCheckbox,n=c.useHTML,x=t.options.className,u=p.label;b=a+m+z+(O?20:0),u||(p.group=s.g("legend-item").addClass("highcharts-"+T.type+"-series highcharts-color-"+t.colorIndex+(x?" "+x:"")+(l?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),p.label=u=s.text("",e?a+m:-m,this.baseline||0,n),i.styledMode||u.css(R(t.visible?A:F)),u.attr({align:e?"left":"right",zIndex:2}).add(p.group),this.baseline||(this.fontMetrics=s.fontMetrics(i.styledMode?12:A.fontSize,u),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,u.attr("y",this.baseline),this.symbolHeight=c.symbolHeight||this.fontMetrics.f,c.squareSymbol&&(this.symbolWidth=k(c.symbolWidth,Math.max(this.symbolHeight,16)),b=this.symbolWidth+m+z+(O?20:0),e&&u.attr("x",this.symbolWidth+m))),T.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,u,n)),O&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!i.styledMode&&A.width||u.css({width:(c.itemWidth||this.widthOption||i.spacingBox.width)-b+"px"}),this.setText(t),i=u.getBBox(),s=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=c.itemWidth||p.labelWidth||i.width+b,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(p.labelHeight||(i.height>1.5*s?i.height:s))},h.prototype.layoutItem=function(t){var p=this.options,i=this.padding,s=p.layout==="horizontal",c=t.itemHeight,a=this.itemMarginBottom,m=this.itemMarginTop,A=s?k(p.itemDistance,20):0,F=this.maxLegendWidth;p=p.alignColumns&&this.totalItemWidth>F?this.maxItemWidth:t.itemWidth;var z=t.legendItem||{};s&&this.itemX-i+p>F&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=m+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=m+this.itemY+a,this.lastLineHeight=Math.max(c,this.lastLineHeight),z.x=this.itemX,z.y=this.itemY,s?this.itemX+=p:(this.itemY+=m+c+a,this.lastLineHeight=c),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:A):p)+i,this.offsetWidth)},h.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(p){var i=p&&p.options;p&&k(i.showInLegend,v(i.linkedTo)?!1:void 0,!0)&&(t=t.concat((p.legendItem||{}).labels||(i.legendType==="point"?p.data:p)))}),w(this,"afterGetAllItems",{allItems:t}),t},h.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},h.prototype.adjustMargins=function(t,p){var i=this.chart,s=this.options,c=this.getAlignment();c&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,m){a.test(c)&&!v(t[m])&&(i[P[m]]=Math.max(i[P[m]],i.legend[(m+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][m]*s[m%2?"x":"y"]+k(s.margin,12)+p[m]+(i.titleOffset[m]||0)))})},h.prototype.proximatePositions=function(){var t=this.chart,p=[],i=this.options.align==="left";this.allItems.forEach(function(A){var F,z=i;if(A.yAxis){A.xAxis.options.reversed&&(z=!z),A.points&&(F=M(z?A.points:A.points.slice(0).reverse(),function(l){return D(l.plotY)})),z=this.itemMarginTop+A.legendItem.label.getBBox().height+this.itemMarginBottom;var e=A.yAxis.top-t.plotTop;A.visible?(F=F?F.plotY:A.yAxis.height,F+=e-.3*z):F=e+A.yAxis.height,p.push({target:F,size:z,item:A})}},this);for(var s,c=0,a=g(p,t.plotHeight);c<a.length;c++){var m=a[c];s=m.item.legendItem||{},D(m.pos)&&(s.y=t.plotTop-t.spacing[0]+m.pos)}},h.prototype.render=function(){var t=this.chart,p=t.renderer,i=this.options,s=this.padding,c=this.getAllItems(),a=this.group,m=this.box;this.itemX=s,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=r(i.width,t.spacingBox.width-s);var A=t.spacingBox.width-2*s-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(A/=2),this.maxLegendWidth=this.widthOption||A,a||(this.group=a=p.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=p.g().attr({zIndex:1}).add(a),this.scrollGroup=p.g().add(this.contentGroup)),this.renderTitle(),d(c,function(z,e){return(z.options&&z.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),i.reversed&&c.reverse(),this.allItems=c,this.display=A=!!c.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,c.forEach(this.renderItem,this),c.forEach(this.layoutItem,this),c=(this.widthOption||this.offsetWidth)+s;var F=this.lastItemY+this.lastLineHeight+this.titleHeight;F=this.handleOverflow(F),F+=s,m||(this.box=m=p.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(a)),t.styledMode||m.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<c&&0<F&&m[m.placed?"animate":"attr"](m.crisp.call({},{x:0,y:0,width:c,height:F},m.strokeWidth())),a[A?"show":"hide"](),t.styledMode&&a.getStyle("display")==="none"&&(c=F=0),this.legendWidth=c,this.legendHeight=F,A&&this.align(),this.proximate||this.positionItems(),w(this,"afterRender")},h.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var p=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<p.titleOffset[0]?s+=p.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<p.titleOffset[2]&&(s-=p.titleOffset[2]),s!==t.y&&(t=R(t,{y:s})),p.hasRendered||(this.group.placed=!1),this.group.align(R(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},h.prototype.handleOverflow=function(t){var p=this,i=this.chart,s=i.renderer,c=this.options,a=c.y,m=c.verticalAlign==="top",A=this.padding,F=c.maxHeight,z=c.navigation,e=k(z.animation,!0),l=z.arrowSize||12,T=this.pages,b=this.allItems,O=function(G){typeof G=="number"?H.attr({height:G}):H&&(p.clipRect=H.destroy(),p.contentGroup.clip()),p.contentGroup.div&&(p.contentGroup.div.style.clip=G?"rect("+A+"px,9999px,"+(A+G)+"px,0)":"auto")},n=function(G){return p[G]=s.circle(0,0,1.3*l).translate(l/2,l/2).add(L),i.styledMode||p[G].attr("fill","rgba(0,0,0,0.0001)"),p[G]},x,u,N;a=i.spacingBox.height+(m?-a:a)-A;var L=this.nav,H=this.clipRect;return c.layout!=="horizontal"||c.verticalAlign==="middle"||c.floating||(a/=2),F&&(a=Math.min(a,F)),T.length=0,t&&0<a&&t>a&&z.enabled!==!1?(this.clipHeight=x=Math.max(a-20-this.titleHeight-A,0),this.currentPage=k(this.currentPage,1),this.fullHeight=t,b.forEach(function(G,U){N=G.legendItem||{},G=N.y||0;var V=Math.round(N.label.getBBox().height),rt=T.length;(!rt||G-T[rt-1]>x&&(u||G)!==T[rt-1])&&(T.push(u||G),rt++),N.pageIx=rt-1,u&&((b[U-1].legendItem||{}).pageIx=rt-1),U===b.length-1&&G+V-T[rt-1]>x&&V<=x&&(T.push(G),N.pageIx=rt),G!==u&&(u=G)}),H||(H=p.clipRect=s.clipRect(0,A,9999,0),p.contentGroup.clip(H)),O(x),L||(this.nav=L=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,l,l).add(L),n("upTracker").on("click",function(){p.scroll(-1,e)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&z.style&&this.pager.css(z.style),this.pager.add(L),this.down=s.symbol("triangle-down",0,0,l,l).add(L),n("downTracker").on("click",function(){p.scroll(1,e)})),p.scroll(0),t=a):L&&(O(),this.nav=L.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},h.prototype.scroll=function(t,p){var i=this,s=this.chart,c=this.pages,a=c.length,m=this.clipHeight,A=this.options.navigation,F=this.pager,z=this.padding,e=this.currentPage+t;e>a&&(e=a),0<e&&(typeof p<"u"&&B(p,s),this.nav.attr({translateX:z,translateY:m+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(l){l.attr({class:e===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),F.attr({text:e+"/"+a}),[this.down,this.downTracker].forEach(function(l){l.attr({x:18+this.pager.getBBox().width,class:e===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),s.styledMode||(this.up.attr({fill:e===1?A.inactiveColor:A.activeColor}),this.upTracker.css({cursor:e===1?"default":"pointer"}),this.down.attr({fill:e===a?A.inactiveColor:A.activeColor}),this.downTracker.css({cursor:e===a?"default":"pointer"})),this.scrollOffset=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=e,this.positionCheckboxes(),t=K(k(p,s.renderer.globalAnimation,!0)),o(function(){w(i,"afterScroll",{currentPage:e})},t.duration))},h.prototype.setItemEvents=function(t,p,i){var s=this,c=t.legendItem||{},a=s.chart.renderer.boxWrapper,m=t instanceof Q,A="highcharts-legend-"+(m?"point":"series")+"-active",F=s.chart.styledMode,z=function(l){s.allItems.forEach(function(T){t!==T&&[T].concat(T.linkedSeries||[]).forEach(function(b){b.setState(l,!m)})})},e=0;for(i=i?[p,c.symbol]:[c.group];e<i.length;e++)(c=i[e])&&c.on("mouseover",function(){t.visible&&z("inactive"),t.setState("hover"),t.visible&&a.addClass(A),F||p.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||p.css(R(t.visible?s.itemStyle:s.itemHiddenStyle)),z(""),a.removeClass(A),t.setState()}).on("click",function(l){var T=function(){t.setVisible&&t.setVisible(),z(t.visible?"inactive":"")};a.removeClass(A),l={browserEvent:l},t.firePointEvent?t.firePointEvent("legendItemClick",l,T):w(t,"legendItemClick",l,T)})},h.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),f(t.checkbox,"click",function(p){w(t.series||t,"checkboxClick",{checked:p.target.checked,item:t},function(){t.select()})})},h}(),j}),lt(E,"Core/Series/SeriesRegistry.js",[E["Core/Globals.js"],E["Core/Defaults.js"],E["Core/Series/Point.js"],E["Core/Utilities.js"]],function(j,W,Y,Q){var J=W.defaultOptions,tt=Q.extendClass,K=Q.merge,B;return function(I){function P(g,f){var y=J.plotOptions||{},C=f.defaultOptions,v=f.prototype;v.type=g,v.pointClass||(v.pointClass=Y),C&&(y[g]=C),I.seriesTypes[g]=f}I.seriesTypes=j.seriesTypes,I.registerSeriesType=P,I.seriesType=function(g,f,y,C,v){var S=J.plotOptions||{};return f=f||"",S[g]=K(S[f],y),P(g,tt(I.seriesTypes[f]||function(){},C)),I.seriesTypes[g].prototype.type=g,v&&(I.seriesTypes[g].prototype.pointClass=tt(Y,v)),I.seriesTypes[g]}}(B||(B={})),B}),lt(E,"Core/Chart/Chart.js",[E["Core/Animation/AnimationUtilities.js"],E["Core/Axis/Axis.js"],E["Core/Defaults.js"],E["Core/FormatUtilities.js"],E["Core/Foundation.js"],E["Core/Globals.js"],E["Core/Legend/Legend.js"],E["Core/MSPointer.js"],E["Core/Pointer.js"],E["Core/Renderer/RendererRegistry.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Renderer/SVG/SVGRenderer.js"],E["Core/Time.js"],E["Core/Utilities.js"],E["Core/Renderer/HTML/AST.js"]],function(j,W,Y,Q,J,tt,K,B,I,P,g,f,y,C,v){var S=j.animate,M=j.animObject,w=j.setAnimation,D=Y.defaultOptions,R=Y.defaultTime,k=Q.numberFormat,r=J.registerEventOptions,d=tt.charts,o=tt.doc,h=tt.marginNames,t=tt.svg,p=tt.win,i=g.seriesTypes,s=C.addEvent,c=C.attr,a=C.cleanRecursively,m=C.createElement,A=C.css,F=C.defined,z=C.discardElement,e=C.erase,l=C.error,T=C.extend,b=C.find,O=C.fireEvent,n=C.getStyle,x=C.isArray,u=C.isNumber,N=C.isObject,L=C.isString,H=C.merge,G=C.objectEach,U=C.pick,V=C.pInt,rt=C.relativeLength,st=C.removeEvent,ot=C.splat,et=C.syncTimeout,at=C.uniqueKey;return j=function(){function $(_,X,Z){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.legend=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.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(_,X,Z)}return $.chart=function(_,X,Z){return new $(_,X,Z)},$.prototype.getArgs=function(_,X,Z){L(_)||_.nodeName?(this.renderTo=_,this.init(X,Z)):this.init(_,X)},$.prototype.init=function(_,X){var Z=_.plotOptions||{};O(this,"init",{args:arguments},function(){var q=H(D,_),it=q.chart;G(q.plotOptions,function(ht,dt){N(ht)&&(ht.tooltip=Z[dt]&&H(Z[dt].tooltip)||void 0)}),q.tooltip.userOptions=_.chart&&_.chart.forExport&&_.tooltip.userOptions||_.tooltip,this.userOptions=_,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=X,this.isResizing=0;var nt=it.zooming=it.zooming||{};_.chart&&!_.chart.zooming&&(nt.resetButton=it.resetZoomButton),nt.key=U(nt.key,it.zoomKey),nt.pinchType=U(nt.pinchType,it.pinchType),nt.singleTouch=U(nt.singleTouch,it.zoomBySingleTouch),nt.type=U(nt.type,it.zoomType),this.options=q,this.axes=[],this.series=[],this.time=_.time&&Object.keys(_.time).length?new y(_.time):tt.time,this.numberFormatter=it.numberFormatter||k,this.styledMode=it.styledMode,this.hasCartesianSeries=it.showAxes,this.index=d.length,d.push(this),tt.chartCount++,r(this,it),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,O(this,"afterInit"),this.firstRender()})},$.prototype.initSeries=function(_){var X=this.options.chart;X=_.type||X.type||X.defaultSeriesType;var Z=i[X];return Z||l(17,!0,this,{missingModuleFor:X}),X=new Z,typeof X.init=="function"&&X.init(this,_),X},$.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(_){_.points||_.data||!_.enabledDataSorting||_.setData(_.options.data,!1)})},$.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(_,X){return _.linkedSeries.length||X.linkedSeries.length?X.linkedSeries.length-_.linkedSeries.length:0})},$.prototype.orderSeries=function(_){var X=this.series;_=_||0;for(var Z=X.length;_<Z;++_)X[_]&&(X[_].index=_,X[_].name=X[_].getName())},$.prototype.isInsidePlot=function(_,X,Z){Z===void 0&&(Z={});var q=this.inverted,it=this.plotBox,nt=this.plotLeft,ht=this.plotTop,dt=this.scrollablePlotBox,gt=0,pt=0;Z.visiblePlotOnly&&this.scrollingContainer&&(pt=this.scrollingContainer,gt=pt.scrollLeft,pt=pt.scrollTop);var ut=Z.series;if(it=Z.visiblePlotOnly&&dt||it,dt=Z.inverted?X:_,X=Z.inverted?_:X,_={x:dt,y:X,isInsidePlot:!0,options:Z},!Z.ignoreX){var St=ut&&(q&&!this.polar?ut.yAxis:ut.xAxis)||{pos:nt,len:1/0};dt=Z.paneCoordinates?St.pos+dt:nt+dt,dt>=Math.max(gt+nt,St.pos)&&dt<=Math.min(gt+nt+it.width,St.pos+St.len)||(_.isInsidePlot=!1)}return!Z.ignoreY&&_.isInsidePlot&&(q=Z.axis&&!Z.axis.isXAxis&&Z.axis||ut&&(q?ut.xAxis:ut.yAxis)||{pos:ht,len:1/0},Z=Z.paneCoordinates?q.pos+X:ht+X,Z>=Math.max(pt+ht,q.pos)&&Z<=Math.min(pt+ht+it.height,q.pos+q.len)||(_.isInsidePlot=!1)),O(this,"afterIsInsidePlot",_),_.isInsidePlot},$.prototype.redraw=function(_){O(this,"beforeRedraw");var X=this.hasCartesianSeries?this.axes:this.colorAxis||[],Z=this.series,q=this.pointer,it=this.legend,nt=this.userOptions.legend,ht=this.renderer,dt=ht.isHidden(),gt=[],pt=this.isDirtyBox,ut=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),w(this.hasRendered?_:!1,this),dt&&this.temporaryDisplay(),this.layOutTitles(),_=Z.length;_--;){var St=Z[_];if(St.options.stacking||St.options.centerInCategory){var mt=!0;if(St.isDirty){var xt=!0;break}}}if(xt)for(_=Z.length;_--;)St=Z[_],St.options.stacking&&(St.isDirty=!0);Z.forEach(function(ft){ft.isDirty&&(ft.options.legendType==="point"?(typeof ft.updateTotals=="function"&&ft.updateTotals(),ut=!0):nt&&(nt.labelFormatter||nt.labelFormat)&&(ut=!0)),ft.isDirtyData&&O(ft,"updatedData")}),ut&&it&&it.options.enabled&&(it.render(),this.isDirtyLegend=!1),mt&&this.getStacks(),X.forEach(function(ft){ft.updateNames(),ft.setScale()}),this.getMargins(),X.forEach(function(ft){ft.isDirty&&(pt=!0)}),X.forEach(function(ft){var Tt=ft.min+","+ft.max;ft.extKey!==Tt&&(ft.extKey=Tt,gt.push(function(){O(ft,"afterSetExtremes",T(ft.eventArgs,ft.getExtremes())),delete ft.eventArgs})),(pt||mt)&&ft.redraw()}),pt&&this.drawChartBox(),O(this,"predraw"),Z.forEach(function(ft){(pt||ft.isDirty)&&ft.visible&&ft.redraw(),ft.isDirtyData=!1}),q&&q.reset(!0),ht.draw(),O(this,"redraw"),O(this,"render"),dt&&this.temporaryDisplay(!0),gt.forEach(function(ft){ft.call()})},$.prototype.get=function(_){function X(nt){return nt.id===_||nt.options&&nt.options.id===_}for(var Z=this.series,q=b(this.axes,X)||b(this.series,X),it=0;!q&&it<Z.length;it++)q=b(Z[it].points||[],X);return q},$.prototype.getAxes=function(){var _=this,X=this.options,Z=X.xAxis=ot(X.xAxis||{});X=X.yAxis=ot(X.yAxis||{}),O(this,"getAxes"),Z.forEach(function(q,it){q.index=it,q.isX=!0}),X.forEach(function(q,it){q.index=it}),Z.concat(X).forEach(function(q){new W(_,q)}),O(this,"afterGetAxes")},$.prototype.getSelectedPoints=function(){return this.series.reduce(function(_,X){return X.getPointsCollection().forEach(function(Z){U(Z.selectedStaging,Z.selected)&&_.push(Z)}),_},[])},$.prototype.getSelectedSeries=function(){return this.series.filter(function(_){return _.selected})},$.prototype.setTitle=function(_,X,Z){this.applyDescription("title",_),this.applyDescription("subtitle",X),this.applyDescription("caption",void 0),this.layOutTitles(Z)},$.prototype.applyDescription=function(_,X){var Z=this,q=_==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};q=this.options[_]=H(!this.styledMode&&{style:q},this.options[_],X);var it=this[_];it&&X&&(this[_]=it=it.destroy()),q&&!it&&(it=this.renderer.text(q.text,0,0,q.useHTML).attr({align:q.align,class:"highcharts-"+_,zIndex:q.zIndex||4}).add(),it.update=function(nt){Z[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[_]](nt)},this.styledMode||it.css(q.style),this[_]=it)},$.prototype.layOutTitles=function(_){var X=[0,0,0],Z=this.renderer,q=this.spacingBox;["title","subtitle","caption"].forEach(function(nt){var ht=this[nt],dt=this.options[nt],gt=dt.verticalAlign||"top";nt=nt==="title"?gt==="top"?-3:0:gt==="top"?X[0]+2:0;var pt;if(ht){this.styledMode||(pt=dt.style&&dt.style.fontSize),pt=Z.fontMetrics(pt,ht).b,ht.css({width:(dt.width||q.width+(dt.widthAdjust||0))+"px"});var ut=Math.round(ht.getBBox(dt.useHTML).height);ht.align(T({y:gt==="bottom"?pt:nt+pt,height:ut},dt),!1,"spacingBox"),dt.floating||(gt==="top"?X[0]=Math.ceil(X[0]+ut):gt==="bottom"&&(X[2]=Math.ceil(X[2]+ut)))}},this),X[0]&&(this.options.title.verticalAlign||"top")==="top"&&(X[0]+=this.options.title.margin),X[2]&&this.options.caption.verticalAlign==="bottom"&&(X[2]+=this.options.caption.margin);var it=!this.titleOffset||this.titleOffset.join(",")!==X.join(",");this.titleOffset=X,O(this,"afterLayOutTitles"),!this.isDirtyBox&&it&&(this.isDirtyBox=this.isDirtyLegend=it,this.hasRendered&&U(_,!0)&&this.isDirtyBox&&this.redraw())},$.prototype.getChartSize=function(){var _=this.options.chart,X=_.width;_=_.height;var Z=this.renderTo;F(X)||(this.containerWidth=n(Z,"width")),F(_)||(this.containerHeight=n(Z,"height")),this.chartWidth=Math.max(0,X||this.containerWidth||600),this.chartHeight=Math.max(0,rt(_,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},$.prototype.temporaryDisplay=function(_){var X=this.renderTo;if(_)for(;X&&X.style;)X.hcOrigStyle&&(A(X,X.hcOrigStyle),delete X.hcOrigStyle),X.hcOrigDetached&&(o.body.removeChild(X),X.hcOrigDetached=!1),X=X.parentNode;else for(;X&&X.style&&(o.body.contains(X)||X.parentNode||(X.hcOrigDetached=!0,o.body.appendChild(X)),(n(X,"display",!1)==="none"||X.hcOricDetached)&&(X.hcOrigStyle={display:X.style.display,height:X.style.height,overflow:X.style.overflow},_={display:"block",overflow:"hidden"},X!==this.renderTo&&(_.height=0),A(X,_),X.offsetWidth||X.style.setProperty("display","block","important")),X=X.parentNode,X!==o.body););},$.prototype.setClassName=function(_){this.container.className="highcharts-container "+(_||"")},$.prototype.getContainer=function(){var _=this.options,X=_.chart,Z=at(),q,it=this.renderTo;it||(this.renderTo=it=X.renderTo),L(it)&&(this.renderTo=it=o.getElementById(it)),it||l(13,!0,this);var nt=V(c(it,"data-highcharts-chart"));u(nt)&&d[nt]&&d[nt].hasRendered&&d[nt].destroy(),c(it,"data-highcharts-chart",this.index),it.innerHTML=v.emptyHTML,X.skipClone||it.offsetWidth||this.temporaryDisplay(),this.getChartSize(),nt=this.chartWidth;var ht=this.chartHeight;if(A(it,{overflow:"hidden"}),this.styledMode||(q=T({position:"relative",overflow:"hidden",width:nt+"px",height:ht+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},X.style||{})),this.container=Z=m("div",{id:Z},q,it),this._cursor=Z.style.cursor,this.renderer=new(X.renderer||!t?P.getRendererType(X.renderer):f)(Z,nt,ht,void 0,X.forExport,_.exporting&&_.exporting.allowHTML,this.styledMode),w(void 0,this),this.setClassName(X.className),this.styledMode)for(var dt in _.defs)this.renderer.definition(_.defs[dt]);else this.renderer.setStyle(X.style);this.renderer.chartIndex=this.index,O(this,"afterGetContainer")},$.prototype.getMargins=function(_){var X=this.spacing,Z=this.margin,q=this.titleOffset;this.resetMargins(),q[0]&&!F(Z[0])&&(this.plotTop=Math.max(this.plotTop,q[0]+X[0])),q[2]&&!F(Z[2])&&(this.marginBottom=Math.max(this.marginBottom,q[2]+X[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Z,X),O(this,"getMargins"),_||this.getAxisMargins()},$.prototype.getAxisMargins=function(){var _=this,X=_.axisOffset=[0,0,0,0],Z=_.colorAxis,q=_.margin,it=function(nt){nt.forEach(function(ht){ht.visible&&ht.getOffset()})};_.hasCartesianSeries?it(_.axes):Z&&Z.length&&it(Z),h.forEach(function(nt,ht){F(q[ht])||(_[nt]+=X[ht])}),_.setChartSize()},$.prototype.reflow=function(_){var X=this,Z=X.options.chart,q=X.renderTo,it=F(Z.width)&&F(Z.height),nt=Z.width||n(q,"width");Z=Z.height||n(q,"height"),q=_?_.target:p,delete X.pointer.chartPosition,!it&&!X.isPrinting&&nt&&Z&&(q===p||q===o)&&((nt!==X.containerWidth||Z!==X.containerHeight)&&(C.clearTimeout(X.reflowTimeout),X.reflowTimeout=et(function(){X.container&&X.setSize(void 0,void 0,!1)},_?100:0)),X.containerWidth=nt,X.containerHeight=Z)},$.prototype.setReflow=function(_){var X=this;_===!1||this.unbindReflow?_===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=s(p,"resize",function(Z){X.options&&X.reflow(Z)}),s(this,"destroy",this.unbindReflow))},$.prototype.setSize=function(_,X,Z){var q=this,it=q.renderer;q.isResizing+=1,w(Z,q),Z=it.globalAnimation,q.oldChartHeight=q.chartHeight,q.oldChartWidth=q.chartWidth,typeof _<"u"&&(q.options.chart.width=_),typeof X<"u"&&(q.options.chart.height=X),q.getChartSize(),q.styledMode||(Z?S:A)(q.container,{width:q.chartWidth+"px",height:q.chartHeight+"px"},Z),q.setChartSize(!0),it.setSize(q.chartWidth,q.chartHeight,Z),q.axes.forEach(function(nt){nt.isDirty=!0,nt.setScale()}),q.isDirtyLegend=!0,q.isDirtyBox=!0,q.layOutTitles(),q.getMargins(),q.redraw(Z),q.oldChartHeight=null,O(q,"resize"),et(function(){q&&O(q,"endResize",null,function(){--q.isResizing})},M(Z).duration)},$.prototype.setChartSize=function(_){var X=this.inverted,Z=this.renderer,q=this.chartWidth,it=this.chartHeight,nt=this.options.chart,ht=this.spacing,dt=this.clipOffset,gt,pt,ut,St;this.plotLeft=gt=Math.round(this.plotLeft),this.plotTop=pt=Math.round(this.plotTop),this.plotWidth=ut=Math.max(0,Math.round(q-gt-this.marginRight)),this.plotHeight=St=Math.max(0,Math.round(it-pt-this.marginBottom)),this.plotSizeX=X?St:ut,this.plotSizeY=X?ut:St,this.plotBorderWidth=nt.plotBorderWidth||0,this.spacingBox=Z.spacingBox={x:ht[3],y:ht[0],width:q-ht[3]-ht[1],height:it-ht[0]-ht[2]},this.plotBox=Z.plotBox={x:gt,y:pt,width:ut,height:St},X=2*Math.floor(this.plotBorderWidth/2),q=Math.ceil(Math.max(X,dt[3])/2),it=Math.ceil(Math.max(X,dt[0])/2),this.clipBox={x:q,y:it,width:Math.floor(this.plotSizeX-Math.max(X,dt[1])/2-q),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(X,dt[2])/2-it))},_||(this.axes.forEach(function(mt){mt.setAxisSize(),mt.setAxisTranslation()}),Z.alignElements()),O(this,"afterSetChartSize",{skipAxes:_})},$.prototype.resetMargins=function(){O(this,"resetMargins");var _=this,X=_.options.chart;["margin","spacing"].forEach(function(Z){var q=X[Z],it=N(q)?q:[q,q,q,q];["Top","Right","Bottom","Left"].forEach(function(nt,ht){_[Z][ht]=U(X[Z+nt],it[ht])})}),h.forEach(function(Z,q){_[Z]=U(_.margin[q],_.spacing[q])}),_.axisOffset=[0,0,0,0],_.clipOffset=[0,0,0,0]},$.prototype.drawChartBox=function(){var _=this.options.chart,X=this.renderer,Z=this.chartWidth,q=this.chartHeight,it=this.styledMode,nt=this.plotBGImage,ht=_.backgroundColor,dt=_.plotBackgroundColor,gt=_.plotBackgroundImage,pt=this.plotLeft,ut=this.plotTop,St=this.plotWidth,mt=this.plotHeight,xt=this.plotBox,ft=this.clipRect,Tt=this.clipBox,wt=this.chartBackground,Mt=this.plotBackground,jt=this.plotBorder,Pt,Lt="animate";if(wt||(this.chartBackground=wt=X.rect().addClass("highcharts-background").add(),Lt="attr"),it)var bt=Pt=wt.strokeWidth();else bt=_.borderWidth||0,Pt=bt+(_.shadow?8:0),ht={fill:ht||"none"},(bt||wt["stroke-width"])&&(ht.stroke=_.borderColor,ht["stroke-width"]=bt),wt.attr(ht).shadow(_.shadow);wt[Lt]({x:Pt/2,y:Pt/2,width:Z-Pt-bt%2,height:q-Pt-bt%2,r:_.borderRadius}),Lt="animate",Mt||(Lt="attr",this.plotBackground=Mt=X.rect().addClass("highcharts-plot-background").add()),Mt[Lt](xt),it||(Mt.attr({fill:dt||"none"}).shadow(_.plotShadow),gt&&(nt?(gt!==nt.attr("href")&&nt.attr("href",gt),nt.animate(xt)):this.plotBGImage=X.image(gt,pt,ut,St,mt).add())),ft?ft.animate({width:Tt.width,height:Tt.height}):this.clipRect=X.clipRect(Tt),Lt="animate",jt||(Lt="attr",this.plotBorder=jt=X.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),it||jt.attr({stroke:_.plotBorderColor,"stroke-width":_.plotBorderWidth||0,fill:"none"}),jt[Lt](jt.crisp({x:pt,y:ut,width:St,height:mt},-jt.strokeWidth())),this.isDirtyBox=!1,O(this,"afterDrawChartBox")},$.prototype.propFromSeries=function(){var _=this,X=_.options.chart,Z=_.options.series,q,it,nt;["inverted","angular","polar"].forEach(function(ht){for(it=i[X.type||X.defaultSeriesType],nt=X[ht]||it&&it.prototype[ht],q=Z&&Z.length;!nt&&q--;)(it=i[Z[q].type])&&it.prototype[ht]&&(nt=!0);_[ht]=nt})},$.prototype.linkSeries=function(){var _=this,X=_.series;X.forEach(function(Z){Z.linkedSeries.length=0}),X.forEach(function(Z){var q=Z.options.linkedTo;L(q)&&(q=q===":previous"?_.series[Z.index-1]:_.get(q))&&q.linkedParent!==Z&&(q.linkedSeries.push(Z),Z.linkedParent=q,q.enabledDataSorting&&Z.setDataSortingOptions(),Z.visible=U(Z.options.visible,q.options.visible,Z.visible))}),O(this,"afterLinkSeries")},$.prototype.renderSeries=function(){this.series.forEach(function(_){_.translate(),_.render()})},$.prototype.renderLabels=function(){var _=this,X=_.options.labels;X.items&&X.items.forEach(function(Z){var q=T(X.style,Z.style),it=V(q.left)+_.plotLeft,nt=V(q.top)+_.plotTop+12;delete q.left,delete q.top,_.renderer.text(Z.html,it,nt).attr({zIndex:2}).css(q).add()})},$.prototype.render=function(){var _=this.axes,X=this.colorAxis,Z=this.renderer,q=this.options,it=function(pt){pt.forEach(function(ut){ut.visible&&ut.render()})},nt=0;this.setTitle(),this.legend=new K(this,q.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),q=this.plotWidth,_.some(function(pt){if(pt.horiz&&pt.visible&&pt.options.labels.enabled&&pt.series.length)return nt=21,!0});var ht=this.plotHeight=Math.max(this.plotHeight-nt,0);_.forEach(function(pt){pt.setScale()}),this.getAxisMargins();var dt=1.1<q/this.plotWidth,gt=1.05<ht/this.plotHeight;(dt||gt)&&(_.forEach(function(pt){(pt.horiz&&dt||!pt.horiz&>)&&pt.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?it(_):X&&X.length&&it(X),this.seriesGroup||(this.seriesGroup=Z.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},$.prototype.addCredits=function(_){var X=this,Z=H(!0,this.options.credits,_);Z.enabled&&!this.credits&&(this.credits=this.renderer.text(Z.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Z.href&&(p.location.href=Z.href)}).attr({align:Z.position.align,zIndex:8}),X.styledMode||this.credits.css(Z.style),this.credits.add().align(Z.position),this.credits.update=function(q){X.credits=X.credits.destroy(),X.addCredits(q)})},$.prototype.destroy=function(){var _=this,X=_.axes,Z=_.series,q=_.container,it=q&&q.parentNode,nt;for(O(_,"destroy"),_.renderer.forExport?e(d,_):d[_.index]=void 0,tt.chartCount--,_.renderTo.removeAttribute("data-highcharts-chart"),st(_),nt=X.length;nt--;)X[nt]=X[nt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),nt=Z.length;nt--;)Z[nt]=Z[nt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ht){var dt=_[ht];dt&&dt.destroy&&(_[ht]=dt.destroy())}),q&&(q.innerHTML=v.emptyHTML,st(q),it&&z(q)),G(_,function(ht,dt){delete _[dt]})},$.prototype.firstRender=function(){var _=this,X=_.options;(!_.isReadyToRender||_.isReadyToRender())&&(_.getContainer(),_.resetMargins(),_.setChartSize(),_.propFromSeries(),_.getAxes(),(x(X.series)?X.series:[]).forEach(function(Z){_.initSeries(Z)}),_.linkSeries(),_.setSeriesData(),O(_,"beforeRender"),I&&(B.isRequired()?_.pointer=new B(_,X):_.pointer=new I(_,X)),_.render(),_.pointer.getChartPosition(),!_.renderer.imgCount&&!_.hasLoaded&&_.onload(),_.temporaryDisplay(!0))},$.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(_){_&&typeof this.index<"u"&&_.apply(this,[this])},this),O(this,"load"),O(this,"render"),F(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},$.prototype.warnIfA11yModuleNotLoaded=function(){var _=this.options,X=this.title;_&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(X&&X.element.textContent||"").replace(/</g,"<")}),_.accessibility&&_.accessibility.enabled===!1||l('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))},$.prototype.addSeries=function(_,X,Z){var q=this,it;return _&&(X=U(X,!0),O(q,"addSeries",{options:_},function(){it=q.initSeries(_),q.isDirtyLegend=!0,q.linkSeries(),it.enabledDataSorting&&it.setData(_.data,!1),O(q,"afterAddSeries",{series:it}),X&&q.redraw(Z)})),it},$.prototype.addAxis=function(_,X,Z,q){return this.createAxis(X?"xAxis":"yAxis",{axis:_,redraw:Z,animation:q})},$.prototype.addColorAxis=function(_,X,Z){return this.createAxis("colorAxis",{axis:_,redraw:X,animation:Z})},$.prototype.createAxis=function(_,X){return _=new W(this,H(X.axis,{index:this[_].length,isX:_==="xAxis"})),U(X.redraw,!0)&&this.redraw(X.animation),_},$.prototype.showLoading=function(_){var X=this,Z=X.options,q=Z.loading,it=function(){nt&&A(nt,{left:X.plotLeft+"px",top:X.plotTop+"px",width:X.plotWidth+"px",height:X.plotHeight+"px"})},nt=X.loadingDiv,ht=X.loadingSpan;nt||(X.loadingDiv=nt=m("div",{className:"highcharts-loading highcharts-loading-hidden"},null,X.container)),ht||(X.loadingSpan=ht=m("span",{className:"highcharts-loading-inner"},null,nt),s(X,"redraw",it)),nt.className="highcharts-loading",v.setElementHTML(ht,U(_,Z.lang.loading,"")),X.styledMode||(A(nt,T(q.style,{zIndex:10})),A(ht,q.labelStyle),X.loadingShown||(A(nt,{opacity:0,display:""}),S(nt,{opacity:q.style.opacity||.5},{duration:q.showDuration||0}))),X.loadingShown=!0,it()},$.prototype.hideLoading=function(){var _=this.options,X=this.loadingDiv;X&&(X.className="highcharts-loading highcharts-loading-hidden",this.styledMode||S(X,{opacity:0},{duration:_.loading.hideDuration||100,complete:function(){A(X,{display:"none"})}})),this.loadingShown=!1},$.prototype.update=function(_,X,Z,q){var it=this,nt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ht=_.isResponsiveOptions,dt=[],gt,pt;O(it,"update",{options:_}),ht||it.setResponsive(!1,!0),_=a(_,it.options),it.userOptions=H(it.userOptions,_);var ut=_.chart;if(ut){if(H(!0,it.options.chart,ut),"className"in ut&&it.setClassName(ut.className),"reflow"in ut&&it.setReflow(ut.reflow),"inverted"in ut||"polar"in ut||"type"in ut){it.propFromSeries();var St=!0}"alignTicks"in ut&&(St=!0),"events"in ut&&r(this,ut),G(ut,function(mt,xt){it.propsRequireUpdateSeries.indexOf("chart."+xt)!==-1&&(gt=!0),it.propsRequireDirtyBox.indexOf(xt)!==-1&&(it.isDirtyBox=!0),it.propsRequireReflow.indexOf(xt)!==-1&&(ht?it.isDirtyBox=!0:pt=!0)}),!it.styledMode&&ut.style&&it.renderer.setStyle(it.options.chart.style||{})}!it.styledMode&&_.colors&&(this.options.colors=_.colors),_.time&&(this.time===R&&(this.time=new y(_.time)),H(!0,it.options.time,_.time)),G(_,function(mt,xt){it[xt]&&typeof it[xt].update=="function"?it[xt].update(mt,!1):typeof it[nt[xt]]=="function"?it[nt[xt]](mt):xt!=="colors"&&it.collectionsWithUpdate.indexOf(xt)===-1&&H(!0,it.options[xt],_[xt]),xt!=="chart"&&it.propsRequireUpdateSeries.indexOf(xt)!==-1&&(gt=!0)}),this.collectionsWithUpdate.forEach(function(mt){if(_[mt]){var xt=[];it[mt].forEach(function(ft,Tt){ft.options.isInternal||xt.push(U(ft.options.index,Tt))}),ot(_[mt]).forEach(function(ft,Tt){var wt=F(ft.id),Mt;wt&&(Mt=it.get(ft.id)),!Mt&&it[mt]&&(Mt=it[mt][xt?xt[Tt]:Tt])&&wt&&F(Mt.options.id)&&(Mt=void 0),Mt&&Mt.coll===mt&&(Mt.update(ft,!1),Z&&(Mt.touched=!0)),!Mt&&Z&&it.collectionsWithInit[mt]&&(it.collectionsWithInit[mt][0].apply(it,[ft].concat(it.collectionsWithInit[mt][1]||[]).concat([!1])).touched=!0)}),Z&&it[mt].forEach(function(ft){ft.touched||ft.options.isInternal?delete ft.touched:dt.push(ft)})}}),dt.forEach(function(mt){mt.chart&&mt.remove&&mt.remove(!1)}),St&&it.axes.forEach(function(mt){mt.update({},!1)}),gt&&it.getSeriesOrderByLinks().forEach(function(mt){mt.chart&&mt.update({},!1)},this),St=ut&&ut.width,ut=ut&&(L(ut.height)?rt(ut.height,St||it.chartWidth):ut.height),pt||u(St)&&St!==it.chartWidth||u(ut)&&ut!==it.chartHeight?it.setSize(St,ut,q):U(X,!0)&&it.redraw(q),O(it,"afterUpdate",{options:_,redraw:X,animation:q})},$.prototype.setSubtitle=function(_,X){this.applyDescription("subtitle",_),this.layOutTitles(X)},$.prototype.setCaption=function(_,X){this.applyDescription("caption",_),this.layOutTitles(X)},$.prototype.showResetZoom=function(){function _(){X.zoomOut()}var X=this,Z=D.lang,q=X.options.chart.zooming.resetButton,it=q.theme,nt=q.relativeTo==="chart"||q.relativeTo==="spacingBox"?null:"scrollablePlotBox";O(this,"beforeShowResetZoom",null,function(){X.resetZoomButton=X.renderer.button(Z.resetZoom,null,null,_,it).attr({align:q.position.align,title:Z.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(q.position,!1,nt)}),O(this,"afterShowResetZoom")},$.prototype.zoomOut=function(){O(this,"selection",{resetSelection:!0},this.zoom)},$.prototype.zoom=function(_){var X=this,Z=X.pointer,q=!1,it;!_||_.resetSelection?(X.axes.forEach(function(ht){it=ht.zoom()}),Z.initiated=!1):_.xAxis.concat(_.yAxis).forEach(function(ht){var dt=ht.axis;(Z[dt.isXAxis?"zoomX":"zoomY"]&&F(Z.mouseDownX)&&F(Z.mouseDownY)&&X.isInsidePlot(Z.mouseDownX-X.plotLeft,Z.mouseDownY-X.plotTop,{axis:dt})||!F(X.inverted?Z.mouseDownX:Z.mouseDownY))&&(it=dt.zoom(ht.min,ht.max),dt.displayBtn&&(q=!0))});var nt=X.resetZoomButton;q&&!nt?X.showResetZoom():!q&&N(nt)&&(X.resetZoomButton=nt.destroy()),it&&X.redraw(U(X.options.chart.animation,_&&_.animation,100>X.pointCount))},$.prototype.pan=function(_,X){var Z=this,q=Z.hoverPoints;X=typeof X=="object"?X:{enabled:X,type:"x"};var it=Z.options.chart;it&&it.panning&&(it.panning=X);var nt=X.type,ht;O(this,"pan",{originalEvent:_},function(){q&&q.forEach(function(pt){pt.setState()});var dt=Z.xAxis;nt==="xy"?dt=dt.concat(Z.yAxis):nt==="y"&&(dt=Z.yAxis);var gt={};dt.forEach(function(pt){if(pt.options.panningEnabled&&!pt.options.isInternal){var ut=pt.horiz,St=_[ut?"chartX":"chartY"];ut=ut?"mouseDownX":"mouseDownY";var mt=Z[ut],xt=pt.minPointOffset||0,ft=pt.reversed&&!Z.inverted||!pt.reversed&&Z.inverted?-1:1,Tt=pt.getExtremes(),wt=pt.toValue(mt-St,!0)+xt*ft,Mt=pt.toValue(mt+pt.len-St,!0)-(xt*ft||pt.isXAxis&&pt.pointRangePadding||0),jt=Mt<wt;ft=pt.hasVerticalPanning(),mt=jt?Mt:wt,wt=jt?wt:Mt;var Pt=pt.panningState;!ft||pt.isXAxis||Pt&&!Pt.isDirty||pt.series.forEach(function(Lt){var bt=Lt.getProcessedData(!0);bt=Lt.getExtremes(bt.yData,!0),Pt||(Pt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),u(bt.dataMin)&&u(bt.dataMax)&&(Pt.startMin=Math.min(U(Lt.options.threshold,1/0),bt.dataMin,Pt.startMin),Pt.startMax=Math.max(U(Lt.options.threshold,-1/0),bt.dataMax,Pt.startMax))}),ft=Math.min(U(Pt&&Pt.startMin,Tt.dataMin),xt?Tt.min:pt.toValue(pt.toPixels(Tt.min)-pt.minPixelPadding)),Mt=Math.max(U(Pt&&Pt.startMax,Tt.dataMax),xt?Tt.max:pt.toValue(pt.toPixels(Tt.max)+pt.minPixelPadding)),pt.panningState=Pt,pt.isOrdinal||(xt=ft-mt,0<xt&&(wt+=xt,mt=ft),xt=wt-Mt,0<xt&&(wt=Mt,mt-=xt),pt.series.length&&mt!==Tt.min&&wt!==Tt.max&&mt>=ft&&wt<=Mt&&(pt.setExtremes(mt,wt,!1,!1,{trigger:"pan"}),!Z.resetZoomButton&&mt!==ft&&wt!==Mt&&nt.match("y")&&(Z.showResetZoom(),pt.displayBtn=!1),ht=!0),gt[ut]=St)}}),G(gt,function(pt,ut){Z[ut]=pt}),ht&&Z.redraw(!1),A(Z.container,{cursor:"move"})})},$}(),T(j.prototype,{callbacks:[],collectionsWithInit:{xAxis:[j.prototype.addAxis,[!0]],yAxis:[j.prototype.addAxis,[!1]],series:[j.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(" ")}),j}),lt(E,"Core/Legend/LegendSymbol.js",[E["Core/Utilities.js"]],function(j){var W=j.extend,Y=j.merge,Q=j.pick,J;return function(tt){tt.drawLineMarker=function(K){var B=this.legendItem=this.legendItem||{},I=this.options,P=K.symbolWidth,g=K.symbolHeight,f=g/2,y=this.chart.renderer,C=B.group;K=K.baseline-Math.round(.3*K.fontMetrics.b);var v={},S=I.marker,M=0;this.chart.styledMode||(v={"stroke-width":Math.min(I.lineWidth||0,24)},I.dashStyle?v.dashstyle=I.dashStyle:I.linecap!=="square"&&(v["stroke-linecap"]="round")),B.line=y.path().addClass("highcharts-graph").attr(v).add(C),v["stroke-linecap"]&&(M=Math.min(B.line.strokeWidth(),P)/2),B.line.attr({d:[["M",M,K],["L",P-M,K]]}),S&&S.enabled!==!1&&P&&(I=Math.min(Q(S.radius,f),f),this.symbol.indexOf("url")===0&&(S=Y(S,{width:g,height:g}),I=0),B.symbol=B=y.symbol(this.symbol,P/2-I,K-I,2*I,2*I,W({context:"legend"},S)).addClass("highcharts-point").add(C),B.isMarker=!0)},tt.drawRectangle=function(K,B){B=B.legendItem||{};var I=K.symbolHeight,P=K.options.squareSymbol;B.symbol=this.chart.renderer.rect(P?(K.symbolWidth-I)/2:0,K.baseline-I+1,P?I:K.symbolWidth,I,Q(K.options.symbolRadius,I/2)).addClass("highcharts-point").attr({zIndex:3}).add(B.group)}}(J||(J={})),J}),lt(E,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},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(){var j=this.series.chart.numberFormatter;return typeof this.y!="number"?"":j(this.y,-1)},padding:5,style:{fontSize:"11px",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:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),lt(E,"Core/Series/Series.js",[E["Core/Animation/AnimationUtilities.js"],E["Core/Defaults.js"],E["Core/Foundation.js"],E["Core/Globals.js"],E["Core/Legend/LegendSymbol.js"],E["Core/Series/Point.js"],E["Core/Series/SeriesDefaults.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Renderer/SVG/SVGElement.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J,tt,K,B,I,P){var g=j.animObject,f=j.setAnimation,y=W.defaultOptions,C=Y.registerEventOptions,v=Q.hasTouch,S=Q.svg,M=Q.win,w=B.seriesTypes,D=P.arrayMax,R=P.arrayMin,k=P.clamp,r=P.cleanRecursively,d=P.correctFloat,o=P.defined,h=P.erase,t=P.error,p=P.extend,i=P.find,s=P.fireEvent,c=P.getNestedProperty,a=P.isArray,m=P.isNumber,A=P.isString,F=P.merge,z=P.objectEach,e=P.pick,l=P.removeEvent,T=P.splat,b=P.syncTimeout;return j=function(){function O(){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}return O.prototype.init=function(n,x){s(this,"init",{options:x});var u=this,N=n.series;this.eventsToUnbind=[],u.chart=n,u.options=u.setOptions(x),x=u.options,u.linkedSeries=[],u.bindAxes(),p(u,{name:x.name,state:"",visible:x.visible!==!1,selected:x.selected===!0}),C(this,x);var L=x.events;(L&&L.click||x.point&&x.point.events&&x.point.events.click||x.allowPointSelect)&&(n.runTrackerClick=!0),u.getColor(),u.getSymbol(),u.parallelArrays.forEach(function(G){u[G+"Data"]||(u[G+"Data"]=[])}),u.isCartesian&&(n.hasCartesianSeries=!0);var H;N.length&&(H=N[N.length-1]),u._i=e(H&&H._i,-1)+1,u.opacity=u.options.opacity,n.orderSeries(this.insert(N)),x.dataSorting&&x.dataSorting.enabled?u.setDataSortingOptions():u.points||u.data||u.setData(x.data,!1),s(this,"afterInit")},O.prototype.is=function(n){return w[n]&&this instanceof w[n]},O.prototype.insert=function(n){var x=this.options.index,u;if(m(x)){for(u=n.length;u--;)if(x>=e(n[u].options.index,n[u]._i)){n.splice(u+1,0,this);break}u===-1&&n.unshift(this),u+=1}else n.push(this);return e(u,n.length-1)},O.prototype.bindAxes=function(){var n=this,x=n.options,u=n.chart,N;s(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(L){var H=0;u[L].forEach(function(G){N=G.options,(x[L]===H&&!N.isInternal||typeof x[L]<"u"&&x[L]===N.id||typeof x[L]>"u"&&N.index===0)&&(n.insert(G.series),n[L]=G,G.isDirty=!0),N.isInternal||H++}),n[L]||n.optionalAxis===L||t(18,!0,u)})}),s(this,"afterBindAxes")},O.prototype.updateParallelArrays=function(n,x){var u=n.series,N=arguments,L=m(x)?function(H){var G=H==="y"&&u.toYData?u.toYData(n):n[H];u[H+"Data"][x]=G}:function(H){Array.prototype[x].apply(u[H+"Data"],Array.prototype.slice.call(N,2))};u.parallelArrays.forEach(L)},O.prototype.hasData=function(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length},O.prototype.autoIncrement=function(n){var x=this.options,u=x.pointIntervalUnit,N=x.relativeXValue,L=this.chart.time,H=this.xIncrement,G;return H=e(H,x.pointStart,0),this.pointInterval=G=e(this.pointInterval,x.pointInterval,1),N&&m(n)&&(G*=n),u&&(x=new L.Date(H),u==="day"?L.set("Date",x,L.get("Date",x)+G):u==="month"?L.set("Month",x,L.get("Month",x)+G):u==="year"&&L.set("FullYear",x,L.get("FullYear",x)+G),G=x.getTime()-H),N&&m(n)?H+G:(this.xIncrement=H+G,H)},O.prototype.setDataSortingOptions=function(){var n=this.options;p(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),o(n.pointRange)||(n.pointRange=1)},O.prototype.setOptions=function(n){var x=this.chart,u=x.options,N=u.plotOptions,L=x.userOptions||{};n=F(n),x=x.styledMode;var H={plotOptions:N,userOptions:n};s(this,"setOptions",H);var G=H.plotOptions[this.type],U=L.plotOptions||{};return this.userOptions=H.userOptions,L=F(G,N.series,L.plotOptions&&L.plotOptions[this.type],n),this.tooltipOptions=F(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,u.tooltip.userOptions,N.series&&N.series.tooltip,N[this.type].tooltip,n.tooltip),this.stickyTracking=e(n.stickyTracking,U[this.type]&&U[this.type].stickyTracking,U.series&&U.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:L.stickyTracking),G.marker===null&&delete L.marker,this.zoneAxis=L.zoneAxis,N=this.zones=(L.zones||[]).slice(),!L.negativeColor&&!L.negativeFillColor||L.zones||(u={value:L[this.zoneAxis+"Threshold"]||L.threshold||0,className:"highcharts-negative"},x||(u.color=L.negativeColor,u.fillColor=L.negativeFillColor),N.push(u)),N.length&&o(N[N.length-1].value)&&N.push(x?{}:{color:this.color,fillColor:this.fillColor}),s(this,"afterSetOptions",{options:L}),L},O.prototype.getName=function(){return e(this.options.name,"Series "+(this.index+1))},O.prototype.getCyclic=function(n,x,u){var N=this.chart,L=this.userOptions,H=n+"Index",G=n+"Counter",U=u?u.length:e(N.options.chart[n+"Count"],N[n+"Count"]);if(!x){var V=e(L[H],L["_"+H]);o(V)||(N.series.length||(N[G]=0),L["_"+H]=V=N[G]%U,N[G]+=1),u&&(x=u[V])}typeof V<"u"&&(this[H]=V),this[n]=x},O.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},O.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},O.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},O.prototype.findPointIndex=function(n,x){var u=n.id,N=n.x,L=this.points,H=this.options.dataSorting,G,U;if(u)H=this.chart.get(u),H instanceof tt&&(G=H);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(G=function(rt){return!rt.touched&&rt.index===n.index},H&&H.matchByName?G=function(rt){return!rt.touched&&rt.name===n.name}:this.options.relativeXValue&&(G=function(rt){return!rt.touched&&rt.options.x===n.x}),G=i(L,G),!G))return;if(G){var V=G&&G.index;typeof V<"u"&&(U=!0)}return typeof V>"u"&&m(N)&&(V=this.xData.indexOf(N,x)),V!==-1&&typeof V<"u"&&this.cropped&&(V=V>=this.cropStart?V-this.cropStart:V),!U&&m(V)&&L[V]&&L[V].touched&&(V=void 0),V},O.prototype.updateData=function(n,x){var u=this.options,N=u.dataSorting,L=this.points,H=[],G=this.requireSorting,U=n.length===L.length,V,rt,st,ot=!0;if(this.xIncrement=null,n.forEach(function(et,at){var $=o(et)&&this.pointClass.prototype.optionsToObject.call({series:this},et)||{},_=$.x;$.id||m(_)?($=this.findPointIndex($,st),$===-1||typeof $>"u"?H.push(et):L[$]&&et!==u.data[$]?(L[$].update(et,!1,null,!1),L[$].touched=!0,G&&(st=$+1)):L[$]&&(L[$].touched=!0),(!U||at!==$||N&&N.enabled||this.hasDerivedData)&&(V=!0)):H.push(et)},this),V)for(n=L.length;n--;)(rt=L[n])&&!rt.touched&&rt.remove&&rt.remove(!1,x);else!U||N&&N.enabled?ot=!1:(n.forEach(function(et,at){et!==L[at].y&&L[at].update&&L[at].update(et,!1,null,!1)}),H.length=0);return L.forEach(function(et){et&&(et.touched=!1)}),ot?(H.forEach(function(et){this.addPoint(et,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=D(this.xData),this.autoIncrement()),!0):!1},O.prototype.setData=function(n,x,u,N){x===void 0&&(x=!0);var L=this,H=L.points,G=H&&H.length||0,U=L.options,V=L.chart,rt=U.dataSorting,st=L.xAxis,ot=U.turboThreshold,et=this.xData,at=this.yData,$=L.pointArrayMap;$=$&&$.length;var _=U.keys,X,Z=0,q=1,it=null;if(!V.options.chart.allowMutatingData){U.data&&delete L.options.data,L.userOptions.data&&delete L.userOptions.data;var nt=F(!0,n)}if(n=nt||n||[],nt=n.length,rt&&rt.enabled&&(n=this.sortData(n)),V.options.chart.allowMutatingData&&N!==!1&&nt&&G&&!L.cropped&&!L.hasGroupedData&&L.visible&&!L.boosted&&(X=this.updateData(n,u)),!X){if(L.xIncrement=null,L.colorCounter=0,this.parallelArrays.forEach(function(ht){L[ht+"Data"].length=0}),ot&&nt>ot)if(it=L.getFirstValidPoint(n),m(it))for(u=0;u<nt;u++)et[u]=this.autoIncrement(),at[u]=n[u];else if(a(it))if($)if(it.length===$)for(u=0;u<nt;u++)et[u]=this.autoIncrement(),at[u]=n[u];else for(u=0;u<nt;u++)N=n[u],et[u]=N[0],at[u]=N.slice(1,$+1);else if(_&&(Z=_.indexOf("x"),q=_.indexOf("y"),Z=0<=Z?Z:0,q=0<=q?q:1),it.length===1&&(q=0),Z===q)for(u=0;u<nt;u++)et[u]=this.autoIncrement(),at[u]=n[u][q];else for(u=0;u<nt;u++)N=n[u],et[u]=N[Z],at[u]=N[q];else t(12,!1,V);else for(u=0;u<nt;u++)typeof n[u]<"u"&&(N={series:L},L.pointClass.prototype.applyOptions.apply(N,[n[u]]),L.updateParallelArrays(N,u));for(at&&A(at[0])&&t(14,!0,V),L.data=[],L.options.data=L.userOptions.data=n,u=G;u--;)H[u]&&H[u].destroy&&H[u].destroy();st&&(st.minRange=st.userMinRange),L.isDirty=V.isDirtyBox=!0,L.isDirtyData=!!H,u=!1}U.legendType==="point"&&(this.processData(),this.generatePoints()),x&&V.redraw(u)},O.prototype.sortData=function(n){var x=this,u=x.options.dataSorting.sortKey||"y",N=function(L,H){return o(H)&&L.pointClass.prototype.optionsToObject.call({series:L},H)||{}};return n.forEach(function(L,H){n[H]=N(x,L),n[H].index=H},this),n.concat().sort(function(L,H){return L=c(u,L),H=c(u,H),H<L?-1:H>L?1:0}).forEach(function(L,H){L.x=H},this),x.linkedSeries&&x.linkedSeries.forEach(function(L){var H=L.options,G=H.data;H.dataSorting&&H.dataSorting.enabled||!G||(G.forEach(function(U,V){G[V]=N(L,U),n[V]&&(G[V].x=n[V].x,G[V].index=V)}),L.setData(G,!1))}),n},O.prototype.getProcessedData=function(n){var x=this.xAxis,u=this.options,N=u.cropThreshold,L=n||this.getExtremesFromAll||u.getExtremesFromAll,H=this.isCartesian;n=x&&x.val2lin,u=!(!x||!x.logarithmic);var G=0,U=this.xData,V=this.yData,rt=this.requireSorting,st=!1,ot=U.length;if(x){st=x.getExtremes();var et=st.min,at=st.max;st=!(!x.categories||x.names.length)}if(H&&this.sorted&&!L&&(!N||ot>N||this.forceCrop)){if(U[ot-1]<et||U[0]>at)U=[],V=[];else if(this.yData&&(U[0]<et||U[ot-1]>at)){var $=this.cropData(this.xData,this.yData,et,at);U=$.xData,V=$.yData,G=$.start,$=!0}}for(N=U.length||1;--N;)if(x=u?n(U[N])-n(U[N-1]):U[N]-U[N-1],0<x&&(typeof _>"u"||x<_))var _=x;else 0>x&&rt&&!st&&(t(15,!1,this.chart),rt=!1);return{xData:U,yData:V,cropped:$,cropStart:G,closestPointRange:_}},O.prototype.processData=function(n){var x=this.xAxis;if(this.isCartesian&&!this.isDirty&&!x.isDirty&&!this.yAxis.isDirty&&!n)return!1;n=this.getProcessedData(),this.cropped=n.cropped,this.cropStart=n.cropStart,this.processedXData=n.xData,this.processedYData=n.yData,this.closestPointRange=this.basePointRange=n.closestPointRange,s(this,"afterProcessData")},O.prototype.cropData=function(n,x,u,N,L){var H=n.length,G,U=0,V=H;for(L=e(L,this.cropShoulder),G=0;G<H;G++)if(n[G]>=u){U=Math.max(0,G-L);break}for(u=G;u<H;u++)if(n[u]>N){V=u+L;break}return{xData:n.slice(U,V),yData:x.slice(U,V),start:U,end:V}},O.prototype.generatePoints=function(){var n=this.options,x=this.processedData||n.data,u=this.processedXData,N=this.processedYData,L=this.pointClass,H=u.length,G=this.cropStart||0,U=this.hasGroupedData,V=n.keys,rt=[];n=n.dataGrouping&&n.dataGrouping.groupAll?G:0;var st,ot,et=this.data;if(!et&&!U){var at=[];at.length=x.length,et=this.data=at}for(V&&U&&(this.options.keys=!1),ot=0;ot<H;ot++){if(at=G+ot,U){var $=new L().init(this,[u[ot]].concat(T(N[ot])));$.dataGroup=this.groupMap[n+ot],$.dataGroup.options&&($.options=$.dataGroup.options,p($,$.dataGroup.options),delete $.dataLabels)}else($=et[at])||typeof x[at]>"u"||(et[at]=$=new L().init(this,x[at],u[ot]));$&&($.index=U?n+ot:at,rt[ot]=$)}if(this.options.keys=V,et&&(H!==(st=et.length)||U))for(ot=0;ot<st;ot++)ot!==G||U||(ot+=H),et[ot]&&(et[ot].destroyElements(),et[ot].plotX=void 0);this.data=et,this.points=rt,s(this,"afterGeneratePoints")},O.prototype.getXExtremes=function(n){return{min:R(n),max:D(n)}},O.prototype.getExtremes=function(n,x){var u=this.xAxis,N=this.yAxis,L=this.processedXData||this.xData,H=[],G=this.requireSorting?this.cropShoulder:0;N=N?N.positiveValuesOnly:!1;var U,V=0,rt=0,st=0;n=n||this.stackedYData||this.processedYData||[];var ot=n.length;if(u){var et=u.getExtremes();V=et.min,rt=et.max}for(U=0;U<ot;U++){var at=L[U];et=n[U];var $=(m(et)||a(et))&&(et.length||0<et||!N);if(at=x||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!u||(L[U+G]||at)>=V&&(L[U-G]||at)<=rt,$&&at)if($=et.length)for(;$--;)m(et[$])&&(H[st++]=et[$]);else H[st++]=et}return n={activeYData:H,dataMin:R(H),dataMax:D(H)},s(this,"afterGetExtremes",{dataExtremes:n}),n},O.prototype.applyExtremes=function(){var n=this.getExtremes();return this.dataMin=n.dataMin,this.dataMax=n.dataMax,n},O.prototype.getFirstValidPoint=function(n){for(var x=n.length,u=0,N=null;N===null&&u<x;)N=n[u],u++;return N},O.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var n=this.options,x=n.stacking,u=this.xAxis,N=u.categories,L=this.enabledDataSorting,H=this.yAxis,G=this.points,U=G.length,V=this.pointPlacementToXValue(),rt=!!V,st=n.threshold,ot=n.startFromThreshold?st:0,et=this.zoneAxis||"y",at,$,_=Number.MAX_VALUE;for(at=0;at<U;at++){var X=G[at],Z=X.x,q=void 0,it=void 0,nt=X.y,ht=X.low,dt=x&&H.stacking&&H.stacking.stacks[(this.negStacks&&nt<(ot?0:st)?"-":"")+this.stackKey];if((H.positiveValuesOnly&&!H.validatePositiveValue(nt)||u.positiveValuesOnly&&!u.validatePositiveValue(Z))&&(X.isNull=!0),X.plotX=$=d(k(u.translate(Z,0,0,0,1,V,this.type==="flags"),-1e5,1e5)),x&&this.visible&&dt&&dt[Z]){var gt=this.getStackIndicator(gt,Z,this.index);!X.isNull&>.key&&(q=dt[Z],it=q.points[gt.key]),q&&a(it)&&(ht=it[0],nt=it[1],ht===ot&>.key===dt[Z].base&&(ht=e(m(st)?st:H.min)),H.positiveValuesOnly&&o(ht)&&0>=ht&&(ht=void 0),X.total=X.stackTotal=e(q.total),X.percentage=o(X.y)&&q.total?X.y/q.total*100:void 0,X.stackY=nt,this.irregularWidths||q.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(X.yBottom=o(ht)?k(H.translate(ht,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(nt=this.dataModify.modifyValue(nt,at)),X.plotY=void 0,m(nt)&&(q=H.translate(nt,!1,!0,!1,!0),typeof q<"u"&&(X.plotY=k(q,-1e5,1e5))),X.isInside=this.isPointInside(X),X.clientX=rt?d(u.translate(Z,0,0,0,1,V)):$,X.negative=X[et]<(n[et+"Threshold"]||st||0),X.category=e(N&&N[X.x],X.x),!X.isNull&&X.visible!==!1){typeof pt<"u"&&(_=Math.min(_,Math.abs($-pt)));var pt=$}X.zone=this.zones.length?X.getZone():void 0,!X.graphic&&this.group&&L&&(X.isNew=!0)}this.closestPointRangePx=_,s(this,"afterTranslate")},O.prototype.getValidPoints=function(n,x,u){var N=this.chart;return(n||this.points||[]).filter(function(L){return x&&!N.isInsidePlot(L.plotX,L.plotY,{inverted:N.inverted})?!1:L.visible!==!1&&(u||!L.isNull)})},O.prototype.getClipBox=function(){var n=this.chart,x=this.xAxis,u=this.yAxis,N=F(n.clipBox);return x&&x.len!==n.plotSizeX&&(N.width=x.len),u&&u.len!==n.plotSizeY&&(N.height=u.len),N},O.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},O.prototype.setClip=function(){var n=this.chart,x=this.group,u=this.markerGroup,N=n.sharedClips;n=n.renderer;var L=this.getClipBox(),H=this.getSharedClipKey(),G=N[H];G?G.animate(L):N[H]=G=n.clipRect(L),x&&x.clip(this.options.clip===!1?void 0:G),u&&u.clip()},O.prototype.animate=function(n){var x=this.chart,u=this.group,N=this.markerGroup,L=x.inverted,H=g(this.options.animation),G=[this.getSharedClipKey(),H.duration,H.easing,H.defer].join(),U=x.sharedClips[G],V=x.sharedClips[G+"m"];if(n&&u)H=this.getClipBox(),U?U.attr("height",H.height):(H.width=0,L&&(H.x=x.plotHeight),U=x.renderer.clipRect(H),x.sharedClips[G]=U,V=x.renderer.clipRect({x:-99,y:-99,width:L?x.plotWidth+199:99,height:L?99:x.plotHeight+199}),x.sharedClips[G+"m"]=V),u.clip(U),N&&N.clip(V);else if(U&&!U.hasClass("highcharts-animating")){x=this.getClipBox();var rt=H.step;N&&N.element.childNodes.length&&(H.step=function(st,ot){rt&&rt.apply(ot,arguments),ot.prop==="width"&&V&&V.element&&V.attr(L?"height":"width",st+99)}),U.addClass("highcharts-animating").animate(x,H)}},O.prototype.afterAnimate=function(){var n=this;this.setClip(),z(this.chart.sharedClips,function(x,u,N){x&&!n.chart.container.querySelector('[clip-path="url(#'.concat(x.id,')"]'))&&(x.destroy(),delete N[u])}),this.finishedAnimating=!0,s(this,"afterAnimate")},O.prototype.drawPoints=function(n){n===void 0&&(n=this.points);var x=this.chart,u=x.styledMode,N=this.colorAxis,L=this.options.marker,H=this[this.specialGroup||"markerGroup"],G=this.xAxis,U=e(L.enabled,!G||G.isRadial?!0:null,this.closestPointRangePx>=L.enabledThreshold*L.radius),V,rt;if(L.enabled!==!1||this._hasPointMarkers)for(V=0;V<n.length;V++){var st=n[V],ot=(rt=st.graphic)?"animate":"attr",et=st.marker||{},at=!!st.marker;if((U&&typeof et.enabled>"u"||et.enabled)&&!st.isNull&&st.visible!==!1){var $=e(et.symbol,this.symbol,"rect"),_=this.markerAttribs(st,st.selected&&"select");this.enabledDataSorting&&(st.startXPos=G.reversed?-(_.width||0):G.width);var X=st.isInside!==!1;!rt&&X&&(0<(_.width||0)||st.hasImage)&&(st.graphic=rt=x.renderer.symbol($,_.x,_.y,_.width,_.height,at?et:L).add(H),this.enabledDataSorting&&x.hasRendered&&(rt.attr({x:st.startXPos}),ot="animate")),rt&&ot==="animate"&&rt[X?"show":"hide"](X).animate(_),rt&&(et=this.pointAttribs(st,u||!st.selected?void 0:"select"),u?N&&rt.css({fill:et.fill}):rt[ot](et)),rt&&rt.addClass(st.getClassName(),!0)}else rt&&(st.graphic=rt.destroy())}},O.prototype.markerAttribs=function(n,x){var u=this.options,N=u.marker,L=n.marker||{},H=L.symbol||N.symbol,G={},U=e(L.radius,N&&N.radius);return x&&(N=N.states[x],x=L.states&&L.states[x],U=e(x&&x.radius,N&&N.radius,U&&U+(N&&N.radiusPlus||0))),n.hasImage=H&&H.indexOf("url")===0,n.hasImage&&(U=0),n=n.pos(),m(U)&&n&&(G.x=n[0]-U,G.y=n[1]-U,u.crisp&&(G.x=Math.floor(G.x))),U&&(G.width=G.height=2*U),G},O.prototype.pointAttribs=function(n,x){var u=this.options.marker,N=n&&n.options,L=N&&N.marker||{},H=N&&N.color,G=n&&n.color,U=n&&n.zone&&n.zone.color,V=this.color;return n=e(L.lineWidth,u.lineWidth),N=1,V=H||U||G||V,H=L.fillColor||u.fillColor||V,G=L.lineColor||u.lineColor||V,x=x||"normal",u=u.states[x]||{},x=L.states&&L.states[x]||{},n=e(x.lineWidth,u.lineWidth,n+e(x.lineWidthPlus,u.lineWidthPlus,0)),H=x.fillColor||u.fillColor||H,G=x.lineColor||u.lineColor||G,N=e(x.opacity,u.opacity,N),{stroke:G,"stroke-width":n,fill:H,opacity:N}},O.prototype.destroy=function(n){var x=this,u=x.chart,N=/AppleWebKit\/533/.test(M.navigator.userAgent),L=x.data||[],H,G,U,V;for(s(x,"destroy",{keepEventsForUpdate:n}),this.removeEvents(n),(x.axisTypes||[]).forEach(function(rt){(V=x[rt])&&V.series&&(h(V.series,x),V.isDirty=V.forceRedraw=!0)}),x.legendItem&&x.chart.legend.destroyItem(x),G=L.length;G--;)(U=L[G])&&U.destroy&&U.destroy();x.clips&&x.clips.forEach(function(rt){return rt.destroy()}),P.clearTimeout(x.animationTimeout),z(x,function(rt,st){rt instanceof I&&!rt.survive&&(H=N&&st==="group"?"hide":"destroy",rt[H]())}),u.hoverSeries===x&&(u.hoverSeries=void 0),h(u.series,x),u.orderSeries(),z(x,function(rt,st){n&&st==="hcEvents"||delete x[st]})},O.prototype.applyZones=function(){var n=this,x=this.chart,u=x.renderer,N=this.zones,L=this.clips||[],H=this.graph,G=this.area,U=Math.max(x.plotWidth,x.plotHeight),V=this[(this.zoneAxis||"y")+"Axis"],rt=x.inverted,st,ot,et,at,$,_,X,Z,q=!1;if(N.length&&(H||G)&&V&&typeof V.min<"u"){var it=V.reversed,nt=V.horiz;H&&!this.showLine&&H.hide(),G&&G.hide();var ht=V.getExtremes();N.forEach(function(dt,gt){st=it?nt?x.plotWidth:0:nt?0:V.toPixels(ht.min)||0,st=k(e(ot,st),0,U),ot=k(Math.round(V.toPixels(e(dt.value,ht.max),!0)||0),0,U),q&&(st=ot=V.toPixels(ht.max)),at=Math.abs(st-ot),$=Math.min(st,ot),_=Math.max(st,ot),V.isXAxis?(et={x:rt?_:$,y:0,width:at,height:U},nt||(et.x=x.plotHeight-et.x)):(et={x:0,y:rt?_:$,width:U,height:at},nt&&(et.y=x.plotWidth-et.y)),rt&&u.isVML&&(et=V.isXAxis?{x:0,y:it?$:_,height:et.width,width:x.chartWidth}:{x:et.y-x.plotLeft-x.spacingBox.x,y:0,width:et.height,height:x.chartHeight}),L[gt]?L[gt].animate(et):L[gt]=u.clipRect(et),X=n["zone-area-"+gt],Z=n["zone-graph-"+gt],H&&Z&&Z.clip(L[gt]),G&&X&&X.clip(L[gt]),q=dt.value>ht.max,n.resetZones&&ot===0&&(ot=void 0)}),this.clips=L}else n.visible&&(H&&H.show(),G&&G.show())},O.prototype.plotGroup=function(n,x,u,N,L){var H=this[n],G=!H;return u={visibility:u,zIndex:N||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(u.opacity=this.opacity),G&&(this[n]=H=this.chart.renderer.g().add(L)),H.addClass("highcharts-"+x+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(o(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(H.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),H.attr(u)[G?"attr":"animate"](this.getPlotBox(x)),H},O.prototype.getPlotBox=function(n){var x=this.xAxis,u=this.yAxis,N=this.chart;return n=N.inverted&&!N.polar&&x&&this.invertible!==!1&&n==="series",N.inverted&&(x=u,u=this.xAxis),{translateX:x?x.left:N.plotLeft,translateY:u?u.top:N.plotTop,rotation:n?90:0,rotationOriginX:n?(x.len-u.len)/2:0,rotationOriginY:n?(x.len+u.len)/2:0,scaleX:n?-1:1,scaleY:1}},O.prototype.removeEvents=function(n){n||l(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(x){x()}),this.eventsToUnbind.length=0)},O.prototype.render=function(){var n=this,x=n.chart,u=n.options,N=g(u.animation),L=n.visible?"inherit":"hidden",H=u.zIndex,G=n.hasRendered,U=x.seriesGroup;x=!n.finishedAnimating&&x.renderer.isSVG?N.duration:0,s(this,"render"),n.plotGroup("group","series",L,H,U),n.markerGroup=n.plotGroup("markerGroup","markers",L,H,U),u.clip!==!1&&n.setClip(),n.animate&&x&&n.animate(!0),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),n.drawDataLabels&&n.drawDataLabels(),n.redrawPoints&&n.redrawPoints(),n.drawTracker&&n.options.enableMouseTracking!==!1&&n.drawTracker(),n.animate&&x&&n.animate(),G||(x&&N.defer&&(x+=N.defer),n.animationTimeout=b(function(){n.afterAnimate()},x||0)),n.isDirty=!1,n.hasRendered=!0,s(n,"afterRender")},O.prototype.redraw=function(){var n=this.isDirty||this.isDirtyData;this.translate(),this.render(),n&&delete this.kdTree},O.prototype.searchPoint=function(n,x){var u=this.xAxis,N=this.yAxis,L=this.chart.inverted;return this.searchKDTree({clientX:L?u.len-n.chartY+u.pos:n.chartX-u.pos,plotY:L?N.len-n.chartX+N.pos:n.chartY-N.pos},x,n)},O.prototype.buildKDTree=function(n){function x(L,H,G){var U=L&&L.length;if(U){var V=u.kdAxisArray[H%G];return L.sort(function(rt,st){return rt[V]-st[V]}),U=Math.floor(U/2),{point:L[U],left:x(L.slice(0,U),H+1,G),right:x(L.slice(U+1),H+1,G)}}}this.buildingKdTree=!0;var u=this,N=-1<u.options.findNearestPointBy.indexOf("y")?2:1;delete u.kdTree,b(function(){u.kdTree=x(u.getValidPoints(null,!u.directTouch),N,N),u.buildingKdTree=!1},u.options.kdNow||n&&n.type==="touchstart"?0:1)},O.prototype.searchKDTree=function(n,x,u){function N(V,rt,st,ot){var et=rt.point,at=L.kdAxisArray[st%ot],$=et,_=o(V[H])&&o(et[H])?Math.pow(V[H]-et[H],2):null,X=o(V[G])&&o(et[G])?Math.pow(V[G]-et[G],2):null;return X=(_||0)+(X||0),et.dist=o(X)?Math.sqrt(X):Number.MAX_VALUE,et.distX=o(_)?Math.sqrt(_):Number.MAX_VALUE,at=V[at]-et[at],X=0>at?"left":"right",_=0>at?"right":"left",rt[X]&&(X=N(V,rt[X],st+1,ot),$=X[U]<$[U]?X:et),rt[_]&&Math.sqrt(at*at)<$[U]&&(V=N(V,rt[_],st+1,ot),$=V[U]<$[U]?V:$),$}var L=this,H=this.kdAxisArray[0],G=this.kdAxisArray[1],U=x?"distX":"dist";if(x=-1<L.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(u),this.kdTree)return N(n,this.kdTree,x,x)},O.prototype.pointPlacementToXValue=function(){var n=this.options,x=n.pointRange,u=this.xAxis;return n=n.pointPlacement,n==="between"&&(n=u.reversed?-.5:.5),m(n)?n*(x||u.pointRange):0},O.prototype.isPointInside=function(n){var x=this.chart,u=this.xAxis,N=this.yAxis;return typeof n.plotY<"u"&&typeof n.plotX<"u"&&0<=n.plotY&&n.plotY<=(N?N.len:x.plotHeight)&&0<=n.plotX&&n.plotX<=(u?u.len:x.plotWidth)},O.prototype.drawTracker=function(){var n=this,x=n.options,u=x.trackByArea,N=[].concat(u?n.areaPath:n.graphPath),L=n.chart,H=L.pointer,G=L.renderer,U=L.options.tooltip.snap,V=n.tracker,rt=function(ot){L.hoverSeries!==n&&n.onMouseOver()},st="rgba(192,192,192,"+(S?1e-4:.002)+")";V?V.attr({d:N}):n.graph&&(n.tracker=G.path(N).attr({visibility:n.visible?"inherit":"hidden",zIndex:2}).addClass(u?"highcharts-tracker-area":"highcharts-tracker-line").add(n.group),L.styledMode||n.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:st,fill:u?st:"none","stroke-width":n.graph.strokeWidth()+(u?0:2*U)}),[n.tracker,n.markerGroup,n.dataLabelsGroup].forEach(function(ot){ot&&(ot.addClass("highcharts-tracker").on("mouseover",rt).on("mouseout",function(et){H.onTrackerMouseOut(et)}),x.cursor&&!L.styledMode&&ot.css({cursor:x.cursor}),v)&&ot.on("touchstart",rt)})),s(this,"afterDrawTracker")},O.prototype.addPoint=function(n,x,u,N,L){var H=this.options,G=this.data,U=this.chart,V=this.xAxis;V=V&&V.hasNames&&V.names;var rt=H.data,st=this.xData,ot;x=e(x,!0);var et={series:this};this.pointClass.prototype.applyOptions.apply(et,[n]);var at=et.x,$=st.length;if(this.requireSorting&&at<st[$-1])for(ot=!0;$&&st[$-1]>at;)$--;this.updateParallelArrays(et,"splice",$,0,0),this.updateParallelArrays(et,$),V&&et.name&&(V[at]=et.name),rt.splice($,0,n),(ot||this.processedData)&&(this.data.splice($,0,null),this.processData()),H.legendType==="point"&&this.generatePoints(),u&&(G[0]&&G[0].remove?G[0].remove(!1):(G.shift(),this.updateParallelArrays(et,"shift"),rt.shift())),L!==!1&&s(this,"addPoint",{point:et}),this.isDirtyData=this.isDirty=!0,x&&U.redraw(N)},O.prototype.removePoint=function(n,x,u){var N=this,L=N.data,H=L[n],G=N.points,U=N.chart,V=function(){G&&G.length===L.length&&G.splice(n,1),L.splice(n,1),N.options.data.splice(n,1),N.updateParallelArrays(H||{series:N},"splice",n,1),H&&H.destroy(),N.isDirty=!0,N.isDirtyData=!0,x&&U.redraw()};f(u,U),x=e(x,!0),H?H.firePointEvent("remove",null,V):V()},O.prototype.remove=function(n,x,u,N){function L(){H.destroy(N),G.isDirtyLegend=G.isDirtyBox=!0,G.linkSeries(),e(n,!0)&&G.redraw(x)}var H=this,G=H.chart;u!==!1?s(H,"remove",null,L):L()},O.prototype.update=function(n,x){n=r(n,this.userOptions),s(this,"update",{options:n});var u=this,N=u.chart,L=u.userOptions,H=u.initialType||u.type,G=N.options.plotOptions,U=w[H].prototype,V=u.finishedAnimating&&{animation:!1},rt={},st=["eventOptions","navigatorSeries","baseSeries"],ot=n.type||L.type||N.options.chart.type,et=!(this.hasDerivedData||ot&&ot!==this.type||typeof n.pointStart<"u"||typeof n.pointInterval<"u"||typeof n.relativeXValue<"u"||n.joinBy||n.mapData||u.hasOptionChanged("dataGrouping")||u.hasOptionChanged("pointStart")||u.hasOptionChanged("pointInterval")||u.hasOptionChanged("pointIntervalUnit")||u.hasOptionChanged("keys"));if(ot=ot||H,et&&(st.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),n.visible!==!1&&st.push("area","graph"),u.parallelArrays.forEach(function($){st.push($+"Data")}),n.data&&(n.dataSorting&&p(u.options.dataSorting,n.dataSorting),this.setData(n.data,!1))),n=F(L,V,{index:typeof L.index>"u"?u.index:L.index,pointStart:e(G&&G.series&&G.series.pointStart,L.pointStart,u.xData[0])},!et&&{data:u.options.data},n),et&&n.data&&(n.data=u.options.data),st=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(st),st.forEach(function($){st[$]=u[$],delete u[$]}),G=!1,w[ot]){if(G=ot!==u.type,u.remove(!1,!1,!1,!0),G)if(Object.setPrototypeOf)Object.setPrototypeOf(u,w[ot].prototype);else{V=Object.hasOwnProperty.call(u,"hcEvents")&&u.hcEvents;for(at in U)u[at]=void 0;p(u,w[ot].prototype),V?u.hcEvents=V:delete u.hcEvents}}else t(17,!0,N,{missingModuleFor:ot});if(st.forEach(function($){u[$]=st[$]}),u.init(N,n),et&&this.points){if(n=u.options,n.visible===!1)rt.graphic=1,rt.dataLabel=1;else if(!u._hasPointLabels){U=n.marker;var at=n.dataLabels;L=L.marker||{},!U||U.enabled!==!1&&L.symbol===U.symbol&&L.height===U.height&&L.width===U.width||(rt.graphic=1),at&&at.enabled===!1&&(rt.dataLabel=1)}for(L=0,U=this.points;L<U.length;L++)(at=U[L])&&at.series&&(at.resolveColor(),Object.keys(rt).length&&at.destroyElements(rt),n.showInLegend===!1&&at.legendItem&&N.legend.destroyItem(at))}u.initialType=H,N.linkSeries(),G&&u.linkedSeries.length&&(u.isDirtyData=!0),s(this,"afterUpdate"),e(x,!0)&&N.redraw(et?void 0:!1)},O.prototype.setName=function(n){this.name=this.options.name=this.userOptions.name=n,this.chart.isDirtyLegend=!0},O.prototype.hasOptionChanged=function(n){var x=this.options[n],u=this.chart.options.plotOptions,N=this.userOptions[n];return N?x!==N:x!==e(u&&u[this.type]&&u[this.type][n],u&&u.series&&u.series[n],x)},O.prototype.onMouseOver=function(){var n=this.chart,x=n.hoverSeries;n.pointer.setHoverChartIndex(),x&&x!==this&&x.onMouseOut(),this.options.events.mouseOver&&s(this,"mouseOver"),this.setState("hover"),n.hoverSeries=this},O.prototype.onMouseOut=function(){var n=this.options,x=this.chart,u=x.tooltip,N=x.hoverPoint;x.hoverSeries=null,N&&N.onMouseOut(),this&&n.events.mouseOut&&s(this,"mouseOut"),!u||this.stickyTracking||u.shared&&!this.noSharedTooltip||u.hide(),x.series.forEach(function(L){L.setState("",!0)})},O.prototype.setState=function(n,x){var u=this,N=u.options,L=u.graph,H=N.inactiveOtherPoints,G=N.states,U=e(G[n||"normal"]&&G[n||"normal"].animation,u.chart.options.chart.animation),V=N.lineWidth,rt=0,st=N.opacity;if(n=n||"",u.state!==n&&([u.group,u.markerGroup,u.dataLabelsGroup].forEach(function(ot){ot&&(u.state&&ot.removeClass("highcharts-series-"+u.state),n&&ot.addClass("highcharts-series-"+n))}),u.state=n,!u.chart.styledMode)){if(G[n]&&G[n].enabled===!1)return;if(n&&(V=G[n].lineWidth||V+(G[n].lineWidthPlus||0),st=e(G[n].opacity,st)),L&&!L.dashstyle&&m(V))for(N={"stroke-width":V},L.animate(N,U);u["zone-graph-"+rt];)u["zone-graph-"+rt].animate(N,U),rt+=1;H||[u.group,u.markerGroup,u.dataLabelsGroup,u.labelBySeries].forEach(function(ot){ot&&ot.animate({opacity:st},U)})}x&&H&&u.points&&u.setAllPointsToState(n||void 0)},O.prototype.setAllPointsToState=function(n){this.points.forEach(function(x){x.setState&&x.setState(n)})},O.prototype.setVisible=function(n,x){var u=this,N=u.chart,L=N.options.chart.ignoreHiddenSeries,H=u.visible,G=(u.visible=n=u.options.visible=u.userOptions.visible=typeof n>"u"?!H:n)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(U){u[U]&&u[U][G]()}),(N.hoverSeries===u||(N.hoverPoint&&N.hoverPoint.series)===u)&&u.onMouseOut(),u.legendItem&&N.legend.colorizeItem(u,n),u.isDirty=!0,u.options.stacking&&N.series.forEach(function(U){U.options.stacking&&U.visible&&(U.isDirty=!0)}),u.linkedSeries.forEach(function(U){U.setVisible(n,!1)}),L&&(N.isDirtyBox=!0),s(u,G),x!==!1&&N.redraw()},O.prototype.show=function(){this.setVisible(!0)},O.prototype.hide=function(){this.setVisible(!1)},O.prototype.select=function(n){this.selected=n=this.options.selected=typeof n>"u"?!this.selected:n,this.checkbox&&(this.checkbox.checked=n),s(this,n?"select":"unselect")},O.prototype.shouldShowTooltip=function(n,x,u){return u===void 0&&(u={}),u.series=this,u.visiblePlotOnly=!0,this.chart.isInsidePlot(n,x,u)},O.defaultOptions=K,O.types=B.seriesTypes,O.registerType=B.registerSeriesType,O}(),p(j.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:J.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:tt,requireSorting:!0,sorted:!0}),B.series=j,j}),lt(E,"Extensions/ScrollablePlotArea.js",[E["Core/Animation/AnimationUtilities.js"],E["Core/Axis/Axis.js"],E["Core/Chart/Chart.js"],E["Core/Series/Series.js"],E["Core/Renderer/RendererRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J,tt){var K=j.stop,B=tt.addEvent,I=tt.createElement,P=tt.defined,g=tt.merge,f=tt.pick;B(Y,"afterSetChartSize",function(y){var C=this.options.chart.scrollablePlotArea,v=C&&C.minWidth;if(C=C&&C.minHeight,!this.renderer.forExport){if(v){if(this.scrollablePixelsX=v=Math.max(0,v-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.width=this.plotWidth+=v,this.inverted?this.clipBox.height+=v:this.clipBox.width+=v;var S={1:{name:"right",value:v}}}}else C&&(this.scrollablePixelsY=v=Math.max(0,C-this.chartHeight),P(v)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.height=this.plotHeight+=v,this.inverted?this.clipBox.width+=v:this.clipBox.height+=v,S={2:{name:"bottom",value:v}}));S&&!y.skipAxes&&this.axes.forEach(function(M){S[M.side]?M.getPlotLinePath=function(){var w=S[M.side].name,D=this[w];this[w]=D-S[M.side].value;var R=W.prototype.getPlotLinePath.apply(this,arguments);return this[w]=D,R}:(M.setAxisSize(),M.setAxisTranslation())})}}),B(Y,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),Y.prototype.setUpScrolling=function(){var y=this,C={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(C.overflowX="auto"),this.scrollablePixelsY&&(C.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},C,this.scrollingParent);var v;B(this.scrollingContainer,"scroll",function(){y.pointer&&(delete y.pointer.chartPosition,y.hoverPoint&&(v=y.hoverPoint),y.pointer.runPointActions(void 0,v,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},Y.prototype.moveFixedElements=function(){var y=this.container,C=this.fixedRenderer,v=".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(" "),S;this.scrollablePixelsX&&!this.inverted?S=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?S=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(S=".highcharts-yaxis"),S&&v.push(""+S+":not(.highcharts-radial-axis)",""+S+"-labels:not(.highcharts-radial-axis-labels)"),v.forEach(function(M){[].forEach.call(y.querySelectorAll(M),function(w){(w.namespaceURI===C.SVG_NS?C.box:C.box.parentNode).appendChild(w),w.style.pointerEvents="auto"})})},Y.prototype.applyFixed=function(){var y=!this.fixedDiv,C=this.options.chart,v=C.scrollablePlotArea,S=J.getRendererType();y?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(C.style&&C.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=C=new S(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=C.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":f(v.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),B(this,"afterShowResetZoom",this.moveFixedElements),B(this,"afterApplyDrilldown",this.moveFixedElements),B(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||y)&&(this.scrollableDirty=!1,this.moveFixedElements()),C=this.chartWidth+(this.scrollablePixelsX||0),S=this.chartHeight+(this.scrollablePixelsY||0),K(this.container),this.container.style.width=C+"px",this.container.style.height=S+"px",this.renderer.boxWrapper.attr({width:C,height:S,viewBox:[0,0,C,S].join(" ")}),this.chartBackground.attr({width:C,height:S}),this.scrollingContainer.style.height=this.chartHeight+"px",y&&(v.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*v.scrollPositionX),v.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*v.scrollPositionY)),S=this.axisOffset,y=this.plotTop-S[0]-1,v=this.plotLeft-S[3]-1,C=this.plotTop+this.plotHeight+S[2]+1,S=this.plotLeft+this.plotWidth+S[1]+1;var M=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),w=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);y=this.scrollablePixelsX?[["M",0,y],["L",this.plotLeft-1,y],["L",this.plotLeft-1,C],["L",0,C],["Z"],["M",M,y],["L",this.chartWidth,y],["L",this.chartWidth,C],["L",M,C],["Z"]]:this.scrollablePixelsY?[["M",v,0],["L",v,this.plotTop-1],["L",S,this.plotTop-1],["L",S,0],["Z"],["M",v,w],["L",v,this.chartHeight],["L",S,this.chartHeight],["L",S,w],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:y})},B(W,"afterInit",function(){this.chart.scrollableDirty=!0}),B(Q,"show",function(){this.chart.scrollableDirty=!0})}),lt(E,"Core/Axis/Stacking/StackItem.js",[E["Core/FormatUtilities.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=j.format,J=W.series,tt=Y.destroyObjectProperties,K=Y.pick,B=Y.isNumber;return j=function(){function I(P,g,f,y,C){var v=P.chart.inverted,S=P.reversed;this.axis=P,P=this.isNegative=!!f!=!!S,this.options=g=g||{},this.x=y,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=C,this.rightCliff=this.leftCliff=0,this.alignOptions={align:g.align||(v?P?"left":"right":"center"),verticalAlign:g.verticalAlign||(v?"middle":P?"bottom":"top"),y:g.y,x:g.x},this.textAlign=g.textAlign||(v?P?"right":"left":"center")}return I.prototype.destroy=function(){tt(this,this.axis)},I.prototype.render=function(P){var g=this.axis.chart,f=this.options,y=f.format;y=y?Q(y,this,g):f.formatter.call(this),this.label?this.label.attr({text:y,visibility:"hidden"}):(this.label=g.renderer.label(y,null,void 0,f.shape,void 0,void 0,f.useHTML,!1,"stack-labels"),y={r:f.borderRadius||0,text:y,padding:K(f.padding,5),visibility:"hidden"},g.styledMode||(y.fill=f.backgroundColor,y.stroke=f.borderColor,y["stroke-width"]=f.borderWidth,this.label.css(f.style||{})),this.label.attr(y),this.label.added||this.label.add(P)),this.label.labelrank=g.plotSizeY},I.prototype.setOffset=function(P,g,f,y,C,v){var S=this.alignOptions,M=this.axis,w=this.label,D=this.options,R=this.textAlign,k=M.chart;P=this.getStackBox({xOffset:P,width:g,boxBottom:f,boxTop:y,defaultX:C,xAxis:v}),C=S.verticalAlign,w&&P&&(g=w.getBBox(),f=w.padding,y=K(D.overflow,"justify")==="justify",S.x=D.x||0,S.y=D.y||0,C=this.adjustStackPosition({labelBox:g,verticalAlign:C,textAlign:R}),R=C.x,C=C.y,P.x-=R,P.y-=C,w.align(S,!1,P),(R=k.isInsidePlot(w.alignAttr.x+S.x+R,w.alignAttr.y+S.y+C))||(y=!1),y&&J.prototype.justifyDataLabel.call(M,w,S,w.alignAttr,g,P),w.attr({x:w.alignAttr.x,y:w.alignAttr.y,rotation:D.rotation,rotationOriginX:g.width/2,rotationOriginY:g.height/2}),K(!y&&D.crop,!0)&&(R=B(w.x)&&B(w.y)&&k.isInsidePlot(w.x-f+w.width,w.y)&&k.isInsidePlot(w.x+f,w.y)),w[R?"show":"hide"]())},I.prototype.adjustStackPosition=function(P){var g=P.labelBox,f={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:g.width/2+g.width/2*f[P.textAlign],y:g.height/2*f[P.verticalAlign]}},I.prototype.getStackBox=function(P){var g=this.axis,f=g.chart,y=P.boxTop,C=P.defaultX,v=P.xOffset,S=P.width,M=P.boxBottom;return y=g.stacking.usePercentage?100:K(y,this.total,0),y=g.toPixels(y),P=K(C,(P.xAxis||f.xAxis[0]).toPixels(this.x))+v,g=g.toPixels(M||0),g=Math.abs(y-g),M=this.isNegative,f.inverted?{x:(M?y:y-g)-f.plotLeft,y:P-f.plotTop,width:g,height:S}:{x:P-f.plotLeft,y:(M?y-g:y)-f.plotTop,width:S,height:g}},I}(),j}),lt(E,"Core/Axis/Stacking/StackingAxis.js",[E["Core/Animation/AnimationUtilities.js"],E["Core/Axis/Axis.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Axis/Stacking/StackItem.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J){function tt(){var p=this,i=p.inverted;p.yAxis.forEach(function(s){s.stacking&&s.stacking.stacks&&s.hasVisibleSeries&&(s.stacking.oldStacks=s.stacking.stacks)}),p.series.forEach(function(s){var c=s.xAxis&&s.xAxis.options||{};!s.options.stacking||s.visible!==!0&&p.options.chart.ignoreHiddenSeries!==!1||(s.stackKey=[s.type,o(s.options.stack,""),i?c.top:c.left,i?c.height:c.width].join())})}function K(){var p=this.stacking;if(p){var i=p.stacks;d(i,function(s,c){D(s),i[c]=null}),p&&p.stackTotalGroup&&p.stackTotalGroup.destroy()}}function B(){this.coll!=="yAxis"||this.stacking||(this.stacking=new h(this))}function I(p,i,s,c){return!w(p)||p.x!==i||c&&p.stackKey!==c?p={x:i,index:0,key:c,stackKey:c}:p.index++,p.key=[s,i,p.index].join(),p}function P(){var p=this,i=p.stackKey,s=p.yAxis.stacking.stacks,c=p.processedXData,a=p[p.options.stacking+"Stacker"],m;a&&[i,"-"+i].forEach(function(A){for(var F=c.length,z,e;F--;)z=c[F],m=p.getStackIndicator(m,z,p.index,A),(e=(z=s[A]&&s[A][z])&&z.points[m.key])&&a.call(p,e,z,F)})}function g(p,i,s){i=i.total?100/i.total:0,p[0]=M(p[0]*i),p[1]=M(p[1]*i),this.stackedYData[s]=p[1]}function f(){var p=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?v.setStackedPoints.call(this,"group"):p&&d(p.stacks,function(i,s){s.slice(-5)==="group"&&(d(i,function(c){return c.destroy()}),delete p.stacks[s])})}function y(p){var i=this.chart,s=p||this.options.stacking;if(s&&(this.visible===!0||i.options.chart.ignoreHiddenSeries===!1)){var c=this.processedXData,a=this.processedYData,m=[],A=a.length,F=this.options,z=F.threshold,e=o(F.startFromThreshold&&z,0);F=F.stack,p=p?""+this.type+",".concat(s):this.stackKey;var l="-"+p,T=this.negStacks;i=s==="group"?i.yAxis[0]:this.yAxis;var b=i.stacking.stacks,O=i.stacking.oldStacks,n,x;for(i.stacking.stacksTouched+=1,x=0;x<A;x++){var u=c[x],N=a[x],L=this.getStackIndicator(L,u,this.index),H=L.key,G=(n=T&&N<(e?0:z))?l:p;b[G]||(b[G]={}),b[G][u]||(O[G]&&O[G][u]?(b[G][u]=O[G][u],b[G][u].total=null):b[G][u]=new Q(i,i.options.stackLabels,!!n,u,F)),G=b[G][u],N!==null?(G.points[H]=G.points[this.index]=[o(G.cumulative,e)],w(G.cumulative)||(G.base=H),G.touched=i.stacking.stacksTouched,0<L.index&&this.singleStacks===!1&&(G.points[H][0]=G.points[this.index+","+u+",0"][0])):G.points[H]=G.points[this.index]=null,s==="percent"?(n=n?p:l,T&&b[n]&&b[n][u]?(n=b[n][u],G.total=n.total=Math.max(n.total,G.total)+Math.abs(N)||0):G.total=M(G.total+(Math.abs(N)||0))):s==="group"?(k(N)&&(N=N[0]),N!==null&&(G.total=(G.total||0)+1)):G.total=M(G.total+(N||0)),G.cumulative=s==="group"?(G.total||1)-1:o(G.cumulative,e)+(N||0),N!==null&&(G.points[H].push(G.cumulative),m[x]=G.cumulative,G.hasValidPoints=!0)}s==="percent"&&(i.stacking.usePercentage=!0),s!=="group"&&(this.stackedYData=m),i.stacking.oldStacks={}}}var C=j.getDeferredAnimation,v=Y.series.prototype,S=J.addEvent,M=J.correctFloat,w=J.defined,D=J.destroyObjectProperties,R=J.fireEvent,k=J.isArray,r=J.isNumber,d=J.objectEach,o=J.pick,h=function(){function p(i){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=i}return p.prototype.buildStacks=function(){var i=this.axis,s=i.series,c=i.options.reversedStacks,a=s.length,m;for(this.usePercentage=!1,m=a;m--;){var A=s[c?m:a-m-1];A.setStackedPoints(),A.setGroupedPoints()}for(m=0;m<a;m++)s[m].modifyStacks();R(i,"afterBuildStacks")},p.prototype.cleanStacks=function(){if(this.oldStacks)var i=this.stacks=this.oldStacks;d(i,function(s){d(s,function(c){c.cumulative=c.total})})},p.prototype.resetStacks=function(){var i=this;d(this.stacks,function(s){d(s,function(c,a){r(c.touched)&&c.touched<i.stacksTouched?(c.destroy(),delete s[a]):(c.total=null,c.cumulative=null)})})},p.prototype.renderStackTotals=function(){var i=this.axis,s=i.chart,c=s.renderer,a=this.stacks;i=C(s,i.options.stackLabels&&i.options.stackLabels.animation||!1);var m=this.stackTotalGroup=this.stackTotalGroup||c.g("stack-labels").attr({zIndex:6,opacity:0}).add();m.translate(s.plotLeft,s.plotTop),d(a,function(A){d(A,function(F){F.render(m)})}),m.animate({opacity:1},i)},p}(),t;return function(p){var i=[];p.compose=function(s,c,a){i.indexOf(s)===-1&&(i.push(s),S(s,"init",B),S(s,"destroy",K)),i.indexOf(c)===-1&&(i.push(c),c.prototype.getStacks=tt),i.indexOf(a)===-1&&(i.push(a),s=a.prototype,s.getStackIndicator=I,s.modifyStacks=P,s.percentStacker=g,s.setGroupedPoints=f,s.setStackedPoints=y)}}(t||(t={})),t}),lt(E,"Series/Line/LineSeries.js",[E["Core/Series/Series.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=this&&this.__extends||function(){var K=function(B,I){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,g){P.__proto__=g}||function(P,g){for(var f in g)g.hasOwnProperty(f)&&(P[f]=g[f])},K(B,I)};return function(B,I){function P(){this.constructor=B}K(B,I),B.prototype=I===null?Object.create(I):(P.prototype=I.prototype,new P)}}(),J=Y.defined,tt=Y.merge;return Y=function(K){function B(){var I=K!==null&&K.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return Q(B,K),B.prototype.drawGraph=function(){var I=this,P=this.options,g=(this.gappedPath||this.getGraphPath).call(this),f=this.chart.styledMode,y=[["graph","highcharts-graph"]];f||y[0].push(P.lineColor||this.color||"#cccccc",P.dashStyle),y=I.getZonesGraphs(y),y.forEach(function(C,v){var S=C[0],M=I[S],w=M?"animate":"attr";M?(M.endX=I.preventGraphAnimation?null:g.xMap,M.animate({d:g})):g.length&&(I[S]=M=I.chart.renderer.path(g).addClass(C[1]).attr({zIndex:1}).add(I.group)),M&&!f&&(S={stroke:C[2],"stroke-width":P.lineWidth||0,fill:I.fillGraph&&I.color||"none"},C[3]?S.dashstyle=C[3]:P.linecap!=="square"&&(S["stroke-linecap"]=S["stroke-linejoin"]="round"),M[w](S).shadow(2>v&&P.shadow)),M&&(M.startX=g.xMap,M.isArea=g.isArea)})},B.prototype.getGraphPath=function(I,P,g){var f=this,y=f.options,C=[],v=[],S,M=y.step;I=I||f.points;var w=I.reversed;return w&&I.reverse(),(M={right:1,center:2}[M]||M&&3)&&w&&(M=4-M),I=this.getValidPoints(I,!1,!(y.connectNulls&&!P&&!g)),I.forEach(function(D,R){var k=D.plotX,r=D.plotY,d=I[R-1];(D.leftCliff||d&&d.rightCliff)&&!g&&(S=!0),D.isNull&&!J(P)&&0<R?S=!y.connectNulls:D.isNull&&!P?S=!0:(R===0||S?R=[["M",D.plotX,D.plotY]]:f.getPointSpline?R=[f.getPointSpline(I,D,R)]:M?(R=M===1?[["L",d.plotX,r]]:M===2?[["L",(d.plotX+k)/2,d.plotY],["L",(d.plotX+k)/2,r]]:[["L",k,d.plotY]],R.push(["L",k,r])):R=[["L",k,r]],v.push(D.x),M&&(v.push(D.x),M===2&&v.push(D.x)),C.push.apply(C,R),S=!1)}),C.xMap=v,f.graphPath=C},B.prototype.getZonesGraphs=function(I){return this.zones.forEach(function(P,g){g=["zone-graph-"+g,"highcharts-graph highcharts-zone-graph-"+g+" "+(P.className||"")],this.chart.styledMode||g.push(P.color||this.color,P.dashStyle||this.options.dashStyle),I.push(g)},this),I},B.defaultOptions=tt(j.defaultOptions,{}),B}(j),W.registerSeriesType("line",Y),Y}),lt(E,"Series/Area/AreaSeries.js",[E["Core/Color/Color.js"],E["Core/Legend/LegendSymbol.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y,Q){var J=this&&this.__extends||function(){var g=function(f,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,v){C.__proto__=v}||function(C,v){for(var S in v)v.hasOwnProperty(S)&&(C[S]=v[S])},g(f,y)};return function(f,y){function C(){this.constructor=f}g(f,y),f.prototype=y===null?Object.create(y):(C.prototype=y.prototype,new C)}}(),tt=j.parse,K=Y.seriesTypes.line;j=Q.extend;var B=Q.merge,I=Q.objectEach,P=Q.pick;return Q=function(g){function f(){var y=g!==null&&g.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return J(f,g),f.prototype.drawGraph=function(){this.areaPath=[],g.prototype.drawGraph.apply(this);var y=this,C=this.areaPath,v=this.options,S=[["area","highcharts-area",this.color,v.fillColor]];this.zones.forEach(function(M,w){S.push(["zone-area-"+w,"highcharts-area highcharts-zone-area-"+w+" "+M.className,M.color||y.color,M.fillColor||v.fillColor])}),S.forEach(function(M){var w=M[0],D={},R=y[w],k=R?"animate":"attr";R?(R.endX=y.preventGraphAnimation?null:C.xMap,R.animate({d:C})):(D.zIndex=0,R=y[w]=y.chart.renderer.path(C).addClass(M[1]).add(y.group),R.isArea=!0),y.chart.styledMode||(D.fill=P(M[3],tt(M[2]).setOpacity(P(v.fillOpacity,.75)).get())),R[k](D),R.startX=C.xMap,R.shiftUnit=v.step?2:1})},f.prototype.getGraphPath=function(y){var C=K.prototype.getGraphPath,v=this.options,S=v.stacking,M=this.yAxis,w=[],D=[],R=this.index,k=M.stacking.stacks[this.stackKey],r=v.threshold,d=Math.round(M.getThreshold(v.threshold));v=P(v.connectNulls,S==="percent");var o=function(c,a,m){var A=y[c];c=S&&k[A.x].points[R];var F=A[m+"Null"]||0;if(m=A[m+"Cliff"]||0,A=!0,m||F){var z=(F?c[0]:c[1])+m,e=c[0]+m;A=!!F}else!S&&y[a]&&y[a].isNull&&(z=e=r);typeof z<"u"&&(D.push({plotX:i,plotY:z===null?d:M.getThreshold(z),isNull:A,isCliff:!0}),w.push({plotX:i,plotY:e===null?d:M.getThreshold(e),doCurve:!1}))};y=y||this.points,S&&(y=this.getStackPoints(y));for(var h=0,t=y.length;h<t;++h){S||(y[h].leftCliff=y[h].rightCliff=y[h].leftNull=y[h].rightNull=void 0);var p=y[h].isNull,i=P(y[h].rectPlotX,y[h].plotX),s=S?P(y[h].yBottom,d):d;(!p||v)&&(v||o(h,h-1,"left"),p&&!S&&v||(D.push(y[h]),w.push({x:h,plotX:i,plotY:s})),v||o(h,h+1,"right"))}return o=C.call(this,D,!0,!0),w.reversed=!0,p=C.call(this,w,!0,!0),(s=p[0])&&s[0]==="M"&&(p[0]=["L",s[1],s[2]]),p=o.concat(p),p.length&&p.push(["Z"]),C=C.call(this,D,!1,v),p.xMap=o.xMap,this.areaPath=p,C},f.prototype.getStackPoints=function(y){var C=this,v=[],S=[],M=this.xAxis,w=this.yAxis,D=w.stacking.stacks[this.stackKey],R={},k=w.series,r=k.length,d=w.options.reversedStacks?1:-1,o=k.indexOf(C);if(y=y||this.points,this.options.stacking){for(var h=0;h<y.length;h++)y[h].leftNull=y[h].rightNull=void 0,R[y[h].x]=y[h];I(D,function(p,i){p.total!==null&&S.push(i)}),S.sort(function(p,i){return p-i});var t=k.map(function(p){return p.visible});S.forEach(function(p,i){var s=0,c,a;if(R[p]&&!R[p].isNull)v.push(R[p]),[-1,1].forEach(function(A){var F=A===1?"rightNull":"leftNull",z=D[S[i+A]],e=0;if(z)for(var l=o;0<=l&&l<r;){var T=k[l].index;c=z.points[T],c||(T===C.index?R[p][F]=!0:t[l]&&(a=D[p].points[T])&&(e-=a[1]-a[0])),l+=d}R[p][A===1?"rightCliff":"leftCliff"]=e});else{for(var m=o;0<=m&&m<r;){if(c=D[p].points[k[m].index]){s=c[1];break}m+=d}s=P(s,0),s=w.translate(s,0,1,0,1),v.push({isNull:!0,plotX:M.translate(p,0,0,0,1),x:p,plotY:s,yBottom:s})}})}return v},f.defaultOptions=B(K.defaultOptions,{threshold:0}),f}(K),j(Q.prototype,{singleStacks:!1,drawLegendSymbol:W.drawRectangle}),Y.registerSeriesType("area",Q),Q}),lt(E,"Series/Spline/SplineSeries.js",[E["Core/Series/SeriesRegistry.js"],E["Core/Utilities.js"]],function(j,W){var Y=this&&this.__extends||function(){var K=function(B,I){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,g){P.__proto__=g}||function(P,g){for(var f in g)g.hasOwnProperty(f)&&(P[f]=g[f])},K(B,I)};return function(B,I){function P(){this.constructor=B}K(B,I),B.prototype=I===null?Object.create(I):(P.prototype=I.prototype,new P)}}(),Q=j.seriesTypes.line,J=W.merge,tt=W.pick;return W=function(K){function B(){var I=K!==null&&K.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return Y(B,K),B.prototype.getPointSpline=function(I,P,g){var f=P.plotX||0,y=P.plotY||0,C=I[g-1];if(g=I[g+1],C&&!C.isNull&&C.doCurve!==!1&&!P.isCliff&&g&&!g.isNull&&g.doCurve!==!1&&!P.isCliff){I=C.plotY||0;var v=g.plotX||0;g=g.plotY||0;var S=0,M=(1.5*f+(C.plotX||0))/2.5,w=(1.5*y+I)/2.5;v=(1.5*f+v)/2.5;var D=(1.5*y+g)/2.5;v!==M&&(S=(D-w)*(v-f)/(v-M)+y-D),w+=S,D+=S,w>I&&w>y?(w=Math.max(I,y),D=2*y-w):w<I&&w<y&&(w=Math.min(I,y),D=2*y-w),D>g&&D>y?(D=Math.max(g,y),w=2*y-D):D<g&&D<y&&(D=Math.min(g,y),w=2*y-D),P.rightContX=v,P.rightContY=D}return P=["C",tt(C.rightContX,C.plotX,0),tt(C.rightContY,C.plotY,0),tt(M,f,0),tt(w,y,0),f,y],C.rightContX=C.rightContY=void 0,P},B.defaultOptions=J(Q.defaultOptions),B}(Q),j.registerSeriesType("spline",W),W}),lt(E,"Series/AreaSpline/AreaSplineSeries.js",[E["Series/Spline/SplineSeries.js"],E["Core/Legend/LegendSymbol.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y,Q){var J=this&&this.__extends||function(){var P=function(g,f){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])},P(g,f)};return function(g,f){function y(){this.constructor=g}P(g,f),g.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),tt=Y.seriesTypes,K=tt.area;tt=tt.area.prototype;var B=Q.extend,I=Q.merge;return Q=function(P){function g(){var f=P!==null&&P.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return J(g,P),g.defaultOptions=I(j.defaultOptions,K.defaultOptions),g}(j),B(Q.prototype,{getGraphPath:tt.getGraphPath,getStackPoints:tt.getStackPoints,drawGraph:tt.drawGraph,drawLegendSymbol:W.drawRectangle}),Y.registerSeriesType("areaspline",Q),Q}),lt(E,"Series/Column/ColumnSeriesDefaults.js",[],function(){"";return{borderRadius:0,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"}}),lt(E,"Series/Column/ColumnSeries.js",[E["Core/Animation/AnimationUtilities.js"],E["Core/Color/Color.js"],E["Series/Column/ColumnSeriesDefaults.js"],E["Core/Globals.js"],E["Core/Legend/LegendSymbol.js"],E["Core/Series/Series.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J,tt,K,B){var I=this&&this.__extends||function(){var r=function(d,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,t){h.__proto__=t}||function(h,t){for(var p in t)t.hasOwnProperty(p)&&(h[p]=t[p])},r(d,o)};return function(d,o){function h(){this.constructor=d}r(d,o),d.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),P=j.animObject,g=W.parse,f=Q.hasTouch;j=Q.noop;var y=B.clamp,C=B.defined,v=B.extend,S=B.fireEvent,M=B.isArray,w=B.isNumber,D=B.merge,R=B.pick,k=B.objectEach;return B=function(r){function d(){var o=r!==null&&r.apply(this,arguments)||this;return o.borderWidth=void 0,o.data=void 0,o.group=void 0,o.options=void 0,o.points=void 0,o}return I(d,r),d.prototype.animate=function(o){var h=this,t=this.yAxis,p=h.options,i=this.chart.inverted,s={},c=i?"translateX":"translateY";if(o)s.scaleY=.001,o=y(t.toPixels(p.threshold),t.pos,t.pos+t.len),i?s.translateX=o-t.len:s.translateY=o,h.clipBox&&h.setClip(),h.group.attr(s);else{var a=Number(h.group.attr(c));h.group.animate({scaleY:1},v(P(h.options.animation),{step:function(m,A){h.group&&(s[c]=a+A.pos*(t.pos-a),h.group.attr(s))}}))}},d.prototype.init=function(o,h){r.prototype.init.apply(this,arguments);var t=this;o=t.chart,o.hasRendered&&o.series.forEach(function(p){p.type===t.type&&(p.isDirty=!0)})},d.prototype.getColumnMetrics=function(){var o=this,h=o.options,t=o.xAxis,p=o.yAxis,i=t.options.reversedStacks;i=t.reversed&&!i||!t.reversed&&i;var s={},c,a=0;h.grouping===!1?a=1:o.chart.series.forEach(function(z){var e=z.yAxis,l=z.options;if(z.type===o.type&&(z.visible||!o.chart.options.chart.ignoreHiddenSeries)&&p.len===e.len&&p.pos===e.pos){if(l.stacking&&l.stacking!=="group"){c=z.stackKey,typeof s[c]>"u"&&(s[c]=a++);var T=s[c]}else l.grouping!==!1&&(T=a++);z.columnIndex=T}});var m=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||h.pointRange||t.closestPointRange||t.tickInterval||1),t.len),A=m*h.groupPadding,F=(m-2*A)/(a||1);return h=Math.min(h.maxPointWidth||t.len,R(h.pointWidth,F*(1-2*h.pointPadding))),o.columnMetrics={width:h,offset:(F-h)/2+(A+((o.columnIndex||0)+(i?1:0))*F-m/2)*(i?-1:1),paddedWidth:F,columnCount:a},o.columnMetrics},d.prototype.crispCol=function(o,h,t,p){var i=this.chart,s=this.borderWidth,c=-(s%2?.5:0);return s=s%2?.5:1,i.inverted&&i.renderer.isVML&&(s+=1),this.options.crisp&&(t=Math.round(o+t)+c,o=Math.round(o)+c,t-=o),p=Math.round(h+p)+s,c=.5>=Math.abs(h)&&.5<p,h=Math.round(h)+s,p-=h,c&&p&&(--h,p+=1),{x:o,y:h,width:t,height:p}},d.prototype.adjustForMissingColumns=function(o,h,t,p){var i=this,s=this.options.stacking;if(!t.isNull&&1<p.columnCount){var c=this.yAxis.options.reversedStacks,a=0,m=c?0:-p.columnCount;k(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(A){if(typeof t.x=="number"){var F=A[t.x.toString()];F&&(A=F.points[i.index],s?(A&&(a=m),F.hasValidPoints&&(c?m++:m--)):M(A)&&(A=Object.keys(F.points).filter(function(z){return!z.match(",")&&F.points[z]&&1<F.points[z].length}).map(parseFloat).sort(function(z,e){return e-z}),a=A.indexOf(i.index),m=A.length))}}),o=(t.plotX||0)+((m-1)*p.paddedWidth+h)/2-h-a*p.paddedWidth}return o},d.prototype.translate=function(){var o=this,h=o.chart,t=o.options,p=o.dense=2>o.closestPointRange*o.xAxis.transA;p=o.borderWidth=R(t.borderWidth,p?0:1);var i=o.xAxis,s=o.yAxis,c=t.threshold,a=o.translatedThreshold=s.getThreshold(c),m=R(t.minPointLength,5),A=o.getColumnMetrics(),F=A.width,z=o.pointXOffset=A.offset,e=o.dataMin,l=o.dataMax,T=o.barW=Math.max(F,1+2*p);h.inverted&&(a-=.5),t.pointPadding&&(T=Math.ceil(T)),tt.prototype.translate.apply(o),o.points.forEach(function(b){var O=R(b.yBottom,a),n=999+Math.abs(O),x=b.plotX||0;n=y(b.plotY,-n,s.len+n);var u=Math.min(n,O),N=Math.max(n,O)-u,L=F,H=x+z,G=T;m&&Math.abs(N)<m&&(N=m,x=!s.reversed&&!b.negative||s.reversed&&b.negative,w(c)&&w(l)&&b.y===c&&l<=c&&(s.min||0)<c&&(e!==l||(s.max||0)<=c)&&(x=!x),u=Math.abs(u-a)>m?O-m:a-(x?m:0)),C(b.options.pointWidth)&&(L=G=Math.ceil(b.options.pointWidth),H-=Math.round((L-F)/2)),t.centerInCategory&&(H=o.adjustForMissingColumns(H,L,b,A)),b.barX=H,b.pointWidth=L,b.tooltipPos=h.inverted?[y(s.len+s.pos-h.plotLeft-n,s.pos-h.plotLeft,s.len+s.pos-h.plotLeft),i.len+i.pos-h.plotTop-H-G/2,N]:[i.left-h.plotLeft+H+G/2,y(n+s.pos-h.plotTop,s.pos-h.plotTop,s.len+s.pos-h.plotTop),N],b.shapeType=o.pointClass.prototype.shapeType||"rect",b.shapeArgs=o.crispCol.apply(o,b.isNull?[H,a,G,0]:[H,u,G,N])})},d.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},d.prototype.pointAttribs=function(o,h){var t=this.options,p=this.pointAttrToOptions||{},i=p.stroke||"borderColor",s=p["stroke-width"]||"borderWidth",c=o&&o.color||this.color,a=o&&o[i]||t[i]||c;p=o&&o.options.dashStyle||t.dashStyle;var m=o&&o[s]||t[s]||this[s]||0,A=R(o&&o.opacity,t.opacity,1);if(o&&this.zones.length){var F=o.getZone();c=o.options.color||F&&(F.color||o.nonZonedColor)||this.color,F&&(a=F.borderColor||a,p=F.dashStyle||p,m=F.borderWidth||m)}return h&&o&&(o=D(t.states[h],o.options.states&&o.options.states[h]||{}),h=o.brightness,c=o.color||typeof h<"u"&&g(c).brighten(o.brightness).get()||c,a=o[i]||a,m=o[s]||m,p=o.dashStyle||p,A=R(o.opacity,A)),i={fill:c,stroke:a,"stroke-width":m,opacity:A},p&&(i.dashstyle=p),i},d.prototype.drawPoints=function(o){o===void 0&&(o=this.points);var h=this,t=this.chart,p=h.options,i=t.renderer,s=p.animationLimit||250,c;o.forEach(function(a){var m=a.graphic,A=!!m,F=m&&t.pointCount<s?"animate":"attr";w(a.plotY)&&a.y!==null?(c=a.shapeArgs,m&&a.hasNewShapeType()&&(m=m.destroy()),h.enabledDataSorting&&(a.startXPos=h.xAxis.reversed?-(c&&c.width||0):h.xAxis.width),m||(a.graphic=m=i[a.shapeType](c).add(a.group||h.group))&&h.enabledDataSorting&&t.hasRendered&&t.pointCount<s&&(m.attr({x:a.startXPos}),A=!0,F="animate"),m&&A&&m[F](D(c)),p.borderRadius&&m[F]({r:p.borderRadius}),t.styledMode||m[F](h.pointAttribs(a,a.selected&&"select")).shadow(a.allowShadow!==!1&&p.shadow,null,p.stacking&&!p.borderRadius),m&&(m.addClass(a.getClassName(),!0),m.attr({visibility:a.visible?"inherit":"hidden"}))):m&&(a.graphic=m.destroy())})},d.prototype.drawTracker=function(o){o===void 0&&(o=this.points);var h=this,t=h.chart,p=t.pointer,i=function(c){var a=p.getPointFromEvent(c);typeof a<"u"&&(p.isDirectTouch=!0,a.onMouseOver(c))},s;o.forEach(function(c){s=M(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[],c.graphic&&(c.graphic.element.point=c),s.forEach(function(a){a.div?a.div.point=c:a.element.point=c})}),h._hasTracking||(h.trackerGroups.forEach(function(c){h[c]&&(h[c].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",function(a){p.onTrackerMouseOut(a)}),f&&h[c].on("touchstart",i),!t.styledMode&&h.options.cursor&&h[c].css({cursor:h.options.cursor}))}),h._hasTracking=!0),S(this,"afterDrawTracker")},d.prototype.remove=function(){var o=this,h=o.chart;h.hasRendered&&h.series.forEach(function(t){t.type===o.type&&(t.isDirty=!0)}),tt.prototype.remove.apply(o,arguments)},d.defaultOptions=D(tt.defaultOptions,Y),d}(tt),v(B.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:J.drawRectangle,getSymbol:j,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),K.registerSeriesType("column",B),B}),lt(E,"Core/Series/DataLabel.js",[E["Core/Animation/AnimationUtilities.js"],E["Core/FormatUtilities.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=j.getDeferredAnimation,J=W.format,tt=Y.defined,K=Y.extend,B=Y.fireEvent,I=Y.isArray,P=Y.isString,g=Y.merge,f=Y.objectEach,y=Y.pick,C=Y.splat,v;return function(S){function M(o,h,t,p,i){var s=this,c=this.chart,a=this.isCartesian&&c.inverted,m=this.enabledDataSorting,A=o.plotX,F=o.plotY,z=t.rotation,e=t.align,l=tt(A)&&tt(F)&&c.isInsidePlot(A,Math.round(F),{inverted:a,paneCoordinates:!0,series:s});F=function(n){m&&s.xAxis&&!T&&s.setDataLabelStartPos(o,h,i,l,n)};var T=y(t.overflow,m?"none":"justify")==="justify";if(A=this.visible&&o.visible!==!1&&tt(A)&&(o.series.forceDL||m&&!T||l||y(t.inside,!!this.options.stacking)&&p&&c.isInsidePlot(A,a?p.x+1:p.y+p.height-1,{inverted:a,paneCoordinates:!0,series:s})),a=o.pos(),A&&a){z&&h.attr({align:e}),e=h.getBBox(!0);var b=[0,0],O=c.renderer.fontMetrics(c.styledMode?void 0:t.style.fontSize,h).b;p=K({x:a[0],y:Math.round(a[1]),width:0,height:0},p),K(t,{width:e.width,height:e.height}),z?(T=!1,b=c.renderer.rotCorr(O,z),O={x:p.x+(t.x||0)+p.width/2+b.x,y:p.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*p.height},b=[e.x-Number(h.attr("x")),e.y-Number(h.attr("y"))],F(O),h[i?"attr":"animate"](O)):(F(p),h.align(t,void 0,p),O=h.alignAttr),T&&0<=p.height?this.justifyDataLabel(h,t,O,e,p,i):y(t.crop,!0)&&(p=O.x,F=O.y,p+=b[0],F+=b[1],A=c.isInsidePlot(p,F,{paneCoordinates:!0,series:s})&&c.isInsidePlot(p+e.width,F+e.height,{paneCoordinates:!0,series:s})),t.shape&&!z&&h[i?"attr":"animate"]({anchorX:a[0],anchorY:a[1]})}i&&m&&(h.placed=!1),A||m&&!T?h.show():(h.hide(),h.placed=!1)}function w(o,h){var t=h.filter;return t?(h=t.operator,o=o[t.property],t=t.value,h===">"&&o>t||h==="<"&&o<t||h===">="&&o>=t||h==="<="&&o<=t||h==="=="&&o==t||h==="==="&&o===t):!0}function D(o){o===void 0&&(o=this.points);var h=this,t=h.chart,p=h.options,i=h.hasRendered||0,s=t.renderer,c=t.options.chart,a=c.backgroundColor;c=c.plotBackgroundColor;var m=s.getContrast(P(c)&&c||P(a)&&a||"#000000"),A=p.dataLabels,F;if(a=A.animation,a=A.defer?Q(t,a,h):{defer:0,duration:0},A=k(k(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[h.type]&&t.options.plotOptions[h.type].dataLabels),A),B(this,"drawDataLabels"),I(A)||A.enabled||h._hasPointLabels){var z=h.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",A.zIndex||6);z.attr({opacity:+i}),!i&&(i=h.dataLabelsGroup)&&(h.visible&&z.show(),i[p.animation?"animate":"attr"]({opacity:1},a)),o.forEach(function(e){F=C(k(A,e.dlOptions||e.options&&e.options.dataLabels)),F.forEach(function(l,T){var b=l.enabled&&(!e.isNull||e.dataLabelOnNull)&&w(e,l),O=e.connectors?e.connectors[T]:e.connector,n=e.dataLabels?e.dataLabels[T]:e.dataLabel,x=!n,u=y(l.distance,e.labelDistance);if(b){var N=e.getLabelConfig(),L=y(l[e.formatPrefix+"Format"],l.format);N=tt(L)?J(L,N,t):(l[e.formatPrefix+"Formatter"]||l.formatter).call(N,l),L=l.style;var H=l.rotation;t.styledMode||(L.color=y(l.color,L.color,h.color,"#000000"),L.color==="contrast"?(e.contrastColor=s.getContrast(e.color||h.color),L.color=!tt(u)&&l.inside||0>u||p.stacking?e.contrastColor:m):delete e.contrastColor,p.cursor&&(L.cursor=p.cursor));var G={r:l.borderRadius||0,rotation:H,padding:l.padding,zIndex:1};if(!t.styledMode){u=l.backgroundColor;var U=l.borderColor;G.fill=u==="auto"?e.color:u,G.stroke=U==="auto"?e.color:U,G["stroke-width"]=l.borderWidth}f(G,function(V,rt){typeof V>"u"&&delete G[rt]})}!n||b&&tt(N)&&!!n.div==!!l.useHTML&&(n.rotation&&l.rotation||n.rotation===l.rotation)||(x=!0,e.dataLabel=n=e.dataLabel&&e.dataLabel.destroy(),e.dataLabels&&(e.dataLabels.length===1?delete e.dataLabels:delete e.dataLabels[T]),T||delete e.dataLabel,O&&(e.connector=e.connector.destroy(),e.connectors&&(e.connectors.length===1?delete e.connectors:delete e.connectors[T]))),b&&tt(N)?(n?G.text=N:(e.dataLabels=e.dataLabels||[],n=e.dataLabels[T]=H?s.text(N,0,0,l.useHTML).addClass("highcharts-data-label"):s.label(N,0,0,l.shape,null,null,l.useHTML,null,"data-label"),T||(e.dataLabel=n),n.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(l.className||"")+(l.useHTML?" highcharts-tracker":""))),n.options=l,n.attr(G),t.styledMode||n.css(L).shadow(l.shadow),(T=l[e.formatPrefix+"TextPath"]||l.textPath)&&!l.useHTML&&(n.setTextPath(e.getDataLabelPath&&e.getDataLabelPath(n)||e.graphic,T),e.dataLabelPath&&!T.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),n.added||n.add(z),h.alignDataLabel(e,n,l,null,x)):n&&n.hide()})})}B(this,"afterDrawDataLabels")}function R(o,h,t,p,i,s){var c=this.chart,a=h.align,m=h.verticalAlign,A=o.box?0:o.padding||0,F=h.x;F=F===void 0?0:F;var z=h.y;z=z===void 0?0:z;var e=(t.x||0)+A;if(0>e){a==="right"&&0<=F?(h.align="left",h.inside=!0):F-=e;var l=!0}return e=(t.x||0)+p.width-A,e>c.plotWidth&&(a==="left"&&0>=F?(h.align="right",h.inside=!0):F+=c.plotWidth-e,l=!0),e=t.y+A,0>e&&(m==="bottom"&&0<=z?(h.verticalAlign="top",h.inside=!0):z-=e,l=!0),e=(t.y||0)+p.height-A,e>c.plotHeight&&(m==="top"&&0>=z?(h.verticalAlign="bottom",h.inside=!0):z+=c.plotHeight-e,l=!0),l&&(h.x=F,h.y=z,o.placed=!s,o.align(h,void 0,i)),l}function k(o,h){var t=[],p;if(I(o)&&!I(h))t=o.map(function(i){return g(i,h)});else if(I(h)&&!I(o))t=h.map(function(i){return g(o,i)});else if(I(o)||I(h))for(p=Math.max(o.length,h.length);p--;)t[p]=g(o[p],h[p]);else t=g(o,h);return t}function r(o,h,t,p,i){var s=this.chart,c=s.inverted,a=this.xAxis,m=a.reversed,A=c?h.height/2:h.width/2;o=(o=o.pointWidth)?o/2:0,h.startXPos=c?i.x:m?-A-o:a.width-A+o,h.startYPos=c?m?this.yAxis.height-A+o:-A-o:i.y,p?h.visibility==="hidden"&&(h.show(),h.attr({opacity:0}).animate({opacity:1})):h.attr({opacity:1}).animate({opacity:0},void 0,h.hide),s.hasRendered&&(t&&h.attr({x:h.startXPos,y:h.startYPos}),h.placed=!0)}var d=[];S.compose=function(o){if(d.indexOf(o)===-1){var h=o.prototype;d.push(o),h.alignDataLabel=M,h.drawDataLabels=D,h.justifyDataLabel=R,h.setDataLabelStartPos=r}}}(v||(v={})),v}),lt(E,"Series/Column/ColumnDataLabel.js",[E["Core/Series/DataLabel.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=W.series,J=Y.merge,tt=Y.pick,K;return function(B){function I(g,f,y,C,v){var S=this.chart.inverted,M=g.series,w=(M.xAxis?M.xAxis.len:this.chart.plotSizeX)||0;M=(M.yAxis?M.yAxis.len:this.chart.plotSizeY)||0;var D=g.dlBox||g.shapeArgs,R=tt(g.below,g.plotY>tt(this.translatedThreshold,M)),k=tt(y.inside,!!this.options.stacking);D&&(C=J(D),0>C.y&&(C.height+=C.y,C.y=0),D=C.y+C.height-M,0<D&&D<C.height&&(C.height-=D),S&&(C={x:M-C.y-C.height,y:w-C.x-C.width,width:C.height,height:C.width}),k||(S?(C.x+=R?0:C.width,C.width=0):(C.y+=R?C.height:0,C.height=0))),y.align=tt(y.align,!S||k?"center":R?"right":"left"),y.verticalAlign=tt(y.verticalAlign,S||k?"middle":R?"top":"bottom"),Q.prototype.alignDataLabel.call(this,g,f,y,C,v),y.inside&&g.contrastColor&&f.css({color:g.contrastColor})}var P=[];B.compose=function(g){j.compose(Q),P.indexOf(g)===-1&&(P.push(g),g.prototype.alignDataLabel=I)}}(K||(K={})),K}),lt(E,"Series/Bar/BarSeries.js",[E["Series/Column/ColumnSeries.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=this&&this.__extends||function(){var K=function(B,I){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,g){P.__proto__=g}||function(P,g){for(var f in g)g.hasOwnProperty(f)&&(P[f]=g[f])},K(B,I)};return function(B,I){function P(){this.constructor=B}K(B,I),B.prototype=I===null?Object.create(I):(P.prototype=I.prototype,new P)}}(),J=Y.extend,tt=Y.merge;return Y=function(K){function B(){var I=K!==null&&K.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return Q(B,K),B.defaultOptions=tt(j.defaultOptions,{}),B}(j),J(Y.prototype,{inverted:!0}),W.registerSeriesType("bar",Y),Y}),lt(E,"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}">\u25CF</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),lt(E,"Series/Scatter/ScatterSeries.js",[E["Series/Scatter/ScatterSeriesDefaults.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=this&&this.__extends||function(){var P=function(g,f){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])},P(g,f)};return function(g,f){function y(){this.constructor=g}P(g,f),g.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),J=W.seriesTypes,tt=J.column,K=J.line;J=Y.addEvent;var B=Y.extend,I=Y.merge;return Y=function(P){function g(){var f=P!==null&&P.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return Q(g,P),g.prototype.applyJitter=function(){var f=this,y=this.options.jitter,C=this.points.length;y&&this.points.forEach(function(v,S){["x","y"].forEach(function(M,w){var D="plot"+M.toUpperCase();if(y[M]&&!v.isNull){var R=f[M+"Axis"],k=y[M]*R.transA;if(R&&!R.isLog){var r=Math.max(0,v[D]-k);R=Math.min(R.len,v[D]+k),w=1e4*Math.sin(S+w*C),v[D]=r+(R-r)*(w-Math.floor(w)),M==="x"&&(v.clientX=v.plotX)}}})})},g.prototype.drawGraph=function(){this.options.lineWidth?P.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},g.defaultOptions=I(K.defaultOptions,j),g}(K),B(Y.prototype,{drawTracker:tt.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),J(Y,"afterTranslate",function(){this.applyJitter()}),W.registerSeriesType("scatter",Y),Y}),lt(E,"Series/CenteredUtilities.js",[E["Core/Globals.js"],E["Core/Series/Series.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=j.deg2rad,J=Y.fireEvent,tt=Y.isNumber,K=Y.pick,B=Y.relativeLength,I;return function(P){P.getCenter=function(){var g=this.options,f=this.chart,y=2*(g.slicedOffset||0),C=f.plotWidth-2*y,v=f.plotHeight-2*y,S=g.center,M=Math.min(C,v),w=g.thickness,D=g.size,R=g.innerSize||0;for(typeof D=="string"&&(D=parseFloat(D)),typeof R=="string"&&(R=parseFloat(R)),g=[K(S[0],"50%"),K(S[1],"50%"),K(D&&0>D?void 0:g.size,"100%"),K(R&&0>R?void 0:g.innerSize||0,"0%")],!f.angular||this instanceof W||(g[3]=0),S=0;4>S;++S)D=g[S],f=2>S||S===2&&/%$/.test(D),g[S]=B(D,[C,v,M,g[2]][S])+(f?y:0);return g[3]>g[2]&&(g[3]=g[2]),tt(w)&&2*w<g[2]&&0<w&&(g[3]=g[2]-2*w),J(this,"afterGetCenter",{positions:g}),g},P.getStartAndEndRadians=function(g,f){return g=tt(g)?g:0,f=tt(f)&&f>g&&360>f-g?f:g+360,{start:Q*(g+-90),end:Q*(f+-90)}}}(I||(I={})),I}),lt(E,"Series/Pie/PiePoint.js",[E["Core/Animation/AnimationUtilities.js"],E["Core/Series/Point.js"],E["Core/Utilities.js"]],function(j,W,Y){var Q=this&&this.__extends||function(){var g=function(f,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,v){C.__proto__=v}||function(C,v){for(var S in v)v.hasOwnProperty(S)&&(C[S]=v[S])},g(f,y)};return function(f,y){function C(){this.constructor=f}g(f,y),f.prototype=y===null?Object.create(y):(C.prototype=y.prototype,new C)}}(),J=j.setAnimation,tt=Y.addEvent,K=Y.defined;j=Y.extend;var B=Y.isNumber,I=Y.pick,P=Y.relativeLength;return W=function(g){function f(){var y=g!==null&&g.apply(this,arguments)||this;return y.labelDistance=void 0,y.options=void 0,y.series=void 0,y}return Q(f,g),f.prototype.getConnectorPath=function(){var y=this.labelPosition,C=this.series.options.dataLabels,v=this.connectorShapes,S=C.connectorShape;return v[S]&&(S=v[S]),S.call(this,{x:y.final.x,y:y.final.y,alignment:y.alignment},y.connectorPosition,C)},f.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},f.prototype.haloPath=function(y){var C=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(C.x,C.y,C.r+y,C.r+y,{innerR:C.r-1,start:C.start,end:C.end})},f.prototype.init=function(){var y=this;g.prototype.init.apply(this,arguments),this.name=I(this.name,"Slice");var C=function(v){y.slice(v.type==="select")};return tt(this,"select",C),tt(this,"unselect",C),this},f.prototype.isValid=function(){return B(this.y)&&0<=this.y},f.prototype.setVisible=function(y,C){var v=this,S=this.series,M=S.chart,w=S.options.ignoreHiddenPoint;C=I(C,w),y!==this.visible&&(this.visible=this.options.visible=y=typeof y>"u"?!this.visible:y,S.options.data[S.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(D){v[D]&&v[D][y?"show":"hide"](y)}),this.legendItem&&M.legend.colorizeItem(this,y),y||this.state!=="hover"||this.setState(""),w&&(S.isDirty=!0),C&&M.redraw())},f.prototype.slice=function(y,C,v){var S=this.series;J(v,S.chart),I(C,!0),this.sliced=this.options.sliced=K(y)?y:!this.sliced,S.options.data[S.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},f}(W),j(W.prototype,{connectorShapes:{fixedOffset:function(g,f,y){var C=f.breakAt;return f=f.touchingSliceAt,[["M",g.x,g.y],y.softConnector?["C",g.x+(g.alignment==="left"?-5:5),g.y,2*C.x-f.x,2*C.y-f.y,C.x,C.y]:["L",C.x,C.y],["L",f.x,f.y]]},straight:function(g,f){return f=f.touchingSliceAt,[["M",g.x,g.y],["L",f.x,f.y]]},crookedLine:function(g,f,y){f=f.touchingSliceAt;var C=this.series,v=C.center[0],S=C.chart.plotWidth,M=C.chart.plotLeft;C=g.alignment;var w=this.shapeArgs.r;return y=P(y.crookDistance,1),S=C==="left"?v+w+(S+M-v-w)*(1-y):M+(v-w)*y,y=["L",S,g.y],v=!0,(C==="left"?S>g.x||S<f.x:S<g.x||S>f.x)&&(v=!1),g=[["M",g.x,g.y]],v&&g.push(y),g.push(["L",f.x,f.y]),g}}}),W}),lt(E,"Series/Pie/PieSeriesDefaults.js",[],function(){"";return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",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}}}}),lt(E,"Series/Pie/PieSeries.js",[E["Series/CenteredUtilities.js"],E["Series/Column/ColumnSeries.js"],E["Core/Globals.js"],E["Core/Legend/LegendSymbol.js"],E["Series/Pie/PiePoint.js"],E["Series/Pie/PieSeriesDefaults.js"],E["Core/Series/Series.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Renderer/SVG/Symbols.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J,tt,K,B,I,P){var g=this&&this.__extends||function(){var D=function(R,k){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,d){r.__proto__=d}||function(r,d){for(var o in d)d.hasOwnProperty(o)&&(r[o]=d[o])},D(R,k)};return function(R,k){function r(){this.constructor=R}D(R,k),R.prototype=k===null?Object.create(k):(r.prototype=k.prototype,new r)}}(),f=j.getStartAndEndRadians;Y=Y.noop;var y=P.clamp,C=P.extend,v=P.fireEvent,S=P.merge,M=P.pick,w=P.relativeLength;return P=function(D){function R(){var k=D!==null&&D.apply(this,arguments)||this;return k.center=void 0,k.data=void 0,k.maxLabelDistance=void 0,k.options=void 0,k.points=void 0,k}return g(R,D),R.prototype.animate=function(k){var r=this,d=r.points,o=r.startAngleRad;k||d.forEach(function(h){var t=h.graphic,p=h.shapeArgs;t&&p&&(t.attr({r:M(h.startR,r.center&&r.center[3]/2),start:o,end:o}),t.animate({r:p.r,start:p.start,end:p.end},r.options.animation))})},R.prototype.drawEmpty=function(){var k=this.startAngleRad,r=this.endAngleRad,d=this.options;if(this.total===0&&this.center){var o=this.center[0],h=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,h,this.center[1]/2,0,k,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(o,h,this.center[2]/2,0,{start:k,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none",stroke:d.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},R.prototype.drawPoints=function(){var k=this.chart.renderer;this.points.forEach(function(r){r.graphic&&r.hasNewShapeType()&&(r.graphic=r.graphic.destroy()),r.graphic||(r.graphic=k[r.shapeType](r.shapeArgs).add(r.series.group),r.delayedRendering=!0)})},R.prototype.generatePoints=function(){D.prototype.generatePoints.call(this),this.updateTotals()},R.prototype.getX=function(k,r,d){var o=this.center,h=this.radii?this.radii[d.index]||0:o[2]/2;return k=Math.asin(y((k-o[1])/(h+d.labelDistance),-1,1)),o[0]+(r?-1:1)*Math.cos(k)*(h+d.labelDistance)+(0<d.labelDistance?(r?-1:1)*this.options.dataLabels.padding:0)},R.prototype.hasData=function(){return!!this.processedXData.length},R.prototype.redrawPoints=function(){var k=this,r=k.chart,d=r.renderer,o=k.options.shadow,h,t,p,i;this.drawEmpty(),!o||k.shadowGroup||r.styledMode||(k.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(k.group)),k.points.forEach(function(s){var c={};if(t=s.graphic,!s.isNull&&t){var a=void 0;i=s.shapeArgs,h=s.getTranslate(),r.styledMode||(a=s.shadowGroup,o&&!a&&(a=s.shadowGroup=d.g("shadow").add(k.shadowGroup)),a&&a.attr(h),p=k.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(t.setRadialReference(k.center).attr(i).attr(h),r.styledMode||t.attr(p).attr({"stroke-linejoin":"round"}).shadow(o,a),s.delayedRendering=!1):(t.setRadialReference(k.center),r.styledMode||S(!0,c,p),S(!0,c,i,h),t.animate(c)),t.attr({visibility:s.visible?"inherit":"hidden"}),t.addClass(s.getClassName(),!0)}else t&&(s.graphic=t.destroy())})},R.prototype.sortByAngle=function(k,r){k.sort(function(d,o){return typeof d.angle<"u"&&(o.angle-d.angle)*r})},R.prototype.translate=function(k){v(this,"translate"),this.generatePoints();var r=this.options,d=r.slicedOffset,o=d+(r.borderWidth||0),h=f(r.startAngle,r.endAngle),t=this.startAngleRad=h.start;h=(this.endAngleRad=h.end)-t;var p=this.points,i=r.dataLabels.distance;r=r.ignoreHiddenPoint;var s=p.length,c,a=0;for(k||(this.center=k=this.getCenter()),c=0;c<s;c++){var m=p[c],A=t+a*h;!m.isValid()||r&&!m.visible||(a+=m.percentage/100);var F=t+a*h,z={x:k[0],y:k[1],r:k[2]/2,innerR:k[3]/2,start:Math.round(1e3*A)/1e3,end:Math.round(1e3*F)/1e3};m.shapeType="arc",m.shapeArgs=z,m.labelDistance=M(m.options.dataLabels&&m.options.dataLabels.distance,i),m.labelDistance=w(m.labelDistance,z.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,m.labelDistance),F=(F+A)/2,F>1.5*Math.PI?F-=2*Math.PI:F<-Math.PI/2&&(F+=2*Math.PI),m.slicedTranslation={translateX:Math.round(Math.cos(F)*d),translateY:Math.round(Math.sin(F)*d)},z=Math.cos(F)*k[2]/2;var e=Math.sin(F)*k[2]/2;m.tooltipPos=[k[0]+.7*z,k[1]+.7*e],m.half=F<-Math.PI/2||F>Math.PI/2?1:0,m.angle=F,A=Math.min(o,m.labelDistance/5),m.labelPosition={natural:{x:k[0]+z+Math.cos(F)*m.labelDistance,y:k[1]+e+Math.sin(F)*m.labelDistance},final:{},alignment:0>m.labelDistance?"center":m.half?"right":"left",connectorPosition:{breakAt:{x:k[0]+z+Math.cos(F)*A,y:k[1]+e+Math.sin(F)*A},touchingSliceAt:{x:k[0]+z,y:k[1]+e}}}}v(this,"afterTranslate")},R.prototype.updateTotals=function(){var k=this.points,r=k.length,d=this.options.ignoreHiddenPoint,o,h=0;for(o=0;o<r;o++){var t=k[o];!t.isValid()||d&&!t.visible||(h+=t.y)}for(this.total=h,o=0;o<r;o++)t=k[o],t.percentage=0<h&&(t.visible||!d)?t.y/h*100:0,t.total=h},R.defaultOptions=S(K.defaultOptions,tt),R}(K),C(P.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:Q.drawRectangle,drawTracker:W.prototype.drawTracker,getCenter:j.getCenter,getSymbol:Y,isCartesian:!1,noSharedTooltip:!0,pointAttribs:W.prototype.pointAttribs,pointClass:J,requireSorting:!1,searchPoint:Y,trackerGroups:["group","dataLabelsGroup"]}),B.registerSeriesType("pie",P),P}),lt(E,"Series/Pie/PieDataLabel.js",[E["Core/Series/DataLabel.js"],E["Core/Globals.js"],E["Core/Renderer/RendererUtilities.js"],E["Core/Series/SeriesRegistry.js"],E["Core/Utilities.js"]],function(j,W,Y,Q,J){var tt=W.noop,K=Y.distribute,B=Q.series,I=J.arrayMax,P=J.clamp,g=J.defined,f=J.merge,y=J.pick,C=J.relativeLength,v;return function(S){function M(){var r=this,d=r.data,o=r.chart,h=r.options.dataLabels||{},t=h.connectorPadding,p=o.plotWidth,i=o.plotHeight,s=o.plotLeft,c=Math.round(o.chartWidth/3),a=r.center,m=a[2]/2,A=a[1],F=[[],[]],z=[0,0,0,0],e=r.dataLabelPositioners,l,T,b,O,n,x,u,N,L,H,G,U;r.visible&&(h.enabled||r._hasPointLabels)&&(d.forEach(function(V){V.dataLabel&&V.visible&&V.dataLabel.shortened&&(V.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),V.dataLabel.shortened=!1)}),B.prototype.drawDataLabels.apply(r),d.forEach(function(V){V.dataLabel&&(V.visible?(F[V.half].push(V),V.dataLabel._pos=null,!g(h.style.width)&&!g(V.options.dataLabels&&V.options.dataLabels.style&&V.options.dataLabels.style.width)&&V.dataLabel.getBBox().width>c&&(V.dataLabel.css({width:Math.round(.7*c)+"px"}),V.dataLabel.shortened=!0)):(V.dataLabel=V.dataLabel.destroy(),V.dataLabels&&V.dataLabels.length===1&&delete V.dataLabels))}),F.forEach(function(V,rt){var st=V.length,ot=[],et;if(st){if(r.sortByAngle(V,rt-.5),0<r.maxLabelDistance){var at=Math.max(0,A-m-r.maxLabelDistance),$=Math.min(A+m+r.maxLabelDistance,o.plotHeight);V.forEach(function(_){0<_.labelDistance&&_.dataLabel&&(_.top=Math.max(0,A-m-_.labelDistance),_.bottom=Math.min(A+m+_.labelDistance,o.plotHeight),et=_.dataLabel.getBBox().height||21,_.distributeBox={target:_.labelPosition.natural.y-_.top+et/2,size:et,rank:_.y},ot.push(_.distributeBox))}),at=$+et-at,K(ot,at,at/5)}for(G=0;G<st;G++){if(l=V[G],x=l.labelPosition,O=l.dataLabel,H=l.visible===!1?"hidden":"inherit",L=at=x.natural.y,ot&&g(l.distributeBox)&&(typeof l.distributeBox.pos>"u"?H="hidden":(u=l.distributeBox.size,L=e.radialDistributionY(l))),delete l.positionIndex,h.justify)N=e.justify(l,m,a);else switch(h.alignTo){case"connectors":N=e.alignToConnectors(V,rt,p,s);break;case"plotEdges":N=e.alignToPlotEdges(O,rt,p,s);break;default:N=e.radialDistributionX(r,l,L,at)}O._attr={visibility:H,align:x.alignment},U=l.options.dataLabels||{},O._pos={x:N+y(U.x,h.x)+({left:t,right:-t}[x.alignment]||0),y:L+y(U.y,h.y)-10},x.final.x=N,x.final.y=L,y(h.crop,!0)&&(n=O.getBBox().width,at=null,N-n<t&&rt===1?(at=Math.round(n-N+t),z[3]=Math.max(at,z[3])):N+n>p-t&&rt===0&&(at=Math.round(N+n-p+t),z[1]=Math.max(at,z[1])),0>L-u/2?z[0]=Math.max(Math.round(-L+u/2),z[0]):L+u/2>i&&(z[2]=Math.max(Math.round(L+u/2-i),z[2])),O.sideOverflow=at)}}}),I(z)===0||this.verifyDataLabelOverflow(z))&&(this.placeDataLabels(),this.points.forEach(function(V){if(U=f(h,V.options.dataLabels),T=y(U.connectorWidth,1)){var rt;b=V.connector,(O=V.dataLabel)&&O._pos&&V.visible&&0<V.labelDistance?(H=O._attr.visibility,(rt=!b)&&(V.connector=b=o.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+V.colorIndex+(V.className?" "+V.className:"")).add(r.dataLabelsGroup),o.styledMode||b.attr({"stroke-width":T,stroke:U.connectorColor||V.color||"#666666"})),b[rt?"attr":"animate"]({d:V.getConnectorPath()}),b.attr("visibility",H)):b&&(V.connector=b.destroy())}}))}function w(){this.points.forEach(function(r){var d=r.dataLabel,o;d&&r.visible&&((o=d._pos)?(d.sideOverflow&&(d._attr.width=Math.max(d.getBBox().width-d.sideOverflow,0),d.css({width:d._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),d.shortened=!0),d.attr(d._attr),d[d.moved?"animate":"attr"](o),d.moved=!0):d&&d.attr({y:-9999})),delete r.distributeBox},this)}function D(r){var d=this.center,o=this.options,h=o.center,t=o.minSize||80,p=o.size!==null;if(!p){if(h[0]!==null)var i=Math.max(d[2]-Math.max(r[1],r[3]),t);else i=Math.max(d[2]-r[1]-r[3],t),d[0]+=(r[3]-r[1])/2;h[1]!==null?i=P(i,t,d[2]-Math.max(r[0],r[2])):(i=P(i,t,d[2]-r[0]-r[2]),d[1]+=(r[0]-r[2])/2),i<d[2]?(d[2]=i,d[3]=Math.min(o.thickness?Math.max(0,i-2*o.thickness):Math.max(0,C(o.innerSize||0,i)),i),this.translate(d),this.drawDataLabels&&this.drawDataLabels()):p=!0}return p}var R=[],k={radialDistributionY:function(r){return r.top+r.distributeBox.pos},radialDistributionX:function(r,d,o,h){return r.getX(o<d.top+2||o>d.bottom-2?h:o,d.half,d)},justify:function(r,d,o){return o[0]+(r.half?-1:1)*(d+r.labelDistance)},alignToPlotEdges:function(r,d,o,h){return r=r.getBBox().width,d?r+h:o-r-h},alignToConnectors:function(r,d,o,h){var t=0,p;return r.forEach(function(i){p=i.dataLabel.getBBox().width,p>t&&(t=p)}),d?t+h:o-t-h}};S.compose=function(r){j.compose(B),R.indexOf(r)===-1&&(R.push(r),r=r.prototype,r.dataLabelPositioners=k,r.alignDataLabel=tt,r.drawDataLabels=M,r.placeDataLabels=w,r.verifyDataLabelOverflow=D)}}(v||(v={})),v}),lt(E,"Extensions/OverlappingDataLabels.js",[E["Core/Chart/Chart.js"],E["Core/Utilities.js"]],function(j,W){function Y(P,g){var f=!1;if(P){var y=P.newOpacity;P.oldOpacity!==y&&(P.alignAttr&&P.placed?(P[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),f=!0,P.alignAttr.opacity=y,P[P.isOld?"animate":"attr"](P.alignAttr,null,function(){g.styledMode||P.css({pointerEvents:y?"auto":"none"})}),J(g,"afterHideOverlappingLabel")):P.attr({opacity:y})),P.isOld=!0}return f}var Q=W.addEvent,J=W.fireEvent,tt=W.isArray,K=W.isNumber,B=W.objectEach,I=W.pick;Q(j,"render",function(){var P=this,g=[];(this.labelCollectors||[]).forEach(function(f){g=g.concat(f())}),(this.yAxis||[]).forEach(function(f){f.stacking&&f.options.stackLabels&&!f.options.stackLabels.allowOverlap&&B(f.stacking.stacks,function(y){B(y,function(C){C.label&&g.push(C.label)})})}),(this.series||[]).forEach(function(f){var y=f.options.dataLabels;f.visible&&(y.enabled!==!1||f._hasPointLabels)&&(y=function(C){return C.forEach(function(v){v.visible&&(tt(v.dataLabels)?v.dataLabels:v.dataLabel?[v.dataLabel]:[]).forEach(function(S){var M=S.options;S.labelrank=I(M.labelrank,v.labelrank,v.shapeArgs&&v.shapeArgs.height),M.allowOverlap?(S.oldOpacity=S.opacity,S.newOpacity=1,Y(S,P)):g.push(S)})})},y(f.nodes||[]),y(f.points))}),this.hideOverlappingLabels(g)}),j.prototype.hideOverlappingLabels=function(P){var g=this,f=P.length,y=g.renderer,C,v,S,M=!1,w=function(k){var r,d=k.box?0:k.padding||0,o=r=0,h;if(k&&(!k.alignAttr||k.placed)){var t=k.alignAttr||{x:k.attr("x"),y:k.attr("y")},p=k.parentGroup;k.width||(r=k.getBBox(),k.width=r.width,k.height=r.height,r=y.fontMetrics(null,k.element).h);var i=k.width-2*d;return(h={left:"0",center:"0.5",right:"1"}[k.alignValue])?o=+h*i:K(k.x)&&Math.round(k.x)!==k.translateX&&(o=k.x-k.translateX),{x:t.x+(p.translateX||0)+d-(o||0),y:t.y+(p.translateY||0)+d-r,width:k.width-2*d,height:k.height-2*d}}};for(v=0;v<f;v++)(C=P[v])&&(C.oldOpacity=C.opacity,C.newOpacity=1,C.absoluteBox=w(C));for(P.sort(function(k,r){return(r.labelrank||0)-(k.labelrank||0)}),v=0;v<f;v++){var D=(w=P[v])&&w.absoluteBox;for(C=v+1;C<f;++C){var R=(S=P[C])&&S.absoluteBox;!D||!R||w===S||w.newOpacity===0||S.newOpacity===0||w.visibility==="hidden"||S.visibility==="hidden"||R.x>=D.x+D.width||R.x+R.width<=D.x||R.y>=D.y+D.height||R.y+R.height<=D.y||((w.labelrank<S.labelrank?w:S).newOpacity=0)}}P.forEach(function(k){Y(k,g)&&(M=!0)}),M&&J(g,"afterHideAllOverlappingLabels")}}),lt(E,"Core/Responsive.js",[E["Core/Utilities.js"]],function(j){var W=j.extend,Y=j.find,Q=j.isArray,J=j.isObject,tt=j.merge,K=j.objectEach,B=j.pick,I=j.splat,P=j.uniqueKey,g;return function(f){var y=[];f.compose=function(v){return y.indexOf(v)===-1&&(y.push(v),W(v.prototype,C.prototype)),v};var C=function(){function v(){}return v.prototype.currentOptions=function(S){function M(R,k,r,d){var o;K(R,function(h,t){if(!d&&-1<w.collectionsWithUpdate.indexOf(t)&&k[t])for(h=I(h),r[t]=[],o=0;o<Math.max(h.length,k[t].length);o++)k[t][o]&&(h[o]===void 0?r[t][o]=k[t][o]:(r[t][o]={},M(h[o],k[t][o],r[t][o],d+1)));else J(h)?(r[t]=Q(h)?[]:{},M(h,k[t]||{},r[t],d+1)):r[t]=typeof k[t]>"u"?null:k[t]})}var w=this,D={};return M(S,this.options,D,0),D},v.prototype.matchResponsiveRule=function(S,M){var w=S.condition;(w.callback||function(){return this.chartWidth<=B(w.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=B(w.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=B(w.minWidth,0)&&this.chartHeight>=B(w.minHeight,0)}).call(this)&&M.push(S._id)},v.prototype.setResponsive=function(S,M){var w=this,D=this.options.responsive,R=this.currentResponsive,k=[];!M&&D&&D.rules&&D.rules.forEach(function(r){typeof r._id>"u"&&(r._id=P()),w.matchResponsiveRule(r,k)},this),M=tt.apply(void 0,k.map(function(r){return Y((D||{}).rules||[],function(d){return d._id===r})}).map(function(r){return r&&r.chartOptions})),M.isResponsiveOptions=!0,k=k.toString()||void 0,k!==(R&&R.ruleIds)&&(R&&this.update(R.undoOptions,S,!0),k?(R=this.currentOptions(M),R.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:M,undoOptions:R},this.update(M,S,!0)):this.currentResponsive=void 0)},v}()}(g||(g={})),g}),lt(E,"masters/highcharts.src.js",[E["Core/Globals.js"],E["Core/Utilities.js"],E["Core/Defaults.js"],E["Core/Animation/Fx.js"],E["Core/Animation/AnimationUtilities.js"],E["Core/Renderer/HTML/AST.js"],E["Core/FormatUtilities.js"],E["Core/Renderer/RendererUtilities.js"],E["Core/Renderer/SVG/SVGElement.js"],E["Core/Renderer/SVG/SVGRenderer.js"],E["Core/Renderer/HTML/HTMLElement.js"],E["Core/Renderer/HTML/HTMLRenderer.js"],E["Core/Axis/Axis.js"],E["Core/Axis/DateTimeAxis.js"],E["Core/Axis/LogarithmicAxis.js"],E["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],E["Core/Axis/Tick.js"],E["Core/Tooltip.js"],E["Core/Series/Point.js"],E["Core/Pointer.js"],E["Core/MSPointer.js"],E["Core/Legend/Legend.js"],E["Core/Chart/Chart.js"],E["Core/Axis/Stacking/StackingAxis.js"],E["Core/Axis/Stacking/StackItem.js"],E["Core/Series/Series.js"],E["Core/Series/SeriesRegistry.js"],E["Series/Column/ColumnSeries.js"],E["Series/Column/ColumnDataLabel.js"],E["Series/Pie/PieSeries.js"],E["Series/Pie/PieDataLabel.js"],E["Core/Series/DataLabel.js"],E["Core/Responsive.js"],E["Core/Color/Color.js"],E["Core/Time.js"]],function(j,W,Y,Q,J,tt,K,B,I,P,g,f,y,C,v,S,M,w,D,R,k,r,d,o,h,t,p,i,s,c,a,m,A,F,z){return j.animate=J.animate,j.animObject=J.animObject,j.getDeferredAnimation=J.getDeferredAnimation,j.setAnimation=J.setAnimation,j.stop=J.stop,j.timers=Q.timers,j.AST=tt,j.Axis=y,j.Chart=d,j.chart=d.chart,j.Fx=Q,j.Legend=r,j.PlotLineOrBand=S,j.Point=D,j.Pointer=k.isRequired()?k:R,j.Series=t,j.StackItem=h,j.SVGElement=I,j.SVGRenderer=P,j.Tick=M,j.Time=z,j.Tooltip=w,j.Color=F,j.color=F.parse,f.compose(P),g.compose(I),j.defaultOptions=Y.defaultOptions,j.getOptions=Y.getOptions,j.time=Y.defaultTime,j.setOptions=Y.setOptions,j.dateFormat=K.dateFormat,j.format=K.format,j.numberFormat=K.numberFormat,j.addEvent=W.addEvent,j.arrayMax=W.arrayMax,j.arrayMin=W.arrayMin,j.attr=W.attr,j.clearTimeout=W.clearTimeout,j.correctFloat=W.correctFloat,j.createElement=W.createElement,j.css=W.css,j.defined=W.defined,j.destroyObjectProperties=W.destroyObjectProperties,j.discardElement=W.discardElement,j.distribute=B.distribute,j.erase=W.erase,j.error=W.error,j.extend=W.extend,j.extendClass=W.extendClass,j.find=W.find,j.fireEvent=W.fireEvent,j.getMagnitude=W.getMagnitude,j.getStyle=W.getStyle,j.inArray=W.inArray,j.isArray=W.isArray,j.isClass=W.isClass,j.isDOMElement=W.isDOMElement,j.isFunction=W.isFunction,j.isNumber=W.isNumber,j.isObject=W.isObject,j.isString=W.isString,j.keys=W.keys,j.merge=W.merge,j.normalizeTickInterval=W.normalizeTickInterval,j.objectEach=W.objectEach,j.offset=W.offset,j.pad=W.pad,j.pick=W.pick,j.pInt=W.pInt,j.relativeLength=W.relativeLength,j.removeEvent=W.removeEvent,j.seriesType=p.seriesType,j.splat=W.splat,j.stableSort=W.stableSort,j.syncTimeout=W.syncTimeout,j.timeUnits=W.timeUnits,j.uniqueKey=W.uniqueKey,j.useSerialIds=W.useSerialIds,j.wrap=W.wrap,s.compose(i),m.compose(t),C.compose(y),v.compose(y),a.compose(c),S.compose(y),A.compose(d),o.compose(y,d,t),j}),E["masters/highcharts.src.js"]._modules=E,E["masters/highcharts.src.js"]})});var ni=ge(fe());var $e=ge(fe());var Jt=class{constructor(lt){this.Chart=lt.Chart,this.PerformanceChannel=lt.PerformanceChannel,this.lineChartOptions=this.generateLineChartOptions(),this.pieChartOptions=this.generatePieChartOptions()}generateLineChartOptions(){let lt=0;return{chart:{type:"spline",inverted:!1},credits:{enabled:!1},yAxis:{title:{text:""}},xAxis:{categories:this.Chart.XAxis,labels:{style:{fontSize:"10px"}}},title:{text:""},legend:{itemMarginTop:2,itemMarginBottom:2,itemStyle:{fontSize:"10px"}},tooltip:{pointFormatter:function(){return'<span style="color:'+this.color+'">\u25CF</span> '+this.series.name+": <b>"+$e.numberFormat(this.y,0,",",".")+" IDR</b><br/>"}},series:this.Chart.Area.filter(j=>(lt=0,j?.Data.forEach(W=>{W==0&&(lt+=1)}),lt!=j.Data.length)).map(j=>({name:j.Name,data:j.Data,type:"spline",color:It.getCssChannelColor(j.TypeID)}))}}generatePieChartOptions(){return{credits:{enabled:!1},title:{text:""},legend:{itemMarginTop:2,itemMarginBottom:2,itemStyle:{fontSize:"10px"}},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,format:"<b>{point.name}</b>: {point.y} Orders"},showInLegend:!0}},series:[{type:"pie",name:"Total",data:this.Chart.Pie.filter(E=>E.Order>0).map(E=>({name:E.Name,y:E.Order,color:It.getCssChannelColor(E.TypeID)}))}]}}};var te=(()=>{class ct{constructor(E){this.http=E}getDashboardData(E){let j="/api/dashboard/GetDashboardData";var W={range:E.range,type:E.type};return this.http.post(j,W).pipe(Xt(Y=>new Jt(Y)))}getDasahboardLoader(){return this.http.get("/api/dashboard/GetLoader").pipe(Xt(j=>j))}getChannelShortcuts(){return[{name:"Tokopedia",class:"btn-tokopedia",typeId:Bt.Tokopedia,campaign:"https://seller.tokopedia.com/promo",chat:"https://seller.tokopedia.com/chat",logo:Gt.TOKOPEDIA,sellerCenter:"https://seller.tokopedia.com"},{name:"Shopee",class:"btn-shopee",typeId:Bt.Shopee,campaign:"https://seller.shopee.co.id/portal/marketing",chat:"https://seller.shopee.co.id/webchat/conversations",logo:Gt.SHOOPE,sellerCenter:"https://seller.shopee.co.id/"},{name:"Tiktok",class:"btn-tiktok",typeId:Bt.Tiktok,campaign:"https://seller-id.tiktok.com",chat:"https://seller-id.tiktok.com/chat?lang=id-ID&from=seller_center_navigation_im",logo:Gt.TIKTOK,sellerCenter:"https://seller-id.tiktok.com"},{name:"Lazada",class:"btn-lazada",typeId:Bt.Lazada,campaign:"https://sellercenter.lazada.co.id/apps/promotion/home?",chat:"https://sellercenter.lazada.co.id/apps/im/chat",logo:Gt.LAZADA,sellerCenter:"https://sellercenter.lazada.co.id"}]}static{this.\u0275fac=function(j){return new(j||ct)(ye(De))}}static{this.\u0275prov=me({token:ct,factory:ct.\u0275fac})}}return ct})();var qe=(()=>{class ct{constructor(E,j){this.el=E,this._zone=j,this.updateChange=new ne(!0),this.chartInstance=new ne}ngOnChanges(E){let j=E.update&&E.update.currentValue;(E.options||j)&&(this.wrappedUpdateOrCreateChart(),j&&this.updateChange.emit(!1))}wrappedUpdateOrCreateChart(){this.runOutsideAngular?this._zone.runOutsideAngular(()=>{this.updateOrCreateChart()}):this.updateOrCreateChart()}updateOrCreateChart(){this.chart&&this.chart.update?this.chart.update(this.options,!0,this.oneToOne||!1):(this.chart=this.Highcharts[this.constructorType||"chart"](this.el.nativeElement,this.options,this.callbackFunction||null),this.chartInstance.emit(this.chart))}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=null)}}return ct.\u0275fac=function(E){return new(E||ct)(Nt(Ce),Nt(Se))},ct.\u0275cmp=Ht({type:ct,selectors:[["highcharts-chart"]],inputs:{Highcharts:"Highcharts",constructorType:"constructorType",callbackFunction:"callbackFunction",oneToOne:"oneToOne",runOutsideAngular:"runOutsideAngular",options:"options",update:"update"},outputs:{updateChange:"updateChange",chartInstance:"chartInstance"},standalone:!1,features:[Ut],decls:0,vars:0,template:function(E,j){},encapsulation:2}),ct})(),Qe=(()=>{class ct{}return ct.\u0275fac=function(E){return new(E||ct)},ct.\u0275mod=Vt({type:ct}),ct.\u0275inj=Yt({}),ct})();var ee=(()=>{class ct{constructor(){}ngOnInit(){}ngOnChanges(E){E.roles&&E.roles.currentValue&&(this.roleInString=E.roles.currentValue.join(", "))}static{this.\u0275fac=function(j){return new(j||ct)}}static{this.\u0275cmp=Ht({type:ct,selectors:[["app-not-found"]],inputs:{roles:"roles"},features:[Ut],decls:11,vars:1,consts:[[1,"d-flex","align-items-center","justify-content-center","mt-8"],[1,"text-center"],["src","https://res.cloudinary.com/pos/image/upload/v1702547639/POS/Images/Dashboard/locked.svg",2,"width","160px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(j,W){j&1&&(yt(0,"div",0)(1,"div",1)(2,"div"),Dt(3,"img",2),vt(),yt(4,"h1",3),kt(5,"You are not authorized"),vt(),yt(6,"p"),kt(7," This page requires role "),yt(8,"span",4),kt(9),vt(),kt(10," to be accessed. Please contact your Administrator to gain access! "),vt()()()),j&2&&(Ct(9),Rt("[ ",W.roleInString," ]"))},dependencies:[qt],encapsulation:2})}}return ct})();var Je=(()=>{class ct{transform(E,j,W,Y){let Q=0;return E&&!W&&!Y&&E.forEach(J=>Q+=J[j]-0),W&&Y&&E.forEach(J=>{J[W]==Y&&(Q+=J[j]-0)}),Q}static{this.\u0275fac=function(j){return new(j||ct)}}static{this.\u0275pipe=ke({name:"sum",type:ct,pure:!0})}}return ct})();var ai=ct=>({"border-color":ct}),hi=()=>["Outlet","Report"];function li(ct,lt){if(ct&1&&(yt(0,"span",8),Dt(1,"img",9),vt(),kt(2)),ct&2){let E=lt.item;Ct(),At("src",E.logo,zt),Ct(),Rt(" ",E.name," ")}}function pi(ct,lt){if(ct&1&&(yt(0,"tr",39)(1,"td"),Dt(2,"img",40),vt(),yt(3,"td",41),kt(4),vt(),yt(5,"td",42),kt(6),Ot(7,"number"),vt(),yt(8,"td",43),kt(9),Ot(10,"number"),vt(),yt(11,"td",44),kt(12),Ot(13,"number"),vt()()),ct&2){let E=lt.$implicit;Ct(2),At("src",E.logo,zt),Ct(2),_t(E.Name),Ct(2),_t(Et(7,5,E.Products)),Ct(3),_t(Et(10,7,E.Order)),Ct(3),_t(Et(13,9,E.Amount))}}function ci(ct,lt){if(ct&1&&(yt(0,"tr",45)(1,"td",46),Dt(2,"img",40),vt(),yt(3,"td",47)(4,"a",48),kt(5,"Seller Center"),vt()(),yt(6,"td",47)(7,"a",49),kt(8,"Chat"),vt()(),yt(9,"td",47)(10,"a",48),kt(11,"Campaign"),vt()()()),ct&2){let E=lt.$implicit,j=lt.index,W=Zt(2);At("ngStyle",Te(11,ai,W.channelShortcut.length-1==j?"white":"")),Ct(2),At("src",E.logo,zt),Ct(2),Kt(E.class),At("href",E.sellerCenter,zt),Ct(3),Kt(E.class),At("href",E.chat,zt),Ct(3),Kt(E.class),At("href",E.campaign,zt)}}function di(ct,lt){if(ct&1){let E=Me();ae(0),yt(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13)(5,"div",14)(6,"h1",15),kt(7,"Daily Sales"),vt()(),yt(8,"div",3),Dt(9,"highcharts-chart",16),vt()()()(),yt(10,"div",11)(11,"div",12)(12,"div",13)(13,"div",14)(14,"h1",15),kt(15),vt()(),yt(16,"div",3),Dt(17,"highcharts-chart",17),vt()()()()(),yt(18,"div",18)(19,"div",19)(20,"div",12)(21,"div",20)(22,"h1",21),kt(23),vt()(),yt(24,"div",13)(25,"div",22)(26,"table",23),le("matSortChange",function(W){let Y=ve(E).ngIf,Q=Zt();return xe(Q.onSort(W,Y))}),yt(27,"thead")(28,"tr",24),Dt(29,"th",25),yt(30,"th",26),kt(31,"Store Name"),vt(),yt(32,"th",27)(33,"span",28),kt(34,"Products"),vt()(),yt(35,"th",29),kt(36,"Order "),vt(),yt(37,"th",30),kt(38," Amount "),vt()()(),yt(39,"tbody"),Wt(40,pi,14,11,"tr",31),vt(),yt(41,"tfoot")(42,"tr",32),Dt(43,"td",33),yt(44,"td",34),kt(45,"Total"),vt(),yt(46,"td",35),kt(47),Ot(48,"sum"),Ot(49,"number"),vt(),yt(50,"td",35),kt(51),Ot(52,"sum"),Ot(53,"number"),vt(),yt(54,"td",35),kt(55),Ot(56,"sum"),Ot(57,"number"),vt()()()()()()()(),yt(58,"div",36)(59,"div",12)(60,"div",20)(61,"h1",21),kt(62,"Seller Center Shortcut"),vt()(),yt(63,"div",13)(64,"div",22)(65,"table",37)(66,"tbody"),Wt(67,ci,12,13,"tr",38),vt()()()()()()(),he()}if(ct&2){let E=lt.ngIf,j=Zt();Ct(9),At("Highcharts",j.Highcharts)("options",E==null?null:E.lineChartOptions),Ct(6),Rt("Order Count (",j.dateTitle,")"),Ct(2),At("Highcharts",j.Highcharts)("options",E==null?null:E.pieChartOptions),Ct(6),Rt("Channel Sales (",j.dateTitle,")"),Ct(17),At("ngForOf",E==null?null:E.PerformanceChannel),Ct(7),_t(Et(49,14,$t(48,11,E==null?null:E.PerformanceChannel,"Products"))),Ct(4),Rt("",Et(53,19,$t(52,16,E==null?null:E.PerformanceChannel,"Order"))," "),Ct(4),Rt("",Et(57,24,$t(56,21,E==null?null:E.PerformanceChannel,"Amount"))," "),Ct(12),At("ngForOf",j.channelShortcut)}}function ui(ct,lt){ct&1&&(ae(0),yt(1,"div",50),Dt(2,"app-not-found",51),vt(),he()),ct&2&&(Ct(2),At("roles",we(1,hi)))}var ti=(()=>{class ct{constructor(E,j){this.dashboardService=E,this.datePipe=j,this.Highcharts=ni,this.filter={range:0,type:null},this.channelType=Bt,this.channelShortcut=E.getChannelShortcuts(),this.channelOptions=structuredClone(this.channelShortcut),this.filter.range=0}ngOnInit(){this.initLoader(),this.initDashboardData()}initLoader(){this.dashboardLoader$=this.dashboardService.getDasahboardLoader().pipe(se(1)),this.loaderError$=this.dashboardLoader$.pipe(re(),oe(E=>{if(E.status==403)return ie(!0);throw E}))}initDashboardData(){this.dashboardData$=this.dashboardService.getDashboardData(this.filter).pipe(se(),Xt(E=>(E.PerformanceChannel=E.PerformanceChannel.map(j=>(j.logo=It.getChannelLogoByTypeId(j.TypeID),j)),this.performanceChannelSource=JSON.parse(JSON.stringify(E.PerformanceChannel)),E.PerformanceChannel=this.sorting(E.PerformanceChannel,"Amount","desc"),this.filterChannelShortcut(E.PerformanceChannel),this.generateDateTitle(),E))),this.dashboardError$=this.dashboardData$.pipe(re(),oe(E=>{if(E.status==403)return ie(E);throw E}))}generateDateTitle(){let E=new Date,j=this.datePipe.transform(E,"dd MMMM"),W=new Date,Y;this.filter.range==0?W.setDate(W.getDate()-6):W=this.getStartDateMonthly(),W.getMonth()==E.getMonth()?Y=this.datePipe.transform(W,"dd"):Y=this.datePipe.transform(W,"dd MMMM"),this.dateTitle=`${Y}-${j}`}getStartDateMonthly(){let E=new Date;E.setDate(E.getDate()-30);let j=new Date;return j.getMonth()!==E.getMonth()&&E.setDate(j.getDate()),E}filterChannelShortcut(E){let j=this.dashboardService.getChannelShortcuts(),W=E.filter((Y,Q,J)=>J.findIndex(tt=>tt.TypeID==Y.TypeID)===Q);this.channelShortcut=j.filter(Y=>W.findIndex(Q=>Q.TypeID==Y.typeId)!==-1)}sorting(E,j,W){return E.sort((Y,Q)=>It.compare(Y[j],Q[j],W=="asc"))}onFilter(){this.initDashboardData()}onSort(E,j){if(!E.active||E.direction===""){j.PerformanceChannel=JSON.parse(JSON.stringify(this.performanceChannelSource));return}j.PerformanceChannel=j.PerformanceChannel.sort((W,Y)=>{let Q=E.direction==="asc";switch(E.active){case"Products":return It.compare(W.Products,Y.Products,Q);case"Order":return It.compare(W.Order,Y.Order,Q);case"Amount":return It.compare(W.Amount,Y.Amount,Q);default:return 0}})}static{this.\u0275fac=function(j){return new(j||ct)(Nt(te),Nt(be))}}static{this.\u0275cmp=Ht({type:ct,selectors:[["app-dashboard"]],standalone:!1,decls:21,vars:21,consts:[["headerTitle","Dashboard",3,"onSubmit","hideSearchBox","hideSearchDropdown"],[1,"mb-3","fw-bold"],["bindLabel","Key","name","channelid","bindValue","Value",1,"center-text",3,"ngModelChange","items","ngModel"],[1,"mt-5"],["appendTo","body","bindLabel","name","name","channel","bindValue","typeId","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"container-fluid"],[4,"ngIf"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[1,"row","mt-6"],[1,"col-6"],[1,"card"],[1,"card-body"],[1,"d-flex","justify-content-start"],[1,"card-title","ms-4","mt-6"],[2,"display","block","width","100%","height","100%",3,"Highcharts","options"],["id","lineChart",2,"display","block","width","100%","height","100%",3,"Highcharts","options"],[1,"row"],[1,"col-8"],[1,"d-flex","justify-content-start","border-bottom"],[1,"card-title","my-6","ms-10"],[1,"table-responsive","mt-2"],["matSort","",1,"table",3,"matSortChange"],[1,"table-light",2,"border","none !important"],[2,"width","10px"],[2,"width","200px","padding-left","0px"],["arrowPosition","before","mat-sort-header","Products",1,"text-end",2,"width","70px"],["matTooltip","Number of SKUs that have been mapped between omni and POS","matTooltipPosition","above"],["arrowPosition","before","mat-sort-header","Order",1,"text-end",2,"width","70px"],["arrowPosition","before","mat-sort-header","Amount",1,"text-end",2,"width","70px"],["class","py-4",4,"ngFor","ngForOf"],[1,"fw-bold","fs-5","border-bottom-0"],[1,"border-bottom-0",2,"width","10px"],[1,"border-bottom-0",2,"width","210px","padding-left","0px"],[1,"text-end","border-bottom-0"],[1,"col-4"],[1,"table"],[3,"ngStyle",4,"ngFor","ngForOf"],[1,"py-4"],["alt","",2,"width","25px",3,"src"],[2,"width","210px","padding-left","0px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","115px"],[1,"text-end",2,"width","70px"],[3,"ngStyle"],[1,"text-end",2,"width","45px"],[1,"text-center"],["role","button","target","_blank","type","button",1,"btn","btn-sm","rounded",3,"href"],["role","button","type","button","target","_blank",1,"btn","btn-sm","rounded",3,"href"],[1,"d-flex","align-items-center","justify-content-center",2,"height","calc(100vh - 23vh)"],[3,"roles"]],template:function(j,W){if(j&1&&(yt(0,"mainpanel",0),Ot(1,"async"),Ot(2,"async"),le("onSubmit",function(){return W.onFilter()}),yt(3,"filters")(4,"div")(5,"label",1),kt(6,"Select a Period"),vt(),yt(7,"ng-select",2),Ot(8,"async"),de("ngModelChange",function(Q){return ce(W.filter.range,Q)||(W.filter.range=Q),Q}),vt()(),yt(9,"div",3)(10,"label",1),kt(11,"Type"),vt(),yt(12,"ng-select",4),Ot(13,"async"),de("ngModelChange",function(Q){return ce(W.filter.type,Q)||(W.filter.type=Q),Q}),Wt(14,li,3,2,"ng-template",5),vt()()(),yt(15,"content")(16,"div",6),Wt(17,di,68,26,"ng-container",7),Ot(18,"async"),Wt(19,ui,3,2,"ng-container",7),Ot(20,"async"),vt()()()),j&2){let Y,Q;At("hideSearchBox",!0)("hideSearchDropdown",Et(1,9,W.loaderError$)||Et(2,11,W.dashboardError$)),Ct(7),At("items",(Y=Et(8,13,W.dashboardLoader$))==null||Y.Options==null?null:Y.Options.dateRange),pe("ngModel",W.filter.range),Ct(5),At("clearable",!0)("items",(Q=Et(13,15,W.dashboardLoader$))==null||Q.Options==null?null:Q.Options.Channel),pe("ngModel",W.filter.type),Ct(5),At("ngIf",Et(18,17,W.dashboardData$)),Ct(2),At("ngIf",Et(20,19,W.dashboardError$))}},dependencies:[Pe,Ae,Oe,Ge,Ie,Re,qe,He,Be,Ne,Ye,Ue,_e,ee,Le,Ee,Je],styles:[".btn-shopee[_ngcontent-%COMP%]{background-color:#ee4d2d;color:#fff}.btn-lazada[_ngcontent-%COMP%]{background-color:#ff00b2;color:#fff}.btn-tokopedia[_ngcontent-%COMP%]{background-color:var(--G500, #03AC0E);color:#fff}.btn-tiktok[_ngcontent-%COMP%]{background-color:#000;color:#fff}.btn-woocommerce[_ngcontent-%COMP%]{background-color:#674399;color:#fff}.btn-kalcare[_ngcontent-%COMP%]{background-color:#80bc00;color:#fff}.btn-sm[_ngcontent-%COMP%]{font-size:12px!important}.card-title[_ngcontent-%COMP%]{font-weight:300;color:#4d4d4d;margin:0}.card.shortcut[_ngcontent-%COMP%]{margin-bottom:10px!important}"]})}}return ct})();var fi=[{path:"",component:ti}],Ji=(()=>{class ct{static{this.\u0275fac=function(j){return new(j||ct)}}static{this.\u0275mod=Vt({type:ct})}static{this.\u0275inj=Yt({providers:[te,ue],imports:[qt,je.forChild(fi),Fe,ze,Qe,We,Ke,Ve,Xe,ee,ue.forChild()]})}}return ct})();export{Ji as DashboardModule};
|