!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/standalone-navigator
 *
 * Standalone Navigator for Highcharts.
 *
 * (c) 2009-2026 Highsoft AS
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?(t._Highcharts=e(),module.exports=t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/highcharts",[],function(){return e()}):"object"==typeof exports?(t._Highcharts=e(),exports.highcharts=t._Highcharts):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e())}("u"<typeof window?this:window,function(){return function(){"use strict";var t,e,i,o,r,n,s,a,h,l,d,c,p,u,f,g,v,m,y,x,b,k,w,M,S,A,T,C,O,P,L,E,D,B,I,z,R,N,W,X,H,G,Y,F,j,_,U,V,Z,K,q,$,J={};J.d=function(t,e){for(var i in e)J.o(e,i)&&!J.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},J.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var Q={};J.d(Q,{default:function(){return no}}),(t=E||(E={})).SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="12.6.0",t.win="u">typeof window?window:{},t.doc=t.win.document,t.svg=!!(null==(i=null==(e=null===t.doc||void 0===t.doc?void 0:t.doc.createElementNS)?void 0:e.call(t.doc,t.SVG_NS,"svg"))?void 0:i.createSVGRect),t.pageLang=null==(r=null==(o=null===t.doc||void 0===t.doc?void 0:t.doc.documentElement)?void 0:o.closest("[lang]"))?void 0:r.lang,t.userAgent=(null==(n=t.win.navigator)?void 0:n.userAgent)||"",t.isChrome=t.win.chrome,t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,i),t.win.removeEventListener("testPassive",t.noop,i))}return e}(),t.charts=[],t.composed=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0;var tt=E,te=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},ti=tt.doc,to=tt.win;function tr(t,e,i,o){void 0===o&&(o={});var r="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});var n=r.hcEvents;tt.Point&&t instanceof tt.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,e,i,!!tt.supportsPassiveEvents&&{passive:void 0===o.passive?-1!==e.indexOf("touch"):o.passive,capture:!1}),n[e]||(n[e]=[]);var a={fn:i,order:"number"==typeof o.order?o.order:1/0};return n[e].push(a),n[e].sort(function(t,e){return t.order-e.order}),function(){t_(t,e,i)}}function tn(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i}function ts(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i}function ta(t,e,i){var o,r=tE(e)&&!tu(i),n=function(e,i){tu(e)?t.setAttribute(i,e):r?(o=t.getAttribute(i))||"class"!==i||(o=t.getAttribute(i+"Name")):t.removeAttribute(i)};return tE(e)?n(i,e):tN(e,n),o}function th(t,e,i){return t>e?t<i?t:i:e}function tl(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function td(t,e,i,o,r){var n=ti.createElement(t);return e&&ty(n,e),r&&tp(n,{padding:"0",border:"none",margin:"0"}),i&&tp(n,i),o&&o.appendChild(n),n}function tc(t,e,i){void 0===e&&(e=0);var o=e%2/2,r=i?-1:1;return(Math.round(t*r-o)+o)*r}function tp(t,e){ty(t.style,e)}function tu(t){return null!=t}function tf(t,e,i){tN(t,function(o,r){o!==e&&(null==o?void 0:o.destroy)&&o.destroy(),((null==o?void 0:o.destroy)||!i)&&delete t[r]})}function tg(t){var e;null==(e=null==t?void 0:t.parentElement)||e.removeChild(t)}function tv(t,e,i,o){var r={};return!function t(e,r,n,s){var a=i?r:e;tN(e,function(i,h){if(!s&&o&&o.indexOf(h)>-1&&r[h]){i=tU(i),n[h]=[];for(var l=0;l<Math.max(i.length,r[h].length);l++)r[h][l]&&(void 0===i[l]?n[h][l]=r[h][l]:(n[h][l]={},t(i[l],r[h][l],n[h][l],s+1)))}else tI(i,!0)&&!i.nodeType?(n[h]=tD(i)?[]:{},t(i,r[h]||{},n[h],s+1),0===Object.keys(n[h]).length&&("colorAxis"!==h||0!==s)&&delete n[h]):(e[h]!==r[h]||h in e&&!(h in r))&&"__proto__"!==h&&"constructor"!==h&&(n[h]=a[h])})}(t,e,r,0),r}function tm(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function ty(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function tx(t,e){var i=function(){};return i.prototype=new t,ty(i.prototype,e),i}function tb(t,e,i,o){if(i=i||{},(null==ti?void 0:ti.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==tt)){var r=ti.createEvent("Events");r.initEvent(e,!0,!0),i=ty(r,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||ty(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});for(var n=[],s=t,a=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[e]&&(n.length&&(a=!0),n.unshift.apply(n,s.hcEvents[e])),s=Object.getPrototypeOf(s);a&&n.sort(function(t,e){return t.order-e.order}),n.forEach(function(e){!1===e.fn.call(t,i,t)&&i.preventDefault()})}o&&!i.defaultPrevented&&o.call(t,i)}var tk=function(t){return void 0===t&&(t=""),({center:.5,right:1,middle:.5,bottom:1})[t]||0};function tw(t,e){var i,o,r,n,s=!e;return t.forEach(function(t){if(t.length>1)for(n=o=t.length-1;n>0;n--)(r=t[n]-t[n-1])<0&&!s?(null==e||e(),e=void 0):r&&(void 0===i||r<i)&&(i=r)}),i}function tM(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function tS(t,e){for(var i=t.split(".");i.length&&tu(e);){var o=i.shift();if(void 0===o||"__proto__"===o)return;if("this"===o){var r=void 0;return tI(e)&&(r=e["@this"]),null!=r?r:e}var n=e[o.replace(/[\\'"]/g,"")];if(!tu(n)||"function"==typeof n||"number"==typeof n.nodeType||n===to)return;e=n}return e}function tA(t,e,i){if("width"===e){var o,r,n=Math.min(t.offsetWidth,t.scrollWidth),s=null==(o=t.getBoundingClientRect)?void 0:o.call(t).width;return s<n&&s>=n-1&&(n=Math.floor(s)),Math.max(0,n-(tA(t,"padding-left",!0)||0)-(tA(t,"padding-right",!0)||0))}if("height"===e)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(tA(t,"padding-top",!0)||0)-(tA(t,"padding-bottom",!0)||0));var a=to.getComputedStyle(t,void 0);return a&&(r=a.getPropertyValue(e),tH(i,"opacity"!==e)&&(r=tG(r))),r}var tT=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,o=t.length;for(i=0;i<o;i++)if(e(t[i],i))return t[i]};function tC(t){tu(t)&&clearTimeout(t)}function tO(t){return tI(t)&&"number"==typeof t.nodeType}function tP(t){var e=null==t?void 0:t.constructor;return!!(tI(t,!0)&&!tO(t)&&(null==e?void 0:e.name)&&"Object"!==e.name)}function tL(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function tE(t){return"string"==typeof t}function tD(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function tB(t){return"function"==typeof t}function tI(t,e){return!!t&&"object"==typeof t&&(!e||!tD(t))}function tz(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o,r=te([t],e,!0),n={},s=function(t,e){return"object"!=typeof t&&(t={}),tN(e,function(i,o){"__proto__"!==o&&"constructor"!==o&&(!tI(i,!0)||tP(i)||tO(i)?t[o]=e[o]:t[o]=s(t[o]||{},i))}),t};!0===t&&(n=r[1],r=Array.prototype.slice.call(r,2));var a=r.length;for(o=0;o<a;o++)n=s(n,r[o]);return n}function tR(t,e,i,o,r){var n,s=t;i=tH(i,tM(t));var a=t/i;for(!e&&(e=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===o&&(1===i?e=e.filter(function(t){return t%1==0}):i<=.1&&(e=[1/i]))),n=0;n<e.length&&(s=e[n],(!r||!(s*i>=t))&&(r||!(a<=(e[n]+(e[n+1]||e[n]))/2)));n++);return tl(s*i,-Math.round(Math.log(.001)/Math.LN10))}function tN(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function tW(t){var e=ti.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(to.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(to.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}}function tX(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t}function tH(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function tG(t,e){return parseInt(t,e||10)}function tY(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function tF(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function tj(t){for(var e,i,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];do{e=t;for(var n=0;n<o.length;n++)i=o[n],t=t.replace(i[0],i[1])}while(t!==e);return t}function t_(t,e,i){function o(e,i){var o=t.removeEventListener;o&&o.call(t,e,i,!1)}function r(i){var r,n;t.nodeName&&(e?(r={})[e]=!0:r=i,tN(r,function(t,e){if(i[e])for(n=i[e].length;n--;)o(e,i[e][n].fn)}))}var n="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(n,"hcEvents")){var s=n.hcEvents;if(e){var a=s[e]||[];i?(s[e]=a.filter(function(t){return i!==t.fn}),o(e,i)):(r(s),s[e]=[])}else r(s),delete n.hcEvents}}function tU(t){return tD(t)?t:[t]}function tV(t,e){var i,o,r=t.length;for(o=0;o<r;o++)t[o].safeI=o;for(t.sort(function(t,o){return 0===(i=e(t,o))?t.safeI-o.safeI:i}),o=0;o<r;o++)delete t[o].safeI}function tZ(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)}function tK(t){return tE(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)}var tq=tt.charts,t$=tt.win;function tJ(t,e,i,o){var r=e?"Highcharts error":"Highcharts warning";32===t&&(t=""+r+": Deprecated member");var n=tL(t),s=n?""+r+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(void 0!==o){var a="";n&&(s+="?"),tN(o,function(t,e){a+="\n - ".concat(e,": ").concat(t),n&&(s+=encodeURI(e)+"="+encodeURI(t))}),s+=a}tb(tt,"displayError",{chart:i,code:t,message:s,params:o},function(){if(e)throw Error(s);t$.console&&-1===tJ.messages.indexOf(s)&&console.warn(s)}),tJ.messages.push(s)}function tQ(t,e){var i,o=t.options.index,r=e.length;for(i=t.options.isInternal?r:0;i<r+1;i++)if(!e[i]||tL(o)&&o<tH(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i}(tJ||(tJ={})).messages=[];var t0={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};Math.easeInOutSine=function(t){return -.5*(Math.cos(Math.PI*t)-1)};var t1=(s=Math.random().toString(36).substring(2,9)+"-",a=0,function(){return"highcharts-"+(D?"":s)+a++});t$.jQuery&&(t$.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new tt[tE(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):tq[ta(this[0],"data-highcharts-chart")]});var t2=tt.pageLang,t3=tt.win,t5=tt.isSafari&&t3.Intl&&!t3.Intl.DateTimeFormat.prototype.formatRange,t6=function(){function t(t,e){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=t3.Date,this.update(t),this.lang=e}return t.prototype.update=function(t){var e=this;void 0===t&&(t={}),this.dTLCache={},this.options=t=tz(!0,this.options,t);var i=t.timezoneOffset,o=t.useUTC,r=t.locale;this.Date=t.Date||t3.Date||Date;var n=t.timezone;tu(o)&&(n=o?"UTC":void 0),i&&i%60==0&&(n="Etc/GMT"+(i>0?"+":"")+i/60),this.variableTimezone="UTC"!==n&&(null==n?void 0:n.indexOf("Etc/GMT"))!==0,this.timezone=n,this.lang&&r&&(this.lang.locale=r),["months","shortMonths","weekdays","shortWeekdays"].forEach(function(t){var i=/months/i.test(t),o=/short/.test(t),r={timeZone:"UTC"};r[i?"month":"weekday"]=o?"short":"long",e[t]=(i?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(function(t){return e.dateFormat(r,(i?31:1)*24*36e5*t)})})},t.prototype.toParts=function(t){var e=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},t,"es").split(/(?:, | |\/|:)/g),i=e[0],o=e[1],r=e[2];return[e[3],r-1,o,e[4],e[5],e[6],Math.floor(Number(t)||0)%1e3,"DLMXJVS".indexOf(i)].map(Number)},t.prototype.dateTimeFormat=function(t,e,i){void 0===i&&(i=this.options.locale||t2);var o=JSON.stringify(t)+i;tE(t)&&(t=this.str2dtf(t));var r=this.dTLCache[o];if(!r){null!=t.timeZone||(t.timeZone=this.timezone);try{r=new Intl.DateTimeFormat(i,t)}catch(e){/Invalid time zone/i.test(e.message)?(tJ(34),t.timeZone="UTC",r=new Intl.DateTimeFormat(i,t)):tJ(e.message,!1)}}return this.dTLCache[o]=r,(null==r?void 0:r.format(e))||""},t.prototype.str2dtf=function(t,e){void 0===e&&(e={});var i={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(i).forEach(function(o){-1!==t.indexOf(o)&&ty(e,i[o])}),e},t.prototype.makeTime=function(t,e,i,o,r,n,s){void 0===i&&(i=1),void 0===o&&(o=0);var a=this.Date.UTC(t,e,i,o,r||0,n||0,s||0);if("UTC"!==this.timezone){var h=this.getTimezoneOffset(a);if(a+=h,-1!==[2,3,8,9,10,11].indexOf(e)&&(o<5||o>20)){var l=this.getTimezoneOffset(a);h!==l?a+=l-h:h-36e5!==this.getTimezoneOffset(a-36e5)||t5||(a-=36e5)}}return a},t.prototype.parse=function(t){if(!tE(t))return null!=t?t:void 0;var e=(t=t.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(t),i=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(t);e||i||(t+="Z");var o=Date.parse(t);if(tL(o))return o+(!e||i?this.getTimezoneOffset(o):0)},t.prototype.getTimezoneOffset=function(t){if("UTC"!==this.timezone){var e=this.dateTimeFormat({timeZoneName:"shortOffset"},t,"en").split(/(GMT|:)/).map(Number),i=(e[0],e[1],e[2]),o=(e[3],e[4]),r=-(6e4*(60*(i+(void 0===o?0:o)/60)));if(tL(r))return r}return 0},t.prototype.dateFormat=function(t,e,i){var o,r=this.lang;if(!tu(e)||isNaN(e))return(null==r?void 0:r.invalidDate)||"";if(tE(t=null!=t?t:"%Y-%m-%d %H:%M:%S"))for(var n=/%\[([a-zA-Z]+)\]/g,s=void 0;s=n.exec(t);)t=t.replace(s[0],this.dateTimeFormat(s[1],e,null==r?void 0:r.locale));if(tE(t)&&-1!==t.indexOf("%")){var a=this,h=this.toParts(e),l=h[0],d=h[1],c=h[2],p=h[3],u=h[4],f=h[5],g=h[6],v=h[7],m=(null==r?void 0:r.weekdays)||this.weekdays,y=(null==r?void 0:r.shortWeekdays)||this.shortWeekdays,x=(null==r?void 0:r.months)||this.months,b=(null==r?void 0:r.shortMonths)||this.shortMonths;tN(ty({a:y?y[v]:m[v].substr(0,3),A:m[v],d:tX(c),e:tX(c,2," "),w:v,v:null!=(o=null==r?void 0:r.weekFrom)?o:"",b:b[d],B:x[d],m:tX(d+1),o:d+1,y:l.toString().substr(2,2),Y:l,H:tX(p),k:p,I:tX(p%12||12),l:p%12||12,M:tX(u),p:p<12?"AM":"PM",P:p<12?"am":"pm",S:tX(f),L:tX(g,3)},tt.dateFormats),function(i,o){if(tE(t))for(;-1!==t.indexOf("%"+o);)t=t.replace("%"+o,"function"==typeof i?i.call(a,e,a):i)})}else if(tI(t)){var k=(this.getTimezoneOffset(e)||0)/36e5,w=this.timezone||"Etc/GMT"+(k>=0?"+":"")+k,M=t.prefix,S=t.suffix;t=(void 0===M?"":M)+this.dateTimeFormat(ty({timeZone:w},t),e)+(void 0===S?"":S)}return i?tK(t):t},t.prototype.resolveDTLFormat=function(t){return tI(t,!0)?tI(t,!0)&&void 0===t.main?{main:t}:t:{main:(t=tU(t))[0],from:t[1],to:t[2]}},t.prototype.getDateFormat=function(t,e,i,o){var r=this.dateFormat("%m-%d %H:%M:%S.%L",e),n="01-01 00:00:00.000",s={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",h=a;for(a in t0){if(t&&t===t0.week&&+this.dateFormat("%w",e)===i&&r.substr(6)===n.substr(6)){a="week";break}if(t&&t0[a]>t){a=h;break}if(s[a]&&r.substr(s[a])!==n.substr(s[a]))break;"week"!==a&&(h=a)}return this.resolveDTLFormat(o[a]).main},t}(),t9=(h=function(t,e){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),t4=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t9(e,t),e.prototype.getTimeTicks=function(t,e,i,o){var r,n=this,s=[],a={},h=t.count,l=void 0===h?1:h,d=t.unitRange,c=n.toParts(e),p=c[0],u=c[1],f=c[2],g=c[3],v=c[4],m=c[5],y=(e||0)%1e3;if(null!=o||(o=1),tu(e)){if(y=d>=t0.second?0:l*Math.floor(y/l),d>=t0.second&&(m=d>=t0.minute?0:l*Math.floor(m/l)),d>=t0.minute&&(v=d>=t0.hour?0:l*Math.floor(v/l)),d>=t0.hour&&(g=d>=t0.day?0:l*Math.floor(g/l)),d>=t0.day&&(f=d>=t0.month?1:Math.max(1,l*Math.floor(f/l))),d>=t0.month&&(u=d>=t0.year?0:l*Math.floor(u/l)),d>=t0.year&&(p-=p%l),d===t0.week){l&&(e=n.makeTime(p,u,f,g,v,m,y));var x=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"),b="DLMXJVS".indexOf(x);f+=-b+o+(b<o?-7:0)}e=n.makeTime(p,u,f,g,v,m,y),n.variableTimezone&&tu(i)&&(r=i-e>4*t0.month||n.getTimezoneOffset(e)!==n.getTimezoneOffset(i));for(var k=e,w=1;k<i;)s.push(k),d===t0.year?k=n.makeTime(p+w*l,0):d===t0.month?k=n.makeTime(p,u+w*l):r&&(d===t0.day||d===t0.week)?k=n.makeTime(p,u,f+w*l*(d===t0.day?1:7)):r&&d===t0.hour&&l>1?k=n.makeTime(p,u,f,g+w*l):k+=d*l,w++;s.push(k),d<=t0.hour&&s.length<1e4&&s.forEach(function(t){t%18e5==0&&"000000000"===n.dateFormat("%H%M%S%L",t)&&(a[t]="day")})}return s.info=ty(t,{higherRanks:a,totalRange:d*l}),s},e}(t6),t8=function(){return(t8=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},t7={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"#333333",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:function(t){return Math.sqrt(1-Math.pow(t-1,2))}},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:tt.isTouchDevice?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},et=new t4(t7.time,t7.lang),ee=tt.win,ei=function(t,e,i){return"color-mix(in srgb,".concat(t,",").concat(e," ").concat(100*i,"%)")},eo=function(t){return tE(t)&&!!t&&"none"!==t},er=function(){var t;function e(t){this.rgba=[NaN,NaN,NaN,NaN],this.input=t;var i,o,r,n,s=tt.Color;if(s&&s!==e)return new s(t);if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(function(t){return new e(t[1])});else if("string"==typeof t)for(this.input=t=e.names[t.toLowerCase()]||t,r=e.parsers.length;r--&&!o;)(i=(n=e.parsers[r]).regex.exec(t))&&(o=n.parse(i));o&&(this.rgba=o)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.get=function(t){var e=this.input,i=this.rgba;if(this.output)return this.output;if("object"==typeof e&&void 0!==this.stops){var o=tz(e);return o.stops=[].slice.call(o.stops),this.stops.forEach(function(e,i){o.stops[i]=[o.stops[i][0],e.get(t)]}),o}return i&&tL(i[0])?"rgb"!==t&&(t||1!==i[3])?"a"===t?"".concat(i[3]):"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e},e.prototype.brighten=function(t){var i=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(tL(t)&&0!==t)if(tL(i[0]))for(var o=0;o<3;o++)i[o]+=tG(255*t),i[o]<0&&(i[o]=0),i[o]>255&&(i[o]=255);else e.useColorMix&&eo(this.input)&&(this.output=ei(this.input,t>0?"white":"black",Math.abs(t)));return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,i){var o=this.rgba,r=t.rgba;if(!tL(o[0])||!tL(r[0]))return e.useColorMix&&eo(this.input)&&eo(t.input)&&i<.99?ei(this.input,t.input,i):t.input||"none";var n=1!==r[3]||1!==o[3],s=function(t,e){return t+(o[e]-t)*(1-i)},a=r.slice(0,3).map(s).map(Math.round);return n&&a.push(s(r[3],3)),(n?"rgba(":"rgb(")+a.join(",")+")"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(t){return[tG(t[1]),tG(t[2]),tG(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(t){return[tG(t[1]),tG(t[2]),tG(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[tG(t[1]+t[1],16),tG(t[2]+t[2],16),tG(t[3]+t[3],16),tu(t[4])?tG(t[4]+t[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(t){return[tG(t[1],16),tG(t[2],16),tG(t[3],16),tu(t[4])?tG(t[4],16)/255:1]}}],e.useColorMix=null==(t=ee.CSS)?void 0:t.supports("color","color-mix(in srgb,red,blue 9%)"),e.None=new e(""),e}(),en=er.parse,es=tt.win,ea=function(){function t(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return t.prototype.dSetter=function(){var t=this.paths,e=null==t?void 0:t[0],i=null==t?void 0:t[1],o=this.now||0,r=[];if(1!==o&&e&&i)if(e.length===i.length&&o<1)for(var n=0;n<i.length;n++){for(var s=e[n],a=i[n],h=[],l=0;l<a.length;l++){var d=s[l],c=a[l];tL(d)&&tL(c)&&("A"!==a[0]||4!==l&&5!==l)?h[l]=d+o*(c-d):h[l]=c}r.push(h)}else r=i;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,o=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,o&&o.call(t,i,this)},t.prototype.run=function(e,i,o){var r=this,n=r.options,s=function(t){return!s.stopped&&r.step(t)},a=es.requestAnimationFrame||function(t){setTimeout(t,13)},h=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&a(h)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=o,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===t.timers.push(s)&&a(h)):(delete n.curAnim[this.prop],n.complete&&0===Object.keys(n.curAnim).length&&n.complete.call(this.elem))},t.prototype.step=function(t){var e,i,o=+new Date,r=this.options,n=this.elem,s=r.complete,a=r.duration,h=r.curAnim;return n.attr&&!n.element?e=!1:t||o>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,tN(h,function(t){!0!==t&&(i=!1)}),i&&s&&s.call(n),e=!1):(this.pos=r.easing((o-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},t.prototype.initPath=function(t,e,i){var o,r,n,s,a=t.startX,h=t.endX,l=i.slice(),d=t.isArea,c=d?2:1,p=e&&i.length>e.length&&i.hasStackedCliffs,u=null==e?void 0:e.slice();if(!u||p)return[l,l];function f(t,e){for(;t.length<r;){var i=t[0],o=e[r-t.length];if(o&&"M"===i[0]&&("C"===o[0]?t[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:t[0]=["L",i[1],i[2]]),t.unshift(i),d){var n=t.pop();t.push(t[t.length-1],n)}}}function g(t){for(;t.length<r;){var e=t[Math.floor(t.length/c)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),d){var i=t[Math.floor(t.length/c)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}}if(a&&h&&h.length){for(n=0;n<a.length;n++)if(a[n]===h[0]){o=n;break}else if(a[0]===h[h.length-a.length+n]){o=n,s=!0;break}else if(a[a.length-1]===h[h.length-a.length+n]){o=a.length-n;break}void 0===o&&(u=[])}return u.length&&tL(o)&&(r=l.length+o*c,s?(f(u,l),g(l)):(f(l,u),g(u))),[u,l]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,en(this.start).tweenTo(en(this.end),this.pos),void 0,!0)},t.timers=[],t}();function eh(t){return tI(t)?tz({duration:500,defer:0},t):{duration:500*!!t,defer:0}}function el(t,e){for(var i=ea.timers.length;i--;)ea.timers[i].elem!==t||e&&e!==ea.timers[i].prop||(ea.timers[i].stopped=!0)}var ed=function(t,e,i){var o,r,n,s,a="";tI(i)||(s=arguments,i={duration:s[2],easing:s[3],complete:s[4]}),tL(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=tz(e),tN(e,function(s,h){el(t,h),n=new ea(t,i,h),r=void 0,"d"===h&&tD(e.d)?(n.paths=n.initPath(t,t.pathArray,e.d),n.toD=e.d,o=0,r=1):t.attr?o=t.attr(h):(o=parseFloat(tA(t,h))||0,"opacity"!==h&&(a="px")),r||(r=s),"string"==typeof r&&r.match("px")&&(r=r.replace(/px/g,"")),n.run(o,r,a)})},ec=function(t,e,i){var o=eh(e),r=i?[i]:t.series,n=0,s=0;return r.forEach(function(t){var i=eh(t.options.animation);n=tI(e)&&tu(e.defer)?o.defer:Math.max(n,i.duration+i.defer),s=Math.min(o.duration,i.duration)}),t.renderer.forExport&&(n=0),{defer:Math.max(0,n-s),duration:Math.min(n,s)}},ep=function(t,e){e.renderer.globalAnimation=tH(t,e.options.chart.animation,!0)},eu=tt.SVG_NS,ef=tt.win.trustedTypes,eg=ef&&tB(ef.createPolicy)&&ef.createPolicy("highcharts",{createHTML:function(t){return t}}),ev=eg?eg.createHTML(""):"",em=function(){function t(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return t.filterUserAttributes=function(e){return tN(e,function(i,o){var r=!0;-1===t.allowedAttributes.indexOf(o)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(r=tE(i)&&t.allowedReferences.some(function(t){return 0===i.indexOf(t)})),r||(tJ(33,!1,void 0,{"Invalid attribute in config":"".concat(o)}),delete e[o]),tE(i)&&e[o]&&(e[o]=i.replace(/</g,"&lt;"))}),e},t.parseStyle=function(t){return t.split(";").reduce(function(t,e){var i=e.split(":").map(function(t){return t.trim()}),o=i.shift();return o&&i.length&&(t[o.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})]=i.join(":")),t},{})},t.setElementHTML=function(e,i){e.innerHTML=t.emptyHTML,i&&new t(i).addToDOM(e)},t.prototype.addToDOM=function(e){return function e(i,o){var r;return tU(i).forEach(function(i){var n,s=i.tagName,a=i.textContent?tt.doc.createTextNode(i.textContent):void 0,h=t.bypassHTMLFiltering;if(s)if("#text"===s)n=a;else if(-1!==t.allowedTags.indexOf(s)||h){var l="svg"===s?eu:o.namespaceURI||eu,d=tt.doc.createElementNS(l,s),c=i.attributes||{};tN(i,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(c[e]=t)}),ta(d,h?c:t.filterUserAttributes(c)),i.style&&tp(d,i.style),a&&d.appendChild(a),e(i.children||[],d),n=d}else tJ(33,!1,void 0,{"Invalid tagName in config":s});n&&o.appendChild(n),r=n}),r}(this.nodes,e)},t.prototype.parseMarkup=function(e){var i,o=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");try{i=new DOMParser().parseFromString(eg?eg.createHTML(e):e,"text/html")}catch(t){}if(!i){var r=td("div");r.innerHTML=e,i={body:r}}var n=function(e,i){var o=e.nodeName.toLowerCase(),r={tagName:o};"#text"===o&&(r.textContent=e.textContent||"");var s=e.attributes;if(s){var a={};[].forEach.call(s,function(e){"data-style"===e.name?r.style=t.parseStyle(e.value):a[e.name]=e.value}),r.attributes=a}if(e.childNodes.length){var h=[];[].forEach.call(e.childNodes,function(t){n(t,h)}),h.length&&(r.children=h)}i.push(r)};return[].forEach.call(i.body.childNodes,function(t){return n(t,o)}),o},t.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],t.allowedReferences=["https://","http://","mailto:","/","../","./","#"],t.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","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","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],t.emptyHTML=ev,t.bypassHTMLFiltering=!1,t}(),ey=tt.pageLang,ex={add:function(t,e){return t+e},divide:function(t,e){return 0!==e?t/e:""},eq:function(t,e){return t==e},each:function(t){var e=arguments[arguments.length-1];return!!tD(t)&&t.map(function(i,o){return ew(e.body,ty(tI(i)?i:{"@this":i},{"@index":o,"@first":0===o,"@last":o===t.length-1}))}).join("")},ge:function(t,e){return t>=e},gt:function(t,e){return t>e},if:function(t){return!!t},le:function(t,e){return t<=e},lt:function(t,e){return t<e},multiply:function(t,e){return t*e},ne:function(t,e){return t!=e},subtract:function(t,e){return t-e},ucfirst:tK,unless:function(t){return!t}},eb={},ek=function(t){return/^["'].+["']$/.test(t)};function ew(t,e,i){void 0===t&&(t="");for(var o,r,n,s,a=RegExp("\\{([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'’= #\\(\\)]+)\\}","gu"),h=RegExp("\\(([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'= ]+)\\)","gu"),l=[],d=/f$/,c=/\.(\d)/,p=(null==(o=null==i?void 0:i.options)?void 0:o.lang)||t7.lang,u=(null==i?void 0:i.time)||et,f=(null==i?void 0:i.numberFormatter)||eM.bind(i),g=function(t){var i;return void 0===t&&(t=""),"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:ek(t)?t.slice(1,-1):tS(t,e))},v=0;null!==(r=a.exec(t));){var m=r,y=h.exec(r[1]);y&&(r=y,s=!0),(null==n?void 0:n.isBlock)||(n={ctx:e,expression:r[1],find:r[0],isBlock:"#"===r[1].charAt(0),start:r.index,startInner:r.index+r[0].length,length:r[0].length});var x=(n.isBlock?m:r)[1].split(" ")[0].replace("#","");ex[x]&&(n.isBlock&&x===n.fn&&v++,n.fn||(n.fn=x));var b="else"===r[1];if(n.isBlock&&n.fn&&(r[1]==="/".concat(n.fn)||b))if(v)!b&&v--;else{var k=n.startInner,w=t.substr(k,r.index-k);void 0===n.body?(n.body=w,n.startInner=r.index+r[0].length):n.elseBody=w,n.find+=w+r[0],b||(l.push(n),n=void 0)}else n.isBlock||l.push(n);if(y&&!(null==n?void 0:n.isBlock))break}return l.forEach(function(o){var r,n,s=o.body,a=o.elseBody,l=o.expression,v=o.fn;if(v){var m=[o],y=[],x=l.length,b=0,k=void 0;for(n=0;n<=x;n++){var w=l.charAt(n);k||'"'!==w&&"'"!==w?k===w&&(k=""):k=w,k||" "!==w&&n!==x||(y.push(l.substr(b,n-b)),b=n+1)}for(n=ex[v].length;n--;)m.unshift(g(y[n+1]));r=ex[v].apply(e,m),o.isBlock&&"boolean"==typeof r&&(r=ew(r?s:a,e,i))}else{var M=ek(l)?[l]:l.split(":");if(r=g(M.shift()||""),M.length&&"number"==typeof r){var S=M.join(":");if(d.test(S)){var A=parseInt((S.match(c)||["","-1"])[1],10);null!==r&&(r=f(r,A,p.decimalPoint,S.indexOf(",")>-1?p.thousandsSep:""))}else r=u.dateFormat(S,r)}h.lastIndex=0,h.test(o.find)&&tE(r)&&(r='"'.concat(r,'"'))}t=t.replace(o.find,tH(r,""))}),s?ew(t,e,i):t}function eM(t,e,i,o){e*=1;var r,n,s,a,h=(t=+t||0).toString().split("e").map(Number),l=h[0],d=h[1],c=(null==(r=this===null||void 0===this?void 0:this.options)?void 0:r.lang)||t7.lang,p=(t.toString().split(".")[1]||"").split("e")[0].length,u=e,f={};null!=i||(i=c.decimalPoint),null!=o||(o=c.thousandsSep),-1===e?e=Math.min(p,20):tL(e)?e&&d<0&&((a=e+d)>=0?(l=+l.toExponential(a).split("e")[0],e=a):(l=Math.floor(l),t=e<20?+(l*Math.pow(10,d)).toFixed(e):0,d=0)):e=2,d&&(null!=e||(e=2),t=l),tL(e)&&e>=0&&(f.minimumFractionDigits=e,f.maximumFractionDigits=e),""===o&&(f.useGrouping=!1);var g=o||i,v=g?"en":(this===null||void 0===this?void 0:this.locale)||c.locale||ey,m=JSON.stringify(f)+v;return s=(null!=(n=eb[m])?n:eb[m]=new Intl.NumberFormat(v,f)).format(t),g&&(s=s.replace(/([,\.])/g,"_$1").replace(/_\,/g,null!=o?o:",").replace("_.",null!=i?i:".")),(e||0!=+s)&&(!(d<0)||u)||(s="0"),d&&0!=+s&&(s+="e"+(d<0?"":"+")+d),s}var eS={dateFormat:function(t,e,i){return et.dateFormat(t,e,i)},format:ew,helpers:ex,numberFormat:eM};(l=B||(B={})).rendererTypes={},l.getRendererType=function(t){return void 0===t&&(t=d),l.rendererTypes[t]||l.rendererTypes[d]},l.registerRendererType=function(t,e,i){l.rendererTypes[t]=e,(!d||i)&&(d=t,tt.Renderer=e)};var eA=B;(I||(I={})).distribute=function t(e,i,o){var r,n,s,a=e,h=a.reducedLen||i,l=function(t,e){return t.target-e.target},d=[],c=e.length,p=[],u=d.push,f=!0,g=0;for(r=c;r--;)g+=e[r].size;if(g>h){if(tV(e,function(t,e){return(e.rank||0)-(t.rank||0)}),e[0].rank===e[e.length-1].rank)for(var v=[[0,c-1]];v.length&&g>h;){var m=v.shift();if(!m)break;n=e[r=Math.floor((m[0]+m[1])/2)],tY(p,r)&&(g-=n.size),m[0]<r&&v.push([m[0],r-1]),r<m[1]&&v.push([r+1,m[1]])}else for(r=c-1;g>h&&r>=0;)n=e[r],tY(p,r)&&(g-=n.size),r--;p.sort(function(t,e){return e-t}).forEach(function(t){return u.apply(d,e.splice(t,1))})}for(tV(e,l),e=e.map(function(t){return{size:t.size,targets:[t.target],align:tH(t.align,.5)}});f;){for(r=e.length;r--;)n=e[r],s=(Math.min.apply(0,n.targets)+Math.max.apply(0,n.targets))/2,n.pos=th(s-n.size*n.align,0,i-n.size);for(r=e.length,f=!1;r--;)r>0&&e[r-1].pos+e[r-1].size>e[r].pos&&(e[r-1].size+=e[r].size,e[r-1].targets=e[r-1].targets.concat(e[r].targets),e[r-1].align=.5,e[r-1].pos+e[r-1].size>i&&(e[r-1].pos=i-e[r-1].size),e.splice(r,1),f=!0)}return u.apply(a,d),r=0,e.some(function(e){var n=0;return(e.targets||[]).some(function(){return(a[r].pos=e.pos+n,void 0!==o&&Math.abs(a[r].pos-a[r].target)>o)?(a.slice(0,r+1).forEach(function(t){return delete t.pos}),a.reducedLen=(a.reducedLen||i)-.1*i,a.reducedLen>.1*i&&t(a,i,o),!0):(n+=a[r].size,r++,!1)})}),tV(a,l),a};var eT=I,eC=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},eO=tt.deg2rad,eP=tt.doc,eL=tt.svg,eE=tt.SVG_NS,eD=tt.win,eB=tt.isFirefox,eI=function(){function t(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=eE,this.element="span"===e||"body"===e?td(e):eP.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},tb(this,"afterInit")}return t.prototype._defaultGetter=function(t){var e=tH(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e},t.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e,i=this.renderer,o=this.element;return t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(o),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return -1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,i,o){void 0===o&&(o=!0);var r=this.renderer,n=r.alignedObjects,s=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);var a=!i||tE(i)?i||"renderer":void 0;a&&(s&&tY(n,this),i=void 0);var h=tH(i,r[a],r),l=(h.x||0)+(t.x||0)+((h.width||0)-(t.width||0))*tk(t.align),d=(h.y||0)+(t.y||0)+((h.height||0)-(t.height||0))*tk(t.verticalAlign),c={};return t.align&&(c["text-align"]=t.align),c[e?"translateX":"x"]=Math.round(l),c[e?"translateY":"y"]=Math.round(d),o&&(this[this.placed?"animate":"attr"](c),this.placed=!0),this.alignAttr=c,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,i){var o=this,r=eh(tH(e,this.renderer.globalAnimation,!0)),n=r.defer;return eP.hidden&&(r.duration=0),0!==r.duration?(i&&(r.complete=i),tZ(function(){o.element&&ed(o,t,r)},n)):(this.attr(t,void 0,i||r.complete),tN(t,function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var i=t.indexOf(" "),o=t.substring(i+1),r=t.substring(0,i);if(r&&"none"!==r&&tt.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();var n=eP.createElementNS(eE,"tspan");ta(n,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":r,"stroke-linejoin":"round"});var s=e.querySelector("textPath")||e;[].forEach.call(s.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(t){return e.removeAttribute(t)}),n.appendChild(e)});var a=0;[].forEach.call(s.querySelectorAll("text tspan"),function(t){a+=Number(t.getAttribute("dy"))});var h=eP.createElementNS(eE,"tspan");h.textContent="​",ta(h,{x:Number(e.getAttribute("x")),dy:-a}),n.appendChild(h),s.insertBefore(n,s.firstChild)}},t.prototype.attr=function(e,i,o,r){var n,s,a,h=this.element,l=t.symbolCustomAttribs,d=this;return"string"==typeof e&&void 0!==i&&(n=e,(e={})[n]=i),"string"==typeof e?d=(this[e+"Getter"]||this._defaultGetter).call(this,e,h):(tN(e,function(t,i){a=!1,r||el(this,i),this.symbolName&&-1!==l.indexOf(i)&&(s||(this.symbolAttr(e),s=!0),a=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),a||(this[i+"Setter"]||this._defaultSetter).call(this,t,i,h)},this),this.afterSetters()),o&&o.call(this),d},t.prototype.clip=function(t){if(t&&!t.clipPath){var e=t1()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);ty(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?"url(".concat(this.renderer.url,"#").concat(t.id,")"):"none")},t.prototype.crisp=function(t,e){e=Math.round(e||t.strokeWidth||0);var i=t.x||this.x||0,o=t.y||this.y||0,r=(t.width||this.width||0)+i,n=(t.height||this.height||0)+o,s=tc(i,e),a=tc(o,e);return ty(t,{x:s,y:a,width:tc(r,e)-s,height:tc(n,e)-a}),tu(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,i){var o,r,n,s,a,h,l,d,c,p,u,f=this.renderer,g=[];tb(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],a=f.gradients,h=t.stops,c=i.radialReference,tD(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&c&&!tu(n.gradientUnits)&&(s=n,n=tz(n,f.getRadialAttr(c,s),{gradientUnits:"userSpaceOnUse"})),tN(n,function(t,e){"id"!==e&&g.push(e,t)}),tN(h,function(t){g.push(t)}),a[g=g.join(",")])p=a[g].attr("id");else{n.id=p=t1();var v=a[g]=f.createElement(r).attr(n).add(f.defs);v.radAttr=s,v.stops=[],h.forEach(function(t){0===t[1].indexOf("rgba")?(l=(o=er.parse(t[1])).get("rgb"),d=o.get("a")):(l=t[1],d=1);var e=f.createElement("stop").attr({offset:t[0],"stop-color":l,"stop-opacity":d}).add(v);v.stops.push(e)})}u="url("+f.url+"#"+p+")",i.setAttribute(e,u),i.gradient=g,t.toString=function(){return u}}})},t.prototype.css=function(t){var e,i=this.styles,o={},r=this.element,n=!i;if(i&&tN(t,function(t,e){i&&i[e]!==t&&(o[e]=t,n=!0)}),n){i&&(t=ty(i,o)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===r.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=tG(t.width)),ty(this.styles,t),e&&!eL&&this.renderer.forExport&&delete t.width;var s=eB&&t.fontSize||null;s&&(tL(s)||/^\d+$/.test(s))&&(t.fontSize+="px");var a=tz(t);r.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(function(t){return a&&delete a[t]}),a.color&&(a.fill=a.color,delete a.color)),tp(r,a)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this},t.prototype.dashstyleSetter=function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t){var o=(t=t.toLowerCase()).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(e=o.length;e--;)o[e]=""+tG(o[e])*tH(i,NaN);t=o.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t,e=this,i=e.element,o=void 0===i?{}:i,r=e.renderer,n=e.stops,s=o.ownerSVGElement,a="SPAN"===o.nodeName&&e.parentGroup||void 0;if(o.onclick=o.onmouseout=o.onmouseover=o.onmousemove=o.point=null,el(e),e.clipPath&&s){var h=e.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(h.element.id)>-1&&t.removeAttribute("clip-path")}),e.clipPath=h.destroy()}if(n){for(var l=0;l<n.length;l++)n[l].destroy();n.length=0}for(e.safeRemoveChild(o);(null==a?void 0:a.div)&&0===a.div.childNodes.length;)t=a.parentGroup,e.safeRemoveChild(a.div),delete a.div,a=t;e.alignOptions&&tm(r.alignedObjects,e),tN(e,function(t,i){var o,r,n;((null==(o=e[i])?void 0:o.parentGroup)===e||-1!==["connector","foreignObject"].indexOf(i))&&(null==(n=null==(r=e[i])?void 0:r.destroy)||n.call(r)),delete e[i]})},t.prototype.dSetter=function(t,e,i){tD(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,i){return(null==e?void 0:e.join)?(i?t+" ":"")+e.join(" "):(e||"").toString()},"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},t.prototype.fillSetter=function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},t.prototype.hrefSetter=function(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)},t.prototype.getBBox=function(e,i){var o,r,n,s=this.element,a=this.renderer,h=this.styles,l=this.textStr,d=a.cache,c=a.cacheKeys,p=s.namespaceURI===this.SVG_NS,u=tH(i,this.rotation,0),f=a.styledMode?s&&t.prototype.getStyle.call(s,"font-size"):h.fontSize,g=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,h.fontWeight,h.lineClamp,h.textOverflow,f,u]);if(g&&!e&&(o=d[g]),!o||o.polygon){if(p||a.forExport){try{n=this.fakeTS&&function(t){var e=s.querySelector(".highcharts-text-outline");e&&tp(e,{display:t})},tB(n)&&n("none"),o=s.getBBox?ty({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight,x:0,y:0},tB(n)&&n("")}catch(t){}(!o||o.width<0)&&(o={x:0,y:0,width:0,height:0})}else o=this.htmlGetBBox();r=o.height,p&&(o.height=r=({"11px,17":14,"13px,20":16})[""+(f||"")+",".concat(Math.round(r))]||r),u&&(o=this.getRotatedBox(o,u));var v={bBox:o};tb(this,"afterGetBBox",v),o=v.bBox}if(g&&(""===l||o.height>0)){for(;c.length>250;)delete d[c.shift()];d[g]||c.push(g),d[g]=o}return o},t.prototype.getBBoxCacheKey=function(t){if(tu(this.textStr)){var e=""+this.textStr;return -1===e.indexOf("<")&&(e=e.replace(/\d/g,"0")),eC([e],t,!0).join(",")}},t.prototype.getRotatedBox=function(t,e){var i=t.x,o=t.y,r=t.width,n=t.height,s=this.alignValue,a=this.translateY,h=this.rotationOriginX,l=this.rotationOriginY,d=tk(s),c=Number(this.element.getAttribute("y")||0)-(a?0:o),p=e*eO,u=(e-90)*eO,f=Math.cos(p),g=Math.sin(p),v=r*f,m=r*g,y=Math.cos(u),x=Math.sin(u),b=[void 0===h?0:h,void 0===l?0:l].map(function(t){return[t-t*f,t*g]}),k=b[0],w=k[0],M=k[1],S=b[1],A=S[0],T=i+d*(r-v)+w+S[1]+c*y,C=T+v,O=C-n*y,P=O-v,L=o+c-d*m-M+A+c*x,E=L+m,D=E-n*x,B=D-m,I=Math.min(T,C,O,P),z=Math.min(L,E,D,B),R=Math.max(T,C,O,P)-I,N=Math.max(L,E,D,B)-z;return{x:I,y:z,width:R,height:N,polygon:[[T,L],[C,E],[O,D],[P,B]]}},t.prototype.getStyle=function(t){return eD.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return -1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=tr(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,i){var o=Number(Number(t).toFixed(3));this.opacity=o,i.setAttribute(e,o)},t.prototype.reAlign=function(){var t;(null==(t=this.alignOptions)?void 0:t.width)&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(tE(t)?new RegExp("(^| )".concat(t,"( |$)")):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=t,(null==e?void 0:e.radAttr)&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.shadow=function(t){var e,i=this.renderer,o=tz((null==(e=this.parentGroup)?void 0:e.rotation)===90?{offsetX:-1,offsetY:-1}:{},tI(t)?t:{}),r=i.shadowDefinition(o);return this.attr({filter:t?"url(".concat(i.url,"#").concat(r,")"):"none"})},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype["stroke-widthSetter"]=function(t,e,i){this[e]=t,i.setAttribute(e,t)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t,e=this.getStyle("stroke-width"),i=0;return/px$/.test(e)?i=tG(e):""!==e&&(ta(t=eP.createElementNS(eE,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i},t.prototype.symbolAttr=function(e){var i=this;t.symbolCustomAttribs.forEach(function(t){i[t]=tH(e[t],i[t])}),i.attr({d:i.renderer.symbols[i.symbolName](i.x,i.y,i.width,i.height,i)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())},t.prototype.titleSetter=function(t){var e=this.element,i=e.getElementsByTagName("title")[0]||eP.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=tj(tH(t,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateTransform=function(t){void 0===t&&(t="transform");var e,i,o,r,n=this.element,s=this.foreignObject,a=this.matrix,h=this.padding,l=this.rotation,d=void 0===l?0:l,c=this.rotationOriginX,p=this.rotationOriginY,u=this.scaleX,f=this.scaleY,g=this.text,v=this.translateX,m=this.translateY,y=["translate(".concat(void 0===v?0:v,",").concat(void 0===m?0:m,")")];tu(a)&&y.push("matrix("+a.join(",")+")"),d&&(y.push("rotate("+d+" "+(null!=(i=null!=(e=null!=c?c:n.getAttribute("x"))?e:this.x)?i:0)+" "+(null!=(r=null!=(o=null!=p?p:n.getAttribute("y"))?o:this.y)?r:0)+")"),(null==g?void 0:g.element.tagName)!=="SPAN"||(null==g?void 0:g.foreignObject)||g.attr({rotation:d,rotationOriginX:(c||0)-h,rotationOriginY:(p||0)-h})),(tu(u)||tu(f))&&y.push("scale(".concat(null!=u?u:1," ").concat(null!=f?f:1,")")),y.length&&!(g||this).textPath&&((null==s?void 0:s.element)||n).setAttribute(t,y.join(" "))},t.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var i,o,r,n,s,a=this.renderer,h=this.parentGroup,l=(h||a).element||a.box,d=this.element,c=l===a.box,p=!1,u=this.added;if(tu(t)?(d.setAttribute("data-z-index",t),t*=1,this[e]===t&&(u=!1)):tu(this[e])&&d.removeAttribute("data-z-index"),this[e]=t,u){for((t=this.zIndex)&&h&&(h.handleZ=!0),s=(i=l.childNodes).length-1;s>=0&&!p;s--)n=!tu(r=(o=i[s]).getAttribute("data-z-index")),o!==d&&(t<0&&n&&!c&&!s?(l.insertBefore(d,i[s]),p=!0):(tG(r)<=t||n&&(!tu(t)||t>=0))&&(l.insertBefore(d,i[s+1]),p=!0));p||(l.insertBefore(d,i[3*!!c]),p=!0)}return p},t.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],t}();eI.prototype.strokeSetter=eI.prototype.fillSetter,eI.prototype.yGetter=eI.prototype.xGetter,eI.prototype.matrixSetter=eI.prototype.rotationOriginXSetter=eI.prototype.rotationOriginYSetter=eI.prototype.rotationSetter=eI.prototype.scaleXSetter=eI.prototype.scaleYSetter=eI.prototype.translateXSetter=eI.prototype.translateYSetter=eI.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};var ez=(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),eR=function(t){function e(i,o,r,n,s,a,h,l,d,c){var p,u=t.call(this,i,"g")||this;return u.paddingLeftSetter=u.paddingSetter,u.paddingRightSetter=u.paddingSetter,u.doUpdate=!1,u.textStr=o,u.x=r,u.y=n,u.anchorX=a,u.anchorY=h,u.baseline=d,u.className=c,u.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&u.addClass("highcharts-"+c),u.text=i.text(void 0,0,0,l).attr({zIndex:1}),"string"==typeof s&&((p=/^url\((.*?)\)$/.test(s))||u.renderer.symbols[s])&&(u.symbolKey=s),u.bBox=e.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=i.styledMode||p,u.deferredAttr={},u.alignFactor=0,u}return ez(e,t),e.prototype.alignSetter=function(t){var e=tk(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&tL(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())},e.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},e.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},e.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},e.prototype.css=function(t){if(t){var i={};t=tz(t),e.textProps.forEach(function(e){void 0!==t[e]&&(i[e]=t[e],delete t[e])}),this.text.css(i),"fontSize"in i||"fontWeight"in i||"width"in i?this.updateTextPadding():"textOverflow"in i&&this.updateBoxSize()}return eI.prototype.css.call(this,t)},e.prototype.destroy=function(){t_(this.element,"mouseenter"),t_(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),eI.prototype.destroy.call(this)},e.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},e.prototype.getBBox=function(t,e){(this.textStr&&0===this.bBox.width&&0===this.bBox.height||this.rotation)&&this.updateBoxSize();var i=this.padding,o=this.height,r=this.translateX,n=this.translateY,s=this.width,a=tH(this.paddingLeft,i),h=null!=e?e:this.rotation||0,l={width:void 0===s?0:s,height:void 0===o?0:o,x:(void 0===r?0:r)+this.bBox.x-a,y:(void 0===n?0:n)+this.bBox.y-i+this.baselineOffset};return h&&(l=this.getRotatedBox(l,h)),l},e.prototype.getCrispAdjust=function(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},e.prototype.heightSetter=function(t){this.heightSetting=t,this.doUpdate=!0},e.prototype.afterSetters=function(){t.prototype.afterSetters.call(this),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)},e.prototype.onAdd=function(){this.text.add(this),this.attr({text:tH(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&tu(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},e.prototype.paddingSetter=function(t,e){tL(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},e.prototype.rSetter=function(t,e){this.boxAttr(e,t)},e.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},e.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},e.prototype["text-alignSetter"]=function(t){this.textAlign=this["text-align"]=t,this.updateTextPadding()},e.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()},e.prototype.updateBoxSize=function(){var t,i=this.text,o={},r=this.padding,n=this.bBox=(!tL(this.widthSetting)||!tL(this.heightSetting)||this.textAlign)&&tu(i.textStr)?i.getBBox(void 0,0):e.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||n.height||0)+2*r;var s=this.renderer.fontMetrics(i);if(this.baselineOffset=r+Math.min((this.text.firstLineMetrics||s).b,n.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!i.textPath){if(!this.box){var a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();a.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)}o.x=t=this.getCrispAdjust(),o.y=(this.baseline?-this.baselineOffset:0)+t,o.width=Math.round(this.width),o.height=Math.round(this.height),this.box.attr(ty(o,this.deferredAttr)),this.deferredAttr={}}},e.prototype.updateTextPadding=function(){var t,e,i=this.text,o=i.styles.textAlign||this.textAlign;if(!i.textPath){this.updateBoxSize();var r=this.baseline?0:this.baselineOffset,n=(null!=(t=this.paddingLeft)?t:this.padding)+tk(o)*(null!=(e=this.widthSetting)?e:this.bBox.width);(n!==i.x||r!==i.y)&&(i.attr({align:o,x:n}),void 0!==r&&i.attr("y",r)),i.x=n,i.y=r}},e.prototype.widthSetter=function(t){this.widthSetting=tL(t)?t:void 0,this.doUpdate=!0},e.prototype.getPaddedWidth=function(){var t=this.padding,e=tH(this.paddingLeft,t),i=tH(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+i},e.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},e.prototype.ySetter=function(t){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},e.emptyBBox={width:0,height:0,x:0,y:0},e.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],e}(eI);function eN(t,e,i,o,r){var n=[];if(r){var s=r.start||0,a=r.end||0,h=tH(r.r,i),l=tH(r.r,o||i),d=1e-4>Math.abs(a-s-2*Math.PI);d&&(s=Math.PI/2,a=2.5*Math.PI-1e-4);var c=r.innerR,p=tH(r.open,d),u=d?0:Math.cos(s),f=d?1:Math.sin(s),g=d?0:Math.cos(a),v=d?1:Math.sin(a),m=tH(r.longArc,a-s-Math.PI<1e-4?0:1),y=["A",h,l,0,m,tH(r.clockwise,1),t+(d?.001:h*g),e+l*v];y.params={start:s,end:a,cx:t,cy:e},n.push(["M",t+h*u,e+l*f],y),tu(c)&&((y=["A",c,c,0,m,tu(r.clockwise)?1-r.clockwise:0,t+(d?-.001:c*u),e+c*f]).params={start:a,end:s,cx:t,cy:e},n.push(p?["M",t+c*g,e+c*v]:["L",t+c*g,e+c*v],y)),p||n.push(["Z"])}return n}function eW(t,e,i,o,r){return(null==r?void 0:r.r)?eX(t,e,i,o,r):[["M",t,e],["L",t+i,e],["L",t+i,e+o],["L",t,e+o],["Z"]]}function eX(t,e,i,o,r){var n=(null==r?void 0:r.r)||0;return[["M",t+n,e],["L",t+i-n,e],["A",n,n,0,0,1,t+i,e+n],["L",t+i,e+o-n],["A",n,n,0,0,1,t+i-n,e+o],["L",t+n,e+o],["A",n,n,0,0,1,t,e+o-n],["L",t,e+n],["A",n,n,0,0,1,t+n,e],["Z"]]}var eH={arc:eN,callout:function(t,e,i,o,r){var n=Math.min((null==r?void 0:r.r)||0,i,o),s=n+6,a=null==r?void 0:r.anchorX,h=(null==r?void 0:r.anchorY)||0,l=eX(t,e,i,o,{r:n});if(!tL(a)||a<i&&a>0&&h<o&&h>0)return l;if(t+a>i-s)if(h>e+s&&h<e+o-s)l.splice(3,1,["L",t+i,h-6],["L",t+i+6,h],["L",t+i,h+6],["L",t+i,e+o-n]);else if(a<i){var d=h<e+s,c=d?e:e+o,p=d?2:5;l.splice(p,0,["L",a,h],["L",t+i-n,c])}else l.splice(3,1,["L",t+i,o/2],["L",a,h],["L",t+i,o/2],["L",t+i,e+o-n]);else if(t+a<s)if(h>e+s&&h<e+o-s)l.splice(7,1,["L",t,h+6],["L",t-6,h],["L",t,h-6],["L",t,e+n]);else if(a>0){var d=h<e+s,c=d?e:e+o,p=d?1:6;l.splice(p,0,["L",a,h],["L",t+n,c])}else l.splice(7,1,["L",t,o/2],["L",a,h],["L",t,o/2],["L",t,e+n]);else h>o&&a<i-s?l.splice(5,1,["L",a+6,e+o],["L",a,e+o+6],["L",a-6,e+o],["L",t+n,e+o]):h<0&&a>s&&l.splice(1,1,["L",a-6,e],["L",a,e-6],["L",a+6,e],["L",i-n,e]);return l},circle:function(t,e,i,o){return eN(t+i/2,e+o/2,i/2,o/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o/2],["L",t+i/2,e+o],["L",t,e+o/2],["Z"]]},rect:eW,roundedRect:eX,square:eW,triangle:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o],["L",t,e+o],["Z"]]},"triangle-down":function(t,e,i,o){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+o],["Z"]]}},eG=tt.doc,eY=tt.SVG_NS,eF=tt.win,ej=function(t,e){return t.substring(0,e)+"…"},e_=function(){function t(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=null==e?void 0:e.lineHeight,this.textOutline=null==e?void 0:e.textOutline,this.ellipsis=(null==e?void 0:e.textOverflow)==="ellipsis",this.lineClamp=null==e?void 0:e.lineClamp,this.noWrap=(null==e?void 0:e.whiteSpace)==="nowrap"}return t.prototype.buildSVG=function(){var t=this.svgElement,e=t.element,i=t.renderer,o=tH(t.textStr,"").toString(),r=-1!==o.indexOf("<"),n=e.childNodes,s=!t.added&&i.box,a=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),t.styles.lineClamp,this.width].join(",");if(a!==t.textCache){t.textCache=a,delete t.actualWidth;for(var h=n.length;h--;)e.removeChild(n[h]);if(r||this.ellipsis||this.width||t.textPath||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))){if(""!==o){s&&s.appendChild(e);var l=new em(o);this.modifyTree(l.nodes),l.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("…")&&t.attr("title",this.unescapeEntities(t.textStr||"",["&lt;","&gt;"])),s&&s.removeChild(e)}}else e.appendChild(eG.createTextNode(this.unescapeEntities(o)));tE(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},t.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,o=ta(i.element,"x");for(i.firstLineMetrics=void 0;t=i.element.firstChild;)if(/^[\s\u200B]*$/.test(t.textContent||" "))i.element.removeChild(t);else break;[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),function(t,r){t.nextSibling&&t.previousSibling&&(0===r&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(t.previousSibling)),ta(t,{dy:e.getLineHeight(t.nextSibling),x:o}))});var r=this.width||0;if(r){var n=function(t,n){var s,a=t.textContent||"",h=a.replace(/([^\^])-/g,"$1- ").split(" "),l=!e.noWrap&&(h.length>1||i.element.childNodes.length>1),d=e.getLineHeight(n),c=Math.max(0,r-.8*d),p=0,u=i.actualWidth;if(l){for(var f=[],g=[];n.firstChild&&n.firstChild!==t;)g.push(n.firstChild),n.removeChild(n.firstChild);for(;h.length;)if(h.length&&!e.noWrap&&p>0&&(f.push(t.textContent||""),t.textContent=h.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,h,0===p&&u||0,r,c,function(t,e){return h.slice(0,e).join(" ").replace(/- /g,"-")}),u=i.actualWidth,p++,e.lineClamp&&p>=e.lineClamp){h.length&&(e.truncate(t,t.textContent||"",void 0,0,r,c,ej),t.textContent=(null==(s=t.textContent)?void 0:s.replace("…",""))+"…");break}g.forEach(function(e){n.insertBefore(e,t)}),f.forEach(function(e){n.insertBefore(eG.createTextNode(e),t);var i=eG.createElementNS(eY,"tspan");i.textContent="​",ta(i,{dy:d,x:o}),n.insertBefore(i,t)})}else e.ellipsis&&a&&e.truncate(t,a,void 0,0,r,c,ej)},s=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===eF.Node.TEXT_NODE?n(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(i.actualWidth=0),s(e))})};s(i.element)}},t.prototype.getLineHeight=function(t){var e=t.nodeType===eF.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h},t.prototype.modifyTree=function(t){var e=this,i=function(o,r){var n=o.attributes,s=void 0===n?{}:n,a=o.children,h=o.style,l=void 0===h?{}:h,d=o.tagName,c=e.renderer.styledMode;if("b"===d||"strong"===d?c?s.class="highcharts-strong":l.fontWeight="bold":("i"===d||"em"===d)&&(c?s.class="highcharts-emphasized":l.fontStyle="italic"),(null==l?void 0:l.color)&&(l.fill=l.color),"br"===d){s.class="highcharts-br",o.textContent="​";var p=t[r+1];(null==p?void 0:p.textContent)&&(p.textContent=p.textContent.replace(/^ +/gm,""))}else"a"===d&&a&&a.some(function(t){return"#text"===t.tagName})&&(o.children=[{children:a,tagName:"tspan"}]);"#text"!==d&&"a"!==d&&(o.tagName="tspan"),ty(o,{attributes:s,style:l}),a&&a.filter(function(t){return"#text"!==t.tagName}).forEach(i)};t.forEach(i),tb(this.svgElement,"afterModifyTree",{nodes:t})},t.prototype.truncate=function(t,e,i,o,r,n,s){var a,h,l=this.svgElement,d=l.rotation,c=[],p=i&&!o?1:0,u=(e||i||"").length,f=u;i||(r=n);var g=function(e,r){var n=r||e,s=t.parentNode;if(s&&void 0===c[n]&&s.getSubStringLength)try{c[n]=o+s.getSubStringLength(0,i?n+1:n)}catch(t){}return c[n]};if(l.rotation=0,o+(h=g(t.textContent.length))>r){for(;p<=u;)f=Math.ceil((p+u)/2),i&&(a=s(i,f)),h=g(f,a&&a.length-1),p===u?p=u+1:h>r?u=f-1:p=f;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=a||s(e||i,f)),this.ellipsis&&h>r&&this.truncate(t,t.textContent||"",void 0,0,r,n,ej)}i&&i.splice(0,f),l.actualWidth=h,l.rotation=d},t.prototype.unescapeEntities=function(t,e){return tN(this.renderer.escapes,function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),o))}),t},t}(),eU=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},eV=tt.charts,eZ=tt.deg2rad,eK=tt.doc,eq=tt.isFirefox,e$=tt.isMS,eJ=tt.isWebKit,eQ=tt.noop,e0=tt.SVG_NS,e1=tt.symbolSizes,e2=tt.win,e3=function(){function t(t,e,i,o,r,n,s){this.x=0,this.y=0;var a,h,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),d=l.element;s||l.css(this.getStyle(o||{})),t.appendChild(d),ta(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&ta(d,"xmlns",this.SVG_NS),this.box=d,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(eK.createTextNode("Created with Highcharts 12.6.0")),this.defs=this.createElement("defs").add(),this.allowHTML=n,this.forExport=r,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=l.getStyle("font-size"),this.setSize(e,i,!1),eq&&t.getBoundingClientRect&&((a=function(){tp(t,{left:0,top:0}),h=t.getBoundingClientRect(),tp(t,{left:Math.ceil(h.left)-h.left+"px",top:Math.ceil(h.top)-h.top+"px"})})(),this.unSubPixelFix=tr(e2,"resize",a))}return t.prototype.definition=function(t){return new em([t]).addToDOM(this.defs.element)},t.prototype.getReferenceURL=function(){if((eq||eJ)&&eK.getElementsByTagName("base").length){if(!tu(z)){var t=t1(),e=new em([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:t},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(t,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(eK.body);tp(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=eK.elementFromPoint(6,6);z=(null==i?void 0:i.id)==="hitme",eK.body.removeChild(e)}if(z)return tj(e2.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""},t.prototype.getStyle=function(t){return this.style=ty({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},t),this.style},t.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},t.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},t.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),tf(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null},t.prototype.createElement=function(t){return new this.Element(this,t)},t.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},t.prototype.shadowDefinition=function(t){var e=eU(["highcharts-drop-shadow-".concat(this.chartIndex)],Object.keys(t).map(function(e){return""+e+"-".concat(t[e])}),!0).join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=tz({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t);return this.defs.element.querySelector("#".concat(e))||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),e},t.prototype.getShadowFilterContent=function(t){return[{tagName:"feDropShadow",attributes:{dx:t.offsetX,dy:t.offsetY,"flood-color":t.color,"flood-opacity":Math.min(5*t.opacity,1),stdDeviation:t.width/2}}]},t.prototype.buildText=function(t){new e_(t).buildSVG()},t.prototype.getContrast=function(t){if("transparent"===t)return"#000000";var e=er.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(tL(e[0])||!er.useColorMix){var o=e.map(function(t){var e=t/255;return e<=.04?e/12.92:Math.pow((e+.055)/1.055,2.4)}),r=.2126*o[0]+.7152*o[1]+.0722*o[2];return 1.05/(r+.05)>(r+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+t+" srgb"+i+i+i+")"},t.prototype.button=function(t,e,i,o,r,n,s,a,h,l){void 0===r&&(r={});var d=this.label(t,e,i,h,void 0,void 0,l,void 0,"button"),c=this.styledMode,p=arguments,u=0;r=tz(t7.global.buttonTheme,r),c&&(delete r.fill,delete r.stroke,delete r["stroke-width"]);var f=r.states||{},g=r.style||{};delete r.states,delete r.style;var v=[em.filterUserAttributes(r)],m=[g];return c||["hover","select","disabled"].forEach(function(t,e){v.push(tz(v[0],em.filterUserAttributes(p[e+5]||f[t]||{}))),m.push(v[e+1].style),delete v[e+1].style}),tr(d.element,e$?"mouseover":"mouseenter",function(){3!==u&&d.setState(1)}),tr(d.element,e$?"mouseout":"mouseleave",function(){3!==u&&d.setState(u)}),d.setState=function(t){if(void 0===t&&(t=0),1!==t&&(d.state=u=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t]),!c){d.attr(v[t]);var e=m[t];tI(e)&&d.css(e)}},d.attr(v[0]),!c&&(d.css(ty({cursor:"default"},g)),l&&d.text.css({pointerEvents:"none"})),d.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==u&&(null==o||o.call(d,t))})},t.prototype.crispLine=function(t,e){var i=t[0],o=t[1];return tu(i[1])&&i[1]===o[1]&&(i[1]=o[1]=tc(i[1],e)),tu(i[2])&&i[2]===o[2]&&(i[2]=o[2]=tc(i[2],e)),t},t.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return tD(t)?e.d=t:tI(t)&&ty(e,t),this.createElement("path").attr(e)},t.prototype.circle=function(t,e,i){var o=tI(t)?t:void 0===t?{}:{x:t,y:e,r:i},r=this.createElement("circle");return r.xSetter=r.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},r.attr(o)},t.prototype.arc=function(t,e,i,o,r,n){tI(t)?(e=(s=t).y,i=s.r,o=s.innerR,r=s.start,n=s.end,t=s.x):s={innerR:o,start:r,end:n};var s,a=this.symbol("arc",t,e,i,i,s);return a.r=i,a},t.prototype.rect=function(t,e,i,o,r,n){var s=tI(t)?t:void 0===t?{}:{x:t,y:e,r:r,width:Math.max(i||0,0),height:Math.max(o||0,0)},a=this.createElement("rect");return this.styledMode||(void 0!==n&&(s["stroke-width"]=n,ty(s,a.crisp(s))),s.fill="none"),a.rSetter=function(t,e,i){a.r=t,ta(i,{rx:t,ry:t})},a.rGetter=function(){return a.r||0},a.attr(s)},t.prototype.roundedRect=function(t){return this.symbol("roundedRect").attr(t)},t.prototype.setSize=function(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:tH(i,!0)?void 0:0}),this.alignElements()},t.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},t.prototype.image=function(t,e,i,o,r,n){var s={preserveAspectRatio:"none"};tL(e)&&(s.x=e),tL(i)&&(s.y=i),tL(o)&&(s.width=o),tL(r)&&(s.height=r);var a=this.createElement("image").attr(s),h=function(e){a.attr({href:t}),n.call(a,e)};if(n){a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});var l=new e2.Image;tr(l,"load",h),l.src=t,l.complete&&h({})}else a.attr({href:t});return a},t.prototype.symbol=function(t,e,i,o,r,n){var s,a,h,l,d,c,p=this,u=/^url\((.*?)\)$/,f=u.test(t),g=!f&&(this.symbols[t]?t:"circle"),v=g&&this.symbols[g];if(v)"number"==typeof e&&(l=v.call(this.symbols,e||0,i||0,o||0,r||0,n)),h=this.path(l),p.styledMode||h.attr("fill","none"),ty(h,{symbolName:g||void 0,x:e,y:i,width:o,height:r}),n&&ty(h,n);else if(f){d=t.match(u)[1];var m=h=this.image(d);m.imgwidth=tH(null==n?void 0:n.width,null==(s=e1[d])?void 0:s.width),m.imgheight=tH(null==n?void 0:n.height,null==(a=e1[d])?void 0:a.height),c=function(t){return t.attr({width:t.width,height:t.height})},["width","height"].forEach(function(t){m[""+t+"Setter"]=function(t,e){this[e]=t;var i=this.alignByTranslate,o=this.element,r=this.width,s=this.height,a=this.imgwidth,h=this.imgheight,l="width"===e?a:h,d=1;n&&"within"===n.backgroundSize&&r&&s&&a&&h?(d=Math.min(r/a,s/h),ta(o,{width:Math.round(a*d),height:Math.round(h*d)})):o&&l&&o.setAttribute(e,l),!i&&a&&h&&this.translate(((r||0)-a*d)/2,((s||0)-h*d)/2)}}),tu(e)&&m.attr({x:e,y:i}),m.isImg=!0,tu(m.imgwidth)&&tu(m.imgheight)?c(m):(m.attr({width:0,height:0}),td("img",{onload:function(){var t=eV[p.chartIndex];0===this.width&&(tp(this,{position:"absolute",top:"-999em"}),eK.body.appendChild(this)),e1[d]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&c(m),this.parentNode&&this.parentNode.removeChild(this),p.asyncCounter--,p.asyncCounter||!t||t.hasLoaded||t.onload()},src:d}),this.asyncCounter++)}return h},t.prototype.clipRect=function(t,e,i,o){return this.rect(t,e,i,o,0)},t.prototype.text=function(t,e,i,o){var r={};if(o&&(this.allowHTML||!this.forExport))return this.html(t,e,i);r.x=Math.round(e||0),i&&(r.y=Math.round(i)),tu(t)&&(r.text=t);var n=this.createElement("text").attr(r);return o&&(!this.forExport||this.allowHTML)||(n.xSetter=function(t,e,i){for(var o=i.getElementsByTagName("tspan"),r=i.getAttribute(e),n=0,s=void 0;n<o.length;n++)(s=o[n]).getAttribute(e)===r&&s.setAttribute(e,t);i.setAttribute(e,t)}),n},t.prototype.fontMetrics=function(t){var e=tL(t)?t:tG(eI.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e),o=Math.round(.8*i);return{h:i,b:o,f:e}},t.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*eZ),4)),{x:-t/3*Math.sin(e*eZ),y:o}},t.prototype.pathToSegments=function(t){for(var e=[],i=[],o={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r<t.length;r++)tE(i[0])&&tL(t[r])&&i.length===o[i[0].toUpperCase()]&&t.splice(r,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[r]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[r]);return e.push(i.slice(0)),e},t.prototype.label=function(t,e,i,o,r,n,s,a,h){return new eR(this,t,e,i,o,r,n,s,a,h)},t.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},t}();ty(e3.prototype,{Element:eI,SVG_NS:e0,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:eH,draw:eQ}),eA.registerRendererType("svg",e3,!0);var e5=(p=function(t,e){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),e6=function(){return(e6=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},e9=tt.composed,e4=tt.isFirefox;function e8(t,e,i){var o,r=null==(o=this.div)?void 0:o.style;eI.prototype[""+e+"Setter"].call(this,t,e,i),r&&(i.style[e]=r[e]=t)}var e7=function(t,e){var i;if(!t.div){var o=ta(t.element,"class"),r=t.css,n=td("div",o?{className:o}:void 0,e6(e6({position:"absolute",left:""+(t.translateX||0)+"px",top:""+(t.translateY||0)+"px"},t.styles),{display:t.display,opacity:t.opacity,visibility:t.visibility}),(null==(i=t.parentGroup)?void 0:i.div)||e);t.classSetter=function(t,e,i){i.setAttribute("class",t),n.className=t},t.translateXSetter=t.translateYSetter=function(e,i){t[i]=e,n.style["translateX"===i?"left":"top"]=""+e+"px",t.doTransform=!0},t.scaleXSetter=t.scaleYSetter=function(e,i){t[i]=e,t.doTransform=!0},t.opacitySetter=t.visibilitySetter=e8,t.css=function(e){return r.call(t,e),e.cursor&&(n.style.cursor=e.cursor),e.pointerEvents&&(n.style.pointerEvents=e.pointerEvents),t},t.on=function(){return eI.prototype.on.apply({element:n,onEvents:t.onEvents},arguments),t},t.div=n}return t.div},it=function(t){function e(i,o){var r=t.call(this,i,o)||this;return e.useForeignObject?r.foreignObject=i.createElement("foreignObject").attr({zIndex:2}):r.css(e6({position:"absolute"},i.styledMode?{}:{fontFamily:i.style.fontFamily,fontSize:i.style.fontSize})),r.element.style.whiteSpace="nowrap",r}return e5(e,t),e.compose=function(t){tY(e9,this.compose)&&(t.prototype.html=function(t,i,o){return new e(this,"span").attr({text:t,x:Math.round(i),y:Math.round(o)})})},e.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},e.prototype.css=function(t){var e,i=this.element,o="SPAN"===i.tagName&&t&&"width"in t,r=o&&t.width;return o&&(delete t.width,this.textWidth=tG(r)||void 0,e=!0),(null==t?void 0:t.textOverflow)==="ellipsis"&&(t.overflow="hidden",t.whiteSpace="nowrap"),(null==t?void 0:t.lineClamp)&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),tL(Number(null==t?void 0:t.fontSize))&&(t.fontSize+="px"),ty(this.styles,t),tp(i,t),e&&this.updateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.updateTransform=function(){if(!this.added){this.alignOnAdd=!0;return}var e,i=this.element,o=this.foreignObject,r=this.oldTextWidth,n=this.renderer,s=this.rotation,a=this.rotationOriginX,h=this.rotationOriginY,l=this.scaleX,d=this.scaleY,c=this.styles,p=c.display,u=void 0===p?"inline-block":p,f=c.whiteSpace,g=this.textAlign,v=void 0===g?"left":g,m=this.textWidth,y=this.translateX,x=this.translateY,b=this.x,k=void 0===b?0:b,w=this.y,M=void 0===w?0:w;if(o||tp(i,{marginLeft:""+(void 0===y?0:y)+"px",marginTop:""+(void 0===x?0:x)+"px"}),"SPAN"===i.tagName){var S=[s,v,i.innerHTML,m,this.textAlign].join(","),A=-((null==(e=this.parentGroup)?void 0:e.padding)*1)||0,T=void 0;if(m!==r){var C=this.textPxLength?this.textPxLength:(tp(i,{width:"",whiteSpace:f||"nowrap"}),i.offsetWidth),O=m||0,P=!n.styledMode&&""===i.style.textOverflow&&i.style.webkitLineClamp;(O>r||C>O||P)&&(/[\-\s\u00AD]/.test(i.textContent||i.innerText)||"ellipsis"===i.style.textOverflow)&&(tp(i,{width:(s||l||C>O)&&tL(m)?m+"px":P?Math.min(C+1,O)+"px":"auto",display:u,whiteSpace:f||"normal"}),this.oldTextWidth=m)}o&&(tp(i,{display:"inline-block",verticalAlign:"top"}),o.attr({width:n.width,height:n.height})),S!==this.cTT&&(T=n.fontMetrics(i).b,tu(s)&&!o&&(s!==(this.oldRotation||0)||v!==this.oldAlign)&&tp(i,{transform:"rotate(".concat(s,"deg)"),transformOrigin:""+A+"% "+A+"px"}),this.getSpanCorrection(!tu(s)&&!this.textWidth&&this.textPxLength||i.offsetWidth,T,tk(v)));var L=this.xCorr,E=void 0===L?0:L,D=this.yCorr,B=void 0===D?0:D,I=(null!=a?a:k)-E-k-A,z=(null!=h?h:M)-B-M-A,R={left:""+(k+E)+"px",top:""+(M+B)+"px",textAlign:v,transformOrigin:""+I+"px "+z+"px"};(l||d)&&(R.transform="scale(".concat(null!=l?l:1,",").concat(null!=d?d:1,")")),o?(t.prototype.updateTransform.call(this),tL(k)&&tL(M)?(o.attr({x:k+E,y:M+B,width:i.offsetWidth+3,height:i.offsetHeight,"transform-origin":i.getAttribute("transform-origin")||"0 0"}),tp(i,{display:u,textAlign:v})):e4&&o.attr({width:0,height:0})):tp(i,R),this.cTT=S,this.oldRotation=s,this.oldAlign=v}},e.prototype.add=function(e){var i=this.foreignObject,o=this.renderer,r=o.box.parentNode,n=[];if(i)i.add(e),t.prototype.add.call(this,o.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(i));else{var s=void 0;if(this.parentGroup=e,e&&!(s=e.div)){for(var a=e;a;)n.push(a),a=a.parentGroup;for(var h=0,l=n.reverse();h<l.length;h++)s=e7(l[h],r)}(s||r).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this},e.prototype.textSetter=function(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,em.setElementHTML(this.element,null!=t?t:""),this.textStr=t,this.doTransform=!0)},e.prototype.alignSetter=function(t){this.alignValue=this.textAlign=t,this.doTransform=!0},e.prototype.xSetter=function(t,e){this[e]=t,this.doTransform=!0},e}(eI),ie=it.prototype;ie.visibilitySetter=ie.opacitySetter=e8,ie.ySetter=ie.rotationSetter=ie.rotationOriginXSetter=ie.rotationOriginYSetter=ie.xSetter,(u=R||(R={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},u.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return this.axis.chart.numberFormatter(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};var ii=R;(N||(N={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},tN(e.events,function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(t_(t,i,t.eventOptions[i]),delete t.eventOptions[i]),tB(e)&&(t.eventOptions[i]=e,tr(t,i,e,{order:0})))})};var io=N,ir=tt.deg2rad,is=function(){function t(t,e,i,o,r){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,tb(this,"init"),i||o||this.addLabel()}return t.prototype.addLabel=function(){var t,e,i,o,r,n=this,s=n.axis,a=s.options,h=s.chart,l=s.categories,d=s.logarithmic,c=s.names,p=n.pos,u=tH(null==(t=n.options)?void 0:t.labels,a.labels),f=s.tickPositions,g=p===f[0],v=p===f[f.length-1],m=(!u.step||1===u.step)&&1===s.tickInterval,y=f.info,x=n.label,b=this.parameters.category||(l?tH(l[p],c[p],p):p);d&&tL(b)&&(b=tl(d.lin2log(b))),s.dateTime&&(y?i=(o=h.time.resolveDTLFormat(a.dateTimeLabelFormats[!(null==(e=a.grid)?void 0:e.enabled)&&y.higherRanks[p]||y.unitName])).main:tL(b)&&(i=s.dateTime.getXDateFormat(b,a.dateTimeLabelFormats||{}))),n.isFirst=g,n.isLast=v;var k={axis:s,chart:h,dateTimeLabelFormat:i,isFirst:g,isLast:v,pos:p,tick:n,tickPositionInfo:y,value:b};tb(this,"labelFormat",k);var w=function(t){return u.formatter?u.formatter.call(t,t):u.format?(t.text=s.defaultLabelFormatter.call(t),eS.format(u.format,t,h)):s.defaultLabelFormatter.call(t)},M=w.call(k,k),S=null==o?void 0:o.list;S?n.shortenLabel=function(){for(r=0;r<S.length;r++)if(ty(k,{dateTimeLabelFormat:S[r]}),x.attr({text:w.call(k,k)}),x.getBBox().width<s.getSlotWidth(n)-2*(u.padding||0))return;x.attr({text:""})}:n.shortenLabel=void 0,m&&s._addedPlotLB&&n.moveLabel(M,u),tu(x)||n.movedLabel?x&&x.textStr!==M&&!m&&(!x.textWidth||u.style.width||x.styles.width||x.css({width:null}),x.attr({text:M}),x.textPxLength=x.getBBox().width):(n.label=x=n.createLabel(M,u),n.rotation=0)},t.prototype.createLabel=function(t,e,i){var o=this.axis,r=o.chart,n=r.renderer,s=r.styledMode,a=e.style.whiteSpace,h=tu(t)&&e.enabled?n.text(t,null==i?void 0:i.x,null==i?void 0:i.y,e.useHTML).add(o.labelGroup):void 0;return h&&(s||h.css(tz(e.style)),h.textPxLength=h.getBBox().width,!s&&a&&h.css({whiteSpace:a})),h},t.prototype.destroy=function(){tf(this,this.axis)},t.prototype.getPosition=function(t,e,i,o){var r=this.axis,n=r.chart,s=o&&n.oldChartHeight||n.chartHeight,a={x:t?tl(r.translate(e+i,void 0,void 0,o)+r.transB):r.left+r.offset+(r.opposite?(o&&n.oldChartWidth||n.chartWidth)-r.right-r.left:0),y:t?s-r.bottom+r.offset-(r.opposite?r.height:0):tl(s-r.translate(e+i,void 0,void 0,o)-r.transB)};return a.y=th(a.y,-1e9,1e9),tb(this,"afterGetPosition",{pos:a}),a},t.prototype.getLabelPosition=function(t,e,i,o,r,n,s,a){var h,l,d=this.axis,c=d.transA,p=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,u=d.staggerLines,f=d.tickRotCorr||{x:0,y:0},g=o||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),v=r.distance,m={};return h=0===d.side?i.rotation?-v:-i.getBBox().height:2===d.side?f.y+v:Math.cos(i.rotation*ir)*(f.y-i.getBBox(!1,0).height/2),tu(r.y)&&(h=0===d.side&&d.horiz?r.y+h:r.y),t=t+tH(r.x,[0,1,0,-1][d.side]*v)+g+f.x-(n&&o?n*c*(p?-1:1):0),e=e+h-(n&&!o?n*c*(p?1:-1):0),u&&(l=s/(a||1)%u,d.opposite&&(l=u-l-1),e+=l*(d.labelOffset/u)),m.x=t,m.y=Math.round(e),tb(this,"afterGetLabelPosition",{pos:m,tickmarkOffset:n,index:s}),m},t.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},t.prototype.getMarkPath=function(t,e,i,o,r,n){return void 0===r&&(r=!1),n.crispLine([["M",t,e],["L",t+(r?0:-i),e+(r?i:0)]],o)},t.prototype.handleOverflow=function(t){var e,i,o=this.axis,r=o.options.labels,n=t.x,s=o.chart.chartWidth,a=o.chart.spacing,h=tH(o.labelLeft,Math.min(o.pos,a[3])),l=tH(o.labelRight,Math.max(o.isRadial?0:o.pos+o.len,s-a[1])),d=this.label,c=this.rotation,p=tk(o.labelAlign||d.attr("align")),u=d.getBBox().width,f=o.getSlotWidth(this),g=f,v=1;c||"justify"!==r.overflow?c<0&&n-p*u<h?i=Math.round(n/Math.cos(c*ir)-h):c>0&&n+p*u>l&&(i=Math.round((s-n)/Math.cos(c*ir))):(n-p*u<h?g=t.x+g*(1-p)-h:n+(1-p)*u>l&&(g=l-t.x+g*p,v=-1),(g=Math.min(f,g))<f&&"center"===o.labelAlign&&(t.x+=v*(f-g-p*(f-Math.min(u,g)))),(u>g||o.autoRotation&&(null==(e=null==d?void 0:d.styles)?void 0:e.width))&&(i=g)),i&&d&&(this.shortenLabel?this.shortenLabel():d.css(ty({},{width:Math.floor(i)+"px",lineClamp:+!o.isRadial})))},t.prototype.moveLabel=function(t,e){var i,o=this,r=o.label,n=o.axis,s=!1;r&&r.textStr===t?(o.movedLabel=r,s=!0,delete o.label):tN(n.ticks,function(e){s||e.isNew||e===o||!e.label||e.label.textStr!==t||(o.movedLabel=e.label,s=!0,e.labelPos=o.movedLabel.xy,delete e.label)}),!s&&(o.labelPos||r)&&(i=o.labelPos||r.xy,o.movedLabel=o.createLabel(t,e,i),o.movedLabel&&o.movedLabel.attr({opacity:0}))},t.prototype.render=function(t,e,i){var o,r=this.axis,n=r.horiz,s=this.pos,a=tH(this.tickmarkOffset,r.tickmarkOffset),h=this.getPosition(n,s,a,e),l=h.x,d=h.y,c=r.pos,p=c+r.len,u=n?l:d,f=tH(i,null==(o=this.label)?void 0:o.newOpacity,1);!r.chart.polar&&(tl(u)<c||u>p)&&(i=0),null!=i||(i=1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(h,i),this.renderLabel(h,e,f,t),this.isNew=!1,tb(this,"afterRender")},t.prototype.renderGridLine=function(t,e){var i,o=this.axis,r=o.options,n={},s=this.pos,a=this.type,h=tH(this.tickmarkOffset,o.tickmarkOffset),l=o.chart.renderer,d=this.gridLine,c=r.gridLineWidth,p=r.gridLineColor,u=r.gridLineDashStyle;"minor"===this.type&&(c=r.minorGridLineWidth,p=r.minorGridLineColor,u=r.minorGridLineDashStyle),d||(o.chart.styledMode||(n.stroke=p,n["stroke-width"]=c||0,n.dashstyle=u),a||(n.zIndex=1),t&&(e=0),this.gridLine=d=l.path().attr(n).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(o.gridGroup)),d&&(i=o.getPlotLinePath({value:s+h,lineWidth:d.strokeWidth(),force:"pass",old:t,acrossPanes:!1}))&&d[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e){var i=this.axis,o=i.options,r=i.chart.renderer,n=this.type,s=i.tickSize(n?n+"Tick":"tick"),a=t.x,h=t.y,l=tH(o["minor"!==n?"tickWidth":"minorTickWidth"],!n&&i.isXAxis?1:0),d=o["minor"!==n?"tickColor":"minorTickColor"],c=this.mark,p=!c;s&&(i.opposite&&(s[0]=-s[0]),!c&&(this.mark=c=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||c.attr({stroke:d,"stroke-width":l})),c[p?"attr":"animate"]({d:this.getMarkPath(a,h,s[0],c.strokeWidth(),i.horiz,r),opacity:e}))},t.prototype.renderLabel=function(t,e,i,o){var r=this.axis,n=r.horiz,s=r.options,a=this.label,h=s.labels,l=h.step,d=tH(this.tickmarkOffset,r.tickmarkOffset),c=t.x,p=t.y,u=!0;a&&tL(c)&&(a.xy=t=this.getLabelPosition(c,p,a,n,h,d,o,l),(!this.isFirst||this.isLast||s.showFirstLabel)&&(!this.isLast||this.isFirst||s.showLastLabel)?n&&!e&&0!==i&&this.handleOverflow(t):u=!1,l&&o%l&&(u=!1),u&&tL(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis;t&&!this.isNew&&(t.animate({opacity:0},void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),ia=ii.xAxis,ih=ii.yAxis,il=io.registerEventOptions,id=tt.deg2rad,ic=function(t,e){return tR(e,void 0,void 0,tH(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount)};ty(t7,{xAxis:ia,yAxis:tz(ia,ih)});var ip=function(){function t(t,e,i){this.init(t,e,i)}return t.prototype.init=function(t,e,i){void 0===i&&(i=this.coll);var o,r="xAxis"===i,n=this.isZAxis||(t.inverted?!r:r);this.chart=t,this.horiz=n,this.isXAxis=r,this.coll=i,tb(this,"init",{userOptions:e}),this.opposite=tH(e.opposite,this.opposite),this.side=tH(e.side,this.side,n?2*!this.opposite:this.opposite?1:3),this.setOptions(e);var s=this.options,a=s.labels;null!=this.type||(this.type=s.type||"linear"),null!=this.uniqueNames||(this.uniqueNames=null==(o=s.uniqueNames)||o),tb(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=tH(s.reversed,this.reversed),this.visible=s.visible,this.zoomEnabled=s.zoomEnabled,this.hasNames="category"===this.type||!0===s.categories,this.categories=tD(s.categories)&&s.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=tu(s.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},null!=this.len||(this.len=0),this.minRange=this.userMinRange=s.minRange||s.maxZoom,this.range=s.range,this.offset=s.offset||0,this.max=void 0,this.min=void 0;var h=tH(s.crosshair,tU(t.options.tooltip.crosshairs)[+!r]);this.crosshair=!0===h?{}:h,-1===t.axes.indexOf(this)&&(r?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),tQ(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&r&&!tu(this.reversed)&&(this.reversed=!0),this.labelRotation=tL(a.rotation)?a.rotation:void 0,il(this,s),tb(this,"afterInit")},t.prototype.setOptions=function(t){var e=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=tz(e,"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},t7[this.coll],t),tb(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(){var t,e,i=this.axis,o=this.chart,r=o.numberFormatter,n=tL(this.value)?this.value:NaN,s=i.chart.time,a=i.categories,h=this.dateTimeLabelFormat,l=t7.lang,d=l.numericSymbols,c=l.numericSymbolMagnitude||1e3,p=i.logarithmic?Math.abs(n):i.tickInterval,u=null==d?void 0:d.length;if(a)e="".concat(this.value);else if(h)e=s.dateFormat(h,n,!0);else if(u&&d&&p>=1e3)for(;u--&&void 0===e;)p>=(t=Math.pow(c,u+1))&&10*n%t==0&&null!==d[u]&&0!==n&&(e=r(n/t,-1,void 0,void 0,o)+d[u]);return null!=e||(e=r(n,-1,void 0,1e4>Math.abs(n)?"":void 0,o)),e},t.prototype.getSeriesExtremes=function(){var t,e=this;tb(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(function(i){if(i.reserveSpace()){var o=i.options,r=void 0,n=o.threshold,s=void 0,a=void 0;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(n||0)&&(n=void 0),e.isXAxis)(r=i.getColumn("x")).length&&(r=e.logarithmic?r.filter(function(t){return t>0}):r,s=(t=i.getXExtremes(r)).min,a=t.max,tL(s)||s instanceof Date||(r=r.filter(tL),s=(t=i.getXExtremes(r)).min,a=t.max),r.length&&(e.dataMin=Math.min(tH(e.dataMin,s),s),e.dataMax=Math.max(tH(e.dataMax,a),a)));else{var h=i.applyExtremes();tL(h.dataMin)&&(s=h.dataMin,e.dataMin=Math.min(tH(e.dataMin,s),s)),tL(h.dataMax)&&(a=h.dataMax,e.dataMax=Math.max(tH(e.dataMax,a),a)),tu(n)&&(e.threshold=n),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),tb(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,r,n){var s,a=this.linkedParent||this,h=o&&a.old?a.old.min:a.min;if(!tL(h))return NaN;var l=a.minPixelPadding,d=(a.isOrdinal||(null==(s=a.brokenAxis)?void 0:s.hasBreaks)||a.logarithmic&&r)&&!!a.lin2val,c=1,p=0,u=o&&a.old?a.old.transA:a.transA,f=0;return u||(u=a.transA),i&&(c*=-1,p=a.len),a.reversed&&(c*=-1,p-=c*(a.sector||a.len)),e?(f=(t=t*c+p-l)/u+h,d&&(f=a.lin2val(f))):(d&&(t=a.val2lin(t)),f=c*(t-h)*u+p+c*l+(tL(n)?u*n:0),a.isRadial||(f=tl(f))),f},t.prototype.toPixels=function(t,e){var i,o;return this.translate(null!=(o=null==(i=this.chart)?void 0:i.time.parse(t))?o:NaN,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){var e,i,o,r,n,s=this,a=s.chart,h=s.left,l=s.top,d=t.old,c=t.value,p=t.lineWidth,u=d&&a.oldChartHeight||a.chartHeight,f=d&&a.oldChartWidth||a.chartWidth,g=s.transB,v=t.translatedValue,m=t.force;function y(t,e,i){return"pass"!==m&&(t<e||t>i)&&(m?t=th(t,e,i):n=!0),t}var x={value:c,lineWidth:p,old:d,force:m,acrossPanes:t.acrossPanes,translatedValue:v};return tb(this,"getPlotLinePath",x,function(t){e=o=(v=th(v=tH(v,s.translate(c,void 0,void 0,d)),-1e9,1e9))+g,i=r=u-v-g,tL(v)?s.horiz?(i=l,r=u-s.bottom+(s.options.isInternal?0:a.scrollablePixelsY||0),e=o=y(e,h,h+s.width)):(e=h,o=f-s.right+(a.scrollablePixelsX||0),i=r=y(i,l,l+s.height)):(n=!0,m=!1),t.path=n&&!m?void 0:a.renderer.crispLine([["M",e,i],["L",o,r]],p||1)}),x.path},t.prototype.getLinearTickPositions=function(t,e,i){var o,r,n,s=tl(Math.floor(e/t)*t),a=tl(Math.ceil(i/t)*t),h=[];if(tl(s+t)===s&&(n=20),this.single)return[e];for(o=s;o<=a&&(h.push(o),(o=tl(o+t,n))!==r);)r=o;return h},t.prototype.getMinorTickInterval=function(){var t=this.options,e=t.minorTicks,i=t.minorTickInterval;return!0===e?tH(i,"auto"):!1!==e?i:void 0},t.prototype.getMinorTickPositions=function(){var t,e,i=this.options,o=this.tickPositions,r=this.minorTickInterval,n=this.pointRangePadding||0,s=(this.min||0)-n,a=(this.max||0)+n,h=(null==(t=this.brokenAxis)?void 0:t.hasBreaks)?this.brokenAxis.unitLength:a-s,l=[];if(h&&h/r<this.len/3){var d=this.logarithmic;if(d)this.paddedTicks.forEach(function(t,e,i){e&&l.push.apply(l,d.getLogTickPositions(r,i[e-1],i[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(r),s,a,i.startOfWeek));else for(e=s+(o[0]-s)%r;e<=a&&e!==l[0];e+=r)l.push(e)}return 0!==l.length&&this.trimTicks(l),l},t.prototype.adjustForMinRange=function(){var t,e,i,o,r,n,s,a=this.options,h=this.logarithmic,l=this.chart.time,d=this.max,c=this.min,p=this.minRange;this.isXAxis&&void 0===p&&!h&&(p=tu(a.min)||tu(a.max)||tu(a.floor)||tu(a.ceiling)?null:Math.min(5*(tw(this.series.map(function(t){var e=t.getColumn("x");return t.xIncrement?e.slice(0,2):e}))||0),this.dataMax-this.dataMin)),tL(d)&&tL(c)&&tL(p)&&d-c<p&&(r=this.dataMax-this.dataMin>=p,o=(p-d+c)/2,n=[c-o,null!=(t=l.parse(a.min))?t:c-o],r&&(n[2]=h?h.log2lin(this.dataMin):this.dataMin),s=[(c=ts(n))+p,null!=(e=l.parse(a.max))?e:c+p],r&&(s[2]=h?h.log2lin(this.dataMax):this.dataMax),(d=tn(s))-c<p&&(n[0]=d-p,n[1]=null!=(i=l.parse(a.min))?i:d-p,c=ts(n))),this.minRange=p,this.min=c,this.max=d},t.prototype.getClosest=function(){var t,e;if(this.categories)e=1;else{var i=[];this.series.forEach(function(t){var o=t.closestPointRange,r=t.getColumn("x");1===r.length?i.push(r[0]):t.sorted&&tu(o)&&t.reserveSpace()&&(e=tu(e)?Math.min(e,o):o)}),i.length&&(i.sort(function(t,e){return t-e}),t=tw([i]))}return t&&e?Math.min(t,e):t||e},t.prototype.nameToX=function(t){var e,i=tD(this.options.categories),o=i?this.categories:this.names,r=t.options.x;return t.series.requireSorting=!1,tu(r)||(r=this.uniqueNames&&o?i?o.indexOf(t.name):tH(o.keys[t.name],-1):t.series.autoIncrement()),-1===r?!i&&o&&(e=o.length):tL(r)&&(e=r),void 0!==e?(this.names[e]=t.name,this.names.keys[t.name]=e):t.x&&(e=t.x),e},t.prototype.updateNames=function(){var t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null,(!e.points||e.isDirtyData)&&(t.max=Math.max(t.max||0,e.dataTable.rowCount-1),e.processData(),e.generatePoints());var i=e.getColumn("x").slice();e.data.forEach(function(e,o){var r=i[o];(null==e?void 0:e.options)&&void 0!==e.name&&void 0!==(r=t.nameToX(e))&&r!==e.x&&(i[o]=e.x=r)}),e.dataTable.setColumn("x",i)}))},t.prototype.setAxisTranslation=function(){var t,e,i,o=this,r=o.max-o.min,n=o.linkedParent,s=!!o.categories,a=o.isXAxis,h=o.axisPointRange||0,l=0,d=0,c=o.transA;(a||s||h)&&(e=o.getClosest(),n?(l=n.minPointOffset,d=n.pointRangePadding):o.series.forEach(function(t){var i=s?1:a?tH(t.options.pointRange,e,0):o.axisPointRange||0,r=t.options.pointPlacement;if(h=Math.max(h,i),!o.single||s){var n=t.is("xrange")?!a:a;l=Math.max(l,n&&tE(r)?0:i/2),d=Math.max(d,n&&"on"===r?0:i)}}),i=(null==(t=o.ordinal)?void 0:t.slope)&&e?o.ordinal.slope/e:1,o.minPointOffset=l*=i,o.pointRangePadding=d*=i,o.pointRange=Math.min(h,o.single&&s?1:r),a&&(o.closestPointRange=e)),o.translationSlope=o.transA=c=o.staticScale||o.len/(r+d||1),o.transB=o.horiz?o.left:o.bottom,o.minPixelPadding=c*l,tb(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){var t=this.max,e=this.min;return tL(t)&&tL(e)&&t-e||void 0},t.prototype.setTickInterval=function(t){var e,i,o,r,n,s,a,h,l,d=this.categories,c=this.chart,p=this.dataMax,u=this.dataMin,f=this.dateTime,g=this.isXAxis,v=this.logarithmic,m=this.options,y=this.softThreshold,x=c.time,b=tL(this.threshold)?this.threshold:void 0,k=this.minRange||0,w=m.ceiling,M=m.floor,S=m.linkedTo,A=m.softMax,T=m.softMin,C=tL(S)&&(null==(e=c[this.coll])?void 0:e[S]),O=m.tickPixelInterval,P=m.maxPadding,L=m.minPadding,E=0,D=tL(m.tickInterval)&&m.tickInterval>=0?m.tickInterval:void 0;if(f||d||C||this.getTickAmount(),h=tH(this.userMin,x.parse(m.min)),l=tH(this.userMax,x.parse(m.max)),C?(this.linkedParent=C,n=C.getExtremes(),this.min=tH(n.min,n.dataMin),this.max=tH(n.max,n.dataMax),this.type!==C.type&&tJ(11,!0,c)):(y&&tu(b)&&tL(p)&&tL(u)&&(u>=b?(s=b,L=0):p<=b&&(a=b,P=0)),this.min=tH(h,s,u),this.max=tH(l,a,p)),tL(this.max)&&tL(this.min)&&(v&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,tH(u,this.min))&&tJ(10,!0,c),this.min=tl(v.log2lin(this.min),16),this.max=tl(v.log2lin(this.max),16)),this.range&&tL(u)&&(this.userMin=this.min=h=Math.max(u,this.minFromRange()||0),this.userMax=l=this.max,this.range=void 0)),tb(this,"foundExtremes"),this.adjustForMinRange(),tL(this.min)&&tL(this.max)){if(!tL(this.userMin)&&tL(T)&&T<this.min&&(this.min=h=T),!tL(this.userMax)&&tL(A)&&A>this.max&&(this.max=l=A),d||this.axisPointRange||(null==(i=this.stacking)?void 0:i.usePercentage)||C||(E=this.max-this.min)&&(!tu(h)&&L&&(this.min-=E*L),!tu(l)&&P&&(this.max+=E*P)),!tL(this.userMin)&&tL(M)&&(this.min=Math.max(this.min,M)),!tL(this.userMax)&&tL(w)&&(this.max=Math.min(this.max,w)),y&&tL(u)&&tL(p)){var B=b||0;!tu(h)&&this.min<B&&u>=B?this.min=m.minRange?Math.min(B,this.max-k):B:!tu(l)&&this.max>B&&p<=B&&(this.max=m.minRange?Math.max(B,this.min+k):B)}!c.polar&&this.min>this.max&&(tu(m.min)?this.max=this.min:tu(m.max)&&(this.min=this.max)),E=this.max-this.min}if(this.min!==this.max&&tL(this.min)&&tL(this.max)?C&&!D&&O===C.options.tickPixelInterval?this.tickInterval=D=C.tickInterval:this.tickInterval=tH(D,this.tickAmount?E/Math.max(this.tickAmount-1,1):void 0,d?1:E*O/Math.max(this.len,O)):this.tickInterval=1,g&&!t){var I=this.min!==(null==(o=this.old)?void 0:o.min)||this.max!==(null==(r=this.old)?void 0:r.max);this.series.forEach(function(t){var e;t.forceCrop=null==(e=t.forceCropping)?void 0:e.call(t),t.processData(I)}),tb(this,"postProcessData",{hasExtremesChanged:I})}this.setAxisTranslation(),tb(this,"initialAxisTranslation"),this.pointRange&&!D&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));var z=tH(m.minTickInterval,f&&!this.series.some(function(t){return!t.sorted})?this.closestPointRange:0);!D&&z&&this.tickInterval<z&&(this.tickInterval=z),f||v||D||(this.tickInterval=ic(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e,i,o,r=this.options,n=r.tickPositions,s=r.tickPositioner,a=this.getMinorTickInterval(),h=!this.isPanning,l=h&&r.startOnTick,d=h&&r.endOnTick,c=[];if(this.tickmarkOffset=this.categories&&"between"===r.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&tu(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==r.allowDecimals),n)c=n.slice();else if(tL(this.min)&&tL(this.max)){if(!(null==(t=this.ordinal)?void 0:t.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))c=[this.min,this.max],tJ(19,!1,this.chart);else if(this.dateTime)c=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,r.units),this.min,this.max,r.startOfWeek,null==(e=this.ordinal)?void 0:e.positions,this.closestPointRange,!0);else if(this.logarithmic)c=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var p=this.tickInterval,u=p;u<=2*p;)if(c=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&c.length>this.tickAmount)this.tickInterval=ic(this,u*=1.1);else break;c.length>this.len&&(c=[c[0],c[c.length-1]])[0]===c[1]&&(c.length=1),s&&(this.tickPositions=c,(o=s.apply(this,[this.min,this.max,this]))&&(c=o))}this.isDirty||c.length===(null==(i=this.tickPositions)?void 0:i.length)||(this.isDirty=!0),this.tickPositions=c,this.minorTickInterval="auto"===a&&this.tickInterval?this.tickInterval/r.minorTicksPerMajor:a,this.paddedTicks=c.slice(0),this.trimTicks(c,l,d),!this.isLinked&&tL(this.min)&&tL(this.max)&&(this.single&&c.length<2&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),n||o||this.adjustTickAmount()),tb(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],r=t[t.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(tb(this,"trimTicks"),!this.isLinked||!this.grid){if(e&&o!==-1/0)this.min=o;else for(;this.min-n>t[0];)t.shift();if(i)this.max=r;else for(;this.max+n<t[t.length-1];)t.pop();0===t.length&&tu(o)&&!this.options.tickPositions&&t.push((r+o)/2)}},t.prototype.alignToOthers=function(){var t,e=this,i=e.chart,o=[this],r=e.options,n=i.options.chart,s="yAxis"===this.coll&&n.alignThresholds,a=[];if(e.thresholdAlignment=void 0,(!1!==n.alignTicks&&r.alignTicks||s)&&!1!==r.startOnTick&&!1!==r.endOnTick&&!e.logarithmic){var h=function(t){var e=t.horiz,i=t.options;return[e?i.left:i.top,i.width,i.height,i.pane].join(",")},l=h(this);i[this.coll].forEach(function(i){var r=i.series;r.length&&r.some(function(t){return t.visible})&&i!==e&&h(i)===l&&(t=!0,o.push(i))})}if(t&&s){o.forEach(function(t){var i=t.getThresholdAlignment(e);tL(i)&&a.push(i)});var d=a.length>1?a.reduce(function(t,e){return t+e},0)/a.length:void 0;o.forEach(function(t){t.thresholdAlignment=d})}return t},t.prototype.getThresholdAlignment=function(t){if((!tL(this.dataMin)||this!==t&&this.series.some(function(t){var e;return t.isDirty||t.isDirtyData||(null==(e=t.xAxis)?void 0:e.isDirty)}))&&this.getSeriesExtremes(),tL(this.threshold)){var e=th((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,i=t.tickAmount;tu(t.tickInterval)||i||!(this.len<e)||this.isRadial||this.logarithmic||!t.startOnTick||!t.endOnTick||(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),i<4&&(this.finalTickAmt=i,i=5),this.tickAmount=i},t.prototype.adjustTickAmount=function(){var t,e,i,o=this,r=o.finalTickAmt,n=o.max,s=o.min,a=o.options,h=o.tickPositions,l=o.tickAmount,d=o.thresholdAlignment,c=null==h?void 0:h.length,p=tH(o.threshold,o.softThreshold?0:null),u=o.tickInterval,f=function(){return h.push(tl(h[h.length-1]+u))},g=function(){return h.unshift(tl(h[0]-u))};if(tL(d)&&(i=0===d?0:1===d?l-1:Math.round(th(d*(l-1),1,l-2)),a.reversed&&(i=l-1-i)),o.hasData()&&tL(s)&&tL(n)){var v=function(){o.transA*=(c-1)/(l-1),o.min=a.startOnTick?h[0]:Math.min(s,h[0]),o.max=a.endOnTick?h[h.length-1]:Math.max(n,h[h.length-1])};if(tL(i)&&tL(o.threshold)){for(;h[i]!==p||h.length!==l||h[0]>s||h[h.length-1]<n;){for(h.length=0,h.push(o.threshold);h.length<l;)void 0===h[i]||h[i]>o.threshold?g():f();if(u>8*o.tickInterval)break;u*=2}v()}else if(c<l){for(;h.length<l;)h.length%2||s===p?f():g();v()}if(tu(r)){for(e=t=h.length;e--;)(3===r&&e%2==1||r<=2&&e>0&&e<t-1)&&h.splice(e,1);o.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t,e,i,o,r,n=this.coll,s=this.stacking,a=!1,h=!1;this.series.forEach(function(t){var e;a=a||t.isDirtyData||t.isDirty,h=h||(null==(e=t.xAxis)?void 0:e.isDirty)||!1}),this.setAxisSize();var l=this.len!==(null==(t=this.old)?void 0:t.len);l||a||h||this.isLinked||this.forceRedraw||this.userMin!==(null==(e=this.old)?void 0:e.userMin)||this.userMax!==(null==(i=this.old)?void 0:i.userMax)||this.alignToOthers()?(s&&"yAxis"===n&&s.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),s&&"xAxis"===n&&s.buildStacks(),this.isDirty||(this.isDirty=l||this.min!==(null==(o=this.old)?void 0:o.min)||this.max!==(null==(r=this.old)?void 0:r.max))):s&&s.cleanStacks(),a&&delete this.allExtremes,tb(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,o,r){var n=this;void 0===i&&(i=!0);var s=this.chart;this.series.forEach(function(t){delete t.kdTree}),tb(this,"setExtremes",r=ty(r,{min:t=s.time.parse(t),max:e=s.time.parse(e)}),function(t){n.userMin=t.min,n.userMax=t.max,n.eventArgs=t,i&&s.redraw(o)})},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],o=this.horiz,r=this.width=Math.round(tF(tH(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),n=this.height=Math.round(tF(tH(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),s=this.top=Math.round(tF(tH(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(tF(tH(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-n-s,this.right=t.chartWidth-r-a,this.len=Math.max(o?r:n,0),this.pos=o?a:s},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?tl(t.lin2log(this.min)):this.min,max:t?tl(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min,o=e?e.lin2log(this.max):this.max;return null===t||t===-1/0?t=i:t===1/0?t=o:i>t?t=i:o<t&&(t=o),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=((t-90*this.side)%360+360)%360,i={align:"center"};return tb(this,"autoLabelAlign",i,function(t){e>15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")}),i.align},t.prototype.tickSize=function(t){var e,i=this.options,o=tH(i["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),r=i["tick"===t?"tickLength":"minorTickLength"];o&&r&&("inside"===i[t+"Position"]&&(r=-r),e=[r,o]);var n={tickSize:e};return tb(this,"afterTickSize",n),n.tickSize},t.prototype.labelMetrics=function(){var t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||t.box)},t.prototype.unsquish=function(){var t,e,i=this.options.labels,o=i.padding||0,r=this.horiz,n=this.tickInterval,s=this.len/((+!!this.categories+this.max-this.min)/n),a=i.rotation,h=tl(.8*this.labelMetrics().h),l=Math.max(this.max-this.min,0),d=function(t){var e=(t+2*o)/(s||1);return(e=e>1?Math.ceil(e):1)*n>l&&t!==1/0&&s!==1/0&&l&&(e=Math.ceil(l/n)),tl(e*n)},c=n,p=Number.MAX_VALUE;if(r){if(!i.staggerLines&&(tL(a)?e=[a]:s<i.autoRotationLimit&&(e=i.autoRotation)),e)for(var u=void 0,f=void 0,g=0,v=e;g<v.length;g++){var m=v[g];(m===a||m&&m>=-90&&m<=90)&&(f=(u=d(Math.abs(h/Math.sin(id*m))))+Math.abs(m/360))<p&&(p=f,t=m,c=u)}}else c=d(.75*h);return this.autoRotation=e,this.labelRotation=tH(t,tL(a)?a:0),i.step?n:c},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,r=Math.max(this.tickPositions.length-!this.categories,1),n=e.margin[3];if(t&&tL(t.slotWidth))return t.slotWidth;if(i&&o.step<2&&!this.isRadial)return o.rotation?0:(this.staggerLines||1)*this.len/r;if(!i){var s=o.style.width;if(void 0!==s)return parseInt(String(s),10);if(!this.opposite&&n)return n-e.spacing[3]}return .33*e.chartWidth},t.prototype.renderUnsquish=function(){var t,e=this.chart,i=e.renderer,o=this.tickPositions,r=this.ticks,n=this.options.labels,s=n.style,a=this.horiz,h=this.getSlotWidth(),l=Math.max(1,Math.round(h-(a?2*(n.padding||0):n.distance||0))),d={},c=this.labelMetrics(),p=s.lineClamp,u=null!=p?p:Math.floor(this.len/(o.length*c.h))||1,f=0;tE(n.rotation)||(d.rotation=n.rotation||0),o.forEach(function(t){var e,i=r[t];i.movedLabel&&i.replaceMovedLabel();var o=(null==(e=i.label)?void 0:e.textPxLength)||0;o>f&&(f=o)}),this.maxLabelLength=f,this.autoRotation?f>l&&f>c.h?d.rotation=this.labelRotation:this.labelRotation=0:h&&(t=l),d.rotation&&(t=f>.5*e.chartHeight?.33*e.chartHeight:f,p||(u=1)),this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(d.align=this.labelAlign),o.forEach(function(e){var i=r[e],o=null==i?void 0:i.label,n=s.width,a={};o&&(o.attr(d),i.shortenLabel?i.shortenLabel():t&&!n&&"nowrap"!==s.whiteSpace&&(t<(o.textPxLength||0)||"SPAN"===o.element.tagName)?o.css(ty(a,{width:""+t+"px",lineClamp:u})):!o.styles.width||a.width||n||o.css({width:"auto"}),i.rotation=d.rotation)},this),this.tickRotCorr=i.rotCorr(c.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&tu(this.min)&&tu(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,o=this.horiz,r=this.opposite,n=this.options.title,s=this.chart.styledMode;this.axisTitle||((e=n.textAlign)||(e=(o?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[n.align]),this.axisTitle=i.text(n.text||"",0,0,n.useHTML).attr({zIndex:7,rotation:n.rotation||0,align:e}).addClass("highcharts-axis-title"),s||this.axisTitle.css(tz(n.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),s||n.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new is(this,t)},t.prototype.createGroups=function(){var t=this,e=this.axisParent,i=this.chart,o=this.coll,r=this.options,n=i.renderer,s=function(i,s,a){return n.g(i).attr({zIndex:a}).addClass("highcharts-".concat(o.toLowerCase()).concat(s," ")+(t.isRadial?"highcharts-radial-axis".concat(s," "):"")+(r.className||"")).add(e)};this.axisGroup||(this.gridGroup=s("grid","-grid",r.gridZIndex),this.axisGroup=s("axis","",r.zIndex),this.labelGroup=s("axis-labels","-labels",r.labels.zIndex))},t.prototype.getOffset=function(){var t,e,i,o,r=this,n=r.chart,s=r.horiz,a=r.options,h=r.side,l=r.ticks,d=r.tickPositions,c=r.coll,p=n.inverted&&!r.isZAxis?[1,0,3,2][h]:h,u=r.hasData(),f=a.title,g=a.labels,v=tL(a.crossing),m=n.axisOffset,y=n.clipOffset,x=[-1,1,1,-1][h],b=0,k=0,w=0;if(r.showAxis=t=u||a.showEmpty,r.staggerLines=r.horiz&&g.staggerLines||void 0,r.createGroups(),u||r.isLinked?(d.forEach(function(t){r.generateTick(t)}),r.renderUnsquish(),r.reserveSpaceDefault=0===h||2===h||({1:"left",3:"right"})[h]===r.labelAlign,tH(g.reserveSpace,!v&&null,"center"===r.labelAlign||null,r.reserveSpaceDefault)&&d.forEach(function(t){w=Math.max(l[t].getLabelSize(),w)}),r.staggerLines&&(w*=r.staggerLines),r.labelOffset=w*(r.opposite?-1:1)):tN(l,function(t,e){t.destroy(),delete l[e]}),(null==f?void 0:f.text)&&!1!==f.enabled&&(r.addTitle(t),t&&!v&&!1!==f.reserveSpace&&(r.titleOffset=b=r.axisTitle.getBBox()[s?"height":"width"],k=tu(e=f.offset)?0:tH(f.margin,s?5:10))),r.renderLine(),r.offset=x*tH(a.offset,m[h]?m[h]+(a.margin||0):0),r.tickRotCorr=r.tickRotCorr||{x:0,y:0},o=0===h?-r.labelMetrics().h:2===h?r.tickRotCorr.y:0,i=Math.abs(w)+k,w&&(i-=o,i+=x*(s?tH(g.y,r.tickRotCorr.y+x*g.distance):tH(g.x,x*g.distance))),r.axisTitleMargin=tH(e,i),r.getMaxLabelDimensions&&(r.maxLabelDimensions=r.getMaxLabelDimensions(l,d)),"colorAxis"!==c&&y){var M=this.tickSize("tick");m[h]=Math.max(m[h],(r.axisTitleMargin||0)+b+x*r.offset,i,(null==d?void 0:d.length)&&M?M[0]+x*r.offset:0);var S=!r.axisLine||a.offset?0:r.axisLine.strokeWidth()/2;y[p]=Math.max(y[p],S)}tb(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,r=this.horiz,n=this.left+(i?this.width:0)+o,s=e.chartHeight-this.bottom-(i?this.height:0)+o;return i&&(t*=-1),e.renderer.crispLine([["M",r?this.left:n,r?s:this.top],["L",r?e.chartWidth-this.right:n,r?s:e.chartHeight-this.bottom]],t)},t.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}))},t.prototype.getTitlePosition=function(t){var e=this.horiz,i=this.left,o=this.top,r=this.len,n=this.options.title,s=e?i:o,a=this.opposite,h=this.offset,l=n.x,d=n.y,c=this.chart.renderer.fontMetrics(t),p=t?Math.max(t.getBBox(!1,0).height-c.h-1,0):0,u={low:s+(e?0:r),middle:s+r/2,high:s+(e?r:0)}[n.align],f=(e?o+this.height:i)+(e?1:-1)*(a?-1:1)*(this.axisTitleMargin||0)+[-p,p,c.f,-p][this.side],g={x:e?u+l:f+(a?this.width:0)+h+l,y:e?f+d-(a?this.height:0)+h:u+d};return tb(this,"afterGetTitlePosition",{titlePosition:g}),g},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new is(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,i){var o,r=this.isLinked,n=this.ticks;(!r||t>=this.min&&t<=this.max||(null==(o=this.grid)?void 0:o.isColumn))&&(n[t]||(n[t]=new is(this,t)),i&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},t.prototype.render=function(){var t,e,i=this,o=i.chart,r=i.logarithmic,n=o.renderer,s=i.options,a=i.isLinked,h=i.tickPositions,l=i.axisTitle,d=i.ticks,c=i.minorTicks,p=i.alternateBands,u=s.stackLabels,f=s.alternateGridColor,g=s.crossing,v=i.tickmarkOffset,m=i.axisLine,y=i.showAxis,x=eh(n.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,c,p].forEach(function(t){tN(t,function(t){t.isActive=!1})}),tL(g)){var b=this.isXAxis?o.yAxis[0]:o.xAxis[0],k=[1,-1,-1,1][this.side];if(b){var w=b.toPixels(g,!0);i.horiz&&(w=b.len-w),i.offset=k*w}}if(i.hasData()||a){var M=i.chart.hasRendered&&i.old&&tL(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,M)}),h.length&&(h.forEach(function(t,e){i.renderTick(t,e,M)}),v&&(0===i.min||i.single)&&(d[-1]||(d[-1]=new is(i,-1,null,!0)),d[-1].render(-1))),f&&h.forEach(function(n,s){e=void 0!==h[s+1]?h[s+1]+v:i.max-v,s%2==0&&n<i.max&&e<=i.max+(o.polar?-v:v)&&(p[n]||(p[n]=new tt.PlotLineOrBand(i,{})),t=n+v,p[n].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:f,className:"highcharts-alternate-grid"},p[n].render(),p[n].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[d,c,p].forEach(function(t){var e=[],i=x.duration;tN(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),tZ(function(){for(var i=e.length;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==p&&o.hasRendered&&i?i:0)}),m&&(m[m.isPlaced?"animate":"attr"]({d:this.getLinePath(m.strokeWidth())}),m.isPlaced=!0,m[y?"show":"hide"](y)),l&&y&&(l[l.isNew?"attr":"animate"](i.getTitlePosition(l)),l.isNew=!1),(null==u?void 0:u.enabled)&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,tb(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,i=e.plotLinesAndBands,o=this.eventOptions;if(tb(this,"destroy",{keepEvents:t}),t||t_(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){tf(t)}),i)for(var r=i.length;r--;)i[r].destroy();for(var n in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[n]=e.plotLinesAndBandsGroups[n].destroy();tN(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=o},t.prototype.drawCrosshair=function(t,e){var i,o,r,n,s,a,h=this,l=this.crosshair,d=null==(i=null==l?void 0:l.snap)||i,c=this.chart,p=this.cross;if(tb(this,"drawCrosshair",{e:t,point:e}),t||(t=null==(o=this.cross)?void 0:o.e),l&&!1!==(tu(e)||!d)){if(clearTimeout(this.crossShowTimer),d?tu(e)&&(n=tH("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):n=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),tu(n)&&(a={value:e&&(this.isXAxis?e.x:tH(e.stackY,e.y)),translatedValue:n},c.polar&&ty(a,{isCrosshair:!0,chartX:null==t?void 0:t.chartX,chartY:null==t?void 0:t.chartY,point:e}),r=this.getPlotLinePath(a)||null),!tu(r))return void this.hideCrosshair();s=this.categories&&!this.isRadial,this.crossShowTimer=tZ(function(){var e=h.cross;e||(h.cross=e=c.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(s?"category ":"thin ")+(l.className||"")).attr({zIndex:tH(l.zIndex,2)}).add(),!c.styledMode&&(e.attr({stroke:l.color||(s?er.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":tH(l.width,1)}).css({"pointer-events":"none"}),l.dashStyle&&e.attr({dashstyle:l.dashStyle}))),e.show().animate({d:r},eh(null==l?void 0:l.animation)),s&&!l.width&&e.attr({"stroke-width":h.transA}),h.cross&&(h.cross.e=t)},(!p||"hidden"===p.attr("visibility"))&&l.showDelay||0)}else this.hideCrosshair();tb(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),tb(this,"afterHideCrosshair")},t.prototype.update=function(t,e){var i=this.chart;t=tz(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,tH(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,r=o.length;r--;)o[r]&&o[r].remove(!1);tm(e.axes,this),tm(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,tH(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],t}();!function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function i(){if("datetime"!==this.type){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new o(this))}t.compose=function(t){return t.keepProps.includes("dateTime")||(t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,tr(t,"afterSetType",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i,o,r=e||[["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]],n=r[r.length-1],s=t0[n[0]],a=n[1];for(i=0;i<r.length;i++)if(s=t0[(n=r[i])[0]],a=n[1],r[i+1]){var h=(s*a[a.length-1]+t0[r[i+1][0]])/2;if(t<=h){o=h/t;break}}s===t0.year&&t<5*s&&(a=[1,2,5]);var l=tR(t/s,a,"year"===n[0]?Math.max(tM(t/s),1):1);return{unitRange:s,count:l,unitName:n[0],match:o}},t.prototype.getXDateFormat=function(t,e){var i=this.axis,o=i.chart.time;return i.closestPointRange?o.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||o.resolveDTLFormat(e.year).main:o.resolveDTLFormat(e.day).main},t}();t.Additions=o}(W||(W={}));var iu=W;!function(t){function e(){"logarithmic"!==this.type?this.logarithmic=void 0:null!=this.logarithmic||(this.logarithmic=new o(this))}function i(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}t.compose=function(t){return t.keepProps.includes("logarithmic")||(t.keepProps.push("logarithmic"),tr(t,"afterSetType",e),tr(t,"afterInit",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,o){var r=this.axis,n=r.len,s=r.options,a=[];if(o||(this.minorAutoInterval=void 0),t>=.5)t=Math.round(t),a=r.getLinearTickPositions(t,e,i);else if(t>=.08){var h=Math.floor(e),l=void 0,d=void 0,c=void 0,p=void 0,u=void 0,f=void 0,g=void 0;for(l=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],d=h;d<i+1&&!g;d++)for(c=0,p=l.length;c<p&&!g;c++)(u=this.log2lin(this.lin2log(d)*l[c]))>e&&(!o||f<=i)&&void 0!==f&&a.push(f),f>i&&(g=!0),f=u}else{var v=this.lin2log(e),m=this.lin2log(i),y=o?r.getMinorTickInterval():s.tickInterval,x=s.tickPixelInterval/(o?5:1),b=o?n/r.tickPositions.length:n;t=tR(t=tH("auto"===y?null:y,this.minorAutoInterval,(m-v)*x/(b||1))),a=r.getLinearTickPositions(t,v,m).map(this.log2lin),o||(this.minorAutoInterval=t/5)}return o||(r.tickInterval=t),a},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=o}(X||(X={}));var ig=X;!function(t){var e;function i(t){return this.addPlotBandOrLine(t,"plotBands")}function o(t,i){var o=this,r=this.userOptions,n=new e(this,t);if(this.visible&&(n=n.render()),n){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(function(t){o.addPlotBandOrLine(t)})),i){var s=r[i]||[];s.push(t),r[i]=s}this.plotLinesAndBands.push(n)}return n}function r(t){return this.addPlotBandOrLine(t,"plotLines")}function n(t,e,i){i=i||this.options;var o,r,n=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),s=[],a=this.horiz,h=!tL(this.min)||!tL(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,l=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),d=1;if(l&&n)for(h&&(r=l.toString()===n.toString(),d=0),o=0;o<l.length;o+=2){var c=l[o],p=l[o+1],u=n[o],f=n[o+1];("M"===c[0]||"L"===c[0])&&("M"===p[0]||"L"===p[0])&&("M"===u[0]||"L"===u[0])&&("M"===f[0]||"L"===f[0])&&(a&&u[1]===c[1]?(u[1]+=d,f[1]+=d):a||u[2]!==c[2]||(u[2]+=d,f[2]+=d),s.push(["M",c[1],c[2]],["L",p[1],p[2]],["L",f[1],f[2]],["L",u[1],u[2]],["Z"])),s.isFlat=r}return s}function s(t){this.removePlotBandOrLine(t)}function a(t){var e=this.plotLinesAndBands,i=this.options,o=this.userOptions;if(e){for(var r=e.length;r--;)e[r].id===t&&e[r].destroy();[i.plotLines||[],o.plotLines||[],i.plotBands||[],o.plotBands||[]].forEach(function(e){var i;for(r=e.length;r--;)(null==(i=e[r])?void 0:i.id)===t&&tm(e,e[r])})}}function h(t){this.removePlotBandOrLine(t)}t.compose=function(t,l){var d=l.prototype;return d.addPlotBand||(e=t,ty(d,{addPlotBand:i,addPlotLine:r,addPlotBandOrLine:o,getPlotBandPath:n,removePlotBand:s,removePlotLine:h,removePlotBandOrLine:a})),l}}(H||(H={}));var iv=H,im=function(){return(im=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},iy=function(){function t(t,e){this.axis=t,this.options=e,this.id=e.id}return t.compose=function(e,i){return tr(e,"afterInit",function(){var t=this;this.labelCollectors.push(function(){for(var e,i=[],o=0,r=t.axes;o<r.length;o++)for(var n=r[o],s=0,a=n.plotLinesAndBands;s<a.length;s++){var h=a[s],l=h.label,d=h.options;!l||(null==(e=null==d?void 0:d.label)?void 0:e.allowOverlap)||i.push(l)}return i})}),iv.compose(t,i)},t.prototype.render=function(){var t=this;tb(this,"render");var e,i,o,r,n=this.axis,s=this.options,a=n.horiz,h=n.logarithmic,l=s.color,d=s.events,c=s.zIndex,p=void 0===c?0:c,u=n.chart,f=u.renderer,g=u.time,v={},m=g.parse(s.to),y=g.parse(s.from),x=g.parse(s.value),b=s.borderWidth,k=s.label,w=this.label,M=this.svgElem,S=[],A=tu(y)&&tu(m),T=tu(x),C=!M,O={class:"highcharts-plot-"+(A?"band ":"line ")+(s.className||"")},P=A?"bands":"lines";if(!n.chart.styledMode&&(T?(O.stroke=l||"#999999",O["stroke-width"]=tH(s.width,1),s.dashStyle&&(O.dashstyle=s.dashStyle)):A&&(O.fill=l||"#e6e9ff",b&&(O.stroke=s.borderColor,O["stroke-width"]=b))),v.zIndex=p,P+="-"+p,(r=n.plotLinesAndBandsGroups[P])||(n.plotLinesAndBandsGroups[P]=r=f.g("plot-"+P).attr(v).add()),M||(this.svgElem=M=f.path().attr(O).add(r)),tu(x))S=n.getPlotLinePath({value:null!=(e=null==h?void 0:h.log2lin(x))?e:x,lineWidth:M.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(tu(y)&&tu(m)))return;S=n.getPlotBandPath(null!=(i=null==h?void 0:h.log2lin(y))?i:y,null!=(o=null==h?void 0:h.log2lin(m))?o:m,s)}return!this.eventsAdded&&d&&(tN(d,function(e,i){null==M||M.on(i,function(e){d[i].apply(t,[e,t])})}),this.eventsAdded=!0),(C||!M.d)&&(null==S?void 0:S.length)?M.attr({d:S}):M&&(S?(M.show(),M.animate({d:S})):M.d&&(M.hide(),w&&(this.label=w=w.destroy()))),k&&(tu(k.text)||tu(k.formatter))&&(null==S?void 0:S.length)&&n.width>0&&n.height>0&&!S.isFlat?(k=tz(im({align:a&&A?"center":void 0,x:a?!A&&4:10,verticalAlign:!a&&A?"middle":void 0,y:a?A?16:10:A?6:-4,rotation:a&&!A?90:0},A?{inside:!0}:{}),k),this.renderLabel(k,S,A,p)):w&&w.hide(),this},t.prototype.renderLabel=function(t,e,i,o){var r,n,s,a=this.axis,h=a.chart.renderer,l=t.inside,d=this.label;d||(this.label=d=h.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||""),zIndex:o}),a.chart.styledMode||d.css(tz({color:null==(n=null==(r=a.chart.options.title)?void 0:r.style)?void 0:n.color,fontSize:"0.8em",textOverflow:i&&!l?"":"ellipsis"},t.style)),d.add());var c=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],p=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],u=tn(c),f=tn(p),g=ts(c)-u;d.align(t,!1,{x:u,y:f,width:g,height:ts(p)-f}),d.alignAttr.y-=h.fontMetrics(d).b,(!d.alignValue||"left"===d.alignValue||tu(l))&&d.css({width:((null==(s=t.style)?void 0:s.width)||(i&&l?g:90===d.rotation?a.height-(d.alignAttr.y-a.top):(t.clip?a.width+a.left:a.chart.chartWidth)-d.alignAttr.x))+"px"}),d.show(!0)},t.prototype.getLabelText=function(t){return tu(t.formatter)?t.formatter.call(this,this):t.text},t.prototype.destroy=function(){tm(this.axis.plotLinesAndBands,this),delete this.axis,tf(this)},t}(),ix=eS.format,ib=tt.composed,ik=tt.dateFormats,iw=tt.doc,iM=tt.isSafari,iS=eT.distribute,iA=function(t){clearTimeout(t.hideTimer),clearTimeout(t.showTimer)},iT=function(){function t(t,e,i){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=t,this.init(t,e),this.pointer=i}return t.prototype.bodyFormatter=function(t){return t.map(function(t){var e=t.series.tooltipOptions,i=t.formatPrefix||"point";return(e[i+"Formatter"]||t.tooltipFormatter).call(t,e[i+"Format"]||"",t)})},t.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var i=null==e?void 0:e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},t.prototype.defaultFormatter=function(t){var e,i=this.points||tU(this);return(e=(e=[t.headerFooterFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.headerFooterFormatter(i[0],!0)),e},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),tg(this.container)),tC(this.hideTimer),iA(this)},t.prototype.getAnchor=function(t,e){var i,o,r=this.chart,n=this.pointer,s=r.inverted,a=r.plotTop,h=r.plotLeft;if((null==(i=(t=tU(t))[0].series)?void 0:i.yAxis)&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=n.normalize(e)),o=[e.chartX-h,e.chartY-a];else if(t[0].tooltipPos)o=t[0].tooltipPos;else{var l=0,d=0;t.forEach(function(t){var e=t.pos(!0);e&&(l+=e[0],d+=e[1])}),l/=t.length,d/=t.length,this.shared&&t.length>1&&e&&(s?l=e.chartX:d=e.chartY),o=[l-h,d-a]}var c={point:t[0],ret:o};return tb(this,"getAnchor",c),c.ret.map(Math.round)},t.prototype.getClassName=function(t,e,i){var o=this.options,r=t.series,n=r.options;return[o.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+tH(t.colorIndex,r.colorIndex),null==n?void 0:n.className].filter(tE).join(" ")},t.prototype.getLabel=function(t){var e,i=void 0===t?{anchorX:0,anchorY:0}:t,o=i.anchorX,r=i.anchorY,n=this,s=this.chart.styledMode,a=this.options,h=this.split&&this.allowShared,l=this.container,d=this.chart.renderer;if(this.label){var c=!this.label.hasClass("highcharts-label");(!h&&c||h&&!c)&&this.destroy()}if(!this.label){if(this.outside){var p=this.chart,u=p.options.chart.style,f=eA.getRendererType();this.container=l=tt.doc.createElement("div"),l.className="highcharts-tooltip-container "+(p.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),tp(l,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,((null==u?void 0:u.zIndex)||0)+3)}),this.renderer=d=new f(l,0,0,u,void 0,void 0,d.styledMode)}if(h?this.label=d.g("tooltip"):(this.label=d.label("",o,r,a.shape||"callout",void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),s||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth||0}).css(a.style).css({pointerEvents:a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),n.outside){var g=this.label;[g.xSetter,g.ySetter].forEach(function(t,e){g[e?"ySetter":"xSetter"]=function(i){t.call(g,n.distance),g[e?"y":"x"]=i,l&&(l.style[e?"top":"left"]=""+i+"px")}})}this.label.attr({zIndex:8}).shadow(null!=(e=a.shadow)?e:!a.fixed).add()}return l&&!l.parentElement&&tt.doc.body.appendChild(l),this.label},t.prototype.getPlayingField=function(){var t=iw.body,e=iw.documentElement,i=this.chart,o=this.distance,r=this.outside;return{width:r?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*o-2:i.chartWidth,height:r?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}},t.prototype.getPosition=function(t,e,i){var o,r,n,s=this.distance,a=this.chart,h=this.outside,l=this.pointer,d=a.inverted,c=a.plotLeft,p=a.plotTop,u=a.polar,f=i.plotX,g=void 0===f?0:f,v=i.plotY,m=void 0===v?0:v,y={},x=d&&i.h||0,b=this.getPlayingField(),k=b.height,w=b.width,M=l.getChartPosition(),S=function(t){return t*M.scaleX},A=function(t){return t*M.scaleY},T=function(i){var o="x"===i;return[i,o?w:k,o?t:e].concat(h?[o?S(t):A(e),o?M.left-s+S(g+c):M.top-s+A(m+p),0,o?w:k]:[o?t:e,o?g+c:m+p,o?c:p,o?c+a.plotWidth:p+a.plotHeight])},C=T("y"),O=T("x"),P=!!i.negative;!u&&(null==(r=null==(o=a.hoverSeries)?void 0:o.yAxis)?void 0:r.reversed)&&(P=!P);var L=!this.followPointer&&tH(i.ttBelow,!u&&!d===P),E=function(t,e,i,o,r,n,a){var l=h?"y"===t?A(s):S(s):s,d=(i-o)/2,c=o<r-s,p=r+s+o<e,u=r-l-i+d,f=r+l-d;if(L&&p)y[t]=f;else if(!L&&c)y[t]=u;else if(c)y[t]=Math.min(a-o,u-x<0?u:u-x);else{if(!p)return y[t]=0,!1;y[t]=Math.max(n,f+x+i>e?f:f+x)}},D=function(t,e,i,o,r){if(r<s||r>e-s)return!1;r<i/2?y[t]=1:r>e-o/2?y[t]=e-o-2:y[t]=r-i/2},B=function(t){var e;C=(e=[O,C])[0],O=e[1],n=t},I=function(){!1!==E.apply(0,C)?!1!==D.apply(0,O)||n||(B(!0),I()):n?y.x=y.y=0:(B(!0),I())};return(d&&!u||this.len>1)&&B(),I(),h&&(y.x-=M.left,y.y-=M.top),y},t.prototype.getFixedPosition=function(t,e,i){var o,r=i.series,n=this.chart,s=this.options,a=this.split,h=s.position,l=h.relativeTo,d=s.shared||(null==(o=null==r?void 0:r.yAxis)?void 0:o.isRadial)&&("pane"===l||!l)?"plotBox":l,c="chart"===d?n.renderer:n[d]||n.getClipBox(r,!0);return{x:c.x+(c.width-t)*tk(h.align)+h.x,y:c.y+(c.height-e)*tk(h.verticalAlign)+(!a&&h.y||0)}},t.prototype.hide=function(t){var e=this;iA(this),t=tH(t,this.options.hideDelay),this.isHidden||(this.hideTimer=tZ(function(){var i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t?150:t,complete:function(){i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=tH(e.outside,!!(t.scrollablePixelsX||t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(t){return!!(!this.followPointer&&this.options.stickOnContact&&(!t||this.pointer.inClass(t.target,"highcharts-tooltip")))},t.prototype.move=function(t,e,i,o){var r=this,n=this.followPointer,s=this.options,a=eh(!n&&!this.isHidden&&!s.fixed&&s.animation),h=n||(this.len||0)>1,l={x:t,y:e};h?l.anchorX=l.anchorY=NaN:(l.anchorX=i,l.anchorY=o),a.step=function(){return r.drawTracker()},this.getLabel().animate(l,a)},t.prototype.refresh=function(t,e){var i=this,o=this,r=this.chart,n=this.options,s=this.pointer,a=this.shared,h=tU(t),l=h[0],d=n.format,c=n.formatter||o.defaultFormatter,p=r.styledMode,u=o.allowShared;if(n.enabled&&l.series){iA(this),o.allowShared=!(!tD(t)&&t.series&&t.series.noSharedTooltip),u=u&&!o.allowShared,o.followPointer=!o.split&&l.series.tooltipOptions.followPointer;var f=o.getAnchor(t,e),g=f[0],v=f[1];a&&o.allowShared&&(s.applyInactiveState(h),h.forEach(function(t){return t.setState("hover")}),l.points=h),this.len=h.length;var m=tE(d)?ix(d,l,r):c.call(l,o,l);l.points=void 0;var y=l.series;this.distance=tH(y.tooltipOptions.distance,16),!1===m?this.hide():this.showTimer=tZ(function(){if(o.split&&o.allowShared)o.renderSplit(m,h);else{var t=g,a=v;if(e&&s.isDirectTouch&&(t=e.chartX-r.plotLeft,a=e.chartY-r.plotTop),!(r.polar||!1===y.options.clip||h.some(function(e){return s.isDirectTouch||e.series.shouldShowTooltip(t,a)})))return void o.hide();var d=o.getLabel(u&&o.tt||{});(!n.style.width||p)&&d.css({width:(i.outside?i.getPlayingField():r.spacingBox).width-2*n.padding+"px"}),d.attr({class:o.getClassName(l),text:tD(m)?m.join(""):m}),i.outside&&d.attr({x:th(d.x||0,0,i.getPlayingField().width-(d.width||0)-1)}),p||d.attr({stroke:n.borderColor||l.color||y.color||"#666666"}),o.updatePosition({plotX:g,plotY:v,negative:l.negative,ttBelow:l.ttBelow,series:y,h:f[2]||0})}o.isHidden&&o.label&&o.label.attr({opacity:1}).show(),o.isHidden=!1},o.isHidden&&n.showDelay||0),tb(this,"refresh")}},t.prototype.renderSplit=function(t,e){var i,o,r=this,n=this,s=n.chart,a=n.chart,h=a.chartWidth,l=a.chartHeight,d=a.plotHeight,c=a.plotLeft,p=a.plotTop,u=a.scrollablePixelsY,f=a.scrollablePixelsX,g=a.styledMode,v=n.distance,m=n.options,y=n.options,x=y.fixed,b=y.position,k=y.positioner,w=n.pointer,M=(null==(i=s.scrollablePlotArea)?void 0:i.scrollingContainer)||{},S=M.scrollLeft,A=void 0===S?0:S,T=M.scrollTop,C=void 0===T?0:T,O=n.outside&&"number"!=typeof f?iw.documentElement.getBoundingClientRect():{left:A,right:A+h,top:C,bottom:C+l},P=n.getLabel(),L=this.renderer||s.renderer,E=!!(null==(o=s.xAxis[0])?void 0:o.opposite),D=w.getChartPosition(),B=D.left,I=D.top,z=k||x,R=p+C,N=0,W=d-(void 0===u?0:u),X=function(t,e,i,o,r,s){if(void 0===r&&(r=[0,0]),void 0===s&&(s=!0),i.isHeader)h=E?0:W,a=th(r[0]-t/2,O.left,O.right-t-(n.outside?B:0));else if(x&&i){var a,h,l=n.getFixedPosition(t,e,i);a=l.x,h=l.y-R}else h=r[1]-R,a=th(a=s?r[0]-t-v:r[0]+v,s?a:O.left,O.right);return{x:a,y:h}};tE(t)&&(t=[!1,t]);var H=t.slice(0,e.length+1).reduce(function(t,i,o){if(!1!==i&&""!==i){var r=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:d,series:{}},s=r.isHeader,a=s?n:r.series,h=a.tt=function(t,e,i){var o,r=t,s=e.isHeader,a=e.series,h=a.tooltipOptions||m;if(!r){var l={padding:h.padding,r:h.borderRadius};g||(l.fill=h.backgroundColor,l["stroke-width"]=null!=(o=h.borderWidth)?o:x&&!s?0:1),r=L.label("",0,0,h[s?"headerShape":"shape"]||(x&&!s?"rect":"callout"),void 0,void 0,h.useHTML).addClass(n.getClassName(e,!0,s)).attr(l).add(P)}return r.isActive=!0,r.attr({text:i}),g||r.css(h.style).attr({stroke:h.borderColor||e.color||a.color||"#333333"}),r}(a.tt,r,i.toString()),l=h.getBBox(),u=l.width+h.strokeWidth();s&&(N=l.height,W+=N,E&&(R-=N));var f=function(t){var e,i,o=t.isHeader,r=t.plotX,n=void 0===r?0:r,s=t.plotY,a=void 0===s?0:s,h=t.series;if(o)e=Math.max(c+n,c),i=p+d/2;else{var l=h.xAxis,u=h.yAxis;e=l.pos+th(n,-v,l.len+v),h.shouldShowTooltip(0,u.pos-p+a,{ignoreX:!0})&&(i=u.pos+a)}return{anchorX:e=th(e,O.left-v,O.right+v),anchorY:i}}(r),y=f.anchorX,b=f.anchorY;if("number"==typeof b){var w=l.height+1,M=(k||X).call(n,u,w,r,n,[y,b]);t.push({align:z?0:void 0,anchorX:y,anchorY:b,boxWidth:u,point:r,rank:tH(M.rank,+!!s),size:w,target:M.y,tt:h,x:M.x})}else h.isActive=!1}return t},[]);!z&&H.some(function(t){var e=(n.outside?B:0)+t.anchorX;return e<O.left&&e+t.boxWidth<O.right||e<B-O.left+t.boxWidth&&O.right-e>e})&&(H=H.map(function(t){var e=X.call(r,t.boxWidth,t.size,t.point,void 0,[t.anchorX,t.anchorY],!1),i=e.x;return ty(t,{target:e.y,x:i})})),n.cleanSplit(),iS(H,W);var G={left:B,right:B};H.forEach(function(t){var e=t.x,i=t.boxWidth,o=t.isHeader;!o&&(n.outside&&B+e<G.left&&(G.left=B+e),!o&&n.outside&&G.left+i>G.right&&(G.right=B+e))}),H.forEach(function(t){var e=t.x,i=t.anchorX,o=t.anchorY,r=t.pos,s=t.point.isHeader,a={visibility:void 0===r?"hidden":"inherit",x:e,y:(r||0)+R+(x&&b.y||0),anchorX:i,anchorY:o};if(n.outside&&e<i){var h=B-G.left;h>0&&(s||(a.x=e+h,a.anchorX=i+h),s&&(a.x=(G.right-G.left)/2,a.anchorX=i+h))}t.tt.attr(a)});var Y=n.container,F=n.outside,j=n.renderer;if(F&&Y&&j){var _=P.getBBox(),U=_.width,V=_.height,Z=_.x,K=_.y;j.setSize(U+Z,V+K,!1),Y.style.left=G.left+"px",Y.style.top=I+"px"}iM&&P.attr({opacity:1===P.opacity?.999:1})},t.prototype.drawTracker=function(){var t=this;if(!this.shouldStickOnContact()){t.tracker&&(t.tracker=t.tracker.destroy());return}var e=t.chart,i=t.label,o=t.shared?e.hoverPoints:e.hoverPoint;if(i&&o){var r={x:0,y:0,width:0,height:0},n=this.getAnchor(o),s=i.getBBox();n[0]+=e.plotLeft-(i.translateX||0),n[1]+=e.plotTop-(i.translateY||0),r.x=Math.min(0,n[0]),r.y=Math.min(0,n[1]),r.width=n[0]<0?Math.max(Math.abs(n[0]),s.width-n[0]):Math.max(Math.abs(n[0]),s.width),r.height=n[1]<0?Math.max(Math.abs(n[1]),s.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),s.height),t.tracker?t.tracker.attr(r):(t.tracker=i.renderer.rect(r).addClass("highcharts-tracker").add(i),tr(t.tracker.element,"mouseenter",function(){return iA(t)}),e.styledMode||t.tracker.attr({fill:"rgba(0,0,0,0)"}))}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},t.prototype.headerFooterFormatter=function(t,e){var i=t.series,o=i.tooltipOptions,r=i.xAxis,n=null==r?void 0:r.dateTime,s={isFooter:e,point:t},a=o.xDateFormat||"",h=o[e?"footerFormat":"headerFormat"];return tb(this,"headerFormatter",s,function(e){if(n&&!a&&tL(t.key)&&(a=n.getXDateFormat(t.key,o.dateTimeLabelFormats)),n&&a){if(tI(a)){var r=a;ik[0]=function(t){return i.chart.time.dateFormat(r,t)},a="%0"}(t.tooltipDateKeys||["key"]).forEach(function(t){h=h.replace(RegExp("point\\."+t+"([ \\)}])"),"(point.".concat(t,":").concat(a,")$1"))})}i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=ix(h,t,this.chart)}),s.text||""},t.prototype.update=function(t){this.destroy(),this.init(this.chart,tz(!0,this.options,t))},t.prototype.updatePosition=function(t){var e,i,o=this.chart,r=this.container,n=this.distance,s=this.options,a=this.pointer,h=this.renderer,l=this.getLabel(),d=l.height,c=void 0===d?0:d,p=l.width,u=void 0===p?0:p,f=s.fixed,g=s.positioner,v=a.getChartPosition(),m=v.left,y=v.top,x=v.scaleX,b=v.scaleY,k=(g||f&&this.getFixedPosition||this.getPosition).call(this,u,c,t,this),w=tt.doc,M=(t.plotX||0)+o.plotLeft,S=(t.plotY||0)+o.plotTop;if(h&&r){var A=(null==(e=o.scrollablePlotArea)?void 0:e.scrollingContainer)||{},T=A.scrollLeft,C=A.scrollTop;k.x+=(void 0===T?0:T)+m,k.y+=(void 0===C?0:C)+y,i=(s.borderWidth||0)+2*n+2,h.setSize(th(u+i,0,w.documentElement.clientWidth)-1,c+i,!1),(1!==x||1!==b)&&(tp(r,{transform:"scale(".concat(x,", ").concat(b,")")}),M*=x,S*=b),M+=m-k.x,S+=y-k.y}this.move(Math.round(k.x),Math.round(k.y||0),M,S)},t}();(f=iT||(iT={})).compose=function(t){tY(ib,"Core.Tooltip")&&tr(t,"afterInit",function(){var t=this.chart;t.options.tooltip&&(t.tooltip=new f(t,t.options.tooltip,this))})};var iC=iT,iO=eS.format,iP=function(){function t(t,e,i){var o,r,n,s;this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),null!=this.id||(this.id=t1()),this.resolveColor(),null!=this.dataLabelOnNull||(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,this.category=null!=(n=null==(r=null==(o=t.xAxis)?void 0:o.categories)?void 0:r[this.x])?n:this.x,this.key=null!=(s=this.name)?s:this.category,tb(this,"afterInit")}return t.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)}),i.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(ty({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})},t.prototype.applyOptions=function(e,i){var o=this.series,r=o.options.pointValKey||o.pointValKey;return ty(this,e=t.prototype.optionsToObject.call(this,e)),this.options?this.options=o.chart.options.chart.allowMutatingData?ty(this.options,e):tz(this.options,e):this.options=e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,r&&(this.y=t.prototype.getNestedProperty.call(this,r)),this.selected&&(this.state="select"),"name"in this&&void 0===i&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),void 0===this.x&&o?this.x=null!=i?i:o.autoIncrement():tL(e.x)&&o.options.relativeXValue?this.x=o.autoIncrement(e.x):"string"==typeof this.x&&(null!=i||(i=o.chart.time.parse(this.x)),tL(i)&&(this.x=i)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this},t.prototype.destroy=function(){if(!this.destroyed){var t=this,e=t.series,i=e.chart,o=e.options.dataSorting,r=i.hoverPoints,n=eh(t.series.chart.renderer.globalAnimation),s=function(){for(var e in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(t_(t),t.destroyElements()),t)delete t[e]};t.legendItem&&i.legend.destroyItem(t),r&&(t.setState(),tm(r,t),r.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),(null==o?void 0:o.enabled)?(this.animateBeforeDestroy(),tZ(s,n.duration)):s(),i.pointCount--}this.destroyed=!0},t.prototype.destroyElements=function(t){var e=this,i=e.getGraphicalProps(t);i.singular.forEach(function(t){e[t]=e[t].destroy()}),i.plural.forEach(function(t){e[t].forEach(function(t){(null==t?void 0:t.element)&&t.destroy()}),delete e[t]})},t.prototype.firePointEvent=function(t,e,i){var o=this,r=this.series.options;o.manageEvent(t),"click"===t&&r.allowPointSelect&&(i=function(t){!o.destroyed&&o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),tb(o,t,e,i)},t.prototype.getClassName=function(){var t;return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative&&!1!==this.series.options.negativeColor?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+((null==(t=this.zone)?void 0:t.className)?" "+this.zone.className.replace("highcharts-negative",""):"")},t.prototype.getGraphicalProps=function(t){var e,i,o=this,r=[],n={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&r.push("graphic","connector"),t.dataLabel&&r.push("dataLabel","dataLabelPath","dataLabelUpper"),i=r.length;i--;)o[e=r[i]]&&n.singular.push(e);return["graphic","dataLabel"].forEach(function(e){var i=e+"s";t[e]&&o[i]&&n.plural.push(i)}),n},t.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?tS(t,this.options):this[t]},t.prototype.getZone=function(){var t,e=this.series,i=e.zones,o=e.zoneAxis||"y",r=0;for(t=i[0];this[o]>=t.value;)t=i[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),(null==t?void 0:t.color)&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.isValid=function(){return(tL(this.x)||this.x instanceof Date)&&tL(this.y)},t.prototype.optionsToObject=function(e){var i,o,r=this.series,n=r.options.keys,s=n||r.pointArrayMap||["y"],a=s.length,h={},l=0,d=0;if(tL(e)||null===e)h[s[0]]=e;else if(tD(e))for(!n&&e.length>a&&("string"==(o=typeof e[0])?(null==(i=r.xAxis)?void 0:i.dateTime)?h.x=r.chart.time.parse(e[0]):h.name=e[0]:"number"===o&&(h.x=e[0]),l++);d<a;)n&&void 0===e[l]||(s[d].indexOf(".")>0?t.prototype.setNestedProperty(h,e[l],s[d]):h[s[d]]=e[l]),l++,d++;else"object"==typeof e&&(h=e,e.dataLabels&&(r.hasDataLabels=function(){return!0}),e.marker&&(r._hasPointMarkers=!0));return h},t.prototype.pos=function(t,e){if(void 0===e&&(e=this.plotY),!this.destroyed){var i=this.plotX,o=this.series,r=o.chart,n=o.xAxis,s=o.yAxis,a=0,h=0;if(tL(i)&&tL(e))return t&&(a=n?n.pos:r.plotLeft,h=s?s.pos:r.plotTop),r.inverted&&n&&s?[s.len-e+h,n.len-i+a]:[i+a,e+h]}},t.prototype.resolveColor=function(){var t,e,i,o=this.series,r=o.chart.options.chart,n=o.chart.styledMode,s=r.colorCount;delete this.nonZonedColor,o.options.colorByPoint?(n||(t=(e=o.options.colors||o.chart.options.colors)[o.colorCounter],s=e.length),i=o.colorCounter,o.colorCounter++,o.colorCounter===s&&(o.colorCounter=0)):(n||(t=o.color),i=o.colorIndex),this.colorIndex=tH(this.options.colorIndex,i),this.color=tH(this.options.color,t)},t.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce(function(t,i,o,r){var n=r.length-1===o;return t[i]=n?e:tI(t[i],!0)?t[i]:{},t[i]},t),t},t.prototype.shouldDraw=function(){return!this.isNull},t.prototype.tooltipFormatter=function(t){var e,i=this.series,o=i.chart,r=i.pointArrayMap,n=i.tooltipOptions,s=n.valueDecimals,a=void 0===s?"":s,h=n.valuePrefix,l=void 0===h?"":h,d=n.valueSuffix,c=void 0===d?"":d;return o.styledMode&&(t=(null==(e=o.tooltip)?void 0:e.styledModeFormat(t))||t),(void 0===r?["y"]:r).forEach(function(e){e="{point."+e,(l||c)&&(t=t.replace(RegExp(e+"}","g"),l+e+"}"+c)),t=t.replace(RegExp(e+"}","g"),e+":,."+a+"f}")}),iO(t,this,o)},t.prototype.update=function(t,e,i,o){var r,n=this,s=n.series,a=n.graphic,h=s.chart,l=s.options,d=l.data;function c(){n.applyOptions(t);var o=a&&n.hasMockGraphic,c=null===n.y?!o:o;a&&c&&(n.graphic=a.destroy(),delete n.hasMockGraphic),tI(t,!0)&&((null==a?void 0:a.element)&&t&&t.marker&&void 0!==t.marker.symbol&&(n.graphic=a.destroy()),(null==t?void 0:t.dataLabels)&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy())),r=n.index;for(var p={},u=0,f=s.dataColumnKeys();u<f.length;u++){var g=f[u];p[g]=n[g]}s.dataTable.setRow(p,r),d&&!s.processedData&&(d[r]=tI(d[r],!0)||tI(t,!0)?n.options:null!=t?t:d[r]),s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(h.isDirtyBox=!0),"point"===l.legendType&&(h.isDirtyLegend=!0),e&&h.redraw(i)}e=tH(e,!0),!1===o?c():n.firePointEvent("update",{options:t},c)},t.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},t.prototype.select=function(t,e){var i=this,o=i.series,r=o.chart;t=tH(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,o.options.data[o.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||r.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},t.prototype.onMouseOver=function(t){var e=this.series.chart,i=e.inverted,o=e.pointer;o&&(t=t?o.normalize(t):o.getChartCoordinatesFromPoint(this,i),o.runPointActions(t,this))},t.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},t.prototype.manageEvent=function(t){var e,i,o,r,n,s,a,h=null==(e=tz(this.series.options.point,this.options).events)?void 0:e[t];!tB(h)||(null==(i=this.hcEvents)?void 0:i[t])&&(null==(r=null==(o=this.hcEvents)?void 0:o[t])?void 0:r.map(function(t){return t.fn}).indexOf(h))!==-1?this.importedUserEvent&&!h&&(null==(s=this.hcEvents)?void 0:s[t])&&(null==(a=this.hcEvents)?void 0:a[t].userEvent)&&(t_(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent):(null==(n=this.importedUserEvent)||n.call(this),this.importedUserEvent=tr(this,t,h),this.hcEvents&&(this.hcEvents[t].userEvent=!0))},t.prototype.setState=function(t,e){var i,o,r,n,s,a,h=this.series,l=this.state,d=h.options.states[t||"normal"]||{},c=t7.plotOptions[h.type].marker&&h.options.marker,p=c&&!1===c.enabled,u=(null==(i=null==c?void 0:c.states)?void 0:i[t||"normal"])||{},f=!1===u.enabled,g=this.marker||{},v=h.chart,m=c&&h.markerAttribs,y=h.halo,x=h.stateMarkerGraphic;if(((t=t||"")!==this.state||e)&&(!this.selected||"select"===t)&&!1!==d.enabled&&(!t||!f&&(!p||!1!==u.enabled))&&(!t||!g.states||!g.states[t]||!1!==g.states[t].enabled)){if(this.state=t,m&&(r=h.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(l&&this.graphic.removeClass("highcharts-point-"+l),t&&this.graphic.addClass("highcharts-point-"+t),!v.styledMode){n=h.pointAttribs(this,t),s=tH(v.options.chart.animation,d.animation);var b=n.opacity;h.options.inactiveOtherPoints&&tL(b)&&(this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&(t.animate({opacity:b},s),t.connector&&t.connector.animate({opacity:b},s))}),this.graphic.animate(n,s)}r&&this.graphic.animate(r,tH(v.options.chart.animation,u.animation,c.animation)),x&&x.hide()}else t&&u&&(a=g.symbol||h.symbol,x&&x.currentSymbol!==a&&(x=x.destroy()),r&&(x?x[e?"animate":"attr"]({x:r.x,y:r.y}):a&&(h.stateMarkerGraphic=x=v.renderer.symbol(a,r.x,r.y,r.width,r.height,tz(c,u)).add(h.markerGroup),x.currentSymbol=a)),!v.styledMode&&x&&"inactive"!==this.state&&x.attr(h.pointAttribs(this,t))),x&&(x[t&&this.isInside?"show":"hide"](),x.element.point=this,x.addClass(this.getClassName(),!0));var k=d.halo,w=this.graphic||x,M=(null==w?void 0:w.visibility)||"inherit";(null==k?void 0:k.size)&&w&&"hidden"!==M&&!this.isCluster?(y||(h.halo=y=v.renderer.path().add(w.parentGroup)),y.show()[e?"animate":"attr"]({d:this.haloPath(k.size)}),y.attr({class:"highcharts-halo highcharts-color-"+tH(this.colorIndex,h.colorIndex)+(this.className?" "+this.className:""),visibility:M,zIndex:-1}),y.point=this,v.styledMode||y.attr(ty({fill:this.color||h.color,"fill-opacity":k.opacity},em.filterUserAttributes(k.attributes||{})))):(null==(o=null==y?void 0:y.point)?void 0:o.haloPath)&&!y.point.destroyed&&y.animate({d:y.point.haloPath(0)},null,y.hide),tb(this,"afterSetState",{state:t})}},t.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(tc(e[0],1)-t,e[1]-t,2*t,2*t):[]},t}(),iL=function(){return(iL=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},iE=er.parse,iD=tt.charts,iB=tt.composed,iI=tt.isTouchDevice,iz=function(t,e){return!tu(e)||t[""+e+"Key"]},iR=function(){function t(t,e){var i;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!(null==(i=e.chart.events)?void 0:i.click),this.pinchDown=[],this.setDOMEvents(),tb(this,"afterInit")}return t.prototype.applyInactiveState=function(t){var e,i,o=this;void 0===t&&(t=[]);var r=[];t.forEach(function(t){var e=t.series;r.push(e),e.linkedParent&&r.push(e.linkedParent),e.linkedSeries&&r.push.apply(r,e.linkedSeries),e.navigatorSeries&&r.push(e.navigatorSeries),e.boosted&&e.markerGroup&&r.push.apply(r,o.chart.series.filter(function(t){return t.markerGroup===e.markerGroup}))});for(var n=0,s=this.chart.series;n<s.length;n++){var a=s[n],h=a.options;(null==(i=null==(e=h.states)?void 0:e.inactive)?void 0:i.enabled)!==!1&&(-1===r.indexOf(a)?a.setState("inactive",!0):h.inactiveOtherPoints&&a.setAllPointsToState("inactive"))}},t.prototype.destroy=function(){var e=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],!tt.chartCount&&(t.unbindDocumentMouseUp.forEach(function(t){return t.unbind()}),t.unbindDocumentMouseUp.length=0,t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),tN(e,function(t,i){e[i]=void 0})},t.prototype.getSelectionMarkerAttrs=function(t,e){var i=this,o={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return tb(this,"getSelectionMarkerAttrs",o,function(o){var r,n=i.chart,s=i.zoomHor,a=i.zoomVert,h=n.mouseDownX,l=void 0===h?0:h,d=n.mouseDownY,c=void 0===d?0:d,p=o.attrs;p.x=n.plotLeft,p.y=n.plotTop,p.width=s?1:n.plotWidth,p.height=a?1:n.plotHeight,s&&(p.width=Math.max(1,Math.abs(r=t-l)),p.x=(r>0?0:r)+l),a&&(p.height=Math.max(1,Math.abs(r=e-c)),p.y=(r>0?0:r)+c)}),o},t.prototype.drag=function(t){var e,i=this.chart,o=i.mouseDownX,r=void 0===o?0:o,n=i.mouseDownY,s=void 0===n?0:n,a=i.options.chart,h=a.panning,l=a.panKey,d=a.selectionMarkerFill,c=i.plotLeft,p=i.plotTop,u=i.plotWidth,f=i.plotHeight,g=tI(h)?h.enabled:h,v=l&&t[""+l+"Key"],m=t.chartX,y=t.chartY,x=this.selectionMarker;if((!x||!x.touch)&&(m<c?m=c:m>c+u&&(m=c+u),y<p?y=p:y>p+f&&(y=p+f),this.hasDragged=Math.sqrt(Math.pow(r-m,2)+Math.pow(s-y,2)),this.hasDragged>10)){e=i.isInsidePlot(r-c,s-p,{visiblePlotOnly:!0});var b=this.getSelectionMarkerAttrs(m,y),k=b.shapeType,w=b.attrs;this.hasZoom&&e&&!v&&!x&&(this.selectionMarker=x=i.renderer[k](),x.attr({class:"highcharts-selection-marker",zIndex:7}).add(),i.styledMode||x.attr({fill:d||iE("#334eff").setOpacity(.25).get()})),x&&x.attr(w),e&&!x&&g&&iz(t,l)&&i.pan(t,h)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY},t.prototype.getSelectionBox=function(t){var e={args:{marker:t},result:t.getBBox()};return tb(this,"getSelectionBox",e),e.result},t.prototype.drop=function(t){for(var e,i=this,o=this.chart,r=this.selectionMarker,n=0,s=o.axes;n<s.length;n++){var a=s[n];a.isPanning&&(a.isPanning=!1,(a.options.startOnTick||a.options.endOnTick||a.series.some(function(t){return t.boosted}))&&(a.forceRedraw=!0,a.setExtremes(a.userMin,a.userMax,!1),e=!0))}if(e&&o.redraw(),r&&t){if(this.hasDragged){var h=this.getSelectionBox(r);o.transform({axes:o.axes.filter(function(t){return t.zoomEnabled&&("xAxis"===t.coll&&i.zoomX||"yAxis"===t.coll&&i.zoomY)}),selection:iL({originalEvent:t,xAxis:[],yAxis:[]},h),from:h})}tL(o.index)&&(this.selectionMarker=r.destroy())}o&&tL(o.index)&&(tp(o.container,{cursor:o._cursor}),o.cancelClick=this.hasDragged>10,o.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)},t.prototype.findNearestKDPoint=function(t,e,i){var o;return t.forEach(function(t){var r,n,s,a,h,l,d=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),c=t.searchPoint(i,d);tI(c,!0)&&c.series&&(!tI(o,!0)||(a=(r=o).distX-c.distX,h=r.dist-c.dist,l=(null==(n=c.series.group)?void 0:n.zIndex)-(null==(s=r.series.group)?void 0:s.zIndex),(0!==a&&e?a:0!==h?h:0!==l?l:r.series.index>c.series.index?-1:1)>0))&&(o=c)}),o},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i,o,r=t.series,n=r.xAxis,s=r.yAxis,a=t.shapeArgs;if(n&&s){var h=null!=(o=null!=(i=t.clientX)?i:t.plotX)?o:0,l=t.plotY||0;return t.isNode&&a&&tL(a.x)&&tL(a.y)&&(h=a.x,l=a.y),e?{chartX:s.len+s.pos-l,chartY:n.len+n.pos-h}:{chartX:h+n.pos,chartY:l+s.pos}}if((null==a?void 0:a.x)&&a.y)return{chartX:a.x,chartY:a.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=tW(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetHeight,o=t.offsetWidth;return o>2&&i>2&&(this.chartPosition.scaleX=e.width/o,this.chartPosition.scaleY=e.height/i),this.chartPosition},t.prototype.getCoordinates=function(t){for(var e={xAxis:[],yAxis:[]},i=0,o=this.chart.axes;i<o.length;i++){var r=o[i];e[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(t[r.horiz?"chartX":"chartY"])})}return e},t.prototype.getHoverData=function(t,e,i,o,r,n){var s,a=[],h=function(t){return t.visible&&!(!r&&t.directTouch)&&tH(t.options.enableMouseTracking,!0)},l=e,d={chartX:n?n.chartX:void 0,chartY:n?n.chartY:void 0,shared:r};tb(this,"beforeGetHoverData",d),s=l&&!l.stickyTracking?[l]:i.filter(function(t){return t.stickyTracking&&(d.filter||h)(t)});var c=o&&t||!n?t:this.findNearestKDPoint(s,r,n);return l=null==c?void 0:c.series,c&&(r&&!l.noSharedTooltip?(s=i.filter(function(t){return d.filter?d.filter(t):h(t)&&!t.noSharedTooltip})).forEach(function(t){var e,i=null==(e=t.options)?void 0:e.nullInteraction,o=tT(t.points,function(t){return t.x===c.x&&(!t.isNull||!!i)});tI(o)&&(t.boosted&&t.boost&&(o=t.boost.getPoint(o)),a.push(o))}):a.push(c)),tb(this,"afterGetHoverData",d={hoverPoint:c}),{hoverPoint:d.hoverPoint,hoverSeries:l,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){for(var e,i=t.target;i&&!e;)e=i.point,i=i.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){var e=this.chart,i=t.relatedTarget,o=e.hoverSeries;this.isDirectTouch=!1,!o||!i||o.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+o.index)&&this.inClass(i,"highcharts-tracker")||o.onMouseOut()},t.prototype.inClass=function(t,e){for(var i,o=t;o;){if(i=ta(o,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}o=o.parentElement}},t.prototype.normalize=function(t,e){var i=t.touches,o=i?i.length?i.item(0):tH(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());var r=o.pageX-e.left,n=o.pageY-e.top;return ty(t,{chartX:Math.round(r/=e.scaleX),chartY:Math.round(n/=e.scaleY)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint,o=this.normalize(t),r=e.plotLeft,n=e.plotTop;!e.cancelClick&&(i&&this.inClass(o.target,"highcharts-tracker")?(tb(i.series,"click",ty(o,{point:i})),e.hoverPoint&&i.firePointEvent("click",o)):(ty(o,this.getCoordinates(o)),e.isInsidePlot(o.chartX-r,o.chartY-n,{visiblePlotOnly:!0})&&tb(e,"click",o)))},t.prototype.onContainerMouseDown=function(t){var e,i=(1&(t.buttons||t.button))==1;t=this.normalize(t),tt.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&(null==(e=t.preventDefault)||e.call(t)),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var i=(iD[tH(t.hoverChartIndex,-1)]||{}).pointer;e=this.normalize(e),this.onContainerMouseMove(e),i&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(i.reset(),i.chartPosition=void 0)},t.prototype.onContainerMouseEnter=function(){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e,i=this.chart,o=i.tooltip,r=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===i.mouseIsDown||this.touchSelect(r))&&this.drag(r),!(!(null==(e=i.exporting)?void 0:e.openMenu)&&(this.inClass(r.target,"highcharts-tracker")||i.isInsidePlot(r.chartX-i.plotLeft,r.chartY-i.plotTop,{visiblePlotOnly:!0})))||(null==o?void 0:o.shouldStickOnContact(r))||(this.inClass(r.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(r))},t.prototype.onDocumentTouchEnd=function(t){this.onDocumentMouseUp(t)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=e.tooltip,o=this.chartPosition,r=this.normalize(t,o);!o||e.isInsidePlot(r.chartX-e.plotLeft,r.chartY-e.plotTop,{visiblePlotOnly:!0})||(null==i?void 0:i.shouldStickOnContact(r))||r.target!==e.container.ownerDocument&&this.inClass(r.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var i,o,r;(null==e?void 0:e.touches)&&this.hasPinchMoved&&(null==(i=null==e?void 0:e.preventDefault)||i.call(e)),null==(r=null==(o=iD[tH(t.hoverChartIndex,-1)])?void 0:o.pointer)||r.drop(e)},t.prototype.pinch=function(t){var e=this,i=this,o=i.chart,r=i.hasZoom,n=i.lastTouches,s=[].map.call(t.touches||[],function(t){return i.normalize(t)}),a=s.length,h=1===a&&(i.inClass(t.target,"highcharts-tracker")&&o.runTrackerClick||i.runChartClick),l=o.tooltip,d=1===a&&tH(null==l?void 0:l.options.followTouchMove,!0);a>1?i.initiated=!0:d&&(i.initiated=!1),r&&i.initiated&&!h&&!1!==t.cancelable&&t.preventDefault(),"touchstart"===t.type?(i.pinchDown=s,i.res=!0,o.mouseDownX=t.chartX):d?this.runPointActions(i.normalize(t)):n&&(tb(o,"touchpan",{originalEvent:t,touches:s},function(){var i=function(t){var e=t[0],i=t[1]||e;return{x:e.chartX,y:e.chartY,width:i.chartX-e.chartX,height:i.chartY-e.chartY}};o.transform({axes:o.axes.filter(function(t){return t.zoomEnabled&&(e.zoomHor&&t.horiz||e.zoomVert&&!t.horiz)}),to:i(s),from:i(n),trigger:t.type})}),i.res&&(i.res=!1,this.reset(!1,0))),i.lastTouches=s},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,r=i.hoverPoint,n=i.hoverPoints,s=i.tooltip,a=(null==s?void 0:s.shared)?n:r;t&&a&&tU(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&a&&tU(a).length&&(s.refresh(a),s.shared&&n?n.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(t){t.crosshair&&r.series[t.coll]===t&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),n&&n.forEach(function(t){t.setState()}),o&&o.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)},t.prototype.runPointActions=function(e,i,o){var r,n=this.chart,s=n.series,a=(null==(r=n.tooltip)?void 0:r.options.enabled)?n.tooltip:void 0,h=!!a&&a.shared,l=i||n.hoverPoint,d=(null==l?void 0:l.series)||n.hoverSeries,c=(!e||"touchmove"!==e.type)&&(!!i||(null==d?void 0:d.directTouch)&&this.isDirectTouch),p=this.getHoverData(l,d,s,c,h,e);l=p.hoverPoint,d=p.hoverSeries;var u=p.hoverPoints,f=(null==d?void 0:d.tooltipOptions.followPointer)&&!d.tooltipOptions.split,g=h&&d&&!d.noSharedTooltip;if(l&&(o||l!==n.hoverPoint||(null==a?void 0:a.isHidden))){if((n.hoverPoints||[]).forEach(function(t){-1===u.indexOf(t)&&t.setState()}),n.hoverSeries!==d&&d.onMouseOver(),this.applyInactiveState(u),(u||[]).forEach(function(t){t.setState("hover")}),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!l.series)return;n.hoverPoints=u,n.hoverPoint=l,l.firePointEvent("mouseOver",void 0,function(){a&&l&&a.refresh(g?u:l,e)})}else if(f&&a&&!a.isHidden){var v=a.getAnchor([{}],e);n.isInsidePlot(v[0],v[1],{visiblePlotOnly:!0})&&a.updatePosition({plotX:v[0],plotY:v[1]})}this.unDocMouseMove||(this.unDocMouseMove=tr(n.container.ownerDocument,"mousemove",function(e){var i,o,r;return null==(r=null==(o=iD[null!=(i=t.hoverChartIndex)?i:-1])?void 0:o.pointer)?void 0:r.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),n.axes.forEach(function(t){var i,o,r,s=null==(o=null==(i=t.crosshair)?void 0:i.snap)||o;s&&((r=n.hoverPoint)&&r.series[t.coll]===t||(r=tT(u,function(e){var i;return(null==(i=e.series)?void 0:i[t.coll])===t}))),r||!s?t.drawCrosshair(e,r):t.hideCrosshair()})},t.prototype.setDOMEvents=function(){var e=this,i=this.chart.container,o=i.ownerDocument,r=function(t){var e,i;return t.parentElement||(null==(i=null==(e=t.getRootNode())?void 0:e.host)?void 0:i.parentElement)};i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(tr(i,"mouseenter",this.onContainerMouseEnter.bind(this)),tr(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp.some(function(t){return t.doc===o})||t.unbindDocumentMouseUp.push({doc:o,unbind:tr(o,"mouseup",this.onDocumentMouseUp.bind(this))});for(var n=r(this.chart.renderTo);n&&"BODY"!==n.tagName;)this.eventsToUnbind.push(tr(n,"scroll",function(){delete e.chartPosition})),n=r(n);this.eventsToUnbind.push(tr(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),tr(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=tr(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),tr(this.chart,"redraw",this.setPointerCapture.bind(this))},t.prototype.setPointerCapture=function(){if(iI){var t,e,i=this.pointerCaptureEventsToUnbind,o=this.chart,r=o.container,n=tH(null==(t=o.options.tooltip)?void 0:t.followTouchMove,!0)&&o.series.some(function(t){return t.options.findNearestPointBy.indexOf("y")>-1});!this.hasPointerCapture&&n?(i.push(tr(r,"pointerdown",function(t){var e,i;(null==(e=t.target)?void 0:e.hasPointerCapture(t.pointerId))&&(null==(i=t.target)||i.releasePointerCapture(t.pointerId))}),tr(r,"pointermove",function(t){var e,i;null==(i=null==(e=o.pointer)?void 0:e.getPointFromEvent(t))||i.onMouseOver(t)})),o.styledMode||tp(r,{"touch-action":"none"}),r.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!n&&(i.forEach(function(t){return t()}),i.length=0,o.styledMode||tp(r,{"touch-action":tH(null==(e=o.options.chart.style)?void 0:e["touch-action"],"manipulation")}),r.className=r.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}},t.prototype.setHoverChartIndex=function(e){var i,o=this.chart,r=tt.charts[tH(t.hoverChartIndex,-1)];if(r&&r!==o){var n={relatedTarget:o.container};!e||(null==e?void 0:e.relatedTarget)||Object.assign({},e,n),null==(i=r.pointer)||i.onContainerMouseLeave(e||n)}(null==r?void 0:r.mouseIsDown)||(t.hoverChartIndex=o.index)},t.prototype.touch=function(t,e){var i,o,r=this.chart,n=this.pinchDown,s=void 0===n?[]:n;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?!r.isInsidePlot(t.chartX-r.plotLeft,t.chartY-r.plotTop,{visiblePlotOnly:!0})||(null==(i=r.exporting)?void 0:i.openMenu)?e&&this.reset():(e&&this.runPointActions(t),"touchmove"===t.type&&(this.hasPinchMoved=o=!!s[0]&&Math.pow(s[0].chartX-t.chartX,2)+Math.pow(s[0].chartY-t.chartY,2)>=16),tH(o,!0)&&this.pinch(t)):2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!!(this.chart.zooming.singleTouch&&t.touches&&1===t.touches.length)},t.prototype.zoomOption=function(t){var e,i,o=this.chart,r=o.inverted,n=o.zooming.type||"";/touch/.test(t.type)&&(n=tH(o.zooming.pinchType,n)),this.zoomX=e=/x/.test(n),this.zoomY=i=/y/.test(n),this.zoomHor=e&&!r||i&&r,this.zoomVert=i&&!r||e&&r,this.hasZoom=(e||i)&&iz(t,o.zooming.key)},t.unbindDocumentMouseUp=[],t}();(g=iR||(iR={})).compose=function(t){tY(iB,"Core.Pointer")&&tr(t,"beforeRender",function(){this.pointer=new g(this,this.options)})};var iN=iR,iW=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},iX=function(t,e,i,o,r){if(void 0===r&&(r=[]),Array.isArray(t))return Array.isArray(r)||(r=Array.from(r)),{removed:t.splice.apply(t,iW([e,i],r,!1)),array:t};var n=Object.getPrototypeOf(t).constructor,s=t[o?"subarray":"slice"](e,e+i),a=new n(t.length-i+r.length);return a.set(t.subarray(0,e),0),a.set(r,e),a.set(t.subarray(e+i),e+r.length),{removed:s,array:a}},iH=function(){function t(t){void 0===t&&(t={});var e=this;this.autoId=!t.id,this.columns={},this.id=t.id||t1(),this.rowCount=0,this.versionTag=t1();var i=0;tN(t.columns||{},function(t,o){e.columns[o]=t.slice(),i=Math.max(i,t.length)}),this.applyRowCount(i)}return t.prototype.applyRowCount=function(t){var e=this;this.rowCount=t,tN(this.columns,function(i,o){var r,n;i.length!==t&&(e.columns[o]=(r=i,n=t,Array.isArray(r)?(r.length=n,r):r.slice(0,n)))})},t.prototype.deleteRows=function(t,e){var i=this;if(void 0===e&&(e=1),e>0&&t<this.rowCount){var o=0;tN(this.columns,function(r,n){i.columns[n]=iX(r,t,e).array,o=r.length}),this.rowCount=o}tb(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=t1()},t.prototype.getColumn=function(t,e){return this.columns[t]},t.prototype.getColumns=function(t,e){var i=this;return(t||Object.keys(this.columns)).reduce(function(t,e){return t[e]=i.columns[e],t},{})},t.prototype.getRow=function(t,e){var i=this;return(e||Object.keys(this.columns)).map(function(e){var o;return null==(o=i.columns[e])?void 0:o[t]})},t.prototype.setColumn=function(t,e,i,o){var r;void 0===e&&(e=[]),void 0===i&&(i=0),this.setColumns(((r={})[t]=e,r),i,o)},t.prototype.setColumns=function(t,e,i){var o=this,r=this.rowCount;tN(t,function(t,e){o.columns[e]=t.slice(),r=t.length}),this.applyRowCount(r),(null==i?void 0:i.silent)||(tb(this,"afterSetColumns"),this.versionTag=t1())},t.prototype.setRow=function(t,e,i,o){void 0===e&&(e=this.rowCount);var r=this.columns,n=i?this.rowCount+1:e+1,s=Object.keys(t);if((null==o?void 0:o.addColumns)!==!1)for(var a=0,h=s.length;a<h;a++){var l=s[a];r[l]||(r[l]=[])}tN(r,function(s,a){var h,l;s||(null==o?void 0:o.addColumns)===!1||(s=Array(n)),s&&(i?s=iX(s,e,0,!0,[null!=(h=t[a])?h:null]).array:s[e]=null!=(l=t[a])?l:null,r[a]=s)}),n>this.rowCount&&this.applyRowCount(n),(null==o?void 0:o.silent)||(tb(this,"afterSetRows"),this.versionTag=t1())},t.prototype.getModified=function(){return this.modified||this},t}(),iG=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},iY=G||(G={});function iF(t,e,i){var o,r,n,s=this.legendItem=this.legendItem||{},a=this.chart,h=this.options,l=t.baseline,d=void 0===l?0:l,c=t.symbolWidth,p=t.symbolHeight,u=this.symbol||"circle",f=p/2,g=a.renderer,v=s.group,m=d-Math.round(((null==(o=t.fontMetrics)?void 0:o.b)||p)*(i?.4:.3)),y={},x=h.marker,b=0;if(a.styledMode||(y["stroke-width"]=Math.min(h.lineWidth||0,24),h.dashStyle?y.dashstyle=h.dashStyle:"square"!==h.linecap&&(y["stroke-linecap"]="round")),s.line=g.path().addClass("highcharts-graph").attr(y).add(v),i&&(s.area=g.path().addClass("highcharts-area").add(v)),y["stroke-linecap"]&&(b=Math.min(s.line.strokeWidth(),c)/2),c){var k=[["M",b,m],["L",c-b,m]];s.line.attr({d:k}),null==(r=s.area)||r.attr({d:iG(iG([],k,!0),[["L",c-b,d],["L",b,d]],!1)})}if(x&&!1!==x.enabled&&c){var w=Math.min(tH(x.radius,f),f);0===u.indexOf("url")&&(x=tz(x,{width:p,height:p}),w=0),s.symbol=n=g.symbol(u,c/2-w,m-w,2*w,2*w,ty({context:"legend"},x)).addClass("highcharts-point").add(v),n.isMarker=!0}}iY.areaMarker=function(t,e){iF.call(this,t,e,!0)},iY.lineMarker=iF;var ij=G,i_={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},iU=(v=function(t,e){return(v=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),iV=Y||(Y={});function iZ(t,e){var i=t7.plotOptions||{},o=e.defaultOptions,r=e.prototype;return r.type=t,r.pointClass||(r.pointClass=iP),!iV.seriesTypes[t]&&(o&&(i[t]=o),iV.seriesTypes[t]=e,!0)}iV.seriesTypes=tt.seriesTypes,iV.registerSeriesType=iZ,iV.seriesType=function(t,e,i,o,r){var n=t7.plotOptions||{};if(e=e||"",n[t]=tz(n[e],i),delete iV.seriesTypes[t],iZ(t,tx(iV.seriesTypes[e]||tt.Series,o)),iV.seriesTypes[t].prototype.type=t,r){var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iU(e,t),e}(iP);ty(s.prototype,r),iV.seriesTypes[t].prototype.pointClass=s}return iV.seriesTypes[t]};var iK=Y,iq=function(){return(iq=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},i$=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},iJ=io.registerEventOptions,iQ=tt.svg,i0=tt.win,i1=iK.seriesTypes,i2=eS.format,i3=function(){function t(){this.zoneAxis="y"}return t.prototype.init=function(t,e){tb(this,"init",{options:e}),null!=this.dataTable||(this.dataTable=new iH);var i,o,r,n,s=t.series;this.eventsToUnbind=[],this.chart=t,this.options=this.setOptions(e);var a=this.options,h=!1!==a.visible;this.linkedSeries=[],this.bindAxes(),ty(this,{name:a.name,state:"",visible:h,selected:!0===a.selected}),iJ(this,a);var l=a.events;((null==l?void 0:l.click)||(null==(o=null==(i=a.point)?void 0:i.events)?void 0:o.click)||a.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(n=s[s.length-1]),this._i=tH(null==n?void 0:n._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",tQ(this,s)),(null==(r=a.dataSorting)?void 0:r.enabled)?this.setDataSortingOptions():this.points||this.data||this.setData(a.data,!1),tb(this,"afterInit")},t.prototype.is=function(t){return i1[t]&&this instanceof i1[t]},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;tb(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(r){(o[r]||[]).forEach(function(o){t=o.options,(tH(i[r],0)===o.index||void 0!==i[r]&&i[r]===t.id)&&(tQ(e,o.series),e[r]=o,o.isDirty=!0)}),e[r]||e.optionalAxis===r||tJ(18,!0,o)})}),tb(this,"afterBindAxes")},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0},t.prototype.hasMarkerChanged=function(t,e){var i=t.marker,o=e.marker||{};return i&&(o.enabled&&!i.enabled||o.symbol!==i.symbol||o.height!==i.height||o.width!==i.width)},t.prototype.autoIncrement=function(t){var e,i,o,r=this.options,n=this.options,s=n.pointIntervalUnit,a=n.relativeXValue,h=this.chart.time,l=null!=(i=null!=(e=this.xIncrement)?e:h.parse(r.pointStart))?i:0;if(this.pointInterval=o=tH(this.pointInterval,r.pointInterval,1),a&&tL(t)&&(o*=t),s){var d=h.toParts(l);"day"===s?d[2]+=o:"month"===s?d[1]+=o:"year"===s&&(d[0]+=o),o=h.makeTime.apply(h,d)-l}return a&&tL(t)?l+o:(this.xIncrement=l+o,l)},t.prototype.setDataSortingOptions=function(){var t=this.options;ty(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),tu(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e,i,o,r=this.chart,n=r.options.plotOptions,s=r.userOptions||{},a=tz(t),h=r.styledMode,l={plotOptions:n,userOptions:a};tb(this,"setOptions",l);var d=l.plotOptions[this.type],c=s.plotOptions||{},p=c.series||{},u=t7.plotOptions[this.type]||{},f=c[this.type]||{};d.dataLabels=this.mergeArrays(u.dataLabels,d.dataLabels),this.userOptions=l.userOptions;var g=tz(d,n.series,f,a);this.tooltipOptions=tz(t7.tooltip,null==(e=t7.plotOptions.series)?void 0:e.tooltip,null==u?void 0:u.tooltip,r.userOptions.tooltip,null==(i=c.series)?void 0:i.tooltip,f.tooltip,a.tooltip),this.stickyTracking=tH(a.stickyTracking,f.stickyTracking,p.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),null===d.marker&&delete g.marker;var v=g.negativeColor,m=g.negativeFillColor,y=g.zoneAxis,x=void 0===y?"y":y,b=g.zones,k=this.zones=(b||[]).map(function(t){return iq({},t)});return this.zoneAxis=x,(v||m)&&!b&&(o={value:g[x+"Threshold"]||g.threshold||0,className:"highcharts-negative"},h||("boolean"!=typeof v&&(o.color=v),o.fillColor=m),k.push(o)),k.length&&tu(k[k.length-1].value)&&k.push(h?{}:{color:this.color,fillColor:this.fillColor}),tb(this,"afterSetOptions",{options:g}),g},t.prototype.getName=function(){var t;return null!=(t=this.options.name)?t:i2(this.chart.options.lang.seriesName,this,this.chart)},t.prototype.getCyclic=function(t,e,i){var o,r,n=this.chart,s=""+t+"Index",a=""+t+"Counter",h=(null==i?void 0:i.length)||n.options.chart.colorCount;!e&&(tu(r=tH("color"===t?this.options.colorIndex:void 0,this[s]))?o=r:(n.series.length||(n[a]=0),o=n[a]%h,n[a]+=1),i&&(e=i[o])),void 0!==o&&(this[s]=o),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||t7.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){var t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)},t.prototype.getColumn=function(t,e){return(e?this.dataTable.getModified():this.dataTable).getColumn(t,!0)||[]},t.prototype.findPointIndex=function(t,e){var i,o,r,n,s=t.id,a=t.x,h=this.points,l=this.options.dataSorting,d=this.cropStart||0;if(s){var c=this.chart.get(s);c instanceof iP&&(o=c)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var p=function(e){return!e.touched&&e.index===t.index};if((null==l?void 0:l.matchByName)?p=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(p=function(e){return!e.touched&&e.options.x===t.x}),!(o=tT(h,p)))return}return o&&void 0!==(n=null==o?void 0:o.index)&&(r=!0),void 0===n&&tL(a)&&(n=this.getColumn("x").indexOf(a,e)),-1!==n&&void 0!==n&&this.cropped&&(n=n>=d?n-d:n),!r&&tL(n)&&(null==(i=h[n])?void 0:i.touched)&&(n=void 0),n},t.prototype.updateData=function(t,e){var i,o,r,n,s,a=this,h=this.options,l=this.requireSorting,d=h.dataSorting,c=this.points,p=[],u=t.length===c.length,f=this.xIncrement,g=!0;if(this.xIncrement=null,t.forEach(function(t,e){var i,r,n=tu(t)&&a.pointClass.prototype.optionsToObject.call({series:a},t)||{},f=n.id,g=n.x;f||tL(g)?(-1===(r=a.findPointIndex(n,s))||void 0===r?p.push(t):c[r]&&t!==(null==(i=h.data)?void 0:i[r])?(c[r].update(t,!1,void 0,!1),c[r].touched=!0,l&&(s=r+1)):c[r]&&(c[r].touched=!0),(!u||e!==r||(null==d?void 0:d.enabled)||a.hasDerivedData)&&(o=!0)):p.push(t)},this),o)for(r=c.length;r--;)(n=c[r])&&!n.touched&&(null==(i=n.remove)||i.call(n,!1,e));else!u||(null==d?void 0:d.enabled)?g=!1:(t.forEach(function(t,e){t===c[e].y||c[e].destroyed||c[e].update(t,!1,void 0,!1)}),p.length=0);if(c.forEach(function(t){t&&(t.touched=!1)}),!g)return!1;p.forEach(function(t){a.addPoint(t,!1,void 0,void 0,!1)},this);var v=this.getColumn("x");return null!==f&&null===this.xIncrement&&v.length&&(this.xIncrement=ts(v),this.autoIncrement()),!0},t.prototype.dataColumnKeys=function(){return i$(["x"],this.pointArrayMap||["y"],!0)},t.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var r,n,s,a,h,l,d,c,p,u,f,g=this.points,v=(null==g?void 0:g.length)||0,m=this.options,y=this.chart,x=m.dataSorting,b=this.xAxis,k=m.turboThreshold,w=this.dataTable,M=this.dataColumnKeys(),S=this.pointValKey||"y",A=(this.pointArrayMap||[]).length,T=m.keys,C=0,O=1;y.options.chart.allowMutatingData||(m.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,f=tz(!0,t));var P=(t=f||t||[]).length;if((null==x?void 0:x.enabled)&&(t=this.sortData(t)),!1!==o&&P&&v&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(u=this.updateData(t,i)),!u){this.xIncrement=null,this.colorCounter=0;var L=k&&!m.relativeXValue&&P>k;if(L){var E=this.getFirstValidPoint(t),D=this.getFirstValidPoint(t,P-1,-1),B=function(t){return!!(tD(t)&&(T||tL(t[0])))};if(tL(E)&&tL(D)){for(var I=[],z=[],R=0,N=t;R<N.length;R++){var W=N[R];I.push(this.autoIncrement()),z.push(W)}w.setColumns(((r={x:I})[S]=z,r))}else if(B(E)&&B(D))if(A){for(var X=+(E.length===A),H=Array(M.length).fill(0).map(function(){return[]}),G=0,Y=t;G<Y.length;G++){var F=Y[G];X&&H[0].push(this.autoIncrement());for(var j=X;j<=A;j++)null==(s=H[j])||s.push(F[j-X])}w.setColumns(M.reduce(function(t,e,i){return t[e]=H[i],t},{}))}else{T&&(C=T.indexOf("x"),O=T.indexOf("y"),C=C>=0?C:0,O=O>=0?O:1),1===E.length&&(O=0);for(var _=[],z=[],U=0,V=t;U<V.length;U++){var F=V[U];C===O?_.push(this.autoIncrement()):_.push(null!=(h=null!=(a=F[C])?a:F.x)?h:null),z.push(null!=(d=null!=(l=F[O])?l:F.y)?d:null)}w.setColumns(((n={x:_})[S]=z,n))}else L=!1}if(!L){var Z=M.reduce(function(t,e){return t[e]=[],t},{});for(p=0;p<P;p++)for(var F=this.pointClass.prototype.applyOptions.apply({series:this},[t[p]]),K=0;K<M.length;K++){var q=M[K];Z[q][p]=F[q]}w.setColumns(Z)}for(tE(this.getColumn("y")[0])&&tJ(14,!0,y),this.data=[],this.options.data=this.userOptions.data=t,p=v;p--;)null==(c=g[p])||c.destroy();b&&(b.minRange=b.userMinRange),this.isDirty=y.isDirtyBox=!0,this.isDirtyData=!!g,i=!1}"point"===m.legendType&&(this.processData(),this.generatePoints()),e&&y.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",o=function(t,e){return tu(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,r){t[r]=o(e,i),t[r].index=r},this),t.concat().sort(function(t,e){var o=tS(i,t),r=tS(i,e);return r<o?-1:+(r>o)}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var i,r=e.options,n=r.data;(null==(i=r.dataSorting)?void 0:i.enabled)||!n||(n.forEach(function(i,r){n[r]=o(e,i),t[r]&&(n[r].x=t[r].x,n[r].index=r)}),e.setData(n,!1))}),t},t.prototype.getProcessedData=function(t){var e,i,o,r,n,s=this,a=s.dataTable,h=s.isCartesian,l=s.options,d=s.xAxis,c=l.cropThreshold,p=t||s.getExtremesFromAll,u=null==d?void 0:d.logarithmic,f=a.rowCount,g=0,v=s.getColumn("x"),m=a,y=!1;return d&&(r=(o=d.getExtremes()).min,n=o.max,y=!!(d.categories&&!d.names.length),h&&s.sorted&&!p&&(!c||f>c||s.forceCrop)&&(v[f-1]<r||v[0]>n?m=new iH:s.getColumn(s.pointValKey||"y").length&&(v[0]<r||v[f-1]>n)&&(m=(e=this.cropData(a,r,n)).modified,g=e.start,i=!0))),v=m.getColumn("x")||[],{modified:m,cropped:i,cropStart:g,closestPointRange:tw([u?v.map(u.log2lin):v],function(){return s.requireSorting&&!y&&tJ(15,!1,s.chart)})}},t.prototype.processData=function(t){var e=this.xAxis,i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;var o=this.getProcessedData();i.modified=o.modified,this.cropped=o.cropped,this.cropStart=o.cropStart,this.closestPointRange=this.basePointRange=o.closestPointRange,tb(this,"afterProcessData")},t.prototype.cropData=function(t,e,i){var o,r,n=t.getColumn("x",!0)||[],s=n.length,a={},h=0,l=s;for(o=0;o<s;o++)if(n[o]>=e){h=Math.max(0,o-1);break}for(r=o;r<s;r++)if(n[r]>i){l=r+1;break}for(var d=0,c=this.dataColumnKeys();d<c.length;d++){var p=c[d],u=t.getColumn(p,!0);u&&(a[p]=u.slice(h,l))}return{modified:new iH({columns:a}),start:h,end:l}},t.prototype.generatePoints=function(){var t,e,i,o,r,n,s,a,h,l,d,c,p,u=this.options,f=this.processedData||u.data,g=this.dataTable.getModified(),v=this.getColumn("x",!0),m=this.pointClass,y=g.rowCount,x=this.cropStart||0,b=this.hasGroupedData,k=u.keys,w=[],M=(null==(t=u.dataGrouping)?void 0:t.groupAll)?x:0,S=this.pointArrayMap||["y"],A=this.dataColumnKeys(),T=this.data;if(!T&&!b){var C=[];C.length=(null==f?void 0:f.length)||0,T=this.data=C}for(k&&b&&(this.options.keys=!1),c=0;c<y;c++)l=x+c,b?((d=new m(this,g.getRow(c,A)||[])).dataGroup=null==(n=this.groupMap)?void 0:n[M+c],(null==(s=d.dataGroup)?void 0:s.options)&&(d.options=d.dataGroup.options,ty(d,d.dataGroup.options),delete d.dataLabels,d.key=null!=(a=d.name)?a:d.category)):(d=T[l],p=f?f[l]:g.getRow(c,S),d||void 0===p?d&&(d.category=null!=(o=null==(i=null==(e=this.xAxis)?void 0:e.categories)?void 0:i[d.x])?o:d.x,d.key=null!=(r=d.name)?r:d.category):T[l]=d=new m(this,p,v[c])),d&&(d.index=b?M+c:l,w[c]=d);if(this.options.keys=k,T&&(y!==(h=T.length)||b))for(c=0;c<h;c++)c!==x||b||(c+=y),T[c]&&(T[c].destroyElements(),T[c].plotX=void 0);this.data=T,this.points=w,tb(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:tn(t),max:ts(t)}},t.prototype.getExtremes=function(t,e){var i,o,r,n,s=this.xAxis,a=this.yAxis,h=e||this.getExtremesFromAll||this.options.getExtremesFromAll,l=h&&this.cropped?this.dataTable:this.dataTable.getModified(),d=l.rowCount,c=t||this.stackedYData,p=c?[c]:(null==(i=this.keysAffectYAxis||this.pointArrayMap||["y"])?void 0:i.map(function(t){return l.getColumn(t,!0)||[]}))||[],u=this.getColumn("x",!0),f=[],g=this.requireSorting&&!this.is("column")?1:0,v=!!a&&a.positiveValuesOnly,m=h||this.cropped||!s,y=0,x=0;for(s&&(y=(o=s.getExtremes()).min,x=o.max),n=0;n<d;n++)if(r=u[n],m||(u[n+g]||r)>=y&&(u[n-g]||r)<=x)for(var b=0;b<p.length;b++){var k=p[b][n];tL(k)&&(k>0||!v)&&f.push(k)}var w={activeYData:f,dataMin:tn(f),dataMax:ts(f)};return tb(this,"afterGetExtremes",{dataExtremes:w}),w},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=1);for(var o=t.length,r=e;r>=0&&r<o;){if(tu(t[r]))return t[r];r+=i}},t.prototype.translate=function(){this.generatePoints();var t,e,i,o,r,n=this.options,s=n.stacking,a=this.xAxis,h=this.enabledDataSorting,l=this.yAxis,d=this.points,c=d.length,p=this.pointPlacementToXValue(),u=!!p,f=n.threshold,g=n.startFromThreshold?f:0,v=(null==n?void 0:n.nullInteraction)&&l.len,m=Number.MAX_VALUE;function y(t){return th(t,-1e9,1e9)}for(e=0;e<c;e++){var x=d[e],b=x.x,k=void 0,w=void 0,M=x.y,S=x.low,A=s&&(null==(t=l.stacking)?void 0:t.stacks[(this.negStacks&&M<(g?0:f)?"-":"")+this.stackKey]);x.plotX=tL(i=a.translate(b,!1,!1,!1,!0,p))?tl(y(i)):void 0,s&&this.visible&&A&&A[b]&&(r=this.getStackIndicator(r,b,this.index),!x.isNull&&r.key&&(w=(k=A[b]).points[r.key]),k&&tD(w)&&(S=w[0],M=w[1],S===g&&r.key===A[b].base&&(S=tH(tL(f)?f:l.min)),l.positiveValuesOnly&&tu(S)&&S<=0&&(S=void 0),x.total=x.stackTotal=tH(k.total),x.percentage=tu(x.y)&&k.total?x.y/k.total*100:void 0,x.stackY=M,this.irregularWidths||k.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),x.yBottom=tu(S)?y(l.translate(S,!1,!0,!1,!0)):void 0,this.dataModify&&(M=this.dataModify.modifyValue(M,e));var T=void 0;tL(M)&&void 0!==x.plotX?T=tL(T=l.translate(M,!1,!0,!1,!0))?y(T):void 0:!tL(M)&&v&&(T=v),x.plotY=T,x.isInside=this.isPointInside(x),x.clientX=u?tl(a.translate(b,!1,!1,!1,!0,p)):i,x.negative=(x.y||0)<(f||0),x.isNull||!1===x.visible||(void 0!==o&&(m=Math.min(m,Math.abs(i-o))),o=i),x.zone=this.zones.length?x.getZone():void 0,!x.graphic&&this.group&&h&&(x.isNew=!0)}this.closestPointRangePx=m,tb(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter(function(t){var r=t.plotX,n=t.plotY;return(!!i||!t.isNull&&!!tL(n))&&(!e||!!o.isInsidePlot(r,n,{inverted:o.inverted}))&&!1!==t.visible})},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},t.prototype.setClip=function(){var t=this.chart,e=this.group,i=this.markerGroup,o=t.sharedClips,r=t.renderer,n=t.getClipBox(this),s=this.getSharedClipKey(),a=o[s];tb(this,"setClip",{clipBox:n}),a?a.animate(n):o[s]=a=r.clipRect(n),e&&e.clip(!1===this.options.clip?void 0:a),i&&i.clip()},t.prototype.animate=function(t){var e=this.chart,i=this.group,o=this.markerGroup,r=e.inverted,n=eh(this.options.animation),s=[this.getSharedClipKey(),n.duration,n.easing,n.defer].join(","),a=e.sharedClips[s],h=e.sharedClips[s+"m"];if(t&&i){var l=e.getClipBox(this);if(a)a.attr("height",l.height);else{l.width=0,r&&(l.x=e.plotHeight),a=e.renderer.clipRect(l),e.sharedClips[s]=a;var d={x:-99,y:-99,width:r?e.plotWidth+199:99,height:r?99:e.plotHeight+199};h=e.renderer.clipRect(d),e.sharedClips[s+"m"]=h}i.clip(a),null==o||o.clip(h)}else if(a&&!a.hasClass("highcharts-animating")){var c=e.getClipBox(this),p=n.step;((null==o?void 0:o.element.childNodes.length)||e.series.length>1)&&(n.step=function(t,e){p&&p.apply(e,arguments),"width"===e.prop&&(null==h?void 0:h.element)&&h.attr(r?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(c,n)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),tN(this.chart.sharedClips,function(e,i,o){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete o[i])}),this.finishedAnimating=!0,tb(this,"afterAnimate")},t.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i,o,r,n,s,a,h=this.chart,l=h.styledMode,d=this.colorAxis,c=this.options,p=c.marker,u=c.nullInteraction,f=this[this.specialGroup||"markerGroup"],g=this.xAxis,v=tH(p.enabled,!g||!!g.isRadial||null,this.closestPointRangePx>=p.enabledThreshold*p.radius);if(!1!==p.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){r=(o=(i=t[e]).graphic)?"animate":"attr",n=i.marker||{},s=!!i.marker;var m=i.isNull;if((v&&!tu(n.enabled)||n.enabled)&&(!m||u)&&!1!==i.visible){var y=tH(n.symbol,this.symbol,"rect");a=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=g.reversed?-(a.width||0):g.width);var x=!1!==i.isInside;if(!o&&x&&((a.width||0)>0||i.hasImage)&&(i.graphic=o=h.renderer.symbol(y,a.x,a.y,a.width,a.height,s?n:p).add(f),this.enabledDataSorting&&h.hasRendered&&(o.attr({x:i.startXPos}),r="animate")),o&&"animate"===r&&o[x?"show":"hide"](x).animate(a),o){var b=this.pointAttribs(i,l||!i.selected?void 0:"select");l?d&&o.css({fill:b.fill}):o[r](b)}o&&o.addClass(i.getClassName(),!0)}else o&&(i.graphic=o.destroy())}},t.prototype.markerAttribs=function(t,e){var i,o,r,n,s=this.options,a=s.marker,h=t.marker||{},l=h.symbol||a.symbol,d={},c=tH(h.radius,null==a?void 0:a.radius);e&&(r=null==(i=null==a?void 0:a.states)?void 0:i[e],c=tH(null==(n=null==(o=h.states)?void 0:o[e])?void 0:n.radius,null==r?void 0:r.radius,c&&c+((null==r?void 0:r.radiusPlus)||0))),t.hasImage=l&&0===l.indexOf("url"),t.hasImage&&(c=0);var p=t.pos();return tL(c)&&p&&(s.crisp&&(p[0]=tc(p[0],t.hasImage?0:"rect"===l?(null==a?void 0:a.lineWidth)||0:1)),d.x=p[0]-c,d.y=p[1]-c),c&&(d.width=d.height=2*c),d},t.prototype.pointAttribs=function(t,e){var i,o,r,n,s,a=this.options,h=a.marker,l=null==t?void 0:t.options,d=(null==l?void 0:l.marker)||{},c=null==l?void 0:l.color,p=null==t?void 0:t.color,u=null==(i=null==t?void 0:t.zone)?void 0:i.color,f=this.color,g=tH(d.lineWidth,h.lineWidth),v=(null==t?void 0:t.isNull)&&a.nullInteraction?0:1;return f=c||u||p||f,n=d.fillColor||h.fillColor||f,s=d.lineColor||h.lineColor||f,e=e||"normal",o=h.states[e]||{},g=tH((r=d.states&&d.states[e]||{}).lineWidth,o.lineWidth,g+tH(r.lineWidthPlus,o.lineWidthPlus,0)),n=r.fillColor||o.fillColor||n,s=r.lineColor||o.lineColor||s,{stroke:s,"stroke-width":g,fill:n,opacity:v=tH(r.opacity,o.opacity,v)}},t.prototype.destroy=function(t){var e,i,o,r,n=this,s=n.chart,a=/AppleWebKit\/533/.test(i0.navigator.userAgent),h=n.data||[];for(tb(n,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(n.axisTypes||[]).forEach(function(t){(null==(r=n[t])?void 0:r.series)&&(tm(r.series,n),r.isDirty=r.forceRedraw=!0)}),n.legendItem&&n.chart.legend.destroyItem(n),o=h.length;o--;)null==(i=null==(e=h[o])?void 0:e.destroy)||i.call(e);for(var l=0,d=n.zones;l<d.length;l++)tf(d[l],void 0,!0);tC(n.animationTimeout),tN(n,function(t,e){t instanceof eI&&!t.survive&&t[a&&"group"===e?"hide":"destroy"]()}),s.hoverSeries===n&&(s.hoverSeries=void 0),tm(s.series,n),s.orderItems("series"),tN(n,function(e,i){t&&"hcEvents"===i||delete n[i]})},t.prototype.applyZones=function(){var t=this.area,e=this.chart,i=this.graph,o=this.zones,r=this.points,n=this.xAxis,s=this.yAxis,a=this.zoneAxis,h=e.inverted,l=e.renderer,d=this[""+a+"Axis"],c=d||{},p=c.isXAxis,u=c.len,f=void 0===u?0:u,g=c.minPointOffset,v=void 0===g?0:g,m=((null==i?void 0:i.strokeWidth())||0)/2+1,y=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0),h&&(i=f-i);var o=t.translated,r=void 0===o?0:o,n=t.lineClip,s=i-r;null==n||n.push(["L",e,Math.abs(s)<m?i-m*(s<=0?-1:1):r])};if(o.length&&(i||t)&&d&&tL(d.min)){var x=d.getExtremes().max+v,b=function(t){t.forEach(function(e,i){("M"===e[0]||"L"===e[0])&&(t[i]=[e[0],p?f-e[1]:e[1],p?e[2]:f-e[2]])})};if(o.forEach(function(t){t.lineClip=[],t.translated=th(d.toPixels(tH(t.value,x),!0)||0,0,f)}),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===a&&r.length<n.len)for(var k=0;k<r.length;k++){var w=r[k],M=w.plotX,S=w.plotY,A=w.zone,T=A&&o[o.indexOf(A)-1];A&&y(A,M,S),T&&y(T,M,S)}var C=[],O=d.toPixels(d.getExtremes().min-v,!0);o.forEach(function(e){var o,r,a=e.lineClip||[],d=Math.round(e.translated||0);n.reversed&&a.reverse();var c=e.clip,u=e.simpleClip,f=0,g=0,v=n.len,m=s.len;p?(f=d,v=O):(g=d,m=O);var y=[["M",f,g],["L",v,g],["L",v,m],["L",f,m],["Z"]],x=i$(i$(i$(i$([y[0]],a,!0),[y[1],y[2]],!1),C,!0),[y[3],y[4]],!1);C=a.reverse(),O=d,h&&(b(x),t&&b(y)),c?(c.animate({d:x}),null==u||u.animate({d:y})):(c=e.clip=l.path(x),t&&(u=e.simpleClip=l.path(y))),i&&(null==(o=e.graph)||o.clip(c)),t&&(null==(r=e.area)||r.clip(u))})}else this.visible&&(i&&i.show(),t&&t.show())},t.prototype.plotGroup=function(t,e,i,o,r){var n=this[t],s=!n,a={visibility:i,zIndex:o||.1};return tu(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(a.opacity=this.opacity),n||(this[t]=n=this.chart.renderer.g().add(r)),n.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(tu(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(n.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),n.attr(a)[s?"attr":"animate"](this.getPlotBox(e)),n},t.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart,r=o.inverted&&!o.polar&&e&&this.invertible&&"series"===t;o.inverted&&(e=i,i=this.xAxis);var n={scale:1,translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,name:t};tb(this,"getPlotBox",n);var s=n.scale;return{translateX:n.translateX,translateY:n.translateY,rotation:90*!!r,rotationOriginX:r?s*(e.len-i.len)/2:0,rotationOriginY:r?s*(e.len+i.len)/2:0,scaleX:r?-s:s,scaleY:s}},t.prototype.removeEvents=function(t){var e=this.eventsToUnbind;t||t_(this),e.length&&(e.forEach(function(t){t()}),e.length=0)},t.prototype.render=function(){var t,e,i,o,r,n=this,s=n.chart,a=n.options,h=n.hasRendered,l=eh(a.animation),d=n.visible?"inherit":"hidden",c=a.zIndex,p=s.seriesGroup,u=n.finishedAnimating?0:l.duration;tb(this,"render"),n.plotGroup("group","series",d,c,p),n.markerGroup=n.plotGroup("markerGroup","markers",d,c,p),!1!==a.clip&&n.setClip(),u&&(null==(t=n.animate)||t.call(n,!0)),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),null==(e=n.drawDataLabels)||e.call(n),null==(i=n.redrawPoints)||i.call(n),a.enableMouseTracking&&(null==(o=n.drawTracker)||o.call(n)),u&&(null==(r=n.animate)||r.call(n)),h||(u&&l.defer&&(u+=l.defer),n.animationTimeout=tZ(function(){n.afterAnimate()},u||0)),n.isDirty=!1,n.hasRendered=!0,tb(n,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},t.prototype.reserveSpace=function(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries},t.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},t.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var e=this,i=e.options,o=i.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,tZ(function(){e.kdTree=function t(i,o,r){var n,s,a=null==i?void 0:i.length;if(a)return n=e.kdAxisArray[o%r],i.sort(function(t,e){return(t[n]||0)-(e[n]||0)}),{point:i[s=Math.floor(a/2)],left:t(i.slice(0,s),o+1,r),right:t(i.slice(s+1),o+1,r)}}(e.getValidPoints(void 0,!e.directTouch,null==i?void 0:i.nullInteraction),o,o),e.buildingKdTree=!1},i.kdNow||(null==t?void 0:t.type)==="touchstart"?0:1)},t.prototype.searchKDTree=function(t,e,i,o,r){var n=this,s=this.kdAxisArray,a=s[0],h=s[1],l=e?"distX":"dist",d=(n.options.findNearestPointBy||"").indexOf("y")>-1?2:1,c=!!n.isBubble,p=o||function(t,e,i){var o=t[i]||0,r=e[i]||0;return[o===r&&t.index>e.index||o<r?t:e,!1]},u=r||function(t,e){return t<e};if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,o,r){var s,d,f,g,v,m,y,x,b,k,w=i.point,M=n.kdAxisArray[o%r],S=w,A=!1;d=e[a],f=w[a],g=tu(d)&&tu(f)?d-f:null,v=e[h],m=w[h],y=tu(v)&&tu(m)?v-m:0,x=c&&(null==(s=w.marker)?void 0:s.radius)||0,w.dist=Math.sqrt((g&&g*g||0)+y*y)-x,w.distX=tu(g)?Math.abs(g)-x:Number.MAX_VALUE;var T=(e[M]||0)-(w[M]||0)+(c&&(null==(k=w.marker)?void 0:k.radius)||0),C=T<0?"left":"right",O=T<0?"right":"left";return i[C]&&(S=(b=p(w,t(e,i[C],o+1,r),l))[0],A=b[1]),i[O]&&u(Math.sqrt(T*T),S[l],A)&&(S=p(S,t(e,i[O],o+1,r),l)[0]),S}(t,this.kdTree,d,d)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=this.xAxis,i=t.pointPlacement;return"between"===i&&(i=e.reversed?-.5:.5),tL(i)?i*(t.pointRange||e.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,o=this.yAxis,r=t.plotX,n=void 0===r?-1:r,s=t.plotY,a=void 0===s?-1:s;return a>=0&&a<=(o?o.len:e.plotHeight)&&n>=0&&n<=(i?i.len:e.plotWidth)},t.prototype.drawTracker=function(){var t,e=this,i=e.options,o=i.trackByArea,r=[].concat((o?e.areaPath:e.graphPath)||[]),n=e.chart,s=n.pointer,a=n.renderer,h=(null==(t=n.options.tooltip)?void 0:t.snap)||0,l=function(){i.enableMouseTracking&&n.hoverSeries!==e&&e.onMouseOver()},d="rgba(192,192,192,"+(iQ?1e-4:.002)+")",c=e.tracker;c?c.attr({d:r}):e.graph&&(e.tracker=c=a.path(r).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(o?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),n.styledMode||c.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:d,fill:o?d:"none","stroke-width":e.graph.strokeWidth()+(o?0:2*h)}),i$([e.tracker,e.markerGroup],e.dataLabelsGroups||[],!0).forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(t){null==s||s.onTrackerMouseOut(t)}),i.cursor&&!n.styledMode&&t.css({cursor:i.cursor}),t.on("touchstart",l))})),tb(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,o,r){var n,s,a=this.options,h=this.chart,l=this.data,d=this.dataTable,c=this.xAxis,p=(null==c?void 0:c.hasNames)&&c.names,u=a.data,f=this.getColumn("x");e=tH(e,!0);var g={series:this};this.pointClass.prototype.applyOptions.apply(g,[t]);var v=g.x;if(s=f.length,this.requireSorting&&v<f[s-1])for(n=!0;s&&f[s-1]>v;)s--;d.setRow(g,s,!0,{addColumns:!1}),p&&g.name&&(p[v]=g.name),null==u||u.splice(s,0,t),(n||this.processedData)&&(this.data.splice(s,0,null),this.processData()),"point"===a.legendType&&this.generatePoints(),i&&(l[0]&&l[0].remove?l[0].remove(!1):([l,u].filter(tu).forEach(function(t){t.shift()}),d.deleteRows(0))),!1!==r&&tb(this,"addPoint",{point:g}),this.isDirty=!0,this.isDirtyData=!0,e&&h.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,r=o.chart,n=o.data,s=o.points,a=o.dataTable,h=n[t],l=function(){[(null==s?void 0:s.length)===n.length?s:void 0,n,o.options.data].filter(tu).forEach(function(e){e.splice(t,1)}),a.deleteRows(t),null==h||h.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&r.redraw()};ep(i,r),e=tH(e,!0),h?h.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,i,o){var r=this,n=r.chart;function s(){r.destroy(o),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(o),tH(t,!0)&&n.redraw(e)}!1!==i?tb(r,"remove",null,s):s()},t.prototype.update=function(e,i){tb(this,"update",{options:e=tv(e,this.userOptions)});var o,r,n,s,a,h,l=this,d=l.chart,c=l.userOptions,p=l.initialType||l.type,u=d.options.plotOptions,f=i1[p].prototype,g=l.finishedAnimating&&{animation:!1},v={},m=t.keepProps.slice(),y=e.type||c.type||d.options.chart.type,x=!(this.hasDerivedData||y&&y!==this.type||void 0!==e.keys||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(function(t){return l.hasOptionChanged(t)}));y=y||p,x?(m.push.apply(m,t.keepPropsForPoints),!1!==e.visible&&m.push("area","graph"),l.parallelArrays.forEach(function(t){m.push(t+"Data")}),e.data&&(e.dataSorting&&ty(l.options.dataSorting,e.dataSorting),this.setData(e.data,!1))):this.dataTable.modified=this.dataTable,e.dataLabels&&c.dataLabels&&(e.dataLabels=this.mergeArrays(c.dataLabels,e.dataLabels)),e=tz(c,{index:void 0===c.index?l.index:c.index,pointStart:null!=(n=null!=(r=null==(o=null==u?void 0:u.series)?void 0:o.pointStart)?r:c.pointStart)?n:l.getColumn("x")[0]},!x&&{data:l.options.data},e,g),x&&e.data&&(e.data=l.options.data),(m=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","transformGroup"].concat(m)).forEach(function(t){m[t]=l[t],delete l[t]});var b=!1;if(i1[y]){if(b=y!==l.type,l.remove(!1,!1,!1,!0),b)if(d.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(l,i1[y].prototype);else{var k=Object.hasOwnProperty.call(l,"hcEvents")&&l.hcEvents;for(h in f)l[h]=void 0;ty(l,i1[y].prototype),k?l.hcEvents=k:delete l.hcEvents}}else tJ(17,!0,d,{missingModuleFor:y});if(m.forEach(function(t){l[t]=m[t]}),l.init(d,e),x&&this.points){!1===(a=l.options).visible?(v.graphic=1,v.dataLabel=1):(this.hasMarkerChanged(a,c)&&(v.graphic=1),(null==(s=l.hasDataLabels)?void 0:s.call(l))||(v.dataLabel=1));for(var w=0,M=this.points;w<M.length;w++){var S=M[w];(null==S?void 0:S.series)&&(S.resolveColor(),Object.keys(v).length&&S.destroyElements(v),!1===a.showInLegend&&S.legendItem&&d.legend.destroyItem(S))}}l.initialType=p,d.linkSeries(),d.setSortedData(),b&&l.linkedSeries.length&&(l.isDirtyData=!0),tb(this,"afterUpdate"),tH(i,!0)&&d.redraw(!!x&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e,i,o=this.chart,r=this.options[t],n=o.options.plotOptions,s=this.userOptions[t],a=tH(null==(e=null==n?void 0:n[this.type])?void 0:e[t],null==(i=null==n?void 0:n.series)?void 0:i[t]);return s&&!tu(a)?r!==s:r!==tH(a,r)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries,i=t.pointer;null==i||i.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&tb(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,i=e.tooltip,o=e.hoverPoint;e.hoverSeries=null,o&&o.onMouseOut(),this&&t.events.mouseOut&&tb(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var i,o,r=this,n=r.graph,s=r.options,a=s.inactiveOtherPoints,h=s.states,l=tH(null==(i=null==h?void 0:h[t||"normal"])?void 0:i.animation,r.chart.options.chart.animation),d=s.lineWidth,c=s.opacity;if(t=t||"",r.state!==t&&(i$([r.group,r.markerGroup],r.dataLabelsGroups||[],!0).forEach(function(e){e&&(r.state&&e.removeClass("highcharts-series-"+r.state),t&&e.addClass("highcharts-series-"+t))}),r.state=t,!r.chart.styledMode)){if((null==(o=h[t])?void 0:o.enabled)===!1)return;if(t&&(d=h[t].lineWidth||d+(h[t].lineWidthPlus||0),c=tH(h[t].opacity,c)),n&&!n.dashstyle&&tL(d))for(var p=0,u=i$([n],this.zones.map(function(t){return t.graph}),!0);p<u.length;p++){var f=u[p];null==f||f.animate({"stroke-width":d},l)}a||i$(i$([r.group,r.markerGroup],r.dataLabelsGroups||[],!0),[r.labelBySeries],!1).forEach(function(t){null==t||t.animate({opacity:c},l)})}e&&a&&r.points&&r.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},t.prototype.setVisible=function(t,e){var i,o,r=this,n=r.chart,s=n.options.chart.ignoreHiddenSeries,a=r.visible;r.visible=t=r.options.visible=r.userOptions.visible=void 0===t?!a:t;var h=t?"show":"hide";["group","markerGroup","tracker","tt"].forEach(function(t){var e;null==(e=r[t])||e[h]()}),null==(i=r.dataLabelsGroups)||i.forEach(function(t){null==t||t[h]()}),(n.hoverSeries===r||(null==(o=n.hoverPoint)?void 0:o.series)===r)&&r.onMouseOut(),r.legendItem&&n.legend.colorizeItem(r,t),r.isDirty=!0,r.options.stacking&&n.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),r.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),s&&(n.isDirtyBox=!0),tb(r,h),!1!==e&&n.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),tb(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,i){return void 0===i&&(i={}),i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)},t.prototype.drawLegendSymbol=function(t,e){var i,o,r=this.chart.renderer,n=this.options.legendSymbol||"rectangle",s=e.legendItem||{},a=t.options,h=t.symbolHeight,l=t.symbolWidth,d=a.squareSymbol,c=d?h:l,p=d?(l-h)/2:0,u=(t.baseline||0)-h+1,f=null!=(i=a.symbolRadius)?i:h,g="rectangle"===n?r.rect(p,u,c,h,f):r.symbols[n]&&r.symbol(n,p,u,c,h,{r:f});g?s.symbol=g.addClass("highcharts-point").attr({zIndex:3}).add(s.group):null==(o=ij[n])||o.call(this,t,e)},t.defaultOptions=i_,t.types=iK.seriesTypes,t.registerType=iK.registerSeriesType,t.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],t.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],t}();ty(i3.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:iP,requireSorting:!0,sorted:!0}),iK.series=i3;var i5=io.registerEventOptions,i6=tt.composed,i9=tt.marginNames,i4=eT.distribute,i8=eS.format,i7=function(){function t(t,e){var i=this;this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(e),e.enabled&&(this.render(),i5(this,e),tr(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),tr(this.chart,"render",function(){i.options.enabled&&i.proximate&&(i.proximatePositions(),i.positionItems())})}return t.prototype.setOptions=function(t){var e=tH(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=tz(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=tH(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var i=this.chart;this.setOptions(tz(!0,this.options,t)),"events"in this.options&&i5(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,tH(e,!0)&&i.redraw(),tb(this,"afterUpdate",{redraw:e})},t.prototype.colorizeItem=function(t,e){var i,o=t.color,r=t.legendItem||{},n=r.area,s=r.group,a=r.label,h=r.line,l=r.symbol;if((t instanceof i3||t instanceof iP)&&(t.color=(null==(i=t.options)?void 0:i.legendSymbolColor)||o),null==s||s[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var d=this.itemHiddenStyle,c=void 0===d?{}:d,p=c.color,u=t.options,f=u.fillColor,g=u.fillOpacity,v=u.lineColor,m=u.marker,y=function(t){return!e&&(t.fill&&(t.fill=p),t.stroke&&(t.stroke=p)),t};null==a||a.css(tz(e?this.itemStyle:c)),null==h||h.attr(y({stroke:v||t.color})),l&&l.attr(y(m&&l.isMarker?t.pointAttribs():{fill:t.color})),null==n||n.attr(y({fill:f||t.color,"fill-opacity":f?1:null!=g?g:.75}))}t.color=o,tb(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=t.legendItem||{},o=i.group,r=i.x,n=void 0===r?0:r,s=i.y,a=void 0===s?0:s,h=this.options,l=h.symbolPadding,d=!h.rtl,c=t.checkbox;if(null==o?void 0:o.element){var p={translateX:d?n:this.legendWidth-n-2*l-4,translateY:a};o[tu(o.translateY)?"animate":"attr"](p,void 0,function(){tb(e,"afterPositionItem",{item:t})})}c&&(c.x=n,c.y=a)},t.prototype.destroyItem=function(t){for(var e=t.legendItem||{},i=0,o=["group","label","line","symbol"];i<o.length;i++){var r=o[i];e[r]&&(e[r]=e[r].destroy())}t.checkbox=tg(t.checkbox),t.legendItem=void 0},t.prototype.destroy=function(){for(var t=0,e=this.getAllItems();t<e.length;t++){var i=e[t];this.destroyItem(i)}for(var o=0,r=["clipRect","up","down","pager","nav","box","title","group"];o<r.length;o++){var n=r[o];this[n]&&(this[n]=this[n].destroy())}this.display=null},t.prototype.positionCheckboxes=function(){var t,e,i=null==(t=this.group)?void 0:t.alignAttr,o=this.clipHeight||this.legendHeight,r=this.titleHeight;i&&(e=i.translateY,this.allItems.forEach(function(t){var n,s=t.checkbox;s&&(n=e+r+s.y+(this.scrollOffset||0)+3,tp(s,{left:i.translateX+t.checkboxOffset+s.x-20+"px",top:n+"px",display:this.proximate||n>e-6&&n<e+o-6?"":"none"}))},this))},t.prototype.renderTitle=function(){var t,e=this.options,i=this.padding,o=e.title,r=0;o.text&&(this.title||(this.title=this.chart.renderer.label(o.text,i-3,i-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(o.style),this.title.add(this.group)),o.width||this.title.css({width:this.maxLegendWidth+"px"}),r=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?i8(e.labelFormat,t,this.chart):e.labelFormatter.call(t,t)})},t.prototype.renderItem=function(t){var e,i=t.legendItem=t.legendItem||{},o=this.chart,r=o.renderer,n=this.options,s="horizontal"===n.layout,a=this.symbolWidth,h=n.symbolPadding||0,l=this.itemStyle,d=this.itemHiddenStyle,c=s?tH(n.itemDistance,20):0,p=!n.rtl,u=!t.series,f=!u&&t.series.drawLegendSymbol?t.series:t,g=f.options,v=!!this.createCheckboxForItem&&g&&g.showCheckbox,m=n.useHTML,y=t.options.className,x=i.label,b=a+h+c+20*!!v;!x&&(i.group=r.g("legend-item").addClass("highcharts-"+f.type+"-series highcharts-color-"+t.colorIndex+(y?" "+y:"")+(u?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),i.label=x=r.text("",p?a+h:-h,this.baseline||0,m),o.styledMode||x.css(tz(t.visible?l:d)),x.attr({align:p?"left":"right",zIndex:2}).add(i.group),!this.baseline&&(this.fontMetrics=r.fontMetrics(x),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,x.attr("y",this.baseline),this.symbolHeight=tH(n.symbolHeight,this.fontMetrics.f),n.squareSymbol&&(this.symbolWidth=tH(n.symbolWidth,Math.max(this.symbolHeight,16)),b=this.symbolWidth+h+c+20*!!v,p&&x.attr("x",this.symbolWidth+h))),f.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,x,m)),v&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(o.styledMode||!l.width)&&x.css({width:Math.min(n.itemWidth||this.widthOption||o.spacingBox.width,n.maxWidth?tF(n.maxWidth,o.chartWidth):1/0)-b+"px"}),this.setText(t);var k=x.getBBox(),w=(null==(e=this.fontMetrics)?void 0:e.h)||0;t.itemWidth=t.checkboxOffset=n.itemWidth||i.labelWidth||k.width+b,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(i.labelHeight||(k.height>1.5*w?k.height:w))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,r=t.itemHeight,n=this.itemMarginBottom,s=this.itemMarginTop,a=o?tH(e.itemDistance,20):0,h=this.maxLegendWidth,l=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};o&&this.itemX-i+l>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=s+this.itemY+n,this.lastLineHeight=Math.max(r,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,o?this.itemX+=l:(this.itemY+=s+r+n,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):l)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var i,o=null==e?void 0:e.options;e&&tH(o.showInLegend,!tu(o.linkedTo)&&void 0,!0)&&(t=t.concat((null==(i=e.legendItem)?void 0:i.labels)||("point"===o.legendType?e.data:e)))}),tb(this,"afterGetAllItems",{allItems:t}),t},t.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)},t.prototype.adjustMargins=function(t,e){var i=this.chart,o=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,s){var a;n.test(r)&&!tu(t[s])&&(i[i9[s]]=Math.max(i[i9[s]],i.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*o[s%2?"x":"y"]+(null!=(a=o.margin)?a:12)+e[s]+(i.titleOffset[s]||0)))})},t.prototype.proximatePositions=function(){var t,e=this.chart,i=[],o="left"===this.options.align;this.allItems.forEach(function(t){var r,n,s,a,h=o;t.yAxis&&(t.xAxis.options.reversed&&(h=!h),t.points&&(r=tT(h?t.points:t.points.slice(0).reverse(),function(t){return tL(t.plotY)})),n=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,a=t.yAxis.top-e.plotTop,s=t.visible?(r?r.plotY:t.yAxis.height)+(a-.3*n):a+t.yAxis.height,i.push({target:s,size:n,item:t}))},this);for(var r=0,n=i4(i,e.plotHeight);r<n.length;r++){var s=n[r];t=s.item.legendItem||{},tL(s.pos)&&(t.y=e.plotTop-e.spacing[0]+s.pos)}},t.prototype.render=function(){var t,e,i,o,r=this.chart,n=r.spacingBox.width,s=r.renderer,a=this.options,h=this.padding,l=this.getAllItems(),d=this.group,c=this.box;this.itemX=h,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=tF(a.width,n-h),o=n-2*h-a.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(o/=2),this.maxLegendWidth=this.widthOption||o,d||(this.group=d=s.g("legend").addClass(a.className||"").attr({zIndex:7}).add(),this.contentGroup=s.g().attr({zIndex:1}).add(d),this.scrollGroup=s.g().add(this.contentGroup)),this.renderTitle(),tV(l,function(t,e){var i,o;return((null==(i=t.options)?void 0:i.legendIndex)||0)-((null==(o=e.options)?void 0:o.legendIndex)||0)}),a.reversed&&l.reverse(),this.allItems=l,this.display=t=!!l.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),e=(a.maxWidth?Math.min(this.widthOption||this.offsetWidth,o,tF(a.maxWidth,r.chartWidth)||1/0):this.widthOption||this.offsetWidth)+h,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+h,c||(this.box=c=s.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(d)),r.styledMode||c.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow),e>0&&i>0&&c[c.placed?"animate":"attr"](c.crisp.call({},{x:0,y:0,width:e,height:i},c.strokeWidth())),d[t?"show":"hide"](),r.styledMode&&"none"===d.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),tb(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,o=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?o+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(o-=e.titleOffset[2]),o!==t.y&&(t=tz(t,{y:o})),e.hasRendered||(this.group.placed=!1),this.group.align(tz(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,i,o,r,n=this,s=this.chart,a=s.renderer,h=this.options,l=h.y,d="top"===h.verticalAlign,c=this.padding,p=h.maxHeight,u=h.navigation,f=tH(u.animation,!0),g=u.arrowSize||12,v=this.pages,m=this.allItems,y=function(t){"number"==typeof t?w.attr({height:t}):w&&(n.clipRect=w.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=t?"rect("+c+"px,9999px,"+(c+t)+"px,0)":"auto")},x=function(t){return n[t]=a.circle(0,0,1.3*g).translate(g/2,g/2).add(k),s.styledMode||n[t].attr("fill","rgba(0,0,0,0.0001)"),n[t]},b=s.spacingBox.height+(d?-l:l)-c,k=this.nav,w=this.clipRect;return"horizontal"!==h.layout||"middle"===h.verticalAlign||h.floating||(b/=2),p&&(b=Math.min(b,p)),v.length=0,t&&b>0&&t>b&&!1!==u.enabled?(this.clipHeight=e=Math.max(b-20-this.titleHeight-c,0),this.currentPage=tH(this.currentPage,1),this.fullHeight=t,m.forEach(function(t,n){var s=(o=t.legendItem||{}).y||0,a=Math.round(o.label.getBBox().height),h=v.length;(!h||s-v[h-1]>e&&(i||s)!==v[h-1])&&(v.push(i||s),h++),o.pageIx=h-1,i&&r&&(r.pageIx=h-1),n===m.length-1&&s+a-v[h-1]>e&&s>v[h-1]&&(v.push(s),o.pageIx=h),s!==i&&(i=s),r=o}),w||(w=n.clipRect=a.clipRect(0,c-2,9999,0),n.contentGroup.clip(w)),y(e),k||(this.nav=k=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,g,g).add(k),x("upTracker").on("click",function(){n.scroll(-1,f)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!s.styledMode&&u.style&&this.pager.css(u.style),this.pager.add(k),this.down=a.symbol("triangle-down",0,0,g,g).add(k),x("downTracker").on("click",function(){n.scroll(1,f)})),n.scroll(0),t=b):k&&(y(),this.nav=k.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,r=this.pages,n=r.length,s=this.clipHeight,a=this.options.navigation,h=this.pager,l=this.padding,d=this.currentPage+t;d>n&&(d=n),d>0&&(void 0!==e&&ep(e,o),this.nav.attr({translateX:l,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),h.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),o.styledMode||(this.up.attr({fill:1===d?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===d?"default":"pointer"}),this.down.attr({fill:d===n?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-r[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),tZ(function(){tb(i,"afterScroll",{currentPage:d})},eh(tH(e,o.renderer.globalAnimation,!0)).duration))},t.prototype.setItemEvents=function(t,e,i){for(var o=this,r=t.legendItem||{},n=o.chart.renderer.boxWrapper,s=t instanceof iP,a=t instanceof i3,h="highcharts-legend-"+(s?"point":"series")+"-active",l=o.chart.styledMode,d=i?[e,r.symbol]:[r.group],c=function(e){o.allItems.forEach(function(i){t!==i&&[i].concat(i.linkedSeries||[]).forEach(function(t){t.setState(e,!s)})})},p=0;p<d.length;p++){var u=d[p];u&&u.on("mouseover",function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&n.addClass(h),l||e.css(o.options.itemHoverStyle)}).on("mouseout",function(){o.chart.styledMode||e.css(tz(t.visible?o.itemStyle:o.itemHiddenStyle)),c(""),n.removeClass(h),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};n.removeClass(h),tb(o,"itemClick",{browserEvent:e,legendItem:t,context:o},i),s?t.firePointEvent("legendItemClick",{browserEvent:e}):a&&tb(t,"legendItemClick",{browserEvent:e})})}},t.prototype.createCheckboxForItem=function(t){t.checkbox=td("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),tr(t.checkbox,"click",function(e){var i=e.target;tb(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})},t}();(m=i7||(i7={})).compose=function(t){tY(i6,"Core.Legend")&&tr(t,"beforeMargins",function(){this.legend=new m(this,this.options.legend)})};var ot=i7,oe=function(){return(oe=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},oi=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},oo=eS.numberFormat,or=io.registerEventOptions,on=tt.charts,os=tt.doc,oa=tt.marginNames,oh=tt.svg,ol=tt.win,od=iK.seriesTypes,oc=function(){function t(t,e,i){if(this.sharedClips={},!os)return void tJ(36,!1,this);var o=oi([],arguments,!0);(tE(t)||t.nodeName)&&(this.renderTo=o.shift()),this.init(o[0],o[1])}return t.chart=function(e,i,o){return new t(e,i,o)},t.prototype.setZoomOptions=function(){var t=this.options.chart,e=t.zooming;this.zooming=oe(oe({},e),{type:tH(t.zoomType,e.type),key:tH(t.zoomKey,e.key),pinchType:tH(t.pinchType,e.pinchType),singleTouch:tH(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:tz(e.resetButton,t.resetZoomButton)})},t.prototype.init=function(t,e){tb(this,"init",{args:arguments},function(){var i,o,r=tz(t7,t),n=r.chart,s=this.renderTo||n.renderTo;this.userOptions=ty({},t),(this.renderTo=tE(s)?os.getElementById(s):s)||tJ(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.locale=null!=(i=r.lang.locale)?i:null==(o=this.renderTo.closest("[lang]"))?void 0:o.lang,this.time=new t4(ty(r.time||{},{locale:this.locale}),r.lang),r.time=this.time.options,this.numberFormatter=(n.numberFormatter||oo).bind(this),this.styledMode=n.styledMode,this.hasCartesianSeries=n.showAxes,this.index=on.length,on.push(this),tt.chartCount++,or(this,n),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),tb(this,"afterInit"),this.firstRender()})},t.prototype.initSeries=function(t){var e=this.options.chart,i=t.type||e.type,o=od[i];o||tJ(17,!0,this,{missingModuleFor:i});var r=new o;return"function"==typeof r.init&&r.init(this,t),r},t.prototype.setSortedData=function(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})},t.prototype.orderItems=function(t,e){void 0===e&&(e=0);var i=this[t],o=this.options[t]=tU(this.options[t]).slice(),r=this.userOptions[t]=this.userOptions[t]?tU(this.userOptions[t]).slice():[];if(this.hasRendered&&(o.splice(e),r.splice(e)),i)for(var n=e,s=i.length;n<s;++n){var a=i[n];a&&(a.index=n,a instanceof i3&&(a.name=a.getName()),a.options.isInternal||(o[n]=a.options,r[n]=a.userOptions))}},t.prototype.getClipBox=function(t,e){var i,o,r,n,s,a=this.inverted,h=t||{},l=h.xAxis,d=h.yAxis,c=tz(this.clipBox),p=c.x,u=c.y,f=c.width,g=c.height;return t&&(l&&l.len!==this.plotSizeX&&(f=l.len),d&&d.len!==this.plotSizeY&&(g=d.len),a&&!t.invertible&&(f=(i=[g,f])[0],g=i[1])),e&&(p+=null!=(r=null==(o=a?d:l)?void 0:o.pos)?r:this.plotLeft,u+=null!=(s=null==(n=a?l:d)?void 0:n.pos)?s:this.plotTop),{x:p,y:u,width:f,height:g}},t.prototype.isInsidePlot=function(t,e,i){void 0===i&&(i={});var o,r=this.inverted,n=this.plotBox,s=this.plotLeft,a=this.plotTop,h=this.scrollablePlotBox,l=i.visiblePlotOnly&&(null==(o=this.scrollablePlotArea)?void 0:o.scrollingContainer)||{},d=l.scrollLeft,c=void 0===d?0:d,p=l.scrollTop,u=void 0===p?0:p,f=i.series,g=i.visiblePlotOnly&&h||n,v=i.inverted?e:t,m=i.inverted?t:e,y={x:v,y:m,isInsidePlot:!0,options:i};if(!i.ignoreX){var x=f&&(r&&!this.polar?f.yAxis:f.xAxis)||{pos:s,len:1/0},b=i.paneCoordinates?x.pos+v:s+v;b>=Math.max(c+s,x.pos)&&b<=Math.min(c+s+g.width,x.pos+x.len)||(y.isInsidePlot=!1)}if(!i.ignoreY&&y.isInsidePlot){var k=!r&&i.axis&&!i.axis.isXAxis&&i.axis||f&&(r?f.xAxis:f.yAxis)||{pos:a,len:1/0},w=i.paneCoordinates?k.pos+m:a+m;w>=Math.max(u+a,k.pos)&&w<=Math.min(u+a+g.height,k.pos+k.len)||(y.isInsidePlot=!1)}return tb(this,"afterIsInsidePlot",y),y.isInsidePlot},t.prototype.redraw=function(t){tb(this,"beforeRedraw");var e,i,o,r,n=this.hasCartesianSeries?this.axes:this.colorAxis||[],s=this.series,a=this.pointer,h=this.legend,l=this.userOptions.legend,d=this.renderer,c=d.isHidden(),p=[],u=this.isDirtyBox,f=this.isDirtyLegend;for(d.rootFontSize=d.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),ep(!!this.hasRendered&&t,this),c&&this.temporaryDisplay(),this.layOutTitles(!1),o=s.length;o--;)if(((r=s[o]).options.stacking||r.options.centerInCategory)&&(i=!0,r.isDirty)){e=!0;break}if(e)for(o=s.length;o--;)(r=s[o]).options.stacking&&(r.isDirty=!0);s.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),f=!0):l&&(l.labelFormatter||l.labelFormat)&&(f=!0)),t.isDirtyData&&tb(t,"updatedData")}),f&&h&&h.options.enabled&&(h.render(),this.isDirtyLegend=!1),i&&this.getStacks(),n.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),n.forEach(function(t){t.isDirty&&(u=!0)}),n.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,p.push(function(){tb(t,"afterSetExtremes",ty(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||i)&&t.redraw()}),u&&this.drawChartBox(),tb(this,"predraw"),s.forEach(function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),a&&a.reset(!0),d.draw(),tb(this,"redraw"),tb(this,"render"),c&&this.temporaryDisplay(!0),p.forEach(function(t){t.call()})},t.prototype.get=function(t){var e=this.series;function i(e){return e.id===t||e.options&&e.options.id===t}for(var o=tT(this.axes,i)||tT(this.series,i),r=0;!o&&r<e.length;r++)o=tT(e[r].points||[],i);return o},t.prototype.createAxes=function(){var t=this.userOptions;tb(this,"createAxes");for(var e=0,i=["xAxis","yAxis"];e<i.length;e++)for(var o=i[e],r=t[o]=tU(t[o]||{}),n=0;n<r.length;n++)new ip(this,r[n],o);tb(this,"afterCreateAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){tH(e.selectedStaging,e.selected)&&t.push(e)}),t},[])},t.prototype.getSelectedSeries=function(){return this.series.filter(function(t){return t.selected})},t.prototype.setTitle=function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},t.prototype.applyDescription=function(t,e){var i,o=this,r=this.options[t]=tz(this.options[t],e),n=this[t];n&&e&&(this[t]=n=n.destroy()),r&&!n&&((n=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+t,zIndex:r.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(e,i){o.applyDescription(t,e),o.layOutTitles(i)},this.styledMode||n.css(ty("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},r.style)),n.textPxLength=n.getBBox().width,n.css({whiteSpace:null==(i=r.style)?void 0:i.whiteSpace}),this[t]=n)},t.prototype.layOutTitles=function(t){var e,i,o,r,n=this;void 0===t&&(t=!0);var s=[0,0,0],a=this.options,h=this.renderer,l=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var e,i=n[t],o=n.options[t],r=tz(l),a=(null==i?void 0:i.textPxLength)||0;if(i&&o){tb(n,"layOutTitle",{alignTo:r,key:t,textPxLength:a});var d=h.fontMetrics(i),c=d.b,p=d.h,u=o.verticalAlign||"top",f="top"===u,g=f&&o.minScale||1,v="title"===t?f?-3:0:f?s[0]+2:0,m=Math.min(r.width/a,1),y=Math.max(g,m),x=tz({y:"bottom"===u?c:v+c},o),b=(o.width||(m>g?n.chartWidth:r.width)/y)+"px";null!=x.align||(x.align="title"===t?m<g?"left":"center":null==(e=n.title)?void 0:e.alignValue),i.alignValue!==x.align&&(i.placed=!1);var k=Math.round(i.css({width:b}).getBBox(o.useHTML).height);if(x.height=k,i.align(x,!1,r).attr({align:x.align,scaleX:y,scaleY:y,"transform-origin":""+(r.x+a*y*tk(x.align))+" ".concat(p)}),!o.floating){var w=k*(k<1.2*p?1:y);"top"===u?s[0]=Math.ceil(s[0]+w):"bottom"===u&&(s[2]=Math.ceil(s[2]+w))}}},this),s[0]&&"top"===((null==(e=a.title)?void 0:e.verticalAlign)||"top")&&(s[0]+=(null==(i=a.title)?void 0:i.margin)||0),s[2]&&(null==(o=a.caption)?void 0:o.verticalAlign)==="bottom"&&(s[2]+=(null==(r=a.caption)?void 0:r.margin)||0);var d=!this.titleOffset||this.titleOffset.join(",")!==s.join(",");this.titleOffset=s,tb(this,"afterLayOutTitles"),!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())},t.prototype.getContainerBox=function(){var t=this,e=[].map.call(this.renderTo.children,function(e){if(e!==t.container){var i=e.style.display;return e.style.display="none",[e,i]}}),i={width:tA(this.renderTo,"width",!0)||0,height:tA(this.renderTo,"height",!0)||0};return e.filter(Boolean).forEach(function(t){var e=t[0],i=t[1];e.style.display=i}),i},t.prototype.getChartSize=function(){var t,e=this.options.chart,i=e.width,o=e.height,r=this.getContainerBox(),n=r.height<=1||!(null==(t=this.renderTo.parentElement)?void 0:t.style.height)&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,i||r.width||600),this.chartHeight=Math.max(0,tF(o,this.chartWidth)||(n?400:r.height)),this.containerBox=r},t.prototype.temporaryDisplay=function(t){var e,i=this.renderTo;if(t)for(;null==i?void 0:i.style;)i.hcOrigStyle&&(tp(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(os.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;(null==i?void 0:i.style)&&(os.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,os.body.appendChild(i)),("none"===tA(i,"display",!1)||i.hcOrigDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),tp(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==os.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e,i,o=this.options,r=o.chart,n="data-highcharts-chart",s=t1(),a=this.renderTo,h=tG(ta(a,n));tL(h)&&on[h]&&on[h].hasRendered&&on[h].destroy(),ta(a,n,this.index),a.innerHTML=em.emptyHTML,r.skipClone||a.offsetWidth||this.temporaryDisplay(),this.getChartSize();var l=this.chartHeight,d=this.chartWidth;tp(a,{overflow:"hidden"}),this.styledMode||(i=ty({position:"relative",overflow:"hidden",width:d+"px",height:l+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},r.style||{}));var c=td("div",{id:s},i,a);this.container=c,this.getChartSize(),d!==this.chartWidth&&(d=this.chartWidth,this.styledMode||tp(c,{width:tH(null==(t=r.style)?void 0:t.width,d+"px")})),this.containerBox=this.getContainerBox(),this._cursor=c.style.cursor;var p=r.renderer||!oh?eA.getRendererType(r.renderer):e3;if(this.renderer=new p(c,d,l,void 0,r.forExport,null==(e=o.exporting)?void 0:e.allowHTML,this.styledMode),ep(void 0,this),this.setClassName(r.className),this.styledMode)for(var u in o.defs)this.renderer.definition(o.defs[u]);else this.renderer.setStyle(r.style);this.renderer.chartIndex=this.index,tb(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e,i=this.spacing,o=this.margin,r=this.titleOffset;this.resetMargins(),r[0]&&!tu(o[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+i[0])),r[2]&&!tu(o[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+i[2])),(null==(e=this.legend)?void 0:e.display)&&this.legend.adjustMargins(o,i),tb(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,o=t.margin,r=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?r(t.axes):(null==i?void 0:i.length)&&r(i),oa.forEach(function(i,r){tu(o[r])||(t[i]+=e[r])}),t.setChartSize()},t.prototype.getOptions=function(){return tv(this.userOptions,t7)},t.prototype.reflow=function(t){var e,i,o=this,r=o.containerBox,n=o.getContainerBox();null==(e=o.pointer)||delete e.chartPosition,(null==(i=o.exporting)?void 0:i.isPrinting)||o.isResizing||!r||!n.width||((n.width!==r.width||n.height!==r.height)&&(tC(o.reflowTimeout),o.reflowTimeout=tZ(function(){if(o.container){o.setSize(void 0,void 0,!1);var t=o.containerBox;t&&(t.height=o.chartHeight)}},100*!!t)),o.containerBox=n)},t.prototype.setReflow=function(){var t=this,e=function(e){var i;(null==(i=t.options)?void 0:i.chart.reflow)&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{var i=tr(ol,"resize",e);tr(this,"destroy",i)}},t.prototype.setSize=function(t,e,i){var o=this,r=o.renderer;o.isResizing+=1,ep(i,o);var n=r.globalAnimation;o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,void 0!==t&&(o.options.chart.width=t),void 0!==e&&(o.options.chart.height=e),o.getChartSize();var s=o.chartWidth,a=o.chartHeight,h=o.scrollablePixelsX,l=o.scrollablePixelsY;(o.isDirtyBox||s!==o.oldChartWidth||a!==o.oldChartHeight)&&(o.styledMode||(n?ed:tp)(o.container,{width:""+(s+(void 0===h?0:h))+"px",height:""+(a+(void 0===l?0:l))+"px"},n),o.setChartSize(!0),r.setSize(s,a,n),o.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(n),o.oldChartHeight=void 0,tb(o,"resize"),setTimeout(function(){o&&tb(o,"endResize")},eh(n).duration)),o.isResizing-=1},t.prototype.setChartSize=function(t){var e,i,o,r,n,s,a=this.chartHeight,h=this.chartWidth,l=this.inverted,d=this.spacing,c=this.renderer,p=this.clipOffset,u=Math[l?"floor":"round"];this.plotLeft=o=Math.round(this.plotLeft),this.plotTop=r=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(h-o-(null!=(e=this.marginRight)?e:0))),this.plotHeight=s=Math.max(0,Math.round(a-r-(null!=(i=this.marginBottom)?i:0))),this.plotSizeX=l?s:n,this.plotSizeY=l?n:s,this.spacingBox=c.spacingBox={x:d[3],y:d[0],width:h-d[3]-d[1],height:a-d[0]-d[2]},this.plotBox=c.plotBox={x:o,y:r,width:n,height:s},p&&(this.clipBox={x:u(p[3]),y:u(p[0]),width:u(this.plotSizeX-p[1]-p[3]),height:u(this.plotSizeY-p[0]-p[2])}),t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),c.alignElements()),tb(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){tb(this,"resetMargins");var t=this,e=t.options.chart,i=e.plotBorderWidth||0,o=Math.round(i)/2;["margin","spacing"].forEach(function(i){var o=e[i],r=tI(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach(function(o,n){var s;t[i][n]=null!=(s=e["".concat(i).concat(o)])?s:r[n]})}),oa.forEach(function(e,i){var o;t[e]=null!=(o=t.margin[i])?o:t.spacing[i]}),t.axisOffset=[0,0,0,0],t.clipOffset=[o,o,o,o],t.plotBorderWidth=i},t.prototype.drawChartBox=function(){var t,e,i,o=this.options.chart,r=this.renderer,n=this.chartWidth,s=this.chartHeight,a=this.styledMode,h=this.plotBGImage,l=o.backgroundColor,d=o.plotBackgroundColor,c=o.plotBackgroundImage,p=this.plotLeft,u=this.plotTop,f=this.plotWidth,g=this.plotHeight,v=this.plotBox,m=this.clipRect,y=this.clipBox,x=this.chartBackground,b=this.plotBackground,k=this.plotBorder,w="animate";x||(this.chartBackground=x=r.rect().addClass("highcharts-background").add(),w="attr"),a?t=e=x.strokeWidth():(e=(t=o.borderWidth||0)+8*!!o.shadow,i={fill:l||"none"},(t||x["stroke-width"])&&(i.stroke=o.borderColor,i["stroke-width"]=t),x.attr(i).shadow(o.shadow)),x[w]({x:e/2,y:e/2,width:n-e-t%2,height:s-e-t%2,r:o.borderRadius}),w="animate",b||(w="attr",this.plotBackground=b=r.rect().addClass("highcharts-plot-background").add()),b[w](v),!a&&(b.attr({fill:d||"none"}).shadow(o.plotShadow),c&&(h?(c!==h.attr("href")&&h.attr("href",c),h.animate(v)):this.plotBGImage=r.image(c,p,u,f,g).add())),m?m.animate({width:y.width,height:y.height}):this.clipRect=r.clipRect(y),w="animate",k||(w="attr",this.plotBorder=k=r.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),a||k.attr({stroke:o.plotBorderColor,"stroke-width":o.plotBorderWidth||0,fill:"none"}),k[w](k.crisp(v,-k.strokeWidth())),this.isDirtyBox=!1,tb(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,o=this,r=o.options.chart,n=o.options.series;["inverted","angular","polar"].forEach(function(s){for(e=od[r.type],i=r[s]||e&&e.prototype[s],t=null==n?void 0:n.length;!i&&t--;)(e=od[n[t].type])&&e.prototype[s]&&(i=!0);o[s]=i})},t.prototype.linkSeries=function(t){var e=this,i=e.series;i.forEach(function(t){t.linkedSeries.length=0}),i.forEach(function(t){var o,r,n=t.options.linkedTo,s=tE(n)&&(":previous"===n?i[t.index-1]:e.get(n));s&&s.linkedParent!==t&&(s.linkedSeries.push(t),t.linkedParent=s,s.enabledDataSorting&&t.setDataSortingOptions(),t.visible=null!=(r=null!=(o=t.options.visible)?o:s.options.visible)?r:t.visible)}),tb(this,"afterLinkSeries",{isUpdating:t})},t.prototype.renderSeries=function(){this.series.forEach(function(t){t.translate(),t.render()})},t.prototype.render=function(){var t,e,i,o,r=this.axes,n=this.colorAxis,s=this.renderer,a=this.options.chart.axisLayoutRuns||2,h=function(t){t.forEach(function(t){t.visible&&t.render()})},l=0,d=!0,c=0;this.setTitle(),tb(this,"beforeMargins"),null==(t=this.getStacks)||t.call(this),this.getMargins(!0),this.setChartSize();for(var p=0;p<r.length;p++){var u=r[p],f=u.options,g=f.labels;if(this.hasCartesianSeries&&u.horiz&&u.visible&&g.enabled&&u.series.length&&"colorAxis"!==u.coll&&!this.polar){l=f.tickLength,u.createGroups();var v=new is(u,0,"",!0),m=v.createLabel("x",g);if(v.destroy(),m&&tH(g.reserveSpace,!tL(f.crossing))&&(l=m.getBBox().height+g.distance+Math.max(f.offset||0,0)),l){null==m||m.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-l,0);(d||o||a>1)&&c<a;){for(var y=this.plotWidth,x=this.plotHeight,b=[1.05,1.1],k=0;k<r.length;k++){var u=r[k],w=+(u.horiz||0);if(0===c){u.setScale();var M=null==(i=null==(e=u.tickPositions)?void 0:e.info)?void 0:i.match;M&&(b[w]=Math.min(M,b[w]))}else(w&&d||!w&&o)&&u.setTickInterval(!0)}0===c?this.getAxisMargins():this.getMargins(),d=y/this.plotWidth>(c?1:b[1]),o=x/this.plotHeight>(c?1:b[0]),c++}this.drawChartBox(),this.hasCartesianSeries?h(r):(null==n?void 0:n.length)&&h(n),this.seriesGroup||(this.seriesGroup=s.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e,i=this,o=tz(!0,this.options.credits,t);o.enabled&&!this.credits&&(this.credits=this.renderer.text(o.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(t){tb(i,"creditsClick",t,function(){o.href&&(ol.location.href=o.href)})}).attr({align:o.position.align,zIndex:8}),(null==(e=o.events)?void 0:e.click)&&tr(i,"creditsClick",o.events.click),i.styledMode||this.credits.css(o.style),this.credits.add().align(o.position),this.credits.update=function(t){i.credits=i.credits.destroy(),i.addCredits(t)})},t.prototype.destroy=function(){var t,e,i,o=this,r=o.axes,n=o.series,s=o.container,a=null==s?void 0:s.parentNode;for(tb(o,"destroy"),o.renderer.forExport?tm(on,o):on[o.index]=void 0,tt.chartCount--,o.renderTo.removeAttribute("data-highcharts-chart"),t_(o),i=r.length;i--;)r[i]=r[i].destroy();for(null==(e=null==(t=this.scroller)?void 0:t.destroy)||e.call(t),i=n.length;i--;)n[i]=n[i].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(t){var e,i;o[t]=null==(i=null==(e=o[t])?void 0:e.destroy)?void 0:i.call(e)}),s&&(s.innerHTML=em.emptyHTML,t_(s),a&&tg(s)),tN(o,function(t,e){delete o[e]})},t.prototype.firstRender=function(){var t,e=this,i=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.createAxes();var o=tD(i.series)?i.series:[];i.series=[],o.forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSortedData(),tb(e,"beforeRender"),e.render(),null==(t=e.pointer)||t.getChartPosition(),e.renderer.asyncCounter||e.hasLoaded||e.onload(),e.temporaryDisplay(!0)},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),tb(this,"load"),tb(this,"render"),tu(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":((null==e?void 0:e.element.textContent)||"").replace(/</g,"&lt;")}),t.accessibility&&!1===t.accessibility.enabled||tJ('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))},t.prototype.warnIfCSSNotLoaded=function(){this.styledMode&&"0"!==ol.getComputedStyle(this.container).zIndex&&tJ(35,!1,this)},t.prototype.addSeries=function(t,e,i){var o,r=this;return t&&(e=tH(e,!0),tb(r,"addSeries",{options:t},function(){o=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),o.enabledDataSorting&&o.setData(t.data,!1),tb(r,"afterAddSeries",{series:o}),e&&r.redraw(i)})),o},t.prototype.addAxis=function(t,e,i,o){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:o})},t.prototype.addColorAxis=function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},t.prototype.createAxis=function(t,e){var i=new ip(this,e.axis,t);return tH(e.redraw,!0)&&this.redraw(e.animation),i},t.prototype.showLoading=function(t){var e,i,o,r,n=this,s=n.options,a=s.loading,h=null!=(e=null==a?void 0:a.style)?e:{},l=function(){var t,e,i,o;d&&tp(d,{left:null!=(t=h.left)?t:n.plotLeft+"px",top:null!=(e=h.top)?e:n.plotTop+"px",width:null!=(i=h.width)?i:n.plotWidth+"px",height:null!=(o=h.height)?o:n.plotHeight+"px"})},d=n.loadingDiv,c=n.loadingSpan;d||(n.loadingDiv=d=td("div",{className:"highcharts-loading highcharts-loading-hidden"},null,n.container)),c||(n.loadingSpan=c=td("span",{className:"highcharts-loading-inner"},null,d),tr(n,"redraw",l)),d.className="highcharts-loading",em.setElementHTML(c,tH(t,s.lang.loading,"")),!n.styledMode&&(tp(d,ty(h,{zIndex:10})),tp(c,null!=(i=null==a?void 0:a.labelStyle)?i:{}),n.loadingShown||(tp(d,{opacity:0,display:""}),ed(d,{opacity:null!=(o=h.opacity)?o:.5},{duration:null!=(r=null==a?void 0:a.showDuration)?r:0}))),n.loadingShown=!0,l()},t.prototype.hideLoading=function(){var t,e,i=this.options,o=this.loadingDiv;o&&(o.className="highcharts-loading highcharts-loading-hidden",this.styledMode||ed(o,{opacity:0},{duration:null!=(e=null==(t=i.loading)?void 0:t.hideDuration)?e:100,complete:function(){tp(o,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,o){var r,n,s,a=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=t.isResponsiveOptions,d=[];tb(a,"update",{options:t}),l||a.setResponsive(!1,!0),t=tv(t,a.options),a.userOptions=tz(a.userOptions,t);var c=t.chart;c&&(tz(!0,a.options.chart,c),this.setZoomOptions(),"className"in c&&a.setClassName(c.className),("inverted"in c||"polar"in c||"type"in c)&&(a.propFromSeries(),r=!0),"alignTicks"in c&&(r=!0),"events"in c&&or(this,c),tN(c,function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(n=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(a.isDirtyBox=!0,l||(s=!0))}),!a.styledMode&&c.style&&a.renderer.setStyle(a.options.chart.style||{})),!a.styledMode&&t.colors&&(this.options.colors=t.colors),tN(t,function(e,i){a[i]&&"function"==typeof a[i].update?a[i].update(e,!1):"function"==typeof a[h[i]]?a[h[i]](e):"colors"!==i&&-1===a.collectionsWithUpdate.indexOf(i)&&tz(!0,a.options[i],t[i]),"chart"!==i&&-1!==a.propsRequireUpdateSeries.indexOf(i)&&(n=!0)}),this.collectionsWithUpdate.forEach(function(e){t[e]&&(tU(t[e]).forEach(function(t,o){if(t){var r,n=tu(t.id);n&&(r=a.get(t.id)),!r&&a[e]&&(r=a[e][tH(t.index,o)])&&(n&&tu(r.options.id)||r.options.isInternal)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}}),i&&a[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:d.push(t)}))}),d.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),r&&a.axes.forEach(function(t){t.update({},!1)}),n&&a.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this);var p=null==c?void 0:c.width,u=c&&(tE(c.height)?tF(c.height,p||a.chartWidth):c.height);s||tL(p)&&p!==a.chartWidth||tL(u)&&u!==a.chartHeight?a.setSize(p,u,o):tH(e,!0)&&a.redraw(o),tb(a,"afterUpdate",{options:t,redraw:e,animation:o})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){var t=this,e=t7.lang,i=t.zooming.resetButton,o=i.theme,r="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function n(){t.zoomOut()}tb(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,n,o).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,r)}),tb(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){var t=this;tb(this,"selection",{resetSelection:!0},function(){return t.transform({reset:!0,trigger:"zoom"})})},t.prototype.pan=function(t,e){var i=this,o="object"==typeof e?e:{enabled:e,type:"x"},r=o.type,n=r&&i[({x:"xAxis",xy:"axes",y:"yAxis"})[r]].filter(function(t){return t.options.panningEnabled&&!t.options.isInternal}),s=i.options.chart;(null==s?void 0:s.panning)&&(s.panning=o),tb(this,"pan",{originalEvent:t},function(){i.transform({axes:n,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),tp(i.container,{cursor:"move"})})},t.prototype.transform=function(t){var e=this,i=t.axes,o=void 0===i?this.axes:i,r=t.event,n=t.from,s=void 0===n?{}:n,a=t.reset,h=t.selection,l=t.to,d=void 0===l?{}:l,c=t.trigger,p=t.allowResetButton,u=void 0===p||p,f=this.inverted,g=this.time;null==(m=this.hoverPoints)||m.forEach(function(t){return t.setState()}),tb(this,"transform",t);for(var v,m,y,x,b,k,w=t.hasZoomed||!1,M=0;M<o.length;M++){var S=o[M],A=S.horiz,T=S.len,C=S.minPointOffset,O=void 0===C?0:C,P=S.options,L=S.reversed,E=A?"width":"height",D=A?"x":"y",B=tH(d[E],S.len),I=tH(s[E],S.len),z=10>Math.abs(B)?1:B/I,R=(s[D]||0)+I/2-S.pos,N=R-((null!=(y=d[D])?y:S.pos)+B/2-S.pos)/z,W=L&&!f||!L&&f?-1:1;if(a||!(R<0)&&!(R>S.len)){var X=S.chart.polar||S.isOrdinal?0:O*W||0,H=S.toValue(N,!0),G=S.toValue(N+T/z,!0),Y=H+X,F=G-X,j=S.allExtremes;if(h&&h[S.coll].push({axis:S,min:Math.min(H,G),max:Math.max(H,G)}),Y>F&&(Y=(v=[F,Y])[0],F=v[1]),1===z&&!a&&"yAxis"===S.coll&&!j){for(var _=0,U=S.series;_<U.length;_++){var V=U[_],Z=V.getExtremes(V.getProcessedData(!0).modified.getColumn(V.pointValKey||"y")||[],!0);null!=j||(j={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),tL(Z.dataMin)&&tL(Z.dataMax)&&(j.dataMin=Math.min(Z.dataMin,j.dataMin),j.dataMax=Math.max(Z.dataMax,j.dataMax))}S.allExtremes=j}var K=ty(S.getExtremes(),j||{}),q=K.dataMin,$=K.dataMax,J=K.min,Q=K.max,tt=g.parse(P.min),te=g.parse(P.max),ti=null!=q?q:tt,to=null!=$?$:te,tr=F-Y,tn=S.categories?0:Math.min(tr,to-ti),ts=ti-tn*(tu(tt)?0:P.minPadding),ta=to+tn*(tu(te)?0:P.maxPadding),th=S.allowZoomOutside||1===z||"zoom"!==c&&z>1,tl=Math.min(null!=tt?tt:ts,ts,th?J:ts),td=Math.max(null!=te?te:ta,ta,th?Q:ta);(!S.isOrdinal||1!==z||a)&&(Y<tl&&(Y=tl,z>=1&&(F=Y+tr)),F>td&&(F=td,z>=1&&(Y=F-tr)),(a||S.series.length&&(Y!==J||F!==Q)&&Y>=tl&&F<=td)&&(h?h[S.coll].push({axis:S,min:Y,max:F}):(S.isPanning="zoom"!==c,S.isPanning&&"mousewheel"!==c&&(k=!0),S.setExtremes(a?void 0:Y,a?void 0:F,!1,!1,{move:N,trigger:c,scale:z}),!a&&(Y>tl||F<td)&&(b=u)),w=!0),this.hasCartesianSeries||a||(b=u),r&&(this[A?"mouseDownX":"mouseDownY"]=r[A?"chartX":"chartY"]))}}return w&&(h?tb(this,"selection",h,function(){delete t.selection,t.trigger="zoom",e.transform(t)}):(!b||k||this.resetZoomButton?!b&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===c&&(null!=(x=this.options.chart.animation)?x:this.pointCount<100)))),w},t}();ty(oc.prototype,{callbacks:[],collectionsWithInit:{xAxis:[oc.prototype.addAxis,[!0]],yAxis:[oc.prototype.addAxis,[!1]],series:[oc.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});var op=tt.composed;function ou(){var t=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t&&(this.scrollablePlotArea=t=new og(this)),null==t||t.applyFixed()}function of(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}var og=function(){function t(t){var e,i,o,r=t.options.chart,n=eA.getRendererType(),s=r.scrollablePlotArea||{},a=this.moveFixedElements.bind(this),h={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(h.overflowX="auto"),t.scrollablePixelsY&&(h.overflowY="auto"),this.chart=t;var l=this.parentDiv=td("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),d=this.scrollingContainer=td("div",{className:"highcharts-scrolling"},h,l),c=this.innerContainer=td("div",{className:"highcharts-inner-container"},void 0,d),p=this.fixedDiv=td("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null==(e=r.style)?void 0:e.zIndex)||0)+2,top:0},void 0,!0),u=this.fixedRenderer=new n(p,t.chartWidth,t.chartHeight,r.style);this.mask=u.path().attr({fill:r.backgroundColor||"#fff","fill-opacity":null!=(i=s.opacity)?i:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),d.parentNode.insertBefore(p,d),tp(t.renderTo,{overflow:"visible"}),tr(t,"afterShowResetZoom",a),tr(t,"afterApplyDrilldown",a),tr(t,"afterLayOutTitles",a),tr(d,"scroll",function(){var e=t.pointer,i=t.hoverPoint;e&&(delete e.chartPosition,i&&(o=i),e.runPointActions(void 0,o,!0))}),c.appendChild(t.container)}return t.compose=function(t,e,i){var o=this;tY(op,this.compose)&&(tr(t,"afterInit",of),tr(e,"afterSetChartSize",function(t){return o.afterSetSize(t.target,t)}),tr(e,"render",ou),tr(i,"show",of))},t.afterSetSize=function(t,e){var i,o,r,n=t.options.chart.scrollablePlotArea||{},s=n.minWidth,a=n.minHeight,h=t.clipBox,l=t.plotBox,d=t.inverted;if(!t.renderer.forExport)if(s?(t.scrollablePixelsX=i=Math.max(0,s-t.chartWidth),i&&(t.scrollablePlotBox=tz(t.plotBox),l.width=t.plotWidth+=i,h[d?"height":"width"]+=i,r=!0)):a&&(t.scrollablePixelsY=o=Math.max(0,a-t.chartHeight),tu(o)&&(t.scrollablePlotBox=tz(t.plotBox),l.height=t.plotHeight+=o,h[d?"width":"height"]+=o,r=!1)),tu(r)){if(!e.skipAxes)for(var c=0,p=t.axes;c<p.length;c++){var u=p[c];(u.horiz===r||t.hasParallelCoordinates&&"yAxis"===u.coll)&&(u.setAxisSize(),u.setAxisTranslation())}}else delete t.scrollablePlotBox},t.prototype.applyFixed=function(){var t,e=this.chart,i=this.fixedRenderer,o=this.isDirty,r=this.scrollingContainer,n=e.axisOffset,s=e.chartWidth,a=e.chartHeight,h=e.container,l=e.plotHeight,d=e.plotLeft,c=e.plotTop,p=e.plotWidth,u=e.scrollablePixelsX,f=void 0===u?0:u,g=e.scrollablePixelsY,v=void 0===g?0:g,m=e.options.chart.scrollablePlotArea||{},y=m.scrollPositionX,x=m.scrollPositionY,b=s+f,k=a+v;i.setSize(s,a),(null==o||o)&&(this.isDirty=!1,this.moveFixedElements()),el(e.container),tp(h,{width:""+b+"px",height:""+k+"px"}),e.renderer.boxWrapper.attr({width:b,height:k,viewBox:["0 0",b,k].join(" ")}),null==(t=e.chartBackground)||t.attr({width:b,height:k}),tp(r,{width:""+s+"px",height:""+a+"px"}),tu(o)||(r.scrollLeft=f*(void 0===y?0:y),r.scrollTop=v*(void 0===x?0:x));var w=c-n[0]-1,M=d-n[3]-1,S=c+l+n[2]+1,A=d+p+n[1]+1,T=d+p-f,C=c+l-v,O=[["M",0,0]];f?O=[["M",0,w],["L",d-1,w],["L",d-1,S],["L",0,S],["Z"],["M",T,w],["L",s,w],["L",s,S],["L",T,S],["Z"]]:v&&(O=[["M",M,0],["L",M,c-1],["L",A,c-1],["L",A,0],["Z"],["M",M,C],["L",M,a],["L",A,a],["L",A,C],["Z"]]),"adjustHeight"!==e.redrawTrigger&&this.mask.attr({d:O})},t.prototype.moveFixedElements=function(){var e,i=this.chart,o=i.container,r=i.inverted,n=i.scrollablePixelsX,s=i.scrollablePixelsY,a=this.fixedRenderer,h=t.fixedSelectors.slice();if(n&&!r?e=".highcharts-yaxis":n&&r||s&&!r?e=".highcharts-xaxis":s&&r&&(e=".highcharts-yaxis"),e&&!(this.chart.hasParallelCoordinates&&".highcharts-yaxis"===e))for(var l=0,d=[""+e+":not(.highcharts-radial-axis)",""+e+"-labels:not(.highcharts-radial-axis-labels)"];l<d.length;l++){var c=d[l];tY(h,c)}else for(var p=0,u=[".highcharts-xaxis",".highcharts-yaxis"];p<u.length;p++)for(var f=u[p],g=0,v=[""+f+":not(.highcharts-radial-axis)",""+f+"-labels:not(.highcharts-radial-axis-labels)"];g<v.length;g++){var c=v[g];tm(h,c)}for(var m=0;m<h.length;m++){var c=h[m];[].forEach.call(o.querySelectorAll(c),function(t){(t.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})}},t.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],t}(),ov=eS.format,om=iK.series,oy=function(){function t(t,e,i,o,r){var n=t.chart.inverted,s=t.reversed;this.axis=t;var a=this.isNegative=!!i!=!!s;this.options=e=e||{},this.x=o,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=r,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(n?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(n?"middle":a?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(n?a?"right":"left":"center")}return t.prototype.destroy=function(){tf(this,this.axis)},t.prototype.render=function(t){var e,i=this.axis.chart,o=this.options,r=o.format,n=(r?ov(r,this,i):null==(e=o.formatter)?void 0:e.call(this,this))||"";if(this.label)this.label.attr({text:n,visibility:"hidden"});else{this.label=i.renderer.label(n,null,void 0,o.shape,void 0,void 0,o.useHTML,!1,"stack-labels");var s={r:o.borderRadius||0,text:n,padding:tH(o.padding,5),visibility:"hidden"};i.styledMode||(s.fill=o.backgroundColor,s.stroke=o.borderColor,s["stroke-width"]=o.borderWidth,this.label.css(o.style||{})),this.label.attr(s),this.label.added||this.label.add(t)}this.label.labelrank=i.plotSizeY,tb(this,"afterRender")},t.prototype.setOffset=function(t,e,i,o,r,n){var s=this.alignOptions,a=this.axis,h=this.label,l=this.options,d=this.textAlign,c=a.chart,p=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:o,defaultX:r,xAxis:n}),u=s.verticalAlign;if(h&&p){var f=h.getBBox(void 0,0),g=h.padding,v="justify"===tH(l.overflow,"justify"),m=void 0;s.x=l.x||0,s.y=l.y||0;var y=this.adjustStackPosition({labelBox:f,verticalAlign:u,textAlign:d}),x=y.x,b=y.y;p.x-=x,p.y-=b,h.align(s,!1,p),(m=c.isInsidePlot(h.alignAttr.x+s.x+x,h.alignAttr.y+s.y+b))||(v=!1),v&&om.prototype.justifyDataLabel.call(a,h,s,h.alignAttr,f,p),h.attr({x:h.alignAttr.x,y:h.alignAttr.y,rotation:l.rotation,rotationOriginX:f.width*tk(l.textAlign||"center"),rotationOriginY:f.height/2}),tH(!v&&l.crop,!0)&&(m=tL(h.x)&&tL(h.y)&&c.isInsidePlot(h.x-g+(h.width||0),h.y)&&c.isInsidePlot(h.x+g,h.y)),h[m?"show":"hide"]()}tb(this,"afterSetOffset",{xOffset:t,width:e})},t.prototype.adjustStackPosition=function(t){var e=t.labelBox,i=t.verticalAlign,o=t.textAlign;return{x:e.width/2+e.width/2*(2*tk(o)-1),y:e.height/2*2*(1-tk(i))}},t.prototype.getStackBox=function(t){var e=this.axis,i=e.chart,o=t.boxTop,r=t.defaultX,n=t.xOffset,s=t.width,a=t.boxBottom,h=e.stacking.usePercentage?100:tH(o,this.total,0),l=e.toPixels(h),d=t.xAxis||i.xAxis[0],c=tH(r,d.translate(this.x))+n,p=Math.abs(l-e.toPixels(a||tL(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),u=i.inverted,f=this.isNegative;return u?{x:(f?l:l-p)-i.plotLeft,y:d.height-c-s+d.top-i.plotTop,width:p,height:s}:{x:c+d.transB-i.plotLeft,y:(f?l-p:l)-i.plotTop,width:s,height:p}},t}(),ox=iK.series.prototype;function ob(){var t=this.inverted;this.axes.forEach(function(t){var e;(null==(e=t.stacking)?void 0:e.stacks)&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(function(e){var i,o=(null==(i=e.xAxis)?void 0:i.options)||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,tH(e.options.stack,""),t?o.top:o.left,t?o.height:o.width].join(","))})}function ok(){var t,e=this.stacking;if(e){var i=e.stacks;tN(i,function(t,e){tf(t),delete i[e]}),null==(t=e.stackTotalGroup)||t.destroy()}}function ow(){this.stacking||(this.stacking=new oO(this))}function oM(t,e,i,o){return!tu(t)||t.x!==e||o&&t.stackKey!==o?t={x:e,index:0,key:o,stackKey:o}:t.index++,t.key=[i,e,t.index].join(","),t}function oS(){var t,e=this,i=e.yAxis,o=e.stackKey||"",r=i.stacking.stacks,n=e.getColumn("x",!0),s=e.options.stacking,a=e[s+"Stacker"];a&&[o,"-"+o].forEach(function(i){for(var o,s,h,l,d=n.length;d--;)s=n[d],t=e.getStackIndicator(t,s,e.index,i),(l=null==(h=null==(o=r[i])?void 0:o[s])?void 0:h.points[t.key||""])&&a.call(e,l,h,d)})}function oA(t,e,i){var o=e.total?100/e.total:0;t[0]=tl(t[0]*o),t[1]=tl(t[1]*o),this.stackedYData[i]=t[1]}function oT(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?ox.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function oC(t,e){var i,o,r,n,s,a,h,l,d,c=e||this.options.stacking;if(c&&this.reserveSpace()&&(({group:"xAxis"})[c]||"yAxis")===t.coll){var p=this.getColumn("x",!0),u=this.getColumn(this.pointValKey||"y",!0),f=[],g=u.length,v=this.options,m=v.threshold||0,y=v.startFromThreshold?m:0,x=v.stack,b=e?""+this.type+",".concat(c):this.stackKey||"",k="-"+b,w=this.negStacks,M=t.stacking,S=M.stacks,A=M.oldStacks;for(M.stacksTouched+=1,d=0;d<g;d++){var T=p[d]||0,C=u[d],O=tL(C)&&C||0;l=(r=this.getStackIndicator(r,T,this.index)).key||"",S[h=(n=w&&O<(y?0:m))?k:b]||(S[h]={}),S[h][T]||((null==(i=A[h])?void 0:i[T])?(S[h][T]=A[h][T],S[h][T].total=null):S[h][T]=new oy(t,t.options.stackLabels,!!n,T,x)),s=S[h][T],null!==C?(s.points[l]=s.points[this.index]=[tH(s.cumulative,y)],tu(s.cumulative)||(s.base=l),s.touched=M.stacksTouched,r.index>0&&!1===this.singleStacks&&(s.points[l][0]=s.points[this.index+","+T+",0"][0])):(delete s.points[l],delete s.points[this.index]);var P=s.total||0;"percent"===c?(a=n?b:k,P=w&&(null==(o=S[a])?void 0:o[T])?(a=S[a][T]).total=Math.max(a.total||0,P)+Math.abs(O):tl(P+Math.abs(O))):"group"===c?tL(C)&&P++:P=tl(P+O),"group"===c?s.cumulative=(P||1)-1:s.cumulative=tl(tH(s.cumulative,y)+O),s.total=P,null!==C&&(s.points[l].push(s.cumulative),f[d]=s.cumulative,s.hasValidPoints=!0)}"percent"===c&&(M.usePercentage=!0),"group"!==c&&(this.stackedYData=f),M.oldStacks={}}}var oO=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e,i=this.axis,o=i.series,r="xAxis"===i.coll,n=i.options.reversedStacks,s=o.length;for(this.resetStacks(),this.usePercentage=!1,e=s;e--;)t=o[n?e:s-e-1],r&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!r)for(e=0;e<s;e++)o[e].modifyStacks();tb(i,"afterBuildStacks")},t.prototype.cleanStacks=function(){this.oldStacks&&(this.stacks=this.oldStacks,tN(this.stacks,function(t){tN(t,function(t){t.cumulative=t.total})}))},t.prototype.resetStacks=function(){var t=this;tN(this.stacks,function(e){tN(e,function(i,o){tL(i.touched)&&i.touched<t.stacksTouched?(i.destroy(),delete e[o]):(i.total=null,i.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t,e=this.axis,i=e.chart,o=i.renderer,r=this.stacks,n=ec(i,(null==(t=e.options.stackLabels)?void 0:t.animation)||!1),s=this.stackTotalGroup=this.stackTotalGroup||o.g("stack-labels").attr({zIndex:6,opacity:0}).add();s.translate(i.plotLeft,i.plotTop),tN(r,function(t){tN(t,function(t){t.render(s)})}),s.animate({opacity:1},n)},t}();(F||(F={})).compose=function(t,e,i){var o=e.prototype,r=i.prototype;o.getStacks||(tr(t,"init",ow),tr(t,"destroy",ok),o.getStacks=ob,r.getStackIndicator=oM,r.modifyStacks=oS,r.percentStacker=oA,r.setGroupedPoints=oT,r.setStackedPoints=oC)};var oP=F,oL=(y=function(t,e){return(y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oE=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},oD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oL(e,t),e.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),o=this.chart.styledMode;oE([this],this.zones,!0).forEach(function(r,n){var s,a=r.graph,h=a?"animate":"attr",l=r.dashStyle||e.dashStyle;if(a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(r.graph=a=t.chart.renderer.path(i).addClass("highcharts-graph"+(n?" highcharts-zone-graph-".concat(n-1," "):" ")+(n&&r.className||"")).attr({zIndex:1}).add(t.group)),a&&!o&&(s={stroke:!n&&e.lineColor||r.color||t.color||"#cccccc","stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},l?s.dashstyle=l:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[h](s),e.shadow)){var d=t.chart.inverted,c={filterUnits:"userSpaceOnUse"},p=tI(e.shadow)?tz(d?{}:c,e.shadow):!!d||c;a.shadow(p)}a&&(a.startX=i.xMap,a.isArea=i.isArea)})},e.prototype.getGraphPath=function(t,e,i){var o,r=this,n=r.options,s=[],a=[],h=n.step,l=(t=t||r.points).reversed;return l&&t.reverse(),(h=({right:1,center:2})[h]||h&&3)&&l&&(h=4-h),(t=this.getValidPoints(t,!1,n.nullInteraction||!(n.connectNulls&&!e&&!i))).forEach(function(l,d){var c,p=l.plotX,u=l.plotY,f=t[d-1],g=l.isNull||"number"!=typeof u;(l.leftCliff||(null==f?void 0:f.rightCliff))&&!i&&(o=!0),g&&!tu(e)&&d>0?o=!n.connectNulls:g&&!e?o=!0:(0===d||o?c=[["M",l.plotX,l.plotY]]:r.getPointSpline?c=[r.getPointSpline(t,l,d)]:h?(c=1===h?[["L",f.plotX,u]]:2===h?[["L",(f.plotX+p)/2,f.plotY],["L",(f.plotX+p)/2,u]]:[["L",p,f.plotY]]).push(["L",p,u]):c=[["L",p,u]],a.push(l.x),h&&(a.push(l.x),2===h&&a.push(l.x)),s.push.apply(s,c),o=!1)}),s.xMap=a,r.graphPath=s,s},e.defaultOptions=tz(i3.defaultOptions,{legendSymbol:"lineMarker"}),e}(i3);iK.registerSeriesType("line",oD);var oB={threshold:0,legendSymbol:"areaMarker"},oI=(x=function(t,e){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oz=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},oR=iK.seriesTypes.line,oN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oI(e,t),e.prototype.drawGraph=function(){var e=this;this.areaPath=[],t.prototype.drawGraph.apply(this);var i=this.areaPath,o=this.options;oz([this],this.zones,!0).forEach(function(t,r){var n,s={},a=t.fillColor||o.fillColor,h=t.area,l=h?"animate":"attr";h?(h.endX=e.preventGraphAnimation?null:i.xMap,h.animate({d:i})):(s.zIndex=0,(h=t.area=e.chart.renderer.path(i).addClass("highcharts-area"+(r?" highcharts-zone-area-".concat(r-1," "):" ")+(r&&t.className||"")).add(e.group)).isArea=!0),e.chart.styledMode||(s.fill=a||t.color||e.color,s["fill-opacity"]=a?1:null!=(n=o.fillOpacity)?n:.75,h.css({pointerEvents:e.stickyTracking?"none":"auto"})),h[l](s),h.startX=i.xMap,h.shiftUnit=o.step?2:1})},e.prototype.getGraphPath=function(t){var e,i,o,r=oR.prototype.getGraphPath,n=this.options,s=n.stacking,a=this.yAxis,h=[],l=[],d=this.index,c=a.stacking.stacks[this.stackKey],p=n.threshold,u=Math.round(a.getThreshold(n.threshold)),f=tH(n.connectNulls,"percent"===s),g=function(i,o,r){var n,f,g=t[i],v=t[o],m=s&&c[g.x].points[d],y=g[r+"Null"]||0,x=g[r+"Cliff"]||0,b=!0;m&&(x||y)?(n=(y?m[0]:m[1])+x,f=m[0]+x,b=!!y):!s&&v&&(v.isNull||!tu(v.plotY))&&(n=f=p),void 0!==n&&(l.push({plotX:e,plotY:null===n?u:a.getThreshold(n),isNull:b,isCliff:!0}),h.push({plotX:e,plotY:null===f?u:a.getThreshold(f),doCurve:!1}))};t=t||this.points,s&&(t=this.getStackPoints(t));for(var v=0,m=t.length;v<m;++v)s||(t[v].leftCliff=t[v].rightCliff=t[v].leftNull=t[v].rightNull=void 0),i=t[v].isNull||!tu(t[v].plotY),e=tH(t[v].rectPlotX,t[v].plotX),o=s?tH(t[v].yBottom,u):u,(!i||f)&&(f||g(v,v-1,"left"),i&&!s&&f||(l.push(t[v]),h.push({x:v,plotX:e,plotY:o})),f||g(v,v+1,"right"));var y=r.call(this,l,!0,!0);h.reversed=!0;var x=r.call(this,h,!0,!0),b=x[0];b&&"M"===b[0]&&(x[0]=["L",b[1],b[2]]);var k=y.concat(x);k.length&&k.push(["Z"]);var w=r.call(this,l,!1,f);return this.chart.series.length>1&&s&&l.some(function(t){return t.isCliff})&&(k.hasStackedCliffs=w.hasStackedCliffs=!0),k.xMap=y.xMap,this.areaPath=k,w},e.prototype.getStackPoints=function(t){var e=this,i=[],o=[],r=this.xAxis,n=this.yAxis,s=n.stacking.stacks[this.stackKey],a={},h=n.series,l=h.length,d=n.options.reversedStacks?1:-1,c=h.indexOf(e),p=n.getThreshold(e.options.threshold||0);if(t=t||this.points,this.options.stacking){for(var u=0;u<t.length;u++)t[u].leftNull=t[u].rightNull=void 0,a[t[u].x]=t[u];tN(s,function(t,e){null!==t.total&&o.push(e)}),o.sort(function(t,e){return t-e});var f=h.map(function(t){return t.visible});o.forEach(function(t,u){var g,v,m=0;if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach(function(i){var r=1===i?"rightNull":"leftNull",n=s[o[u+i]],p=0;if(n)for(var m=c;m>=0&&m<l;){var y=h[m].index;!(g=n.points[y])&&(y===e.index?a[t][r]=!0:f[m]&&(v=s[t].points[y])&&(p-=v[1]-v[0])),m+=d}a[t][1===i?"rightCliff":"leftCliff"]=p});else{for(var y=c;y>=0&&y<l;){var x=h[y].index;if(g=s[t].points[x]){m=g[1];break}y+=d}m||(m=0);var b=n.positiveValuesOnly&&m<=0?p:n.translate(m,!1,!0,!1,!0);i.push({isNull:!0,plotX:r.translate(t,!1,!1,!1,!0),x:t,plotY:b,yBottom:b})}})}return i},e.defaultOptions=tz(oR.defaultOptions,oB),e}(oR);ty(oN.prototype,{singleStacks:!1}),iK.registerSeriesType("area",oN);var oW=(b=function(t,e){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oX=iK.seriesTypes.line,oH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oW(e,t),e.prototype.getPointSpline=function(t,e,i){var o,r,n,s,a=e.plotX||0,h=e.plotY||0,l=t[i-1],d=t[i+1];function c(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(c(l)&&c(d)){var p=l.plotX||0,u=l.plotY||0,f=d.plotX||0,g=d.plotY||0,v=0;o=(1.5*a+p)/2.5,r=(1.5*h+u)/2.5,n=(1.5*a+f)/2.5,s=(1.5*h+g)/2.5,n!==o&&(v=(s-r)*(n-a)/(n-o)+h-s),r+=v,s+=v,r>u&&r>h?(r=Math.max(u,h),s=2*h-r):r<u&&r<h&&(r=Math.min(u,h),s=2*h-r),s>g&&s>h?(s=Math.max(g,h),r=2*h-s):s<g&&s<h&&(s=Math.min(g,h),r=2*h-s),e.rightContX=n,e.rightContY=s,e.controlPoints={low:[o,r],high:[n,s]}}var m=["C",tH(l.rightContX,l.plotX,0),tH(l.rightContY,l.plotY,0),tH(o,a,0),tH(r,h,0),a,h];return l.rightContX=l.rightContY=void 0,m},e.defaultOptions=tz(oX.defaultOptions),e}(oX);iK.registerSeriesType("spline",oH);var oG=(k=function(t,e){return(k=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oY=iK.seriesTypes,oF=oY.area,oj=oY.area.prototype,o_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oG(e,t),e.defaultOptions=tz(oH.defaultOptions,oF.defaultOptions),e}(oH);ty(o_.prototype,{getGraphPath:oj.getGraphPath,getStackPoints:oj.getStackPoints,drawGraph:oj.drawGraph}),iK.registerSeriesType("areaspline",o_);var oU={borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},oV=(w=function(t,e){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oZ=er.parse,oK=tt.noop,oq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oV(e,t),e.prototype.animate=function(t){var e,i,o=this,r=this.yAxis,n=r.pos,s=r.reversed,a=o.options,h=this.chart,l=h.clipOffset,d=h.inverted,c={},p=d?"translateX":"translateY";t&&l?(c.scaleY=.001,i=th(r.toPixels(a.threshold||0),n,n+r.len),d?c.translateX=(i+=s?-Math.floor(l[0]):Math.ceil(l[2]))-r.len:c.translateY=i+=s?Math.ceil(l[0]):-Math.floor(l[2]),o.clipBox&&o.setClip(),o.group.attr(c)):(e=Number(o.group.attr(p)),o.group.animate({scaleY:1},ty(eh(o.options.animation),{step:function(t,i){o.group&&(c[p]=e+i.pos*(n-e),o.group.attr(c))}})))},e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments);var o=this;(e=o.chart).hasRendered&&e.series.forEach(function(t){t.type===o.type&&(t.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var t,e,i,o=this,r=o.options,n=o.xAxis,s=o.yAxis,a=n.options.reversedStacks,h=n.reversed&&!a||!n.reversed&&a,l={},d=0;!1===r.grouping?d=1:o.chart.series.forEach(function(t){var e,r=t.yAxis,n=t.options;t.type===o.type&&t.reserveSpace()&&s.len===r.len&&s.pos===r.pos&&(n.stacking&&"group"!==n.stacking?(void 0===l[i=t.stackKey]&&(l[i]=d++),e=l[i]):!1!==n.grouping&&(e=d++),t.columnIndex=e)});var c=Math.min(Math.abs(n.transA)*(!(null==(t=n.brokenAxis)?void 0:t.hasBreaks)&&(null==(e=n.ordinal)?void 0:e.slope)||r.pointRange||n.closestPointRange||n.tickInterval||1),n.len),p=c*r.groupPadding,u=(c-2*p)/(d||1),f=Math.min(r.maxPointWidth||n.len,tH(r.pointWidth,u*(1-2*r.pointPadding))),g=(o.columnIndex||0)+ +!!h;return o.columnMetrics={width:f,offset:(u-f)/2+(p+g*u-c/2)*(h?-1:1),paddedWidth:u,columnCount:d},o.columnMetrics},e.prototype.crispCol=function(t,e,i,o){var r=this.borderWidth,n=this.chart.inverted;return o=tc(e+o,r,n)-(e=tc(e,r,n)),this.options.crisp&&(i=tc(t+i,r)-(t=tc(t,r))),{x:t,y:e,width:i,height:o}},e.prototype.adjustForMissingColumns=function(t,e,i,o){var r,n=this;if(!i.isNull&&o.columnCount>1){var s=this.xAxis.series.filter(function(t){return t.visible}).map(function(t){return t.index}),a=0,h=0;tN(null==(r=this.xAxis.stacking)?void 0:r.stacks,function(t){var e,o="number"==typeof i.x?null==(e=t[i.x.toString()])?void 0:e.points:void 0,r=null==o?void 0:o[n.index],l={};if(o&&tD(r)){var d=n.index,c=Object.keys(o).filter(function(t){return!t.match(",")&&o[t]&&o[t].length>1}).map(parseFloat).filter(function(t){return -1!==s.indexOf(t)}).filter(function(t){var e=n.chart.series[t].options,i=e.stacking&&e.stack;if(tu(i)){if(tL(l[i]))return d===t&&(d=l[i]),!1;l[i]=t}return!0}).sort(function(t,e){return e-t});a=c.indexOf(d),h=c.length}}),a=this.xAxis.reversed?h-1-a:a;var l=(h-1)*o.paddedWidth+e;t=(i.plotX||0)+l/2-e-a*o.paddedWidth}return t},e.prototype.translate=function(){var t,e,i=this,o=i.chart,r=i.options,n=i.dense=i.closestPointRange*i.xAxis.transA<2,s=i.borderWidth=null!=(t=r.borderWidth)?t:+!n,a=i.xAxis,h=i.yAxis,l=r.threshold,d=null!=(e=r.minPointLength)?e:5,c=i.getColumnMetrics(),p=c.width,u=i.pointXOffset=c.offset,f=i.dataMin,g=i.dataMax,v=i.translatedThreshold=h.getThreshold(l),m=i.barW=Math.max(p,1+2*s);r.pointPadding&&r.crisp&&(m=Math.ceil(m)),i3.prototype.translate.apply(i),i.points.forEach(function(t){var e,n,s=null!=(e=t.yBottom)?e:v,y=999+Math.abs(s),x=t.plotX||0,b=th(t.plotY,-y,h.len+y),k=Math.min(b,s),w=Math.max(b,s)-k,M=p,S=x+u,A=m;d&&Math.abs(w)<d&&(w=d,n=!h.reversed&&!t.negative||h.reversed&&t.negative,tL(l)&&tL(g)&&t.y===l&&g<=l&&(h.min||0)<l&&(f!==g||(h.max||0)<=l)&&(n=!n,t.negative=!t.negative),k=Math.abs(k-v)>d?s-(n?d:0):v-(n?d:0)),tu(t.options.pointWidth)&&(S-=Math.round(((M=A=Math.ceil(t.options.pointWidth))-p)/2)),r.centerInCategory&&(S=i.adjustForMissingColumns(S,M,t,c)),t.barX=S,t.pointWidth=M,t.tooltipPos=o.inverted?[th(h.len+h.pos-o.plotLeft-b,h.pos-o.plotLeft,h.len+h.pos-o.plotLeft),a.len+a.pos-o.plotTop-S-A/2,w]:[a.left-o.plotLeft+S+A/2,th(b+h.pos-o.plotTop,h.pos-o.plotTop,h.len+h.pos-o.plotTop),w],t.shapeType=i.pointClass.prototype.shapeType||"roundedRect",t.shapeArgs=i.crispCol(S,k,A,t.isNull?0:w)}),tb(this,"afterColumnTranslate")},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i,o,r,n,s,a,h=this.options,l=this.pointAttrToOptions||{},d=l.stroke||"borderColor",c=l["stroke-width"]||"borderWidth",p=t&&t.color||this.color,u=t&&t[d]||h[d]||p,f=t&&t.options.dashStyle||h.dashStyle,g=t&&t[c]||h[c]||this[c]||0,v=(null==t?void 0:t.isNull)&&h.nullInteraction?0:null!=(o=null!=(i=null==t?void 0:t.opacity)?i:h.opacity)?o:1;t&&this.zones.length&&(s=t.getZone(),p=t.options.color||s&&(s.color||t.nonZonedColor)||this.color,s&&(u=s.borderColor||u,f=s.dashStyle||f,g=s.borderWidth||g)),e&&t&&(a=(n=tz(h.states[e],(null==(r=t.options.states)?void 0:r[e])||{})).brightness,p=n.color||void 0!==a&&oZ(p).brighten(n.brightness).get()||p,u=n[d]||u,g=n[c]||g,f=n.dashStyle||f,v=tH(n.opacity,v));var m={fill:p,stroke:u,"stroke-width":g,opacity:v};return f&&(m.dashstyle=f),m},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i=this,o=this.chart,r=i.options,n=r.nullInteraction,s=o.renderer,a=r.animationLimit||250;t.forEach(function(t){var h=t.plotY,l=t.graphic,d=!!l,c=l&&o.pointCount<a?"animate":"attr";tL(h)&&(null!==t.y||n)?(e=t.shapeArgs,l&&t.hasNewShapeType()&&(l=l.destroy()),i.enabledDataSorting&&(t.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!l&&(t.graphic=l=s[t.shapeType](e).add(t.group||i.group),l&&i.enabledDataSorting&&o.hasRendered&&o.pointCount<a&&(l.attr({x:t.startXPos}),d=!0,c="animate")),l&&d&&l[c](tz(e)),o.styledMode||l[c](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&r.shadow),l&&(l.addClass(t.getClassName(),!0),l.attr({visibility:t.visible?"inherit":"hidden"}))):l&&(t.graphic=l.destroy())})},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,i,o=this,r=o.chart,n=r.pointer,s=function(t){null==n||n.normalize(t);var e=null==n?void 0:n.getPointFromEvent(t);n&&e&&o.options.enableMouseTracking&&(r.isInsidePlot(t.chartX-r.plotLeft,t.chartY-r.plotTop,{visiblePlotOnly:!0})||o.allowOutsidePlotInteraction&&(null==n?void 0:n.inClass(t.target,"highcharts-point"))||(null==n?void 0:n.inClass(t.target,"highcharts-data-label")))&&(n.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){i=tD(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),i.forEach(function(e){(e.div||e.element).point=t})}),o._hasTracking||(null==(e=o.trackerGroups)||e.reduce(function(t,e){return"dataLabelsGroup"===e?t.push.apply(t,o.dataLabelsGroups||[]):t.push(o[e]),t},[]).forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){null==n||n.onTrackerMouseOut(t)}).on("touchstart",s),!r.styledMode&&o.options.cursor&&t.css({cursor:o.options.cursor}))}),o._hasTracking=!0),tb(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),i3.prototype.remove.apply(t,arguments)},e.defaultOptions=tz(i3.defaultOptions,oU),e}(i3);ty(oq.prototype,{directTouch:!0,getSymbol:oK,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),iK.registerSeriesType("column",oq);var o$=eS.format;!function(t){function e(){return h(this).some(function(t){return null==t?void 0:t.enabled})}function i(t,e,i,o,r){var n,s=this.chart,a=this.enabledDataSorting,h=this.isCartesian&&s.inverted,l=t.plotX,d=t.plotY,c=i.rotation||0,p=tu(l)&&tu(d)&&s.isInsidePlot(l,Math.round(d),{inverted:h,paneCoordinates:!0,series:this}),u=0===c&&"justify"===tH(i.overflow,a?"none":"justify"),f=this.visible&&!1!==t.visible&&tu(l)&&(t.series.forceDL||a&&!u||p||tH(i.inside,!!this.options.stacking)&&o&&s.isInsidePlot(l,h?o.x+1:o.y+o.height-1,{inverted:h,paneCoordinates:!0,series:this})),g=t.pos();if(f&&g){var v,m=e.getBBox(),y=e.getBBox(void 0,0);if(o=ty({x:g[0],y:Math.round(g[1]),width:0,height:0},o||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(o[h?"x":"y"]=0,o[h?"width":"height"]=(null==(n=this.yAxis)?void 0:n.len)||0),ty(i,{width:m.width,height:m.height}),v=o,a&&this.xAxis&&!u&&this.setDataLabelStartPos(t,e,r,p,v),e.align(tz(i,{width:y.width,height:y.height}),!1,o,!1),e.alignAttr.x+=tk(i.align)*(y.width-m.width),e.alignAttr.y+=tk(i.verticalAlign)*(y.height-m.height),e[e.placed?"animate":"attr"]({"text-align":e.alignAttr["text-align"]||"center",x:e.alignAttr.x+(m.width-y.width)/2,y:e.alignAttr.y+(m.height-y.height)/2,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2}),u&&o.height>=0)this.justifyDataLabel(e,i,e.alignAttr,m,o,r);else if(tH(i.crop,!0)){var x=e.alignAttr,b=x.x,k=x.y;f=s.isInsidePlot(b,k,{paneCoordinates:!0,series:this})&&s.isInsidePlot(b+m.width-1,k+m.height-1,{paneCoordinates:!0,series:this})}i.shape&&!c&&e[r?"attr":"animate"]({anchorX:g[0],anchorY:g[1]})}r&&a&&(e.placed=!1),f||a&&!u?(e.show(),e.placed=!0):(e.hide(),e.placed=!1)}function o(t,e){tb(this,"initDataLabelsGroup",{index:t,zIndex:null!=(i=null==e?void 0:e.zIndex)?i:6}),this.dataLabelsGroup=null==(o=this.dataLabelsGroups)?void 0:o[t];var i,o,r,n,s=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",null!=(r=null==e?void 0:e.zIndex)?r:6,null==(n=this.dataLabelsParentGroups)?void 0:n[t]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[t]=s,this.dataLabelsGroup=this.dataLabelsGroups[0],s}function r(t,e,i){var o=!!this.hasRendered,r=this.initDataLabelsGroup(t,i).attr({opacity:+o});return!o&&r&&(this.visible&&r.show(),this.options.animation?r.animate({opacity:1},e):r.attr({opacity:1})),r}function n(t){var e,i,o=this;t=t||this.points;var r=this,n=r.chart,s=r.options,l=n.renderer,d=n.options.chart,c=d.backgroundColor,p=d.plotBackgroundColor,u=l.getContrast(tE(p)&&p||tE(c)&&c||"#000000"),f=h(r),g=f[0],v=g.animation,m=g.defer?ec(n,v,r):{defer:0,duration:0};tb(this,"drawDataLabels"),(null==(e=r.hasDataLabels)?void 0:e.call(r))&&t.forEach(function(t){var e,h,d,c=t.dataLabels||[],p=t.color||r.color;tU(a(f,t.dlOptions||(null==(e=t.options)?void 0:e.dataLabels))).forEach(function(e,a){i=o.initDataLabels(a,m,e);var h,d,f,g,v,y=e.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;if(i){var o=i.operator,r=t[i.property],n=i.value;return">"===o&&r>n||"<"===o&&r<n||">="===o&&r>=n||"<="===o&&r<=n||"=="===o&&r==n||"==="===o&&r===n||"!="===o&&r!=n||"!=="===o&&r!==n||!1}return!0}(t,e),x=e.backgroundColor,b=e.borderColor,k=e.distance,w=e.style,M=void 0===w?{}:w,S={},A=c[a],T=!A;y&&(f=tu(d=tH(e[t.formatPrefix+"Format"],e.format))?o$(d,t,n):(e[t.formatPrefix+"Formatter"]||e.formatter).call(t,e,t),g=e.rotation,!n.styledMode&&(M.color=tH(e.color,M.color,tE(r.color)?r.color:void 0,"#000000"),"contrast"===M.color?("none"!==x&&(v=x),t.contrastColor=l.getContrast("auto"!==v&&tE(v)&&v||(tE(p)?p:"")),M.color=v||!tu(k)&&e.inside||0>tG(k||0)||s.stacking?t.contrastColor:u):delete t.contrastColor,s.cursor&&(M.cursor=s.cursor)),S={r:e.borderRadius||0,rotation:g,padding:e.padding,zIndex:1},n.styledMode||(S.fill="auto"===x?t.color:x,S.stroke="auto"===b?t.color:b,S["stroke-width"]=e.borderWidth),tN(S,function(t,e){void 0===t&&delete S[e]})),!A||y&&tu(f)&&!!(A.div||(null==(h=A.text)?void 0:h.foreignObject))==!!e.useHTML&&(A.rotation&&e.rotation||A.rotation===e.rotation)||(A=void 0,T=!0),y&&tu(f)&&""!==f&&(A?S.text=f:(A=l.label(f,0,0,e.shape,void 0,void 0,e.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":"")),A&&(A.options=e,A.attr(S),n.styledMode?M.width&&A.css({width:M.width,textOverflow:M.textOverflow,whiteSpace:M.whiteSpace}):A.css(M).shadow(e.shadow),tb(A,"beforeAddingDataLabel",{labelOptions:e,point:t}),A.added||A.add(i),r.alignDataLabel(t,A,e,void 0,T),A.isActive=!0,c[a]&&c[a]!==A&&c[a].destroy(),c[a]=A))});for(var g=c.length;g--;)(null==(h=c[g])?void 0:h.isActive)?c[g].isActive=!1:(null==(d=c[g])||d.destroy(),c.splice(g,1));t.dataLabel=c[0],t.dataLabels=c}),tb(this,"afterDrawDataLabels")}function s(t,e,i,o,r,n){var s,a,h=this.chart,l=e.align,d=e.verticalAlign,c=t.box?0:t.padding||0,p=h.inverted?this.yAxis:this.xAxis,u=p?p.left-h.plotLeft:0,f=h.inverted?this.xAxis:this.yAxis,g=f?f.top-h.plotTop:0,v=e.x,m=void 0===v?0:v,y=e.y,x=void 0===y?0:y;return(s=(i.x||0)+c+u)<0&&("right"===l&&m>=0?(e.align="left",e.inside=!0):m-=s,a=!0),(s=(i.x||0)+o.width-c+u)>h.plotWidth&&("left"===l&&m<=0?(e.align="right",e.inside=!0):m+=h.plotWidth-s,a=!0),(s=i.y+c+g)<0&&("bottom"===d&&x>=0?(e.verticalAlign="top",e.inside=!0):x-=s,a=!0),(s=(i.y||0)+o.height-c+g)>h.plotHeight&&("top"===d&&x<=0?(e.verticalAlign="bottom",e.inside=!0):x+=h.plotHeight-s,a=!0),a&&(e.x=m,e.y=x,t.placed=!n,t.align(e,void 0,r)),a}function a(t,e){var i,o=[];if(tD(t)&&!tD(e))o=t.map(function(t){return tz(t,e)});else if(tD(e)&&!tD(t))o=e.map(function(e){return tz(t,e)});else if(tD(t)||tD(e)){if(tD(t)&&tD(e))for(i=Math.max(t.length,e.length);i--;)o[i]=tz(t[i],e[i])}else o=tz(t,e);return o}function h(t){var e,i,o=t.chart.options.plotOptions;return tU(a(a(null==(e=null==o?void 0:o.series)?void 0:e.dataLabels,null==(i=null==o?void 0:o[t.type])?void 0:i.dataLabels),t.options.dataLabels))}function l(t,e,i,o,r){var n=this.chart,s=n.inverted,a=this.xAxis,h=a.reversed,l=((s?e.height:e.width)||0)/2,d=t.pointWidth,c=d?d/2:0;e.startXPos=s?r.x:h?-l-c:a.width-l+c,e.startYPos=s?h?this.yAxis.height-l+c:-l-c:r.y,o?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),n.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}t.compose=function(t){var h=t.prototype;h.initDataLabels||(h.initDataLabels=r,h.initDataLabelsGroup=o,h.alignDataLabel=i,h.drawDataLabels=n,h.justifyDataLabel=s,h.mergeArrays=a,h.setDataLabelStartPos=l,h.hasDataLabels=e)}}(j||(j={}));var oJ=j,oQ=tt.composed,o0=iK.series;function o1(t,e,i,o,r){var n,s,a,h,l,d=this.chart,c=this.options,p=d.inverted,u=(null==(n=this.xAxis)?void 0:n.len)||d.plotSizeX||0,f=(null==(s=this.yAxis)?void 0:s.len)||d.plotSizeY||0,g=t.dlBox||t.shapeArgs,v=null!=(a=t.below)?a:(t.plotY||0)>(null!=(h=this.translatedThreshold)?h:f),m=null!=(l=i.inside)?l:!!c.stacking;if(g){if(o=tz(g),"allow"!==i.overflow||!1!==i.crop||!1!==c.clip){o.y<0&&(o.height+=o.y,o.y=0);var y=o.y+o.height-f;y>0&&y<o.height-1&&(o.height-=y)}p&&(o={x:f-o.y-o.height,y:u-o.x-o.width,width:o.height,height:o.width}),m||(p?(o.x+=v?0:o.width,o.width=0):(o.y+=v?o.height:0,o.height=0))}null!=i.align||(i.align=!p||m?"center":v?"right":"left"),null!=i.verticalAlign||(i.verticalAlign=p||m?"middle":v?"top":"bottom"),o0.prototype.alignDataLabel.call(this,t,e,i,o,r),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}(_||(_={})).compose=function(t){oJ.compose(o0),tY(oQ,"ColumnDataLabel")&&(t.prototype.alignDataLabel=o1)};var o2=_,o3=(M=function(t,e){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o3(e,t),e.defaultOptions=tz(oq.defaultOptions,{}),e}(oq);ty(o5.prototype,{inverted:!0}),iK.registerSeriesType("bar",o5);var o6={lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},o9=(S=function(t,e){return(S=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o4=iK.seriesTypes,o8=o4.column,o7=o4.line,rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o9(e,t),e.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(o,r){["x","y"].forEach(function(n,s){if(e[n]&&!o.isNull){var a="plot".concat(n.toUpperCase()),h=t[""+n+"Axis"],l=e[n]*h.transA;if(h&&!h.logarithmic){var d,c=Math.max(0,(o[a]||0)-l),p=Math.min(h.len,(o[a]||0)+l);o[a]=c+(p-c)*((d=1e4*Math.sin(r+s*i))-Math.floor(d)),"x"===n&&(o.clientX=o.plotX)}}})})},e.prototype.drawGraph=function(){this.options.lineWidth?t.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},e.defaultOptions=tz(o7.defaultOptions,o6),e}(o7);ty(rt.prototype,{allowOutsidePlotInteraction:!0,drawTracker:o8.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),tr(rt,"afterTranslate",function(){this.applyJitter()}),iK.registerSeriesType("scatter",rt);var re=tt.deg2rad;(A=U||(U={})).getCenter=function(){var t,e,i,o=this.options,r=this.chart,n=2*(o.slicedOffset||0),s=r.plotWidth-2*n,a=r.plotHeight-2*n,h=o.center,l=Math.min(s,a),d=o.thickness,c=o.size,p=o.innerSize||0;"string"==typeof c&&(c=parseFloat(c)),"string"==typeof p&&(p=parseFloat(p));var u=[tH(null==h?void 0:h[0],"50%"),tH(null==h?void 0:h[1],"50%"),tH(c&&c<0?void 0:o.size,"100%"),tH(p&&p<0?void 0:o.innerSize||0,"0%")];for(!r.angular||this instanceof i3||(u[3]=0),e=0;e<4;++e)i=u[e],t=e<2||2===e&&/%$/.test(i),u[e]=tF(i,[s,a,l,u[2]][e])+(t?n:0);return u[3]>u[2]&&(u[3]=u[2]),tL(d)&&2*d<u[2]&&d>0&&(u[3]=u[2]-2*d),tb(this,"afterGetCenter",{positions:u}),u},A.getStartAndEndRadians=function(t,e){var i=tL(t)?t:0,o=tL(e)&&e>i&&e-i<360?e:i+360;return{start:re*(i+-90),end:re*(o+-90)}};var ri=U,ro=(T=function(t,e){return(T=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),rr=function(){return(rr=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},rn=function(t){function e(e,i,o){var r=t.call(this,e,i,o)||this;r.half=0,null!=r.name||(r.name=e.chart.options.lang.pieSliceName);var n=function(t){r.slice("select"===t.type)};return tr(r,"select",n),tr(r,"unselect",n),r}return ro(e,t),e.prototype.getConnectorPath=function(t){var e=t.dataLabelPosition,i=t.options||{},o=i.connectorShape,r=this.connectorShapes[o]||o;return e&&r.call(this,rr(rr({},e.computed),{alignment:e.alignment}),e.connectorPosition,i)||[]},e.prototype.getTranslate=function(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end,borderRadius:e.borderRadius})},e.prototype.isValid=function(){return tL(this.y)&&this.y>=0},e.prototype.setVisible=function(t,e){void 0===e&&(e=!0),t!==this.visible&&this.update({visible:null!=t?t:!this.visible},e,void 0,!1)},e.prototype.slice=function(t,e,i){var o=this.series;ep(i,o.chart),e=tH(e,!0),this.sliced=this.options.sliced=t=tu(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())},e}(iP);ty(rn.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt,r=e.touchingSliceAt,n=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-r.x,2*o.y-r.y,o.x,o.y]:["L",o.x,o.y];return[["M",t.x,t.y],n,["L",r.x,r.y]]},straight:function(t,e){var i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){var o=e.angle,r=void 0===o?this.angle||0:o,n=e.breakAt,s=e.touchingSliceAt,a=this.series,h=a.center,l=h[0],d=h[1],c=h[2]/2,p=a.chart,u=p.plotLeft,f=p.plotWidth,g="left"===t.alignment,v=t.x,m=t.y,y=n.x;if(i.crookDistance){var x=tF(i.crookDistance,1);y=g?l+c+(f+u-l-c)*(1-x):u+(l-c)*x}else y=l+(d-m)*Math.tan(r-Math.PI/2);var b=[["M",v,m]];return(g?y<=v&&y>=n.x:y>=v&&y<=n.x)&&b.push(["L",y,m]),b.push(["L",n.x,n.y],["L",s.x,s.y]),b}}});var rs={borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.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}}},ra=(C=function(t,e){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}C(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),rh=ri.getStartAndEndRadians,rl=tt.noop,rd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ra(e,t),e.prototype.animate=function(t){var e=this,i=e.points,o=e.startAngleRad;t||i.forEach(function(t){var i=t.graphic,r=t.shapeArgs;i&&r&&(i.attr({r:tH(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:r.r,start:r.start,end:r.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t,e,i=this.startAngleRad,o=this.endAngleRad,r=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,o).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:eH.arc(t,e,this.center[2]/2,0,{start:i,end:o,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":r.borderWidth,fill:r.fillColor||"none",stroke:r.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,i,o){var r=this.center,n=this.radii?this.radii[i.index]||0:r[2]/2,s=o.dataLabelPosition,a=(null==s?void 0:s.distance)||0,h=Math.asin(th((t-r[1])/(n+a),-1,1));return r[0]+Math.cos(h)*(n+a)*(e?-1:1)+(a>0?(e?-1:1)*(o.padding||0):0)},e.prototype.hasData=function(){return this.points.some(function(t){return t.visible})},e.prototype.redrawPoints=function(){var t,e,i,o,r=this,n=r.chart;this.drawEmpty(),r.group&&!n.styledMode&&r.group.shadow(r.options.shadow),r.points.forEach(function(s){var a={};e=s.graphic,!s.isNull&&e?(o=s.shapeArgs,t=s.getTranslate(),n.styledMode||(i=r.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(e.setRadialReference(r.center).attr(o).attr(t),n.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),s.delayedRendering=!1):(e.setRadialReference(r.center),n.styledMode||tz(!0,a,i),tz(!0,a,o,t),e.animate(a)),e.attr({visibility:s.visible?"inherit":"hidden"}),e.addClass(s.getClassName(),!0)):e&&(s.graphic=e.destroy())})},e.prototype.sortByAngle=function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},e.prototype.translate=function(t){tb(this,"translate"),this.generatePoints();var e,i,o,r,n,s,a,h=this.options,l=h.slicedOffset,d=rh(h.startAngle,h.endAngle),c=this.startAngleRad=d.start,p=(this.endAngleRad=d.end)-c,u=this.points,f=h.ignoreHiddenPoint,g=u.length,v=0;for(t||(this.center=t=this.getCenter()),s=0;s<g;s++){a=u[s],e=c+v*p,a.isValid()&&(!f||a.visible)&&(v+=a.percentage/100),i=c+v*p;var m={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:e,end:i};a.shapeType="arc",a.shapeArgs=m,(o=(i+e)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(o)*l),translateY:Math.round(Math.sin(o)*l)},r=Math.cos(o)*t[2]/2,n=Math.sin(o)*t[2]/2,a.tooltipPos=[t[0]+.7*r,t[1]+.7*n],a.half=+(o<-Math.PI/2||o>Math.PI/2),a.angle=o}tb(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e,i=this.points,o=i.length,r=this.options.ignoreHiddenPoint,n=0;for(t=0;t<o;t++)(e=i[t]).isValid()&&(!r||e.visible)&&(n+=e.y);for(t=0,this.total=n;t<o;t++)(e=i[t]).percentage=n>0&&(e.visible||!r)?e.y/n*100:0,e.total=n},e.defaultOptions=tz(i3.defaultOptions,rs),e}(i3);ty(rd.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:oq.prototype.drawTracker,getCenter:ri.getCenter,getSymbol:rl,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:oq.prototype.pointAttribs,pointClass:rn,requireSorting:!1,searchPoint:rl,trackerGroups:["group","dataLabelsGroup"]}),iK.registerSeriesType("pie",rd);var rc=tt.composed,rp=tt.noop,ru=eT.distribute,rf=iK.series;!function(t){var e={radialDistributionY:function(t,e){var i;return((null==(i=e.dataLabelPosition)?void 0:i.top)||0)+t.distributeBox.pos},radialDistributionX:function(t,e,i,o,r){var n=r.dataLabelPosition;return t.getX(i<((null==n?void 0:n.top)||0)+2||i>((null==n?void 0:n.bottom)||0)-2?o:i,e.half,e,r)},justify:function(t,e,i,o){var r;return o[0]+(t.half?-1:1)*(i+((null==(r=e.dataLabelPosition)?void 0:r.distance)||0))},alignToPlotEdges:function(t,e,i,o){var r=t.getBBox().width;return e?r+o:i-r-o},alignToConnectors:function(t,e,i,o){var r,n=0;return t.forEach(function(t){(r=t.dataLabel.getBBox().width)>n&&(n=r)}),e?n+o:i-n-o}};function i(t,e){var i=Math.PI/2,o=t.shapeArgs||{},r=o.start,n=void 0===r?0:r,s=o.end,a=void 0===s?0:s,h=t.angle||0;e>0&&n<i&&a>i&&h>i/2&&h<1.5*i&&(h=h<=i?Math.max(i/2,(n+i)/2):Math.min(1.5*i,(i+a)/2));var l=this.center,d=this.options,c=l[2]/2,p=Math.cos(h),u=Math.sin(h),f=l[0]+p*c,g=l[1]+u*c,v=Math.min((d.slicedOffset||0)+(d.borderWidth||0),e/5);return{natural:{x:f+p*e,y:g+u*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{angle:h,breakAt:{x:f+p*v,y:g+u*v},touchingSliceAt:{x:f,y:g}},distance:e}}function o(){var t,e,i,o,r=this,n=this,s=n.points,a=n.chart,h=a.plotWidth,l=a.plotHeight,d=a.plotLeft,c=Math.round(a.chartWidth/3),p=n.center,u=p[2]/2,f=p[1],g=[[],[]],v=[0,0,0,0],m=n.dataLabelPositioners,y=0;n.visible&&(null==(t=n.hasDataLabels)?void 0:t.call(n))&&(s.forEach(function(t){(t.dataLabels||[]).forEach(function(t){t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)})}),rf.prototype.drawDataLabels.apply(n),s.forEach(function(t){(t.dataLabels||[]).forEach(function(e,i){var o,n=p[2]/2,s=e.options,a=tF((null==s?void 0:s.distance)||0,n);0===i&&g[t.half].push(t),!tu(null==(o=null==s?void 0:s.style)?void 0:o.width)&&e.getBBox().width>c&&(e.css({width:Math.round(.7*c)+"px"}),e.shortened=!0),e.dataLabelPosition=r.getDataLabelPosition(t,a),y=Math.max(y,a)})}),g.forEach(function(t,e){var r,s,c,g=t.length,x=[],b=0;g&&(n.sortByAngle(t,e-.5),y>0&&(r=Math.max(0,f-u-y),s=Math.min(f+u+y,a.plotHeight),t.forEach(function(t){(t.dataLabels||[]).forEach(function(e){var i,o=e.dataLabelPosition;o&&o.distance>0&&(o.top=Math.max(0,f-u-o.distance),o.bottom=Math.min(f+u+o.distance,a.plotHeight),b=e.getBBox().height||21,e.lineHeight=a.renderer.fontMetrics(e.text||e).h+2*e.padding,t.distributeBox={target:((null==(i=e.dataLabelPosition)?void 0:i.natural.y)||0)-o.top+e.lineHeight/2,size:b,rank:t.y},x.push(t.distributeBox))})}),ru(x,c=s+b-r,c/5)),t.forEach(function(r){(r.dataLabels||[]).forEach(function(s){var a=s.options||{},c=r.distributeBox,f=s.dataLabelPosition,g=(null==f?void 0:f.natural.y)||0,y=a.connectorPadding||0,b=s.lineHeight||21,k=(b-s.getBBox().height)/2,w=0,M=g,S="inherit";if(f){if(x&&tu(c)&&f.distance>0&&(void 0===c.pos?S="hidden":(o=c.size,M=m.radialDistributionY(r,s))),a.justify)w=m.justify(r,s,u,p);else switch(a.alignTo){case"connectors":w=m.alignToConnectors(t,e,h,d);break;case"plotEdges":w=m.alignToPlotEdges(s,e,h,d);break;default:w=m.radialDistributionX(n,r,M-k,g,s)}if(f.attribs={visibility:S,align:f.alignment},f.posAttribs={x:w+(a.x||0)+(({left:y,right:-y})[f.alignment]||0),y:M+(a.y||0)-b/2},f.computed.x=w,f.computed.y=M-k,tH(a.crop,!0)){i=s.getBBox().width;var A=void 0;w-i<y&&1===e?(A=Math.round(i-w+y),v[3]=Math.max(A,v[3])):w+i>h-y&&0===e&&(A=Math.round(w+i-h+y),v[1]=Math.max(A,v[1])),M-o/2<0?v[0]=Math.max(Math.round(-M+o/2),v[0]):M+o/2>l&&(v[2]=Math.max(Math.round(M+o/2-l),v[2])),f.sideOverflow=A}}})}))}),(0===ts(v)||this.verifyDataLabelOverflow(v))&&(this.placeDataLabels(),this.points.forEach(function(t){var i;null==(i=t.dataLabels)||i.forEach(function(i,o){var r,s,h=i.options||{},l=h.connectorColor,d=h.connectorWidth,c=void 0===d?1:d,p=i.dataLabelPosition;if(tL(c)){var u=void 0;e=i.connector,p&&p.distance>0?(u=!e,e||(i.connector=e=a.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(null==(r=n.dataLabelsGroups)?void 0:r[o])),a.styledMode||e.attr({"stroke-width":c,stroke:l||t.color||"#666666"}),e[u?"attr":"animate"]({d:t.getConnectorPath(i)}),e.attr({visibility:null==(s=p.attribs)?void 0:s.visibility})):e&&(i.connector=e.destroy())}})})))}function r(){this.points.forEach(function(t){(t.dataLabels||[]).forEach(function(t){var e,i,o=t.dataLabelPosition;o?(o.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-o.sideOverflow,0)+"px",textOverflow:(null==(i=null==(e=t.options)?void 0:e.style)?void 0:i.textOverflow)||"ellipsis"}),t.shortened=!0),t.attr(o.attribs),t[t.moved?"animate":"attr"](o.posAttribs),t.moved=!0):t&&t.attr({y:-9999})}),delete t.distributeBox},this)}function n(t){var e=this.center,i=this.options,o=i.center,r=i.minSize||80,n=r,s=null!==i.size;return!s&&(null!==o[0]?n=Math.max(e[2]-Math.max(t[1],t[3]),r):(n=Math.max(e[2]-t[1]-t[3],r),e[0]+=(t[3]-t[1])/2),null!==o[1]?n=th(n,r,e[2]-Math.max(t[0],t[2])):(n=th(n,r,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),n<e[2]?(e[2]=n,e[3]=Math.min(i.thickness?Math.max(0,n-2*i.thickness):Math.max(0,tF(i.innerSize||0,n)),n),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):s=!0),s}t.compose=function(t){if(oJ.compose(rf),tY(rc,"PieDataLabel")){var s=t.prototype;s.dataLabelPositioners=e,s.alignDataLabel=rp,s.drawDataLabels=o,s.getDataLabelPosition=i,s.placeDataLabels=r,s.verifyDataLabelOverflow=n}}}(V||(V={}));var rg=V;(O=Z||(Z={})).getCenterOfPoints=function(t){var e=t.reduce(function(t,e){return t.x+=e.x,t.y+=e.y,t},{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},O.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},O.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},O.pointInPolygon=function(t,e){var i,o,r=t.x,n=t.y,s=e.length,a=!1;for(i=0,o=s-1;i<s;o=i++){var h=e[i],l=h[0],d=h[1],c=e[o],p=c[0],u=c[1];d>n!=u>n&&r<(p-l)*(n-d)/(u-d)+l&&(a=!a)}return a};var rv=Z.pointInPolygon;function rm(t,e){var i,o=!1;return t&&(i=t.newOpacity,t.oldOpacity!==i&&(t.hasClass("highcharts-data-label")?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),o=!0,t[t.isOld?"animate":"attr"]({opacity:i},void 0,function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})}),tb(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0),o}var ry=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},rx=tt.noop,rb={radius:0,scope:"stack",where:void 0},rk=rx,rw=rx;function rM(t,e,i,o,r){void 0===r&&(r={});var n=rk(t,e,i,o,r),s=r.brStart,a=void 0===s||s,h=r.brEnd,l=void 0===h||h,d=r.innerR,c=void 0===d?0:d,p=r.r,u=void 0===p?i:p,f=r.start,g=r.end;if(r.open||!r.borderRadius)return n;for(var v=(void 0===g?0:g)-(void 0===f?0:f),m=Math.sin(v/2),y=Math.max(Math.min(tF(r.borderRadius||0,u-c),(u-c)/2,u*m/(1+m)),0),x=Math.min(y,v/Math.PI*2*c),b=n.length-1;b--;)(a||0!==b&&3!==b)&&(l||1!==b&&2!==b)&&!function(t,e,i){var o,r,n,s=t[e],a=t[e+1];if("Z"===a[0]&&(a=t[0]),("M"===s[0]||"L"===s[0])&&"A"===a[0]?(o=s,r=a,n=!0):"A"===s[0]&&("M"===a[0]||"L"===a[0])&&(o=a,r=s),o&&r&&r.params){var h=r[1],l=r[5],d=r.params,c=d.start,p=d.end,u=d.cx,f=d.cy,g=l?h-i:h+i,v=g?Math.asin(i/g):0,m=l?v:-v,y=Math.cos(v)*g;n?(d.start=c+m,o[1]=u+y*Math.cos(c),o[2]=f+y*Math.sin(c),t.splice(e+1,0,["A",i,i,0,0,1,u+h*Math.cos(d.start),f+h*Math.sin(d.start)])):(d.end=p-m,r[6]=u+h*Math.cos(d.end),r[7]=f+h*Math.sin(d.end),t.splice(e+1,0,["A",i,i,0,0,1,u+y*Math.cos(p),f+y*Math.sin(p)])),r[4]=Math.abs(d.end-d.start)<Math.PI?0:1}}(n,b,b>1?x:y);return n}function rS(){var t,e;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d()))for(var i=this.options,o=this.yAxis,r="percent"===i.stacking,n=null==(e=null==(t=t7.plotOptions)?void 0:t[this.type])?void 0:e.borderRadius,s=rA(i.borderRadius,tI(n)?n:{}),a=o.options.reversed,h=0,l=this.points;h<l.length;h++){var d=l[h],c=d.shapeArgs;if("roundedRect"===d.shapeType&&c){var p=c.width,u=void 0===p?0:p,f=c.height,g=void 0===f?0:f,v=c.y,m=void 0===v?0:v,y=g;if("stack"===s.scope&&d.stackTotal){var x=o.translate(r?100:d.stackTotal,!1,!0,!1,!0),b=o.translate(i.threshold||0,!1,!0,!1,!0),k=this.crispCol(0,Math.min(x,b),0,Math.abs(x-b));m=k.y,y=k.height}var w=(d.negative?-1:1)*(a?-1:1)==-1,M=s.where;!M&&this.is("waterfall")&&Math.abs((d.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(M="all"),M||(M="end");var S=Math.min(tF(s.radius,u),u/2,"all"===M?y/2:1/0)||0;"end"===M&&(w&&(m-=S),y+=S),ty(c,{brBoxHeight:y,brBoxY:m,r:S})}}}function rA(t,e){return tI(t)||(t={radius:t||0}),tz(rb,e,t)}function rT(){for(var t=rA(this.options.borderRadius),e=0,i=this.points;e<i.length;e++){var o=i[e].shapeArgs;o&&(o.borderRadius=tF(t.radius,(o.r||0)-(o.innerR||0)))}}function rC(t,e,i,o,r){void 0===r&&(r={});var n=rw(t,e,i,o,r),s=r.r,a=void 0===s?0:s,h=r.brBoxHeight,l=void 0===h?o:h,d=r.brBoxY,c=void 0===d?e:d,p=e-c,u=c+l-(e+o),f=p-a>-.1?0:a,g=u-a>-.1?0:a,v=Math.max(f&&p,0),m=Math.max(g&&u,0),y=[t+f,e],x=[t+i-f,e],b=[t+i,e+f],k=[t+i,e+o-g],w=[t+i-g,e+o],M=[t+g,e+o],S=[t,e+o-g],A=[t,e+f],T=function(t,e){return Math.sqrt(Math.pow(t,2)-Math.pow(e,2))};if(v){var C=T(f,f-v);y[0]-=C,x[0]+=C,b[1]=A[1]=e+f-v}if(o<f-v){var C=T(f,f-v-o);b[0]=k[0]=t+i-f+C,w[0]=Math.min(b[0],w[0]),M[0]=Math.max(k[0],M[0]),S[0]=A[0]=t+f-C,b[1]=A[1]=e+o}if(m){var C=T(g,g-m);w[0]+=C,M[0]-=C,k[1]=S[1]=e+o-g+m}if(o<g-m){var C=T(g,g-m-o);b[0]=k[0]=t+i-g+C,x[0]=Math.min(b[0],x[0]),y[0]=Math.max(k[0],y[0]),S[0]=A[0]=t+g-C,k[1]=S[1]=e}return n.length=0,n.push(ry(["M"],y,!0),ry(["L"],x,!0),ry(["A",f,f,0,0,1],b,!0),ry(["L"],k,!0),ry(["A",g,g,0,0,1],w,!0),ry(["L"],M,!0),ry(["A",g,g,0,0,1],S,!0),ry(["L"],A,!0),ry(["A",f,f,0,0,1],y,!0),["Z"]),n}function rO(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=tH(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=tH(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=tH(i.minWidth,0)&&this.chartHeight>=tH(i.minHeight,0)}).call(this,this)&&e.push(t._id)}function rP(t,e){var i,o=this,r=this.options.responsive,n=this.currentResponsive,s=[];!e&&r&&r.rules&&r.rules.forEach(function(t){void 0===t._id&&(t._id=t1()),o.matchResponsiveRule(t,s)},this);var a=tz.apply(void 0,s.map(function(t){return tT((null==r?void 0:r.rules)||[],function(e){return e._id===t})}).map(function(t){return null==t?void 0:t.chartOptions}));a.isResponsiveOptions=!0,s=s.toString()||void 0;var h=null==n?void 0:n.ruleIds;s!==h&&(n&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(n.undoOptions,t,!0),this.updatingResponsive=!1),s?((i=tv(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:a,undoOptions:i},this.updatingResponsive||this.update(a,t,!0)):this.currentResponsive=void 0)}(K||(K={})).compose=function(t){var e=t.prototype;return e.matchResponsiveRule||ty(e,{matchResponsiveRule:rO,setResponsive:rP}),t};var rL=K;tt.AST=em,tt.Axis=ip,tt.Chart=oc,tt.Color=er,tt.DataLabel=oJ,tt.DataTableCore=iH,tt.Fx=ea,tt.HTMLElement=it,tt.Legend=ot,tt.LegendSymbol=ij,tt.PlotLineOrBand=iy,tt.Point=iP,tt.Pointer=iN,tt.RendererRegistry=eA,tt.Series=i3,tt.SeriesRegistry=iK,tt.StackItem=oy,tt.SVGElement=eI,tt.SVGRenderer=e3,tt.Templating=eS,tt.Tick=is,tt.Time=t4,tt.Tooltip=iC,tt.addEvent=tr,tt.animObject=eh,tt.animate=ed,tt.arrayMax=ts,tt.arrayMin=tn,tt.attr=ta,tt.chart=oc.chart,tt.clamp=th,tt.color=er.parse,tt.correctFloat=tl,tt.createElement=td,tt.css=tp,tt.dateFormat=eS.dateFormat,tt.defaultOptions=t7,tt.defined=tu,tt.destroyObjectProperties=tf,tt.diffObjects=tv,tt.discardElement=tg,tt.distribute=eT.distribute,tt.erase=tm,tt.error=tJ,tt.extend=ty,tt.extendClass=tx,tt.find=tT,tt.fireEvent=tb,tt.format=eS.format,tt.getDeferredAnimation=ec,tt.getMagnitude=tM,tt.getOptions=function(){return t7},tt.getStyle=tA,tt.insertItem=tQ,tt.isArray=tD,tt.isClass=tP,tt.isDOMElement=tO,tt.isFunction=tB,tt.isNumber=tL,tt.isObject=tI,tt.isString=tE,tt.merge=tz,tt.normalizeTickInterval=tR,tt.numberFormat=eS.numberFormat,tt.objectEach=tN,tt.offset=tW,tt.pad=tX,tt.pick=tH,tt.pInt=tG,tt.relativeLength=tF,tt.removeEvent=t_,tt.seriesType=iK.seriesType,tt.setAnimation=ep,tt.setOptions=function(t){var e;return tb(tt,"setOptions",{options:t}),tz(!0,t7,t),t.time&&et.update(t7.time),t.lang&&"locale"in t.lang&&et.update({locale:t.lang.locale}),(null==(e=t.lang)?void 0:e.chartTitle)&&(t7.title=t8(t8({},t7.title),{text:t.lang.chartTitle})),t7},tt.splat=tU,tt.stableSort=tV,tt.stop=el,tt.syncTimeout=tZ,tt.time=et,tt.timers=ea.timers,tt.timeUnits=t0,tt.uniqueKey=t1,tt.useSerialIds=function(t){return D=tH(t,D)},tt.wrap=function(t,e,i){var o=t[e];t[e]=function(){var t=arguments,e=this;return i.apply(this,[function(){return o.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}},({compose:function(t,e,i){var o=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){var r=i.prototype.symbols;tr(t,"afterColumnTranslate",rS,{order:9}),tr(o,"afterTranslate",rT),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),rk=r.arc,rw=r.roundedRect,r.arc=rM,r.roundedRect=rC}},optionsToObject:rA}).compose(tt.Series,tt.SVGElement,tt.SVGRenderer),o2.compose(tt.Series.types.column),oJ.compose(tt.Series),iu.compose(tt.Axis),it.compose(tt.SVGRenderer),ot.compose(tt.Chart),ig.compose(tt.Axis),(L=(P=tt.Chart).prototype).hideOverlappingLabels||(L.hideOverlappingLabels=function(t){for(var e,i,o,r,n,s=t.length,a=!1,h=0;h<s;h++)(e=t[h])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=function(t){var e,i;if(t&&(!t.alignAttr||t.placed)){var o=t.box?0:t.padding||0,r=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},n=t.getBBox(),s=n.height,a=n.polygon,h=n.width,l=tk(t.alignValue)*h;return t.width=h,t.height=s,{x:r.x+((null==(e=t.parentGroup)?void 0:e.translateX)||0)+o-l,y:r.y+((null==(i=t.parentGroup)?void 0:i.translateY)||0)+o,width:h-2*o,height:s-2*o,polygon:a}}}(e));t.sort(function(t,e){return((null==e?void 0:e.labelrank)||0)-((null==t?void 0:t.labelrank)||0)});for(var h=0;h<s;++h)for(var l=null==(r=(i=t[h])&&i.absoluteBox)?void 0:r.polygon,d=h+1;d<s;++d){n=(o=t[d])&&o.absoluteBox;var c=!1;if(r&&n&&i!==o&&(null==i?void 0:i.newOpacity)!==0&&(null==o?void 0:o.newOpacity)!==0&&(null==i?void 0:i.visibility)!=="hidden"&&(null==o?void 0:o.visibility)!=="hidden"){var p=n.polygon;if(l&&p&&l!==p?function(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(rv({x:o[0],y:o[1]},e))return!0}return!1}(l,p)&&(c=!0):n.x>=r.x+r.width||n.x+n.width<=r.x||n.y>=r.y+r.height||n.y+n.height<=r.y||(c=!0),c){var u=(null==i?void 0:i.labelrank)<(null==o?void 0:o.labelrank)?i:o,f=null==u?void 0:u.text;u&&(u.newOpacity=0),(null==f?void 0:f.element.querySelector("textPath"))&&f.hide()}}}for(var g=0;g<t.length;g++){var v=t[g];v&&rm(v,this)&&(a=!0)}a&&tb(this,"afterHideAllOverlappingLabels")},tr(P,"render",function(){for(var t,e=this,i=[],o=0,r=e.labelCollectors||[];o<r.length;o++){var n=r[o];i=i.concat(n())}for(var s=0,a=e.yAxis||[];s<a.length;s++){var h=a[s];h.stacking&&h.options.stackLabels&&!h.options.stackLabels.allowOverlap&&tN(h.stacking.stacks,function(t){tN(t,function(t){t.label&&i.push(t.label)})})}for(var l=0,d=e.series||[];l<d.length;l++){var c=d[l];if(c.visible&&(null==(t=c.hasDataLabels)?void 0:t.call(c))){var p=function(t){for(var o=function(t){t.visible&&(t.dataLabels||[]).forEach(function(o){var r,n,s=o.options||{};o.labelrank=tH(s.labelrank,t.labelrank,null==(r=t.shapeArgs)?void 0:r.height),(null!=(n=s.allowOverlap)?n:Number(s.distance)>0)?(o.oldOpacity=o.opacity,o.newOpacity=1,rm(o,e)):i.push(o)})},r=0;r<t.length;r++)o(t[r])};p(c.nodes||[]),p(c.points)}}this.hideOverlappingLabels(i)})),rg.compose(tt.Series.types.pie),iy.compose(tt.Chart,tt.Axis),iN.compose(tt.Chart),rL.compose(tt.Chart),og.compose(tt.Axis,tt.Chart,tt.Series),oP.compose(tt.Axis,tt.Chart,tt.Series),iC.compose(tt.Pointer);var rE=tt.isTouchDevice,rD=[];function rB(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function rI(){var t,e,i,o,r=this.legend,n=this.navigator;if(n){e=r&&r.options,i=n.xAxis,o=n.yAxis;var s=n.scrollbarHeight,a=n.scrollButtonSize;this.inverted?(n.left=n.opposite?this.chartWidth-s-n.height:this.spacing[3]+s,n.top=this.plotTop+a):(n.left=tH(i.left,this.plotLeft+a),n.top=n.navigatorOptions.top||this.chartHeight-n.height-s-((null==(t=this.scrollbar)?void 0:t.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&"bottom"===e.verticalAlign&&"proximate"!==e.layout&&e.enabled&&!e.floating?r.legendHeight+tH(e.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),i&&o&&(this.inverted?i.options.left=o.options.left=n.left:i.options.top=o.options.top=n.top,i.setAxisSize(),o.setAxisSize())}}function rz(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new q(this),tH(t.redraw,!0)&&this.redraw(t.animation))}function rR(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new q(this))}function rN(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!rE&&"x"===this.zooming.type||rE&&"x"===this.zooming.pinchType))return!1}function rW(t){var e=t.navigator;if(e&&t.xAxis[0]){var i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function rX(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(tz(!0,this.options.navigator,e),tz(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}var rH=function(t,e){if(tY(rD,t)){var i=t.prototype;q=e,i.callbacks.push(rW),tr(t,"afterAddSeries",rB),tr(t,"afterSetChartSize",rI),tr(t,"afterUpdate",rz),tr(t,"beforeRender",rR),tr(t,"beforeShowResetZoom",rN),tr(t,"update",rX)}},rG=tt.isTouchDevice;function rY(){this.navigatorAxis||(this.navigatorAxis=new rj(this))}function rF(t){var e,i=this.chart,o=i.options,r=o.navigator,n=this.navigatorAxis,s=i.zooming.pinchType,a=o.rangeSelector,h=i.zooming.type;if(this.isXAxis&&((null==r?void 0:r.enabled)||(null==a?void 0:a.enabled))){if("y"===h&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===h||rG&&"xy"===s)&&this.options.range){var l=n.previousZoom;tu(t.min)?n.previousZoom=[this.min,this.max]:l&&(t.min=l[0],t.max=l[1],n.previousZoom=void 0)}}void 0!==e&&t.preventDefault()}var rj=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),tr(t,"init",rY),tr(t,"setExtremes",rF))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,e,i,o){var r=this.axis,n=(r.pointRange||0)/2,s=tH(i,r.translate(t,!0,!r.horiz)),a=tH(o,r.translate(e,!0,!r.horiz));return tu(i)||(s=tl(s+n)),tu(o)||(a=tl(a-n)),tL(s)&&tL(a)||(s=a=void 0),{min:s,max:a}},t}(),r_=er.parse,rU=iK.seriesTypes,rV={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:r_("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===rU.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["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,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}},rZ=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},rK={"navigator-handle":function(t,e,i,o,r){void 0===r&&(r={});var n=r.width?r.width/2:i,s=tF(r.borderRadius||0,Math.min(2*n,o));return rZ([["M",-1.5,(o=r.height||o)/2-3.5],["L",-1.5,o/2+4.5],["M",.5,o/2-3.5],["L",.5,o/2+4.5]],eH.rect(-n-1,.5,2*n+1,o,{r:s}),!0)}},rq=tt.composed,r$=eA.getRendererType,rJ={setFixedRange:function(t){var e=this.xAxis[0];tu(e.dataMax)&&tu(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}}.setFixedRange;function rQ(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var r0=function(t,e,i){rj.compose(e),tY(rq,"Navigator")&&(t.prototype.setFixedRange=rJ,ty(r$().prototype.symbols,rK),ty(t7,{navigator:rV}),tr(i,"afterUpdate",rQ))},r1=tt.composed;!function(t){var e;function i(t){var e,i,o,r,n,s,a,h,l=tH(null==(e=t.options)?void 0:e.min,t.min),d=tH(null==(i=t.options)?void 0:i.max,t.max);return{axisMin:l,axisMax:d,scrollMin:tu(t.dataMin)?Math.min(l,null!=(o=t.min)?o:1/0,t.dataMin,null!=(r=t.threshold)?r:1/0):l,scrollMax:null!=(s=null==(n=t.treeGrid)?void 0:n.adjustedMax)?s:tu(t.dataMax)?Math.max(d,null!=(a=t.max)?a:-1/0,t.dataMax,null!=(h=t.threshold)?h:-1/0):d}}function o(){var t=this.scrollbar,e=t&&!t.options.opposite,i=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=t.size+(t.options.margin||0))}function r(){var t,o,r=this;(null==(o=null==(t=r.options)?void 0:t.scrollbar)?void 0:o.enabled)&&(r.options.scrollbar.vertical=!r.horiz,r.options.startOnTick=r.options.endOnTick=!1,r.scrollbar=new e(r.chart.renderer,r.options.scrollbar,r.chart),tr(r.scrollbar,"changed",function(t){var e,o,n=i(r),s=n.axisMin,a=n.axisMax,h=n.scrollMin,l=n.scrollMax,d=r.toPixels(h),c=r.toPixels(l)-d;if(tu(s)&&tu(a))if(r.horiz&&!r.reversed||!r.horiz&&r.reversed?(e=Math.min(l,r.toValue(d+c*this.to)),o=Math.max(h,r.toValue(d+c*this.from))):(e=Math.min(l,r.toValue(d+c*(1-this.from))),o=Math.max(h,r.toValue(d+c*(1-this.to)))),this.shouldUpdateExtremes(t.DOMType)){var p="mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&void 0;r.setExtremes(tl(o),tl(e),!0,p,t)}else this.setRange(this.from,this.to)}))}function n(){var t,e,o,r=i(this),n=r.scrollMin,s=r.scrollMax,a=this.scrollbar,h=(this.axisTitleMargin||0)+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,d=this.options.margin||0;if(a&&l){if(this.horiz)this.opposite||(l[1]+=h),a.position(this.left,this.top+this.height+2+l[1]-(this.opposite?d:0),this.width,this.height),this.opposite||(l[1]+=d),t=1;else{this.opposite&&(l[0]+=h);var c=void 0;c=a.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:d):this.opposite?0:d,a.position(c,this.top,this.width,this.height),this.opposite&&(l[0]+=d),t=0}if(l[t]+=a.size+(a.options.margin||0),isNaN(n)||isNaN(s)||!tu(this.min)||!tu(this.max)||tu(this.dataMin)&&this.dataMin===this.dataMax)a.setRange(0,1);else if(this.min===this.max){var p=this.pointRange/(this.dataMax+1);e=p*this.min,o=p*(this.max+1),a.setRange(e,o)}else e=(this.toPixels(this.min)-this.toPixels(n))/(this.toPixels(s)-this.toPixels(n)),o=(this.toPixels(this.max)-this.toPixels(n))/(this.toPixels(s)-this.toPixels(n)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(e,o):a.setRange(1-o,1-e)}}t.compose=function(t,i){tY(r1,"Axis.Scrollbar")&&(e=i,tr(t,"afterGetOffset",o),tr(t,"afterInit",r),tr(t,"afterRender",n))}}($||($={}));var r2=$,r3={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},r5=tt.composed,r6=function(){function t(t,e,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,i)}return t.compose=function(e){r2.compose(e,t),tY(r5,"Scrollbar")&&ty(t7,{scrollbar:r3})},t.swapXY=function(t,e){return e&&t.forEach(function(t){for(var e,i=t.length,o=0;o<i;o+=2)"number"==typeof(e=t[o+1])&&(t[o+1]=t[o+2],t[o+2]=e)}),t},t.prototype.addEvents=function(){var t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,o=this.track.element,r=this.mouseDownHandler.bind(this),n=this.mouseMoveHandler.bind(this),s=this.mouseUpHandler.bind(this),a=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[o,"click",this.trackClick.bind(this)],[i,"mousedown",r],[i.ownerDocument,"mousemove",n],[i.ownerDocument,"mouseup",s],[i,"touchstart",r],[i.ownerDocument,"touchmove",n],[i.ownerDocument,"touchend",s]];a.forEach(function(t){tr.apply(null,t)}),this._events=a},t.prototype.buttonToMaxClick=function(t){var e=(this.to-this.from)*tH(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),tb(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var e=tl(this.to-this.from)*tH(this.options.step,.2);this.updatePosition(tl(this.from-e),tl(this.to-e)),tb(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.cursorToScrollbarPosition=function(t){var e=this.options,i=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}},t.prototype.destroy=function(){var t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,tf(e.scrollbarButtons))},t.prototype.drawScrollbarButton=function(e){var i=this.renderer,o=this.scrollbarButtons,r=this.options,n=this.size,s=i.g().add(this.group);if(o.push(s),r.buttonsEnabled){var a=i.rect().addClass("highcharts-scrollbar-button").add(s);this.chart.styledMode||a.attr({stroke:r.buttonBorderColor,"stroke-width":r.buttonBorderWidth,fill:r.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:n,height:n,r:r.buttonBorderRadius},a.strokeWidth()));var h=i.path(t.swapXY([["M",n/2+(e?-1:1),n/2-3],["L",n/2+(e?-1:1),n/2+3],["L",n/2+(e?2:-2),n/2]],r.vertical)).addClass("highcharts-scrollbar-arrow").add(o[e]);this.chart.styledMode||h.attr({fill:r.buttonArrowColor})}},t.prototype.init=function(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=tz(r3,t7.scrollbar,e),this.options.margin=tH(this.options.margin,10),this.chart=i,this.size=tH(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){var e,i=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t,o=this.cursorToScrollbarPosition(i);this.chartX=o.chartX,this.chartY=o.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var e,i,o=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t,r=this.options.vertical?"chartY":"chartX",n=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][r])&&(i=this.cursorToScrollbarPosition(o)[r]-this[r],this.hasDragged=!0,this.updatePosition(n[0]+i,n[1]+i),this.hasDragged&&tb(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&tb(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,e,i,o){var r=this.options,n=r.buttonsEnabled,s=r.margin,a=void 0===s?0:s,h=r.vertical,l=this.rendered?"animate":"attr",d=o,c=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=o,this.xOffset=d,this.yOffset=c,h?(this.width=this.yOffset=i=c=this.size,this.xOffset=d=0,this.yOffset=c=n?this.size:0,this.barWidth=o-(n?2*i:0),this.x=t+=a):(this.height=o=this.size,this.xOffset=d=n?this.size:0,this.barWidth=i-(n?2*o:0),this.y=this.y+a),this.group[l]({translateX:t,translateY:this.y}),this.track[l]({width:i,height:o}),this.scrollbarButtons[1][l]({translateX:h?0:i-d,translateY:h?o-c:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){t_.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var e=this.renderer,i=this.options,o=this.size,r=this.chart.styledMode,n=e.g("scrollbar").attr({zIndex:i.zIndex}).hide().add();this.group=n,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({r:i.trackBorderRadius||0,height:o,width:o}).add(n),r||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth});var s=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-tc(0,s),y:-tc(0,s)}),this.scrollbarGroup=e.g().add(n),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:o-s,width:o-s,r:i.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(t.swapXY([["M",-3,o/4],["L",-3,2*o/3],["M",0,o/4],["L",0,2*o/3],["M",3,o/4],["L",3,2*o/3]],i.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),r||(this.scrollbar.attr({fill:i.barBackgroundColor,stroke:i.barBorderColor,"stroke-width":i.barBorderWidth}),this.scrollbarRifles.attr({stroke:i.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-tc(0,this.scrollbarStrokeWidth),-tc(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,e){var i,o,r=this.options,n=r.vertical,s=r.minWidth,a=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(tu(a)){var l=a*Math.min(e,1);i=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=o=tl(l-i),o<s&&(i=(a-s+o)*t,o=s);var d=Math.floor(i+this.xOffset+this.yOffset),c=o/2-.5;this.from=t,this.to=e,n?(this.scrollbarGroup[h]({translateY:d}),this.scrollbar[h]({height:o}),this.scrollbarRifles[h]({translateY:c}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:d}),this.scrollbar[h]({width:o}),this.scrollbarRifles[h]({translateX:c}),this.scrollbarLeft=d,this.scrollbarTop=0),o<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===r.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return tH(this.options.liveRedraw,tt.svg&&!tt.isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!tu(t)},t.prototype.trackClick=function(t){var e,i=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t,o=this.to-this.from,r=this.y+this.scrollbarTop,n=this.x+this.scrollbarLeft;this.options.vertical&&i.chartY>r||!this.options.vertical&&i.chartX>n?this.updatePosition(this.from+o,this.to+o):this.updatePosition(this.from-o,this.to-o),tb(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,tz(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){e>1&&(t=tl(1-tl(e-t)),e=1),t<0&&(e=tl(e-t),t=0),this.from=t,this.to=e},t.defaultOptions=r3,t}(),r9=function(){return(r9=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r4=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},r8=tt.isTouchDevice;function r7(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=[].filter.call(e,tL);if(o.length)return Math[t].apply(0,o)}var nt=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(e,i,o){rH(e,t),r0(e,i,o)},t.prototype.drawHandle=function(t,e,i,o){var r=this.navigatorOptions.handles.height;this.handles[e][o](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-r)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-r/2-1)})},t.prototype.drawOutline=function(t,e,i,o){var r,n,s=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),h=a/2,l=a%2/2,d=this.scrollButtonSize,c=this.size,p=this.top,u=this.height,f=p-h,g=p+u,v=this.left;i?(r=p+e+l,e=p+t+l,n=[["M",v+u,p-d-l],["L",v+u,r],["L",v,r],["M",v,e],["L",v+u,e],["L",v+u,p+c+d]],s&&n.push(["M",v+u,r-h],["L",v+u,e+h])):(v-=d,t+=v+d-l,e+=v+d-l,n=[["M",v,f],["L",t,f],["L",t,g],["M",e,g],["L",e,f],["L",v+c+2*d,f]],s&&n.push(["M",t-h,f],["L",e+h,f])),this.outline[o]({d:n})},t.prototype.drawMasks=function(t,e,i,o){var r,n,s,a,h=this.left,l=this.top,d=this.height;i?(s=[h,h,h],a=[l,l+t,l+e],n=[d,d,d],r=[t,e-t,this.size-e]):(s=[h,h+t,h+e],a=[l,l,l],n=[t,e-t,this.size-e],r=[d,d,d]),this.shades.forEach(function(t,e){t[o]({x:s[e],y:a[e],width:n[e],height:r[e]})})},t.prototype.renderElements=function(){var t,e,i,o=this,r=o.navigatorOptions,n=r.maskInside,s=o.chart,a=s.inverted,h=s.renderer,l={cursor:a?"ns-resize":"ew-resize"},d=null!=(t=o.navigatorGroup)?t:o.navigatorGroup=h.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!n,n,!n].forEach(function(t,e){var i,n=null!=(i=o.shades[e])?i:o.shades[e]=h.rect().addClass("highcharts-navigator-mask"+(1===e?"-inside":"-outside")).add(d);s.styledMode||(n.attr({fill:t?r.maskFill:"rgba(0,0,0,0)"}),1===e&&n.css(l))}),o.outline||(o.outline=h.path().addClass("highcharts-navigator-outline").add(d)),s.styledMode||o.outline.attr({"stroke-width":r.outlineWidth,stroke:r.outlineColor}),null==(e=r.handles)?void 0:e.enabled){var c=!1,p=r.handles,u=p.height,f=p.width;[0,1].forEach(function(t){var e,i,r=p.symbols[t];(c=c||(null==(e=o.handles[t])?void 0:e.symbolName)!==r)&&(null==(i=o.handles[t])||i.destroy(),o.handles[t]=h.symbol(r,-f/2-1,0,f,u,p),o.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(d)),s.inverted&&o.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-f/2),rotationOriginY:(u+f)/2}),s.styledMode||o.handles[t].attr({fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.lineWidth,width:p.width,height:p.height,x:-f/2-1,y:0}).css(l)}),c&&(null==(i=o.partsEventsToUnbind)||i.forEach(function(t){t()}),o.partsEventsToUnbind=r4(r4([],o.getPartsEvents("mousedown"),!0),o.getPartsEvents("touchstart"),!0))}},t.prototype.update=function(t,e){var i,o,r,n,s=this;void 0===e&&(e=!1);var a=this.chart,h=a.options.chart.inverted!==(null==(r=a.scrollbar)?void 0:r.options.vertical);if(tz(!0,a.options.navigator,t),this.navigatorOptions=a.options.navigator||{},this.setOpposite(),tu(t.enabled)||h)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(a);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t_(t,"updatedData",s.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push(tr(t,"updatedData",s.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=null!=(n=t.height)?n:this.height;var l=this.getXAxisOffsets();this.xAxis.update(r9(r9({},t.xAxis),((i={offsets:l})[a.inverted?"width":"height"]=this.height,i[a.inverted?"height":"width"]=void 0,i)),!1),this.yAxis.update(r9(r9({},t.yAxis),((o={})[a.inverted?"width":"height"]=this.height,o)),!1)}e&&a.redraw()},t.prototype.render=function(t,e,i,o){var r,n,s,a,h,l,d=this.chart,c=this.xAxis,p=c.pointRange||0,u=c.navigatorAxis.fake?d.xAxis[0]:c,f=this.navigatorEnabled,g=this.rendered,v=d.inverted,m=d.xAxis[0].minRange,y=d.xAxis[0].options.maxRange,x=this.scrollButtonSize,b=this.scrollbarHeight;if(!this.hasDragged||tu(i)){if(this.isDirty&&this.renderElements(),t=tl(t-p/2),e=tl(e+p/2),!tL(t)||!tL(e))if(!g)return;else i=0,o=tH(c.width,u.width);this.left=tH(c.left,d.plotLeft+x+(v?d.plotWidth:0));var k=this.size=h=tH(c.len,(v?d.plotHeight:d.plotWidth)-2*x);n=v?b:h+2*x,i=tH(i,c.toPixels(t,!0)),o=tH(o,c.toPixels(e,!0)),tL(i)&&Math.abs(i)!==1/0||(i=0,o=n);var w=c.toValue(i,!0),M=c.toValue(o,!0),S=Math.abs(tl(M-w));tu(m)&&S<m?this.grabbedLeft?i=c.toPixels(M-m-p,!0):this.grabbedRight&&(o=c.toPixels(w+m+p,!0)):tu(y)&&tl(S-p)>y&&(this.grabbedLeft?i=c.toPixels(M-y-p,!0):this.grabbedRight&&(o=c.toPixels(w+y+p,!0))),this.zoomedMax=th(Math.max(i,o),0,k),this.zoomedMin=th(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,o),0,k),this.range=this.zoomedMax-this.zoomedMin,k=Math.round(this.zoomedMax);var A=Math.round(this.zoomedMin);f&&(this.navigatorGroup.attr({visibility:"inherit"}),l=g&&!this.hasDragged?"animate":"attr",this.drawMasks(A,k,v,l),this.drawOutline(A,k,v,l),(null==(r=this.navigatorOptions.handles)?void 0:r.enabled)&&(this.drawHandle(A,0,v,l),this.drawHandle(k,1,v,l))),this.scrollbar&&(v?(a=this.top-x,s=this.left-b+(f||!u.opposite?0:(u.titleOffset||0)+u.axisTitleMargin),b=h+2*x):(a=this.top+(f?this.height:-b),s=this.left-x),this.scrollbar.position(s,a,n,b),this.scrollbar.setRange(this.zoomedMin/(h||1),this.zoomedMax/(h||1))),this.rendered=!0,this.isDirty=!1,tb(this,"afterRender")}},t.prototype.addMouseEvents=function(){var t,e,i=this,o=i.chart,r=o.container,n=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},n.push(tr(o.renderTo,"mousemove",t),tr(r.ownerDocument,"mouseup",e),tr(o.renderTo,"touchmove",t),tr(r.ownerDocument,"touchend",e)),i.eventsToUnbind=n,i.series&&i.series[0]&&n.push(tr(i.series[0].xAxis,"foundExtremes",function(){var t;null==(t=o.navigator)||t.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(t){var e=this,i=[];return["shades","handles"].forEach(function(o){e[o].forEach(function(r,n){i.push(tr(r.element,t,function(t){e[""+o+"Mousedown"](t,n)}))})}),i},t.prototype.shadesMousedown=function(t,e){t=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t;var i,o,r,n,s,a,h,l=this.chart,d=this.xAxis,c=this.zoomedMin,p=this.size,u=this.range,f=this.left,g=t.chartX;l.inverted&&(g=t.chartY,f=this.top),1===e?(this.grabbedCenter=g,this.fixedWidth=u,this.dragOffset=g-c):(h=g-f-u/2,0===e?h=Math.max(0,h):2===e&&h+u>=p&&(h=p-u,this.reversedExtremes?(h-=u,s=null==(o=this.getUnionExtremes())?void 0:o.dataMin):n=null==(r=this.getUnionExtremes())?void 0:r.dataMax),h!==c&&(this.fixedWidth=u,tu((a=d.navigatorAxis.toFixedRange(h,h+u,s,n)).min)&&tb(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,eventArguments:{trigger:"navigator"}})))},t.prototype.handlesMousedown=function(t,e){t=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t;var i,o=this.chart,r=o.xAxis[0],n=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=n?r.min:r.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=n?r.max:r.min),o.setFixedRange(void 0)},t.prototype.onMouseMove=function(t){var e,i,o,r=this,n=r.chart,s=r.navigatorSize,a=r.range,h=r.dragOffset,l=n.inverted,d=r.left;(!t.touches||0!==t.touches[0].pageX)&&(o=(t=(null==(e=n.pointer)?void 0:e.normalize(t))||t).chartX,l&&(d=r.top,o=t.chartY),r.grabbedLeft?(r.hasDragged=!0,r.render(0,0,o-d,r.otherHandlePos)):r.grabbedRight?(r.hasDragged=!0,r.render(0,0,r.otherHandlePos,o-d)):r.grabbedCenter&&h&&(r.hasDragged=!0,o<h?o=h:o>s+h-a&&(o=s+h-a),r.render(0,0,o-h,o-h+a)),r.hasDragged&&tH(null==(i=r.scrollbarOptions)?void 0:i.liveRedraw,!r8&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){r.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var e,i,o,r,n,s,a,h=this.chart,l=this.xAxis,d=this.scrollbar,c=t.DOMEvent||t,p=h.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===t.trigger)&&(r=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?n=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(s=this.fixedExtreme),this.zoomedMax===this.size&&(s=this.reversedExtremes?r.dataMin:r.dataMax),0===this.zoomedMin&&(n=this.reversedExtremes?r.dataMax:r.dataMin),tu((a=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,n,s)).min)&&tb(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:c}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&tL(this.zoomedMin)&&tL(this.zoomedMax)&&(o=Math.round(this.zoomedMin),i=Math.round(this.zoomedMax),this.shades&&this.drawMasks(o,i,p,u),this.outline&&this.drawOutline(o,i,p,u),(null==(e=this.navigatorOptions.handles)?void 0:e.enabled)&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(o,0,p,u),this.drawHandle(i,1,p,u)))},t.prototype.removeEvents=function(){var t;null==(t=this.eventsToUnbind)||t.forEach(function(t){t()}),this.eventsToUnbind=void 0,this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){t_(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&t_(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.getXAxisOffsets=function(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]},t.prototype.init=function(t){var e,i,o,r=t.options,n=r.navigator||{},s=n.enabled,a=r.scrollbar||{},h=a.enabled,l=s&&n.height||0,d=h&&a.height||0,c=a.buttonsEnabled&&d||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=l,this.scrollbarHeight=d,this.scrollButtonSize=c,this.scrollbarEnabled=h,this.navigatorEnabled=!!s,this.navigatorOptions=n,this.scrollbarOptions=a,this.setOpposite();var p=this,u=p.baseSeries,f=t.xAxis.length,g=t.yAxis.length,v=u&&u[0]&&u[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,p.navigatorEnabled){var m=this.getXAxisOffsets();p.xAxis=new ip(t,tz({breaks:v.options.breaks,ordinal:v.options.ordinal,overscroll:v.options.overscroll},n.xAxis,{type:"datetime",yAxis:null==(e=n.yAxis)?void 0:e.id,index:f,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:v.options.ordinal?0:v.options.minPadding,maxPadding:v.options.ordinal?0:v.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:m,width:l}:{offsets:m,height:l}),"xAxis"),p.yAxis=new ip(t,tz(n.yAxis,{alignTicks:!1,offset:0,index:g,isInternal:!0,reversed:tH(n.yAxis&&n.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:l}:{height:l}),"yAxis"),u||(null==(i=n.series)?void 0:i.data)?p.updateNavigatorSeries(!1):0===t.series.length&&(p.unbindRedraw=tr(t,"beforeRedraw",function(){var e;t.series.length>0&&!p.series&&(p.setBaseSeries(),null==(e=p.unbindRedraw)||e.call(p))})),p.reversedExtremes=t.inverted&&!p.xAxis.reversed||!t.inverted&&p.xAxis.reversed,p.renderElements(),p.addMouseEvents()}else p.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){var o=t.xAxis[0],r=o.getExtremes(),n=o.len-2*c,s=r7("min",o.options.min,r.dataMin),a=r7("max",o.options.max,r.dataMax)-s;return i?e*a/n+s:n*(e-s)/a},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},p.xAxis.navigatorAxis.axis=p.xAxis,p.xAxis.navigatorAxis.toFixedRange=rj.prototype.toFixedRange.bind(p.xAxis.navigatorAxis);if(null==(o=t.options.scrollbar)?void 0:o.enabled){var y=tz(t.options.scrollbar,{vertical:t.inverted});tL(y.margin)||(y.margin=t.inverted?-3:3),t.scrollbar=p.scrollbar=new r6(t.renderer,y,t),tr(p.scrollbar,"changed",function(t){var e,i=p.size,o=i*this.to,r=i*this.from;p.hasDragged=null==(e=p.scrollbar)?void 0:e.hasDragged,p.render(0,0,r,o),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){p.onMouseUp(t)})})}p.addBaseSeriesEvents(),p.addChartEvents()},t.prototype.setOpposite=function(){var t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=tH(t.opposite,!!(!e&&i.inverted))},t.prototype.getUnionExtremes=function(t){var e,i=this.chart.xAxis[0],o=this.chart.time,r=this.xAxis,n=r.options,s=i.options;return t&&null===i.dataMin||(e={dataMin:tH(o.parse(null==n?void 0:n.min),r7("min",o.parse(s.min),i.dataMin,r.dataMin,r.min)),dataMax:tH(o.parse(null==n?void 0:n.max),r7("max",o.parse(s.max),i.dataMax,r.dataMax,r.max))}),e},t.prototype.setBaseSeries=function(t,e){var i,o=this.chart,r=this.baseSeries=[];t=t||(null==(i=o.options.navigator)?void 0:i.baseSeries)||(o.series.length?tT(o.series,function(t){return!t.options.isInternal}).index:0),(o.series||[]).forEach(function(e,i){!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&r.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)},t.prototype.updateNavigatorSeries=function(t,e){var i,o,r,n,s,a=this,h=a.chart,l=a.baseSeries,d={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:null==(i=this.navigatorOptions.xAxis)?void 0:i.id,yAxis:null==(o=this.navigatorOptions.yAxis)?void 0:o.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=a.series=(a.series||[]).filter(function(t){var e=t.baseSeries;return!(e&&0>l.indexOf(e))||(e&&(t_(e,"updatedData",a.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),p=a.navigatorOptions.series;l&&l.length&&l.forEach(function(t){var i,o,u=t.navigatorSeries,f=ty({color:t.color,visible:t.visible},tD(p)?t7.navigator.series:p);if(!u||!1!==a.navigatorOptions.adaptToUpdatedData){d.name="Navigator "+l.length,s=(r=t.options||{}).navigatorOptions||{},f.dataLabels=tU(f.dataLabels),(n=tz(r,d,f,s)).pointRange=tH(f.pointRange,s.pointRange,null==(i=t7.plotOptions[n.type||"line"])?void 0:i.pointRange);var g=s.data||f.data;a.hasNavigatorData=a.hasNavigatorData||!!g,n.data=g||(null==(o=r.data)?void 0:o.slice(0)),u&&u.options?u.update(n,e):(t.navigatorSeries=h.initSeries(n),h.setSortedData(),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries))}}),((null==p?void 0:p.data)&&!(l&&l.length)||tD(p))&&(a.hasNavigatorData=!1,(p=tU(p)).forEach(function(t,e){var i,o,r;d.name="Navigator "+(c.length+1),(n=tz(null==(i=t7.navigator)?void 0:i.series,{color:h.series[e]&&!h.series[e].options.isInternal&&h.series[e].color||(null==(o=h.options.colors)?void 0:o[e])||(null==(r=h.options.colors)?void 0:r[0])},d,t)).data=t.data,n.data&&(a.hasNavigatorData=!0,c.push(h.initSeries(n)))})),t&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var t=this,e=this,i=e.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(tr(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(function(o){o.eventsToUnbind.push(tr(o,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),o.eventsToUnbind.push(tr(o,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&o.xAxis&&o.eventsToUnbind.push(tr(o,"updatedData",t.updatedDataHandler)),o.eventsToUnbind.push(tr(o,"remove",function(){i&&tm(i,o),this.navigatorSeries&&e.series&&(tm(e.series,this.navigatorSeries),tu(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce(function(t,e){var i;return Math.min(t,null!=(i=e.getColumn("x")[0])?i:t)},t)},t.prototype.modifyNavigatorAxisExtremes=function(){var t=this.xAxis;if(void 0!==t.getExtremes){var e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var t,e,i,o=this.chart.navigator,r=this.getExtremes(),n=r.min,s=r.max,a=r.dataMin,h=r.dataMax,l=s-n,d=null==o?void 0:o.stickToMin,c=null==o?void 0:o.stickToMax,p=tH(null==(t=this.ordinal)?void 0:t.convertOverscroll(this.options.overscroll),0),u=o.series&&o.series[0],f=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(d&&(e=(i=a)+l),c&&(e=h+p,d||(i=Math.max(a,e-l,o.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),f&&(d||c)&&tL(i)&&(this.min=this.userMin=i,this.max=this.userMax=e)),o.stickToMin=o.stickToMax=null},t.prototype.updatedDataHandler=function(){var t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=tH(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.getColumn("x")[0],e.setData(this.options.data,!1,void 0,!1))},t.prototype.shouldStickToMin=function(t,e){var i=e.getBaseSeriesMin(t.getColumn("x")[0]),o=t.xAxis,r=o.max,n=o.min,s=o.options.range;return!!(tL(r)&&tL(n))&&(s&&r-i>0?r-i<s:n<=i)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(tr(this.chart,"redraw",function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),tr(this.chart,"getMargins",function(){var t,e=this.navigator,i=e.opposite?"plotTop":"marginBottom";this.inverted&&(i=e.opposite?"marginRight":"plotLeft"),this[i]=(this[i]||0)+(e.navigatorEnabled||!this.inverted?e.height+((null==(t=this.scrollbar)?void 0:t.options.margin)||0)+e.scrollbarHeight:0)+(e.navigatorOptions.margin||0)}),tr(this,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))},t.prototype.destroy=function(){var t=this;this.removeEvents(),this.xAxis&&(tm(this.chart.xAxis,this.xAxis),tm(this.chart.axes,this.xAxis)),this.yAxis&&(tm(this.chart.yAxis,this.yAxis),tm(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(t){t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(e){t[e]&&t[e].destroy&&t[e].destroy(),t[e]=null}),[this.handles].forEach(function(t){tf(t)}),this.baseSeries.forEach(function(t){t.navigatorSeries=void 0}),this.navigatorEnabled=!1},t}(),ne={chart:{height:70,margin:[0,5,0,5]},exporting:{enabled:!1},legend:{enabled:!1},navigator:{enabled:!1},plotOptions:{series:{states:{hover:{enabled:!1}},marker:{enabled:!1}}},scrollbar:{enabled:!1},title:{text:""},tooltip:{enabled:!1},xAxis:{visible:!1},yAxis:{height:0,visible:!1}},ni=function(){function t(t,e){this.boundAxes=[],this.userOptions=e,this.chartOptions=tz(tt.getOptions(),ne,e.chart,{navigator:e}),this.chartOptions.chart&&e.height&&(this.chartOptions.chart.height=e.height);var i=new oc(t,this.chartOptions);i.options=tz(i.options,{navigator:{enabled:!0},scrollbar:{enabled:!0}}),this.chartOptions.navigator&&this.chartOptions.scrollbar&&(this.chartOptions.navigator.enabled=!0,this.chartOptions.scrollbar.enabled=!0),this.navigator=new nt(i),i.navigator=this.navigator,this.initNavigator()}return t.navigator=function(e,i){var o=new t(e,i);return tt.navigators?tt.navigators.push(o):tt.navigators=[o],o},t.prototype.bind=function(t,e){var i=this;void 0===e&&(e=!0);var o=this,r=t instanceof oc?t.xAxis[0]:t;if(r instanceof ip){var n=this.navigator.xAxis,s=n.min,a=n.max,h=[];if(e){var l=tr(r,"setExtremes",function(t){("pan"===t.trigger||"zoom"===t.trigger||"mousewheel"===t.trigger||"rangeSelectorButton"===t.trigger||"rangeSelectorInput"===t.trigger)&&o.setRange(t.min,t.max,!0,"pan"!==t.trigger&&"mousewheel"!==t.trigger,{trigger:r})});h.push(l)}var d=tr(this.navigator,"setRange",function(t){r.setExtremes(t.min,t.max,t.redraw,t.animation)});h.push(d);var c=this.boundAxes.filter(function(t){return t.axis===r})[0];c||(c={axis:r,callbacks:[]},this.boundAxes.push(c)),c.callbacks=h,r.series.forEach(function(t){t.options.showInNavigator&&o.addSeries(t.options)}),r.setExtremes(s,a),tr(r,"destroy",function(t){t.keepEvents||i.unbind(r)})}},t.prototype.unbind=function(t){if(!t){this.boundAxes.forEach(function(t){t.callbacks.forEach(function(t){return t()})}),this.boundAxes.length=0;return}for(var e=t instanceof ip?t:t.xAxis[0],i=this.boundAxes.length-1;i>=0;i--)this.boundAxes[i].axis===e&&(this.boundAxes[i].callbacks.forEach(function(t){return t()}),this.boundAxes.splice(i,1))},t.prototype.destroy=function(){this.boundAxes.forEach(function(t){t.callbacks.forEach(function(t){return t()})}),this.boundAxes.length=0,this.navigator.destroy(),this.navigator.chart.destroy()},t.prototype.update=function(t,e){this.chartOptions=tz(this.chartOptions,t.height&&{chart:{height:t.height}},t.chart,{navigator:t}),this.navigator.chart.update(this.chartOptions,e)},t.prototype.redraw=function(){this.navigator.chart.redraw()},t.prototype.addSeries=function(t){this.navigator.chart.addSeries(tz(t,{showInNavigator:tH(t.showInNavigator,!0)})),this.navigator.setBaseSeries()},t.prototype.initNavigator=function(){var t,e=this.navigator;e.top=1,e.xAxis.setScale(),e.yAxis.setScale(),e.xAxis.render(),e.yAxis.render(),null==(t=e.series)||t.forEach(function(t){t.translate(),t.render(),t.redraw()});var i=this.getInitialExtremes(),o=i.min,r=i.max;e.chart.xAxis[0].userMin=o,e.chart.xAxis[0].userMax=r,e.render(o,r)},t.prototype.getRange=function(){var t=this.navigator.chart.xAxis[0].getExtremes(),e=t.min,i=t.max,o=this.navigator.xAxis.getExtremes(),r=o.userMin,n=o.userMax,s=o.min,a=o.max;return{min:tH(e,s),max:tH(i,a),dataMin:s,dataMax:a,userMin:r,userMax:n}},t.prototype.setRange=function(t,e,i,o,r){tb(this.navigator,"setRange",{min:t,max:e,redraw:i,animation:o,eventArguments:tz(r,{trigger:"navigator"})})},t.prototype.getInitialExtremes=function(){var t=this.navigator.xAxis.getExtremes();return{min:t.min,max:t.max}},t}();tt.StandaloneNavigator=tt.StandaloneNavigator||ni,tt.navigator=tt.StandaloneNavigator.navigator,r0(tt.Chart,tt.Axis,tt.Series);var no=tt;return Q.default}()});