Hacked By AnonymousFox

Current Path : C:/AppServ/www/financial/stacked/code/es5/
Upload File :
Current File : C:/AppServ/www/financial/stacked/code/es5/highstock.js

!/**
 * Highcharts JS v12.1.2 (2025-01-09)
 * @module highcharts/highcharts
 *
 * (c) 2009-2024 Torstein Honsi
 *
 * License: www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("highcharts/highcharts",[],e):"object"==typeof exports?exports.highcharts=e():(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e())}(this,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,M,w,S,A,T,C,O,P,E,L,B,D,I,z,R,N,W,G,X,H,Y,F,_,j,U,V,Z,q,K,$,J,Q,tt,te,ti,to,tr,tn,ts,ta,th={};th.d=function(t,e){for(var i in e)th.o(e,i)&&!th.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},th.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var tl={};th.d(tl,{default:function(){return fv}}),(t=D||(D={})).SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="12.1.2",t.win="undefined"!=typeof window?window:{},t.doc=t.win.document,t.svg=t.doc&&t.doc.createElementNS&&!!t.doc.createElementNS(t.SVG_NS,"svg").createSVGRect,t.pageLang=null===(i=null===(e=null===t.doc||void 0===t.doc?void 0:t.doc.documentElement)||void 0===e?void 0:e.closest("[lang]"))||void 0===i?void 0:i.lang,t.userAgent=t.win.navigator&&t.win.navigator.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 td=D,tc=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))},tp=td.charts,tu=td.doc,tf=td.win;function tg(t,e,i,o){var r=e?"Highcharts error":"Highcharts warning";32===t&&(t=""+r+": Deprecated member");var n=tM(t),s=n?""+r+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(void 0!==o){var a="";n&&(s+="?"),tB(o,function(t,e){a+="\n - ".concat(e,": ").concat(t),n&&(s+=encodeURI(e)+"="+encodeURI(t))}),s+=a}tI(td,"displayError",{chart:i,code:t,message:s,params:o},function(){if(e)throw Error(s);tf.console&&-1===tg.messages.indexOf(s)&&console.warn(s)}),tg.messages.push(s)}function tv(t,e){return parseInt(t,e||10)}function tm(t){return"string"==typeof t}function ty(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function tx(t,e){return!!t&&"object"==typeof t&&(!e||!ty(t))}function tb(t){return tx(t)&&"number"==typeof t.nodeType}function tk(t){var e=t&&t.constructor;return!!(tx(t,!0)&&!tb(t)&&e&&e.name&&"Object"!==e.name)}function tM(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function tw(t){return null!=t}function tS(t,e,i){var o,r=tm(e)&&!tw(i),n=function(e,i){tw(e)?t.setAttribute(i,e):r?(o=t.getAttribute(i))||"class"!==i||(o=t.getAttribute(i+"Name")):t.removeAttribute(i)};return tm(e)?n(i,e):tB(e,n),o}function tA(t){return ty(t)?t:[t]}function tT(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function tC(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function tO(t,e){tT(t.style,e)}function tP(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function tE(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}(tg||(tg={})).messages=[],Math.easeInOutSine=function(t){return -.5*(Math.cos(Math.PI*t)-1)};var tL=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 tB(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function tD(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,tB(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 tI(t,e,i,o){if(i=i||{},tu.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==td)){var r=tu.createEvent("Events");r.initEvent(e,!0,!0),i=tT(r,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||tT(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)&&i.preventDefault()})}o&&!i.defaultPrevented&&o.call(t,i)}var tz=(o=Math.random().toString(36).substring(2,9)+"-",r=0,function(){return"highcharts-"+(I?"":o)+r++});tf.jQuery&&(tf.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new td[tm(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):tp[tS(this[0],"data-highcharts-chart")]});var tR={addEvent:function(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;td.Point&&t instanceof td.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,e,i,!!td.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(){tD(t,e,i)}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:tS,clamp:function(t,e,i){return t>e?t<i?t:i:e},clearTimeout:function(t){tw(t)&&clearTimeout(t)},correctFloat:tE,createElement:function(t,e,i,o,r){var n=tu.createElement(t);return e&&tT(n,e),r&&tO(n,{padding:"0",border:"none",margin:"0"}),i&&tO(n,i),o&&o.appendChild(n),n},crisp:function(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},css:tO,defined:tw,destroyObjectProperties:function(t,e,i){tB(t,function(o,r){o!==e&&(null==o?void 0:o.destroy)&&o.destroy(),((null==o?void 0:o.destroy)||!i)&&delete t[r]})},diffObjects:function(t,e,i,o){var r={};return!function t(e,r,n,s){var a=i?r:e;tB(e,function(i,h){if(!s&&o&&o.indexOf(h)>-1&&r[h]){i=tA(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 tx(i,!0)&&!i.nodeType?(n[h]=ty(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},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},error:tg,extend:tT,extendClass:function(t,e){var i=function(){};return i.prototype=new t,tT(i.prototype,e),i},find:tL,fireEvent:tI,getAlignFactor:function(t){return void 0===t&&(t=""),({center:.5,right:1,middle:.5,bottom:1})[t]||0},getClosestDistance:function(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},getMagnitude:tP,getNestedProperty:function(t,e){for(var i=t.split(".");i.length&&tw(e);){var o=i.shift();if(void 0===o||"__proto__"===o)return;if("this"===o){var r=void 0;return tx(e)&&(r=e["@this"]),null!=r?r:e}var n=e[o.replace(/[\\'"]/g,"")];if(!tw(n)||"function"==typeof n||"number"==typeof n.nodeType||n===tf)return;e=n}return e},getStyle:function t(e,i,o){if("width"===i){var r,n=Math.min(e.offsetWidth,e.scrollWidth),s=e.getBoundingClientRect&&e.getBoundingClientRect().width;return s<n&&s>=n-1&&(n=Math.floor(s)),Math.max(0,n-(t(e,"padding-left",!0)||0)-(t(e,"padding-right",!0)||0))}if("height"===i)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(t(e,"padding-top",!0)||0)-(t(e,"padding-bottom",!0)||0));var a=tf.getComputedStyle(e,void 0);return a&&(r=a.getPropertyValue(i),tC(o,"opacity"!==i)&&(r=tv(r))),r},insertItem:function(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]||tM(o)&&o<tC(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i},isArray:ty,isClass:tk,isDOMElement:tb,isFunction:function(t){return"function"==typeof t},isNumber:tM,isObject:tx,isString:tm,merge:function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o,r=tc([t],e,!0),n={},s=function(t,e){return"object"!=typeof t&&(t={}),tB(e,function(i,o){"__proto__"!==o&&"constructor"!==o&&(!tx(i,!0)||tk(i)||tb(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},normalizeTickInterval:function(t,e,i,o,r){var n,s=t;i=tC(i,tP(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 tE(s*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:tB,offset:function(t){var e=tu.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(tf.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(tf.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:tC,pInt:tv,pushUnique:function(t,e){return 0>t.indexOf(e)&&!!t.push(e)},relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:tD,replaceNested:function(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},splat:tA,stableSort:function(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},syncTimeout:function(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(t){return tm(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)},uniqueKey:tz,useSerialIds:function(t){return I=tC(t,I)},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)))}}},tN=td.pageLang,tW=td.win,tG=tR.defined,tX=tR.error,tH=tR.extend,tY=tR.isNumber,tF=tR.isObject,t_=tR.isString,tj=tR.merge,tU=tR.objectEach,tV=tR.pad,tZ=tR.splat,tq=tR.timeUnits,tK=tR.ucfirst,t$=td.isSafari&&tW.Intl&&!tW.Intl.DateTimeFormat.prototype.formatRange,tJ=function(t){return["D","L","M","X","J","V","S"].indexOf(t)},tQ=function(){function t(t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=tW.Date,this.update(t)}return t.prototype.update=function(t){var e=this;void 0===t&&(t={}),this.dTLCache={},this.options=t=tj(!0,this.options,t);var i=t.timezoneOffset,o=t.useUTC;this.Date=t.Date||tW.Date||Date;var r=t.timezone;tG(o)&&(r=o?"UTC":void 0),i&&i%60==0&&(r="Etc/GMT"+(i>0?"+":"")+i/60),this.variableTimezone="UTC"!==r&&(null==r?void 0:r.indexOf("Etc/GMT"))!==0,this.timezone=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,tJ(i)].map(Number)},t.prototype.dateTimeFormat=function(t,e,i){void 0===i&&(i=this.options.locale||tN);var o,r=JSON.stringify(t)+i;t_(t)&&(t=this.str2dtf(t));var n=this.dTLCache[r];if(!n){null!==(o=t.timeZone)&&void 0!==o||(t.timeZone=this.timezone);try{n=new Intl.DateTimeFormat(i,t)}catch(e){/Invalid time zone/i.test(e.message)?(tX(34),t.timeZone="UTC",n=new Intl.DateTimeFormat(i,t)):tX(e.message,!1)}}return this.dTLCache[r]=n,(null==n?void 0:n.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)&&tH(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)||t$||(a-=36e5)}}return a},t.prototype.parse=function(t){if(!t_(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(tY(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=-(36e5*(i+(void 0===o?0:o)/60));if(tY(r))return r}return 0},t.prototype.dateFormat=function(t,e,i){var o,r=null===(o=td.defaultOptions)||void 0===o?void 0:o.lang;if(!tG(e)||isNaN(e))return(null==r?void 0:r.invalidDate)||"";if(t_(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));if(t_(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;tU(tH({a:y?y[v]:m[v].substr(0,3),A:m[v],d:tV(c),e:tV(c,2," "),w:v,b:b[d],B:x[d],m:tV(d+1),o:d+1,y:l.toString().substr(2,2),Y:l,H:tV(p),k:p,I:tV(p%12||12),l:p%12||12,M:tV(u),p:p<12?"AM":"PM",P:p<12?"am":"pm",S:tV(f),L:tV(g,3)},td.dateFormats),function(i,o){if(t_(t))for(;-1!==t.indexOf("%"+o);)t=t.replace("%"+o,"function"==typeof i?i.call(a,e):i)})}else if(tF(t)){var k=(this.getTimezoneOffset(e)||0)/36e5,M=this.timezone||"Etc/GMT"+(k>=0?"+":"")+k,w=t.prefix,S=t.suffix;t=(void 0===w?"":w)+this.dateTimeFormat(tH({timeZone:M},t),e)+(void 0===S?"":S)}return i?tK(t):t},t.prototype.resolveDTLFormat=function(t){return tF(t,!0)?tF(t,!0)&&void 0===t.main?{main:t}:t:{main:(t=tZ(t))[0],from:t[1],to:t[2]}},t.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),tG(e)){if(y=d>=tq.second?0:l*Math.floor(y/l),d>=tq.second&&(m=d>=tq.minute?0:l*Math.floor(m/l)),d>=tq.minute&&(v=d>=tq.hour?0:l*Math.floor(v/l)),d>=tq.hour&&(g=d>=tq.day?0:l*Math.floor(g/l)),d>=tq.day&&(f=d>=tq.month?1:Math.max(1,l*Math.floor(f/l))),d>=tq.month&&(u=d>=tq.year?0:l*Math.floor(u/l)),d>=tq.year&&(p-=p%l),d===tq.week){l&&(e=n.makeTime(p,u,f,g,v,m,y));var x=tJ(this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"));f+=-x+o+(x<o?-7:0)}e=n.makeTime(p,u,f,g,v,m,y),n.variableTimezone&&tG(i)&&(r=i-e>4*tq.month||n.getTimezoneOffset(e)!==n.getTimezoneOffset(i));for(var b=e,k=1;b<i;)s.push(b),d===tq.year?b=n.makeTime(p+k*l,0):d===tq.month?b=n.makeTime(p,u+k*l):r&&(d===tq.day||d===tq.week)?b=n.makeTime(p,u,f+k*l*(d===tq.day?1:7)):r&&d===tq.hour&&l>1?b=n.makeTime(p,u,f,g+k*l):b+=d*l,k++;s.push(b),d<=tq.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=tH(t,{higherRanks:a,totalRange:d*l}),s},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 tq){if(t===tq.week&&+this.dateFormat("%w",e)===i&&r.substr(6)===n.substr(6)){a="week";break}if(tq[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}(),t0=td.isTouchDevice,t1=tR.fireEvent,t2=tR.merge,t3={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{locale:void 0,loading:"Loading...",months:void 0,shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",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:{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:"Week from %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:t0?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,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},t5=new tQ(t3.time),t6=function(){return t3},t9=function(t){return t1(td,"setOptions",{options:t}),t2(!0,t3,t),t.time&&t5.update(t3.time),t.lang&&"locale"in t.lang&&t5.update({locale:t.lang.locale}),t3},t4=tR.isNumber,t8=tR.merge,t7=tR.pInt,et=tR.defined,ee=function(){function t(e){this.rgba=[NaN,NaN,NaN,NaN],this.input=e;var i,o,r,n,s=td.Color;if(s&&s!==t)return new s(e);if("object"==typeof e&&void 0!==e.stops)this.stops=e.stops.map(function(e){return new t(e[1])});else if("string"==typeof e)for(this.input=e=t.names[e.toLowerCase()]||e,r=t.parsers.length;r--&&!o;)(i=(n=t.parsers[r]).regex.exec(e))&&(o=n.parse(i));o&&(this.rgba=o)}return t.parse=function(e){return e?new t(e):t.None},t.prototype.get=function(t){var e=this.input,i=this.rgba;if("object"==typeof e&&void 0!==this.stops){var o=t8(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&&t4(i[0])?"rgb"!==t&&(t||1!==i[3])?"a"===t?"".concat(i[3]):"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e},t.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(t4(t)&&0!==t)for(var i=0;i<3;i++)e[i]+=t7(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);return this},t.prototype.setOpacity=function(t){return this.rgba[3]=t,this},t.prototype.tweenTo=function(t,e){var i=this.rgba,o=t.rgba;if(!t4(i[0])||!t4(o[0]))return t.input||"none";var r=1!==o[3]||1!==i[3],n=function(t,o){return t+(i[o]-t)*(1-e)},s=o.slice(0,3).map(n).map(Math.round);return r&&s.push(n(o[3],3)),(r?"rgba(":"rgb(")+s.join(",")+")"},t.names={white:"#ffffff",black:"#000000"},t.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[t7(t[1]),t7(t[2]),t7(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[t7(t[1]),t7(t[2]),t7(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[t7(t[1]+t[1],16),t7(t[2]+t[2],16),t7(t[3]+t[3],16),et(t[4])?t7(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[t7(t[1],16),t7(t[2],16),t7(t[3],16),et(t[4])?t7(t[4],16)/255:1]}}],t.None=new t(""),t}(),ei=ee.parse,eo=td.win,er=tR.isNumber,en=tR.objectEach,es=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=t&&t[0],i=t&&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];er(d)&&er(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=eo.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,en(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=e&&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}if(a[0]===h[h.length-a.length+n]){o=n,s=!0;break}if(a[a.length-1]===h[h.length-a.length+n]){o=a.length-n;break}}void 0===o&&(u=[])}return u.length&&er(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,ei(this.start).tweenTo(ei(this.end),this.pos),void 0,!0)},t.timers=[],t}(),ea=tR.defined,eh=tR.getStyle,el=tR.isArray,ed=tR.isNumber,ec=tR.isObject,ep=tR.merge,eu=tR.objectEach,ef=tR.pick;function eg(t){return ec(t)?ep({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function ev(t,e){for(var i=es.timers.length;i--;)es.timers[i].elem!==t||e&&e!==es.timers[i].prop||(es.timers[i].stopped=!0)}var em=function(t,e,i){var o,r,n,s,a="";ec(i)||(s=arguments,i={duration:s[2],easing:s[3],complete:s[4]}),ed(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=ep(e),eu(e,function(s,h){ev(t,h),n=new es(t,i,h),r=void 0,"d"===h&&el(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(eh(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)})},ey=function(t,e,i){var o=eg(e),r=i?[i]:t.series,n=0,s=0;return r.forEach(function(t){var i=eg(t.options.animation);n=ec(e)&&ea(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)}},ex=function(t,e){e.renderer.globalAnimation=ef(t,e.options.chart.animation,!0)},eb=td.SVG_NS,ek=td.win,eM=tR.attr,ew=tR.createElement,eS=tR.css,eA=tR.error,eT=tR.isFunction,eC=tR.isString,eO=tR.objectEach,eP=tR.splat,eE=ek.trustedTypes,eL=eE&&eT(eE.createPolicy)&&eE.createPolicy("highcharts",{createHTML:function(t){return t}}),eB=eL?eL.createHTML(""):"",eD=function(){function t(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return t.filterUserAttributes=function(e){return eO(e,function(i,o){var r=!0;-1===t.allowedAttributes.indexOf(o)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(r=eC(i)&&t.allowedReferences.some(function(t){return 0===i.indexOf(t)})),r||(eA(33,!1,void 0,{"Invalid attribute in config":"".concat(o)}),delete e[o]),eC(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 eP(i).forEach(function(i){var n,s=i.tagName,a=i.textContent?td.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?eb:o.namespaceURI||eb,d=td.doc.createElementNS(l,s),c=i.attributes||{};eO(i,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(c[e]=t)}),eM(d,h?c:t.filterUserAttributes(c)),i.style&&eS(d,i.style),a&&d.appendChild(a),e(i.children||[],d),n=d}else eA(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(eL?eL.createHTML(e):e,"text/html")}catch(t){}if(!i){var r=ew("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","dx","dy","disabled","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","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],t.allowedReferences=["https://","http://","mailto:","/","../","./","#"],t.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],t.emptyHTML=eB,t.bypassHTMLFiltering=!1,t}(),eI=td.pageLang,ez=tR.extend,eR=tR.getNestedProperty,eN=tR.isArray,eW=tR.isNumber,eG=tR.isObject,eX=tR.isString,eH=tR.pick,eY={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!!eN(t)&&t.map(function(i,o){return ej(e.body,ez(eG(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:tR.ucfirst,unless:function(t){return!t}},eF={},e_=function(t){return/^["'].+["']$/.test(t)};function ej(t,e,i){void 0===t&&(t="");for(var o,r,n,s=/\{([\p{L}\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/gu,a=/\(([\p{L}\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/gu,h=[],l=/f$/,d=/\.(\d)/,c=(null==i?void 0:i.options.lang)||t3.lang,p=i&&i.time||t5,u=i&&i.numberFormatter||eU,f=function(t){var i;return void 0===t&&(t=""),"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:e_(t)?t.slice(1,-1):eR(t,e))},g=0;null!==(o=s.exec(t));){var v=o,m=a.exec(o[1]);m&&(o=m,n=!0),r&&r.isBlock||(r={ctx:e,expression:o[1],find:o[0],isBlock:"#"===o[1].charAt(0),start:o.index,startInner:o.index+o[0].length,length:o[0].length});var y=(r.isBlock?v:o)[1].split(" ")[0].replace("#","");eY[y]&&(r.isBlock&&y===r.fn&&g++,r.fn||(r.fn=y));var x="else"===o[1];if(r.isBlock&&r.fn&&(o[1]==="/".concat(r.fn)||x)){if(g)!x&&g--;else{var b=r.startInner,k=t.substr(b,o.index-b);void 0===r.body?(r.body=k,r.startInner=o.index+o[0].length):r.elseBody=k,r.find+=k+o[0],x||(h.push(r),r=void 0)}}else r.isBlock||h.push(r);if(m&&!(null==r?void 0:r.isBlock))break}return h.forEach(function(o){var r,n,s=o.body,h=o.elseBody,g=o.expression,v=o.fn;if(v){var m=[o],y=[],x=g.length,b=0,k=void 0;for(n=0;n<=x;n++){var M=g.charAt(n);k||'"'!==M&&"'"!==M?k===M&&(k=""):k=M,k||" "!==M&&n!==x||(y.push(g.substr(b,n-b)),b=n+1)}for(n=eY[v].length;n--;)m.unshift(f(y[n+1]));r=eY[v].apply(e,m),o.isBlock&&"boolean"==typeof r&&(r=ej(r?s:h,e,i))}else{var w=e_(g)?[g]:g.split(":");if(r=f(w.shift()||""),w.length&&"number"==typeof r){var S=w.join(":");if(l.test(S)){var A=parseInt((S.match(d)||["","-1"])[1],10);null!==r&&(r=u(r,A,c.decimalPoint,S.indexOf(",")>-1?c.thousandsSep:""))}else r=p.dateFormat(S,r)}a.lastIndex=0,a.test(o.find)&&eX(r)&&(r='"'.concat(r,'"'))}t=t.replace(o.find,eH(r,""))}),n?ej(t,e,i):t}function eU(t,e,i,o){e=+e;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?void 0:r.lang)||t3.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):eW(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),eW(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||eI,m=JSON.stringify(f)+v;return s=(null!==(n=eF[m])&&void 0!==n?n:eF[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 eV={dateFormat:function(t,e,i){return t5.dateFormat(t,e,i)},format:ej,helpers:eY,numberFormat:eU};(n=z||(z={})).rendererTypes={},n.getRendererType=function(t){return void 0===t&&(t=s),n.rendererTypes[t]||n.rendererTypes[s]},n.registerRendererType=function(t,e,i){n.rendererTypes[t]=e,(!s||i)&&(s=t,td.Renderer=e)};var eZ=z,eq=tR.clamp,eK=tR.pick,e$=tR.pushUnique,eJ=tR.stableSort;(R||(R={})).distribute=function t(e,i,o){var r,n,s,a,h,l,d=e,c=d.reducedLen||i,p=function(t,e){return t.target-e.target},u=[],f=e.length,g=[],v=u.push,m=!0,y=0;for(r=f;r--;)y+=e[r].size;if(y>c){for(eJ(e,function(t,e){return(e.rank||0)-(t.rank||0)}),s=(l=e[0].rank===e[e.length-1].rank)?f/2:-1,n=l?s:f-1;s&&y>c;)a=e[r=Math.floor(n)],e$(g,r)&&(y-=a.size),n+=s,l&&n>=e.length&&(s/=2,n=s);g.sort(function(t,e){return e-t}).forEach(function(t){return v.apply(u,e.splice(t,1))})}for(eJ(e,p),e=e.map(function(t){return{size:t.size,targets:[t.target],align:eK(t.align,.5)}});m;){for(r=e.length;r--;)a=e[r],h=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=eq(h-a.size*a.align,0,i-a.size);for(r=e.length,m=!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),m=!0)}return v.apply(d,u),r=0,e.some(function(e){var n=0;return(e.targets||[]).some(function(){return(d[r].pos=e.pos+n,void 0!==o&&Math.abs(d[r].pos-d[r].target)>o)?(d.slice(0,r+1).forEach(function(t){return delete t.pos}),d.reducedLen=(d.reducedLen||i)-.1*i,d.reducedLen>.1*i&&t(d,i,o),!0):(n+=d[r].size,r++,!1)})}),eJ(d,p),d};var eQ=R,e0=td.deg2rad,e1=td.doc,e2=td.svg,e3=td.SVG_NS,e5=td.win,e6=td.isFirefox,e9=tR.addEvent,e4=tR.attr,e8=tR.createElement,e7=tR.crisp,it=tR.css,ie=tR.defined,ii=tR.erase,io=tR.extend,ir=tR.fireEvent,is=tR.getAlignFactor,ia=tR.isArray,ih=tR.isFunction,il=tR.isNumber,id=tR.isObject,ic=tR.isString,ip=tR.merge,iu=tR.objectEach,ig=tR.pick,iv=tR.pInt,im=tR.pushUnique,iy=tR.replaceNested,ix=tR.syncTimeout,ib=tR.uniqueKey,ik=function(){function t(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=e3,this.element="span"===e||"body"===e?e8(e):e1.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},ir(this,"afterInit")}return t.prototype._defaultGetter=function(t){var e=ig(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||ic(i)?i||"renderer":void 0;a&&(s&&im(n,this),i=void 0);var h=ig(i,r[a],r),l=(h.x||0)+(t.x||0)+((h.width||0)-(t.width||0))*is(t.align),d=(h.y||0)+(t.y||0)+((h.height||0)-(t.height||0))*is(t.verticalAlign),c={"text-align":null==t?void 0:t.align};return 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=eg(ig(e,this.renderer.globalAnimation,!0)),n=r.defer;return e1.hidden&&(r.duration=0),0!==r.duration?(i&&(r.complete=i),ix(function(){o.element&&em(o,t,r)},n)):(this.attr(t,void 0,i||r.complete),iu(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.split(" "),o=i[i.length-1],r=i[0];if(r&&"none"!==r&&td.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();var n=e1.createElementNS(e3,"tspan");e4(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=e1.createElementNS(e3,"tspan");h.textContent="​",e4(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):(iu(e,function(t,i){a=!1,r||ev(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=ib()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);io(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=e7(i,e),a=e7(o,e);return io(t,{x:s,y:a,width:e7(r,e)-s,height:e7(n,e)-a}),ie(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=[];ir(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,ia(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&c&&!ie(n.gradientUnits)&&(s=n,n=ip(n,f.getRadialAttr(c,s),{gradientUnits:"userSpaceOnUse"})),iu(n,function(t,e){"id"!==e&&g.push(e,t)}),iu(h,function(t){g.push(t)}),a[g=g.join(",")])p=a[g].attr("id");else{n.id=p=ib();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=ee.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&&iu(t,function(t,e){i&&i[e]!==t&&(o[e]=t,n=!0)}),n){i&&(t=io(i,o)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===r.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=iv(t.width)),io(this.styles,t),e&&!e2&&this.renderer.forExport&&delete t.width;var s=e6&&t.fontSize||null;s&&(il(s)||/^\d+$/.test(s))&&(t.fontSize+="px");var a=ip(t);r.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(function(t){return a&&delete a[t]}),a.color&&(a.fill=a.color)),it(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=t&&t.toLowerCase()){var o=t.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]=""+iv(o[e])*ig(i,NaN);t=o.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t,e,i,o=this,r=o.element||{},n=o.renderer,s=r.ownerSVGElement,a="SPAN"===r.nodeName&&o.parentGroup||void 0;if(r.onclick=r.onmouseout=r.onmouseover=r.onmousemove=r.point=null,ev(o),o.clipPath&&s){var h=o.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(h.element.id)>-1&&t.removeAttribute("clip-path")}),o.clipPath=h.destroy()}if(o.connector=null===(t=o.connector)||void 0===t?void 0:t.destroy(),o.stops){for(i=0;i<o.stops.length;i++)o.stops[i].destroy();o.stops.length=0,o.stops=void 0}for(o.safeRemoveChild(r);a&&a.div&&0===a.div.childNodes.length;)e=a.parentGroup,o.safeRemoveChild(a.div),delete a.div,a=e;o.alignOptions&&ii(n.alignedObjects,o),iu(o,function(t,e){o[e]&&o[e].parentGroup===o&&o[e].destroy&&o[e].destroy(),delete o[e]})},t.prototype.dSetter=function(t,e,i){ia(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,i){return e&&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,a=this.alignValue,h=this.element,l=this.renderer,d=this.styles,c=this.textStr,p=l.cache,u=l.cacheKeys,f=h.namespaceURI===this.SVG_NS,g=ig(i,this.rotation,0),v=l.styledMode?h&&t.prototype.getStyle.call(h,"font-size"):d.fontSize;if(ie(c)&&(-1===(s=c.toString()).indexOf("<")&&(s=s.replace(/\d/g,"0")),s+=["",l.rootFontSize,v,g,this.textWidth,a,d.lineClamp,d.textOverflow,d.fontWeight].join(",")),s&&!e&&(o=p[s]),!o||o.polygon){if(f||l.forExport){try{n=this.fakeTS&&function(t){var e=h.querySelector(".highcharts-text-outline");e&&it(e,{display:t})},ih(n)&&n("none"),o=h.getBBox?io({},h.getBBox()):{width:h.offsetWidth,height:h.offsetHeight,x:0,y:0},ih(n)&&n("")}catch(t){}(!o||o.width<0)&&(o={x:0,y:0,width:0,height:0})}else o=this.htmlGetBBox();r=o.height,f&&(o.height=r=({"11px,17":14,"13px,20":16})[""+(v||"")+",".concat(Math.round(r))]||r),g&&(o=this.getRotatedBox(o,g));var m={bBox:o};ir(this,"afterGetBBox",m),o=m.bBox}if(s&&(""===c||o.height>0)){for(;u.length>250;)delete p[u.shift()];p[s]||u.push(s),p[s]=o}return o},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=is(s),c=Number(this.element.getAttribute("y")||0)-(a?0:o),p=e*e0,u=(e-90)*e0,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],M=k[0],w=k[1],S=b[1],A=S[0],T=i+d*(r-v)+M+S[1]+c*y,C=T+v,O=C-n*y,P=O-v,E=o+c-d*m-w+A+c*x,L=E+m,B=L-n*x,D=B-m,I=Math.min(T,C,O,P),z=Math.min(E,L,B,D),R=Math.max(T,C,O,P)-I,N=Math.max(E,L,B,D)-z;return{x:I,y:z,width:R,height:N,polygon:[[T,E],[C,L],[O,B],[P,D]]}},t.prototype.getStyle=function(t){return e5.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]=e9(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?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(ic(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];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.shadow=function(t){var e,i=this.renderer,o=ip((null===(e=this.parentGroup)||void 0===e?void 0:e.rotation)===90?{offsetX:-1,offsetY:-1}:{},id(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=iv(e):""!==e&&(e4(t=e1.createElementNS(e3,"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]=ig(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]||e1.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=iy(ig(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=this.element,o=this.matrix,r=this.rotation,n=void 0===r?0:r,s=this.rotationOriginX,a=this.rotationOriginY,h=this.scaleX,l=this.scaleY,d=this.translateX,c=this.translateY,p=["translate("+(void 0===d?0:d)+","+(void 0===c?0:c)+")"];ie(o)&&p.push("matrix("+o.join(",")+")"),n&&(p.push("rotate("+n+" "+ig(s,i.getAttribute("x"),0)+" "+ig(a,i.getAttribute("y")||0)+")"),(null===(e=this.text)||void 0===e?void 0:e.element.tagName)==="SPAN"&&this.text.attr({rotation:n,rotationOriginX:(s||0)-this.padding,rotationOriginY:(a||0)-this.padding})),(ie(h)||ie(l))&&p.push("scale("+ig(h,1)+" "+ig(l,1)+")"),p.length&&!(this.text||this).textPath&&i.setAttribute(t,p.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(ie(t)?(d.setAttribute("data-z-index",t),t=+t,this[e]===t&&(u=!1)):ie(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=!ie(r=(o=i[s]).getAttribute("data-z-index")),o!==d&&(t<0&&n&&!c&&!s?(l.insertBefore(d,i[s]),p=!0):(iv(r)<=t||n&&(!ie(t)||t>=0))&&(l.insertBefore(d,i[s+1]),p=!0));p||(l.insertBefore(d,i[c?3:0]),p=!0)}return p},t.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],t}();ik.prototype.strokeSetter=ik.prototype.fillSetter,ik.prototype.yGetter=ik.prototype.xGetter,ik.prototype.matrixSetter=ik.prototype.rotationOriginXSetter=ik.prototype.rotationOriginYSetter=ik.prototype.rotationSetter=ik.prototype.scaleXSetter=ik.prototype.scaleYSetter=ik.prototype.translateXSetter=ik.prototype.translateYSetter=ik.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};var iM=(a=function(t,e){return(a=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}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),iw=tR.defined,iS=tR.extend,iA=tR.getAlignFactor,iT=tR.isNumber,iC=tR.merge,iO=tR.pick,iP=tR.removeEvent,iE=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 iM(e,t),e.prototype.alignSetter=function(t){var e=iA(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&iT(this.xSetting)&&this.attr({x:this.xSetting}))},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=iC(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?this.updateTextPadding():("width"in i||"textOverflow"in i)&&this.updateBoxSize()}return ik.prototype.css.call(this,t)},e.prototype.destroy=function(){iP(this.element,"mouseenter"),iP(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),ik.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.updateBoxSize();var i=this.padding,o=this.height,r=this.translateX,n=this.translateY,s=this.width,a=iO(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:iO(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&iw(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},e.prototype.paddingSetter=function(t,e){iT(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=(!iT(this.widthSetting)||!iT(this.heightSetting)||this.textAlign)&&iw(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)}t=this.getCrispAdjust(),o.x=t,o.y=(this.baseline?-this.baselineOffset:0)+t,o.width=Math.round(this.width),o.height=Math.round(this.height),this.box.attr(iS(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)&&void 0!==t?t:this.padding)+iA(o)*(null!==(e=this.widthSetting)&&void 0!==e?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=iT(t)?t:void 0,this.doUpdate=!0},e.prototype.getPaddedWidth=function(){var t=this.padding,e=iO(this.paddingLeft,t),i=iO(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.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},e.prototype.ySetter=function(t){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}(ik),iL=tR.defined,iB=tR.isNumber,iD=tR.pick;function iI(t,e,i,o,r){var n=[];if(r){var s=r.start||0,a=iD(r.r,i),h=iD(r.r,o||i),l=2e-4/(r.borderRadius?1:Math.max(a,1)),d=Math.abs((r.end||0)-s-2*Math.PI)<l,c=(r.end||0)-(d?l:0),p=r.innerR,u=iD(r.open,d),f=Math.cos(s),g=Math.sin(s),v=Math.cos(c),m=Math.sin(c),y=iD(r.longArc,c-s-Math.PI<l?0:1),x=["A",a,h,0,y,iD(r.clockwise,1),t+a*v,e+h*m];x.params={start:s,end:c,cx:t,cy:e},n.push(["M",t+a*f,e+h*g],x),iL(p)&&((x=["A",p,p,0,y,iL(r.clockwise)?1-r.clockwise:0,t+p*f,e+p*g]).params={start:c,end:s,cx:t,cy:e},n.push(u?["M",t+p*v,e+p*m]:["L",t+p*v,e+p*m],x)),u||n.push(["Z"])}return n}function iz(t,e,i,o,r){return r&&r.r?iR(t,e,i,o,r):[["M",t,e],["L",t+i,e],["L",t+i,e+o],["L",t,e+o],["Z"]]}function iR(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 iN={arc:iI,callout:function(t,e,i,o,r){var n=Math.min(r&&r.r||0,i,o),s=n+6,a=r&&r.anchorX,h=r&&r.anchorY||0,l=iR(t,e,i,o,{r:n});if(!iB(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 iI(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:iz,roundedRect:iR,square:iz,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"]]}},iW=td.doc,iG=td.SVG_NS,iX=td.win,iH=tR.attr,iY=tR.extend,iF=tR.fireEvent,i_=tR.isString,ij=tR.objectEach,iU=tR.pick,iV=function(t,e){return t.substring(0,e)+"…"},iZ=function(){function t(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!!(e&&"ellipsis"===e.textOverflow),this.lineClamp=null==e?void 0:e.lineClamp,this.noWrap=!!(e&&"nowrap"===e.whiteSpace)}return t.prototype.buildSVG=function(){var t=this.svgElement,e=t.element,i=t.renderer,o=iU(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 eD(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(iW.createTextNode(this.unescapeEntities(o)));i_(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},t.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,o=iH(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)),iH(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,iV),t.textContent=(null===(s=t.textContent)||void 0===s?void 0:s.replace("…",""))+"…");break}g.forEach(function(e){n.insertBefore(e,t)}),f.forEach(function(e){n.insertBefore(iW.createTextNode(e),t);var i=iW.createElementNS(iG,"tspan");i.textContent="​",iH(i,{dy:d,x:o}),n.insertBefore(i,t)})}else e.ellipsis&&a&&e.truncate(t,a,void 0,0,r,c,iV)},s=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===iX.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===iX.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"),l&&l.color&&(l.fill=l.color),"br"===d){s.class="highcharts-br",o.textContent="​";var p=t[r+1];p&&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"),iY(o,{attributes:s,style:l}),a&&a.filter(function(t){return"#text"!==t.tagName}).forEach(i)};t.forEach(i),iF(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,iV)}i&&i.splice(0,f),l.actualWidth=h,l.rotation=d},t.prototype.unescapeEntities=function(t,e){return ij(this.renderer.escapes,function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),o))}),t},t}(),iq=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))},iK=td.charts,i$=td.deg2rad,iJ=td.doc,iQ=td.isFirefox,i0=td.isMS,i1=td.isWebKit,i2=td.noop,i3=td.SVG_NS,i5=td.symbolSizes,i6=td.win,i9=tR.addEvent,i4=tR.attr,i8=tR.createElement,i7=tR.crisp,ot=tR.css,oe=tR.defined,oi=tR.destroyObjectProperties,oo=tR.extend,or=tR.isArray,on=tR.isNumber,os=tR.isObject,oa=tR.isString,oh=tR.merge,ol=tR.pick,od=tR.pInt,oc=tR.replaceNested,op=tR.uniqueKey,ou=function(){function t(t,e,i,o,r,n,s){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),i4(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&i4(d,"xmlns",this.SVG_NS),this.box=d,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(iJ.createTextNode("Created with Highcharts 12.1.2")),this.defs=this.createElement("defs").add(),this.allowHTML=n,this.forExport=r,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=l.getStyle("font-size"),this.setSize(e,i,!1),iQ&&t.getBoundingClientRect&&((a=function(){ot(t,{left:0,top:0}),h=t.getBoundingClientRect(),ot(t,{left:Math.ceil(h.left)-h.left+"px",top:Math.ceil(h.top)-h.top+"px"})})(),this.unSubPixelFix=i9(i6,"resize",a))}return t.prototype.definition=function(t){return new eD([t]).addToDOM(this.defs.element)},t.prototype.getReferenceURL=function(){if((iQ||i1)&&iJ.getElementsByTagName("base").length){if(!oe(N)){var t=op(),e=new eD([{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(iJ.body);ot(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=iJ.elementFromPoint(6,6);N="hitme"===(i&&i.id),iJ.body.removeChild(e)}if(N)return oc(i6.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""},t.prototype.getStyle=function(t){return this.style=oo({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(),oi(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=iq(["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=oh({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 iZ(t).buildSVG()},t.prototype.getContrast=function(t){var e=ee.parse(t).rgba.map(function(t){var e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),i=.2126*e[0]+.7152*e[1]+.0722*e[2];return 1.05/(i+.05)>(i+.05)/.05?"#FFFFFF":"#000000"},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=oh(t3.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=[eD.filterUserAttributes(r)],m=[g];return c||["hover","select","disabled"].forEach(function(t,e){v.push(oh(v[0],eD.filterUserAttributes(p[e+5]||f[t]||{}))),m.push(v[e+1].style),delete v[e+1].style}),i9(d.element,i0?"mouseover":"mouseenter",function(){3!==u&&d.setState(1)}),i9(d.element,i0?"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];os(e)&&d.css(e)}},d.attr(v[0]),!c&&(d.css(oo({cursor:"default"},g)),l&&d.text.css({pointerEvents:"none"})),d.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==u&&o.call(d,t)})},t.prototype.crispLine=function(t,e){var i=t[0],o=t[1];return oe(i[1])&&i[1]===o[1]&&(i[1]=o[1]=i7(i[1],e)),oe(i[2])&&i[2]===o[2]&&(i[2]=o[2]=i7(i[2],e)),t},t.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return or(t)?e.d=t:os(t)&&oo(e,t),this.createElement("path").attr(e)},t.prototype.circle=function(t,e,i){var o=os(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){os(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=os(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,oo(s,a.crisp(s))),s.fill="none"),a.rSetter=function(t,e,i){a.r=t,i4(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:ol(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"};on(e)&&(s.x=e),on(i)&&(s.y=i),on(o)&&(s.width=o),on(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 i6.Image;i9(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=this,c=/^url\((.*?)\)$/,p=c.test(t),u=!p&&(this.symbols[t]?t:"circle"),f=u&&this.symbols[u];if(f)"number"==typeof e&&(a=f.call(this.symbols,e||0,i||0,o||0,r||0,n)),s=this.path(a),d.styledMode||s.attr("fill","none"),oo(s,{symbolName:u||void 0,x:e,y:i,width:o,height:r}),n&&oo(s,n);else if(p){h=t.match(c)[1];var g=s=this.image(h);g.imgwidth=ol(n&&n.width,i5[h]&&i5[h].width),g.imgheight=ol(n&&n.height,i5[h]&&i5[h].height),l=function(t){return t.attr({width:t.width,height:t.height})},["width","height"].forEach(function(t){g[""+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),i4(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)}}),oe(e)&&g.attr({x:e,y:i}),g.isImg=!0,g.symbolUrl=t,oe(g.imgwidth)&&oe(g.imgheight)?l(g):(g.attr({width:0,height:0}),i8("img",{onload:function(){var t=iK[d.chartIndex];0===this.width&&(ot(this,{position:"absolute",top:"-999em"}),iJ.body.appendChild(this)),i5[h]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&l(g),this.parentNode&&this.parentNode.removeChild(this),d.imgCount--,d.imgCount||!t||t.hasLoaded||t.onload()},src:h}),this.imgCount++)}return s},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)),oe(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=od(ik.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*i$),4)),{x:-t/3*Math.sin(e*i$),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++)oa(i[0])&&on(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 iE(this,t,e,i,o,r,n,s,a,h)},t.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},t}();oo(ou.prototype,{Element:ik,SVG_NS:i3,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:iN,draw:i2}),eZ.registerRendererType("svg",ou,!0);var of=(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)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}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),og=function(){return(og=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)},ov=td.composed,om=tR.attr,oy=tR.css,ox=tR.createElement,ob=tR.defined,ok=tR.extend,oM=tR.getAlignFactor,ow=tR.isNumber,oS=tR.pInt,oA=tR.pushUnique;function oT(t,e,i){var o,r=(null===(o=this.div)||void 0===o?void 0:o.style)||i.style;ik.prototype[""+e+"Setter"].call(this,t,e,i),r&&(r[e]=t)}var oC=function(t,e){var i;if(!t.div){var o=om(t.element,"class"),r=t.css,n=ox("div",o?{className:o}:void 0,og(og({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?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.opacitySetter=t.visibilitySetter=oT,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 ik.prototype.on.apply({element:n,onEvents:t.onEvents},arguments),t},t.div=n}return t.div},oO=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o.css(og({position:"absolute"},e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize})),o}return of(e,t),e.compose=function(t){oA(ov,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=oS(r)||void 0,e=!0),(null==t?void 0:t.textOverflow)==="ellipsis"&&(t.overflow="hidden"),(null==t?void 0:t.lineClamp)&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),ow(Number(null==t?void 0:t.fontSize))&&(t.fontSize=t.fontSize+"px"),ok(this.styles,t),oy(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 t,e=this.element,i=this.renderer,o=this.rotation,r=this.rotationOriginX,n=this.rotationOriginY,s=this.scaleX,a=this.scaleY,h=this.styles,l=this.textAlign,d=void 0===l?"left":l,c=this.textWidth,p=this.translateX,u=this.translateY,f=this.x,g=void 0===f?0:f,v=this.y,m=void 0===v?0:v,y=h.display,x=h.whiteSpace;if(oy(e,{marginLeft:""+(void 0===p?0:p)+"px",marginTop:""+(void 0===u?0:u)+"px"}),"SPAN"===e.tagName){var b=[o,d,e.innerHTML,c,this.textAlign].join(","),k=-((null===(t=this.parentGroup)||void 0===t?void 0:t.padding)*1)||0,M=void 0;if(c!==this.oldTextWidth){var w=this.textPxLength?this.textPxLength:(oy(e,{width:"",whiteSpace:x||"nowrap"}),e.offsetWidth),S=c||0;(S>this.oldTextWidth||w>S)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(oy(e,{width:w>S||o||s?c+"px":"auto",display:void 0===y?"block":y,whiteSpace:x||"normal"}),this.oldTextWidth=c)}b!==this.cTT&&(M=i.fontMetrics(e).b,ob(o)&&(o!==(this.oldRotation||0)||d!==this.oldAlign)&&this.setSpanRotation(o,k,k),this.getSpanCorrection(!ob(o)&&!this.textWidth&&this.textPxLength||e.offsetWidth,M,oM(d)));var A=this.xCorr,T=void 0===A?0:A,C=this.yCorr,O=void 0===C?0:C,P=(null!=r?r:g)-T-g-k,E=(null!=n?n:m)-O-m-k,L={left:""+(g+T)+"px",top:""+(m+O)+"px",textAlign:d,transformOrigin:""+P+"px "+E+"px"};(s||a)&&(L.transform="scale(".concat(null!=s?s:1,",").concat(null!=a?a:1,")")),oy(e,L),this.cTT=b,this.oldRotation=o,this.oldAlign=d}},e.prototype.setSpanRotation=function(t,e,i){oy(this.element,{transform:"rotate(".concat(t,"deg)"),transformOrigin:""+e+"% "+i+"px"})},e.prototype.add=function(t){var e,i=this.renderer.box.parentNode,o=[];if(this.parentGroup=t,t&&!(e=t.div)){for(var r=t;r;)o.push(r),r=r.parentGroup;for(var n=0,s=o.reverse();n<s.length;n++)e=oC(s[n],i)}return(e||i).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this},e.prototype.textSetter=function(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,eD.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}(ik),oP=oO.prototype;oP.visibilitySetter=oP.opacitySetter=oT,oP.ySetter=oP.rotationSetter=oP.rotationOriginXSetter=oP.rotationOriginYSetter=oP.xSetter,(l=W||(W={})).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,tickPixelInterval:100,tickmarkPlacement:"between",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"},l.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};var oE=W,oL=tR.addEvent,oB=tR.isFunction,oD=tR.objectEach,oI=tR.removeEvent;(G||(G={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},oD(e.events,function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(oI(t,i,t.eventOptions[i]),delete t.eventOptions[i]),oB(e)&&(t.eventOptions[i]=e,oL(t,i,e,{order:0})))})};var oz=G,oR=td.deg2rad,oN=tR.clamp,oW=tR.correctFloat,oG=tR.defined,oX=tR.destroyObjectProperties,oH=tR.extend,oY=tR.fireEvent,oF=tR.getAlignFactor,o_=tR.isNumber,oj=tR.merge,oU=tR.objectEach,oV=tR.pick,oZ=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,oY(this,"init"),i||o||this.addLabel()}return t.prototype.addLabel=function(){var t,e,i,o=this,r=o.axis,n=r.options,s=r.chart,a=r.categories,h=r.logarithmic,l=r.names,d=o.pos,c=oV(o.options&&o.options.labels,n.labels),p=r.tickPositions,u=d===p[0],f=d===p[p.length-1],g=(!c.step||1===c.step)&&1===r.tickInterval,v=p.info,m=o.label,y=this.parameters.category||(a?oV(a[d],l[d],d):d);h&&o_(y)&&(y=oW(h.lin2log(y))),r.dateTime&&(v?t=(e=s.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid&&v.higherRanks[d]||v.unitName])).main:o_(y)&&(t=r.dateTime.getXDateFormat(y,n.dateTimeLabelFormats||{}))),o.isFirst=u,o.isLast=f;var x={axis:r,chart:s,dateTimeLabelFormat:t,isFirst:u,isLast:f,pos:d,tick:o,tickPositionInfo:v,value:y};oY(this,"labelFormat",x);var b=function(t){return c.formatter?c.formatter.call(t,t):c.format?(t.text=r.defaultLabelFormatter.call(t),eV.format(c.format,t,s)):r.defaultLabelFormatter.call(t)},k=b.call(x,x),M=e&&e.list;M?o.shortenLabel=function(){for(i=0;i<M.length;i++)if(oH(x,{dateTimeLabelFormat:M[i]}),m.attr({text:b.call(x,x)}),m.getBBox().width<r.getSlotWidth(o)-2*(c.padding||0))return;m.attr({text:""})}:o.shortenLabel=void 0,g&&r._addedPlotLB&&o.moveLabel(k,c),oG(m)||o.movedLabel?m&&m.textStr!==k&&!g&&(!m.textWidth||c.style.width||m.styles.width||m.css({width:null}),m.attr({text:k}),m.textPxLength=m.getBBox().width):(o.label=m=o.createLabel(k,c),o.rotation=0)},t.prototype.createLabel=function(t,e,i){var o=this.axis,r=o.chart,n=r.renderer,s=r.styledMode,a=oG(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;if(a){var h=e.style.whiteSpace||"normal";s||a.css(oj(e.style,{whiteSpace:"nowrap"})),a.textPxLength=a.getBBox().width,s||a.css({whiteSpace:h})}return a},t.prototype.destroy=function(){oX(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?oW(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):oW(s-r.translate(e+i,void 0,void 0,o)-r.transB)};return a.y=oN(a.y,-1e9,1e9),oY(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*oR)*(f.y-i.getBBox(!1,0).height/2),oG(r.y)&&(h=0===d.side&&d.horiz?r.y+h:r.y),t=t+oV(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),oY(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,r=this.axis,n=r.options.labels,s=t.x,a=r.chart.chartWidth,h=r.chart.spacing,l=oV(r.labelLeft,Math.min(r.pos,h[3])),d=oV(r.labelRight,Math.max(r.isRadial?0:r.pos+r.len,a-h[1])),c=this.label,p=this.rotation,u=oF(r.labelAlign||c.attr("align")),f=c.getBBox().width,g=r.getSlotWidth(this),v=g,m=1;p||"justify"!==n.overflow?p<0&&s-u*f<l?o=Math.round(s/Math.cos(p*oR)-l):p>0&&s+u*f>d&&(o=Math.round((a-s)/Math.cos(p*oR))):(e=s-u*f,i=s+(1-u)*f,e<l?v=t.x+v*(1-u)-l:i>d&&(v=d-t.x+v*u,m=-1),(v=Math.min(g,v))<g&&"center"===r.labelAlign&&(t.x+=m*(g-v-u*(g-Math.min(f,v)))),(f>v||r.autoRotation&&(c.styles||{}).width)&&(o=v)),o&&c&&(this.shortenLabel?this.shortenLabel():c.css(oH({},{width:Math.floor(o)+"px",lineClamp:r.isRadial?0:1})))},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):oU(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=this.axis,r=o.horiz,n=this.pos,s=oV(this.tickmarkOffset,o.tickmarkOffset),a=this.getPosition(r,n,s,e),h=a.x,l=a.y,d=o.pos,c=d+o.len,p=r?h:l;!o.chart.polar&&this.isNew&&(oW(p)<d||p>c)&&(i=0);var u=oV(i,this.label&&this.label.newOpacity,1);i=oV(i,1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(a,i),this.renderLabel(a,e,u,t),this.isNew=!1,oY(this,"afterRender")},t.prototype.renderGridLine=function(t,e){var i,o=this.axis,r=o.options,n={},s=this.pos,a=this.type,h=oV(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=oV(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=oV(this.tickmarkOffset,r.tickmarkOffset),c=t.x,p=t.y,u=!0;a&&o_(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||h.step||h.rotation||e||0===i||this.handleOverflow(t):u=!1,l&&o%l&&(u=!1),u&&o_(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}(),oq=oE.xAxis,oK=oE.yAxis,o$=oz.registerEventOptions,oJ=td.deg2rad,oQ=tR.arrayMax,o0=tR.arrayMin,o1=tR.clamp,o2=tR.correctFloat,o3=tR.defined,o5=tR.destroyObjectProperties,o6=tR.erase,o9=tR.error,o4=tR.extend,o8=tR.fireEvent,o7=tR.getClosestDistance,rt=tR.insertItem,re=tR.isArray,ri=tR.isNumber,ro=tR.isString,rr=tR.merge,rn=tR.normalizeTickInterval,rs=tR.objectEach,ra=tR.pick,rh=tR.relativeLength,rl=tR.removeEvent,rd=tR.splat,rc=tR.syncTimeout,rp=function(t,e){return rn(e,void 0,void 0,ra(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount)};o4(t3,{xAxis:oq,yAxis:rr(oq,oK)});var ru=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,n,s,a="xAxis"===i,h=this.isZAxis||(t.inverted?!a:a);this.chart=t,this.horiz=h,this.isXAxis=a,this.coll=i,o8(this,"init",{userOptions:e}),this.opposite=ra(e.opposite,this.opposite),this.side=ra(e.side,this.side,h?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var l=this.options,d=l.labels;null!==(o=this.type)&&void 0!==o||(this.type=l.type||"linear"),null!==(r=this.uniqueNames)&&void 0!==r||(this.uniqueNames=null===(n=l.uniqueNames)||void 0===n||n),o8(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=ra(l.reversed,this.reversed),this.visible=l.visible,this.zoomEnabled=l.zoomEnabled,this.hasNames="category"===this.type||!0===l.categories,this.categories=re(l.categories)&&l.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=o3(l.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},null!==(s=this.len)&&void 0!==s||(this.len=0),this.minRange=this.userMinRange=l.minRange||l.maxZoom,this.range=l.range,this.offset=l.offset||0,this.max=void 0,this.min=void 0;var c=ra(l.crosshair,rd(t.options.tooltip.crosshairs)[a?0:1]);this.crosshair=!0===c?{}:c,-1===t.axes.indexOf(this)&&(a?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),rt(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&a&&!o3(this.reversed)&&(this.reversed=!0),this.labelRotation=ri(d.rotation)?d.rotation:void 0,o$(this,l),o8(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=rr(e,t3[this.coll],t),o8(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(){var t,e,i=this.axis,o=this.chart.numberFormatter,r=ri(this.value)?this.value:NaN,n=i.chart.time,s=i.categories,a=this.dateTimeLabelFormat,h=t3.lang,l=h.numericSymbols,d=h.numericSymbolMagnitude||1e3,c=i.logarithmic?Math.abs(r):i.tickInterval,p=l&&l.length;if(s)e="".concat(this.value);else if(a)e=n.dateFormat(a,r,!0);else if(p&&l&&c>=1e3)for(;p--&&void 0===e;)c>=(t=Math.pow(d,p+1))&&10*r%t==0&&null!==l[p]&&0!==r&&(e=o(r/t,-1)+l[p]);return void 0===e&&(e=Math.abs(r)>=1e4?o(r,-1):o(r,-1,void 0,"")),e},t.prototype.getSeriesExtremes=function(){var t,e=this;o8(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,ri(s)||s instanceof Date||(r=r.filter(ri),s=(t=i.getXExtremes(r)).min,a=t.max),r.length&&(e.dataMin=Math.min(ra(e.dataMin,s),s),e.dataMax=Math.max(ra(e.dataMax,a),a)));else{var h=i.applyExtremes();ri(h.dataMin)&&(s=h.dataMin,e.dataMin=Math.min(ra(e.dataMin,s),s)),ri(h.dataMax)&&(a=h.dataMax,e.dataMax=Math.max(ra(e.dataMax,a),a)),o3(n)&&(e.threshold=n),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),o8(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(!ri(h))return NaN;var l=a.minPixelPadding,d=(a.isOrdinal||(null===(s=a.brokenAxis)||void 0===s?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+(ri(n)?u*n:0),a.isRadial||(f=o2(f))),f},t.prototype.toPixels=function(t,e){var i,o;return this.translate(null!==(o=null===(i=this.chart)||void 0===i?void 0:i.time.parse(t))&&void 0!==o?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=o1(t,e,i):n=!0),t}var x={value:c,lineWidth:p,old:d,force:m,acrossPanes:t.acrossPanes,translatedValue:v};return o8(this,"getPlotLinePath",x,function(t){e=o=(v=o1(v=ra(v,s.translate(c,void 0,void 0,d)),-1e9,1e9))+g,i=r=u-v-g,ri(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=o2(Math.floor(e/t)*t),a=o2(Math.ceil(i/t)*t),h=[];if(o2(s+t)===s&&(n=20),this.single)return[e];for(o=s;o<=a&&(h.push(o),(o=o2(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?ra(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?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=o3(a.min)||o3(a.max)||o3(a.floor)||o3(a.ceiling)?null:Math.min(5*(o7(this.series.map(function(t){var e=t.getColumn("x");return t.xIncrement?e.slice(0,2):e}))||0),this.dataMax-this.dataMin)),ri(d)&&ri(c)&&ri(p)&&d-c<p&&(r=this.dataMax-this.dataMin>=p,o=(p-d+c)/2,n=[c-o,null!==(t=l.parse(a.min))&&void 0!==t?t:c-o],r&&(n[2]=h?h.log2lin(this.dataMin):this.dataMin),s=[(c=oQ(n))+p,null!==(e=l.parse(a.max))&&void 0!==e?e:c+p],r&&(s[2]=h?h.log2lin(this.dataMax):this.dataMax),(d=o0(s))-c<p&&(n[0]=d-p,n[1]=null!==(i=l.parse(a.min))&&void 0!==i?i:d-p,c=oQ(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&&o3(o)&&t.reserveSpace()&&(e=o3(e)?Math.min(e,o):o)}),i.length&&(i.sort(function(t,e){return t-e}),t=o7([i]))}return t&&e?Math.min(t,e):t||e},t.prototype.nameToX=function(t){var e,i=re(this.options.categories),o=i?this.categories:this.names,r=t.options.x;return t.series.requireSorting=!1,o3(r)||(r=this.uniqueNames&&o?i?o.indexOf(t.name):ra(o.keys[t.name],-1):t.series.autoIncrement()),-1===r?!i&&o&&(e=o.length):ri(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=this,o=i.max-i.min,r=i.linkedParent,n=!!i.categories,s=i.isXAxis,a=i.axisPointRange||0,h=0,l=0,d=i.transA;(s||n||a)&&(t=i.getClosest(),r?(h=r.minPointOffset,l=r.pointRangePadding):i.series.forEach(function(e){var o=n?1:s?ra(e.options.pointRange,t,0):i.axisPointRange||0,r=e.options.pointPlacement;if(a=Math.max(a,o),!i.single||n){var d=e.is("xrange")?!s:s;h=Math.max(h,d&&ro(r)?0:o/2),l=Math.max(l,d&&"on"===r?0:o)}}),e=i.ordinal&&i.ordinal.slope&&t?i.ordinal.slope/t:1,i.minPointOffset=h*=e,i.pointRangePadding=l*=e,i.pointRange=Math.min(a,i.single&&n?1:o),s&&t&&(i.closestPointRange=t)),i.translationSlope=i.transA=d=i.staticScale||i.len/(o+l||1),i.transB=i.horiz?i.left:i.bottom,i.minPixelPadding=d*h,o8(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){var t=this.max,e=this.min;return ri(t)&&ri(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=ri(this.threshold)?this.threshold:void 0,k=this.minRange||0,M=m.ceiling,w=m.floor,S=m.linkedTo,A=m.softMax,T=m.softMin,C=ri(S)&&(null===(e=c[this.coll])||void 0===e?void 0:e[S]),O=m.tickPixelInterval,P=m.maxPadding,E=m.minPadding,L=0,B=ri(m.tickInterval)&&m.tickInterval>=0?m.tickInterval:void 0;if(f||d||C||this.getTickAmount(),h=ra(this.userMin,x.parse(m.min)),l=ra(this.userMax,x.parse(m.max)),C?(this.linkedParent=C,n=C.getExtremes(),this.min=ra(n.min,n.dataMin),this.max=ra(n.max,n.dataMax),this.type!==C.type&&o9(11,!0,c)):(y&&o3(b)&&ri(p)&&ri(u)&&(u>=b?(s=b,E=0):p<=b&&(a=b,P=0)),this.min=ra(h,s,u),this.max=ra(l,a,p)),ri(this.max)&&ri(this.min)&&(v&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,ra(u,this.min))&&o9(10,!0,c),this.min=o2(v.log2lin(this.min),16),this.max=o2(v.log2lin(this.max),16)),this.range&&ri(u)&&(this.userMin=this.min=h=Math.max(u,this.minFromRange()||0),this.userMax=l=this.max,this.range=void 0)),o8(this,"foundExtremes"),this.adjustForMinRange(),ri(this.min)&&ri(this.max)){if(!ri(this.userMin)&&ri(T)&&T<this.min&&(this.min=h=T),!ri(this.userMax)&&ri(A)&&A>this.max&&(this.max=l=A),d||this.axisPointRange||(null===(i=this.stacking)||void 0===i?void 0:i.usePercentage)||C||!(L=this.max-this.min)||(!o3(h)&&E&&(this.min-=L*E),o3(l)||!P||(this.max+=L*P)),!ri(this.userMin)&&ri(w)&&(this.min=Math.max(this.min,w)),!ri(this.userMax)&&ri(M)&&(this.max=Math.min(this.max,M)),y&&ri(u)&&ri(p)){var D=b||0;!o3(h)&&this.min<D&&u>=D?this.min=m.minRange?Math.min(D,this.max-k):D:!o3(l)&&this.max>D&&p<=D&&(this.max=m.minRange?Math.max(D,this.min+k):D)}!c.polar&&this.min>this.max&&(o3(m.min)?this.max=this.min:o3(m.max)&&(this.min=this.max)),L=this.max-this.min}if(this.min!==this.max&&ri(this.min)&&ri(this.max)?C&&!B&&O===C.options.tickPixelInterval?this.tickInterval=B=C.tickInterval:this.tickInterval=ra(B,this.tickAmount?L/Math.max(this.tickAmount-1,1):void 0,d?1:L*O/Math.max(this.len,O)):this.tickInterval=1,g&&!t){var I=this.min!==(null===(o=this.old)||void 0===o?void 0:o.min)||this.max!==(null===(r=this.old)||void 0===r?void 0:r.max);this.series.forEach(function(t){var e;t.forceCrop=null===(e=t.forceCropping)||void 0===e?void 0:e.call(t),t.processData(I)}),o8(this,"postProcessData",{hasExtremesChanged:I})}this.setAxisTranslation(),o8(this,"initialAxisTranslation"),this.pointRange&&!B&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));var z=ra(m.minTickInterval,f&&!this.series.some(function(t){return!t.sorted})?this.closestPointRange:0);!B&&this.tickInterval<z&&(this.tickInterval=z),f||v||B||(this.tickInterval=rp(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e,i,o=this.options,r=o.tickPositions,n=o.tickPositioner,s=this.getMinorTickInterval(),a=!this.isPanning,h=a&&o.startOnTick,l=a&&o.endOnTick,d=[];if(this.tickmarkOffset=this.categories&&"between"===o.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&o3(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==o.allowDecimals),r)d=r.slice();else if(ri(this.min)&&ri(this.max)){if(!(null===(t=this.ordinal)||void 0===t?void 0:t.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))d=[this.min,this.max],o9(19,!1,this.chart);else if(this.dateTime)d=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,o.units),this.min,this.max,o.startOfWeek,null===(e=this.ordinal)||void 0===e?void 0:e.positions,this.closestPointRange,!0);else if(this.logarithmic)d=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var c=this.tickInterval,p=c;p<=2*c;)if(d=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&d.length>this.tickAmount)this.tickInterval=rp(this,p*=1.1);else break;d.length>this.len&&(d=[d[0],d[d.length-1]])[0]===d[1]&&(d.length=1),n&&(this.tickPositions=d,(i=n.apply(this,[this.min,this.max]))&&(d=i))}this.tickPositions=d,this.minorTickInterval="auto"===s&&this.tickInterval?this.tickInterval/o.minorTicksPerMajor:s,this.paddedTicks=d.slice(0),this.trimTicks(d,h,l),!this.isLinked&&ri(this.min)&&ri(this.max)&&(this.single&&d.length<2&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),r||i||this.adjustTickAmount()),o8(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(o8(this,"trimTicks"),!this.isLinked){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&&o3(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);ri(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((!ri(this.dataMin)||this!==t&&this.series.some(function(t){return t.isDirty||t.isDirtyData}))&&this.getSeriesExtremes(),ri(this.threshold)){var e=o1((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;o3(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=ra(o.threshold,o.softThreshold?0:null),u=o.tickInterval,f=function(){return h.push(o2(h[h.length-1]+u))},g=function(){return h.unshift(o2(h[0]-u))};if(ri(d)&&(i=d<.5?Math.ceil(d*(l-1)):Math.floor(d*(l-1)),a.reversed&&(i=l-1-i)),o.hasData()&&ri(s)&&ri(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(ri(i)&&ri(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(o3(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=this.coll,o=this.stacking,r=!1,n=!1;this.series.forEach(function(t){r=r||t.isDirtyData||t.isDirty,n=n||t.xAxis&&t.xAxis.isDirty||!1}),this.setAxisSize();var s=this.len!==(this.old&&this.old.len);s||r||n||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(o&&"yAxis"===i&&o.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),o&&"xAxis"===i&&o.buildStacks(),this.isDirty||(this.isDirty=s||this.min!==(null===(t=this.old)||void 0===t?void 0:t.min)||this.max!==(null===(e=this.old)||void 0===e?void 0:e.max))):o&&o.cleanStacks(),r&&delete this.allExtremes,o8(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}),o8(this,"setExtremes",r=o4(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(rh(ra(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),n=this.height=Math.round(rh(ra(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),s=this.top=Math.round(rh(ra(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(rh(ra(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?o2(t.lin2log(this.min)):this.min,max:t?o2(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=(ra(t,0)-90*this.side+720)%360,i={align:"center"};return o8(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=ra(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 o8(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?1:0)+this.max-this.min)/n),a=i.rotation,h=o2(.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)),o2(e*n)},c=n,p=Number.MAX_VALUE;if(r){if(!i.staggerLines&&(ri(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(oJ*m))))+Math.abs(m/360))<p&&(p=f,t=m,c=u)}}else c=d(.75*h);return this.autoRotation=e,this.labelRotation=ra(t,ri(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?0:1),1),n=e.margin[3];if(t&&ri(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(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;ro(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?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),this.labelAlign&&(d.align=this.labelAlign),o.forEach(function(e){var i=r[e],o=i&&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(o4(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&&o3(this.min)&&o3(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(rr(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 oZ(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=ri(a.crossing),m=n.axisOffset,y=n.clipOffset,x=[-1,1,1,-1][h],b=0,k=0,M=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,ra(g.reserveSpace,!v&&null,"center"===r.labelAlign||null,r.reserveSpaceDefault)&&d.forEach(function(t){M=Math.max(l[t].getLabelSize(),M)}),r.staggerLines&&(M*=r.staggerLines),r.labelOffset=M*(r.opposite?-1:1)):rs(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=o3(e=f.offset)?0:ra(f.margin,s?5:10))),r.renderLine(),r.offset=x*ra(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(M)+k,M&&(i-=o,i+=x*(s?ra(g.y,r.tickRotCorr.y+x*g.distance):ra(g.x,x*g.distance))),r.axisTitleMargin=ra(e,i),r.getMaxLabelDimensions&&(r.maxLabelDimensions=r.getMaxLabelDimensions(l,d)),"colorAxis"!==c&&y){var w=this.tickSize("tick");m[h]=Math.max(m[h],(r.axisTitleMargin||0)+b+x*r.offset,i,d&&d.length&&w?w[0]+x*r.offset:0);var S=!r.axisLine||a.offset?0:r.axisLine.strokeWidth()/2;y[p]=Math.max(y[p],S)}o8(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 o8(this,"afterGetTitlePosition",{titlePosition:g}),g},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new oZ(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=this.isLinked,r=this.ticks;(!o||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(r[t]||(r[t]=new oZ(this,t)),i&&r[t].isNew&&r[t].render(e,!0,-1),r[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=eg(n.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,c,p].forEach(function(t){rs(t,function(t){t.isActive=!1})}),ri(g)){var b=this.isXAxis?o.yAxis[0]:o.xAxis[0],k=[1,-1,-1,1][this.side];if(b){var M=b.toPixels(g,!0);i.horiz&&(M=b.len-M),i.offset=k*M}}if(i.hasData()||a){var w=i.chart.hasRendered&&i.old&&ri(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,w)}),h.length&&(h.forEach(function(t,e){i.renderTick(t,e,w)}),v&&(0===i.min||i.single)&&(d[-1]||(d[-1]=new oZ(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 td.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;rs(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),rc(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),u&&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,o8(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(o8(this,"destroy",{keepEvents:t}),t||rl(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){o5(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();rs(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=this.crosshair,a=ra(s&&s.snap,!0),h=this.chart,l=this.cross;if(o8(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),s&&!1!==(o3(e)||!a)){if(a?o3(e)&&(o=ra("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):o=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),o3(o)&&(n={value:e&&(this.isXAxis?e.x:ra(e.stackY,e.y)),translatedValue:o},h.polar&&o4(n,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),i=this.getPlotLinePath(n)||null),!o3(i)){this.hideCrosshair();return}r=this.categories&&!this.isRadial,l||(this.cross=l=h.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+(s.className||"")).attr({zIndex:ra(s.zIndex,2)}).add(),!h.styledMode&&(l.attr({stroke:s.color||(r?ee.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":ra(s.width,1)}).css({"pointer-events":"none"}),s.dashStyle&&l.attr({dashstyle:s.dashStyle}))),l.show().attr({d:i}),r&&!s.width&&l.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();o8(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),o8(this,"afterHideCrosshair")},t.prototype.update=function(t,e){var i=this.chart;t=rr(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,ra(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);o6(e.axes,this),o6(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,ra(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}(),rf=tR.addEvent,rg=tR.getMagnitude,rv=tR.normalizeTickInterval,rm=tR.timeUnits;!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,rf(t,"afterSetType",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i,o=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]],r=o[o.length-1],n=rm[r[0]],s=r[1];for(i=0;i<o.length&&(n=rm[(r=o[i])[0]],s=r[1],!o[i+1]||!(t<=(n*s[s.length-1]+rm[o[i+1][0]])/2));i++);n===rm.year&&t<5*n&&(s=[1,2,5]);var a=rv(t/n,s,"year"===r[0]?Math.max(rg(t/n),1):1);return{unitRange:n,count:a,unitName:r[0]}},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}(X||(X={}));var ry=X,rx=tR.addEvent,rb=tR.normalizeTickInterval,rk=tR.pick;!function(t){function e(){var t;"logarithmic"!==this.type?this.logarithmic=void 0:null!==(t=this.logarithmic)&&void 0!==t||(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"),rx(t,"afterSetType",e),rx(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=rb(t=rk("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}(H||(H={}));var rM=H,rw=tR.erase,rS=tR.extend,rA=tR.isNumber;!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=!rA(this.min)||!rA(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){for(r=e.length;r--;)(e[r]||{}).id===t&&rw(e,e[r])})}}function h(t){this.removePlotBandOrLine(t)}t.compose=function(t,l){var d=l.prototype;return d.addPlotBand||(e=t,rS(d,{addPlotBand:i,addPlotLine:r,addPlotBandOrLine:o,getPlotBandPath:n,removePlotBand:s,removePlotLine:h,removePlotBandOrLine:a})),l}}(Y||(Y={}));var rT=Y,rC=function(){return(rC=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)},rO=tR.addEvent,rP=tR.arrayMax,rE=tR.arrayMin,rL=tR.defined,rB=tR.destroyObjectProperties,rD=tR.erase,rI=tR.fireEvent,rz=tR.merge,rR=tR.objectEach,rN=tR.pick,rW=function(){function t(t,e){this.axis=t,this.options=e,this.id=e.id}return t.compose=function(e,i){return rO(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?void 0:e.allowOverlap)||i.push(l)}return i})}),rT.compose(t,i)},t.prototype.render=function(){var t=this;rI(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,M=this.label,w=this.svgElem,S=[],A=rL(y)&&rL(m),T=rL(x),C=!w,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"]=rN(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()),w||(this.svgElem=w=f.path().attr(O).add(r)),rL(x))S=n.getPlotLinePath({value:null!==(e=null==h?void 0:h.log2lin(x))&&void 0!==e?e:x,lineWidth:w.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(rL(y)&&rL(m)))return;S=n.getPlotBandPath(null!==(i=null==h?void 0:h.log2lin(y))&&void 0!==i?i:y,null!==(o=null==h?void 0:h.log2lin(m))&&void 0!==o?o:m,s)}return!this.eventsAdded&&d&&(rR(d,function(e,i){null==w||w.on(i,function(e){d[i].apply(t,[e])})}),this.eventsAdded=!0),(C||!w.d)&&(null==S?void 0:S.length)?w.attr({d:S}):w&&(S?(w.show(),w.animate({d:S})):w.d&&(w.hide(),M&&(this.label=M=M.destroy()))),k&&(rL(k.text)||rL(k.formatter))&&(null==S?void 0:S.length)&&n.width>0&&n.height>0&&!S.isFlat?(k=rz(rC({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)):M&&M.hide(),this},t.prototype.renderLabel=function(t,e,i,o){var r,n=this.axis,s=n.chart.renderer,a=t.inside,h=this.label;h||(this.label=h=s.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}),n.chart.styledMode||h.css(rz({fontSize:"0.8em",textOverflow:i&&!a?"":"ellipsis"},t.style)),h.add());var l=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],d=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],c=rE(l),p=rE(d),u=rP(l)-c;h.align(t,!1,{x:c,y:p,width:u,height:rP(d)-p}),(!h.alignValue||"left"===h.alignValue||rL(a))&&h.css({width:((null===(r=t.style)||void 0===r?void 0:r.width)||(i&&a?u:90===h.rotation?n.height-(h.alignAttr.y-n.top):(t.clip?n.width:n.chart.chartWidth)-(h.alignAttr.x-n.left)))+"px"}),h.show(!0)},t.prototype.getLabelText=function(t){return rL(t.formatter)?t.formatter.call(this):t.text},t.prototype.destroy=function(){rD(this.axis.plotLinesAndBands,this),delete this.axis,rB(this)},t}(),rG=eV.format,rX=td.composed,rH=td.dateFormats,rY=td.doc,rF=td.isSafari,r_=eQ.distribute,rj=tR.addEvent,rU=tR.clamp,rV=tR.css,rZ=tR.discardElement,rq=tR.extend,rK=tR.fireEvent,r$=tR.isArray,rJ=tR.isNumber,rQ=tR.isObject,r0=tR.isString,r1=tR.merge,r2=tR.pick,r3=tR.pushUnique,r5=tR.splat,r6=tR.syncTimeout,r9=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.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},t.prototype.defaultFormatter=function(t){var e,i=this.points||r5(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(),rZ(this.container)),tR.clearTimeout(this.hideTimer)},t.prototype.getAnchor=function(t,e){var i,o=this.chart,r=this.pointer,n=o.inverted,s=o.plotTop,a=o.plotLeft;if((t=r5(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=r.normalize(e)),i=[e.chartX-a,e.chartY-s];else if(t[0].tooltipPos)i=t[0].tooltipPos;else{var h=0,l=0;t.forEach(function(t){var e=t.pos(!0);e&&(h+=e[0],l+=e[1])}),h/=t.length,l/=t.length,this.shared&&t.length>1&&e&&(n?h=e.chartX:l=e.chartY),i=[h-a,l-s]}return i.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-"+r2(t.colorIndex,r.colorIndex),n&&n.className].filter(r0).join(" ")},t.prototype.getLabel=function(t){var e=void 0===t?{anchorX:0,anchorY:0}:t,i=e.anchorX,o=e.anchorY,r=this,n=this.chart.styledMode,s=this.options,a=this.split&&this.allowShared,h=this.container,l=this.chart.renderer;if(this.label){var d=!this.label.hasClass("highcharts-label");(!a&&d||a&&!d)&&this.destroy()}if(!this.label){if(this.outside){var c=this.chart,p=c.options.chart.style,u=eZ.getRendererType();this.container=h=td.doc.createElement("div"),h.className="highcharts-tooltip-container "+(c.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),rV(h,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(p&&p.zIndex||0)+3)}),this.renderer=l=new u(h,0,0,p,void 0,void 0,l.styledMode)}if(a?this.label=l.g("tooltip"):(this.label=l.label("",i,o,s.shape,void 0,void 0,s.useHTML,void 0,"tooltip").attr({padding:s.padding,r:s.borderRadius}),n||this.label.attr({fill:s.backgroundColor,"stroke-width":s.borderWidth||0}).css(s.style).css({pointerEvents:s.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),r.outside){var f=this.label;[f.xSetter,f.ySetter].forEach(function(t,e){f[e?"ySetter":"xSetter"]=function(i){t.call(f,r.distance),f[e?"y":"x"]=i,h&&(h.style[e?"top":"left"]=""+i+"px")}})}this.label.attr({zIndex:8}).shadow(s.shadow).add()}return h&&!h.parentElement&&td.doc.body.appendChild(h),this.label},t.prototype.getPlayingField=function(){var t=rY.body,e=rY.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,M=b.width,w=l.getChartPosition(),S=function(t){return t*w.scaleX},A=function(t){return t*w.scaleY},T=function(i){var o="x"===i;return[i,o?M:k,o?t:e].concat(h?[o?S(t):A(e),o?w.left-s+S(g+c):w.top-s+A(m+p),0,o?M: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?void 0:o.yAxis)||void 0===r?void 0:r.reversed)&&(P=!P);var E=!this.followPointer&&r2(i.ttBelow,!u&&!d===P),L=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(E&&p)y[t]=f;else if(!E&&c)y[t]=u;else if(c)y[t]=Math.min(a-o,u-x<0?u:u-x);else{if(!p)return!1;y[t]=Math.max(n,f+x+i>e?f:f+x)}},B=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},D=function(t){var e;C=(e=[O,C])[0],O=e[1],n=t},I=function(){!1!==L.apply(0,C)?!1!==B.apply(0,O)||n||(D(!0),I()):n?y.x=y.y=0:(D(!0),I())};return(d&&!u||this.len>1)&&D(),I(),y},t.prototype.hide=function(t){var e=this;tR.clearTimeout(this.hideTimer),t=r2(t,this.options.hideDelay),this.isHidden||(this.hideTimer=r6(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=r2(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=eg(!r.isHidden&&r.options.animation),s=r.followPointer||(r.len||0)>1,a={x:t,y:e};s||(a.anchorX=i,a.anchorY=o),n.step=function(){return r.drawTracker()},r.getLabel().animate(a,n)},t.prototype.refresh=function(t,e){var i=this.chart,o=this.options,r=this.pointer,n=this.shared,s=r5(t),a=s[0],h=o.format,l=o.formatter||this.defaultFormatter,d=i.styledMode,c=this.allowShared;if(o.enabled&&a.series){tR.clearTimeout(this.hideTimer),this.allowShared=!(!r$(t)&&t.series&&t.series.noSharedTooltip),c=c&&!this.allowShared,this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var p=this.getAnchor(t,e),u=p[0],f=p[1];n&&this.allowShared&&(r.applyInactiveState(s),s.forEach(function(t){return t.setState("hover")}),a.points=s),this.len=s.length;var g=r0(h)?rG(h,a,i):l.call(a,this);a.points=void 0;var v=a.series;if(this.distance=r2(v.tooltipOptions.distance,16),!1===g)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(g,s);else{var m=u,y=f;if(e&&r.isDirectTouch&&(m=e.chartX-i.plotLeft,y=e.chartY-i.plotTop),i.polar||!1===v.options.clip||s.some(function(t){return r.isDirectTouch||t.series.shouldShowTooltip(m,y)})){var x=this.getLabel(c&&this.tt||{});(!o.style.width||d)&&x.css({width:(this.outside?this.getPlayingField():i.spacingBox).width+"px"}),x.attr({class:this.getClassName(a),text:g&&g.join?g.join(""):g}),this.outside&&x.attr({x:rU(x.x||0,0,this.getPlayingField().width-(x.width||0)-1)}),d||x.attr({stroke:o.borderColor||a.color||v.color||"#666666"}),this.updatePosition({plotX:u,plotY:f,negative:a.negative,ttBelow:a.ttBelow,h:p[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}rK(this,"refresh")}},t.prototype.renderSplit=function(t,e){var i,o=this,r=o.chart,n=o.chart,s=n.chartWidth,a=n.chartHeight,h=n.plotHeight,l=n.plotLeft,d=n.plotTop,c=n.scrollablePixelsY,p=n.scrollablePixelsX,u=n.styledMode,f=o.distance,g=o.options,v=o.options.positioner,m=o.pointer,y=(null===(i=r.scrollablePlotArea)||void 0===i?void 0:i.scrollingContainer)||{},x=y.scrollLeft,b=void 0===x?0:x,k=y.scrollTop,M=void 0===k?0:k,w=o.outside&&"number"!=typeof p?rY.documentElement.getBoundingClientRect():{left:b,right:b+s,top:M,bottom:M+a},S=o.getLabel(),A=this.renderer||r.renderer,T=!!(r.xAxis[0]&&r.xAxis[0].opposite),C=m.getChartPosition(),O=C.left,P=C.top,E=d+M,L=0,B=h-(void 0===c?0:c);function D(t,e,i,r,n){var s,a;return void 0===n&&(n=!0),i?(s=T?0:B,a=rU(t-r/2,w.left,w.right-r-(o.outside?O:0))):(s=e-E,a=rU(a=n?t-r-f:t+f,n?a:w.left,w.right)),{x:a,y:s}}r0(t)&&(t=[!1,t]);var I=t.slice(0,e.length+1).reduce(function(t,i,r){if(!1!==i&&""!==i){var n=e[r-1]||{isHeader:!0,plotX:e[0].plotX,plotY:h,series:{}},s=n.isHeader,a=s?o:n.series,c=a.tt=function(t,e,i){var r,n=t,s=e.isHeader,a=e.series;if(!n){var h={padding:g.padding,r:g.borderRadius};u||(h.fill=g.backgroundColor,h["stroke-width"]=null!==(r=g.borderWidth)&&void 0!==r?r:1),n=A.label("",0,0,g[s?"headerShape":"shape"],void 0,void 0,g.useHTML).addClass(o.getClassName(e,!0,s)).attr(h).add(S)}return n.isActive=!0,n.attr({text:i}),u||n.css(g.style).attr({stroke:g.borderColor||e.color||a.color||"#333333"}),n}(a.tt,n,i.toString()),p=c.getBBox(),m=p.width+c.strokeWidth();s&&(L=p.height,B+=L,T&&(E-=L));var y=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,c=t.series;if(o)e=Math.max(l+n,l),i=d+h/2;else{var p=c.xAxis,u=c.yAxis;e=p.pos+rU(n,-f,p.len+f),c.shouldShowTooltip(0,u.pos-d+a,{ignoreX:!0})&&(i=u.pos+a)}return{anchorX:e=rU(e,w.left-f,w.right+f),anchorY:i}}(n),x=y.anchorX,b=y.anchorY;if("number"==typeof b){var k=p.height+1,M=v?v.call(o,m,k,n):D(x,b,s,m);t.push({align:v?0:void 0,anchorX:x,anchorY:b,boxWidth:m,point:n,rank:r2(M.rank,s?1:0),size:k,target:M.y,tt:c,x:M.x})}else c.isActive=!1}return t},[]);!v&&I.some(function(t){var e=(o.outside?O:0)+t.anchorX;return e<w.left&&e+t.boxWidth<w.right||e<O-w.left+t.boxWidth&&w.right-e>e})&&(I=I.map(function(t){var e=D(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1),i=e.x;return rq(t,{target:e.y,x:i})})),o.cleanSplit(),r_(I,B);var z={left:O,right:O};I.forEach(function(t){var e=t.x,i=t.boxWidth,r=t.isHeader;!r&&(o.outside&&O+e<z.left&&(z.left=O+e),!r&&o.outside&&z.left+i>z.right&&(z.right=O+e))}),I.forEach(function(t){var e=t.x,i=t.anchorX,r=t.anchorY,n=t.pos,s=t.point.isHeader,a={visibility:void 0===n?"hidden":"inherit",x:e,y:(n||0)+E,anchorX:i,anchorY:r};if(o.outside&&e<i){var h=O-z.left;h>0&&(s||(a.x=e+h,a.anchorX=i+h),s&&(a.x=(z.right-z.left)/2,a.anchorX=i+h))}t.tt.attr(a)});var R=o.container,N=o.outside,W=o.renderer;if(N&&R&&W){var G=S.getBBox(),X=G.width,H=G.height,Y=G.x,F=G.y;W.setSize(X+Y,H+F,!1),R.style.left=z.left+"px",R.style.top=P+"px"}rF&&S.attr({opacity:1===S.opacity?.999:1})},t.prototype.drawTracker=function(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}var t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(e&&i){var o={x:0,y:0,width:0,height:0},r=this.getAnchor(i),n=e.getBBox();r[0]+=t.plotLeft-(e.translateX||0),r[1]+=t.plotTop-(e.translateY||0),o.x=Math.min(0,r[0]),o.y=Math.min(0,r[1]),o.width=r[0]<0?Math.max(Math.abs(r[0]),n.width-r[0]):Math.max(Math.abs(r[0]),n.width),o.height=r[1]<0?Math.max(Math.abs(r[1]),n.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),n.height),this.tracker?this.tracker.attr(o):(this.tracker=e.renderer.rect(o).addClass("highcharts-tracker").add(e),t.styledMode||this.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=r&&r.dateTime,s={isFooter:e,point:t},a=o.xDateFormat||"",h=o[e?"footerFormat":"headerFormat"];return rK(this,"headerFormatter",s,function(e){if(n&&!a&&rJ(t.key)&&(a=n.getXDateFormat(t.key,o.dateTimeLabelFormats)),n&&a){if(rQ(a)){var r=a;rH[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=rG(h,t,this.chart)}),s.text||""},t.prototype.update=function(t){this.destroy(),this.init(this.chart,r1(!0,this.options,t))},t.prototype.updatePosition=function(t){var e,i=this.chart,o=this.container,r=this.distance,n=this.options,s=this.pointer,a=this.renderer,h=this.getLabel(),l=h.height,d=void 0===l?0:l,c=h.width,p=void 0===c?0:c,u=s.getChartPosition(),f=u.left,g=u.top,v=u.scaleX,m=u.scaleY,y=(n.positioner||this.getPosition).call(this,p,d,t),x=td.doc,b=(t.plotX||0)+i.plotLeft,k=(t.plotY||0)+i.plotTop;a&&o&&(n.positioner&&(y.x+=f-r,y.y+=g-r),e=(n.borderWidth||0)+2*r+2,a.setSize(rU(p+e,0,x.documentElement.clientWidth)-1,d+e,!1),(1!==v||1!==m)&&(rV(o,{transform:"scale(".concat(v,", ").concat(m,")")}),b*=v,k*=m),b+=f-y.x,k+=g-y.y),this.move(Math.round(y.x),Math.round(y.y||0),b,k)},t}();(d=r9||(r9={})).compose=function(t){r3(rX,"Core.Tooltip")&&rj(t,"afterInit",function(){var t=this.chart;t.options.tooltip&&(t.tooltip=new d(t,t.options.tooltip,this))})};var r4=r9,r8=eV.format,r7=tR.addEvent,nt=tR.crisp,ne=tR.erase,ni=tR.extend,no=tR.fireEvent,nr=tR.getNestedProperty,nn=tR.isArray,ns=tR.isFunction,na=tR.isNumber,nh=tR.isObject,nl=tR.merge,nd=tR.pick,nc=tR.syncTimeout,np=tR.removeEvent,nu=tR.uniqueKey,nf=function(){function t(t,e,i){var o;this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),null!==(o=this.id)&&void 0!==o||(this.id=nu()),this.resolveColor(),t.chart.pointCount++,no(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(ni({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 ni(this,e=t.prototype.optionsToObject.call(this,e)),this.options=this.options?ni(this.options,e):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():na(e.x)&&o.options.relativeXValue?this.x=o.autoIncrement(e.x):"string"==typeof this.x&&(null!=i||(i=o.chart.time.parse(this.x)),na(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=eg(t.series.chart.renderer.globalAnimation),s=function(){for(var e in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(np(t),t.destroyElements()),t)delete t[e]};t.legendItem&&i.legend.destroyItem(t),r&&(t.setState(),ne(r,t),r.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),o&&o.enabled?(this.animateBeforeDestroy(),nc(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){t&&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)}),no(o,t,e,i)},t.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.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){return t?0===t.indexOf("custom.")?nr(t,this.options):this[t]:void 0},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),t&&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(na(this.x)||this.x instanceof Date)&&na(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(na(e)||null===e)h[s[0]]=e;else if(nn(e))for(!n&&e.length>a&&("string"==(o=typeof e[0])?(null===(i=r.xAxis)||void 0===i?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(na(i)&&na(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=nd(this.options.colorIndex,i),this.color=nd(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:nh(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?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}")}),r8(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;function d(){n.applyOptions(t);var o=a&&n.hasMockGraphic,d=null===n.y?!o:o;a&&d&&(n.graphic=a.destroy(),delete n.hasMockGraphic),nh(t,!0)&&(a&&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 c={},p=0,u=s.dataColumnKeys();p<u.length;p++){var f=u[p];c[f]=n[f]}s.dataTable.setRow(c,r),l.data[r]=nh(l.data[r],!0)||nh(t,!0)?n.options:nd(t,l.data[r]),s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(h.isDirtyBox=!0),"point"===l.legendType&&(h.isDirtyLegend=!0),e&&h.redraw(i)}e=nd(e,!0),!1===o?d():n.firePointEvent("update",{options:t},d)},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=nd(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=nl(this.series.options.point,this.options).events)||void 0===e?void 0:e[t];!ns(h)||(null===(i=this.hcEvents)||void 0===i?void 0:i[t])&&(null===(r=null===(o=this.hcEvents)||void 0===o?void 0:o[t])||void 0===r?void 0:r.map(function(t){return t.fn}).indexOf(h))!==-1?this.importedUserEvent&&!h&&(null===(s=this.hcEvents)||void 0===s?void 0:s[t])&&(null===(a=this.hcEvents)||void 0===a?void 0:a[t].userEvent)&&(np(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent):(null===(n=this.importedUserEvent)||void 0===n||n.call(this),this.importedUserEvent=r7(this,t,h),this.hcEvents&&(this.hcEvents[t].userEvent=!0))},t.prototype.setState=function(t,e){var i,o,r,n,s,a=this.series,h=this.state,l=a.options.states[t||"normal"]||{},d=t3.plotOptions[a.type].marker&&a.options.marker,c=d&&!1===d.enabled,p=d&&d.states&&d.states[t||"normal"]||{},u=!1===p.enabled,f=this.marker||{},g=a.chart,v=d&&a.markerAttribs,m=a.halo,y=a.stateMarkerGraphic;if(((t=t||"")!==this.state||e)&&(!this.selected||"select"===t)&&!1!==l.enabled&&(!t||!u&&(!c||!1!==p.enabled))&&(!t||!f.states||!f.states[t]||!1!==f.states[t].enabled)){if(this.state=t,v&&(o=a.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(h&&this.graphic.removeClass("highcharts-point-"+h),t&&this.graphic.addClass("highcharts-point-"+t),!g.styledMode){r=a.pointAttribs(this,t),n=nd(g.options.chart.animation,l.animation);var x=r.opacity;a.options.inactiveOtherPoints&&na(x)&&(this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&(t.animate({opacity:x},n),t.connector&&t.connector.animate({opacity:x},n))}),this.graphic.animate(r,n)}o&&this.graphic.animate(o,nd(g.options.chart.animation,p.animation,d.animation)),y&&y.hide()}else t&&p&&(s=f.symbol||a.symbol,y&&y.currentSymbol!==s&&(y=y.destroy()),o&&(y?y[e?"animate":"attr"]({x:o.x,y:o.y}):s&&(a.stateMarkerGraphic=y=g.renderer.symbol(s,o.x,o.y,o.width,o.height,nl(d,p)).add(a.markerGroup),y.currentSymbol=s)),!g.styledMode&&y&&"inactive"!==this.state&&y.attr(a.pointAttribs(this,t))),y&&(y[t&&this.isInside?"show":"hide"](),y.element.point=this,y.addClass(this.getClassName(),!0));var b=l.halo,k=this.graphic||y,M=k&&k.visibility||"inherit";b&&b.size&&k&&"hidden"!==M&&!this.isCluster?(m||(a.halo=m=g.renderer.path().add(k.parentGroup)),m.show()[e?"animate":"attr"]({d:this.haloPath(b.size)}),m.attr({class:"highcharts-halo highcharts-color-"+nd(this.colorIndex,a.colorIndex)+(this.className?" "+this.className:""),visibility:M,zIndex:-1}),m.point=this,g.styledMode||m.attr(ni({fill:this.color||a.color,"fill-opacity":b.opacity},eD.filterUserAttributes(b.attributes||{})))):(null===(i=null==m?void 0:m.point)||void 0===i?void 0:i.haloPath)&&!m.point.destroyed&&m.animate({d:m.point.haloPath(0)},null,m.hide),no(this,"afterSetState",{state:t})}},t.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(nt(e[0],1)-t,e[1]-t,2*t,2*t):[]},t}(),ng=function(){return(ng=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)},nv=ee.parse,nm=td.charts,ny=td.composed,nx=td.isTouchDevice,nb=tR.addEvent,nk=tR.attr,nM=tR.css,nw=tR.extend,nS=tR.find,nA=tR.fireEvent,nT=tR.isNumber,nC=tR.isObject,nO=tR.objectEach,nP=tR.offset,nE=tR.pick,nL=tR.pushUnique,nB=tR.splat,nD=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?void 0:i.click),this.pinchDown=[],this.setDOMEvents(),nA(this,"afterInit")}return t.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},t.prototype.destroy=function(){var e=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],!td.chartCount&&(t.unbindDocumentMouseUp.forEach(function(t){return t.unbind()}),t.unbindDocumentMouseUp.length=0,t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),nO(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 nA(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&&(r=t-l,p.width=Math.max(1,Math.abs(r)),p.x=(r>0?0:r)+l),a&&(r=e-c,p.height=Math.max(1,Math.abs(r)),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=nC(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,M=b.attrs;(i.hasCartesianSeries||i.mapView)&&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||nv("#334eff").setOpacity(.25).get()})),x&&x.attr(M),e&&!x&&g&&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 nA(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:ng({originalEvent:t,xAxis:[],yAxis:[]},h),from:h})}nT(o.index)&&(this.selectionMarker=r.destroy())}o&&nT(o.index)&&(nM(o.container,{cursor:o._cursor}),o.cancelClick=this.hasDragged>10,o.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])},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);nC(c,!0)&&c.series&&(!nC(o,!0)||(a=(r=o).distX-c.distX,h=r.dist-c.dist,l=(null===(n=c.series.group)||void 0===n?void 0:n.zIndex)-(null===(s=r.series.group)||void 0===s?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)&&void 0!==i?i:t.plotX)&&void 0!==o?o:0,l=t.plotY||0;return t.isNode&&a&&nT(a.x)&&nT(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(a&&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=nP(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)&&nE(t.options.enableMouseTracking,!0)},l=e,d={chartX:n?n.chartX:void 0,chartY:n?n.chartY:void 0,shared:r};nA(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=c&&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=nS(t.points,function(t){return t.x===c.x&&!t.isNull});nC(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),a.push(e))}):a.push(c)),nA(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=nk(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):nE(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());var r=o.pageX-e.left,n=o.pageY-e.top;return nw(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")?(nA(i.series,"click",nw(o,{point:i})),e.hoverPoint&&i.firePointEvent("click",o)):(nw(o,this.getCoordinates(o)),e.isInsidePlot(o.chartX-r,o.chartY-n,{visiblePlotOnly:!0})&&nA(e,"click",o)))},t.prototype.onContainerMouseDown=function(t){var e,i=(1&(t.buttons||t.button))==1;t=this.normalize(t),td.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&(null===(e=t.preventDefault)||void 0===e||e.call(t)),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var i=(nm[nE(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=this.chart,i=e.tooltip,o=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===e.mouseIsDown||this.touchSelect(o))&&this.drag(o),!e.openMenu&&(this.inClass(o.target,"highcharts-tracker")||e.isInsidePlot(o.chartX-e.plotLeft,o.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!(i&&i.shouldStickOnContact(o))&&(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))},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})||i&&i.shouldStickOnContact(r)||r.target!==e.container.ownerDocument&&this.inClass(r.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var i,o;null===(o=null===(i=nm[nE(t.hoverChartIndex,-1)])||void 0===i?void 0:i.pointer)||void 0===o||o.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&&nE(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&&(nA(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=s&&s.shared?n:r;t&&a&&nB(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&a&&nB(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=this.chart,n=r.series,s=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,a=!!s&&s.shared,h=i||r.hoverPoint,l=h&&h.series||r.hoverSeries,d=(!e||"touchmove"!==e.type)&&(!!i||l&&l.directTouch&&this.isDirectTouch),c=this.getHoverData(h,l,n,d,a,e);h=c.hoverPoint,l=c.hoverSeries;var p=c.hoverPoints,u=l&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split,f=a&&l&&!l.noSharedTooltip;if(h&&(o||h!==r.hoverPoint||s&&s.isHidden)){if((r.hoverPoints||[]).forEach(function(t){-1===p.indexOf(t)&&t.setState()}),r.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(p),(p||[]).forEach(function(t){t.setState("hover")}),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),!h.series)return;r.hoverPoints=p,r.hoverPoint=h,h.firePointEvent("mouseOver",void 0,function(){s&&h&&s.refresh(f?p:h,e)})}else if(u&&s&&!s.isHidden){var g=s.getAnchor([{}],e);r.isInsidePlot(g[0],g[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:g[0],plotY:g[1]})}this.unDocMouseMove||(this.unDocMouseMove=nb(r.container.ownerDocument,"mousemove",function(e){var i,o,r;return null===(r=null===(o=nm[null!==(i=t.hoverChartIndex)&&void 0!==i?i:-1])||void 0===o?void 0:o.pointer)||void 0===r?void 0:r.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach(function(t){var i,o=nE((t.crosshair||{}).snap,!0);!o||(i=r.hoverPoint)&&i.series[t.coll]===t||(i=nS(p,function(e){return e.series&&e.series[t.coll]===t})),i||!o?t.drawCrosshair(e,i):t.hideCrosshair()})},t.prototype.setDOMEvents=function(){var e=this,i=this.chart.container,o=i.ownerDocument;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(nb(i,"mouseenter",this.onContainerMouseEnter.bind(this)),nb(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp.some(function(t){return t.doc===o})||t.unbindDocumentMouseUp.push({doc:o,unbind:nb(o,"mouseup",this.onDocumentMouseUp.bind(this))});for(var r=this.chart.renderTo.parentElement;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(nb(r,"scroll",function(){delete e.chartPosition})),r=r.parentElement;this.eventsToUnbind.push(nb(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),nb(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=nb(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),nb(this.chart,"redraw",this.setPointerCapture.bind(this))},t.prototype.setPointerCapture=function(){if(nx){var t,e,i=this.pointerCaptureEventsToUnbind,o=this.chart,r=o.container,n=nE(null===(t=o.options.tooltip)||void 0===t?void 0:t.followTouchMove,!0)&&o.series.some(function(t){return t.options.findNearestPointBy.indexOf("y")>-1});!this.hasPointerCapture&&n?(i.push(nb(r,"pointerdown",function(t){var e,i;(null===(e=t.target)||void 0===e?void 0:e.hasPointerCapture(t.pointerId))&&(null===(i=t.target)||void 0===i||i.releasePointerCapture(t.pointerId))}),nb(r,"pointermove",function(t){var e,i;null===(i=null===(e=o.pointer)||void 0===e?void 0:e.getPointFromEvent(t))||void 0===i||i.onMouseOver(t)})),o.styledMode||nM(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||nM(r,{"touch-action":nE(null===(e=o.options.chart.style)||void 0===e?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=td.charts[nE(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)||void 0===i||i.onContainerMouseLeave(e||n)}r&&r.mouseIsDown||(t.hoverChartIndex=o.index)},t.prototype.touch=function(t,e){var i,o=this.chart,r=this.pinchDown,n=void 0===r?[]:r;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?o.isInsidePlot(t.chartX-o.plotLeft,t.chartY-o.plotTop,{visiblePlotOnly:!0})&&!o.openMenu?(e&&this.runPointActions(t),"touchmove"===t.type&&(i=!!n[0]&&Math.pow(n[0].chartX-t.chartX,2)+Math.pow(n[0].chartY-t.chartY,2)>=16),nE(i,!0)&&this.pinch(t)):e&&this.reset():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=nE(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},t.unbindDocumentMouseUp=[],t}();(c=nD||(nD={})).compose=function(t){nL(ny,"Core.Pointer")&&nb(t,"beforeRender",function(){this.pointer=new c(this,this.options)})};var nI=nD,nz=tR.fireEvent,nR=tR.isArray,nN=tR.objectEach,nW=tR.uniqueKey,nG=function(){function t(t){void 0===t&&(t={});var e=this;this.autoId=!t.id,this.columns={},this.id=t.id||nW(),this.modified=this,this.rowCount=0,this.versionTag=nW();var i=0;nN(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){this.rowCount=t,nN(this.columns,function(e){nR(e)&&(e.length=t)})},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?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;nN(t,function(t,e){o.columns[e]=t.slice(),r=t.length}),this.applyRowCount(r),(null==i?void 0:i.silent)||(nz(this,"afterSetColumns"),this.versionTag=nW())},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;nN(t,function(t,s){var a=r[s]||(null==o?void 0:o.addColumns)!==!1&&Array(n);a&&(i?a.splice(e,0,t):a[e]=t,r[s]=a)}),n>this.rowCount&&this.applyRowCount(n),(null==o?void 0:o.silent)||(nz(this,"afterSetRows"),this.versionTag=nW())},t}(),nX=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))},nH=tR.extend,nY=tR.merge,nF=tR.pick;!function(t){function e(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?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)||void 0===r||r.attr({d:nX(nX([],k,!0),[["L",c-b,d],["L",b,d]],!1)})}if(x&&!1!==x.enabled&&c){var M=Math.min(nF(x.radius,f),f);0===u.indexOf("url")&&(x=nY(x,{width:p,height:p}),M=0),s.symbol=n=g.symbol(u,c/2-M,m-M,2*M,2*M,nH({context:"legend"},x)).addClass("highcharts-point").add(v),n.isMarker=!0}}t.areaMarker=function(t,i){e.call(this,t,i,!0)},t.lineMarker=e,t.rectangle=function(t,e){var i=e.legendItem||{},o=t.options,r=t.symbolHeight,n=o.squareSymbol,s=n?r:t.symbolWidth;i.symbol=this.chart.renderer.rect(n?(t.symbolWidth-r)/2:0,t.baseline-r+1,s,r,nF(t.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(i.group)}}(F||(F={}));var n_=F,nj={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"},nU=(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)}),nV=tR.extend,nZ=tR.extendClass,nq=tR.merge;!function(t){function e(e,i){var o=t3.plotOptions||{},r=i.defaultOptions,n=i.prototype;return n.type=e,n.pointClass||(n.pointClass=nf),!t.seriesTypes[e]&&(r&&(o[e]=r),t.seriesTypes[e]=i,!0)}t.seriesTypes=td.seriesTypes,t.registerSeriesType=e,t.seriesType=function(i,o,r,n,s){var a=t3.plotOptions||{};if(o=o||"",a[i]=nq(a[o],r),delete t.seriesTypes[i],e(i,nZ(t.seriesTypes[o]||function(){},n)),t.seriesTypes[i].prototype.type=i,s){var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nU(e,t),e}(nf);nV(h.prototype,s),t.seriesTypes[i].prototype.pointClass=h}return t.seriesTypes[i]}}(_||(_={}));var nK=_,n$=function(){return(n$=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)},nJ=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))},nQ=oz.registerEventOptions,n0=td.svg,n1=td.win,n2=nK.seriesTypes,n3=tR.arrayMax,n5=tR.arrayMin,n6=tR.clamp,n9=tR.correctFloat,n4=tR.crisp,n8=tR.defined,n7=tR.destroyObjectProperties,st=tR.diffObjects,se=tR.erase,si=tR.error,so=tR.extend,sr=tR.find,sn=tR.fireEvent,ss=tR.getClosestDistance,sa=tR.getNestedProperty,sh=tR.insertItem,sl=tR.isArray,sd=tR.isNumber,sc=tR.isString,sp=tR.merge,su=tR.objectEach,sf=tR.pick,sg=tR.removeEvent,sv=tR.syncTimeout,sm=function(){function t(){this.zoneAxis="y"}return t.prototype.init=function(t,e){sn(this,"init",{options:e}),null!==(i=this.dataTable)&&void 0!==i||(this.dataTable=new nG);var i,o,r=t.series;this.eventsToUnbind=[],this.chart=t,this.options=this.setOptions(e);var n=this.options,s=!1!==n.visible;this.linkedSeries=[],this.bindAxes(),so(this,{name:n.name,state:"",visible:s,selected:!0===n.selected}),nQ(this,n);var a=n.events;(a&&a.click||n.point&&n.point.events&&n.point.events.click||n.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),r.length&&(o=r[r.length-1]),this._i=sf(o&&o._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",sh(this,r)),n.dataSorting&&n.dataSorting.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(n.data,!1),sn(this,"afterInit")},t.prototype.is=function(t){return n2[t]&&this instanceof n2[t]},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;sn(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(r){(o[r]||[]).forEach(function(o){t=o.options,(sf(i[r],0)===o.index||void 0!==i[r]&&i[r]===t.id)&&(sh(e,o.series),e[r]=o,o.isDirty=!0)}),e[r]||e.optionalAxis===r||si(18,!0,o)})}),sn(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)&&void 0!==e?e:h.parse(r.pointStart))&&void 0!==i?i:0;if(this.pointInterval=o=sf(this.pointInterval,r.pointInterval,1),a&&sd(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&&sd(t)?l+o:(this.xIncrement=l+o,l)},t.prototype.setDataSortingOptions=function(){var t=this.options;so(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),n8(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=sp(t),h=r.styledMode,l={plotOptions:n,userOptions:a};sn(this,"setOptions",l);var d=l.plotOptions[this.type],c=s.plotOptions||{},p=c.series||{},u=t3.plotOptions[this.type]||{},f=c[this.type]||{};this.userOptions=l.userOptions;var g=sp(d,n.series,f,a);this.tooltipOptions=sp(t3.tooltip,null===(e=t3.plotOptions.series)||void 0===e?void 0:e.tooltip,null==u?void 0:u.tooltip,r.userOptions.tooltip,null===(i=c.series)||void 0===i?void 0:i.tooltip,f.tooltip,a.tooltip),this.stickyTracking=sf(a.stickyTracking,f.stickyTracking,p.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),null===d.marker&&delete g.marker,this.zoneAxis=g.zoneAxis||"y";var v=this.zones=(g.zones||[]).map(function(t){return n$({},t)});return(g.negativeColor||g.negativeFillColor)&&!g.zones&&(o={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},h||(o.color=g.negativeColor,o.fillColor=g.negativeFillColor),v.push(o)),v.length&&n8(v[v.length-1].value)&&v.push(h?{}:{color:this.color,fillColor:this.fillColor}),sn(this,"afterSetOptions",{options:g}),g},t.prototype.getName=function(){return sf(this.options.name,"Series "+(this.index+1))},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&&(n8(r=sf("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||t3.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.modified:this.dataTable).getColumn(t,!0)||[]},t.prototype.findPointIndex=function(t,e){var i,o,r,n=t.id,s=t.x,a=this.points,h=this.options.dataSorting;if(n){var l=this.chart.get(n);l instanceof nf&&(i=l)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var d=function(e){return!e.touched&&e.index===t.index};if(h&&h.matchByName?d=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(d=function(e){return!e.touched&&e.options.x===t.x}),!(i=sr(a,d)))return}return i&&void 0!==(r=i&&i.index)&&(o=!0),void 0===r&&sd(s)&&(r=this.getColumn("x").indexOf(s,e)),-1!==r&&void 0!==r&&this.cropped&&(r=r>=this.cropStart?r-this.cropStart:r),!o&&sd(r)&&a[r]&&a[r].touched&&(r=void 0),r},t.prototype.updateData=function(t,e){var i,o,r,n,s=this.options,a=s.dataSorting,h=this.points,l=[],d=this.requireSorting,c=t.length===h.length,p=!0;if(this.xIncrement=null,t.forEach(function(t,e){var o,r=n8(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},p=r.x;r.id||sd(p)?(-1===(o=this.findPointIndex(r,n))||void 0===o?l.push(t):h[o]&&t!==s.data[o]?(h[o].update(t,!1,null,!1),h[o].touched=!0,d&&(n=o+1)):h[o]&&(h[o].touched=!0),(!c||e!==o||a&&a.enabled||this.hasDerivedData)&&(i=!0)):l.push(t)},this),i)for(o=h.length;o--;)(r=h[o])&&!r.touched&&r.remove&&r.remove(!1,e);else!c||a&&a.enabled?p=!1:(t.forEach(function(t,e){t===h[e].y||h[e].destroyed||h[e].update(t,!1,null,!1)}),l.length=0);if(h.forEach(function(t){t&&(t.touched=!1)}),!p)return!1;l.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this);var u=this.getColumn("x");return null===this.xIncrement&&u.length&&(this.xIncrement=n3(u),this.autoIncrement()),!0},t.prototype.dataColumnKeys=function(){return nJ(["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=this.points,p=c&&c.length||0,u=this.options,f=this.chart,g=u.dataSorting,v=this.xAxis,m=u.turboThreshold,y=this.dataTable,x=this.dataColumnKeys(),b=this.pointValKey||"y",k=(this.pointArrayMap||[]).length,M=u.keys,w=0,S=1;f.options.chart.allowMutatingData||(u.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,d=sp(!0,t));var A=(t=d||t||[]).length;if(g&&g.enabled&&(t=this.sortData(t)),f.options.chart.allowMutatingData&&!1!==o&&A&&p&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(l=this.updateData(t,i)),!l){this.xIncrement=null,this.colorCounter=0;var T=m&&A>m;if(T){var C=this.getFirstValidPoint(t),O=this.getFirstValidPoint(t,A-1,-1),P=function(t){return!!(sl(t)&&(M||sd(t[0])))};if(sd(C)&&sd(O)){for(var E=[],L=[],B=0,D=t;B<D.length;B++){var I=D[B];E.push(this.autoIncrement()),L.push(I)}y.setColumns(((r={x:E})[b]=L,r))}else if(P(C)&&P(O)){if(k){for(var z=C.length===k?1:0,R=Array(x.length).fill(0).map(function(){return[]}),N=0,W=t;N<W.length;N++){var G=W[N];z&&R[0].push(this.autoIncrement());for(var X=z;X<=k;X++)null===(s=R[X])||void 0===s||s.push(G[X-z])}y.setColumns(x.reduce(function(t,e,i){return t[e]=R[i],t},{}))}else{M&&(w=M.indexOf("x"),S=M.indexOf("y"),w=w>=0?w:0,S=S>=0?S:1),1===C.length&&(S=0);var H=[],L=[];if(w===S)for(var Y=0,F=t;Y<F.length;Y++){var G=F[Y];H.push(this.autoIncrement()),L.push(G[S])}else for(var _=0,j=t;_<j.length;_++){var G=j[_];H.push(G[w]),L.push(G[S])}y.setColumns(((n={x:H})[b]=L,n))}}else T=!1}if(!T){var U=x.reduce(function(t,e){return t[e]=[],t},{});for(h=0;h<A;h++)for(var G=this.pointClass.prototype.applyOptions.apply({series:this},[t[h]]),V=0;V<x.length;V++){var Z=x[V];U[Z][h]=G[Z]}y.setColumns(U)}for(sc(this.getColumn("y")[0])&&si(14,!0,f),this.data=[],this.options.data=this.userOptions.data=t,h=p;h--;)null===(a=c[h])||void 0===a||a.destroy();v&&(v.minRange=v.userMinRange),this.isDirty=f.isDirtyBox=!0,this.isDirtyData=!!c,i=!1}"point"===u.legendType&&(this.processData(),this.generatePoints()),e&&f.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",o=function(t,e){return n8(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=sa(i,t),r=sa(i,e);return r<o?-1:r>o?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var i=e.options,r=i.data;i.dataSorting&&i.dataSorting.enabled||!r||(r.forEach(function(i,n){r[n]=o(e,i),t[n]&&(r[n].x=t[n].x,r[n].index=n)}),e.setData(r,!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 nG: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:ss([u?v.map(u.log2lin):v],function(){return s.requireSorting&&!y&&si(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,sn(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 nG({columns:a}),start:h,end:l}},t.prototype.generatePoints=function(){var t,e,i,o,r,n,s,a,h,l=this.options,d=this.processedData||l.data,c=this.dataTable.modified,p=this.getColumn("x",!0),u=this.pointClass,f=c.rowCount,g=this.cropStart||0,v=this.hasGroupedData,m=l.keys,y=[],x=l.dataGrouping&&l.dataGrouping.groupAll?g:0,b=null===(t=this.xAxis)||void 0===t?void 0:t.categories,k=this.pointArrayMap||["y"],M=this.dataColumnKeys(),w=this.data;if(!w&&!v){var S=[];S.length=(null==d?void 0:d.length)||0,w=this.data=S}for(m&&v&&(this.options.keys=!1),a=0;a<f;a++)n=g+a,v?((s=new u(this,c.getRow(a,M)||[])).dataGroup=this.groupMap[x+a],(null===(e=s.dataGroup)||void 0===e?void 0:e.options)&&(s.options=s.dataGroup.options,so(s,s.dataGroup.options),delete s.dataLabels)):(s=w[n],h=d?d[n]:c.getRow(a,k),s||void 0===h||(w[n]=s=new u(this,h,p[a]))),s&&(s.index=v?x+a:n,y[a]=s,s.category=null!==(i=null==b?void 0:b[s.x])&&void 0!==i?i:s.x,s.key=null!==(o=s.name)&&void 0!==o?o:s.category);if(this.options.keys=m,w&&(f!==(r=w.length)||v))for(a=0;a<r;a++)a!==g||v||(a+=f),w[a]&&(w[a].destroyElements(),w[a].plotX=void 0);this.data=w,this.points=y,sn(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:n5(t),max:n3(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.modified,d=l.rowCount,c=t||this.stackedYData,p=c?[c]:(null===(i=this.keysAffectYAxis||this.pointArrayMap||["y"])||void 0===i?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];sd(k)&&(k>0||!v)&&f.push(k)}var M={activeYData:f,dataMin:n5(f),dataMax:n3(f)};return sn(this,"afterGetExtremes",{dataExtremes:M}),M},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(n8(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=Number.MAX_VALUE;function m(t){return n6(t,-1e9,1e9)}for(e=0;e<c;e++){var y=d[e],x=y.x,b=void 0,k=void 0,M=y.y,w=y.low,S=s&&(null===(t=l.stacking)||void 0===t?void 0:t.stacks[(this.negStacks&&M<(g?0:f)?"-":"")+this.stackKey]);i=a.translate(x,!1,!1,!1,!0,p),y.plotX=sd(i)?n9(m(i)):void 0,s&&this.visible&&S&&S[x]&&(r=this.getStackIndicator(r,x,this.index),!y.isNull&&r.key&&(k=(b=S[x]).points[r.key]),b&&sl(k)&&(w=k[0],M=k[1],w===g&&r.key===S[x].base&&(w=sf(sd(f)?f:l.min)),l.positiveValuesOnly&&n8(w)&&w<=0&&(w=void 0),y.total=y.stackTotal=sf(b.total),y.percentage=n8(y.y)&&b.total?y.y/b.total*100:void 0,y.stackY=M,this.irregularWidths||b.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),y.yBottom=n8(w)?m(l.translate(w,!1,!0,!1,!0)):void 0,this.dataModify&&(M=this.dataModify.modifyValue(M,e));var A=void 0;sd(M)&&void 0!==y.plotX&&(A=sd(A=l.translate(M,!1,!0,!1,!0))?m(A):void 0),y.plotY=A,y.isInside=this.isPointInside(y),y.clientX=u?n9(a.translate(x,!1,!1,!1,!0,p)):i,y.negative=(y.y||0)<(f||0),y.isNull||!1===y.visible||(void 0!==o&&(v=Math.min(v,Math.abs(i-o))),o=i),y.zone=this.zones.length?y.getZone():void 0,!y.graphic&&this.group&&h&&(y.isNew=!0)}this.closestPointRangePx=v,sn(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&&sd(n))&&(!e||o.isInsidePlot(r,n,{inverted:o.inverted})))&&!1!==t.visible})},t.prototype.getClipBox=function(){var t,e=this.chart,i=this.xAxis,o=this.yAxis,r=sp(e.clipBox),n=r.x,s=r.y,a=r.width,h=r.height;return i&&i.len!==e.plotSizeX&&(a=i.len),o&&o.len!==e.plotSizeY&&(h=o.len),e.inverted&&!this.invertible&&(a=(t=[h,a])[0],h=t[1]),{x:n,y:s,width:a,height:h}},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=this.getClipBox(),s=this.getSharedClipKey(),a=o[s];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=eg(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=this.getClipBox();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=this.getClipBox(),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(),su(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,sn(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.marker,p=this[this.specialGroup||"markerGroup"],u=this.xAxis,f=sf(c.enabled,!u||!!u.isRadial||null,this.closestPointRangePx>=c.enabledThreshold*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++)if(r=(o=(i=t[e]).graphic)?"animate":"attr",n=i.marker||{},s=!!i.marker,(f&&void 0===n.enabled||n.enabled)&&!i.isNull&&!1!==i.visible){var g=sf(n.symbol,this.symbol,"rect");a=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=u.reversed?-(a.width||0):u.width);var v=!1!==i.isInside;if(!o&&v&&((a.width||0)>0||i.hasImage)&&(i.graphic=o=h.renderer.symbol(g,a.x,a.y,a.width,a.height,s?n:c).add(p),this.enabledDataSorting&&h.hasRendered&&(o.attr({x:i.startXPos}),r="animate")),o&&"animate"===r&&o[v?"show":"hide"](v).animate(a),o){var m=this.pointAttribs(i,l||!i.selected?void 0:"select");l?d&&o.css({fill:m.fill}):o[r](m)}o&&o.addClass(i.getClassName(),!0)}else o&&(i.graphic=o.destroy())},t.prototype.markerAttribs=function(t,e){var i,o,r=this.options,n=r.marker,s=t.marker||{},a=s.symbol||n.symbol,h={},l=sf(s.radius,n&&n.radius);e&&(i=n.states[e],l=sf((o=s.states&&s.states[e])&&o.radius,i&&i.radius,l&&l+(i&&i.radiusPlus||0))),t.hasImage=a&&0===a.indexOf("url"),t.hasImage&&(l=0);var d=t.pos();return sd(l)&&d&&(r.crisp&&(d[0]=n4(d[0],t.hasImage?0:"rect"===a?(null==n?void 0:n.lineWidth)||0:1)),h.x=d[0]-l,h.y=d[1]-l),l&&(h.width=h.height=2*l),h},t.prototype.pointAttribs=function(t,e){var i,o,r,n,s=this.options.marker,a=t&&t.options,h=a&&a.marker||{},l=a&&a.color,d=t&&t.color,c=t&&t.zone&&t.zone.color,p=this.color,u=sf(h.lineWidth,s.lineWidth),f=1;return p=l||c||d||p,r=h.fillColor||s.fillColor||p,n=h.lineColor||s.lineColor||p,e=e||"normal",i=s.states[e]||{},u=sf((o=h.states&&h.states[e]||{}).lineWidth,i.lineWidth,u+sf(o.lineWidthPlus,i.lineWidthPlus,0)),r=o.fillColor||i.fillColor||r,{stroke:n=o.lineColor||i.lineColor||n,"stroke-width":u,fill:r,opacity:f=sf(o.opacity,i.opacity,f)}},t.prototype.destroy=function(t){var e,i,o,r=this,n=r.chart,s=/AppleWebKit\/533/.test(n1.navigator.userAgent),a=r.data||[];for(sn(r,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(r.axisTypes||[]).forEach(function(t){(o=r[t])&&o.series&&(se(o.series,r),o.isDirty=o.forceRedraw=!0)}),r.legendItem&&r.chart.legend.destroyItem(r),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();for(var h=0,l=r.zones;h<l.length;h++)n7(l[h],void 0,!0);tR.clearTimeout(r.animationTimeout),su(r,function(t,e){t instanceof ik&&!t.survive&&t[s&&"group"===e?"hide":"destroy"]()}),n.hoverSeries===r&&(n.hoverSeries=void 0),se(n.series,r),n.orderItems("series"),su(r,function(e,i){t&&"hcEvents"===i||delete r[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&&sd(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=n6(d.toPixels(sf(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 M=r[k],w=M.plotX,S=M.plotY,A=M.zone,T=A&&o[o.indexOf(A)-1];A&&y(A,w,S),T&&y(T,w,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=nJ(nJ(nJ(nJ([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)||void 0===o||o.clip(c)),t&&(null===(r=e.area)||void 0===r||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 n8(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 "+(n8(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;return o.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,rotation:r?90:0,rotationOriginX:r?(e.len-i.len)/2:0,rotationOriginY:r?(e.len+i.len)/2:0,scaleX:r?-1:1,scaleY:1}},t.prototype.removeEvents=function(t){var e=this.eventsToUnbind;t||sg(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=eg(a.animation),d=n.visible?"inherit":"hidden",c=a.zIndex,p=s.seriesGroup,u=n.finishedAnimating?0:l.duration;sn(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)||void 0===t||t.call(n,!0)),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),null===(e=n.drawDataLabels)||void 0===e||e.call(n),null===(i=n.redrawPoints)||void 0===i||i.call(n),a.enableMouseTracking&&(null===(o=n.drawTracker)||void 0===o||o.call(n)),u&&(null===(r=n.animate)||void 0===r||r.call(n)),h||(u&&l.defer&&(u+=l.defer),n.animationTimeout=sv(function(){n.afterAnimate()},u||0)),n.isDirty=!1,n.hasRendered=!0,sn(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.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,sv(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),i,i),e.buildingKdTree=!1},e.options.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){return[(t[i]||0)<(e[i]||0)?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,M=i.point,w=n.kdAxisArray[o%r],S=M,A=!1;d=e[a],f=M[a],g=n8(d)&&n8(f)?d-f:null,v=e[h],m=M[h],y=n8(v)&&n8(m)?v-m:0,x=c&&(null===(s=M.marker)||void 0===s?void 0:s.radius)||0,M.dist=Math.sqrt((g&&g*g||0)+y*y)-x,M.distX=n8(g)?Math.abs(g)-x:Number.MAX_VALUE;var T=(e[w]||0)-(M[w]||0)+(c&&(null===(k=M.marker)||void 0===k?void 0:k.radius)||0),C=T<0?"left":"right",O=T<0?"right":"left";return i[C]&&(S=(b=p(M,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),sd(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?void 0:t.snap)||0,l=function(){i.enableMouseTracking&&n.hoverSeries!==e&&e.onMouseOver()},d="rgba(192,192,192,"+(n0?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)}),[e.tracker,e.markerGroup,e.dataLabelsGroup].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))})),sn(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=c&&c.hasNames&&c.names,u=a.data,f=this.getColumn("x");e=sf(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):(nJ([l,u],Object.values(d.getColumns()),!0).filter(n8).forEach(function(t){t.shift()}),d.rowCount-=1,sn(d,"afterDeleteRows"))),!1!==r&&sn(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(){nJ([(null==s?void 0:s.length)===n.length?s:void 0,n,o.options.data],Object.values(a.getColumns()),!0).filter(n8).forEach(function(e){e.splice(t,1)}),a.rowCount-=1,sn(a,"afterDeleteRows"),null==h||h.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&r.redraw()};ex(i,r),e=sf(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),sf(t,!0)&&n.redraw(e)}!1!==i?sn(r,"remove",null,s):s()},t.prototype.update=function(t,e){sn(this,"update",{options:t=st(t,this.userOptions)});var i,o,r,n,s,a,h=this,l=h.chart,d=h.userOptions,c=h.initialType||h.type,p=l.options.plotOptions,u=n2[c].prototype,f=h.finishedAnimating&&{animation:!1},g={},v=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],m=t.type||d.type||l.options.chart.type,y=!(this.hasDerivedData||m&&m!==this.type||void 0!==t.keys||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(function(t){return h.hasOptionChanged(t)}));m=m||c,y?(v.push("data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),!1!==t.visible&&v.push("area","graph"),h.parallelArrays.forEach(function(t){v.push(t+"Data")}),t.data&&(t.dataSorting&&so(h.options.dataSorting,t.dataSorting),this.setData(t.data,!1))):this.dataTable.modified=this.dataTable,t=sp(d,{index:void 0===d.index?h.index:d.index,pointStart:null!==(r=null!==(o=null===(i=null==p?void 0:p.series)||void 0===i?void 0:i.pointStart)&&void 0!==o?o:d.pointStart)&&void 0!==r?r:h.getColumn("x")[0]},!y&&{data:h.options.data},t,f),y&&t.data&&(t.data=h.options.data),(v=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(v)).forEach(function(t){v[t]=h[t],delete h[t]});var x=!1;if(n2[m]){if(x=m!==h.type,h.remove(!1,!1,!1,!0),x){if(l.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(h,n2[m].prototype);else{var b=Object.hasOwnProperty.call(h,"hcEvents")&&h.hcEvents;for(a in u)h[a]=void 0;so(h,n2[m].prototype),b?h.hcEvents=b:delete h.hcEvents}}}else si(17,!0,l,{missingModuleFor:m});if(v.forEach(function(t){h[t]=v[t]}),h.init(l,t),y&&this.points){!1===(s=h.options).visible?(g.graphic=1,g.dataLabel=1):(this.hasMarkerChanged(s,d)&&(g.graphic=1),(null===(n=h.hasDataLabels)||void 0===n?void 0:n.call(h))||(g.dataLabel=1));for(var k=0,M=this.points;k<M.length;k++){var w=M[k];w&&w.series&&(w.resolveColor(),Object.keys(g).length&&w.destroyElements(g),!1===s.showInLegend&&w.legendItem&&l.legend.destroyItem(w))}}h.initialType=c,l.linkSeries(),l.setSortedData(),x&&h.linkedSeries.length&&(h.isDirtyData=!0),sn(this,"afterUpdate"),sf(e,!0)&&l.redraw(!!y&&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=sf(null===(e=null==n?void 0:n[this.type])||void 0===e?void 0:e[t],null===(i=null==n?void 0:n.series)||void 0===i?void 0:i[t]);return s&&!n8(a)?r!==s:r!==sf(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&&sn(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&&sn(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=this,o=i.options,r=i.graph,n=o.inactiveOtherPoints,s=o.states,a=sf(s[t||"normal"]&&s[t||"normal"].animation,i.chart.options.chart.animation),h=o.lineWidth,l=o.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(s[t]&&!1===s[t].enabled)return;if(t&&(h=s[t].lineWidth||h+(s[t].lineWidthPlus||0),l=sf(s[t].opacity,l)),r&&!r.dashstyle&&sd(h))for(var d=0,c=nJ([r],this.zones.map(function(t){return t.graph}),!0);d<c.length;d++){var p=c[d];null==p||p.animate({"stroke-width":h},a)}n||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:l},a)})}e&&n&&i.points&&i.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=this,r=o.chart,n=r.options.chart.ignoreHiddenSeries,s=o.visible;o.visible=t=o.options.visible=o.userOptions.visible=void 0===t?!s:t;var a=t?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){var e;null===(e=o[t])||void 0===e||e[a]()}),(r.hoverSeries===o||(null===(i=r.hoverPoint)||void 0===i?void 0:i.series)===o)&&o.onMouseOut(),o.legendItem&&r.legend.colorizeItem(o,t),o.isDirty=!0,o.options.stacking&&r.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),o.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),n&&(r.isDirtyBox=!0),sn(o,a),!1!==e&&r.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),sn(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;null===(i=n_[this.options.legendSymbol||"rectangle"])||void 0===i||i.call(this,t,e)},t.defaultOptions=nj,t.types=nK.seriesTypes,t.registerType=nK.registerSeriesType,t}();so(sm.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:nf,requireSorting:!0,sorted:!0}),nK.series=sm;var sy=oz.registerEventOptions,sx=td.composed,sb=td.marginNames,sk=eQ.distribute,sM=eV.format,sw=tR.addEvent,sS=tR.createElement,sA=tR.css,sT=tR.defined,sC=tR.discardElement,sO=tR.find,sP=tR.fireEvent,sE=tR.isNumber,sL=tR.merge,sB=tR.pick,sD=tR.pushUnique,sI=tR.relativeLength,sz=tR.stableSort,sR=tR.syncTimeout,sN=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(),sy(this,e),sw(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),sw(this.chart,"render",function(){i.options.enabled&&i.proximate&&(i.proximatePositions(),i.positionItems())})}return t.prototype.setOptions=function(t){var e=sB(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=sL(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=sB(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(sL(!0,this.options,t)),"events"in this.options&&sy(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,sB(e,!0)&&i.redraw(),sP(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 sm||t instanceof nf)&&(t.color=(null===(i=t.options)||void 0===i?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(sL(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,sP(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(o&&o.element){var p={translateX:d?n:this.legendWidth-n-2*l-4,translateY:a};o[sT(o.translateY)?"animate":"attr"](p,void 0,function(){sP(e,"afterPositionItem",{item:t})})}c&&(c.x=n,c.y=a)},t.prototype.destroyItem=function(t){for(var e=t.checkbox,i=t.legendItem||{},o=0,r=["group","label","line","symbol"];o<r.length;o++){var n=r[o];i[n]&&(i[n]=i[n].destroy())}e&&sC(e),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=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,o=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(r){var n,s=r.checkbox;s&&(n=t+o+s.y+(this.scrollOffset||0)+3,sA(s,{left:e.translateX+r.checkboxOffset+s.x-20+"px",top:n+"px",display:this.proximate||n>t-6&&n<t+i-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?sM(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=t.legendItem=t.legendItem||{},i=this.chart,o=i.renderer,r=this.options,n="horizontal"===r.layout,s=this.symbolWidth,a=r.symbolPadding||0,h=this.itemStyle,l=this.itemHiddenStyle,d=n?sB(r.itemDistance,20):0,c=!r.rtl,p=!t.series,u=!p&&t.series.drawLegendSymbol?t.series:t,f=u.options,g=!!this.createCheckboxForItem&&f&&f.showCheckbox,v=r.useHTML,m=t.options.className,y=e.label,x=s+a+d+(g?20:0);!y&&(e.group=o.g("legend-item").addClass("highcharts-"+u.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(p?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=y=o.text("",c?s+a:-a,this.baseline||0,v),i.styledMode||y.css(sL(t.visible?h:l)),y.attr({align:c?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=o.fontMetrics(y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=sB(r.symbolHeight,this.fontMetrics.f),r.squareSymbol&&(this.symbolWidth=sB(r.symbolWidth,Math.max(this.symbolHeight,16)),x=this.symbolWidth+a+d+(g?20:0),c&&y.attr("x",this.symbolWidth+a))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,y,v)),g&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(i.styledMode||!h.width)&&y.css({width:(r.itemWidth||this.widthOption||i.spacingBox.width)-x+"px"}),this.setText(t);var b=y.getBBox(),k=this.fontMetrics&&this.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=r.itemWidth||e.labelWidth||b.width+x,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(b.height>1.5*k?b.height:k))},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?sB(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=e&&e.options;e&&sB(i.showInLegend,!sT(i.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===i.legendType?e.data:e)))}),sP(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){n.test(r)&&!sT(t[s])&&(i[sb[s]]=Math.max(i[sb[s]],i.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*o[s%2?"x":"y"]+sB(o.margin,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=sO(h?t.points:t.points.slice(0).reverse(),function(t){return sE(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=sk(i,e.plotHeight);r<n.length;r++){var s=n[r];t=s.item.legendItem||{},sE(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.renderer,s=this.options,a=this.padding,h=this.getAllItems(),l=this.group,d=this.box;this.itemX=a,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=sI(s.width,r.spacingBox.width-a),o=r.spacingBox.width-2*a-s.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(o/=2),this.maxLegendWidth=this.widthOption||o,l||(this.group=l=n.g("legend").addClass(s.className||"").attr({zIndex:7}).add(),this.contentGroup=n.g().attr({zIndex:1}).add(l),this.scrollGroup=n.g().add(this.contentGroup)),this.renderTitle(),sz(h,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),s.reversed&&h.reverse(),this.allItems=h,this.display=t=!!h.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,h.forEach(this.renderItem,this),h.forEach(this.layoutItem,this),e=(this.widthOption||this.offsetWidth)+a,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+a,d||(this.box=d=n.rect().addClass("highcharts-legend-box").attr({r:s.borderRadius}).add(l)),r.styledMode||d.attr({stroke:s.borderColor,"stroke-width":s.borderWidth||0,fill:s.backgroundColor||"none"}).shadow(s.shadow),e>0&&i>0&&d[d.placed?"animate":"attr"](d.crisp.call({},{x:0,y:0,width:e,height:i},d.strokeWidth())),l[t?"show":"hide"](),r.styledMode&&"none"===l.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),sP(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=sL(t,{y:o})),e.hasRendered||(this.group.placed=!1),this.group.align(sL(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=this,n=this.chart,s=n.renderer,a=this.options,h=a.y,l="top"===a.verticalAlign,d=this.padding,c=a.maxHeight,p=a.navigation,u=sB(p.animation,!0),f=p.arrowSize||12,g=this.pages,v=this.allItems,m=function(t){"number"==typeof t?k.attr({height:t}):k&&(r.clipRect=k.destroy(),r.contentGroup.clip()),r.contentGroup.div&&(r.contentGroup.div.style.clip=t?"rect("+d+"px,9999px,"+(d+t)+"px,0)":"auto")},y=function(t){return r[t]=s.circle(0,0,1.3*f).translate(f/2,f/2).add(b),n.styledMode||r[t].attr("fill","rgba(0,0,0,0.0001)"),r[t]},x=n.spacingBox.height+(l?-h:h)-d,b=this.nav,k=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(x/=2),c&&(x=Math.min(x,c)),g.length=0,t&&x>0&&t>x&&!1!==p.enabled?(this.clipHeight=e=Math.max(x-20-this.titleHeight-d,0),this.currentPage=sB(this.currentPage,1),this.fullHeight=t,v.forEach(function(t,r){var n=(o=t.legendItem||{}).y||0,s=Math.round(o.label.getBBox().height),a=g.length;(!a||n-g[a-1]>e&&(i||n)!==g[a-1])&&(g.push(i||n),a++),o.pageIx=a-1,i&&((v[r-1].legendItem||{}).pageIx=a-1),r===v.length-1&&n+s-g[a-1]>e&&n>g[a-1]&&(g.push(n),o.pageIx=a),n!==i&&(i=n)}),k||(k=r.clipRect=s.clipRect(0,d-2,9999,0),r.contentGroup.clip(k)),m(e),b||(this.nav=b=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,f,f).add(b),y("upTracker").on("click",function(){r.scroll(-1,u)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(b),this.down=s.symbol("triangle-down",0,0,f,f).add(b),y("downTracker").on("click",function(){r.scroll(1,u)})),r.scroll(0),t=x):b&&(m(),this.nav=b.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&&ex(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(),sR(function(){sP(i,"afterScroll",{currentPage:d})},eg(sB(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 nf,a=t instanceof sm,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(sL(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),sP(o,"itemClick",{browserEvent:e,legendItem:t},i),s?t.firePointEvent("legendItemClick",{browserEvent:e}):a&&sP(t,"legendItemClick",{browserEvent:e})})}},t.prototype.createCheckboxForItem=function(t){t.checkbox=sS("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),sw(t.checkbox,"click",function(e){var i=e.target;sP(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})},t}();(u=sN||(sN={})).compose=function(t){sD(sx,"Core.Legend")&&sw(t,"beforeMargins",function(){this.legend=new u(this,this.options.legend)})};var sW=sN,sG=function(){return(sG=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)},sX=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))},sH=eV.numberFormat,sY=oz.registerEventOptions,sF=td.charts,s_=td.doc,sj=td.marginNames,sU=td.svg,sV=td.win,sZ=nK.seriesTypes,sq=tR.addEvent,sK=tR.attr,s$=tR.createElement,sJ=tR.css,sQ=tR.defined,s0=tR.diffObjects,s1=tR.discardElement,s2=tR.erase,s3=tR.error,s5=tR.extend,s6=tR.find,s9=tR.fireEvent,s4=tR.getAlignFactor,s8=tR.getStyle,s7=tR.isArray,at=tR.isNumber,ae=tR.isObject,ai=tR.isString,ao=tR.merge,ar=tR.objectEach,an=tR.pick,as=tR.pInt,aa=tR.relativeLength,ah=tR.removeEvent,al=tR.splat,ad=tR.syncTimeout,ac=tR.uniqueKey,ap=function(){function t(t,e,i){this.sharedClips={};var o=sX([],arguments,!0);(ai(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=sG(sG({},e),{type:an(t.zoomType,e.type),key:an(t.zoomKey,e.key),pinchType:an(t.pinchType,e.pinchType),singleTouch:an(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:ao(e.resetButton,t.resetZoomButton)})},t.prototype.init=function(t,e){s9(this,"init",{args:arguments},function(){var i,o,r=ao(t3,t),n=r.chart,s=this.renderTo||n.renderTo;this.userOptions=s5({},t),(this.renderTo=ai(s)?s_.getElementById(s):s)||s3(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)&&void 0!==i?i:null===(o=this.renderTo.closest("[lang]"))||void 0===o?void 0:o.lang,this.time=new tQ(s5(r.time||{},{locale:this.locale})),r.time=this.time.options,this.numberFormatter=(n.numberFormatter||sH).bind(this),this.styledMode=n.styledMode,this.hasCartesianSeries=n.showAxes,this.index=sF.length,sF.push(this),td.chartCount++,sY(this,n),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),s9(this,"afterInit"),this.firstRender()})},t.prototype.initSeries=function(t){var e=this.options.chart,i=t.type||e.type,o=sZ[i];o||s3(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]=al(this.options[t]).slice(),r=this.userOptions[t]=this.userOptions[t]?al(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 sm&&(a.name=a.getName()),a.options.isInternal||(o[n]=a.options,r[n]=a.userOptions))}},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?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},M=i.paneCoordinates?k.pos+m:a+m;M>=Math.max(u+a,k.pos)&&M<=Math.min(u+a+g.height,k.pos+k.len)||(y.isInsidePlot=!1)}return s9(this,"afterIsInsidePlot",y),y.isInsidePlot},t.prototype.redraw=function(t){s9(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),ex(!!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&&s9(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(){s9(t,"afterSetExtremes",s5(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||i)&&t.redraw()}),u&&this.drawChartBox(),s9(this,"predraw"),s.forEach(function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),a&&a.reset(!0),d.draw(),s9(this,"redraw"),s9(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=s6(this.axes,i)||s6(this.series,i),r=0;!o&&r<e.length;r++)o=s6(e[r].points||[],i);return o},t.prototype.createAxes=function(){var t=this.userOptions;s9(this,"createAxes");for(var e=0,i=["xAxis","yAxis"];e<i.length;e++)for(var o=i[e],r=t[o]=al(t[o]||{}),n=0;n<r.length;n++)new ru(this,r[n],o);s9(this,"afterCreateAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){an(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]=ao(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(s5("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?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=ao(l),a=(null==i?void 0:i.textPxLength)||0;if(i&&o){s9(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=ao({y:"bottom"===u?c:v+c},{align:"title"===t?m<g?"left":"center":null===(e=n.title)||void 0===e?void 0:e.alignValue},o),b=o.width||(m>g?n.chartWidth:r.width)/y;i.alignValue!==x.align&&(i.placed=!1);var k=Math.round(i.css({width:""+b+"px"}).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*s4(x.align))+" ".concat(p)}),!o.floating){var M=k*(k<1.2*p?1:y);"top"===u?s[0]=Math.ceil(s[0]+M):"bottom"===u&&(s[2]=Math.ceil(s[2]+M))}}},this),s[0]&&"top"===((null===(e=a.title)||void 0===e?void 0:e.verticalAlign)||"top")&&(s[0]+=(null===(i=a.title)||void 0===i?void 0:i.margin)||0),s[2]&&(null===(o=a.caption)||void 0===o?void 0:o.verticalAlign)==="bottom"&&(s[2]+=(null===(r=a.caption)||void 0===r?void 0:r.margin)||0);var d=!this.titleOffset||this.titleOffset.join(",")!==s.join(",");this.titleOffset=s,s9(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:s8(this.renderTo,"width",!0)||0,height:s8(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?void 0:t.style.height)&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,i||r.width||600),this.chartHeight=Math.max(0,aa(o,this.chartWidth)||(n?400:r.height)),this.containerBox=r},t.prototype.temporaryDisplay=function(t){var e,i=this.renderTo;if(t)for(;i&&i.style;)i.hcOrigStyle&&(sJ(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(s_.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(s_.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,s_.body.appendChild(i)),("none"===s8(i,"display",!1)||i.hcOricDetached)&&(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),sJ(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==s_.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e,i=this.options,o=i.chart,r="data-highcharts-chart",n=ac(),s=this.renderTo,a=as(sK(s,r));at(a)&&sF[a]&&sF[a].hasRendered&&sF[a].destroy(),sK(s,r,this.index),s.innerHTML=eD.emptyHTML,o.skipClone||s.offsetWidth||this.temporaryDisplay(),this.getChartSize();var h=this.chartHeight,l=this.chartWidth;sJ(s,{overflow:"hidden"}),this.styledMode||(e=s5({position:"relative",overflow:"hidden",width:l+"px",height:h+"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"},o.style||{}));var d=s$("div",{id:n},e,s);this.container=d,this.getChartSize(),l===this.chartWidth||(l=this.chartWidth,this.styledMode||sJ(d,{width:an(null===(t=o.style)||void 0===t?void 0:t.width,l+"px")})),this.containerBox=this.getContainerBox(),this._cursor=d.style.cursor;var c=o.renderer||!sU?eZ.getRendererType(o.renderer):ou;if(this.renderer=new c(d,l,h,void 0,o.forExport,i.exporting&&i.exporting.allowHTML,this.styledMode),ex(void 0,this),this.setClassName(o.className),this.styledMode)for(var p in i.defs)this.renderer.definition(i.defs[p]);else this.renderer.setStyle(o.style);this.renderer.chartIndex=this.index,s9(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,o=this.titleOffset;this.resetMargins(),o[0]&&!sQ(i[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+e[0])),o[2]&&!sQ(i[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),s9(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):i&&i.length&&r(i),sj.forEach(function(i,r){sQ(o[r])||(t[i]+=e[r])}),t.setChartSize()},t.prototype.getOptions=function(){return s0(this.userOptions,t3)},t.prototype.reflow=function(t){var e,i=this,o=i.containerBox,r=i.getContainerBox();null===(e=i.pointer)||void 0===e||delete e.chartPosition,!i.isPrinting&&!i.isResizing&&o&&r.width&&((r.width!==o.width||r.height!==o.height)&&(tR.clearTimeout(i.reflowTimeout),i.reflowTimeout=ad(function(){i.container&&i.setSize(void 0,void 0,!1)},t?100:0)),i.containerBox=r)},t.prototype.setReflow=function(){var t=this,e=function(e){var i;(null===(i=t.options)||void 0===i?void 0:i.chart.reflow)&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{var i=sq(sV,"resize",e);sq(this,"destroy",i)}},t.prototype.setSize=function(t,e,i){var o=this,r=o.renderer;o.isResizing+=1,ex(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?em:sJ)(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,s9(o,"resize"),setTimeout(function(){o&&s9(o,"endResize")},eg(n).duration)),o.isResizing-=1},t.prototype.setChartSize=function(t){var e,i,o,r,n=this.chartHeight,s=this.chartWidth,a=this.inverted,h=this.spacing,l=this.renderer,d=this.clipOffset,c=Math[a?"floor":"round"];this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=o=Math.max(0,Math.round(s-e-this.marginRight)),this.plotHeight=r=Math.max(0,Math.round(n-i-this.marginBottom)),this.plotSizeX=a?r:o,this.plotSizeY=a?o:r,this.spacingBox=l.spacingBox={x:h[3],y:h[0],width:s-h[3]-h[1],height:n-h[0]-h[2]},this.plotBox=l.plotBox={x:e,y:i,width:o,height:r},d&&(this.clipBox={x:c(d[3]),y:c(d[0]),width:c(this.plotSizeX-d[1]-d[3]),height:c(this.plotSizeY-d[0]-d[2])}),t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),l.alignElements()),s9(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){s9(this,"resetMargins");var t=this,e=t.options.chart,i=e.plotBorderWidth||0,o=i/2;["margin","spacing"].forEach(function(i){var o=e[i],r=ae(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach(function(o,n){t[i][n]=an(e[i+o],r[n])})}),sj.forEach(function(e,i){t[e]=an(t.margin[i],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,M="animate";x||(this.chartBackground=x=r.rect().addClass("highcharts-background").add(),M="attr"),a?t=e=x.strokeWidth():(e=(t=o.borderWidth||0)+(o.shadow?8:0),i={fill:l||"none"},(t||x["stroke-width"])&&(i.stroke=o.borderColor,i["stroke-width"]=t),x.attr(i).shadow(o.shadow)),x[M]({x:e/2,y:e/2,width:n-e-t%2,height:s-e-t%2,r:o.borderRadius}),M="animate",b||(M="attr",this.plotBackground=b=r.rect().addClass("highcharts-plot-background").add()),b[M](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),M="animate",k||(M="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[M](k.crisp({x:p,y:u,width:f,height:g},-k.strokeWidth())),this.isDirtyBox=!1,s9(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=sZ[r.type],i=r[s]||e&&e.prototype[s],t=n&&n.length;!i&&t--;)(e=sZ[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 i=t.options.linkedTo;if(ai(i)){var o=void 0;(o=":previous"===i?e.series[t.index-1]:e.get(i))&&o.linkedParent!==t&&(o.linkedSeries.push(t),t.linkedParent=o,o.enabledDataSorting&&t.setDataSortingOptions(),t.visible=an(t.options.visible,o.options.visible,t.visible))}}),s9(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=this.axes,o=this.colorAxis,r=this.renderer,n=this.options.chart.axisLayoutRuns||2,s=function(t){t.forEach(function(t){t.visible&&t.render()})},a=0,h=!0,l=0;this.setTitle(),s9(this,"beforeMargins"),null===(t=this.getStacks)||void 0===t||t.call(this),this.getMargins(!0),this.setChartSize();for(var d=0;d<i.length;d++){var c=i[d],p=c.options,u=p.labels;if(this.hasCartesianSeries&&c.horiz&&c.visible&&u.enabled&&c.series.length&&"colorAxis"!==c.coll&&!this.polar){a=p.tickLength,c.createGroups();var f=new oZ(c,0,"",!0),g=f.createLabel("x",u);if(f.destroy(),g&&an(u.reserveSpace,!at(p.crossing))&&(a=g.getBBox().height+u.distance+Math.max(p.offset||0,0)),a){null==g||g.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-a,0);(h||e||n>1)&&l<n;){for(var v=this.plotWidth,m=this.plotHeight,y=0;y<i.length;y++){var c=i[y];0===l?c.setScale():(c.horiz&&h||!c.horiz&&e)&&c.setTickInterval(!0)}0===l?this.getAxisMargins():this.getMargins(),h=v/this.plotWidth>(l?1:1.1),e=m/this.plotHeight>(l?1:1.05),l++}this.drawChartBox(),this.hasCartesianSeries?s(i):o&&o.length&&s(o),this.seriesGroup||(this.seriesGroup=r.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=this,i=ao(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){i.href&&(sV.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,i=e.axes,o=e.series,r=e.container,n=r&&r.parentNode;for(s9(e,"destroy"),e.renderer.forExport?s2(sF,e):sF[e.index]=void 0,td.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),ah(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=o.length;t--;)o[t]=o[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),r&&(r.innerHTML=eD.emptyHTML,ah(r),n&&s1(r)),ar(e,function(t,i){delete e[i]})},t.prototype.firstRender=function(){var t,e=this,i=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.createAxes();var o=s7(i.series)?i.series:[];i.series=[],o.forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSortedData(),s9(e,"beforeRender"),e.render(),null===(t=e.pointer)||void 0===t||t.getChartPosition(),e.renderer.imgCount||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),s9(this,"load"),s9(this,"render"),sQ(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),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":(e&&e.element.textContent||"").replace(/</g,"&lt;")}),t.accessibility&&!1===t.accessibility.enabled||s3('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.addSeries=function(t,e,i){var o,r=this;return t&&(e=an(e,!0),s9(r,"addSeries",{options:t},function(){o=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),o.enabledDataSorting&&o.setData(t.data,!1),s9(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 ru(this,e.axis,t);return an(e.redraw,!0)&&this.redraw(e.animation),i},t.prototype.showLoading=function(t){var e=this,i=e.options,o=i.loading,r=function(){n&&sJ(n,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},n=e.loadingDiv,s=e.loadingSpan;n||(e.loadingDiv=n=s$("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),s||(e.loadingSpan=s=s$("span",{className:"highcharts-loading-inner"},null,n),sq(e,"redraw",r)),n.className="highcharts-loading",eD.setElementHTML(s,an(t,i.lang.loading,"")),e.styledMode||(sJ(n,s5(o.style,{zIndex:10})),sJ(s,o.labelStyle),e.loadingShown||(sJ(n,{opacity:0,display:""}),em(n,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,r()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||em(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){sJ(e,{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=[];s9(a,"update",{options:t}),l||a.setResponsive(!1,!0),t=s0(t,a.options),a.userOptions=ao(a.userOptions,t);var c=t.chart;c&&(ao(!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&&sY(this,c),ar(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),ar(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)&&ao(!0,a.options[i],t[i]),"chart"!==i&&-1!==a.propsRequireUpdateSeries.indexOf(i)&&(n=!0)}),this.collectionsWithUpdate.forEach(function(e){t[e]&&(al(t[e]).forEach(function(t,o){var r,n=sQ(t.id);n&&(r=a.get(t.id)),!r&&a[e]&&(r=a[e][an(t.index,o)])&&(n&&sQ(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=c&&c.width,u=c&&(ai(c.height)?aa(c.height,p||a.chartWidth):c.height);s||at(p)&&p!==a.chartWidth||at(u)&&u!==a.chartHeight?a.setSize(p,u,o):an(e,!0)&&a.redraw(o),s9(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=t3.lang,i=t.zooming.resetButton,o=i.theme,r="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function n(){t.zoomOut()}s9(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)}),s9(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){var t=this;s9(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),s9(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"}),sJ(i.container,{cursor:"move"})})},t.prototype.transform=function(t){var e,i,o,r,n,s,a=this,h=t.axes,l=void 0===h?this.axes:h,d=t.event,c=t.from,p=void 0===c?{}:c,u=t.reset,f=t.selection,g=t.to,v=void 0===g?{}:g,m=t.trigger,y=this.inverted,x=this.time,b=!1;null===(i=this.hoverPoints)||void 0===i||i.forEach(function(t){return t.setState()});for(var k=0;k<l.length;k++){var M=l[k],w=M.horiz,S=M.len,A=M.minPointOffset,T=void 0===A?0:A,C=M.options,O=M.reversed,P=w?"width":"height",E=w?"x":"y",L=an(v[P],M.len),B=an(p[P],M.len),D=10>Math.abs(L)?1:L/B,I=(p[E]||0)+B/2-M.pos,z=I-((null!==(o=v[E])&&void 0!==o?o:M.pos)+L/2-M.pos)/D,R=O&&!y||!O&&y?-1:1;if(u||!(I<0)&&!(I>M.len)){var N=M.toValue(z,!0)+(f||M.isOrdinal?0:T*R),W=M.toValue(z+S/D,!0)-(f||M.isOrdinal?0:T*R||0),G=M.allExtremes;if(N>W&&(N=(e=[W,N])[0],W=e[1]),1===D&&!u&&"yAxis"===M.coll&&!G){for(var X=0,H=M.series;X<H.length;X++){var Y=H[X],F=Y.getExtremes(Y.getProcessedData(!0).modified.getColumn("y")||[],!0);null!=G||(G={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),at(F.dataMin)&&at(F.dataMax)&&(G.dataMin=Math.min(F.dataMin,G.dataMin),G.dataMax=Math.max(F.dataMax,G.dataMax))}M.allExtremes=G}var _=s5(M.getExtremes(),G||{}),j=_.dataMin,U=_.dataMax,V=_.min,Z=_.max,q=x.parse(C.min),K=x.parse(C.max),$=null!=j?j:q,J=null!=U?U:K,Q=W-N,tt=M.categories?0:Math.min(Q,J-$),te=$-tt*(sQ(q)?0:C.minPadding),ti=J+tt*(sQ(K)?0:C.maxPadding),to=M.allowZoomOutside||1===D||"zoom"!==m&&D>1,tr=Math.min(null!=q?q:te,te,to?V:te),tn=Math.max(null!=K?K:ti,ti,to?Z:ti);(!M.isOrdinal||M.options.overscroll||1!==D||u)&&(N<tr&&(N=tr,D>=1&&(W=N+Q)),W>tn&&(W=tn,D>=1&&(N=W-Q)),(u||M.series.length&&(N!==V||W!==Z)&&N>=tr&&W<=tn)&&(f?f[M.coll].push({axis:M,min:N,max:W}):(M.isPanning="zoom"!==m,M.isPanning&&(s=!0),M.setExtremes(u?void 0:N,u?void 0:W,!1,!1,{move:z,trigger:m,scale:D}),!u&&(N>tr||W<tn)&&"mousewheel"!==m&&(n=!0)),b=!0),d&&(this[w?"mouseDownX":"mouseDownY"]=d[w?"chartX":"chartY"]))}}return b&&(f?s9(this,"selection",f,function(){delete t.selection,t.trigger="zoom",a.transform(t)}):(!n||s||this.resetZoomButton?!n&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===m&&(null!==(r=this.options.chart.animation)&&void 0!==r?r:this.pointCount<100)))),b},t}();s5(ap.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ap.prototype.addAxis,[!0]],yAxis:[ap.prototype.addAxis,[!1]],series:[ap.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 au=td.composed,af=tR.addEvent,ag=tR.createElement,av=tR.css,am=tR.defined,ay=tR.erase,ax=tR.merge,ab=tR.pushUnique;function ak(){var t=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t&&(this.scrollablePlotArea=t=new aw(this)),null==t||t.applyFixed()}function aM(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}var aw=function(){function t(t){var e,i,o,r=t.options.chart,n=eZ.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=ag("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),d=this.scrollingContainer=ag("div",{className:"highcharts-scrolling"},h,l),c=this.innerContainer=ag("div",{className:"highcharts-inner-container"},void 0,d),p=this.fixedDiv=ag("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null===(e=r.style)||void 0===e?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)&&void 0!==i?i:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),d.parentNode.insertBefore(p,d),av(t.renderTo,{overflow:"visible"}),af(t,"afterShowResetZoom",a),af(t,"afterApplyDrilldown",a),af(t,"afterLayOutTitles",a),af(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;ab(au,this.compose)&&(af(t,"afterInit",aM),af(e,"afterSetChartSize",function(t){return o.afterSetSize(t.target,t)}),af(e,"render",ak),af(i,"show",aM))},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&&(s?(t.scrollablePixelsX=i=Math.max(0,s-t.chartWidth),i&&(t.scrollablePlotBox=ax(t.plotBox),l.width=t.plotWidth+=i,h[d?"height":"width"]+=i,r=!0)):a&&(t.scrollablePixelsY=o=Math.max(0,a-t.chartHeight),am(o)&&(t.scrollablePlotBox=ax(t.plotBox),l.height=t.plotHeight+=o,h[d?"width":"height"]+=o,r=!1)),am(r)&&!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())}},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()),ev(e.container),av(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)||void 0===t||t.attr({width:b,height:k}),av(r,{width:""+s+"px",height:""+a+"px"}),am(o)||(r.scrollLeft=f*(void 0===y?0:y),r.scrollTop=v*(void 0===x?0:x));var M=c-n[0]-1,w=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,M],["L",d-1,M],["L",d-1,S],["L",0,S],["Z"],["M",T,M],["L",s,M],["L",s,S],["L",T,S],["Z"]]:v&&(O=[["M",w,0],["L",w,c-1],["L",A,c-1],["L",A,0],["Z"],["M",w,C],["L",w,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;if(n&&!r?e=".highcharts-yaxis":n&&r?e=".highcharts-xaxis":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];ab(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];ay(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}(),aS=eV.format,aA=nK.series,aT=tR.destroyObjectProperties,aC=tR.fireEvent,aO=tR.getAlignFactor,aP=tR.isNumber,aE=tR.pick,aL=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(){aT(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,i=this.options,o=i.format,r=o?aS(o,this,e):i.formatter.call(this);if(this.label)this.label.attr({text:r,visibility:"hidden"});else{this.label=e.renderer.label(r,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels");var n={r:i.borderRadius||0,text:r,padding:aE(i.padding,5),visibility:"hidden"};e.styledMode||(n.fill=i.backgroundColor,n.stroke=i.borderColor,n["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(n),this.label.added||this.label.add(t)}this.label.labelrank=e.plotSizeY,aC(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"===aE(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&&aA.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*aO(l.textAlign||"center"),rotationOriginY:f.height/2}),aE(!v&&l.crop,!0)&&(m=aP(h.x)&&aP(h.y)&&c.isInsidePlot(h.x-g+(h.width||0),h.y)&&c.isInsidePlot(h.x+g,h.y)),h[m?"show":"hide"]()}aC(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*aO(o)-1),y:e.height/2*2*(1-aO(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:aE(o,this.total,0),l=e.toPixels(h),d=t.xAxis||i.xAxis[0],c=aE(r,d.translate(this.x))+n,p=Math.abs(l-e.toPixels(a||aP(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}(),aB=nK.series.prototype,aD=tR.addEvent,aI=tR.correctFloat,az=tR.defined,aR=tR.destroyObjectProperties,aN=tR.fireEvent,aW=tR.isNumber,aG=tR.objectEach,aX=tR.pick;function aH(){var t=this.inverted;this.axes.forEach(function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(function(e){var i=e.xAxis&&e.xAxis.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,aX(e.options.stack,""),t?i.top:i.left,t?i.height:i.width].join(","))})}function aY(){var t,e=this.stacking;if(e){var i=e.stacks;aG(i,function(t,e){aR(t),delete i[e]}),null===(t=e.stackTotalGroup)||void 0===t||t.destroy()}}function aF(){this.stacking||(this.stacking=new aq(this))}function a_(t,e,i,o){return!az(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 aj(){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?void 0:o[s])?void 0:h.points[t.key||""])&&a.call(e,l,h,d)})}function aU(t,e,i){var o=e.total?100/e.total:0;t[0]=aI(t[0]*o),t[1]=aI(t[1]*o),this.stackedYData[i]=t[1]}function aV(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?aB.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function aZ(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,M=this.negStacks,w=t.stacking,S=w.stacks,A=w.oldStacks;for(w.stacksTouched+=1,d=0;d<g;d++){var T=p[d]||0,C=u[d],O=aW(C)&&C||0;l=(r=this.getStackIndicator(r,T,this.index)).key||"",S[h=(n=M&&O<(y?0:m))?k:b]||(S[h]={}),S[h][T]||((null===(i=A[h])||void 0===i?void 0:i[T])?(S[h][T]=A[h][T],S[h][T].total=null):S[h][T]=new aL(t,t.options.stackLabels,!!n,T,x)),s=S[h][T],null!==C?(s.points[l]=s.points[this.index]=[aX(s.cumulative,y)],az(s.cumulative)||(s.base=l),s.touched=w.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=M&&(null===(o=S[a])||void 0===o?void 0:o[T])?(a=S[a][T]).total=Math.max(a.total||0,P)+Math.abs(O):aI(P+Math.abs(O))):"group"===c?aW(C)&&P++:P=aI(P+O),"group"===c?s.cumulative=(P||1)-1:s.cumulative=aI(aX(s.cumulative,y)+O),s.total=P,null!==C&&(s.points[l].push(s.cumulative),f[d]=s.cumulative,s.hasValidPoints=!0)}"percent"===c&&(w.usePercentage=!0),"group"!==c&&(this.stackedYData=f),w.oldStacks={}}}var aq=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();aN(i,"afterBuildStacks")},t.prototype.cleanStacks=function(){this.oldStacks&&(this.stacks=this.oldStacks,aG(this.stacks,function(t){aG(t,function(t){t.cumulative=t.total})}))},t.prototype.resetStacks=function(){var t=this;aG(this.stacks,function(e){aG(e,function(i,o){aW(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=ey(i,(null===(t=e.options.stackLabels)||void 0===t?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),aG(r,function(t){aG(t,function(t){t.render(s)})}),s.animate({opacity:1},n)},t}();(j||(j={})).compose=function(t,e,i){var o=e.prototype,r=i.prototype;o.getStacks||(aD(t,"init",aF),aD(t,"destroy",aY),o.getStacks=aH,r.getStackIndicator=a_,r.modifyStacks=aj,r.percentStacker=aU,r.setGroupedPoints=aV,r.setStackedPoints=aZ)};var aK=j,a$=(f=function(t,e){return(f=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}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),aJ=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))},aQ=tR.defined,a0=tR.merge,a1=tR.isObject,a2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a$(e,t),e.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),o=this.chart.styledMode;aJ([this],this.zones,!0).forEach(function(r,n){var s,a=r.graph,h=a?"animate":"attr",l=r.dashStyle||e.dashStyle;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).shadow(e.shadow&&a0({filterUnits:"userSpaceOnUse"},a1(e.shadow)?e.shadow:{}))),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.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||f&&f.rightCliff)&&!i&&(o=!0),g&&!aQ(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=a0(sm.defaultOptions,{legendSymbol:"lineMarker"}),e}(sm);nK.registerSeriesType("line",a2);var a3={threshold:0,legendSymbol:"areaMarker"},a5=(g=function(t,e){return(g=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}g(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a6=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))},a9=nK.seriesTypes.line,a4=tR.extend,a8=tR.merge,a7=tR.objectEach,ht=tR.pick,he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a5(e,t),e.prototype.drawGraph=function(){var e=this;this.areaPath=[],t.prototype.drawGraph.apply(this);var i=this.areaPath,o=this.options;a6([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)&&void 0!==n?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=a9.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=ht(n.connectNulls,"percent"===s),g=function(i,o,r){var n,f,g=t[i],v=s&&c[g.x].points[d],m=g[r+"Null"]||0,y=g[r+"Cliff"]||0,x=!0;y||m?(n=(m?v[0]:v[1])+y,f=v[0]+y,x=!!m):!s&&t[o]&&t[o].isNull&&(n=f=p),void 0!==n&&(l.push({plotX:e,plotY:null===n?u:a.getThreshold(n),isNull:x,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,e=ht(t[v].rectPlotX,t[v].plotX),o=s?ht(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 M=r.call(this,l,!1,f);return this.chart.series.length>1&&s&&l.some(function(t){return t.isCliff})&&(k.hasStackedCliffs=M.hasStackedCliffs=!0),k.xMap=y.xMap,this.areaPath=k,M},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);if(t=t||this.points,this.options.stacking){for(var p=0;p<t.length;p++)t[p].leftNull=t[p].rightNull=void 0,a[t[p].x]=t[p];a7(s,function(t,e){null!==t.total&&o.push(e)}),o.sort(function(t,e){return t-e});var u=h.map(function(t){return t.visible});o.forEach(function(t,p){var f,g,v=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[p+i]],v=0;if(n)for(var m=c;m>=0&&m<l;){var y=h[m].index;!(f=n.points[y])&&(y===e.index?a[t][r]=!0:u[m]&&(g=s[t].points[y])&&(v-=g[1]-g[0])),m+=d}a[t][1===i?"rightCliff":"leftCliff"]=v});else{for(var m=c;m>=0&&m<l;){var y=h[m].index;if(f=s[t].points[y]){v=f[1];break}m+=d}v=ht(v,0),v=n.translate(v,0,1,0,1),i.push({isNull:!0,plotX:r.translate(t,0,0,0,1),x:t,plotY:v,yBottom:v})}})}return i},e.defaultOptions=a8(a9.defaultOptions,a3),e}(a9);a4(he.prototype,{singleStacks:!1}),nK.registerSeriesType("area",he);var hi=(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)}),ho=nK.seriesTypes.line,hr=tR.merge,hn=tR.pick,hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hi(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",hn(l.rightContX,l.plotX,0),hn(l.rightContY,l.plotY,0),hn(o,a,0),hn(r,h,0),a,h];return l.rightContX=l.rightContY=void 0,m},e.defaultOptions=hr(ho.defaultOptions),e}(ho);nK.registerSeriesType("spline",hs);var ha=(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)}),hh=nK.seriesTypes,hl=hh.area,hd=hh.area.prototype,hc=tR.extend,hp=tR.merge,hu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ha(e,t),e.defaultOptions=hp(hs.defaultOptions,hl.defaultOptions),e}(hs);hc(hu.prototype,{getGraphPath:hd.getGraphPath,getStackPoints:hd.getStackPoints,drawGraph:hd.drawGraph}),nK.registerSeriesType("areaspline",hu);var hf={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"},hg=(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)}),hv=ee.parse,hm=td.noop,hy=tR.clamp,hx=tR.crisp,hb=tR.defined,hk=tR.extend,hM=tR.fireEvent,hw=tR.isArray,hS=tR.isNumber,hA=tR.merge,hT=tR.pick,hC=tR.objectEach,hO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hg(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=hy(r.toPixels(a.threshold||0),n,n+r.len),d?(i+=s?-Math.floor(l[0]):Math.ceil(l[2]),c.translateX=i-r.len):(i+=s?Math.ceil(l[0]):-Math.floor(l[2]),c.translateY=i),o.clipBox&&o.setClip(),o.group.attr(c)):(e=Number(o.group.attr(p)),o.group.animate({scaleY:1},hk(eg(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?void 0:t.hasBreaks)&&(null===(e=n.ordinal)||void 0===e?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,hT(r.pointWidth,u*(1-2*r.pointPadding))),g=(o.columnIndex||0)+(h?1:0);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=hx(e+o,r,n)-(e=hx(e,r,n)),this.options.crisp&&(i=hx(t+i,r)-(t=hx(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;hC(null===(r=this.xAxis.stacking)||void 0===r?void 0:r.stacks,function(t){var e,o="number"==typeof i.x?null===(e=t[i.x.toString()])||void 0===e?void 0:e.points:void 0,r=null==o?void 0:o[n.index],l={};if(o&&hw(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(hb(i)){if(hS(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=this,e=t.chart,i=t.options,o=t.dense=t.closestPointRange*t.xAxis.transA<2,r=t.borderWidth=hT(i.borderWidth,o?0:1),n=t.xAxis,s=t.yAxis,a=i.threshold,h=hT(i.minPointLength,5),l=t.getColumnMetrics(),d=l.width,c=t.pointXOffset=l.offset,p=t.dataMin,u=t.dataMax,f=t.translatedThreshold=s.getThreshold(a),g=t.barW=Math.max(d,1+2*r);i.pointPadding&&i.crisp&&(g=Math.ceil(g)),sm.prototype.translate.apply(t),t.points.forEach(function(o){var r,v=hT(o.yBottom,f),m=999+Math.abs(v),y=o.plotX||0,x=hy(o.plotY,-m,s.len+m),b=Math.min(x,v),k=Math.max(x,v)-b,M=d,w=y+c,S=g;h&&Math.abs(k)<h&&(k=h,r=!s.reversed&&!o.negative||s.reversed&&o.negative,hS(a)&&hS(u)&&o.y===a&&u<=a&&(s.min||0)<a&&(p!==u||(s.max||0)<=a)&&(r=!r,o.negative=!o.negative),b=Math.abs(b-f)>h?v-h:f-(r?h:0)),hb(o.options.pointWidth)&&(w-=Math.round(((M=S=Math.ceil(o.options.pointWidth))-d)/2)),i.centerInCategory&&(w=t.adjustForMissingColumns(w,M,o,l)),o.barX=w,o.pointWidth=M,o.tooltipPos=e.inverted?[hy(s.len+s.pos-e.plotLeft-x,s.pos-e.plotLeft,s.len+s.pos-e.plotLeft),n.len+n.pos-e.plotTop-w-S/2,k]:[n.left-e.plotLeft+w+S/2,hy(x+s.pos-e.plotTop,s.pos-e.plotTop,s.len+s.pos-e.plotTop),k],o.shapeType=t.pointClass.prototype.shapeType||"roundedRect",o.shapeArgs=t.crispCol(w,o.isNull?f:b,S,o.isNull?0:k)}),hM(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=this.options,s=this.pointAttrToOptions||{},a=s.stroke||"borderColor",h=s["stroke-width"]||"borderWidth",l=t&&t.color||this.color,d=t&&t[a]||n[a]||l,c=t&&t.options.dashStyle||n.dashStyle,p=t&&t[h]||n[h]||this[h]||0,u=hT(t&&t.opacity,n.opacity,1);t&&this.zones.length&&(o=t.getZone(),l=t.options.color||o&&(o.color||t.nonZonedColor)||this.color,o&&(d=o.borderColor||d,c=o.dashStyle||c,p=o.borderWidth||p)),e&&t&&(r=(i=hA(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,l=i.color||void 0!==r&&hv(l).brighten(i.brightness).get()||l,d=i[a]||d,p=i[h]||p,c=i.dashStyle||c,u=hT(i.opacity,u));var f={fill:l,stroke:d,"stroke-width":p,opacity:u};return c&&(f.dashstyle=c),f},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i=this,o=this.chart,r=i.options,n=o.renderer,s=r.animationLimit||250;t.forEach(function(t){var a=t.plotY,h=t.graphic,l=!!h,d=h&&o.pointCount<s?"animate":"attr";hS(a)&&null!==t.y?(e=t.shapeArgs,h&&t.hasNewShapeType()&&(h=h.destroy()),i.enabledDataSorting&&(t.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!h&&(t.graphic=h=n[t.shapeType](e).add(t.group||i.group),h&&i.enabledDataSorting&&o.hasRendered&&o.pointCount<s&&(h.attr({x:t.startXPos}),l=!0,d="animate")),h&&l&&h[d](hA(e)),o.styledMode||h[d](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&r.shadow),h&&(h.addClass(t.getClassName(),!0),h.attr({visibility:t.visible?"inherit":"hidden"}))):h&&(t.graphic=h.destroy())})},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,i=this,o=i.chart,r=o.pointer,n=function(t){null==r||r.normalize(t);var e=null==r?void 0:r.getPointFromEvent(t),n=!o.scrollablePlotArea||o.isInsidePlot(t.chartX-o.plotLeft,t.chartY-o.plotTop,{visiblePlotOnly:!0});r&&e&&i.options.enableMouseTracking&&n&&(r.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){e=hw(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){(e.div||e.element).point=t})}),i._hasTracking||(i.trackerGroups.forEach(function(t){i[t]&&(i[t].addClass("highcharts-tracker").on("mouseover",n).on("mouseout",function(t){null==r||r.onTrackerMouseOut(t)}).on("touchstart",n),!o.styledMode&&i.options.cursor&&i[t].css({cursor:i.options.cursor}))}),i._hasTracking=!0),hM(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)}),sm.prototype.remove.apply(t,arguments)},e.defaultOptions=hA(sm.defaultOptions,hf),e}(sm);hk(hO.prototype,{directTouch:!0,getSymbol:hm,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),nK.registerSeriesType("column",hO);var hP=eV.format,hE=tR.defined,hL=tR.extend,hB=tR.fireEvent,hD=tR.getAlignFactor,hI=tR.isArray,hz=tR.isString,hR=tR.merge,hN=tR.objectEach,hW=tR.pick,hG=tR.pInt,hX=tR.splat;!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=hE(l)&&hE(d)&&s.isInsidePlot(l,Math.round(d),{inverted:h,paneCoordinates:!0,series:this}),u=0===c&&"justify"===hW(i.overflow,a?"none":"justify"),f=this.visible&&!1!==t.visible&&hE(l)&&(t.series.forceDL||a&&!u||p||hW(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=hL({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?void 0:n.len)||0),hL(i,{width:m.width,height:m.height}),v=o,a&&this.xAxis&&!u&&this.setDataLabelStartPos(t,e,r,p,v),e.align(hR(i,{width:y.width,height:y.height}),!1,o,!1),e.alignAttr.x+=hD(i.align)*(y.width-m.width),e.alignAttr.y+=hD(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(hW(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(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function r(t){var e=this.hasRendered||0,i=this.initDataLabelsGroup().attr({opacity:+e});return!e&&i&&(this.visible&&i.show(),this.options.animation?i.animate({opacity:1},t):i.attr({opacity:1})),i}function n(t){t=t||this.points;var e,i,o=this,r=o.chart,n=o.options,s=r.renderer,l=r.options.chart,d=l.backgroundColor,c=l.plotBackgroundColor,p=s.getContrast(hz(c)&&c||hz(d)&&d||"#000000"),u=h(o),f=u[0],g=f.animation,v=f.defer?ey(r,g,o):{defer:0,duration:0};hB(this,"drawDataLabels"),(null===(e=o.hasDataLabels)||void 0===e?void 0:e.call(o))&&(i=this.initDataLabels(v),t.forEach(function(t){var e,h,l=t.dataLabels||[];hX(a(u,t.dlOptions||(null===(e=t.options)||void 0===e?void 0:e.dataLabels))).forEach(function(e,a){var h,d,c,u,f=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}return!0}(t,e),g=e.backgroundColor,v=e.borderColor,m=e.distance,y=e.style,x=void 0===y?{}:y,b={},k=l[a],M=!k;f&&(d=hE(h=hW(e[t.formatPrefix+"Format"],e.format))?hP(h,t,r):(e[t.formatPrefix+"Formatter"]||e.formatter).call(t,e),c=e.rotation,!r.styledMode&&(x.color=hW(e.color,x.color,hz(o.color)?o.color:void 0,"#000000"),"contrast"===x.color?("none"!==g&&(u=g),t.contrastColor=s.getContrast("auto"!==u&&u||t.color||o.color),x.color=u||!hE(m)&&e.inside||0>hG(m||0)||n.stacking?t.contrastColor:p):delete t.contrastColor,n.cursor&&(x.cursor=n.cursor)),b={r:e.borderRadius||0,rotation:c,padding:e.padding,zIndex:1},r.styledMode||(b.fill="auto"===g?t.color:g,b.stroke="auto"===v?t.color:v,b["stroke-width"]=e.borderWidth),hN(b,function(t,e){void 0===t&&delete b[e]})),!k||f&&hE(d)&&!!k.div==!!e.useHTML&&(k.rotation&&e.rotation||k.rotation===e.rotation)||(k=void 0,M=!0),f&&hE(d)&&(k?b.text=d:(k=s.label(d,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":"")),k&&(k.options=e,k.attr(b),r.styledMode?x.width&&k.css({width:x.width,textOverflow:x.textOverflow,whiteSpace:x.whiteSpace}):k.css(x).shadow(e.shadow),hB(k,"beforeAddingDataLabel",{labelOptions:e,point:t}),k.added||k.add(i),o.alignDataLabel(t,k,e,void 0,M),k.isActive=!0,l[a]&&l[a]!==k&&l[a].destroy(),l[a]=k))});for(var d=l.length;d--;)l[d]&&l[d].isActive?l[d].isActive=!1:(null===(h=l[d])||void 0===h||h.destroy(),l.splice(d,1));t.dataLabel=l[0],t.dataLabels=l})),hB(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(hI(t)&&!hI(e))o=t.map(function(t){return hR(t,e)});else if(hI(e)&&!hI(t))o=e.map(function(e){return hR(t,e)});else if(hI(t)||hI(e)){if(hI(t)&&hI(e))for(i=Math.max(t.length,e.length);i--;)o[i]=hR(t[i],e[i])}else o=hR(t,e);return o}function h(t){var e,i,o=t.chart.options.plotOptions;return hX(a(a(null===(e=null==o?void 0:o.series)||void 0===e?void 0:e.dataLabels,null===(i=null==o?void 0:o[t.type])||void 0===i?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 a=t.prototype;a.initDataLabels||(a.initDataLabels=r,a.initDataLabelsGroup=o,a.alignDataLabel=i,a.drawDataLabels=n,a.justifyDataLabel=s,a.setDataLabelStartPos=l,a.hasDataLabels=e)}}(U||(U={}));var hH=U,hY=td.composed,hF=nK.series,h_=tR.merge,hj=tR.pick,hU=tR.pushUnique;!function(t){function e(t,e,i,o,r){var n=this.chart.inverted,s=t.series,a=(s.xAxis?s.xAxis.len:this.chart.plotSizeX)||0,h=(s.yAxis?s.yAxis.len:this.chart.plotSizeY)||0,l=t.dlBox||t.shapeArgs,d=hj(t.below,t.plotY>hj(this.translatedThreshold,h)),c=hj(i.inside,!!this.options.stacking);if(l){if(o=h_(l),!("allow"===i.overflow&&!1===i.crop)){o.y<0&&(o.height+=o.y,o.y=0);var p=o.y+o.height-h;p>0&&p<o.height-1&&(o.height-=p)}n&&(o={x:h-o.y-o.height,y:a-o.x-o.width,width:o.height,height:o.width}),c||(n?(o.x+=d?0:o.width,o.width=0):(o.y+=d?o.height:0,o.height=0))}i.align=hj(i.align,!n||c?"center":d?"right":"left"),i.verticalAlign=hj(i.verticalAlign,n||c?"middle":d?"top":"bottom"),hF.prototype.alignDataLabel.call(this,t,e,i,o,r),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}t.compose=function(t){hH.compose(hF),hU(hY,"ColumnDataLabel")&&(t.prototype.alignDataLabel=e)}}(V||(V={}));var hV=V,hZ=(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)}),hq=tR.extend,hK=tR.merge,h$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hZ(e,t),e.defaultOptions=hK(hO.defaultOptions,{}),e}(hO);hq(h$.prototype,{inverted:!0}),nK.registerSeriesType("bar",h$);var hJ={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/>"}},hQ=(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)}),h0=nK.seriesTypes,h1=h0.column,h2=h0.line,h3=tR.addEvent,h5=tR.extend,h6=tR.merge,h9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hQ(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=h6(h2.defaultOptions,hJ),e}(h2);h5(h9.prototype,{drawTracker:h1.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),h3(h9,"afterTranslate",function(){this.applyJitter()}),nK.registerSeriesType("scatter",h9);var h4=td.deg2rad,h8=tR.fireEvent,h7=tR.isNumber,lt=tR.pick,le=tR.relativeLength;(k=Z||(Z={})).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=[lt(null==h?void 0:h[0],"50%"),lt(null==h?void 0:h[1],"50%"),lt(c&&c<0?void 0:o.size,"100%"),lt(p&&p<0?void 0:o.innerSize||0,"0%")];for(!r.angular||this instanceof sm||(u[3]=0),e=0;e<4;++e)i=u[e],t=e<2||2===e&&/%$/.test(i),u[e]=le(i,[s,a,l,u[2]][e])+(t?n:0);return u[3]>u[2]&&(u[3]=u[2]),h7(d)&&2*d<u[2]&&d>0&&(u[3]=u[2]-2*d),h8(this,"afterGetCenter",{positions:u}),u},k.getStartAndEndRadians=function(t,e){var i=h7(t)?t:0,o=h7(e)&&e>i&&e-i<360?e:i+360;return{start:h4*(i+-90),end:h4*(o+-90)}};var li=Z,lo=(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)}),lr=function(){return(lr=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)},ln=tR.addEvent,ls=tR.defined,la=tR.extend,lh=tR.isNumber,ll=tR.pick,ld=tR.relativeLength,lc=function(t){function e(e,i,o){var r,n=t.call(this,e,i,o)||this;n.half=0,null!==(r=n.name)&&void 0!==r||(n.name="Slice");var s=function(t){n.slice("select"===t.type)};return ln(n,"select",s),ln(n,"unselect",s),n}return lo(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,lr(lr({},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 lh(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;ex(i,o.chart),e=ll(e,!0),this.sliced=this.options.sliced=t=ls(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())},e}(nf);la(lc.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=ld(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 lp={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}}},lu=(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)}),lf=li.getStartAndEndRadians,lg=td.noop,lv=tR.clamp,lm=tR.extend,ly=tR.fireEvent,lx=tR.merge,lb=tR.pick,lk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lu(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:lb(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:iN.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(lv((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.dataTable.rowCount},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||lx(!0,a,i),lx(!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){ly(this,"translate"),this.generatePoints();var e,i,o,r,n,s,a,h=this.options,l=h.slicedOffset,d=lf(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:Math.round(1e3*e)/1e3,end:Math.round(1e3*i)/1e3};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?1:0,a.angle=o}ly(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=lx(sm.defaultOptions,lp),e}(sm);lm(lk.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:hO.prototype.drawTracker,getCenter:li.getCenter,getSymbol:lg,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:hO.prototype.pointAttribs,pointClass:lc,requireSorting:!1,searchPoint:lg,trackerGroups:["group","dataLabelsGroup"]}),nK.registerSeriesType("pie",lk);var lM=td.composed,lw=td.noop,lS=eQ.distribute,lA=nK.series,lT=tR.arrayMax,lC=tR.clamp,lO=tR.defined,lP=tR.pick,lE=tR.pushUnique,lL=tR.relativeLength;!function(t){var e={radialDistributionY:function(t,e){var i;return((null===(i=e.dataLabelPosition)||void 0===i?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?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?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)})}),lA.prototype.drawDataLabels.apply(n),s.forEach(function(t){(t.dataLabels||[]).forEach(function(e,i){var o,n=p[2]/2,s=e.options,a=lL((null==s?void 0:s.distance)||0,n);0===i&&g[t.half].push(t),!lO(null===(o=null==s?void 0:s.style)||void 0===o?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?void 0:i.natural.y)||0)-o.top+e.lineHeight/2,size:b,rank:t.y},x.push(t.distributeBox))})}),lS(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,M=0,w=g,S="inherit";if(f){if(x&&lO(c)&&f.distance>0&&(void 0===c.pos?S="hidden":(o=c.size,w=m.radialDistributionY(r,s))),a.justify)M=m.justify(r,s,u,p);else switch(a.alignTo){case"connectors":M=m.alignToConnectors(t,e,h,d);break;case"plotEdges":M=m.alignToPlotEdges(s,e,h,d);break;default:M=m.radialDistributionX(n,r,w-k,g,s)}if(f.attribs={visibility:S,align:f.alignment},f.posAttribs={x:M+(a.x||0)+(({left:y,right:-y})[f.alignment]||0),y:w+(a.y||0)-b/2},f.computed.x=M,f.computed.y=w-k,lP(a.crop,!0)){i=s.getBBox().width;var A=void 0;M-i<y&&1===e?(A=Math.round(i-M+y),v[3]=Math.max(A,v[3])):M+i>h-y&&0===e&&(A=Math.round(M+i-h+y),v[1]=Math.max(A,v[1])),w-o/2<0?v[0]=Math.max(Math.round(-w+o/2),v[0]):w+o/2>l&&(v[2]=Math.max(Math.round(w+o/2-l),v[2])),f.sideOverflow=A}}})}))}),(0===lT(v)||this.verifyDataLabelOverflow(v))&&(this.placeDataLabels(),this.points.forEach(function(t){(t.dataLabels||[]).forEach(function(i){var o,r=i.options||{},s=r.connectorColor,h=r.connectorWidth,l=void 0===h?1:h,d=i.dataLabelPosition;if(l){var c=void 0;e=i.connector,d&&d.distance>0?(c=!e,e||(i.connector=e=a.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(n.dataLabelsGroup)),a.styledMode||e.attr({"stroke-width":l,stroke:s||t.color||"#666666"}),e[c?"attr":"animate"]({d:t.getConnectorPath(i)}),e.attr({visibility:null===(o=d.attribs)||void 0===o?void 0:o.visibility})):e&&(i.connector=e.destroy())}})})))}function r(){this.points.forEach(function(t){(t.dataLabels||[]).forEach(function(t){var e,i=t.dataLabelPosition;i?(i.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-i.sideOverflow,0)+"px",textOverflow:((null===(e=t.options)||void 0===e?void 0:e.style)||{}).textOverflow||"ellipsis"}),t.shortened=!0),t.attr(i.attribs),t[t.moved?"animate":"attr"](i.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=lC(n,r,e[2]-Math.max(t[0],t[2])):(n=lC(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,lL(i.innerSize||0,n)),n),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):s=!0),s}t.compose=function(t){if(hH.compose(lA),lE(lM,"PieDataLabel")){var s=t.prototype;s.dataLabelPositioners=e,s.alignDataLabel=lw,s.drawDataLabels=o,s.getDataLabelPosition=i,s.placeDataLabels=r,s.verifyDataLabelOverflow=n}}}(q||(q={}));var lB=q;(S=K||(K={})).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}},S.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},S.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},S.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 lD=K.pointInPolygon,lI=tR.addEvent,lz=tR.fireEvent,lR=tR.objectEach,lN=tR.pick;function lW(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();return t.width=n.width,t.height=n.height,{x:r.x+((null===(e=t.parentGroup)||void 0===e?void 0:e.translateX)||0)+o,y:r.y+((null===(i=t.parentGroup)||void 0===i?void 0:i.translateY)||0)+o,width:(t.width||0)-2*o,height:(t.height||0)-2*o,polygon:null==n?void 0:n.polygon}}}(e));t.sort(function(t,e){return(e.labelrank||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&&0!==i.newOpacity&&0!==o.newOpacity&&"hidden"!==i.visibility&&"hidden"!==o.visibility){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(lD({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=i.labelrank<o.labelrank?i:o,f=u.text;u.newOpacity=0,(null==f?void 0:f.element.querySelector("textPath"))&&f.hide()}}}for(var g=0;g<t.length;g++)lG(t[g],this)&&(a=!0);a&&lz(this,"afterHideAllOverlappingLabels")}function lG(t,e){var i,o,r=!1;return t&&(o=t.newOpacity,t.oldOpacity!==o&&(t.hasClass("highcharts-data-label")?(t[o?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=function(){e.styledMode||t.css({pointerEvents:o?"auto":"none"})},r=!0,t[t.isOld?"animate":"attr"]({opacity:o},void 0,i),lz(e,"afterHideOverlappingLabel")):t.attr({opacity:o})),t.isOld=!0),r}function lX(){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&&lR(h.stacking.stacks,function(t){lR(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?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=lN(s.labelrank,t.labelrank,null===(r=t.shapeArgs)||void 0===r?void 0:r.height),(null!==(n=s.allowOverlap)&&void 0!==n?n:Number(s.distance)>0)?(o.oldOpacity=o.opacity,o.newOpacity=1,lG(o,e)):i.push(o)})},r=0;r<t.length;r++)o(t[r])};p(c.nodes||[]),p(c.points)}}this.hideOverlappingLabels(i)}var lH={compose:function(t){var e=t.prototype;e.hideOverlappingLabels||(e.hideOverlappingLabels=lW,lI(t,"render",lX))}},lY=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))},lF=td.noop,l_=tR.addEvent,lj=tR.extend,lU=tR.isObject,lV=tR.merge,lZ=tR.relativeLength,lq={radius:0,scope:"stack",where:void 0},lK=lF,l$=lF;function lJ(t,e,i,o,r){void 0===r&&(r={});var n=lK(t,e,i,o,r),s=r.innerR,a=void 0===s?0:s,h=r.r,l=void 0===h?i:h,d=r.start,c=r.end;if(r.open||!r.borderRadius)return n;for(var p=(void 0===c?0:c)-(void 0===d?0:d),u=Math.sin(p/2),f=Math.max(Math.min(lZ(r.borderRadius||0,l-a),(l-a)/2,l*u/(1+u)),0),g=Math.min(f,p/Math.PI*2*a),v=n.length-1;v--;)!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,v,v>1?g:f);return n}function lQ(){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=t3.plotOptions)||void 0===t?void 0:t[this.type])||void 0===e?void 0:e.borderRadius,s=l0(i.borderRadius,lU(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 M=(d.negative?-1:1)*(a?-1:1)==-1,w=s.where;!w&&this.is("waterfall")&&Math.abs((d.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(w="all"),w||(w="end");var S=Math.min(lZ(s.radius,u),u/2,"all"===w?g/2:1/0)||0;"end"===w&&(M&&(m-=S),y+=S),lj(c,{brBoxHeight:y,brBoxY:m,r:S})}}}function l0(t,e){return lU(t)||(t={radius:t||0}),lV(lq,e,t)}function l1(){for(var t=l0(this.options.borderRadius),e=0,i=this.points;e<i.length;e++){var o=i[e].shapeArgs;o&&(o.borderRadius=lZ(t.radius,(o.r||0)-(o.innerR||0)))}}function l2(t,e,i,o,r){void 0===r&&(r={});var n=l$(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],M=[t+i-g,e+o],w=[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,M[0]=Math.min(b[0],M[0]),w[0]=Math.max(k[0],w[0]),S[0]=A[0]=t+f-C,b[1]=A[1]=e+o}if(m){var C=T(g,g-m);M[0]+=C,w[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(lY(["M"],y,!0),lY(["L"],x,!0),lY(["A",f,f,0,0,1],b,!0),lY(["L"],k,!0),lY(["A",g,g,0,0,1],M,!0),lY(["L"],w,!0),lY(["A",g,g,0,0,1],S,!0),lY(["L"],A,!0),lY(["A",f,f,0,0,1],y,!0),["Z"]),n}var l3=tR.diffObjects,l5=tR.extend,l6=tR.find,l9=tR.merge,l4=tR.pick,l8=tR.uniqueKey;!function(t){function e(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=l4(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=l4(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=l4(i.minWidth,0)&&this.chartHeight>=l4(i.minHeight,0)}).call(this)&&e.push(t._id)}function i(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=l8()),o.matchResponsiveRule(t,s)},this);var a=l9.apply(void 0,s.map(function(t){return l6((r||{}).rules||[],function(e){return e._id===t})}).map(function(t){return t&&t.chartOptions}));a.isResponsiveOptions=!0,s=s.toString()||void 0;var h=n&&n.ruleIds;s===h||(n&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(n.undoOptions,t,!0),this.updatingResponsive=!1),s?((i=l3(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)}t.compose=function(t){var o=t.prototype;return o.matchResponsiveRule||l5(o,{matchResponsiveRule:e,setResponsive:i}),t}}($||($={}));var l7=$;td.AST=eD,td.Axis=ru,td.Chart=ap,td.Color=ee,td.DataLabel=hH,td.DataTableCore=nG,td.Fx=es,td.HTMLElement=oO,td.Legend=sW,td.LegendSymbol=n_,td.OverlappingDataLabels=td.OverlappingDataLabels||lH,td.PlotLineOrBand=rW,td.Point=nf,td.Pointer=nI,td.RendererRegistry=eZ,td.Series=sm,td.SeriesRegistry=nK,td.StackItem=aL,td.SVGElement=ik,td.SVGRenderer=ou,td.Templating=eV,td.Tick=oZ,td.Time=tQ,td.Tooltip=r4,td.animate=em,td.animObject=eg,td.chart=ap.chart,td.color=ee.parse,td.dateFormat=eV.dateFormat,td.defaultOptions=t3,td.distribute=eQ.distribute,td.format=eV.format,td.getDeferredAnimation=ey,td.getOptions=t6,td.numberFormat=eV.numberFormat,td.seriesType=nK.seriesType,td.setAnimation=ex,td.setOptions=t9,td.stop=ev,td.time=t5,td.timers=es.timers,({compose:function(t,e,i){var o=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){var r=i.prototype.symbols;l_(t,"afterColumnTranslate",lQ,{order:9}),l_(o,"afterTranslate",l1),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),lK=r.arc,l$=r.roundedRect,r.arc=lJ,r.roundedRect=l2}},optionsToObject:l0}).compose(td.Series,td.SVGElement,td.SVGRenderer),hV.compose(td.Series.types.column),hH.compose(td.Series),ry.compose(td.Axis),oO.compose(td.SVGRenderer),sW.compose(td.Chart),rM.compose(td.Axis),lH.compose(td.Chart),lB.compose(td.Series.types.pie),rW.compose(td.Chart,td.Axis),nI.compose(td.Chart),l7.compose(td.Chart),aw.compose(td.Axis,td.Chart,td.Series),aK.compose(td.Axis,td.Chart,td.Series),r4.compose(td.Pointer),tR.extend(td,tR);var dt=nf.prototype.tooltipFormatter,de=tR.addEvent,di=tR.arrayMax,dr=tR.arrayMin,dn=tR.correctFloat,ds=tR.defined,da=tR.isArray,dh=tR.isNumber,dl=tR.isString,dd=tR.pick;!function(t){function e(t,e,i){!this.isXAxis&&(this.series.forEach(function(i){"compare"===t&&"boolean"!=typeof e?i.setCompare(e,!1):"cumulative"!==t||dl(e)||i.setCumulative(e,!1)}),dd(i,!0)&&this.chart.redraw())}function i(t){var e=this,i=e.series.chart.numberFormatter,o=function(o){t=t.replace("{point."+o+"}",(e[o]>0&&"change"===o?"+":"")+i(e[o],dd(e.series.tooltipOptions.changeDecimals,2)))};return ds(e.change)&&o("change"),ds(e.cumulativeSum)&&o("cumulativeSum"),dt.apply(this,[t])}function o(){var t,e=this.options.compare;("percent"===e||"value"===e||this.options.cumulative)&&(t=new d(this),"percent"===e||"value"===e?t.initCompare(e):t.initCumulative()),this.dataModify=t}function r(t){var e=t.dataExtremes,i=e.activeYData;if(this.dataModify&&e){var o=void 0;this.options.compare?o=[this.dataModify.modifyValue(e.dataMin),this.dataModify.modifyValue(e.dataMax)]:this.options.cumulative&&da(i)&&i.length>=2&&(o=d.getCumulativeExtremes(i)),o&&(e.dataMin=dr(o),e.dataMax=di(o))}}function n(t,e){this.options.compare=this.userOptions.compare=t,this.update({},dd(e,!0)),this.dataModify&&("value"===t||"percent"===t)?this.dataModify.initCompare(t):this.points.forEach(function(t){delete t.change})}function s(){var t=this.getColumn(this.pointArrayMap&&(this.options.pointValKey||this.pointValKey)||"y",!0);if(this.xAxis&&t.length&&this.dataModify)for(var e=this.getColumn("x",!0),i=this.dataTable.rowCount,o=!0===this.options.compareStart?0:1,r=0;r<i-o;r++){var n=t[r];if(dh(n)&&0!==n&&e[r+o]>=(this.xAxis.min||0)){this.dataModify.compareValue=n;break}}}function a(t,e){this.setModifier("compare",t,e)}function h(t,e){t=dd(t,!1),this.options.cumulative=this.userOptions.cumulative=t,this.update({},dd(e,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(t){delete t.cumulativeSum})}function l(t,e){this.setModifier("cumulative",t,e)}t.compose=function(t,d,c){var p=d.prototype,u=c.prototype,f=t.prototype;return f.setCompare||(f.setCompare=n,f.setCumulative=h,de(t,"afterInit",o),de(t,"afterGetExtremes",r),de(t,"afterProcessData",s)),p.setCompare||(p.setCompare=a,p.setModifier=e,p.setCumulative=l,u.tooltipFormatter=i),t};var d=function(){function t(t){this.series=t}return t.prototype.modifyValue=function(){return 0},t.getCumulativeExtremes=function(t){var e=1/0,i=-1/0;return t.reduce(function(t,o){var r=t+o;return e=Math.min(e,r,t),i=Math.max(i,r,t),r}),[e,i]},t.prototype.initCompare=function(t){this.modifyValue=function(e,i){null===e&&(e=0);var o=this.compareValue;if(void 0!==e&&void 0!==o){if("value"===t?e-=o:e=e/o*100-(100===this.series.options.compareBase?0:100),void 0!==i){var r=this.series.points[i];r&&(r.change=e)}return e}return 0}},t.prototype.initCumulative=function(){this.modifyValue=function(t,e){if(null===t&&(t=0),void 0!==t&&void 0!==e){var i=e>0?this.series.points[e-1]:null;i&&i.cumulativeSum&&(t=dn(i.cumulativeSum+t));var o=this.series.points[e],r=o.series.options.cumulativeStart,n=o.x<=this.series.xAxis.max&&o.x>=this.series.xAxis.min;return o&&(!r||n?o.cumulativeSum=t:o.cumulativeSum=void 0),t}return 0}},t}();t.Additions=d}(J||(J={}));var dc=J,dp=td.isTouchDevice,du=tR.addEvent,df=tR.merge,dg=tR.pick,dv=[];function dm(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function dy(){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=dg(i.left,this.plotLeft+a),n.top=n.navigatorOptions.top||this.chartHeight-n.height-s-((null===(t=this.scrollbar)||void 0===t?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+dg(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 dx(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new Q(this),dg(t.redraw,!0)&&this.redraw(t.animation))}function db(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new Q(this))}function dk(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!dp&&"x"===this.zooming.type||dp&&"x"===this.zooming.pinchType))return!1}function dM(t){var e=t.navigator;if(e&&t.xAxis[0]){var i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function dw(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(df(!0,this.options.navigator,e),df(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}var dS=function(t,e){if(tR.pushUnique(dv,t)){var i=t.prototype;Q=e,i.callbacks.push(dM),du(t,"afterAddSeries",dm),du(t,"afterSetChartSize",dy),du(t,"afterUpdate",dx),du(t,"beforeRender",db),du(t,"beforeShowResetZoom",dk),du(t,"update",dw)}},dA=td.isTouchDevice,dT=tR.addEvent,dC=tR.correctFloat,dO=tR.defined,dP=tR.isNumber,dE=tR.pick;function dL(){this.navigatorAxis||(this.navigatorAxis=new dD(this))}function dB(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||dA&&"xy"===s)&&this.options.range){var l=n.previousZoom;dO(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 dD=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),dT(t,"init",dL),dT(t,"setExtremes",dB))},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=dE(i,r.translate(t,!0,!r.horiz)),a=dE(o,r.translate(e,!0,!r.horiz));return dO(i)||(s=dC(s+n)),dO(o)||(a=dC(a-n)),dP(s)&&dP(a)||(s=a=void 0),{min:s,max:a}},t}(),dI=ee.parse,dz=nK.seriesTypes,dR={height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:dI("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===dz.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:null},tickLength:0,tickWidth:0}},dN=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))},dW=tR.relativeLength,dG={"navigator-handle":function(t,e,i,o,r){void 0===r&&(r={});var n=r.width?r.width/2:i,s=dW(r.borderRadius||0,Math.min(2*n,o));return dN([["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]],iN.rect(-n-1,.5,2*n+1,o,{r:s}),!0)}},dX=tR.defined,dH={setFixedRange:function(t){var e=this.xAxis[0];dX(e.dataMax)&&dX(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}},dY=td.composed,dF=eZ.getRendererType,d_=dH.setFixedRange,dj=tR.addEvent,dU=tR.extend,dV=tR.pushUnique;function dZ(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var dq=function(t,e,i){dD.compose(e),dV(dY,"Navigator")&&(t.prototype.setFixedRange=d_,dU(dF().prototype.symbols,dG),dj(i,"afterUpdate",dZ),t9({navigator:dR}))},dK=td.composed,d$=tR.addEvent,dJ=tR.defined,dQ=tR.pick,d0=tR.pushUnique;!function(t){var e;function i(t){var e=dQ(t.options&&t.options.min,t.min),i=dQ(t.options&&t.options.max,t.max);return{axisMin:e,axisMax:i,scrollMin:dJ(t.dataMin)?Math.min(e,t.min,t.dataMin,dQ(t.threshold,1/0)):e,scrollMax:dJ(t.dataMax)?Math.max(i,t.max,t.dataMax,dQ(t.threshold,-1/0)):i}}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=this;t.options&&t.options.scrollbar&&t.options.scrollbar.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new e(t.chart.renderer,t.options.scrollbar,t.chart),d$(t.scrollbar,"changed",function(e){var o,r,n=i(t),s=n.axisMin,a=n.axisMax,h=n.scrollMin,l=n.scrollMax-h;if(dJ(s)&&dJ(a)){if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(o=h+l*this.to,r=h+l*this.from):(o=h+l*(1-this.from),r=h+l*(1-this.to)),this.shouldUpdateExtremes(e.DOMType)){var d="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes(r,o,!0,d,e)}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+(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)||!dJ(this.min)||!dJ(this.max)||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.min-n)/(s-n),o=(this.max-n)/(s-n),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(e,o):a.setRange(1-o,1-e)}}t.compose=function(t,i){d0(dK,"Axis.Scrollbar")&&(e=i,d$(t,"afterGetOffset",o),d$(t,"afterInit",r),d$(t,"afterRender",n))}}(tt||(tt={}));var d1=tt,d2={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},d3=tR.addEvent,d5=tR.correctFloat,d6=tR.crisp,d9=tR.defined,d4=tR.destroyObjectProperties,d8=tR.fireEvent,d7=tR.merge,ct=tR.pick,ce=tR.removeEvent,ci=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){d1.compose(e,t)},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){d3.apply(null,t)}),this._events=a},t.prototype.buttonToMaxClick=function(t){var e=(this.to-this.from)*ct(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),d8(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var e=d5(this.to-this.from)*ct(this.options.step,.2);this.updatePosition(d5(this.from-e),d5(this.to-e)),d8(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,d4(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=d7(d2,t3.scrollbar,e),this.options.margin=ct(this.options.margin,10),this.chart=i,this.size=ct(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?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?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&&d8(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&d8(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){ce.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:-d6(0,s),y:-d6(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(-d6(0,this.scrollbarStrokeWidth),-d6(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(d9(a)){var l=a*Math.min(e,1);i=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=o=d5(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 ct(this.options.liveRedraw,td.svg&&!td.isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!d9(t)},t.prototype.trackClick=function(t){var e,i=(null===(e=this.chart.pointer)||void 0===e?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),d8(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,d7(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){e>1&&(t=d5(1-d5(e-t)),e=1),t<0&&(e=d5(e-t),t=0),this.from=t,this.to=e},t.defaultOptions=d2,t}();t3.scrollbar=d7(!0,ci.defaultOptions,t3.scrollbar);var co=function(){return(co=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)},cr=td.isTouchDevice,cn=ou.prototype.symbols,cs=tR.addEvent,ca=tR.clamp,ch=tR.correctFloat,cl=tR.defined,cd=tR.destroyObjectProperties,cc=tR.erase,cp=tR.extend,cu=tR.find,cf=tR.fireEvent,cg=tR.isArray,cv=tR.isNumber,cm=tR.merge,cy=tR.pick,cx=tR.removeEvent,cb=tR.splat;function ck(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=[].filter.call(e,cv);if(o.length)return Math[t].apply(0,o)}var cM=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(e,i,o){dS(e,t),dq(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=this,o=i.navigatorOptions,r=o.maskInside,n=i.chart,s=n.inverted,a=n.renderer,h={cursor:s?"ns-resize":"ew-resize"},l=null!==(t=i.navigatorGroup)&&void 0!==t?t:i.navigatorGroup=a.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!r,r,!r].forEach(function(t,e){var r,s=null!==(r=i.shades[e])&&void 0!==r?r:i.shades[e]=a.rect().addClass("highcharts-navigator-mask"+(1===e?"-inside":"-outside")).add(l);n.styledMode||(s.attr({fill:t?o.maskFill:"rgba(0,0,0,0)"}),1===e&&s.css(h))}),i.outline||(i.outline=a.path().addClass("highcharts-navigator-outline").add(l)),n.styledMode||i.outline.attr({"stroke-width":o.outlineWidth,stroke:o.outlineColor}),null===(e=o.handles)||void 0===e?void 0:e.enabled){var d=o.handles,c=d.height,p=d.width;[0,1].forEach(function(t){var e,o=d.symbols[t];if(i.handles[t]&&i.handles[t].symbolUrl===o){if(!i.handles[t].isImg&&i.handles[t].symbolName!==o){var r=cn[o].call(cn,-p/2-1,0,p,c);i.handles[t].attr({d:r}),i.handles[t].symbolName=o}}else null===(e=i.handles[t])||void 0===e||e.destroy(),i.handles[t]=a.symbol(o,-p/2-1,0,p,c,d),i.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(l),i.addMouseEvents();n.inverted&&i.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-p/2),rotationOriginY:(c+p)/2}),n.styledMode||i.handles[t].attr({fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":d.lineWidth,width:d.width,height:d.height,x:-p/2-1,y:0}).css(h)})}},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?void 0:r.options.vertical);if(cm(!0,a.options.navigator,t),this.navigatorOptions=a.options.navigator||{},this.setOpposite(),cl(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){cx(t,"updatedData",s.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push(cs(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)&&void 0!==n?n:this.height;var l=this.getXAxisOffsets();this.xAxis.update(co(co({},t.xAxis),((i={offsets:l})[a.inverted?"width":"height"]=this.height,i[a.inverted?"height":"width"]=void 0,i)),!1),this.yAxis.update(co(co({},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=this.chart,d=this.xAxis,c=d.pointRange||0,p=d.navigatorAxis.fake?l.xAxis[0]:d,u=this.navigatorEnabled,f=this.rendered,g=l.inverted,v=l.xAxis[0].minRange,m=l.xAxis[0].options.maxRange,y=this.scrollButtonSize,x=this.scrollbarHeight;if(!this.hasDragged||cl(i)){if(this.isDirty&&this.renderElements(),t=ch(t-c/2),e=ch(e+c/2),!cv(t)||!cv(e)){if(!f)return;i=0,o=cy(d.width,p.width)}this.left=cy(d.left,l.plotLeft+y+(g?l.plotWidth:0));var b=this.size=a=cy(d.len,(g?l.plotHeight:l.plotWidth)-2*y);r=g?x:a+2*y,i=cy(i,d.toPixels(t,!0)),o=cy(o,d.toPixels(e,!0)),cv(i)&&Math.abs(i)!==1/0||(i=0,o=r);var k=d.toValue(i,!0),M=d.toValue(o,!0),w=Math.abs(ch(M-k));w<v?this.grabbedLeft?i=d.toPixels(M-v-c,!0):this.grabbedRight&&(o=d.toPixels(k+v+c,!0)):cl(m)&&ch(w-c)>m&&(this.grabbedLeft?i=d.toPixels(M-m-c,!0):this.grabbedRight&&(o=d.toPixels(k+m+c,!0))),this.zoomedMax=ca(Math.max(i,o),0,b),this.zoomedMin=ca(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,o),0,b),this.range=this.zoomedMax-this.zoomedMin,b=Math.round(this.zoomedMax);var S=Math.round(this.zoomedMin);u&&(this.navigatorGroup.attr({visibility:"inherit"}),h=f&&!this.hasDragged?"animate":"attr",this.drawMasks(S,b,g,h),this.drawOutline(S,b,g,h),this.navigatorOptions.handles.enabled&&(this.drawHandle(S,0,g,h),this.drawHandle(b,1,g,h))),this.scrollbar&&(g?(s=this.top-y,n=this.left-x+(u||!p.opposite?0:(p.titleOffset||0)+p.axisTitleMargin),x=a+2*y):(s=this.top+(u?this.height:-x),n=this.left-y),this.scrollbar.position(n,s,r,x),this.scrollbar.setRange(this.zoomedMin/(a||1),this.zoomedMax/(a||1))),this.rendered=!0,this.isDirty=!1,cf(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=i.getPartsEvents("mousedown")).push(cs(o.renderTo,"mousemove",t),cs(r.ownerDocument,"mouseup",e),cs(o.renderTo,"touchmove",t),cs(r.ownerDocument,"touchend",e)),n.concat(i.getPartsEvents("touchstart")),i.eventsToUnbind=n,i.series&&i.series[0]&&n.push(cs(i.series[0].xAxis,"foundExtremes",function(){o.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(t){var e=this,i=[];return["shades","handles"].forEach(function(o){e[o].forEach(function(r,n){i.push(cs(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?void 0:i.normalize(t))||t;var i,o,r,n,s,a=this.chart,h=this.xAxis,l=this.zoomedMin,d=this.size,c=this.range,p=this.left,u=t.chartX;a.inverted&&(u=t.chartY,p=this.top),1===e?(this.grabbedCenter=u,this.fixedWidth=c,this.dragOffset=u-l):(s=u-p-c/2,0===e?s=Math.max(0,s):2===e&&s+c>=d&&(s=d-c,this.reversedExtremes?(s-=c,r=this.getUnionExtremes().dataMin):o=this.getUnionExtremes().dataMax),s!==l&&(this.fixedWidth=c,cl((n=h.navigatorAxis.toFixedRange(s,s+c,r,o)).min)&&cf(this,"setRange",{min:Math.min(n.min,n.max),max:Math.max(n.min,n.max),redraw:!0,eventArguments:{trigger:"navigator"}})))},t.prototype.handlesMousedown=function(t,e){t=(null===(i=this.chart.pointer)||void 0===i?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=this,r=o.chart,n=o.navigatorSize,s=o.range,a=o.dragOffset,h=r.inverted,l=o.left;(!t.touches||0!==t.touches[0].pageX)&&(i=(t=(null===(e=r.pointer)||void 0===e?void 0:e.normalize(t))||t).chartX,h&&(l=o.top,i=t.chartY),o.grabbedLeft?(o.hasDragged=!0,o.render(0,0,i-l,o.otherHandlePos)):o.grabbedRight?(o.hasDragged=!0,o.render(0,0,o.otherHandlePos,i-l)):o.grabbedCenter&&(o.hasDragged=!0,i<a?i=a:i>n+a-s&&(i=n+a-s),o.render(0,0,i-a,i-a+s)),o.hasDragged&&o.scrollbar&&cy(o.scrollbar.options.liveRedraw,!cr&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){o.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var e,i,o,r,n,s,a=this.chart,h=this.xAxis,l=this.scrollbar,d=t.DOMEvent||t,c=a.inverted,p=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!l||!l.hasDragged)||"scrollbar"===t.trigger)&&(o=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?r=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(n=this.fixedExtreme),this.zoomedMax===this.size&&(n=this.reversedExtremes?o.dataMin:o.dataMax),0===this.zoomedMin&&(r=this.reversedExtremes?o.dataMax:o.dataMin),cl((s=h.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,r,n)).min)&&cf(this,"setRange",{min:Math.min(s.min,s.max),max:Math.max(s.min,s.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:d}})),"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&&cv(this.zoomedMin)&&cv(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,c,p),this.outline&&this.drawOutline(i,e,c,p),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,c,p),this.drawHandle(e,1,c,p)))},t.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.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){cx(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&cx(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=t.options,o=i.navigator||{},r=o.enabled,n=i.scrollbar||{},s=n.enabled,a=r&&o.height||0,h=s&&n.height||0,l=n.buttonsEnabled&&h||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=a,this.scrollbarHeight=h,this.scrollButtonSize=l,this.scrollbarEnabled=s,this.navigatorEnabled=r,this.navigatorOptions=o,this.scrollbarOptions=n,this.setOpposite();var d=this,c=d.baseSeries,p=t.xAxis.length,u=t.yAxis.length,f=c&&c[0]&&c[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,d.navigatorEnabled){var g=this.getXAxisOffsets();d.xAxis=new ru(t,cm({breaks:f.options.breaks,ordinal:f.options.ordinal,overscroll:f.options.overscroll},o.xAxis,{type:"datetime",yAxis:null===(e=o.yAxis)||void 0===e?void 0:e.id,index:p,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:f.options.ordinal?0:f.options.minPadding,maxPadding:f.options.ordinal?0:f.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:g,width:a}:{offsets:g,height:a}),"xAxis"),d.yAxis=new ru(t,cm(o.yAxis,{alignTicks:!1,offset:0,index:u,isInternal:!0,reversed:cy(o.yAxis&&o.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:a}:{height:a}),"yAxis"),c||o.series.data?d.updateNavigatorSeries(!1):0===t.series.length&&(d.unbindRedraw=cs(t,"beforeRedraw",function(){t.series.length>0&&!d.series&&(d.setBaseSeries(),d.unbindRedraw())})),d.reversedExtremes=t.inverted&&!d.xAxis.reversed||!t.inverted&&d.xAxis.reversed,d.renderElements(),d.addMouseEvents()}else d.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){var o=t.xAxis[0],r=o.getExtremes(),n=o.len-2*l,s=ck("min",o.options.min,r.dataMin),a=ck("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)}},d.xAxis.navigatorAxis.axis=d.xAxis,d.xAxis.navigatorAxis.toFixedRange=dD.prototype.toFixedRange.bind(d.xAxis.navigatorAxis);if(t.options.scrollbar.enabled){var v=cm(t.options.scrollbar,{vertical:t.inverted});!cv(v.margin)&&d.navigatorEnabled&&(v.margin=t.inverted?-3:3),t.scrollbar=d.scrollbar=new ci(t.renderer,v,t),cs(d.scrollbar,"changed",function(t){var e=d.size,i=e*this.to,o=e*this.from;d.hasDragged=d.scrollbar.hasDragged,d.render(0,0,o,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){d.onMouseUp(t)})})}d.addBaseSeriesEvents(),d.addChartEvents()},t.prototype.setOpposite=function(){var t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=cy(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:cy(o.parse(null==n?void 0:n.min),ck("min",o.parse(s.min),i.dataMin,r.dataMin,r.min)),dataMax:cy(o.parse(null==n?void 0:n.max),ck("max",o.parse(s.max),i.dataMax,r.dataMax,r.max))}),e},t.prototype.setBaseSeries=function(t,e){var i=this.chart,o=this.baseSeries=[];t=t||i.options&&i.options.navigator.baseSeries||(i.series.length?cu(i.series,function(t){return!t.options.isInternal}).index:0),(i.series||[]).forEach(function(e,i){!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&o.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?void 0:i.id,yAxis:null===(o=this.navigatorOptions.yAxis)||void 0===o?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!(0>l.indexOf(e))||(e&&(cx(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=t.navigatorSeries,u=cp({color:t.color,visible:t.visible},cg(p)?t3.navigator.series:p);if(!o||!1!==a.navigatorOptions.adaptToUpdatedData){d.name="Navigator "+l.length,s=(r=t.options||{}).navigatorOptions||{},u.dataLabels=cb(u.dataLabels),(n=cm(r,d,u,s)).pointRange=cy(u.pointRange,s.pointRange,t3.plotOptions[n.type||"line"].pointRange);var f=s.data||u.data;a.hasNavigatorData=a.hasNavigatorData||!!f,n.data=f||(null===(i=r.data)||void 0===i?void 0:i.slice(0)),o&&o.options?o.update(n,e):(t.navigatorSeries=h.initSeries(n),h.setSortedData(),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries))}}),(p.data&&!(l&&l.length)||cg(p))&&(a.hasNavigatorData=!1,(p=cb(p)).forEach(function(t,e){d.name="Navigator "+(c.length+1),(n=cm(t3.navigator.series,{color:h.series[e]&&!h.series[e].options.isInternal&&h.series[e].color||h.options.colors[e]||h.options.colors[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(cs(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(function(o){o.eventsToUnbind.push(cs(o,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),o.eventsToUnbind.push(cs(o,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&o.xAxis&&o.eventsToUnbind.push(cs(o,"updatedData",t.updatedDataHandler)),o.eventsToUnbind.push(cs(o,"remove",function(){i&&cc(i,o),this.navigatorSeries&&e.series&&(cc(e.series,this.navigatorSeries),cl(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])&&void 0!==i?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=o.stickToMin,c=o.stickToMax,p=cy(null===(t=this.ordinal)||void 0===t?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)&&cv(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=cy(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,null,!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!!(cv(r)&&cv(n))&&(s&&r-i>0?r-i<s:n<=i)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(cs(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)}),cs(this.chart,"getMargins",function(){var t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.height+t.scrollbarHeight:0)+t.navigatorOptions.margin}),cs(t,"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&&(cc(this.chart.xAxis,this.xAxis),cc(this.chart.axes,this.xAxis)),this.yAxis&&(cc(this.chart.yAxis,this.yAxis),cc(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){cd(t)}),this.navigatorEnabled=!1},t}(),cw=function(){return(cw=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)},cS=tR.addEvent,cA=tR.correctFloat,cT=tR.css,cC=tR.defined,cO=tR.error,cP=tR.isNumber,cE=tR.pick,cL=tR.timeUnits,cB=tR.isString;!function(t){function e(t,e,i,o,r,n,s){void 0===r&&(r=[]),void 0===n&&(n=0);var a,h,l,d,c,p={},u=this.options.tickPixelInterval,f=this.chart.time,g=[],v=0,m=[],y=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!r||r.length<3||void 0===e)return f.getTimeTicks.apply(f,arguments);var x=r.length;for(a=0;a<x;a++){if(c=a&&r[a-1]>i,r[a]<e&&(v=a),a===x-1||r[a+1]-r[a]>5*n||c){if(r[a]>y){for(h=f.getTimeTicks(t,r[v],r[a],o);h.length&&h[0]<=y;)h.shift();h.length&&(y=h[h.length-1]),g.push(m.length),m=m.concat(h)}v=a+1}if(c)break}if(h){if(d=h.info,s&&d.unitRange<=cL.hour){for(v=1,a=m.length-1;v<a;v++)f.dateFormat("%d",m[v])!==f.dateFormat("%d",m[v-1])&&(p[m[v]]="day",l=!0);l&&(p[m[0]]="day"),d.higherRanks=p}d.segmentStarts=g,m.info=d}else cO(12,!1,this.chart);if(s&&cC(u)){for(var b=m.length,k=[],M=[],w=void 0,S=void 0,A=void 0,T=void 0,C=void 0,O=b;O--;)S=this.translate(m[O]),A&&(M[O]=A-S),k[O]=A=S;for(M.sort(function(t,e){return t-e}),(T=M[Math.floor(M.length/2)])<.6*u&&(T=null),O=m[b-1]>i?b-1:b,A=void 0;O--;)C=Math.abs(A-(S=k[O])),A&&C<.8*u&&(null===T||C<.8*T)?(p[m[O]]&&!p[m[O+1]]?(w=O+1,A=S):w=O,m.splice(w,1)):A=S}return m}function i(t){var e=this.ordinal.positions;if(!e)return t;var i,o=e.length-1;return(t<0?t=e[0]:t>o?t=e[o]:(o=Math.floor(t),i=t-o),void 0!==i&&void 0!==e[o])?e[o]+(i?i*(e[o+1]-e[o]):0):t}function o(t){var e=this.ordinal,i=this.old?this.old.min:this.min,o=this.old?this.old.transA:this.transA,r=e.getExtendedPositions();if(null==r?void 0:r.length){var n=cA((t-i)*o+this.minPixelPadding),s=cA(e.getIndexOfPoint(n,r)),a=cA(s%1);if(s>=0&&s<=r.length-1){var h=r[Math.floor(s)],l=r[Math.ceil(s)];return r[Math.floor(s)]+a*(l-h)}}return t}function r(e,i){var o=t.Additions.findIndexOf(e,i,!0);if(e[o]===i)return o;var r=(i-e[o])/(e[o+1]-e[o]);return o+r}function n(){this.ordinal||(this.ordinal=new t.Additions(this))}function s(){var t=this.eventArgs,e=this.options;if(this.isXAxis&&cC(e.overscroll)&&0!==e.overscroll&&cP(this.max)&&cP(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&((null==t?void 0:t.trigger)!=="pan"||this.isInternal)&&(null==t?void 0:t.trigger)!=="navigator")){var i=this.ordinal.convertOverscroll(e.overscroll);this.max+=i,!this.isInternal&&cC(this.userMin)&&(null==t?void 0:t.trigger)!=="mousewheel"&&(this.min+=i)}}function a(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function h(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function l(t){var e=this.xAxis[0],i=e.ordinal.convertOverscroll(e.options.overscroll),o=t.originalEvent.chartX,r=this.options.chart.panning,n=!1;if(r&&"y"!==r.type&&e.options.ordinal&&e.series.length&&(!t.touches||t.touches.length<=1)){var s=this.mouseDownX,a=e.getExtremes(),h=a.dataMin,l=a.dataMax,d=a.min,c=a.max,p=this.hoverPoints,u=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange,f=Math.round((s-o)/(e.translationSlope*(e.ordinal.slope||u))),g=e.ordinal.getExtendedPositions(),v={ordinal:{positions:g,extendedOrdinalPositions:g}},m=e.index2val,y=e.val2lin,x=void 0,b=void 0;if(d<=h&&f<0||c+i>=l&&f>0)return;v.ordinal.positions?Math.abs(f)>1&&(p&&p.forEach(function(t){t.setState()}),l>(b=v.ordinal.positions)[b.length-1]&&b.push(l),this.setFixedRange(c-d),(x=e.navigatorAxis.toFixedRange(void 0,void 0,m.apply(v,[y.apply(v,[d,!0])+f]),m.apply(v,[y.apply(v,[c,!0])+f]))).min>=Math.min(b[0],d)&&x.max<=Math.max(b[b.length-1],c)+i&&e.setExtremes(x.min,x.max,!0,!1,{trigger:"pan"}),this.mouseDownX=o,cT(this.container,{cursor:"move"})):n=!0}else n=!0;n||r&&/y/.test(r.type)?i&&(e.max=e.dataMax+i):t.preventDefault()}function d(){var t=this.xAxis;t&&t.options.ordinal&&(delete t.ordinal.index,delete t.ordinal.originalOrdinalRange)}function c(t,e){var i,o,n=this.ordinal,s=n.positions,a=n.slope;if(!s)return t;var h=s.length;if(s[0]<=t&&s[h-1]>=t)i=r(s,t);else{if(!((o=n.getExtendedPositions&&n.getExtendedPositions())&&o.length))return t;var l=o.length;a||(a=(o[l-1]-o[0])/l);var d=r(o,s[0]);if(t>=o[0]&&t<=o[l-1])i=r(o,t)-d;else{if(!e)return t;if(t<o[0]){var c=o[0]-t,p=c/a;i=-d-p}else{var c=t-o[l-1],p=c/a;i=p+l-d}}}return e?i:a*(i||0)+n.offset}t.compose=function(t,r,p){var u=t.prototype;return u.ordinal2lin||(u.getTimeTicks=e,u.index2val=i,u.lin2val=o,u.val2lin=c,u.ordinal2lin=u.val2lin,cS(t,"afterInit",n),cS(t,"foundExtremes",s),cS(t,"afterSetScale",a),cS(t,"initialAxisTranslation",h),cS(p,"pan",l),cS(p,"touchpan",l),cS(r,"updatedData",d)),t};var p=function(){function t(t){this.index={},this.axis=t}return t.prototype.beforeSetTickPositions=function(){var t,e,i,o,r,n,s,a,h=this.axis,l=h.ordinal,d=h.getExtremes(),c=d.min,p=d.max,u=null===(t=h.brokenAxis)||void 0===t?void 0:t.hasBreaks,f=h.options.ordinal,g=[],v=Number.MAX_VALUE,m=!1,y=!1,x=!1;if(f||u){var b=0;if(h.series.forEach(function(t,o){var r=t.getColumn("x",!0);if(i=[],o>0&&"highcharts-navigator-series"!==t.options.id&&r.length>1&&(y=b!==r[1]-r[0]),b=r[1]-r[0],t.boosted&&(x=t.boosted),t.reserveSpace()&&(!1!==t.takeOrdinalPosition||u)&&(e=(g=g.concat(r)).length,g.sort(function(t,e){return t-e}),v=Math.min(v,cE(t.closestPointRange,v)),e)){for(o=0;o<e-1;)g[o]!==g[o+1]&&i.push(g[o+1]),o++;i[0]!==g[0]&&i.unshift(g[0]),g=i}}),h.ordinal.originalOrdinalRange||(h.ordinal.originalOrdinalRange=(g.length-1)*v),y&&x&&(g.pop(),g.shift()),(e=g.length)>2){for(o=g[1]-g[0],a=e-1;a--&&!m;)g[a+1]-g[a]!==o&&(m=!0);!h.options.keepOrdinalPadding&&(g[0]-c>o||p-g[g.length-1]>o)&&(m=!0)}else h.options.overscroll&&(2===e?v=g[1]-g[0]:1===e?(v=h.ordinal.convertOverscroll(h.options.overscroll),g=[g[0],g[0]+v]):v=l.overscrollPointsRange);m||h.forceOrdinal?(h.options.overscroll&&(l.overscrollPointsRange=v,g=g.concat(l.getOverscrollPositions())),l.positions=g,r=h.ordinal2lin(Math.max(c,g[0]),!0),n=Math.max(h.ordinal2lin(Math.min(p,g[g.length-1]),!0),1),l.slope=s=(p-c)/(n-r),l.offset=c-r*s):(l.overscrollPointsRange=cE(h.closestPointRange,l.overscrollPointsRange),l.positions=h.ordinal.slope=l.offset=void 0)}h.isOrdinal=f&&m,l.groupIntervalFactor=null},t.findIndexOf=function(t,e,i){for(var o,r=0,n=t.length-1;r<n;)t[o=Math.ceil((r+n)/2)]<=e?r=o:n=o-1;return t[r]===e?r:i?r:-1},t.prototype.getExtendedPositions=function(t){void 0===t&&(t=!0);var e,i=this,o=i.axis,r=o.constructor.prototype,n=o.chart,s=o.series.reduce(function(t,e){var i=e.currentDataGrouping;return t+(i?i.count+i.unitName:"raw")},""),a=t?o.ordinal.convertOverscroll(o.options.overscroll):0,h=o.getExtremes(),l=void 0,d=i.index;return d||(d=i.index={}),!d[s]&&((e={series:[],chart:n,forceOrdinal:!1,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+a}},applyGrouping:r.applyGrouping,getGroupPixelWidth:r.getGroupPixelWidth,getTimeTicks:r.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:r.ordinal2lin,getIndexOfPoint:r.getIndexOfPoint,val2lin:r.val2lin}).ordinal.axis=e,o.series.forEach(function(o){l={xAxis:e,chart:n,groupPixelWidth:o.groupPixelWidth,destroyGroupedData:td.noop,getColumn:o.getColumn,applyGrouping:o.applyGrouping,getProcessedData:o.getProcessedData,reserveSpace:o.reserveSpace,visible:o.visible};var r,s,a,h=o.getColumn("x").concat(t?i.getOverscrollPositions():[]);l.dataTable=new nG({columns:{x:h}}),l.options=cw(cw({},o.options),{dataGrouping:o.currentDataGrouping?{firstAnchor:null===(r=o.options.dataGrouping)||void 0===r?void 0:r.firstAnchor,anchor:null===(s=o.options.dataGrouping)||void 0===s?void 0:s.anchor,lastAnchor:null===(a=o.options.dataGrouping)||void 0===a?void 0:a.firstAnchor,enabled:!0,forced:!0,approximation:"open",units:[[o.currentDataGrouping.unitName,[o.currentDataGrouping.count]]]}:{enabled:!1}}),e.series.push(l),o.processData.apply(l)}),e.applyGrouping({hasExtremesChanged:!0}),(null==l?void 0:l.closestPointRange)!==(null==l?void 0:l.basePointRange)&&l.currentDataGrouping&&(e.forceOrdinal=!0),o.ordinal.beforeSetTickPositions.apply({axis:e}),!o.ordinal.originalOrdinalRange&&e.ordinal.originalOrdinalRange&&(o.ordinal.originalOrdinalRange=e.ordinal.originalOrdinalRange),e.ordinal.positions&&(d[s]=e.ordinal.positions)),d[s]},t.prototype.getGroupIntervalFactor=function(t,e,i){var o,r,n=i.getColumn("x",!0),s=n.length,a=[],h=this.groupIntervalFactor;if(!h){for(r=0;r<s-1;r++)a[r]=n[r+1]-n[r];a.sort(function(t,e){return t-e}),o=a[Math.floor(s/2)],t=Math.max(t,n[0]),e=Math.min(e,n[s-1]),this.groupIntervalFactor=h=s*o/(e-t)}return h},t.prototype.getIndexOfPoint=function(t,e){var i=this.axis,o=i.min,n=i.minPixelPadding;return r(e,o)+cA((t-n)/(i.translationSlope*(this.slope||i.closestPointRange||this.overscrollPointsRange)))},t.prototype.getOverscrollPositions=function(){var t=this.axis,e=this.convertOverscroll(t.options.overscroll),i=this.overscrollPointsRange,o=[],r=t.dataMax;if(cC(i))for(;r<t.dataMax+e;)o.push(r+=i);return o},t.prototype.postProcessTickInterval=function(t){var e=this.axis,i=this.slope,o=e.closestPointRange;return i&&o?e.options.breaks?o||t:t/(i/o):t},t.prototype.convertOverscroll=function(t){void 0===t&&(t=0);var e=this,i=e.axis,o=function(t){return cE(e.originalOrdinalRange,cC(i.dataMax)&&cC(i.dataMin)?i.dataMax-i.dataMin:0)*t};if(cB(t)){var r=parseInt(t,10);if(/%$/.test(t))return o(r/100);if(/px/.test(t)){var n=Math.min(r,.9*i.len)/i.len;return o(n/(1-n))}return 0}return t},t}();t.Additions=p}(te||(te={}));var cD=te,cI={lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%[ebY]",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}}},cz=td.composed,cR=tR.addEvent,cN=tR.defined,cW=tR.extend,cG=tR.isNumber,cX=tR.merge,cH=tR.pick,cY=tR.pushUnique,cF=[];function c_(){var t,e,i=this.range,o=i.type,r=this.max,n=this.chart.time,s=function(t,e){var i=n.toParts(t),r=i.slice();"year"===o?r[0]+=e:r[1]+=e;var s=n.makeTime.apply(n,r),a=n.toParts(s);return"month"===o&&i[1]===a[1]&&1===Math.abs(e)&&(r[0]=i[0],r[1]=i[1],r[2]=0),(s=n.makeTime.apply(n,r))-t};cG(i)?(t=r-i,e=i):i&&(t=r+s(r,-(i.count||1)),this.chart&&this.chart.setFixedRange(r-t));var a=cH(this.dataMin,Number.MIN_VALUE);return cG(t)||(t=a),t<=a&&(t=a,void 0===e&&(e=s(t,i.count)),this.newMax=Math.min(t+e,cH(this.dataMax,Number.MAX_VALUE))),cG(r)?!cG(i)&&i&&i._offsetMin&&(t+=i._offsetMin):t=void 0,t}function cj(){var t;null===(t=this.rangeSelector)||void 0===t||t.redrawElements()}function cU(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new ti(this))}function cV(){var t=this.rangeSelector;if(t){cG(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick);var e=t.options.verticalAlign;t.options.floating||("bottom"===e?this.extraBottomMargin=!0:"top"!==e||(this.extraTopMargin=!0))}}function cZ(){var t,e=this.rangeSelector;if(e){var i=this.xAxis[0].getExtremes(),o=this.legend,r=e&&e.options.verticalAlign;cG(i.min)&&e.render(i.min,i.max),o.display&&"top"===r&&r===o.options.verticalAlign&&(t=cX(this.spacingBox),"vertical"===o.options.layout?t.y=this.plotTop:t.y+=e.getHeight(),o.group.placed=!1,o.align(t))}}function cq(){for(var t=0,e=cF.length;t<e;++t){var i=cF[t];if(i[0]===this){i[1].forEach(function(t){return t()}),cF.splice(t,1);return}}}function cK(){var t,e=this.rangeSelector;if(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.enabled){var i=e.getHeight(),o=e.options.verticalAlign;e.options.floating||("bottom"===o?this.marginBottom+=i:"middle"===o||(this.plotTop+=i))}}function c$(t){var e=t.options.rangeSelector,i=this.extraBottomMargin,o=this.extraTopMargin,r=this.rangeSelector;if(e&&e.enabled&&!cN(r)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=r=new ti(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,r){var n=e&&e.verticalAlign||r.options&&r.options.verticalAlign;r.options.floating||("bottom"===n?this.extraBottomMargin=!0:"middle"===n||(this.extraTopMargin=!0)),(this.extraBottomMargin!==i||this.extraTopMargin!==o)&&(this.isDirtyBox=!0)}}var cJ=function(t,e,i){if(ti=i,cY(cz,"RangeSelector")){var o=e.prototype;t.prototype.minFromRange=c_,cR(e,"afterGetContainer",cU),cR(e,"beforeRender",cV),cR(e,"destroy",cq),cR(e,"getMargins",cK),cR(e,"redraw",cZ),cR(e,"update",c$),cR(e,"beforeRedraw",cj),o.callbacks.push(cZ),cW(t3,{rangeSelector:cI.rangeSelector}),cW(t3.lang,cI.lang)}},cQ=tR.addEvent,c0=tR.createElement,c1=tR.css,c2=tR.defined,c3=tR.destroyObjectProperties,c5=tR.diffObjects,c6=tR.discardElement,c9=tR.extend,c4=tR.fireEvent,c8=tR.isNumber,c7=tR.isString,pt=tR.merge,pe=tR.objectEach,pi=tR.pick,po=tR.splat;function pr(t){var e=function(e){return new RegExp("%[[a-zA-Z]*".concat(e)).test(t)};if(c7(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";var i=c7(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(e):t.dateStyle||t.day||t.month||t.year,o=c7(t)?["H","k","I","l","M","S"].some(e):t.timeStyle||t.hour||t.minute||t.second;return i&&o?"datetime-local":i?"date":o?"time":"text"}var pn=function(){function t(e){var i=this;this.isDirty=!1,this.buttonOptions=t.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.maxButtonWidth=function(){var t=0;return i.buttons.forEach(function(e){var i=e.getBBox();i.width>t&&(t=i.width)}),t},this.init(e)}return t.compose=function(e,i){cJ(e,i,t)},t.prototype.clickButton=function(t,e){var i,o,r,n,s,a=this.chart,h=this.buttonOptions[t],l=a.xAxis[0],d=a.scroller&&a.scroller.getUnionExtremes()||l||{},c=h.type,p=h.dataGrouping,u=d.dataMin,f=d.dataMax,g=c8(null==l?void 0:l.max)?Math.round(Math.min(l.max,null!=f?f:l.max)):void 0,v=h._range,m=!0;if(null!==u&&null!==f){if(this.setSelected(t),p&&(this.forcedDataGrouping=!0,ru.prototype.setDataGrouping.call(l||{chart:this.chart},p,!1),this.frozenStates=h.preserveDataGrouping),"month"===c||"year"===c)l?(n={range:h,max:g,chart:a,dataMin:u,dataMax:f},i=l.minFromRange.call(n),c8(n.newMax)&&(g=n.newMax),m=!1):v=h;else if(v)c8(g)&&(g=Math.min((i=Math.max(g-v,u))+v,f),m=!1);else if("ytd"===c){if(l)!l.hasData()||c8(f)&&c8(u)||(u=Number.MAX_VALUE,f=-Number.MAX_VALUE,a.series.forEach(function(t){var e=t.getColumn("x");e.length&&(u=Math.min(e[0],u),f=Math.max(e[e.length-1],f))}),e=!1),c8(f)&&c8(u)&&(i=r=(s=this.getYTDExtremes(f,u)).min,g=s.max);else{this.deferredYTDClick=t;return}}else"all"===c&&l&&(a.navigator&&a.navigator.baseSeries[0]&&(a.navigator.baseSeries[0].xAxis.options.range=void 0),i=u,g=f);if(m&&h._offsetMin&&c2(i)&&(i+=h._offsetMin),h._offsetMax&&c2(g)&&(g+=h._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),l)c8(i)&&c8(g)&&(l.setExtremes(i,g,pi(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:h}),a.setFixedRange(h._range));else{o=po(a.options.xAxis||{})[0];var y=cQ(a,"afterCreateAxes",function(){var t=a.xAxis[0];t.range=t.options.range=v,t.min=t.options.min=r});cQ(a,"load",function(){var t=a.xAxis[0];a.setFixedRange(h._range),t.options.range=o.range,t.options.min=o.min,y()})}c4(this,"afterBtnClick")}},t.prototype.setSelected=function(t){this.selected=this.options.selected=t},t.prototype.init=function(t){var e=this,i=t.options.rangeSelector,o=i.buttons,r=i.selected,n=function(){var t=e.minInput,i=e.maxInput;t&&t.blur&&c4(t,"blur"),i&&i.blur&&c4(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(cQ(t.container,"mousedown",n)),this.eventsToUnbind.push(cQ(t,"resize",n)),o.forEach(e.computeButtonRange),void 0!==r&&o[r]&&this.clickButton(r,!1),this.eventsToUnbind.push(cQ(t,"load",function(){t.xAxis&&t.xAxis[0]&&cQ(t.xAxis[0],"setExtremes",function(i){c8(this.max)&&c8(this.min)&&this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()},t.prototype.updateButtonStates=function(){var t=this,e=this.chart,i=this.dropdown,o=this.dropdownLabel,r=e.xAxis[0],n=Math.round(r.max-r.min),s=!r.hasVisibleSeries,a=24*36e5,h=e.scroller&&e.scroller.getUnionExtremes()||r,l=h.dataMin,d=h.dataMax,c=t.getYTDExtremes(d,l),p=c.min,u=c.max,f=t.selected,g=t.options.allButtonsEnabled,v=Array(t.buttonOptions.length).fill(0),m=c8(f),y=t.buttons,x=!1,b=null;t.buttonOptions.forEach(function(e,i){var o,h=e._range,c=e.type,y=e.count||1,k=e._offsetMax-e._offsetMin,M=i===f,w=h>d-l,S=h<r.minRange,A=!1,T=h===n;if(M&&w&&(x=!0),r.isOrdinal&&(null===(o=r.ordinal)||void 0===o?void 0:o.positions)&&h&&n<h){var C=r.ordinal.positions,O=cD.Additions.findIndexOf(C,r.min,!0),P=Math.min(cD.Additions.findIndexOf(C,r.max,!0)+1,C.length-1);C[P]-C[O]>h&&(T=!0)}else("month"===c||"year"===c)&&n+36e5>=({month:28,year:365})[c]*a*y-k&&n-36e5<=({month:31,year:366})[c]*a*y+k?T=!0:"ytd"===c?(T=u-p+k===n,A=!M):"all"===c&&(T=r.max-r.min>=d-l);var E=!g&&!(x&&"all"===c)&&(w||S||s),L=x&&"all"===c||!A&&T||M&&t.frozenStates;E?v[i]=3:L&&(!m||i===f)&&(b=i)}),null!==b?(v[b]=2,t.setSelected(b),this.dropdown&&(this.dropdown.selectedIndex=b+1)):(t.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),o&&(o.setState(0),o.attr({text:(t3.lang.rangeSelectorZoom||"")+" ▾"})));for(var k=0;k<v.length;k++){var M=v[k],w=y[k];if(w.state!==M&&(w.setState(M),i)){i.options[k+1].disabled=3===M,2===M&&(o&&(o.setState(2),o.attr({text:t.buttonOptions[k].text+" ▾"})),i.selectedIndex=k+1);var S=o.getBBox();c1(i,{width:""+S.width+"px",height:""+S.height+"px"})}}},t.prototype.computeButtonRange=function(t){var e=t.type,i=t.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[e]?t._range=o[e]*i:("month"===e||"year"===e)&&(t._range=24*({month:30,year:365})[e]*36e5*i),t._offsetMin=pi(t.offsetMin,0),t._offsetMax=pi(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},t.prototype.getInputValue=function(t){var e="min"===t?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return e?("text"===e.type&&i.inputDateParser||this.defaultInputDateParser)(e.value,"UTC"===o.timezone,o):0},t.prototype.setInputValue=function(t,e){var i=this.options,o=this.chart.time,r="min"===t?this.minInput:this.maxInput,n="min"===t?this.minDateBox:this.maxDateBox;if(r){r.setAttribute("type",pr(i.inputDateFormat||"%e %b %Y"));var s=r.getAttribute("data-hc-time"),a=c2(s)?Number(s):void 0;if(c2(e)){var h=a;c2(h)&&r.setAttribute("data-hc-time-previous",h),r.setAttribute("data-hc-time",e),a=e}r.value=o.dateFormat(this.inputTypeFormats[r.type]||i.inputEditDateFormat,a),n&&n.attr({text:o.dateFormat(i.inputDateFormat,a)})}},t.prototype.setInputExtremes=function(t,e,i){var o="min"===t?this.minInput:this.maxInput;if(o){var r=this.inputTypeFormats[o.type],n=this.chart.time;if(r){var s=n.dateFormat(r,e);o.min!==s&&(o.min=s);var a=n.dateFormat(r,i);o.max!==a&&(o.max=a)}}},t.prototype.showInput=function(t){var e="min"===t?this.minDateBox:this.maxDateBox,i="min"===t?this.minInput:this.maxInput;if(i&&e&&this.inputGroup){var o="text"===i.type,r=this.inputGroup,n=r.translateX,s=void 0===n?0:n,a=r.translateY,h=void 0===a?0:a,l=e.x,d=void 0===l?0:l,c=e.width,p=void 0===c?0:c,u=e.height,f=void 0===u?0:u,g=this.options.inputBoxWidth;c1(i,{width:o?p+(g?-2:20)+"px":"auto",height:f-2+"px",border:"2px solid silver"}),o&&g?c1(i,{left:s+d+"px",top:h+"px"}):c1(i,{left:Math.min(Math.round(d+s-(i.offsetWidth-p)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:h-(i.offsetHeight-f)/2+"px"})}},t.prototype.hideInput=function(t){var e="min"===t?this.minInput:this.maxInput;e&&c1(e,{top:"-9999em",border:0,width:"1px",height:"1px"})},t.prototype.defaultInputDateParser=function(t,e,i){return(null==i?void 0:i.parse(t))||0},t.prototype.drawInput=function(t){var e=this.chart,i=this.div,o=this.inputGroup,r=this,n=e.renderer.style||{},s=e.renderer,a=e.options.rangeSelector,h=t3.lang,l="min"===t;function d(t){var i,o=r.maxInput,n=r.minInput,s=e.xAxis[0],a=(null===(i=e.scroller)||void 0===i?void 0:i.getUnionExtremes())||s,h=a.dataMin,d=a.dataMax,c=e.xAxis[0].getExtremes()[t],p=r.getInputValue(t);c8(p)&&p!==c&&(l&&o&&c8(h)?p>Number(o.getAttribute("data-hc-time"))?p=void 0:p<h&&(p=h):n&&c8(d)&&(p<Number(n.getAttribute("data-hc-time"))?p=void 0:p>d&&(p=d)),void 0!==p&&s.setExtremes(l?p:s.min,l?s.max:p,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=h[l?"rangeSelectorFrom":"rangeSelectorTo"]||"",p=s.label(c,0).addClass("highcharts-range-label").attr({padding:c?2:0,height:c?a.inputBoxHeight:0}).add(o),u=s.label("",0).addClass("highcharts-range-input").attr({padding:2,width:a.inputBoxWidth,height:a.inputBoxHeight,"text-align":"center"}).on("click",function(){r.showInput(t),r[t+"Input"].focus()});e.styledMode||u.attr({stroke:a.inputBoxBorderColor,"stroke-width":1}),u.add(o);var f=c0("input",{name:t,className:"highcharts-range-selector"},void 0,i);f.setAttribute("type",pr(a.inputDateFormat||"%e %b %Y")),e.styledMode||(p.css(pt(n,a.labelStyle)),u.css(pt({color:"#333333"},n,a.inputStyle)),c1(f,c9({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},a.inputStyle))),f.onfocus=function(){r.showInput(t)},f.onblur=function(){f===td.doc.activeElement&&d(t),r.hideInput(t),r.setInputValue(t),f.blur()};var g=!1;return f.onchange=function(){g||(d(t),r.hideInput(t),f.blur())},f.onkeypress=function(e){13===e.keyCode&&d(t)},f.onkeydown=function(e){g=!0,("ArrowUp"===e.key||"ArrowDown"===e.key||"Tab"===e.key)&&d(t)},f.onkeyup=function(){g=!1},{dateBox:u,input:f,label:p}},t.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector,i="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0;return{buttonTop:i+e.buttonPosition.y,inputTop:i+e.inputPosition.y-10}},t.prototype.getYTDExtremes=function(t,e){var i=this.chart.time,o=i.toParts(t)[0];return{max:t,min:Math.max(e,i.makeTime(o,0))}},t.prototype.createElements=function(){var t,e=this.chart,i=e.renderer,o=e.container,r=e.options,n=r.rangeSelector,s=n.inputEnabled,a=pi(null===(t=r.chart.style)||void 0===t?void 0:t.zIndex,0)+1;!1!==n.enabled&&(this.group=i.g("range-selector-group").attr({zIndex:7}).add(),this.div=c0("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),o.parentNode&&o.parentNode.insertBefore(this.div,o),s&&this.createInputs())},t.prototype.createInputs=function(){this.inputGroup=this.chart.renderer.g("input-group").add(this.group);var t=this.drawInput("min");this.minDateBox=t.dateBox,this.minLabel=t.label,this.minInput=t.input;var e=this.drawInput("max");this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input},t.prototype.render=function(t,e){if(!1!==this.options.enabled){var i,o,r=this.chart,n=r.options.rangeSelector;if(n.inputEnabled){this.inputGroup||this.createInputs(),this.setInputValue("min",t),this.setInputValue("max",e),this.chart.styledMode||(null===(i=this.maxLabel)||void 0===i||i.css(n.labelStyle),null===(o=this.minLabel)||void 0===o||o.css(n.labelStyle));var s=r.scroller&&r.scroller.getUnionExtremes()||r.xAxis[0]||{};if(c2(s.dataMin)&&c2(s.dataMax)){var a=r.xAxis[0].minRange||0;this.setInputExtremes("min",s.dataMin,Math.min(s.dataMax,this.getInputValue("max"))-a),this.setInputExtremes("max",Math.max(s.dataMin,this.getInputValue("min"))+a,s.dataMax)}if(this.inputGroup){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(t){if(t){var e=t.getBBox().width;e&&(t.attr({x:h}),h+=e+n.inputSpacing)}})}}else this.inputGroup&&(this.inputGroup.destroy(),delete this.inputGroup);!this.chart.styledMode&&this.zoomText&&this.zoomText.css(n.labelStyle),this.alignElements(),this.updateButtonStates()}},t.prototype.renderButtons=function(){var t,e,i,o=this,r=this.chart,n=this.options,s=t3.lang,a=r.renderer,h=pt(n.buttonTheme),l=h&&h.states;delete h.width,delete h.states,this.buttonGroup=a.g("range-selector-buttons").add(this.group);var d=this.dropdown=c0("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),c=null===(t=r.userOptions.rangeSelector)||void 0===t?void 0:t.buttonTheme;this.dropdownLabel=a.button("",0,0,function(){},pt(h,{"stroke-width":pi(h["stroke-width"],0),width:"auto",paddingLeft:pi(n.buttonTheme.paddingLeft,null==c?void 0:c.padding,8),paddingRight:pi(n.buttonTheme.paddingRight,null==c?void 0:c.padding,8)}),l&&l.hover,l&&l.select,l&&l.disabled).hide().add(this.group),cQ(d,"touchstart",function(){d.style.fontSize="16px"});var p=td.isMS?"mouseover":"mouseenter",u=td.isMS?"mouseout":"mouseleave";cQ(d,p,function(){c4(o.dropdownLabel.element,p)}),cQ(d,u,function(){c4(o.dropdownLabel.element,u)}),cQ(d,"change",function(){c4(o.buttons[d.selectedIndex-1].element,"click")}),this.zoomText=a.label(s.rangeSelectorZoom||"",0).attr({padding:n.buttonTheme.padding,height:n.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(n.labelStyle),(null===(e=(i=n.buttonTheme)["stroke-width"])||void 0===e)&&(i["stroke-width"]=0)),c0("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,d),this.createButtons()},t.prototype.createButtons=function(){var t=this,e=pt(this.options.buttonTheme),i=e&&e.states,o=e.width||28;delete e.width,delete e.states,this.buttonOptions.forEach(function(e,r){t.createButton(e,r,o,i)})},t.prototype.createButton=function(t,e,i,o){var r=this,n=this.dropdown,s=this.buttons,a=this.chart,h=this.options,l=a.renderer,d=pt(h.buttonTheme);null==n||n.add(c0("option",{textContent:t.title||t.text}),e+2),s[e]=l.button(t.text,0,0,function(i){var o,n=t.events&&t.events.click;n&&(o=n.call(t,i)),!1!==o&&r.clickButton(e),r.isActive=!0},d,o&&o.hover,o&&o.select,o&&o.disabled).attr({"text-align":"center",width:i}).add(this.buttonGroup),t.title&&s[e].attr("title",t.title)},t.prototype.alignElements=function(){var t,e=this,i=this.buttonGroup,o=this.buttons,r=this.chart,n=this.group,s=this.inputGroup,a=this.options,h=this.zoomText,l=r.options,d=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions,c=a.buttonPosition,p=a.inputPosition,u=a.verticalAlign,f=function(t,i,o){return d&&e.titleCollision(r)&&"top"===u&&o&&i.y-t.getBBox().height-12<(d.y||0)+(d.height||0)+r.spacing[0]?-40:0},g=r.plotLeft;if(n&&c&&p){var v=c.x-r.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var m=0;h&&(m+=h.getBBox().width+5),o.forEach(function(t,e){m+=t.width||0,e!==o.length-1&&(m+=a.buttonSpacing)}),this.initialButtonGroupWidth=m}g-=r.spacing[3];var y=f(i,c,"right"===c.align||"right"===p.align);this.alignButtonGroup(y),(null===(t=this.buttonGroup)||void 0===t?void 0:t.translateY)&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),n.placed=i.placed=r.hasLoaded}var x=0;a.inputEnabled&&s&&(x=f(s,p,"right"===c.align||"right"===p.align),"left"===p.align?v=g:"right"===p.align&&(v=-Math.max(r.axisOffset[1],-x)),s.align({y:p.y,width:s.getBBox().width,align:p.align,x:p.x+v-2},!0,r.spacingBox),s.placed=r.hasLoaded),this.handleCollision(x),n.align({verticalAlign:u},!0,r.spacingBox);var b=n.alignAttr.translateY,k=n.getBBox().height+20,M=0;if("bottom"===u){var w=r.legend&&r.legend.options;M=b-(k=k+(w&&"bottom"===w.verticalAlign&&w.enabled&&!w.floating?r.legend.legendHeight+pi(w.margin,10):0)-20)-(a.floating?0:a.y)-(r.titleOffset?r.titleOffset[2]:0)-10}"top"===u?(a.floating&&(M=0),r.titleOffset&&r.titleOffset[0]&&(M=r.titleOffset[0]),M+=r.margin[0]-r.spacing[0]||0):"middle"===u&&(p.y===c.y?M=b:(p.y||c.y)&&(p.y<0||c.y<0?M-=Math.min(p.y,c.y):M=b-k)),n.translate(a.x,a.y+Math.floor(M));var S=this.minInput,A=this.maxInput,T=this.dropdown;a.inputEnabled&&S&&A&&(S.style.marginTop=n.translateY+"px",A.style.marginTop=n.translateY+"px"),T&&(T.style.marginTop=n.translateY+"px")}},t.prototype.redrawElements=function(){var t,e,i,o,r,n,s,a=this.chart,h=this.options,l=h.inputBoxHeight,d=h.inputBoxBorderColor;if(null===(t=this.maxDateBox)||void 0===t||t.attr({height:l}),null===(e=this.minDateBox)||void 0===e||e.attr({height:l}),a.styledMode||(null===(i=this.maxDateBox)||void 0===i||i.attr({stroke:d}),null===(o=this.minDateBox)||void 0===o||o.attr({stroke:d})),this.isDirty){this.isDirty=!1,this.isCollapsed=void 0;var c=null!==(r=this.options.buttons)&&void 0!==r?r:[],p=Math.min(c.length,this.buttonOptions.length),u=this.dropdown,f=pt(this.options.buttonTheme),g=f&&f.states,v=f.width||28;if(c.length<this.buttonOptions.length)for(var m=this.buttonOptions.length-1;m>=c.length;m--){var y=this.buttons.pop();null==y||y.destroy(),null===(n=this.dropdown)||void 0===n||n.options.remove(m+1)}for(var m=p-1;m>=0;m--)if(0!==Object.keys(c5(c[m],this.buttonOptions[m])).length){var x=c[m];this.buttons[m].destroy(),null==u||u.options.remove(m+1),this.createButton(x,m,v,g),this.computeButtonRange(x)}if(c.length>this.buttonOptions.length)for(var m=this.buttonOptions.length;m<c.length;m++)this.createButton(c[m],m,v,g),this.computeButtonRange(c[m]);this.buttonOptions=null!==(s=this.options.buttons)&&void 0!==s?s:[],c2(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}},t.prototype.alignButtonGroup=function(t,e){var i=this.chart,o=this.options,r=this.buttonGroup,n=this.dropdown,s=this.dropdownLabel,a=o.buttonPosition,h=i.plotLeft-i.spacing[3],l=a.x-i.spacing[3],d=i.plotLeft;"right"===a.align?(l+=t-h,this.hasVisibleDropdown&&(d=i.chartWidth+t-this.maxButtonWidth()-20)):"center"===a.align&&(l-=h/2,this.hasVisibleDropdown&&(d=i.chartWidth/2-this.maxButtonWidth())),n&&c1(n,{left:d+"px",top:(null==r?void 0:r.translateY)+"px"}),null==s||s.attr({x:d}),r&&r.align({y:a.y,width:pi(e,this.initialButtonGroupWidth),align:a.align,x:l},!0,i.spacingBox)},t.prototype.positionButtons=function(){var t=this.buttons,e=this.chart,i=this.options,o=this.zoomText,r=e.hasLoaded?"animate":"attr",n=i.buttonPosition,s=e.plotLeft,a=s;o&&"hidden"!==o.visibility&&(o[r]({x:pi(s+n.x,s)}),a+=n.x+o.getBBox().width+5);for(var h=0,l=this.buttonOptions.length;h<l;++h)"hidden"!==t[h].visibility?(t[h][r]({x:a}),a+=(t[h].width||0)+i.buttonSpacing):t[h][r]({x:s})},t.prototype.handleCollision=function(t){var e=this.chart,i=this.buttonGroup,o=this.inputGroup,r=this.initialButtonGroupWidth,n=this.options,s=n.buttonPosition,a=n.dropdown,h=n.inputPosition,l=function(){o&&i&&o.attr({translateX:o.alignAttr.translateX+(e.axisOffset[1]>=-t?0:-t),translateY:o.alignAttr.translateY+i.getBBox().height+10})};o&&i?h.align===s.align?(l(),r>e.plotWidth+t-20?this.collapseButtons():this.expandButtons()):r-t+o.getBBox().width>e.plotWidth?"responsive"===a?this.collapseButtons():l():this.expandButtons():i&&"responsive"===a&&(r>e.plotWidth?this.collapseButtons():this.expandButtons()),i&&("always"===a&&this.collapseButtons(),"never"===a&&this.expandButtons()),this.alignButtonGroup(t)},t.prototype.collapseButtons=function(){var t=this.buttons,e=this.zoomText;!0!==this.isCollapsed&&(this.isCollapsed=!0,e.hide(),t.forEach(function(t){t.hide()}),this.showDropdown())},t.prototype.expandButtons=function(){var t=this.buttons,e=this.zoomText;!1!==this.isCollapsed&&(this.isCollapsed=!1,this.hideDropdown(),e.show(),t.forEach(function(t){t.show()}),this.positionButtons())},t.prototype.showDropdown=function(){var t=this.buttonGroup,e=this.dropdownLabel,i=this.dropdown;t&&i&&(e.show(),c1(i,{visibility:"inherit"}),this.hasVisibleDropdown=!0)},t.prototype.hideDropdown=function(){var t=this.dropdown;t&&(this.dropdownLabel.hide(),c1(t,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},t.prototype.getHeight=function(){var t=this.options,e=this.group,i=t.inputPosition,o=t.buttonPosition,r=t.y,n=o.y,s=i.y,a=0;if(t.height)return t.height;this.alignElements(),a=e?e.getBBox(!0).height+13+r:0;var h=Math.min(s,n);return(s<0&&n<0||s>0&&n>0)&&(a+=Math.abs(h)),a},t.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},t.prototype.update=function(t,e){void 0===e&&(e=!0);var i=this.chart;if(pt(!0,this.options,t),this.options.selected&&this.options.selected>=this.options.buttons.length&&(this.options.selected=void 0,i.options.rangeSelector.selected=void 0),c2(t.enabled))return this.destroy(),this.init(i);this.isDirty=!!t.buttons,e&&this.render()},t.prototype.destroy=function(){var e=this,i=e.minInput,o=e.maxInput;e.eventsToUnbind&&(e.eventsToUnbind.forEach(function(t){return t()}),e.eventsToUnbind=void 0),c3(e.buttons),i&&(i.onfocus=i.onblur=i.onchange=null),o&&(o.onfocus=o.onblur=o.onchange=null),pe(e,function(i,o){i&&"chart"!==o&&(i instanceof ik?i.destroy():i instanceof window.HTMLElement&&c6(i),delete e[o]),i!==t.prototype[o]&&(e[o]=null)},this),this.buttons=[]},t}();c9(pn.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});var ps=(A=function(t,e){return(A=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}A(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),pa=eV.format,ph=dH.setFixedRange,pl=tR.addEvent,pd=tR.clamp,pc=tR.crisp,pp=tR.defined,pu=tR.extend,pf=tR.find,pg=tR.isNumber,pv=tR.isString,pm=tR.merge,py=tR.pick,px=tR.splat;function pb(t,e,i){var o,r,n,s;return"xAxis"===t?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0}:"yAxis"===t?{labels:{y:-2},opposite:null===(r=null!==(o=i.opposite)&&void 0!==o?o:e.opposite)||void 0===r||r,showLastLabel:!!(e.categories||"category"===e.type),title:{text:(null===(n=i.title)||void 0===n?void 0:n.text)!=="Values"?null===(s=i.title)||void 0===s?void 0:s.text:null}}:{}}function pk(t,e){if("xAxis"===t){var i=py(e.navigator&&e.navigator.enabled,dR.enabled,!0),o={type:"datetime",categories:void 0};return i&&(o.startOnTick=!1,o.endOnTick=!1),o}return{}}var pM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ps(e,t),e.prototype.init=function(e,i){var o=t6(),r=e.xAxis,n=e.yAxis,s=py(e.navigator&&e.navigator.enabled,dR.enabled,!0);e.xAxis=e.yAxis=void 0;var a=pm({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:s},scrollbar:{enabled:py(d2.enabled,!0)},rangeSelector:{enabled:py(cI.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:py(o.tooltip&&o.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},e,{isStock:!0});e.xAxis=r,e.yAxis=n,a.xAxis=px(e.xAxis||{}).map(function(t){return pm(pb("xAxis",t,o.xAxis),t,pk("xAxis",e))}),a.yAxis=px(e.yAxis||{}).map(function(t){return pm(pb("yAxis",t,o.yAxis),t)}),t.prototype.init.call(this,a,i)},e.prototype.createAxis=function(e,i){return i.axis=pm(pb(e,i.axis,t6()[e]),i.axis,pk(e,this.userOptions)),t.prototype.createAxis.call(this,e,i)},e}(ap);pl(ap,"update",function(t){var e=t.options;"scrollbar"in e&&this.navigator&&(pm(!0,this.options.scrollbar,e.scrollbar),this.navigator.update({enabled:!!this.navigator.navigatorEnabled}),delete e.scrollbar)}),function(t){function e(t){if((null===(i=null===(e=this.crosshair)||void 0===e?void 0:e.label)||void 0===i?void 0:i.enabled)&&this.cross&&pg(this.min)&&pg(this.max)){var e,i,o,r,n,s,a=this.chart,h=this.logarithmic,l=this.crosshair.label,d=this.horiz,c=this.opposite,p=this.left,u=this.top,f=this.width,g="inside"===this.options.tickPosition,v=!1!==this.crosshair.snap,m=t.e||(null===(o=this.cross)||void 0===o?void 0:o.e),y=t.point,x=this.crossLabel,b=l.format,k="",M=0,w=this.min,S=this.max;h&&(w=h.lin2log(this.min),S=h.lin2log(this.max));var A=d?"center":c?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";x||(x=this.crossLabel=a.renderer.label("",0,void 0,l.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(y&&y.series?y.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:l.align||A,padding:py(l.padding,8),r:py(l.borderRadius,3),zIndex:2}).add(this.labelGroup),a.styledMode||x.attr({fill:l.backgroundColor||y&&y.series&&y.series.color||"#666666",stroke:l.borderColor||"","stroke-width":l.borderWidth||0}).css(pu({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},l.style||{}))),d?(r=v?(y.plotX||0)+p:m.chartX,n=u+(c?0:this.height)):(r=p+this.offset+(c?f:0),n=v?(y.plotY||0)+u:m.chartY),b||l.formatter||(this.dateTime&&(k="%b %d, %Y"),b="{value"+(k?":"+k:"")+"}");var T=v?this.isXAxis?y.x:y.y:this.toValue(d?m.chartX:m.chartY),C=y&&y.series?y.series.isPointInside(y):pg(T)&&T>w&&T<S,O="";b?O=pa(b,{value:T},a):l.formatter&&pg(T)&&(O=l.formatter.call(this,T)),x.attr({text:O,x:r,y:n,visibility:C?"inherit":"hidden"});var P=x.getBBox();!pg(x.x)||d||c||(r=x.x-P.width/2),pg(x.y)&&(d?(g&&!c||!g&&c)&&(n=x.y-P.height):n=x.y-P.height/2),s=d?{left:p,right:p+this.width}:{left:"left"===this.labelAlign?p:0,right:"right"===this.labelAlign?p+this.width:a.chartWidth};var E=x.translateX||0;E<s.left&&(M=s.left-E),E+P.width>=s.right&&(M=-(E+P.width-s.right)),x.attr({x:Math.max(0,r+M),y:Math.max(0,n),anchorX:d?r:this.opposite?0:a.chartWidth,anchorY:d?this.opposite?a.chartHeight:0:n+P.height/2})}}function i(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function o(t){var e=this.chart,i=this.options,o=e._labelPanes=e._labelPanes||{},r=i.labels;if(e.options.isStock&&"yAxis"===this.coll){var n=i.top+","+i.height;!o[n]&&r.enabled&&(15===r.distance&&1===this.side&&(r.distance=0),void 0===r.align&&(r.align="right"),o[n]=this,t.align="right",t.preventDefault())}}function r(){var t=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&t._labelPanes&&t._labelPanes[e]===this&&delete t._labelPanes[e]}function n(t){var e,i,o,r,n,s,a,h=this.isLinked&&!this.series&&this.linkedParent?this.linkedParent.series:this.series,l=this.chart,d=l.renderer,c=this.left,p=this.top,u=[],f=t.translatedValue,g=t.value,v=t.force,m=[];if(l.options.isStock&&!1!==t.acrossPanes&&"xAxis"===this.coll||"yAxis"===this.coll){t.preventDefault(),y="xAxis"===this.coll?"yAxis":"xAxis",m=pg(x=this.options[y])?[l[y][x]]:pv(x)?[l.get(x)]:h.map(function(t){return t[y]}),n=this.isXAxis?l.yAxis:l.xAxis;for(var y,x,b=0;b<n.length;b++){var k=n[b];if(!k.options.isInternal){var M=k.isXAxis?"yAxis":"xAxis";this===(pp(k.options[M])?l[M][k.options[M]]:l[M][0])&&m.push(k)}}s=m.length?[]:[this.isXAxis?l.yAxis[0]:l.xAxis[0]];for(var w=function(t){-1!==s.indexOf(t)||pf(s,function(e){return e.pos===t.pos&&e.len===t.len})||s.push(t)},S=0,A=m;S<A.length;S++){var T=A[S];w(T)}if(pg(a=py(f,this.translate(g||0,void 0,void 0,t.old)))){if(this.horiz)for(var C=0;C<s.length;C++){var T=s[C],O=void 0;r=(i=T.pos)+T.len,e=o=Math.round(a+this.transB),"pass"!==v&&(e<c||e>c+this.width)&&(v?e=o=pd(e,c,c+this.width):O=!0),O||u.push(["M",e,i],["L",o,r])}else for(var P=0;P<s.length;P++){var T=s[P],O=void 0;o=(e=T.pos)+T.len,i=r=Math.round(p+this.height-a),"pass"!==v&&(i<p||i>p+this.height)&&(v?i=r=pd(i,p,p+this.height):O=!0),O||u.push(["M",e,i],["L",o,r])}}t.path=u.length>0?d.crispPolyLine(u,t.lineWidth||1):void 0}}function s(t){if(this.chart.options.isStock){var e=void 0;this.is("column")||this.is("columnrange")?e={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(e={marker:{enabled:!1,radius:2}}),e&&(t.plotOptions[this.type]=pm(t.plotOptions[this.type],e))}}function a(){var t=this.chart,e=this.options.dataGrouping;return!1!==this.allowDG&&e&&py(e.enabled,t.options.isStock)}function h(t,e){for(var i=0;i<t.length;i+=2){var o=t[i],r=t[i+1];pp(o[1])&&o[1]===r[1]&&(o[1]=r[1]=pc(o[1],e)),pp(o[2])&&o[2]===r[2]&&(o[2]=r[2]=pc(o[2],e))}return t}t.compose=function(t,l,d,c){var p=d.prototype;p.forceCropping||(pl(l,"afterDrawCrosshair",e),pl(l,"afterHideCrosshair",i),pl(l,"autoLabelAlign",o),pl(l,"destroy",r),pl(l,"getPlotLinePath",n),t.prototype.setFixedRange=ph,p.forceCropping=a,pl(d,"setOptions",s),c.prototype.crispPolyLine=h)},t.stockChart=function(e,i,o){return new t(e,i,o)}}(pM||(pM={}));var pw=pM,pS=(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)}),pA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pS(e,t),e}(nK.seriesTypes.column.prototype.pointClass),pT={lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},pC=(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)}),pO=nK.seriesTypes.column,pP=tR.crisp,pE=tR.extend,pL=tR.merge,pB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pC(e,t),e.prototype.extendStem=function(t,e,i){var o=t[0],r=t[1];"number"==typeof o[2]&&(o[2]=Math.max(i+e,o[2])),"number"==typeof r[2]&&(r[2]=Math.min(i-e,r[2]))},e.prototype.getPointPath=function(t,e){var i=e.strokeWidth(),o=t.series,r=pP(t.plotX||0,i),n=Math.round(t.shapeArgs.width/2),s=[["M",r,Math.round(t.yBottom)],["L",r,Math.round(t.plotHigh)]];if(null!==t.close){var a=pP(t.plotClose,i);s.push(["M",r,a],["L",r+n,a]),o.extendStem(s,i/2,a)}return s},e.prototype.drawSinglePoint=function(t){var e,i=t.series,o=i.chart,r=t.graphic;void 0!==t.plotY&&(r||(t.graphic=r=o.renderer.path().add(i.group)),o.styledMode||r.attr(i.pointAttribs(t,t.selected&&"select")),e=i.getPointPath(t,r),r[r?"animate":"attr"]({d:e}).addClass(t.getClassName(),!0))},e.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.options.stacking=void 0},e.prototype.pointAttribs=function(e,i){var o=t.prototype.pointAttribs.call(this,e,i);return delete o.fill,o},e.prototype.toYData=function(t){return[t.high,t.low,t.close]},e.prototype.translate=function(){var e=this,i=e.yAxis,o=this.pointArrayMap&&this.pointArrayMap.slice()||[],r=o.map(function(t){return"plot".concat(t.charAt(0).toUpperCase()+t.slice(1))});r.push("yBottom"),o.push("low"),t.prototype.translate.apply(e),e.points.forEach(function(t){o.forEach(function(o,n){var s=t[o];null!==s&&(e.dataModify&&(s=e.dataModify.modifyValue(s)),t[r[n]]=i.toPixels(s,!0))}),t.tooltipPos[1]=t.plotHigh+i.pos-e.chart.plotTop})},e.defaultOptions=pL(pO.defaultOptions,pT),e}(pO);pE(pB.prototype,{pointClass:pA,animate:null,directTouch:!1,keysAffectYAxis:["low","high"],pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),nK.registerSeriesType("hlc",pB);var pD=(O=function(t,e){return(O=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}O(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),pI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pD(e,t),e.prototype.getClassName=function(){return t.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")},e.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)},e.prototype.resolveColor=function(){t.prototype.resolveColor.call(this),this.series.is("heikinashi")||this.resolveUpColor()},e.prototype.getZone=function(){var e=t.prototype.getZone.call(this);return this.resolveUpColor(),e},e.prototype.applyOptions=function(){return t.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},e}(nK.seriesTypes.hlc.prototype.pointClass),pz={tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}},pR=(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)}),pN=td.composed,pW=nK.seriesTypes.hlc,pG=tR.addEvent,pX=tR.crisp,pH=tR.extend,pY=tR.merge,pF=tR.pushUnique;function p_(t){var e=t.options,i=e.dataGrouping;i&&e.useOhlcData&&"highcharts-navigator-series"!==e.id&&(i.approximation="ohlc")}function pj(t){var e=t.options;e.useOhlcData&&"highcharts-navigator-series"!==e.id&&pH(this,{pointValKey:pU.prototype.pointValKey,pointArrayMap:pU.prototype.pointArrayMap,toYData:pU.prototype.toYData})}var pU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pR(e,t),e.compose=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];pF(pN,"OHLCSeries")&&(pG(t,"afterSetOptions",p_),pG(t,"init",pj))},e.prototype.getPointPath=function(e,i){var o=t.prototype.getPointPath.call(this,e,i),r=i.strokeWidth(),n=pX(e.plotX||0,r),s=Math.round(e.shapeArgs.width/2);if(null!==e.open){var a=pX(e.plotOpen,r);o.push(["M",n,a],["L",n-s,a]),t.prototype.extendStem.call(this,o,r/2,a)}return o},e.prototype.pointAttribs=function(e,i){var o=t.prototype.pointAttribs.call(this,e,i),r=this.options;return delete o.fill,!e.options.color&&r.upColor&&e.open<e.close&&(o.stroke=r.upColor),o},e.prototype.toYData=function(t){return[t.open,t.high,t.low,t.close]},e.defaultOptions=pY(pW.defaultOptions,pz),e}(pW);pH(pU.prototype,{pointClass:pI,pointArrayMap:["open","high","low","close"]}),nK.registerSeriesType("ohlc",pU);var pV={states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0},pZ=(E=function(t,e){return(E=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}E(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),pq=nK.seriesTypes,pK=pq.column,p$=pq.ohlc,pJ=tR.crisp,pQ=tR.merge,p0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pZ(e,t),e.prototype.pointAttribs=function(t,e){var i=pK.prototype.pointAttribs.call(this,t,e),o=this.options,r=t.open<t.close,n=o.lineColor||this.color,s=t.color||this.color;if(i["stroke-width"]=o.lineWidth,i.fill=t.options.color||r&&o.upColor||s,i.stroke=t.options.lineColor||r&&o.upLineColor||n,e){var a=o.states[e];i.fill=a.color||i.fill,i.stroke=a.lineColor||i.stroke,i["stroke-width"]=a.lineWidth||i["stroke-width"]}return i},e.prototype.drawPoints=function(){for(var t=this.points,e=this.chart,i=this.yAxis.reversed,o=0;o<t.length;o++){var r=t[o],n=r.graphic,s=void 0,a=void 0,h=void 0,l=void 0,d=void 0,c=void 0,p=void 0,u=void 0,f=void 0,g=!n;if(void 0!==r.plotY){n||(r.graphic=n=e.renderer.path().add(this.group)),this.chart.styledMode||n.attr(this.pointAttribs(r,r.selected&&"select")).shadow(this.options.shadow);var v=n.strokeWidth();p=pJ(r.plotX||0,v),h=Math.min(s=r.plotOpen,a=r.plotClose),l=Math.max(s,a),f=Math.round(r.shapeArgs.width/2),d=i?l!==r.yBottom:Math.round(h)!==Math.round(r.plotHigh||0),c=i?Math.round(h)!==Math.round(r.plotHigh||0):l!==r.yBottom,h=pJ(h,v),l=pJ(l,v),(u=[]).push(["M",p-f,l],["L",p-f,h],["L",p+f,h],["L",p+f,l],["Z"],["M",p,h],["L",p,d?Math.round(i?r.yBottom:r.plotHigh):h],["M",p,l],["L",p,c?Math.round(i?r.plotHigh:r.yBottom):l]),n[g?"attr":"animate"]({d:u}).addClass(r.getClassName(),!0)}}},e.defaultOptions=pQ(p$.defaultOptions,{tooltip:p$.defaultOptions.tooltip},pV),e}(p$);nK.registerSeriesType("candlestick",p0);var p1=(L=function(t,e){return(L=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}L(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),p2=nK.seriesTypes.column.prototype.pointClass,p3=tR.isNumber,p5=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ttBelow=!1,e}return p1(e,t),e.prototype.isValid=function(){return p3(this.y)||void 0===this.y},e.prototype.hasNewShapeType=function(){var t=this.options.shape||this.series.options.shape;return this.graphic&&t&&t!==this.graphic.symbolKey},e}(p2),p6={borderRadius:0,pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd3ff"}},style:{fontSize:"0.7em",fontWeight:"bold"}};!function(t){var e=[];function i(t,e,i,o,r){var n=r&&r.anchorX||t,s=r&&r.anchorY||e,a=this.circle(n-1,s-1,2,2);return a.push(["M",n,s],["L",t,e+o],["L",t,e],["L",t+i,e],["L",t+i,e+o],["L",t,e+o],["Z"]),a}function o(t,e){t[e+"pin"]=function(i,o,r,n,s){var a,h=s&&s.anchorX,l=s&&s.anchorY;if("circle"===e&&n>r&&(i-=Math.round((n-r)/2),r=n),a=t[e](i,o,r,n,s),h&&l){var d=h;if("circle"===e)d=i+r/2;else{var c=a[0],p=a[1];"M"===c[0]&&"L"===p[0]&&(d=(c[1]+p[1])/2)}var u=o>l?o:o+n;a.push(["M",d,u],["L",h,l]),a=a.concat(t.circle(h-1,l-1,2,2))}return a}}t.compose=function(t){if(-1===e.indexOf(t)){e.push(t);var r=t.prototype.symbols;r.flag=i,o(r,"circle"),o(r,"square")}var n=eZ.getRendererType();e.indexOf(n)&&e.push(n)}}(to||(to={}));var p9=to,p4=td.composed,p8=hO.prototype,p7=sm.prototype,ut=tR.defined,ue=tR.pushUnique,ui=tR.stableSort;!function(t){function e(t){return p7.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,t)}function i(){p8.translate.apply(this);var t,e,i,o,r,n,s,a,h,l=this,d=l.options,c=l.chart,p=l.points,u=d.onSeries,f=u&&c.get(u),g=f&&f.options.step,v=f&&f.points,m=c.inverted,y=l.xAxis,x=l.yAxis,b=p.length-1,k=d.onKey||"y",M=v&&v.length,w=0;if(f&&f.visible&&M)for(w=(f.pointXOffset||0)+(f.barW||0)/2,a=f.currentDataGrouping,n=v[M-1].x+(a?a.totalRange:0),ui(p,function(t,e){return t.x-e.x}),k="plot"+k[0].toUpperCase()+k.substr(1);M--&&p[b]&&"break"!==function(){if(r=v[M],(i=p[b]).y=r.y,r.x<=i.x&&void 0!==r[k]){if(i.x<=n&&(i.plotY=r[k],r.x<i.x&&!g&&(s=v[M+1])&&void 0!==s[k])){if(ut(i.plotX)&&f.is("spline")){for(var o=[r.plotX||0,r.plotY||0],a=[s.plotX||0,s.plotY||0],l=(null===(t=r.controlPoints)||void 0===t?void 0:t.high)||o,d=(null===(e=s.controlPoints)||void 0===e?void 0:e.low)||a,c=function(t,e){return Math.pow(1-t,3)*o[e]+3*(1-t)*(1-t)*t*l[e]+3*(1-t)*t*t*d[e]+t*t*t*a[e]},u=0,m=1,y=void 0,w=0;w<100;w++){var S=(u+m)/2,A=c(S,0);if(null===A)break;if(.25>Math.abs(A-i.plotX)){y=S;break}A<i.plotX?u=S:m=S}ut(y)&&(i.plotY=c(y,1),i.y=x.toValue(i.plotY,!0))}else h=(i.x-r.x)/(s.x-r.x),i.plotY+=h*(s[k]-r[k]),i.y+=h*(s.y-r.y)}if(b--,M++,b<0)return"break"}}(););p.forEach(function(t,e){var i;t.plotX+=w,(void 0===t.plotY||m)&&(t.plotX>=0&&t.plotX<=y.len?m?(t.plotY=y.translate(t.x,0,1,0,1),t.plotX=ut(t.y)?x.translate(t.y,0,0,0,1):0):t.plotY=(y.opposite?0:l.yAxis.len)+y.offset:t.shapeArgs={}),(o=p[e-1])&&o.plotX===t.plotX&&(void 0===o.stackIndex&&(o.stackIndex=0),i=o.stackIndex+1),t.stackIndex=i}),this.onSeries=f}t.compose=function(t){if(ue(p4,"OnSeries")){var o=t.prototype;o.getPlotBox=e,o.translate=i}return t},t.getPlotBox=e,t.translate=i}(tr||(tr={}));var uo=tr,ur=(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)}),un=td.noop,us=eQ.distribute,ua=nK.series,uh=nK.seriesTypes.column,ul=tR.addEvent,ud=tR.defined,uc=tR.extend,up=tR.isNumber,uu=tR.merge,uf=tR.objectEach,ug=tR.wrap,uv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ur(e,t),e.prototype.animate=function(t){t&&this.setClip()},e.prototype.drawPoints=function(){var t,e,i,o,r,n,s,a,h,l,d,c,p,u=this.points,f=this.chart,g=f.renderer,v=f.inverted,m=this.options,y=m.y,x=this.yAxis,b={},k=[],M=up(m.borderRadius)?m.borderRadius:0;for(n=u.length;n--;)s=u[n],c=(v?s.plotY:s.plotX)>this.xAxis.len,i=s.plotX,h=s.stackIndex,r=s.options.shape||m.shape,void 0!==(o=s.plotY)&&(o=s.plotY+y-(void 0!==h&&h*m.stackDistance)),s.anchorX=h?void 0:s.plotX,l=h?void 0:s.plotY,p="flag"!==r,a=s.graphic,void 0!==o&&i>=0&&!c?(a&&s.hasNewShapeType()&&(a=a.destroy()),a||(a=s.graphic=g.label("",0,void 0,r,void 0,void 0,m.useHTML).addClass("highcharts-point").add(this.markerGroup),s.graphic.div&&(s.graphic.div.point=s),a.isNew=!0),a.attr({align:p?"center":"left",width:m.width,height:m.height,"text-align":m.textAlign,r:M}),f.styledMode||a.attr(this.pointAttribs(s)).css(uu(m.style,s.style)).shadow(m.shadow),i>0&&(i-=a.strokeWidth()%2),d={y:o,anchorY:l},m.allowOverlapX&&(d.x=i,d.anchorX=s.anchorX),a.attr({text:null!==(e=null!==(t=s.options.title)&&void 0!==t?t:m.title)&&void 0!==e?e:"A"})[a.isNew?"attr":"animate"](d),m.allowOverlapX||(b[s.plotX]?b[s.plotX].size=Math.max(b[s.plotX].size,a.width||0):b[s.plotX]={align:p?.5:0,size:a.width||0,target:i,anchorX:i}),s.tooltipPos=[i,o+x.pos-f.plotTop]):a&&(s.graphic=a.destroy());if(!m.allowOverlapX){var w=100;uf(b,function(t){t.plotX=t.anchorX,k.push(t),w=Math.max(t.size,w)}),us(k,v?x.len:this.xAxis.len,w);for(var S=0;S<u.length;S++){var A=u[S],T=A.plotX,C=A.graphic,O=C&&b[T];O&&C&&(ud(O.pos)?C[C.isNew?"attr":"animate"]({x:O.pos+(O.align||0)*O.size,anchorX:A.anchorX}).show().isNew=!1:C.hide().isNew=!0)}}m.useHTML&&this.markerGroup&&ug(this.markerGroup,"on",function(t){return ik.prototype.on.apply(t.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},e.prototype.drawTracker=function(){var e=this.points;t.prototype.drawTracker.call(this);for(var i=function(t){var i=t.graphic;i&&(t.unbindMouseOver&&t.unbindMouseOver(),t.unbindMouseOver=ul(i.element,"mouseover",function(){t.stackIndex>0&&!t.raised&&(t._y=i.y,i.attr({y:t._y-8}),t.raised=!0);for(var o=0;o<e.length;o++){var r=e[o];r!==t&&r.raised&&r.graphic&&(r.graphic.attr({y:r._y}),r.raised=!1)}}))},o=0;o<e.length;o++)i(e[o])},e.prototype.pointAttribs=function(t,e){var i=this.options,o=t&&t.color||this.color,r=i.lineColor,n=t&&t.lineWidth,s=t&&t.fillColor||i.fillColor;return e&&(s=i.states[e].fillColor,r=i.states[e].lineColor,n=i.states[e].lineWidth),{fill:s||o,stroke:r||o,"stroke-width":n||i.lineWidth||0}},e.prototype.setClip=function(){ua.prototype.setClip.apply(this,arguments),!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},e.compose=p9.compose,e.defaultOptions=uu(uh.defaultOptions,p6),e}(uh);uo.compose(uv),uc(uv.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:p5,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:un,init:ua.prototype.init}),nK.registerSeriesType("flags",uv);var um=tR.addEvent,uy=tR.find,ux=tR.fireEvent,ub=tR.isArray,uk=tR.isNumber,uM=tR.pick;!function(t){function e(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function i(){var t;(null===(t=this.brokenAxis)||void 0===t?void 0:t.hasBreaks)&&(this.options.ordinal=!1)}function o(){var t=this.brokenAxis;if(null==t?void 0:t.hasBreaks){for(var e=this.tickPositions,i=this.tickPositions.info,o=[],r=0;r<e.length;r++)t.isInAnyBreak(e[r])||o.push(e[r]);this.tickPositions=o,this.tickPositions.info=i}}function r(){this.brokenAxis||(this.brokenAxis=new l(this))}function n(){var t,e,i=this.isDirty,o=this.options.connectNulls,r=this.points,n=this.xAxis,s=this.yAxis;if(i)for(var a=r.length;a--;){var h=r[a],l=!(null===h.y&&!1===o)&&((null===(t=null==n?void 0:n.brokenAxis)||void 0===t?void 0:t.isInAnyBreak(h.x,!0))||(null===(e=null==s?void 0:s.brokenAxis)||void 0===e?void 0:e.isInAnyBreak(h.y,!0)));h.visible=!l&&!1!==h.options.visible}}function s(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,uM(this.pointArrayMap,["y"]))}function a(t,e){var i,o,r,n,s=this,a=s.points;if(null===(i=null==t?void 0:t.brokenAxis)||void 0===i?void 0:i.hasBreaks){var h=t.brokenAxis;e.forEach(function(e){o=(null==h?void 0:h.breakArray)||[],r=t.isXAxis?t.min:uM(s.options.threshold,t.min);var i,l,d=null===(l=null===(i=null==t?void 0:t.options)||void 0===i?void 0:i.breaks)||void 0===l?void 0:l.filter(function(t){for(var e=!0,i=0;i<o.length;i++){var r=o[i];if(r.from===t.from&&r.to===t.to){e=!1;break}}return e});a.forEach(function(i){n=uM(i["stack"+e.toUpperCase()],i[e]),o.forEach(function(e){if(uk(r)&&uk(n)){var o="";r<e.from&&n>e.to||r>e.from&&n<e.from?o="pointBreak":(r<e.from&&n>e.from&&n<e.to||r>e.from&&n>e.to&&n<e.from)&&(o="pointInBreak"),o&&ux(t,o,{point:i,brk:e})}}),null==d||d.forEach(function(e){ux(t,"pointOutsideOfBreak",{point:i,brk:e})})})})}}function h(){var t=this.currentDataGrouping,e=null==t?void 0:t.gapSize,i=this.points.slice(),o=this.yAxis,r=this.options.gapSize,n=i.length-1;if(r&&n>0){"value"!==this.options.gapUnit&&(r*=this.basePointRange),e&&e>r&&e>=this.basePointRange&&(r=e);for(var s=void 0,a=void 0;n--;)if(a&&!1!==a.visible||(a=i[n+1]),s=i[n],!1!==a.visible&&!1!==s.visible){if(a.x-s.x>r){var h=(s.x+a.x)/2;i.splice(n+1,0,{isNull:!0,x:h}),o.stacking&&this.options.stacking&&((o.stacking.stacks[this.stackKey][h]=new aL(o,o.options.stackLabels,!1,h,this.stack)).total=0)}a=s}}return this.getGraphPath(i)}t.compose=function(t,l){if(!t.keepProps.includes("brokenAxis")){t.keepProps.push("brokenAxis"),um(t,"init",r),um(t,"afterInit",e),um(t,"afterSetTickPositions",o),um(t,"afterSetOptions",i);var d=l.prototype;d.drawBreaks=a,d.gappedPath=h,um(l,"afterGeneratePoints",n),um(l,"afterRender",s)}return t};var l=function(){function t(t){this.hasBreaks=!1,this.axis=t}return t.isInBreak=function(t,e){var i=t.repeat||1/0,o=t.from,r=t.to-t.from,n=e>=o?(e-o)%i:i-(o-e)%i;return t.inclusive?n<=r:n<r&&0!==n},t.lin2Val=function(e){var i=this.brokenAxis,o=i&&i.breakArray;if(!o||!uk(e))return e;var r,n,s=e;for(n=0;n<o.length&&!((r=o[n]).from>=s);n++)r.to<s?s+=r.len:t.isInBreak(r,s)&&(s+=r.len);return s},t.val2Lin=function(e){var i=this.brokenAxis,o=i&&i.breakArray;if(!o||!uk(e))return e;var r,n,s=e;for(n=0;n<o.length;n++)if((r=o[n]).to<=e)s-=r.len;else if(r.from>=e)break;else if(t.isInBreak(r,e)){s-=e-r.from;break}return s},t.prototype.findBreakAt=function(t,e){return uy(e,function(e){return e.from<t&&t<e.to})},t.prototype.isInAnyBreak=function(e,i){var o,r,n,s=this.axis,a=s.options.breaks||[],h=a.length;if(h&&uk(e)){for(;h--;)t.isInBreak(a[h],e)&&(o=!0,r||(r=uM(a[h].showPoints,!s.isXAxis)));n=o&&i?o&&!r:o}return n},t.prototype.setBreaks=function(e,i){var o=this,r=o.axis,n=r.chart.time,s=ub(e)&&!!e.length&&!!Object.keys(e[0]).length;r.isDirty=o.hasBreaks!==s,o.hasBreaks=s,null==e||e.forEach(function(t){t.from=n.parse(t.from)||0,t.to=n.parse(t.to)||0}),e!==r.options.breaks&&(r.options.breaks=r.userOptions.breaks=e),r.forceRedraw=!0,r.series.forEach(function(t){t.isDirty=!0}),s||r.val2lin!==t.val2Lin||(delete r.val2lin,delete r.lin2val),s&&(r.userOptions.ordinal=!1,r.lin2val=t.lin2Val,r.val2lin=t.val2Lin,r.setExtremes=function(t,e,i,n,s){if(o.hasBreaks){for(var a=this.options.breaks||[],h=void 0;h=o.findBreakAt(t,a);)t=h.to;for(;h=o.findBreakAt(e,a);)e=h.from;e<t&&(e=t)}r.constructor.prototype.setExtremes.call(this,t,e,i,n,s)},r.setAxisTranslation=function(){if(r.constructor.prototype.setAxisTranslation.call(this),o.unitLength=void 0,o.hasBreaks){var e,i,n,s,a=r.options.breaks||[],h=[],l=[],d=uM(r.pointRangePadding,0),c=0,p=r.userMin||r.min,u=r.userMax||r.max;a.forEach(function(e){i=e.repeat||1/0,uk(p)&&uk(u)&&(t.isInBreak(e,p)&&(p+=e.to%i-p%i),t.isInBreak(e,u)&&(u-=u%i-e.from%i))}),a.forEach(function(t){if(n=t.from,i=t.repeat||1/0,uk(p)&&uk(u)){for(;n-i>p;)n-=i;for(;n<p;)n+=i;for(s=n;s<u;s+=i)h.push({value:s,move:"in"}),h.push({value:s+t.to-t.from,move:"out",size:t.breakSize})}}),h.sort(function(t,e){return t.value===e.value?("in"===t.move?0:1)-("in"===e.move?0:1):t.value-e.value}),e=0,n=p,h.forEach(function(t){1===(e+="in"===t.move?1:-1)&&"in"===t.move&&(n=t.value),0===e&&uk(n)&&(l.push({from:n,to:t.value,len:t.value-n-(t.size||0)}),c+=t.value-n-(t.size||0))}),o.breakArray=l,uk(p)&&uk(u)&&uk(r.min)&&(o.unitLength=u-p-c+d,ux(r,"afterBreaks"),r.staticScale?r.transA=r.staticScale:o.unitLength&&(r.transA*=(u-r.min+d)/o.unitLength),d&&(r.minPixelPadding=r.transA*(r.minPointOffset||0)),r.min=p,r.max=u)}}),uM(i,!0)&&r.chart.redraw()},t}();t.Additions=l}(tn||(tn={}));var uw=tn;td.BrokenAxis=td.BrokenAxis||uw,td.BrokenAxis.compose(td.Axis,td.Series);var uS={},uA=tR.arrayMax,uT=tR.arrayMin,uC=tR.correctFloat,uO=tR.extend,uP=tR.isNumber;function uE(t){var e=t.length,i=uL(t);return uP(i)&&e&&(i=uC(i/e)),i}function uL(t){var e,i=t.length;if(!i&&t.hasNulls)e=null;else if(i)for(e=0;i--;)e+=t[i];return e}var uB={average:uE,averages:function(){var t=[];return[].forEach.call(arguments,function(e){t.push(uE(e))}),void 0===t[0]?void 0:t},close:function(t){return t.length?t[t.length-1]:t.hasNulls?null:void 0},high:function(t){return t.length?uA(t):t.hasNulls?null:void 0},hlc:function(t,e,i){if(t=uS.high(t),e=uS.low(e),i=uS.close(i),uP(t)||uP(e)||uP(i))return[t,e,i]},low:function(t){return t.length?uT(t):t.hasNulls?null:void 0},ohlc:function(t,e,i,o){if(t=uS.open(t),e=uS.high(e),i=uS.low(i),o=uS.close(o),uP(t)||uP(e)||uP(i)||uP(o))return[t,e,i,o]},open:function(t){return t.length?t[0]:t.hasNulls?null:void 0},range:function(t,e){return(t=uS.low(t),e=uS.high(e),uP(t)||uP(e))?[t,e]:null===t&&null===e?null:void 0},sum:uL};uO(uS,uB);var uD={common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%[AebHMSL]","%[AebHMSL]","-%[HMSL]"],second:["%[AebHMS]","%[AebHMS]","-%[HMS]"],minute:["%[AebHM]","%[AebHM]","-%[HM]"],hour:["%[AebHM]","%[AebHM]","-%[HM]"],day:["%[AebY]","%[Aeb]","-%[AebY]"],week:["week from %[AebY]","%[Aeb]","-%[AebY]"],month:["%[BY]","%[B]","-%[BY]"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},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]],["week",[1]],["month",[1,3,6]],["year",null]]},uI=tR.addEvent,uz=tR.extend,uR=tR.merge,uN=tR.pick;function uW(t){var e=this,i=e.series;i.forEach(function(t){t.groupPixelWidth=void 0}),i.forEach(function(i){i.groupPixelWidth=e.getGroupPixelWidth&&e.getGroupPixelWidth(),i.groupPixelWidth&&(i.hasProcessed=!0),i.applyGrouping(!!t.hasExtremesChanged)})}function uG(){for(var t,e,i=this.series,o=i.length,r=0,n=!1;o--;)(e=i[o].options.dataGrouping)&&(r=Math.max(r,uN(e.groupPixelWidth,uD.common.groupPixelWidth)),t=(i[o].dataTable.modified||i[o].dataTable).rowCount,(i[o].groupPixelWidth||t>this.chart.plotSizeX/r||t&&e.forced)&&(n=!0));return n?r:0}function uX(){this.series.forEach(function(t){t.hasProcessed=!1})}function uH(t,e){var i;if(e=uN(e,!0),t||(t={forced:!1,units:null}),this instanceof ts)for(i=this.series.length;i--;)this.series[i].update({dataGrouping:t},!1);else this.chart.options.series.forEach(function(e){e.dataGrouping="boolean"==typeof t?t:uR(t,e.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),e&&this.chart.redraw()}var uY=function(t){ts=t;var e=t.prototype;e.applyGrouping||(uI(t,"afterSetScale",uX),uI(t,"postProcessData",uW),uz(e,{applyGrouping:uW,getGroupPixelWidth:uG,setDataGrouping:uH}))},uF=nK.series.prototype,u_=tR.addEvent,uj=tR.defined,uU=tR.error,uV=tR.extend,uZ=tR.isNumber,uq=tR.merge,uK=tR.pick,u$=tR.splat,uJ=uF.generatePoints;function uQ(t){var e,i,o,r,n=this.chart,s=this.options.dataGrouping,a=!1!==this.allowDG&&s&&uK(s.enabled,n.options.isStock),h=this.reserveSpace(),l=this.currentDataGrouping,d=!1;a&&!this.requireSorting&&(this.requireSorting=d=!0);var c=!1==!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!t)||!a;if(d&&(this.requireSorting=!1),!c){this.destroyGroupedData();var p=s.groupAll?this.dataTable:this.dataTable.modified||this.dataTable,u=this.getColumn("x",!s.groupAll),f=n.plotSizeX,g=this.xAxis,v=g.getExtremes(),m=g.options.ordinal,y=this.groupPixelWidth;if(y&&u&&p.rowCount&&f&&uZ(v.min)){i=!0,this.isDirty=!0,this.points=null;var x,b=v.min,k=v.max,M=m&&g.ordinal&&g.ordinal.getGroupIntervalFactor(b,k,this)||1,w=y*(k-b)/f*M,S=g.getTimeTicks(ry.Additions.prototype.normalizeTimeTickInterval(w,s.units||uD.units),Math.min(b,u[0]),Math.max(k,u[u.length-1]),g.options.startOfWeek,u,this.closestPointRange),A=uF.groupData.apply(this,[p,S,s.approximation]),T=A.modified,C=T.getColumn("x",!0),O=0;for((null==s?void 0:s.smoothed)&&T.rowCount&&(s.firstAnchor="firstPoint",s.anchor="middle",s.lastAnchor="lastPoint",uU(32,!1,n,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),e=1;e<S.length;e++)S.info.segmentStarts&&-1!==S.info.segmentStarts.indexOf(e)||(O=Math.max(S[e]-S[e-1],O));(o=S.info).gapSize=O,this.closestPointRange=S.info.totalRange,this.groupMap=A.groupMap,this.currentDataGrouping=o,function(t,e,i){var o=t.options.dataGrouping,r=t.currentDataGrouping&&t.currentDataGrouping.gapSize,n=t.getColumn("x");if(o&&n.length&&r&&t.groupMap){var s=e.length-1,a=o.anchor,h=o.firstAnchor,l=o.lastAnchor,d=e.length-1,c=0;if(h&&n[0]>=e[0]){c++;var p=t.groupMap[0].start,u=t.groupMap[0].length,f=void 0;uZ(p)&&uZ(u)&&(f=p+(u-1)),e[0]=({start:e[0],middle:e[0]+.5*r,end:e[0]+r,firstPoint:n[0],lastPoint:f&&n[f]})[h]}if(s>0&&l&&r&&e[s]>=i-r){d--;var g=t.groupMap[t.groupMap.length-1].start;e[s]=({start:e[s],middle:e[s]+.5*r,end:e[s]+r,firstPoint:g&&n[g],lastPoint:n[n.length-1]})[l]}if(a&&"start"!==a)for(var v=r*({middle:.5,end:1})[a];d>=c;)e[d]+=v,d--}}(this,C||[],k),h&&C&&(uj((x=C)[0])&&uZ(g.min)&&uZ(g.dataMin)&&x[0]<g.min&&((!uj(g.options.min)&&g.min<=g.dataMin||g.min===g.dataMin)&&(g.min=Math.min(x[0],g.min)),g.dataMin=Math.min(x[0],g.dataMin)),uj(x[x.length-1])&&uZ(g.max)&&uZ(g.dataMax)&&x[x.length-1]>g.max&&((!uj(g.options.max)&&uZ(g.dataMax)&&g.max>=g.dataMax||g.max===g.dataMax)&&(g.max=Math.max(x[x.length-1],g.max)),g.dataMax=Math.max(x[x.length-1],g.dataMax))),s.groupAll&&(this.allGroupedTable=T,C=(T=(r=this.cropData(T,g.min||0,g.max||0)).modified).getColumn("x"),this.cropStart=r.start),this.dataTable.modified=T}else this.groupMap=void 0,this.currentDataGrouping=void 0;this.hasGroupedData=i,this.preventGraphAnimation=(l&&l.totalRange)!==(o&&o.totalRange)}}function u0(){this.groupedData&&(this.groupedData.forEach(function(t,e){t&&(this.groupedData[e]=t.destroy?t.destroy():null)},this),this.groupedData.length=0,delete this.allGroupedTable)}function u1(){uJ.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function u2(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")||this.options.cumulative?"sum":"average"}function u3(t,e,i){var o,r,n,s=t.getColumn("x",!0)||[],a=t.getColumn("y",!0),h=this,l=h.data,d=h.options&&h.options.data,c=[],p=new nG,u=[],f=t.rowCount,g=!!a,v=[],m=h.pointArrayMap,y=m&&m.length,x=["x"].concat(m||["y"]),b=(m||["y"]).map(function(){return[]}),k=this.options.dataGrouping&&this.options.dataGrouping.groupAll,M=0,w=0,S="function"==typeof i?i:i&&uS[i]?uS[i]:uS[h.getDGApproximation&&h.getDGApproximation()||"average"];if(y)for(var A=m.length;A--;)v.push([]);else v.push([]);for(var T=y||1,C=0;C<=f;C++)if(!(s[C]<e[0])){for(;void 0!==e[M+1]&&s[C]>=e[M+1]||C===f;){if(o=e[M],h.dataGroupInfo={start:k?w:h.cropStart+w,length:v[0].length,groupStart:o},n=S.apply(h,v),h.pointClass&&!uj(h.dataGroupInfo.options)&&(h.dataGroupInfo.options=uq(h.pointClass.prototype.optionsToObject.call({series:h},h.options.data[h.cropStart+w])),x.forEach(function(t){delete h.dataGroupInfo.options[t]})),void 0!==n){c.push(o);for(var O=u$(n),P=0;P<O.length;P++)b[P].push(O[P]);u.push(h.dataGroupInfo)}w=C;for(var P=0;P<T;P++)v[P].length=0,v[P].hasNulls=!1;if(M+=1,C===f)break}if(C===f)break;if(m)for(var E=k?C:h.cropStart+C,L=l&&l[E]||h.pointClass.prototype.applyOptions.apply({series:h},[d[E]]),B=void 0,P=0;P<y;P++)uZ(B=L[m[P]])?v[P].push(B):null===B&&(v[P].hasNulls=!0);else uZ(r=g?a[C]:null)?v[0].push(r):null===r&&(v[0].hasNulls=!0)}var D={x:c};return(m||["y"]).forEach(function(t,e){D[t]=b[e]}),p.setColumns(D),{groupMap:u,modified:p}}function u5(t){var e=t.options,i=this.type,o=this.chart.options.plotOptions,r=this.useCommonDataGrouping&&uD.common,n=uD.seriesSpecific,s=t3.plotOptions[i].dataGrouping;if(o&&(n[i]||r)){var a=this.chart.rangeSelector;s||(s=uq(uD.common,n[i])),e.dataGrouping=uq(r,s,o.series&&o.series.dataGrouping,o[i].dataGrouping,this.userOptions.dataGrouping,!e.isInternal&&a&&uZ(a.selected)&&a.buttonOptions[a.selected].dataGrouping)}}var u6=function(t){var e=t.prototype;e.applyGrouping||(u_(t.prototype.pointClass,"update",function(){if(this.dataGroup)return uU(24,!1,this.series.chart),!1}),u_(t,"afterSetOptions",u5),u_(t,"destroy",u0),uV(e,{applyGrouping:uQ,destroyGroupedData:u0,generatePoints:u1,getDGApproximation:u2,groupData:u3}))},u9=eV.format,u4=td.composed,u8=tR.addEvent,u7=tR.extend,ft=tR.isNumber,fe=tR.pick,fi=tR.pushUnique;function fo(t){var e,i,o,r,n,s,a=this.chart,h=a.time,l=t.point,d=l.series,c=d.options,p=d.tooltipOptions,u=c.dataGrouping,f=d.xAxis,g=p.xDateFormat||"",v=p[t.isFooter?"footerFormat":"headerFormat"];if(f&&"datetime"===f.options.type&&u&&ft(l.key)){o=d.currentDataGrouping,r=u.dateTimeLabelFormats||uD.common.dateTimeLabelFormats,o?(n=r[o.unitName],1===o.count?g=n[0]:(g=n[1],i=n[2])):!g&&r&&f.dateTime&&(g=f.dateTime.getXDateFormat(l.x,p.dateTimeLabelFormats));var m=fe(null===(e=d.groupMap)||void 0===e?void 0:e[l.index].groupStart,l.key),y=m+((null==o?void 0:o.totalRange)||0)-1;s=h.dateFormat(g,m),i&&(s+=h.dateFormat(i,y)),d.chart.styledMode&&(v=this.styledModeFormat(v)),t.text=u9(v,{point:u7(l,{key:s}),series:d},a),t.preventDefault()}}td.dataGrouping=td.dataGrouping||{},td.dataGrouping.approximationDefaults=td.dataGrouping.approximationDefaults||uB,td.dataGrouping.approximations=td.dataGrouping.approximations||uS,({compose:function(t,e,i){uY(t),u6(e),i&&fi(u4,"DataGrouping")&&u8(i,"headerFormatter",fo)},groupData:u3}).compose(td.Axis,td.Series,td.Tooltip),tR.defined;var fr=tR.isNumber,fn=tR.pick,fs=tR.addEvent,fa=tR.isObject,fh=tR.pick,fl=tR.defined,fd=tR.merge,fc=function(t){return t.filter(function(t){var e=t.axis.getExtremes(),i=e.min,o=e.max,r=fn(t.axis.minPointOffset,0);return fr(i)&&fr(o)&&t.value>=i-r&&t.value<=o+r&&!t.axis.options.isInternal})[0]},fp=[],fu={enabled:!0,sensitivity:1.1},ff=function(t,e,i,o,r,n,s){var a=fh(s.type,t.zooming.type,""),h=[];"x"===a?h=i:"y"===a?h=o:"xy"===a&&(h=t.axes);var l=t.transform({axes:h,to:{x:r-5,y:n-5,width:10,height:10},from:{x:r-5*e,y:n-5*e,width:10*e,height:10*e},trigger:"mousewheel"});return l&&(fl(ta)&&clearTimeout(ta),ta=setTimeout(function(){var e;null===(e=t.pointer)||void 0===e||e.drop()},400)),l};function fg(){var t,e=this,i=(fa(t=this.zooming.mouseWheel)||(t={enabled:null==t||t}),fd(fu,t));i.enabled&&fs(this.container,"wheel",function(t){t=(null===(o=e.pointer)||void 0===o?void 0:o.normalize(t))||t;var o,r,n=e.pointer,s=n&&!n.inClass(t.target,"highcharts-no-mousewheel");if(e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&s){var a=i.sensitivity||1.1,h=t.detail||(t.deltaY||0)/120,l=fc(n.getCoordinates(t).xAxis),d=fc(n.getCoordinates(t).yAxis);ff(e,Math.pow(a,h),l?[l.axis]:e.xAxis,d?[d.axis]:e.yAxis,t.chartX,t.chartY,i)&&(null===(r=t.preventDefault)||void 0===r||r.call(t))}})}td.MouseWheelZoom=td.MouseWheelZoom||{compose:function(t){-1===fp.indexOf(t)&&(fp.push(t),fs(t,"afterGetContainer",fg))}},td.MouseWheelZoom.compose(td.Chart),td.Navigator=td.Navigator||cM,td.OrdinalAxis=td.OrdinalAxis||cD,td.RangeSelector=td.RangeSelector||pn,td.Scrollbar=td.Scrollbar||ci,td.stockChart=td.stockChart||pw.stockChart,td.StockChart=td.StockChart||td.stockChart,td.extend(td.StockChart,pw),dc.compose(td.Series,td.Axis,td.Point),uv.compose(td.Renderer),pU.compose(td.Series),td.Navigator.compose(td.Chart,td.Axis,td.Series),td.OrdinalAxis.compose(td.Axis,td.Series,td.Chart),td.RangeSelector.compose(td.Axis,td.Chart),td.Scrollbar.compose(td.Axis),td.StockChart.compose(td.Chart,td.Axis,td.Series,td.SVGRenderer),/**
 * @license Highstock JS v12.1.2 (2025-01-09)
 * @module highcharts/highstock
 *
 * (c) 2009-2024 Torstein Honsi
 *
 * License: www.highcharts.com/license
 */td.product="Highstock";var fv=td;return tl.default}()});

Hacked By AnonymousFox1.0, Coded By AnonymousFox