PageSourceSearch

https://www.fxpro.fr/highcharts-wrapper.component-347f225f3fde7dfa4362.chunk.js

js fxpro.fr collected 2026-09-29 08:56:49 UTC 704,206 bytes, 7 lines download raw bytes

1import{r as e,t}from"./rolldown-runtime-2178f5bcd152fc3f91dd.chunk.js";import{h as n,u as r,v as i}from"./vendor-5e5f03d649aa429fa111.chunk.js";import{Ar as a,Ir as o,Nr as s,ir as c,l}from"./common-72eb22db8dd3f80d6dc9.chunk.js";import{d as u}from"./trading-markets-instrument.constant-56668d508bf1135b2efe.chunk.js";var d=t(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?(n.default=n,t.exports=e.document?n(e):n):typeof define==`function`&&define.amd?define(`highcharts/highcharts`,function(){return n(e)}):(e.Highcharts&&e.Highcharts.error(16,!0),e.Highcharts=n(e))})(typeof window<`u`?window:e,function(e){function t(e,t,n,r){e.hasOwnProperty(t)||(e[t]=r.apply(null,n))}var n={};return t(n,`Core/Globals.js`,[],function(){var t=e===void 0?typeof window<`u`?window:{}:e,n;return(function(e){e.SVG_NS=`http://www.w3.org/2000/svg`,e.product=`Highcharts`,e.version=`9.3.3`,e.win=t,e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,`svg`).createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||``,e.isChrome=e.userAgent.indexOf(`Chrome`)!==-1,e.isFirefox=e.userAgent.indexOf(`Firefox`)!==-1,e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&e.userAgent.indexOf(`Safari`)!==-1,e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=e.userAgent.indexOf(`AppleWebKit`)!==-1,e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split(`Firefox/`)[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=[`plotTop`,`marginRight`,`marginBottom`,`plotLeft`],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener(`testPassive`,e.noop,n),e.win.removeEventListener(`testPassive`,e.noop,n))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0})(n||={}),n}),t(n,`Core/Utilities.js`,[n[`Core/Globals.js`]],function(e){function t(n,r,i,a){var o=r?`Highcharts error`:`Highcharts warning`;n===32&&(n=o+`: Deprecated member`);var s=l(n),c=s?o+` #`+n+`: www.highcharts.com/errors/`+n+`/`:n.toString();if(a!==void 0){var u=``;s&&(c+=`?`),_(a,function(e,t){u+=`
2 - `+t+`: `+e,s&&(c+=encodeURI(t)+`=`+encodeURI(e))}),c+=u}y(e,`displayError`,{chart:i,code:n,message:c,params:a},function(){if(r)throw Error(c);S.console&&t.messages.indexOf(c)===-1&&console.warn(c)}),t.messages.push(c)}function n(e,t){var r={};return _(e,function(i,a){o(e[a],!0)&&!e.nodeType&&t[a]?(i=n(e[a],t[a]),Object.keys(i).length&&(r[a]=i)):(o(e[a])||e[a]!==t[a])&&(r[a]=e[a])}),r}function r(e,t){return parseInt(e,t||10)}function i(e){return typeof e==`string`}function a(e){return e=Object.prototype.toString.call(e),e===`[object Array]`||e===`[object Array Iterator]`}function o(e,t){return!!e&&typeof e==`object`&&(!t||!a(e))}function s(e){return o(e)&&typeof e.nodeType==`number`}function c(e){var t=e&&e.constructor;return!(!o(e,!0)||s(e)||!t||!t.name||t.name===`Object`)}function l(e){return typeof e==`number`&&!isNaN(e)&&1/0>e&&-1/0<e}function u(e){return e!=null}function d(e,t,n){var r;return i(t)?u(n)?e.setAttribute(t,n):e&&e.getAttribute&&((r=e.getAttribute(t))||t!==`class`||(r=e.getAttribute(t+`Name`))):_(t,function(t,n){u(t)?e.setAttribute(n,t):e.removeAttribute(n)}),r}function f(e,t){for(var n in e||={},t)e[n]=t[n];return e}function p(){for(var e=arguments,t=e.length,n=0;n<t;n++){var r=e[n];if(r!=null)return r}}function m(t,n){e.isMS&&!e.svg&&n&&n.opacity!==void 0&&(n.filter=`alpha(opacity=`+100*n.opacity+`)`),f(t.style,n)}function h(e,t){return 0x5af3107a4000<e?e:parseFloat(e.toPrecision(t||14))}function g(n,i,a){var o=e.getStyle||g;if(i===`width`)return i=Math.min(n.offsetWidth,n.scrollWidth),a=n.getBoundingClientRect&&n.getBoundingClientRect().width,a<i&&a>=i-1&&(i=Math.floor(a)),Math.max(0,i-(o(n,`padding-left`,!0)||0)-(o(n,`padding-right`,!0)||0));if(i===`height`)return Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-(o(n,`padding-top`,!0)||0)-(o(n,`padding-bottom`,!0)||0));if(S.getComputedStyle||t(27,!0),n=S.getComputedStyle(n,void 0)){var s=n.getPropertyValue(i);p(a,i!==`opacity`)&&(s=r(s))}return s}function _(e,t,n){for(var r in e)Object.hasOwnProperty.call(e,r)&&t.call(n||e[r],e[r],r,e)}function v(t,n,r){function i(n,r){var i=t.removeEventListener||e.removeEventListenerPolyfill;i&&i.call(t,n,r,!1)}function a(e){var r;if(t.nodeName){if(n){var a={};a[n]=!0}else a=e;_(a,function(t,n){if(e[n])for(r=e[n].length;r--;)i(n,e[n][r].fn)})}}var o=typeof t==`function`&&t.prototype||t;if(Object.hasOwnProperty.call(o,`hcEvents`)){var s=o.hcEvents;n?(o=s[n]||[],r?(s[n]=o.filter(function(e){return r!==e.fn}),i(n,r)):(a(s),s[n]=[])):(a(s),delete o.hcEvents)}}function y(t,n,r,i){if(r||={},x.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==e)){var a=x.createEvent(`Events`);
2a.initEvent(n,!0,!0),r=f(a,r),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent(n,r)}else if(t.hcEvents){r.target||f(r,{preventDefault:function(){r.defaultPrevented=!0},target:t,type:n}),a=[];for(var o=t,s=!1;o.hcEvents;)Object.hasOwnProperty.call(o,`hcEvents`)&&o.hcEvents[n]&&(a.length&&(s=!0),a.unshift.apply(a,o.hcEvents[n])),o=Object.getPrototypeOf(o);s&&a.sort(function(e,t){return e.order-t.order}),a.forEach(function(e){!1===e.fn.call(t,r)&&r.preventDefault()})}i&&!r.defaultPrevented&&i.call(t,r)}var b=e.charts,x=e.doc,S=e.win;(t||={}).messages=[],Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var C=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){var n,r=e.length;for(n=0;n<r;n++)if(t(e[n],n))return e[n]};_({map:`map`,each:`forEach`,grep:`filter`,reduce:`reduce`,some:`some`},function(n,r){e[r]=function(e){var i;return t(32,!1,void 0,(i={},i[`Highcharts.`+r]=`use Array.`+n,i)),Array.prototype[n].apply(e,[].slice.call(arguments,1))}});var w,T=function(){var e=Math.random().toString(36).substring(2,9)+`-`,t=0;return function(){return`highcharts-`+(w?``:e)+t++}}();return S.jQuery&&(S.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new e[i(t[0])?t.shift():`Chart`](this[0],t[0],t[1]),this):b[d(this[0],`data-highcharts-chart`)]}),C={addEvent:function(t,n,r,i){i===void 0&&(i={});var a=typeof t==`function`&&t.prototype||t;Object.hasOwnProperty.call(a,`hcEvents`)||(a.hcEvents={}),a=a.hcEvents,e.Point&&t instanceof e.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var o=t.addEventListener||e.addEventListenerPolyfill;return o&&o.call(t,n,r,e.supportsPassiveEvents?{passive:i.passive===void 0?n.indexOf(`touch`)!==-1:i.passive,capture:!1}:!1),a[n]||(a[n]=[]),a[n].push({fn:r,order:typeof i.order==`number`?i.order:1/0}),a[n].sort(function(e,t){return e.order-t.order}),function(){v(t,n,r)}},arrayMax:function(e){for(var t=e.length,n=e[0];t--;)e[t]>n&&(n=e[t]);return n},arrayMin:function(e){for(var t=e.length,n=e[0];t--;)e[t]<n&&(n=e[t]);return n},attr:d,clamp:function(e,t,n){return e>t?e<n?e:n:t},cleanRecursively:n,clearTimeout:function(e){u(e)&&clearTimeout(e)},correctFloat:h,createElement:function(e,t,n,r,i){return e=x.createElement(e),t&&f(e,t),i&&m(e,{padding:`0`,border:`none`,margin:`0`}),n&&m(e,n),r&&r.appendChild(e),e},css:m,defined:u,destroyObjectProperties:function(e,t){_(e,function(n,r){n&&n!==t&&n.destroy&&n.destroy(),delete e[r]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,t){for(var n=e.length;n--;)if(e[n]===t){e.splice(n,1);break}},error:t,extend:f,extendClass:function(e,t){var n=function(){};return n.prototype=new e,f(n.prototype,t),n},find:C,fireEvent:y,getMagnitude:function(e){return 10**Math.floor(Math.log(e)/Math.LN10)},getNestedProperty:function(e,t){for(e=e.split(`.`);e.length&&u(t);){var n=e.shift();if(n===void 0||n===`__proto__`||(t=t[n],!u(t)||typeof t==`function`||typeof t.nodeType==`number`||t===S))return}return t},getStyle:g,inArray:function(e,n,r){return t(32,!1,void 0,{"Highcharts.inArray":`use Array.indexOf`}),n.indexOf(e,r)},isArray:a,isClass:c,isDOMElement:s,isFunction:function(e){return typeof e==`function`},isNumber:l,isObject:o,isString:i,keys:function(e){return t(32,!1,void 0,{"Highcharts.keys":`use Object.keys`}),Object.keys(e)},merge:function(){var e,t=arguments,n={},r=function(e,t){return typeof e!=`object`&&(e={}),_(t,function(n,i){i!==`__proto__`&&i!==`constructor`&&(!o(n,!0)||c(n)||s(n)?e[i]=t[i]:e[i]=r(e[i]||{},n))}),e};!0===t[0]&&(n=t[1],t=Array.prototype.slice.call(t,2));var i=t.length;for(e=0;e<i;e++)n=r(n,t[e]);return n},normalizeTickInterval:function(e,t,n,r,i){var a=e;n=p(n,1);var o=e/n;for(t||(t=i?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(n===1?t=t.filter(function(e){return e%1==0}):.1>=n&&(t=[1/n]))),r=0;r<t.length&&(a=t[r],!(i&&a*n>=e||!i&&o<=(t[r]+(t[r+1]||t[r]))/2));r++);return a=h(a*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:_,offset:function(e){var t=x.documentElement;return e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0}
2,{top:e.top+(S.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(S.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}},pad:function(e,t,n){return Array((t||2)+1-String(e).replace(`-`,``).length).join(n||`0`)+e},pick:p,pInt:r,relativeLength:function(e,t,n){return/%$/.test(e)?t*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:v,splat:function(e){return a(e)?e:[e]},stableSort:function(e,t){for(var n=e.length,r,i=0;i<n;i++)e[i].safeI=i;for(e.sort(function(e,n){return r=t(e,n),r===0?e.safeI-n.safeI:r}),i=0;i<n;i++)delete e[i].safeI},syncTimeout:function(e,t,n){return 0<t?setTimeout(e,t,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:T,useSerialIds:function(e){return w=p(e,w)},wrap:function(e,t,n){var r=e[t];e[t]=function(){var e=Array.prototype.slice.call(arguments),t=arguments,i=this;return i.proceed=function(){r.apply(i,arguments.length?arguments:t)},e.unshift(r),e=n.apply(this,e),i.proceed=null,e}}},C}),t(n,`Core/Chart/ChartDefaults.js`,[],function(){return{panning:{enabled:!1,type:`x`},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:`line`,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:`right`,x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:`#335cad`,backgroundColor:`#ffffff`,plotBorderColor:`#cccccc`}}),t(n,`Core/Color/Color.js`,[n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t){var n=t.isNumber,r=t.merge,i=t.pInt;return t=function(){function t(n){this.rgba=[NaN,NaN,NaN,NaN],this.input=n;var r=e.Color;if(r&&r!==t)return new r(n);if(!(this instanceof t))return new t(n);this.init(n)}return t.parse=function(e){return e?new t(e):t.None},t.prototype.init=function(e){var n;if(typeof e==`object`&&e.stops!==void 0)this.stops=e.stops.map(function(e){return new t(e[1])});else if(typeof e==`string`){if(this.input=e=t.names[e.toLowerCase()]||e,e.charAt(0)===`#`){var r=e.length,i=parseInt(e.substr(1),16);r===7?n=[(i&16711680)>>16,(i&65280)>>8,i&255,1]:r===4&&(n=[(i&3840)>>4|(i&3840)>>8,(i&240)>>4|i&240,(i&15)<<4|i&15,1])}if(!n)for(i=t.parsers.length;i--&&!n;){var a=t.parsers[i];(r=a.regex.exec(e))&&(n=a.parse(r))}}n&&(this.rgba=n)},t.prototype.get=function(e){var t=this.input,i=this.rgba;if(typeof t==`object`&&this.stops!==void 0){var a=r(t);return a.stops=[].slice.call(a.stops),this.stops.forEach(function(t,n){a.stops[n]=[a.stops[n][0],t.get(e)]}),a}return i&&n(i[0])?e===`rgb`||!e&&i[3]===1?`rgb(`+i[0]+`,`+i[1]+`,`+i[2]+`)`:e===`a`?``+i[3]:`rgba(`+i.join(`,`)+`)`:t},t.prototype.brighten=function(e){var t=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(n(e)&&e!==0)for(var r=0;3>r;r++)t[r]+=i(255*e),0>t[r]&&(t[r]=0),255<t[r]&&(t[r]=255);return this},t.prototype.setOpacity=function(e){return this.rgba[3]=e,this},t.prototype.tweenTo=function(e,t){var r=this.rgba,i=e.rgba;return!n(r[0])||!n(i[0])?e.input||`none`:(e=i[3]!==1||r[3]!==1,(e?`rgba(`:`rgb(`)+Math.round(i[0]+(r[0]-i[0])*(1-t))+`,`+Math.round(i[1]+(r[1]-i[1])*(1-t))+`,`+Math.round(i[2]+(r[2]-i[2])*(1-t))+(e?`,`+(i[3]+(r[3]-i[3])*(1-t)):``)+`)`)},t.names={white:`#ffffff`,black:`#000000`},t.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(e){return[i(e[1]),i(e[2]),i(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(e){return[i(e[1]),i(e[2]),i(e[3]),1]}}],t.None=new t(``),t}(),t}),t(n,`Core/Color/Palettes.js`,[],function(){return{colors:`#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1`.split(` `)}}),t(n,`Core/Time.js`,[n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t){var n=e.win,r=t.defined,i=t.error,a=t.extend,o=t.isObject,s=t.merge,c=t.objectEach,l=t.pad,u=t.pick,d=t.splat,f=t.timeUnits,p=e.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,m=e.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange;return t=function(){function t(e){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=n.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(e)}return t.prototype.get=function(e,t){if(this.variableTimezone||this.timezoneOffset){var n=t.getTime(),r=n-this.getTimezoneOffset(t);return t.setTime(r),e=t[`getUTC`+e](),t.setTime(n),e}return this.useUTC?t[`getUTC`+e]():t[`get`+e]()},t.prototype.set=function(e,t,n){if(this.variableTimezone||this.timezoneOffset){if(e===`Milliseconds`||e===`Seconds`||e===`Minutes`&&this.getTimezoneOffset(t)%36e5==0)return t[`setUTC`+e](n);var r=this.getTimezoneOffset(t);return r=t.getTime()-r,t.setTime(r),t[`setUTC`+e](n),e=this.getTimezoneOffset(t),r=t.getTime()+e,t.setTime(r)}return this.useUTC||p&&e===`FullYear`?t[`setUTC`+e](n):t[`set`+e](n)},t.prototype.update=function(e){var t=u(e&&e.useUTC,!0);this.options=e=s(!0,this.options||{},e),this.Date=e.Date||n.Date||Date,this.timezoneOffset=(this.useUTC=t)&&e.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=t&&!(!e.getTimezoneOffset&&!e.timezone)},t.prototype.makeTime=function(e,t,n,r,i,a){if(this.useUTC){var o=this.Date.UTC.apply(0,arguments),s=this.getTimezoneOffset(o);o+=s;var c=this.getTimezoneOffset(o);s===c?s-36e5!==this.getTimezoneOffset(o-36e5)||m||(o-=36e5):o+=c-s}else o=new this.Date(e,t,u(n,1),u(r,0),u(i,0),u(a,0)).getTime();return o},t.prototype.timezoneOffsetFunction=function(){var e=this,t=this.options,r=t.getTimezoneOffset,a=t.moment||n.moment;if(!this.useUTC)return function(e){return 6e4*new Date(e.toString()).getTimezoneOffset()};if(t.timezone){if(a)return function(e){return 6e4*-a.tz(e,t.timezone).utcOffset()};i(25)}return this.useUTC&&r?function(e){return 6e4*r(e.valueOf())}:function(){return 6e4*(e.timezoneOffset||0)}},t.prototype.dateFormat=function(t,n,i){if(!r(n)||isNaN(n))return e.defaultOptions.lang&&e.defaultOptions.lang.invali
2dDate||``;t=u(t,`%Y-%m-%d %H:%M:%S`);var o=this,s=new this.Date(n),d=this.get(`Hours`,s),f=this.get(`Day`,s),p=this.get(`Date`,s),m=this.get(`Month`,s),h=this.get(`FullYear`,s),g=e.defaultOptions.lang,_=g&&g.weekdays,v=g&&g.shortWeekdays;return s=a({a:v?v[f]:_[f].substr(0,3),A:_[f],d:l(p),e:l(p,2,` `),w:f,b:g.shortMonths[m],B:g.months[m],m:l(m+1),o:m+1,y:h.toString().substr(2,2),Y:h,H:l(d),k:d,I:l(d%12||12),l:d%12||12,M:l(this.get(`Minutes`,s)),p:12>d?`AM`:`PM`,P:12>d?`am`:`pm`,S:l(s.getSeconds()),L:l(Math.floor(n%1e3),3)},e.dateFormats),c(s,function(e,r){for(;t.indexOf(`%`+r)!==-1;)t=t.replace(`%`+r,typeof e==`function`?e.call(o,n):e)}),i?t.substr(0,1).toUpperCase()+t.substr(1):t},t.prototype.resolveDTLFormat=function(e){return o(e,!0)?e:(e=d(e),{main:e[0],from:e[1],to:e[2]})},t.prototype.getTimeTicks=function(e,t,n,i){var o=this,s=[],c={},l=new o.Date(t),d=e.unitRange,p=e.count||1,m;if(i=u(i,1),r(t)){if(o.set(`Milliseconds`,l,d>=f.second?0:p*Math.floor(o.get(`Milliseconds`,l)/p)),d>=f.second&&o.set(`Seconds`,l,d>=f.minute?0:p*Math.floor(o.get(`Seconds`,l)/p)),d>=f.minute&&o.set(`Minutes`,l,d>=f.hour?0:p*Math.floor(o.get(`Minutes`,l)/p)),d>=f.hour&&o.set(`Hours`,l,d>=f.day?0:p*Math.floor(o.get(`Hours`,l)/p)),d>=f.day&&o.set(`Date`,l,d>=f.month?1:Math.max(1,p*Math.floor(o.get(`Date`,l)/p))),d>=f.month){o.set(`Month`,l,d>=f.year?0:p*Math.floor(o.get(`Month`,l)/p));var h=o.get(`FullYear`,l)}d>=f.year&&o.set(`FullYear`,l,h-h%p),d===f.week&&(h=o.get(`Day`,l),o.set(`Date`,l,o.get(`Date`,l)-h+i+(h<i?-7:0))),h=o.get(`FullYear`,l),i=o.get(`Month`,l);var g=o.get(`Date`,l),_=o.get(`Hours`,l);for(t=l.getTime(),!o.variableTimezone&&o.useUTC||!r(n)||(m=n-t>4*f.month||o.getTimezoneOffset(t)!==o.getTimezoneOffset(n)),t=l.getTime(),l=1;t<n;)s.push(t),t=d===f.year?o.makeTime(h+l*p,0):d===f.month?o.makeTime(h,i+l*p):!m||d!==f.day&&d!==f.week?m&&d===f.hour&&1<p?o.makeTime(h,i,g,_+l*p):t+d*p:o.makeTime(h,i,g+l*p*(d===f.day?1:7)),l++;s.push(t),d<=f.hour&&1e4>s.length&&s.forEach(function(e){e%18e5==0&&o.dateFormat(`%H%M%S%L`,e)===`000000000`&&(c[e]=`day`)})}return s.info=a(e,{higherRanks:c,totalRange:d*p}),s},t.prototype.getDateFormat=function(e,t,n,r){var i=this.dateFormat(`%m-%d %H:%M:%S.%L`,t),a={millisecond:15,second:12,minute:9,hour:6,day:3},o=`millisecond`;for(s in f){if(e===f.week&&+this.dateFormat(`%w`,t)===n&&i.substr(6)===`00:00:00.000`){var s=`week`;break}if(f[s]>e){s=o;break}if(a[s]&&i.substr(a[s])!==`01-01 00:00:00.000`.substr(a[s]))break;s!==`week`&&(o=s)}if(s)var c=this.resolveDTLFormat(r[s]).main;return c},t}(),t}),t(n,`Core/DefaultOptions.js`,[n[`Core/Chart/ChartDefaults.js`],n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Color/Palettes.js`],n[`Core/Time.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a){t=t.parse;var o=a.merge,s={colors:r.colors,symbols:[`circle`,`diamond`,`square`,`triangle`,`triangle-down`],lang:{loading:`Loading...`,months:`January February March April May June July August September October November December`.split(` `),shortMonths:`Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec`.split(` `),weekdays:`Sunday Monday Tuesday Wednesday Thursday Friday Saturday`.split(` `),decimalPoint:`.`,numericSymbols:`kMGTPE`.split(``),resetZoom:`Reset zoom`,resetZoomTitle:`Reset zoom level 1:1`,thousandsSep:` `},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:e,title:{text:`Chart title`,align:`center`,margin:15,widthAdjust:-44},subtitle:{text:``,align:`center`,widthAdjust:-44},caption:{margin:15,text:``,align:`left`,verticalAlign:`bottom`},plotOptions:{},labels:{style:{position:`absolute`,color:`#333333`}},legend:{enabled:!0,align:`center`,alignColumns:!0,className:`highcharts-no-tooltip`,layout:`horizontal`,labelFormatter:function(){return this.name},borderColor:`#999999`,borderRadius:0,navigation:{activeColor:`#003399`,inactiveColor:`#cccccc`},itemStyle:{color:`#333333`,cursor:`pointer`,fontSize:`12px`,fontWeight:`bold`,textOverflow:`ellipsis`},itemHoverStyle:{color:`#000000`},itemHiddenStyle:{color:`#cccccc`},shadow:!1,itemCheckboxStyle:{position:`absolute`,width:`13px`,he
2ight:`13px`},squareSymbol:!0,symbolPadding:5,verticalAlign:`bottom`,x:0,y:0,title:{style:{fontWeight:`bold`}}},loading:{labelStyle:{fontWeight:`bold`,position:`relative`,top:`45%`},style:{position:`absolute`,backgroundColor:`#ffffff`,opacity:.5,textAlign:`center`}},tooltip:{enabled:!0,animation:n.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:`%A, %b %e, %H:%M:%S.%L`,second:`%A, %b %e, %H:%M:%S`,minute:`%A, %b %e, %H:%M`,hour:`%A, %b %e, %H:%M`,day:`%A, %b %e, %Y`,week:`Week from %A, %b %e, %Y`,month:`%B %Y`,year:`%Y`},footerFormat:``,headerShape:`callout`,hideDelay:500,padding:8,shape:`callout`,shared:!1,snap:n.isTouchDevice?25:10,headerFormat:`<span style="font-size: 10px">{point.key}</span><br/>`,pointFormat:`<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>`,backgroundColor:t(`#f7f7f7`).setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:`#333333`,cursor:`default`,fontSize:`12px`,whiteSpace:`nowrap`},useHTML:!1},credits:{enabled:!0,href:`https://www.highcharts.com?credits`,position:{align:`right`,x:-10,verticalAlign:`bottom`,y:-5},style:{cursor:`pointer`,color:`#999999`,fontSize:`9px`},text:`Highcharts.com`}};s.chart.styledMode=!1;var c=new i(o(s.global,s.time));return e={defaultOptions:s,defaultTime:c,getOptions:function(){return s},setOptions:function(e){return o(!0,s,e),(e.time||e.global)&&(n.time?n.time.update(o(s.global,s.time,e.global,e.time)):n.time=c),s}},e}),t(n,`Core/Animation/Fx.js`,[n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=e.parse,i=t.win,a=n.isNumber,o=n.objectEach;return function(){function e(e,t,n){this.pos=NaN,this.options=t,this.elem=e,this.prop=n}return e.prototype.dSetter=function(){var e=this.paths,t=e&&e[0];e&&=e[1];var n=this.now||0,r=[];if(n!==1&&t&&e){if(t.length===e.length&&1>n)for(var i=0;i<e.length;i++){for(var o=t[i],s=e[i],c=[],l=0;l<s.length;l++){var u=o[l],d=s[l];a(u)&&a(d)&&(s[0]!==`A`||l!==4&&l!==5)?c[l]=u+n*(d-u):c[l]=d}r.push(c)}else r=e}else r=this.toD||[];this.elem.attr(`d`,r,void 0,!0)},e.prototype.update=function(){var e=this.elem,t=this.prop,n=this.now,r=this.options.step;this[t+`Setter`]?this[t+`Setter`]():e.attr?e.element&&e.attr(t,n,null,!0):e.style[t]=n+this.unit,r&&r.call(e,n,this)},e.prototype.run=function(t,n,r){var a=this,o=a.options,s=function(e){return!s.stopped&&a.step(e)},c=i.requestAnimationFrame||function(e){setTimeout(e,13)},l=function(){for(var t=0;t<e.timers.length;t++)e.timers[t]()||e.timers.splice(t--,1);e.timers.length&&c(l)};t!==n||this.elem[`forceAnimate:`+this.prop]?(this.startTime=+new Date,this.start=t,this.end=n,this.unit=r,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&e.timers.push(s)===1&&c(l)):(delete o.curAnim[this.prop],o.complete&&Object.keys(o.curAnim).length===0&&o.complete.call(this.elem))},e.prototype.step=function(e){var t=+new Date,n=this.options,r=this.elem,i=n.complete,a=n.duration,s=n.curAnim;if(r.attr&&!r.element)e=!1;else if(e||t>=a+this.startTime){this.now=this.end,this.pos=1,this.update();var c=s[this.prop]=!0;o(s,function(e){!0!==e&&(c=!1)}),c&&i&&i.call(r),e=!1}else this.pos=n.easing((t-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0;return e},e.prototype.initPath=function(e,t,n){function r(e,t){for(;e.length<f;){var n=e[0],r=t[f-e.length];r&&n[0]===`M`&&(e[0]=r[0]===`C`?[`C`,n[1],n[2],n[1],n[2],n[1],n[2]]:[`L`,n[1],n[2]]),e.unshift(n),c&&(n=e.pop(),e.push(e[e.length-1],n))}}function i(e,t){for(;e.length<f;)if(t=e[Math.floor(e.length/l)-1].slice(),t[0]===`C`&&(t[1]=t[5],t[2]=t[6]),c){var n=e[Math.floor(e.length/l)].slice();e.splice(e.length/2,0,t,n)}else e.push(t)}var o=e.startX,s=e.endX;n=n.slice();var c=e.isArea,l=c?2:1;if(t&&=t.slice(),!t)return[n,n];if(o&&s&&s.length){for(e=0;e<o.length;e++)if(o[e]===s[0]){var u=e;break}else if(o[0]===s[s.length-o.length+e]){u=e;var d=!0;break}else if(o[o.length-1]===s[s.length-o.length+e]){u=o.length-e;break}u===void 0&&(t=[])}if(t.length&&a(u)){var f=n.length+u*l;d?(r(t,n),i(n,t)):(r(n,t),i(t,n))}return[t,n]},e.prototype.fillSetter=function(){e.prototype.strokeSetter.apply(this,arguments)},e.prototype.strokeSetter=function(){this.elem.attr(this.prop,r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)},e.timers=[],e}()}),t(n,`Core/Animation/AnimationUtilities.js`,[n[`Core/Animation/Fx.js`],n[`Core/Utilities.js`]],function(e,t){function n(e){return c(e)?l({duration:500,defer:0},e):{duration:e?500:0,defer:0}}function r(t,n){for(var r=e.timers.length;r--;)e.timers[r].elem!==t||n&&n!==e.timers[r].prop||(e.timers[r].stopped=!0)}var i=t.defined,a=t.getStyle,o=t.isArray,s=t.isNumber,c=t.isObject,l=t.merge,u=t.objectEach,d=t.pick;return{animate:function(t,n,i){var d,f=``,p,m;if(!c(i)){var h=arguments;i={duration:h[2],easing:h[3],complete:h[4]}}s(i.duration)||(i.duration=400),i.easing=typeof i.easing==`function`?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=l(n),u(n,function(s,c){r(t,c),m=new e(t,i,c),p=void 0,c===`d`&&o(n.d)?(m.paths=m.initPath(t,t.pathArray,n.d),m.toD=n.d,d=0,p=1):t.attr?d=t.attr(c):(d=parseFloat(a(t,c))||0,c!==`opacity`&&(f=`px`)),p||=s,typeof p==`string`&&p.match(`px`)&&(p=p.replace(/px/g,``)),m.run(d,p,f)})},animObject:n,getDeferredAnimation:function(e,t,r){var a=n(t),o=0,s=0;
2return(r?[r]:e.series).forEach(function(e){e=n(e.options.animation),o=t&&i(t.defer)?a.defer:Math.max(o,e.duration+e.defer),s=Math.min(a.duration,e.duration)}),e.renderer.forExport&&(o=0),{defer:Math.max(0,o-s),duration:Math.min(o,s)}},setAnimation:function(e,t){t.renderer.globalAnimation=d(e,t.options.chart.animation,!0)},stop:r}}),t(n,`Core/Renderer/HTML/AST.js`,[n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t){var n=e.SVG_NS,r=t.attr,i=t.createElement,a=t.error,o=t.isFunction,s=t.isString,c=t.objectEach,l=t.splat,u=(t=e.win.trustedTypes)&&o(t.createPolicy)&&t.createPolicy(`highcharts`,{createHTML:function(e){return e}}),d=u?u.createHTML(``):``;try{var f=!!new DOMParser().parseFromString(d,`text/html`)}catch{f=!1}return o=function(){function t(e){this.nodes=typeof e==`string`?this.parseMarkup(e):e}return t.filterUserAttributes=function(e){return c(e,function(n,r){var i=!0;t.allowedAttributes.indexOf(r)===-1&&(i=!1),[`background`,`dynsrc`,`href`,`lowsrc`,`src`].indexOf(r)!==-1&&(i=s(n)&&t.allowedReferences.some(function(e){return n.indexOf(e)===0})),i||(a(`Highcharts warning: Invalid attribute '`+r+`' in config`),delete e[r])}),e},t.setElementHTML=function(e,n){e.innerHTML=t.emptyHTML,n&&new t(n).addToDOM(e)},t.prototype.addToDOM=function(i){function o(i,s){var u;return l(i).forEach(function(i){var l=i.tagName,d=i.textContent?e.doc.createTextNode(i.textContent):void 0;if(l){if(l===`#text`)var f=d;else if(t.allowedTags.indexOf(l)!==-1){l=e.doc.createElementNS(l===`svg`?n:s.namespaceURI||n,l);var p=i.attributes||{};c(i,function(e,t){t!==`tagName`&&t!==`attributes`&&t!==`children`&&t!==`textContent`&&(p[t]=e)}),r(l,t.filterUserAttributes(p)),d&&l.appendChild(d),o(i.children||[],l),f=l}else a(`Highcharts warning: Invalid tagName `+l+` in config`)}f&&s.appendChild(f),u=f}),u}return o(this.nodes,i)},t.prototype.parseMarkup=function(e){var t=[];if(e=e.trim(),f)e=new DOMParser().parseFromString(u?u.createHTML(e):e,`text/html`);else{var n=i(`div`);n.innerHTML=e,e={body:n}}var r=function(e,t){var n=e.nodeName.toLowerCase(),i={tagName:n};if(n===`#text`&&(i.textContent=e.textContent||``),n=e.attributes){var a={};[].forEach.call(n,function(e){a[e.name]=e.value}),i.attributes=a}if(e.childNodes.length){var o=[];[].forEach.call(e.childNodes,function(e){r(e,o)}),o.length&&(i.children=o)}t.push(i)};return[].forEach.call(e.body.childNodes,function(e){return r(e,t)}),t},t.allowedAttributes=`aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex`.split(` `),t.allowedReferences=`https:// http:// mailto: / ../ ./ #`.split(` `),t.allowedTags=`a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text`.split(` `),t.emptyHTML=d,t}(),o}),t(n,`Core/FormatUtilities.js`,[n[`Core/DefaultOptions.js`],n[`Core/Utilities.js`]],function(e,t){function n(e,t,n,i){e=+e||0,t=+t;var a=r.lang,l=(e.toString().split(`.`)[1]||``).split(`e`)[0].length,u=e.toString().split(`e`),d=t;if(t===-1)t=Math.min(l,20);else if(!o(t))t=2;else if(t&&u[1]&&0>u[1]){var f=t+ +u[1];0<=f?(u[0]=(+u[0]).toExponential(f).split(`e`)[0],t=f):(u[0]=u[0].split(`.`)[0]||0,e=20>t?(u[0]*10**u[1]).toFixed(t):0,u[1]=0)}f=(Math.abs(u[1]?u[0]:e)+10**(-Math.max(t,l)-1)).toFixed(t),l=String(c(f));var p=3<l.length?l.length%3:0;return n=s(n,a.decimalPoint),i=s(i,a.thousandsSep),e=(0>e?`-`:``)+(p?l.substr(0,p)+i:``),e=0>+u[1]&&!d?`0`:e+l.substr(p).replace(/(\d{3})(?=\d)/g,`$1`+i),t&&(e+=n+f.slice(-t)),u[1]&&+e!=0&&(e+=`e`+u[1]),e}var r=e.defaultOptions,i=e.defaultTime,a=t.getNestedProperty,o=t.isNumber,s=t.pick,
2c=t.pInt;return{dateFormat:function(e,t,n){return i.dateFormat(e,t,n)},format:function(e,t,o){var s=`{`,c=!1,l=/f$/,u=/\.([0-9])/,d=r.lang,f=o&&o.time||i;o=o&&o.numberFormatter||n;for(var p=[];e;){var m=e.indexOf(s);if(m===-1)break;var h=e.slice(0,m);if(c){if(h=h.split(`:`),s=a(h.shift()||``,t),h.length&&typeof s==`number`){if(h=h.join(`:`),l.test(h)){var g=parseInt((h.match(u)||[``,`-1`])[1],10);s!==null&&(s=o(s,g,d.decimalPoint,-1<h.indexOf(`,`)?d.thousandsSep:``))}else s=f.dateFormat(h,s)}p.push(s)}else p.push(h);e=e.slice(m+1),s=(c=!c)?`}`:`{`}return p.push(e),p.join(``)},numberFormat:n}}),t(n,`Core/Renderer/RendererUtilities.js`,[n[`Core/Utilities.js`]],function(e){var t=e.clamp,n=e.pick,r=e.stableSort,i;return(function(e){function i(e,a,o){var s=e,c=s.reducedLen||a,l=function(e,t){return(t.rank||0)-(e.rank||0)},u=function(e,t){return e.target-t.target},d,f=!0,p=[],m=0;for(d=e.length;d--;)m+=e[d].size;if(m>c){for(r(e,l),m=d=0;m<=c;)m+=e[d].size,d++;p=e.splice(d-1,e.length)}for(r(e,u),e=e.map(function(e){return{size:e.size,targets:[e.target],align:n(e.align,.5)}});f;){for(d=e.length;d--;)c=e[d],l=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/2,c.pos=t(l-c.size*c.align,0,a-c.size);for(d=e.length,f=!1;d--;)0<d&&e[d-1].pos+e[d-1].size>e[d].pos&&(e[d-1].size+=e[d].size,e[d-1].targets=e[d-1].targets.concat(e[d].targets),e[d-1].align=.5,e[d-1].pos+e[d-1].size>a&&(e[d-1].pos=a-e[d-1].size),e.splice(d,1),f=!0)}return s.push.apply(s,p),d=0,e.some(function(e){var t=0;return(e.targets||[]).some(function(){return s[d].pos=e.pos+t,o!==void 0&&Math.abs(s[d].pos-s[d].target)>o?(s.slice(0,d+1).forEach(function(e){return delete e.pos}),s.reducedLen=(s.reducedLen||a)-.1*a,s.reducedLen>.1*a&&i(s,a,o),!0):(t+=s[d].size,d++,!1)})}),r(s,u),s}e.distribute=i})(i||={}),i}),t(n,`Core/Renderer/SVG/SVGElement.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Renderer/HTML/AST.js`],n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=e.animate,o=e.animObject,s=e.stop,c=r.deg2rad,l=r.doc,u=r.noop,d=r.svg,f=r.SVG_NS,p=r.win,m=i.addEvent,h=i.attr,g=i.createElement,_=i.css,v=i.defined,y=i.erase,b=i.extend,x=i.fireEvent,S=i.isArray,C=i.isFunction,w=i.isNumber,T=i.isString,E=i.merge,D=i.objectEach,O=i.pick,k=i.pInt,A=i.syncTimeout,j=i.uniqueKey;return e=function(){function e(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=f,this.symbolCustomAttribs=`x y width height r start end innerR anchorX anchorY roun
2ded`.split(` `)}return e.prototype._defaultGetter=function(e){return e=O(this[e+`Value`],this[e],this.element?this.element.getAttribute(e):null,0),/^[\-0-9\.]+$/.test(e)&&(e=parseFloat(e)),e},e.prototype._defaultSetter=function(e,t,n){n.setAttribute(t,e)},e.prototype.add=function(e){var t=this.renderer,n=this.element;if(e&&(this.parentGroup=e),this.parentInverted=e&&e.inverted,this.textStr!==void 0&&this.element.nodeName===`text`&&t.buildText(this),this.added=!0,!e||e.handleZ||this.zIndex)var r=this.zIndexSetter();return r||(e?e.element:t.box).appendChild(n),this.onAdd&&this.onAdd(),this},e.prototype.addClass=function(e,t){var n=t?``:this.attr(`class`)||``;return e=(e||``).split(/ /g).reduce(function(e,t){return n.indexOf(t)===-1&&e.push(t),e},n?[n]:[]).join(` `),e!==n&&this.attr(`class`,e),this},e.prototype.afterSetters=function(){this.doTransform&&=(this.updateTransform(),!1)},e.prototype.align=function(e,t,n){var r={},i=this.renderer,a=i.alignedObjects,o,s,c;e?(this.alignOptions=e,this.alignByTranslate=t,(!n||T(n))&&(this.alignTo=o=n||`renderer`,y(a,this),a.push(this),n=void 0)):(e=this.alignOptions,t=this.alignByTranslate,o=this.alignTo),n=O(n,i[o],o===`scrollablePlotBox`?i.plotBox:void 0,i),o=e.align;var l=e.verticalAlign;return i=(n.x||0)+(e.x||0),a=(n.y||0)+(e.y||0),o===`right`?s=1:o===`center`&&(s=2),s&&(i+=(n.width-(e.width||0))/s),r[t?`translateX`:`x`]=Math.round(i),l===`bottom`?c=1:l===`middle`&&(c=2),c&&(a+=(n.height-(e.height||0))/c),r[t?`translateY`:`y`]=Math.round(a),this[this.placed?`animate`:`attr`](r),this.placed=!0,this.alignAttr=r,this},e.prototype.alignSetter=function(e){var t={left:`start`,center:`middle`,right:`end`};t[e]&&(this.alignValue=e,this.element.setAttribute(`text-anchor`,t[e]))},e.prototype.animate=function(e,t,n){var r=this,i=o(O(t,this.renderer.globalAnimation,!0));return t=i.defer,O(l.hidden,l.msHidden,l.webkitHidden,!1)&&(i.duration=0),i.duration===0?(this.attr(e,void 0,n),D(e,function(e,t){i.step&&i.step.call(this,e,{prop:t,pos:1,elem:this})},this)):(n&&(i.complete=n),A(function(){r.element&&a(r,e,i)},t)),this},e.prototype.applyTextOutline=function(e){var t=this.element;e.indexOf(`contrast`)!==-1&&(e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));var n=e.split(` `);if(e=n[n.length-1],(n=n[0])&&n!==`none`&&r.svg){this.fakeTS=!0,this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,function(e,t,n){return 2*Number(t)+n}),this.removeTextOutline();var i=l.createElementNS(f,`tspan`);h(i,{class:`highcharts-text-outline`,fill:e,stroke:e,"stroke-width":n,"stroke-linejoin":`round`}),[].forEach.call(t.childNodes,function(e){var t=e.cloneNode(!0);t.removeAttribute&&[`fill`,`stroke`,`stroke-width`,`stroke`].forEach(function(e){return t.removeAttribute(e)}),i.appendChild(t)});var a=l.createElementNS(f,`tspan`);a.textContent=`​`,[`x`,`y`].forEach(function(e){var n=t.getAttribute(e);n&&a.setAttribute(e,n)}),i.appendChild(a),t.insertBefore(i,t.firstChild)}},e.prototype.attr=function(e,t,n,r){var i=this.element,a=this.symbolCustomAttribs,o,c=this,l,u;if(typeof e==`string`&&t!==void 0){var d=e;e={},e[d]=t}return typeof e==`string`?c=(this[e+`Getter`]||this._defaultGetter).call(this,e,i):(D(e,function(t,n){l=!1,r||s(this,n),this.symbolName&&a.indexOf(n)!==-1&&(o||=(this.symbolAttr(e),!0),l=!0),!this.rotation||n!==`x`&&n!==`y`||(this.doTransform=!0),l||(u=this[n+`Setter`]||this._defaultSetter,u.call(this,t,n,i),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,t,u))},this),this.afterSetters()),n&&n.call(this),c},e.prototype.clip=function(e){return this.attr(`clip-path`,e?`url(`+this.renderer.url+`#`+e.id+`)`:`none`)},e.prototype.crisp=function(e,t){t=t||e.strokeWidth||0;var n=Math.round(t)%2/2;return e.x=Math.floor(e.x||this.x||0)+n,e.y=Math.floor(e.y||this.y||0)+n,e.width=Math.floor((e.width||this.width||0)-2*n),e.height=Math.floor((e.height||this.height||0)-2*n),v(e.strokeWidth)&&(e.strokeWidth=t),e},e.prototype.complexColor=function(e,t,r){var i=this.renderer,a,o,s,c,l,u,d,f,p,m,h=[],g;x(this.renderer,`complexColor`,{args:arguments},function(){if(e.radialGradient?o=`radialGradient`:e.linearGradient&&(o=`linearGradient`),o){if(s=e[o],l=i.gradients,u=e.stops,p=r.radialReference,S(s)&&(e[o]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:`userSpaceOnUse`}),o===`radialGradient`&&p&&!v(s.gradientUnits)&&(c=s,s=E(s,i.getRadialAttr(p,c),{gradientUnits:`userSpaceOnUse`})),D(s,function(e,t){t!==`id`&&h.push(t,e)}),D(u,function(e){h.push(e)}),h=h.join(`,`),l[h])m=l[h].attr(`id`);else{s.id=m=j();var _=l[h]=i.createElement(o).attr(s).add(i.defs);_.radAttr=c,_.stops=[],u.forEach(function(e){e[1].indexOf(`rgba`)===0?(a=n.parse(e[1]),d=a.get(`rgb`),f=
2a.get(`a`)):(d=e[1],f=1),e=i.createElement(`stop`).attr({offset:e[0],"stop-color":d,"stop-opacity":f}).add(_),_.stops.push(e)})}g=`url(`+i.url+`#`+m+`)`,r.setAttribute(t,g),r.gradient=h,e.toString=function(){return g}}})},e.prototype.css=function(e){var t=this.styles,n={},r=this.element,i=[`textOutline`,`textOverflow`,`width`],a=``,o=!t;if(e&&e.color&&(e.fill=e.color),t&&D(e,function(e,r){t&&t[r]!==e&&(n[r]=e,o=!0)}),o){if(t&&(e=b(t,n)),e){if(e.width===null||e.width===`auto`)delete this.textWidth;else if(r.nodeName.toLowerCase()===`text`&&e.width)var s=this.textWidth=k(e.width)}if(this.styles=e,s&&!d&&this.renderer.forExport&&delete e.width,r.namespaceURI===this.SVG_NS){var c=function(e,t){return`-`+t.toLowerCase()};D(e,function(e,t){i.indexOf(t)===-1&&(a+=t.replace(/([A-Z])/g,c)+`:`+e+`;`)}),a&&h(r,`style`,a)}else _(r,e);this.added&&(this.element.nodeName===`text`&&this.renderer.buildText(this),e&&e.textOutline&&this.applyTextOutline(e.textOutline))}return this},e.prototype.dashstyleSetter=function(e){var t=this[`stroke-width`];if(t===`inherit`&&(t=1),e&&=e.toLowerCase()){var n=e.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=n.length;e--;)n[e]=``+k(n[e])*O(t,NaN);e=n.join(`,`).replace(/NaN/g,`none`),this.element.setAttribute(`stroke-dasharray`,e)}},e.prototype.destroy=function(){var e=this,t=e.element||{},n=e.renderer,r=t.ownerSVGElement,i=n.isSVG&&t.nodeName===`SPAN`&&e.parentGroup||void 0;if(t.onclick=t.onmouseout=t.onmouseover=t.onmousemove=t.point=null,s(e),e.clipPath&&r){var a=e.clipPath;[].forEach.call(r.querySelectorAll(`[clip-path],[CLIP-PATH]`),function(e){-1<e.getAttribute(`clip-path`).indexOf(a.element.id)&&e.removeAttribute(`clip-path`)}),e.clipPath=a.destroy()}if(e.stops){for(r=0;r<e.stops.length;r++)e.stops[r].destroy();e.stops.length=0,e.stops=void 0}for(e.safeRemoveChild(t),n.styledMode||e.destroyShadows();i&&i.div&&i.div.childNodes.length===0;)t=i.parentGroup,e.safeRemoveChild(i.div),delete i.div,i=t;e.alignTo&&y(n.alignedObjects,e),D(e,function(t,n){e[n]&&e[n].parentGroup===e&&e[n].destroy&&e[n].destroy(),delete e[n]})},e.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(e){this.safeRemoveChild(e)},this),this.shadows=void 0},e.prototype.destroyTextPath=function(e,t){var n=e.getElementsByTagName(`text`)[0];if(n){if(n.removeAttribute(`dx`),n.removeAttribute(`dy`),t.element.setAttribute(`id`,``),this.textPathWrapper&&n.getElementsByTagName(`textPath`).length){for(e=this.textPathWrapper.element.childNodes;e.length;)n.appendChild(e[0]);n.removeChild(this.textPathWrapper.element)}}else(e.getAttribute(`dx`)||e.getAttribute(`dy`))&&(e.removeAttribute(`dx`),e.removeAttribute(`dy`));this.textPathWrapper&&=this.textPathWrapper.destroy()},e.prototype.dSetter=function(e,t,n){S(e)&&(typeof e[0]==`string`&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce(function(e,t,n){return t&&t.join?(n?e+` `:``)+t.join(` `):(t||``).toString()},``)),/(NaN| {2}|^$)/.test(e)&&(e=`M 0 0`),this[t]!==e&&(n.setAttribute(t,e),this[t]=e)},e.prototype.fadeOut=function(e){var t=this;t.animate({opacity:0}
2,{duration:O(e,150),complete:function(){t.attr({y:-9999}).hide()}})},e.prototype.fillSetter=function(e,t,n){typeof e==`string`?n.setAttribute(t,e):e&&this.complexColor(e,t,n)},e.prototype.getBBox=function(t,n){var r=this.renderer,i=this.element,a=this.styles,o=this.textStr,s=r.cache,l=r.cacheKeys,u=i.namespaceURI===this.SVG_NS;n=O(n,this.rotation,0);var d=r.styledMode?i&&e.prototype.getStyle.call(i,`font-size`):a&&a.fontSize,f;if(v(o)){var p=o.toString();p.indexOf(`<`)===-1&&(p=p.replace(/[0-9]/g,`0`)),p+=[``,n,d,this.textWidth,a&&a.textOverflow,a&&a.fontWeight].join()}if(p&&!t&&(f=s[p]),!f){if(u||r.forExport){try{var m=this.fakeTS&&function(e){var t=i.querySelector(`.highcharts-text-outline`);t&&_(t,{display:e})};C(m)&&m(`none`),f=i.getBBox?b({},i.getBBox()):{width:i.offsetWidth,height:i.offsetHeight},C(m)&&m(``)}catch{}(!f||0>f.width)&&(f={width:0,height:0})}else f=this.htmlGetBBox();if(r.isSVG&&(t=f.width,r=f.height,u&&(f.height=r={"11px,17":14,"13px,20":16}[(d||``)+`,`+Math.round(r)]||r),n&&(u=n*c,f.width=Math.abs(r*Math.sin(u))+Math.abs(t*Math.cos(u)),f.height=Math.abs(r*Math.cos(u))+Math.abs(t*Math.sin(u)))),p&&(o===``||0<f.height)){for(;250<l.length;)delete s[l.shift()];s[p]||l.push(p),s[p]=f}}return f},e.prototype.getStyle=function(e){return p.getComputedStyle(this.element||this,``).getPropertyValue(e)},e.prototype.hasClass=function(e){return(``+this.attr(`class`)).split(` `).indexOf(e)!==-1},e.prototype.hide=function(e){return e?this.attr({y:-9999}):this.attr({visibility:`hidden`}),this},e.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},e.prototype.init=function(e,t){this.element=t===`span`?g(t):l.createElementNS(this.SVG_NS,t),this.renderer=e,x(this,`afterInit`)},e.prototype.invert=function(e){return this.inverted=e,this.updateTransform(),this},e.prototype.on=function(e,t){var n=this.onEvents;return n[e]&&n[e](),n[e]=m(this.element,e,t),this},e.prototype.opacitySetter=function(e,t,n){this.opacity=e=Number(Number(e).toFixed(3)),n.setAttribute(t,e)},e.prototype.removeClass=function(e){return this.attr(`class`,(``+this.attr(`class`)).replace(T(e)?RegExp(`(^| )`+e+`( |$)`):e,` `).replace(/ +/g,` `).trim())},e.prototype.removeTextOutline=function(){var e=this.element.querySelector(`tspan.highcharts-text-outline`);e&&this.safeRemoveChild(e)},e.prototype.safeRemoveChild=function(e){var t=e.parentNode;t&&t.removeChild(e)},e.prototype.setRadialReference=function(e){var t=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=e,t&&t.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this},e.prototype.setTextPath=function(e,n){var r=this.element,i=this.text?this.text.element:r,a={textAnchor:`text-anchor`},o=!1,s=this.textPathWrapper,c=!s;n=E(!0,{enabled:!0,attributes:{dy:-5,startOffset:`50%`,textAnchor:`middle`}},n);var l=t.filterUserAttributes(n.attributes);if(e&&n&&n.enabled){s&&s.element.parentNode===null?(c=!0,s=s.destroy()):s&&this.removeTextOutline.call(s.parentGroup),this.options&&this.options.padding&&(l.dx=-this.options.padding),s||(this.textPathWrapper=s=this.renderer.createElement(`textPath`),o=!0);var d=s.element;if((n=e.element.getAttribute(`id`))||e.element.setAttribute(`id`,n=j()),c)for(i.setAttribute(`y`,0),w(l.dx)&&i.setAttribute(`x`,-l.dx),e=[].slice.call(i.childNodes),c=0;c<e.length;c++){var f=e[c];f.nodeType!==p.Node.TEXT_NODE&&f.nodeName!==`tspan`||d.appendChild(f)}o&&s&&s.add({element:i}),d.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,this.renderer.url+`#`+n),v(l.dy)&&(d.parentNode.setAttribute(`dy`,l.dy),delete l.dy),v(l.dx)&&(d.parentNode.setAttribute(`dx`,l.dx),delete l.dx),D(l,function(e,t){d.setAttribute(a[t]||t,e)}),r.removeAttribute(`transform`),this.removeTextOutline.call(s),this.text&&!this.renderer.styledMode&&this.attr({fill:`none`,"stroke-width":0}),this.applyTextOutline=this.updateTransform=u}else s&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(r,e),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},e.prototype.shadow=function(e,t,n){var r=[],i=this.element,a=this.oldSha
2dowOptions,o={color:`#000000`,offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},s=!1,c;if(!0===e?c=o:typeof e==`object`&&(c=b(o,e)),c&&(c&&a&&D(c,function(e,t){e!==a[t]&&(s=!0)}),s&&this.destroyShadows(),this.oldShadowOptions=c),!c)this.destroyShadows();else if(!this.shadows){var l=c.opacity/c.width,u=this.parentInverted?`translate(`+c.offsetY+`, `+c.offsetX+`)`:`translate(`+c.offsetX+`, `+c.offsetY+`)`;for(o=1;o<=c.width;o++){var d=i.cloneNode(!1),f=2*c.width+1-2*o;h(d,{stroke:e.color||`#000000`,"stroke-opacity":l*o,"stroke-width":f,transform:u,fill:`none`}),d.setAttribute(`class`,(d.getAttribute(`class`)||``)+` highcharts-shadow`),n&&(h(d,`height`,Math.max(h(d,`height`)-f,0)),d.cutHeight=f),t?t.element.appendChild(d):i.parentNode&&i.parentNode.insertBefore(d,i),r.push(d)}this.shadows=r}return this},e.prototype.show=function(e){return this.attr({visibility:e?`inherit`:`visible`})},e.prototype.strokeSetter=function(t,n,r){this[n]=t,this.stroke&&this[`stroke-width`]?(e.prototype.fillSetter.call(this,this.stroke,`stroke`,r),r.setAttribute(`stroke-width`,this[`stroke-width`]),this.hasStroke=!0):n===`stroke-width`&&t===0&&this.hasStroke?(r.removeAttribute(`stroke`),this.hasStroke=!1):this.renderer.styledMode&&this[`stroke-width`]&&(r.setAttribute(`stroke-width`,this[`stroke-width`]),this.hasStroke=!0)},e.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this[`stroke-width`]||0;var e=this.getStyle(`stroke-width`),t=0;if(e.indexOf(`px`)===e.length-2)t=k(e);else if(e!==``){var n=l.createElementNS(f,`rect`);h(n,{width:e,"stroke-width":0}),this.element.parentNode.appendChild(n),t=n.getBBox().width,n.parentNode.removeChild(n)}return t},e.prototype.symbolAttr=function(e){var t=this;`x y r start end width height innerR anchorX anchorY clockwise`.split(` `).forEach(function(n){t[n]=O(e[n],t[n])}),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})},e.prototype.textSetter=function(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this))},e.prototype.titleSetter=function(e){var t=this.element,n=t.getElementsByTagName(`title`)[0]||l.createElementNS(this.SVG_NS,`title`);t.insertBefore?t.insertBefore(n,t.firstChild):t.appendChild(n),n.textContent=String(O(e,``)).replace(/<[^>]*>/g,``).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`)},e.prototype.toFront=function(){var e=this.element;return e.parentNode.appendChild(e),this},e.prototype.translate=function(e,t){return this.attr({translateX:e,translateY:t})},e.prototype.updateShadows=function(e,t,n){var r=this.shadows;if(r)for(var i=r.length;i--;)n.call(r[i],e===`height`?Math.max(t-(r[i].cutHeight||0),0):e===`d`?this.d:t,e,r[i])},e.prototype.updateTransform=function(){var e=this.scaleX,t=this.scaleY,n=this.inverted,r=this.rotation,i=this.matrix,a=this.element,o=this.translateX||0,s=this.translateY||0;n&&(o+=this.width,s+=this.height),o=[`translate(`+o+`,`+s+`)`],v(i)&&o.push(`matrix(`+i.join(`,`)+`)`),n?o.push(`rotate(90) scale(-1,1)`):r&&o.push(`rotate(`+r+` `+O(this.rotationOriginX,a.getAttribute(`x`),0)+` `+O(this.rotationOriginY,a.getAttribute(`y`)||0)+`)`),(v(e)||v(t))&&o.push(`scale(`+O(e,1)+` `+O(t,1)+`)`),o.length&&a.setAttribute(`transform`,o.join(` `))},e.prototype.visibilitySetter=function(e,t,n){e===`inherit`?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e},e.prototype.xGetter=function(e){return this.element.nodeName===`circle`&&(e===`x`?e=`cx`:e===`y`&&(e=`cy`)),this._defaultGetter(e)},e.prototype.zIndexSetter=function(e,t){var n=this.renderer,r=this.parentGroup,i=(r||n).element||n.box,a=this.element;n=i===n.box;var o=!1,s=this.added,c;if(v(e)?(a.setAttribute(`data-z-index`,e),e=+e,this[t]===e&&(s=!1)):v(this[t])&&a.removeAttribute(`data-z-index`),this[t]=e,s){for((e=this.zIndex)&&r&&(r.handleZ=!0),t=i.childNodes,c=t.length-1;0<=c&&!o;c--){r=t[c],s=r.getAttribute(`data-z-index`);var l=!v(s);r!==a&&(0>e&&l&&!n&&!c?(i.insertBefore(a,t[c]),o=!0):(k(s)<=e||l&&(!v(e)||0<=e))&&(i.insertBefore(a,t[c+1]||null),o=!0))}o||=(i.insertBefore(a,t[n?3:0]||null),!0)}return o},e}(),e.prototype[`stroke-widthSetter`]=e.prototype.strokeSetter,e.prototype.yGetter=e.prototype.xGetter,e.prototype.matrixSetter=e.prototype.rotationOriginXSetter=e.prototype.rotationOriginYSetter=e.prototype.rotationSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.verticalAlignSetter=function(e,t){this[t]=e,this.doTransform=!0},e}),t(n,`Core/Renderer/RendererRegistry.js`,[n[`Core/Globals.js`]],function(e){var t;return(function(t){t.rendererTypes={};var n;t.getRendererType=function(e){return e===void 0&&(e=n),t.rendererTypes[e]||t.rendererTypes[n]},t.registerRendererType=function(r,i,a){t.rendererTypes[r]=i,(!n||a)&&(n=r,e.Renderer=i)}})(t||={}),t}),t(n,`Core/Renderer/SVG/SVGLabel.js`,[n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Utilities.js`]],function(e,t){var n=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}
2e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=t.defined,i=t.extend,a=t.isNumber,o=t.merge,s=t.pick,c=t.removeEvent;return function(t){function l(e,n,r,i,a,o,s,c,u,d){var f=t.call(this)||this;f.paddingLeftSetter=f.paddingSetter,f.paddingRightSetter=f.paddingSetter,f.init(e,`g`),f.textStr=n,f.x=r,f.y=i,f.anchorX=o,f.anchorY=s,f.baseline=u,f.className=d,f.addClass(d===`button`?`highcharts-no-tooltip`:`highcharts-label`),d&&f.addClass(`highcharts-`+d),f.text=e.text(void 0,0,0,c).attr({zIndex:1});var p;return typeof a==`string`&&((p=/^url\((.*?)\)$/.test(a))||f.renderer.symbols[a])&&(f.symbolKey=a),f.bBox=l.emptyBBox,f.padding=3,f.baselineOffset=0,f.needsBox=e.styledMode||p,f.deferredAttr={},f.alignFactor=0,f}return n(l,t),l.prototype.alignSetter=function(e){e={left:0,center:.5,right:1}[e],e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&a(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)},l.prototype.boxAttr=function(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t},l.prototype.css=function(t){if(t){var n={};t=o(t),l.textProps.forEach(function(e){t[e]!==void 0&&(n[e]=t[e],delete t[e])}),this.text.css(n);var r=`width`in n;`fontSize`in n||`fontWeight`in n?this.updateTextPadding():r&&this.updateBoxSize()}return e.prototype.css.call(this,t)},l.prototype.destroy=function(){c(this.element,`mouseenter`),c(this.element,`mouseleave`),this.text&&this.text.destroy(),this.box&&=this.box.destroy(),e.prototype.destroy.call(this)},l.prototype.fillSetter=function(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)},l.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var e=this.padding,t=s(this.paddingLeft,e);return{width:this.width,height:this.height,x:this.bBox.x-t,y:this.bBox.y-e}},l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this[`stroke-width`]?parseInt(this[`stroke-width`],10):0)%2/2},l.prototype.heightSetter=function(e){this.heightSetting=e},l.prototype.onAdd=function(){var e=this.textStr;this.text.add(this),this.attr({text:r(e)?e:``,x:this.x,y:this.y}),this.box&&r(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(e,t){a(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0},l.prototype.rSetter=function(e,t){this.boxAttr(t,e)},l.prototype.shadow=function(e){return e&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(e)),this},l.prototype.strokeSetter=function(e,t){this.stroke=e,this.boxAttr(t,e)},l.prototype[`stroke-widthSetter`]=function(e,t){e&&(this.needsBox=!0),this[`stroke-width`]=e,this.boxAttr(t,e)},l.prototype[`text-alignSetter`]=function(e){this.textAlign=e},l.prototype.textSetter=function(e){e!==void 0&&this.text.attr({text:e}),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var e=this.text.element.style,t={},n=this.padding,o=this.bBox=a(this.widthSetting)&&a(this.heightSetting)&&!this.textAlign||!r(this.text.textStr)?l.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*n,e=this.renderer.fontMetrics(e&&e.fontSize,this.text),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||e).b,o.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&(this.box||(n=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),n.addClass((this.className===`button`?``:`highcharts-label-box`)+(this.className?` highcharts-`+this.className+`-box`:``)),n.add(this)),n=this.getCrispAdjust(),t.x=n,t.y=(this.baseline?-this.baselineOffset:0)+n,t.width=Math.round(this.width),t.height=Math.round(this.height),this.box.attr(i(t,this.deferredAttr)),this.deferredAttr={})},l.prototype.updateTextPadding=function(){var e=this.text;this.updateBoxSize();var t=this.baseline?0:this.baselineOffset,n=s(this.paddingLeft,this.padding);r(this.widthSetting)&&this.bBox&&(this.textAlign===`center`||this.textAlign===`right`)&&(n+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(n!==e.x||t!==e.y)&&
2(e.attr(`x`,n),e.hasBoxWidthChanged&&(this.bBox=e.getBBox(!0)),t!==void 0&&e.attr(`y`,t)),e.x=n,e.y=t},l.prototype.widthSetter=function(e){this.widthSetting=a(e)?e:void 0},l.prototype.getPaddedWidth=function(){var e=this.padding,t=s(this.paddingLeft,e);return e=s(this.paddingRight,e),(this.widthSetting||this.bBox.width||0)+t+e},l.prototype.xSetter=function(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this[`forceAnimate:x`]=!0),this.xSetting=Math.round(e),this.attr(`translateX`,this.xSetting)},l.prototype.ySetter=function(e){this.ySetting=this.y=Math.round(e),this.attr(`translateY`,this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps=`color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width`.split(` `),l}(e)}),t(n,`Core/Renderer/SVG/Symbols.js`,[n[`Core/Utilities.js`]],function(e){function t(e,t,n,r,a){var s=[];if(a){var c=a.start||0,l=o(a.r,n);n=o(a.r,r||n);var u=(a.end||0)-.001;r=a.innerR;var d=o(a.open,.001>Math.abs((a.end||0)-c-2*Math.PI)),f=Math.cos(c),p=Math.sin(c),m=Math.cos(u),h=Math.sin(u);c=o(a.longArc,.001>u-c-Math.PI?0:1),s.push([`M`,e+l*f,t+n*p],[`A`,l,n,0,c,o(a.clockwise,1),e+l*m,t+n*h]),i(r)&&s.push(d?[`M`,e+r*m,t+r*h]:[`L`,e+r*m,t+r*h],[`A`,r,r,0,c,i(a.clockwise)?1-a.clockwise:0,e+r*f,t+r*p]),d||s.push([`Z`])}return s}function n(e,t,n,i,a){return a&&a.r?r(e,t,n,i,a):[[`M`,e,t],[`L`,e+n,t],[`L`,e+n,t+i],[`L`,e,t+i],[`Z`]]}function r(e,t,n,r,i){return i=i&&i.r||0,[[`M`,e+i,t],[`L`,e+n-i,t],[`C`,e+n,t,e+n,t,e+n,t+i],[`L`,e+n,t+r-i],[`C`,e+n,t+r,e+n,t+r,e+n-i,t+r],[`L`,e+i,t+r],[`C`,e,t+r,e,t+r,e,t+r-i],[`L`,e,t+i],[`C`,e,t,e,t,e+i,t]]}var i=e.defined,a=e.isNumber,o=e.pick;return{arc:t,callout:function(e,t,n,i,o){var s=Math.min(o&&o.r||0,n,i),c=s+6,l=o&&o.anchorX;o=o&&o.anchorY||0;var u=r(e,t,n,i,{r:s});return a(l)&&(e+l>=n?o>t+c&&o<t+i-c?u.splice(3,1,[`L`,e+n,o-6],[`L`,e+n+6,o],[`L`,e+n,o+6],[`L`,e+n,t+i-s]):u.splice(3,1,[`L`,e+n,i/2],[`L`,l,o],[`L`,e+n,i/2],[`L`,e+n,t+i-s]):0>=e+l?o>t+c&&o<t+i-c?u.splice(7,1,[`L`,e,o+6],[`L`,e-6,o],[`L`,e,o-6],[`L`,e,t+s]):u.splice(7,1,[`L`,e,i/2],[`L`,l,o],[`L`,e,i/2],[`L`,e,t+s]):o&&o>i&&l>e+c&&l<e+n-c?u.splice(5,1,[`L`,l+6,t+i],[`L`,l,t+i+6],[`L`,l-6,t+i],[`L`,e+s,t+i]):o&&0>o&&l>e+c&&l<e+n-c&&u.splice(1,1,[`L`,l-6,t],[`L`,l,t-6],[`L`,l+6,t],[`L`,n-s,t])),u},circle:function(e,n,r,i){return t(e+r/2,n+i/2,r/2,i/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,t,n,r){return[[`M`,e+n/2,t],[`L`,e+n,t+r/2],[`L`,e+n/2,t+r],[`L`,e,t+r/2],[`Z`]]},rect:n,roundedRect:r,square:n,triangle:function(e,t,n,r){return[[`M`,e+n/2,t],[`L`,e+n,t+r],[`L`,e,t+r],[`Z`]]},"triangle-down":function(e,t,n,r){return[[`M`,e,t],[`L`,e+n,t],[`L`,e+n/2,t+r],[`Z`]]}}}),t(n,`Core/Renderer/SVG/TextBuilder.js`,[n[`Core/Renderer/HTML/AST.js`],n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=t.doc,i=t.SVG_NS,a=t.win,o=n.attr,s=n.isString,c=n.objectEach,l=n.pick;return function(){function t(e){var t=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=t&&t.lineHeight,this.textOutline=t&&t.textOutline,this.ellipsis=!(!t||t.textOverflow!==`ellipsis`),this.noWrap=!(!t||t.whiteSpace!==`nowrap`),this.fontSize=t&&t.fontSize}return t.prototype.buildSVG=function(){var t=this.svgElement,n=t.element,i=t.renderer,a=l(t.textStr,``).toString(),o=a.indexOf(`<`)!==-1,c=n.childNodes;i=this.width&&!t.added&&i.box;var u=/<br.*?>/g,d=[a,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(d!==t.textCache){for(t.textCache=d,delete t.actualWidth,d=c.length;d--;)n.removeChild(c[d]);o||this.ellipsis||this.width||a.indexOf(` `)!==-1&&(!this.noWrap||u.test(a))?a!==``&&(i&&i.appendChild(n),a=new e(a),this.modifyTree(a.nodes),a.addToDOM(t.element),this.modifyDOM(),this.ellipsis&&(n.textContent||``).indexOf(`…`)!==-1&&t.attr(`title`,this.unescapeEntities(t.textStr||``,[`&lt;`,`&gt;`])),i&&i.removeChild(n)):n.appendChild(r.createTextNode(this.unescapeEntities(a))),s(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},t.prototype.modifyDOM=function(){var e=this,t=this.svgElement,n=o(t.element,`x`);t.firstLineMetrics=void 0;for(var s;(s=t.element.firstChild)&&/^[\s\u200B]*$/.test(s.textContent||` `);)t.element.removeChild(s);[].forEach.call(t.element.querySelectorAll(`tspan.highcharts-br`),function(r,i){r.nextSibling&&r.previousSibling&&(i===0&&r.previousSibling.nodeType===1&&(t.firstLineMetrics=t.renderer.fontMetrics(void 0,r.previousSibling)),o(r,{dy:e.getLineHeight(r.nextSibling),x:n}))});var c=this.width||0;if(c){var l=function(a,s){var l=a.textContent||``,u=l.replace(/([^\^])-/g,`$1- `).split(` `),d=!e.noWrap&&(1<u.length||1<t.element.childNodes.length),f=e.getLineHeight(s),p=0,m=t.actualWidth;if(e.ellipsis)l&&e.truncate(a,l,void 0,0,Math.max(0,c-parseInt(e.fontSize||12,10)),function(e,t){return e.substring(0,t)+`…`});else if(d){for(l=[],d=[];s.firstChild&&s.firstChild!==a;)d.push(s.firstChild),s.removeChild(s.firstChild);for(;u.length;)u.length&&!e.noWrap&&0<p&&(l.push(a.textContent||``),a.textContent=u.join(` `).replace(/- /g,`-`)),e.truncate(a,void 0,u,p===0&&m||0,c,function(e,t){return u.slice(0,t).join(` `).replace(/- /g,`-`)}),m=t.actualWidth,p++;d.forEach(function(e){s.insertBefore(e,a)}),l.forEach(function(e){s.insertBefore(r.createTextNode(e),a),e=r.createElementNS(i,`tspan`),e.textContent=`​`,o(e,{dy:f,x:n}),s.insertBefore(e,a)})}}
2,u=function(e){[].slice.call(e.childNodes).forEach(function(n){n.nodeType===a.Node.TEXT_NODE?l(n,e):(n.className.baseVal.indexOf(`highcharts-br`)!==-1&&(t.actualWidth=0),u(n))})};u(t.element)}},t.prototype.getLineHeight=function(e){var t;return e=e.nodeType===a.Node.TEXT_NODE?e.parentElement:e,this.renderer.styledMode||(t=e&&/(px|em)$/.test(e.style.fontSize)?e.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t,e||this.svgElement.element).h},t.prototype.modifyTree=function(e){var t=this,n=function(r,i){var a=r.attributes;a=a===void 0?{}:a;var o=r.children,c=r.tagName,l=t.renderer.styledMode;c===`b`||c===`strong`?l?a.class=`highcharts-strong`:a.style=`font-weight:bold;`+(a.style||``):(c===`i`||c===`em`)&&(l?a.class=`highcharts-emphasized`:a.style=`font-style:italic;`+(a.style||``)),s(a.style)&&(a.style=a.style.replace(/(;| |^)color([ :])/,`$1fill$2`)),c===`br`?(a.class=`highcharts-br`,r.textContent=`​`,(i=e[i+1])&&i.textContent&&(i.textContent=i.textContent.replace(/^ +/gm,``))):c===`a`&&o&&o.some(function(e){return e.tagName===`#text`})&&(r.children=[{children:o,tagName:`tspan`}]),c!==`#text`&&c!==`a`&&(r.tagName=`tspan`),r.attributes=a,o&&o.filter(function(e){return e.tagName!==`#text`}
2).forEach(n)};e.forEach(n)},t.prototype.truncate=function(e,t,n,r,i,a){var o=this.svgElement,s=o.renderer,c=o.rotation,l=[],u=+!!n,d=(t||n||``).length,f=d,p,m=function(i,c){c||=i;var u=e.parentNode;if(u&&l[c]===void 0){if(u.getSubStringLength)try{l[c]=r+u.getSubStringLength(0,n?c+1:c)}catch{}else s.getSpanWidth&&(e.textContent=a(t||n,i),l[c]=r+s.getSpanWidth(o,e))}return l[c]};o.rotation=0;var h=m(e.textContent.length);if(r+h>i){for(;u<=d;)f=Math.ceil((u+d)/2),n&&(p=a(n,f)),h=m(f,p&&p.length-1),u===d?u=d+1:h>i?d=f-1:u=f;d===0?e.textContent=``:t&&d===t.length-1||(e.textContent=p||a(t||n,f))}n&&n.splice(0,f),o.actualWidth=h,o.rotation=c},t.prototype.unescapeEntities=function(e,t){return c(this.renderer.escapes,function(n,r){t&&t.indexOf(n)!==-1||(e=e.toString().replace(new RegExp(n,`g`),r))}),e},t}()}),t(n,`Core/Renderer/SVG/SVGRenderer.js`,[n[`Core/Renderer/HTML/AST.js`],n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Renderer/RendererRegistry.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Renderer/SVG/SVGLabel.js`],n[`Core/Renderer/SVG/Symbols.js`],n[`Core/Renderer/SVG/TextBuilder.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s,c){var l=n.charts,u=n.deg2rad,d=n.doc,f=n.isFirefox,p=n.isMS,m=n.isWebKit,h=n.noop,g=n.SVG_NS,_=n.symbolSizes,v=n.win,y=c.addEvent,b=c.attr,x=c.createElement,S=c.css,C=c.defined,w=c.destroyObjectProperties,T=c.extend,E=c.isArray,D=c.isNumber,O=c.isObject,k=c.isString,A=c.merge,j=c.pick,M=c.pInt,N=c.uniqueKey,P;return n=function(){function n(e,t,n,r,i,a,o){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(e,t,n,r,i,a,o)}return n.prototype.init=function(e,t,n,r,i,a,o){var s=this.createElement(`svg`).attr({version:`1.1`,class:`highcharts-root`}),c=s.element;o||s.css(this.getStyle(r)),e.appendChild(c),b(e,`dir`,`ltr`),e.innerHTML.indexOf(`xmlns`)===-1&&b(c,`xmlns`,this.SVG_NS),this.isSVG=!0,this.box=c,this.boxWrapper=s,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement(`desc`).add().element.appendChild(d.createTextNode(`Created with Highcharts 9.3.3`)),this.defs=this.createElement(`defs`).add(),this.allowHTML=a,this.forExport=i,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(t,n,!1);var l;f&&e.getBoundingClientRect&&(t=function(){S(e,{left:0,top:0}),l=e.getBoundingClientRect(),S(e,{left:Math.ceil(l.left)-l.left+`px`,top:Math.ceil(l.top)-l.top+`px`})},t(),this.unSubPixelFix=y(v,`resize`,t))},n.prototype.definition=function(t){return new e([t]).addToDOM(this.defs.element)},n.prototype.getReferenceURL=function(){if((f||m)&&d.getElementsByTagName(`base`).length){if(!C(P)){var t=N();t=new e([{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(#`+t+`)`,fill:`rgba(0,0,0,0.001)`}}]}]).addToDOM(d.body),S(t,{position:`fixed`,top:0,left:0,zIndex:9e5});var n=d.elementFromPoint(6,6);P=(n&&n.id)===`hitme`,d.body.removeChild(t)}if(P)return v.location.href.split(`#`)[0].replace(/<[^>]*>/g,``).replace(/([\('\)])/g,`\\$1`).replace(/ /g,`%20`)}return``},n.prototype.getStyle=function(e){return this.style=T({fontFamily:`"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif`,fontSize:`12px`},e)},n.prototype.setStyle=function(e){this.boxWrapper.css(this.getStyle(e))},n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},n.prototype.destroy=function(){var e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),w(this.gradients||{}),this.gradients=null,e&&(this.defs=e.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},n.prototype.createElement=function(e){var t=new this.Element;return t.init(this,e),t},n.prototype.getRadialAttr=function(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}},n.prototype.buildText=function(e){new s(e).buildSVG()},n.prototype.getContrast=function(e){return e=t.parse(e).rgba,e[0]*=1,e[1]*=1.2,e[2]*=.5,459<e[0]+e[1]+e[2]?`#000000`:`#FFFFFF`},n.prototype.button=function(t,n,r,i,a,o,s,c,l,u){var d=this.label(t,n,r,l,void 0,void 0,u,void 0,`button`),f=this.styledMode,m=0,h=a?A(a):{};if(t=h&&h.style||{},h=e.filterUserAttributes(h),d.attr(A({padding:8,r:2},h)),!f){h=A({fill:`#f7f7f7`,stroke:`#cccccc`,"stroke-width":1,style:{color:`#333333`,cursor:`pointer`,fontWeight:`normal`}},{style:t},h);var g=h.style;delete h.style,o=A(h,{fill:`#e6e6e6`},e.filterUserAttributes(o||{}));var _=o.style;delete o.style,s=A(h,{fill:`#e6ebf5`,style:{color:`#000000`,fontWeight:`bold`}},e.filterUserAttributes(s||{}));var v=s.style;delete s.style,c=A(h,{style:{color:`#cccccc`}},e.filterUserAttributes(c||{}));var b=c.style;delete c.style}return y(d.element,p?`mouseover`:`mouseenter`,function(){m!==3&&d.setState(1)}),y(d.element,p?`mouseout`:`mouseleave`,function(){m!==3&&d.setState(m)}),d.setState=function(e){e!==1&&(d.state=m=e),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass(`highcharts-button-`+[`normal`,`hover`,`pressed`,`disabled`][e||0]),f||d.attr([h,o,s,c][e||0]).css([g,_,v,b][e||0])},f||d.attr(h).css(T({cursor:`default`},g)),d.on(`touchstart`,function(e){return e.stopPropagation()}
2).on(`click`,function(e){m!==3&&i.call(d,e)})},n.prototype.crispLine=function(e,t,n){n===void 0&&(n=`round`);var r=e[0],i=e[1];return C(r[1])&&r[1]===i[1]&&(r[1]=i[1]=Math[n](r[1])-t%2/2),C(r[2])&&r[2]===i[2]&&(r[2]=i[2]=Math[n](r[2])+t%2/2),e},n.prototype.path=function(e){var t=this.styledMode?{}:{fill:`none`};return E(e)?t.d=e:O(e)&&T(t,e),this.createElement(`path`).attr(t)},n.prototype.circle=function(e,t,n){return e=O(e)?e:e===void 0?{}:{x:e,y:t,r:n},t=this.createElement(`circle`),t.xSetter=t.ySetter=function(e,t,n){n.setAttribute(`c`+t,e)},t.attr(e)},n.prototype.arc=function(e,t,n,r,i,a){return O(e)?(r=e,t=r.y,n=r.r,e=r.x):r={innerR:r,start:i,end:a},e=this.symbol(`arc`,e,t,n,n,r),e.r=n,e},n.prototype.rect=function(e,t,n,r,i,a){i=O(e)?e.r:i;var o=this.createElement(`rect`);return e=O(e)?e:e===void 0?{}:{x:e,y:t,width:Math.max(n,0),height:Math.max(r,0)},this.styledMode||(a!==void 0&&(e[`stroke-width`]=a,e=o.crisp(e)),e.fill=`none`),i&&(e.r=i),o.rSetter=function(e,t,n){o.r=e,b(n,{rx:e,ry:e})},o.rGetter=function(){return o.r||0},o.attr(e)},n.prototype.setSize=function(e,t,n){this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:`0 0 `+this.attr(`width`)+` `+this.attr(`height`)})},duration:j(n,!0)?void 0:0}),this.alignElements()},n.prototype.g=function(e){var t=this.createElement(`g`);return e?t.attr({class:`highcharts-`+e}):t},n.prototype.image=function(e,t,n,r,i,a){var o={preserveAspectRatio:`none`},s=function(e,t){e.setAttributeNS?e.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,t):e.setAttribute(`hc-svg-href`,t)};D(t)&&(o.x=t),D(n)&&(o.y=n),D(r)&&(o.width=r),D(i)&&(o.height=i);var c=this.createElement(`image`).attr(o);return t=function(t){s(c.element,e),a.call(c,t)},a?(s(c.element,`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`),n=new v.Image,y(n,`load`,t),n.src=e,n.complete&&t({})):s(c.element,e),c},n.prototype.symbol=function(e,t,n,r,i,a){var o=this,s=/^url\((.*?)\)$/,c=s.test(e),u=!c&&(this.symbols[e]?e:`circle`),f=u&&this.symbols[u],p;if(f){typeof t==`number`&&(p=f.call(this.symbols,Math.round(t||0),Math.round(n||0),r||0,i||0,a));var m=this.path(p);o.styledMode||m.attr(`fill`,`none`),T(m,{symbolName:u||void 0,x:t,y:n,width:r,height:i}),a&&T(m,a)}else if(c){var h=e.match(s)[1],g=m=this.image(h);g.imgwidth=j(_[h]&&_[h].width,a&&a.width),g.imgheight=j(_[h]&&_[h].height,a&&a.height);var v=function(e){return e.attr({width:e.width,height:e.height})};[`width`,`height`].forEach(function(e){g[e+`Setter`]=function(e,t){var n=this[`img`+t];this[t]=e,C(n)&&(a&&a.backgroundSize===`within`&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(t,n),this.alignByTranslate||(e=((this[t]||0)-n)/2,this.attr(t===`width`?{translateX:e}:{translateY:e})))}}),C(t)&&g.attr({x:t,y:n}),g.isImg=!0,C(g.imgwidth)&&C(g.imgheight)?v(g):(g.attr({width:0,height:0}),x(`img`,{onload:function(){var e=l[o.chartIndex];this.width===0&&(S(this,{position:`absolute`,top:`-999em`}),d.body.appendChild(this)),_[h]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&v(g),this.parentNode&&this.parentNode.removeChild(this),o.imgCount--,!o.imgCount&&e&&!e.hasLoaded&&e.onload()},src:h}),this.imgCount++)}return m},n.prototype.clipRect=function(e,t,n,r){var i=N()+`-`,a=this.createElement(`clipPath`).attr({id:i}).add(this.defs);return e=this.rect(e,t,n,r,0).add(a),e.id=i,e.clipPath=a,e.count=0,e},n.prototype.text=function(e,t,n,r){var i={};return r&&(this.allowHTML||!this.forExport)?this.html(e,t,n):(i.x=Math.round(t||0),n&&(i.y=Math.round(n)),C(e)&&(i.text=e),e=this.createElement(`text`).attr(i),(!r||this.forExport&&!this.allowHTML)&&(e.xSetter=function(e,t,n){for(var r=n.getElementsByTagName(`tspan`),i=n.getAttribute(t),a=0,o;a<r.length;a++)o=r[a],o.getAttribute(t)===i&&o.setAttribute(t,e);n.setAttribute(t,e)}),e)},n.prototype.fontMetrics=function(e,t){return e=!this.styledMode&&/px/.test(e)||!v.getComputedStyle?e||t&&t.style&&t.style.fontSize||this.style&&this.style.fontSize:t&&i.prototype.getStyle.call(t,`font-size`),e=/px/.test(e)?M(e):12,t=24>e?e+3:Math.round(1.2*e),{h:t,b:Math.round(.8*t),f:e}},n.prototype.rotCorr=function(e,t,n){var r=e;return t&&n&&(r=Math.max(r*Math.cos(t*u),4)),{x:-e/3*Math.sin(t*u),y:r}},n.prototype.pathToSegments=function(e){for(var t=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},i=0;i<e.length;i++)k(n[0])&&D(e[i])&&n.length===r[n[0].toUpperCase()]&&e.splice(i,0,n[0].replace(`M`,`L`).replace(`m`,`l`)),typeof e[i]==`string`&&(n.length&&t.push(n.slice(0)),n.length=0),n.push(e[i]);return t.push(n.slice(0)),t},n.prototype.label=function(e,t,n,r,i,o,s,c,l){return new a(this,e,t,n,r,i,o,s,c,l)},n.prototype.alignElements=function(){this.alignedObjects.forEac
2h(function(e){return e.align()})},n}(),T(n.prototype,{Element:i,SVG_NS:g,escapes:{"&":`&amp;`,"<":`&lt;`,">":`&gt;`,"'":`&#39;`,'"':`&quot;`},symbols:o,draw:h}),r.registerRendererType(`svg`,n,!0),n}),t(n,`Core/Renderer/HTML/HTMLElement.js`,[n[`Core/Globals.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=e.isFirefox,a=e.isMS,o=e.isWebKit,s=e.win,c=n.css,l=n.defined,u=n.extend,d=n.pick,f=n.pInt;return function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return r(t,e),t.compose=function(e){if(t.composedClasses.indexOf(e)===-1){t.composedClasses.push(e);var n=t.prototype,r=e.prototype;r.getSpanCorrection=n.getSpanCorrection,r.htmlCss=n.htmlCss,r.htmlGetBBox=n.htmlGetBBox,r.htmlUpdateTransform=n.htmlUpdateTransform,r.setSpanRotation=n.setSpanRotation}return e},t.prototype.getSpanCorrection=function(e,t,n){this.xCorr=-e*n,this.yCorr=-t},t.prototype.htmlCss=function(e){var t=this.element.tagName===`SPAN`&&e&&`width`in e,n=d(t&&e.width,void 0);if(t){delete e.width,this.textWidth=n;var r=!0}return e&&e.textOverflow===`ellipsis`&&(e.whiteSpace=`nowrap`,e.overflow=`hidden`),this.styles=u(this.styles,e),c(this.element,e),r&&this.htmlUpdateTransform(),this},t.prototype.htmlGetBBox=function(){var e=this.element;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}},t.prototype.htmlUpdateTransform=function(){if(this.added){var e=this.renderer,t=this.element,n=this.translateX||0,r=this.translateY||0,i=this.x||0,a=this.y||0,o=this.textAlign||`left`,s={left:0,center:.5,right:1}[o],u=this.styles;if(u&&=u.whiteSpace,c(t,{marginLeft:n,marginTop:r}),!e.styledMode&&this.shadows&&this.shadows.forEach(function(e){c(e,{marginLeft:n+1,marginTop:r+1})}),this.inverted&&[].forEach.call(t.childNodes,function(n){e.invertChild(n,t)}),t.tagName===`SPAN`){var d=this.rotation,p=this.textWidth&&f(this.textWidth),m=[d,o,t.innerHTML,this.textWidth,this.textAlign].join(),h=void 0;if(h=!1,p!==this.oldTextWidth){if(this.textPxLength)var g=this.textPxLength;else c(t,{width:``,whiteSpace:u||`nowrap`}),g=t.offsetWidth;(p>this.oldTextWidth||g>p)&&(/[ \-]/.test(t.textContent||t.innerText)||t.style.textOverflow===`ellipsis`)&&(c(t,{width:g>p||d?p+`px`:`auto`,display:`block`,whiteSpace:u||`normal`}),this.oldTextWidth=p,h=!0)}this.hasBoxWidthChanged=h,m!==this.cTT&&(h=e.fontMetrics(t.style.fontSize,t).b,!l(d)||d===(this.oldRotation||0)&&o===this.oldAlign||this.setSpanRotation(d,s,h),this.getSpanCorrection(!l(d)&&this.textPxLength||t.offsetWidth,h,s,d,o)),c(t,{left:i+(this.xCorr||0)+`px`,top:a+(this.yCorr||0)+`px`}),this.cTT=m,this.oldRotation=d,this.oldAlign=o}}else this.alignOnAdd=!0},t.prototype.setSpanRotation=function(e,t,n){var r={},l=a&&!/Edge/.test(s.navigator.userAgent)?`-ms-transform`:o?`-webkit-transform`:i?`MozTransform`:s.opera?`-o-transform`:void 0;l&&(r[l]=r.transform=`rotate(`+e+`deg)`,r[l+(i?`Origin`:`-origin`)]=r.transformOrigin=100*t+`% `+n+`px`,c(this.element,r))},t.composedClasses=[],t}(t)}),t(n,`Core/Renderer/HTML/HTMLRenderer.js`,[n[`Core/Renderer/HTML/AST.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Renderer/SVG/SVGRenderer.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=r.attr,o=r.createElement,s=r.extend,c=r.pick;return function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return i(r,n),r.compose=function(e){return r.composedClasses.indexOf(e)===-1&&(r.composedClasse
2s.push(e),e.prototype.html=r.prototype.html),e},r.prototype.html=function(n,r,i){var l=this.createElement(`span`),u=l.element,d=l.renderer,f=d.isSVG,p=function(e,n){[`opacity`,`visibility`].forEach(function(r){e[r+`Setter`]=function(i,a,o){var s=e.div?e.div.style:n;t.prototype[r+`Setter`].call(this,i,a,o),s&&(s[a]=i)}}),e.addedSetters=!0};return l.textSetter=function(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,c(t,``)),this.textStr=t,l.doTransform=!0)},f&&p(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(e,t){t===`align`?l.alignValue=l.textAlign=e:l[t]=e,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&=(this.htmlUpdateTransform(),!1)},l.attr({text:n,x:Math.round(r),y:Math.round(i)}).css({position:`absolute`}),d.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),u.style.whiteSpace=`nowrap`,l.css=l.htmlCss,f&&(l.add=function(e){var t=d.box.parentNode,n=[];if(this.parentGroup=e){var r=e.div;if(!r){for(;e;)n.push(e),e=e.parentGroup;n.reverse().forEach(function(e){function i(t,n){e[n]=t,n===`translateX`?d.left=t+`px`:d.top=t+`px`,e.doTransform=!0}var c=a(e.element,`class`),u=e.styles||{};r=e.div=e.div||o(`div`,c?{className:c}:void 0,{position:`absolute`,left:(e.translateX||0)+`px`,top:(e.translateY||0)+`px`,display:e.display,opacity:e.opacity,cursor:u.cursor,pointerEvents:u.pointerEvents,visibility:e.visibility},r||t);var d=r.style;s(e,{classSetter:function(e){return function(t){this.element.setAttribute(`class`,t),e.className=t}}(r),on:function(){return n[0].div&&l.on.apply({element:n[0].div,onEvents:e.onEvents},arguments),e},translateXSetter:i,translateYSetter:i}),e.addedSetters||p(e)})}}else r=t;return r.appendChild(u),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l},r.composedClasses=[],r}(n)}),t(n,`Core/Axis/AxisDefaults.js`,[],function(){var e;return(function(e){e.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:`%H:%M:%S.%L`,range:!1},second:{main:`%H:%M:%S`,range:!1},minute:{main:`%H:%M`,range:!1},hour:{main:`%H:%M`,range:!1},day:{main:`%e. %b`},week:{main:`%e. %b`},month:{main:`%b '%y`},year:{main:`%Y`}},endOnTick:!1,gridLineDashStyle:`Solid`,gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:`justify`,padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:`#666666`,cursor:`default`,fontSize:`11px`}},maxPadding:.01,minorGridLineDashStyle:`Solid`,minorTickLength:2,minorTickPosition:`outside`,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:`between`,tickPosition:`outside`,title:{align:`middle`,rotation:0,useHTML:!1,x:0,y:0,style:{color:`#666666`}},type:`linear`,uniqueNames:!0,visible:!0,minorGridLineColor:`#f2f2f2`,minorGridLineWidth:1,minorTickColor:`#999999`,lineColor:`#ccd6eb`,lineWidth:1,gridLineColor:`#e6e6e6`,gridLineWidth:void 0,tickColor:`#ccd6eb`},e.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:`Values`},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:`justify`,formatter:function(){var e=this.axis.chart.numberFormatter;return e(this.total,-1)},style:{color:`#000000`,fontSize:`11px`,fontWeight:`bold`,textOutline:`1px contrast`}},gridLineWidth:1,lineWidth:0},e.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},e.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},e.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},e.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(e||={}),e}),t(n,`Core/Foundation.js`,[n[`Core/Utilities.js`]],function(e){var t=e.addEvent,n=e.isFunction,r=e.objectEach,i=e.removeEvent,a;return(function(e){e.registerEventOptions=function(e,a){e.eventOptions=e.eventOptions||{},r(a.events,function(r,a){e.eventOptions[a]!==r&&(e.eventOptions[a]&&(i(e,a,e.eventOptions[a]),delete e.eventOptions[a]),n(r)&&(e.eventOptions[a]=r,t(e,a,r)))})}})(a||={}),a}),t(n,`Core/Axis/Tick.js`,[n[`Core/FormatUtilities.js`],n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=t.deg2rad,i=n.clamp,a=n.correctFloat,o=n.defined,s=n.destroyObjectProperties,c=n.extend,l=n.fireEvent,u=n.isNumber,d=n.merge,f=n.objectEach,p=n.pick;return t=function(){function t(e,t,n,r,i){this.isNewLabel=this.isNew=!0,this.axis=e,this.pos=t,this.type=n||``,this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,`init`),n||r||this.addLabel()}return t.prototype.addLabel=function(){var t=this,n=t.axis,r=n.options,i=n.chart,s=n.categories,d=n.logarithmic,f=n.names,m=t.pos,h=p(t.options&&t.options.labels,r.labels),g=n.tickPositions,_=m===g[0],v=m===g[g.length-1],y=(!h.step||h.step===1)&&n.tickInterval===1;g=g.info;var b=t.label,x;if(s=this.parameters.category||(s?p(s[m],f[m],m):m),d&&u(s)&&(s=a(d.lin2log(s))),n.dateTime){if(g)var S=i.time.resolveDTLFormat(r.dateTimeLabelFormats[!r.grid&&g.higherRanks[m]||g.unitName]),C=S.main;else u(s)&&(C=n.dateTime.getXDateFormat(s,r.dateTimeLabelFormats||{}))}t.isFirst=_,t.isLast=v;var w={axis:n,chart:i,dateTimeLabelFormat:C,isFirst:_,isLast:v,pos:m,tick:t,tickPositionInfo:g,value:s};l(this,`labelFormat`,w);var T=function(t){return h.formatter?h.formatter.call(t,t):h.format?(t.text=n.defaultLabelFormatter.call(t),e.format(h.format,t,i)):n.defaultLabelFormatter.call(t,t)};r=T.call(w,w);var E=S&&S.list;t.shortenLabel=E?function(){for(x=0;x<E.length;x++)if(c(w,{dateTimeLabelFormat:E[x]}),b.attr({text:T.call(w,w)}),b.getBBox().width<n.getSlotWidth(t)-2*h.padding)return;b.attr({text:``})}:void 0,y&&n._addedPlotLB&&t.moveLabel(r,h),o(b)||t.movedLabel?b&&b.textStr!==r&&!y&&(!b.textWidth||h.style.width||b.styles.width||b.css({width:null}),b.attr({text:r}),b.textPxLength=b.getBBox().width):(t.label=b=t.createLabel({x:0,y:0},r,h),t.rotation=0)},t.prototype.createLabel=function(e,t,n){var r=this.axis,i=r.chart;return(e=o(t)&&n.enabled?i.renderer.text(t,e.x,e.y,n.useHTML).add(r.labelGroup):null)&&(i.styledMode||e.css(d(n.style)),e.textPxLength=e.getBBox().width),e},t.prototype.destroy=function(){s(this,this.axis)},t.prototype.getPosition=function(e,t,n,r){var o=this.axis,s=o.chart,c=r&&s.oldCh
2artHeight||s.chartHeight;return e={x:e?a(o.translate(t+n,null,null,r)+o.transB):o.left+o.offset+(o.opposite?(r&&s.oldChartWidth||s.chartWidth)-o.right-o.left:0),y:e?c-o.bottom+o.offset-(o.opposite?o.height:0):a(c-o.translate(t+n,null,null,r)-o.transB)},e.y=i(e.y,-1e5,1e5),l(this,`afterGetPosition`,{pos:e}),e},t.prototype.getLabelPosition=function(e,t,n,i,a,s,c,u){var d=this.axis,f=d.transA,p=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,m=d.staggerLines,h=d.tickRotCorr||{x:0,y:0},g=i||d.reserveSpaceDefault?0:-d.labelOffset*(d.labelAlign===`center`?.5:1),_={},v=a.y;return o(v)||(v=d.side===0?n.rotation?-8:-n.getBBox().height:d.side===2?h.y+8:Math.cos(n.rotation*r)*(h.y-n.getBBox(!1,0).height/2)),e=e+a.x+g+h.x-(s&&i?s*f*(p?-1:1):0),t=t+v-(s&&!i?s*f*(p?1:-1):0),m&&(n=c/(u||1)%m,d.opposite&&(n=m-n-1),t+=d.labelOffset/m*n),_.x=e,_.y=Math.round(t),l(this,`afterGetLabelPosition`,{pos:_,tickmarkOffset:s,index:c}),_},t.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?`height`:`width`]:0},t.prototype.getMarkPath=function(e,t,n,r,i,a){return a.crispLine([[`M`,e,t],[`L`,e+(i?0:-n),t+(i?n:0)]],r)},t.prototype.handleOverflow=function(e){var t=this.axis,n=t.options.labels,i=e.x,a=t.chart.chartWidth,o=t.chart.spacing,s=p(t.labelLeft,Math.min(t.pos,o[3]));o=p(t.labelRight,Math.max(t.isRadial?0:t.pos+t.len,a-o[1]));var c=this.label,l=this.rotation,u={left:0,center:.5,right:1}[t.labelAlign||c.attr(`align`)],d=c.getBBox().width,f=t.getSlotWidth(this),m={},h=f,g=1,_;l||n.overflow!==`justify`?0>l&&i-u*d<s?_=Math.round(i/Math.cos(l*r)-s):0<l&&i+u*d>o&&(_=Math.round((a-i)/Math.cos(l*r))):(a=i+(1-u)*d,i-u*d<s?h=e.x+h*(1-u)-s:a>o&&(h=o-e.x+h*u,g=-1),h=Math.min(f,h),h<f&&t.labelAlign===`center`&&(e.x+=g*(f-h-u*(f-Math.min(d,h)))),(d>h||t.autoRotation&&(c.styles||{}).width)&&(_=h)),_&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(_)+`px`,(n.style||{}).textOverflow||(m.textOverflow=`ellipsis`),c.css(m)))},t.prototype.moveLabel=function(e,t){var n=this,r=n.label,i=n.axis,a=i.reversed,o=!1;if(r&&r.textStr===e?(n.movedLabel=r,o=!0,delete n.label):f(i.ticks,function(t){o||t.isNew||t===n||!t.label||t.label.textStr!==e||(n.movedLabel=t.label,o=!0,t.labelPos=n.movedLabel.xy,delete t.label)}),!o&&(n.labelPos||r)){var s=n.labelPos||r.xy;r=i.horiz?a?0:i.width+i.left:s.x,i=i.horiz?s.y:a?i.width+i.left:0,n.movedLabel=n.createLabel({x:r,y:i},e,t),n.movedLabel&&n.movedLabel.attr({opacity:0})}},t.prototype.render=function(e,t,n){var r=this.axis,i=r.horiz,a=this.pos,o=p(this.tickmarkOffset,r.tickmarkOffset);a=this.getPosition(i,a,o,t),o=a.x;var s=a.y;r=i&&o===r.pos+r.len||!i&&s===r.pos?-1:1,i=p(n,this.label&&this.label.newOpacity,1),n=p(n,1),this.isActive=!0,this.renderGridLine(t,n,r),this.renderMark(a,n,r),this.renderLabel(a,t,i,e),this.isNew=!1,l(this,`afterRender`)},t.prototype.renderGridLine=function(e,t,n){var r=this.axis,i=r.options,a={},o=this.pos,s=this.type,c=p(this.tickmarkOffset,r.tickmarkOffset),l=r.chart.renderer,u=this.gridLine,d=i.gridLineWidth,f=i.gridLineColor,m=i.gridLineDashStyle;this.type===`minor`&&(d=i.minorGridLineWidth,f=i.minorGridLineColor,m=i.minorGridLineDashStyle),u||(r.chart.styledMode||(a.stroke=f,a[`stroke-width`]=d||0,a.dashstyle=m),s||(a.zIndex=1),e&&(t=0),this.gridLine=u=l.path().attr(a).addClass(`highcharts-`+(s?s+`-`:``)+`grid-line`).add(r.gridGroup)),u&&(n=r.getPlotLinePath({value:o+c,lineWidth:u.strokeWidth()*n,force:`pass`,old:e}))&&u[e||this.isNew?`attr`:`animate`]({d:n,opacity:t})},t.prototype.renderMark=function(e,t,n){var r=this.axis,i=r.options,a=r.chart.renderer,o=this.type,s=r.tickSize(o?o+`Tick`:`tick`),c=e.x;e=e.y;var l=p(i[o===`minor`?`minorTickWidth`:`tickWidth`],!o&&r.isXAxis?1:0);i=i[o===`minor`?`minorTickColor`:`tickColor`];var u=this.mark,d=!u;s&&(r.opposite&&(s[0]=-s[0]),u||(this.mark=u=a.path().addClass(`highcharts-`+(o?o+`-`:``)+`tick`).add(r.axisGroup),r.chart.styledMode||u.attr({stroke:i,"stroke-width":l})),u[d?`attr`:`animate`]({d:this.getMarkPath(c,e,s[0],u.strokeWidth()*n,r.horiz,a),opacity:t}))},t.prototype.renderLabel=function(e,t,n,r){var i=this.axis,a=i.horiz,o=i.options,s=this.label,c=o.labels,l=c.step;i=p(this.tickmarkOffset,i.tickmarkOffset);var d=e.x;e=e.y;var f=!0;s&&u(d)&&(s.xy=e=this.getLabelPosition(d,e,s,a,c,i,r,l),this.isFirst&&!this.isLast&&!o.showFirstLabel||this.isLast&&!this.isFirst&&!o.showLastLabel?f=!1:!a||c.step||c.rotation||t||n===0||this.handleOverflow(e),l&&r%l&&(f=!1),f&&u(e.y)?(e.opacity=n,s[this.isNewLabel?`attr`:`animate`](e),this.isNewLabel=!1):(s.attr(`y`,-9999),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var e=this.label,t=this.axis,n=t.reversed;if(e&&!this.isNew){var r=t.horiz?n?t.left:t.width+t.left:e.xy.x;n=t.horiz?e.xy.y:n?t.width+t.top:t.top,e.animate({x:r,y:n,opacity:0}
2,void 0,e.destroy),delete this.label}t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),t}),t(n,`Core/Axis/Axis.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Axis/AxisDefaults.js`],n[`Core/Color/Color.js`],n[`Core/DefaultOptions.js`],n[`Core/Foundation.js`],n[`Core/Globals.js`],n[`Core/Axis/Tick.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s){var c=e.animObject,l=r.defaultOptions,u=i.registerEventOptions,d=a.deg2rad,f=s.arrayMax,p=s.arrayMin,m=s.clamp,h=s.correctFloat,g=s.defined,_=s.destroyObjectProperties,v=s.erase,y=s.error,b=s.extend,x=s.fireEvent,S=s.getMagnitude,C=s.isArray,w=s.isNumber,T=s.isString,E=s.merge,D=s.normalizeTickInterval,O=s.objectEach,k=s.pick,A=s.relativeLength,j=s.removeEvent,M=s.splat,N=s.syncTimeout;return e=function(){function e(e,t){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(e,t)}return e.prototype.init=function(e,t){var n=t.isX;this.chart=e,this.horiz=e.inverted&&!this.isZAxis?!n:n,this.isXAxis=n,this.coll=this.coll||(n?`xAxis`:`yAxis`),x(this,`init`,{userOptions:t}),this.opposite=k(t.opposite,this.opposite),this.side=k(t.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(t);var r=this.options,i=r.labels,a=r.type;this.userOptions=t,this.minPixelPadding=0,this.reversed=k(r.reversed,this.reversed),this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames=a===`category`||!0===r.categories,this.categories=r.categories||this.hasNames,this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=g(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.min=this.max=null,t=k(r.crosshair,M(e.options.tooltip.crosshairs)[+!n]),this.crosshair=!0===t?{}:t,e.axes.indexOf(this)===-1&&(n?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this)),this.series=this.series||[],e.inverted&&!this.isZAxis&&n&&this.reversed===void 0&&(this.reversed=!0),this.labelRotation=w(i.rotation)?i.rotation:void 0,u(this,r),x(this,`afterInit`)},e.prototype.setOptions=function(e){this.options=E(t.defaultXAxisOptions,this.coll===`yAxis`&&t.defaultYAxisOptions,[t.defaultTopAxisOptions,t.defaultRightAxisOptions,t.defaultBottomAxisOptions,t.defaultLeftAxisOptions][this.side],E(l[this.coll],e)),x(this,`afterSetOptions`,{userOptions:e})},e.prototype.defaultLabelFormatter=function(e){var t=this.axis;e=this.chart.numberFormatter;var n=w(this.value)?this.value:NaN,r=t.chart.time,i=this.dateTimeLabelFormat,a=l.lang,o=a.numericSymbols;a=a.numericSymbolMagnitude||1e3;var s=t.logarithmic?Math.abs(n):t.tickInterval,c=o&&o.length;if(t.categories)var u=``+this.value;else if(i)u=r.dateFormat(i,n);else if(c&&1e3<=s)for(;c--&&u===void 0;)t=a**+(c+1),s>=t&&10*n%t==0&&o[c]!==null&&n!==0&&(u=e(n/t,-1)+o[c]);return u===void 0&&(u=1e4<=Math.abs(n)?e(n,-1):e(n,-1,void 0,``)),u},e.prototype.getSeriesExtremes=function(){var e=this,t=e.chart,n;x(this,`getSeriesExtremes`,null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach(function(r){if(r.visible||!t.options.chart.ignoreHiddenSeries){var i=r.options,a=i.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=a&&(a=null),e.isXAxis){if(i=r.xData,i.length){i=e.logarithmic?i.filter(e.validatePositiveValue):i,n=r.getXExtremes(i);var o=n.min,s=n.max;w(o)||o instanceof Date||(i=i.filter(w),n=r.getXExtremes(i),o=n.min,s=n.max),i.length&&(e.dataMin=Math.min(k(e.dataMin,o),o),e.dataMax=Math.max(k(e.dataMax,s),s))}}else r=r.applyExtremes(),w(r.dataMin)&&(o=r.dataMin,e.dataMin=Math.min(k(e.dataMin,o),o)),w(r.dataMax)&&(s=r.dataMax,e.dataMax=Math.max(k(e.dataMax,s),s)),g(a)&&(e.threshold=a),(!i.softThreshold||e.positiveValuesOnly)&&
2(e.softThreshold=!1)}})}),x(this,`afterGetSeriesExtremes`)},e.prototype.translate=function(e,t,n,r,i,a){var o=this.linkedParent||this,s=r&&o.old?o.old.min:o.min,c=o.minPixelPadding;i=(o.isOrdinal||o.brokenAxis&&o.brokenAxis.hasBreaks||o.logarithmic&&i)&&o.lin2val;var l=1,u=0;return r=r&&o.old?o.old.transA:o.transA,r||=o.transA,n&&(l*=-1,u=o.len),o.reversed&&(l*=-1,u-=l*(o.sector||o.len)),t?(e=(e*l+u-c)/r+s,i&&(e=o.lin2val(e))):(i&&(e=o.val2lin(e)),e=w(s)?l*(e-s)*r+u+l*c+(w(a)?r*a:0):void 0),e},e.prototype.toPixels=function(e,t){return this.translate(e,!1,!this.horiz,null,!0)+(t?0:this.pos)},e.prototype.toValue=function(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,null,!0)},e.prototype.getPlotLinePath=function(e){function t(e,t,n){return(p!==`pass`&&e<t||e>n)&&(p?e=m(e,t,n):y=!0),e}var n=this,r=n.chart,i=n.left,a=n.top,o=e.old,s=e.value,c=e.lineWidth,l=o&&r.oldChartHeight||r.chartHeight,u=o&&r.oldChartWidth||r.chartWidth,d=n.transB,f=e.translatedValue,p=e.force,h,g,_,v,y;return e={value:s,lineWidth:c,old:o,force:p,acrossPanes:e.acrossPanes,translatedValue:f},x(this,`getPlotLinePath`,e,function(e){f=k(f,n.translate(s,null,null,o)),f=m(f,-1e5,1e5),h=_=Math.round(f+d),g=v=Math.round(l-f-d),w(f)?n.horiz?(g=a,v=l-n.bottom,h=_=t(h,i,i+n.width)):(h=i,_=u-n.right,g=v=t(g,a,a+n.height)):(y=!0,p=!1),e.path=y&&!p?null:r.renderer.crispLine([[`M`,h,g],[`L`,_,v]],c||1)}),e.path},e.prototype.getLinearTickPositions=function(e,t,n){var r=h(Math.floor(t/e)*e);n=h(Math.ceil(n/e)*e);var i=[],a;if(h(r+e)===r&&(a=20),this.single)return[t];for(t=r;t<=n&&(i.push(t),t=h(t+e,a),t!==o);)var o=t;return i},e.prototype.getMinorTickInterval=function(){var e=this.options;return!0===e.minorTicks?k(e.minorTickInterval,`auto`):!1===e.minorTicks?null:e.minorTickInterval},e.prototype.getMinorTickPositions=function(){var e=this.options,t=this.tickPositions,n=this.minorTickInterval,r=this.pointRangePadding||0,i=this.min-r;r=this.max+r;var a=r-i,o=[];if(a&&a/n<this.len/3){var s=this.logarithmic;if(s)this.paddedTicks.forEach(function(e,t,r){t&&o.push.apply(o,s.getLogTickPositions(n,r[t-1],r[t],!0))});else if(this.dateTime&&this.getMinorTickInterval()===`auto`)o=o.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(n),i,r,e.startOfWeek));else for(e=i+(t[0]-i)%n;e<=r&&e!==o[0];e+=n)o.push(e)}return o.length!==0&&this.trimTicks(o),o},e.prototype.adjustForMinRange=function(){var e=this.options,t=this.logarithmic,n=this.min,r=this.max,i=0,a,o,s,c;if(this.isXAxis&&this.minRange===void 0&&!t&&(g(e.min)||g(e.max)||g(e.floor)||g(e.ceiling)?this.minRange=null:(this.series.forEach(function(e){if(s=e.xData,c=e.xIncrement?1:s.length-1,1<s.length)for(a=c;0<a;a--)o=s[a]-s[a-1],(!i||o<i)&&(i=o)}),this.minRange=Math.min(5*i,this.dataMax-this.dataMin))),r-n<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,u=this.minRange,d=(u-r+n)/2;d=[n-d,k(e.min,n-d)],l&&(d[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),n=f(d),r=[n+u,k(e.max,n+u)],l&&(r[2]=t?t.log2lin(this.dataMax):this.dataMax),r=p(r),r-n<u&&(d[0]=r-u,d[1]=k(e.min,r-u),n=f(d))}this.min=n,this.max=r},e.prototype.getClosest=function(){var e;return this.categories?e=1:this.series.forEach(function(t){var n=t.closestPointRange,r=t.visible||!t.chart.options.chart.ignoreHiddenSeries;!t.noSharedTooltip&&g(n)&&r&&(e=g(e)?Math.min(e,n):n)}),e},e.prototype.nameToX=function(e){var t=C(this.categories),n=t?this.categories:this.names,r=e.options.x;if(e.series.requireSorting=!1,g(r)||(r=this.options.uniqueNames?t?n.indexOf(e.name):k(n.keys[e.name],-1):e.series.autoIncrement()),r===-1){if(!t)var i=n.length}else i=r;return i!==void 0&&(this.names[i]=e.name,this.names.keys[e.name]=i),i},e.prototype.updateNames=function(){var e=this,t=this.names;0<t.length&&(Object.keys(t.keys).forEach(function(e){delete t.keys[e]}),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(t){t.xIncrement=null,(!t.points||t.isDirtyData)&&(e.max=Math.max(e.max,t.xData.length-1),t.processData(),t.generatePoints()),t.data.forEach(function(n,r){if(n&&n.options&&n.name!==void 0){var i=e.nameToX(n);i!==void 0&&i!==n.x&&(n.x=i,t.xData[r]=i)}})}))},e.prototype.setAxisTranslation=function(){var e=this,t=e.max-e.min,n=e.linkedParent,r=!!e.categories,i=e.isXAxis,a=e.axisPointRange||0,o=0,s=0,c=e.transA;if(i||r||a){var l=e.getClosest();
2n?(o=n.minPointOffset,s=n.pointRangePadding):e.series.forEach(function(t){var n=r?1:i?k(t.options.pointRange,l,0):e.axisPointRange||0,c=t.options.pointPlacement;a=Math.max(a,n),(!e.single||r)&&(t=t.is(`xrange`)?!i:i,o=Math.max(o,t&&T(c)?0:n/2),s=Math.max(s,t&&c===`on`?0:n))}),n=e.ordinal&&e.ordinal.slope&&l?e.ordinal.slope/l:1,e.minPointOffset=o*=n,e.pointRangePadding=s*=n,e.pointRange=Math.min(a,e.single&&r?1:t),i&&(e.closestPointRange=l)}e.translationSlope=e.transA=c=e.staticScale||e.len/(t+s||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=c*o,x(this,`afterSetAxisTranslation`)},e.prototype.minFromRange=function(){return this.max-this.range},e.prototype.setTickInterval=function(e){var t=this.chart,n=this.logarithmic,r=this.options,i=this.isXAxis,a=this.isLinked,o=r.tickPixelInterval,s=this.categories,c=this.softThreshold,l=r.maxPadding,u=r.minPadding,d=w(r.tickInterval)&&0<=r.tickInterval?r.tickInterval:void 0,f=w(this.threshold)?this.threshold:null;this.dateTime||s||a||this.getTickAmount();var p=k(this.userMin,r.min),m=k(this.userMax,r.max);if(a){this.linkedParent=t[this.coll][r.linkedTo];var _=this.linkedParent.getExtremes();this.min=k(_.min,_.dataMin),this.max=k(_.max,_.dataMax),r.type!==this.linkedParent.options.type&&y(11,1,t)}else{if(c&&g(f)){if(this.dataMin>=f)_=f,u=0;else if(this.dataMax<=f){var v=f;l=0}}this.min=k(p,_,this.dataMin),this.max=k(m,v,this.dataMax)}if(n&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,k(this.dataMin,this.min))&&y(10,1,t),this.min=h(n.log2lin(this.min),16),this.max=h(n.log2lin(this.max),16)),this.range&&g(this.max)&&(this.userMin=this.min=p=Math.max(this.dataMin,this.minFromRange()),this.userMax=m=this.max,this.range=null),x(this,`foundExtremes`),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(s||this.axisPointRange||this.stacking&&this.stacking.usePercentage||a)&&g(this.min)&&g(this.max)&&(t=this.max-this.min)&&(!g(p)&&u&&(this.min-=t*u),!g(m)&&l&&(this.max+=t*l)),w(this.userMin)||(w(r.softMin)&&r.softMin<this.min&&(this.min=p=r.softMin),w(r.floor)&&(this.min=Math.max(this.min,r.floor))),w(this.userMax)||(w(r.softMax)&&r.softMax>this.max&&(this.max=m=r.softMax),w(r.ceiling)&&(this.max=Math.min(this.max,r.ceiling))),c&&g(this.dataMin)&&(f||=0,!g(p)&&this.min<f&&this.dataMin>=f?this.min=this.options.minRange?Math.min(f,this.max-this.minRange):f:!g(m)&&this.max>f&&this.dataMax<=f&&(this.max=this.options.minRange?Math.max(f,this.min+this.minRange):f)),w(this.min)&&w(this.max)&&!this.chart.polar&&this.min>this.max&&(g(this.options.min)?this.max=this.min:g(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||this.min===void 0||this.max===void 0?1:a&&this.linkedParent&&!d&&o===this.linkedParent.options.tickPixelInterval?d=this.linkedParent.tickInterval:k(d,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,s?1:(this.max-this.min)*o/Math.max(this.len,o)),i&&!e){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(e){e.forceCrop=e.forceCropping&&e.forceCropping(),e.processData(b)}),x(this,`postProcessData`,{hasExtemesChanged:b})}this.setAxisTranslation(),x(this,`initialAxisTranslation`),this.pointRange&&!d&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),e=k(r.minTickInterval,this.dateTime&&!this.series.some(function(e){return e.noSharedTooltip})?this.closestPointRange:0),!d&&this.tickInterval<e&&(this.tickInterval=e),this.dateTime||this.logarithmic||d||(this.tickInterval=D(this.tickInterval,void 0,S(this.tickInterval),k(r.allowDecimals,.5>this.tickInterval||this.tickAmount!==void 0),!!this.tickAmount)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},e.prototype.setTickPositions=function(){var e=this.options,t=e.tickPositions,n=this.getMinorTickInterval(),r=this.hasVerticalPanning(),i=this.coll===`colorAxis`,a=(i||!r)&&e.startOnTick;r=(i||!r)&&e.endOnTick,i=e.tickPositioner,this.tickmarkOffset=this.categories&&e.tickmarkPlacement===`between`&&this.tickInterval===1?.5:0,this.minorTickInterval=n===`auto`&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&g(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=n=t&&t.slice(),!n&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?n=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(n=[this.min,this.max],y(19,!1,this.chart)),n.length>this.len&&(n=[n[0],n.pop()],n[0]===n[1]&&(n.length=1)),this.tickPositions=n,i&&=i.apply(this,[this.min,this.max]))&&(this.tickPositions=n=i),this.paddedTicks=n.slice(0),this.trimTicks(n,a,r),this.isLinked||(this.single&&2>n.length&&!this.categories&&!this.series.some(function(e){return e.is(`heatmap`)&&e.options.pointPlacement===`between`})&&(this.min-=.5,this.max+=.5),t||i||this.adjustTickAmount()),x(this,`afterSetTickPositions`)},e.prototype.trimTicks=function(e,t,n){var r=e[0],i=e[e.length-1],a=!this.isOrdinal&&this.minPointOffset||0;if(x(this,`trimTicks`),!this.isLinked){if(t&&r!==-1/0)this.min=r;else for(;this.min-a>e[0];)e.shift();if(n)this.max=i;else for(;this.max+a<e[e.length-1];)e.pop();e.length===0&&g(r)&&!this.options.tickPositions&&e.push((i+r)/2)}},e.prototype.alignToOthers=function(){var e={},t=this.options,n;return!1!==this.chart.options.chart.alignTicks&&t.alignTicks&&!1!==t.startOnTick&&!1!==t.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(t){var r=t.options;r=[t.horiz?r.left:r.top,r.width,r.height,r.pane].join(),t.series.length&&(e[r]?n=!0:e[r]=1)}),n},e.prototype.getTickAmount=function(){var e=this.options,t=e.tickPixelInterval,n=e.tickAmount;!g(e.tickInterval)&&!n&&this.len<t&&!this.isRadial&&!this.logarithmic&&e.startOnTick&&e.endOnTick&&(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/t)+1),4>n&&(this.finalTickAmt=n,n=5),this.tickAmount=n},e.prototype.adjustTickAmount=function(){var e=this.options,t=this.tickInterval,n=this.tickPositions,r=this.tickAmount,i=this.finalTickAmt,a=n&&n.length,o=k(this.threshold,this.softThreshold?0:null);if(this.hasData()&&w(this.min)&&w(this.max)){if(a<r){for(;n.length<r;)n.length%2||this.min===o?n.push(h(n[n.length-1]+t)):n.unshift(h(n[0]-t));this.transA*=(a-1)/(r-1),this.min=e.startOnTick?n[0]:Math.min(this.min,n[0]),this.max=e.endOnTick?n[n.length-1]:Math.max(this.max,n[n.length-1])}else a>r&&(this.tickInterval*=2,this.setTickPositions());if(g(i)){for(t=e=n.length;t--;)(i===3&&t%2==1||2>=i&&0<t&&t<e-1)&&n.splice(t,1);this.finalTickAmt=void 0}}},e.prototype.setScale=function(){var e=!1,t=!1;
2this.series.forEach(function(n){e=e||n.isDirtyData||n.isDirty,t=t||n.xAxis&&n.xAxis.isDirty||!1}),this.setAxisSize();var n=this.len!==(this.old&&this.old.len);n||e||t||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||=n||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max)):this.stacking&&this.stacking.cleanStacks(),e&&this.panningState&&(this.panningState.isDirty=!0),x(this,`afterSetScale`)},e.prototype.setExtremes=function(e,t,n,r,i){var a=this,o=a.chart;n=k(n,!0),a.series.forEach(function(e){delete e.kdTree}),i=b(i,{min:e,max:t}),x(a,`setExtremes`,i,function(){a.userMin=e,a.userMax=t,a.eventArgs=i,n&&o.redraw(r)})},e.prototype.zoom=function(e,t){var n=this,r=this.dataMin,i=this.dataMax,a=this.options,o=Math.min(r,k(a.min,r)),s=Math.max(i,k(a.max,i));return e={newMin:e,newMax:t},x(this,`zoom`,e,function(e){var t=e.newMin,a=e.newMax;(t!==n.min||a!==n.max)&&(n.allowZoomOutside||(g(r)&&(t<o&&(t=o),t>s&&(t=s)),g(i)&&(a<o&&(a=o),a>s&&(a=s))),n.displayBtn=t!==void 0||a!==void 0,n.setExtremes(t,a,!1,void 0,{trigger:`zoom`})),e.zoomed=!0}
2),e.zoomed},e.prototype.setAxisSize=function(){var e=this.chart,t=this.options,n=t.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(A(k(t.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),a=this.height=Math.round(A(k(t.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),o=this.top=Math.round(A(k(t.top,e.plotTop+n[0]),e.plotHeight,e.plotTop));t=this.left=Math.round(A(k(t.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-a-o,this.right=e.chartWidth-i-t,this.len=Math.max(r?i:a,0),this.pos=r?t:o},e.prototype.getExtremes=function(){var e=this.logarithmic;return{min:e?h(e.lin2log(this.min)):this.min,max:e?h(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},e.prototype.getThreshold=function(e){var t=this.logarithmic,n=t?t.lin2log(this.min):this.min;return t=t?t.lin2log(this.max):this.max,e===null||e===-1/0?e=n:e===1/0?e=t:n>e?e=n:t<e&&(e=t),this.translate(e,0,1,0,1)},e.prototype.autoLabelAlign=function(e){var t=(k(e,0)-90*this.side+720)%360;return e={align:`center`},x(this,`autoLabelAlign`,e,function(e){15<t&&165>t?e.align=`right`:195<t&&345>t&&(e.align=`left`)}),e.align},e.prototype.tickSize=function(e){var t=this.options,n=k(t[e===`tick`?`tickWidth`:`minorTickWidth`],e===`tick`&&this.isXAxis&&!this.categories?1:0),r=t[e===`tick`?`tickLength`:`minorTickLength`];if(n&&r){t[e+`Position`]===`inside`&&(r=-r);var i=[r,n]}return e={tickSize:i},x(this,`afterTickSize`,e),e.tickSize},e.prototype.labelMetrics=function(){var e=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[e]&&this.ticks[e].label)},e.prototype.unsquish=function(){var e=this.options.labels,t=this.horiz,n=this.tickInterval,r=this.len/((+!!this.categories+this.max-this.min)/n),i=e.rotation,a=this.labelMetrics(),o=Math.max(this.max-this.min,0),s=function(e){var t=e/(r||1);return t=1<t?Math.ceil(t):1,t*n>o&&e!==1/0&&r!==1/0&&o&&(t=Math.ceil(o/n)),h(t*n)},c=n,l,u,f=Number.MAX_VALUE;if(t){if(!e.staggerLines&&!e.step){if(w(i))var p=[i];else r<e.autoRotationLimit&&(p=e.autoRotation)}p&&p.forEach(function(e){if(e===i||e&&-90<=e&&90>=e){u=s(Math.abs(a.h/Math.sin(d*e)));var t=u+Math.abs(e/360);t<f&&(f=t,l=e,c=u)}})}else e.step||(c=s(a.h));return this.autoRotation=p,this.labelRotation=k(l,w(i)?i:0),c},e.prototype.getSlotWidth=function(e){var t=this.chart,n=this.horiz,r=this.options.labels,i=Math.max(this.tickPositions.length-+!this.categories,1),a=t.margin[3];if(e&&w(e.slotWidth))return e.slotWidth;if(n&&2>r.step)return r.rotation?0:(this.staggerLines||1)*this.len/i;if(!n){if(e=r.style.width,e!==void 0)return parseInt(String(e),10);if(a)return a-t.spacing[3]}return .33*t.chartWidth},e.prototype.renderUnsquish=function(){var e=this.chart,t=e.renderer,n=this.tickPositions,r=this.ticks,i=this.options.labels,a=i.style,o=this.horiz,s=this.getSlotWidth(),c=Math.max(1,Math.round(s-2*i.padding)),l={},u=this.labelMetrics(),d=a.textOverflow,f=0;if(T(i.rotation)||(l.rotation=i.rotation||0),n.forEach(function(e){e=r[e],e.movedLabel&&e.replaceMovedLabel(),e&&e.label&&e.label.textPxLength>f&&(f=e.label.textPxLength)}),this.maxLabelLength=f,this.autoRotation)f>c&&f>u.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(s){var p=c;if(!d){var m=`clip`;for(c=n.length;!o&&c--;){var h=n[c];(h=r[h].label)&&(h.styles&&h.styles.textOverflow===`ellipsis`?h.
2css({textOverflow:`clip`}):h.textPxLength>s&&h.css({width:s+`px`}),h.getBBox().height>this.len/n.length-(u.h-u.f)&&(h.specificTextOverflow=`ellipsis`))}}}l.rotation&&(p=f>.5*e.chartHeight?.33*e.chartHeight:f,d||(m=`ellipsis`)),(this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),n.forEach(function(e){var t=(e=r[e])&&e.label,n=a.width,i={};t&&(t.attr(l),e.shortenLabel?e.shortenLabel():p&&!n&&a.whiteSpace!==`nowrap`&&(p<t.textPxLength||t.element.tagName===`SPAN`)?(i.width=p+`px`,d||(i.textOverflow=t.specificTextOverflow||m),t.css(i)):t.styles&&t.styles.width&&!i.width&&!n&&t.css({width:null}),delete t.specificTextOverflow,e.rotation=l.rotation)},this),this.tickRotCorr=t.rotCorr(u.b,this.labelRotation||0,this.side!==0)},e.prototype.hasData=function(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&g(this.min)&&g(this.max)},e.prototype.addTitle=function(e){var t=this.chart.renderer,n=this.horiz,r=this.opposite,i=this.options.title,a=this.chart.styledMode,o;this.axisTitle||((o=i.textAlign)||(o=(n?{low:`left`,middle:`center`,high:`right`}:{low:r?`right`:`left`,middle:`center`,high:r?`left`:`right`})[i.align]),this.axisTitle=t.text(i.text||``,0,0,i.useHTML).attr({zIndex:7,rotation:i.rotation,align:o}).addClass(`highcharts-axis-title`),a||this.axisTitle.css(E(i.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||i.style.width||this.isRadial||this.axisTitle.css({width:this.len+`px`}),this.axisTitle[e?`show`:`hide`](e)},e.prototype.generateTick=function(e){var t=this.ticks;t[e]?t[e].addLabel():t[e]=new o(this,e)},e.prototype.getOffset=function(){var e=this,t=this,n=t.chart,r=t.horiz,i=t.options,a=t.side,o=t.ticks,s=t.tickPositions,c=t.coll,l=t.axisParent,u=n.renderer,d=n.inverted&&!t.isZAxis?[1,0,3,2][a]:a,f=t.hasData(),p=i.title,m=i.labels,h=n.axisOffset;n=n.clipOffset;var _=[-1,1,1,-1][a],v=i.className,y,b=0,S=0,C=0;if(t.showAxis=y=f||i.showEmpty,t.staggerLines=t.horiz&&m.staggerLines||void 0,!t.axisGroup){var w=function(t,n,r){return u.g(t).attr({zIndex:r}).addClass(`highcharts-`+c.toLowerCase()+n+` `+(e.isRadial?`highcharts-radial-axis`+n+` `:``)+(v||``)).add(l)};t.gridGroup=w(`grid`,`-grid`,i.gridZIndex),t.axisGroup=w(`axis`,``,i.zIndex),t.labelGroup=w(`axis-labels`,`-labels`,m.zIndex)}if(f||t.isLinked?(s.forEach(function(e){t.generateTick(e)}),t.renderUnsquish(),t.reserveSpaceDefault=a===0||a===2||{1:`left`,3:`right`}[a]===t.labelAlign,k(m.reserveSpace,t.labelAlign===`center`||null,t.reserveSpaceDefault)&&s.forEach(function(e){C=Math.max(o[e].getLabelSize(),C)}),t.staggerLines&&(C*=t.staggerLines),t.labelOffset=C*(t.opposite?-1:1)):O(o,function(e,t){e.destroy(),delete o[t]}),p&&p.text&&!1!==p.enabled&&(t.addTitle(y),y&&!1!==p.reserveSpace)){t.titleOffset=b=t.axisTitle.getBBox()[r?`height`:`width`];var T=p.offset;S=g(T)?0:k(p.margin,r?5:10)}t.renderLine(),t.offset=_*k(i.offset,h[a]?h[a]+(i.margin||0):0),t.tickRotCorr=t.tickRotCorr||{x:0,y:0},p=a===0?-t.labelMetrics().h:a===2?t.tickRotCorr.y:0,f=Math.abs(C)+S,C&&(f=f-p+_*(r?k(m.y,t.tickRotCorr.y+8*_):m.x)),t.axisTitleMargin=k(T,f),t.getMaxLabelDimensions&&(t.maxLabelDimensions=t.getMaxLabelDimensions(o,s)),c!==`colorAxis`&&(r=this.tickSize(`tick`),h[a]=Math.max(h[a],(t.axisTitleMargin||0)+b+_*t.offset,f,s&&s.length&&r?r[0]+_*t.offset:0),i=!t.axisLine||i.offset?0:2*Math.floor(t.axisLine.strokeWidth()/2),n[d]=Math.max(n[d],i)),x(this,`afterGetOffset`)},e.prototype.getLinePath=function(e){var t=this.chart,n=this.opposite,r=this.offset,i=this.horiz,a=this.left+(n?this.width:0)+r;return r=t.chartHeight-this.bottom-(n?this.height:0)+r,n&&(e*=-1),t.renderer.crispLine([[`M`,i?this.left:a,i?r:this.top],[`L`,i?t.chartWidth-this.right:a,i?r:t.chartHeight-this.bottom]],e)},e.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}))},e.prototype.getTitlePosition=function(){var e=this.horiz,t=this.left,n=this.top,r=this.len,i=this.options.title,a=e?t:n,o=this.opposite,s=this.offset,c=i.x,l=i.y,u=this.axisTitle,d=this.chart.renderer.fontMetrics(i.style.fontSize,u);return u=Math.max(u.getBBox(null,0).height-d.h-1,0),r={low:a+(e?0:r),middle:a+r/2,high:a+(e?r:0)}[i.align],t=(e?n+this.height:t)+(e?1:-1)*(o?-1:1)*this.axisTitleMargin+[-u,u,d.f,-u][this.side],e={x:e?r+c:t+(o?this.width:0)+s+c,y:e?t+l-(o?this.height:0)+s:r+l},x(this,`afterGetTitlePosition`,{titlePosition:e}),e},e.prototype.renderMinorTick=function(e,t){var n=this.minorTicks;n[e]||(n[e]=new o(this,e,`minor`)),t&&n[e].isNew&&n[e].render(null,!0),n[e].render(null,!1,1)},e.prototype.renderTick=function(e,t,n){var r=this.ticks;(!this.isLinked||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(r[e]||(r[e]=new o(this,e)),n&&r[e].isNew&&r[e].render(t,!0,-1),r[e].render(t))},e.prototype.render=function(){var e=this,t=e.chart,n=e.logarithmic,r=e.options,i=e.isLinked,s=e.tickPositions,l=e.axisTitle,u=e.ticks,d=e.minorTicks,f=e.alternateBands,p=r.stackLabels,m=r.alternateGridColor,h=e.tickmarkOffset,g=e.axisLine,_=e.showAxis,v=c(t.renderer.globalAnimation),y,b;if(e.labelEdge.length=0,e.overlap=!1,[u,d,f].forEach(function(e){O(e,function(e){e.isActive=!1})}),e.hasData()||i){var S=e.chart.hasRendered&&e.old&&w(e.old.min);e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEac
2h(function(t){e.renderMinorTick(t,S)}),s.length&&(s.forEach(function(t,n){e.renderTick(t,n,S)}),h&&(e.min===0||e.single)&&(u[-1]||=new o(e,-1,null,!0),u[-1].render(-1))),m&&s.forEach(function(r,i){b=s[i+1]===void 0?e.max-h:s[i+1]+h,i%2==0&&r<e.max&&b<=e.max+(t.polar?-h:h)&&(f[r]||(f[r]=new a.PlotLineOrBand(e)),y=r+h,f[r].options={from:n?n.lin2log(y):y,to:n?n.lin2log(b):b,color:m,className:`highcharts-alternate-grid`},f[r].render(),f[r].isActive=!0)}),e._addedPlotLB||(e._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(function(t){e.addPlotBandOrLine(t)}))}[u,d,f].forEach(function(e){var n=[],r=v.duration;O(e,function(e,t){e.isActive||(e.render(t,!1,0),e.isActive=!1,n.push(t))}),N(function(){for(var t=n.length;t--;)e[n[t]]&&!e[n[t]].isActive&&(e[n[t]].destroy(),delete e[n[t]])},e!==f&&t.hasRendered&&r?r:0)}),g&&(g[g.isPlaced?`animate`:`attr`]({d:this.getLinePath(g.strokeWidth())}),g.isPlaced=!0,g[_?`show`:`hide`](_)),l&&_&&(r=e.getTitlePosition(),w(r.y)?(l[l.isNew?`attr`:`animate`](r),l.isNew=!1):(l.attr(`y`,-9999),l.isNew=!0)),p&&p.enabled&&e.stacking&&e.stacking.renderStackTotals(),e.old={len:e.len,max:e.max,min:e.min,transA:e.transA,userMax:e.userMax,userMin:e.userMin},e.isDirty=!1,x(this,`afterRender`)},e.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})},e.prototype.getKeepProps=function(){return this.keepProps||e.keepProps},e.prototype.destroy=function(e){var t=this,n=t.plotLinesAndBands,r=this.eventOptions;if(x(this,`destroy`,{keepEvents:e}),e||j(t),[t.ticks,t.minorTicks,t.alternateBands].forEach(function(e){_(e)}),n)for(e=n.length;e--;)n[e].destroy();for(var i in`axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar`.split(` `).forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),t.plotLinesAndBandsGroups)t.plotLinesAndBandsGroups[i]=t.plotLinesAndBandsGroups[i].destroy();O(t,function(e,n){t.getKeepProps().indexOf(n)===-1&&delete t[n]}),this.eventOptions=r},e.prototype.drawCrosshair=function(e,t){var r=this.crosshair,i=k(r&&r.snap,!0),a=this.chart,o,s=this.cross;if(x(this,`drawCrosshair`,{e,point:t}),e||=this.cross&&this.cross.e,r&&!1!==(g(t)||!i)){if(i?g(t)&&(o=k(this.coll===`colorAxis`?null:t.crosshairPos,this.isXAxis?t.plotX:this.len-t.plotY)):o=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),g(o)){var c={value:t&&(this.isXAxis?t.x:k(t.stackY,t.y)),translatedValue:o};a.polar&&b(c,{isCrosshair:!0,chartX:e&&e.chartX,chartY:e&&e.chartY,point:t}),c=this.getPlotLinePath(c)||null}if(!g(c)){this.hideCrosshair();return}
2i=this.categories&&!this.isRadial,s||(this.cross=s=a.renderer.path().addClass(`highcharts-crosshair highcharts-crosshair-`+(i?`category `:`thin `)+(r.className||``)).attr({zIndex:k(r.zIndex,2)}).add(),a.styledMode||(s.attr({stroke:r.color||(i?n.parse(`#ccd6eb`).setOpacity(.25).get():`#cccccc`),"stroke-width":k(r.width,1)}).css({"pointer-events":`none`}),r.dashStyle&&s.attr({dashstyle:r.dashStyle}))),s.show().attr({d:c}),i&&!r.width&&s.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();x(this,`afterDrawCrosshair`,{e,point:t})},e.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),x(this,`afterHideCrosshair`)},e.prototype.hasVerticalPanning=function(){var e=this.chart.options.chart.panning;return!!(e&&e.enabled&&/y/.test(e.type))},e.prototype.validatePositiveValue=function(e){return w(e)&&0<e},e.prototype.update=function(e,t){var n=this.chart;e=E(this.userOptions,e),this.destroy(!0),this.init(n,e),n.isDirtyBox=!0,k(t,!0)&&n.redraw()},e.prototype.remove=function(e){for(var t=this.chart,n=this.coll,r=this.series,i=r.length;i--;)r[i]&&r[i].remove(!1);v(t.axes,this),v(t[n],this),t[n].forEach(function(e,t){e.options.index=e.userOptions.index=t}),this.destroy(),t.isDirtyBox=!0,k(e,!0)&&t.redraw()},e.prototype.setTitle=function(e,t){this.update({title:e},t)},e.prototype.setCategories=function(e,t){this.update({categories:e},t)},e.defaultOptions=t.defaultXAxisOptions,e.keepProps=`extKey hcEvents names series userMax userMin`.split(` `),e}(),e}),t(n,`Core/Axis/DateTimeAxis.js`,[n[`Core/Utilities.js`]],function(e){var t=e.addEvent,n=e.getMagnitude,r=e.normalizeTickInterval,i=e.timeUnits,a;return(function(e){function a(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function o(e){e.userOptions.type===`datetime`?this.dateTime||=new c(this):this.dateTime=void 0}var s=[];e.compose=function(e){return s.indexOf(e)===-1&&(s.push(e),e.keepProps.push(`dateTime`),e.prototype.getTimeTicks=a,t(e,`init`,o)),e};var c=function(){function e(e){this.axis=e}return e.prototype.normalizeTimeTickInterval=function(e,t){var a=t||[[`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]];t=a[a.length-1];for(var o=i[t[0]],s=t[1],c=0;c<a.length&&(t=a[c],o=i[t[0]],s=t[1],!(a[c+1]&&e<=(o*s[s.length-1]+i[a[c+1][0]])/2));c++);return o===i.year&&e<5*o&&(s=[1,2,5]),e=r(e/o,s,t[0]===`year`?Math.max(n(e/o),1):1),{unitRange:o,count:e,unitName:t[0]}},e.prototype.getXDateFormat=function(e,t){var n=this.axis;return n.closestPointRange?n.chart.time.getDateFormat(n.closestPointRange,e,n.options.startOfWeek,t)||t.year:t.day},e}();e.Additions=c})(a||={}),a}),t(n,`Core/Axis/LogarithmicAxis.js`,[n[`Core/Utilities.js`]],function(e){var t=e.addEvent,n=e.getMagnitude,r=e.normalizeTickInterval,i=e.pick,a;return(function(e){function a(e){var t=this.logarithmic;e.userOptions.type===`logarithmic`?t||(this.logarithmic=new c(this)):this.logarithmic=void 0}function o(){var e=this.logarithmic;e&&(this.lin2val=function(t){return e.lin2log(t)},this.val2lin=function(t){return e.log2lin(t)})}var s=[];e.compose=function(e){return s.indexOf(e)===-1&&(s.push(e),e.keepProps.push(`logarithmic`),t(e,`init`,a),t(e,`afterInit`,o)),e};var c=function(){function e(e){this.axis=e}return e.prototype.getLogTickPositions=function(e,t,a,o){var s=this.axis,c=s.len,l=s.options,u=[];if(o||(this.minorAutoInterval=void 0),.5<=e)e=Math.round(e),u=s.getLinearTickPositions(e,t,a);else if(.08<=e){var d=Math.floor(t),f,p=l=void 0;for(c=.3<e?[1,2,4]:.15<e?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];d<a+1&&!p;d++){var m=c.length;for(f=0;f<m&&!p;f++){var h=this.log2lin(this.lin2log(d)*c[f]);h>t&&(!o||l<=a)&&l!==void 0&&u.push(l),l>a&&(p=!0),l=h}}}else t=this.lin2log(t),a=this.lin2log(a),e=o?s.getMinorTickInterval():l.tickInterval,e=i(e===`auto`?null:e,this.minorAutoInterval,l.tickPixelInterval/(o?5:1)*(a-t)/((o?c/s.tickPositions.length:c)||1)),e=r(e,void 0,n(e)),u=s.getLinearTickPositions(e,t,a).map(this.log2lin),o||(this.minorAutoInterval=e/5);return o||(s.tickInterval=e),u},e.prototype.lin2log=function(e){return 10**e},e.prototype.log2lin=function(e){return Math.log(e)/Math.LN10},e}();e.Additions=c})(a||={}),a}),t(n,`Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js`,[n[`Core/Utilities.js`]],function(e){var t=e.erase,n=e.extend,r
2=e.isNumber,i;return(function(e){var i=[],a;e.compose=function(e,t){return a||=e,i.indexOf(t)===-1&&(i.push(t),n(t.prototype,o.prototype)),t};var o=function(){function e(){}return e.prototype.getPlotBandPath=function(e,t,n){n===void 0&&(n=this.options);var i=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),a=[],o=this.horiz;if(t=!r(this.min)||!r(this.max)||e<this.min&&t<this.min||e>this.max&&t>this.max,e=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),n=1,e&&i){if(t){var s=e.toString()===i.toString();n=0}for(t=0;t<e.length;t+=2){var c=e[t],l=e[t+1],u=i[t],d=i[t+1];c[0]!==`M`&&c[0]!==`L`||l[0]!==`M`&&l[0]!==`L`||u[0]!==`M`&&u[0]!==`L`||d[0]!==`M`&&d[0]!==`L`||(o&&u[1]===c[1]?(u[1]+=n,d[1]+=n):o||u[2]!==c[2]||(u[2]+=n,d[2]+=n),a.push([`M`,c[1],c[2]],[`L`,l[1],l[2]],[`L`,d[1],d[2]],[`L`,u[1],u[2]],[`Z`])),a.isFlat=s}}return a},e.prototype.addPlotBand=function(e){return this.addPlotBandOrLine(e,`plotBands`)},e.prototype.addPlotLine=function(e){return this.addPlotBandOrLine(e,`plotLines`)},e.prototype.addPlotBandOrLine=function(e,t){var n=this,r=this.userOptions,i=new a(this,e);if(this.visible&&(i=i.render()),i){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(function(e){n.addPlotBandOrLine(e)})),t){var o=r[t]||[];o.push(e),r[t]=o}this.plotLinesAndBands.push(i)}return i},e.prototype.removePlotBandOrLine=function(e){var n=this.plotLinesAndBands,r=this.options,i=this.userOptions;if(n){for(var a=n.length;a--;)n[a].id===e&&n[a].destroy();[r.plotLines||[],i.plotLines||[],r.plotBands||[],i.plotBands||[]].forEach(function(n){for(a=n.length;a--;)(n[a]||{}).id===e&&t(n,n[a])})}},e.prototype.removePlotBand=function(e){this.removePlotBandOrLine(e)},e.prototype.removePlotLine=function(e){this.removePlotBandOrLine(e)},e}()})(i||={}),i}),t(n,`Core/Axis/PlotLineOrBand/PlotLineOrBand.js`,[n[`Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js`],n[`Core/Utilities.js`]],function(e,t){var n=t.arrayMax,r=t.arrayMin,i=t.defined,a=t.destroyObjectProperties,o=t.erase,s=t.fireEvent,c=t.merge,l=t.objectEach,u=t.pick;return t=function(){function t(e,t){this.axis=e,t&&(this.options=t,this.id=t.id)}return t.compose=function(n){return e.compose(t,n)},t.prototype.render=function(){s(this,`render`);var e=this,t=e.axis,n=t.horiz,r=t.logarithmic,a=e.options,o=a.color,d=u(a.zIndex,0),f=a.events,p={},m=t.chart.renderer,h=a.label,g=e.label,_=a.to,v=a.from,y=a.value,b=e.svgElem,x=[],S=i(v)&&i(_);x=i(y);var C=!b,w={class:`highcharts-plot-`+(S?`band `:`line `)+(a.className||``)},T=S?`bands`:`lines`;if(r&&(v=r.log2lin(v),_=r.log2lin(_),y=r.log2lin(y)),t.chart.styledMode||(x?(w.stroke=o||`#999999`,w[`stroke-width`]=u(a.width,1),a.dashStyle&&(w.dashstyle=a.dashStyle)):S&&(w.fill=o||`#e6ebf5`,a.borderWidth&&(w.stroke=a.borderColor,w[`stroke-width`]=a.borderWidth))),p.zIndex=d,T+=`-`+d,(r=t.plotLinesAndBandsGroups[T])||(t.plotLinesAndBandsGroups[T]=r=m.g(`plot-`+T).attr(p).add()),C&&(e.svgElem=b=m.path().attr(w).add(r)),x)x=t.getPlotLinePath({value:y,lineWidth:b.strokeWidth(),acrossPanes:a.acrossPanes});else if(S)x=t.getPlotBandPath(v,_,a);else return;return!e.eventsAdded&&f&&(l(f,function(t,n){b.on(n,function(t){f[n].apply(e,[t])})}),e.eventsAdded=!0),(C||!b.d)&&x&&x.length?b.attr({d:x}):b&&(x?(b.show(!0),b.animate({d:x})):b.d&&(b.hide(),g&&(e.label=g=g.destroy()))),h&&(i(h.text)||i(h.formatter))&&x&&x.length&&0<t.width&&0<t.height&&!x.isFlat?(h=c({align:n&&S&&`center`,x:n?!S&&4:10,verticalAlign:!n&&S&&`middle`,y:n?S?16:10:S?6:-4,rotation:n&&!S&&90},h),this.renderLabel(h,x,S,d)):g&&g.hide(),e},t.prototype.renderLabel=function(e,t,i,a){var o=this.axis,s=o.chart.renderer,l=this.label;l||(this.label=l=s.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:`highcharts-plot-`+(i?`band`:`line`)+`-label `+(e.className||``),zIndex:a}).add(),o.chart.styledMode||l.css(c({textOverflow:`ellipsis`},e.style))),a=t.xBounds||[t[0][1],t[1][1],i?t[2][1]:t[0][1]],t=t.yBounds||[t[0][2],t[1][2],i?t[2][2]:t[0][2]],i=r(a),s=r(t),l.align(e,!1,{x:i,y:s,width:n(a)-i,height:n(t)-s}),l.alignValue&&l.alignValue!==`left`||l.css({width:(l.rotation===90?o.height-(l.alignAttr.y-o.top):o.width-(l.alignAttr.x-o.left))+`px`}),l.show(!0)},t.prototype.getLabelText=function(e){return i(e.formatter)?e.formatter.call(this):e.text},t.prototype.destroy=function(){o(this.axis.plotLinesAndBands,this),delete this.axis,a(this)},t}(),t}),t(n,`Core/Tooltip.js`,[n[`Core/FormatUtilities.js`],n[`Core/Globals.js`],n[`Core/Renderer/RendererUtilities.js`],n[`Core/Renderer/RendererRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=e.format,o=t.doc,s=n.distribute,c=i.addEvent,l=i.clamp,u=i.css,d=i.defined,f=i.discardElement,p=i.extend,m=i.fireEvent,h=i.isArray,g=i.isNumber,_=i.isString,v=i.merge,y=i.pick,b=i.splat,x=i.syncTimeout;return e=function(){function e(e,t){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=e,this.init(e,t)}return e.prototype.applyFilter=function(){var e=this.chart;e.renderer.definition({tagName:`filter`,attributes:{id:`drop-shadow-`+e.index,opacity:.5},children:[{tagName:`feGaussianBlur`,attributes:{in:`SourceAlpha`,stdDeviation:1}},{tagName:`feOffset`,attributes:{dx:1,dy:1}}
2,{tagName:`feComponentTransfer`,children:[{tagName:`feFuncA`,attributes:{type:`linear`,slope:.3}}]},{tagName:`feMerge`,children:[{tagName:`feMergeNode`},{tagName:`feMergeNode`,attributes:{in:`SourceGraphic`}}]}]})},e.prototype.bodyFormatter=function(e){return e.map(function(e){var t=e.series.tooltipOptions;return(t[(e.point.formatPrefix||`point`)+`Formatter`]||e.point.tooltipFormatter).call(e.point,t[(e.point.formatPrefix||`point`)+`Format`]||``)})},e.prototype.cleanSplit=function(e){this.chart.series.forEach(function(t){var n=t&&t.tt;n&&(!n.isActive||e?t.tt=n.destroy():n.isActive=!1)})},e.prototype.defaultFormatter=function(e){var t=this.points||b(this),n=[e.tooltipFooterHeaderFormatter(t[0])];return n=n.concat(e.bodyFormatter(t)),n.push(e.tooltipFooterHeaderFormatter(t[0],!0)),n},e.prototype.destroy=function(){this.label&&=this.label.destroy(),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),f(this.container)),i.clearTimeout(this.hideTimer),i.clearTimeout(this.tooltipTimeout)},e.prototype.getAnchor=function(e,t){var n=this.chart,r=n.pointer,i=n.inverted,a=n.plotTop,o=n.plotLeft,s,c,l=0,u=0;return e=b(e),this.followPointer&&t?(t.chartX===void 0&&(t=r.normalize(t)),r=[t.chartX-o,t.chartY-a]):e[0].tooltipPos?r=e[0].tooltipPos:(e.forEach(function(e){s=e.series.yAxis,c=e.series.xAxis,l+=e.plotX||0,u+=e.plotLow?(e.plotLow+(e.plotHigh||0))/2:e.plotY||0,c&&s&&(i?(l+=a+n.plotHeight-c.len-c.pos,u+=o+n.plotWidth-s.len-s.pos):(l+=c.pos-o,u+=s.pos-a))}),l/=e.length,u/=e.length,r=[i?n.plotWidth-u:l,i?n.plotHeight-l:u],this.shared&&1<e.length&&t&&(i?r[0]=t.chartX-o:r[1]=t.chartY-a)),r.map(Math.round)},e.prototype.getLabel=function(){var e=this,n=this.chart.styledMode,i=this.options,a=this.split&&this.allowShared,o=`tooltip`+(d(i.className)?` `+i.className:``),s=i.style.pointerEvents||(!this.followPointer&&i.stickOnContact?`auto`:`none`),l=function(){e.inContact=!0},f=function(t){var n=e.chart.hoverSeries;e.inContact=e.shouldStickOnContact()&&e.chart.pointer.inClass(t.relatedTarget,`highcharts-tooltip`),!e.inContact&&n&&n.onMouseOut&&n.onMouseOut()},p,m=this.chart.renderer;if(e.label){var h=!e.label.hasClass(`highcharts-label`);(a&&!h||!a&&h)&&e.destroy()}if(!this.label){if(this.outside){h=this.chart.options.chart.style;var g=r.getRendererType();this.container=p=t.doc.createElement(`div`),p.className=`highcharts-tooltip-container`,u(p,{position:`absolute`,top:`1px`,pointerEvents:s,zIndex:Math.max(this.options.style.zIndex||0,(h&&h.zIndex||0)+3)}),c(p,`mouseenter`,l),c(p,`mouseleave`,f),t.doc.body.appendChild(p),this.renderer=m=new g(p,0,0,h,void 0,void 0,m.styledMode)}if(a?this.label=m.g(o):(this.label=m.label(``,0,0,i.shape,void 0,void 0,i.useHTML,void 0,o).attr({padding:i.padding,r:i.borderRadius}),n||this.label.attr({fill:i.backgroundColor,"stroke-width":i.borderWidth}).css(i.style).css({pointerEvents:s}).shadow(i.shadow)),n&&i.shadow&&(this.applyFilter(),this.label.attr({filter:`url(#drop-shadow-`+this.chart.index+`)`})),e.outside&&!e.split){var _=this.label,v=_.xSetter,y=_.ySetter;_.xSetter=function(t){v.call(_,e.distance),p.style.left=t+`px`},_.ySetter=function(t){y.call(_,e.distance),p.style.top=t+`px`}}this.label.on(`mouseenter`,l).on(`mouseleave`,f).attr({zIndex:8}).add()}return this.label},e.prototype.getPosition=function(e,t,n){var r=this.chart,i=this.distance,a={},s=r.inverted&&n.h||0,c=this.outside,l=c?o.documentElement.clientWidth-2*i:r.chartWidth,u=c?Math.max(o.body.scrollHeight,o.documentElement.scrollHeight,o.body.offsetHeight,o.documentElement.offsetHeight,o.documentElement.clientHeight):r.chartHeight,d=r.pointer.getChartPosition(),f=function(a){var o=a===`x`;return[a,o?l:u,o?e:t].concat(c?[o?e*d.scaleX:t*d.scaleY,o?d.left-i+(n.plotX+r.plotLeft)*d.scaleX:d.top-i+(n.plotY+r.plotTop)*d.scaleY,0,o?l:u]:[o?e:t,o?n.plotX+r.plotLeft:n.plotY+r.plotTop,o?r.plotLeft:r.plotTop,o?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},p=f(`y`),m=f(`x`),h;f=!!n.negative,!r.polar&&r.hoverSeries&&r.hoverSeries.yAxis&&r.hoverSeries.yAxis.reversed&&(f=!f);var g=!this.followPointer&&y(n.ttBelow,!r.inverted===f),_=function(e,t,n,r,o,l,u){var f=c?e===`y`?i*d.scaleY:i*d.scaleX:i,p=(n-r)/2,m=r<o-i,h=o+i+r<t,_=o-f-n+p;if(o=o+f-p,g&&h)a[e]=o;else if(!g&&m)a[e]=_;else if(m)a[e]=Math.min(u-r,0>_-s?_:_-s);else if(h)a[e]=Math.max(l,o+s+n>t?o:o+s);else return!1},v=function(e,t,n,r,o){var s;return o<i||o>t-i?s=!1:a[e]=o<n/2?1:o>t-r/2?t-r-2:o-n/2,s},b=function(e){var t=p;p=m,m=t,h=e},x=function(){!1===_.apply(0,p)?h?a.x=a.y=0:(b(!0),x()):!1!==v.apply(0,m)||h||(b(!0),x())};return(r.inverted||1<this.len)&&b(),x(),a},e.prototype.hide=function(e){var t=this;i.clearTimeout(this.hideTimer),e=y(e,this.options.hideDelay),this.isHidden||(this.hideTimer=x(function(){t.getLabel().fadeOut(e&&void 0),t.isHidden=!0},e))},e.prototype.init=function(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=y(t.outside,!(!e.scrollablePixelsX&&!e.scrollablePixelsY))},e.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)},e.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)},e.prototype.move=function(e,t,n,r){var a=this,o=a.now,s=!1!==a.options.animation&&!a.isHidden&&(1<Math.abs(e-o.x)||1<Math.abs(t-o.y)),c=a.followPointer||1<a.len;p(o,{x:s?(2*o.x+e)/3:e,y:s?(o.y+t)/2:t,anchorX:c?void 0:s?(2*o.anchorX+n)/3:n,anchorY:c?void 0:s?(o.anchorY+r)/2:r}),a.getLabel().attr(o),a.drawTracker(),s&&(i.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){a&&a.move(e,t,n,r)},32))},e.prototype.refresh=function(e,t){var n=this.chart,r=this.options,a=b(e),o=a[0],s=[],c=r.formatter||this.defaultFormatter,l=this.shared,u=n.styledMode,d={};if(r.enabled){i.clearTimeout(this.hideTimer),this.allowShared=!(!h(e)&&e.series&&e.series.noSharedTooltip),this.followPointer=!this.split&&o.series.tooltipOptions.followPointer,e=this.getAnchor(e,t);var f=e[0],p=e[1];if(l&&this.allowShared?(n.pointer.applyInactiveState(a),a.forEach(function(e){e.setState(`hover`),s.push(e.getLabelConfig())}),d={x:o.category,y:o.y}
2,d.points=s):d=o.getLabelConfig(),this.len=s.length,c=c.call(d,this),l=o.series,this.distance=y(l.tooltipOptions.distance,16),!1===c)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(c,a);else{var g=f,_=p;if(t&&n.pointer.isDirectTouch&&(g=t.chartX-n.plotLeft,_=t.chartY-n.plotTop),n.polar||!1===l.options.clip||a.some(function(e){return e.series.shouldShowTooltip(g,_)}))t=this.getLabel(),r.style.width&&!u||t.css({width:this.chart.spacingBox.width+`px`}),t.attr({text:c&&c.join?c.join(``):c}),t.removeClass(/highcharts-color-[\d]+/g).addClass(`highcharts-color-`+y(o.colorIndex,l.colorIndex)),u||t.attr({stroke:r.borderColor||o.color||l.color||`#666666`}),this.updatePosition({plotX:f,plotY:p,negative:o.negative,ttBelow:o.ttBelow,h:e[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}m(this,`refresh`)}},e.prototype.renderSplit=function(e,t){function n(e,t,n,i,a){return a===void 0&&(a=!0),n?(t=k?0:N,e=l(e-i/2,E.left,E.right-i-(r.outside?A:0))):(t-=j,e=a?e-i-C:e+C,e=l(e,a?e:E.left,E.right)),{x:e,y:t}}var r=this,i=r.chart,a=r.chart,c=a.chartWidth,u=a.chartHeight,d=a.plotHeight,f=a.plotLeft,m=a.plotTop,h=a.pointer,g=a.scrollablePixelsY;g=g===void 0?0:g;var v=a.scrollablePixelsX,b=a.scrollingContainer;b=b===void 0?{scrollLeft:0,scrollTop:0}:b;var x=b.scrollLeft;b=b.scrollTop;var S=a.styledMode,C=r.distance,w=r.options,T=r.options.positioner,E=r.outside&&typeof v!=`number`?o.documentElement.getBoundingClientRect():{left:x,right:x+c,top:b,bottom:b+u},D=r.getLabel(),O=this.renderer||i.renderer,k=!(!i.xAxis[0]||!i.xAxis[0].opposite);i=h.getChartPosition();var A=i.left;i=i.top;var j=m+b,M=0,N=d-g;_(e)&&(e=[!1,e]),e=e.slice(0,t.length+1).reduce(function(e,i,a){if(!1!==i&&i!==``){a=t[a-1]||{isHeader:!0,plotX:t[0].plotX,plotY:d,series:{}};var o=a.isHeader,s=o?r:a.series;i=i.toString();var c=s.tt,u=a.isHeader,p=a.series,h=`highcharts-color-`+y(a.colorIndex,p.colorIndex,`none`);if(c||=(c={padding:w.padding,r:w.borderRadius},S||(c.fill=w.backgroundColor,c[`stroke-width`]=w.borderWidth),O.label(``,0,0,w[u?`headerShape`:`shape`],void 0,void 0,w.useHTML).addClass((u?`highcharts-tooltip-header `:``)+`highcharts-tooltip-box `+h).attr(c).add(D)),c.isActive=!0,c.attr({text:i}),S||c.css(w.style).shadow(w.shadow).attr({stroke:w.borderColor||a.color||p.color||`#333333`}),s=s.tt=c,u=s.getBBox(),i=u.width+s.strokeWidth(),o&&(M=u.height,N+=M,k&&(j-=M)),p=a.plotX,p=p===void 0?0:p,h=a.plotY,h=h===void 0?0:h,c=a.series,a.isHeader){p=f+p;var g=m+d/2}else{var _=c.xAxis,v=c.yAxis;p=_.pos+l(p,-C,_.len+C),c.shouldShowTooltip(0,v.pos-m+h,{ignoreX:!0})&&(g=v.pos+h)}p=l(p,E.left-C,E.right+C),typeof g==`number`?(u=u.height+1,h=T?T.call(r,i,u,a):n(p,g,o,i),e.push({align:T?0:void 0,anchorX:p,anchorY:g,boxWidth:i,point:a,rank:y(h.rank,+!!o),size:u,target:h.y,tt:s,x:h.x})):s.isActive=!1}return e},[]),!T&&e.some(function(e){var t=(r.outside?A:0)+e.anchorX;return t<E.left&&t+e.boxWidth<E.right||t<A-E.left+e.boxWidth&&E.right-t>t})&&(e=e.map(function(e){var t=n(e.anchorX,e.anchorY,e.point.isHeader,e.boxWidth,!1);return p(e,{target:t.y,x:t.x})})),r.cleanSplit(),s(e,N);var P=A,F=A;e.forEach(function(e){var t=e.x,n=e.boxWidth;e=e.isHeader,e||(r.outside&&A+t<P&&(P=A+t),!e&&r.outside&&P+n>F&&(F=A+t))}),e.forEach(function(e){var t=e.x,n=e.anchorX,i=e.pos,a=e.point.isHeader;if(i={visibility:i===void 0?`hidden`:`inherit`,x:t,y:i+j,anchorX:n,anchorY:e.anchorY},r.outside&&t<n){var o=A-P;0<o&&(a||(i.x=t+o,i.anchorX=n+o),a&&(i.x=(F-P)/2,i.anchorX=n+o))}e.tt.attr(i)}),e=r.container,g=r.renderer,r.outside&&e&&g&&(a=D.getBBox(),g.setSize(a.width+a.x,a.height+a.y,!1),e.style.left=P+`px`,e.style.top=i+`px`)},e.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var e=this.chart,t=this.label,n=this.shared?e.hoverPoints:e.hoverPoint;if(t&&n){var r={x:0,y:0,width:0,height:0};n=this.getAnchor(n);var i=t.getBBox();n[0]+=e.plotLeft-t.translateX,n[1]+=e.plotTop-t.translateY,r.x=Math.min(0,n[0]),r.y=Math.min(0,n[1]),r.width=0>n[0]?Math.max(Math.abs(n[0]),i.width-n[0]):Math.max(Math.abs(n[0]),i.width),r.height=0>n[1]?Math.max(Math.abs(n[1]),i.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),i.height),this.tracker?this.tracker.attr(r):(this.tracker=t.renderer.rect(r).addClass(`highcharts-tracker`).add(t),e.styledMode||this.tracker.attr({fill:`rgba(0,0,0,0)`}))}}},e.prototype.styledModeFormat=function(e){return e.replace(`style="font-size: 10px"`,`class="highcharts-header"`).replace(/style="color:{(point|series)\.color}"/g,`class="highcharts-color-{$1.colorIndex}"`)},e.prototype.tooltipFooterHeaderFormatter=function(e,t){var n=e.series,r=n.tooltipOptions,i=n.xAxis,o=i&&i.dateTime;i={isFooter:t,labelConfig:e};var s=r.xDateFormat,c=r[t?`footerFormat`:`headerFormat`];
2return m(this,`headerFormatter`,i,function(t){o&&!s&&g(e.key)&&(s=o.getXDateFormat(e.key,r.dateTimeLabelFormats)),o&&s&&(e.point&&e.point.tooltipDateKeys||[`key`]).forEach(function(e){c=c.replace(`{point.`+e+`}`,`{point.`+e+`:`+s+`}`)}),n.chart.styledMode&&(c=this.styledModeFormat(c)),t.text=a(c,{point:e,series:n},this.chart)}),i.text},e.prototype.update=function(e){this.destroy(),v(!0,this.chart.options.tooltip.userOptions,e),this.init(this.chart,v(!0,this.options,e))},e.prototype.updatePosition=function(e){var t=this.chart,n=this.options,r=t.pointer,i=this.getLabel();r=r.getChartPosition();var a=(n.positioner||this.getPosition).call(this,i.width,i.height,e),o=e.plotX+t.plotLeft;e=e.plotY+t.plotTop,this.outside&&(n=n.borderWidth+2*this.distance,this.renderer.setSize(i.width+n,i.height+n,!1),(r.scaleX!==1||r.scaleY!==1)&&(u(this.container,{transform:`scale(`+r.scaleX+`, `+r.scaleY+`)`}),o*=r.scaleX,e*=r.scaleY),o+=r.left-a.x,e+=r.top-a.y),this.move(Math.round(a.x),Math.round(a.y||0),o,e)},e}(),e}),t(n,`Core/Series/Point.js`,[n[`Core/Renderer/HTML/AST.js`],n[`Core/Animation/AnimationUtilities.js`],n[`Core/DefaultOptions.js`],n[`Core/FormatUtilities.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=t.animObject,o=n.defaultOptions,s=r.format,c=i.addEvent,l=i.defined,u=i.erase,d=i.extend,f=i.fireEvent,p=i.getNestedProperty,m=i.isArray,h=i.isFunction,g=i.isNumber,_=i.isObject,v=i.merge,y=i.objectEach,b=i.pick,x=i.syncTimeout,S=i.removeEvent,C=i.uniqueKey;return t=function(){function t(){this.colorIndex=this.category=void 0,this.formatPrefix=`point`,this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return t.prototype.animateBeforeDestroy=function(){var e=this,t={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach(function(n){e[n]=e[n].animate(n===`dataLabel`?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:t)}),n.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(d({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})},t.prototype.applyOptions=function(e,n){var r=this.series,i=r.options.pointValKey||r.pointValKey;return e=t.prototype.optionsToObject.call(this,e),d(this,e),this.options=this.options?d(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,i&&(this.y=t.prototype.getNestedProperty.call(this,i)),this.formatPrefix=(this.isNull=b(this.isValid&&!this.isValid(),this.x===null||!g(this.y)))?`null`:`point`,this.selected&&(this.state=`select`),`name`in this&&n===void 0&&r.xAxis&&r.xAxis.hasNames&&(this.x=r.xAxis.nameToX(this)),this.x===void 0&&r?this.x=n===void 0?r.autoIncrement():n:g(e.x)&&r.options.relativeXValue&&(this.x=r.autoIncrement(e.x)),this},t.prototype.destroy=function(){function e(){for(s in(t.graphic||t.dataLabel||t.dataLabels)&&(S(t),t.destroyElements()),t)t[s]=null}var t=this,n=t.series,r=n.chart;n=n.options.dataSorting;var i=r.hoverPoints,o=a(t.series.chart.renderer.globalAnimation),s;t.legendItem&&r.legend.destroyItem(t),i&&(t.setState(),u(i,t),i.length||(r.hoverPoints=null)),t===r.hoverPoint&&t.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),x(e,o.duration)):e(),r.pointCount--},t.prototype.destroyElements=function(e){var t=this;e=t.getGraphicalProps(e),e.singular.forEach(function(e){t[e]=t[e].destroy()}),e.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.destroy()}),delete t[e]})},t.prototype.firePointEvent=function(e,t,n){var r=this,i=this.series.options;(i.point.events[e]||r.options&&r.options.events&&r.options.events[e])&&r.importEvents(),e===`click`&&i.allowPointSelect&&(n=function(e){r.select&&r.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),f(r,e,t,n)},t.prototype.getClassName=function(){return`highcharts-point`+(this.selected?` highcharts-point-select`:``)+(this.negative?` highcharts-negative`:``)+(this.isNull?` highcharts-null-point`:``)+(this.colorIndex===void 0?``:` 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(e){var t=this,n=[],r={singular:[],plural:[]},i;for(e||={graphic:1,dataLabel:1},e.graphic&&n.push(`graphic`,`upperGraphic`,`shadowGroup`),e.dataLabel&&n.push(`dataLabel`,`dataLabelUpper`,`connector`),i=n.length;i--;){var a=n[i];t[a]&&r.singular.push(a)}return[`dataLabel`,`connector`].forEach(function(n){var i=n+`s`;e[n]&&t[i]&&r.plural.push(i)}),r},t.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},t.prototype.getNestedProperty=function(e){if(e)return e.indexOf(`custom.`)===0?p(e,this.options):this[e]}
2,t.prototype.getZone=function(){var e=this.series,t=e.zones;e=e.zoneAxis||`y`;var n,r=0;for(n=t[r];this[e]>=n.value;)n=t[++r];return this.nonZonedColor||=this.color,this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.init=function(e,t,n){return this.series=e,this.applyOptions(t,n),this.id=l(this.id)?this.id:C(),this.resolveColor(),e.chart.pointCount++,f(this,`afterInit`),this},t.prototype.optionsToObject=function(e){var n=this.series,r=n.options.keys,i=r||n.pointArrayMap||[`y`],a=i.length,o={},s=0,c=0;if(g(e)||e===null)o[i[0]]=e;else if(m(e))for(!r&&e.length>a&&(n=typeof e[0],n===`string`?o.name=e[0]:n===`number`&&(o.x=e[0]),s++);c<a;)r&&e[s]===void 0||(0<i[c].indexOf(`.`)?t.prototype.setNestedProperty(o,e[s],i[c]):o[i[c]]=e[s]),s++,c++;else typeof e==`object`&&(o=e,e.dataLabels&&(n._hasPointLabels=!0),e.marker&&(n._hasPointMarkers=!0));return o},t.prototype.resolveColor=function(){var e=this.series,t=e.chart.styledMode,n=e.chart.options.chart.colorCount;if(delete this.nonZonedColor,e.options.colorByPoint){if(!t){n=e.options.colors||e.chart.options.colors;var r=n[e.colorCounter];n=n.length}t=e.colorCounter,e.colorCounter++,e.colorCounter===n&&(e.colorCounter=0)}else t||(r=e.color),t=e.colorIndex;this.colorIndex=b(this.options.colorIndex,t),this.color=b(this.options.color,r)},t.prototype.setNestedProperty=function(e,t,n){return n.split(`.`).reduce(function(e,n,r,i){return e[n]=i.length-1===r?t:_(e[n],!0)?e[n]:{},e[n]},e),e},t.prototype.tooltipFormatter=function(e){var t=this.series,n=t.tooltipOptions,r=b(n.valueDecimals,``),i=n.valuePrefix||``,a=n.valueSuffix||``;return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||[`y`]).forEach(function(t){t=`{point.`+t,(i||a)&&(e=e.replace(RegExp(t+`}`,`g`),i+t+`}`+a)),e=e.replace(RegExp(t+`}`,`g`),t+`:,.`+r+`f}`)}),s(e,{point:this,series:this.series},t.chart)},t.prototype.update=function(e,t,n,r){function i(){a.applyOptions(e);var r=s&&a.hasDummyGraphic;r=a.y===null?!r:r,s&&r&&(a.graphic=s.destroy(),delete a.hasDummyGraphic),_(e,!0)&&(s&&s.element&&e&&e.marker&&e.marker.symbol!==void 0&&(a.graphic=s.destroy()),e&&e.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&=a.connector.destroy()),u=a.index,o.updateParallelArrays(a,u),l.data[u]=_(l.data[u],!0)||_(e,!0)?a.options:b(e,l.data[u]),o.isDirty=o.isDirtyData=!0,!o.fixedBox&&o.hasCartesianSeries&&(c.isDirtyBox=!0),l.legendType===`point`&&(c.isDirtyLegend=!0),t&&c.redraw(n)}var a=this,o=a.series,s=a.graphic,c=o.chart,l=o.options,u;t=b(t,!0),!1===r?i():a.firePointEvent(`update`,{options:e},i)},t.prototype.remove=function(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)},t.prototype.select=function(e,t){var n=this,r=n.series,i=r.chart;this.selectedStaging=e=b(e,!n.selected),n.firePointEvent(e?`select`:`unselect`,{accumulate:t},function(){n.selected=n.options.selected=e,r.options.data[r.data.indexOf(n)]=n.options,n.setState(e&&`select`),t||i.getSelectedPoints().forEac
2h(function(e){var t=e.series;e.selected&&e!==n&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(i.hoverPoints&&t.options.inactiveOtherPoints?`inactive`:``),e.firePointEvent(`unselect`))})}),delete this.selectedStaging},t.prototype.onMouseOver=function(e){var t=this.series.chart,n=t.pointer;e=e?n.normalize(e):n.getChartCoordinatesFromPoint(this,t.inverted),n.runPointActions(e,this)},t.prototype.onMouseOut=function(){var e=this.series.chart;this.firePointEvent(`mouseOut`),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null},t.prototype.importEvents=function(){if(!this.hasImportedEvents){var e=this,t=v(e.series.options.point,e.options).events;e.events=t,y(t,function(t,n){h(t)&&c(e,n,t)}),this.hasImportedEvents=!0}},t.prototype.setState=function(t,n){var r=this.series,i=this.state,a=r.options.states[t||`normal`]||{},s=o.plotOptions[r.type].marker&&r.options.marker,c=s&&!1===s.enabled,l=s&&s.states&&s.states[t||`normal`]||{},u=!1===l.enabled,p=this.marker||{},m=r.chart,h=s&&r.markerAttribs,_=r.halo,v,y=r.stateMarkerGraphic;if(t||=``,!(t===this.state&&!n||this.selected&&t!==`select`||!1===a.enabled||t&&(u||c&&!1===l.enabled)||t&&p.states&&p.states[t]&&!1===p.states[t].enabled)){if(this.state=t,h&&(v=r.markerAttribs(this,t)),this.graphic&&!this.hasDummyGraphic){if(i&&this.graphic.removeClass(`highcharts-point-`+i),t&&this.graphic.addClass(`highcharts-point-`+t),!m.styledMode){var x=r.pointAttribs(this,t),S=b(m.options.chart.animation,a.animation);r.options.inactiveOtherPoints&&g(x.opacity)&&((this.dataLabels||[]).forEach(function(e){e&&e.animate({opacity:x.opacity},S)}),this.connector&&this.connector.animate({opacity:x.opacity},S)),this.graphic.animate(x,S)}v&&this.graphic.animate(v,b(m.options.chart.animation,l.animation,s.animation)),y&&y.hide()}else t&&l&&(i=p.symbol||r.symbol,y&&y.currentSymbol!==i&&(y=y.destroy()),v&&(y?y[n?`animate`:`attr`]({x:v.x,y:v.y}):i&&(r.stateMarkerGraphic=y=m.renderer.symbol(i,v.x,v.y,v.width,v.height).add(r.markerGroup),y.currentSymbol=i)),!m.styledMode&&y&&this.state!==`inactive`&&y.attr(r.pointAttribs(this,t))),y&&(y[t&&this.isInside?`show`:`hide`](),y.element.point=this,y.addClass(this.getClassName(),!0));a=a.halo,v=(y=this.graphic||y)&&y.visibility||`inherit`,a&&a.size&&y&&v!==`hidden`&&!this.isCluster?(_||(r.halo=_=m.renderer.path().add(y.parentGroup)),_.show()[n?`animate`:`attr`]({d:this.haloPath(a.size)}),_.attr({class:`highcharts-halo highcharts-color-`+b(this.colorIndex,r.colorIndex)+(this.className?` `+this.className:``),visibility:v,zIndex:-1}),_.point=this,m.styledMode||_.attr(d({fill:this.color||r.color,"fill-opacity":a.opacity},e.filterUserAttributes(a.attributes||{})))):_&&_.point&&_.point.haloPath&&_.animate({d:_.point.haloPath(0)},null,_.hide),f(this,`afterSetState`,{state:t})}},t.prototype.haloPath=function(e){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-e,this.plotY-e,2*e,2*e)},t}(),t}),t(n,`Core/Pointer.js`,[n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Tooltip.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=e.parse,a=t.charts,o=t.noop,s=r.addEvent,c=r.attr,l=r.css,u=r.defined,d=r.extend,f=r.find,p=r.fireEvent,m=r.isNumber,h=r.isObject,g=r.objectEach,_=r.offset,v=r.pick,y=r.splat;return e=function(){function e(e,t){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=e,this.hasDragged=!1,this.options=t,this.init(e,t)}return e.prototype.applyInactiveState=function(e){var t=[],n;(e||[]).forEach(function(e){n=e.series,t.push(n),n.linkedParent&&t.push(n.linkedParent),n.linkedSeries&&(t=t.concat(n.linkedSeries)),n.navigatorSeries&&t.push(n.navigatorSeries)}),this.chart.series.forEach(function(e){t.indexOf(e)===-1?e.setState(`inactive`,!0):e.options.inactiveOtherPoints&&e.setAllPointsToState(`inactive`)})},e.prototype.destroy=function(){var n=this;this.eventsToUnbind.forEach(function(e){return e()}),this.eventsToUnbind=[],t.chartCount||(e.unbindDocumentMouseUp&&=e.unbindDocumentMouseUp(),e.unbindDocumentTouchEnd&&=e.unbindDocumentTouchEnd()),clearInterval(n.tooltipTimeout),g(n,function(e,t){n[t]=void 0})},e.prototype.drag=function(e){var t=this.chart,n=t.options.chart,r=this.zoomHor,a=this.zoomVert,o=t.plotLeft,s=t.plotTop,c=t.plotWidth,l=t.plotHeight,u=this.mouseDownX||0,d=this.mouseDownY||0,f=h(n.panning)?n.panning&&n.panning.enabled:n.panning,p=n.panKey&&e[n.panKey+`Key`],m=e.chartX,g=e.chartY,_=this.selectionMarker;if((!_||!_.touch)&&(m<o?m=o:m>o+c&&(m=o+c),g<s?g=s:g>s+l&&(g=s+l),this.hasDragged=Math.sqrt((u-m)**2+(d-g)**2),10<this.hasDragged)){var v=t.isInsidePlot(u-o,d-s,{visiblePlotOnly:!0});
2!t.hasCartesianSeries&&!t.mapView||!this.zoomX&&!this.zoomY||!v||p||_||(this.selectionMarker=_=t.renderer.rect(o,s,r?1:c,a?1:l,0).attr({class:`highcharts-selection-marker`,zIndex:7}).add(),t.styledMode||_.attr({fill:n.selectionMarkerFill||i(`#335cad`).setOpacity(.25).get()})),_&&r&&(r=m-u,_.attr({width:Math.abs(r),x:(0<r?0:r)+u})),_&&a&&(r=g-d,_.attr({height:Math.abs(r),y:(0<r?0:r)+d})),v&&!_&&f&&t.pan(e,n.panning)}},e.prototype.dragStart=function(e){var t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=this.mouseDownX=e.chartX,t.mouseDownY=this.mouseDownY=e.chartY},e.prototype.drop=function(e){var t=this,n=this.chart,r=this.hasPinched;if(this.selectionMarker){var i=this.selectionMarker,a=i.attr?i.attr(`x`):i.x,o=i.attr?i.attr(`y`):i.y,s=i.attr?i.attr(`width`):i.width,c=i.attr?i.attr(`height`):i.height,f={originalEvent:e,xAxis:[],yAxis:[],x:a,y:o,width:s,height:c},h=!!n.mapView;(this.hasDragged||r)&&(n.axes.forEach(function(n){if(n.zoomEnabled&&u(n.min)&&(r||t[{xAxis:`zoomX`,yAxis:`zoomY`}[n.coll]])&&m(a)&&m(o)){var i=n.horiz,l=e.type===`touchend`?n.minPixelPadding:0,d=n.toValue((i?a:o)+l);i=n.toValue((i?a+s:o+c)-l),f[n.coll].push({axis:n,min:Math.min(d,i),max:Math.max(d,i)}),h=!0}}),h&&p(n,`selection`,f,function(e){n.zoom(d(e,r?{animation:!1}:null))})),m(n.index)&&(this.selectionMarker=this.selectionMarker.destroy()),r&&this.scaleGroups()}n&&m(n.index)&&(l(n.container,{cursor:n._cursor}),n.cancelClick=10<this.hasDragged,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},e.prototype.findNearestKDPoint=function(e,t,n){var r=this.chart,i=r.hoverPoint;if(r=r.tooltip,i&&r&&r.isStickyOnContact())return i;var a;return e.forEach(function(e){var r=!(e.noSharedTooltip&&t)&&0>e.options.findNearestPointBy.indexOf(`y`);if(e=e.searchPoint(n,r),(r=h(e,!0)&&e.series)&&!(r=!h(a,!0))){r=a.distX-e.distX;var i=a.dist-e.dist,o=(e.series.group&&e.series.group.zIndex)-(a.series.group&&a.series.group.zIndex);r=0<(r!==0&&t?r:i===0?o===0?a.series.index>e.series.index?-1:1:o:i)}r&&(a=e)}),a},e.prototype.getChartCoordinatesFromPoint=function(e,t){var n=e.series,r=n.xAxis;n=n.yAxis;var i=e.shapeArgs;if(r&&n){var a=v(e.clientX,e.plotX),o=e.plotY||0;return e.isNode&&i&&m(i.x)&&m(i.y)&&(a=i.x,o=i.y),t?{chartX:n.len+n.pos-o,chartY:r.len+r.pos-a}:{chartX:a+r.pos,chartY:o+n.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},e.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var e=this.chart.container,t=_(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};var n=e.offsetWidth;return e=e.offsetHeight,2<n&&2<e&&(this.chartPosition.scaleX=t.width/n,this.chartPosition.scaleY=t.height/e),this.chartPosition},e.prototype.getCoordinates=function(e){var t={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(n){t[n.isXAxis?`xAxis`:`yAxis`].push({axis:n,value:n.toValue(e[n.horiz?`chartX`:`chartY`])})}),t},e.prototype.getHoverData=function(e,t,n,r,i,a){var o=[];r=!(!r||!e);var s={chartX:a?a.chartX:void 0,chartY:a?a.chartY:void 0,shared:i};p(this,`beforeGetHoverData`,s);var c=t&&!t.stickyTracking?[t]:n.filter(function(e){return s.filter?s.filter(e):e.visible&&!(!i&&e.directTouch)&&v(e.options.enableMouseTracking,!0)&&e.stickyTracking}),l=r||!a?e:this.findNearestKDPoint(c,i,a);return t=l&&l.series,l&&(i&&!t.noSharedTooltip?(c=n.filter(function(e){return s.filter?s.filter(e):e.visible&&!(!i&&e.directTouch)&&v(e.options.enableMouseTracking,!0)&&!e.noSharedTooltip}),c.forEach(function(e){var t=f(e.points,function(e){return e.x===l.x&&!e.isNull});h(t)&&(e.chart.isBoosting&&(t=e.getPoint(t)),o.push(t))})):o.push(l)),s={hoverPoint:l},p(this,`afterGetHoverData`,s),{hoverPoint:s.hoverPoint,hoverSeries:t,hoverPoints:o}},e.prototype.getPointFromEvent=function(e){e=e.target;for(var t;e&&!t;)t=e.point,e=e.parentNode;return t},e.prototype.onTrackerMouseOut=function(e){e=e.relatedTarget||e.toElement;var t=this.chart.hoverSeries;this.isDirectTouch=!1,!t||!e||t.stickyTracking||this.inClass(e,`highcharts-tooltip`)||this.inClass(e,`highcharts-series-`+t.index)&&this.inClass(e,`highcharts-tracker`)||t.onMouseOut()},e.prototype.inClass=function(e,t){for(var n;e;){if(n=c(e,`class`)){if(n.indexOf(t)!==-1)return!0;
2if(n.indexOf(`highcharts-container`)!==-1)return!1}e=e.parentNode}},e.prototype.init=function(e,t){this.options=t,this.chart=e,this.runChartClick=!(!t.chart.events||!t.chart.events.click),this.pinchDown=[],this.lastValidTouch={},n&&(e.tooltip=new n(e,t.tooltip),this.followTouchMove=v(t.tooltip.followTouchMove,!0)),this.setDOMEvents()},e.prototype.normalize=function(e,t){var n=e.touches,r=n?n.length?n.item(0):v(n.changedTouches,e.changedTouches)[0]:e;return t||=this.getChartPosition(),n=r.pageX-t.left,r=r.pageY-t.top,n/=t.scaleX,r/=t.scaleY,d(e,{chartX:Math.round(n),chartY:Math.round(r)})},e.prototype.onContainerClick=function(e){var t=this.chart,n=t.hoverPoint;e=this.normalize(e);var r=t.plotLeft,i=t.plotTop;t.cancelClick||(n&&this.inClass(e.target,`highcharts-tracker`)?(p(n.series,`click`,d(e,{point:n})),t.hoverPoint&&n.firePointEvent(`click`,e)):(d(e,this.getCoordinates(e)),t.isInsidePlot(e.chartX-r,e.chartY-i,{visiblePlotOnly:!0})&&p(t,`click`,e)))},e.prototype.onContainerMouseDown=function(e){var n=((e.buttons||e.button)&1)==1;e=this.normalize(e),t.isFirefox&&e.button!==0&&this.onContainerMouseMove(e),(e.button===void 0||n)&&(this.zoomOption(e),n&&e.preventDefault&&e.preventDefault(),this.dragStart(e))},e.prototype.onContainerMouseLeave=function(t){var n=a[v(e.hoverChartIndex,-1)],r=this.chart.tooltip;r&&r.shouldStickOnContact()&&this.inClass(t.relatedTarget,`highcharts-tooltip-container`)||(t=this.normalize(t),n&&(t.relatedTarget||t.toElement)&&(n.pointer.reset(),n.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset())},e.prototype.onContainerMouseEnter=function(e){delete this.chartPosition},e.prototype.onContainerMouseMove=function(e){var t=this.chart;e=this.normalize(e),this.setHoverChartIndex(),e.preventDefault||(e.returnValue=!1),(t.mouseIsDown===`mousedown`||this.touchSelect(e))&&this.drag(e),t.openMenu||!this.inClass(e.target,`highcharts-tracker`)&&!t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop,{visiblePlotOnly:!0})||(this.inClass(e.target,`highcharts-no-tooltip`)?this.reset(!1,0):this.runPointActions(e))},e.prototype.onDocumentTouchEnd=function(t){var n=a[v(e.hoverChartIndex,-1)];n&&n.pointer.drop(t)},e.prototype.onContainerTouchMove=function(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)},e.prototype.onContainerTouchStart=function(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))},e.prototype.onDocumentMouseMove=function(e){var t=this.chart,n=this.chartPosition;e=this.normalize(e,n);var r=t.tooltip;!n||r&&r.isStickyOnContact()||t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop,{visiblePlotOnly:!0})||this.inClass(e.target,`highcharts-tracker`)||this.reset()},e.prototype.onDocumentMouseUp=function(t){var n=a[v(e.hoverChartIndex,-1)];n&&n.pointer.drop(t)},e.prototype.pinch=function(e){var t=this,n=t.chart,r=t.pinchDown,i=e.touches||[],a=i.length,s=t.lastValidTouch,c=t.hasZoom,l={},u=a===1&&(t.inClass(e.target,`highcharts-tracker`)&&n.runTrackerClick||t.runChartClick),f={},m=t.selectionMarker;1<a?t.initiated=!0:a===1&&this.followTouchMove&&(t.initiated=!1),c&&t.initiated&&!u&&!1!==e.cancelable&&e.preventDefault(),[].map.call(i,function(e){return t.normalize(e)}),e.type===`touchstart`?([].forEach.call(i,function(e,t){r[t]={chartX:e.chartX,chartY:e.chartY}}),s.x=[r[0].chartX,r[1]&&r[1].chartX],s.y=[r[0].chartY,r[1]&&r[1].chartY],n.axes.forEach(function(e){if(e.zoomEnabled){var t=n.bounds[e.horiz?`h`:`v`],r=e.minPixelPadding,i=e.toPixels(Math.min(v(e.options.min,e.dataMin),e.dataMin)),a=e.toPixels(Math.max(v(e.options.max,e.dataMax),e.dataMax)),o=Math.max(i,a);t.min=Math.min(e.pos,Math.min(i,a)-r),t.max=Math.max(e.pos+e.len,o+r)}}),t.res=!0):t.followTouchMove&&a===1?this.runPointActions(t.normalize(e)):r.length&&(p(n,`touchpan`,{originalEvent:e},function(){m||(t.selectionMarker=m=d({destroy:o,touch:!0},n.plotBox)),t.pinchTranslate(r,i,l,m,f,s),t.hasPinched=c,t.scaleGroups(l,f)}),t.res&&(t.res=!1,this.reset(!1,0)))},e.prototype.pinchTranslate=function(e,t,n,r,i,a){this.zoomHor&&this.pinchTranslateDirection(!0,e,t,n,r,i,a),this.zoomVert&&this.pinchTranslateDirection(!1,e,t,n,r,i,a)},e.prototype.pinchTranslateDirection=function(e,t,n,r,i,a,o,s){var c=this.chart,l=e?`x`:`y`,u=e?`X`:`Y`,d=`chart`+u,f=e?`width`:`height`,p=c[`plot`+(e?`Left`:`Top`)],m=c.inverted,h=c.bounds[e?`h`:`v`],g=t.length===1,_=t[0][d],v=!g&&t[1][d];t=function(){typeof C==`number`&&20<Math.abs(_-v)&&(x=s||Math.abs(S-C)/Math.abs(_-v)),b=(p-S)/x+_,y=c[`plot`+(e?`Width`:`Height`)]/x};var y,b,x=s||1,S=n[0][d],C=!g&&n[1][d];if(t(),n=b,n<h.min){n=h.min;var w=!0}else n+y>h.max&&(n=h.max-y,w=!0);w?(S-=.8*(S-o[l][0]),typeof C==`number`&&(C-=.8*(C-o[l][1])),t()):o[l]=[S,C],m||(a[l]=b-p,a[f]=y),a=m?1/x:x,i[f]=y,i[l]=n,r[m?e?`scaleY`:`scaleX`:`scale`+u]=x,r[`translate`+u]=a*p+(S-a*_)},e.prototype.reset=function(e,t){var n=this.chart,r=n.hoverSeries,i=n.hoverPoint,a=n.hoverPoints,o=n.tooltip,s=o&&o.shared?a:i;
2e&&s&&y(s).forEach(function(t){t.series.isCartesian&&t.plotX===void 0&&(e=!1)}),e?o&&s&&y(s).length&&(o.refresh(s),o.shared&&a?a.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):i&&(i.setState(i.state,!0),n.axes.forEach(function(e){e.crosshair&&i.series[e.coll]===e&&e.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),a&&a.forEach(function(e){e.setState()}),r&&r.onMouseOut(),o&&o.hide(t),this.unDocMouseMove&&=this.unDocMouseMove(),n.axes.forEach(function(e){e.hideCrosshair()}),this.hoverX=n.hoverPoints=n.hoverPoint=null)},e.prototype.runPointActions=function(t,n){var r=this.chart,i=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,o=i?i.shared:!1,c=n||r.hoverPoint,l=c&&c.series||r.hoverSeries;n=this.getHoverData(c,l,r.series,(!t||t.type!==`touchmove`)&&(!!n||l&&l.directTouch&&this.isDirectTouch),o,t),c=n.hoverPoint,l=n.hoverSeries;var u=n.hoverPoints;if(n=l&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split,o=o&&l&&!l.noSharedTooltip,c&&(c!==r.hoverPoint||i&&i.isHidden)){if((r.hoverPoints||[]).forEach(function(e){u.indexOf(e)===-1&&e.setState()}),r.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(u),(u||[]).forEach(function(e){e.setState(`hover`)}),r.hoverPoint&&r.hoverPoint.firePointEvent(`mouseOut`),!c.series)return;r.hoverPoints=u,r.hoverPoint=c,c.firePointEvent(`mouseOver`),i&&i.refresh(o?u:c,t)}else n&&i&&!i.isHidden&&(c=i.getAnchor([{}],t),r.isInsidePlot(c[0],c[1],{visiblePlotOnly:!0})&&i.updatePosition({plotX:c[0],plotY:c[1]}));this.unDocMouseMove||(this.unDocMouseMove=s(r.container.ownerDocument,`mousemove`,function(t){var n=a[e.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(t)}),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach(function(e){var n=v((e.crosshair||{}).snap,!0),i;n&&((i=r.hoverPoint)&&i.series[e.coll]===e||(i=f(u,function(t){return t.series[e.coll]===e}))),i||!n?e.drawCrosshair(t,i):e.hideCrosshair()})},e.prototype.scaleGroups=function(e,t){var n=this.chart;n.series.forEach(function(r){var i=e||r.getPlotBox();r.group&&(r.xAxis&&r.xAxis.zoomEnabled||n.mapView)&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(t?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))}),n.clipRect.attr(t||n.clipBox)},e.prototype.setDOMEvents=function(){var n=this,r=this.chart.container,i=r.ownerDocument;r.onmousedown=this.onContainerMouseDown.bind(this),r.onmousemove=this.onContainerMouseMove.bind(this),r.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(s(r,`mouseenter`,this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(s(r,`mouseleave`,this.onContainerMouseLeave.bind(this))),e.unbindDocumentMouseUp||=s(i,`mouseup`,this.onDocumentMouseUp.bind(this));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!==`BODY`;)this.eventsToUnbind.push(s(a,`scroll`,function(){delete n.chartPosition})),a=a.parentElement;t.hasTouch&&(this.eventsToUnbind.push(s(r,`touchstart`,this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(s(r,`touchmove`,this.onContainerTouchMove.bind(this),{passive:!1})),e.unbindDocumentTouchEnd||=s(i,`touchend`,this.onDocumentTouchEnd.bind(this),{passive:!1}))},e.prototype.setHoverChartIndex=function(){var n=this.chart,r=t.charts[v(e.hoverChartIndex,-1)];r&&r!==n&&r.pointer.onContainerMouseLeave({relatedTarget:!0}),r&&r.mouseIsDown||(e.hoverChartIndex=n.index)},e.prototype.touch=function(e,t){var n=this.chart;if(this.setHoverChartIndex(),e.touches.length===1){if(e=this.normalize(e),n.isInsidePlot(e.chartX-n.plotLeft,e.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.openMenu){if(t&&this.runPointActions(e),e.type===`touchmove`){t=this.pinchDown;var r=t[0]?4<=Math.sqrt((t[0].chartX-e.chartX)**2+(t[0].chartY-e.chartY)**2):!1}v(r,!0)&&this.pinch(e)}else t&&this.reset()}else e.touches.length===2&&this.pinch(e)},e.prototype.touchSelect=function(e){return!(!this.chart.options.chart.zoomBySingleTouch||!e.touches||e.touches.length!==1)},e.prototype.zoomOption=function(e){var t=this.chart,n=t.options.chart;t=t.inverted;var r=n.zoomType||``;/touch/.test(e.type)&&(r=v(n.pinchType,r)),this.zoomX=e=/x/.test(r),this.zoomY=n=/y/.test(r),this.zoomHor=e&&!t||n&&t,this.zoomVert=n&&!t||e&&t,this.hasZoom=e||n},e}(),e}),t(n,`Core/MSPointer.js`,[n[`Core/Globals.js`],n[`Core/Pointer.js`],n[`Core/Utilities.js`]],function(e,t,n){function r(){var e=[];return e.item=function(e){return this[e]},f(m,function(t){e.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),e}function i(e,n,i,a){var s=o[t.hoverChartIndex||NaN];e.pointerType!==`touch`&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,a(e),s[n]({type:i,target:e.currentTarget,preventDefault:c,touches:r()}
2))}var a=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=e.charts,s=e.doc,c=e.noop,l=e.win,u=n.addEvent,d=n.css,f=n.objectEach,p=n.removeEvent,m={},h=!!l.PointerEvent;return function(t){function n(){return t!==null&&t.apply(this,arguments)||this}return a(n,t),n.isRequired=function(){return!(e.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},n.prototype.batchMSEvents=function(e){e(this.chart.container,h?`pointerdown`:`MSPointerDown`,this.onContainerPointerDown),e(this.chart.container,h?`pointermove`:`MSPointerMove`,this.onContainerPointerMove),e(s,h?`pointerup`:`MSPointerUp`,this.onDocumentPointerUp)},n.prototype.destroy=function(){this.batchMSEvents(p),t.prototype.destroy.call(this)},n.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this.hasZoom&&d(e.container,{"-ms-touch-action":`none`,"touch-action":`none`})},n.prototype.onContainerPointerDown=function(e){i(e,`onContainerTouchStart`,`touchstart`,function(e){m[e.pointerId]={pageX:e.pageX,pageY:e.pageY,target:e.currentTarget}})},n.prototype.onContainerPointerMove=function(e){i(e,`onContainerTouchMove`,`touchmove`,function(e){m[e.pointerId]={pageX:e.pageX,pageY:e.pageY},m[e.pointerId].target||(m[e.pointerId].target=e.currentTarget)})},n.prototype.onDocumentPointerUp=function(e){i(e,`onDocumentTouchEnd`,`touchend`,function(e){delete m[e.pointerId]})},n.prototype.setDOMEvents=function(){t.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(u)},n}(t)}),t(n,`Core/Legend/Legend.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/FormatUtilities.js`],n[`Core/Globals.js`],n[`Core/Series/Point.js`],n[`Core/Renderer/RendererUtilities.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a){var o=e.animObject,s=e.setAnimation,c=t.format;e=n.isFirefox;var l=n.marginNames;n=n.win;var u=i.distribute,d=a.addEvent,f=a.createElement,p=a.css,m=a.defined,h=a.discardElement,g=a.find,_=a.fireEvent,v=a.isNumber,y=a.merge,b=a.pick,x=a.relativeLength,S=a.stableSort,C=a.syncTimeout;return i=a.wrap,a=function(){function e(e,t){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=e,this.init(e,t)}return e.prototype.init=function(e,t){this.chart=e,this.setOptions(t),t.enabled&&(this.render(),d(this.chart,`endResize`,function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,`render`,function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},e.prototype.setOptions=function(e){var t=b(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=y(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop||0,this.itemMarginBottom=e.itemMarginBottom||0,this.padding=t,this.initialItemY=t-5,this.symbolWidth=b(e.symbolWidth,16),this.pages=[],this.proximate=e.layout===`proximate`&&!this.chart.inverted,this.baseline=void 0},e.prototype.update=function(e,t){var n=this.chart;this.setOptions(y(!0,this.options,e)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,b(t,!0)&&n.redraw(),_(this,`afterUpdate`)},e.prototype.colorizeItem=function(e,t){if(e.legendGroup[t?`removeClass`:`addClass`](`highcharts-legend-item-hidden`),!this.chart.styledMode){var n=this.options,r=e.legendItem,i=e.legendLine,a=e.legendSymbol,o=this.itemHiddenStyle.color;n=t?n.itemStyle.color:o;var s=t&&e.color||o,c=e.options&&e.options.marker,l={fill:s};r&&r.css({fill:n,color:n}),i&&i.attr({stroke:s}),a&&(c&&a.isMarker&&(l=e.pointAttribs(),t||(l.stroke=l.fill=o)),a.attr(l))}_(this,`afterColorizeItem`,{item:e,visible:t})}
2,e.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},e.prototype.positionItem=function(e){var t=this,n=this.options,r=n.symbolPadding,i=!n.rtl,a=e._legendItemPos;n=a[0],a=a[1];var o=e.checkbox,s=e.legendGroup;s&&s.element&&(r={translateX:i?n:this.legendWidth-n-2*r-4,translateY:a},i=function(){_(t,`afterPositionItem`,{item:e})},m(s.translateY)?s.animate(r,void 0,i):(s.attr(r),i())),o&&(o.x=n,o.y=a)},e.prototype.destroyItem=function(e){var t=e.checkbox;[`legendItem`,`legendLine`,`legendSymbol`,`legendGroup`].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),t&&h(e.checkbox)},e.prototype.destroy=function(){function e(e){this[e]&&(this[e]=this[e].destroy())}this.getAllItems().forEach(function(t){[`legendItem`,`legendGroup`].forEach(e,t)}),`clipRect up down pager nav box title group`.split(` `).forEach(e,this),this.display=null},e.prototype.positionCheckboxes=function(){var e=this.group&&this.group.alignAttr,t=this.clipHeight||this.legendHeight,n=this.titleHeight;if(e){var r=e.translateY;this.allItems.forEach(function(i){var a=i.checkbox;if(a){var o=r+n+a.y+(this.scrollOffset||0)+3;p(a,{left:e.translateX+i.checkboxOffset+a.x-20+`px`,top:o+`px`,display:this.proximate||o>r-6&&o<r+t-6?``:`none`})}},this)}},e.prototype.renderTitle=function(){var e=this.options,t=this.padding,n=e.title,r=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,t-3,t-4,null,null,null,e.useHTML,null,`legend-title`).attr({zIndex:1}),this.chart.styledMode||this.title.css(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+`px`}),e=this.title.getBBox(),r=e.height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r},e.prototype.setText=function(e){var t=this.options;e.legendItem.attr({text:t.labelFormat?c(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})},e.prototype.renderItem=function(e){var t=this.chart,n=t.renderer,r=this.options,i=this.symbolWidth,a=r.symbolPadding||0,o=this.itemStyle,s=this.itemHiddenStyle,c=r.layout===`horizontal`?b(r.itemDistance,20):0,l=!r.rtl,u=!e.series,d=!u&&e.series.drawLegendSymbol?e.series:e,f=d.options,p=this.createCheckboxForItem&&f&&f.showCheckbox,m=r.useHTML,h=e.options.className,g=e.legendItem;f=i+a+c+(p?20:0),g||(e.legendGroup=n.g(`legend-item`).addClass(`highcharts-`+d.type+`-series highcharts-color-`+e.colorIndex+(h?` `+h:``)+(u?` highcharts-series-`+e.index:``)).attr({zIndex:1}).add(this.scrollGroup),e.legendItem=g=n.text(``,l?i+a:-a,this.baseline||0,m),t.styledMode||g.css(y(e.visible?o:s)),g.attr({align:l?`left`:`right`,zIndex:2}).add(e.legendGroup),this.baseline||(this.fontMetrics=n.fontMetrics(t.styledMode?12:o.fontSize,g),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,g.attr(`y`,this.baseline),this.symbolHeight=r.symbolHeight||this.fontMetrics.f,r.squareSymbol&&(this.symbolWidth=b(r.symbolWidth,Math.max(this.symbolHeight,16)),f=this.symbolWidth+a+c+(p?20:0),l&&g.attr(`x`,this.symbolWidth+a))),d.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,g,m)),p&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),!t.styledMode&&o.width||g.css({width:(r.itemWidth||this.widthOption||t.spacingBox.width)-f+`px`}),this.setText(e),t=g.getBBox(),n=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=r.itemWidth||e.legendItemWidth||t.width+f,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(e.legendItemHeight||(t.height>1.5*n?t.height:n))},e.prototype.layoutItem=function(e){var t=this.options,n=this.padding,r=t.layout===`horizontal`,i=e.itemHeight,a=this.itemMarginBottom,o=this.itemMarginTop,s=r?b(t.itemDistance,20):0,c=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>c?this.maxItemWidth:e.itemWidth,r&&this.itemX-n+t>c&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=o+this.itemY+a,this.lastLineHeight=Math.max(i,this.lastLineHeight),e._legendItemPos=[this.itemX,this.itemY],r?this.itemX+=t:(this.itemY+=o+i+a,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(e.checkbox?0:s):t)+n,this.offsetWidth)},e.prototype.getAllItems=function(){var e=[];
2return this.chart.series.forEach(function(t){var n=t&&t.options;t&&b(n.showInLegend,!m(n.linkedTo)&&void 0,!0)&&(e=e.concat(t.legendItems||(n.legendType===`point`?t.data:t)))}),_(this,`afterGetAllItems`,{allItems:e}),e},e.prototype.getAlignment=function(){var e=this.options;return this.proximate?e.align.charAt(0)+`tv`:e.floating?``:e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)},e.prototype.adjustMargins=function(e,t){var n=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,o){a.test(i)&&!m(e[o])&&(n[l[o]]=Math.max(n[l[o]],n.legend[(o+1)%2?`legendHeight`:`legendWidth`]+[1,-1,-1,1][o]*r[o%2?`x`:`y`]+b(r.margin,12)+t[o]+(n.titleOffset[o]||0)))})},e.prototype.proximatePositions=function(){var e=this.chart,t=[],n=this.options.align===`left`;this.allItems.forEach(function(r){var i,a=n;if(r.yAxis){r.xAxis.options.reversed&&(a=!a),r.points&&(i=g(a?r.points:r.points.slice(0).reverse(),function(e){return v(e.plotY)})),a=this.itemMarginTop+r.legendItem.getBBox().height+this.itemMarginBottom;var o=r.yAxis.top-e.plotTop;r.visible?(i=i?i.plotY:r.yAxis.height,i+=o-.3*a):i=o+r.yAxis.height,t.push({target:i,size:a,item:r})}},this),u(t,e.plotHeight).forEach(function(t){t.item._legendItemPos&&(t.item._legendItemPos[1]=e.plotTop-e.spacing[0]+t.pos)})},e.prototype.render=function(){var e=this.chart,t=e.renderer,n=this.options,r=this.padding,i=this.getAllItems(),a=this.group,o=this.box;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=x(n.width,e.spacingBox.width-r);var s=e.spacingBox.width-2*r-n.x;-1<[`rm`,`lm`].indexOf(this.getAlignment().substring(0,2))&&(s/=2),this.maxLegendWidth=this.widthOption||s,a||(this.group=a=t.g(`legend`).addClass(n.className||``).attr({zIndex:7}).add(),this.contentGroup=t.g().attr({zIndex:1}).add(a),this.scrollGroup=t.g().add(this.contentGroup)),this.renderTitle(),S(i,function(e,t){return(e.options&&e.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)}),n.reversed&&i.reverse(),this.allItems=i,this.display=s=!!i.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,i.forEach(this.renderItem,this),i.forEach(this.layoutItem,this),i=(this.widthOption||this.offsetWidth)+r;var c=this.lastItemY+this.lastLineHeight+this.titleHeight;c=this.handleOverflow(c),c+=r,o||(this.box=o=t.rect().addClass(`highcharts-legend-box`).attr({r:n.borderRadius}).add(a),o.isNew=!0),e.styledMode||o.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||`none`}).shadow(n.shadow),0<i&&0<c&&(o[o.isNew?`attr`:`animate`](o.crisp.call({},{x:0,y:0,width:i,height:c},o.strokeWidth())),o.isNew=!1),o[s?`show`:`hide`](),e.styledMode&&a.getStyle(`display`)===`none`&&(i=c=0),this.legendWidth=i,this.legendHeight=c,s&&this.align(),this.proximate||this.positionItems(),_(this,`afterRender`)},e.prototype.align=function(e){e===void 0&&(e=this.chart.spacingBox);var t=this.chart,n=this.options,r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<t.titleOffset[0]?r+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<t.titleOffset[2]&&(r-=t.titleOffset[2]),r!==e.y&&(e=y(e,{y:r})),this.group.align(y(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?`top`:n.verticalAlign}),!0,e)},e.prototype.handleOverflow=function(e){var t=this,n=this.chart,r=n.renderer,i=this.options,a=i.y,o=i.verticalAlign===`top`,s=this.padding,c=i.maxHeight,l=i.navigation,u=b(l.animation,!0),d=l.arrowSize||12,f=this.pages,p=this.allItems,m=function(e){typeof e==`number`?y.attr({height:e}):y&&(t.clipRect=y.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=e?`rect(`+s+`px,9999px,`+(s+e)+`px,0)`:`auto`)},h=function(e){return t[e]=r.circle(0,0,1.3*d).translate(d/2,d/2).add(v),n.styledMode||t[e].attr(`fill`,`rgba(0,0,0,0.0001)`),t[e]},g,_;a=n.spacingBox.height+(o?-a:a)-s;var v=this.nav,y=this.clipRect;return i.layout!==`horizontal`||i.verticalAlign===`middle`||i.floating||(a/=2),c&&(a=Math.min(a,c)),f.length=0,e&&0<a&&e>a&&!1!==l.enabled?(this.clipHeight=g=Math.max(a-20-this.titleHeight-s,0),this.currentPage=b(this.currentPage,1),this.fullHeight=e,p.forEach(function(e,t){var n=e._legendItemPos[1],r=M
2ath.round(e.legendItem.getBBox().height),i=f.length;(!i||n-f[i-1]>g&&(_||n)!==f[i-1])&&(f.push(_||n),i++),e.pageIx=i-1,_&&(p[t-1].pageIx=i-1),t===p.length-1&&n+r-f[i-1]>g&&r<=g&&(f.push(n),e.pageIx=i),n!==_&&(_=n)}),y||(y=t.clipRect=r.clipRect(0,s,9999,0),t.contentGroup.clip(y)),m(g),v||(this.nav=v=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol(`triangle`,0,0,d,d).add(v),h(`upTracker`).on(`click`,function(){t.scroll(-1,u)}),this.pager=r.text(``,15,10).addClass(`highcharts-legend-navigation`),n.styledMode||this.pager.css(l.style),this.pager.add(v),this.down=r.symbol(`triangle-down`,0,0,d,d).add(v),h(`downTracker`).on(`click`,function(){t.scroll(1,u)})),t.scroll(0),e=a):v&&(m(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},e.prototype.scroll=function(e,t){var n=this,r=this.chart,i=this.pages,a=i.length,c=this.clipHeight,l=this.options.navigation,u=this.pager,d=this.padding,f=this.currentPage+e;f>a&&(f=a),0<f&&(t!==void 0&&s(t,r),this.nav.attr({translateX:d,translateY:c+this.padding+7+this.titleHeight,visibility:`visible`}),[this.up,this.upTracker].forEach(function(e){e.attr({class:f===1?`highcharts-legend-nav-inactive`:`highcharts-legend-nav-active`})}),u.attr({text:f+`/`+a}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:f===a?`highcharts-legend-nav-inactive`:`highcharts-legend-nav-active`})},this),r.styledMode||(this.up.attr({fill:f===1?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:f===1?`default`:`pointer`}),this.down.attr({fill:f===a?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:f===a?`default`:`pointer`})),this.scrollOffset=-i[f-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=f,this.positionCheckboxes(),e=o(b(t,r.renderer.globalAnimation,!0)),C(function(){_(n,`afterScroll`,{currentPage:f})},e.duration))},e.prototype.setItemEvents=function(e,t,n){var i=this,a=i.chart.renderer.boxWrapper,o=e instanceof r,s=`highcharts-legend-`+(o?`point`:`series`)+`-active`,c=i.chart.styledMode,l=function(t){i.allItems.forEach(function(n){e!==n&&[n].concat(n.linkedSeries||[]).forEach(function(e){e.setState(t,!o)})})};(n?[t,e.legendSymbol]:[e.legendGroup]).forEach(function(n){n&&n.on(`mouseover`,function(){e.visible&&l(`inactive`),e.setState(`hover`),e.visible&&a.addClass(s),c||t.css(i.options.itemHoverStyle)}).on(`mouseout`,function(){i.chart.styledMode||t.css(y(e.visible?i.itemStyle:i.itemHiddenStyle)),l(``),a.removeClass(s),e.setState()}).on(`click`,function(t){var n=function(){e.setVisible&&e.setVisible(),l(e.visible?`inactive`:``)};a.removeClass(s),t={browserEvent:t},e.firePointEvent?e.firePointEvent(`legendItemClick`,t,n):_(e,`legendItemClick`,t,n)})})},e.prototype.createCheckboxForItem=function(e){e.checkbox=f(`input`,{type:`checkbox`,className:`highcharts-legend-checkbox`,checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),d(e.checkbox,`click`,function(t){_(e.series||e,`checkboxClick`,{checked:t.target.checked,item:e},function(){e.select()})})},e}(),(/Trident\/7\.0/.test(n.navigator&&n.navigator.userAgent)||e)&&i(a.prototype,`positionItem`,function(e,t){var n=this,r=function(){t._legendItemPos&&e.call(n,t)};r(),n.bubbleLegend||setTimeout(r)}),a}),t(n,`Core/Series/SeriesRegistry.js`,[n[`Core/Globals.js`],n[`Core/DefaultOptions.js`],n[`Core/Series/Point.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=t.defaultOptions,a=r.error,o=r.extendClass,s=r.merge,c;return(function(t){function r(e,r){var a=i.plotOptions||{},o=r.defaultOptions;r.prototype.pointClass||(r.prototype.pointClass=n),r.prototype.type=e,o&&(a[e]=o),t.seriesTypes[e]=r}
2t.seriesTypes=e.seriesTypes,t.getSeries=function(e,n){n===void 0&&(n={});var r=e.options.chart;r=n.type||r.type||r.defaultSeriesType||``;var i=t.seriesTypes[r];return t||a(17,!0,e,{missingModuleFor:r}),r=new i,typeof r.init==`function`&&r.init(e,n),r},t.registerSeriesType=r,t.seriesType=function(e,a,c,l,u){var d=i.plotOptions||{};return a||=``,d[e]=s(d[a],c),r(e,o(t.seriesTypes[a]||function(){},l)),t.seriesTypes[e].prototype.type=e,u&&(t.seriesTypes[e].prototype.pointClass=o(n,u)),t.seriesTypes[e]}})(c||={}),c}),t(n,`Core/Chart/Chart.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Axis/Axis.js`],n[`Core/FormatUtilities.js`],n[`Core/Foundation.js`],n[`Core/Globals.js`],n[`Core/Legend/Legend.js`],n[`Core/MSPointer.js`],n[`Core/DefaultOptions.js`],n[`Core/Pointer.js`],n[`Core/Renderer/RendererRegistry.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Renderer/SVG/SVGRenderer.js`],n[`Core/Time.js`],n[`Core/Utilities.js`],n[`Core/Renderer/HTML/AST.js`]],function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){var h=e.animate,g=e.animObject,_=e.setAnimation,v=n.numberFormat,y=r.registerEventOptions,b=i.charts,x=i.doc,S=i.marginNames,C=i.svg,w=i.win,T=s.defaultOptions,E=s.defaultTime,D=u.seriesTypes,O=p.addEvent,k=p.attr,A=p.cleanRecursively,j=p.createElement,M=p.css,N=p.defined,P=p.discardElement,F=p.erase,I=p.error,L=p.extend,R=p.find,z=p.fireEvent,B=p.getStyle,V=p.isArray,H=p.isNumber,U=p.isObject,W=p.isString,G=p.merge,K=p.objectEach,q=p.pick,J=p.pInt,Y=p.relativeLength,X=p.removeEvent,Z=p.splat,Q=p.syncTimeout,$=p.uniqueKey;return e=function(){function e(e,t,n){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(e,t,n)}return e.chart=function(t,n,r){return new e(t,n,r)},e.prototype.getArgs=function(e,t,n){W(e)||e.nodeName?(this.renderTo=e,this.init(t,n)):this.init(e,t)},e.prototype.init=function(e,t){var n=e.plotOptions||{};z(this,`init`,{args:arguments},function(){var r=G(T,e),a=r.chart;K(r.plotOptions,function(e,t){U(e)&&(e.tooltip=n[t]&&G(n[t].tooltip)||void 0)}),r.tooltip.userOptions=e.chart&&e.chart.forExport&&e.tooltip.userOptions||e.tooltip,this.userOptions=e,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new f(e.time):i.time,this.numberFormatter=a.numberFormatter||v,this.styledMode=a.styledMode,this.hasCartesianSeries=a.showAxes,this.index=b.length,b.push(this),i.chartCount++,y(this,a),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,z(this,`afterInit`),this.firstRender()})},e.prototype.initSeries=function(e){var t=this.options.chart;t=e.type||t.type||t.defaultSeriesType;var n=D[t];return n||I(17,!0,this,{missingModuleFor:t}),t=new n,typeof t.init==`function`&&t.init(this,e),t},e.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)})},e.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0})},e.prototype.orderSeries=function(e){var t=this.series;e||=0;for(var n=t.length;e<n;++e)t[e]&&(t[e].index=e,t[e].name=t[e].getName())},e.prototype.isInsidePlot=function(e,t,n){n===void 0&&(n={});var r=this.inverted,i=this.plotBox,a=this.plotLeft,o=this.plotTop,s=this.scrollablePlotBox,c=0,l=0;n.visiblePlotOnly&&this.scrollingContainer&&(l=this.scrollingContainer,c=l.scrollLeft,l=l.scrollTop);var u=n.series;if(i=n.visiblePlotOnly&&s||i,s=n.inverted?t:e,t=n.inverted?e:t,e={x:s,y:t,isInsidePlot:!0},!n.ignoreX){var d=u&&(r?u.yAxis:u.xAxis)||{pos:a,len:1/0};s=n.paneCoordinates?d.pos+s:a+s,s>=Math.max(c+a,d.pos)&&s<=Math.min(c+a+i.width,d.pos+d.len)||(e.isInsidePlot=!1)}
2return!n.ignoreY&&e.isInsidePlot&&(r=u&&(r?u.xAxis:u.yAxis)||{pos:o,len:1/0},n=n.paneCoordinates?r.pos+t:o+t,n>=Math.max(l+o,r.pos)&&n<=Math.min(l+o+i.height,r.pos+r.len)||(e.isInsidePlot=!1)),z(this,`afterIsInsidePlot`,e),e.isInsidePlot},e.prototype.redraw=function(e){z(this,`beforeRedraw`);var t=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,r=this.pointer,i=this.legend,a=this.userOptions.legend,o=this.renderer,s=o.isHidden(),c=[],l=this.isDirtyBox,u=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),_(this.hasRendered?e:!1,this),s&&this.temporaryDisplay(),this.layOutTitles(),e=n.length;e--;){var d=n[e];if(d.options.stacking||d.options.centerInCategory){var f=!0;if(d.isDirty){var p=!0;break}}}if(p)for(e=n.length;e--;)d=n[e],d.options.stacking&&(d.isDirty=!0);n.forEach(function(e){e.isDirty&&(e.options.legendType===`point`?(typeof e.updateTotals==`function`&&e.updateTotals(),u=!0):a&&(a.labelFormatter||a.labelFormat)&&(u=!0)),e.isDirtyData&&z(e,`updatedData`)}),u&&i&&i.options.enabled&&(i.render(),this.isDirtyLegend=!1),f&&this.getStacks(),t.forEach(function(e){e.updateNames(),e.setScale()}),this.getMargins(),t.forEach(function(e){e.isDirty&&(l=!0)}),t.forEach(function(e){var t=e.min+`,`+e.max;e.extKey!==t&&(e.extKey=t,c.push(function(){z(e,`afterSetExtremes`,L(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(l||f)&&e.redraw()}),l&&this.drawChartBox(),z(this,`predraw`),n.forEach(function(e){(l||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),r&&r.reset(!0),o.draw(),z(this,`redraw`),z(this,`render`),s&&this.temporaryDisplay(!0),c.forEach(function(e){e.call()})},e.prototype.get=function(e){function t(t){return t.id===e||t.options&&t.options.id===e}for(var n=this.series,r=R(this.axes,t)||R(this.series,t),i=0;!r&&i<n.length;i++)r=R(n[i].points||[],t);return r},e.prototype.getAxes=function(){var e=this,n=this.options,r=n.xAxis=Z(n.xAxis||{});n=n.yAxis=Z(n.yAxis||{}),z(this,`getAxes`),r.forEach(function(e,t){e.index=t,e.isX=!0}),n.forEach(function(e,t){e.index=t}),r.concat(n).forEach(function(n){new t(e,n)}),z(this,`afterGetAxes`)},e.prototype.getSelectedPoints=function(){return this.series.reduce(function(e,t){return t.getPointsCollection().forEach(function(t){q(t.selectedStaging,t.selected)&&e.push(t)}),e},[])},e.prototype.getSelectedSeries=function(){return this.series.filter(function(e){return e.selected})},e.prototype.setTitle=function(e,t,n){this.applyDescription(`title`,e),this.applyDescription(`subtitle`,t),this.applyDescription(`caption`,void 0),this.layOutTitles(n)},e.prototype.applyDescription=function(e,t){var n=this,r=e===`title`?{color:`#333333`,fontSize:this.options.isStock?`16px`:`18px`}:{color:`#666666`};r=this.options[e]=G(!this.styledMode&&{style:r},this.options[e],t);var i=this[e];i&&t&&(this[e]=i=i.destroy()),r&&!i&&(i=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:`highcharts-`+e,zIndex:r.zIndex||4}).add(),i.update=function(t){n[{title:`setTitle`,subtitle:`setSubtitle`,caption:`setCaption`}[e]](t)},this.styledMode||i.css(r.style),this[e]=i)},e.prototype.layOutTitles=function(e){var t=[0,0,0],n=this.renderer,r=this.spacingBox;[`title`,`subtitle`,`caption`].forEach(function(e){var i=this[e],a=this.options[e],o=a.verticalAlign||`top`;e=e===`title`?o===`top`?-3:0:o===`top`?t[0]+2:0;var s;if(i){this.styledMode||(s=a.style&&a.style.fontSize),s=n.fontMetrics(s,i).b,i.css({width:(a.width||r.width+(a.widthAdjust||0))+`px`});var c=Math.round(i.getBBox(a.useHTML).height);i.align(L({y:o===`bottom`?s:e+s,height:c},a),!1,`spacingBox`),a.floating||(o===`top`?t[0]=Math.ceil(t[0]+c):o===`bottom`&&(t[2]=Math.ceil(t[2]+c)))}},this),t[0]&&(this.options.title.verticalAlign||`top`)===`top`&&(t[0]+=this.options.title.margin),t[2]&&this.options.caption.verticalAlign===`bottom`&&(t[2]+=this.options.caption.margin);var i=!this.titleOffset||this.titleOffset.join(`,`)!==t.join(`,`);this.titleOffset=t,z(this,`afterLayOutTitles`),!this.isDirtyBox&&i&&(this.isDirtyBox=this.isDirtyLegend=i,this.hasRendered&&q(e,!0)&&this.isDirtyBox&&this.redraw())},e.prototype.getChartSize=function(){var e=this.options.chart,t=e.width;e=e.height;var n=this.renderTo;N(t)||(this.containerWidth=B(n,`width`)),N(e)||(this.containerHeight=B(n,`height`)),this.chartWidth=Math.max(0,t||this.containerWidth||600),this.chartHe
2ight=Math.max(0,Y(e,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},e.prototype.temporaryDisplay=function(e){var t=this.renderTo;if(e)for(;t&&t.style;)t.hcOrigStyle&&(M(t,t.hcOrigStyle),delete t.hcOrigStyle),t.hcOrigDetached&&(x.body.removeChild(t),t.hcOrigDetached=!1),t=t.parentNode;else for(;t&&t.style&&(x.body.contains(t)||t.parentNode||(t.hcOrigDetached=!0,x.body.appendChild(t)),(B(t,`display`,!1)===`none`||t.hcOricDetached)&&(t.hcOrigStyle={display:t.style.display,height:t.style.height,overflow:t.style.overflow},e={display:`block`,overflow:`hidden`},t!==this.renderTo&&(e.height=0),M(t,e),t.offsetWidth||t.style.setProperty(`display`,`block`,`important`)),t=t.parentNode,t!==x.body););},e.prototype.setClassName=function(e){this.container.className=`highcharts-container `+(e||``)},e.prototype.getContainer=function(){var e=this.options,t=e.chart,n=$(),r,i=this.renderTo;i||(this.renderTo=i=t.renderTo),W(i)&&(this.renderTo=i=x.getElementById(i)),i||I(13,!0,this);var a=J(k(i,`data-highcharts-chart`));H(a)&&b[a]&&b[a].hasRendered&&b[a].destroy(),k(i,`data-highcharts-chart`,this.index),i.innerHTML=m.emptyHTML,t.skipClone||i.offsetWidth||this.temporaryDisplay(),this.getChartSize(),a=this.chartWidth;var o=this.chartHeight;if(M(i,{overflow:`hidden`}),this.styledMode||(r=L({position:`relative`,overflow:`hidden`,width:a+`px`,height:o+`px`,textAlign:`left`,lineHeight:`normal`,zIndex:0,"-webkit-tap-highlight-color":`rgba(0,0,0,0)`,userSelect:`none`,"touch-action":`manipulation`,outline:`none`},t.style||{})),this.container=n=j(`div`,{id:n},r,i),this._cursor=n.style.cursor,this.renderer=new(t.renderer||!C?l.getRendererType(t.renderer):d)(n,a,o,void 0,t.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),_(void 0,this),this.setClassName(t.className),this.styledMode)for(var s in e.defs)this.renderer.definition(e.defs[s]);else this.renderer.setStyle(t.style);this.renderer.chartIndex=this.index,z(this,`afterGetContainer`)},e.prototype.getMargins=function(e){var t=this.spacing,n=this.margin,r=this.titleOffset;this.resetMargins(),r[0]&&!N(n[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+t[0])),r[2]&&!N(n[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+t[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(n,t),z(this,`getMargins`),e||this.getAxisMargins()},e.prototype.getAxisMargins=function(){var e=this,t=e.axisOffset=[0,0,0,0],n=e.colorAxis,r=e.margin,i=function(e){e.forEach(function(e){e.visible&&e.getOffset()})};e.hasCartesianSeries?i(e.axes):n&&n.length&&i(n),S.forEach(function(n,i){N(r[i])||(e[n]+=t[i])}),e.setChartSize()},e.prototype.reflow=function(e){var t=this,n=t.options.chart,r=t.renderTo,i=N(n.width)&&N(n.height),a=n.width||B(r,`width`);n=n.height||B(r,`height`),r=e?e.target:w,delete t.pointer.chartPosition,!i&&!t.isPrinting&&a&&n&&(r===w||r===x)&&((a!==t.containerWidth||n!==t.containerHeight)&&(p.clearTimeout(t.reflowTimeout),t.reflowTimeout=Q(function(){t.container&&t.setSize(void 0,void 0,!1)},e?100:0)),t.containerWidth=a,t.containerHeight=n)},e.prototype.setReflow=function(e){var t=this;!1===e||this.unbindReflow?!1===e&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=O(w,`resize`,function(e){t.options&&t.reflow(e)}),O(this,`destroy`,this.unbindReflow))},e.prototype.setSize=function(e,t,n){var r=this,i=r.renderer;r.isResizing+=1,_(n,r),n=i.globalAnimation,r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,e!==void 0&&(r.options.chart.width=e),t!==void 0&&(r.options.chart.height=t),r.getChartSize(),r.styledMode||(n?h:M)(r.container,{width:r.chartWidth+`px`,height:r.chartHeight+`px`},n),r.setChartSize(!0),i.setSize(r.chartWidth,r.chartHeight,n),r.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(n),r.oldChartHeight=null,z(r,`resize`),Q(function(){r&&z(r,`endResize`,null,function(){--r.isResizing})},g(n).duration)},e.prototype.setChartSize=function(e){var t=this.inverted,n=this.renderer,r=this.chartWidth,i=this.chartHeight,a=this.options.chart,o=this.spacing,s=this.clipOffset,c,l,u,d;this.plotLeft=c=Math.round(this.plotLeft),this.plotTop=l=Math.round(this.plotTop),this.plotWidth=u=Math.max(0,Math.round(r-c-this.marginRight)),this.plotHeight=d=Math.max(0,Math.round(i-l-this.marginBottom)),this.plotSizeX=t?d:u,this.plotSizeY=t?u:d,this.plotBorderWidth=a.plotBorderWidth||0,this.spacingBox=n.spacingBox={x:o[3],y:o[0],width:r-o[3]-o[1],height:i-o[0]-o[2]},this.plotBox=n.plotBox={x:c,y:l,width:u,height:d},t=2*Math.floor(this.plotBorderWidth/2),r=Math.ceil(Math.max(t,s[3])/2),i=Math.ceil(Math.max(t,s[0])/2),this.clipBox={x:r,y:i,width:Math.floor(this.plotSizeX-Math.max(t,s[1])/2-r),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(t,s[2])/2-i))}
2,e||(this.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),n.alignElements()),z(this,`afterSetChartSize`,{skipAxes:e})},e.prototype.resetMargins=function(){z(this,`resetMargins`);var e=this,t=e.options.chart;[`margin`,`spacing`].forEach(function(n){var r=t[n],i=U(r)?r:[r,r,r,r];[`Top`,`Right`,`Bottom`,`Left`].forEach(function(r,a){e[n][a]=q(t[n+r],i[a])})}),S.forEach(function(t,n){e[t]=q(e.margin[n],e.spacing[n])}),e.axisOffset=[0,0,0,0],e.clipOffset=[0,0,0,0]},e.prototype.drawChartBox=function(){var e=this.options.chart,t=this.renderer,n=this.chartWidth,r=this.chartHeight,i=this.styledMode,a=this.plotBGImage,o=e.backgroundColor,s=e.plotBackgroundColor,c=e.plotBackgroundImage,l=this.plotLeft,u=this.plotTop,d=this.plotWidth,f=this.plotHeight,p=this.plotBox,m=this.clipRect,h=this.clipBox,g=this.chartBackground,_=this.plotBackground,v=this.plotBorder,y,b=`animate`;if(g||(this.chartBackground=g=t.rect().addClass(`highcharts-background`).add(),b=`attr`),i)var x=y=g.strokeWidth();else x=e.borderWidth||0,y=x+(e.shadow?8:0),o={fill:o||`none`},(x||g[`stroke-width`])&&(o.stroke=e.borderColor,o[`stroke-width`]=x),g.attr(o).shadow(e.shadow);g[b]({x:y/2,y:y/2,width:n-y-x%2,height:r-y-x%2,r:e.borderRadius}
2),b=`animate`,_||(b=`attr`,this.plotBackground=_=t.rect().addClass(`highcharts-plot-background`).add()),_[b](p),i||(_.attr({fill:s||`none`}).shadow(e.plotShadow),c&&(a?(c!==a.attr(`href`)&&a.attr(`href`,c),a.animate(p)):this.plotBGImage=t.image(c,l,u,d,f).add())),m?m.animate({width:h.width,height:h.height}):this.clipRect=t.clipRect(h),b=`animate`,v||(b=`attr`,this.plotBorder=v=t.rect().addClass(`highcharts-plot-border`).attr({zIndex:1}).add()),i||v.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:`none`}),v[b](v.crisp({x:l,y:u,width:d,height:f},-v.strokeWidth())),this.isDirtyBox=!1,z(this,`afterDrawChartBox`)},e.prototype.propFromSeries=function(){var e=this,t=e.options.chart,n=e.options.series,r,i,a;[`inverted`,`angular`,`polar`].forEach(function(o){for(i=D[t.type||t.defaultSeriesType],a=t[o]||i&&i.prototype[o],r=n&&n.length;!a&&r--;)(i=D[n[r].type])&&i.prototype[o]&&(a=!0);e[o]=a})},e.prototype.linkSeries=function(){var e=this,t=e.series;t.forEach(function(e){e.linkedSeries.length=0}),t.forEach(function(t){var n=t.options.linkedTo;W(n)&&(n=n===`:previous`?e.series[t.index-1]:e.get(n))&&n.linkedParent!==t&&(n.linkedSeries.push(t),t.linkedParent=n,n.enabledDataSorting&&t.setDataSortingOptions(),t.visible=q(t.options.visible,n.options.visible,t.visible))}),z(this,`afterLinkSeries`)},e.prototype.renderSeries=function(){this.series.forEach(function(e){e.translate(),e.render()})},e.prototype.renderLabels=function(){var e=this,t=e.options.labels;t.items&&t.items.forEach(function(n){var r=L(t.style,n.style),i=J(r.left)+e.plotLeft,a=J(r.top)+e.plotTop+12;delete r.left,delete r.top,e.renderer.text(n.html,i,a).attr({zIndex:2}).css(r).add()})},e.prototype.render=function(){var e=this.axes,t=this.colorAxis,n=this.renderer,r=this.options,i=function(e){e.forEach(function(e){e.visible&&e.render()})},o=0;this.setTitle(),this.legend=new a(this,r.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),r=this.plotWidth,e.some(function(e){if(e.horiz&&e.visible&&e.options.labels.enabled&&e.series.length)return o=21,!0});var s=this.plotHeight=Math.max(this.plotHeight-o,0);e.forEach(function(e){e.setScale()}),this.getAxisMargins();var c=1.1<r/this.plotWidth,l=1.05<s/this.plotHeight;(c||l)&&(e.forEach(function(e){(e.horiz&&c||!e.horiz&&l)&&e.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?i(e):t&&t.length&&i(t),this.seriesGroup||=n.g(`series-group`).attr({zIndex:3}).add(),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},e.prototype.addCredits=function(e){var t=this,n=G(!0,this.options.credits,e);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||``),0,0).addClass(`highcharts-credits`).on(`click`,function(){n.href&&(w.location.href=n.href)}).attr({align:n.position.align,zIndex:8}),t.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(e){t.credits=t.credits.destroy(),t.addCredits(e)})},e.prototype.destroy=function(){var e=this,t=e.axes,n=e.series,r=e.container,a=r&&r.parentNode,o;for(z(e,`destroy`),e.renderer.forExport?F(b,e):b[e.index]=void 0,i.chartCount--,e.renderTo.removeAttribute(`data-highcharts-chart`),X(e),o=t.length;o--;)t[o]=t[o].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),o=n.length;o--;)n[o]=n[o].destroy();
2`title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer`.split(` `).forEach(function(t){var n=e[t];n&&n.destroy&&(e[t]=n.destroy())}),r&&(r.innerHTML=m.emptyHTML,X(r),a&&P(r)),K(e,function(t,n){delete e[n]})},e.prototype.firstRender=function(){var e=this,t=e.options;(!e.isReadyToRender||e.isReadyToRender())&&(e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.getAxes(),(V(t.series)?t.series:[]).forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSeriesData(),z(e,`beforeRender`),c&&(e.pointer=o.isRequired()?new o(e,t):new c(e,t)),e.render(),e.pointer.getChartPosition(),!e.renderer.imgCount&&!e.hasLoaded&&e.onload(),e.temporaryDisplay(!0))},e.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(e){e&&this.index!==void 0&&e.apply(this,[this])},this),z(this,`load`),z(this,`render`),N(this.index)&&this.setReflow(this.options.chart.reflow),this.hasLoaded=!0},e.prototype.addSeries=function(e,t,n){var r=this,i;return e&&(t=q(t,!0),z(r,`addSeries`,{options:e},function(){i=r.initSeries(e),r.isDirtyLegend=!0,r.linkSeries(),i.enabledDataSorting&&i.setData(e.data,!1),z(r,`afterAddSeries`,{series:i}),t&&r.redraw(n)})),i},e.prototype.addAxis=function(e,t,n,r){return this.createAxis(t?`xAxis`:`yAxis`,{axis:e,redraw:n,animation:r})},e.prototype.addColorAxis=function(e,t,n){return this.createAxis(`colorAxis`,{axis:e,redraw:t,animation:n})},e.prototype.createAxis=function(e,n){return e=new t(this,G(n.axis,{index:this[e].length,isX:e===`xAxis`})),q(n.redraw,!0)&&this.redraw(n.animation),e},e.prototype.showLoading=function(e){var t=this,n=t.options,r=n.loading,i=function(){a&&M(a,{left:t.plotLeft+`px`,top:t.plotTop+`px`,width:t.plotWidth+`px`,height:t.plotHeight+`px`})},a=t.loadingDiv,o=t.loadingSpan;a||(t.loadingDiv=a=j(`div`,{className:`highcharts-loading highcharts-loading-hidden`},null,t.container)),o||(t.loadingSpan=o=j(`span`,{className:`highcharts-loading-inner`},null,a),O(t,`redraw`,i)),a.className=`highcharts-loading`,m.setElementHTML(o,q(e,n.lang.loading,``)),t.styledMode||(M(a,L(r.style,{zIndex:10})),M(o,r.labelStyle),t.loadingShown||(M(a,{opacity:0,display:``}),h(a,{opacity:r.style.opacity||.5},{duration:r.showDuration||0}))),t.loadingShown=!0,i()},e.prototype.hideLoading=function(){var e=this.options,t=this.loadingDiv;t&&(t.className=`highcharts-loading highcharts-loading-hidden`,this.styledMode||h(t,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){M(t,{display:`none`})}})),this.loadingShown=!1},e.prototype.update=function(e,t,n,r){var i=this,a={credits:`addCredits`,title:`setTitle`,subtitle:`setSubtitle`,caption:`setCaption`},o=e.isResponsiveOptions,s=[],c,l;z(i,`update`,{options:e}),o||i.setResponsive(!1,!0),e=A(e,i.options),i.userOptions=G(i.userOptions,e);var u=e.chart;if(u){if(G(!0,i.options.chart,u),`className`in u&&i.setClassName(u.className),`reflow`in u&&i.setReflow(u.reflow),`inverted`in u||`polar`in u||`type`in u){i.propFromSeries();var d=!0}`alignTicks`in u&&(d=!0),`events`in u&&y(this,u),K(u,function(e,t){i.propsRequireUpdateSeries.indexOf(`chart.`+t)!==-1&&(c=!0),i.propsRequireDirtyBox.indexOf(t)!==-1&&(i.isDirtyBox=!0),i.propsRequireReflow.indexOf(t)!==-1&&(o?i.isDirtyBox=!0:l=!0)}),!i.styledMode&&u.style&&i.renderer.setStyle(i.options.chart.style||{})}!i.styledMode&&e.colors&&(this.options.colors=e.colors),e.time&&(this.time===E&&(this.time=new f(e.time)),G(!0,i.options.time,e.time)),K(e,function(t,n){i[n]&&typeof i[n].update==`function`?i[n].update(t,!1):typeof i[a[n]]==`function`?i[a[n]](t):n!==`colors`&&i.collectionsWithUpdate.indexOf(n)===-1&&G(!0,i.options[n],e[n]),n!==`chart`&&i.propsRequireUpdateSeries.indexOf(n)!==-1&&(c=!0)}),this.collectionsWithUpdate.forEach(function(t){if(e[t]){var r=[];i[t].forEach(function(e,t){e.options.isInternal||r.push(q(e.options.index,t))}),Z(e[t]).forEach(function(e,a){var o=N(e.id),s;o&&(s=i.get(e.id)),!s&&i[t]&&(s=i[t][r?r[a]:a])&&o&&N(s.options.id)&&(s=void 0),s&&s.coll===t&&(s.update(e,!1),n&&(s.touched=!0)),!s&&n&&i.collectionsWithInit[t]&&(i.collectionsWithInit[t][0].apply(i,[e].
2concat(i.collectionsWithInit[t][1]||[],[!1])).touched=!0)}),n&&i[t].forEach(function(e){e.touched||e.options.isInternal?delete e.touched:s.push(e)})}}),s.forEach(function(e){e.chart&&e.remove&&e.remove(!1)}),d&&i.axes.forEach(function(e){e.update({},!1)}),c&&i.getSeriesOrderByLinks().forEach(function(e){e.chart&&e.update({},!1)},this),d=u&&u.width,u&&=W(u.height)?Y(u.height,d||i.chartWidth):u.height,l||H(d)&&d!==i.chartWidth||H(u)&&u!==i.chartHeight?i.setSize(d,u,r):q(t,!0)&&i.redraw(r),z(i,`afterUpdate`,{options:e,redraw:t,animation:r})},e.prototype.setSubtitle=function(e,t){this.applyDescription(`subtitle`,e),this.layOutTitles(t)},e.prototype.setCaption=function(e,t){this.applyDescription(`caption`,e),this.layOutTitles(t)},e.prototype.showResetZoom=function(){function e(){t.zoomOut()}var t=this,n=T.lang,r=t.options.chart.resetZoomButton,i=r.theme,a=i.states,o=r.relativeTo===`chart`||r.relativeTo===`spacingBox`?null:`scrollablePlotBox`;z(this,`beforeShowResetZoom`,null,function(){t.resetZoomButton=t.renderer.button(n.resetZoom,null,null,e,i,a&&a.hover).attr({align:r.position.align,title:n.resetZoomTitle}).addClass(`highcharts-reset-zoom`).add().align(r.position,!1,o)}),z(this,`afterShowResetZoom`)},e.prototype.zoomOut=function(){z(this,`selection`,{resetSelection:!0}
2,this.zoom)},e.prototype.zoom=function(e){var t=this,n=t.pointer,r=t.inverted?n.mouseDownX:n.mouseDownY,i=!1,a;!e||e.resetSelection?(t.axes.forEach(function(e){a=e.zoom()}),n.initiated=!1):e.xAxis.concat(e.yAxis).forEach(function(e){var o=e.axis,s=t.inverted?o.left:o.top,c=t.inverted?s+o.width:s+o.height,l=o.isXAxis,u=!1;(!l&&r>=s&&r<=c||l||!N(r))&&(u=!0),n[l?`zoomX`:`zoomY`]&&u&&(a=o.zoom(e.min,e.max),o.displayBtn&&(i=!0))});var o=t.resetZoomButton;i&&!o?t.showResetZoom():!i&&U(o)&&(t.resetZoomButton=o.destroy()),a&&t.redraw(q(t.options.chart.animation,e&&e.animation,100>t.pointCount))},e.prototype.pan=function(e,t){var n=this,r=n.hoverPoints;t=typeof t==`object`?t:{enabled:t,type:`x`};var i=n.options.chart,a=n.options.mapNavigation&&n.options.mapNavigation.enabled;i&&i.panning&&(i.panning=t);var o=t.type,s;z(this,`pan`,{originalEvent:e},function(){r&&r.forEach(function(e){e.setState()});var t=n.xAxis;o===`xy`?t=t.concat(n.yAxis):o===`y`&&(t=n.yAxis);var i={};t.forEach(function(t){if(t.options.panningEnabled&&!t.options.isInternal){var r=t.horiz,c=e[r?`chartX`:`chartY`];r=r?`mouseDownX`:`mouseDownY`;var l=n[r],u=t.minPointOffset||0,d=t.reversed&&!n.inverted||!t.reversed&&n.inverted?-1:1,f=t.getExtremes(),p=t.toValue(l-c,!0)+u*d,m=t.toValue(l+t.len-c,!0)-(u*d||t.isXAxis&&t.pointRangePadding||0),h=m<p;d=t.hasVerticalPanning(),l=h?m:p,p=h?p:m;var g=t.panningState;!d||t.isXAxis||g&&!g.isDirty||t.series.forEach(function(e){var t=e.getProcessedData(!0);t=e.getExtremes(t.yData,!0),g||={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE},H(t.dataMin)&&H(t.dataMax)&&(g.startMin=Math.min(q(e.options.threshold,1/0),t.dataMin,g.startMin),g.startMax=Math.max(q(e.options.threshold,-1/0),t.dataMax,g.startMax))}),d=Math.min(q(g&&g.startMin,f.dataMin),u?f.min:t.toValue(t.toPixels(f.min)-t.minPixelPadding)),m=Math.max(q(g&&g.startMax,f.dataMax),u?f.max:t.toValue(t.toPixels(f.max)+t.minPixelPadding)),t.panningState=g,t.isOrdinal||(u=d-l,0<u&&(p+=u,l=d),u=p-m,0<u&&(p=m,l-=u),t.series.length&&l!==f.min&&p!==f.max&&l>=d&&p<=m&&(t.setExtremes(l,p,!1,!1,{trigger:`pan`}),n.resetZoomButton||a||l===d||p===m||!o.match(`y`)||(n.showResetZoom(),t.displayBtn=!1),s=!0),i[r]=c)}}),K(i,function(e,t){n[t]=e}),s&&n.redraw(!1),M(n.container,{cursor:`move`})})},e}(),L(e.prototype,{callbacks:[],collectionsWithInit:{xAxis:[e.prototype.addAxis,[!0]],yAxis:[e.prototype.addAxis,[!1]],series:[e.prototype.addSeries]},collectionsWithUpdate:[`xAxis`,`yAxis`,`series`],propsRequireDirtyBox:`backgroundColor borderColor borderWidth borderRadius plotBackgroun
2dColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow`.split(` `),propsRequireReflow:`margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft`.split(` `),propsRequireUpdateSeries:`chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip`.split(` `)}),e}),t(n,`Core/Legend/LegendSymbol.js`,[n[`Core/Utilities.js`]],function(e){var t=e.merge,n=e.pick,r;return(function(e){e.drawLineMarker=function(e){var r=this.options,i=e.symbolWidth,a=e.symbolHeight,o=a/2,s=this.chart.renderer,c=this.legendGroup;e=e.baseline-Math.round(.3*e.fontMetrics.b);var l={},u=r.marker;this.chart.styledMode||(l={"stroke-width":r.lineWidth||0},r.dashStyle&&(l.dashstyle=r.dashStyle)),this.legendLine=s.path([[`M`,0,e],[`L`,i,e]]).addClass(`highcharts-graph`).attr(l).add(c),u&&!1!==u.enabled&&i&&(r=Math.min(n(u.radius,o),o),this.symbol.indexOf(`url`)===0&&(u=t(u,{width:a,height:a}),r=0),this.legendSymbol=i=s.symbol(this.symbol,i/2-r,e-r,2*r,2*r,u).addClass(`highcharts-point`).add(c),i.isMarker=!0)},e.drawRectangle=function(e,t){var r=e.symbolHeight,i=e.options.squareSymbol;t.legendSymbol=this.chart.renderer.rect(i?(e.symbolWidth-r)/2:0,e.baseline-r+1,i?r:e.symbolWidth,r,n(e.options.symbolRadius,r/2)).addClass(`highcharts-point`).attr({zIndex:3}).add(t.legendGroup)}})(r||={}),r}),t(n,`Core/Series/SeriesDefaults.js`,[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:`#ffffff`,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:`#cccccc`,lineColor:`#000000`,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:`center`,defer:!0,formatter:function(){var e=this.series.chart.numberFormatter;return typeof this.y==`number`?e(this.y,-1):``},padding:5,style:{fontSize:`11px`,fontWeight:`bold`,color:`contrast`,textOutline:`1px contrast`},verticalAlign:`bottom`,x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:`x`}}),t(n,`Core/Series/Series.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/DefaultOptions.js`],n[`Core/Foundation.js`],n[`Core/Globals.js`],n[`Core/Legend/LegendSymbol.js`],n[`Core/Series/Point.js`],n[`Core/Series/SeriesDefaults.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s,c,l){var u=e.animObject,d=e.setAnimation,f=t.defaultOptions,p=n.registerEventOptions,m=r.hasTouch,h=r.svg,g=r.win,_=s.seriesTypes,v=l.addEvent,y=l.arrayMax,b=l.arrayMin,x=l.clamp,S=l.cleanRecursively,C=l.correctFloat,w=l.defined,T=l.erase,E=l.error,D=l.extend,O=l.find,k=l.fireEvent,A=l.getNestedProperty,j=l.isArray,M=l.isNumber,N=l.isString,P=l.merge,F=l.objectEach,I=l.pick,L=l.removeEvent,R=l.splat,z=l.syncTimeout;return e=function(){function e(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return e.prototype.init=function(e,t){k(this,`init`,{options:t});var n=this,r=e.series;this.eventsToUnbind=[],n.chart=e,n.options=n.setOptions(t),t=n.options,n.linkedSeries=[],n.bindAxes(),D(n,{name:t.name,state:``,visible:!1!==t.visible,selected:!0===t.selected}),p(this,t);var i=t.events;(i&&i.click||t.point&&t.point.events&&t.point.events.click||t.allowPointSelect)&&(e.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach(function(e){n[e+`Data`]||(n[e+`Data`]=[])}),n.isCartesian&&(e.hasCartesianSeries=!0);var a;r.length&&(a=r[r.length-1]),n._i=I(a&&a._i,-1)+1,n.opacity=n.options.opacity,e.orderSeries(this.insert(r)),t.dataSorting&&t.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(t.data,!1),k(this,`afterInit`)},e.prototype.is=function(e){return _[e]&&this instanceof _[e]},e.prototype.insert=function(e){var t=this.options.index,n;if(M(t)){for(n=e.length;n--;)if(t>=I(e[n].options.index,e[n]._i)){e.splice(n+1,0,this);break}n===-1&&e.unshift(this),n+=1}else e.push(this);return I(n,e.length-1)},e.prototype.bindAxes=function(){var e=this,t=e.options,n=e.chart,r;
2k(this,`bindAxes`,null,function(){(e.axisTypes||[]).forEach(function(i){var a=0;n[i].forEach(function(n){r=n.options,(t[i]===a&&!r.isInternal||t[i]!==void 0&&t[i]===r.id||t[i]===void 0&&r.index===0)&&(e.insert(n.series),e[i]=n,n.isDirty=!0),r.isInternal||a++}),e[i]||e.optionalAxis===i||E(18,!0,n)})}),k(this,`afterBindAxes`)},e.prototype.updateParallelArrays=function(e,t){var n=e.series,r=arguments,i=M(t)?function(r){var i=r===`y`&&n.toYData?n.toYData(e):e[r];n[r+`Data`][t]=i}:function(e){Array.prototype[t].apply(n[e+`Data`],Array.prototype.slice.call(r,2))};n.parallelArrays.forEach(i)},e.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&0<this.yData.length},e.prototype.autoIncrement=function(e){var t=this.options,n=t.pointIntervalUnit,r=t.relativeXValue,i=this.chart.time,a=this.xIncrement,o;return a=I(a,t.pointStart,0),this.pointInterval=o=I(this.pointInterval,t.pointInterval,1),r&&M(e)&&(o*=e),n&&(t=new i.Date(a),n===`day`?i.set(`Date`,t,i.get(`Date`,t)+o):n===`month`?i.set(`Month`,t,i.get(`Month`,t)+o):n===`year`&&i.set(`FullYear`,t,i.get(`FullYear`,t)+o),o=t.getTime()-a),r&&M(e)?a+o:(this.xIncrement=a+o,a)},e.prototype.setDataSortingOptions=function(){var e=this.options;D(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),w(e.pointRange)||(e.pointRange=1)},e.prototype.setOptions=function(e){var t=this.chart,n=t.options,r=n.plotOptions,i=t.userOptions||{};e=P(e),t=t.styledMode;var a={plotOptions:r,userOptions:e};k(this,`setOptions`,a);var o=a.plotOptions[this.type],s=i.plotOptions||{};return this.userOptions=a.userOptions,i=P(o,r.series,i.plotOptions&&i.plotOptions[this.type],e),this.tooltipOptions=P(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,n.tooltip.userOptions,r.series&&r.series.tooltip,r[this.type].tooltip,e.tooltip),this.stickyTracking=I(e.stickyTracking,s[this.type]&&s[this.type].stickyTracking,s.series&&s.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:i.stickyTracking),o.marker===null&&delete i.marker,this.zoneAxis=i.zoneAxis,r=this.zones=(i.zones||[]).slice(),!i.negativeColor&&!i.negativeFillColor||i.zones||(n={value:i[this.zoneAxis+`Threshold`]||i.threshold||0,className:`highcharts-negative`},t||(n.color=i.negativeColor,n.fillColor=i.negativeFillColor),r.push(n)),r.length&&w(r[r.length-1].value)&&r.push(t?{}:{color:this.color,fillColor:this.fillColor}),k(this,`afterSetOptions`,{options:i}),i},e.prototype.getName=function(){return I(this.options.name,`Series `+(this.index+1))},e.prototype.getCyclic=function(e,t,n){var r=this.chart,i=this.userOptions,a=e+`Index`,o=e+`Counter`,s=n?n.length:I(r.options.chart[e+`Count`],r[e+`Count`]);if(!t){var c=I(i[a],i[`_`+a]);w(c)||(r.series.length||(r[o]=0),i[`_`+a]=c=r[o]%s,r[o]+=1),n&&(t=n[c])}c!==void 0&&(this[a]=c),this[e]=t},e.prototype.getColor=function(){this.chart.styledMode?this.getCyclic(`color`):this.options.colorByPoint?this.color=`#cccccc`:this.getCyclic(`color`,this.options.color||f.plotOptions[this.type].color,this.chart.options.colors)},e.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},e.prototype.getSymbol=function(){this.getCyclic(`symbol`,this.options.marker.symbol,this.chart.options.symbols)},e.prototype.findPointIndex=function(e,t){var n=e.id,r=e.x,i=this.points,o=this.options.dataSorting,s,c;if(n)o=this.chart.get(n),o instanceof a&&(s=o);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(s=function(t){return!t.touched&&t.index===e.index},o&&o.matchByName?s=function(t){return!t.touched&&t.name===e.name}:this.options.relativeXValue&&(s=function(t){return!t.touched&&t.options.x===e.x}),s=O(i,s),!s))return;if(s){var l=s&&s.index;l!==void 0&&(c=!0)}return l===void 0&&M(r)&&(l=this.xData.indexOf(r,t)),l!==-1&&l!==void 0&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!c&&M(l)&&i[l]&&i[l].touched&&(l=void 0),l},e.prototype.updateData=function(e,t){var n=this.options,r=n.dataSorting,i=this.points,a=[],o=this.requireSorting,s=e.length===i.length,c,l,u,d=!0;if(this.xIncrement=null,e.forEach(function(e,t){var l=w(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},d=l.x;l.id||M(d)?(l=this.findPointIndex(l,u),l===-1||l===void 0?a.push(e):i[l]&&e!==n.data[l]?(i[l].update(e,!1,null,!1),i[l].touched=!0,o&&(u=l+1)):i[l]&&(i[l].touched=!0),(!s||t!==l||r&&r.enabled||this.hasDerivedData)&&(c=!0)):a.push(e)},this),c)for(e=i.length;e--;)(l=i[e])&&!l.touched&&l.remove&&l.remove(!1,t);else!s||r&&r.enabled?d=!1:(e.forEach(function(e,t){e!==i[t].y&&i[t].update&&i[t].update(e,!1,null,!1)}),a.length=0);
2return i.forEach(function(e){e&&(e.touched=!1)}),d?(a.forEach(function(e){this.addPoint(e,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=y(this.xData),this.autoIncrement()),!0):!1},e.prototype.setData=function(e,t,n,r){var i=this,a=i.points,o=a&&a.length||0,s=i.options,c=i.chart,l=s.dataSorting,u=i.xAxis,d=s.turboThreshold,f=this.xData,p=this.yData,m=i.pointArrayMap;m&&=m.length;var h=s.keys,g,_=0,v=1,y=null;e||=[];var b=e.length;if(t=I(t,!0),l&&l.enabled&&(e=this.sortData(e)),!1!==r&&b&&o&&!i.cropped&&!i.hasGroupedData&&i.visible&&!i.isSeriesBoosting&&(g=this.updateData(e,n)),!g){if(i.xIncrement=null,i.colorCounter=0,this.parallelArrays.forEach(function(e){i[e+`Data`].length=0}),d&&b>d){if(y=i.getFirstValidPoint(e),M(y))for(n=0;n<b;n++)f[n]=this.autoIncrement(),p[n]=e[n];else if(j(y)){if(m){if(y.length===m)for(n=0;n<b;n++)f[n]=this.autoIncrement(),p[n]=e[n];else for(n=0;n<b;n++)r=e[n],f[n]=r[0],p[n]=r.slice(1,m+1)}else if(h&&(_=h.indexOf(`x`),v=h.indexOf(`y`),_=0<=_?_:0,v=0<=v?v:1),y.length===1&&(v=0),_===v)for(n=0;n<b;n++)f[n]=this.autoIncrement(),p[n]=e[n][v];else for(n=0;n<b;n++)r=e[n],f[n]=r[_],p[n]=r[v]}else E(12,!1,c)}else for(n=0;n<b;n++)e[n]!==void 0&&(r={series:i},i.pointClass.prototype.applyOptions.apply(r,[e[n]]),i.updateParallelArrays(r,n));for(p&&N(p[0])&&E(14,!0,c),i.data=[],i.options.data=i.userOptions.data=e,n=o;n--;)a[n]&&a[n].destroy&&a[n].destroy();u&&(u.minRange=u.userMinRange),i.isDirty=c.isDirtyBox=!0,i.isDirtyData=!!a,n=!1}s.legendType===`point`&&(this.processData(),this.generatePoints()),t&&c.redraw(n)},e.prototype.sortData=function(e){var t=this,n=t.options.dataSorting.sortKey||`y`,r=function(e,t){return w(t)&&e.pointClass.prototype.optionsToObject.call({series:e},t)||{}};return e.forEach(function(n,i){e[i]=r(t,n),e[i].index=i},this),e.concat().sort(function(e,t){return e=A(n,e),t=A(n,t),t<e?-1:+(t>e)}).forEach(function(e,t){e.x=t},this),t.linkedSeries&&t.linkedSeries.forEach(function(t){var n=t.options,i=n.data;n.dataSorting&&n.dataSorting.enabled||!i||(i.forEach(function(n,a){i[a]=r(t,n),e[a]&&(i[a].x=e[a].x,i[a].index=a)}),t.setData(i,!1))}),e},e.prototype.getProcessedData=function(e){var t=this.xAxis,n=this.options,r=n.cropThreshold,i=e||this.getExtremesFromAll||n.getExtremesFromAll,a=this.isCartesian;e=t&&t.val2lin,n=!(!t||!t.logarithmic);var o=0,s=this.xData,c=this.yData,l=this.requireSorting,u=!1,d=s.length;if(t){u=t.getExtremes();var f=u.min,p=u.max;u=t.categories&&!t.names.length}if(a&&this.sorted&&!i&&(!r||d>r||this.forceCrop)){if(s[d-1]<f||s[0]>p)s=[],c=[];else if(this.yData&&(s[0]<f||s[d-1]>p)){var m=this.cropData(this.xData,this.yData,f,p);s=m.xData,c=m.yData,o=m.start,m=!0}}for(r=s.length||1;--r;)if(t=n?e(s[r])-e(s[r-1]):s[r]-s[r-1],0<t&&(h===void 0||t<h))var h=t;else 0>t&&l&&!u&&(E(15,!1,this.chart),l=!1);return{xData:s,yData:c,cropped:m,cropStart:o,closestPointRange:h}},e.prototype.processData=function(e){var t=this.xAxis;if(this.isCartesian&&!this.isDirty&&!t.isDirty&&!this.yAxis.isDirty&&!e)return!1;e=this.getProcessedData(),this.cropped=e.cropped,this.cropStart=e.cropStart,this.processedXData=e.xData,this.processedYData=e.yData,this.closestPointRange=this.basePointRange=e.closestPointRange,k(this,`afterProcessData`)},e.prototype.cropData=function(e,t,n,r,i){var a=e.length,o,s=0,c=a;for(i=I(i,this.cropShoulder),o=0;o<a;o++)if(e[o]>=n){s=Math.max(0,o-i);break}for(n=o;n<a;n++)if(e[n]>r){c=n+i;break}return{xData:e.slice(s,c),yData:t.slice(s,c),start:s,end:c}},e.prototype.generatePoints=function(){var e=this.options,t=e.data,n=this.processedXData,r=this.processedYData,i=this.pointClass,a=n.length,o=this.cropStart||0,s=this.hasGroupedData,c=e.keys,l=[];e=e.dataGrouping&&e.dataGrouping.groupAll?o:0;var u,d,f=this.data;if(!f&&!s){var p=[];p.length=t.length,f=this.data=p}for(c&&s&&(this.options.keys=!1),d=0;d<a;d++){if(p=o+d,s){var m=new i().init(this,[n[d]].concat(R(r[d])));m.dataGroup=this.groupMap[e+d],m.dataGroup.options&&(m.options=m.dataGroup.options,D(m,m.dataGroup.options),delete m.dataLabels)}else(m=f[p])||t[p]===void 0||(f[p]=m=new i().init(this,t[p],n[d]));m&&(m.index=s?e+d:p,l[d]=m)}if(this.options.keys=c,f&&(a!==(u=f.length)||s))for(d=0;d<u;d++)d!==o||s||(d+=a),f[d]&&(f[d].destroyElements(),f[d].plotX=void 0);this.data=f,this.points=l,k(this,`afterGeneratePoints`)},e.prototype.getXExtremes=function(e){return{min:b(e),max:y(e)}},e.prototype.getExtremes=function(e,t){var n=this.xAxis,r=this.yAxis,i=this.processedXData||this.xData,a=[],o=this.requireSorting?this.cropShoulder:0;r=r?r.positiveValuesOnly:!1;var s,c=0,l=0,u=0;e=e||this.stackedYData||this.processedYData||[];var d=e.length;if(n){var f=n.getExtremes();c=f.min,l=f.max}for(s=0;s<d;s++){var p=i[s];f=e[s];var m=(M(f)||j(f))&&(f.length||0<f||!r);if(p=t||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!n||(i[s+o]||p)>=c&&(i[s-o]||p)<=l,m&&p){if(m=f.length)for(;m--;)M(f[m])&&(a[u++]=f[m]);else a[u++]=f}}return e={activeYData:a,dataMin:b(a),dataMax:y(a)}
2,k(this,`afterGetExtremes`,{dataExtremes:e}),e},e.prototype.applyExtremes=function(){var e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e},e.prototype.getFirstValidPoint=function(e){for(var t=e.length,n=0,r=null;r===null&&n<t;)r=e[n],n++;return r},e.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var e=this.options,t=e.stacking,n=this.xAxis,r=n.categories,i=this.enabledDataSorting,a=this.yAxis,o=this.points,s=o.length,c=this.pointPlacementToXValue(),l=!!c,u=e.threshold,d=e.startFromThreshold?u:0,f=this.zoneAxis||`y`,p,m,h=Number.MAX_VALUE;for(p=0;p<s;p++){var g=o[p],_=g.x,v=void 0,y=void 0,b=g.y,S=g.low,T=t&&a.stacking&&a.stacking.stacks[(this.negStacks&&b<(d?0:u)?`-`:``)+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(b)||n.positiveValuesOnly&&!n.validatePositiveValue(_))&&(g.isNull=!0),g.plotX=m=C(x(n.translate(_,0,0,0,1,c,this.type===`flags`),-1e5,1e5)),t&&this.visible&&T&&T[_]){var E=this.getStackIndicator(E,_,this.index);g.isNull||(v=T[_],y=v.points[E.key])}if(j(y)&&(S=y[0],b=y[1],S===d&&E.key===T[_].base&&(S=I(M(u)&&u,a.min)),a.positiveValuesOnly&&0>=S&&(S=null),g.total=g.stackTotal=v.total,g.percentage=v.total&&g.y/v.total*100,g.stackY=b,this.irregularWidths||v.setOffset(this.pointXOffset||0,this.barW||0)),g.yBottom=w(S)?x(a.translate(S,0,1,0,1),-1e5,1e5):null,this.dataModify&&(b=this.dataModify.modifyValue(b,p)),g.plotY=void 0,M(b)&&(v=a.translate(b,!1,!0,!1,!0),v!==void 0&&(g.plotY=x(v,-1e5,1e5))),g.isInside=this.isPointInside(g),g.clientX=l?C(n.translate(_,0,0,0,1,c)):m,g.negative=g[f]<(e[f+`Threshold`]||u||0),g.category=r&&r[g.x]!==void 0?r[g.x]:g.x,!g.isNull&&!1!==g.visible){D!==void 0&&(h=Math.min(h,Math.abs(m-D)));var D=m}g.zone=this.zones.length?g.getZone():void 0,!g.graphic&&this.group&&i&&(g.isNew=!0)}this.closestPointRangePx=h,k(this,`afterTranslate`)},e.prototype.getValidPoints=function(e,t,n){var r=this.chart;return(e||this.points||[]).filter(function(e){return t&&!r.isInsidePlot(e.plotX,e.plotY,{inverted:r.inverted})?!1:!1!==e.visible&&(n||!e.isNull)})},e.prototype.getClipBox=function(){var e=this.chart,t=this.xAxis,n=this.yAxis,r=P(e.clipBox);return t&&t.len!==e.plotSizeX&&(r.width=t.len),n&&n.len!==e.plotSizeY&&(r.height=n.len),r},e.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+`,`+(this.options.yAxis||0)},e.prototype.setClip=function(){var e=this.chart,t=this.group,n=this.markerGroup,r=e.sharedClips;e=e.renderer;var i=this.getClipBox(),a=this.getSharedClipKey(),o=r[a];o?o.animate(i):r[a]=o=e.clipRect(i),t&&t.clip(!1===this.options.clip?void 0:o),n&&n.clip()},e.prototype.animate=function(e){var t=this.chart,n=this.group,r=this.markerGroup,i=t.inverted,a=u(this.options.animation),o=[this.getSharedClipKey(),a.duration,a.easing,a.defer].join(),s=t.sharedClips[o],c=t.sharedClips[o+`m`];if(e&&n)a=this.getClipBox(),s?s.attr(`height`,a.height):(a.width=0,i&&(a.x=t.plotHeight),s=t.renderer.clipRect(a),t.sharedClips[o]=s,c=t.renderer.clipRect({x:i?(t.plotSizeX||0)+99:-99,y:i?-t.plotLeft:-t.plotTop,width:99,height:i?t.chartWidth:t.chartHeight}),t.sharedClips[o+`m`]=c),n.clip(s),r&&r.clip(c);else if(s&&!s.hasClass(`highcharts-animating`)){t=this.getClipBox();var l=a.step;r&&r.element.childNodes.length&&(a.step=function(e,t){l&&l.apply(t,arguments),c&&c.element&&c.attr(t.prop,t.prop===`width`?e+99:e)}),s.addClass(`highcharts-animating`).animate(t,a)}},e.prototype.afterAnimate=function(){var e=this;this.setClip(),F(this.chart.sharedClips,function(t,n,r){t&&!e.chart.container.querySelector(`[clip-path="url(#`+t.id+`)"]`)&&(t.destroy(),delete r[n])}),this.finishedAnimating=!0,k(this,`afterAnimate`)},e.prototype.drawPoints=function(){var e=this.points,t=this.chart,n=this.options.marker,r=this[this.specialGroup]||this.markerGroup,i=this.xAxis,a=I(n.enabled,!i||i.isRadial?!0:null,this.closestPointRangePx>=n.enabledThreshold*n.radius),o,s;if(!1!==n.enabled||this._hasPointMarkers)for(o=0;o<e.length;o++){var c=e[o],l=(s=c.graphic)?`animate`:`attr`,u=c.marker||{},d=!!c.marker;if((a&&u.enabled===void 0||u.enabled)&&!c.isNull&&!1!==c.visible){var f=I(u.symbol,this.symbol,`rect`),p=this.markerAttribs(c,c.selected&&`select`);this.enabledDataSorting&&(c.startXPos=i.reversed?-(p.width||0):i.width);var m=!1!==c.isInside;s?s[m?`show`:`hide`](m).animate(p):m&&(0<(p.width||0)||c.hasImage)&&(c.graphic=s=t.renderer.symbol(f,p.x,p.y,p.width,p.height,d?u:n).add(r),this.enabledDataSorting&&t.hasRendered&&(s.attr({x:c.startXPos}),l=`animate`)),s&&l===`animate`&&s[m?`show`:`hide`](m).animate(p),s&&!t.styledMode&&s[l](this.pointAttribs(c,c.selected&&`select`)),s&&s.addClass(c.getClassName(),!0)}else s&&(c.graphic=s.destroy())}},e.prototype.markerAttribs=function(e,t){var n=this.options,r=n.marker,i=e.marker||{},a=i.symbol||r.symbol,o=I(i.radius,r.radius);
2return t&&(r=r.states[t],t=i.states&&i.states[t],o=I(t&&t.radius,r&&r.radius,o+(r&&r.radiusPlus||0))),e.hasImage=a&&a.indexOf(`url`)===0,e.hasImage&&(o=0),e={x:n.crisp?Math.floor(e.plotX-o):e.plotX-o,y:e.plotY-o},o&&(e.width=e.height=2*o),e},e.prototype.pointAttribs=function(e,t){var n=this.options.marker,r=e&&e.options,i=r&&r.marker||{},a=r&&r.color,o=e&&e.color,s=e&&e.zone&&e.zone.color,c=this.color;return e=I(i.lineWidth,n.lineWidth),r=1,c=a||s||o||c,a=i.fillColor||n.fillColor||c,o=i.lineColor||n.lineColor||c,t||=`normal`,n=n.states[t]||{},t=i.states&&i.states[t]||{},e=I(t.lineWidth,n.lineWidth,e+I(t.lineWidthPlus,n.lineWidthPlus,0)),a=t.fillColor||n.fillColor||a,o=t.lineColor||n.lineColor||o,r=I(t.opacity,n.opacity,r),{stroke:o,"stroke-width":e,fill:a,opacity:r}},e.prototype.destroy=function(e){var t=this,n=t.chart,r=/AppleWebKit\/533/.test(g.navigator.userAgent),i=t.data||[],a,o,s,u;for(k(t,`destroy`),this.removeEvents(e),(t.axisTypes||[]).forEach(function(e){(u=t[e])&&u.series&&(T(u.series,t),u.isDirty=u.forceRedraw=!0)}),t.legendItem&&t.chart.legend.destroyItem(t),o=i.length;o--;)(s=i[o])&&s.destroy&&s.destroy();t.clips&&t.clips.forEach(function(e){return e.destroy()}),l.clearTimeout(t.animationTimeout),F(t,function(e,t){e instanceof c&&!e.survive&&(a=r&&t===`group`?`hide`:`destroy`,e[a]())}),n.hoverSeries===t&&(n.hoverSeries=void 0),T(n.series,t),n.orderSeries(),F(t,function(n,r){e&&r===`hcEvents`||delete t[r]})},e.prototype.applyZones=function(){var e=this,t=this.chart,n=t.renderer,r=this.zones,i=this.clips||[],a=this.graph,o=this.area,s=Math.max(t.chartWidth,t.chartHeight),c=this[(this.zoneAxis||`y`)+`Axis`],l=t.inverted,u,d,f,p,m,h,g,_,v=!1;if(r.length&&(a||o)&&c&&c.min!==void 0){var y=c.reversed,b=c.horiz;a&&!this.showLine&&a.hide(),o&&o.hide();var S=c.getExtremes();r.forEach(function(r,C){u=y?b?t.plotWidth:0:b?0:c.toPixels(S.min)||0,u=x(I(d,u),0,s),d=x(Math.round(c.toPixels(I(r.value,S.max),!0)||0),0,s),v&&(u=d=c.toPixels(S.max)),p=Math.abs(u-d),m=Math.min(u,d),h=Math.max(u,d),c.isXAxis?(f={x:l?h:m,y:0,width:p,height:s},b||(f.x=t.plotHeight-f.x)):(f={x:0,y:l?h:m,width:s,height:p},b&&(f.y=t.plotWidth-f.y)),l&&n.isVML&&(f=c.isXAxis?{x:0,y:y?m:h,height:f.width,width:t.chartWidth}:{x:f.y-t.plotLeft-t.spacingBox.x,y:0,width:f.height,height:t.chartHeight}),i[C]?i[C].animate(f):i[C]=n.clipRect(f),g=e[`zone-area-`+C],_=e[`zone-graph-`+C],a&&_&&_.clip(i[C]),o&&g&&g.clip(i[C]),v=r.value>S.max,e.resetZones&&d===0&&(d=void 0)}),this.clips=i}else e.visible&&(a&&a.show(!0),o&&o.show(!0))},e.prototype.invertGroups=function(e){function t(){[`group`,`markerGroup`].forEach(function(t){n[t]&&(r.renderer.isVML&&n[t].attr({width:n.yAxis.len,height:n.xAxis.len}),n[t].width=n.yAxis.len,n[t].height=n.xAxis.len,n[t].invert(!n.isRadialSeries&&e))})}var n=this,r=n.chart;n.xAxis&&(n.eventsToUnbind.push(v(r,`resize`,t)),t(),n.invertGroups=t)},e.prototype.plotGroup=function(e,t,n,r,i){var a=this[e],o=!a;return n={visibility:n,zIndex:r||.1},this.opacity===void 0||this.chart.styledMode||this.state===`inactive`||(n.opacity=this.opacity),o&&(this[e]=a=this.chart.renderer.g().add(i)),a.addClass(`highcharts-`+t+` highcharts-series-`+this.index+` highcharts-`+this.type+`-series `+(w(this.colorIndex)?`highcharts-color-`+this.colorIndex+` `:``)+(this.options.className||``)+(a.hasClass(`highcharts-tracker`)?` highcharts-tracker`:``),!0),a.attr(n)[o?`attr`:`animate`](this.getPlotBox()),a},e.prototype.getPlotBox=function(){var e=this.chart,t=this.xAxis,n=this.yAxis;return e.inverted&&(t=n,n=this.xAxis),{translateX:t?t.left:e.plotLeft,translateY:n?n.top:e.plotTop,scaleX:1,scaleY:1}},e.prototype.removeEvents=function(e){e||L(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(e){e()}),this.eventsToUnbind.length=0)},e.prototype.render=function(){var e=this,t=e.chart,n=e.options,r=u(n.animation),i=e.visible?`inherit`:`hidden`,a=n.zIndex,o=e.hasRendered,s=t.seriesGroup,c=t.inverted;t=!e.finishedAnimating&&t.renderer.isSVG?r.duration:0,k(this,`render`);var l=e.plotGroup(`group`,`series`,i,a,s);e.markerGroup=e.plotGroup(`markerGroup`,`markers`,i,a,s),!1!==n.clip&&e.setClip(),e.animate&&t&&e.animate(!0),l.inverted=I(e.invert
2ible,e.isCartesian)?c:!1,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels&&e.drawDataLabels(),e.redrawPoints&&e.redrawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(c),e.animate&&t&&e.animate(),o||(t&&r.defer&&(t+=r.defer),e.animationTimeout=z(function(){e.afterAnimate()},t||0)),e.isDirty=!1,e.hasRendered=!0,k(e,`afterRender`)},e.prototype.redraw=function(){var e=this.chart,t=this.isDirty||this.isDirtyData,n=this.group,r=this.xAxis,i=this.yAxis;n&&(e.inverted&&n.attr({width:e.plotWidth,height:e.plotHeight}),n.animate({translateX:I(r&&r.left,e.plotLeft),translateY:I(i&&i.top,e.plotTop)})),this.translate(),this.render(),t&&delete this.kdTree},e.prototype.searchPoint=function(e,t){var n=this.xAxis,r=this.yAxis,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:i?r.len-e.chartX+r.pos:e.chartY-r.pos},t,e)},e.prototype.buildKDTree=function(e){function t(e,r,i){var a=e&&e.length;if(a){var o=n.kdAxisArray[r%i];return e.sort(function(e,t){return e[o]-t[o]}),a=Math.floor(a/2),{point:e[a],left:t(e.slice(0,a),r+1,i),right:t(e.slice(a+1),r+1,i)}}}this.buildingKdTree=!0;var n=this,r=-1<n.options.findNearestPointBy.indexOf(`y`)?2:1;delete n.kdTree,z(function(){n.kdTree=t(n.getValidPoints(null,!n.directTouch),r,r),n.buildingKdTree=!1},n.options.kdNow||e&&e.type===`touchstart`?0:1)},e.prototype.searchKDTree=function(e,t,n){function r(e,t,n,c){var l=t.point,u=i.kdAxisArray[n%c],d=l,f=w(e[a])&&w(l[a])?(e[a]-l[a])**2:null,p=w(e[o])&&w(l[o])?(e[o]-l[o])**2:null;return p=(f||0)+(p||0),l.dist=w(p)?Math.sqrt(p):Number.MAX_VALUE,l.distX=w(f)?Math.sqrt(f):Number.MAX_VALUE,u=e[u]-l[u],p=0>u?`left`:`right`,f=0>u?`right`:`left`,t[p]&&(p=r(e,t[p],n+1,c),d=p[s]<d[s]?p:l),t[f]&&Math.sqrt(u*u)<d[s]&&(e=r(e,t[f],n+1,c),d=e[s]<d[s]?e:d),d}var i=this,a=this.kdAxisArray[0],o=this.kdAxisArray[1],s=t?`distX`:`dist`;if(t=-1<i.options.findNearestPointBy.indexOf(`y`)?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return r(e,this.kdTree,t,t)},e.prototype.pointPlacementToXValue=function(){var e=this.options,t=e.pointRange,n=this.xAxis;return e=e.pointPlacement,e===`between`&&(e=n.reversed?-.5:.5),M(e)?e*(t||n.pointRange):0},e.prototype.isPointInside=function(e){var t=this.chart,n=this.xAxis,r=this.yAxis;return e.plotY!==void 0&&e.plotX!==void 0&&0<=e.plotY&&e.plotY<=(r?r.len:t.plotHeight)&&0<=e.plotX&&e.plotX<=(n?n.len:t.plotWidth)},e.prototype.drawTracker=function(){var e=this,t=e.options,n=t.trackByArea,r=[].concat(n?e.areaPath:e.graphPath),i=e.chart,a=i.pointer,o=i.renderer,s=i.options.tooltip.snap,c=e.tracker,l=function(t){i.hoverSeries!==e&&e.onMouseOver()},u=`rgba(192,192,192,`+(h?1e-4:.002)+`)`;c?c.attr({d:r}):e.graph&&(e.tracker=o.path(r).attr({visibility:e.visible?`visible`:`hidden`,zIndex:2}).addClass(n?`highcharts-tracker-area`:`highcharts-tracker-line`).add(e.group),i.styledMode||e.tracker.attr({"stroke-linecap":`round`,"stroke-linejoin":`round`,stroke:u,fill:n?u:`none`,"stroke-width":e.graph.strokeWidth()+(n?0:2*s)}),[e.tracker,e.markerGroup,e.dataLabelsGroup].forEach(function(e){e&&(e.addClass(`highcharts-tracker`).on(`mouseover`,l).on(`mouseout`,function(e){a.onTrackerMouseOut(e)}),t.cursor&&!i.styledMode&&e.css({cursor:t.cursor}),m)&&e.on(`touchstart`,l)})),k(this,`afterDrawTracker`)},e.prototype.addPoint=function(e,t,n,r,i){var a=this.options,o=this.data,s=this.chart,c=this.xAxis;c=c&&c.hasNames&&c.names;var l=a.data,u=this.xData,d;t=I(t,!0);var f={series:this};this.pointClass.prototype.applyOptions.apply(f,[e]);var p=f.x,m=u.length;if(this.requireSorting&&p<u[m-1])for(d=!0;m&&u[m-1]>p;)m--;this.updateParallelArrays(f,`splice`,m,0,0),this.updateParallelArrays(f,m),c&&f.name&&(c[p]=f.name),l.splice(m,0,e),d&&(this.data.splice(m,0,null),this.processData()),a.legendType===`point`&&this.generatePoints(),n&&(o[0]&&o[0].remove?o[0].remove(!1):(o.shift(),this.updateParallelArrays(f,`shift`),l.shift())),!1!==i&&k(this,`addPoint`,{point:f}),this.isDirtyData=this.isDirty=!0,t&&s.redraw(r)},e.prototype.removePoint=function(e,t,n){var r=this,i=r.data,a=i[e],o=r.points,s=r.chart,c=function(){o&&o.length===i.length&&o.splice(e,1),i.splice(e,1),r.options.data.splice(e,1),r.updateParallelArrays(a||{series:r},`splice`,e,1),a&&a.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&s.redraw()};d(n,s),t=I(t,!0),a?a.firePointEvent(`remove`,null,c):c()},e.prototype.remove=function(e,t,n,r){function i(){a.destroy(r),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),I(e,!0)&&o.redraw(t)}var a=this,o=a.chart;!1===n?i():k(a,`remove`,null,i)},e.prototype.update=function(e,t){e=S(e,this.userOptions),k(this,`update`,{options:e});var n=this,r=n.chart,i=n.userOptions,a=n.initialType||n.type,o=r.options.plotOptions,s=_[a].prototype,c=n.finishedAnimating&&{animation:!1},l={},u,d=[`eventOptions`,`navigatorSeries`,`baseSeries`],f=e.type||i.type||r.options.chart.type,p=!(this.hasDerivedData||f&&f!==this.type||e.pointStart!==void 0||e.pointInterval!==void 0||e.relativeXValue!==void 0||n.hasOptionChanged(`dataGrouping`)||n.hasOptionChanged(`pointStart`)||n.hasOptionChanged(`pointInterval`)||n.hasOptionChanged(`pointIntervalUnit`)||n.hasOptionChanged(`keys`));if(f||=a,p&&(d.push(`data`,`isDirtyData`,`points`,`processedXData`,`processedYData`,`xIncrement`,`cropped`,`_hasPointMarkers`,`_hasPointLabels`,`clips`,`nodes`,`layout`,`mapMap`,`mapData`,`minY`,`maxY`,`minX`,`maxX`),!1!==e.visible&&d.push(`area`,`graph`),n.parallelArrays.forEach(function(e){d.push(e+`Data`)}),e.data&&(e.dataSorting&&D(n.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=P(i,c,{index:i.index===void 0?n.index:i.index,pointStart:I(o&&o.series&&o.series.pointStart,i.pointStart,n.xData[0])},!p&&{data:n.options.data},e),p&&e.data&&(e.data=n.options.data),d=[`group`,`markerGroup`,`dataLabelsGroup`,`transformGroup`].concat(d),d.forEach(function(e){d[e]=n[e],delete n[e]}),o=!1,_[f]){if(o=f!==n.type,n.remove(!1,!1,!1,!0),o){if(Object.setPrototypeOf)Object.
2setPrototypeOf(n,_[f].prototype);else{for(u in c=Object.hasOwnProperty.call(n,`hcEvents`)&&n.hcEvents,s)n[u]=void 0;D(n,_[f].prototype),c?n.hcEvents=c:delete n.hcEvents}}}else E(17,!0,r,{missingModuleFor:f});if(d.forEach(function(e){n[e]=d[e]}),n.init(r,e),p&&this.points){var m=n.options;!1===m.visible?(l.graphic=1,l.dataLabel=1):n._hasPointLabels||(e=m.marker,s=m.dataLabels,!e||!1!==e.enabled&&(i.marker&&i.marker.symbol)===e.symbol||(l.graphic=1),s&&!1===s.enabled&&(l.dataLabel=1)),this.points.forEach(function(e){e&&e.series&&(e.resolveColor(),Object.keys(l).length&&e.destroyElements(l),!1===m.showInLegend&&e.legendItem&&r.legend.destroyItem(e))},this)}n.initialType=a,r.linkSeries(),o&&n.linkedSeries.length&&(n.isDirtyData=!0),k(this,`afterUpdate`),I(t,!0)&&r.redraw(p?void 0:!1)},e.prototype.setName=function(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0},e.prototype.hasOptionChanged=function(e){var t=this.options[e],n=this.chart.options.plotOptions,r=this.userOptions[e];return r?t!==r:t!==I(n&&n[this.type]&&n[this.type][e],n&&n.series&&n.series[e],t)},e.prototype.onMouseOver=function(){var e=this.chart,t=e.hoverSeries;e.pointer.setHoverChartIndex(),t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&k(this,`mouseOver`),this.setState(`hover`),e.hoverSeries=this},e.prototype.onMouseOut=function(){var e=this.options,t=this.chart,n=t.tooltip,r=t.hoverPoint;t.hoverSeries=null,r&&r.onMouseOut(),this&&e.events.mouseOut&&k(this,`mouseOut`),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),t.series.forEach(function(e){e.setState(``,!0)})},e.prototype.setState=function(e,t){var n=this,r=n.options,i=n.graph,a=r.inactiveOtherPoints,o=r.states,s=I(o[e||`normal`]&&o[e||`normal`].animation,n.chart.options.chart.animation),c=r.lineWidth,l=0,u=r.opacity;if(e||=``,n.state!==e&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach(function(t){t&&(n.state&&t.removeClass(`highcharts-series-`+n.state),e&&t.addClass(`highcharts-series-`+e))}),n.state=e,!n.chart.styledMode)){if(o[e]&&!1===o[e].enabled)return;if(e&&(c=o[e].lineWidth||c+(o[e].lineWidthPlus||0),u=I(o[e].opacity,u)),i&&!i.dashstyle)for(r={"stroke-width":c},i.animate(r,s);n[`zone-graph-`+l];)n[`zone-graph-`+l].animate(r,s),l+=1;a||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach(function(e){e&&e.animate({opacity:u},s)})}t&&a&&n.points&&n.setAllPointsToState(e||void 0)},e.prototype.setAllPointsToState=function(e){this.points.forEach(function(t){t.setState&&t.setState(e)})},e.prototype.setVisible=function(e,t){var n=this,r=n.chart,i=n.legendItem,a=r.options.chart.ignoreHiddenSeries,o=n.visible,s=(n.visible=e=n.options.visible=n.userOptions.visible=e===void 0?!o:e)?`show`:`hide`;[`group`,`dataLabelsGroup`,`markerGroup`,`tracker`,`tt`].forEach(function(e){n[e]&&n[e][s]()}),(r.hoverSeries===n||(r.hoverPoint&&r.hoverPoint.series)===n)&&n.onMouseOut(),i&&r.legend.colorizeItem(n,e),n.isDirty=!0,n.options.stacking&&r.series.forEach(function(e){e.options.stacking&&e.visible&&(e.isDirty=!0)}),n.linkedSeries.forEach(function(t){t.setVisible(e,!1)}),a&&(r.isDirtyBox=!0),k(n,s),!1!==t&&r.redraw()},e.prototype.show=function(){this.setVisible(!0)},e.prototype.hide=function(){this.setVisible(!1)},e.prototype.select=function(e){this.selected=e=this.options.selected=e===void 0?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),k(this,e?`select`:`unselect`)},e.prototype.shouldShowTooltip=function(e,t,n){return n===void 0&&(n={}),n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,n)},e.defaultOptions=o,e}(),D(e.prototype,{axisTypes:[`xAxis`,`yAxis`],coll:`series`,colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:i.drawLineMarker,isCartesian:!0,kdAxisArray:[`clientX`,`plotY`],parallelArrays:[`x`,`y`],pointClass:a,requireSorting:!0,sorted:!0}),s.series=e,e}),t(n,`Extensions/ScrollablePlotArea.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Axis/Axis.js`],n[`Core/Chart/Chart.js`],n[`Core/Series/Series.js`],n[`Core/Renderer/RendererRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a){var o=e.stop,s=a.addEvent,c=a.createElement,l=a.merge,u=a.pick;s(n,`afterSetChartSize`,function(e){var n=this.options.chart.scrollablePlotArea,r=n&&n.minWidth;
2if(n&&=n.minHeight,!this.renderer.forExport){if(r){if(this.scrollablePixelsX=r=Math.max(0,r-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.width=this.plotWidth+=r,this.inverted?this.clipBox.height+=r:this.clipBox.width+=r;var i={1:{name:`right`,value:r}}}}else n&&(this.scrollablePixelsY=r=Math.max(0,n-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=r,this.inverted?this.clipBox.width+=r:this.clipBox.height+=r,i={2:{name:`bottom`,value:r}});i&&!e.skipAxes&&this.axes.forEach(function(e){i[e.side]?e.getPlotLinePath=function(){var n=i[e.side].name,r=this[n];this[n]=r-i[e.side].value;var a=t.prototype.getPlotLinePath.apply(this,arguments);return this[n]=r,a}:(e.setAxisSize(),e.setAxisTranslation())})}}),s(n,`render`,function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),n.prototype.setUpScrolling=function(){var e=this,t={WebkitOverflowScrolling:`touch`,overflowX:`hidden`,overflowY:`hidden`};this.scrollablePixelsX&&(t.overflowX=`auto`),this.scrollablePixelsY&&(t.overflowY=`auto`),this.scrollingParent=c(`div`,{className:`highcharts-scrolling-parent`},{position:`relative`},this.renderTo),this.scrollingContainer=c(`div`,{className:`highcharts-scrolling`},t,this.scrollingParent),s(this.scrollingContainer,`scroll`,function(){e.pointer&&delete e.pointer.chartPosition}),this.innerContainer=c(`div`,{className:`highcharts-inner-container`},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var e=this.container,t=this.fixedRenderer,n=`.highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title`.split(` `),r;this.scrollablePixelsX&&!this.inverted?r=`.highcharts-yaxis`:this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?r=`.highcharts-xaxis`:this.scrollablePixelsY&&this.inverted&&(r=`.highcharts-yaxis`),r&&n.push(r+`:not(.highcharts-radial-axis)`,r+`-labels:not(.highcharts-radial-axis-labels)`),n.forEach(function(n){[].forEach.call(e.querySelectorAll(n),function(e){(e.namespaceURI===t.SVG_NS?t.box:t.box.parentNode).appendChild(e),e.style.pointerEvents=`auto`})})},n.prototype.applyFixed=function(){var e=!this.fixedDiv,t=this.options.chart,n=t.scrollablePlotArea,r=i.getRendererType();e?(this.fixedDiv=c(`div`,{className:`highcharts-fixed`},{position:`absolute`,overflow:`hidden`,pointerEvents:`none`,zIndex:(t.style&&t.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow=`visible`,this.fixedRenderer=t=new r(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=t.path().attr({fill:this.options.chart.backgroundColor||`#fff`,"fill-opacity":u(n.opacity,.85),zIndex:-1}).addClass(`highcharts-scrollable-mask`).add(),s(this,`afterShowResetZoom`,this.moveFixedElements),s(this,`afterDrilldown`,this.moveFixedElements),s(this,`afterLayOutTitles`,this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||e)&&(this.scrollableDirty=!1,this.moveFixedElements()),t=this.chartWidth+(this.scrollablePixelsX||0),r=this.chartHeight+(this.scrollablePixelsY||0),o(this.container),this.container.style.width=t+`px`,this.container.style.height=r+`px`,this.renderer.boxWrapper.attr({width:t,height:r,viewBox:[0,0,t,r].join(` `)}),this.chartBackground.attr({width:t,height:r}),this.scrollingContainer.style.height=this.chartHeight+`px`,e&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),r=this.axisOffset,e=this.plotTop-r[0]-1,n=this.plotLeft-r[3]-1,t=this.plotTop+this.plotHeight+r[2]+1,r=this.plotLeft+this.plotWidth+r[1]+1;var a=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);e=this.scrollablePixelsX?[[`M`,0,e],[`L`,this.plotLeft-1,e],[`L`,this.plotLeft-1,t],[`L`,0,t],[`Z`],[`M`,a,e],[`L`,this.chartWidth,e],[`L`,this.chartWidth,t],[`L`,a,t],[`Z`]]:this.scrollablePixelsY?[[`M`,n,0],[`L`,n,this.plotTop-1],[`L`,r,this.plotTop-1],[`L`,r,0],[`Z`],[`M`,n,l],[`L`,n,this.chartHe
2ight],[`L`,r,this.chartHeight],[`L`,r,l],[`Z`]]:[[`M`,0,0]],this.redrawTrigger!==`adjustHeight`&&this.scrollableMask.attr({d:e})},s(t,`afterInit`,function(){this.chart.scrollableDirty=!0}),s(r,`show`,function(){this.chart.scrollableDirty=!0})}),t(n,`Core/Axis/StackingAxis.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Axis/Axis.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=e.getDeferredAnimation,i=n.addEvent,a=n.destroyObjectProperties,o=n.fireEvent,s=n.isNumber,c=n.objectEach,l;return(function(e){function t(){var e=this.stacking;if(e){var t=e.stacks;c(t,function(e,n){a(e),t[n]=null}),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function n(){this.stacking||=new u(this)}var l=[];e.compose=function(e){return l.indexOf(e)===-1&&(l.push(e),i(e,`init`,n),i(e,`destroy`,t)),e};var u=function(){function e(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}return e.prototype.buildStacks=function(){var e=this.axis,t=e.series,n=e.options.reversedStacks,r=t.length,i;if(!e.isXAxis){for(this.usePercentage=!1,i=r;i--;){var a=t[n?i:r-i-1];a.setStackedPoints(),a.setGroupedPoints()}for(i=0;i<r;i++)t[i].modifyStacks();o(e,`afterBuildStacks`)}},e.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var e=this.stacks=this.oldStacks;c(e,function(e){c(e,function(e){e.cumulative=e.total})})}},e.prototype.resetStacks=function(){var e=this,t=e.stacks;e.axis.isXAxis||c(t,function(t){c(t,function(n,r){s(n.touched)&&n.touched<e.stacksTouched?(n.destroy(),delete t[r]):(n.total=null,n.cumulative=null)})})},e.prototype.renderStackTotals=function(){var e=this.axis,t=e.chart,n=t.renderer,i=this.stacks;e=r(t,e.options.stackLabels&&e.options.stackLabels.animation||!1);var a=this.stackTotalGroup=this.stackTotalGroup||n.g(`stack-labels`).attr({visibility:`visible`,zIndex:6,opacity:0}).add();a.translate(t.plotLeft,t.plotTop),c(i,function(e){c(e,function(e){e.render(a)})}),a.animate({opacity:1},e)},e}();e.Additions=u})(l||={}),l}),t(n,`Extensions/Stacking.js`,[n[`Core/Axis/Axis.js`],n[`Core/Chart/Chart.js`],n[`Core/FormatUtilities.js`],n[`Core/Globals.js`],n[`Core/Series/Series.js`],n[`Core/Axis/StackingAxis.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o){var s=n.format,c=o.correctFloat,l=o.defined,u=o.destroyObjectProperties,d=o.isArray,f=o.isNumber,p=o.objectEach,m=o.pick,h=function(){function e(e,t,n,r,i){var a=e.chart.inverted;this.axis=e,this.isNegative=n,this.options=t||={},this.x=r,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=i,this.rightCliff=this.leftCliff=0,this.alignOptions={align:t.align||(a?n?`left`:`right`:`center`),verticalAlign:t.verticalAlign||(a?`middle`:n?`bottom`:`top`),y:t.y,x:t.x},this.textAlign=t.textAlign||(a?n?`right`:`left`:`center`)}return e.prototype.destroy=function(){u(this,this.axis)},e.prototype.render=function(e){var t=this.axis.chart,n=this.options,r=n.format;r=r?s(r,this,t):n.formatter.call(this),this.label?this.label.attr({text:r,visibility:`hidden`}):(this.label=t.renderer.label(r,null,null,n.shape,null,null,n.useHTML,!1,`stack-labels`),r={r:n.borderRadius||0,text:r,rotation:n.rotation,padding:m(n.padding,5),visibility:`hidden`},t.styledMode||(r.fill=n.backgroundColor,r.stroke=n.borderColor,r[`stroke-width`]=n.borderWidth,this.label.css(n.style)),this.label.attr(r),this.label.added||this.label.add(e)),this.label.labelrank=t.plotSizeY},e.prototype.setOffset=function(e,t,n,r,a){var o=this.axis,s=o.chart;r=o.translate(o.stacking.usePercentage?100:r||this.total,0,0,0,1),n=o.translate(n||0),n=l(r)&&Math.abs(r-n),e=m(a,s.xAxis[0].translate(this.x))+e,o=l(r)&&this.getStackBox(s,this,e,r,t,n,o),t=this.label,n=this.isNegative,e=m(this.options.overflow,`justify`)===`justify`;var c=this.textAlign;t&&o&&(a=t.getBBox(),r=t.padding,c=c===`left`?s.inverted?-r:r:c===`right`?a.width:s.inverted&&c===`center`?a.width/2:s.inverted?n?a.width+r:-r:a.width/2,n=s.inverted?a.height/2:n?-r:a.height,this.alignOptions.x=m(this.options.x,0),this.alignOptions.y=m(this.options.y,0),o.x-=c,o.y-=n,t.align(this.alignOptions,null,o),s.isInsidePlot(t.alignAttr.x+c-this.alignOptions.x,t.alignAttr.y+n-this.alignOptions.y)?t.show():(t.alignAttr.y=-9999,e=!1),e&&i.prototype.justifyDataLabel.call(this.axis,t,this.alignOptions,t.alignAttr,a,o),t.attr({x:t.alignAttr.x,y:t.alignAttr.y}),m(!e&&this.options.crop,!0)&&((s=f(t.x)&&f(t.y)&&s.isInsidePlot(t.x-r+t.width,t.y)&&s.isInsidePlot(t.x+r,t.y))||t.hide()))},e.prototype.getStackBox=function(e,t,n,r,i,a,o){var s=t.axis.reversed,c=e.inverted,l=o.height+o.pos-(c?e.plotLeft:e.plotTop);return t=t.isNegative&&!s||!t.isNegative&&s,{x:c?t?r-o.right:r-a+o.pos-e.plotLeft:n+e.xAxis[0].transB-e.plotLeft,y:c?o.height-n-i:t?l-r-a:l-r,width:c?a:i,height:c?i:a}},e}();return t.prototype.getStacks=function(){var e=this,t=e.inverted;e.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}
2),e.series.forEach(function(n){var r=n.xAxis&&n.xAxis.options||{};!n.options.stacking||!0!==n.visible&&!1!==e.options.chart.ignoreHiddenSeries||(n.stackKey=[n.type,m(n.options.stack,``),t?r.top:r.left,t?r.height:r.width].join())})},a.compose(e),i.prototype.setGroupedPoints=function(){var e=this.yAxis.stacking;this.options.centerInCategory&&(this.is(`column`)||this.is(`columnrange`))&&!this.options.stacking&&1<this.chart.series.length?i.prototype.setStackedPoints.call(this,`group`):e&&p(e.stacks,function(t,n){n.slice(-5)===`group`&&(p(t,function(e){return e.destroy()}),delete e.stacks[n])})},i.prototype.setStackedPoints=function(e){var t=e||this.options.stacking;if(t&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var n=this.processedXData,r=this.processedYData,i=[],a=r.length,o=this.options,s=o.threshold,u=m(o.startFromThreshold&&s,0);o=o.stack,e=e?this.type+`,`+t:this.stackKey;var f=`-`+e,p=this.negStacks,g=this.yAxis,_=g.stacking.stacks,v=g.stacking.oldStacks,y,b;for(g.stacking.stacksTouched+=1,b=0;b<a;b++){var x=n[b],S=r[b],C=this.getStackIndicator(C,x,this.index),w=C.key,T=(y=p&&S<(u?0:s))?f:e;_[T]||(_[T]={}),_[T][x]||(v[T]&&v[T][x]?(_[T][x]=v[T][x],_[T][x].total=null):_[T][x]=new h(g,g.options.stackLabels,y,x,o)),T=_[T][x],S===null?T.points[w]=T.points[this.index]=null:(T.points[w]=T.points[this.index]=[m(T.cumulative,u)],l(T.cumulative)||(T.base=w),T.touched=g.stacking.stacksTouched,0<C.index&&!1===this.singleStacks&&(T.points[w][0]=T.points[this.index+`,`+x+`,0`][0])),t===`percent`?(y=y?e:f,p&&_[y]&&_[y][x]?(y=_[y][x],T.total=y.total=Math.max(y.total,T.total)+Math.abs(S)||0):T.total=c(T.total+(Math.abs(S)||0))):t===`group`?(d(S)&&(S=S[0]),S!==null&&(T.total=(T.total||0)+1)):T.total=c(T.total+(S||0)),T.cumulative=t===`group`?(T.total||1)-1:m(T.cumulative,u)+(S||0),S!==null&&(T.points[w].push(T.cumulative),i[b]=T.cumulative,T.hasValidPoints=!0)}t===`percent`&&(g.stacking.usePercentage=!0),t!==`group`&&(this.stackedYData=i),g.stacking.oldStacks={}}},i.prototype.modifyStacks=function(){var e=this,t=e.stackKey,n=e.yAxis.stacking.stacks,r=e.processedXData,i,a=e.options.stacking;e[a+`Stacker`]&&[t,`-`+t].forEach(function(t){for(var o=r.length,s,c;o--;)s=r[o],i=e.getStackIndicator(i,s,e.index,t),(c=(s=n[t]&&n[t][s])&&s.points[i.key])&&e[a+`Stacker`](c,s,o)})},i.prototype.percentStacker=function(e,t,n){t=t.total?100/t.total:0,e[0]=c(e[0]*t),e[1]=c(e[1]*t),this.stackedYData[n]=e[1]},i.prototype.getStackIndicator=function(e,t,n,r){return!l(e)||e.x!==t||r&&e.key!==r?e={x:t,index:0,key:r}:e.index++,e.key=[n,t,e.index].join(),e},r.StackItem=h,r.StackItem}),t(n,`Series/Line/LineSeries.js`,[n[`Core/Series/Series.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n.defined,a=n.merge;return n=function(t){function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(n,t),n.prototype.drawGraph=function(){var e=this,t=this.options,n=(this.gappedPath||this.getGraphPath).call(this),r=this.chart.styledMode,i=[[`graph`,`highcharts-graph`]];r||i[0].push(t.lineColor||this.color||`#cccccc`,t.dashStyle),i=e.getZonesGraphs(i),i.forEach(function(i,a){var o=i[0],s=e[o],c=s?`animate`:`attr`;s?(s.endX=e.preventGraphAnimation?null:n.xMap,s.animate({d:n})):n.length&&(e[o]=s=e.chart.renderer.path(n).addClass(i[1]).attr({zIndex:1}).add(e.group)),s&&!r&&(o={stroke:i[2],"stroke-width":t.lineWidth,fill:e.fillGraph&&e.color||`none`},i[3]?o.dashstyle=i[3]:t.linecap!==`square`&&(o[`stroke-linecap`]=o[`stroke-linejoin`]=`round`),s[c](o).shadow(2>a&&t.shadow)),s&&(s.startX=n.xMap,s.isArea=n.isArea)})},n.prototype.getGraphPath=function(e,t,n){var r=this,a=r.options,o=[],s=[],c,l=a.step;e||=r.points;var u=e.reversed;return u&&e.reverse(),(l={right:1,center:2}[l]||l&&3)&&u&&(l=4-l),e=this.getValidPoints(e,!1,!(a.connectNulls&&!t&&!n)),e.forEach(function(u,d){var f=u.plotX,p=u.plotY,m=e[d-1];(u.leftCliff||m&&m.rightCliff)&&!n&&(c=!0),u.isNull&&!i(t)&&0<d?c=!a.connectNulls:u.isNull&&!t?c=!0:(d===0||c?d=[[`M`,u.plotX,u.plotY]]:r.getPointSpline?d=[r.getPointSpline(e,u,d)]:l?(d=l===1?[[`L`,m.plotX,p]]:l===2?[[`L`,(m.plotX+f)/2,m.plotY],[`L`,(m.plotX+f)/2,p]]:[[`L`,f,m.plotY]],d.push([`L`,f,p])):d=[[`L`,f,p]],s.push(u.x),l&&(s.push(u.x),l===2&&s.push(u.x)),o.push.apply(o,d),c=!1)}),o.xMap=s,r.graphPath=o}
2,n.prototype.getZonesGraphs=function(e){return this.zones.forEach(function(t,n){n=[`zone-graph-`+n,`highcharts-graph highcharts-zone-graph-`+n+` `+(t.className||``)],this.chart.styledMode||n.push(t.color||this.color,t.dashStyle||this.options.dashStyle),e.push(n)},this),e},n.defaultOptions=a(e.defaultOptions,{}),n}(e),t.registerSeriesType(`line`,n),n}),t(n,`Series/Area/AreaSeries.js`,[n[`Core/Color/Color.js`],n[`Core/Legend/LegendSymbol.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=e.parse,o=n.seriesTypes.line;e=r.extend;var s=r.merge,c=r.objectEach,l=r.pick;return r=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(t,e),t.prototype.drawGraph=function(){this.areaPath=[],e.prototype.drawGraph.apply(this);var t=this,n=this.areaPath,r=this.options,i=[[`area`,`highcharts-area`,this.color,r.fillColor]];this.zones.forEach(function(e,n){i.push([`zone-area-`+n,`highcharts-area highcharts-zone-area-`+n+` `+e.className,e.color||t.color,e.fillColor||r.fillColor])}
2),i.forEach(function(e){var i=e[0],o=t[i],s=o?`animate`:`attr`,c={};o?(o.endX=t.preventGraphAnimation?null:n.xMap,o.animate({d:n})):(c.zIndex=0,o=t[i]=t.chart.renderer.path(n).addClass(e[1]).add(t.group),o.isArea=!0),t.chart.styledMode||(c.fill=l(e[3],a(e[2]).setOpacity(l(r.fillOpacity,.75)).get())),o[s](c),o.startX=n.xMap,o.shiftUnit=r.step?2:1})},t.prototype.getGraphPath=function(e){var t=o.prototype.getGraphPath,n=this.options,r=n.stacking,i=this.yAxis,a,s=[],c=[],u=this.index,d=i.stacking.stacks[this.stackKey],f=n.threshold,p=Math.round(i.getThreshold(n.threshold));n=l(n.connectNulls,r===`percent`);var m=function(t,n,a){var o=e[t];t=r&&d[o.x].points[u];var l=o[a+`Null`]||0;if(a=o[a+`Cliff`]||0,o=!0,a||l){var m=(l?t[0]:t[1])+a,h=t[0]+a;o=!!l}else!r&&e[n]&&e[n].isNull&&(m=h=f);m!==void 0&&(c.push({plotX:g,plotY:m===null?p:i.getThreshold(m),isNull:o,isCliff:!0}),s.push({plotX:g,plotY:h===null?p:i.getThreshold(h),doCurve:!1}))};for(e||=this.points,r&&(e=this.getStackPoints(e)),a=0;a<e.length;a++){r||(e[a].leftCliff=e[a].rightCliff=e[a].leftNull=e[a].rightNull=void 0);var h=e[a].isNull,g=l(e[a].rectPlotX,e[a].plotX),_=r?l(e[a].yBottom,p):p;(!h||n)&&(n||m(a,a-1,`left`),h&&!r&&n||(c.push(e[a]),s.push({x:a,plotX:g,plotY:_})),n||m(a,a+1,`right`))}return a=t.call(this,c,!0,!0),s.reversed=!0,h=t.call(this,s,!0,!0),(_=h[0])&&_[0]===`M`&&(h[0]=[`L`,_[1],_[2]]),h=a.concat(h),h.length&&h.push([`Z`]),t=t.call(this,c,!1,n),h.xMap=a.xMap,this.areaPath=h,t},t.prototype.getStackPoints=function(e){var t=this,n=[],r=[],i=this.xAxis,a=this.yAxis,o=a.stacking.stacks[this.stackKey],s={},u=a.series,d=u.length,f=a.options.reversedStacks?1:-1,p=u.indexOf(t);if(e||=this.points,this.options.stacking){for(var m=0;m<e.length;m++)e[m].leftNull=e[m].rightNull=void 0,s[e[m].x]=e[m];c(o,function(e,t){e.total!==null&&r.push(t)}),r.sort(function(e,t){return e-t});var h=u.map(function(e){return e.visible});r.forEach(function(e,c){var m=0,g,_;if(s[e]&&!s[e].isNull)n.push(s[e]),[-1,1].forEach(function(n){var i=n===1?`rightNull`:`leftNull`,a=0,l=o[r[c+n]];if(l)for(var m=p;0<=m&&m<d;){var v=u[m].index;g=l.points[v],g||(v===t.index?s[e][i]=!0:h[m]&&(_=o[e].points[v])&&(a-=_[1]-_[0])),m+=f}s[e][n===1?`rightCliff`:`leftCliff`]=a});else{for(var v=p;0<=v&&v<d;){if(g=o[e].points[u[v].index]){m=g[1];break}v+=f}m=l(m,0),m=a.translate(m,0,1,0,1),n.push({isNull:!0,plotX:i.translate(e,0,0,0,1),x:e,plotY:m,yBottom:m})}})}return n},t.defaultOptions=s(o.defaultOptions,{threshold:0}),t}(o),e(r.prototype,{singleStacks:!1,drawLegendSymbol:t.drawRectangle}),n.registerSeriesType(`area`,r),r}),t(n,`Series/Spline/SplineSeries.js`,[n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t){var n=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=e.seriesTypes.line,i=t.merge,a=t.pick;return t=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(t,e),t.prototype.getPointSpline=function(e,t,n){var r=t.plotX||0,i=t.plotY||0,o=e[n-1];if(n=e[n+1],o&&!o.isNull&&!1!==o.doCurve&&!t.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!t.isCliff){e=o.plotY||0;var s=n.plotX||0;n=n.plotY||0;var c=0,l=(1.5*r+(o.plotX||0))/2.5,u=(1.5*i+e)/2.5;s=(1.5*r+s)/2.5;var d=(1.5*i+n)/2.5;s!==l&&(c=(d-u)*(s-r)/(s-l)+i-d),u+=c,d+=c,u>e&&u>i?(u=Math.max(e,i),d=2*i-u):u<e&&u<i&&(u=Math.min(e,i),d=2*i-u),d>n&&d>i?(d=Math.max(n,i),u=2*i-d):d<n&&d<i&&(d=Math.min(n,i),u=2*i-d),t.rightContX=s,t.rightContY=d}return t=[`C`,a(o.rightContX,o.plotX,0),a(o.rightContY,o.plotY,0),a(l,r,0),a(u,i,0),r,i],o.rightContX=o.rightContY=void 0,t},t.defaultOptions=i(r.defaultOptions),t}(r),e.registerSeriesType(`spline`,t),t}),t(n,`Series/AreaSpline/AreaSplineSeries.js`,[n[`Series/Area/AreaSeries.js`],n[`Series/Spline/SplineSeries.js`],n[`Core/Legend/LegendSymbol.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}
2e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=e.prototype,s=i.extend,c=i.merge;return i=function(n){function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.data=void 0,e.points=void 0,e.options=void 0,e}return a(r,n),r.defaultOptions=c(t.defaultOptions,e.defaultOptions),r}(t),s(i.prototype,{getGraphPath:o.getGraphPath,getStackPoints:o.getStackPoints,drawGraph:o.drawGraph,drawLegendSymbol:n.drawRectangle}),r.registerSeriesType(`areaspline`,i),i}),t(n,`Series/Column/ColumnSeries.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Legend/LegendSymbol.js`],n[`Core/Series/Series.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o){var s=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=e.animObject,l=t.parse,u=n.hasTouch;e=n.noop;var d=o.clamp,f=o.css,p=o.defined,m=o.extend,h=o.fireEvent,g=o.isArray,_=o.isNumber,v=o.merge,y=o.pick,b=o.objectEach;return o=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.borderWidth=void 0,t.data=void 0,t.group=void 0,t.options=void 0,t.points=void 0,t}return s(t,e),t.prototype.animate=function(e){var t=this,n=this.yAxis,r=t.options,i=this.chart.inverted,a={},o=i?`translateX`:`translateY`;if(e)a.scaleY=.001,e=d(n.toPixels(r.threshold),n.pos,n.pos+n.len),i?a.translateX=e-n.len:a.translateY=e,t.clipBox&&t.setClip(),t.group.attr(a);else{var s=Number(t.group.attr(o));t.group.animate({scaleY:1},m(c(t.options.animation),{step:function(e,r){t.group&&(a[o]=s+r.pos*(n.pos-s),t.group.attr(a))}}))}},t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments);var r=this;t=r.chart,t.hasRendered&&t.series.forEach(function(e){e.type===r.type&&(e.isDirty=!0)})},t.prototype.getColumnMetrics=function(){var e=this,t=e.options,n=e.xAxis,r=e.yAxis,i=n.options.reversedStacks;i=n.reversed&&!i||!n.reversed&&i;var a={},o,s=0;!1===t.grouping?s=1:e.chart.series.forEach(function(t){var n=t.yAxis,i=t.options;if(t.type===e.type&&(t.visible||!e.chart.options.chart.ignoreHiddenSeries)&&r.len===n.len&&r.pos===n.pos){if(i.stacking&&i.stacking!==`group`){o=t.stackKey,a[o]===void 0&&(a[o]=s++);var c=a[o]}else!1!==i.grouping&&(c=s++);t.columnIndex=c}});var c=Math.min(Math.abs(n.transA)*(n.ordinal&&n.ordinal.slope||t.pointRange||n.closestPointRange||n.tickInterval||1),n.len),l=c*t.groupPadding,u=(c-2*l)/(s||1);return t=Math.min(t.maxPointWidth||n.len,y(t.pointWidth,u*(1-2*t.pointPadding))),e.columnMetrics={width:t,offset:(u-t)/2+(l+((e.columnIndex||0)+ +!!i)*u-c/2)*(i?-1:1),paddedWidth:u,columnCount:s},e.columnMetrics},t.prototype.crispCol=function(e,t,n,r){var i=this.chart,a=this.borderWidth,o=-(a%2?.5:0);return a=a%2?.5:1,i.inverted&&i.renderer.isVML&&(a+=1),this.options.crisp&&(n=Math.round(e+n)+o,e=Math.round(e)+o,n-=e),r=Math.round(t+r)+a,o=.5>=Math.abs(t)&&.5<r,t=Math.round(t)+a,r-=t,o&&r&&(--t,r+=1),{x:e,y:t,width:n,height:r}},t.prototype.adjustForMissingColumns=function(e,t,n,r){var i=this,a=this.options.stacking;if(!n.isNull&&1<r.columnCount){var o=0,s=0;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(e){if(typeof n.x==`number`&&(e=e[n.x.toString()])){var t=e.points[i.index],r=e.total;a?(t&&(o=s),e.hasValidPoints&&s++):g(t)&&(o=t[1],s=r||0)}}),e=(n.plotX||0)+((s-1)*r.paddedWidth+t)/2-t-o*r.paddedWidth}return e},t.prototype.translate=function(){var e=this,t=e.chart,n=e.options,r=e.dense=2>e.closestPointRange*e.xAxis.transA;r=e.borderWidth=y(n.borderWidth,+!r);var a=e.xAxis,o=e.yAxis,s=n.threshold,c=e.translatedThreshold=o.getThreshold(s),l=y(n.minPointLength,5),u=e.getColumnMetrics(),f=u.width,m=e.pointXOffset=u.offset,h=e.dataMin,g=e.dataMax,v=e.barW=Math.max(f,1+2*r);t.inverted&&(c-=.5),n.pointPadding&&(v=Math.ceil(v)),i.prototype.translate.apply(e),e.points.forEac
2h(function(r){var i=y(r.yBottom,c),b=999+Math.abs(i),x=r.plotX||0;b=d(r.plotY,-b,o.len+b);var S=Math.min(b,i),C=Math.max(b,i)-S,w=f,T=x+m,E=v;l&&Math.abs(C)<l&&(C=l,x=!o.reversed&&!r.negative||o.reversed&&r.negative,_(s)&&_(g)&&r.y===s&&g<=s&&(o.min||0)<s&&(h!==g||(o.max||0)<=s)&&(x=!x),S=Math.abs(S-c)>l?i-l:c-(x?l:0)),p(r.options.pointWidth)&&(w=E=Math.ceil(r.options.pointWidth),T-=Math.round((w-f)/2)),n.centerInCategory&&(T=e.adjustForMissingColumns(T,w,r,u)),r.barX=T,r.pointWidth=w,r.tooltipPos=t.inverted?[d(o.len+o.pos-t.plotLeft-b,o.pos-t.plotLeft,o.len+o.pos-t.plotLeft),a.len+a.pos-t.plotTop-T-E/2,C]:[a.left-t.plotLeft+T+E/2,d(b+o.pos-t.plotTop,o.pos-t.plotTop,o.len+o.pos-t.plotTop),C],r.shapeType=e.pointClass.prototype.shapeType||`rect`,r.shapeArgs=e.crispCol.apply(e,r.isNull?[T,c,E,0]:[T,S,E,C])})},t.prototype.drawGraph=function(){this.group[this.dense?`addClass`:`removeClass`](`highcharts-dense-data`)},t.prototype.pointAttribs=function(e,t){var n=this.options,r=this.pointAttrToOptions||{},i=r.stroke||`borderColor`,a=r[`stroke-width`]||`borderWidth`,o=e&&e.color||this.color,s=e&&e[i]||n[i]||o;r=e&&e.options.dashStyle||n.dashStyle;var c=e&&e[a]||n[a]||this[a]||0,u=y(e&&e.opacity,n.opacity,1);if(e&&this.zones.length){var d=e.getZone();o=e.options.color||d&&(d.color||e.nonZonedColor)||this.color,d&&(s=d.borderColor||s,r=d.dashStyle||r,c=d.borderWidth||c)}return t&&e&&(e=v(n.states[t],e.options.states&&e.options.states[t]||{}),t=e.brightness,o=e.color||t!==void 0&&l(o).brighten(e.brightness).get()||o,s=e[i]||s,c=e[a]||c,r=e.dashStyle||r,u=y(e.opacity,u)),i={fill:o,stroke:s,"stroke-width":c,opacity:u},r&&(i.dashstyle=r),i},t.prototype.drawPoints=function(){var e=this,t=this.chart,n=e.options,r=t.renderer,i=n.animationLimit||250,a;e.points.forEach(function(o){var s=o.graphic,c=!!s,l=s&&t.pointCount<i?`animate`:`attr`;_(o.plotY)&&o.y!==null?(a=o.shapeArgs,s&&o.hasNewShapeType()&&(s=s.destroy()),e.enabledDataSorting&&(o.startXPos=e.xAxis.reversed?-(a&&a.width||0):e.xAxis.width),s||(o.graphic=s=r[o.shapeType](a).add(o.group||e.group))&&e.enabledDataSorting&&t.hasRendered&&t.pointCount<i&&(s.attr({x:o.startXPos}),c=!0,l=`animate`),s&&c&&s[l](v(a)),n.borderRadius&&s[l]({r:n.borderRadius}),t.styledMode||s[l](e.pointAttribs(o,o.selected&&`select`)).shadow(!1!==o.allowShadow&&n.shadow,null,n.stacking&&!n.borderRadius),s&&(s.addClass(o.getClassName(),!0),s.attr({visibility:o.visible?`inherit`:`hidden`}))):s&&(o.graphic=s.destroy())})},t.prototype.drawTracker=function(){var e=this,t=e.chart,n=t.pointer,r=function(e){var t=n.getPointFromEvent(e);t!==void 0&&(n.isDirectTouch=!0,t.onMouseOver(e))},i;e.points.forEach(function(e){i=g(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),i.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}),e._hasTracking||=(e.trackerGroups.forEach(function(i){e[i]&&(e[i].addClass(`highcharts-tracker`).on(`mouseover`,r).on(`mouseout`,function(e){n.onTrackerMouseOut(e)}),u&&e[i].on(`touchstart`,r),!t.styledMode&&e.options.cursor&&e[i].css(f).css({cursor:e.options.cursor}))}),!0),h(this,`afterDrawTracker`)},t.prototype.remove=function(){var e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)}),i.prototype.remove.apply(e,arguments)},t.defaultOptions=v(i.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:`#cccccc`,borderColor:`#000000`}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:`#ffffff`}),t}(i),m(o.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:r.drawRectangle,getSymbol:e,negStacks:!0,trackerGroups:[`group`,`dataLabelsGroup`]}),a.registerSeriesType(`column`,o),o}),t(n,`Core/Series/DataLabel.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/FormatUtilities.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=e.getDeferredAnimation,i=t.format,a=n.defined,o=n.extend,s=n.fireEvent,c=n.isArray,l=n.merge,u=n.objectEach,d=n.pick,f=n.splat,p;return(function(e){function t(e,t,n,r,i){var a=this,s=this.chart,c=this.isCartesian&&s.inverted,l=this.enabledDataSorting,u=d(e.dlBox&&e.dlBox.centerX,e.plotX,-9999),f=d(e.plotY,-9999),p=t.getBBox(),m=n.rotation,h=n.align,g=s.isInsidePlot(u,Math.round(f),{inverted:c,paneCoordinates:!0,series:a}),_=function(n){l&&a.xAxis&&!v&&a.setDataLabelStartPos(e,t,i,g,n)},v=d(n.overflow,l?`none`:`justify`)===`justify`,y=this.visible&&!1!==e.visible&&(e.series.forceDL||l&&!v||g||d(n.inside,!!this.options.stacking)&&r&&s.isInsidePlot(u,c?r.x+1:r.y+r.height-1,{inverted:c,paneCoordinates:!0,series:a}));if(y){var b=s.renderer.fontMetrics(s.styledMode?void 0:n.style.fontSize,t).b;r=o({x:c?this.yAxis.len-f:u,y:Math.round(c?this.xAxis.len-u:f),width:0,height:0},r),o(n,{width:p.width,height:p.height}),m?(v=!1,u=s.renderer.rotCorr(b,m),u={x:r.x+(n.x||0)+r.width/2+u.x,y:r.y+(n.y||0)+{top:0,middle:.5,bottom:1}[n.verticalAlign]*r.height},_(u),t[i?`attr`:`animate`](u).attr({align:h}),_=(m+720)%360,_=180<_&&360>_,h===`left`?u.y-=_?p.height:0:h===`center`?(u.x-=p.width/2,u.y-=p.height/2):h===`right`&&(u.x-=p.width,u.y-=_?0:p.height),t.placed=!0,t.alignAttr=u):(_(r),t.align(n,void 0,r),u=t.alignAttr),v&&0<=r.height?this.justifyDataLabel(t,n,u,p,r,i):d(n.crop,!0)&&(y=s.isInsidePlot(u.x,u.y,{paneCoordinates:!0,series:a})&&s.isInsidePlot(u.x+p.width,u.y+p.height,{paneCoordinates:!0,series:a})),n.shape&&!m&&t[i?`attr`:`animate`]({anchorX:c?s.plotWidth-e.plotY:e.plotX,anchorY:c?s.plotHeight-e.plotX:e.plotY})}i&&l&&(t.placed=!1),y||l&&!v||(t.hide(!0),t.placed=!1)}function n(e,t){var n=t.filter;return!n||(t=n.operator,e=e[n.property],n=n.value,t===`>`&&e>n||t===`<`&&e<n||t===`>=`&&e>=n||t===`<=`&&e<=n||t===`==`&&e==n||t===`===`&&e===n)}function p(){var e=this,t=e.chart,o=e.options,l=e.points,p=e.hasRendered||0,m=t.renderer,g=o.dataLabels,_,v=g.animation;if(v=g.defer?r(t,v,e):{defer:0,duration:0},g=h(h(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[e.type]&&t.options.plotOptions[e.type].dataLabels),g),s(this,`drawDataLabels`),c(g)||g.enabled||e._hasPointLabels){var y=e.plotGroup(`dataLabelsGroup`,`data-labels`,p?`inherit`:`hidden`,g.zIndex||6);y.attr({opacity:+p}),!p&&(p=e.dataLabelsGroup)&&(e.visible&&y.show(!0),p[o.animation?`animate`:`attr`]({opacity:1},v)),l.forEach(function(r){_=f(h(g,r.dlOptions||r.options&&r.options.dataLabels)),_.forEach(function(s,c){var l=s.enabled&&(!r.isNull||r.dataLabelO
2nNull)&&n(r,s),f=r.connectors?r.connectors[c]:r.connector,p=r.dataLabels?r.dataLabels[c]:r.dataLabel,h=d(s.distance,r.labelDistance),g=!p;if(l){var _=r.getLabelConfig(),v=d(s[r.formatPrefix+`Format`],s.format);_=a(v)?i(v,_,t):(s[r.formatPrefix+`Formatter`]||s.formatter).call(_,s),v=s.style;var b=s.rotation;t.styledMode||(v.color=d(s.color,v.color,e.color,`#000000`),v.color===`contrast`?(r.contrastColor=m.getContrast(r.color||e.color),v.color=!a(h)&&s.inside||0>h||o.stacking?r.contrastColor:`#000000`):delete r.contrastColor,o.cursor&&(v.cursor=o.cursor));var x={r:s.borderRadius||0,rotation:b,padding:s.padding,zIndex:1};t.styledMode||(x.fill=s.backgroundColor,x.stroke=s.borderColor,x[`stroke-width`]=s.borderWidth),u(x,function(e,t){e===void 0&&delete x[t]})}!p||l&&a(_)&&!!p.div==!!s.useHTML||(r.dataLabel=p=r.dataLabel&&r.dataLabel.destroy(),r.dataLabels&&(r.dataLabels.length===1?delete r.dataLabels:delete r.dataLabels[c]),c||delete r.dataLabel,f&&(r.connector=r.connector.destroy(),r.connectors&&(r.connectors.length===1?delete r.connectors:delete r.connectors[c]))),l&&a(_)&&(p?x.text=_:(r.dataLabels=r.dataLabels||[],p=r.dataLabels[c]=b?m.text(_,0,-9999,s.useHTML).addClass(`highcharts-data-label`):m.label(_,0,-9999,s.shape,null,null,s.useHTML,null,`data-label`),c||(r.dataLabel=p),p.addClass(` highcharts-data-label-color-`+r.colorIndex+` `+(s.className||``)+(s.useHTML?` highcharts-tracker`:``))),p.options=s,p.attr(x),t.styledMode||p.css(v).shadow(s.shadow),p.added||p.add(y),s.textPath&&!s.useHTML&&(p.setTextPath(r.getDataLabelPath&&r.getDataLabelPath(p)||r.graphic,s.textPath),r.dataLabelPath&&!s.textPath.enabled&&(r.dataLabelPath=r.dataLabelPath.destroy())),e.alignDataLabel(r,p,s,null,g))})})}s(this,`afterDrawDataLabels`)}function m(e,t,n,r,i,a){var o=this.chart,s=t.align,c=t.verticalAlign,l=e.box?0:e.padding||0,u=t.x;u=u===void 0?0:u;var d=t.y;d=d===void 0?0:d;var f=(n.x||0)+l;if(0>f){s===`right`&&0<=u?(t.align=`left`,t.inside=!0):u-=f;var p=!0}return f=(n.x||0)+r.width-l,f>o.plotWidth&&(s===`left`&&0>=u?(t.align=`right`,t.inside=!0):u+=o.plotWidth-f,p=!0),f=n.y+l,0>f&&(c===`bottom`&&0<=d?(t.verticalAlign=`top`,t.inside=!0):d-=f,p=!0),f=(n.y||0)+r.height-l,f>o.plotHeight&&(c===`top`&&0>=d?(t.verticalAlign=`bottom`,t.inside=!0):d+=o.plotHeight-f,p=!0),p&&(t.x=u,t.y=d,e.placed=!a,e.align(t,void 0,i)),p}function h(e,t){var n=[],r;if(c(e)&&!c(t))n=e.map(function(e){return l(e,t)});else if(c(t)&&!c(e))n=t.map(function(t){return l(e,t)});else if(c(e)||c(t))for(r=Math.max(e.length,t.length);r--;)n[r]=l(e[r],t[r]);else n=l(e,t);return n}function g(e,t,n,r,i){var a=this.chart,o=a.inverted,s=this.xAxis,c=s.reversed,l=o?t.height/2:t.width/2;e=(e=e.pointWidth)?e/2:0,t.startXPos=o?i.x:c?-l-e:s.width-l+e,t.startYPos=o?c?this.yAxis.height-l+e:-l-e:i.y,r?t.visibility===`hidden`&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0}
2,void 0,t.hide),a.hasRendered&&(n&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}var _=[];e.compose=function(e){if(_.indexOf(e)===-1){var n=e.prototype;_.push(e),n.alignDataLabel=t,n.drawDataLabels=p,n.justifyDataLabel=m,n.setDataLabelStartPos=g}}})(p||={}),p}),t(n,`Series/Column/ColumnDataLabel.js`,[n[`Core/Series/DataLabel.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=t.series,i=n.merge,a=n.pick,o;return(function(t){function n(e,t,n,o,s){var c=this.chart.inverted,l=e.series,u=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var d=e.dlBox||e.shapeArgs,f=a(e.below,e.plotY>a(this.translatedThreshold,l)),p=a(n.inside,!!this.options.stacking);d&&(o=i(d),0>o.y&&(o.height+=o.y,o.y=0),d=o.y+o.height-l,0<d&&d<o.height&&(o.height-=d),c&&(o={x:l-o.y-o.height,y:u-o.x-o.width,width:o.height,height:o.width}),p||(c?(o.x+=f?0:o.width,o.width=0):(o.y+=f?o.height:0,o.height=0))),n.align=a(n.align,!c||p?`center`:f?`right`:`left`),n.verticalAlign=a(n.verticalAlign,c||p?`middle`:f?`top`:`bottom`),r.prototype.alignDataLabel.call(this,e,t,n,o,s),n.inside&&e.contrastColor&&t.css({color:e.contrastColor})}var o=[];t.compose=function(t){e.compose(r),o.indexOf(t)===-1&&(o.push(t),t.prototype.alignDataLabel=n)}})(o||={}),o}),t(n,`Series/Bar/BarSeries.js`,[n[`Series/Column/ColumnSeries.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n.extend,a=n.merge;return n=function(t){function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(n,t),n.defaultOptions=a(e.defaultOptions,{}),n}(e),i(n.prototype,{inverted:!0}),t.registerSeriesType(`bar`,n),n}),t(n,`Series/Scatter/ScatterSeries.js`,[n[`Series/Column/ColumnSeries.js`],n[`Series/Line/LineSeries.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=r.addEvent,o=r.extend,s=r.merge;return r=function(e){function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(n,e),n.prototype.applyJitter=function(){var e=this,t=this.options.jitter,n=this.points.length;t&&this.points.forEach(function(r,i){[`x`,`y`].forEach(function(a,o){var s=`plot`+a.toUpperCase();if(t[a]&&!r.isNull){var c=e[a+`Axis`],l=t[a]*c.transA;if(c&&!c.isLog){var u=Math.max(0,r[s]-l);c=Math.min(c.len,r[s]+l),o=1e4*Math.sin(i+o*n),r[s]=u+(c-u)*(o-Math.floor(o)),a===`x`&&(r.clientX=r.plotX)}}})})},n.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&=this.graph.destroy()},n.defaultOptions=s(t.defaultOptions,{lineWidth:0,findNearestPointBy:`xy`,jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:`<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>`,pointFormat:`x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>`}}),n}(t),o(r.prototype,{drawTracker:e.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:[`group`,`markerGroup`,`dataLabelsGroup`],takeOrdinalPosition:!1}),a(r,`afterTranslate`,function(){this.applyJitter()}),n.registerSeriesType(`scatter`,r),r}),t(n,`Series/CenteredUtilities.js`,[n[`Core/Globals.js`],n[`Core/Series/Series.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=e.deg2rad,i=n.isNumber,a=n.pick,o=n.relativeLength,s;return(function(e){e.getCenter=function(){var e=this.options,n=this.chart,r=2*(e.slicedOffset||0),i=n.plotWidth-2*r,s=n.plotHeight-2*r,c=e.center,l=Math.min(i,s),u=e.size,d=e.innerSize||0;for(typeof u==`string`&&(u=parseFloat(u)),typeof d==`string`&&(d=parseFloat(d)),e=[a(c[0],`50%`),a(c[1],`50%`),a(u&&0>u?void 0:e.size,`100%`),a(d&&0>d?void 0:e.innerSize||0,`0%`)],!n.angular||this instanceof t||(e[3]=0),c=0;4>c;++c)u=e[c],n=2>c||c===2&&/%$/.test(u),e[c]=o(u,[i,s,l,e[2]][c])+(n?r:0);return e[3]>e[2]&&(e[3]=e[2]),e},e.getStartAndEndRadians=function(e,t){return e=i(e)?e:0,t=i(t)&&t>e&&360>t-e?t:e+360,{start:r*(e+-90),end:r*(t+-90)}}})(s||={}),s}),t(n,`Series/Pie/PiePoint.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Series/Point.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}
2e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=e.setAnimation,a=n.addEvent,o=n.defined;e=n.extend;var s=n.isNumber,c=n.pick,l=n.relativeLength;return t=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.labelDistance=void 0,t.options=void 0,t.series=void 0,t}return r(t,e),t.prototype.getConnectorPath=function(){var e=this.labelPosition,t=this.series.options.dataLabels,n=this.connectorShapes,r=t.connectorShape;return n[r]&&(r=n[r]),r.call(this,{x:e.final.x,y:e.final.y,alignment:e.alignment},e.connectorPosition,t)},t.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},t.prototype.haloPath=function(e){var t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end})},t.prototype.init=function(){var t=this;e.prototype.init.apply(this,arguments),this.name=c(this.name,`Slice`);var n=function(e){t.slice(e.type===`select`)};return a(this,`select`,n),a(this,`unselect`,n),this},t.prototype.isValid=function(){return s(this.y)&&0<=this.y},t.prototype.setVisible=function(e,t){var n=this,r=this.series,i=r.chart,a=r.options.ignoreHiddenPoint;t=c(t,a),e!==this.visible&&(this.visible=this.options.visible=e=e===void 0?!this.visible:e,r.options.data[r.data.indexOf(this)]=this.options,[`graphic`,`dataLabel`,`connector`,`shadowGroup`].forEach(function(t){n[t]&&n[t][e?`show`:`hide`](e)}),this.legendItem&&i.legend.colorizeItem(this,e),e||this.state!==`hover`||this.setState(``),a&&(r.isDirty=!0),t&&i.redraw())},t.prototype.slice=function(e,t,n){var r=this.series;i(n,r.chart),c(t,!0),this.sliced=this.options.sliced=o(e)?e:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},t}(t),e(t.prototype,{connectorShapes:{fixedOffset:function(e,t,n){var r=t.breakAt;return t=t.touchingSliceAt,[[`M`,e.x,e.y],n.softConnector?[`C`,e.x+(e.alignment===`left`?-5:5),e.y,2*r.x-t.x,2*r.y-t.y,r.x,r.y]:[`L`,r.x,r.y],[`L`,t.x,t.y]]},straight:function(e,t){return t=t.touchingSliceAt,[[`M`,e.x,e.y],[`L`,t.x,t.y]]},crookedLine:function(e,t,n){t=t.touchingSliceAt;var r=this.series,i=r.center[0],a=r.chart.plotWidth,o=r.chart.plotLeft;r=e.alignment;var s=this.shapeArgs.r;return n=l(n.crookDistance,1),a=r===`left`?i+s+(a+o-i-s)*(1-n):o+(i-s)*n,n=[`L`,a,e.y],i=!0,(r===`left`?a>e.x||a<t.x:a<e.x||a>t.x)&&(i=!1),e=[[`M`,e.x,e.y]],i&&e.push(n),e.push([`L`,t.x,t.y]),e}}}),t}),t(n,`Series/Pie/PieSeries.js`,[n[`Series/CenteredUtilities.js`],n[`Series/Column/ColumnSeries.js`],n[`Core/Globals.js`],n[`Core/Legend/LegendSymbol.js`],n[`Series/Pie/PiePoint.js`],n[`Core/Series/Series.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Renderer/SVG/Symbols.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s,c){var l=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=e.getStartAndEndRadians;n=n.noop;var d=c.clamp,f=c.extend,p=c.fireEvent,m=c.merge,h=c.pick,g=c.relativeLength;return c=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.center=void 0,t.data=void 0,t.maxLabelDistance=void 0,t.options=void 0,t.points=void 0,t}return l(t,e),t.prototype.animate=function(e){var t=this,n=t.points,r=t.startAngleRad;e||n.forEach(function(e){var n=e.graphic,i=e.shapeArgs;n&&i&&(n.attr({r:h(e.startR,t.center&&t.center[3]/2),start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},t.options.animation))})},t.prototype.drawEmpty=function(){var e=this.startAngleRad,t=this.endAngleRad,n=this.options;if(this.total===0&&this.center){var r=this.center[0],i=this.center[1];this.graph||=this.chart.renderer.arc(r,i,this.center[1]/2,0,e,t).addClass(`highcharts-empty-series`).add(this.group),this.graph.attr({d:s.arc(r,i,this.center[2]/2,0,{start:e,end:t,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||`none`,stroke:n.color||`#cccccc`})}else this.graph&&=this.graph.destroy()},t.prototype.drawPoints=function(){var e=this.chart.renderer;
2this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})},t.prototype.generatePoints=function(){e.prototype.generatePoints.call(this),this.updateTotals()},t.prototype.getX=function(e,t,n){var r=this.center,i=this.radii?this.radii[n.index]||0:r[2]/2;return e=Math.asin(d((e-r[1])/(i+n.labelDistance),-1,1)),r[0]+(t?-1:1)*Math.cos(e)*(i+n.labelDistance)+(0<n.labelDistance?(t?-1:1)*this.options.dataLabels.padding:0)},t.prototype.hasData=function(){return!!this.processedXData.length},t.prototype.redrawPoints=function(){var e=this,t=e.chart,n=t.renderer,r=e.options.shadow,i,a,o,s;this.drawEmpty(),!r||e.shadowGroup||t.styledMode||(e.shadowGroup=n.g(`shadow`).attr({zIndex:-1}).add(e.group)),e.points.forEach(function(c){var l={};if(a=c.graphic,!c.isNull&&a){var u=void 0;s=c.shapeArgs,i=c.getTranslate(),t.styledMode||(u=c.shadowGroup,r&&!u&&(u=c.shadowGroup=n.g(`shadow`).add(e.shadowGroup)),u&&u.attr(i),o=e.pointAttribs(c,c.selected&&`select`)),c.delayedRendering?(a.setRadialReference(e.center).attr(s).attr(i),t.styledMode||a.attr(o).attr({"stroke-linejoin":`round`}).shadow(r,u),c.delayedRendering=!1):(a.setRadialReference(e.center),t.styledMode||m(!0,l,o),m(!0,l,s,i),a.animate(l)),a.attr({visibility:c.visible?`inherit`:`hidden`}),a.addClass(c.getClassName(),!0)}else a&&(c.graphic=a.destroy())})},t.prototype.sortByAngle=function(e,t){e.sort(function(e,n){return e.angle!==void 0&&(n.angle-e.angle)*t})},t.prototype.translate=function(e){this.generatePoints();var t=this.options,n=t.slicedOffset,r=n+(t.borderWidth||0),i=u(t.startAngle,t.endAngle),a=this.startAngleRad=i.start;i=(this.endAngleRad=i.end)-a;var o=this.points,s=t.dataLabels.distance;t=t.ignoreHiddenPoint;var c=o.length,l,d=0;for(e||(this.center=e=this.getCenter()),l=0;l<c;l++){var f=o[l],m=a+d*i;!f.isValid()||t&&!f.visible||(d+=f.percentage/100);var _=a+d*i,v={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(1e3*m)/1e3,end:Math.round(1e3*_)/1e3};f.shapeType=`arc`,f.shapeArgs=v,f.labelDistance=h(f.options.dataLabels&&f.options.dataLabels.distance,s),f.labelDistance=g(f.labelDistance,v.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,f.labelDistance),_=(_+m)/2,_>1.5*Math.PI?_-=2*Math.PI:_<-Math.PI/2&&(_+=2*Math.PI),f.slicedTranslation={translateX:Math.round(Math.cos(_)*n),translateY:Math.round(Math.sin(_)*n)},v=Math.cos(_)*e[2]/2;var y=Math.sin(_)*e[2]/2;f.tooltipPos=[e[0]+.7*v,e[1]+.7*y],f.half=+(_<-Math.PI/2||_>Math.PI/2),f.angle=_,m=Math.min(r,f.labelDistance/5),f.labelPosition={natural:{x:e[0]+v+Math.cos(_)*f.labelDistance,y:e[1]+y+Math.sin(_)*f.labelDistance},final:{},alignment:0>f.labelDistance?`center`:f.half?`right`:`left`,connectorPosition:{breakAt:{x:e[0]+v+Math.cos(_)*m,y:e[1]+y+Math.sin(_)*m},touchingSliceAt:{x:e[0]+v,y:e[1]+y}}}}p(this,`afterTranslate`)},t.prototype.updateTotals=function(){var e=this.points,t=e.length,n=this.options.ignoreHiddenPoint,r,i=0;for(r=0;r<t;r++){var a=e[r];!a.isValid()||n&&!a.visible||(i+=a.y)}for(this.total=i,r=0;r<t;r++)a=e[r],a.percentage=0<i&&(a.visible||!n)?a.y/i*100:0,a.total=i},t.defaultOptions=m(a.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:`fixedOffset`,crookDistance:`70%`,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:`point`,marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:`#ffffff`,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),t}(a),f(c.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:r.drawRectangle,drawTracker:t.prototype.drawTracker,getCenter:e.getCenter,getSymbol:n,isCartesian:!1,noSharedTooltip:!0,pointAttribs:t.prototype.pointAttribs,pointClass:i,requireSorting:!1,searchPoint:n,trackerGroups:[`group`,`dataLabelsGroup`]}),o.registerSeriesType(`pie`,c),c}),t(n,`Series/Pie/PieDataLabel.js`,[n[`Core/Series/DataLabel.js`],n[`Core/Globals.js`],n[`Core/Renderer/RendererUtilities.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=t.noop,o=n.distribute,s=r.series,c=i.arrayMax,l=i.clamp,u=i.defined,d=i.merge,f=i.pick,p=i.relativeLength,m;return(function(t){function n(){var e=this,t=e.data,n=e.chart,r=e.options.dataLabels||{},i=r.connectorPadding,a=n.plotWidth,l=n.plotHeight,p=n.plotLeft,m=Math.round(n.chartWidth/3),h=e.center,g=h[2]/2,_=h[1],v=[[],[]],y=[0,0,0,0],b=e.dataLabelPositioners,x,S,C,w,T,E,D,O,k,A,j,M;e.visible&&(r.enabled||e._hasPointLabels)&&(t.forEach(function(e){e.dataLabel&&e.visible&&e.dataLabel.shortened&&(e.dataLabel.attr({width:`auto`}).css({width:`auto`,textOverflow:`clip`}),e.dataLabel.shortened=!1)}),s.prototype.drawDataLabels.apply(e),t.forEach(function(e){e.dataLabel&&(e.visible?(v[e.half].push(e),e.dataLabel._pos=null,!u(r.style.width)&&!u(e.options.dataLabels&&e.options.dataLabels.style&&e.options.dataLabels.style.width)&&e.dataLabel.getBBox().width>m&&(e.dataLabel.css({width:Math.round(.7*m)+`px`}),e.dataLabel.shortened=!0)):(e.dataLabel=e.dataLabel.destroy(),e.dataLabels&&e.dataLabels.length===1&&delete e.dataLabels))}),v.forEach(function(t,s){var c=t.length,d=[],m;if(c){if(e.sortByAngle(t,s-.5),0<e.maxLabelDistance){var v=Math.max(0,_-g-e.maxLabelDistance),S=Math.min(_+g+e.maxLabelDistance,n.plotHeight);t.forEach(function(e){0<e.labelDistance&&e.dataLabel&&(e.top=Math.max(0,_-g-e.labelDistance),e.bottom=Math.min(_+g+e.labelDistance,n.plotHeight),m=e.dataLabel.getBBox().height||21,e.distributeBox={target:e.labelPosition.natural.y-e.top+m/2,size:m,rank:e.y},d.push(e.distributeBox))}),v=S+m-v,o(d,v,v/5)}for(j=0;j<c;j++){if(x=t[j],E=x.labelPosition,w=x.dataLabel,A=!1===x.visible?`hidden`:`inherit`,k=v=E.natural.y,d&&u(x.distributeBox)&&(x.distributeBox.pos===void 0?A=`hidden`:(D=x.distributeBox.size,k=b.radialDistributionY(x))),delete x.positionIndex,r.justify)O=b.justify(x,g,h);else switch(r.alignTo){case`connectors`:O=b.alignToConnectors(t,s,a,p);break;case`plotEdges`:O=b.alignToPlotEdges(w,s,a,p);break;default:O=b.radialDistributionX(e,x,k,v)}w._attr={visibility:A,align:E.alignment},M=x.options.dataLabels||{},w._pos={x:O+f(M.x,r.x)+({left:i,right:-i}[E.alignment]||0),y:k+f(M.y,r.y)-10},E.final.x=O,E.final.y=k,f(r.crop,!0)&&(T=w.getBBox().width,v=null,O-T<i&&s===1?(v=Math.round(T-O+i),y[3]=Math.max(v,y[3])):O+T>a-i&&s===0&&(v=Math.round(O+T-a+i),y[1]=Math.max(v,y[1])),0>k-D/2?y[0]=Math.max(Math.round(-k+D/2),y[0]):k+D/2>l&&(y[2]=Math.max(Math.round(k+D/2-l),y[2])),w.sideOverflow=v)}}}),c(y)===0||this.verifyDataLabelOverflow(y))&&(this.placeDataLabels(),this.points.forEac
2h(function(t){if(M=d(r,t.options.dataLabels),S=f(M.connectorWidth,1)){var i;C=t.connector,(w=t.dataLabel)&&w._pos&&t.visible&&0<t.labelDistance?(A=w._attr.visibility,(i=!C)&&(t.connector=C=n.renderer.path().addClass(`highcharts-data-label-connector  highcharts-color-`+t.colorIndex+(t.className?` `+t.className:``)).add(e.dataLabelsGroup),n.styledMode||C.attr({"stroke-width":S,stroke:M.connectorColor||t.color||`#666666`})),C[i?`attr`:`animate`]({d:t.getConnectorPath()}),C.attr(`visibility`,A)):C&&(t.connector=C.destroy())}}))}function r(){this.points.forEach(function(e){var t=e.dataLabel,n;t&&e.visible&&((n=t._pos)?(t.sideOverflow&&(t._attr.width=Math.max(t.getBBox().width-t.sideOverflow,0),t.css({width:t._attr.width+`px`,textOverflow:(this.options.dataLabels.style||{}).textOverflow||`ellipsis`}),t.shortened=!0),t.attr(t._attr),t[t.moved?`animate`:`attr`](n),t.moved=!0):t&&t.attr({y:-9999})),delete e.distributeBox},this)}function i(e){var t=this.center,n=this.options,r=n.center,i=n.minSize||80,a=n.size!==null;if(!a){if(r[0]!==null)var o=Math.max(t[2]-Math.max(e[1],e[3]),i);else o=Math.max(t[2]-e[1]-e[3],i),t[0]+=(e[3]-e[1])/2;r[1]===null?(o=l(o,i,t[2]-e[0]-e[2]),t[1]+=(e[0]-e[2])/2):o=l(o,i,t[2]-Math.max(e[0],e[2])),o<t[2]?(t[2]=o,t[3]=Math.min(p(n.innerSize||0,o),o),this.translate(t),this.drawDataLabels&&this.drawDataLabels()):a=!0}return a}var m=[],h={radialDistributionY:function(e){return e.top+e.distributeBox.pos},radialDistributionX:function(e,t,n,r){return e.getX(n<t.top+2||n>t.bottom-2?r:n,t.half,t)},justify:function(e,t,n){return n[0]+(e.half?-1:1)*(t+e.labelDistance)},alignToPlotEdges:function(e,t,n,r){return e=e.getBBox().width,t?e+r:n-e-r},alignToConnectors:function(e,t,n,r){var i=0,a;return e.forEach(function(e){a=e.dataLabel.getBBox().width,a>i&&(i=a)}),t?i+r:n-i-r}};t.compose=function(t){e.compose(s),m.indexOf(t)===-1&&(m.push(t),t=t.prototype,t.dataLabelPositioners=h,t.alignDataLabel=a,t.drawDataLabels=n,t.placeDataLabels=r,t.verifyDataLabelOverflow=i)}})(m||={}),m}),t(n,`Extensions/OverlappingDataLabels.js`,[n[`Core/Chart/Chart.js`],n[`Core/Utilities.js`]],function(e,t){function n(e,t){var n=!1;if(e){var r=e.newOpacity;e.oldOpacity!==r&&(e.alignAttr&&e.placed?(e[r?`removeClass`:`addClass`](`highcharts-data-label-hidden`),n=!0,e.alignAttr.opacity=r,e[e.isOld?`animate`:`attr`](e.alignAttr,null,function(){t.styledMode||e.css({pointerEvents:r?`auto`:`none`})}),i(t,`afterHideOverlappingLabel`)):e.attr({opacity:r})),e.isOld=!0}return n}var r=t.addEvent,i=t.fireEvent,a=t.isArray,o=t.isNumber,s=t.objectEach,c=t.pick;r(e,`render`,function(){var e=this,t=[];(this.labelCollectors||[]).forEach(function(e){t=t.concat(e())}),(this.yAxis||[]).forEach(function(e){e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&s(e.stacking.stacks,function(e){s(e,function(e){e.label&&e.label.visibility!==`hidden`&&t.push(e.label)})})}),(this.series||[]).forEach(function(r){var i=r.options.dataLabels;r.visible&&(!1!==i.enabled||r._hasPointLabels)&&(i=function(r){return r.forEach(function(r){r.visible&&(a(r.dataLabels)?r.dataLabels:r.dataLabel?[r.dataLabel]:[]).forEach(function(i){var a=i.options;i.labelrank=c(a.labelrank,r.labelrank,r.shapeArgs&&r.shapeArgs.height),a.allowOverlap?(i.oldOpacity=i.opacity,i.newOpacity=1,n(i,e)):t.push(i)})})},i(r.nodes||[]),i(r.points))}),this.hideOverlappingLabels(t)}),e.prototype.hideOverlappingLabels=function(e){var t=this,r=e.length,a=t.renderer,s,c,l,u=!1,d=function(e){var t,n=e.box?0:e.padding||0,r=t=0,i;if(e&&(!e.alignAttr||e.placed)){var s=e.alignAttr||{x:e.attr(`x`),y:e.attr(`y`)},c=e.parentGroup;e.width||(t=e.getBBox(),e.width=t.width,e.height=t.height,t=a.fontMetrics(null,e.element).h);var l=e.width-2*n;return(i={left:`0`,center:`0.5`,right:`1`}[e.alignValue])?r=+i*l:o(e.x)&&Math.round(e.x)!==e.translateX&&(r=e.x-e.translateX),{x:s.x+(c.translateX||0)+n-(r||0),y:s.y+(c.translateY||0)+n-t,width:e.width-2*n,height:e.height-2*n}}};for(c=0;c<r;c++)(s=e[c])&&(s.oldOpacity=s.opacity,s.newOpacity=1,s.absoluteBox=d(s));for(e.sort(function(e,t){return(t.labelrank||0)-(e.labelrank||0)}),c=0;c<r;c++){var f=(d=e[c])&&d.absoluteBox;for(s=c+1;s<r;++s){var p=(l=e[s])&&l.absoluteBox;!f||!p||d===l||d.newOpacity===0||l.newOpacity===0||p.x>=f.x+f.width||p.x+p.width<=f.x||p.y>=f.y+f.height||p.y+p.height<=f.y||((d.labelrank<l.labelrank?d:l).newOpacity=0)}}e.forEach(function(e){n(e,t)&&(u=!0)}),u&&i(t,`afterHideAllOverlappingLabels`)}}),t(n,`Core/Responsive.js`,[n[`Core/Utilities.js`]],function(e){var t=e.extend,n=e.find,r=e.isArray,i=e.isObject,a=e.merge,o=e.objectEach,s=e.pick,c=e.splat,l=e.uniqueKey,u;return(function(e){var u=[];
2e.compose=function(e){return u.indexOf(e)===-1&&(u.push(e),t(e.prototype,d.prototype)),e};var d=function(){function e(){}return e.prototype.currentOptions=function(e){function t(e,a,s,l){var u;o(e,function(e,o){if(!l&&-1<n.collectionsWithUpdate.indexOf(o)&&a[o])for(e=c(e),s[o]=[],u=0;u<Math.max(e.length,a[o].length);u++)a[o][u]&&(e[u]===void 0?s[o][u]=a[o][u]:(s[o][u]={},t(e[u],a[o][u],s[o][u],l+1)));else i(e)?(s[o]=r(e)?[]:{},t(e,a[o]||{},s[o],l+1)):s[o]=a[o]===void 0?null:a[o]})}var n=this,a={};return t(e,this.options,a,0),a},e.prototype.matchResponsiveRule=function(e,t){var n=e.condition;(n.callback||function(){return this.chartWidth<=s(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=s(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=s(n.minWidth,0)&&this.chartHeight>=s(n.minHeight,0)}).call(this)&&t.push(e._id)},e.prototype.setResponsive=function(e,t){var r=this,i=this.options.responsive,o=this.currentResponsive,s=[];!t&&i&&i.rules&&i.rules.forEach(function(e){e._id===void 0&&(e._id=l()),r.matchResponsiveRule(e,s)},this),t=a.apply(void 0,s.map(function(e){return n((i||{}).rules||[],function(t){return t._id===e})}).map(function(e){return e&&e.chartOptions})),t.isResponsiveOptions=!0,s=s.toString()||void 0,s!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,e,!0),s?(o=this.currentOptions(t),o.isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:t,undoOptions:o},this.update(t,e,!0)):this.currentResponsive=void 0)},e}()})(u||={}),u}),t(n,`masters/highcharts.src.js`,[n[`Core/Globals.js`],n[`Core/Utilities.js`],n[`Core/DefaultOptions.js`],n[`Core/Animation/Fx.js`],n[`Core/Animation/AnimationUtilities.js`],n[`Core/Renderer/HTML/AST.js`],n[`Core/FormatUtilities.js`],n[`Core/Renderer/RendererUtilities.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Renderer/SVG/SVGRenderer.js`],n[`Core/Renderer/HTML/HTMLElement.js`],n[`Core/Renderer/HTML/HTMLRenderer.js`],n[`Core/Axis/Axis.js`],n[`Core/Axis/DateTimeAxis.js`],n[`Core/Axis/LogarithmicAxis.js`],n[`Core/Axis/PlotLineOrBand/PlotLineOrBand.js`],n[`Core/Axis/Tick.js`],n[`Core/Tooltip.js`],n[`Core/Series/Point.js`],n[`Core/Pointer.js`],n[`Core/MSPointer.js`],n[`Core/Legend/Legend.js`],n[`Core/Chart/Chart.js`],n[`Core/Series/Series.js`],n[`Core/Series/SeriesRegistry.js`],n[`Series/Column/ColumnSeries.js`],n[`Series/Column/ColumnDataLabel.js`],n[`Series/Pie/PieSeries.js`],n[`Series/Pie/PieDataLabel.js`],n[`Core/Series/DataLabel.js`],n[`Core/Responsive.js`],n[`Core/Color/Color.js`],n[`Core/Time.js`]],function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M){return e.animate=i.animate,e.animObject=i.animObject,e.getDeferredAnimation=i.getDeferredAnimation,e.setAnimation=i.setAnimation,e.stop=i.stop,e.timers=r.timers,e.AST=a,e.Axis=f,e.Chart=S,e.chart=S.chart,e.Fx=r,e.Legend=x,e.PlotLineOrBand=h,e.Point=v,e.Pointer=b.isRequired()?b:y,e.Series=C,e.SVGElement=c,e.SVGRenderer=l,e.Tick=g,e.Time=M,e.Tooltip=_,e.Color=j,e.color=j.parse,d.compose(l),u.compose(c),e.defaultOptions=n.defaultOptions,e.getOptions=n.getOptions,e.time=n.defaultTime,e.setOptions=n.setOptions,e.dateFormat=o.dateFormat,e.format=o.format,e.numberFormat=o.numberFormat,e.addEvent=t.addEvent,e.arrayMax=t.arrayMax,e.arrayMin=t.arrayMin,e.attr=t.attr,e.clearTimeout=t.clearTimeout,e.correctFloat=t.correctFloat,e.createElement=t.createElement,e.css=t.css,e.defined=t.defined,e.destroyObjectProperties=t.destroyObjectProperties,e.discardElement=t.discardElement,e.distribute=s.distribute,e.erase=t.erase,e.error=t.error,e.extend=t.extend,e.extendClass=t.extendClass,e.find=t.find,e.fireEvent=t.fireEvent,e.getMagnitude=t.getMagnitude,e.getStyle=t.getStyle,e.inArray=t.inArray,e.isArray=t.isArray,e.isClass=t.isClass,e.isDOMElement=t.isDOMElement,e.isFunction=t.isFunction,e.isNumber=t.isNumber,e.isObject=t.isObject,e.isString=t.isString,e.keys=t.keys,e.merge=t.merge,e.normalizeTickInterval=t.normalizeTickInterval,e.objectEach=t.objectEach,e.offset=t.offset,e.pad=t.pad,e.pick=t.pick,e.pInt=t.pInt,e.relativeLength=t.relativeLength,e.removeEvent=t.removeEvent,e.seriesType=w.seriesType,e.splat=t.splat,e.stableSort=t.stableSort,e.syncTimeout=t.syncTimeout,e.timeUnits=t.timeUnits,e.uniqueKey=t.uniqueKey,e.useSerialIds=t.useSerialIds,e.wrap=t.wrap,E.compose(T),k.compose(C),p.compose(f),m.compose(f),O.compose(D),h.compose(f),A.compose(S),e}),n[`masters/highcharts.src.js`]._modules=n,n[`masters/highcharts.src.js`]})})),f=t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(i()):typeof define==`function`&&define.amd?define([`react`],r):typeof e==`object`?e.HighchartsReact=r(i()):n.HighchartsReact=r(n.React)})(typeof self<`u`?self:e,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})}
2,t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,`a`,n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=``,t(t.s=0)}([function(e,t,n){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function i(e){return c(e)||s(e)||o(e)||a()}function a(){throw TypeError(`Invalid attempt to spread non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(e,t){if(e){if(typeof e==`string`)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function s(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function c(e){if(Array.isArray(e))return l(e)}function l(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e){"@babel/helpers - typeof";return(u=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,`HighchartsReact`,function(){return m});var d=n(1),f=n.n(d),p=typeof window<`u`?d.useLayoutEffect:d.useEffect,m=(0,d.memo)((0,d.forwardRef)(function(e,t){var n=(0,d.useRef)(),a=(0,d.useRef)(),o=(0,d.useRef)(e.constructorType),s=(0,d.useRef)(e.highcharts
3);return p(function(){function t(){var t=e.highcharts||(typeof window>`u`?`undefined`:u(window))===`object`&&window.Highcharts,r=e.constructorType||`chart`;t?t[r]?e.options?a.current=t[r](n.current,e.options,e.callback):console.warn(`The "options" property was not passed.`):console.warn(`The "constructorType" property is incorrect or some required module is not imported.`):console.warn(`The "highcharts" property was not passed.`)}if(a.current){if(!1!==e.allowChartUpdate){if(e.constructorType!==o.current||e.highcharts!==s.current)o.current=e.constructorType,s.current=e.highcharts,t();else if(!e.immutable&&a.current){var r;(r=a.current).update.apply(r,[e.options].concat(i(e.updateArgs||[!0,!0])))}else t()}}else t()},[e.options,e.allowChartUpdate,e.updateArgs,e.containerProps,e.highcharts,e.constructorType]),p(function(){return function(){a.current&&=(a.current.destroy(),null)}},[]),(0,d.useImperativeHandle)(t,function(){return{get chart(){return a.current},container:n}},[]),f.a.createElement(`div`,r({},e.containerProps,{ref:n}))}));t.default=m},function(t,n){t.exports=e}])})})),p=t(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?(n.default=n,t.exports=e.document?n(e):n):typeof define==`function`&&define.amd?define(`highcharts/highstock`,function(){return n(e)}):(e.Highcharts&&e.Highcharts.error(16,!0),e.Highcharts=n(e))})(typeof window<`u`?window:e,function(e){function t(e,t,n,r){e.hasOwnProperty(t)||(e[t]=r.apply(null,n))}var n={};return t(n,`Core/Globals.js`,[],function(){var t=e===void 0?typeof window<`u`?window:{}:e,n;return(function(e){e.SVG_NS=`http://www.w3.org/2000/svg`,e.product=`Highcharts`,e.version=`9.3.3`,e.win=t,e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,`svg`).createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||``,e.isChrome=e.userAgent.indexOf(`Chrome`)!==-1,e.isFirefox=e.userAgent.indexOf(`Firefox`)!==-1,e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&e.userAgent.indexOf(`Safari`)!==-1,e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=e.userAgent.indexOf(`AppleWebKit`)!==-1,e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split(`Firefox/`)[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=[`plotTop`,`marginRight`,`marginBottom`,`plotLeft`],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener(`testPassive`,e.noop,n),e.win.removeEventListener(`testPassive`,e.noop,n))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0})(n||={}),n}),t(n,`Core/Utilities.js`,[n[`Core/Globals.js`]],function(e){function t(n,r,i,a){var o=r?`Highcharts error`:`Highcharts warning`;n===32&&(n=o+`: Deprecated member`);var s=l(n),c=s?o+` #`+n+`: www.highcharts.com/errors/`+n+`/`:n.toString();if(a!==void 0){var u=``;s&&(c+=`?`),_(a,function(e,t){u+=`
4 - `+t+`: `+e,s&&(c+=encodeURI(t)+`=`+encodeURI(e))}),c+=u}y(e,`displayError`,{chart:i,code:n,message:c,params:a},function(){if(r)throw Error(c);S.console&&t.messages.indexOf(c)===-1&&console.warn(c)}),t.messages.push(c)}function n(e,t){var r={};return _(e,function(i,a){o(e[a],!0)&&!e.nodeType&&t[a]?(i=n(e[a],t[a]),Object.keys(i).length&&(r[a]=i)):(o(e[a])||e[a]!==t[a])&&(r[a]=e[a])}),r}function r(e,t){return parseInt(e,t||10)}function i(e){return typeof e==`string`}function a(e){return e=Object.prototype.toString.call(e),e===`[object Array]`||e===`[object Array Iterator]`}function o(e,t){return!!e&&typeof e==`object`&&(!t||!a(e))}function s(e){return o(e)&&typeof e.nodeType==`number`}function c(e){var t=e&&e.constructor;return!(!o(e,!0)||s(e)||!t||!t.name||t.name===`Object`)}function l(e){return typeof e==`number`&&!isNaN(e)&&1/0>e&&-1/0<e}function u(e){return e!=null}function d(e,t,n){var r;return i(t)?u(n)?e.setAttribute(t,n):e&&e.getAttribute&&((r=e.getAttribute(t))||t!==`class`||(r=e.getAttribute(t+`Name`))):_(t,function(t,n){u(t)?e.setAttribute(n,t):e.removeAttribute(n)}),r}function f(e,t){for(var n in e||={},t)e[n]=t[n];return e}function p(){for(var e=arguments,t=e.length,n=0;n<t;n++){var r=e[n];if(r!=null)return r}}function m(t,n){e.isMS&&!e.svg&&n&&n.opacity!==void 0&&(n.filter=`alpha(opacity=`+100*n.opacity+`)`),f(t.style,n)}
4function h(e,t){return 0x5af3107a4000<e?e:parseFloat(e.toPrecision(t||14))}function g(n,i,a){var o=e.getStyle||g;if(i===`width`)return i=Math.min(n.offsetWidth,n.scrollWidth),a=n.getBoundingClientRect&&n.getBoundingClientRect().width,a<i&&a>=i-1&&(i=Math.floor(a)),Math.max(0,i-(o(n,`padding-left`,!0)||0)-(o(n,`padding-right`,!0)||0));if(i===`height`)return Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-(o(n,`padding-top`,!0)||0)-(o(n,`padding-bottom`,!0)||0));if(S.getComputedStyle||t(27,!0),n=S.getComputedStyle(n,void 0)){var s=n.getPropertyValue(i);p(a,i!==`opacity`)&&(s=r(s))}return s}function _(e,t,n){for(var r in e)Object.hasOwnProperty.call(e,r)&&t.call(n||e[r],e[r],r,e)}function v(t,n,r){function i(n,r){var i=t.removeEventListener||e.removeEventListenerPolyfill;i&&i.call(t,n,r,!1)}function a(e){var r;if(t.nodeName){if(n){var a={};a[n]=!0}else a=e;_(a,function(t,n){if(e[n])for(r=e[n].length;r--;)i(n,e[n][r].fn)})}}var o=typeof t==`function`&&t.prototype||t;if(Object.hasOwnProperty.call(o,`hcEvents`)){var s=o.hcEvents;n?(o=s[n]||[],r?(s[n]=o.filter(function(e){return r!==e.fn}),i(n,r)):(a(s),s[n]=[])):(a(s),delete o.hcEvents)}}function y(t,n,r,i){if(r||={},x.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==e)){var a=x.createEvent(`Events`);a.initEvent(n,!0,!0),r=f(a,r),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent(n,r)}else if(t.hcEvents){r.target||f(r,{preventDefault:function(){r.defaultPrevented=!0},target:t,type:n}),a=[];for(var o=t,s=!1;o.hcEvents;)Object.hasOwnProperty.call(o,`hcEvents`)&&o.hcEvents[n]&&(a.length&&(s=!0),a.unshift.apply(a,o.hcEvents[n])),o=Object.getPrototypeOf(o);s&&a.sort(function(e,t){return e.order-t.order}),a.forEach(function(e){!1===e.fn.call(t,r)&&r.preventDefault()})}i&&!r.defaultPrevented&&i.call(t,r)}var b=e.charts,x=e.doc,S=e.win;(t||={}).messages=[],Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var C=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){var n,r=e.length;for(n=0;n<r;n++)if(t(e[n],n))return e[n]};_({map:`map`,each:`forEach`,grep:`filter`,reduce:`reduce`,some:`some`},function(n,r){e[r]=function(e){var i;return t(32,!1,void 0,(i={},i[`Highcharts.`+r]=`use Array.`+n,i)),Array.prototype[n].apply(e,[].slice.call(arguments,1))}});var w,T=function(){var e=Math.random().toString(36).substring(2,9)+`-`,t=0;return function(){return`highcharts-`+(w?``:e)+t++}}();return S.jQuery&&(S.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new e[i(t[0])?t.shift():`Chart`](this[0],t[0],t[1]),this):b[d(this[0],`data-highcharts-chart`)]}),C={addEvent:function(t,n,r,i){i===void 0&&(i={});var a=typeof t==`function`&&t.prototype||t;Object.hasOwnProperty.call(a,`hcEvents`)||(a.hcEvents={}),a=a.hcEvents,e.Point&&t instanceof e.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var o=t.addEventListener||e.addEventListenerPolyfill;return o&&o.call(t,n,r,e.supportsPassiveEvents?{passive:i.passive===void 0?n.indexOf(`touch`)!==-1:i.passive,capture:!1}:!1),a[n]||(a[n]=[]),a[n].push({fn:r,order:typeof i.order==`number`?i.order:1/0}),a[n].sort(function(e,t){return e.order-t.order}),function(){v(t,n,r)}},arrayMax:function(e){for(var t=e.length,n=e[0];t--;)e[t]>n&&(n=e[t]);return n},arrayMin:function(e){for(var t=e.length,n=e[0];t--;)e[t]<n&&(n=e[t]);return n},attr:d,clamp:function(e,t,n){return e>t?e<n?e:n:t},cleanRecursively:n,clearTimeout:function(e){u(e)&&clearTimeout(e)},correctFloat:h,createElement:function(e,t,n,r,i){return e=x.createElement(e),t&&f(e,t),i&&m(e,{padding:`0`,border:`none`,margin:`0`}),n&&m(e,n),r&&r.appendChild(e),e},css:m,defined:u,destroyObjectProperties:function(e,t){_(e,function(n,r){n&&n!==t&&n.destroy&&n.destroy(),delete e[r]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,t){for(var n=e.length;n--;)if(e[n]===t){e.splice(n,1);break}},error:t,extend:f,extendClass:function(e,t){var n=function(){};return n.prototype=new e,f(n.prototype,t),n},find:C,fireEvent:y,getMagnitude:function(e){return 10**Math.floor(Math.log(e)/Math.LN10)},getNestedProperty:function(e,t){for(e=e.split(`.`);e.length&&u(t);){var n=e.shift();if(n===void 0||n===`__proto__`||(t=t[n],!u(t)||typeof t==`function`||typeof t.nodeType==`number`||t===S))return}return t},getStyle:g,inArray:function(e,n,r){return t(32,!1,void 0,{"Highcharts.inArray":`use Array.indexOf`}),n.indexOf(e,r)},isArray:a,isClass:c,isDOMElement:s,isFunction:function(e){return typeof e==`function`},isNumber:l,isObject:o,isString:i,keys:function(e){return t(32,!1,void 0,{"Highcharts.keys":`use Object.keys`}),Object.keys(e)},merge:function(){var e,t=arguments,n={},r=function(e,t){return typeof e!=`object`&&(e={}),_(t,function(n,i){i!==`__proto__`&&i!==`constructor`&&(!o(n,!0)||c(n)||s(n)?e[i]=t[i]:e[i]=r(e[i]||{},n))}),e};!0===t[0]&&(n=t[1],t=Array.prototype.slice.call(t,2));var i=t.length;for(e=0;e<i;e++)n=r(n,t[e]);return n},normalizeTickInterval:function(e,t,n,r,i){var a=e;n=p(n,1);var o=e/n;for(t||(t=i?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(n===1?t=t.filter(function(e){return e%1==0}):.1>=n&&(t=[1/n]))),r=0;r<t.length&&(a=t[r],!(i&&a*n>=e||!i&&o<=(t[r]+(t[r+1]||t[r]))/2));r++);
4return a=h(a*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:_,offset:function(e){var t=x.documentElement;return e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0},{top:e.top+(S.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(S.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}},pad:function(e,t,n){return Array((t||2)+1-String(e).replace(`-`,``).length).join(n||`0`)+e},pick:p,pInt:r,relativeLength:function(e,t,n){return/%$/.test(e)?t*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:v,splat:function(e){return a(e)?e:[e]},stableSort:function(e,t){for(var n=e.length,r,i=0;i<n;i++)e[i].safeI=i;for(e.sort(function(e,n){return r=t(e,n),r===0?e.safeI-n.safeI:r}),i=0;i<n;i++)delete e[i].safeI},syncTimeout:function(e,t,n){return 0<t?setTimeout(e,t,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:T,useSerialIds:function(e){return w=p(e,w)},wrap:function(e,t,n){var r=e[t];e[t]=function(){var e=Array.prototype.slice.call(arguments),t=arguments,i=this;return i.proceed=function(){r.apply(i,arguments.length?arguments:t)},e.unshift(r),e=n.apply(this,e),i.proceed=null,e}}},C}),t(n,`Core/Chart/ChartDefaults.js`,[],function(){return{panning:{enabled:!1,type:`x`},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:`line`,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:`right`,x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:`#335cad`,backgroundColor:`#ffffff`,plotBorderColor:`#cccccc`}}),t(n,`Core/Color/Color.js`,[n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t){var n=t.isNumber,r=t.merge,i=t.pInt;return t=function(){function t(n){this.rgba=[NaN,NaN,NaN,NaN],this.input=n;var r=e.Color;if(r&&r!==t)return new r(n);if(!(this instanceof t))return new t(n);this.init(n)}return t.parse=function(e){return e?new t(e):t.None},t.prototype.init=function(e){var n;if(typeof e==`object`&&e.stops!==void 0)this.stops=e.stops.map(function(e){return new t(e[1])});else if(typeof e==`string`){if(this.input=e=t.names[e.toLowerCase()]||e,e.charAt(0)===`#`){var r=e.length,i=parseInt(e.substr(1),16);r===7?n=[(i&16711680)>>16,(i&65280)>>8,i&255,1]:r===4&&(n=[(i&3840)>>4|(i&3840)>>8,(i&240)>>4|i&240,(i&15)<<4|i&15,1])}if(!n)for(i=t.parsers.length;i--&&!n;){var a=t.parsers[i];(r=a.regex.exec(e))&&(n=a.parse(r))}}n&&(this.rgba=n)},t.prototype.get=function(e){var t=this.input,i=this.rgba;if(typeof t==`object`&&this.stops!==void 0){var a=r(t);return a.stops=[].slice.call(a.stops),this.stops.forEach(function(t,n){a.stops[n]=[a.stops[n][0],t.get(e)]}),a}return i&&n(i[0])?e===`rgb`||!e&&i[3]===1?`rgb(`+i[0]+`,`+i[1]+`,`+i[2]+`)`:e===`a`?``+i[3]:`rgba(`+i.join(`,`)+`)`:t},t.prototype.brighten=function(e){var t=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(n(e)&&e!==0)for(var r=0;3>r;r++)t[r]+=i(255*e),0>t[r]&&(t[r]=0),255<t[r]&&(t[r]=255);return this},t.prototype.setOpacity=function(e){return this.rgba[3]=e,this},t.prototype.tweenTo=function(e,t){var r=this.rgba,i=e.rgba;return!n(r[0])||!n(i[0])?e.input||`none`:(e=i[3]!==1||r[3]!==1,(e?`rgba(`:`rgb(`)+Math.round(i[0]+(r[0]-i[0])*(1-t))+`,`+Math.round(i[1]+(r[1]-i[1])*(1-t))+`,`+Math.round(i[2]+(r[2]-i[2])*(1-t))+(e?`,`+(i[3]+(r[3]-i[3])*(1-t)):``)+`)`)},t.names={white:`#ffffff`,black:`#000000`},t.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(e){return[i(e[1]),i(e[2]),i(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(e){return[i(e[1]),i(e[2]),i(e[3]),1]}}],t.None=new t(``),t}(),t}),t(n,`Core/Color/Palettes.js`,[],function(){return{colors:`#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1`.split(` `)}}),t(n,`Core/Time.js`,[n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t){var n=e.win,r=t.defined,i=t.error,a=t.extend,o=t.isObject,s=t.merge,c=t.objectEach,l=t.pad,u=t.pick,d=t.splat,f=t.timeUnits,p=e.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,m=e.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange;return t=function(){function t(e){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=n.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(e)}return t.prototype.get=function(e,t){if(this.variableTimezone||this.timezoneOffset){var n=t.getTime(),r=n-this.getTimezoneOffset(t);return t.setTime(r),e=t[`getUTC`+e](),t.setTime(n),e}return this.useUTC?t[`getUTC`+e]():t[`get`+e]()},t.prototype.set=function(e,t,n){if(this.variableTimezone||this.timezoneOffset){if(e===`Milliseconds`||e===`Seconds`||e===`Minutes`&&this.getTimezoneOffset(t)%36e5==0)return t[`setUTC`+e](n);var r=this.getTimezoneOffset(t);return r=t.getTime()-r,t.setTime(r),t[`setUTC`+e](n),e=this.getTimezoneOffset(t),r=t.getTime()+e,t.setTime(r)}return this.useUTC||p&&e===`FullYear`?t[`setUTC`+e](n):t[`set`+e](n)},t.prototype.update=function(e){var t=u(e&&e.useUTC,!0);this.options=e=s(!0,this.options||{},e),this.Date=e.Date||n.Date||Date,this.timezoneOffset=(this.useUTC=t)&&e.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=t&&!(!e.getTimezoneOffset&&!e.timezone)},t.prototype.makeTime=function(e,t,n,r,i,a){if(this.useUTC){var o=this.Date.UTC.apply(0,arguments),s=this.getTimezoneOffset(o);o+=s;var c=this.getTimezoneOffset(o);s===c?s-36e5!==this.getTimezoneOffset(o-36e5)||m||(o-=36e5):o+=c-s}else o=new this.Date(e,t,u(n,1),u(r,0),u(i,0),u(a,0)).getTime();return o},t.prototype.timezoneOffsetFunction=function(){var e=this,t=this.options,r=t.getTimezoneOffset,a=t.moment||n.moment;if(!this.useUTC)return function(e){return 6e4*new Date(e.toString()).getTimezoneOffset()};if(t.timezone){if(a)return function(e){return 6e4*-a.tz(e,t.timezone).utcOffset()};i(25)}return this.useUTC&&r?function(e){return 6e4*r(e.valueOf())}:function(){return 6e4*(e.timezoneOffset||0)}},t.prototype.dateFormat=function(t,n,i){if(!r(n)||isNaN(n))return e.defaultOptions.lang&&e.defaultOptions.lang.invali
4dDate||``;t=u(t,`%Y-%m-%d %H:%M:%S`);var o=this,s=new this.Date(n),d=this.get(`Hours`,s),f=this.get(`Day`,s),p=this.get(`Date`,s),m=this.get(`Month`,s),h=this.get(`FullYear`,s),g=e.defaultOptions.lang,_=g&&g.weekdays,v=g&&g.shortWeekdays;return s=a({a:v?v[f]:_[f].substr(0,3),A:_[f],d:l(p),e:l(p,2,` `),w:f,b:g.shortMonths[m],B:g.months[m],m:l(m+1),o:m+1,y:h.toString().substr(2,2),Y:h,H:l(d),k:d,I:l(d%12||12),l:d%12||12,M:l(this.get(`Minutes`,s)),p:12>d?`AM`:`PM`,P:12>d?`am`:`pm`,S:l(s.getSeconds()),L:l(Math.floor(n%1e3),3)},e.dateFormats),c(s,function(e,r){for(;t.indexOf(`%`+r)!==-1;)t=t.replace(`%`+r,typeof e==`function`?e.call(o,n):e)}),i?t.substr(0,1).toUpperCase()+t.substr(1):t},t.prototype.resolveDTLFormat=function(e){return o(e,!0)?e:(e=d(e),{main:e[0],from:e[1],to:e[2]})},t.prototype.getTimeTicks=function(e,t,n,i){var o=this,s=[],c={},l=new o.Date(t),d=e.unitRange,p=e.count||1,m;if(i=u(i,1),r(t)){if(o.set(`Milliseconds`,l,d>=f.second?0:p*Math.floor(o.get(`Milliseconds`,l)/p)),d>=f.second&&o.set(`Seconds`,l,d>=f.minute?0:p*Math.floor(o.get(`Seconds`,l)/p)),d>=f.minute&&o.set(`Minutes`,l,d>=f.hour?0:p*Math.floor(o.get(`Minutes`,l)/p)),d>=f.hour&&o.set(`Hours`,l,d>=f.day?0:p*Math.floor(o.get(`Hours`,l)/p)),d>=f.day&&o.set(`Date`,l,d>=f.month?1:Math.max(1,p*Math.floor(o.get(`Date`,l)/p))),d>=f.month){o.set(`Month`,l,d>=f.year?0:p*Math.floor(o.get(`Month`,l)/p));var h=o.get(`FullYear`,l)}d>=f.year&&o.set(`FullYear`,l,h-h%p),d===f.week&&(h=o.get(`Day`,l),o.set(`Date`,l,o.get(`Date`,l)-h+i+(h<i?-7:0))),h=o.get(`FullYear`,l),i=o.get(`Month`,l);var g=o.get(`Date`,l),_=o.get(`Hours`,l);for(t=l.getTime(),!o.variableTimezone&&o.useUTC||!r(n)||(m=n-t>4*f.month||o.getTimezoneOffset(t)!==o.getTimezoneOffset(n)),t=l.getTime(),l=1;t<n;)s.push(t),t=d===f.year?o.makeTime(h+l*p,0):d===f.month?o.makeTime(h,i+l*p):!m||d!==f.day&&d!==f.week?m&&d===f.hour&&1<p?o.makeTime(h,i,g,_+l*p):t+d*p:o.makeTime(h,i,g+l*p*(d===f.day?1:7)),l++;s.push(t),d<=f.hour&&1e4>s.length&&s.forEach(function(e){e%18e5==0&&o.dateFormat(`%H%M%S%L`,e)===`000000000`&&(c[e]=`day`)})}return s.info=a(e,{higherRanks:c,totalRange:d*p}),s},t.prototype.getDateFormat=function(e,t,n,r){var i=this.dateFormat(`%m-%d %H:%M:%S.%L`,t),a={millisecond:15,second:12,minute:9,hour:6,day:3},o=`millisecond`;for(s in f){if(e===f.week&&+this.dateFormat(`%w`,t)===n&&i.substr(6)===`00:00:00.000`){var s=`week`;break}if(f[s]>e){s=o;break}if(a[s]&&i.substr(a[s])!==`01-01 00:00:00.000`.substr(a[s]))break;s!==`week`&&(o=s)}if(s)var c=this.resolveDTLFormat(r[s]).main;return c},t}(),t}),t(n,`Core/DefaultOptions.js`,[n[`Core/Chart/ChartDefaults.js`],n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Color/Palettes.js`],n[`Core/Time.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a){t=t.parse;var o=a.merge,s={colors:r.colors,symbols:[`circle`,`diamond`,`square`,`triangle`,`triangle-down`],lang:{loading:`Loading...`,months:`January February March April May June July August September October November December`.split(` `),shortMonths:`Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec`.split(` `),weekdays:`Sunday Monday Tuesday Wednesday Thursday Friday Saturday`.split(` `),decimalPoint:`.`,numericSymbols:`kMGTPE`.split(``),resetZoom:`Reset zoom`,resetZoomTitle:`Reset zoom level 1:1`,thousandsSep:` `},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:e,title:{text:`Chart title`,align:`center`,margin:15,widthAdjust:-44},subtitle:{text:``,align:`center`,widthAdjust:-44},caption:{margin:15,text:``,align:`left`,verticalAlign:`bottom`},plotOptions:{},labels:{style:{position:`absolute`,color:`#333333`}},legend:{enabled:!0,align:`center`,alignColumns:!0,className:`highcharts-no-tooltip`,layout:`horizontal`,labelFormatter:function(){return this.name},borderColor:`#999999`,borderRadius:0,navigation:{activeColor:`#003399`,inactiveColor:`#cccccc`},itemStyle:{color:`#333333`,cursor:`pointer`,fontSize:`12px`,fontWeight:`bold`,textOverflow:`ellipsis`},itemHoverStyle:{color:`#000000`},itemHiddenStyle:{color:`#cccccc`},shadow:!1,itemCheckboxStyle:{position:`absolute`,width:`13px`,he
4ight:`13px`},squareSymbol:!0,symbolPadding:5,verticalAlign:`bottom`,x:0,y:0,title:{style:{fontWeight:`bold`}}},loading:{labelStyle:{fontWeight:`bold`,position:`relative`,top:`45%`},style:{position:`absolute`,backgroundColor:`#ffffff`,opacity:.5,textAlign:`center`}},tooltip:{enabled:!0,animation:n.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:`%A, %b %e, %H:%M:%S.%L`,second:`%A, %b %e, %H:%M:%S`,minute:`%A, %b %e, %H:%M`,hour:`%A, %b %e, %H:%M`,day:`%A, %b %e, %Y`,week:`Week from %A, %b %e, %Y`,month:`%B %Y`,year:`%Y`},footerFormat:``,headerShape:`callout`,hideDelay:500,padding:8,shape:`callout`,shared:!1,snap:n.isTouchDevice?25:10,headerFormat:`<span style="font-size: 10px">{point.key}</span><br/>`,pointFormat:`<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>`,backgroundColor:t(`#f7f7f7`).setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:`#333333`,cursor:`default`,fontSize:`12px`,whiteSpace:`nowrap`},useHTML:!1},credits:{enabled:!0,href:`https://www.highcharts.com?credits`,position:{align:`right`,x:-10,verticalAlign:`bottom`,y:-5},style:{cursor:`pointer`,color:`#999999`,fontSize:`9px`},text:`Highcharts.com`}};s.chart.styledMode=!1;var c=new i(o(s.global,s.time));return e={defaultOptions:s,defaultTime:c,getOptions:function(){return s},setOptions:function(e){return o(!0,s,e),(e.time||e.global)&&(n.time?n.time.update(o(s.global,s.time,e.global,e.time)):n.time=c),s}},e}),t(n,`Core/Animation/Fx.js`,[n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=e.parse,i=t.win,a=n.isNumber,o=n.objectEach;return function(){function e(e,t,n){this.pos=NaN,this.options=t,this.elem=e,this.prop=n}return e.prototype.dSetter=function(){var e=this.paths,t=e&&e[0];e&&=e[1];var n=this.now||0,r=[];if(n!==1&&t&&e){if(t.length===e.length&&1>n)for(var i=0;i<e.length;i++){for(var o=t[i],s=e[i],c=[],l=0;l<s.length;l++){var u=o[l],d=s[l];a(u)&&a(d)&&(s[0]!==`A`||l!==4&&l!==5)?c[l]=u+n*(d-u):c[l]=d}r.push(c)}else r=e}else r=this.toD||[];this.elem.attr(`d`,r,void 0,!0)},e.prototype.update=function(){var e=this.elem,t=this.prop,n=this.now,r=this.options.step;this[t+`Setter`]?this[t+`Setter`]():e.attr?e.element&&e.attr(t,n,null,!0):e.style[t]=n+this.unit,r&&r.call(e,n,this)},e.prototype.run=function(t,n,r){var a=this,o=a.options,s=function(e){return!s.stopped&&a.step(e)},c=i.requestAnimationFrame||function(e){setTimeout(e,13)},l=function(){for(var t=0;t<e.timers.length;t++)e.timers[t]()||e.timers.splice(t--,1);e.timers.length&&c(l)};t!==n||this.elem[`forceAnimate:`+this.prop]?(this.startTime=+new Date,this.start=t,this.end=n,this.unit=r,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&e.timers.push(s)===1&&c(l)):(delete o.curAnim[this.prop],o.complete&&Object.keys(o.curAnim).length===0&&o.complete.call(this.elem))},e.prototype.step=function(e){var t=+new Date,n=this.options,r=this.elem,i=n.complete,a=n.duration,s=n.curAnim;if(r.attr&&!r.element)e=!1;else if(e||t>=a+this.startTime){this.now=this.end,this.pos=1,this.update();var c=s[this.prop]=!0;o(s,function(e){!0!==e&&(c=!1)}),c&&i&&i.call(r),e=!1}else this.pos=n.easing((t-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0;return e},e.prototype.initPath=function(e,t,n){function r(e,t){for(;e.length<f;){var n=e[0],r=t[f-e.length];r&&n[0]===`M`&&(e[0]=r[0]===`C`?[`C`,n[1],n[2],n[1],n[2],n[1],n[2]]:[`L`,n[1],n[2]]),e.unshift(n),c&&(n=e.pop(),e.push(e[e.length-1],n))}}function i(e,t){for(;e.length<f;)if(t=e[Math.floor(e.length/l)-1].slice(),t[0]===`C`&&(t[1]=t[5],t[2]=t[6]),c){var n=e[Math.floor(e.length/l)].slice();e.splice(e.length/2,0,t,n)}else e.push(t)}var o=e.startX,s=e.endX;n=n.slice();var c=e.isArea,l=c?2:1;if(t&&=t.slice(),!t)return[n,n];if(o&&s&&s.length){for(e=0;e<o.length;e++)if(o[e]===s[0]){var u=e;break}else if(o[0]===s[s.length-o.length+e]){u=e;var d=!0;break}else if(o[o.length-1]===s[s.length-o.length+e]){u=o.length-e;break}u===void 0&&(t=[])}if(t.length&&a(u)){var f=n.length+u*l;d?(r(t,n),i(n,t)):(r(n,t),i(t,n))}return[t,n]},e.prototype.fillSetter=function(){e.prototype.strokeSetter.apply(this,arguments)},e.prototype.strokeSetter=function(){this.elem.attr(this.prop,r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)},e.timers=[],e}()}),t(n,`Core/Animation/AnimationUtilities.js`,[n[`Core/Animation/Fx.js`],n[`Core/Utilities.js`]],function(e,t){function n(e){return c(e)?l({duration:500,defer:0},e):{duration:e?500:0,defer:0}}function r(t,n){for(var r=e.timers.length;r--;)e.timers[r].elem!==t||n&&n!==e.timers[r].prop||(e.timers[r].stopped=!0)}var i=t.defined,a=t.getStyle,o=t.isArray,s=t.isNumber,c=t.isObject,l=t.merge,u=t.objectEach,d=t.pick;return{animate:function(t,n,i){var d,f=``,p,m;if(!c(i)){var h=arguments;i={duration:h[2],easing:h[3],complete:h[4]}}s(i.duration)||(i.duration=400),i.easing=typeof i.easing==`function`?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=l(n),u(n,function(s,c){r(t,c),m=new e(t,i,c),p=void 0,c===`d`&&o(n.d)?(m.paths=m.initPath(t,t.pathArray,n.d),m.toD=n.d,d=0,p=1):t.attr?d=t.attr(c):(d=parseFloat(a(t,c))||0,c!==`opacity`&&(f=`px`)),p||=s,typeof p==`string`&&p.match(`px`)&&(p=p.replace(/px/g,``)),m.run(d,p,f)})},animObject:n,getDeferredAnimation:function(e,t,r){var a=n(t),o=0,s=0;
4return(r?[r]:e.series).forEach(function(e){e=n(e.options.animation),o=t&&i(t.defer)?a.defer:Math.max(o,e.duration+e.defer),s=Math.min(a.duration,e.duration)}),e.renderer.forExport&&(o=0),{defer:Math.max(0,o-s),duration:Math.min(o,s)}},setAnimation:function(e,t){t.renderer.globalAnimation=d(e,t.options.chart.animation,!0)},stop:r}}),t(n,`Core/Renderer/HTML/AST.js`,[n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t){var n=e.SVG_NS,r=t.attr,i=t.createElement,a=t.error,o=t.isFunction,s=t.isString,c=t.objectEach,l=t.splat,u=(t=e.win.trustedTypes)&&o(t.createPolicy)&&t.createPolicy(`highcharts`,{createHTML:function(e){return e}}),d=u?u.createHTML(``):``;try{var f=!!new DOMParser().parseFromString(d,`text/html`)}catch{f=!1}return o=function(){function t(e){this.nodes=typeof e==`string`?this.parseMarkup(e):e}return t.filterUserAttributes=function(e){return c(e,function(n,r){var i=!0;t.allowedAttributes.indexOf(r)===-1&&(i=!1),[`background`,`dynsrc`,`href`,`lowsrc`,`src`].indexOf(r)!==-1&&(i=s(n)&&t.allowedReferences.some(function(e){return n.indexOf(e)===0})),i||(a(`Highcharts warning: Invalid attribute '`+r+`' in config`),delete e[r])}),e},t.setElementHTML=function(e,n){e.innerHTML=t.emptyHTML,n&&new t(n).addToDOM(e)},t.prototype.addToDOM=function(i){function o(i,s){var u;return l(i).forEach(function(i){var l=i.tagName,d=i.textContent?e.doc.createTextNode(i.textContent):void 0;if(l){if(l===`#text`)var f=d;else if(t.allowedTags.indexOf(l)!==-1){l=e.doc.createElementNS(l===`svg`?n:s.namespaceURI||n,l);var p=i.attributes||{};c(i,function(e,t){t!==`tagName`&&t!==`attributes`&&t!==`children`&&t!==`textContent`&&(p[t]=e)}),r(l,t.filterUserAttributes(p)),d&&l.appendChild(d),o(i.children||[],l),f=l}else a(`Highcharts warning: Invalid tagName `+l+` in config`)}f&&s.appendChild(f),u=f}),u}return o(this.nodes,i)},t.prototype.parseMarkup=function(e){var t=[];if(e=e.trim(),f)e=new DOMParser().parseFromString(u?u.createHTML(e):e,`text/html`);else{var n=i(`div`);n.innerHTML=e,e={body:n}}var r=function(e,t){var n=e.nodeName.toLowerCase(),i={tagName:n};if(n===`#text`&&(i.textContent=e.textContent||``),n=e.attributes){var a={};[].forEach.call(n,function(e){a[e.name]=e.value}),i.attributes=a}if(e.childNodes.length){var o=[];[].forEach.call(e.childNodes,function(e){r(e,o)}),o.length&&(i.children=o)}t.push(i)};return[].forEach.call(e.body.childNodes,function(e){return r(e,t)}),t},t.allowedAttributes=`aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex`.split(` `),t.allowedReferences=`https:// http:// mailto: / ../ ./ #`.split(` `),t.allowedTags=`a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text`.split(` `),t.emptyHTML=d,t}(),o}),t(n,`Core/FormatUtilities.js`,[n[`Core/DefaultOptions.js`],n[`Core/Utilities.js`]],function(e,t){function n(e,t,n,i){e=+e||0,t=+t;var a=r.lang,l=(e.toString().split(`.`)[1]||``).split(`e`)[0].length,u=e.toString().split(`e`),d=t;if(t===-1)t=Math.min(l,20);else if(!o(t))t=2;else if(t&&u[1]&&0>u[1]){var f=t+ +u[1];0<=f?(u[0]=(+u[0]).toExponential(f).split(`e`)[0],t=f):(u[0]=u[0].split(`.`)[0]||0,e=20>t?(u[0]*10**u[1]).toFixed(t):0,u[1]=0)}f=(Math.abs(u[1]?u[0]:e)+10**(-Math.max(t,l)-1)).toFixed(t),l=String(c(f));var p=3<l.length?l.length%3:0;return n=s(n,a.decimalPoint),i=s(i,a.thousandsSep),e=(0>e?`-`:``)+(p?l.substr(0,p)+i:``),e=0>+u[1]&&!d?`0`:e+l.substr(p).replace(/(\d{3})(?=\d)/g,`$1`+i),t&&(e+=n+f.slice(-t)),u[1]&&+e!=0&&(e+=`e`+u[1]),e}var r=e.defaultOptions,i=e.defaultTime,a=t.getNestedProperty,o=t.isNumber,s=t.pick,
4c=t.pInt;return{dateFormat:function(e,t,n){return i.dateFormat(e,t,n)},format:function(e,t,o){var s=`{`,c=!1,l=/f$/,u=/\.([0-9])/,d=r.lang,f=o&&o.time||i;o=o&&o.numberFormatter||n;for(var p=[];e;){var m=e.indexOf(s);if(m===-1)break;var h=e.slice(0,m);if(c){if(h=h.split(`:`),s=a(h.shift()||``,t),h.length&&typeof s==`number`){if(h=h.join(`:`),l.test(h)){var g=parseInt((h.match(u)||[``,`-1`])[1],10);s!==null&&(s=o(s,g,d.decimalPoint,-1<h.indexOf(`,`)?d.thousandsSep:``))}else s=f.dateFormat(h,s)}p.push(s)}else p.push(h);e=e.slice(m+1),s=(c=!c)?`}`:`{`}return p.push(e),p.join(``)},numberFormat:n}}),t(n,`Core/Renderer/RendererUtilities.js`,[n[`Core/Utilities.js`]],function(e){var t=e.clamp,n=e.pick,r=e.stableSort,i;return(function(e){function i(e,a,o){var s=e,c=s.reducedLen||a,l=function(e,t){return(t.rank||0)-(e.rank||0)},u=function(e,t){return e.target-t.target},d,f=!0,p=[],m=0;for(d=e.length;d--;)m+=e[d].size;if(m>c){for(r(e,l),m=d=0;m<=c;)m+=e[d].size,d++;p=e.splice(d-1,e.length)}for(r(e,u),e=e.map(function(e){return{size:e.size,targets:[e.target],align:n(e.align,.5)}});f;){for(d=e.length;d--;)c=e[d],l=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/2,c.pos=t(l-c.size*c.align,0,a-c.size);for(d=e.length,f=!1;d--;)0<d&&e[d-1].pos+e[d-1].size>e[d].pos&&(e[d-1].size+=e[d].size,e[d-1].targets=e[d-1].targets.concat(e[d].targets),e[d-1].align=.5,e[d-1].pos+e[d-1].size>a&&(e[d-1].pos=a-e[d-1].size),e.splice(d,1),f=!0)}return s.push.apply(s,p),d=0,e.some(function(e){var t=0;return(e.targets||[]).some(function(){return s[d].pos=e.pos+t,o!==void 0&&Math.abs(s[d].pos-s[d].target)>o?(s.slice(0,d+1).forEach(function(e){return delete e.pos}),s.reducedLen=(s.reducedLen||a)-.1*a,s.reducedLen>.1*a&&i(s,a,o),!0):(t+=s[d].size,d++,!1)})}),r(s,u),s}e.distribute=i})(i||={}),i}),t(n,`Core/Renderer/SVG/SVGElement.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Renderer/HTML/AST.js`],n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=e.animate,o=e.animObject,s=e.stop,c=r.deg2rad,l=r.doc,u=r.noop,d=r.svg,f=r.SVG_NS,p=r.win,m=i.addEvent,h=i.attr,g=i.createElement,_=i.css,v=i.defined,y=i.erase,b=i.extend,x=i.fireEvent,S=i.isArray,C=i.isFunction,w=i.isNumber,T=i.isString,E=i.merge,D=i.objectEach,O=i.pick,k=i.pInt,A=i.syncTimeout,j=i.uniqueKey;return e=function(){function e(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=f,this.symbolCustomAttribs=`x y width height r start end innerR anchorX anchorY roun
4ded`.split(` `)}return e.prototype._defaultGetter=function(e){return e=O(this[e+`Value`],this[e],this.element?this.element.getAttribute(e):null,0),/^[\-0-9\.]+$/.test(e)&&(e=parseFloat(e)),e},e.prototype._defaultSetter=function(e,t,n){n.setAttribute(t,e)},e.prototype.add=function(e){var t=this.renderer,n=this.element;if(e&&(this.parentGroup=e),this.parentInverted=e&&e.inverted,this.textStr!==void 0&&this.element.nodeName===`text`&&t.buildText(this),this.added=!0,!e||e.handleZ||this.zIndex)var r=this.zIndexSetter();return r||(e?e.element:t.box).appendChild(n),this.onAdd&&this.onAdd(),this},e.prototype.addClass=function(e,t){var n=t?``:this.attr(`class`)||``;return e=(e||``).split(/ /g).reduce(function(e,t){return n.indexOf(t)===-1&&e.push(t),e},n?[n]:[]).join(` `),e!==n&&this.attr(`class`,e),this},e.prototype.afterSetters=function(){this.doTransform&&=(this.updateTransform(),!1)},e.prototype.align=function(e,t,n){var r={},i=this.renderer,a=i.alignedObjects,o,s,c;e?(this.alignOptions=e,this.alignByTranslate=t,(!n||T(n))&&(this.alignTo=o=n||`renderer`,y(a,this),a.push(this),n=void 0)):(e=this.alignOptions,t=this.alignByTranslate,o=this.alignTo),n=O(n,i[o],o===`scrollablePlotBox`?i.plotBox:void 0,i),o=e.align;var l=e.verticalAlign;return i=(n.x||0)+(e.x||0),a=(n.y||0)+(e.y||0),o===`right`?s=1:o===`center`&&(s=2),s&&(i+=(n.width-(e.width||0))/s),r[t?`translateX`:`x`]=Math.round(i),l===`bottom`?c=1:l===`middle`&&(c=2),c&&(a+=(n.height-(e.height||0))/c),r[t?`translateY`:`y`]=Math.round(a),this[this.placed?`animate`:`attr`](r),this.placed=!0,this.alignAttr=r,this},e.prototype.alignSetter=function(e){var t={left:`start`,center:`middle`,right:`end`};t[e]&&(this.alignValue=e,this.element.setAttribute(`text-anchor`,t[e]))},e.prototype.animate=function(e,t,n){var r=this,i=o(O(t,this.renderer.globalAnimation,!0));return t=i.defer,O(l.hidden,l.msHidden,l.webkitHidden,!1)&&(i.duration=0),i.duration===0?(this.attr(e,void 0,n),D(e,function(e,t){i.step&&i.step.call(this,e,{prop:t,pos:1,elem:this})},this)):(n&&(i.complete=n),A(function(){r.element&&a(r,e,i)},t)),this},e.prototype.applyTextOutline=function(e){var t=this.element;e.indexOf(`contrast`)!==-1&&(e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));var n=e.split(` `);if(e=n[n.length-1],(n=n[0])&&n!==`none`&&r.svg){this.fakeTS=!0,this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,function(e,t,n){return 2*Number(t)+n}),this.removeTextOutline();var i=l.createElementNS(f,`tspan`);h(i,{class:`highcharts-text-outline`,fill:e,stroke:e,"stroke-width":n,"stroke-linejoin":`round`}),[].forEach.call(t.childNodes,function(e){var t=e.cloneNode(!0);t.removeAttribute&&[`fill`,`stroke`,`stroke-width`,`stroke`].forEach(function(e){return t.removeAttribute(e)}),i.appendChild(t)});var a=l.createElementNS(f,`tspan`);a.textContent=`​`,[`x`,`y`].forEach(function(e){var n=t.getAttribute(e);n&&a.setAttribute(e,n)}),i.appendChild(a),t.insertBefore(i,t.firstChild)}},e.prototype.attr=function(e,t,n,r){var i=this.element,a=this.symbolCustomAttribs,o,c=this,l,u;if(typeof e==`string`&&t!==void 0){var d=e;e={},e[d]=t}return typeof e==`string`?c=(this[e+`Getter`]||this._defaultGetter).call(this,e,i):(D(e,function(t,n){l=!1,r||s(this,n),this.symbolName&&a.indexOf(n)!==-1&&(o||=(this.symbolAttr(e),!0),l=!0),!this.rotation||n!==`x`&&n!==`y`||(this.doTransform=!0),l||(u=this[n+`Setter`]||this._defaultSetter,u.call(this,t,n,i),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,t,u))},this),this.afterSetters()),n&&n.call(this),c},e.prototype.clip=function(e){return this.attr(`clip-path`,e?`url(`+this.renderer.url+`#`+e.id+`)`:`none`)},e.prototype.crisp=function(e,t){t=t||e.strokeWidth||0;var n=Math.round(t)%2/2;return e.x=Math.floor(e.x||this.x||0)+n,e.y=Math.floor(e.y||this.y||0)+n,e.width=Math.floor((e.width||this.width||0)-2*n),e.height=Math.floor((e.height||this.height||0)-2*n),v(e.strokeWidth)&&(e.strokeWidth=t),e},e.prototype.complexColor=function(e,t,r){var i=this.renderer,a,o,s,c,l,u,d,f,p,m,h=[],g;x(this.renderer,`complexColor`,{args:arguments},function(){if(e.radialGradient?o=`radialGradient`:e.linearGradient&&(o=`linearGradient`),o){if(s=e[o],l=i.gradients,u=e.stops,p=r.radialReference,S(s)&&(e[o]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:`userSpaceOnUse`}),o===`radialGradient`&&p&&!v(s.gradientUnits)&&(c=s,s=E(s,i.getRadialAttr(p,c),{gradientUnits:`userSpaceOnUse`})),D(s,function(e,t){t!==`id`&&h.push(t,e)}),D(u,function(e){h.push(e)}),h=h.join(`,`),l[h])m=l[h].attr(`id`);else{s.id=m=j();var _=l[h]=i.createElement(o).attr(s).add(i.defs);_.radAttr=c,_.stops=[],u.forEach(function(e){e[1].indexOf(`rgba`)===0?(a=n.parse(e[1]),d=a.get(`rgb`),f=
4a.get(`a`)):(d=e[1],f=1),e=i.createElement(`stop`).attr({offset:e[0],"stop-color":d,"stop-opacity":f}).add(_),_.stops.push(e)})}g=`url(`+i.url+`#`+m+`)`,r.setAttribute(t,g),r.gradient=h,e.toString=function(){return g}}})},e.prototype.css=function(e){var t=this.styles,n={},r=this.element,i=[`textOutline`,`textOverflow`,`width`],a=``,o=!t;if(e&&e.color&&(e.fill=e.color),t&&D(e,function(e,r){t&&t[r]!==e&&(n[r]=e,o=!0)}),o){if(t&&(e=b(t,n)),e){if(e.width===null||e.width===`auto`)delete this.textWidth;else if(r.nodeName.toLowerCase()===`text`&&e.width)var s=this.textWidth=k(e.width)}if(this.styles=e,s&&!d&&this.renderer.forExport&&delete e.width,r.namespaceURI===this.SVG_NS){var c=function(e,t){return`-`+t.toLowerCase()};D(e,function(e,t){i.indexOf(t)===-1&&(a+=t.replace(/([A-Z])/g,c)+`:`+e+`;`)}),a&&h(r,`style`,a)}else _(r,e);this.added&&(this.element.nodeName===`text`&&this.renderer.buildText(this),e&&e.textOutline&&this.applyTextOutline(e.textOutline))}return this},e.prototype.dashstyleSetter=function(e){var t=this[`stroke-width`];if(t===`inherit`&&(t=1),e&&=e.toLowerCase()){var n=e.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=n.length;e--;)n[e]=``+k(n[e])*O(t,NaN);e=n.join(`,`).replace(/NaN/g,`none`),this.element.setAttribute(`stroke-dasharray`,e)}},e.prototype.destroy=function(){var e=this,t=e.element||{},n=e.renderer,r=t.ownerSVGElement,i=n.isSVG&&t.nodeName===`SPAN`&&e.parentGroup||void 0;if(t.onclick=t.onmouseout=t.onmouseover=t.onmousemove=t.point=null,s(e),e.clipPath&&r){var a=e.clipPath;[].forEach.call(r.querySelectorAll(`[clip-path],[CLIP-PATH]`),function(e){-1<e.getAttribute(`clip-path`).indexOf(a.element.id)&&e.removeAttribute(`clip-path`)}),e.clipPath=a.destroy()}if(e.stops){for(r=0;r<e.stops.length;r++)e.stops[r].destroy();e.stops.length=0,e.stops=void 0}for(e.safeRemoveChild(t),n.styledMode||e.destroyShadows();i&&i.div&&i.div.childNodes.length===0;)t=i.parentGroup,e.safeRemoveChild(i.div),delete i.div,i=t;e.alignTo&&y(n.alignedObjects,e),D(e,function(t,n){e[n]&&e[n].parentGroup===e&&e[n].destroy&&e[n].destroy(),delete e[n]})},e.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(e){this.safeRemoveChild(e)},this),this.shadows=void 0},e.prototype.destroyTextPath=function(e,t){var n=e.getElementsByTagName(`text`)[0];if(n){if(n.removeAttribute(`dx`),n.removeAttribute(`dy`),t.element.setAttribute(`id`,``),this.textPathWrapper&&n.getElementsByTagName(`textPath`).length){for(e=this.textPathWrapper.element.childNodes;e.length;)n.appendChild(e[0]);n.removeChild(this.textPathWrapper.element)}}else(e.getAttribute(`dx`)||e.getAttribute(`dy`))&&(e.removeAttribute(`dx`),e.removeAttribute(`dy`));this.textPathWrapper&&=this.textPathWrapper.destroy()},e.prototype.dSetter=function(e,t,n){S(e)&&(typeof e[0]==`string`&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce(function(e,t,n){return t&&t.join?(n?e+` `:``)+t.join(` `):(t||``).toString()},``)),/(NaN| {2}|^$)/.test(e)&&(e=`M 0 0`),this[t]!==e&&(n.setAttribute(t,e),this[t]=e)},e.prototype.fadeOut=function(e){var t=this;t.animate({opacity:0}
4,{duration:O(e,150),complete:function(){t.attr({y:-9999}).hide()}})},e.prototype.fillSetter=function(e,t,n){typeof e==`string`?n.setAttribute(t,e):e&&this.complexColor(e,t,n)},e.prototype.getBBox=function(t,n){var r=this.renderer,i=this.element,a=this.styles,o=this.textStr,s=r.cache,l=r.cacheKeys,u=i.namespaceURI===this.SVG_NS;n=O(n,this.rotation,0);var d=r.styledMode?i&&e.prototype.getStyle.call(i,`font-size`):a&&a.fontSize,f;if(v(o)){var p=o.toString();p.indexOf(`<`)===-1&&(p=p.replace(/[0-9]/g,`0`)),p+=[``,n,d,this.textWidth,a&&a.textOverflow,a&&a.fontWeight].join()}if(p&&!t&&(f=s[p]),!f){if(u||r.forExport){try{var m=this.fakeTS&&function(e){var t=i.querySelector(`.highcharts-text-outline`);t&&_(t,{display:e})};C(m)&&m(`none`),f=i.getBBox?b({},i.getBBox()):{width:i.offsetWidth,height:i.offsetHeight},C(m)&&m(``)}catch{}(!f||0>f.width)&&(f={width:0,height:0})}else f=this.htmlGetBBox();if(r.isSVG&&(t=f.width,r=f.height,u&&(f.height=r={"11px,17":14,"13px,20":16}[(d||``)+`,`+Math.round(r)]||r),n&&(u=n*c,f.width=Math.abs(r*Math.sin(u))+Math.abs(t*Math.cos(u)),f.height=Math.abs(r*Math.cos(u))+Math.abs(t*Math.sin(u)))),p&&(o===``||0<f.height)){for(;250<l.length;)delete s[l.shift()];s[p]||l.push(p),s[p]=f}}return f},e.prototype.getStyle=function(e){return p.getComputedStyle(this.element||this,``).getPropertyValue(e)},e.prototype.hasClass=function(e){return(``+this.attr(`class`)).split(` `).indexOf(e)!==-1},e.prototype.hide=function(e){return e?this.attr({y:-9999}):this.attr({visibility:`hidden`}),this},e.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},e.prototype.init=function(e,t){this.element=t===`span`?g(t):l.createElementNS(this.SVG_NS,t),this.renderer=e,x(this,`afterInit`)},e.prototype.invert=function(e){return this.inverted=e,this.updateTransform(),this},e.prototype.on=function(e,t){var n=this.onEvents;return n[e]&&n[e](),n[e]=m(this.element,e,t),this},e.prototype.opacitySetter=function(e,t,n){this.opacity=e=Number(Number(e).toFixed(3)),n.setAttribute(t,e)},e.prototype.removeClass=function(e){return this.attr(`class`,(``+this.attr(`class`)).replace(T(e)?RegExp(`(^| )`+e+`( |$)`):e,` `).replace(/ +/g,` `).trim())},e.prototype.removeTextOutline=function(){var e=this.element.querySelector(`tspan.highcharts-text-outline`);e&&this.safeRemoveChild(e)},e.prototype.safeRemoveChild=function(e){var t=e.parentNode;t&&t.removeChild(e)},e.prototype.setRadialReference=function(e){var t=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=e,t&&t.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this},e.prototype.setTextPath=function(e,n){var r=this.element,i=this.text?this.text.element:r,a={textAnchor:`text-anchor`},o=!1,s=this.textPathWrapper,c=!s;n=E(!0,{enabled:!0,attributes:{dy:-5,startOffset:`50%`,textAnchor:`middle`}},n);var l=t.filterUserAttributes(n.attributes);if(e&&n&&n.enabled){s&&s.element.parentNode===null?(c=!0,s=s.destroy()):s&&this.removeTextOutline.call(s.parentGroup),this.options&&this.options.padding&&(l.dx=-this.options.padding),s||(this.textPathWrapper=s=this.renderer.createElement(`textPath`),o=!0);var d=s.element;if((n=e.element.getAttribute(`id`))||e.element.setAttribute(`id`,n=j()),c)for(i.setAttribute(`y`,0),w(l.dx)&&i.setAttribute(`x`,-l.dx),e=[].slice.call(i.childNodes),c=0;c<e.length;c++){var f=e[c];f.nodeType!==p.Node.TEXT_NODE&&f.nodeName!==`tspan`||d.appendChild(f)}o&&s&&s.add({element:i}),d.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,this.renderer.url+`#`+n),v(l.dy)&&(d.parentNode.setAttribute(`dy`,l.dy),delete l.dy),v(l.dx)&&(d.parentNode.setAttribute(`dx`,l.dx),delete l.dx),D(l,function(e,t){d.setAttribute(a[t]||t,e)}),r.removeAttribute(`transform`),this.removeTextOutline.call(s),this.text&&!this.renderer.styledMode&&this.attr({fill:`none`,"stroke-width":0}),this.applyTextOutline=this.updateTransform=u}else s&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(r,e),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},e.prototype.shadow=function(e,t,n){var r=[],i=this.element,a=this.oldSha
4dowOptions,o={color:`#000000`,offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},s=!1,c;if(!0===e?c=o:typeof e==`object`&&(c=b(o,e)),c&&(c&&a&&D(c,function(e,t){e!==a[t]&&(s=!0)}),s&&this.destroyShadows(),this.oldShadowOptions=c),!c)this.destroyShadows();else if(!this.shadows){var l=c.opacity/c.width,u=this.parentInverted?`translate(`+c.offsetY+`, `+c.offsetX+`)`:`translate(`+c.offsetX+`, `+c.offsetY+`)`;for(o=1;o<=c.width;o++){var d=i.cloneNode(!1),f=2*c.width+1-2*o;h(d,{stroke:e.color||`#000000`,"stroke-opacity":l*o,"stroke-width":f,transform:u,fill:`none`}),d.setAttribute(`class`,(d.getAttribute(`class`)||``)+` highcharts-shadow`),n&&(h(d,`height`,Math.max(h(d,`height`)-f,0)),d.cutHeight=f),t?t.element.appendChild(d):i.parentNode&&i.parentNode.insertBefore(d,i),r.push(d)}this.shadows=r}return this},e.prototype.show=function(e){return this.attr({visibility:e?`inherit`:`visible`})},e.prototype.strokeSetter=function(t,n,r){this[n]=t,this.stroke&&this[`stroke-width`]?(e.prototype.fillSetter.call(this,this.stroke,`stroke`,r),r.setAttribute(`stroke-width`,this[`stroke-width`]),this.hasStroke=!0):n===`stroke-width`&&t===0&&this.hasStroke?(r.removeAttribute(`stroke`),this.hasStroke=!1):this.renderer.styledMode&&this[`stroke-width`]&&(r.setAttribute(`stroke-width`,this[`stroke-width`]),this.hasStroke=!0)},e.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this[`stroke-width`]||0;var e=this.getStyle(`stroke-width`),t=0;if(e.indexOf(`px`)===e.length-2)t=k(e);else if(e!==``){var n=l.createElementNS(f,`rect`);h(n,{width:e,"stroke-width":0}),this.element.parentNode.appendChild(n),t=n.getBBox().width,n.parentNode.removeChild(n)}return t},e.prototype.symbolAttr=function(e){var t=this;`x y r start end width height innerR anchorX anchorY clockwise`.split(` `).forEach(function(n){t[n]=O(e[n],t[n])}),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})},e.prototype.textSetter=function(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this))},e.prototype.titleSetter=function(e){var t=this.element,n=t.getElementsByTagName(`title`)[0]||l.createElementNS(this.SVG_NS,`title`);t.insertBefore?t.insertBefore(n,t.firstChild):t.appendChild(n),n.textContent=String(O(e,``)).replace(/<[^>]*>/g,``).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`)},e.prototype.toFront=function(){var e=this.element;return e.parentNode.appendChild(e),this},e.prototype.translate=function(e,t){return this.attr({translateX:e,translateY:t})},e.prototype.updateShadows=function(e,t,n){var r=this.shadows;if(r)for(var i=r.length;i--;)n.call(r[i],e===`height`?Math.max(t-(r[i].cutHeight||0),0):e===`d`?this.d:t,e,r[i])},e.prototype.updateTransform=function(){var e=this.scaleX,t=this.scaleY,n=this.inverted,r=this.rotation,i=this.matrix,a=this.element,o=this.translateX||0,s=this.translateY||0;n&&(o+=this.width,s+=this.height),o=[`translate(`+o+`,`+s+`)`],v(i)&&o.push(`matrix(`+i.join(`,`)+`)`),n?o.push(`rotate(90) scale(-1,1)`):r&&o.push(`rotate(`+r+` `+O(this.rotationOriginX,a.getAttribute(`x`),0)+` `+O(this.rotationOriginY,a.getAttribute(`y`)||0)+`)`),(v(e)||v(t))&&o.push(`scale(`+O(e,1)+` `+O(t,1)+`)`),o.length&&a.setAttribute(`transform`,o.join(` `))},e.prototype.visibilitySetter=function(e,t,n){e===`inherit`?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e},e.prototype.xGetter=function(e){return this.element.nodeName===`circle`&&(e===`x`?e=`cx`:e===`y`&&(e=`cy`)),this._defaultGetter(e)},e.prototype.zIndexSetter=function(e,t){var n=this.renderer,r=this.parentGroup,i=(r||n).element||n.box,a=this.element;n=i===n.box;var o=!1,s=this.added,c;if(v(e)?(a.setAttribute(`data-z-index`,e),e=+e,this[t]===e&&(s=!1)):v(this[t])&&a.removeAttribute(`data-z-index`),this[t]=e,s){for((e=this.zIndex)&&r&&(r.handleZ=!0),t=i.childNodes,c=t.length-1;0<=c&&!o;c--){r=t[c],s=r.getAttribute(`data-z-index`);var l=!v(s);r!==a&&(0>e&&l&&!n&&!c?(i.insertBefore(a,t[c]),o=!0):(k(s)<=e||l&&(!v(e)||0<=e))&&(i.insertBefore(a,t[c+1]||null),o=!0))}o||=(i.insertBefore(a,t[n?3:0]||null),!0)}return o},e}(),e.prototype[`stroke-widthSetter`]=e.prototype.strokeSetter,e.prototype.yGetter=e.prototype.xGetter,e.prototype.matrixSetter=e.prototype.rotationOriginXSetter=e.prototype.rotationOriginYSetter=e.prototype.rotationSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.verticalAlignSetter=function(e,t){this[t]=e,this.doTransform=!0},e}),t(n,`Core/Renderer/RendererRegistry.js`,[n[`Core/Globals.js`]],function(e){var t;return(function(t){t.rendererTypes={};var n;t.getRendererType=function(e){return e===void 0&&(e=n),t.rendererTypes[e]||t.rendererTypes[n]},t.registerRendererType=function(r,i,a){t.rendererTypes[r]=i,(!n||a)&&(n=r,e.Renderer=i)}})(t||={}),t}),t(n,`Core/Renderer/SVG/SVGLabel.js`,[n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Utilities.js`]],function(e,t){var n=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}
4e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=t.defined,i=t.extend,a=t.isNumber,o=t.merge,s=t.pick,c=t.removeEvent;return function(t){function l(e,n,r,i,a,o,s,c,u,d){var f=t.call(this)||this;f.paddingLeftSetter=f.paddingSetter,f.paddingRightSetter=f.paddingSetter,f.init(e,`g`),f.textStr=n,f.x=r,f.y=i,f.anchorX=o,f.anchorY=s,f.baseline=u,f.className=d,f.addClass(d===`button`?`highcharts-no-tooltip`:`highcharts-label`),d&&f.addClass(`highcharts-`+d),f.text=e.text(void 0,0,0,c).attr({zIndex:1});var p;return typeof a==`string`&&((p=/^url\((.*?)\)$/.test(a))||f.renderer.symbols[a])&&(f.symbolKey=a),f.bBox=l.emptyBBox,f.padding=3,f.baselineOffset=0,f.needsBox=e.styledMode||p,f.deferredAttr={},f.alignFactor=0,f}return n(l,t),l.prototype.alignSetter=function(e){e={left:0,center:.5,right:1}[e],e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&a(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)},l.prototype.boxAttr=function(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t},l.prototype.css=function(t){if(t){var n={};t=o(t),l.textProps.forEach(function(e){t[e]!==void 0&&(n[e]=t[e],delete t[e])}),this.text.css(n);var r=`width`in n;`fontSize`in n||`fontWeight`in n?this.updateTextPadding():r&&this.updateBoxSize()}return e.prototype.css.call(this,t)},l.prototype.destroy=function(){c(this.element,`mouseenter`),c(this.element,`mouseleave`),this.text&&this.text.destroy(),this.box&&=this.box.destroy(),e.prototype.destroy.call(this)},l.prototype.fillSetter=function(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)},l.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var e=this.padding,t=s(this.paddingLeft,e);return{width:this.width,height:this.height,x:this.bBox.x-t,y:this.bBox.y-e}},l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this[`stroke-width`]?parseInt(this[`stroke-width`],10):0)%2/2},l.prototype.heightSetter=function(e){this.heightSetting=e},l.prototype.onAdd=function(){var e=this.textStr;this.text.add(this),this.attr({text:r(e)?e:``,x:this.x,y:this.y}),this.box&&r(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(e,t){a(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0},l.prototype.rSetter=function(e,t){this.boxAttr(t,e)},l.prototype.shadow=function(e){return e&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(e)),this},l.prototype.strokeSetter=function(e,t){this.stroke=e,this.boxAttr(t,e)},l.prototype[`stroke-widthSetter`]=function(e,t){e&&(this.needsBox=!0),this[`stroke-width`]=e,this.boxAttr(t,e)},l.prototype[`text-alignSetter`]=function(e){this.textAlign=e},l.prototype.textSetter=function(e){e!==void 0&&this.text.attr({text:e}),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var e=this.text.element.style,t={},n=this.padding,o=this.bBox=a(this.widthSetting)&&a(this.heightSetting)&&!this.textAlign||!r(this.text.textStr)?l.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*n,e=this.renderer.fontMetrics(e&&e.fontSize,this.text),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||e).b,o.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&(this.box||(n=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),n.addClass((this.className===`button`?``:`highcharts-label-box`)+(this.className?` highcharts-`+this.className+`-box`:``)),n.add(this)),n=this.getCrispAdjust(),t.x=n,t.y=(this.baseline?-this.baselineOffset:0)+n,t.width=Math.round(this.width),t.height=Math.round(this.height),this.box.attr(i(t,this.deferredAttr)),this.deferredAttr={})},l.prototype.updateTextPadding=function(){var e=this.text;this.updateBoxSize();var t=this.baseline?0:this.baselineOffset,n=s(this.paddingLeft,this.padding);r(this.widthSetting)&&this.bBox&&(this.textAlign===`center`||this.textAlign===`right`)&&(n+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(n!==e.x||t!==e.y)&&
4(e.attr(`x`,n),e.hasBoxWidthChanged&&(this.bBox=e.getBBox(!0)),t!==void 0&&e.attr(`y`,t)),e.x=n,e.y=t},l.prototype.widthSetter=function(e){this.widthSetting=a(e)?e:void 0},l.prototype.getPaddedWidth=function(){var e=this.padding,t=s(this.paddingLeft,e);return e=s(this.paddingRight,e),(this.widthSetting||this.bBox.width||0)+t+e},l.prototype.xSetter=function(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this[`forceAnimate:x`]=!0),this.xSetting=Math.round(e),this.attr(`translateX`,this.xSetting)},l.prototype.ySetter=function(e){this.ySetting=this.y=Math.round(e),this.attr(`translateY`,this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps=`color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width`.split(` `),l}(e)}),t(n,`Core/Renderer/SVG/Symbols.js`,[n[`Core/Utilities.js`]],function(e){function t(e,t,n,r,a){var s=[];if(a){var c=a.start||0,l=o(a.r,n);n=o(a.r,r||n);var u=(a.end||0)-.001;r=a.innerR;var d=o(a.open,.001>Math.abs((a.end||0)-c-2*Math.PI)),f=Math.cos(c),p=Math.sin(c),m=Math.cos(u),h=Math.sin(u);c=o(a.longArc,.001>u-c-Math.PI?0:1),s.push([`M`,e+l*f,t+n*p],[`A`,l,n,0,c,o(a.clockwise,1),e+l*m,t+n*h]),i(r)&&s.push(d?[`M`,e+r*m,t+r*h]:[`L`,e+r*m,t+r*h],[`A`,r,r,0,c,i(a.clockwise)?1-a.clockwise:0,e+r*f,t+r*p]),d||s.push([`Z`])}return s}function n(e,t,n,i,a){return a&&a.r?r(e,t,n,i,a):[[`M`,e,t],[`L`,e+n,t],[`L`,e+n,t+i],[`L`,e,t+i],[`Z`]]}function r(e,t,n,r,i){return i=i&&i.r||0,[[`M`,e+i,t],[`L`,e+n-i,t],[`C`,e+n,t,e+n,t,e+n,t+i],[`L`,e+n,t+r-i],[`C`,e+n,t+r,e+n,t+r,e+n-i,t+r],[`L`,e+i,t+r],[`C`,e,t+r,e,t+r,e,t+r-i],[`L`,e,t+i],[`C`,e,t,e,t,e+i,t]]}var i=e.defined,a=e.isNumber,o=e.pick;return{arc:t,callout:function(e,t,n,i,o){var s=Math.min(o&&o.r||0,n,i),c=s+6,l=o&&o.anchorX;o=o&&o.anchorY||0;var u=r(e,t,n,i,{r:s});return a(l)&&(e+l>=n?o>t+c&&o<t+i-c?u.splice(3,1,[`L`,e+n,o-6],[`L`,e+n+6,o],[`L`,e+n,o+6],[`L`,e+n,t+i-s]):u.splice(3,1,[`L`,e+n,i/2],[`L`,l,o],[`L`,e+n,i/2],[`L`,e+n,t+i-s]):0>=e+l?o>t+c&&o<t+i-c?u.splice(7,1,[`L`,e,o+6],[`L`,e-6,o],[`L`,e,o-6],[`L`,e,t+s]):u.splice(7,1,[`L`,e,i/2],[`L`,l,o],[`L`,e,i/2],[`L`,e,t+s]):o&&o>i&&l>e+c&&l<e+n-c?u.splice(5,1,[`L`,l+6,t+i],[`L`,l,t+i+6],[`L`,l-6,t+i],[`L`,e+s,t+i]):o&&0>o&&l>e+c&&l<e+n-c&&u.splice(1,1,[`L`,l-6,t],[`L`,l,t-6],[`L`,l+6,t],[`L`,n-s,t])),u},circle:function(e,n,r,i){return t(e+r/2,n+i/2,r/2,i/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,t,n,r){return[[`M`,e+n/2,t],[`L`,e+n,t+r/2],[`L`,e+n/2,t+r],[`L`,e,t+r/2],[`Z`]]},rect:n,roundedRect:r,square:n,triangle:function(e,t,n,r){return[[`M`,e+n/2,t],[`L`,e+n,t+r],[`L`,e,t+r],[`Z`]]},"triangle-down":function(e,t,n,r){return[[`M`,e,t],[`L`,e+n,t],[`L`,e+n/2,t+r],[`Z`]]}}}),t(n,`Core/Renderer/SVG/TextBuilder.js`,[n[`Core/Renderer/HTML/AST.js`],n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=t.doc,i=t.SVG_NS,a=t.win,o=n.attr,s=n.isString,c=n.objectEach,l=n.pick;return function(){function t(e){var t=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=t&&t.lineHeight,this.textOutline=t&&t.textOutline,this.ellipsis=!(!t||t.textOverflow!==`ellipsis`),this.noWrap=!(!t||t.whiteSpace!==`nowrap`),this.fontSize=t&&t.fontSize}return t.prototype.buildSVG=function(){var t=this.svgElement,n=t.element,i=t.renderer,a=l(t.textStr,``).toString(),o=a.indexOf(`<`)!==-1,c=n.childNodes;i=this.width&&!t.added&&i.box;var u=/<br.*?>/g,d=[a,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(d!==t.textCache){for(t.textCache=d,delete t.actualWidth,d=c.length;d--;)n.removeChild(c[d]);o||this.ellipsis||this.width||a.indexOf(` `)!==-1&&(!this.noWrap||u.test(a))?a!==``&&(i&&i.appendChild(n),a=new e(a),this.modifyTree(a.nodes),a.addToDOM(t.element),this.modifyDOM(),this.ellipsis&&(n.textContent||``).indexOf(`…`)!==-1&&t.attr(`title`,this.unescapeEntities(t.textStr||``,[`&lt;`,`&gt;`])),i&&i.removeChild(n)):n.appendChild(r.createTextNode(this.unescapeEntities(a))),s(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},t.prototype.modifyDOM=function(){var e=this,t=this.svgElement,n=o(t.element,`x`);t.firstLineMetrics=void 0;for(var s;(s=t.element.firstChild)&&/^[\s\u200B]*$/.test(s.textContent||` `);)t.element.removeChild(s);[].forEach.call(t.element.querySelectorAll(`tspan.highcharts-br`),function(r,i){r.nextSibling&&r.previousSibling&&(i===0&&r.previousSibling.nodeType===1&&(t.firstLineMetrics=t.renderer.fontMetrics(void 0,r.previousSibling)),o(r,{dy:e.getLineHeight(r.nextSibling),x:n}))});var c=this.width||0;if(c){var l=function(a,s){var l=a.textContent||``,u=l.replace(/([^\^])-/g,`$1- `).split(` `),d=!e.noWrap&&(1<u.length||1<t.element.childNodes.length),f=e.getLineHeight(s),p=0,m=t.actualWidth;if(e.ellipsis)l&&e.truncate(a,l,void 0,0,Math.max(0,c-parseInt(e.fontSize||12,10)),function(e,t){return e.substring(0,t)+`…`});else if(d){for(l=[],d=[];s.firstChild&&s.firstChild!==a;)d.push(s.firstChild),s.removeChild(s.firstChild);for(;u.length;)u.length&&!e.noWrap&&0<p&&(l.push(a.textContent||``),a.textContent=u.join(` `).replace(/- /g,`-`)),e.truncate(a,void 0,u,p===0&&m||0,c,function(e,t){return u.slice(0,t).join(` `).replace(/- /g,`-`)}),m=t.actualWidth,p++;d.forEach(function(e){s.insertBefore(e,a)}),l.forEach(function(e){s.insertBefore(r.createTextNode(e),a),e=r.createElementNS(i,`tspan`),e.textContent=`​`,o(e,{dy:f,x:n}),s.insertBefore(e,a)})}}
4,u=function(e){[].slice.call(e.childNodes).forEach(function(n){n.nodeType===a.Node.TEXT_NODE?l(n,e):(n.className.baseVal.indexOf(`highcharts-br`)!==-1&&(t.actualWidth=0),u(n))})};u(t.element)}},t.prototype.getLineHeight=function(e){var t;return e=e.nodeType===a.Node.TEXT_NODE?e.parentElement:e,this.renderer.styledMode||(t=e&&/(px|em)$/.test(e.style.fontSize)?e.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t,e||this.svgElement.element).h},t.prototype.modifyTree=function(e){var t=this,n=function(r,i){var a=r.attributes;a=a===void 0?{}:a;var o=r.children,c=r.tagName,l=t.renderer.styledMode;c===`b`||c===`strong`?l?a.class=`highcharts-strong`:a.style=`font-weight:bold;`+(a.style||``):(c===`i`||c===`em`)&&(l?a.class=`highcharts-emphasized`:a.style=`font-style:italic;`+(a.style||``)),s(a.style)&&(a.style=a.style.replace(/(;| |^)color([ :])/,`$1fill$2`)),c===`br`?(a.class=`highcharts-br`,r.textContent=`​`,(i=e[i+1])&&i.textContent&&(i.textContent=i.textContent.replace(/^ +/gm,``))):c===`a`&&o&&o.some(function(e){return e.tagName===`#text`})&&(r.children=[{children:o,tagName:`tspan`}]),c!==`#text`&&c!==`a`&&(r.tagName=`tspan`),r.attributes=a,o&&o.filter(function(e){return e.tagName!==`#text`}
4).forEach(n)};e.forEach(n)},t.prototype.truncate=function(e,t,n,r,i,a){var o=this.svgElement,s=o.renderer,c=o.rotation,l=[],u=+!!n,d=(t||n||``).length,f=d,p,m=function(i,c){c||=i;var u=e.parentNode;if(u&&l[c]===void 0){if(u.getSubStringLength)try{l[c]=r+u.getSubStringLength(0,n?c+1:c)}catch{}else s.getSpanWidth&&(e.textContent=a(t||n,i),l[c]=r+s.getSpanWidth(o,e))}return l[c]};o.rotation=0;var h=m(e.textContent.length);if(r+h>i){for(;u<=d;)f=Math.ceil((u+d)/2),n&&(p=a(n,f)),h=m(f,p&&p.length-1),u===d?u=d+1:h>i?d=f-1:u=f;d===0?e.textContent=``:t&&d===t.length-1||(e.textContent=p||a(t||n,f))}n&&n.splice(0,f),o.actualWidth=h,o.rotation=c},t.prototype.unescapeEntities=function(e,t){return c(this.renderer.escapes,function(n,r){t&&t.indexOf(n)!==-1||(e=e.toString().replace(new RegExp(n,`g`),r))}),e},t}()}),t(n,`Core/Renderer/SVG/SVGRenderer.js`,[n[`Core/Renderer/HTML/AST.js`],n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Renderer/RendererRegistry.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Renderer/SVG/SVGLabel.js`],n[`Core/Renderer/SVG/Symbols.js`],n[`Core/Renderer/SVG/TextBuilder.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s,c){var l=n.charts,u=n.deg2rad,d=n.doc,f=n.isFirefox,p=n.isMS,m=n.isWebKit,h=n.noop,g=n.SVG_NS,_=n.symbolSizes,v=n.win,y=c.addEvent,b=c.attr,x=c.createElement,S=c.css,C=c.defined,w=c.destroyObjectProperties,T=c.extend,E=c.isArray,D=c.isNumber,O=c.isObject,k=c.isString,A=c.merge,j=c.pick,M=c.pInt,N=c.uniqueKey,P;return n=function(){function n(e,t,n,r,i,a,o){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(e,t,n,r,i,a,o)}return n.prototype.init=function(e,t,n,r,i,a,o){var s=this.createElement(`svg`).attr({version:`1.1`,class:`highcharts-root`}),c=s.element;o||s.css(this.getStyle(r)),e.appendChild(c),b(e,`dir`,`ltr`),e.innerHTML.indexOf(`xmlns`)===-1&&b(c,`xmlns`,this.SVG_NS),this.isSVG=!0,this.box=c,this.boxWrapper=s,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement(`desc`).add().element.appendChild(d.createTextNode(`Created with Highcharts 9.3.3`)),this.defs=this.createElement(`defs`).add(),this.allowHTML=a,this.forExport=i,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(t,n,!1);var l;f&&e.getBoundingClientRect&&(t=function(){S(e,{left:0,top:0}),l=e.getBoundingClientRect(),S(e,{left:Math.ceil(l.left)-l.left+`px`,top:Math.ceil(l.top)-l.top+`px`})},t(),this.unSubPixelFix=y(v,`resize`,t))},n.prototype.definition=function(t){return new e([t]).addToDOM(this.defs.element)},n.prototype.getReferenceURL=function(){if((f||m)&&d.getElementsByTagName(`base`).length){if(!C(P)){var t=N();t=new e([{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(#`+t+`)`,fill:`rgba(0,0,0,0.001)`}}]}]).addToDOM(d.body),S(t,{position:`fixed`,top:0,left:0,zIndex:9e5});var n=d.elementFromPoint(6,6);P=(n&&n.id)===`hitme`,d.body.removeChild(t)}if(P)return v.location.href.split(`#`)[0].replace(/<[^>]*>/g,``).replace(/([\('\)])/g,`\\$1`).replace(/ /g,`%20`)}return``},n.prototype.getStyle=function(e){return this.style=T({fontFamily:`"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif`,fontSize:`12px`},e)},n.prototype.setStyle=function(e){this.boxWrapper.css(this.getStyle(e))},n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},n.prototype.destroy=function(){var e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),w(this.gradients||{}),this.gradients=null,e&&(this.defs=e.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},n.prototype.createElement=function(e){var t=new this.Element;return t.init(this,e),t},n.prototype.getRadialAttr=function(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}},n.prototype.buildText=function(e){new s(e).buildSVG()},n.prototype.getContrast=function(e){return e=t.parse(e).rgba,e[0]*=1,e[1]*=1.2,e[2]*=.5,459<e[0]+e[1]+e[2]?`#000000`:`#FFFFFF`},n.prototype.button=function(t,n,r,i,a,o,s,c,l,u){var d=this.label(t,n,r,l,void 0,void 0,u,void 0,`button`),f=this.styledMode,m=0,h=a?A(a):{};if(t=h&&h.style||{},h=e.filterUserAttributes(h),d.attr(A({padding:8,r:2},h)),!f){h=A({fill:`#f7f7f7`,stroke:`#cccccc`,"stroke-width":1,style:{color:`#333333`,cursor:`pointer`,fontWeight:`normal`}},{style:t},h);var g=h.style;delete h.style,o=A(h,{fill:`#e6e6e6`},e.filterUserAttributes(o||{}));var _=o.style;delete o.style,s=A(h,{fill:`#e6ebf5`,style:{color:`#000000`,fontWeight:`bold`}},e.filterUserAttributes(s||{}));var v=s.style;delete s.style,c=A(h,{style:{color:`#cccccc`}},e.filterUserAttributes(c||{}));var b=c.style;delete c.style}return y(d.element,p?`mouseover`:`mouseenter`,function(){m!==3&&d.setState(1)}),y(d.element,p?`mouseout`:`mouseleave`,function(){m!==3&&d.setState(m)}),d.setState=function(e){e!==1&&(d.state=m=e),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass(`highcharts-button-`+[`normal`,`hover`,`pressed`,`disabled`][e||0]),f||d.attr([h,o,s,c][e||0]).css([g,_,v,b][e||0])},f||d.attr(h).css(T({cursor:`default`},g)),d.on(`touchstart`,function(e){return e.stopPropagation()}
4).on(`click`,function(e){m!==3&&i.call(d,e)})},n.prototype.crispLine=function(e,t,n){n===void 0&&(n=`round`);var r=e[0],i=e[1];return C(r[1])&&r[1]===i[1]&&(r[1]=i[1]=Math[n](r[1])-t%2/2),C(r[2])&&r[2]===i[2]&&(r[2]=i[2]=Math[n](r[2])+t%2/2),e},n.prototype.path=function(e){var t=this.styledMode?{}:{fill:`none`};return E(e)?t.d=e:O(e)&&T(t,e),this.createElement(`path`).attr(t)},n.prototype.circle=function(e,t,n){return e=O(e)?e:e===void 0?{}:{x:e,y:t,r:n},t=this.createElement(`circle`),t.xSetter=t.ySetter=function(e,t,n){n.setAttribute(`c`+t,e)},t.attr(e)},n.prototype.arc=function(e,t,n,r,i,a){return O(e)?(r=e,t=r.y,n=r.r,e=r.x):r={innerR:r,start:i,end:a},e=this.symbol(`arc`,e,t,n,n,r),e.r=n,e},n.prototype.rect=function(e,t,n,r,i,a){i=O(e)?e.r:i;var o=this.createElement(`rect`);return e=O(e)?e:e===void 0?{}:{x:e,y:t,width:Math.max(n,0),height:Math.max(r,0)},this.styledMode||(a!==void 0&&(e[`stroke-width`]=a,e=o.crisp(e)),e.fill=`none`),i&&(e.r=i),o.rSetter=function(e,t,n){o.r=e,b(n,{rx:e,ry:e})},o.rGetter=function(){return o.r||0},o.attr(e)},n.prototype.setSize=function(e,t,n){this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:`0 0 `+this.attr(`width`)+` `+this.attr(`height`)})},duration:j(n,!0)?void 0:0}),this.alignElements()},n.prototype.g=function(e){var t=this.createElement(`g`);return e?t.attr({class:`highcharts-`+e}):t},n.prototype.image=function(e,t,n,r,i,a){var o={preserveAspectRatio:`none`},s=function(e,t){e.setAttributeNS?e.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,t):e.setAttribute(`hc-svg-href`,t)};D(t)&&(o.x=t),D(n)&&(o.y=n),D(r)&&(o.width=r),D(i)&&(o.height=i);var c=this.createElement(`image`).attr(o);return t=function(t){s(c.element,e),a.call(c,t)},a?(s(c.element,`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`),n=new v.Image,y(n,`load`,t),n.src=e,n.complete&&t({})):s(c.element,e),c},n.prototype.symbol=function(e,t,n,r,i,a){var o=this,s=/^url\((.*?)\)$/,c=s.test(e),u=!c&&(this.symbols[e]?e:`circle`),f=u&&this.symbols[u],p;if(f){typeof t==`number`&&(p=f.call(this.symbols,Math.round(t||0),Math.round(n||0),r||0,i||0,a));var m=this.path(p);o.styledMode||m.attr(`fill`,`none`),T(m,{symbolName:u||void 0,x:t,y:n,width:r,height:i}),a&&T(m,a)}else if(c){var h=e.match(s)[1],g=m=this.image(h);g.imgwidth=j(_[h]&&_[h].width,a&&a.width),g.imgheight=j(_[h]&&_[h].height,a&&a.height);var v=function(e){return e.attr({width:e.width,height:e.height})};[`width`,`height`].forEach(function(e){g[e+`Setter`]=function(e,t){var n=this[`img`+t];this[t]=e,C(n)&&(a&&a.backgroundSize===`within`&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(t,n),this.alignByTranslate||(e=((this[t]||0)-n)/2,this.attr(t===`width`?{translateX:e}:{translateY:e})))}}),C(t)&&g.attr({x:t,y:n}),g.isImg=!0,C(g.imgwidth)&&C(g.imgheight)?v(g):(g.attr({width:0,height:0}),x(`img`,{onload:function(){var e=l[o.chartIndex];this.width===0&&(S(this,{position:`absolute`,top:`-999em`}),d.body.appendChild(this)),_[h]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&v(g),this.parentNode&&this.parentNode.removeChild(this),o.imgCount--,!o.imgCount&&e&&!e.hasLoaded&&e.onload()},src:h}),this.imgCount++)}return m},n.prototype.clipRect=function(e,t,n,r){var i=N()+`-`,a=this.createElement(`clipPath`).attr({id:i}).add(this.defs);return e=this.rect(e,t,n,r,0).add(a),e.id=i,e.clipPath=a,e.count=0,e},n.prototype.text=function(e,t,n,r){var i={};return r&&(this.allowHTML||!this.forExport)?this.html(e,t,n):(i.x=Math.round(t||0),n&&(i.y=Math.round(n)),C(e)&&(i.text=e),e=this.createElement(`text`).attr(i),(!r||this.forExport&&!this.allowHTML)&&(e.xSetter=function(e,t,n){for(var r=n.getElementsByTagName(`tspan`),i=n.getAttribute(t),a=0,o;a<r.length;a++)o=r[a],o.getAttribute(t)===i&&o.setAttribute(t,e);n.setAttribute(t,e)}),e)},n.prototype.fontMetrics=function(e,t){return e=!this.styledMode&&/px/.test(e)||!v.getComputedStyle?e||t&&t.style&&t.style.fontSize||this.style&&this.style.fontSize:t&&i.prototype.getStyle.call(t,`font-size`),e=/px/.test(e)?M(e):12,t=24>e?e+3:Math.round(1.2*e),{h:t,b:Math.round(.8*t),f:e}},n.prototype.rotCorr=function(e,t,n){var r=e;return t&&n&&(r=Math.max(r*Math.cos(t*u),4)),{x:-e/3*Math.sin(t*u),y:r}},n.prototype.pathToSegments=function(e){for(var t=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},i=0;i<e.length;i++)k(n[0])&&D(e[i])&&n.length===r[n[0].toUpperCase()]&&e.splice(i,0,n[0].replace(`M`,`L`).replace(`m`,`l`)),typeof e[i]==`string`&&(n.length&&t.push(n.slice(0)),n.length=0),n.push(e[i]);return t.push(n.slice(0)),t},n.prototype.label=function(e,t,n,r,i,o,s,c,l){return new a(this,e,t,n,r,i,o,s,c,l)},n.prototype.alignElements=function(){this.alignedObjects.forEac
4h(function(e){return e.align()})},n}(),T(n.prototype,{Element:i,SVG_NS:g,escapes:{"&":`&amp;`,"<":`&lt;`,">":`&gt;`,"'":`&#39;`,'"':`&quot;`},symbols:o,draw:h}),r.registerRendererType(`svg`,n,!0),n}),t(n,`Core/Renderer/HTML/HTMLElement.js`,[n[`Core/Globals.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=e.isFirefox,a=e.isMS,o=e.isWebKit,s=e.win,c=n.css,l=n.defined,u=n.extend,d=n.pick,f=n.pInt;return function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return r(t,e),t.compose=function(e){if(t.composedClasses.indexOf(e)===-1){t.composedClasses.push(e);var n=t.prototype,r=e.prototype;r.getSpanCorrection=n.getSpanCorrection,r.htmlCss=n.htmlCss,r.htmlGetBBox=n.htmlGetBBox,r.htmlUpdateTransform=n.htmlUpdateTransform,r.setSpanRotation=n.setSpanRotation}return e},t.prototype.getSpanCorrection=function(e,t,n){this.xCorr=-e*n,this.yCorr=-t},t.prototype.htmlCss=function(e){var t=this.element.tagName===`SPAN`&&e&&`width`in e,n=d(t&&e.width,void 0);if(t){delete e.width,this.textWidth=n;var r=!0}return e&&e.textOverflow===`ellipsis`&&(e.whiteSpace=`nowrap`,e.overflow=`hidden`),this.styles=u(this.styles,e),c(this.element,e),r&&this.htmlUpdateTransform(),this},t.prototype.htmlGetBBox=function(){var e=this.element;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}},t.prototype.htmlUpdateTransform=function(){if(this.added){var e=this.renderer,t=this.element,n=this.translateX||0,r=this.translateY||0,i=this.x||0,a=this.y||0,o=this.textAlign||`left`,s={left:0,center:.5,right:1}[o],u=this.styles;if(u&&=u.whiteSpace,c(t,{marginLeft:n,marginTop:r}),!e.styledMode&&this.shadows&&this.shadows.forEach(function(e){c(e,{marginLeft:n+1,marginTop:r+1})}),this.inverted&&[].forEach.call(t.childNodes,function(n){e.invertChild(n,t)}),t.tagName===`SPAN`){var d=this.rotation,p=this.textWidth&&f(this.textWidth),m=[d,o,t.innerHTML,this.textWidth,this.textAlign].join(),h=void 0;if(h=!1,p!==this.oldTextWidth){if(this.textPxLength)var g=this.textPxLength;else c(t,{width:``,whiteSpace:u||`nowrap`}),g=t.offsetWidth;(p>this.oldTextWidth||g>p)&&(/[ \-]/.test(t.textContent||t.innerText)||t.style.textOverflow===`ellipsis`)&&(c(t,{width:g>p||d?p+`px`:`auto`,display:`block`,whiteSpace:u||`normal`}),this.oldTextWidth=p,h=!0)}this.hasBoxWidthChanged=h,m!==this.cTT&&(h=e.fontMetrics(t.style.fontSize,t).b,!l(d)||d===(this.oldRotation||0)&&o===this.oldAlign||this.setSpanRotation(d,s,h),this.getSpanCorrection(!l(d)&&this.textPxLength||t.offsetWidth,h,s,d,o)),c(t,{left:i+(this.xCorr||0)+`px`,top:a+(this.yCorr||0)+`px`}),this.cTT=m,this.oldRotation=d,this.oldAlign=o}}else this.alignOnAdd=!0},t.prototype.setSpanRotation=function(e,t,n){var r={},l=a&&!/Edge/.test(s.navigator.userAgent)?`-ms-transform`:o?`-webkit-transform`:i?`MozTransform`:s.opera?`-o-transform`:void 0;l&&(r[l]=r.transform=`rotate(`+e+`deg)`,r[l+(i?`Origin`:`-origin`)]=r.transformOrigin=100*t+`% `+n+`px`,c(this.element,r))},t.composedClasses=[],t}(t)}),t(n,`Core/Renderer/HTML/HTMLRenderer.js`,[n[`Core/Renderer/HTML/AST.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Renderer/SVG/SVGRenderer.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=r.attr,o=r.createElement,s=r.extend,c=r.pick;return function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return i(r,n),r.compose=function(e){return r.composedClasses.indexOf(e)===-1&&(r.composedClasse
4s.push(e),e.prototype.html=r.prototype.html),e},r.prototype.html=function(n,r,i){var l=this.createElement(`span`),u=l.element,d=l.renderer,f=d.isSVG,p=function(e,n){[`opacity`,`visibility`].forEach(function(r){e[r+`Setter`]=function(i,a,o){var s=e.div?e.div.style:n;t.prototype[r+`Setter`].call(this,i,a,o),s&&(s[a]=i)}}),e.addedSetters=!0};return l.textSetter=function(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,c(t,``)),this.textStr=t,l.doTransform=!0)},f&&p(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(e,t){t===`align`?l.alignValue=l.textAlign=e:l[t]=e,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&=(this.htmlUpdateTransform(),!1)},l.attr({text:n,x:Math.round(r),y:Math.round(i)}).css({position:`absolute`}),d.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),u.style.whiteSpace=`nowrap`,l.css=l.htmlCss,f&&(l.add=function(e){var t=d.box.parentNode,n=[];if(this.parentGroup=e){var r=e.div;if(!r){for(;e;)n.push(e),e=e.parentGroup;n.reverse().forEach(function(e){function i(t,n){e[n]=t,n===`translateX`?d.left=t+`px`:d.top=t+`px`,e.doTransform=!0}var c=a(e.element,`class`),u=e.styles||{};r=e.div=e.div||o(`div`,c?{className:c}:void 0,{position:`absolute`,left:(e.translateX||0)+`px`,top:(e.translateY||0)+`px`,display:e.display,opacity:e.opacity,cursor:u.cursor,pointerEvents:u.pointerEvents,visibility:e.visibility},r||t);var d=r.style;s(e,{classSetter:function(e){return function(t){this.element.setAttribute(`class`,t),e.className=t}}(r),on:function(){return n[0].div&&l.on.apply({element:n[0].div,onEvents:e.onEvents},arguments),e},translateXSetter:i,translateYSetter:i}),e.addedSetters||p(e)})}}else r=t;return r.appendChild(u),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l},r.composedClasses=[],r}(n)}),t(n,`Core/Axis/AxisDefaults.js`,[],function(){var e;return(function(e){e.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:`%H:%M:%S.%L`,range:!1},second:{main:`%H:%M:%S`,range:!1},minute:{main:`%H:%M`,range:!1},hour:{main:`%H:%M`,range:!1},day:{main:`%e. %b`},week:{main:`%e. %b`},month:{main:`%b '%y`},year:{main:`%Y`}},endOnTick:!1,gridLineDashStyle:`Solid`,gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:`justify`,padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:`#666666`,cursor:`default`,fontSize:`11px`}},maxPadding:.01,minorGridLineDashStyle:`Solid`,minorTickLength:2,minorTickPosition:`outside`,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:`between`,tickPosition:`outside`,title:{align:`middle`,rotation:0,useHTML:!1,x:0,y:0,style:{color:`#666666`}},type:`linear`,uniqueNames:!0,visible:!0,minorGridLineColor:`#f2f2f2`,minorGridLineWidth:1,minorTickColor:`#999999`,lineColor:`#ccd6eb`,lineWidth:1,gridLineColor:`#e6e6e6`,gridLineWidth:void 0,tickColor:`#ccd6eb`},e.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:`Values`},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:`justify`,formatter:function(){var e=this.axis.chart.numberFormatter;return e(this.total,-1)},style:{color:`#000000`,fontSize:`11px`,fontWeight:`bold`,textOutline:`1px contrast`}},gridLineWidth:1,lineWidth:0},e.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},e.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},e.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},e.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(e||={}),e}),t(n,`Core/Foundation.js`,[n[`Core/Utilities.js`]],function(e){var t=e.addEvent,n=e.isFunction,r=e.objectEach,i=e.removeEvent,a;return(function(e){e.registerEventOptions=function(e,a){e.eventOptions=e.eventOptions||{},r(a.events,function(r,a){e.eventOptions[a]!==r&&(e.eventOptions[a]&&(i(e,a,e.eventOptions[a]),delete e.eventOptions[a]),n(r)&&(e.eventOptions[a]=r,t(e,a,r)))})}})(a||={}),a}),t(n,`Core/Axis/Tick.js`,[n[`Core/FormatUtilities.js`],n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=t.deg2rad,i=n.clamp,a=n.correctFloat,o=n.defined,s=n.destroyObjectProperties,c=n.extend,l=n.fireEvent,u=n.isNumber,d=n.merge,f=n.objectEach,p=n.pick;return t=function(){function t(e,t,n,r,i){this.isNewLabel=this.isNew=!0,this.axis=e,this.pos=t,this.type=n||``,this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,`init`),n||r||this.addLabel()}return t.prototype.addLabel=function(){var t=this,n=t.axis,r=n.options,i=n.chart,s=n.categories,d=n.logarithmic,f=n.names,m=t.pos,h=p(t.options&&t.options.labels,r.labels),g=n.tickPositions,_=m===g[0],v=m===g[g.length-1],y=(!h.step||h.step===1)&&n.tickInterval===1;g=g.info;var b=t.label,x;if(s=this.parameters.category||(s?p(s[m],f[m],m):m),d&&u(s)&&(s=a(d.lin2log(s))),n.dateTime){if(g)var S=i.time.resolveDTLFormat(r.dateTimeLabelFormats[!r.grid&&g.higherRanks[m]||g.unitName]),C=S.main;else u(s)&&(C=n.dateTime.getXDateFormat(s,r.dateTimeLabelFormats||{}))}t.isFirst=_,t.isLast=v;var w={axis:n,chart:i,dateTimeLabelFormat:C,isFirst:_,isLast:v,pos:m,tick:t,tickPositionInfo:g,value:s};l(this,`labelFormat`,w);var T=function(t){return h.formatter?h.formatter.call(t,t):h.format?(t.text=n.defaultLabelFormatter.call(t),e.format(h.format,t,i)):n.defaultLabelFormatter.call(t,t)};r=T.call(w,w);var E=S&&S.list;t.shortenLabel=E?function(){for(x=0;x<E.length;x++)if(c(w,{dateTimeLabelFormat:E[x]}),b.attr({text:T.call(w,w)}),b.getBBox().width<n.getSlotWidth(t)-2*h.padding)return;b.attr({text:``})}:void 0,y&&n._addedPlotLB&&t.moveLabel(r,h),o(b)||t.movedLabel?b&&b.textStr!==r&&!y&&(!b.textWidth||h.style.width||b.styles.width||b.css({width:null}),b.attr({text:r}),b.textPxLength=b.getBBox().width):(t.label=b=t.createLabel({x:0,y:0},r,h),t.rotation=0)},t.prototype.createLabel=function(e,t,n){var r=this.axis,i=r.chart;return(e=o(t)&&n.enabled?i.renderer.text(t,e.x,e.y,n.useHTML).add(r.labelGroup):null)&&(i.styledMode||e.css(d(n.style)),e.textPxLength=e.getBBox().width),e},t.prototype.destroy=function(){s(this,this.axis)},t.prototype.getPosition=function(e,t,n,r){var o=this.axis,s=o.chart,c=r&&s.oldCh
4artHeight||s.chartHeight;return e={x:e?a(o.translate(t+n,null,null,r)+o.transB):o.left+o.offset+(o.opposite?(r&&s.oldChartWidth||s.chartWidth)-o.right-o.left:0),y:e?c-o.bottom+o.offset-(o.opposite?o.height:0):a(c-o.translate(t+n,null,null,r)-o.transB)},e.y=i(e.y,-1e5,1e5),l(this,`afterGetPosition`,{pos:e}),e},t.prototype.getLabelPosition=function(e,t,n,i,a,s,c,u){var d=this.axis,f=d.transA,p=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,m=d.staggerLines,h=d.tickRotCorr||{x:0,y:0},g=i||d.reserveSpaceDefault?0:-d.labelOffset*(d.labelAlign===`center`?.5:1),_={},v=a.y;return o(v)||(v=d.side===0?n.rotation?-8:-n.getBBox().height:d.side===2?h.y+8:Math.cos(n.rotation*r)*(h.y-n.getBBox(!1,0).height/2)),e=e+a.x+g+h.x-(s&&i?s*f*(p?-1:1):0),t=t+v-(s&&!i?s*f*(p?1:-1):0),m&&(n=c/(u||1)%m,d.opposite&&(n=m-n-1),t+=d.labelOffset/m*n),_.x=e,_.y=Math.round(t),l(this,`afterGetLabelPosition`,{pos:_,tickmarkOffset:s,index:c}),_},t.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?`height`:`width`]:0},t.prototype.getMarkPath=function(e,t,n,r,i,a){return a.crispLine([[`M`,e,t],[`L`,e+(i?0:-n),t+(i?n:0)]],r)},t.prototype.handleOverflow=function(e){var t=this.axis,n=t.options.labels,i=e.x,a=t.chart.chartWidth,o=t.chart.spacing,s=p(t.labelLeft,Math.min(t.pos,o[3]));o=p(t.labelRight,Math.max(t.isRadial?0:t.pos+t.len,a-o[1]));var c=this.label,l=this.rotation,u={left:0,center:.5,right:1}[t.labelAlign||c.attr(`align`)],d=c.getBBox().width,f=t.getSlotWidth(this),m={},h=f,g=1,_;l||n.overflow!==`justify`?0>l&&i-u*d<s?_=Math.round(i/Math.cos(l*r)-s):0<l&&i+u*d>o&&(_=Math.round((a-i)/Math.cos(l*r))):(a=i+(1-u)*d,i-u*d<s?h=e.x+h*(1-u)-s:a>o&&(h=o-e.x+h*u,g=-1),h=Math.min(f,h),h<f&&t.labelAlign===`center`&&(e.x+=g*(f-h-u*(f-Math.min(d,h)))),(d>h||t.autoRotation&&(c.styles||{}).width)&&(_=h)),_&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(_)+`px`,(n.style||{}).textOverflow||(m.textOverflow=`ellipsis`),c.css(m)))},t.prototype.moveLabel=function(e,t){var n=this,r=n.label,i=n.axis,a=i.reversed,o=!1;if(r&&r.textStr===e?(n.movedLabel=r,o=!0,delete n.label):f(i.ticks,function(t){o||t.isNew||t===n||!t.label||t.label.textStr!==e||(n.movedLabel=t.label,o=!0,t.labelPos=n.movedLabel.xy,delete t.label)}),!o&&(n.labelPos||r)){var s=n.labelPos||r.xy;r=i.horiz?a?0:i.width+i.left:s.x,i=i.horiz?s.y:a?i.width+i.left:0,n.movedLabel=n.createLabel({x:r,y:i},e,t),n.movedLabel&&n.movedLabel.attr({opacity:0})}},t.prototype.render=function(e,t,n){var r=this.axis,i=r.horiz,a=this.pos,o=p(this.tickmarkOffset,r.tickmarkOffset);a=this.getPosition(i,a,o,t),o=a.x;var s=a.y;r=i&&o===r.pos+r.len||!i&&s===r.pos?-1:1,i=p(n,this.label&&this.label.newOpacity,1),n=p(n,1),this.isActive=!0,this.renderGridLine(t,n,r),this.renderMark(a,n,r),this.renderLabel(a,t,i,e),this.isNew=!1,l(this,`afterRender`)},t.prototype.renderGridLine=function(e,t,n){var r=this.axis,i=r.options,a={},o=this.pos,s=this.type,c=p(this.tickmarkOffset,r.tickmarkOffset),l=r.chart.renderer,u=this.gridLine,d=i.gridLineWidth,f=i.gridLineColor,m=i.gridLineDashStyle;this.type===`minor`&&(d=i.minorGridLineWidth,f=i.minorGridLineColor,m=i.minorGridLineDashStyle),u||(r.chart.styledMode||(a.stroke=f,a[`stroke-width`]=d||0,a.dashstyle=m),s||(a.zIndex=1),e&&(t=0),this.gridLine=u=l.path().attr(a).addClass(`highcharts-`+(s?s+`-`:``)+`grid-line`).add(r.gridGroup)),u&&(n=r.getPlotLinePath({value:o+c,lineWidth:u.strokeWidth()*n,force:`pass`,old:e}))&&u[e||this.isNew?`attr`:`animate`]({d:n,opacity:t})},t.prototype.renderMark=function(e,t,n){var r=this.axis,i=r.options,a=r.chart.renderer,o=this.type,s=r.tickSize(o?o+`Tick`:`tick`),c=e.x;e=e.y;var l=p(i[o===`minor`?`minorTickWidth`:`tickWidth`],!o&&r.isXAxis?1:0);i=i[o===`minor`?`minorTickColor`:`tickColor`];var u=this.mark,d=!u;s&&(r.opposite&&(s[0]=-s[0]),u||(this.mark=u=a.path().addClass(`highcharts-`+(o?o+`-`:``)+`tick`).add(r.axisGroup),r.chart.styledMode||u.attr({stroke:i,"stroke-width":l})),u[d?`attr`:`animate`]({d:this.getMarkPath(c,e,s[0],u.strokeWidth()*n,r.horiz,a),opacity:t}))},t.prototype.renderLabel=function(e,t,n,r){var i=this.axis,a=i.horiz,o=i.options,s=this.label,c=o.labels,l=c.step;i=p(this.tickmarkOffset,i.tickmarkOffset);var d=e.x;e=e.y;var f=!0;s&&u(d)&&(s.xy=e=this.getLabelPosition(d,e,s,a,c,i,r,l),this.isFirst&&!this.isLast&&!o.showFirstLabel||this.isLast&&!this.isFirst&&!o.showLastLabel?f=!1:!a||c.step||c.rotation||t||n===0||this.handleOverflow(e),l&&r%l&&(f=!1),f&&u(e.y)?(e.opacity=n,s[this.isNewLabel?`attr`:`animate`](e),this.isNewLabel=!1):(s.attr(`y`,-9999),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var e=this.label,t=this.axis,n=t.reversed;if(e&&!this.isNew){var r=t.horiz?n?t.left:t.width+t.left:e.xy.x;n=t.horiz?e.xy.y:n?t.width+t.top:t.top,e.animate({x:r,y:n,opacity:0}
4,void 0,e.destroy),delete this.label}t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),t}),t(n,`Core/Axis/Axis.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Axis/AxisDefaults.js`],n[`Core/Color/Color.js`],n[`Core/DefaultOptions.js`],n[`Core/Foundation.js`],n[`Core/Globals.js`],n[`Core/Axis/Tick.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s){var c=e.animObject,l=r.defaultOptions,u=i.registerEventOptions,d=a.deg2rad,f=s.arrayMax,p=s.arrayMin,m=s.clamp,h=s.correctFloat,g=s.defined,_=s.destroyObjectProperties,v=s.erase,y=s.error,b=s.extend,x=s.fireEvent,S=s.getMagnitude,C=s.isArray,w=s.isNumber,T=s.isString,E=s.merge,D=s.normalizeTickInterval,O=s.objectEach,k=s.pick,A=s.relativeLength,j=s.removeEvent,M=s.splat,N=s.syncTimeout;return e=function(){function e(e,t){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(e,t)}return e.prototype.init=function(e,t){var n=t.isX;this.chart=e,this.horiz=e.inverted&&!this.isZAxis?!n:n,this.isXAxis=n,this.coll=this.coll||(n?`xAxis`:`yAxis`),x(this,`init`,{userOptions:t}),this.opposite=k(t.opposite,this.opposite),this.side=k(t.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(t);var r=this.options,i=r.labels,a=r.type;this.userOptions=t,this.minPixelPadding=0,this.reversed=k(r.reversed,this.reversed),this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames=a===`category`||!0===r.categories,this.categories=r.categories||this.hasNames,this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=g(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.min=this.max=null,t=k(r.crosshair,M(e.options.tooltip.crosshairs)[+!n]),this.crosshair=!0===t?{}:t,e.axes.indexOf(this)===-1&&(n?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this)),this.series=this.series||[],e.inverted&&!this.isZAxis&&n&&this.reversed===void 0&&(this.reversed=!0),this.labelRotation=w(i.rotation)?i.rotation:void 0,u(this,r),x(this,`afterInit`)},e.prototype.setOptions=function(e){this.options=E(t.defaultXAxisOptions,this.coll===`yAxis`&&t.defaultYAxisOptions,[t.defaultTopAxisOptions,t.defaultRightAxisOptions,t.defaultBottomAxisOptions,t.defaultLeftAxisOptions][this.side],E(l[this.coll],e)),x(this,`afterSetOptions`,{userOptions:e})},e.prototype.defaultLabelFormatter=function(e){var t=this.axis;e=this.chart.numberFormatter;var n=w(this.value)?this.value:NaN,r=t.chart.time,i=this.dateTimeLabelFormat,a=l.lang,o=a.numericSymbols;a=a.numericSymbolMagnitude||1e3;var s=t.logarithmic?Math.abs(n):t.tickInterval,c=o&&o.length;if(t.categories)var u=``+this.value;else if(i)u=r.dateFormat(i,n);else if(c&&1e3<=s)for(;c--&&u===void 0;)t=a**+(c+1),s>=t&&10*n%t==0&&o[c]!==null&&n!==0&&(u=e(n/t,-1)+o[c]);return u===void 0&&(u=1e4<=Math.abs(n)?e(n,-1):e(n,-1,void 0,``)),u},e.prototype.getSeriesExtremes=function(){var e=this,t=e.chart,n;x(this,`getSeriesExtremes`,null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach(function(r){if(r.visible||!t.options.chart.ignoreHiddenSeries){var i=r.options,a=i.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=a&&(a=null),e.isXAxis){if(i=r.xData,i.length){i=e.logarithmic?i.filter(e.validatePositiveValue):i,n=r.getXExtremes(i);var o=n.min,s=n.max;w(o)||o instanceof Date||(i=i.filter(w),n=r.getXExtremes(i),o=n.min,s=n.max),i.length&&(e.dataMin=Math.min(k(e.dataMin,o),o),e.dataMax=Math.max(k(e.dataMax,s),s))}}else r=r.applyExtremes(),w(r.dataMin)&&(o=r.dataMin,e.dataMin=Math.min(k(e.dataMin,o),o)),w(r.dataMax)&&(s=r.dataMax,e.dataMax=Math.max(k(e.dataMax,s),s)),g(a)&&(e.threshold=a),(!i.softThreshold||e.positiveValuesOnly)&&
4(e.softThreshold=!1)}})}),x(this,`afterGetSeriesExtremes`)},e.prototype.translate=function(e,t,n,r,i,a){var o=this.linkedParent||this,s=r&&o.old?o.old.min:o.min,c=o.minPixelPadding;i=(o.isOrdinal||o.brokenAxis&&o.brokenAxis.hasBreaks||o.logarithmic&&i)&&o.lin2val;var l=1,u=0;return r=r&&o.old?o.old.transA:o.transA,r||=o.transA,n&&(l*=-1,u=o.len),o.reversed&&(l*=-1,u-=l*(o.sector||o.len)),t?(e=(e*l+u-c)/r+s,i&&(e=o.lin2val(e))):(i&&(e=o.val2lin(e)),e=w(s)?l*(e-s)*r+u+l*c+(w(a)?r*a:0):void 0),e},e.prototype.toPixels=function(e,t){return this.translate(e,!1,!this.horiz,null,!0)+(t?0:this.pos)},e.prototype.toValue=function(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,null,!0)},e.prototype.getPlotLinePath=function(e){function t(e,t,n){return(p!==`pass`&&e<t||e>n)&&(p?e=m(e,t,n):y=!0),e}var n=this,r=n.chart,i=n.left,a=n.top,o=e.old,s=e.value,c=e.lineWidth,l=o&&r.oldChartHeight||r.chartHeight,u=o&&r.oldChartWidth||r.chartWidth,d=n.transB,f=e.translatedValue,p=e.force,h,g,_,v,y;return e={value:s,lineWidth:c,old:o,force:p,acrossPanes:e.acrossPanes,translatedValue:f},x(this,`getPlotLinePath`,e,function(e){f=k(f,n.translate(s,null,null,o)),f=m(f,-1e5,1e5),h=_=Math.round(f+d),g=v=Math.round(l-f-d),w(f)?n.horiz?(g=a,v=l-n.bottom,h=_=t(h,i,i+n.width)):(h=i,_=u-n.right,g=v=t(g,a,a+n.height)):(y=!0,p=!1),e.path=y&&!p?null:r.renderer.crispLine([[`M`,h,g],[`L`,_,v]],c||1)}),e.path},e.prototype.getLinearTickPositions=function(e,t,n){var r=h(Math.floor(t/e)*e);n=h(Math.ceil(n/e)*e);var i=[],a;if(h(r+e)===r&&(a=20),this.single)return[t];for(t=r;t<=n&&(i.push(t),t=h(t+e,a),t!==o);)var o=t;return i},e.prototype.getMinorTickInterval=function(){var e=this.options;return!0===e.minorTicks?k(e.minorTickInterval,`auto`):!1===e.minorTicks?null:e.minorTickInterval},e.prototype.getMinorTickPositions=function(){var e=this.options,t=this.tickPositions,n=this.minorTickInterval,r=this.pointRangePadding||0,i=this.min-r;r=this.max+r;var a=r-i,o=[];if(a&&a/n<this.len/3){var s=this.logarithmic;if(s)this.paddedTicks.forEach(function(e,t,r){t&&o.push.apply(o,s.getLogTickPositions(n,r[t-1],r[t],!0))});else if(this.dateTime&&this.getMinorTickInterval()===`auto`)o=o.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(n),i,r,e.startOfWeek));else for(e=i+(t[0]-i)%n;e<=r&&e!==o[0];e+=n)o.push(e)}return o.length!==0&&this.trimTicks(o),o},e.prototype.adjustForMinRange=function(){var e=this.options,t=this.logarithmic,n=this.min,r=this.max,i=0,a,o,s,c;if(this.isXAxis&&this.minRange===void 0&&!t&&(g(e.min)||g(e.max)||g(e.floor)||g(e.ceiling)?this.minRange=null:(this.series.forEach(function(e){if(s=e.xData,c=e.xIncrement?1:s.length-1,1<s.length)for(a=c;0<a;a--)o=s[a]-s[a-1],(!i||o<i)&&(i=o)}),this.minRange=Math.min(5*i,this.dataMax-this.dataMin))),r-n<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,u=this.minRange,d=(u-r+n)/2;d=[n-d,k(e.min,n-d)],l&&(d[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),n=f(d),r=[n+u,k(e.max,n+u)],l&&(r[2]=t?t.log2lin(this.dataMax):this.dataMax),r=p(r),r-n<u&&(d[0]=r-u,d[1]=k(e.min,r-u),n=f(d))}this.min=n,this.max=r},e.prototype.getClosest=function(){var e;return this.categories?e=1:this.series.forEach(function(t){var n=t.closestPointRange,r=t.visible||!t.chart.options.chart.ignoreHiddenSeries;!t.noSharedTooltip&&g(n)&&r&&(e=g(e)?Math.min(e,n):n)}),e},e.prototype.nameToX=function(e){var t=C(this.categories),n=t?this.categories:this.names,r=e.options.x;if(e.series.requireSorting=!1,g(r)||(r=this.options.uniqueNames?t?n.indexOf(e.name):k(n.keys[e.name],-1):e.series.autoIncrement()),r===-1){if(!t)var i=n.length}else i=r;return i!==void 0&&(this.names[i]=e.name,this.names.keys[e.name]=i),i},e.prototype.updateNames=function(){var e=this,t=this.names;0<t.length&&(Object.keys(t.keys).forEach(function(e){delete t.keys[e]}),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(t){t.xIncrement=null,(!t.points||t.isDirtyData)&&(e.max=Math.max(e.max,t.xData.length-1),t.processData(),t.generatePoints()),t.data.forEach(function(n,r){if(n&&n.options&&n.name!==void 0){var i=e.nameToX(n);i!==void 0&&i!==n.x&&(n.x=i,t.xData[r]=i)}})}))},e.prototype.setAxisTranslation=function(){var e=this,t=e.max-e.min,n=e.linkedParent,r=!!e.categories,i=e.isXAxis,a=e.axisPointRange||0,o=0,s=0,c=e.transA;if(i||r||a){var l=e.getClosest();
4n?(o=n.minPointOffset,s=n.pointRangePadding):e.series.forEach(function(t){var n=r?1:i?k(t.options.pointRange,l,0):e.axisPointRange||0,c=t.options.pointPlacement;a=Math.max(a,n),(!e.single||r)&&(t=t.is(`xrange`)?!i:i,o=Math.max(o,t&&T(c)?0:n/2),s=Math.max(s,t&&c===`on`?0:n))}),n=e.ordinal&&e.ordinal.slope&&l?e.ordinal.slope/l:1,e.minPointOffset=o*=n,e.pointRangePadding=s*=n,e.pointRange=Math.min(a,e.single&&r?1:t),i&&(e.closestPointRange=l)}e.translationSlope=e.transA=c=e.staticScale||e.len/(t+s||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=c*o,x(this,`afterSetAxisTranslation`)},e.prototype.minFromRange=function(){return this.max-this.range},e.prototype.setTickInterval=function(e){var t=this.chart,n=this.logarithmic,r=this.options,i=this.isXAxis,a=this.isLinked,o=r.tickPixelInterval,s=this.categories,c=this.softThreshold,l=r.maxPadding,u=r.minPadding,d=w(r.tickInterval)&&0<=r.tickInterval?r.tickInterval:void 0,f=w(this.threshold)?this.threshold:null;this.dateTime||s||a||this.getTickAmount();var p=k(this.userMin,r.min),m=k(this.userMax,r.max);if(a){this.linkedParent=t[this.coll][r.linkedTo];var _=this.linkedParent.getExtremes();this.min=k(_.min,_.dataMin),this.max=k(_.max,_.dataMax),r.type!==this.linkedParent.options.type&&y(11,1,t)}else{if(c&&g(f)){if(this.dataMin>=f)_=f,u=0;else if(this.dataMax<=f){var v=f;l=0}}this.min=k(p,_,this.dataMin),this.max=k(m,v,this.dataMax)}if(n&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,k(this.dataMin,this.min))&&y(10,1,t),this.min=h(n.log2lin(this.min),16),this.max=h(n.log2lin(this.max),16)),this.range&&g(this.max)&&(this.userMin=this.min=p=Math.max(this.dataMin,this.minFromRange()),this.userMax=m=this.max,this.range=null),x(this,`foundExtremes`),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(s||this.axisPointRange||this.stacking&&this.stacking.usePercentage||a)&&g(this.min)&&g(this.max)&&(t=this.max-this.min)&&(!g(p)&&u&&(this.min-=t*u),!g(m)&&l&&(this.max+=t*l)),w(this.userMin)||(w(r.softMin)&&r.softMin<this.min&&(this.min=p=r.softMin),w(r.floor)&&(this.min=Math.max(this.min,r.floor))),w(this.userMax)||(w(r.softMax)&&r.softMax>this.max&&(this.max=m=r.softMax),w(r.ceiling)&&(this.max=Math.min(this.max,r.ceiling))),c&&g(this.dataMin)&&(f||=0,!g(p)&&this.min<f&&this.dataMin>=f?this.min=this.options.minRange?Math.min(f,this.max-this.minRange):f:!g(m)&&this.max>f&&this.dataMax<=f&&(this.max=this.options.minRange?Math.max(f,this.min+this.minRange):f)),w(this.min)&&w(this.max)&&!this.chart.polar&&this.min>this.max&&(g(this.options.min)?this.max=this.min:g(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||this.min===void 0||this.max===void 0?1:a&&this.linkedParent&&!d&&o===this.linkedParent.options.tickPixelInterval?d=this.linkedParent.tickInterval:k(d,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,s?1:(this.max-this.min)*o/Math.max(this.len,o)),i&&!e){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(e){e.forceCrop=e.forceCropping&&e.forceCropping(),e.processData(b)}),x(this,`postProcessData`,{hasExtemesChanged:b})}this.setAxisTranslation(),x(this,`initialAxisTranslation`),this.pointRange&&!d&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),e=k(r.minTickInterval,this.dateTime&&!this.series.some(function(e){return e.noSharedTooltip})?this.closestPointRange:0),!d&&this.tickInterval<e&&(this.tickInterval=e),this.dateTime||this.logarithmic||d||(this.tickInterval=D(this.tickInterval,void 0,S(this.tickInterval),k(r.allowDecimals,.5>this.tickInterval||this.tickAmount!==void 0),!!this.tickAmount)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},e.prototype.setTickPositions=function(){var e=this.options,t=e.tickPositions,n=this.getMinorTickInterval(),r=this.hasVerticalPanning(),i=this.coll===`colorAxis`,a=(i||!r)&&e.startOnTick;r=(i||!r)&&e.endOnTick,i=e.tickPositioner,this.tickmarkOffset=this.categories&&e.tickmarkPlacement===`between`&&this.tickInterval===1?.5:0,this.minorTickInterval=n===`auto`&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&g(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=n=t&&t.slice(),!n&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?n=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(n=[this.min,this.max],y(19,!1,this.chart)),n.length>this.len&&(n=[n[0],n.pop()],n[0]===n[1]&&(n.length=1)),this.tickPositions=n,i&&=i.apply(this,[this.min,this.max]))&&(this.tickPositions=n=i),this.paddedTicks=n.slice(0),this.trimTicks(n,a,r),this.isLinked||(this.single&&2>n.length&&!this.categories&&!this.series.some(function(e){return e.is(`heatmap`)&&e.options.pointPlacement===`between`})&&(this.min-=.5,this.max+=.5),t||i||this.adjustTickAmount()),x(this,`afterSetTickPositions`)},e.prototype.trimTicks=function(e,t,n){var r=e[0],i=e[e.length-1],a=!this.isOrdinal&&this.minPointOffset||0;if(x(this,`trimTicks`),!this.isLinked){if(t&&r!==-1/0)this.min=r;else for(;this.min-a>e[0];)e.shift();if(n)this.max=i;else for(;this.max+a<e[e.length-1];)e.pop();e.length===0&&g(r)&&!this.options.tickPositions&&e.push((i+r)/2)}},e.prototype.alignToOthers=function(){var e={},t=this.options,n;return!1!==this.chart.options.chart.alignTicks&&t.alignTicks&&!1!==t.startOnTick&&!1!==t.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(t){var r=t.options;r=[t.horiz?r.left:r.top,r.width,r.height,r.pane].join(),t.series.length&&(e[r]?n=!0:e[r]=1)}),n},e.prototype.getTickAmount=function(){var e=this.options,t=e.tickPixelInterval,n=e.tickAmount;!g(e.tickInterval)&&!n&&this.len<t&&!this.isRadial&&!this.logarithmic&&e.startOnTick&&e.endOnTick&&(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/t)+1),4>n&&(this.finalTickAmt=n,n=5),this.tickAmount=n},e.prototype.adjustTickAmount=function(){var e=this.options,t=this.tickInterval,n=this.tickPositions,r=this.tickAmount,i=this.finalTickAmt,a=n&&n.length,o=k(this.threshold,this.softThreshold?0:null);if(this.hasData()&&w(this.min)&&w(this.max)){if(a<r){for(;n.length<r;)n.length%2||this.min===o?n.push(h(n[n.length-1]+t)):n.unshift(h(n[0]-t));this.transA*=(a-1)/(r-1),this.min=e.startOnTick?n[0]:Math.min(this.min,n[0]),this.max=e.endOnTick?n[n.length-1]:Math.max(this.max,n[n.length-1])}else a>r&&(this.tickInterval*=2,this.setTickPositions());if(g(i)){for(t=e=n.length;t--;)(i===3&&t%2==1||2>=i&&0<t&&t<e-1)&&n.splice(t,1);this.finalTickAmt=void 0}}},e.prototype.setScale=function(){var e=!1,t=!1;
4this.series.forEach(function(n){e=e||n.isDirtyData||n.isDirty,t=t||n.xAxis&&n.xAxis.isDirty||!1}),this.setAxisSize();var n=this.len!==(this.old&&this.old.len);n||e||t||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||=n||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max)):this.stacking&&this.stacking.cleanStacks(),e&&this.panningState&&(this.panningState.isDirty=!0),x(this,`afterSetScale`)},e.prototype.setExtremes=function(e,t,n,r,i){var a=this,o=a.chart;n=k(n,!0),a.series.forEach(function(e){delete e.kdTree}),i=b(i,{min:e,max:t}),x(a,`setExtremes`,i,function(){a.userMin=e,a.userMax=t,a.eventArgs=i,n&&o.redraw(r)})},e.prototype.zoom=function(e,t){var n=this,r=this.dataMin,i=this.dataMax,a=this.options,o=Math.min(r,k(a.min,r)),s=Math.max(i,k(a.max,i));return e={newMin:e,newMax:t},x(this,`zoom`,e,function(e){var t=e.newMin,a=e.newMax;(t!==n.min||a!==n.max)&&(n.allowZoomOutside||(g(r)&&(t<o&&(t=o),t>s&&(t=s)),g(i)&&(a<o&&(a=o),a>s&&(a=s))),n.displayBtn=t!==void 0||a!==void 0,n.setExtremes(t,a,!1,void 0,{trigger:`zoom`})),e.zoomed=!0}
4),e.zoomed},e.prototype.setAxisSize=function(){var e=this.chart,t=this.options,n=t.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(A(k(t.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),a=this.height=Math.round(A(k(t.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),o=this.top=Math.round(A(k(t.top,e.plotTop+n[0]),e.plotHeight,e.plotTop));t=this.left=Math.round(A(k(t.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-a-o,this.right=e.chartWidth-i-t,this.len=Math.max(r?i:a,0),this.pos=r?t:o},e.prototype.getExtremes=function(){var e=this.logarithmic;return{min:e?h(e.lin2log(this.min)):this.min,max:e?h(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},e.prototype.getThreshold=function(e){var t=this.logarithmic,n=t?t.lin2log(this.min):this.min;return t=t?t.lin2log(this.max):this.max,e===null||e===-1/0?e=n:e===1/0?e=t:n>e?e=n:t<e&&(e=t),this.translate(e,0,1,0,1)},e.prototype.autoLabelAlign=function(e){var t=(k(e,0)-90*this.side+720)%360;return e={align:`center`},x(this,`autoLabelAlign`,e,function(e){15<t&&165>t?e.align=`right`:195<t&&345>t&&(e.align=`left`)}),e.align},e.prototype.tickSize=function(e){var t=this.options,n=k(t[e===`tick`?`tickWidth`:`minorTickWidth`],e===`tick`&&this.isXAxis&&!this.categories?1:0),r=t[e===`tick`?`tickLength`:`minorTickLength`];if(n&&r){t[e+`Position`]===`inside`&&(r=-r);var i=[r,n]}return e={tickSize:i},x(this,`afterTickSize`,e),e.tickSize},e.prototype.labelMetrics=function(){var e=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[e]&&this.ticks[e].label)},e.prototype.unsquish=function(){var e=this.options.labels,t=this.horiz,n=this.tickInterval,r=this.len/((+!!this.categories+this.max-this.min)/n),i=e.rotation,a=this.labelMetrics(),o=Math.max(this.max-this.min,0),s=function(e){var t=e/(r||1);return t=1<t?Math.ceil(t):1,t*n>o&&e!==1/0&&r!==1/0&&o&&(t=Math.ceil(o/n)),h(t*n)},c=n,l,u,f=Number.MAX_VALUE;if(t){if(!e.staggerLines&&!e.step){if(w(i))var p=[i];else r<e.autoRotationLimit&&(p=e.autoRotation)}p&&p.forEach(function(e){if(e===i||e&&-90<=e&&90>=e){u=s(Math.abs(a.h/Math.sin(d*e)));var t=u+Math.abs(e/360);t<f&&(f=t,l=e,c=u)}})}else e.step||(c=s(a.h));return this.autoRotation=p,this.labelRotation=k(l,w(i)?i:0),c},e.prototype.getSlotWidth=function(e){var t=this.chart,n=this.horiz,r=this.options.labels,i=Math.max(this.tickPositions.length-+!this.categories,1),a=t.margin[3];if(e&&w(e.slotWidth))return e.slotWidth;if(n&&2>r.step)return r.rotation?0:(this.staggerLines||1)*this.len/i;if(!n){if(e=r.style.width,e!==void 0)return parseInt(String(e),10);if(a)return a-t.spacing[3]}return .33*t.chartWidth},e.prototype.renderUnsquish=function(){var e=this.chart,t=e.renderer,n=this.tickPositions,r=this.ticks,i=this.options.labels,a=i.style,o=this.horiz,s=this.getSlotWidth(),c=Math.max(1,Math.round(s-2*i.padding)),l={},u=this.labelMetrics(),d=a.textOverflow,f=0;if(T(i.rotation)||(l.rotation=i.rotation||0),n.forEach(function(e){e=r[e],e.movedLabel&&e.replaceMovedLabel(),e&&e.label&&e.label.textPxLength>f&&(f=e.label.textPxLength)}),this.maxLabelLength=f,this.autoRotation)f>c&&f>u.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(s){var p=c;if(!d){var m=`clip`;for(c=n.length;!o&&c--;){var h=n[c];(h=r[h].label)&&(h.styles&&h.styles.textOverflow===`ellipsis`?h.
4css({textOverflow:`clip`}):h.textPxLength>s&&h.css({width:s+`px`}),h.getBBox().height>this.len/n.length-(u.h-u.f)&&(h.specificTextOverflow=`ellipsis`))}}}l.rotation&&(p=f>.5*e.chartHeight?.33*e.chartHeight:f,d||(m=`ellipsis`)),(this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),n.forEach(function(e){var t=(e=r[e])&&e.label,n=a.width,i={};t&&(t.attr(l),e.shortenLabel?e.shortenLabel():p&&!n&&a.whiteSpace!==`nowrap`&&(p<t.textPxLength||t.element.tagName===`SPAN`)?(i.width=p+`px`,d||(i.textOverflow=t.specificTextOverflow||m),t.css(i)):t.styles&&t.styles.width&&!i.width&&!n&&t.css({width:null}),delete t.specificTextOverflow,e.rotation=l.rotation)},this),this.tickRotCorr=t.rotCorr(u.b,this.labelRotation||0,this.side!==0)},e.prototype.hasData=function(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&g(this.min)&&g(this.max)},e.prototype.addTitle=function(e){var t=this.chart.renderer,n=this.horiz,r=this.opposite,i=this.options.title,a=this.chart.styledMode,o;this.axisTitle||((o=i.textAlign)||(o=(n?{low:`left`,middle:`center`,high:`right`}:{low:r?`right`:`left`,middle:`center`,high:r?`left`:`right`})[i.align]),this.axisTitle=t.text(i.text||``,0,0,i.useHTML).attr({zIndex:7,rotation:i.rotation,align:o}).addClass(`highcharts-axis-title`),a||this.axisTitle.css(E(i.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||i.style.width||this.isRadial||this.axisTitle.css({width:this.len+`px`}),this.axisTitle[e?`show`:`hide`](e)},e.prototype.generateTick=function(e){var t=this.ticks;t[e]?t[e].addLabel():t[e]=new o(this,e)},e.prototype.getOffset=function(){var e=this,t=this,n=t.chart,r=t.horiz,i=t.options,a=t.side,o=t.ticks,s=t.tickPositions,c=t.coll,l=t.axisParent,u=n.renderer,d=n.inverted&&!t.isZAxis?[1,0,3,2][a]:a,f=t.hasData(),p=i.title,m=i.labels,h=n.axisOffset;n=n.clipOffset;var _=[-1,1,1,-1][a],v=i.className,y,b=0,S=0,C=0;if(t.showAxis=y=f||i.showEmpty,t.staggerLines=t.horiz&&m.staggerLines||void 0,!t.axisGroup){var w=function(t,n,r){return u.g(t).attr({zIndex:r}).addClass(`highcharts-`+c.toLowerCase()+n+` `+(e.isRadial?`highcharts-radial-axis`+n+` `:``)+(v||``)).add(l)};t.gridGroup=w(`grid`,`-grid`,i.gridZIndex),t.axisGroup=w(`axis`,``,i.zIndex),t.labelGroup=w(`axis-labels`,`-labels`,m.zIndex)}if(f||t.isLinked?(s.forEach(function(e){t.generateTick(e)}),t.renderUnsquish(),t.reserveSpaceDefault=a===0||a===2||{1:`left`,3:`right`}[a]===t.labelAlign,k(m.reserveSpace,t.labelAlign===`center`||null,t.reserveSpaceDefault)&&s.forEach(function(e){C=Math.max(o[e].getLabelSize(),C)}),t.staggerLines&&(C*=t.staggerLines),t.labelOffset=C*(t.opposite?-1:1)):O(o,function(e,t){e.destroy(),delete o[t]}),p&&p.text&&!1!==p.enabled&&(t.addTitle(y),y&&!1!==p.reserveSpace)){t.titleOffset=b=t.axisTitle.getBBox()[r?`height`:`width`];var T=p.offset;S=g(T)?0:k(p.margin,r?5:10)}t.renderLine(),t.offset=_*k(i.offset,h[a]?h[a]+(i.margin||0):0),t.tickRotCorr=t.tickRotCorr||{x:0,y:0},p=a===0?-t.labelMetrics().h:a===2?t.tickRotCorr.y:0,f=Math.abs(C)+S,C&&(f=f-p+_*(r?k(m.y,t.tickRotCorr.y+8*_):m.x)),t.axisTitleMargin=k(T,f),t.getMaxLabelDimensions&&(t.maxLabelDimensions=t.getMaxLabelDimensions(o,s)),c!==`colorAxis`&&(r=this.tickSize(`tick`),h[a]=Math.max(h[a],(t.axisTitleMargin||0)+b+_*t.offset,f,s&&s.length&&r?r[0]+_*t.offset:0),i=!t.axisLine||i.offset?0:2*Math.floor(t.axisLine.strokeWidth()/2),n[d]=Math.max(n[d],i)),x(this,`afterGetOffset`)},e.prototype.getLinePath=function(e){var t=this.chart,n=this.opposite,r=this.offset,i=this.horiz,a=this.left+(n?this.width:0)+r;return r=t.chartHeight-this.bottom-(n?this.height:0)+r,n&&(e*=-1),t.renderer.crispLine([[`M`,i?this.left:a,i?r:this.top],[`L`,i?t.chartWidth-this.right:a,i?r:t.chartHeight-this.bottom]],e)},e.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}))},e.prototype.getTitlePosition=function(){var e=this.horiz,t=this.left,n=this.top,r=this.len,i=this.options.title,a=e?t:n,o=this.opposite,s=this.offset,c=i.x,l=i.y,u=this.axisTitle,d=this.chart.renderer.fontMetrics(i.style.fontSize,u);return u=Math.max(u.getBBox(null,0).height-d.h-1,0),r={low:a+(e?0:r),middle:a+r/2,high:a+(e?r:0)}[i.align],t=(e?n+this.height:t)+(e?1:-1)*(o?-1:1)*this.axisTitleMargin+[-u,u,d.f,-u][this.side],e={x:e?r+c:t+(o?this.width:0)+s+c,y:e?t+l-(o?this.height:0)+s:r+l},x(this,`afterGetTitlePosition`,{titlePosition:e}),e},e.prototype.renderMinorTick=function(e,t){var n=this.minorTicks;n[e]||(n[e]=new o(this,e,`minor`)),t&&n[e].isNew&&n[e].render(null,!0),n[e].render(null,!1,1)},e.prototype.renderTick=function(e,t,n){var r=this.ticks;(!this.isLinked||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(r[e]||(r[e]=new o(this,e)),n&&r[e].isNew&&r[e].render(t,!0,-1),r[e].render(t))},e.prototype.render=function(){var e=this,t=e.chart,n=e.logarithmic,r=e.options,i=e.isLinked,s=e.tickPositions,l=e.axisTitle,u=e.ticks,d=e.minorTicks,f=e.alternateBands,p=r.stackLabels,m=r.alternateGridColor,h=e.tickmarkOffset,g=e.axisLine,_=e.showAxis,v=c(t.renderer.globalAnimation),y,b;if(e.labelEdge.length=0,e.overlap=!1,[u,d,f].forEach(function(e){O(e,function(e){e.isActive=!1})}),e.hasData()||i){var S=e.chart.hasRendered&&e.old&&w(e.old.min);e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEac
4h(function(t){e.renderMinorTick(t,S)}),s.length&&(s.forEach(function(t,n){e.renderTick(t,n,S)}),h&&(e.min===0||e.single)&&(u[-1]||=new o(e,-1,null,!0),u[-1].render(-1))),m&&s.forEach(function(r,i){b=s[i+1]===void 0?e.max-h:s[i+1]+h,i%2==0&&r<e.max&&b<=e.max+(t.polar?-h:h)&&(f[r]||(f[r]=new a.PlotLineOrBand(e)),y=r+h,f[r].options={from:n?n.lin2log(y):y,to:n?n.lin2log(b):b,color:m,className:`highcharts-alternate-grid`},f[r].render(),f[r].isActive=!0)}),e._addedPlotLB||(e._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(function(t){e.addPlotBandOrLine(t)}))}[u,d,f].forEach(function(e){var n=[],r=v.duration;O(e,function(e,t){e.isActive||(e.render(t,!1,0),e.isActive=!1,n.push(t))}),N(function(){for(var t=n.length;t--;)e[n[t]]&&!e[n[t]].isActive&&(e[n[t]].destroy(),delete e[n[t]])},e!==f&&t.hasRendered&&r?r:0)}),g&&(g[g.isPlaced?`animate`:`attr`]({d:this.getLinePath(g.strokeWidth())}),g.isPlaced=!0,g[_?`show`:`hide`](_)),l&&_&&(r=e.getTitlePosition(),w(r.y)?(l[l.isNew?`attr`:`animate`](r),l.isNew=!1):(l.attr(`y`,-9999),l.isNew=!0)),p&&p.enabled&&e.stacking&&e.stacking.renderStackTotals(),e.old={len:e.len,max:e.max,min:e.min,transA:e.transA,userMax:e.userMax,userMin:e.userMin},e.isDirty=!1,x(this,`afterRender`)},e.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})},e.prototype.getKeepProps=function(){return this.keepProps||e.keepProps},e.prototype.destroy=function(e){var t=this,n=t.plotLinesAndBands,r=this.eventOptions;if(x(this,`destroy`,{keepEvents:e}),e||j(t),[t.ticks,t.minorTicks,t.alternateBands].forEach(function(e){_(e)}),n)for(e=n.length;e--;)n[e].destroy();for(var i in`axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar`.split(` `).forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),t.plotLinesAndBandsGroups)t.plotLinesAndBandsGroups[i]=t.plotLinesAndBandsGroups[i].destroy();O(t,function(e,n){t.getKeepProps().indexOf(n)===-1&&delete t[n]}),this.eventOptions=r},e.prototype.drawCrosshair=function(e,t){var r=this.crosshair,i=k(r&&r.snap,!0),a=this.chart,o,s=this.cross;if(x(this,`drawCrosshair`,{e,point:t}),e||=this.cross&&this.cross.e,r&&!1!==(g(t)||!i)){if(i?g(t)&&(o=k(this.coll===`colorAxis`?null:t.crosshairPos,this.isXAxis?t.plotX:this.len-t.plotY)):o=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),g(o)){var c={value:t&&(this.isXAxis?t.x:k(t.stackY,t.y)),translatedValue:o};a.polar&&b(c,{isCrosshair:!0,chartX:e&&e.chartX,chartY:e&&e.chartY,point:t}),c=this.getPlotLinePath(c)||null}if(!g(c)){this.hideCrosshair();return}
4i=this.categories&&!this.isRadial,s||(this.cross=s=a.renderer.path().addClass(`highcharts-crosshair highcharts-crosshair-`+(i?`category `:`thin `)+(r.className||``)).attr({zIndex:k(r.zIndex,2)}).add(),a.styledMode||(s.attr({stroke:r.color||(i?n.parse(`#ccd6eb`).setOpacity(.25).get():`#cccccc`),"stroke-width":k(r.width,1)}).css({"pointer-events":`none`}),r.dashStyle&&s.attr({dashstyle:r.dashStyle}))),s.show().attr({d:c}),i&&!r.width&&s.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();x(this,`afterDrawCrosshair`,{e,point:t})},e.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),x(this,`afterHideCrosshair`)},e.prototype.hasVerticalPanning=function(){var e=this.chart.options.chart.panning;return!!(e&&e.enabled&&/y/.test(e.type))},e.prototype.validatePositiveValue=function(e){return w(e)&&0<e},e.prototype.update=function(e,t){var n=this.chart;e=E(this.userOptions,e),this.destroy(!0),this.init(n,e),n.isDirtyBox=!0,k(t,!0)&&n.redraw()},e.prototype.remove=function(e){for(var t=this.chart,n=this.coll,r=this.series,i=r.length;i--;)r[i]&&r[i].remove(!1);v(t.axes,this),v(t[n],this),t[n].forEach(function(e,t){e.options.index=e.userOptions.index=t}),this.destroy(),t.isDirtyBox=!0,k(e,!0)&&t.redraw()},e.prototype.setTitle=function(e,t){this.update({title:e},t)},e.prototype.setCategories=function(e,t){this.update({categories:e},t)},e.defaultOptions=t.defaultXAxisOptions,e.keepProps=`extKey hcEvents names series userMax userMin`.split(` `),e}(),e}),t(n,`Core/Axis/DateTimeAxis.js`,[n[`Core/Utilities.js`]],function(e){var t=e.addEvent,n=e.getMagnitude,r=e.normalizeTickInterval,i=e.timeUnits,a;return(function(e){function a(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function o(e){e.userOptions.type===`datetime`?this.dateTime||=new c(this):this.dateTime=void 0}var s=[];e.compose=function(e){return s.indexOf(e)===-1&&(s.push(e),e.keepProps.push(`dateTime`),e.prototype.getTimeTicks=a,t(e,`init`,o)),e};var c=function(){function e(e){this.axis=e}return e.prototype.normalizeTimeTickInterval=function(e,t){var a=t||[[`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]];t=a[a.length-1];for(var o=i[t[0]],s=t[1],c=0;c<a.length&&(t=a[c],o=i[t[0]],s=t[1],!(a[c+1]&&e<=(o*s[s.length-1]+i[a[c+1][0]])/2));c++);return o===i.year&&e<5*o&&(s=[1,2,5]),e=r(e/o,s,t[0]===`year`?Math.max(n(e/o),1):1),{unitRange:o,count:e,unitName:t[0]}},e.prototype.getXDateFormat=function(e,t){var n=this.axis;return n.closestPointRange?n.chart.time.getDateFormat(n.closestPointRange,e,n.options.startOfWeek,t)||t.year:t.day},e}();e.Additions=c})(a||={}),a}),t(n,`Core/Axis/LogarithmicAxis.js`,[n[`Core/Utilities.js`]],function(e){var t=e.addEvent,n=e.getMagnitude,r=e.normalizeTickInterval,i=e.pick,a;return(function(e){function a(e){var t=this.logarithmic;e.userOptions.type===`logarithmic`?t||(this.logarithmic=new c(this)):this.logarithmic=void 0}function o(){var e=this.logarithmic;e&&(this.lin2val=function(t){return e.lin2log(t)},this.val2lin=function(t){return e.log2lin(t)})}var s=[];e.compose=function(e){return s.indexOf(e)===-1&&(s.push(e),e.keepProps.push(`logarithmic`),t(e,`init`,a),t(e,`afterInit`,o)),e};var c=function(){function e(e){this.axis=e}return e.prototype.getLogTickPositions=function(e,t,a,o){var s=this.axis,c=s.len,l=s.options,u=[];if(o||(this.minorAutoInterval=void 0),.5<=e)e=Math.round(e),u=s.getLinearTickPositions(e,t,a);else if(.08<=e){var d=Math.floor(t),f,p=l=void 0;for(c=.3<e?[1,2,4]:.15<e?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];d<a+1&&!p;d++){var m=c.length;for(f=0;f<m&&!p;f++){var h=this.log2lin(this.lin2log(d)*c[f]);h>t&&(!o||l<=a)&&l!==void 0&&u.push(l),l>a&&(p=!0),l=h}}}else t=this.lin2log(t),a=this.lin2log(a),e=o?s.getMinorTickInterval():l.tickInterval,e=i(e===`auto`?null:e,this.minorAutoInterval,l.tickPixelInterval/(o?5:1)*(a-t)/((o?c/s.tickPositions.length:c)||1)),e=r(e,void 0,n(e)),u=s.getLinearTickPositions(e,t,a).map(this.log2lin),o||(this.minorAutoInterval=e/5);return o||(s.tickInterval=e),u},e.prototype.lin2log=function(e){return 10**e},e.prototype.log2lin=function(e){return Math.log(e)/Math.LN10},e}();e.Additions=c})(a||={}),a}),t(n,`Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js`,[n[`Core/Utilities.js`]],function(e){var t=e.erase,n=e.extend,r
4=e.isNumber,i;return(function(e){var i=[],a;e.compose=function(e,t){return a||=e,i.indexOf(t)===-1&&(i.push(t),n(t.prototype,o.prototype)),t};var o=function(){function e(){}return e.prototype.getPlotBandPath=function(e,t,n){n===void 0&&(n=this.options);var i=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),a=[],o=this.horiz;if(t=!r(this.min)||!r(this.max)||e<this.min&&t<this.min||e>this.max&&t>this.max,e=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),n=1,e&&i){if(t){var s=e.toString()===i.toString();n=0}for(t=0;t<e.length;t+=2){var c=e[t],l=e[t+1],u=i[t],d=i[t+1];c[0]!==`M`&&c[0]!==`L`||l[0]!==`M`&&l[0]!==`L`||u[0]!==`M`&&u[0]!==`L`||d[0]!==`M`&&d[0]!==`L`||(o&&u[1]===c[1]?(u[1]+=n,d[1]+=n):o||u[2]!==c[2]||(u[2]+=n,d[2]+=n),a.push([`M`,c[1],c[2]],[`L`,l[1],l[2]],[`L`,d[1],d[2]],[`L`,u[1],u[2]],[`Z`])),a.isFlat=s}}return a},e.prototype.addPlotBand=function(e){return this.addPlotBandOrLine(e,`plotBands`)},e.prototype.addPlotLine=function(e){return this.addPlotBandOrLine(e,`plotLines`)},e.prototype.addPlotBandOrLine=function(e,t){var n=this,r=this.userOptions,i=new a(this,e);if(this.visible&&(i=i.render()),i){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(function(e){n.addPlotBandOrLine(e)})),t){var o=r[t]||[];o.push(e),r[t]=o}this.plotLinesAndBands.push(i)}return i},e.prototype.removePlotBandOrLine=function(e){var n=this.plotLinesAndBands,r=this.options,i=this.userOptions;if(n){for(var a=n.length;a--;)n[a].id===e&&n[a].destroy();[r.plotLines||[],i.plotLines||[],r.plotBands||[],i.plotBands||[]].forEach(function(n){for(a=n.length;a--;)(n[a]||{}).id===e&&t(n,n[a])})}},e.prototype.removePlotBand=function(e){this.removePlotBandOrLine(e)},e.prototype.removePlotLine=function(e){this.removePlotBandOrLine(e)},e}()})(i||={}),i}),t(n,`Core/Axis/PlotLineOrBand/PlotLineOrBand.js`,[n[`Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js`],n[`Core/Utilities.js`]],function(e,t){var n=t.arrayMax,r=t.arrayMin,i=t.defined,a=t.destroyObjectProperties,o=t.erase,s=t.fireEvent,c=t.merge,l=t.objectEach,u=t.pick;return t=function(){function t(e,t){this.axis=e,t&&(this.options=t,this.id=t.id)}return t.compose=function(n){return e.compose(t,n)},t.prototype.render=function(){s(this,`render`);var e=this,t=e.axis,n=t.horiz,r=t.logarithmic,a=e.options,o=a.color,d=u(a.zIndex,0),f=a.events,p={},m=t.chart.renderer,h=a.label,g=e.label,_=a.to,v=a.from,y=a.value,b=e.svgElem,x=[],S=i(v)&&i(_);x=i(y);var C=!b,w={class:`highcharts-plot-`+(S?`band `:`line `)+(a.className||``)},T=S?`bands`:`lines`;if(r&&(v=r.log2lin(v),_=r.log2lin(_),y=r.log2lin(y)),t.chart.styledMode||(x?(w.stroke=o||`#999999`,w[`stroke-width`]=u(a.width,1),a.dashStyle&&(w.dashstyle=a.dashStyle)):S&&(w.fill=o||`#e6ebf5`,a.borderWidth&&(w.stroke=a.borderColor,w[`stroke-width`]=a.borderWidth))),p.zIndex=d,T+=`-`+d,(r=t.plotLinesAndBandsGroups[T])||(t.plotLinesAndBandsGroups[T]=r=m.g(`plot-`+T).attr(p).add()),C&&(e.svgElem=b=m.path().attr(w).add(r)),x)x=t.getPlotLinePath({value:y,lineWidth:b.strokeWidth(),acrossPanes:a.acrossPanes});else if(S)x=t.getPlotBandPath(v,_,a);else return;return!e.eventsAdded&&f&&(l(f,function(t,n){b.on(n,function(t){f[n].apply(e,[t])})}),e.eventsAdded=!0),(C||!b.d)&&x&&x.length?b.attr({d:x}):b&&(x?(b.show(!0),b.animate({d:x})):b.d&&(b.hide(),g&&(e.label=g=g.destroy()))),h&&(i(h.text)||i(h.formatter))&&x&&x.length&&0<t.width&&0<t.height&&!x.isFlat?(h=c({align:n&&S&&`center`,x:n?!S&&4:10,verticalAlign:!n&&S&&`middle`,y:n?S?16:10:S?6:-4,rotation:n&&!S&&90},h),this.renderLabel(h,x,S,d)):g&&g.hide(),e},t.prototype.renderLabel=function(e,t,i,a){var o=this.axis,s=o.chart.renderer,l=this.label;l||(this.label=l=s.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:`highcharts-plot-`+(i?`band`:`line`)+`-label `+(e.className||``),zIndex:a}).add(),o.chart.styledMode||l.css(c({textOverflow:`ellipsis`},e.style))),a=t.xBounds||[t[0][1],t[1][1],i?t[2][1]:t[0][1]],t=t.yBounds||[t[0][2],t[1][2],i?t[2][2]:t[0][2]],i=r(a),s=r(t),l.align(e,!1,{x:i,y:s,width:n(a)-i,height:n(t)-s}),l.alignValue&&l.alignValue!==`left`||l.css({width:(l.rotation===90?o.height-(l.alignAttr.y-o.top):o.width-(l.alignAttr.x-o.left))+`px`}),l.show(!0)},t.prototype.getLabelText=function(e){return i(e.formatter)?e.formatter.call(this):e.text},t.prototype.destroy=function(){o(this.axis.plotLinesAndBands,this),delete this.axis,a(this)},t}(),t}),t(n,`Core/Tooltip.js`,[n[`Core/FormatUtilities.js`],n[`Core/Globals.js`],n[`Core/Renderer/RendererUtilities.js`],n[`Core/Renderer/RendererRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=e.format,o=t.doc,s=n.distribute,c=i.addEvent,l=i.clamp,u=i.css,d=i.defined,f=i.discardElement,p=i.extend,m=i.fireEvent,h=i.isArray,g=i.isNumber,_=i.isString,v=i.merge,y=i.pick,b=i.splat,x=i.syncTimeout;return e=function(){function e(e,t){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=e,this.init(e,t)}return e.prototype.applyFilter=function(){var e=this.chart;e.renderer.definition({tagName:`filter`,attributes:{id:`drop-shadow-`+e.index,opacity:.5},children:[{tagName:`feGaussianBlur`,attributes:{in:`SourceAlpha`,stdDeviation:1}},{tagName:`feOffset`,attributes:{dx:1,dy:1}}
4,{tagName:`feComponentTransfer`,children:[{tagName:`feFuncA`,attributes:{type:`linear`,slope:.3}}]},{tagName:`feMerge`,children:[{tagName:`feMergeNode`},{tagName:`feMergeNode`,attributes:{in:`SourceGraphic`}}]}]})},e.prototype.bodyFormatter=function(e){return e.map(function(e){var t=e.series.tooltipOptions;return(t[(e.point.formatPrefix||`point`)+`Formatter`]||e.point.tooltipFormatter).call(e.point,t[(e.point.formatPrefix||`point`)+`Format`]||``)})},e.prototype.cleanSplit=function(e){this.chart.series.forEach(function(t){var n=t&&t.tt;n&&(!n.isActive||e?t.tt=n.destroy():n.isActive=!1)})},e.prototype.defaultFormatter=function(e){var t=this.points||b(this),n=[e.tooltipFooterHeaderFormatter(t[0])];return n=n.concat(e.bodyFormatter(t)),n.push(e.tooltipFooterHeaderFormatter(t[0],!0)),n},e.prototype.destroy=function(){this.label&&=this.label.destroy(),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),f(this.container)),i.clearTimeout(this.hideTimer),i.clearTimeout(this.tooltipTimeout)},e.prototype.getAnchor=function(e,t){var n=this.chart,r=n.pointer,i=n.inverted,a=n.plotTop,o=n.plotLeft,s,c,l=0,u=0;return e=b(e),this.followPointer&&t?(t.chartX===void 0&&(t=r.normalize(t)),r=[t.chartX-o,t.chartY-a]):e[0].tooltipPos?r=e[0].tooltipPos:(e.forEach(function(e){s=e.series.yAxis,c=e.series.xAxis,l+=e.plotX||0,u+=e.plotLow?(e.plotLow+(e.plotHigh||0))/2:e.plotY||0,c&&s&&(i?(l+=a+n.plotHeight-c.len-c.pos,u+=o+n.plotWidth-s.len-s.pos):(l+=c.pos-o,u+=s.pos-a))}),l/=e.length,u/=e.length,r=[i?n.plotWidth-u:l,i?n.plotHeight-l:u],this.shared&&1<e.length&&t&&(i?r[0]=t.chartX-o:r[1]=t.chartY-a)),r.map(Math.round)},e.prototype.getLabel=function(){var e=this,n=this.chart.styledMode,i=this.options,a=this.split&&this.allowShared,o=`tooltip`+(d(i.className)?` `+i.className:``),s=i.style.pointerEvents||(!this.followPointer&&i.stickOnContact?`auto`:`none`),l=function(){e.inContact=!0},f=function(t){var n=e.chart.hoverSeries;e.inContact=e.shouldStickOnContact()&&e.chart.pointer.inClass(t.relatedTarget,`highcharts-tooltip`),!e.inContact&&n&&n.onMouseOut&&n.onMouseOut()},p,m=this.chart.renderer;if(e.label){var h=!e.label.hasClass(`highcharts-label`);(a&&!h||!a&&h)&&e.destroy()}if(!this.label){if(this.outside){h=this.chart.options.chart.style;var g=r.getRendererType();this.container=p=t.doc.createElement(`div`),p.className=`highcharts-tooltip-container`,u(p,{position:`absolute`,top:`1px`,pointerEvents:s,zIndex:Math.max(this.options.style.zIndex||0,(h&&h.zIndex||0)+3)}),c(p,`mouseenter`,l),c(p,`mouseleave`,f),t.doc.body.appendChild(p),this.renderer=m=new g(p,0,0,h,void 0,void 0,m.styledMode)}if(a?this.label=m.g(o):(this.label=m.label(``,0,0,i.shape,void 0,void 0,i.useHTML,void 0,o).attr({padding:i.padding,r:i.borderRadius}),n||this.label.attr({fill:i.backgroundColor,"stroke-width":i.borderWidth}).css(i.style).css({pointerEvents:s}).shadow(i.shadow)),n&&i.shadow&&(this.applyFilter(),this.label.attr({filter:`url(#drop-shadow-`+this.chart.index+`)`})),e.outside&&!e.split){var _=this.label,v=_.xSetter,y=_.ySetter;_.xSetter=function(t){v.call(_,e.distance),p.style.left=t+`px`},_.ySetter=function(t){y.call(_,e.distance),p.style.top=t+`px`}}this.label.on(`mouseenter`,l).on(`mouseleave`,f).attr({zIndex:8}).add()}return this.label},e.prototype.getPosition=function(e,t,n){var r=this.chart,i=this.distance,a={},s=r.inverted&&n.h||0,c=this.outside,l=c?o.documentElement.clientWidth-2*i:r.chartWidth,u=c?Math.max(o.body.scrollHeight,o.documentElement.scrollHeight,o.body.offsetHeight,o.documentElement.offsetHeight,o.documentElement.clientHeight):r.chartHeight,d=r.pointer.getChartPosition(),f=function(a){var o=a===`x`;return[a,o?l:u,o?e:t].concat(c?[o?e*d.scaleX:t*d.scaleY,o?d.left-i+(n.plotX+r.plotLeft)*d.scaleX:d.top-i+(n.plotY+r.plotTop)*d.scaleY,0,o?l:u]:[o?e:t,o?n.plotX+r.plotLeft:n.plotY+r.plotTop,o?r.plotLeft:r.plotTop,o?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},p=f(`y`),m=f(`x`),h;f=!!n.negative,!r.polar&&r.hoverSeries&&r.hoverSeries.yAxis&&r.hoverSeries.yAxis.reversed&&(f=!f);var g=!this.followPointer&&y(n.ttBelow,!r.inverted===f),_=function(e,t,n,r,o,l,u){var f=c?e===`y`?i*d.scaleY:i*d.scaleX:i,p=(n-r)/2,m=r<o-i,h=o+i+r<t,_=o-f-n+p;if(o=o+f-p,g&&h)a[e]=o;else if(!g&&m)a[e]=_;else if(m)a[e]=Math.min(u-r,0>_-s?_:_-s);else if(h)a[e]=Math.max(l,o+s+n>t?o:o+s);else return!1},v=function(e,t,n,r,o){var s;return o<i||o>t-i?s=!1:a[e]=o<n/2?1:o>t-r/2?t-r-2:o-n/2,s},b=function(e){var t=p;p=m,m=t,h=e},x=function(){!1===_.apply(0,p)?h?a.x=a.y=0:(b(!0),x()):!1!==v.apply(0,m)||h||(b(!0),x())};return(r.inverted||1<this.len)&&b(),x(),a},e.prototype.hide=function(e){var t=this;i.clearTimeout(this.hideTimer),e=y(e,this.options.hideDelay),this.isHidden||(this.hideTimer=x(function(){t.getLabel().fadeOut(e&&void 0),t.isHidden=!0},e))},e.prototype.init=function(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=y(t.outside,!(!e.scrollablePixelsX&&!e.scrollablePixelsY))},e.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)},e.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)},e.prototype.move=function(e,t,n,r){var a=this,o=a.now,s=!1!==a.options.animation&&!a.isHidden&&(1<Math.abs(e-o.x)||1<Math.abs(t-o.y)),c=a.followPointer||1<a.len;p(o,{x:s?(2*o.x+e)/3:e,y:s?(o.y+t)/2:t,anchorX:c?void 0:s?(2*o.anchorX+n)/3:n,anchorY:c?void 0:s?(o.anchorY+r)/2:r}),a.getLabel().attr(o),a.drawTracker(),s&&(i.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){a&&a.move(e,t,n,r)},32))},e.prototype.refresh=function(e,t){var n=this.chart,r=this.options,a=b(e),o=a[0],s=[],c=r.formatter||this.defaultFormatter,l=this.shared,u=n.styledMode,d={};if(r.enabled){i.clearTimeout(this.hideTimer),this.allowShared=!(!h(e)&&e.series&&e.series.noSharedTooltip),this.followPointer=!this.split&&o.series.tooltipOptions.followPointer,e=this.getAnchor(e,t);var f=e[0],p=e[1];if(l&&this.allowShared?(n.pointer.applyInactiveState(a),a.forEach(function(e){e.setState(`hover`),s.push(e.getLabelConfig())}),d={x:o.category,y:o.y}
4,d.points=s):d=o.getLabelConfig(),this.len=s.length,c=c.call(d,this),l=o.series,this.distance=y(l.tooltipOptions.distance,16),!1===c)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(c,a);else{var g=f,_=p;if(t&&n.pointer.isDirectTouch&&(g=t.chartX-n.plotLeft,_=t.chartY-n.plotTop),n.polar||!1===l.options.clip||a.some(function(e){return e.series.shouldShowTooltip(g,_)}))t=this.getLabel(),r.style.width&&!u||t.css({width:this.chart.spacingBox.width+`px`}),t.attr({text:c&&c.join?c.join(``):c}),t.removeClass(/highcharts-color-[\d]+/g).addClass(`highcharts-color-`+y(o.colorIndex,l.colorIndex)),u||t.attr({stroke:r.borderColor||o.color||l.color||`#666666`}),this.updatePosition({plotX:f,plotY:p,negative:o.negative,ttBelow:o.ttBelow,h:e[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}m(this,`refresh`)}},e.prototype.renderSplit=function(e,t){function n(e,t,n,i,a){return a===void 0&&(a=!0),n?(t=k?0:N,e=l(e-i/2,E.left,E.right-i-(r.outside?A:0))):(t-=j,e=a?e-i-C:e+C,e=l(e,a?e:E.left,E.right)),{x:e,y:t}}var r=this,i=r.chart,a=r.chart,c=a.chartWidth,u=a.chartHeight,d=a.plotHeight,f=a.plotLeft,m=a.plotTop,h=a.pointer,g=a.scrollablePixelsY;g=g===void 0?0:g;var v=a.scrollablePixelsX,b=a.scrollingContainer;b=b===void 0?{scrollLeft:0,scrollTop:0}:b;var x=b.scrollLeft;b=b.scrollTop;var S=a.styledMode,C=r.distance,w=r.options,T=r.options.positioner,E=r.outside&&typeof v!=`number`?o.documentElement.getBoundingClientRect():{left:x,right:x+c,top:b,bottom:b+u},D=r.getLabel(),O=this.renderer||i.renderer,k=!(!i.xAxis[0]||!i.xAxis[0].opposite);i=h.getChartPosition();var A=i.left;i=i.top;var j=m+b,M=0,N=d-g;_(e)&&(e=[!1,e]),e=e.slice(0,t.length+1).reduce(function(e,i,a){if(!1!==i&&i!==``){a=t[a-1]||{isHeader:!0,plotX:t[0].plotX,plotY:d,series:{}};var o=a.isHeader,s=o?r:a.series;i=i.toString();var c=s.tt,u=a.isHeader,p=a.series,h=`highcharts-color-`+y(a.colorIndex,p.colorIndex,`none`);if(c||=(c={padding:w.padding,r:w.borderRadius},S||(c.fill=w.backgroundColor,c[`stroke-width`]=w.borderWidth),O.label(``,0,0,w[u?`headerShape`:`shape`],void 0,void 0,w.useHTML).addClass((u?`highcharts-tooltip-header `:``)+`highcharts-tooltip-box `+h).attr(c).add(D)),c.isActive=!0,c.attr({text:i}),S||c.css(w.style).shadow(w.shadow).attr({stroke:w.borderColor||a.color||p.color||`#333333`}),s=s.tt=c,u=s.getBBox(),i=u.width+s.strokeWidth(),o&&(M=u.height,N+=M,k&&(j-=M)),p=a.plotX,p=p===void 0?0:p,h=a.plotY,h=h===void 0?0:h,c=a.series,a.isHeader){p=f+p;var g=m+d/2}else{var _=c.xAxis,v=c.yAxis;p=_.pos+l(p,-C,_.len+C),c.shouldShowTooltip(0,v.pos-m+h,{ignoreX:!0})&&(g=v.pos+h)}p=l(p,E.left-C,E.right+C),typeof g==`number`?(u=u.height+1,h=T?T.call(r,i,u,a):n(p,g,o,i),e.push({align:T?0:void 0,anchorX:p,anchorY:g,boxWidth:i,point:a,rank:y(h.rank,+!!o),size:u,target:h.y,tt:s,x:h.x})):s.isActive=!1}return e},[]),!T&&e.some(function(e){var t=(r.outside?A:0)+e.anchorX;return t<E.left&&t+e.boxWidth<E.right||t<A-E.left+e.boxWidth&&E.right-t>t})&&(e=e.map(function(e){var t=n(e.anchorX,e.anchorY,e.point.isHeader,e.boxWidth,!1);return p(e,{target:t.y,x:t.x})})),r.cleanSplit(),s(e,N);var P=A,F=A;e.forEach(function(e){var t=e.x,n=e.boxWidth;e=e.isHeader,e||(r.outside&&A+t<P&&(P=A+t),!e&&r.outside&&P+n>F&&(F=A+t))}),e.forEach(function(e){var t=e.x,n=e.anchorX,i=e.pos,a=e.point.isHeader;if(i={visibility:i===void 0?`hidden`:`inherit`,x:t,y:i+j,anchorX:n,anchorY:e.anchorY},r.outside&&t<n){var o=A-P;0<o&&(a||(i.x=t+o,i.anchorX=n+o),a&&(i.x=(F-P)/2,i.anchorX=n+o))}e.tt.attr(i)}),e=r.container,g=r.renderer,r.outside&&e&&g&&(a=D.getBBox(),g.setSize(a.width+a.x,a.height+a.y,!1),e.style.left=P+`px`,e.style.top=i+`px`)},e.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var e=this.chart,t=this.label,n=this.shared?e.hoverPoints:e.hoverPoint;if(t&&n){var r={x:0,y:0,width:0,height:0};n=this.getAnchor(n);var i=t.getBBox();n[0]+=e.plotLeft-t.translateX,n[1]+=e.plotTop-t.translateY,r.x=Math.min(0,n[0]),r.y=Math.min(0,n[1]),r.width=0>n[0]?Math.max(Math.abs(n[0]),i.width-n[0]):Math.max(Math.abs(n[0]),i.width),r.height=0>n[1]?Math.max(Math.abs(n[1]),i.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),i.height),this.tracker?this.tracker.attr(r):(this.tracker=t.renderer.rect(r).addClass(`highcharts-tracker`).add(t),e.styledMode||this.tracker.attr({fill:`rgba(0,0,0,0)`}))}}},e.prototype.styledModeFormat=function(e){return e.replace(`style="font-size: 10px"`,`class="highcharts-header"`).replace(/style="color:{(point|series)\.color}"/g,`class="highcharts-color-{$1.colorIndex}"`)},e.prototype.tooltipFooterHeaderFormatter=function(e,t){var n=e.series,r=n.tooltipOptions,i=n.xAxis,o=i&&i.dateTime;i={isFooter:t,labelConfig:e};var s=r.xDateFormat,c=r[t?`footerFormat`:`headerFormat`];
4return m(this,`headerFormatter`,i,function(t){o&&!s&&g(e.key)&&(s=o.getXDateFormat(e.key,r.dateTimeLabelFormats)),o&&s&&(e.point&&e.point.tooltipDateKeys||[`key`]).forEach(function(e){c=c.replace(`{point.`+e+`}`,`{point.`+e+`:`+s+`}`)}),n.chart.styledMode&&(c=this.styledModeFormat(c)),t.text=a(c,{point:e,series:n},this.chart)}),i.text},e.prototype.update=function(e){this.destroy(),v(!0,this.chart.options.tooltip.userOptions,e),this.init(this.chart,v(!0,this.options,e))},e.prototype.updatePosition=function(e){var t=this.chart,n=this.options,r=t.pointer,i=this.getLabel();r=r.getChartPosition();var a=(n.positioner||this.getPosition).call(this,i.width,i.height,e),o=e.plotX+t.plotLeft;e=e.plotY+t.plotTop,this.outside&&(n=n.borderWidth+2*this.distance,this.renderer.setSize(i.width+n,i.height+n,!1),(r.scaleX!==1||r.scaleY!==1)&&(u(this.container,{transform:`scale(`+r.scaleX+`, `+r.scaleY+`)`}),o*=r.scaleX,e*=r.scaleY),o+=r.left-a.x,e+=r.top-a.y),this.move(Math.round(a.x),Math.round(a.y||0),o,e)},e}(),e}),t(n,`Core/Series/Point.js`,[n[`Core/Renderer/HTML/AST.js`],n[`Core/Animation/AnimationUtilities.js`],n[`Core/DefaultOptions.js`],n[`Core/FormatUtilities.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=t.animObject,o=n.defaultOptions,s=r.format,c=i.addEvent,l=i.defined,u=i.erase,d=i.extend,f=i.fireEvent,p=i.getNestedProperty,m=i.isArray,h=i.isFunction,g=i.isNumber,_=i.isObject,v=i.merge,y=i.objectEach,b=i.pick,x=i.syncTimeout,S=i.removeEvent,C=i.uniqueKey;return t=function(){function t(){this.colorIndex=this.category=void 0,this.formatPrefix=`point`,this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return t.prototype.animateBeforeDestroy=function(){var e=this,t={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach(function(n){e[n]=e[n].animate(n===`dataLabel`?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:t)}),n.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(d({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})},t.prototype.applyOptions=function(e,n){var r=this.series,i=r.options.pointValKey||r.pointValKey;return e=t.prototype.optionsToObject.call(this,e),d(this,e),this.options=this.options?d(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,i&&(this.y=t.prototype.getNestedProperty.call(this,i)),this.formatPrefix=(this.isNull=b(this.isValid&&!this.isValid(),this.x===null||!g(this.y)))?`null`:`point`,this.selected&&(this.state=`select`),`name`in this&&n===void 0&&r.xAxis&&r.xAxis.hasNames&&(this.x=r.xAxis.nameToX(this)),this.x===void 0&&r?this.x=n===void 0?r.autoIncrement():n:g(e.x)&&r.options.relativeXValue&&(this.x=r.autoIncrement(e.x)),this},t.prototype.destroy=function(){function e(){for(s in(t.graphic||t.dataLabel||t.dataLabels)&&(S(t),t.destroyElements()),t)t[s]=null}var t=this,n=t.series,r=n.chart;n=n.options.dataSorting;var i=r.hoverPoints,o=a(t.series.chart.renderer.globalAnimation),s;t.legendItem&&r.legend.destroyItem(t),i&&(t.setState(),u(i,t),i.length||(r.hoverPoints=null)),t===r.hoverPoint&&t.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),x(e,o.duration)):e(),r.pointCount--},t.prototype.destroyElements=function(e){var t=this;e=t.getGraphicalProps(e),e.singular.forEach(function(e){t[e]=t[e].destroy()}),e.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.destroy()}),delete t[e]})},t.prototype.firePointEvent=function(e,t,n){var r=this,i=this.series.options;(i.point.events[e]||r.options&&r.options.events&&r.options.events[e])&&r.importEvents(),e===`click`&&i.allowPointSelect&&(n=function(e){r.select&&r.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),f(r,e,t,n)},t.prototype.getClassName=function(){return`highcharts-point`+(this.selected?` highcharts-point-select`:``)+(this.negative?` highcharts-negative`:``)+(this.isNull?` highcharts-null-point`:``)+(this.colorIndex===void 0?``:` 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(e){var t=this,n=[],r={singular:[],plural:[]},i;for(e||={graphic:1,dataLabel:1},e.graphic&&n.push(`graphic`,`upperGraphic`,`shadowGroup`),e.dataLabel&&n.push(`dataLabel`,`dataLabelUpper`,`connector`),i=n.length;i--;){var a=n[i];t[a]&&r.singular.push(a)}return[`dataLabel`,`connector`].forEach(function(n){var i=n+`s`;e[n]&&t[i]&&r.plural.push(i)}),r},t.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},t.prototype.getNestedProperty=function(e){if(e)return e.indexOf(`custom.`)===0?p(e,this.options):this[e]}
4,t.prototype.getZone=function(){var e=this.series,t=e.zones;e=e.zoneAxis||`y`;var n,r=0;for(n=t[r];this[e]>=n.value;)n=t[++r];return this.nonZonedColor||=this.color,this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.init=function(e,t,n){return this.series=e,this.applyOptions(t,n),this.id=l(this.id)?this.id:C(),this.resolveColor(),e.chart.pointCount++,f(this,`afterInit`),this},t.prototype.optionsToObject=function(e){var n=this.series,r=n.options.keys,i=r||n.pointArrayMap||[`y`],a=i.length,o={},s=0,c=0;if(g(e)||e===null)o[i[0]]=e;else if(m(e))for(!r&&e.length>a&&(n=typeof e[0],n===`string`?o.name=e[0]:n===`number`&&(o.x=e[0]),s++);c<a;)r&&e[s]===void 0||(0<i[c].indexOf(`.`)?t.prototype.setNestedProperty(o,e[s],i[c]):o[i[c]]=e[s]),s++,c++;else typeof e==`object`&&(o=e,e.dataLabels&&(n._hasPointLabels=!0),e.marker&&(n._hasPointMarkers=!0));return o},t.prototype.resolveColor=function(){var e=this.series,t=e.chart.styledMode,n=e.chart.options.chart.colorCount;if(delete this.nonZonedColor,e.options.colorByPoint){if(!t){n=e.options.colors||e.chart.options.colors;var r=n[e.colorCounter];n=n.length}t=e.colorCounter,e.colorCounter++,e.colorCounter===n&&(e.colorCounter=0)}else t||(r=e.color),t=e.colorIndex;this.colorIndex=b(this.options.colorIndex,t),this.color=b(this.options.color,r)},t.prototype.setNestedProperty=function(e,t,n){return n.split(`.`).reduce(function(e,n,r,i){return e[n]=i.length-1===r?t:_(e[n],!0)?e[n]:{},e[n]},e),e},t.prototype.tooltipFormatter=function(e){var t=this.series,n=t.tooltipOptions,r=b(n.valueDecimals,``),i=n.valuePrefix||``,a=n.valueSuffix||``;return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||[`y`]).forEach(function(t){t=`{point.`+t,(i||a)&&(e=e.replace(RegExp(t+`}`,`g`),i+t+`}`+a)),e=e.replace(RegExp(t+`}`,`g`),t+`:,.`+r+`f}`)}),s(e,{point:this,series:this.series},t.chart)},t.prototype.update=function(e,t,n,r){function i(){a.applyOptions(e);var r=s&&a.hasDummyGraphic;r=a.y===null?!r:r,s&&r&&(a.graphic=s.destroy(),delete a.hasDummyGraphic),_(e,!0)&&(s&&s.element&&e&&e.marker&&e.marker.symbol!==void 0&&(a.graphic=s.destroy()),e&&e.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&=a.connector.destroy()),u=a.index,o.updateParallelArrays(a,u),l.data[u]=_(l.data[u],!0)||_(e,!0)?a.options:b(e,l.data[u]),o.isDirty=o.isDirtyData=!0,!o.fixedBox&&o.hasCartesianSeries&&(c.isDirtyBox=!0),l.legendType===`point`&&(c.isDirtyLegend=!0),t&&c.redraw(n)}var a=this,o=a.series,s=a.graphic,c=o.chart,l=o.options,u;t=b(t,!0),!1===r?i():a.firePointEvent(`update`,{options:e},i)},t.prototype.remove=function(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)},t.prototype.select=function(e,t){var n=this,r=n.series,i=r.chart;this.selectedStaging=e=b(e,!n.selected),n.firePointEvent(e?`select`:`unselect`,{accumulate:t},function(){n.selected=n.options.selected=e,r.options.data[r.data.indexOf(n)]=n.options,n.setState(e&&`select`),t||i.getSelectedPoints().forEac
4h(function(e){var t=e.series;e.selected&&e!==n&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(i.hoverPoints&&t.options.inactiveOtherPoints?`inactive`:``),e.firePointEvent(`unselect`))})}),delete this.selectedStaging},t.prototype.onMouseOver=function(e){var t=this.series.chart,n=t.pointer;e=e?n.normalize(e):n.getChartCoordinatesFromPoint(this,t.inverted),n.runPointActions(e,this)},t.prototype.onMouseOut=function(){var e=this.series.chart;this.firePointEvent(`mouseOut`),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null},t.prototype.importEvents=function(){if(!this.hasImportedEvents){var e=this,t=v(e.series.options.point,e.options).events;e.events=t,y(t,function(t,n){h(t)&&c(e,n,t)}),this.hasImportedEvents=!0}},t.prototype.setState=function(t,n){var r=this.series,i=this.state,a=r.options.states[t||`normal`]||{},s=o.plotOptions[r.type].marker&&r.options.marker,c=s&&!1===s.enabled,l=s&&s.states&&s.states[t||`normal`]||{},u=!1===l.enabled,p=this.marker||{},m=r.chart,h=s&&r.markerAttribs,_=r.halo,v,y=r.stateMarkerGraphic;if(t||=``,!(t===this.state&&!n||this.selected&&t!==`select`||!1===a.enabled||t&&(u||c&&!1===l.enabled)||t&&p.states&&p.states[t]&&!1===p.states[t].enabled)){if(this.state=t,h&&(v=r.markerAttribs(this,t)),this.graphic&&!this.hasDummyGraphic){if(i&&this.graphic.removeClass(`highcharts-point-`+i),t&&this.graphic.addClass(`highcharts-point-`+t),!m.styledMode){var x=r.pointAttribs(this,t),S=b(m.options.chart.animation,a.animation);r.options.inactiveOtherPoints&&g(x.opacity)&&((this.dataLabels||[]).forEach(function(e){e&&e.animate({opacity:x.opacity},S)}),this.connector&&this.connector.animate({opacity:x.opacity},S)),this.graphic.animate(x,S)}v&&this.graphic.animate(v,b(m.options.chart.animation,l.animation,s.animation)),y&&y.hide()}else t&&l&&(i=p.symbol||r.symbol,y&&y.currentSymbol!==i&&(y=y.destroy()),v&&(y?y[n?`animate`:`attr`]({x:v.x,y:v.y}):i&&(r.stateMarkerGraphic=y=m.renderer.symbol(i,v.x,v.y,v.width,v.height).add(r.markerGroup),y.currentSymbol=i)),!m.styledMode&&y&&this.state!==`inactive`&&y.attr(r.pointAttribs(this,t))),y&&(y[t&&this.isInside?`show`:`hide`](),y.element.point=this,y.addClass(this.getClassName(),!0));a=a.halo,v=(y=this.graphic||y)&&y.visibility||`inherit`,a&&a.size&&y&&v!==`hidden`&&!this.isCluster?(_||(r.halo=_=m.renderer.path().add(y.parentGroup)),_.show()[n?`animate`:`attr`]({d:this.haloPath(a.size)}),_.attr({class:`highcharts-halo highcharts-color-`+b(this.colorIndex,r.colorIndex)+(this.className?` `+this.className:``),visibility:v,zIndex:-1}),_.point=this,m.styledMode||_.attr(d({fill:this.color||r.color,"fill-opacity":a.opacity},e.filterUserAttributes(a.attributes||{})))):_&&_.point&&_.point.haloPath&&_.animate({d:_.point.haloPath(0)},null,_.hide),f(this,`afterSetState`,{state:t})}},t.prototype.haloPath=function(e){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-e,this.plotY-e,2*e,2*e)},t}(),t}),t(n,`Core/Pointer.js`,[n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Tooltip.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=e.parse,a=t.charts,o=t.noop,s=r.addEvent,c=r.attr,l=r.css,u=r.defined,d=r.extend,f=r.find,p=r.fireEvent,m=r.isNumber,h=r.isObject,g=r.objectEach,_=r.offset,v=r.pick,y=r.splat;return e=function(){function e(e,t){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=e,this.hasDragged=!1,this.options=t,this.init(e,t)}return e.prototype.applyInactiveState=function(e){var t=[],n;(e||[]).forEach(function(e){n=e.series,t.push(n),n.linkedParent&&t.push(n.linkedParent),n.linkedSeries&&(t=t.concat(n.linkedSeries)),n.navigatorSeries&&t.push(n.navigatorSeries)}),this.chart.series.forEach(function(e){t.indexOf(e)===-1?e.setState(`inactive`,!0):e.options.inactiveOtherPoints&&e.setAllPointsToState(`inactive`)})},e.prototype.destroy=function(){var n=this;this.eventsToUnbind.forEach(function(e){return e()}),this.eventsToUnbind=[],t.chartCount||(e.unbindDocumentMouseUp&&=e.unbindDocumentMouseUp(),e.unbindDocumentTouchEnd&&=e.unbindDocumentTouchEnd()),clearInterval(n.tooltipTimeout),g(n,function(e,t){n[t]=void 0})},e.prototype.drag=function(e){var t=this.chart,n=t.options.chart,r=this.zoomHor,a=this.zoomVert,o=t.plotLeft,s=t.plotTop,c=t.plotWidth,l=t.plotHeight,u=this.mouseDownX||0,d=this.mouseDownY||0,f=h(n.panning)?n.panning&&n.panning.enabled:n.panning,p=n.panKey&&e[n.panKey+`Key`],m=e.chartX,g=e.chartY,_=this.selectionMarker;if((!_||!_.touch)&&(m<o?m=o:m>o+c&&(m=o+c),g<s?g=s:g>s+l&&(g=s+l),this.hasDragged=Math.sqrt((u-m)**2+(d-g)**2),10<this.hasDragged)){var v=t.isInsidePlot(u-o,d-s,{visiblePlotOnly:!0});
4!t.hasCartesianSeries&&!t.mapView||!this.zoomX&&!this.zoomY||!v||p||_||(this.selectionMarker=_=t.renderer.rect(o,s,r?1:c,a?1:l,0).attr({class:`highcharts-selection-marker`,zIndex:7}).add(),t.styledMode||_.attr({fill:n.selectionMarkerFill||i(`#335cad`).setOpacity(.25).get()})),_&&r&&(r=m-u,_.attr({width:Math.abs(r),x:(0<r?0:r)+u})),_&&a&&(r=g-d,_.attr({height:Math.abs(r),y:(0<r?0:r)+d})),v&&!_&&f&&t.pan(e,n.panning)}},e.prototype.dragStart=function(e){var t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=this.mouseDownX=e.chartX,t.mouseDownY=this.mouseDownY=e.chartY},e.prototype.drop=function(e){var t=this,n=this.chart,r=this.hasPinched;if(this.selectionMarker){var i=this.selectionMarker,a=i.attr?i.attr(`x`):i.x,o=i.attr?i.attr(`y`):i.y,s=i.attr?i.attr(`width`):i.width,c=i.attr?i.attr(`height`):i.height,f={originalEvent:e,xAxis:[],yAxis:[],x:a,y:o,width:s,height:c},h=!!n.mapView;(this.hasDragged||r)&&(n.axes.forEach(function(n){if(n.zoomEnabled&&u(n.min)&&(r||t[{xAxis:`zoomX`,yAxis:`zoomY`}[n.coll]])&&m(a)&&m(o)){var i=n.horiz,l=e.type===`touchend`?n.minPixelPadding:0,d=n.toValue((i?a:o)+l);i=n.toValue((i?a+s:o+c)-l),f[n.coll].push({axis:n,min:Math.min(d,i),max:Math.max(d,i)}),h=!0}}),h&&p(n,`selection`,f,function(e){n.zoom(d(e,r?{animation:!1}:null))})),m(n.index)&&(this.selectionMarker=this.selectionMarker.destroy()),r&&this.scaleGroups()}n&&m(n.index)&&(l(n.container,{cursor:n._cursor}),n.cancelClick=10<this.hasDragged,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},e.prototype.findNearestKDPoint=function(e,t,n){var r=this.chart,i=r.hoverPoint;if(r=r.tooltip,i&&r&&r.isStickyOnContact())return i;var a;return e.forEach(function(e){var r=!(e.noSharedTooltip&&t)&&0>e.options.findNearestPointBy.indexOf(`y`);if(e=e.searchPoint(n,r),(r=h(e,!0)&&e.series)&&!(r=!h(a,!0))){r=a.distX-e.distX;var i=a.dist-e.dist,o=(e.series.group&&e.series.group.zIndex)-(a.series.group&&a.series.group.zIndex);r=0<(r!==0&&t?r:i===0?o===0?a.series.index>e.series.index?-1:1:o:i)}r&&(a=e)}),a},e.prototype.getChartCoordinatesFromPoint=function(e,t){var n=e.series,r=n.xAxis;n=n.yAxis;var i=e.shapeArgs;if(r&&n){var a=v(e.clientX,e.plotX),o=e.plotY||0;return e.isNode&&i&&m(i.x)&&m(i.y)&&(a=i.x,o=i.y),t?{chartX:n.len+n.pos-o,chartY:r.len+r.pos-a}:{chartX:a+r.pos,chartY:o+n.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},e.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var e=this.chart.container,t=_(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};var n=e.offsetWidth;return e=e.offsetHeight,2<n&&2<e&&(this.chartPosition.scaleX=t.width/n,this.chartPosition.scaleY=t.height/e),this.chartPosition},e.prototype.getCoordinates=function(e){var t={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(n){t[n.isXAxis?`xAxis`:`yAxis`].push({axis:n,value:n.toValue(e[n.horiz?`chartX`:`chartY`])})}),t},e.prototype.getHoverData=function(e,t,n,r,i,a){var o=[];r=!(!r||!e);var s={chartX:a?a.chartX:void 0,chartY:a?a.chartY:void 0,shared:i};p(this,`beforeGetHoverData`,s);var c=t&&!t.stickyTracking?[t]:n.filter(function(e){return s.filter?s.filter(e):e.visible&&!(!i&&e.directTouch)&&v(e.options.enableMouseTracking,!0)&&e.stickyTracking}),l=r||!a?e:this.findNearestKDPoint(c,i,a);return t=l&&l.series,l&&(i&&!t.noSharedTooltip?(c=n.filter(function(e){return s.filter?s.filter(e):e.visible&&!(!i&&e.directTouch)&&v(e.options.enableMouseTracking,!0)&&!e.noSharedTooltip}),c.forEach(function(e){var t=f(e.points,function(e){return e.x===l.x&&!e.isNull});h(t)&&(e.chart.isBoosting&&(t=e.getPoint(t)),o.push(t))})):o.push(l)),s={hoverPoint:l},p(this,`afterGetHoverData`,s),{hoverPoint:s.hoverPoint,hoverSeries:t,hoverPoints:o}},e.prototype.getPointFromEvent=function(e){e=e.target;for(var t;e&&!t;)t=e.point,e=e.parentNode;return t},e.prototype.onTrackerMouseOut=function(e){e=e.relatedTarget||e.toElement;var t=this.chart.hoverSeries;this.isDirectTouch=!1,!t||!e||t.stickyTracking||this.inClass(e,`highcharts-tooltip`)||this.inClass(e,`highcharts-series-`+t.index)&&this.inClass(e,`highcharts-tracker`)||t.onMouseOut()},e.prototype.inClass=function(e,t){for(var n;e;){if(n=c(e,`class`)){if(n.indexOf(t)!==-1)return!0;
4if(n.indexOf(`highcharts-container`)!==-1)return!1}e=e.parentNode}},e.prototype.init=function(e,t){this.options=t,this.chart=e,this.runChartClick=!(!t.chart.events||!t.chart.events.click),this.pinchDown=[],this.lastValidTouch={},n&&(e.tooltip=new n(e,t.tooltip),this.followTouchMove=v(t.tooltip.followTouchMove,!0)),this.setDOMEvents()},e.prototype.normalize=function(e,t){var n=e.touches,r=n?n.length?n.item(0):v(n.changedTouches,e.changedTouches)[0]:e;return t||=this.getChartPosition(),n=r.pageX-t.left,r=r.pageY-t.top,n/=t.scaleX,r/=t.scaleY,d(e,{chartX:Math.round(n),chartY:Math.round(r)})},e.prototype.onContainerClick=function(e){var t=this.chart,n=t.hoverPoint;e=this.normalize(e);var r=t.plotLeft,i=t.plotTop;t.cancelClick||(n&&this.inClass(e.target,`highcharts-tracker`)?(p(n.series,`click`,d(e,{point:n})),t.hoverPoint&&n.firePointEvent(`click`,e)):(d(e,this.getCoordinates(e)),t.isInsidePlot(e.chartX-r,e.chartY-i,{visiblePlotOnly:!0})&&p(t,`click`,e)))},e.prototype.onContainerMouseDown=function(e){var n=((e.buttons||e.button)&1)==1;e=this.normalize(e),t.isFirefox&&e.button!==0&&this.onContainerMouseMove(e),(e.button===void 0||n)&&(this.zoomOption(e),n&&e.preventDefault&&e.preventDefault(),this.dragStart(e))},e.prototype.onContainerMouseLeave=function(t){var n=a[v(e.hoverChartIndex,-1)],r=this.chart.tooltip;r&&r.shouldStickOnContact()&&this.inClass(t.relatedTarget,`highcharts-tooltip-container`)||(t=this.normalize(t),n&&(t.relatedTarget||t.toElement)&&(n.pointer.reset(),n.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset())},e.prototype.onContainerMouseEnter=function(e){delete this.chartPosition},e.prototype.onContainerMouseMove=function(e){var t=this.chart;e=this.normalize(e),this.setHoverChartIndex(),e.preventDefault||(e.returnValue=!1),(t.mouseIsDown===`mousedown`||this.touchSelect(e))&&this.drag(e),t.openMenu||!this.inClass(e.target,`highcharts-tracker`)&&!t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop,{visiblePlotOnly:!0})||(this.inClass(e.target,`highcharts-no-tooltip`)?this.reset(!1,0):this.runPointActions(e))},e.prototype.onDocumentTouchEnd=function(t){var n=a[v(e.hoverChartIndex,-1)];n&&n.pointer.drop(t)},e.prototype.onContainerTouchMove=function(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)},e.prototype.onContainerTouchStart=function(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))},e.prototype.onDocumentMouseMove=function(e){var t=this.chart,n=this.chartPosition;e=this.normalize(e,n);var r=t.tooltip;!n||r&&r.isStickyOnContact()||t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop,{visiblePlotOnly:!0})||this.inClass(e.target,`highcharts-tracker`)||this.reset()},e.prototype.onDocumentMouseUp=function(t){var n=a[v(e.hoverChartIndex,-1)];n&&n.pointer.drop(t)},e.prototype.pinch=function(e){var t=this,n=t.chart,r=t.pinchDown,i=e.touches||[],a=i.length,s=t.lastValidTouch,c=t.hasZoom,l={},u=a===1&&(t.inClass(e.target,`highcharts-tracker`)&&n.runTrackerClick||t.runChartClick),f={},m=t.selectionMarker;1<a?t.initiated=!0:a===1&&this.followTouchMove&&(t.initiated=!1),c&&t.initiated&&!u&&!1!==e.cancelable&&e.preventDefault(),[].map.call(i,function(e){return t.normalize(e)}),e.type===`touchstart`?([].forEach.call(i,function(e,t){r[t]={chartX:e.chartX,chartY:e.chartY}}),s.x=[r[0].chartX,r[1]&&r[1].chartX],s.y=[r[0].chartY,r[1]&&r[1].chartY],n.axes.forEach(function(e){if(e.zoomEnabled){var t=n.bounds[e.horiz?`h`:`v`],r=e.minPixelPadding,i=e.toPixels(Math.min(v(e.options.min,e.dataMin),e.dataMin)),a=e.toPixels(Math.max(v(e.options.max,e.dataMax),e.dataMax)),o=Math.max(i,a);t.min=Math.min(e.pos,Math.min(i,a)-r),t.max=Math.max(e.pos+e.len,o+r)}}),t.res=!0):t.followTouchMove&&a===1?this.runPointActions(t.normalize(e)):r.length&&(p(n,`touchpan`,{originalEvent:e},function(){m||(t.selectionMarker=m=d({destroy:o,touch:!0},n.plotBox)),t.pinchTranslate(r,i,l,m,f,s),t.hasPinched=c,t.scaleGroups(l,f)}),t.res&&(t.res=!1,this.reset(!1,0)))},e.prototype.pinchTranslate=function(e,t,n,r,i,a){this.zoomHor&&this.pinchTranslateDirection(!0,e,t,n,r,i,a),this.zoomVert&&this.pinchTranslateDirection(!1,e,t,n,r,i,a)},e.prototype.pinchTranslateDirection=function(e,t,n,r,i,a,o,s){var c=this.chart,l=e?`x`:`y`,u=e?`X`:`Y`,d=`chart`+u,f=e?`width`:`height`,p=c[`plot`+(e?`Left`:`Top`)],m=c.inverted,h=c.bounds[e?`h`:`v`],g=t.length===1,_=t[0][d],v=!g&&t[1][d];t=function(){typeof C==`number`&&20<Math.abs(_-v)&&(x=s||Math.abs(S-C)/Math.abs(_-v)),b=(p-S)/x+_,y=c[`plot`+(e?`Width`:`Height`)]/x};var y,b,x=s||1,S=n[0][d],C=!g&&n[1][d];if(t(),n=b,n<h.min){n=h.min;var w=!0}else n+y>h.max&&(n=h.max-y,w=!0);w?(S-=.8*(S-o[l][0]),typeof C==`number`&&(C-=.8*(C-o[l][1])),t()):o[l]=[S,C],m||(a[l]=b-p,a[f]=y),a=m?1/x:x,i[f]=y,i[l]=n,r[m?e?`scaleY`:`scaleX`:`scale`+u]=x,r[`translate`+u]=a*p+(S-a*_)},e.prototype.reset=function(e,t){var n=this.chart,r=n.hoverSeries,i=n.hoverPoint,a=n.hoverPoints,o=n.tooltip,s=o&&o.shared?a:i;
4e&&s&&y(s).forEach(function(t){t.series.isCartesian&&t.plotX===void 0&&(e=!1)}),e?o&&s&&y(s).length&&(o.refresh(s),o.shared&&a?a.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):i&&(i.setState(i.state,!0),n.axes.forEach(function(e){e.crosshair&&i.series[e.coll]===e&&e.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),a&&a.forEach(function(e){e.setState()}),r&&r.onMouseOut(),o&&o.hide(t),this.unDocMouseMove&&=this.unDocMouseMove(),n.axes.forEach(function(e){e.hideCrosshair()}),this.hoverX=n.hoverPoints=n.hoverPoint=null)},e.prototype.runPointActions=function(t,n){var r=this.chart,i=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,o=i?i.shared:!1,c=n||r.hoverPoint,l=c&&c.series||r.hoverSeries;n=this.getHoverData(c,l,r.series,(!t||t.type!==`touchmove`)&&(!!n||l&&l.directTouch&&this.isDirectTouch),o,t),c=n.hoverPoint,l=n.hoverSeries;var u=n.hoverPoints;if(n=l&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split,o=o&&l&&!l.noSharedTooltip,c&&(c!==r.hoverPoint||i&&i.isHidden)){if((r.hoverPoints||[]).forEach(function(e){u.indexOf(e)===-1&&e.setState()}),r.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(u),(u||[]).forEach(function(e){e.setState(`hover`)}),r.hoverPoint&&r.hoverPoint.firePointEvent(`mouseOut`),!c.series)return;r.hoverPoints=u,r.hoverPoint=c,c.firePointEvent(`mouseOver`),i&&i.refresh(o?u:c,t)}else n&&i&&!i.isHidden&&(c=i.getAnchor([{}],t),r.isInsidePlot(c[0],c[1],{visiblePlotOnly:!0})&&i.updatePosition({plotX:c[0],plotY:c[1]}));this.unDocMouseMove||(this.unDocMouseMove=s(r.container.ownerDocument,`mousemove`,function(t){var n=a[e.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(t)}),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach(function(e){var n=v((e.crosshair||{}).snap,!0),i;n&&((i=r.hoverPoint)&&i.series[e.coll]===e||(i=f(u,function(t){return t.series[e.coll]===e}))),i||!n?e.drawCrosshair(t,i):e.hideCrosshair()})},e.prototype.scaleGroups=function(e,t){var n=this.chart;n.series.forEach(function(r){var i=e||r.getPlotBox();r.group&&(r.xAxis&&r.xAxis.zoomEnabled||n.mapView)&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(t?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))}),n.clipRect.attr(t||n.clipBox)},e.prototype.setDOMEvents=function(){var n=this,r=this.chart.container,i=r.ownerDocument;r.onmousedown=this.onContainerMouseDown.bind(this),r.onmousemove=this.onContainerMouseMove.bind(this),r.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(s(r,`mouseenter`,this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(s(r,`mouseleave`,this.onContainerMouseLeave.bind(this))),e.unbindDocumentMouseUp||=s(i,`mouseup`,this.onDocumentMouseUp.bind(this));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!==`BODY`;)this.eventsToUnbind.push(s(a,`scroll`,function(){delete n.chartPosition})),a=a.parentElement;t.hasTouch&&(this.eventsToUnbind.push(s(r,`touchstart`,this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(s(r,`touchmove`,this.onContainerTouchMove.bind(this),{passive:!1})),e.unbindDocumentTouchEnd||=s(i,`touchend`,this.onDocumentTouchEnd.bind(this),{passive:!1}))},e.prototype.setHoverChartIndex=function(){var n=this.chart,r=t.charts[v(e.hoverChartIndex,-1)];r&&r!==n&&r.pointer.onContainerMouseLeave({relatedTarget:!0}),r&&r.mouseIsDown||(e.hoverChartIndex=n.index)},e.prototype.touch=function(e,t){var n=this.chart;if(this.setHoverChartIndex(),e.touches.length===1){if(e=this.normalize(e),n.isInsidePlot(e.chartX-n.plotLeft,e.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.openMenu){if(t&&this.runPointActions(e),e.type===`touchmove`){t=this.pinchDown;var r=t[0]?4<=Math.sqrt((t[0].chartX-e.chartX)**2+(t[0].chartY-e.chartY)**2):!1}v(r,!0)&&this.pinch(e)}else t&&this.reset()}else e.touches.length===2&&this.pinch(e)},e.prototype.touchSelect=function(e){return!(!this.chart.options.chart.zoomBySingleTouch||!e.touches||e.touches.length!==1)},e.prototype.zoomOption=function(e){var t=this.chart,n=t.options.chart;t=t.inverted;var r=n.zoomType||``;/touch/.test(e.type)&&(r=v(n.pinchType,r)),this.zoomX=e=/x/.test(r),this.zoomY=n=/y/.test(r),this.zoomHor=e&&!t||n&&t,this.zoomVert=n&&!t||e&&t,this.hasZoom=e||n},e}(),e}),t(n,`Core/MSPointer.js`,[n[`Core/Globals.js`],n[`Core/Pointer.js`],n[`Core/Utilities.js`]],function(e,t,n){function r(){var e=[];return e.item=function(e){return this[e]},f(m,function(t){e.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),e}function i(e,n,i,a){var s=o[t.hoverChartIndex||NaN];e.pointerType!==`touch`&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,a(e),s[n]({type:i,target:e.currentTarget,preventDefault:c,touches:r()}
4))}var a=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=e.charts,s=e.doc,c=e.noop,l=e.win,u=n.addEvent,d=n.css,f=n.objectEach,p=n.removeEvent,m={},h=!!l.PointerEvent;return function(t){function n(){return t!==null&&t.apply(this,arguments)||this}return a(n,t),n.isRequired=function(){return!(e.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},n.prototype.batchMSEvents=function(e){e(this.chart.container,h?`pointerdown`:`MSPointerDown`,this.onContainerPointerDown),e(this.chart.container,h?`pointermove`:`MSPointerMove`,this.onContainerPointerMove),e(s,h?`pointerup`:`MSPointerUp`,this.onDocumentPointerUp)},n.prototype.destroy=function(){this.batchMSEvents(p),t.prototype.destroy.call(this)},n.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this.hasZoom&&d(e.container,{"-ms-touch-action":`none`,"touch-action":`none`})},n.prototype.onContainerPointerDown=function(e){i(e,`onContainerTouchStart`,`touchstart`,function(e){m[e.pointerId]={pageX:e.pageX,pageY:e.pageY,target:e.currentTarget}})},n.prototype.onContainerPointerMove=function(e){i(e,`onContainerTouchMove`,`touchmove`,function(e){m[e.pointerId]={pageX:e.pageX,pageY:e.pageY},m[e.pointerId].target||(m[e.pointerId].target=e.currentTarget)})},n.prototype.onDocumentPointerUp=function(e){i(e,`onDocumentTouchEnd`,`touchend`,function(e){delete m[e.pointerId]})},n.prototype.setDOMEvents=function(){t.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(u)},n}(t)}),t(n,`Core/Legend/Legend.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/FormatUtilities.js`],n[`Core/Globals.js`],n[`Core/Series/Point.js`],n[`Core/Renderer/RendererUtilities.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a){var o=e.animObject,s=e.setAnimation,c=t.format;e=n.isFirefox;var l=n.marginNames;n=n.win;var u=i.distribute,d=a.addEvent,f=a.createElement,p=a.css,m=a.defined,h=a.discardElement,g=a.find,_=a.fireEvent,v=a.isNumber,y=a.merge,b=a.pick,x=a.relativeLength,S=a.stableSort,C=a.syncTimeout;return i=a.wrap,a=function(){function e(e,t){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=e,this.init(e,t)}return e.prototype.init=function(e,t){this.chart=e,this.setOptions(t),t.enabled&&(this.render(),d(this.chart,`endResize`,function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,`render`,function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},e.prototype.setOptions=function(e){var t=b(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=y(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop||0,this.itemMarginBottom=e.itemMarginBottom||0,this.padding=t,this.initialItemY=t-5,this.symbolWidth=b(e.symbolWidth,16),this.pages=[],this.proximate=e.layout===`proximate`&&!this.chart.inverted,this.baseline=void 0},e.prototype.update=function(e,t){var n=this.chart;this.setOptions(y(!0,this.options,e)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,b(t,!0)&&n.redraw(),_(this,`afterUpdate`)},e.prototype.colorizeItem=function(e,t){if(e.legendGroup[t?`removeClass`:`addClass`](`highcharts-legend-item-hidden`),!this.chart.styledMode){var n=this.options,r=e.legendItem,i=e.legendLine,a=e.legendSymbol,o=this.itemHiddenStyle.color;n=t?n.itemStyle.color:o;var s=t&&e.color||o,c=e.options&&e.options.marker,l={fill:s};r&&r.css({fill:n,color:n}),i&&i.attr({stroke:s}),a&&(c&&a.isMarker&&(l=e.pointAttribs(),t||(l.stroke=l.fill=o)),a.attr(l))}_(this,`afterColorizeItem`,{item:e,visible:t})}
4,e.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},e.prototype.positionItem=function(e){var t=this,n=this.options,r=n.symbolPadding,i=!n.rtl,a=e._legendItemPos;n=a[0],a=a[1];var o=e.checkbox,s=e.legendGroup;s&&s.element&&(r={translateX:i?n:this.legendWidth-n-2*r-4,translateY:a},i=function(){_(t,`afterPositionItem`,{item:e})},m(s.translateY)?s.animate(r,void 0,i):(s.attr(r),i())),o&&(o.x=n,o.y=a)},e.prototype.destroyItem=function(e){var t=e.checkbox;[`legendItem`,`legendLine`,`legendSymbol`,`legendGroup`].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),t&&h(e.checkbox)},e.prototype.destroy=function(){function e(e){this[e]&&(this[e]=this[e].destroy())}this.getAllItems().forEach(function(t){[`legendItem`,`legendGroup`].forEach(e,t)}),`clipRect up down pager nav box title group`.split(` `).forEach(e,this),this.display=null},e.prototype.positionCheckboxes=function(){var e=this.group&&this.group.alignAttr,t=this.clipHeight||this.legendHeight,n=this.titleHeight;if(e){var r=e.translateY;this.allItems.forEach(function(i){var a=i.checkbox;if(a){var o=r+n+a.y+(this.scrollOffset||0)+3;p(a,{left:e.translateX+i.checkboxOffset+a.x-20+`px`,top:o+`px`,display:this.proximate||o>r-6&&o<r+t-6?``:`none`})}},this)}},e.prototype.renderTitle=function(){var e=this.options,t=this.padding,n=e.title,r=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,t-3,t-4,null,null,null,e.useHTML,null,`legend-title`).attr({zIndex:1}),this.chart.styledMode||this.title.css(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+`px`}),e=this.title.getBBox(),r=e.height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r},e.prototype.setText=function(e){var t=this.options;e.legendItem.attr({text:t.labelFormat?c(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})},e.prototype.renderItem=function(e){var t=this.chart,n=t.renderer,r=this.options,i=this.symbolWidth,a=r.symbolPadding||0,o=this.itemStyle,s=this.itemHiddenStyle,c=r.layout===`horizontal`?b(r.itemDistance,20):0,l=!r.rtl,u=!e.series,d=!u&&e.series.drawLegendSymbol?e.series:e,f=d.options,p=this.createCheckboxForItem&&f&&f.showCheckbox,m=r.useHTML,h=e.options.className,g=e.legendItem;f=i+a+c+(p?20:0),g||(e.legendGroup=n.g(`legend-item`).addClass(`highcharts-`+d.type+`-series highcharts-color-`+e.colorIndex+(h?` `+h:``)+(u?` highcharts-series-`+e.index:``)).attr({zIndex:1}).add(this.scrollGroup),e.legendItem=g=n.text(``,l?i+a:-a,this.baseline||0,m),t.styledMode||g.css(y(e.visible?o:s)),g.attr({align:l?`left`:`right`,zIndex:2}).add(e.legendGroup),this.baseline||(this.fontMetrics=n.fontMetrics(t.styledMode?12:o.fontSize,g),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,g.attr(`y`,this.baseline),this.symbolHeight=r.symbolHeight||this.fontMetrics.f,r.squareSymbol&&(this.symbolWidth=b(r.symbolWidth,Math.max(this.symbolHeight,16)),f=this.symbolWidth+a+c+(p?20:0),l&&g.attr(`x`,this.symbolWidth+a))),d.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,g,m)),p&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),!t.styledMode&&o.width||g.css({width:(r.itemWidth||this.widthOption||t.spacingBox.width)-f+`px`}),this.setText(e),t=g.getBBox(),n=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=r.itemWidth||e.legendItemWidth||t.width+f,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(e.legendItemHeight||(t.height>1.5*n?t.height:n))},e.prototype.layoutItem=function(e){var t=this.options,n=this.padding,r=t.layout===`horizontal`,i=e.itemHeight,a=this.itemMarginBottom,o=this.itemMarginTop,s=r?b(t.itemDistance,20):0,c=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>c?this.maxItemWidth:e.itemWidth,r&&this.itemX-n+t>c&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=o+this.itemY+a,this.lastLineHeight=Math.max(i,this.lastLineHeight),e._legendItemPos=[this.itemX,this.itemY],r?this.itemX+=t:(this.itemY+=o+i+a,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(e.checkbox?0:s):t)+n,this.offsetWidth)},e.prototype.getAllItems=function(){var e=[];
4return this.chart.series.forEach(function(t){var n=t&&t.options;t&&b(n.showInLegend,!m(n.linkedTo)&&void 0,!0)&&(e=e.concat(t.legendItems||(n.legendType===`point`?t.data:t)))}),_(this,`afterGetAllItems`,{allItems:e}),e},e.prototype.getAlignment=function(){var e=this.options;return this.proximate?e.align.charAt(0)+`tv`:e.floating?``:e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)},e.prototype.adjustMargins=function(e,t){var n=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,o){a.test(i)&&!m(e[o])&&(n[l[o]]=Math.max(n[l[o]],n.legend[(o+1)%2?`legendHeight`:`legendWidth`]+[1,-1,-1,1][o]*r[o%2?`x`:`y`]+b(r.margin,12)+t[o]+(n.titleOffset[o]||0)))})},e.prototype.proximatePositions=function(){var e=this.chart,t=[],n=this.options.align===`left`;this.allItems.forEach(function(r){var i,a=n;if(r.yAxis){r.xAxis.options.reversed&&(a=!a),r.points&&(i=g(a?r.points:r.points.slice(0).reverse(),function(e){return v(e.plotY)})),a=this.itemMarginTop+r.legendItem.getBBox().height+this.itemMarginBottom;var o=r.yAxis.top-e.plotTop;r.visible?(i=i?i.plotY:r.yAxis.height,i+=o-.3*a):i=o+r.yAxis.height,t.push({target:i,size:a,item:r})}},this),u(t,e.plotHeight).forEach(function(t){t.item._legendItemPos&&(t.item._legendItemPos[1]=e.plotTop-e.spacing[0]+t.pos)})},e.prototype.render=function(){var e=this.chart,t=e.renderer,n=this.options,r=this.padding,i=this.getAllItems(),a=this.group,o=this.box;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=x(n.width,e.spacingBox.width-r);var s=e.spacingBox.width-2*r-n.x;-1<[`rm`,`lm`].indexOf(this.getAlignment().substring(0,2))&&(s/=2),this.maxLegendWidth=this.widthOption||s,a||(this.group=a=t.g(`legend`).addClass(n.className||``).attr({zIndex:7}).add(),this.contentGroup=t.g().attr({zIndex:1}).add(a),this.scrollGroup=t.g().add(this.contentGroup)),this.renderTitle(),S(i,function(e,t){return(e.options&&e.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)}),n.reversed&&i.reverse(),this.allItems=i,this.display=s=!!i.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,i.forEach(this.renderItem,this),i.forEach(this.layoutItem,this),i=(this.widthOption||this.offsetWidth)+r;var c=this.lastItemY+this.lastLineHeight+this.titleHeight;c=this.handleOverflow(c),c+=r,o||(this.box=o=t.rect().addClass(`highcharts-legend-box`).attr({r:n.borderRadius}).add(a),o.isNew=!0),e.styledMode||o.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||`none`}).shadow(n.shadow),0<i&&0<c&&(o[o.isNew?`attr`:`animate`](o.crisp.call({},{x:0,y:0,width:i,height:c},o.strokeWidth())),o.isNew=!1),o[s?`show`:`hide`](),e.styledMode&&a.getStyle(`display`)===`none`&&(i=c=0),this.legendWidth=i,this.legendHeight=c,s&&this.align(),this.proximate||this.positionItems(),_(this,`afterRender`)},e.prototype.align=function(e){e===void 0&&(e=this.chart.spacingBox);var t=this.chart,n=this.options,r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<t.titleOffset[0]?r+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<t.titleOffset[2]&&(r-=t.titleOffset[2]),r!==e.y&&(e=y(e,{y:r})),this.group.align(y(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?`top`:n.verticalAlign}),!0,e)},e.prototype.handleOverflow=function(e){var t=this,n=this.chart,r=n.renderer,i=this.options,a=i.y,o=i.verticalAlign===`top`,s=this.padding,c=i.maxHeight,l=i.navigation,u=b(l.animation,!0),d=l.arrowSize||12,f=this.pages,p=this.allItems,m=function(e){typeof e==`number`?y.attr({height:e}):y&&(t.clipRect=y.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=e?`rect(`+s+`px,9999px,`+(s+e)+`px,0)`:`auto`)},h=function(e){return t[e]=r.circle(0,0,1.3*d).translate(d/2,d/2).add(v),n.styledMode||t[e].attr(`fill`,`rgba(0,0,0,0.0001)`),t[e]},g,_;a=n.spacingBox.height+(o?-a:a)-s;var v=this.nav,y=this.clipRect;return i.layout!==`horizontal`||i.verticalAlign===`middle`||i.floating||(a/=2),c&&(a=Math.min(a,c)),f.length=0,e&&0<a&&e>a&&!1!==l.enabled?(this.clipHeight=g=Math.max(a-20-this.titleHeight-s,0),this.currentPage=b(this.currentPage,1),this.fullHeight=e,p.forEach(function(e,t){var n=e._legendItemPos[1],r=M
4ath.round(e.legendItem.getBBox().height),i=f.length;(!i||n-f[i-1]>g&&(_||n)!==f[i-1])&&(f.push(_||n),i++),e.pageIx=i-1,_&&(p[t-1].pageIx=i-1),t===p.length-1&&n+r-f[i-1]>g&&r<=g&&(f.push(n),e.pageIx=i),n!==_&&(_=n)}),y||(y=t.clipRect=r.clipRect(0,s,9999,0),t.contentGroup.clip(y)),m(g),v||(this.nav=v=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol(`triangle`,0,0,d,d).add(v),h(`upTracker`).on(`click`,function(){t.scroll(-1,u)}),this.pager=r.text(``,15,10).addClass(`highcharts-legend-navigation`),n.styledMode||this.pager.css(l.style),this.pager.add(v),this.down=r.symbol(`triangle-down`,0,0,d,d).add(v),h(`downTracker`).on(`click`,function(){t.scroll(1,u)})),t.scroll(0),e=a):v&&(m(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},e.prototype.scroll=function(e,t){var n=this,r=this.chart,i=this.pages,a=i.length,c=this.clipHeight,l=this.options.navigation,u=this.pager,d=this.padding,f=this.currentPage+e;f>a&&(f=a),0<f&&(t!==void 0&&s(t,r),this.nav.attr({translateX:d,translateY:c+this.padding+7+this.titleHeight,visibility:`visible`}),[this.up,this.upTracker].forEach(function(e){e.attr({class:f===1?`highcharts-legend-nav-inactive`:`highcharts-legend-nav-active`})}),u.attr({text:f+`/`+a}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:f===a?`highcharts-legend-nav-inactive`:`highcharts-legend-nav-active`})},this),r.styledMode||(this.up.attr({fill:f===1?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:f===1?`default`:`pointer`}),this.down.attr({fill:f===a?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:f===a?`default`:`pointer`})),this.scrollOffset=-i[f-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=f,this.positionCheckboxes(),e=o(b(t,r.renderer.globalAnimation,!0)),C(function(){_(n,`afterScroll`,{currentPage:f})},e.duration))},e.prototype.setItemEvents=function(e,t,n){var i=this,a=i.chart.renderer.boxWrapper,o=e instanceof r,s=`highcharts-legend-`+(o?`point`:`series`)+`-active`,c=i.chart.styledMode,l=function(t){i.allItems.forEach(function(n){e!==n&&[n].concat(n.linkedSeries||[]).forEach(function(e){e.setState(t,!o)})})};(n?[t,e.legendSymbol]:[e.legendGroup]).forEach(function(n){n&&n.on(`mouseover`,function(){e.visible&&l(`inactive`),e.setState(`hover`),e.visible&&a.addClass(s),c||t.css(i.options.itemHoverStyle)}).on(`mouseout`,function(){i.chart.styledMode||t.css(y(e.visible?i.itemStyle:i.itemHiddenStyle)),l(``),a.removeClass(s),e.setState()}).on(`click`,function(t){var n=function(){e.setVisible&&e.setVisible(),l(e.visible?`inactive`:``)};a.removeClass(s),t={browserEvent:t},e.firePointEvent?e.firePointEvent(`legendItemClick`,t,n):_(e,`legendItemClick`,t,n)})})},e.prototype.createCheckboxForItem=function(e){e.checkbox=f(`input`,{type:`checkbox`,className:`highcharts-legend-checkbox`,checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),d(e.checkbox,`click`,function(t){_(e.series||e,`checkboxClick`,{checked:t.target.checked,item:e},function(){e.select()})})},e}(),(/Trident\/7\.0/.test(n.navigator&&n.navigator.userAgent)||e)&&i(a.prototype,`positionItem`,function(e,t){var n=this,r=function(){t._legendItemPos&&e.call(n,t)};r(),n.bubbleLegend||setTimeout(r)}),a}),t(n,`Core/Series/SeriesRegistry.js`,[n[`Core/Globals.js`],n[`Core/DefaultOptions.js`],n[`Core/Series/Point.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=t.defaultOptions,a=r.error,o=r.extendClass,s=r.merge,c;return(function(t){function r(e,r){var a=i.plotOptions||{},o=r.defaultOptions;r.prototype.pointClass||(r.prototype.pointClass=n),r.prototype.type=e,o&&(a[e]=o),t.seriesTypes[e]=r}
4t.seriesTypes=e.seriesTypes,t.getSeries=function(e,n){n===void 0&&(n={});var r=e.options.chart;r=n.type||r.type||r.defaultSeriesType||``;var i=t.seriesTypes[r];return t||a(17,!0,e,{missingModuleFor:r}),r=new i,typeof r.init==`function`&&r.init(e,n),r},t.registerSeriesType=r,t.seriesType=function(e,a,c,l,u){var d=i.plotOptions||{};return a||=``,d[e]=s(d[a],c),r(e,o(t.seriesTypes[a]||function(){},l)),t.seriesTypes[e].prototype.type=e,u&&(t.seriesTypes[e].prototype.pointClass=o(n,u)),t.seriesTypes[e]}})(c||={}),c}),t(n,`Core/Chart/Chart.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Axis/Axis.js`],n[`Core/FormatUtilities.js`],n[`Core/Foundation.js`],n[`Core/Globals.js`],n[`Core/Legend/Legend.js`],n[`Core/MSPointer.js`],n[`Core/DefaultOptions.js`],n[`Core/Pointer.js`],n[`Core/Renderer/RendererRegistry.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Renderer/SVG/SVGRenderer.js`],n[`Core/Time.js`],n[`Core/Utilities.js`],n[`Core/Renderer/HTML/AST.js`]],function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){var h=e.animate,g=e.animObject,_=e.setAnimation,v=n.numberFormat,y=r.registerEventOptions,b=i.charts,x=i.doc,S=i.marginNames,C=i.svg,w=i.win,T=s.defaultOptions,E=s.defaultTime,D=u.seriesTypes,O=p.addEvent,k=p.attr,A=p.cleanRecursively,j=p.createElement,M=p.css,N=p.defined,P=p.discardElement,F=p.erase,I=p.error,L=p.extend,R=p.find,z=p.fireEvent,B=p.getStyle,V=p.isArray,H=p.isNumber,U=p.isObject,W=p.isString,G=p.merge,K=p.objectEach,q=p.pick,J=p.pInt,Y=p.relativeLength,X=p.removeEvent,Z=p.splat,Q=p.syncTimeout,$=p.uniqueKey;return e=function(){function e(e,t,n){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(e,t,n)}return e.chart=function(t,n,r){return new e(t,n,r)},e.prototype.getArgs=function(e,t,n){W(e)||e.nodeName?(this.renderTo=e,this.init(t,n)):this.init(e,t)},e.prototype.init=function(e,t){var n=e.plotOptions||{};z(this,`init`,{args:arguments},function(){var r=G(T,e),a=r.chart;K(r.plotOptions,function(e,t){U(e)&&(e.tooltip=n[t]&&G(n[t].tooltip)||void 0)}),r.tooltip.userOptions=e.chart&&e.chart.forExport&&e.tooltip.userOptions||e.tooltip,this.userOptions=e,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new f(e.time):i.time,this.numberFormatter=a.numberFormatter||v,this.styledMode=a.styledMode,this.hasCartesianSeries=a.showAxes,this.index=b.length,b.push(this),i.chartCount++,y(this,a),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,z(this,`afterInit`),this.firstRender()})},e.prototype.initSeries=function(e){var t=this.options.chart;t=e.type||t.type||t.defaultSeriesType;var n=D[t];return n||I(17,!0,this,{missingModuleFor:t}),t=new n,typeof t.init==`function`&&t.init(this,e),t},e.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)})},e.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0})},e.prototype.orderSeries=function(e){var t=this.series;e||=0;for(var n=t.length;e<n;++e)t[e]&&(t[e].index=e,t[e].name=t[e].getName())},e.prototype.isInsidePlot=function(e,t,n){n===void 0&&(n={});var r=this.inverted,i=this.plotBox,a=this.plotLeft,o=this.plotTop,s=this.scrollablePlotBox,c=0,l=0;n.visiblePlotOnly&&this.scrollingContainer&&(l=this.scrollingContainer,c=l.scrollLeft,l=l.scrollTop);var u=n.series;if(i=n.visiblePlotOnly&&s||i,s=n.inverted?t:e,t=n.inverted?e:t,e={x:s,y:t,isInsidePlot:!0},!n.ignoreX){var d=u&&(r?u.yAxis:u.xAxis)||{pos:a,len:1/0};s=n.paneCoordinates?d.pos+s:a+s,s>=Math.max(c+a,d.pos)&&s<=Math.min(c+a+i.width,d.pos+d.len)||(e.isInsidePlot=!1)}
4return!n.ignoreY&&e.isInsidePlot&&(r=u&&(r?u.xAxis:u.yAxis)||{pos:o,len:1/0},n=n.paneCoordinates?r.pos+t:o+t,n>=Math.max(l+o,r.pos)&&n<=Math.min(l+o+i.height,r.pos+r.len)||(e.isInsidePlot=!1)),z(this,`afterIsInsidePlot`,e),e.isInsidePlot},e.prototype.redraw=function(e){z(this,`beforeRedraw`);var t=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,r=this.pointer,i=this.legend,a=this.userOptions.legend,o=this.renderer,s=o.isHidden(),c=[],l=this.isDirtyBox,u=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),_(this.hasRendered?e:!1,this),s&&this.temporaryDisplay(),this.layOutTitles(),e=n.length;e--;){var d=n[e];if(d.options.stacking||d.options.centerInCategory){var f=!0;if(d.isDirty){var p=!0;break}}}if(p)for(e=n.length;e--;)d=n[e],d.options.stacking&&(d.isDirty=!0);n.forEach(function(e){e.isDirty&&(e.options.legendType===`point`?(typeof e.updateTotals==`function`&&e.updateTotals(),u=!0):a&&(a.labelFormatter||a.labelFormat)&&(u=!0)),e.isDirtyData&&z(e,`updatedData`)}),u&&i&&i.options.enabled&&(i.render(),this.isDirtyLegend=!1),f&&this.getStacks(),t.forEach(function(e){e.updateNames(),e.setScale()}),this.getMargins(),t.forEach(function(e){e.isDirty&&(l=!0)}),t.forEach(function(e){var t=e.min+`,`+e.max;e.extKey!==t&&(e.extKey=t,c.push(function(){z(e,`afterSetExtremes`,L(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(l||f)&&e.redraw()}),l&&this.drawChartBox(),z(this,`predraw`),n.forEach(function(e){(l||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),r&&r.reset(!0),o.draw(),z(this,`redraw`),z(this,`render`),s&&this.temporaryDisplay(!0),c.forEach(function(e){e.call()})},e.prototype.get=function(e){function t(t){return t.id===e||t.options&&t.options.id===e}for(var n=this.series,r=R(this.axes,t)||R(this.series,t),i=0;!r&&i<n.length;i++)r=R(n[i].points||[],t);return r},e.prototype.getAxes=function(){var e=this,n=this.options,r=n.xAxis=Z(n.xAxis||{});n=n.yAxis=Z(n.yAxis||{}),z(this,`getAxes`),r.forEach(function(e,t){e.index=t,e.isX=!0}),n.forEach(function(e,t){e.index=t}),r.concat(n).forEach(function(n){new t(e,n)}),z(this,`afterGetAxes`)},e.prototype.getSelectedPoints=function(){return this.series.reduce(function(e,t){return t.getPointsCollection().forEach(function(t){q(t.selectedStaging,t.selected)&&e.push(t)}),e},[])},e.prototype.getSelectedSeries=function(){return this.series.filter(function(e){return e.selected})},e.prototype.setTitle=function(e,t,n){this.applyDescription(`title`,e),this.applyDescription(`subtitle`,t),this.applyDescription(`caption`,void 0),this.layOutTitles(n)},e.prototype.applyDescription=function(e,t){var n=this,r=e===`title`?{color:`#333333`,fontSize:this.options.isStock?`16px`:`18px`}:{color:`#666666`};r=this.options[e]=G(!this.styledMode&&{style:r},this.options[e],t);var i=this[e];i&&t&&(this[e]=i=i.destroy()),r&&!i&&(i=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:`highcharts-`+e,zIndex:r.zIndex||4}).add(),i.update=function(t){n[{title:`setTitle`,subtitle:`setSubtitle`,caption:`setCaption`}[e]](t)},this.styledMode||i.css(r.style),this[e]=i)},e.prototype.layOutTitles=function(e){var t=[0,0,0],n=this.renderer,r=this.spacingBox;[`title`,`subtitle`,`caption`].forEach(function(e){var i=this[e],a=this.options[e],o=a.verticalAlign||`top`;e=e===`title`?o===`top`?-3:0:o===`top`?t[0]+2:0;var s;if(i){this.styledMode||(s=a.style&&a.style.fontSize),s=n.fontMetrics(s,i).b,i.css({width:(a.width||r.width+(a.widthAdjust||0))+`px`});var c=Math.round(i.getBBox(a.useHTML).height);i.align(L({y:o===`bottom`?s:e+s,height:c},a),!1,`spacingBox`),a.floating||(o===`top`?t[0]=Math.ceil(t[0]+c):o===`bottom`&&(t[2]=Math.ceil(t[2]+c)))}},this),t[0]&&(this.options.title.verticalAlign||`top`)===`top`&&(t[0]+=this.options.title.margin),t[2]&&this.options.caption.verticalAlign===`bottom`&&(t[2]+=this.options.caption.margin);var i=!this.titleOffset||this.titleOffset.join(`,`)!==t.join(`,`);this.titleOffset=t,z(this,`afterLayOutTitles`),!this.isDirtyBox&&i&&(this.isDirtyBox=this.isDirtyLegend=i,this.hasRendered&&q(e,!0)&&this.isDirtyBox&&this.redraw())},e.prototype.getChartSize=function(){var e=this.options.chart,t=e.width;e=e.height;var n=this.renderTo;N(t)||(this.containerWidth=B(n,`width`)),N(e)||(this.containerHeight=B(n,`height`)),this.chartWidth=Math.max(0,t||this.containerWidth||600),this.chartHe
4ight=Math.max(0,Y(e,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},e.prototype.temporaryDisplay=function(e){var t=this.renderTo;if(e)for(;t&&t.style;)t.hcOrigStyle&&(M(t,t.hcOrigStyle),delete t.hcOrigStyle),t.hcOrigDetached&&(x.body.removeChild(t),t.hcOrigDetached=!1),t=t.parentNode;else for(;t&&t.style&&(x.body.contains(t)||t.parentNode||(t.hcOrigDetached=!0,x.body.appendChild(t)),(B(t,`display`,!1)===`none`||t.hcOricDetached)&&(t.hcOrigStyle={display:t.style.display,height:t.style.height,overflow:t.style.overflow},e={display:`block`,overflow:`hidden`},t!==this.renderTo&&(e.height=0),M(t,e),t.offsetWidth||t.style.setProperty(`display`,`block`,`important`)),t=t.parentNode,t!==x.body););},e.prototype.setClassName=function(e){this.container.className=`highcharts-container `+(e||``)},e.prototype.getContainer=function(){var e=this.options,t=e.chart,n=$(),r,i=this.renderTo;i||(this.renderTo=i=t.renderTo),W(i)&&(this.renderTo=i=x.getElementById(i)),i||I(13,!0,this);var a=J(k(i,`data-highcharts-chart`));H(a)&&b[a]&&b[a].hasRendered&&b[a].destroy(),k(i,`data-highcharts-chart`,this.index),i.innerHTML=m.emptyHTML,t.skipClone||i.offsetWidth||this.temporaryDisplay(),this.getChartSize(),a=this.chartWidth;var o=this.chartHeight;if(M(i,{overflow:`hidden`}),this.styledMode||(r=L({position:`relative`,overflow:`hidden`,width:a+`px`,height:o+`px`,textAlign:`left`,lineHeight:`normal`,zIndex:0,"-webkit-tap-highlight-color":`rgba(0,0,0,0)`,userSelect:`none`,"touch-action":`manipulation`,outline:`none`},t.style||{})),this.container=n=j(`div`,{id:n},r,i),this._cursor=n.style.cursor,this.renderer=new(t.renderer||!C?l.getRendererType(t.renderer):d)(n,a,o,void 0,t.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),_(void 0,this),this.setClassName(t.className),this.styledMode)for(var s in e.defs)this.renderer.definition(e.defs[s]);else this.renderer.setStyle(t.style);this.renderer.chartIndex=this.index,z(this,`afterGetContainer`)},e.prototype.getMargins=function(e){var t=this.spacing,n=this.margin,r=this.titleOffset;this.resetMargins(),r[0]&&!N(n[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+t[0])),r[2]&&!N(n[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+t[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(n,t),z(this,`getMargins`),e||this.getAxisMargins()},e.prototype.getAxisMargins=function(){var e=this,t=e.axisOffset=[0,0,0,0],n=e.colorAxis,r=e.margin,i=function(e){e.forEach(function(e){e.visible&&e.getOffset()})};e.hasCartesianSeries?i(e.axes):n&&n.length&&i(n),S.forEach(function(n,i){N(r[i])||(e[n]+=t[i])}),e.setChartSize()},e.prototype.reflow=function(e){var t=this,n=t.options.chart,r=t.renderTo,i=N(n.width)&&N(n.height),a=n.width||B(r,`width`);n=n.height||B(r,`height`),r=e?e.target:w,delete t.pointer.chartPosition,!i&&!t.isPrinting&&a&&n&&(r===w||r===x)&&((a!==t.containerWidth||n!==t.containerHeight)&&(p.clearTimeout(t.reflowTimeout),t.reflowTimeout=Q(function(){t.container&&t.setSize(void 0,void 0,!1)},e?100:0)),t.containerWidth=a,t.containerHeight=n)},e.prototype.setReflow=function(e){var t=this;!1===e||this.unbindReflow?!1===e&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=O(w,`resize`,function(e){t.options&&t.reflow(e)}),O(this,`destroy`,this.unbindReflow))},e.prototype.setSize=function(e,t,n){var r=this,i=r.renderer;r.isResizing+=1,_(n,r),n=i.globalAnimation,r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,e!==void 0&&(r.options.chart.width=e),t!==void 0&&(r.options.chart.height=t),r.getChartSize(),r.styledMode||(n?h:M)(r.container,{width:r.chartWidth+`px`,height:r.chartHeight+`px`},n),r.setChartSize(!0),i.setSize(r.chartWidth,r.chartHeight,n),r.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(n),r.oldChartHeight=null,z(r,`resize`),Q(function(){r&&z(r,`endResize`,null,function(){--r.isResizing})},g(n).duration)},e.prototype.setChartSize=function(e){var t=this.inverted,n=this.renderer,r=this.chartWidth,i=this.chartHeight,a=this.options.chart,o=this.spacing,s=this.clipOffset,c,l,u,d;this.plotLeft=c=Math.round(this.plotLeft),this.plotTop=l=Math.round(this.plotTop),this.plotWidth=u=Math.max(0,Math.round(r-c-this.marginRight)),this.plotHeight=d=Math.max(0,Math.round(i-l-this.marginBottom)),this.plotSizeX=t?d:u,this.plotSizeY=t?u:d,this.plotBorderWidth=a.plotBorderWidth||0,this.spacingBox=n.spacingBox={x:o[3],y:o[0],width:r-o[3]-o[1],height:i-o[0]-o[2]},this.plotBox=n.plotBox={x:c,y:l,width:u,height:d},t=2*Math.floor(this.plotBorderWidth/2),r=Math.ceil(Math.max(t,s[3])/2),i=Math.ceil(Math.max(t,s[0])/2),this.clipBox={x:r,y:i,width:Math.floor(this.plotSizeX-Math.max(t,s[1])/2-r),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(t,s[2])/2-i))}
4,e||(this.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),n.alignElements()),z(this,`afterSetChartSize`,{skipAxes:e})},e.prototype.resetMargins=function(){z(this,`resetMargins`);var e=this,t=e.options.chart;[`margin`,`spacing`].forEach(function(n){var r=t[n],i=U(r)?r:[r,r,r,r];[`Top`,`Right`,`Bottom`,`Left`].forEach(function(r,a){e[n][a]=q(t[n+r],i[a])})}),S.forEach(function(t,n){e[t]=q(e.margin[n],e.spacing[n])}),e.axisOffset=[0,0,0,0],e.clipOffset=[0,0,0,0]},e.prototype.drawChartBox=function(){var e=this.options.chart,t=this.renderer,n=this.chartWidth,r=this.chartHeight,i=this.styledMode,a=this.plotBGImage,o=e.backgroundColor,s=e.plotBackgroundColor,c=e.plotBackgroundImage,l=this.plotLeft,u=this.plotTop,d=this.plotWidth,f=this.plotHeight,p=this.plotBox,m=this.clipRect,h=this.clipBox,g=this.chartBackground,_=this.plotBackground,v=this.plotBorder,y,b=`animate`;if(g||(this.chartBackground=g=t.rect().addClass(`highcharts-background`).add(),b=`attr`),i)var x=y=g.strokeWidth();else x=e.borderWidth||0,y=x+(e.shadow?8:0),o={fill:o||`none`},(x||g[`stroke-width`])&&(o.stroke=e.borderColor,o[`stroke-width`]=x),g.attr(o).shadow(e.shadow);g[b]({x:y/2,y:y/2,width:n-y-x%2,height:r-y-x%2,r:e.borderRadius}
4),b=`animate`,_||(b=`attr`,this.plotBackground=_=t.rect().addClass(`highcharts-plot-background`).add()),_[b](p),i||(_.attr({fill:s||`none`}).shadow(e.plotShadow),c&&(a?(c!==a.attr(`href`)&&a.attr(`href`,c),a.animate(p)):this.plotBGImage=t.image(c,l,u,d,f).add())),m?m.animate({width:h.width,height:h.height}):this.clipRect=t.clipRect(h),b=`animate`,v||(b=`attr`,this.plotBorder=v=t.rect().addClass(`highcharts-plot-border`).attr({zIndex:1}).add()),i||v.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:`none`}),v[b](v.crisp({x:l,y:u,width:d,height:f},-v.strokeWidth())),this.isDirtyBox=!1,z(this,`afterDrawChartBox`)},e.prototype.propFromSeries=function(){var e=this,t=e.options.chart,n=e.options.series,r,i,a;[`inverted`,`angular`,`polar`].forEach(function(o){for(i=D[t.type||t.defaultSeriesType],a=t[o]||i&&i.prototype[o],r=n&&n.length;!a&&r--;)(i=D[n[r].type])&&i.prototype[o]&&(a=!0);e[o]=a})},e.prototype.linkSeries=function(){var e=this,t=e.series;t.forEach(function(e){e.linkedSeries.length=0}),t.forEach(function(t){var n=t.options.linkedTo;W(n)&&(n=n===`:previous`?e.series[t.index-1]:e.get(n))&&n.linkedParent!==t&&(n.linkedSeries.push(t),t.linkedParent=n,n.enabledDataSorting&&t.setDataSortingOptions(),t.visible=q(t.options.visible,n.options.visible,t.visible))}),z(this,`afterLinkSeries`)},e.prototype.renderSeries=function(){this.series.forEach(function(e){e.translate(),e.render()})},e.prototype.renderLabels=function(){var e=this,t=e.options.labels;t.items&&t.items.forEach(function(n){var r=L(t.style,n.style),i=J(r.left)+e.plotLeft,a=J(r.top)+e.plotTop+12;delete r.left,delete r.top,e.renderer.text(n.html,i,a).attr({zIndex:2}).css(r).add()})},e.prototype.render=function(){var e=this.axes,t=this.colorAxis,n=this.renderer,r=this.options,i=function(e){e.forEach(function(e){e.visible&&e.render()})},o=0;this.setTitle(),this.legend=new a(this,r.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),r=this.plotWidth,e.some(function(e){if(e.horiz&&e.visible&&e.options.labels.enabled&&e.series.length)return o=21,!0});var s=this.plotHeight=Math.max(this.plotHeight-o,0);e.forEach(function(e){e.setScale()}),this.getAxisMargins();var c=1.1<r/this.plotWidth,l=1.05<s/this.plotHeight;(c||l)&&(e.forEach(function(e){(e.horiz&&c||!e.horiz&&l)&&e.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?i(e):t&&t.length&&i(t),this.seriesGroup||=n.g(`series-group`).attr({zIndex:3}).add(),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},e.prototype.addCredits=function(e){var t=this,n=G(!0,this.options.credits,e);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||``),0,0).addClass(`highcharts-credits`).on(`click`,function(){n.href&&(w.location.href=n.href)}).attr({align:n.position.align,zIndex:8}),t.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(e){t.credits=t.credits.destroy(),t.addCredits(e)})},e.prototype.destroy=function(){var e=this,t=e.axes,n=e.series,r=e.container,a=r&&r.parentNode,o;for(z(e,`destroy`),e.renderer.forExport?F(b,e):b[e.index]=void 0,i.chartCount--,e.renderTo.removeAttribute(`data-highcharts-chart`),X(e),o=t.length;o--;)t[o]=t[o].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),o=n.length;o--;)n[o]=n[o].destroy();
4`title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer`.split(` `).forEach(function(t){var n=e[t];n&&n.destroy&&(e[t]=n.destroy())}),r&&(r.innerHTML=m.emptyHTML,X(r),a&&P(r)),K(e,function(t,n){delete e[n]})},e.prototype.firstRender=function(){var e=this,t=e.options;(!e.isReadyToRender||e.isReadyToRender())&&(e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.getAxes(),(V(t.series)?t.series:[]).forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSeriesData(),z(e,`beforeRender`),c&&(e.pointer=o.isRequired()?new o(e,t):new c(e,t)),e.render(),e.pointer.getChartPosition(),!e.renderer.imgCount&&!e.hasLoaded&&e.onload(),e.temporaryDisplay(!0))},e.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(e){e&&this.index!==void 0&&e.apply(this,[this])},this),z(this,`load`),z(this,`render`),N(this.index)&&this.setReflow(this.options.chart.reflow),this.hasLoaded=!0},e.prototype.addSeries=function(e,t,n){var r=this,i;return e&&(t=q(t,!0),z(r,`addSeries`,{options:e},function(){i=r.initSeries(e),r.isDirtyLegend=!0,r.linkSeries(),i.enabledDataSorting&&i.setData(e.data,!1),z(r,`afterAddSeries`,{series:i}),t&&r.redraw(n)})),i},e.prototype.addAxis=function(e,t,n,r){return this.createAxis(t?`xAxis`:`yAxis`,{axis:e,redraw:n,animation:r})},e.prototype.addColorAxis=function(e,t,n){return this.createAxis(`colorAxis`,{axis:e,redraw:t,animation:n})},e.prototype.createAxis=function(e,n){return e=new t(this,G(n.axis,{index:this[e].length,isX:e===`xAxis`})),q(n.redraw,!0)&&this.redraw(n.animation),e},e.prototype.showLoading=function(e){var t=this,n=t.options,r=n.loading,i=function(){a&&M(a,{left:t.plotLeft+`px`,top:t.plotTop+`px`,width:t.plotWidth+`px`,height:t.plotHeight+`px`})},a=t.loadingDiv,o=t.loadingSpan;a||(t.loadingDiv=a=j(`div`,{className:`highcharts-loading highcharts-loading-hidden`},null,t.container)),o||(t.loadingSpan=o=j(`span`,{className:`highcharts-loading-inner`},null,a),O(t,`redraw`,i)),a.className=`highcharts-loading`,m.setElementHTML(o,q(e,n.lang.loading,``)),t.styledMode||(M(a,L(r.style,{zIndex:10})),M(o,r.labelStyle),t.loadingShown||(M(a,{opacity:0,display:``}),h(a,{opacity:r.style.opacity||.5},{duration:r.showDuration||0}))),t.loadingShown=!0,i()},e.prototype.hideLoading=function(){var e=this.options,t=this.loadingDiv;t&&(t.className=`highcharts-loading highcharts-loading-hidden`,this.styledMode||h(t,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){M(t,{display:`none`})}})),this.loadingShown=!1},e.prototype.update=function(e,t,n,r){var i=this,a={credits:`addCredits`,title:`setTitle`,subtitle:`setSubtitle`,caption:`setCaption`},o=e.isResponsiveOptions,s=[],c,l;z(i,`update`,{options:e}),o||i.setResponsive(!1,!0),e=A(e,i.options),i.userOptions=G(i.userOptions,e);var u=e.chart;if(u){if(G(!0,i.options.chart,u),`className`in u&&i.setClassName(u.className),`reflow`in u&&i.setReflow(u.reflow),`inverted`in u||`polar`in u||`type`in u){i.propFromSeries();var d=!0}`alignTicks`in u&&(d=!0),`events`in u&&y(this,u),K(u,function(e,t){i.propsRequireUpdateSeries.indexOf(`chart.`+t)!==-1&&(c=!0),i.propsRequireDirtyBox.indexOf(t)!==-1&&(i.isDirtyBox=!0),i.propsRequireReflow.indexOf(t)!==-1&&(o?i.isDirtyBox=!0:l=!0)}),!i.styledMode&&u.style&&i.renderer.setStyle(i.options.chart.style||{})}!i.styledMode&&e.colors&&(this.options.colors=e.colors),e.time&&(this.time===E&&(this.time=new f(e.time)),G(!0,i.options.time,e.time)),K(e,function(t,n){i[n]&&typeof i[n].update==`function`?i[n].update(t,!1):typeof i[a[n]]==`function`?i[a[n]](t):n!==`colors`&&i.collectionsWithUpdate.indexOf(n)===-1&&G(!0,i.options[n],e[n]),n!==`chart`&&i.propsRequireUpdateSeries.indexOf(n)!==-1&&(c=!0)}),this.collectionsWithUpdate.forEach(function(t){if(e[t]){var r=[];i[t].forEach(function(e,t){e.options.isInternal||r.push(q(e.options.index,t))}),Z(e[t]).forEach(function(e,a){var o=N(e.id),s;o&&(s=i.get(e.id)),!s&&i[t]&&(s=i[t][r?r[a]:a])&&o&&N(s.options.id)&&(s=void 0),s&&s.coll===t&&(s.update(e,!1),n&&(s.touched=!0)),!s&&n&&i.collectionsWithInit[t]&&(i.collectionsWithInit[t][0].apply(i,[e].
4concat(i.collectionsWithInit[t][1]||[],[!1])).touched=!0)}),n&&i[t].forEach(function(e){e.touched||e.options.isInternal?delete e.touched:s.push(e)})}}),s.forEach(function(e){e.chart&&e.remove&&e.remove(!1)}),d&&i.axes.forEach(function(e){e.update({},!1)}),c&&i.getSeriesOrderByLinks().forEach(function(e){e.chart&&e.update({},!1)},this),d=u&&u.width,u&&=W(u.height)?Y(u.height,d||i.chartWidth):u.height,l||H(d)&&d!==i.chartWidth||H(u)&&u!==i.chartHeight?i.setSize(d,u,r):q(t,!0)&&i.redraw(r),z(i,`afterUpdate`,{options:e,redraw:t,animation:r})},e.prototype.setSubtitle=function(e,t){this.applyDescription(`subtitle`,e),this.layOutTitles(t)},e.prototype.setCaption=function(e,t){this.applyDescription(`caption`,e),this.layOutTitles(t)},e.prototype.showResetZoom=function(){function e(){t.zoomOut()}var t=this,n=T.lang,r=t.options.chart.resetZoomButton,i=r.theme,a=i.states,o=r.relativeTo===`chart`||r.relativeTo===`spacingBox`?null:`scrollablePlotBox`;z(this,`beforeShowResetZoom`,null,function(){t.resetZoomButton=t.renderer.button(n.resetZoom,null,null,e,i,a&&a.hover).attr({align:r.position.align,title:n.resetZoomTitle}).addClass(`highcharts-reset-zoom`).add().align(r.position,!1,o)}),z(this,`afterShowResetZoom`)},e.prototype.zoomOut=function(){z(this,`selection`,{resetSelection:!0}
4,this.zoom)},e.prototype.zoom=function(e){var t=this,n=t.pointer,r=t.inverted?n.mouseDownX:n.mouseDownY,i=!1,a;!e||e.resetSelection?(t.axes.forEach(function(e){a=e.zoom()}),n.initiated=!1):e.xAxis.concat(e.yAxis).forEach(function(e){var o=e.axis,s=t.inverted?o.left:o.top,c=t.inverted?s+o.width:s+o.height,l=o.isXAxis,u=!1;(!l&&r>=s&&r<=c||l||!N(r))&&(u=!0),n[l?`zoomX`:`zoomY`]&&u&&(a=o.zoom(e.min,e.max),o.displayBtn&&(i=!0))});var o=t.resetZoomButton;i&&!o?t.showResetZoom():!i&&U(o)&&(t.resetZoomButton=o.destroy()),a&&t.redraw(q(t.options.chart.animation,e&&e.animation,100>t.pointCount))},e.prototype.pan=function(e,t){var n=this,r=n.hoverPoints;t=typeof t==`object`?t:{enabled:t,type:`x`};var i=n.options.chart,a=n.options.mapNavigation&&n.options.mapNavigation.enabled;i&&i.panning&&(i.panning=t);var o=t.type,s;z(this,`pan`,{originalEvent:e},function(){r&&r.forEach(function(e){e.setState()});var t=n.xAxis;o===`xy`?t=t.concat(n.yAxis):o===`y`&&(t=n.yAxis);var i={};t.forEach(function(t){if(t.options.panningEnabled&&!t.options.isInternal){var r=t.horiz,c=e[r?`chartX`:`chartY`];r=r?`mouseDownX`:`mouseDownY`;var l=n[r],u=t.minPointOffset||0,d=t.reversed&&!n.inverted||!t.reversed&&n.inverted?-1:1,f=t.getExtremes(),p=t.toValue(l-c,!0)+u*d,m=t.toValue(l+t.len-c,!0)-(u*d||t.isXAxis&&t.pointRangePadding||0),h=m<p;d=t.hasVerticalPanning(),l=h?m:p,p=h?p:m;var g=t.panningState;!d||t.isXAxis||g&&!g.isDirty||t.series.forEach(function(e){var t=e.getProcessedData(!0);t=e.getExtremes(t.yData,!0),g||={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE},H(t.dataMin)&&H(t.dataMax)&&(g.startMin=Math.min(q(e.options.threshold,1/0),t.dataMin,g.startMin),g.startMax=Math.max(q(e.options.threshold,-1/0),t.dataMax,g.startMax))}),d=Math.min(q(g&&g.startMin,f.dataMin),u?f.min:t.toValue(t.toPixels(f.min)-t.minPixelPadding)),m=Math.max(q(g&&g.startMax,f.dataMax),u?f.max:t.toValue(t.toPixels(f.max)+t.minPixelPadding)),t.panningState=g,t.isOrdinal||(u=d-l,0<u&&(p+=u,l=d),u=p-m,0<u&&(p=m,l-=u),t.series.length&&l!==f.min&&p!==f.max&&l>=d&&p<=m&&(t.setExtremes(l,p,!1,!1,{trigger:`pan`}),n.resetZoomButton||a||l===d||p===m||!o.match(`y`)||(n.showResetZoom(),t.displayBtn=!1),s=!0),i[r]=c)}}),K(i,function(e,t){n[t]=e}),s&&n.redraw(!1),M(n.container,{cursor:`move`})})},e}(),L(e.prototype,{callbacks:[],collectionsWithInit:{xAxis:[e.prototype.addAxis,[!0]],yAxis:[e.prototype.addAxis,[!1]],series:[e.prototype.addSeries]},collectionsWithUpdate:[`xAxis`,`yAxis`,`series`],propsRequireDirtyBox:`backgroundColor borderColor borderWidth borderRadius plotBackgroun
4dColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow`.split(` `),propsRequireReflow:`margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft`.split(` `),propsRequireUpdateSeries:`chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip`.split(` `)}),e}),t(n,`Core/Legend/LegendSymbol.js`,[n[`Core/Utilities.js`]],function(e){var t=e.merge,n=e.pick,r;return(function(e){e.drawLineMarker=function(e){var r=this.options,i=e.symbolWidth,a=e.symbolHeight,o=a/2,s=this.chart.renderer,c=this.legendGroup;e=e.baseline-Math.round(.3*e.fontMetrics.b);var l={},u=r.marker;this.chart.styledMode||(l={"stroke-width":r.lineWidth||0},r.dashStyle&&(l.dashstyle=r.dashStyle)),this.legendLine=s.path([[`M`,0,e],[`L`,i,e]]).addClass(`highcharts-graph`).attr(l).add(c),u&&!1!==u.enabled&&i&&(r=Math.min(n(u.radius,o),o),this.symbol.indexOf(`url`)===0&&(u=t(u,{width:a,height:a}),r=0),this.legendSymbol=i=s.symbol(this.symbol,i/2-r,e-r,2*r,2*r,u).addClass(`highcharts-point`).add(c),i.isMarker=!0)},e.drawRectangle=function(e,t){var r=e.symbolHeight,i=e.options.squareSymbol;t.legendSymbol=this.chart.renderer.rect(i?(e.symbolWidth-r)/2:0,e.baseline-r+1,i?r:e.symbolWidth,r,n(e.options.symbolRadius,r/2)).addClass(`highcharts-point`).attr({zIndex:3}).add(t.legendGroup)}})(r||={}),r}),t(n,`Core/Series/SeriesDefaults.js`,[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:`#ffffff`,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:`#cccccc`,lineColor:`#000000`,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:`center`,defer:!0,formatter:function(){var e=this.series.chart.numberFormatter;return typeof this.y==`number`?e(this.y,-1):``},padding:5,style:{fontSize:`11px`,fontWeight:`bold`,color:`contrast`,textOutline:`1px contrast`},verticalAlign:`bottom`,x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:`x`}}),t(n,`Core/Series/Series.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/DefaultOptions.js`],n[`Core/Foundation.js`],n[`Core/Globals.js`],n[`Core/Legend/LegendSymbol.js`],n[`Core/Series/Point.js`],n[`Core/Series/SeriesDefaults.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s,c,l){var u=e.animObject,d=e.setAnimation,f=t.defaultOptions,p=n.registerEventOptions,m=r.hasTouch,h=r.svg,g=r.win,_=s.seriesTypes,v=l.addEvent,y=l.arrayMax,b=l.arrayMin,x=l.clamp,S=l.cleanRecursively,C=l.correctFloat,w=l.defined,T=l.erase,E=l.error,D=l.extend,O=l.find,k=l.fireEvent,A=l.getNestedProperty,j=l.isArray,M=l.isNumber,N=l.isString,P=l.merge,F=l.objectEach,I=l.pick,L=l.removeEvent,R=l.splat,z=l.syncTimeout;return e=function(){function e(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return e.prototype.init=function(e,t){k(this,`init`,{options:t});var n=this,r=e.series;this.eventsToUnbind=[],n.chart=e,n.options=n.setOptions(t),t=n.options,n.linkedSeries=[],n.bindAxes(),D(n,{name:t.name,state:``,visible:!1!==t.visible,selected:!0===t.selected}),p(this,t);var i=t.events;(i&&i.click||t.point&&t.point.events&&t.point.events.click||t.allowPointSelect)&&(e.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach(function(e){n[e+`Data`]||(n[e+`Data`]=[])}),n.isCartesian&&(e.hasCartesianSeries=!0);var a;r.length&&(a=r[r.length-1]),n._i=I(a&&a._i,-1)+1,n.opacity=n.options.opacity,e.orderSeries(this.insert(r)),t.dataSorting&&t.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(t.data,!1),k(this,`afterInit`)},e.prototype.is=function(e){return _[e]&&this instanceof _[e]},e.prototype.insert=function(e){var t=this.options.index,n;if(M(t)){for(n=e.length;n--;)if(t>=I(e[n].options.index,e[n]._i)){e.splice(n+1,0,this);break}n===-1&&e.unshift(this),n+=1}else e.push(this);return I(n,e.length-1)},e.prototype.bindAxes=function(){var e=this,t=e.options,n=e.chart,r;
4k(this,`bindAxes`,null,function(){(e.axisTypes||[]).forEach(function(i){var a=0;n[i].forEach(function(n){r=n.options,(t[i]===a&&!r.isInternal||t[i]!==void 0&&t[i]===r.id||t[i]===void 0&&r.index===0)&&(e.insert(n.series),e[i]=n,n.isDirty=!0),r.isInternal||a++}),e[i]||e.optionalAxis===i||E(18,!0,n)})}),k(this,`afterBindAxes`)},e.prototype.updateParallelArrays=function(e,t){var n=e.series,r=arguments,i=M(t)?function(r){var i=r===`y`&&n.toYData?n.toYData(e):e[r];n[r+`Data`][t]=i}:function(e){Array.prototype[t].apply(n[e+`Data`],Array.prototype.slice.call(r,2))};n.parallelArrays.forEach(i)},e.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&0<this.yData.length},e.prototype.autoIncrement=function(e){var t=this.options,n=t.pointIntervalUnit,r=t.relativeXValue,i=this.chart.time,a=this.xIncrement,o;return a=I(a,t.pointStart,0),this.pointInterval=o=I(this.pointInterval,t.pointInterval,1),r&&M(e)&&(o*=e),n&&(t=new i.Date(a),n===`day`?i.set(`Date`,t,i.get(`Date`,t)+o):n===`month`?i.set(`Month`,t,i.get(`Month`,t)+o):n===`year`&&i.set(`FullYear`,t,i.get(`FullYear`,t)+o),o=t.getTime()-a),r&&M(e)?a+o:(this.xIncrement=a+o,a)},e.prototype.setDataSortingOptions=function(){var e=this.options;D(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),w(e.pointRange)||(e.pointRange=1)},e.prototype.setOptions=function(e){var t=this.chart,n=t.options,r=n.plotOptions,i=t.userOptions||{};e=P(e),t=t.styledMode;var a={plotOptions:r,userOptions:e};k(this,`setOptions`,a);var o=a.plotOptions[this.type],s=i.plotOptions||{};return this.userOptions=a.userOptions,i=P(o,r.series,i.plotOptions&&i.plotOptions[this.type],e),this.tooltipOptions=P(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,n.tooltip.userOptions,r.series&&r.series.tooltip,r[this.type].tooltip,e.tooltip),this.stickyTracking=I(e.stickyTracking,s[this.type]&&s[this.type].stickyTracking,s.series&&s.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:i.stickyTracking),o.marker===null&&delete i.marker,this.zoneAxis=i.zoneAxis,r=this.zones=(i.zones||[]).slice(),!i.negativeColor&&!i.negativeFillColor||i.zones||(n={value:i[this.zoneAxis+`Threshold`]||i.threshold||0,className:`highcharts-negative`},t||(n.color=i.negativeColor,n.fillColor=i.negativeFillColor),r.push(n)),r.length&&w(r[r.length-1].value)&&r.push(t?{}:{color:this.color,fillColor:this.fillColor}),k(this,`afterSetOptions`,{options:i}),i},e.prototype.getName=function(){return I(this.options.name,`Series `+(this.index+1))},e.prototype.getCyclic=function(e,t,n){var r=this.chart,i=this.userOptions,a=e+`Index`,o=e+`Counter`,s=n?n.length:I(r.options.chart[e+`Count`],r[e+`Count`]);if(!t){var c=I(i[a],i[`_`+a]);w(c)||(r.series.length||(r[o]=0),i[`_`+a]=c=r[o]%s,r[o]+=1),n&&(t=n[c])}c!==void 0&&(this[a]=c),this[e]=t},e.prototype.getColor=function(){this.chart.styledMode?this.getCyclic(`color`):this.options.colorByPoint?this.color=`#cccccc`:this.getCyclic(`color`,this.options.color||f.plotOptions[this.type].color,this.chart.options.colors)},e.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},e.prototype.getSymbol=function(){this.getCyclic(`symbol`,this.options.marker.symbol,this.chart.options.symbols)},e.prototype.findPointIndex=function(e,t){var n=e.id,r=e.x,i=this.points,o=this.options.dataSorting,s,c;if(n)o=this.chart.get(n),o instanceof a&&(s=o);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(s=function(t){return!t.touched&&t.index===e.index},o&&o.matchByName?s=function(t){return!t.touched&&t.name===e.name}:this.options.relativeXValue&&(s=function(t){return!t.touched&&t.options.x===e.x}),s=O(i,s),!s))return;if(s){var l=s&&s.index;l!==void 0&&(c=!0)}return l===void 0&&M(r)&&(l=this.xData.indexOf(r,t)),l!==-1&&l!==void 0&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!c&&M(l)&&i[l]&&i[l].touched&&(l=void 0),l},e.prototype.updateData=function(e,t){var n=this.options,r=n.dataSorting,i=this.points,a=[],o=this.requireSorting,s=e.length===i.length,c,l,u,d=!0;if(this.xIncrement=null,e.forEach(function(e,t){var l=w(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},d=l.x;l.id||M(d)?(l=this.findPointIndex(l,u),l===-1||l===void 0?a.push(e):i[l]&&e!==n.data[l]?(i[l].update(e,!1,null,!1),i[l].touched=!0,o&&(u=l+1)):i[l]&&(i[l].touched=!0),(!s||t!==l||r&&r.enabled||this.hasDerivedData)&&(c=!0)):a.push(e)},this),c)for(e=i.length;e--;)(l=i[e])&&!l.touched&&l.remove&&l.remove(!1,t);else!s||r&&r.enabled?d=!1:(e.forEach(function(e,t){e!==i[t].y&&i[t].update&&i[t].update(e,!1,null,!1)}),a.length=0);
4return i.forEach(function(e){e&&(e.touched=!1)}),d?(a.forEach(function(e){this.addPoint(e,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=y(this.xData),this.autoIncrement()),!0):!1},e.prototype.setData=function(e,t,n,r){var i=this,a=i.points,o=a&&a.length||0,s=i.options,c=i.chart,l=s.dataSorting,u=i.xAxis,d=s.turboThreshold,f=this.xData,p=this.yData,m=i.pointArrayMap;m&&=m.length;var h=s.keys,g,_=0,v=1,y=null;e||=[];var b=e.length;if(t=I(t,!0),l&&l.enabled&&(e=this.sortData(e)),!1!==r&&b&&o&&!i.cropped&&!i.hasGroupedData&&i.visible&&!i.isSeriesBoosting&&(g=this.updateData(e,n)),!g){if(i.xIncrement=null,i.colorCounter=0,this.parallelArrays.forEach(function(e){i[e+`Data`].length=0}),d&&b>d){if(y=i.getFirstValidPoint(e),M(y))for(n=0;n<b;n++)f[n]=this.autoIncrement(),p[n]=e[n];else if(j(y)){if(m){if(y.length===m)for(n=0;n<b;n++)f[n]=this.autoIncrement(),p[n]=e[n];else for(n=0;n<b;n++)r=e[n],f[n]=r[0],p[n]=r.slice(1,m+1)}else if(h&&(_=h.indexOf(`x`),v=h.indexOf(`y`),_=0<=_?_:0,v=0<=v?v:1),y.length===1&&(v=0),_===v)for(n=0;n<b;n++)f[n]=this.autoIncrement(),p[n]=e[n][v];else for(n=0;n<b;n++)r=e[n],f[n]=r[_],p[n]=r[v]}else E(12,!1,c)}else for(n=0;n<b;n++)e[n]!==void 0&&(r={series:i},i.pointClass.prototype.applyOptions.apply(r,[e[n]]),i.updateParallelArrays(r,n));for(p&&N(p[0])&&E(14,!0,c),i.data=[],i.options.data=i.userOptions.data=e,n=o;n--;)a[n]&&a[n].destroy&&a[n].destroy();u&&(u.minRange=u.userMinRange),i.isDirty=c.isDirtyBox=!0,i.isDirtyData=!!a,n=!1}s.legendType===`point`&&(this.processData(),this.generatePoints()),t&&c.redraw(n)},e.prototype.sortData=function(e){var t=this,n=t.options.dataSorting.sortKey||`y`,r=function(e,t){return w(t)&&e.pointClass.prototype.optionsToObject.call({series:e},t)||{}};return e.forEach(function(n,i){e[i]=r(t,n),e[i].index=i},this),e.concat().sort(function(e,t){return e=A(n,e),t=A(n,t),t<e?-1:+(t>e)}).forEach(function(e,t){e.x=t},this),t.linkedSeries&&t.linkedSeries.forEach(function(t){var n=t.options,i=n.data;n.dataSorting&&n.dataSorting.enabled||!i||(i.forEach(function(n,a){i[a]=r(t,n),e[a]&&(i[a].x=e[a].x,i[a].index=a)}),t.setData(i,!1))}),e},e.prototype.getProcessedData=function(e){var t=this.xAxis,n=this.options,r=n.cropThreshold,i=e||this.getExtremesFromAll||n.getExtremesFromAll,a=this.isCartesian;e=t&&t.val2lin,n=!(!t||!t.logarithmic);var o=0,s=this.xData,c=this.yData,l=this.requireSorting,u=!1,d=s.length;if(t){u=t.getExtremes();var f=u.min,p=u.max;u=t.categories&&!t.names.length}if(a&&this.sorted&&!i&&(!r||d>r||this.forceCrop)){if(s[d-1]<f||s[0]>p)s=[],c=[];else if(this.yData&&(s[0]<f||s[d-1]>p)){var m=this.cropData(this.xData,this.yData,f,p);s=m.xData,c=m.yData,o=m.start,m=!0}}for(r=s.length||1;--r;)if(t=n?e(s[r])-e(s[r-1]):s[r]-s[r-1],0<t&&(h===void 0||t<h))var h=t;else 0>t&&l&&!u&&(E(15,!1,this.chart),l=!1);return{xData:s,yData:c,cropped:m,cropStart:o,closestPointRange:h}},e.prototype.processData=function(e){var t=this.xAxis;if(this.isCartesian&&!this.isDirty&&!t.isDirty&&!this.yAxis.isDirty&&!e)return!1;e=this.getProcessedData(),this.cropped=e.cropped,this.cropStart=e.cropStart,this.processedXData=e.xData,this.processedYData=e.yData,this.closestPointRange=this.basePointRange=e.closestPointRange,k(this,`afterProcessData`)},e.prototype.cropData=function(e,t,n,r,i){var a=e.length,o,s=0,c=a;for(i=I(i,this.cropShoulder),o=0;o<a;o++)if(e[o]>=n){s=Math.max(0,o-i);break}for(n=o;n<a;n++)if(e[n]>r){c=n+i;break}return{xData:e.slice(s,c),yData:t.slice(s,c),start:s,end:c}},e.prototype.generatePoints=function(){var e=this.options,t=e.data,n=this.processedXData,r=this.processedYData,i=this.pointClass,a=n.length,o=this.cropStart||0,s=this.hasGroupedData,c=e.keys,l=[];e=e.dataGrouping&&e.dataGrouping.groupAll?o:0;var u,d,f=this.data;if(!f&&!s){var p=[];p.length=t.length,f=this.data=p}for(c&&s&&(this.options.keys=!1),d=0;d<a;d++){if(p=o+d,s){var m=new i().init(this,[n[d]].concat(R(r[d])));m.dataGroup=this.groupMap[e+d],m.dataGroup.options&&(m.options=m.dataGroup.options,D(m,m.dataGroup.options),delete m.dataLabels)}else(m=f[p])||t[p]===void 0||(f[p]=m=new i().init(this,t[p],n[d]));m&&(m.index=s?e+d:p,l[d]=m)}if(this.options.keys=c,f&&(a!==(u=f.length)||s))for(d=0;d<u;d++)d!==o||s||(d+=a),f[d]&&(f[d].destroyElements(),f[d].plotX=void 0);this.data=f,this.points=l,k(this,`afterGeneratePoints`)},e.prototype.getXExtremes=function(e){return{min:b(e),max:y(e)}},e.prototype.getExtremes=function(e,t){var n=this.xAxis,r=this.yAxis,i=this.processedXData||this.xData,a=[],o=this.requireSorting?this.cropShoulder:0;r=r?r.positiveValuesOnly:!1;var s,c=0,l=0,u=0;e=e||this.stackedYData||this.processedYData||[];var d=e.length;if(n){var f=n.getExtremes();c=f.min,l=f.max}for(s=0;s<d;s++){var p=i[s];f=e[s];var m=(M(f)||j(f))&&(f.length||0<f||!r);if(p=t||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!n||(i[s+o]||p)>=c&&(i[s-o]||p)<=l,m&&p){if(m=f.length)for(;m--;)M(f[m])&&(a[u++]=f[m]);else a[u++]=f}}return e={activeYData:a,dataMin:b(a),dataMax:y(a)}
4,k(this,`afterGetExtremes`,{dataExtremes:e}),e},e.prototype.applyExtremes=function(){var e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e},e.prototype.getFirstValidPoint=function(e){for(var t=e.length,n=0,r=null;r===null&&n<t;)r=e[n],n++;return r},e.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var e=this.options,t=e.stacking,n=this.xAxis,r=n.categories,i=this.enabledDataSorting,a=this.yAxis,o=this.points,s=o.length,c=this.pointPlacementToXValue(),l=!!c,u=e.threshold,d=e.startFromThreshold?u:0,f=this.zoneAxis||`y`,p,m,h=Number.MAX_VALUE;for(p=0;p<s;p++){var g=o[p],_=g.x,v=void 0,y=void 0,b=g.y,S=g.low,T=t&&a.stacking&&a.stacking.stacks[(this.negStacks&&b<(d?0:u)?`-`:``)+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(b)||n.positiveValuesOnly&&!n.validatePositiveValue(_))&&(g.isNull=!0),g.plotX=m=C(x(n.translate(_,0,0,0,1,c,this.type===`flags`),-1e5,1e5)),t&&this.visible&&T&&T[_]){var E=this.getStackIndicator(E,_,this.index);g.isNull||(v=T[_],y=v.points[E.key])}if(j(y)&&(S=y[0],b=y[1],S===d&&E.key===T[_].base&&(S=I(M(u)&&u,a.min)),a.positiveValuesOnly&&0>=S&&(S=null),g.total=g.stackTotal=v.total,g.percentage=v.total&&g.y/v.total*100,g.stackY=b,this.irregularWidths||v.setOffset(this.pointXOffset||0,this.barW||0)),g.yBottom=w(S)?x(a.translate(S,0,1,0,1),-1e5,1e5):null,this.dataModify&&(b=this.dataModify.modifyValue(b,p)),g.plotY=void 0,M(b)&&(v=a.translate(b,!1,!0,!1,!0),v!==void 0&&(g.plotY=x(v,-1e5,1e5))),g.isInside=this.isPointInside(g),g.clientX=l?C(n.translate(_,0,0,0,1,c)):m,g.negative=g[f]<(e[f+`Threshold`]||u||0),g.category=r&&r[g.x]!==void 0?r[g.x]:g.x,!g.isNull&&!1!==g.visible){D!==void 0&&(h=Math.min(h,Math.abs(m-D)));var D=m}g.zone=this.zones.length?g.getZone():void 0,!g.graphic&&this.group&&i&&(g.isNew=!0)}this.closestPointRangePx=h,k(this,`afterTranslate`)},e.prototype.getValidPoints=function(e,t,n){var r=this.chart;return(e||this.points||[]).filter(function(e){return t&&!r.isInsidePlot(e.plotX,e.plotY,{inverted:r.inverted})?!1:!1!==e.visible&&(n||!e.isNull)})},e.prototype.getClipBox=function(){var e=this.chart,t=this.xAxis,n=this.yAxis,r=P(e.clipBox);return t&&t.len!==e.plotSizeX&&(r.width=t.len),n&&n.len!==e.plotSizeY&&(r.height=n.len),r},e.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+`,`+(this.options.yAxis||0)},e.prototype.setClip=function(){var e=this.chart,t=this.group,n=this.markerGroup,r=e.sharedClips;e=e.renderer;var i=this.getClipBox(),a=this.getSharedClipKey(),o=r[a];o?o.animate(i):r[a]=o=e.clipRect(i),t&&t.clip(!1===this.options.clip?void 0:o),n&&n.clip()},e.prototype.animate=function(e){var t=this.chart,n=this.group,r=this.markerGroup,i=t.inverted,a=u(this.options.animation),o=[this.getSharedClipKey(),a.duration,a.easing,a.defer].join(),s=t.sharedClips[o],c=t.sharedClips[o+`m`];if(e&&n)a=this.getClipBox(),s?s.attr(`height`,a.height):(a.width=0,i&&(a.x=t.plotHeight),s=t.renderer.clipRect(a),t.sharedClips[o]=s,c=t.renderer.clipRect({x:i?(t.plotSizeX||0)+99:-99,y:i?-t.plotLeft:-t.plotTop,width:99,height:i?t.chartWidth:t.chartHeight}),t.sharedClips[o+`m`]=c),n.clip(s),r&&r.clip(c);else if(s&&!s.hasClass(`highcharts-animating`)){t=this.getClipBox();var l=a.step;r&&r.element.childNodes.length&&(a.step=function(e,t){l&&l.apply(t,arguments),c&&c.element&&c.attr(t.prop,t.prop===`width`?e+99:e)}),s.addClass(`highcharts-animating`).animate(t,a)}},e.prototype.afterAnimate=function(){var e=this;this.setClip(),F(this.chart.sharedClips,function(t,n,r){t&&!e.chart.container.querySelector(`[clip-path="url(#`+t.id+`)"]`)&&(t.destroy(),delete r[n])}),this.finishedAnimating=!0,k(this,`afterAnimate`)},e.prototype.drawPoints=function(){var e=this.points,t=this.chart,n=this.options.marker,r=this[this.specialGroup]||this.markerGroup,i=this.xAxis,a=I(n.enabled,!i||i.isRadial?!0:null,this.closestPointRangePx>=n.enabledThreshold*n.radius),o,s;if(!1!==n.enabled||this._hasPointMarkers)for(o=0;o<e.length;o++){var c=e[o],l=(s=c.graphic)?`animate`:`attr`,u=c.marker||{},d=!!c.marker;if((a&&u.enabled===void 0||u.enabled)&&!c.isNull&&!1!==c.visible){var f=I(u.symbol,this.symbol,`rect`),p=this.markerAttribs(c,c.selected&&`select`);this.enabledDataSorting&&(c.startXPos=i.reversed?-(p.width||0):i.width);var m=!1!==c.isInside;s?s[m?`show`:`hide`](m).animate(p):m&&(0<(p.width||0)||c.hasImage)&&(c.graphic=s=t.renderer.symbol(f,p.x,p.y,p.width,p.height,d?u:n).add(r),this.enabledDataSorting&&t.hasRendered&&(s.attr({x:c.startXPos}),l=`animate`)),s&&l===`animate`&&s[m?`show`:`hide`](m).animate(p),s&&!t.styledMode&&s[l](this.pointAttribs(c,c.selected&&`select`)),s&&s.addClass(c.getClassName(),!0)}else s&&(c.graphic=s.destroy())}},e.prototype.markerAttribs=function(e,t){var n=this.options,r=n.marker,i=e.marker||{},a=i.symbol||r.symbol,o=I(i.radius,r.radius);
4return t&&(r=r.states[t],t=i.states&&i.states[t],o=I(t&&t.radius,r&&r.radius,o+(r&&r.radiusPlus||0))),e.hasImage=a&&a.indexOf(`url`)===0,e.hasImage&&(o=0),e={x:n.crisp?Math.floor(e.plotX-o):e.plotX-o,y:e.plotY-o},o&&(e.width=e.height=2*o),e},e.prototype.pointAttribs=function(e,t){var n=this.options.marker,r=e&&e.options,i=r&&r.marker||{},a=r&&r.color,o=e&&e.color,s=e&&e.zone&&e.zone.color,c=this.color;return e=I(i.lineWidth,n.lineWidth),r=1,c=a||s||o||c,a=i.fillColor||n.fillColor||c,o=i.lineColor||n.lineColor||c,t||=`normal`,n=n.states[t]||{},t=i.states&&i.states[t]||{},e=I(t.lineWidth,n.lineWidth,e+I(t.lineWidthPlus,n.lineWidthPlus,0)),a=t.fillColor||n.fillColor||a,o=t.lineColor||n.lineColor||o,r=I(t.opacity,n.opacity,r),{stroke:o,"stroke-width":e,fill:a,opacity:r}},e.prototype.destroy=function(e){var t=this,n=t.chart,r=/AppleWebKit\/533/.test(g.navigator.userAgent),i=t.data||[],a,o,s,u;for(k(t,`destroy`),this.removeEvents(e),(t.axisTypes||[]).forEach(function(e){(u=t[e])&&u.series&&(T(u.series,t),u.isDirty=u.forceRedraw=!0)}),t.legendItem&&t.chart.legend.destroyItem(t),o=i.length;o--;)(s=i[o])&&s.destroy&&s.destroy();t.clips&&t.clips.forEach(function(e){return e.destroy()}),l.clearTimeout(t.animationTimeout),F(t,function(e,t){e instanceof c&&!e.survive&&(a=r&&t===`group`?`hide`:`destroy`,e[a]())}),n.hoverSeries===t&&(n.hoverSeries=void 0),T(n.series,t),n.orderSeries(),F(t,function(n,r){e&&r===`hcEvents`||delete t[r]})},e.prototype.applyZones=function(){var e=this,t=this.chart,n=t.renderer,r=this.zones,i=this.clips||[],a=this.graph,o=this.area,s=Math.max(t.chartWidth,t.chartHeight),c=this[(this.zoneAxis||`y`)+`Axis`],l=t.inverted,u,d,f,p,m,h,g,_,v=!1;if(r.length&&(a||o)&&c&&c.min!==void 0){var y=c.reversed,b=c.horiz;a&&!this.showLine&&a.hide(),o&&o.hide();var S=c.getExtremes();r.forEach(function(r,C){u=y?b?t.plotWidth:0:b?0:c.toPixels(S.min)||0,u=x(I(d,u),0,s),d=x(Math.round(c.toPixels(I(r.value,S.max),!0)||0),0,s),v&&(u=d=c.toPixels(S.max)),p=Math.abs(u-d),m=Math.min(u,d),h=Math.max(u,d),c.isXAxis?(f={x:l?h:m,y:0,width:p,height:s},b||(f.x=t.plotHeight-f.x)):(f={x:0,y:l?h:m,width:s,height:p},b&&(f.y=t.plotWidth-f.y)),l&&n.isVML&&(f=c.isXAxis?{x:0,y:y?m:h,height:f.width,width:t.chartWidth}:{x:f.y-t.plotLeft-t.spacingBox.x,y:0,width:f.height,height:t.chartHeight}),i[C]?i[C].animate(f):i[C]=n.clipRect(f),g=e[`zone-area-`+C],_=e[`zone-graph-`+C],a&&_&&_.clip(i[C]),o&&g&&g.clip(i[C]),v=r.value>S.max,e.resetZones&&d===0&&(d=void 0)}),this.clips=i}else e.visible&&(a&&a.show(!0),o&&o.show(!0))},e.prototype.invertGroups=function(e){function t(){[`group`,`markerGroup`].forEach(function(t){n[t]&&(r.renderer.isVML&&n[t].attr({width:n.yAxis.len,height:n.xAxis.len}),n[t].width=n.yAxis.len,n[t].height=n.xAxis.len,n[t].invert(!n.isRadialSeries&&e))})}var n=this,r=n.chart;n.xAxis&&(n.eventsToUnbind.push(v(r,`resize`,t)),t(),n.invertGroups=t)},e.prototype.plotGroup=function(e,t,n,r,i){var a=this[e],o=!a;return n={visibility:n,zIndex:r||.1},this.opacity===void 0||this.chart.styledMode||this.state===`inactive`||(n.opacity=this.opacity),o&&(this[e]=a=this.chart.renderer.g().add(i)),a.addClass(`highcharts-`+t+` highcharts-series-`+this.index+` highcharts-`+this.type+`-series `+(w(this.colorIndex)?`highcharts-color-`+this.colorIndex+` `:``)+(this.options.className||``)+(a.hasClass(`highcharts-tracker`)?` highcharts-tracker`:``),!0),a.attr(n)[o?`attr`:`animate`](this.getPlotBox()),a},e.prototype.getPlotBox=function(){var e=this.chart,t=this.xAxis,n=this.yAxis;return e.inverted&&(t=n,n=this.xAxis),{translateX:t?t.left:e.plotLeft,translateY:n?n.top:e.plotTop,scaleX:1,scaleY:1}},e.prototype.removeEvents=function(e){e||L(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(e){e()}),this.eventsToUnbind.length=0)},e.prototype.render=function(){var e=this,t=e.chart,n=e.options,r=u(n.animation),i=e.visible?`inherit`:`hidden`,a=n.zIndex,o=e.hasRendered,s=t.seriesGroup,c=t.inverted;t=!e.finishedAnimating&&t.renderer.isSVG?r.duration:0,k(this,`render`);var l=e.plotGroup(`group`,`series`,i,a,s);e.markerGroup=e.plotGroup(`markerGroup`,`markers`,i,a,s),!1!==n.clip&&e.setClip(),e.animate&&t&&e.animate(!0),l.inverted=I(e.invert
4ible,e.isCartesian)?c:!1,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels&&e.drawDataLabels(),e.redrawPoints&&e.redrawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(c),e.animate&&t&&e.animate(),o||(t&&r.defer&&(t+=r.defer),e.animationTimeout=z(function(){e.afterAnimate()},t||0)),e.isDirty=!1,e.hasRendered=!0,k(e,`afterRender`)},e.prototype.redraw=function(){var e=this.chart,t=this.isDirty||this.isDirtyData,n=this.group,r=this.xAxis,i=this.yAxis;n&&(e.inverted&&n.attr({width:e.plotWidth,height:e.plotHeight}),n.animate({translateX:I(r&&r.left,e.plotLeft),translateY:I(i&&i.top,e.plotTop)})),this.translate(),this.render(),t&&delete this.kdTree},e.prototype.searchPoint=function(e,t){var n=this.xAxis,r=this.yAxis,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:i?r.len-e.chartX+r.pos:e.chartY-r.pos},t,e)},e.prototype.buildKDTree=function(e){function t(e,r,i){var a=e&&e.length;if(a){var o=n.kdAxisArray[r%i];return e.sort(function(e,t){return e[o]-t[o]}),a=Math.floor(a/2),{point:e[a],left:t(e.slice(0,a),r+1,i),right:t(e.slice(a+1),r+1,i)}}}this.buildingKdTree=!0;var n=this,r=-1<n.options.findNearestPointBy.indexOf(`y`)?2:1;delete n.kdTree,z(function(){n.kdTree=t(n.getValidPoints(null,!n.directTouch),r,r),n.buildingKdTree=!1},n.options.kdNow||e&&e.type===`touchstart`?0:1)},e.prototype.searchKDTree=function(e,t,n){function r(e,t,n,c){var l=t.point,u=i.kdAxisArray[n%c],d=l,f=w(e[a])&&w(l[a])?(e[a]-l[a])**2:null,p=w(e[o])&&w(l[o])?(e[o]-l[o])**2:null;return p=(f||0)+(p||0),l.dist=w(p)?Math.sqrt(p):Number.MAX_VALUE,l.distX=w(f)?Math.sqrt(f):Number.MAX_VALUE,u=e[u]-l[u],p=0>u?`left`:`right`,f=0>u?`right`:`left`,t[p]&&(p=r(e,t[p],n+1,c),d=p[s]<d[s]?p:l),t[f]&&Math.sqrt(u*u)<d[s]&&(e=r(e,t[f],n+1,c),d=e[s]<d[s]?e:d),d}var i=this,a=this.kdAxisArray[0],o=this.kdAxisArray[1],s=t?`distX`:`dist`;if(t=-1<i.options.findNearestPointBy.indexOf(`y`)?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return r(e,this.kdTree,t,t)},e.prototype.pointPlacementToXValue=function(){var e=this.options,t=e.pointRange,n=this.xAxis;return e=e.pointPlacement,e===`between`&&(e=n.reversed?-.5:.5),M(e)?e*(t||n.pointRange):0},e.prototype.isPointInside=function(e){var t=this.chart,n=this.xAxis,r=this.yAxis;return e.plotY!==void 0&&e.plotX!==void 0&&0<=e.plotY&&e.plotY<=(r?r.len:t.plotHeight)&&0<=e.plotX&&e.plotX<=(n?n.len:t.plotWidth)},e.prototype.drawTracker=function(){var e=this,t=e.options,n=t.trackByArea,r=[].concat(n?e.areaPath:e.graphPath),i=e.chart,a=i.pointer,o=i.renderer,s=i.options.tooltip.snap,c=e.tracker,l=function(t){i.hoverSeries!==e&&e.onMouseOver()},u=`rgba(192,192,192,`+(h?1e-4:.002)+`)`;c?c.attr({d:r}):e.graph&&(e.tracker=o.path(r).attr({visibility:e.visible?`visible`:`hidden`,zIndex:2}).addClass(n?`highcharts-tracker-area`:`highcharts-tracker-line`).add(e.group),i.styledMode||e.tracker.attr({"stroke-linecap":`round`,"stroke-linejoin":`round`,stroke:u,fill:n?u:`none`,"stroke-width":e.graph.strokeWidth()+(n?0:2*s)}),[e.tracker,e.markerGroup,e.dataLabelsGroup].forEach(function(e){e&&(e.addClass(`highcharts-tracker`).on(`mouseover`,l).on(`mouseout`,function(e){a.onTrackerMouseOut(e)}),t.cursor&&!i.styledMode&&e.css({cursor:t.cursor}),m)&&e.on(`touchstart`,l)})),k(this,`afterDrawTracker`)},e.prototype.addPoint=function(e,t,n,r,i){var a=this.options,o=this.data,s=this.chart,c=this.xAxis;c=c&&c.hasNames&&c.names;var l=a.data,u=this.xData,d;t=I(t,!0);var f={series:this};this.pointClass.prototype.applyOptions.apply(f,[e]);var p=f.x,m=u.length;if(this.requireSorting&&p<u[m-1])for(d=!0;m&&u[m-1]>p;)m--;this.updateParallelArrays(f,`splice`,m,0,0),this.updateParallelArrays(f,m),c&&f.name&&(c[p]=f.name),l.splice(m,0,e),d&&(this.data.splice(m,0,null),this.processData()),a.legendType===`point`&&this.generatePoints(),n&&(o[0]&&o[0].remove?o[0].remove(!1):(o.shift(),this.updateParallelArrays(f,`shift`),l.shift())),!1!==i&&k(this,`addPoint`,{point:f}),this.isDirtyData=this.isDirty=!0,t&&s.redraw(r)},e.prototype.removePoint=function(e,t,n){var r=this,i=r.data,a=i[e],o=r.points,s=r.chart,c=function(){o&&o.length===i.length&&o.splice(e,1),i.splice(e,1),r.options.data.splice(e,1),r.updateParallelArrays(a||{series:r},`splice`,e,1),a&&a.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&s.redraw()};d(n,s),t=I(t,!0),a?a.firePointEvent(`remove`,null,c):c()},e.prototype.remove=function(e,t,n,r){function i(){a.destroy(r),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),I(e,!0)&&o.redraw(t)}var a=this,o=a.chart;!1===n?i():k(a,`remove`,null,i)},e.prototype.update=function(e,t){e=S(e,this.userOptions),k(this,`update`,{options:e});var n=this,r=n.chart,i=n.userOptions,a=n.initialType||n.type,o=r.options.plotOptions,s=_[a].prototype,c=n.finishedAnimating&&{animation:!1},l={},u,d=[`eventOptions`,`navigatorSeries`,`baseSeries`],f=e.type||i.type||r.options.chart.type,p=!(this.hasDerivedData||f&&f!==this.type||e.pointStart!==void 0||e.pointInterval!==void 0||e.relativeXValue!==void 0||n.hasOptionChanged(`dataGrouping`)||n.hasOptionChanged(`pointStart`)||n.hasOptionChanged(`pointInterval`)||n.hasOptionChanged(`pointIntervalUnit`)||n.hasOptionChanged(`keys`));if(f||=a,p&&(d.push(`data`,`isDirtyData`,`points`,`processedXData`,`processedYData`,`xIncrement`,`cropped`,`_hasPointMarkers`,`_hasPointLabels`,`clips`,`nodes`,`layout`,`mapMap`,`mapData`,`minY`,`maxY`,`minX`,`maxX`),!1!==e.visible&&d.push(`area`,`graph`),n.parallelArrays.forEach(function(e){d.push(e+`Data`)}),e.data&&(e.dataSorting&&D(n.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=P(i,c,{index:i.index===void 0?n.index:i.index,pointStart:I(o&&o.series&&o.series.pointStart,i.pointStart,n.xData[0])},!p&&{data:n.options.data},e),p&&e.data&&(e.data=n.options.data),d=[`group`,`markerGroup`,`dataLabelsGroup`,`transformGroup`].concat(d),d.forEach(function(e){d[e]=n[e],delete n[e]}),o=!1,_[f]){if(o=f!==n.type,n.remove(!1,!1,!1,!0),o){if(Object.setPrototypeOf)Object.
4setPrototypeOf(n,_[f].prototype);else{for(u in c=Object.hasOwnProperty.call(n,`hcEvents`)&&n.hcEvents,s)n[u]=void 0;D(n,_[f].prototype),c?n.hcEvents=c:delete n.hcEvents}}}else E(17,!0,r,{missingModuleFor:f});if(d.forEach(function(e){n[e]=d[e]}),n.init(r,e),p&&this.points){var m=n.options;!1===m.visible?(l.graphic=1,l.dataLabel=1):n._hasPointLabels||(e=m.marker,s=m.dataLabels,!e||!1!==e.enabled&&(i.marker&&i.marker.symbol)===e.symbol||(l.graphic=1),s&&!1===s.enabled&&(l.dataLabel=1)),this.points.forEach(function(e){e&&e.series&&(e.resolveColor(),Object.keys(l).length&&e.destroyElements(l),!1===m.showInLegend&&e.legendItem&&r.legend.destroyItem(e))},this)}n.initialType=a,r.linkSeries(),o&&n.linkedSeries.length&&(n.isDirtyData=!0),k(this,`afterUpdate`),I(t,!0)&&r.redraw(p?void 0:!1)},e.prototype.setName=function(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0},e.prototype.hasOptionChanged=function(e){var t=this.options[e],n=this.chart.options.plotOptions,r=this.userOptions[e];return r?t!==r:t!==I(n&&n[this.type]&&n[this.type][e],n&&n.series&&n.series[e],t)},e.prototype.onMouseOver=function(){var e=this.chart,t=e.hoverSeries;e.pointer.setHoverChartIndex(),t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&k(this,`mouseOver`),this.setState(`hover`),e.hoverSeries=this},e.prototype.onMouseOut=function(){var e=this.options,t=this.chart,n=t.tooltip,r=t.hoverPoint;t.hoverSeries=null,r&&r.onMouseOut(),this&&e.events.mouseOut&&k(this,`mouseOut`),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),t.series.forEach(function(e){e.setState(``,!0)})},e.prototype.setState=function(e,t){var n=this,r=n.options,i=n.graph,a=r.inactiveOtherPoints,o=r.states,s=I(o[e||`normal`]&&o[e||`normal`].animation,n.chart.options.chart.animation),c=r.lineWidth,l=0,u=r.opacity;if(e||=``,n.state!==e&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach(function(t){t&&(n.state&&t.removeClass(`highcharts-series-`+n.state),e&&t.addClass(`highcharts-series-`+e))}),n.state=e,!n.chart.styledMode)){if(o[e]&&!1===o[e].enabled)return;if(e&&(c=o[e].lineWidth||c+(o[e].lineWidthPlus||0),u=I(o[e].opacity,u)),i&&!i.dashstyle)for(r={"stroke-width":c},i.animate(r,s);n[`zone-graph-`+l];)n[`zone-graph-`+l].animate(r,s),l+=1;a||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach(function(e){e&&e.animate({opacity:u},s)})}t&&a&&n.points&&n.setAllPointsToState(e||void 0)},e.prototype.setAllPointsToState=function(e){this.points.forEach(function(t){t.setState&&t.setState(e)})},e.prototype.setVisible=function(e,t){var n=this,r=n.chart,i=n.legendItem,a=r.options.chart.ignoreHiddenSeries,o=n.visible,s=(n.visible=e=n.options.visible=n.userOptions.visible=e===void 0?!o:e)?`show`:`hide`;[`group`,`dataLabelsGroup`,`markerGroup`,`tracker`,`tt`].forEach(function(e){n[e]&&n[e][s]()}),(r.hoverSeries===n||(r.hoverPoint&&r.hoverPoint.series)===n)&&n.onMouseOut(),i&&r.legend.colorizeItem(n,e),n.isDirty=!0,n.options.stacking&&r.series.forEach(function(e){e.options.stacking&&e.visible&&(e.isDirty=!0)}),n.linkedSeries.forEach(function(t){t.setVisible(e,!1)}),a&&(r.isDirtyBox=!0),k(n,s),!1!==t&&r.redraw()},e.prototype.show=function(){this.setVisible(!0)},e.prototype.hide=function(){this.setVisible(!1)},e.prototype.select=function(e){this.selected=e=this.options.selected=e===void 0?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),k(this,e?`select`:`unselect`)},e.prototype.shouldShowTooltip=function(e,t,n){return n===void 0&&(n={}),n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,n)},e.defaultOptions=o,e}(),D(e.prototype,{axisTypes:[`xAxis`,`yAxis`],coll:`series`,colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:i.drawLineMarker,isCartesian:!0,kdAxisArray:[`clientX`,`plotY`],parallelArrays:[`x`,`y`],pointClass:a,requireSorting:!0,sorted:!0}),s.series=e,e}),t(n,`Extensions/ScrollablePlotArea.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Axis/Axis.js`],n[`Core/Chart/Chart.js`],n[`Core/Series/Series.js`],n[`Core/Renderer/RendererRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a){var o=e.stop,s=a.addEvent,c=a.createElement,l=a.merge,u=a.pick;s(n,`afterSetChartSize`,function(e){var n=this.options.chart.scrollablePlotArea,r=n&&n.minWidth;
4if(n&&=n.minHeight,!this.renderer.forExport){if(r){if(this.scrollablePixelsX=r=Math.max(0,r-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.width=this.plotWidth+=r,this.inverted?this.clipBox.height+=r:this.clipBox.width+=r;var i={1:{name:`right`,value:r}}}}else n&&(this.scrollablePixelsY=r=Math.max(0,n-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=r,this.inverted?this.clipBox.width+=r:this.clipBox.height+=r,i={2:{name:`bottom`,value:r}});i&&!e.skipAxes&&this.axes.forEach(function(e){i[e.side]?e.getPlotLinePath=function(){var n=i[e.side].name,r=this[n];this[n]=r-i[e.side].value;var a=t.prototype.getPlotLinePath.apply(this,arguments);return this[n]=r,a}:(e.setAxisSize(),e.setAxisTranslation())})}}),s(n,`render`,function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),n.prototype.setUpScrolling=function(){var e=this,t={WebkitOverflowScrolling:`touch`,overflowX:`hidden`,overflowY:`hidden`};this.scrollablePixelsX&&(t.overflowX=`auto`),this.scrollablePixelsY&&(t.overflowY=`auto`),this.scrollingParent=c(`div`,{className:`highcharts-scrolling-parent`},{position:`relative`},this.renderTo),this.scrollingContainer=c(`div`,{className:`highcharts-scrolling`},t,this.scrollingParent),s(this.scrollingContainer,`scroll`,function(){e.pointer&&delete e.pointer.chartPosition}),this.innerContainer=c(`div`,{className:`highcharts-inner-container`},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var e=this.container,t=this.fixedRenderer,n=`.highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title`.split(` `),r;this.scrollablePixelsX&&!this.inverted?r=`.highcharts-yaxis`:this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?r=`.highcharts-xaxis`:this.scrollablePixelsY&&this.inverted&&(r=`.highcharts-yaxis`),r&&n.push(r+`:not(.highcharts-radial-axis)`,r+`-labels:not(.highcharts-radial-axis-labels)`),n.forEach(function(n){[].forEach.call(e.querySelectorAll(n),function(e){(e.namespaceURI===t.SVG_NS?t.box:t.box.parentNode).appendChild(e),e.style.pointerEvents=`auto`})})},n.prototype.applyFixed=function(){var e=!this.fixedDiv,t=this.options.chart,n=t.scrollablePlotArea,r=i.getRendererType();e?(this.fixedDiv=c(`div`,{className:`highcharts-fixed`},{position:`absolute`,overflow:`hidden`,pointerEvents:`none`,zIndex:(t.style&&t.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow=`visible`,this.fixedRenderer=t=new r(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=t.path().attr({fill:this.options.chart.backgroundColor||`#fff`,"fill-opacity":u(n.opacity,.85),zIndex:-1}).addClass(`highcharts-scrollable-mask`).add(),s(this,`afterShowResetZoom`,this.moveFixedElements),s(this,`afterDrilldown`,this.moveFixedElements),s(this,`afterLayOutTitles`,this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||e)&&(this.scrollableDirty=!1,this.moveFixedElements()),t=this.chartWidth+(this.scrollablePixelsX||0),r=this.chartHeight+(this.scrollablePixelsY||0),o(this.container),this.container.style.width=t+`px`,this.container.style.height=r+`px`,this.renderer.boxWrapper.attr({width:t,height:r,viewBox:[0,0,t,r].join(` `)}),this.chartBackground.attr({width:t,height:r}),this.scrollingContainer.style.height=this.chartHeight+`px`,e&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),r=this.axisOffset,e=this.plotTop-r[0]-1,n=this.plotLeft-r[3]-1,t=this.plotTop+this.plotHeight+r[2]+1,r=this.plotLeft+this.plotWidth+r[1]+1;var a=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);e=this.scrollablePixelsX?[[`M`,0,e],[`L`,this.plotLeft-1,e],[`L`,this.plotLeft-1,t],[`L`,0,t],[`Z`],[`M`,a,e],[`L`,this.chartWidth,e],[`L`,this.chartWidth,t],[`L`,a,t],[`Z`]]:this.scrollablePixelsY?[[`M`,n,0],[`L`,n,this.plotTop-1],[`L`,r,this.plotTop-1],[`L`,r,0],[`Z`],[`M`,n,l],[`L`,n,this.chartHe
4ight],[`L`,r,this.chartHeight],[`L`,r,l],[`Z`]]:[[`M`,0,0]],this.redrawTrigger!==`adjustHeight`&&this.scrollableMask.attr({d:e})},s(t,`afterInit`,function(){this.chart.scrollableDirty=!0}),s(r,`show`,function(){this.chart.scrollableDirty=!0})}),t(n,`Core/Axis/StackingAxis.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Axis/Axis.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=e.getDeferredAnimation,i=n.addEvent,a=n.destroyObjectProperties,o=n.fireEvent,s=n.isNumber,c=n.objectEach,l;return(function(e){function t(){var e=this.stacking;if(e){var t=e.stacks;c(t,function(e,n){a(e),t[n]=null}),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function n(){this.stacking||=new u(this)}var l=[];e.compose=function(e){return l.indexOf(e)===-1&&(l.push(e),i(e,`init`,n),i(e,`destroy`,t)),e};var u=function(){function e(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}return e.prototype.buildStacks=function(){var e=this.axis,t=e.series,n=e.options.reversedStacks,r=t.length,i;if(!e.isXAxis){for(this.usePercentage=!1,i=r;i--;){var a=t[n?i:r-i-1];a.setStackedPoints(),a.setGroupedPoints()}for(i=0;i<r;i++)t[i].modifyStacks();o(e,`afterBuildStacks`)}},e.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var e=this.stacks=this.oldStacks;c(e,function(e){c(e,function(e){e.cumulative=e.total})})}},e.prototype.resetStacks=function(){var e=this,t=e.stacks;e.axis.isXAxis||c(t,function(t){c(t,function(n,r){s(n.touched)&&n.touched<e.stacksTouched?(n.destroy(),delete t[r]):(n.total=null,n.cumulative=null)})})},e.prototype.renderStackTotals=function(){var e=this.axis,t=e.chart,n=t.renderer,i=this.stacks;e=r(t,e.options.stackLabels&&e.options.stackLabels.animation||!1);var a=this.stackTotalGroup=this.stackTotalGroup||n.g(`stack-labels`).attr({visibility:`visible`,zIndex:6,opacity:0}).add();a.translate(t.plotLeft,t.plotTop),c(i,function(e){c(e,function(e){e.render(a)})}),a.animate({opacity:1},e)},e}();e.Additions=u})(l||={}),l}),t(n,`Extensions/Stacking.js`,[n[`Core/Axis/Axis.js`],n[`Core/Chart/Chart.js`],n[`Core/FormatUtilities.js`],n[`Core/Globals.js`],n[`Core/Series/Series.js`],n[`Core/Axis/StackingAxis.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o){var s=n.format,c=o.correctFloat,l=o.defined,u=o.destroyObjectProperties,d=o.isArray,f=o.isNumber,p=o.objectEach,m=o.pick,h=function(){function e(e,t,n,r,i){var a=e.chart.inverted;this.axis=e,this.isNegative=n,this.options=t||={},this.x=r,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=i,this.rightCliff=this.leftCliff=0,this.alignOptions={align:t.align||(a?n?`left`:`right`:`center`),verticalAlign:t.verticalAlign||(a?`middle`:n?`bottom`:`top`),y:t.y,x:t.x},this.textAlign=t.textAlign||(a?n?`right`:`left`:`center`)}return e.prototype.destroy=function(){u(this,this.axis)},e.prototype.render=function(e){var t=this.axis.chart,n=this.options,r=n.format;r=r?s(r,this,t):n.formatter.call(this),this.label?this.label.attr({text:r,visibility:`hidden`}):(this.label=t.renderer.label(r,null,null,n.shape,null,null,n.useHTML,!1,`stack-labels`),r={r:n.borderRadius||0,text:r,rotation:n.rotation,padding:m(n.padding,5),visibility:`hidden`},t.styledMode||(r.fill=n.backgroundColor,r.stroke=n.borderColor,r[`stroke-width`]=n.borderWidth,this.label.css(n.style)),this.label.attr(r),this.label.added||this.label.add(e)),this.label.labelrank=t.plotSizeY},e.prototype.setOffset=function(e,t,n,r,a){var o=this.axis,s=o.chart;r=o.translate(o.stacking.usePercentage?100:r||this.total,0,0,0,1),n=o.translate(n||0),n=l(r)&&Math.abs(r-n),e=m(a,s.xAxis[0].translate(this.x))+e,o=l(r)&&this.getStackBox(s,this,e,r,t,n,o),t=this.label,n=this.isNegative,e=m(this.options.overflow,`justify`)===`justify`;var c=this.textAlign;t&&o&&(a=t.getBBox(),r=t.padding,c=c===`left`?s.inverted?-r:r:c===`right`?a.width:s.inverted&&c===`center`?a.width/2:s.inverted?n?a.width+r:-r:a.width/2,n=s.inverted?a.height/2:n?-r:a.height,this.alignOptions.x=m(this.options.x,0),this.alignOptions.y=m(this.options.y,0),o.x-=c,o.y-=n,t.align(this.alignOptions,null,o),s.isInsidePlot(t.alignAttr.x+c-this.alignOptions.x,t.alignAttr.y+n-this.alignOptions.y)?t.show():(t.alignAttr.y=-9999,e=!1),e&&i.prototype.justifyDataLabel.call(this.axis,t,this.alignOptions,t.alignAttr,a,o),t.attr({x:t.alignAttr.x,y:t.alignAttr.y}),m(!e&&this.options.crop,!0)&&((s=f(t.x)&&f(t.y)&&s.isInsidePlot(t.x-r+t.width,t.y)&&s.isInsidePlot(t.x+r,t.y))||t.hide()))},e.prototype.getStackBox=function(e,t,n,r,i,a,o){var s=t.axis.reversed,c=e.inverted,l=o.height+o.pos-(c?e.plotLeft:e.plotTop);return t=t.isNegative&&!s||!t.isNegative&&s,{x:c?t?r-o.right:r-a+o.pos-e.plotLeft:n+e.xAxis[0].transB-e.plotLeft,y:c?o.height-n-i:t?l-r-a:l-r,width:c?a:i,height:c?i:a}},e}();return t.prototype.getStacks=function(){var e=this,t=e.inverted;e.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}
4),e.series.forEach(function(n){var r=n.xAxis&&n.xAxis.options||{};!n.options.stacking||!0!==n.visible&&!1!==e.options.chart.ignoreHiddenSeries||(n.stackKey=[n.type,m(n.options.stack,``),t?r.top:r.left,t?r.height:r.width].join())})},a.compose(e),i.prototype.setGroupedPoints=function(){var e=this.yAxis.stacking;this.options.centerInCategory&&(this.is(`column`)||this.is(`columnrange`))&&!this.options.stacking&&1<this.chart.series.length?i.prototype.setStackedPoints.call(this,`group`):e&&p(e.stacks,function(t,n){n.slice(-5)===`group`&&(p(t,function(e){return e.destroy()}),delete e.stacks[n])})},i.prototype.setStackedPoints=function(e){var t=e||this.options.stacking;if(t&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var n=this.processedXData,r=this.processedYData,i=[],a=r.length,o=this.options,s=o.threshold,u=m(o.startFromThreshold&&s,0);o=o.stack,e=e?this.type+`,`+t:this.stackKey;var f=`-`+e,p=this.negStacks,g=this.yAxis,_=g.stacking.stacks,v=g.stacking.oldStacks,y,b;for(g.stacking.stacksTouched+=1,b=0;b<a;b++){var x=n[b],S=r[b],C=this.getStackIndicator(C,x,this.index),w=C.key,T=(y=p&&S<(u?0:s))?f:e;_[T]||(_[T]={}),_[T][x]||(v[T]&&v[T][x]?(_[T][x]=v[T][x],_[T][x].total=null):_[T][x]=new h(g,g.options.stackLabels,y,x,o)),T=_[T][x],S===null?T.points[w]=T.points[this.index]=null:(T.points[w]=T.points[this.index]=[m(T.cumulative,u)],l(T.cumulative)||(T.base=w),T.touched=g.stacking.stacksTouched,0<C.index&&!1===this.singleStacks&&(T.points[w][0]=T.points[this.index+`,`+x+`,0`][0])),t===`percent`?(y=y?e:f,p&&_[y]&&_[y][x]?(y=_[y][x],T.total=y.total=Math.max(y.total,T.total)+Math.abs(S)||0):T.total=c(T.total+(Math.abs(S)||0))):t===`group`?(d(S)&&(S=S[0]),S!==null&&(T.total=(T.total||0)+1)):T.total=c(T.total+(S||0)),T.cumulative=t===`group`?(T.total||1)-1:m(T.cumulative,u)+(S||0),S!==null&&(T.points[w].push(T.cumulative),i[b]=T.cumulative,T.hasValidPoints=!0)}t===`percent`&&(g.stacking.usePercentage=!0),t!==`group`&&(this.stackedYData=i),g.stacking.oldStacks={}}},i.prototype.modifyStacks=function(){var e=this,t=e.stackKey,n=e.yAxis.stacking.stacks,r=e.processedXData,i,a=e.options.stacking;e[a+`Stacker`]&&[t,`-`+t].forEach(function(t){for(var o=r.length,s,c;o--;)s=r[o],i=e.getStackIndicator(i,s,e.index,t),(c=(s=n[t]&&n[t][s])&&s.points[i.key])&&e[a+`Stacker`](c,s,o)})},i.prototype.percentStacker=function(e,t,n){t=t.total?100/t.total:0,e[0]=c(e[0]*t),e[1]=c(e[1]*t),this.stackedYData[n]=e[1]},i.prototype.getStackIndicator=function(e,t,n,r){return!l(e)||e.x!==t||r&&e.key!==r?e={x:t,index:0,key:r}:e.index++,e.key=[n,t,e.index].join(),e},r.StackItem=h,r.StackItem}),t(n,`Series/Line/LineSeries.js`,[n[`Core/Series/Series.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n.defined,a=n.merge;return n=function(t){function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(n,t),n.prototype.drawGraph=function(){var e=this,t=this.options,n=(this.gappedPath||this.getGraphPath).call(this),r=this.chart.styledMode,i=[[`graph`,`highcharts-graph`]];r||i[0].push(t.lineColor||this.color||`#cccccc`,t.dashStyle),i=e.getZonesGraphs(i),i.forEach(function(i,a){var o=i[0],s=e[o],c=s?`animate`:`attr`;s?(s.endX=e.preventGraphAnimation?null:n.xMap,s.animate({d:n})):n.length&&(e[o]=s=e.chart.renderer.path(n).addClass(i[1]).attr({zIndex:1}).add(e.group)),s&&!r&&(o={stroke:i[2],"stroke-width":t.lineWidth,fill:e.fillGraph&&e.color||`none`},i[3]?o.dashstyle=i[3]:t.linecap!==`square`&&(o[`stroke-linecap`]=o[`stroke-linejoin`]=`round`),s[c](o).shadow(2>a&&t.shadow)),s&&(s.startX=n.xMap,s.isArea=n.isArea)})},n.prototype.getGraphPath=function(e,t,n){var r=this,a=r.options,o=[],s=[],c,l=a.step;e||=r.points;var u=e.reversed;return u&&e.reverse(),(l={right:1,center:2}[l]||l&&3)&&u&&(l=4-l),e=this.getValidPoints(e,!1,!(a.connectNulls&&!t&&!n)),e.forEach(function(u,d){var f=u.plotX,p=u.plotY,m=e[d-1];(u.leftCliff||m&&m.rightCliff)&&!n&&(c=!0),u.isNull&&!i(t)&&0<d?c=!a.connectNulls:u.isNull&&!t?c=!0:(d===0||c?d=[[`M`,u.plotX,u.plotY]]:r.getPointSpline?d=[r.getPointSpline(e,u,d)]:l?(d=l===1?[[`L`,m.plotX,p]]:l===2?[[`L`,(m.plotX+f)/2,m.plotY],[`L`,(m.plotX+f)/2,p]]:[[`L`,f,m.plotY]],d.push([`L`,f,p])):d=[[`L`,f,p]],s.push(u.x),l&&(s.push(u.x),l===2&&s.push(u.x)),o.push.apply(o,d),c=!1)}),o.xMap=s,r.graphPath=o}
4,n.prototype.getZonesGraphs=function(e){return this.zones.forEach(function(t,n){n=[`zone-graph-`+n,`highcharts-graph highcharts-zone-graph-`+n+` `+(t.className||``)],this.chart.styledMode||n.push(t.color||this.color,t.dashStyle||this.options.dashStyle),e.push(n)},this),e},n.defaultOptions=a(e.defaultOptions,{}),n}(e),t.registerSeriesType(`line`,n),n}),t(n,`Series/Area/AreaSeries.js`,[n[`Core/Color/Color.js`],n[`Core/Legend/LegendSymbol.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=e.parse,o=n.seriesTypes.line;e=r.extend;var s=r.merge,c=r.objectEach,l=r.pick;return r=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(t,e),t.prototype.drawGraph=function(){this.areaPath=[],e.prototype.drawGraph.apply(this);var t=this,n=this.areaPath,r=this.options,i=[[`area`,`highcharts-area`,this.color,r.fillColor]];this.zones.forEach(function(e,n){i.push([`zone-area-`+n,`highcharts-area highcharts-zone-area-`+n+` `+e.className,e.color||t.color,e.fillColor||r.fillColor])}
4),i.forEach(function(e){var i=e[0],o=t[i],s=o?`animate`:`attr`,c={};o?(o.endX=t.preventGraphAnimation?null:n.xMap,o.animate({d:n})):(c.zIndex=0,o=t[i]=t.chart.renderer.path(n).addClass(e[1]).add(t.group),o.isArea=!0),t.chart.styledMode||(c.fill=l(e[3],a(e[2]).setOpacity(l(r.fillOpacity,.75)).get())),o[s](c),o.startX=n.xMap,o.shiftUnit=r.step?2:1})},t.prototype.getGraphPath=function(e){var t=o.prototype.getGraphPath,n=this.options,r=n.stacking,i=this.yAxis,a,s=[],c=[],u=this.index,d=i.stacking.stacks[this.stackKey],f=n.threshold,p=Math.round(i.getThreshold(n.threshold));n=l(n.connectNulls,r===`percent`);var m=function(t,n,a){var o=e[t];t=r&&d[o.x].points[u];var l=o[a+`Null`]||0;if(a=o[a+`Cliff`]||0,o=!0,a||l){var m=(l?t[0]:t[1])+a,h=t[0]+a;o=!!l}else!r&&e[n]&&e[n].isNull&&(m=h=f);m!==void 0&&(c.push({plotX:g,plotY:m===null?p:i.getThreshold(m),isNull:o,isCliff:!0}),s.push({plotX:g,plotY:h===null?p:i.getThreshold(h),doCurve:!1}))};for(e||=this.points,r&&(e=this.getStackPoints(e)),a=0;a<e.length;a++){r||(e[a].leftCliff=e[a].rightCliff=e[a].leftNull=e[a].rightNull=void 0);var h=e[a].isNull,g=l(e[a].rectPlotX,e[a].plotX),_=r?l(e[a].yBottom,p):p;(!h||n)&&(n||m(a,a-1,`left`),h&&!r&&n||(c.push(e[a]),s.push({x:a,plotX:g,plotY:_})),n||m(a,a+1,`right`))}return a=t.call(this,c,!0,!0),s.reversed=!0,h=t.call(this,s,!0,!0),(_=h[0])&&_[0]===`M`&&(h[0]=[`L`,_[1],_[2]]),h=a.concat(h),h.length&&h.push([`Z`]),t=t.call(this,c,!1,n),h.xMap=a.xMap,this.areaPath=h,t},t.prototype.getStackPoints=function(e){var t=this,n=[],r=[],i=this.xAxis,a=this.yAxis,o=a.stacking.stacks[this.stackKey],s={},u=a.series,d=u.length,f=a.options.reversedStacks?1:-1,p=u.indexOf(t);if(e||=this.points,this.options.stacking){for(var m=0;m<e.length;m++)e[m].leftNull=e[m].rightNull=void 0,s[e[m].x]=e[m];c(o,function(e,t){e.total!==null&&r.push(t)}),r.sort(function(e,t){return e-t});var h=u.map(function(e){return e.visible});r.forEach(function(e,c){var m=0,g,_;if(s[e]&&!s[e].isNull)n.push(s[e]),[-1,1].forEach(function(n){var i=n===1?`rightNull`:`leftNull`,a=0,l=o[r[c+n]];if(l)for(var m=p;0<=m&&m<d;){var v=u[m].index;g=l.points[v],g||(v===t.index?s[e][i]=!0:h[m]&&(_=o[e].points[v])&&(a-=_[1]-_[0])),m+=f}s[e][n===1?`rightCliff`:`leftCliff`]=a});else{for(var v=p;0<=v&&v<d;){if(g=o[e].points[u[v].index]){m=g[1];break}v+=f}m=l(m,0),m=a.translate(m,0,1,0,1),n.push({isNull:!0,plotX:i.translate(e,0,0,0,1),x:e,plotY:m,yBottom:m})}})}return n},t.defaultOptions=s(o.defaultOptions,{threshold:0}),t}(o),e(r.prototype,{singleStacks:!1,drawLegendSymbol:t.drawRectangle}),n.registerSeriesType(`area`,r),r}),t(n,`Series/Spline/SplineSeries.js`,[n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t){var n=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=e.seriesTypes.line,i=t.merge,a=t.pick;return t=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(t,e),t.prototype.getPointSpline=function(e,t,n){var r=t.plotX||0,i=t.plotY||0,o=e[n-1];if(n=e[n+1],o&&!o.isNull&&!1!==o.doCurve&&!t.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!t.isCliff){e=o.plotY||0;var s=n.plotX||0;n=n.plotY||0;var c=0,l=(1.5*r+(o.plotX||0))/2.5,u=(1.5*i+e)/2.5;s=(1.5*r+s)/2.5;var d=(1.5*i+n)/2.5;s!==l&&(c=(d-u)*(s-r)/(s-l)+i-d),u+=c,d+=c,u>e&&u>i?(u=Math.max(e,i),d=2*i-u):u<e&&u<i&&(u=Math.min(e,i),d=2*i-u),d>n&&d>i?(d=Math.max(n,i),u=2*i-d):d<n&&d<i&&(d=Math.min(n,i),u=2*i-d),t.rightContX=s,t.rightContY=d}return t=[`C`,a(o.rightContX,o.plotX,0),a(o.rightContY,o.plotY,0),a(l,r,0),a(u,i,0),r,i],o.rightContX=o.rightContY=void 0,t},t.defaultOptions=i(r.defaultOptions),t}(r),e.registerSeriesType(`spline`,t),t}),t(n,`Series/AreaSpline/AreaSplineSeries.js`,[n[`Series/Area/AreaSeries.js`],n[`Series/Spline/SplineSeries.js`],n[`Core/Legend/LegendSymbol.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}
4e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=e.prototype,s=i.extend,c=i.merge;return i=function(n){function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.data=void 0,e.points=void 0,e.options=void 0,e}return a(r,n),r.defaultOptions=c(t.defaultOptions,e.defaultOptions),r}(t),s(i.prototype,{getGraphPath:o.getGraphPath,getStackPoints:o.getStackPoints,drawGraph:o.drawGraph,drawLegendSymbol:n.drawRectangle}),r.registerSeriesType(`areaspline`,i),i}),t(n,`Series/Column/ColumnSeries.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Legend/LegendSymbol.js`],n[`Core/Series/Series.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o){var s=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=e.animObject,l=t.parse,u=n.hasTouch;e=n.noop;var d=o.clamp,f=o.css,p=o.defined,m=o.extend,h=o.fireEvent,g=o.isArray,_=o.isNumber,v=o.merge,y=o.pick,b=o.objectEach;return o=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.borderWidth=void 0,t.data=void 0,t.group=void 0,t.options=void 0,t.points=void 0,t}return s(t,e),t.prototype.animate=function(e){var t=this,n=this.yAxis,r=t.options,i=this.chart.inverted,a={},o=i?`translateX`:`translateY`;if(e)a.scaleY=.001,e=d(n.toPixels(r.threshold),n.pos,n.pos+n.len),i?a.translateX=e-n.len:a.translateY=e,t.clipBox&&t.setClip(),t.group.attr(a);else{var s=Number(t.group.attr(o));t.group.animate({scaleY:1},m(c(t.options.animation),{step:function(e,r){t.group&&(a[o]=s+r.pos*(n.pos-s),t.group.attr(a))}}))}},t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments);var r=this;t=r.chart,t.hasRendered&&t.series.forEach(function(e){e.type===r.type&&(e.isDirty=!0)})},t.prototype.getColumnMetrics=function(){var e=this,t=e.options,n=e.xAxis,r=e.yAxis,i=n.options.reversedStacks;i=n.reversed&&!i||!n.reversed&&i;var a={},o,s=0;!1===t.grouping?s=1:e.chart.series.forEach(function(t){var n=t.yAxis,i=t.options;if(t.type===e.type&&(t.visible||!e.chart.options.chart.ignoreHiddenSeries)&&r.len===n.len&&r.pos===n.pos){if(i.stacking&&i.stacking!==`group`){o=t.stackKey,a[o]===void 0&&(a[o]=s++);var c=a[o]}else!1!==i.grouping&&(c=s++);t.columnIndex=c}});var c=Math.min(Math.abs(n.transA)*(n.ordinal&&n.ordinal.slope||t.pointRange||n.closestPointRange||n.tickInterval||1),n.len),l=c*t.groupPadding,u=(c-2*l)/(s||1);return t=Math.min(t.maxPointWidth||n.len,y(t.pointWidth,u*(1-2*t.pointPadding))),e.columnMetrics={width:t,offset:(u-t)/2+(l+((e.columnIndex||0)+ +!!i)*u-c/2)*(i?-1:1),paddedWidth:u,columnCount:s},e.columnMetrics},t.prototype.crispCol=function(e,t,n,r){var i=this.chart,a=this.borderWidth,o=-(a%2?.5:0);return a=a%2?.5:1,i.inverted&&i.renderer.isVML&&(a+=1),this.options.crisp&&(n=Math.round(e+n)+o,e=Math.round(e)+o,n-=e),r=Math.round(t+r)+a,o=.5>=Math.abs(t)&&.5<r,t=Math.round(t)+a,r-=t,o&&r&&(--t,r+=1),{x:e,y:t,width:n,height:r}},t.prototype.adjustForMissingColumns=function(e,t,n,r){var i=this,a=this.options.stacking;if(!n.isNull&&1<r.columnCount){var o=0,s=0;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(e){if(typeof n.x==`number`&&(e=e[n.x.toString()])){var t=e.points[i.index],r=e.total;a?(t&&(o=s),e.hasValidPoints&&s++):g(t)&&(o=t[1],s=r||0)}}),e=(n.plotX||0)+((s-1)*r.paddedWidth+t)/2-t-o*r.paddedWidth}return e},t.prototype.translate=function(){var e=this,t=e.chart,n=e.options,r=e.dense=2>e.closestPointRange*e.xAxis.transA;r=e.borderWidth=y(n.borderWidth,+!r);var a=e.xAxis,o=e.yAxis,s=n.threshold,c=e.translatedThreshold=o.getThreshold(s),l=y(n.minPointLength,5),u=e.getColumnMetrics(),f=u.width,m=e.pointXOffset=u.offset,h=e.dataMin,g=e.dataMax,v=e.barW=Math.max(f,1+2*r);t.inverted&&(c-=.5),n.pointPadding&&(v=Math.ceil(v)),i.prototype.translate.apply(e),e.points.forEac
4h(function(r){var i=y(r.yBottom,c),b=999+Math.abs(i),x=r.plotX||0;b=d(r.plotY,-b,o.len+b);var S=Math.min(b,i),C=Math.max(b,i)-S,w=f,T=x+m,E=v;l&&Math.abs(C)<l&&(C=l,x=!o.reversed&&!r.negative||o.reversed&&r.negative,_(s)&&_(g)&&r.y===s&&g<=s&&(o.min||0)<s&&(h!==g||(o.max||0)<=s)&&(x=!x),S=Math.abs(S-c)>l?i-l:c-(x?l:0)),p(r.options.pointWidth)&&(w=E=Math.ceil(r.options.pointWidth),T-=Math.round((w-f)/2)),n.centerInCategory&&(T=e.adjustForMissingColumns(T,w,r,u)),r.barX=T,r.pointWidth=w,r.tooltipPos=t.inverted?[d(o.len+o.pos-t.plotLeft-b,o.pos-t.plotLeft,o.len+o.pos-t.plotLeft),a.len+a.pos-t.plotTop-T-E/2,C]:[a.left-t.plotLeft+T+E/2,d(b+o.pos-t.plotTop,o.pos-t.plotTop,o.len+o.pos-t.plotTop),C],r.shapeType=e.pointClass.prototype.shapeType||`rect`,r.shapeArgs=e.crispCol.apply(e,r.isNull?[T,c,E,0]:[T,S,E,C])})},t.prototype.drawGraph=function(){this.group[this.dense?`addClass`:`removeClass`](`highcharts-dense-data`)},t.prototype.pointAttribs=function(e,t){var n=this.options,r=this.pointAttrToOptions||{},i=r.stroke||`borderColor`,a=r[`stroke-width`]||`borderWidth`,o=e&&e.color||this.color,s=e&&e[i]||n[i]||o;r=e&&e.options.dashStyle||n.dashStyle;var c=e&&e[a]||n[a]||this[a]||0,u=y(e&&e.opacity,n.opacity,1);if(e&&this.zones.length){var d=e.getZone();o=e.options.color||d&&(d.color||e.nonZonedColor)||this.color,d&&(s=d.borderColor||s,r=d.dashStyle||r,c=d.borderWidth||c)}return t&&e&&(e=v(n.states[t],e.options.states&&e.options.states[t]||{}),t=e.brightness,o=e.color||t!==void 0&&l(o).brighten(e.brightness).get()||o,s=e[i]||s,c=e[a]||c,r=e.dashStyle||r,u=y(e.opacity,u)),i={fill:o,stroke:s,"stroke-width":c,opacity:u},r&&(i.dashstyle=r),i},t.prototype.drawPoints=function(){var e=this,t=this.chart,n=e.options,r=t.renderer,i=n.animationLimit||250,a;e.points.forEach(function(o){var s=o.graphic,c=!!s,l=s&&t.pointCount<i?`animate`:`attr`;_(o.plotY)&&o.y!==null?(a=o.shapeArgs,s&&o.hasNewShapeType()&&(s=s.destroy()),e.enabledDataSorting&&(o.startXPos=e.xAxis.reversed?-(a&&a.width||0):e.xAxis.width),s||(o.graphic=s=r[o.shapeType](a).add(o.group||e.group))&&e.enabledDataSorting&&t.hasRendered&&t.pointCount<i&&(s.attr({x:o.startXPos}),c=!0,l=`animate`),s&&c&&s[l](v(a)),n.borderRadius&&s[l]({r:n.borderRadius}),t.styledMode||s[l](e.pointAttribs(o,o.selected&&`select`)).shadow(!1!==o.allowShadow&&n.shadow,null,n.stacking&&!n.borderRadius),s&&(s.addClass(o.getClassName(),!0),s.attr({visibility:o.visible?`inherit`:`hidden`}))):s&&(o.graphic=s.destroy())})},t.prototype.drawTracker=function(){var e=this,t=e.chart,n=t.pointer,r=function(e){var t=n.getPointFromEvent(e);t!==void 0&&(n.isDirectTouch=!0,t.onMouseOver(e))},i;e.points.forEach(function(e){i=g(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),i.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}),e._hasTracking||=(e.trackerGroups.forEach(function(i){e[i]&&(e[i].addClass(`highcharts-tracker`).on(`mouseover`,r).on(`mouseout`,function(e){n.onTrackerMouseOut(e)}),u&&e[i].on(`touchstart`,r),!t.styledMode&&e.options.cursor&&e[i].css(f).css({cursor:e.options.cursor}))}),!0),h(this,`afterDrawTracker`)},t.prototype.remove=function(){var e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)}),i.prototype.remove.apply(e,arguments)},t.defaultOptions=v(i.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:`#cccccc`,borderColor:`#000000`}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:`#ffffff`}),t}(i),m(o.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:r.drawRectangle,getSymbol:e,negStacks:!0,trackerGroups:[`group`,`dataLabelsGroup`]}),a.registerSeriesType(`column`,o),o}),t(n,`Core/Series/DataLabel.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/FormatUtilities.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=e.getDeferredAnimation,i=t.format,a=n.defined,o=n.extend,s=n.fireEvent,c=n.isArray,l=n.merge,u=n.objectEach,d=n.pick,f=n.splat,p;return(function(e){function t(e,t,n,r,i){var a=this,s=this.chart,c=this.isCartesian&&s.inverted,l=this.enabledDataSorting,u=d(e.dlBox&&e.dlBox.centerX,e.plotX,-9999),f=d(e.plotY,-9999),p=t.getBBox(),m=n.rotation,h=n.align,g=s.isInsidePlot(u,Math.round(f),{inverted:c,paneCoordinates:!0,series:a}),_=function(n){l&&a.xAxis&&!v&&a.setDataLabelStartPos(e,t,i,g,n)},v=d(n.overflow,l?`none`:`justify`)===`justify`,y=this.visible&&!1!==e.visible&&(e.series.forceDL||l&&!v||g||d(n.inside,!!this.options.stacking)&&r&&s.isInsidePlot(u,c?r.x+1:r.y+r.height-1,{inverted:c,paneCoordinates:!0,series:a}));if(y){var b=s.renderer.fontMetrics(s.styledMode?void 0:n.style.fontSize,t).b;r=o({x:c?this.yAxis.len-f:u,y:Math.round(c?this.xAxis.len-u:f),width:0,height:0},r),o(n,{width:p.width,height:p.height}),m?(v=!1,u=s.renderer.rotCorr(b,m),u={x:r.x+(n.x||0)+r.width/2+u.x,y:r.y+(n.y||0)+{top:0,middle:.5,bottom:1}[n.verticalAlign]*r.height},_(u),t[i?`attr`:`animate`](u).attr({align:h}),_=(m+720)%360,_=180<_&&360>_,h===`left`?u.y-=_?p.height:0:h===`center`?(u.x-=p.width/2,u.y-=p.height/2):h===`right`&&(u.x-=p.width,u.y-=_?0:p.height),t.placed=!0,t.alignAttr=u):(_(r),t.align(n,void 0,r),u=t.alignAttr),v&&0<=r.height?this.justifyDataLabel(t,n,u,p,r,i):d(n.crop,!0)&&(y=s.isInsidePlot(u.x,u.y,{paneCoordinates:!0,series:a})&&s.isInsidePlot(u.x+p.width,u.y+p.height,{paneCoordinates:!0,series:a})),n.shape&&!m&&t[i?`attr`:`animate`]({anchorX:c?s.plotWidth-e.plotY:e.plotX,anchorY:c?s.plotHeight-e.plotX:e.plotY})}i&&l&&(t.placed=!1),y||l&&!v||(t.hide(!0),t.placed=!1)}function n(e,t){var n=t.filter;return!n||(t=n.operator,e=e[n.property],n=n.value,t===`>`&&e>n||t===`<`&&e<n||t===`>=`&&e>=n||t===`<=`&&e<=n||t===`==`&&e==n||t===`===`&&e===n)}function p(){var e=this,t=e.chart,o=e.options,l=e.points,p=e.hasRendered||0,m=t.renderer,g=o.dataLabels,_,v=g.animation;if(v=g.defer?r(t,v,e):{defer:0,duration:0},g=h(h(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[e.type]&&t.options.plotOptions[e.type].dataLabels),g),s(this,`drawDataLabels`),c(g)||g.enabled||e._hasPointLabels){var y=e.plotGroup(`dataLabelsGroup`,`data-labels`,p?`inherit`:`hidden`,g.zIndex||6);y.attr({opacity:+p}),!p&&(p=e.dataLabelsGroup)&&(e.visible&&y.show(!0),p[o.animation?`animate`:`attr`]({opacity:1},v)),l.forEach(function(r){_=f(h(g,r.dlOptions||r.options&&r.options.dataLabels)),_.forEach(function(s,c){var l=s.enabled&&(!r.isNull||r.dataLabelO
4nNull)&&n(r,s),f=r.connectors?r.connectors[c]:r.connector,p=r.dataLabels?r.dataLabels[c]:r.dataLabel,h=d(s.distance,r.labelDistance),g=!p;if(l){var _=r.getLabelConfig(),v=d(s[r.formatPrefix+`Format`],s.format);_=a(v)?i(v,_,t):(s[r.formatPrefix+`Formatter`]||s.formatter).call(_,s),v=s.style;var b=s.rotation;t.styledMode||(v.color=d(s.color,v.color,e.color,`#000000`),v.color===`contrast`?(r.contrastColor=m.getContrast(r.color||e.color),v.color=!a(h)&&s.inside||0>h||o.stacking?r.contrastColor:`#000000`):delete r.contrastColor,o.cursor&&(v.cursor=o.cursor));var x={r:s.borderRadius||0,rotation:b,padding:s.padding,zIndex:1};t.styledMode||(x.fill=s.backgroundColor,x.stroke=s.borderColor,x[`stroke-width`]=s.borderWidth),u(x,function(e,t){e===void 0&&delete x[t]})}!p||l&&a(_)&&!!p.div==!!s.useHTML||(r.dataLabel=p=r.dataLabel&&r.dataLabel.destroy(),r.dataLabels&&(r.dataLabels.length===1?delete r.dataLabels:delete r.dataLabels[c]),c||delete r.dataLabel,f&&(r.connector=r.connector.destroy(),r.connectors&&(r.connectors.length===1?delete r.connectors:delete r.connectors[c]))),l&&a(_)&&(p?x.text=_:(r.dataLabels=r.dataLabels||[],p=r.dataLabels[c]=b?m.text(_,0,-9999,s.useHTML).addClass(`highcharts-data-label`):m.label(_,0,-9999,s.shape,null,null,s.useHTML,null,`data-label`),c||(r.dataLabel=p),p.addClass(` highcharts-data-label-color-`+r.colorIndex+` `+(s.className||``)+(s.useHTML?` highcharts-tracker`:``))),p.options=s,p.attr(x),t.styledMode||p.css(v).shadow(s.shadow),p.added||p.add(y),s.textPath&&!s.useHTML&&(p.setTextPath(r.getDataLabelPath&&r.getDataLabelPath(p)||r.graphic,s.textPath),r.dataLabelPath&&!s.textPath.enabled&&(r.dataLabelPath=r.dataLabelPath.destroy())),e.alignDataLabel(r,p,s,null,g))})})}s(this,`afterDrawDataLabels`)}function m(e,t,n,r,i,a){var o=this.chart,s=t.align,c=t.verticalAlign,l=e.box?0:e.padding||0,u=t.x;u=u===void 0?0:u;var d=t.y;d=d===void 0?0:d;var f=(n.x||0)+l;if(0>f){s===`right`&&0<=u?(t.align=`left`,t.inside=!0):u-=f;var p=!0}return f=(n.x||0)+r.width-l,f>o.plotWidth&&(s===`left`&&0>=u?(t.align=`right`,t.inside=!0):u+=o.plotWidth-f,p=!0),f=n.y+l,0>f&&(c===`bottom`&&0<=d?(t.verticalAlign=`top`,t.inside=!0):d-=f,p=!0),f=(n.y||0)+r.height-l,f>o.plotHeight&&(c===`top`&&0>=d?(t.verticalAlign=`bottom`,t.inside=!0):d+=o.plotHeight-f,p=!0),p&&(t.x=u,t.y=d,e.placed=!a,e.align(t,void 0,i)),p}function h(e,t){var n=[],r;if(c(e)&&!c(t))n=e.map(function(e){return l(e,t)});else if(c(t)&&!c(e))n=t.map(function(t){return l(e,t)});else if(c(e)||c(t))for(r=Math.max(e.length,t.length);r--;)n[r]=l(e[r],t[r]);else n=l(e,t);return n}function g(e,t,n,r,i){var a=this.chart,o=a.inverted,s=this.xAxis,c=s.reversed,l=o?t.height/2:t.width/2;e=(e=e.pointWidth)?e/2:0,t.startXPos=o?i.x:c?-l-e:s.width-l+e,t.startYPos=o?c?this.yAxis.height-l+e:-l-e:i.y,r?t.visibility===`hidden`&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0}
4,void 0,t.hide),a.hasRendered&&(n&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}var _=[];e.compose=function(e){if(_.indexOf(e)===-1){var n=e.prototype;_.push(e),n.alignDataLabel=t,n.drawDataLabels=p,n.justifyDataLabel=m,n.setDataLabelStartPos=g}}})(p||={}),p}),t(n,`Series/Column/ColumnDataLabel.js`,[n[`Core/Series/DataLabel.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=t.series,i=n.merge,a=n.pick,o;return(function(t){function n(e,t,n,o,s){var c=this.chart.inverted,l=e.series,u=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var d=e.dlBox||e.shapeArgs,f=a(e.below,e.plotY>a(this.translatedThreshold,l)),p=a(n.inside,!!this.options.stacking);d&&(o=i(d),0>o.y&&(o.height+=o.y,o.y=0),d=o.y+o.height-l,0<d&&d<o.height&&(o.height-=d),c&&(o={x:l-o.y-o.height,y:u-o.x-o.width,width:o.height,height:o.width}),p||(c?(o.x+=f?0:o.width,o.width=0):(o.y+=f?o.height:0,o.height=0))),n.align=a(n.align,!c||p?`center`:f?`right`:`left`),n.verticalAlign=a(n.verticalAlign,c||p?`middle`:f?`top`:`bottom`),r.prototype.alignDataLabel.call(this,e,t,n,o,s),n.inside&&e.contrastColor&&t.css({color:e.contrastColor})}var o=[];t.compose=function(t){e.compose(r),o.indexOf(t)===-1&&(o.push(t),t.prototype.alignDataLabel=n)}})(o||={}),o}),t(n,`Series/Bar/BarSeries.js`,[n[`Series/Column/ColumnSeries.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n.extend,a=n.merge;return n=function(t){function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(n,t),n.defaultOptions=a(e.defaultOptions,{}),n}(e),i(n.prototype,{inverted:!0}),t.registerSeriesType(`bar`,n),n}),t(n,`Series/Scatter/ScatterSeries.js`,[n[`Series/Column/ColumnSeries.js`],n[`Series/Line/LineSeries.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=r.addEvent,o=r.extend,s=r.merge;return r=function(e){function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(n,e),n.prototype.applyJitter=function(){var e=this,t=this.options.jitter,n=this.points.length;t&&this.points.forEach(function(r,i){[`x`,`y`].forEach(function(a,o){var s=`plot`+a.toUpperCase();if(t[a]&&!r.isNull){var c=e[a+`Axis`],l=t[a]*c.transA;if(c&&!c.isLog){var u=Math.max(0,r[s]-l);c=Math.min(c.len,r[s]+l),o=1e4*Math.sin(i+o*n),r[s]=u+(c-u)*(o-Math.floor(o)),a===`x`&&(r.clientX=r.plotX)}}})})},n.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&=this.graph.destroy()},n.defaultOptions=s(t.defaultOptions,{lineWidth:0,findNearestPointBy:`xy`,jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:`<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>`,pointFormat:`x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>`}}),n}(t),o(r.prototype,{drawTracker:e.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:[`group`,`markerGroup`,`dataLabelsGroup`],takeOrdinalPosition:!1}),a(r,`afterTranslate`,function(){this.applyJitter()}),n.registerSeriesType(`scatter`,r),r}),t(n,`Series/CenteredUtilities.js`,[n[`Core/Globals.js`],n[`Core/Series/Series.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=e.deg2rad,i=n.isNumber,a=n.pick,o=n.relativeLength,s;return(function(e){e.getCenter=function(){var e=this.options,n=this.chart,r=2*(e.slicedOffset||0),i=n.plotWidth-2*r,s=n.plotHeight-2*r,c=e.center,l=Math.min(i,s),u=e.size,d=e.innerSize||0;for(typeof u==`string`&&(u=parseFloat(u)),typeof d==`string`&&(d=parseFloat(d)),e=[a(c[0],`50%`),a(c[1],`50%`),a(u&&0>u?void 0:e.size,`100%`),a(d&&0>d?void 0:e.innerSize||0,`0%`)],!n.angular||this instanceof t||(e[3]=0),c=0;4>c;++c)u=e[c],n=2>c||c===2&&/%$/.test(u),e[c]=o(u,[i,s,l,e[2]][c])+(n?r:0);return e[3]>e[2]&&(e[3]=e[2]),e},e.getStartAndEndRadians=function(e,t){return e=i(e)?e:0,t=i(t)&&t>e&&360>t-e?t:e+360,{start:r*(e+-90),end:r*(t+-90)}}})(s||={}),s}),t(n,`Series/Pie/PiePoint.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Series/Point.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}
4e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=e.setAnimation,a=n.addEvent,o=n.defined;e=n.extend;var s=n.isNumber,c=n.pick,l=n.relativeLength;return t=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.labelDistance=void 0,t.options=void 0,t.series=void 0,t}return r(t,e),t.prototype.getConnectorPath=function(){var e=this.labelPosition,t=this.series.options.dataLabels,n=this.connectorShapes,r=t.connectorShape;return n[r]&&(r=n[r]),r.call(this,{x:e.final.x,y:e.final.y,alignment:e.alignment},e.connectorPosition,t)},t.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},t.prototype.haloPath=function(e){var t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end})},t.prototype.init=function(){var t=this;e.prototype.init.apply(this,arguments),this.name=c(this.name,`Slice`);var n=function(e){t.slice(e.type===`select`)};return a(this,`select`,n),a(this,`unselect`,n),this},t.prototype.isValid=function(){return s(this.y)&&0<=this.y},t.prototype.setVisible=function(e,t){var n=this,r=this.series,i=r.chart,a=r.options.ignoreHiddenPoint;t=c(t,a),e!==this.visible&&(this.visible=this.options.visible=e=e===void 0?!this.visible:e,r.options.data[r.data.indexOf(this)]=this.options,[`graphic`,`dataLabel`,`connector`,`shadowGroup`].forEach(function(t){n[t]&&n[t][e?`show`:`hide`](e)}),this.legendItem&&i.legend.colorizeItem(this,e),e||this.state!==`hover`||this.setState(``),a&&(r.isDirty=!0),t&&i.redraw())},t.prototype.slice=function(e,t,n){var r=this.series;i(n,r.chart),c(t,!0),this.sliced=this.options.sliced=o(e)?e:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},t}(t),e(t.prototype,{connectorShapes:{fixedOffset:function(e,t,n){var r=t.breakAt;return t=t.touchingSliceAt,[[`M`,e.x,e.y],n.softConnector?[`C`,e.x+(e.alignment===`left`?-5:5),e.y,2*r.x-t.x,2*r.y-t.y,r.x,r.y]:[`L`,r.x,r.y],[`L`,t.x,t.y]]},straight:function(e,t){return t=t.touchingSliceAt,[[`M`,e.x,e.y],[`L`,t.x,t.y]]},crookedLine:function(e,t,n){t=t.touchingSliceAt;var r=this.series,i=r.center[0],a=r.chart.plotWidth,o=r.chart.plotLeft;r=e.alignment;var s=this.shapeArgs.r;return n=l(n.crookDistance,1),a=r===`left`?i+s+(a+o-i-s)*(1-n):o+(i-s)*n,n=[`L`,a,e.y],i=!0,(r===`left`?a>e.x||a<t.x:a<e.x||a>t.x)&&(i=!1),e=[[`M`,e.x,e.y]],i&&e.push(n),e.push([`L`,t.x,t.y]),e}}}),t}),t(n,`Series/Pie/PieSeries.js`,[n[`Series/CenteredUtilities.js`],n[`Series/Column/ColumnSeries.js`],n[`Core/Globals.js`],n[`Core/Legend/LegendSymbol.js`],n[`Series/Pie/PiePoint.js`],n[`Core/Series/Series.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Renderer/SVG/Symbols.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s,c){var l=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=e.getStartAndEndRadians;n=n.noop;var d=c.clamp,f=c.extend,p=c.fireEvent,m=c.merge,h=c.pick,g=c.relativeLength;return c=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.center=void 0,t.data=void 0,t.maxLabelDistance=void 0,t.options=void 0,t.points=void 0,t}return l(t,e),t.prototype.animate=function(e){var t=this,n=t.points,r=t.startAngleRad;e||n.forEach(function(e){var n=e.graphic,i=e.shapeArgs;n&&i&&(n.attr({r:h(e.startR,t.center&&t.center[3]/2),start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},t.options.animation))})},t.prototype.drawEmpty=function(){var e=this.startAngleRad,t=this.endAngleRad,n=this.options;if(this.total===0&&this.center){var r=this.center[0],i=this.center[1];this.graph||=this.chart.renderer.arc(r,i,this.center[1]/2,0,e,t).addClass(`highcharts-empty-series`).add(this.group),this.graph.attr({d:s.arc(r,i,this.center[2]/2,0,{start:e,end:t,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||`none`,stroke:n.color||`#cccccc`})}else this.graph&&=this.graph.destroy()},t.prototype.drawPoints=function(){var e=this.chart.renderer;
4this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})},t.prototype.generatePoints=function(){e.prototype.generatePoints.call(this),this.updateTotals()},t.prototype.getX=function(e,t,n){var r=this.center,i=this.radii?this.radii[n.index]||0:r[2]/2;return e=Math.asin(d((e-r[1])/(i+n.labelDistance),-1,1)),r[0]+(t?-1:1)*Math.cos(e)*(i+n.labelDistance)+(0<n.labelDistance?(t?-1:1)*this.options.dataLabels.padding:0)},t.prototype.hasData=function(){return!!this.processedXData.length},t.prototype.redrawPoints=function(){var e=this,t=e.chart,n=t.renderer,r=e.options.shadow,i,a,o,s;this.drawEmpty(),!r||e.shadowGroup||t.styledMode||(e.shadowGroup=n.g(`shadow`).attr({zIndex:-1}).add(e.group)),e.points.forEach(function(c){var l={};if(a=c.graphic,!c.isNull&&a){var u=void 0;s=c.shapeArgs,i=c.getTranslate(),t.styledMode||(u=c.shadowGroup,r&&!u&&(u=c.shadowGroup=n.g(`shadow`).add(e.shadowGroup)),u&&u.attr(i),o=e.pointAttribs(c,c.selected&&`select`)),c.delayedRendering?(a.setRadialReference(e.center).attr(s).attr(i),t.styledMode||a.attr(o).attr({"stroke-linejoin":`round`}).shadow(r,u),c.delayedRendering=!1):(a.setRadialReference(e.center),t.styledMode||m(!0,l,o),m(!0,l,s,i),a.animate(l)),a.attr({visibility:c.visible?`inherit`:`hidden`}),a.addClass(c.getClassName(),!0)}else a&&(c.graphic=a.destroy())})},t.prototype.sortByAngle=function(e,t){e.sort(function(e,n){return e.angle!==void 0&&(n.angle-e.angle)*t})},t.prototype.translate=function(e){this.generatePoints();var t=this.options,n=t.slicedOffset,r=n+(t.borderWidth||0),i=u(t.startAngle,t.endAngle),a=this.startAngleRad=i.start;i=(this.endAngleRad=i.end)-a;var o=this.points,s=t.dataLabels.distance;t=t.ignoreHiddenPoint;var c=o.length,l,d=0;for(e||(this.center=e=this.getCenter()),l=0;l<c;l++){var f=o[l],m=a+d*i;!f.isValid()||t&&!f.visible||(d+=f.percentage/100);var _=a+d*i,v={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(1e3*m)/1e3,end:Math.round(1e3*_)/1e3};f.shapeType=`arc`,f.shapeArgs=v,f.labelDistance=h(f.options.dataLabels&&f.options.dataLabels.distance,s),f.labelDistance=g(f.labelDistance,v.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,f.labelDistance),_=(_+m)/2,_>1.5*Math.PI?_-=2*Math.PI:_<-Math.PI/2&&(_+=2*Math.PI),f.slicedTranslation={translateX:Math.round(Math.cos(_)*n),translateY:Math.round(Math.sin(_)*n)},v=Math.cos(_)*e[2]/2;var y=Math.sin(_)*e[2]/2;f.tooltipPos=[e[0]+.7*v,e[1]+.7*y],f.half=+(_<-Math.PI/2||_>Math.PI/2),f.angle=_,m=Math.min(r,f.labelDistance/5),f.labelPosition={natural:{x:e[0]+v+Math.cos(_)*f.labelDistance,y:e[1]+y+Math.sin(_)*f.labelDistance},final:{},alignment:0>f.labelDistance?`center`:f.half?`right`:`left`,connectorPosition:{breakAt:{x:e[0]+v+Math.cos(_)*m,y:e[1]+y+Math.sin(_)*m},touchingSliceAt:{x:e[0]+v,y:e[1]+y}}}}p(this,`afterTranslate`)},t.prototype.updateTotals=function(){var e=this.points,t=e.length,n=this.options.ignoreHiddenPoint,r,i=0;for(r=0;r<t;r++){var a=e[r];!a.isValid()||n&&!a.visible||(i+=a.y)}for(this.total=i,r=0;r<t;r++)a=e[r],a.percentage=0<i&&(a.visible||!n)?a.y/i*100:0,a.total=i},t.defaultOptions=m(a.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:`fixedOffset`,crookDistance:`70%`,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:`point`,marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:`#ffffff`,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),t}(a),f(c.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:r.drawRectangle,drawTracker:t.prototype.drawTracker,getCenter:e.getCenter,getSymbol:n,isCartesian:!1,noSharedTooltip:!0,pointAttribs:t.prototype.pointAttribs,pointClass:i,requireSorting:!1,searchPoint:n,trackerGroups:[`group`,`dataLabelsGroup`]}),o.registerSeriesType(`pie`,c),c}),t(n,`Series/Pie/PieDataLabel.js`,[n[`Core/Series/DataLabel.js`],n[`Core/Globals.js`],n[`Core/Renderer/RendererUtilities.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=t.noop,o=n.distribute,s=r.series,c=i.arrayMax,l=i.clamp,u=i.defined,d=i.merge,f=i.pick,p=i.relativeLength,m;return(function(t){function n(){var e=this,t=e.data,n=e.chart,r=e.options.dataLabels||{},i=r.connectorPadding,a=n.plotWidth,l=n.plotHeight,p=n.plotLeft,m=Math.round(n.chartWidth/3),h=e.center,g=h[2]/2,_=h[1],v=[[],[]],y=[0,0,0,0],b=e.dataLabelPositioners,x,S,C,w,T,E,D,O,k,A,j,M;e.visible&&(r.enabled||e._hasPointLabels)&&(t.forEach(function(e){e.dataLabel&&e.visible&&e.dataLabel.shortened&&(e.dataLabel.attr({width:`auto`}).css({width:`auto`,textOverflow:`clip`}),e.dataLabel.shortened=!1)}),s.prototype.drawDataLabels.apply(e),t.forEach(function(e){e.dataLabel&&(e.visible?(v[e.half].push(e),e.dataLabel._pos=null,!u(r.style.width)&&!u(e.options.dataLabels&&e.options.dataLabels.style&&e.options.dataLabels.style.width)&&e.dataLabel.getBBox().width>m&&(e.dataLabel.css({width:Math.round(.7*m)+`px`}),e.dataLabel.shortened=!0)):(e.dataLabel=e.dataLabel.destroy(),e.dataLabels&&e.dataLabels.length===1&&delete e.dataLabels))}),v.forEach(function(t,s){var c=t.length,d=[],m;if(c){if(e.sortByAngle(t,s-.5),0<e.maxLabelDistance){var v=Math.max(0,_-g-e.maxLabelDistance),S=Math.min(_+g+e.maxLabelDistance,n.plotHeight);t.forEach(function(e){0<e.labelDistance&&e.dataLabel&&(e.top=Math.max(0,_-g-e.labelDistance),e.bottom=Math.min(_+g+e.labelDistance,n.plotHeight),m=e.dataLabel.getBBox().height||21,e.distributeBox={target:e.labelPosition.natural.y-e.top+m/2,size:m,rank:e.y},d.push(e.distributeBox))}),v=S+m-v,o(d,v,v/5)}for(j=0;j<c;j++){if(x=t[j],E=x.labelPosition,w=x.dataLabel,A=!1===x.visible?`hidden`:`inherit`,k=v=E.natural.y,d&&u(x.distributeBox)&&(x.distributeBox.pos===void 0?A=`hidden`:(D=x.distributeBox.size,k=b.radialDistributionY(x))),delete x.positionIndex,r.justify)O=b.justify(x,g,h);else switch(r.alignTo){case`connectors`:O=b.alignToConnectors(t,s,a,p);break;case`plotEdges`:O=b.alignToPlotEdges(w,s,a,p);break;default:O=b.radialDistributionX(e,x,k,v)}w._attr={visibility:A,align:E.alignment},M=x.options.dataLabels||{},w._pos={x:O+f(M.x,r.x)+({left:i,right:-i}[E.alignment]||0),y:k+f(M.y,r.y)-10},E.final.x=O,E.final.y=k,f(r.crop,!0)&&(T=w.getBBox().width,v=null,O-T<i&&s===1?(v=Math.round(T-O+i),y[3]=Math.max(v,y[3])):O+T>a-i&&s===0&&(v=Math.round(O+T-a+i),y[1]=Math.max(v,y[1])),0>k-D/2?y[0]=Math.max(Math.round(-k+D/2),y[0]):k+D/2>l&&(y[2]=Math.max(Math.round(k+D/2-l),y[2])),w.sideOverflow=v)}}}),c(y)===0||this.verifyDataLabelOverflow(y))&&(this.placeDataLabels(),this.points.forEac
4h(function(t){if(M=d(r,t.options.dataLabels),S=f(M.connectorWidth,1)){var i;C=t.connector,(w=t.dataLabel)&&w._pos&&t.visible&&0<t.labelDistance?(A=w._attr.visibility,(i=!C)&&(t.connector=C=n.renderer.path().addClass(`highcharts-data-label-connector  highcharts-color-`+t.colorIndex+(t.className?` `+t.className:``)).add(e.dataLabelsGroup),n.styledMode||C.attr({"stroke-width":S,stroke:M.connectorColor||t.color||`#666666`})),C[i?`attr`:`animate`]({d:t.getConnectorPath()}),C.attr(`visibility`,A)):C&&(t.connector=C.destroy())}}))}function r(){this.points.forEach(function(e){var t=e.dataLabel,n;t&&e.visible&&((n=t._pos)?(t.sideOverflow&&(t._attr.width=Math.max(t.getBBox().width-t.sideOverflow,0),t.css({width:t._attr.width+`px`,textOverflow:(this.options.dataLabels.style||{}).textOverflow||`ellipsis`}),t.shortened=!0),t.attr(t._attr),t[t.moved?`animate`:`attr`](n),t.moved=!0):t&&t.attr({y:-9999})),delete e.distributeBox},this)}function i(e){var t=this.center,n=this.options,r=n.center,i=n.minSize||80,a=n.size!==null;if(!a){if(r[0]!==null)var o=Math.max(t[2]-Math.max(e[1],e[3]),i);else o=Math.max(t[2]-e[1]-e[3],i),t[0]+=(e[3]-e[1])/2;r[1]===null?(o=l(o,i,t[2]-e[0]-e[2]),t[1]+=(e[0]-e[2])/2):o=l(o,i,t[2]-Math.max(e[0],e[2])),o<t[2]?(t[2]=o,t[3]=Math.min(p(n.innerSize||0,o),o),this.translate(t),this.drawDataLabels&&this.drawDataLabels()):a=!0}return a}var m=[],h={radialDistributionY:function(e){return e.top+e.distributeBox.pos},radialDistributionX:function(e,t,n,r){return e.getX(n<t.top+2||n>t.bottom-2?r:n,t.half,t)},justify:function(e,t,n){return n[0]+(e.half?-1:1)*(t+e.labelDistance)},alignToPlotEdges:function(e,t,n,r){return e=e.getBBox().width,t?e+r:n-e-r},alignToConnectors:function(e,t,n,r){var i=0,a;return e.forEach(function(e){a=e.dataLabel.getBBox().width,a>i&&(i=a)}),t?i+r:n-i-r}};t.compose=function(t){e.compose(s),m.indexOf(t)===-1&&(m.push(t),t=t.prototype,t.dataLabelPositioners=h,t.alignDataLabel=a,t.drawDataLabels=n,t.placeDataLabels=r,t.verifyDataLabelOverflow=i)}})(m||={}),m}),t(n,`Extensions/OverlappingDataLabels.js`,[n[`Core/Chart/Chart.js`],n[`Core/Utilities.js`]],function(e,t){function n(e,t){var n=!1;if(e){var r=e.newOpacity;e.oldOpacity!==r&&(e.alignAttr&&e.placed?(e[r?`removeClass`:`addClass`](`highcharts-data-label-hidden`),n=!0,e.alignAttr.opacity=r,e[e.isOld?`animate`:`attr`](e.alignAttr,null,function(){t.styledMode||e.css({pointerEvents:r?`auto`:`none`})}),i(t,`afterHideOverlappingLabel`)):e.attr({opacity:r})),e.isOld=!0}return n}var r=t.addEvent,i=t.fireEvent,a=t.isArray,o=t.isNumber,s=t.objectEach,c=t.pick;r(e,`render`,function(){var e=this,t=[];(this.labelCollectors||[]).forEach(function(e){t=t.concat(e())}),(this.yAxis||[]).forEach(function(e){e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&s(e.stacking.stacks,function(e){s(e,function(e){e.label&&e.label.visibility!==`hidden`&&t.push(e.label)})})}),(this.series||[]).forEach(function(r){var i=r.options.dataLabels;r.visible&&(!1!==i.enabled||r._hasPointLabels)&&(i=function(r){return r.forEach(function(r){r.visible&&(a(r.dataLabels)?r.dataLabels:r.dataLabel?[r.dataLabel]:[]).forEach(function(i){var a=i.options;i.labelrank=c(a.labelrank,r.labelrank,r.shapeArgs&&r.shapeArgs.height),a.allowOverlap?(i.oldOpacity=i.opacity,i.newOpacity=1,n(i,e)):t.push(i)})})},i(r.nodes||[]),i(r.points))}),this.hideOverlappingLabels(t)}),e.prototype.hideOverlappingLabels=function(e){var t=this,r=e.length,a=t.renderer,s,c,l,u=!1,d=function(e){var t,n=e.box?0:e.padding||0,r=t=0,i;if(e&&(!e.alignAttr||e.placed)){var s=e.alignAttr||{x:e.attr(`x`),y:e.attr(`y`)},c=e.parentGroup;e.width||(t=e.getBBox(),e.width=t.width,e.height=t.height,t=a.fontMetrics(null,e.element).h);var l=e.width-2*n;return(i={left:`0`,center:`0.5`,right:`1`}[e.alignValue])?r=+i*l:o(e.x)&&Math.round(e.x)!==e.translateX&&(r=e.x-e.translateX),{x:s.x+(c.translateX||0)+n-(r||0),y:s.y+(c.translateY||0)+n-t,width:e.width-2*n,height:e.height-2*n}}};for(c=0;c<r;c++)(s=e[c])&&(s.oldOpacity=s.opacity,s.newOpacity=1,s.absoluteBox=d(s));for(e.sort(function(e,t){return(t.labelrank||0)-(e.labelrank||0)}),c=0;c<r;c++){var f=(d=e[c])&&d.absoluteBox;for(s=c+1;s<r;++s){var p=(l=e[s])&&l.absoluteBox;!f||!p||d===l||d.newOpacity===0||l.newOpacity===0||p.x>=f.x+f.width||p.x+p.width<=f.x||p.y>=f.y+f.height||p.y+p.height<=f.y||((d.labelrank<l.labelrank?d:l).newOpacity=0)}}e.forEach(function(e){n(e,t)&&(u=!0)}),u&&i(t,`afterHideAllOverlappingLabels`)}}),t(n,`Core/Responsive.js`,[n[`Core/Utilities.js`]],function(e){var t=e.extend,n=e.find,r=e.isArray,i=e.isObject,a=e.merge,o=e.objectEach,s=e.pick,c=e.splat,l=e.uniqueKey,u;return(function(e){var u=[];
4e.compose=function(e){return u.indexOf(e)===-1&&(u.push(e),t(e.prototype,d.prototype)),e};var d=function(){function e(){}return e.prototype.currentOptions=function(e){function t(e,a,s,l){var u;o(e,function(e,o){if(!l&&-1<n.collectionsWithUpdate.indexOf(o)&&a[o])for(e=c(e),s[o]=[],u=0;u<Math.max(e.length,a[o].length);u++)a[o][u]&&(e[u]===void 0?s[o][u]=a[o][u]:(s[o][u]={},t(e[u],a[o][u],s[o][u],l+1)));else i(e)?(s[o]=r(e)?[]:{},t(e,a[o]||{},s[o],l+1)):s[o]=a[o]===void 0?null:a[o]})}var n=this,a={};return t(e,this.options,a,0),a},e.prototype.matchResponsiveRule=function(e,t){var n=e.condition;(n.callback||function(){return this.chartWidth<=s(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=s(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=s(n.minWidth,0)&&this.chartHeight>=s(n.minHeight,0)}).call(this)&&t.push(e._id)},e.prototype.setResponsive=function(e,t){var r=this,i=this.options.responsive,o=this.currentResponsive,s=[];!t&&i&&i.rules&&i.rules.forEach(function(e){e._id===void 0&&(e._id=l()),r.matchResponsiveRule(e,s)},this),t=a.apply(void 0,s.map(function(e){return n((i||{}).rules||[],function(t){return t._id===e})}).map(function(e){return e&&e.chartOptions})),t.isResponsiveOptions=!0,s=s.toString()||void 0,s!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,e,!0),s?(o=this.currentOptions(t),o.isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:t,undoOptions:o},this.update(t,e,!0)):this.currentResponsive=void 0)},e}()})(u||={}),u}),t(n,`masters/highcharts.src.js`,[n[`Core/Globals.js`],n[`Core/Utilities.js`],n[`Core/DefaultOptions.js`],n[`Core/Animation/Fx.js`],n[`Core/Animation/AnimationUtilities.js`],n[`Core/Renderer/HTML/AST.js`],n[`Core/FormatUtilities.js`],n[`Core/Renderer/RendererUtilities.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Renderer/SVG/SVGRenderer.js`],n[`Core/Renderer/HTML/HTMLElement.js`],n[`Core/Renderer/HTML/HTMLRenderer.js`],n[`Core/Axis/Axis.js`],n[`Core/Axis/DateTimeAxis.js`],n[`Core/Axis/LogarithmicAxis.js`],n[`Core/Axis/PlotLineOrBand/PlotLineOrBand.js`],n[`Core/Axis/Tick.js`],n[`Core/Tooltip.js`],n[`Core/Series/Point.js`],n[`Core/Pointer.js`],n[`Core/MSPointer.js`],n[`Core/Legend/Legend.js`],n[`Core/Chart/Chart.js`],n[`Core/Series/Series.js`],n[`Core/Series/SeriesRegistry.js`],n[`Series/Column/ColumnSeries.js`],n[`Series/Column/ColumnDataLabel.js`],n[`Series/Pie/PieSeries.js`],n[`Series/Pie/PieDataLabel.js`],n[`Core/Series/DataLabel.js`],n[`Core/Responsive.js`],n[`Core/Color/Color.js`],n[`Core/Time.js`]],function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M){return e.animate=i.animate,e.animObject=i.animObject,e.getDeferredAnimation=i.getDeferredAnimation,e.setAnimation=i.setAnimation,e.stop=i.stop,e.timers=r.timers,e.AST=a,e.Axis=f,e.Chart=S,e.chart=S.chart,e.Fx=r,e.Legend=x,e.PlotLineOrBand=h,e.Point=v,e.Pointer=b.isRequired()?b:y,e.Series=C,e.SVGElement=c,e.SVGRenderer=l,e.Tick=g,e.Time=M,e.Tooltip=_,e.Color=j,e.color=j.parse,d.compose(l),u.compose(c),e.defaultOptions=n.defaultOptions,e.getOptions=n.getOptions,e.time=n.defaultTime,e.setOptions=n.setOptions,e.dateFormat=o.dateFormat,e.format=o.format,e.numberFormat=o.numberFormat,e.addEvent=t.addEvent,e.arrayMax=t.arrayMax,e.arrayMin=t.arrayMin,e.attr=t.attr,e.clearTimeout=t.clearTimeout,e.correctFloat=t.correctFloat,e.createElement=t.createElement,e.css=t.css,e.defined=t.defined,e.destroyObjectProperties=t.destroyObjectProperties,e.discardElement=t.discardElement,e.distribute=s.distribute,e.erase=t.erase,e.error=t.error,e.extend=t.extend,e.extendClass=t.extendClass,e.find=t.find,e.fireEvent=t.fireEvent,e.getMagnitude=t.getMagnitude,e.getStyle=t.getStyle,e.inArray=t.inArray,e.isArray=t.isArray,e.isClass=t.isClass,e.isDOMElement=t.isDOMElement,e.isFunction=t.isFunction,e.isNumber=t.isNumber,e.isObject=t.isObject,e.isString=t.isString,e.keys=t.keys,e.merge=t.merge,e.normalizeTickInterval=t.normalizeTickInterval,e.objectEach=t.objectEach,e.offset=t.offset,e.pad=t.pad,e.pick=t.pick,e.pInt=t.pInt,e.relativeLength=t.relativeLength,e.removeEvent=t.removeEvent,e.seriesType=w.seriesType,e.splat=t.splat,e.stableSort=t.stableSort,e.syncTimeout=t.syncTimeout,e.timeUnits=t.timeUnits,e.uniqueKey=t.uniqueKey,e.useSerialIds=t.useSerialIds,e.wrap=t.wrap,E.compose(T),k.compose(C),p.compose(f),m.compose(f),O.compose(D),h.compose(f),A.compose(S),e}),t(n,`Core/Axis/OrdinalAxis.js`,[n[`Core/Axis/Axis.js`],n[`Core/Globals.js`],n[`Core/Series/Series.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=r.addEvent,a=r.correctFloat,o=r.css,s=r.defined,c=r.error,l=r.pick,u=r.timeUnits,d=[],f;return(function(e){function r(e,t,n,r,i,a,o){i===void 0&&(i=[]),a===void 0&&(a=0);var l={},d=this.options.tickPixelInterval,f=this.chart.time,p=[],m,h,g=0,_=[],v=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!i||3>i.length||t===void 0)return f.getTimeTicks.apply(f,arguments);var y=i.length;for(m=0;m<y;m++){var b=m&&i[m-1]>n;
4if(i[m]<t&&(g=m),m===y-1||i[m+1]-i[m]>5*a||b){if(i[m]>v){for(h=f.getTimeTicks(e,i[g],i[m],r);h.length&&h[0]<=v;)h.shift();h.length&&(v=h[h.length-1]),p.push(_.length),_=_.concat(h)}g=m+1}if(b)break}if(h){if(h=h.info,o&&h.unitRange<=u.hour){for(m=_.length-1,g=1;g<m;g++)if(f.dateFormat(`%d`,_[g])!==f.dateFormat(`%d`,_[g-1])){l[_[g]]=`day`;var x=!0}x&&(l[_[0]]=`day`),h.higherRanks=l}h.segmentStarts=p,_.info=h}else c(12,!1,this.chart);if(o&&s(d)){for(h=_.length,f=[],g=[],m=void 0,x=h;x--;)p=this.translate(_[x]),m&&(g[x]=m-p),f[x]=m=p;for(g.sort(),g=g[Math.floor(g.length/2)],g<.6*d&&(g=null),x=_[h-1]>n?h-1:h,m=void 0;x--;)p=f[x],h=Math.abs(m-p),m&&h<.8*d&&(g===null||h<.8*g)?(l[_[x]]&&!l[_[x+1]]?(h=x+1,m=p):h=x,_.splice(h,1)):m=p}return _}function f(e){var t=this.ordinal.positions;if(!t)return e;var n=t.length-1;if(0>e)e=t[0];else if(e>n)e=t[n];else{n=Math.floor(e);var r=e-n}return r!==void 0&&t[n]!==void 0?t[n]+(r?r*(t[n+1]-t[n]):0):e}function p(e){var t=this.ordinal,n=t.positions;if(!n)return e;var r=(e-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;if(0<r&&r<this.left+this.len||(t.extendedOrdinalPositions||(t.extendedOrdinalPositions=t.getExtendedPositions()),n=t.extendedOrdinalPositions),n&&n.length){if(e=t.getIndexOfPoint(r,n),t=a(e%1),0<=e&&e<n.length-1)return n[Math.floor(e)]+t*(n[Math.ceil(e)]-n[Math.floor(e)]);t=n.length,r=n[0],n=n[t-1];var i=(n-r)/(t-1);return 0>e?r+i*e:n+i*(e-t)}return e}function m(t,n){var r=e.Additions.findIndexOf(t,n,!0);return t[r]===n?r:r+(n-t[r])/(t[r+1]-t[r])}function h(){this.ordinal||=new e.Additions(this)}function g(){this.isXAxis&&s(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&this.eventArgs.trigger!==`navigator`)&&(this.max+=this.options.overscroll,!this.isInternal&&s(this.userMin)&&(this.min+=this.options.overscroll))}function _(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function v(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function y(e){var t=this.xAxis[0],n=t.options.overscroll,r=e.originalEvent.chartX,i=this.options.chart.panning,a=!1;if(i&&i.type!==`y`&&t.options.ordinal&&t.series.length){var s=this.mouseDownX,c=t.getExtremes(),l=c.dataMax,u=c.min,d=c.max,f=this.hoverPoints,p=t.closestPointRange||t.ordinal&&t.ordinal.overscrollPointsRange;s=(s-r)/(t.translationSlope*(t.ordinal.slope||p)),p={ordinal:{positions:t.ordinal.getExtendedPositions()}};var m=t.index2val,h=t.val2lin,g=void 0,_=g=void 0,v=void 0;p.ordinal.positions?1<Math.abs(s)&&(f&&f.forEach(function(e){e.setState()}),0>s?(_=p,v=t.ordinal.positions?t:p):(_=t.ordinal.positions?t:p,v=p),g=v.ordinal.positions,l>g[g.length-1]&&g.push(l),this.fixedRange=d-u,g=t.navigatorAxis.toFixedRange(void 0,void 0,m.apply(_,[h.apply(_,[u,!0])+s]),m.apply(v,[h.apply(v,[d,!0])+s])),g.min>=Math.min(c.dataMin,u)&&g.max<=Math.max(l,d)+n&&t.setExtremes(g.min,g.max,!0,!1,{trigger:`pan`}),this.mouseDownX=r,o(this.container,{cursor:`move`})):a=!0}else a=!0;a||i&&/y/.test(i.type)?n&&(t.max=t.dataMax+n):e.preventDefault()}function b(){var e=this.xAxis;e&&e.options.ordinal&&(delete e.ordinal.index,delete e.ordinal.extendedOrdinalPositions)}function x(e,t){var n=this.ordinal,r=n.positions,i=n.slope,a=n.extendedOrdinalPositions;if(!r)return e;var o=r.length;if(r[0]<=e&&r[o-1]>=e)e=m(r,e);else{if(a||(a=n.getExtendedPositions&&n.getExtendedPositions(),n.extendedOrdinalPositions=a),!a||!a.length)return e;o=a.length,i||=(a[o-1]-a[0])/o,r=m(a,r[0]),e>=a[0]&&e<=a[o-1]?e=m(a,e)-r:e<a[0]?(e=a[0]-e,e=-r-e/i):(e-=a[o-1],e=e/i+o-r)}return t?e:i*(e||0)+n.offset}e.compose=function(e,t,n){if(d.indexOf(e)===-1){d.push(e);var a=e.prototype;a.getTimeTicks=r,a.index2val=f,a.lin2val=p,a.val2lin=x,a.ordinal2lin=a.val2lin,i(e,`afterInit`,h),i(e,`foundExtremes`,g),i(e,`afterSetScale`,_),i(e,`initialAxisTranslation`,v)}return d.indexOf(n)===-1&&(d.push(n),i(n,`pan`,y)),d.indexOf(t)===-1&&(d.push(t),i(t,`updatedData`,b)),e},e.Additions=function(){function e(e){this.index={},this.axis=e}return e.prototype.beforeSetTickPositions=function(){var e=this.axis,t=e.ordinal,n=e.getExtremes(),r=n.min,i=n.max,a=e.isXAxis&&!!e.options.breaks;n=e.options.ordinal;var o=e.chart.options.chart.ignoreHiddenSeries,s,c,u=[],d=Number.MAX_VALUE,f=!1;
4if(n||a){e.series.forEach(function(e,t){if(s=[],!(o&&!1===e.visible||!1===e.takeOrdinalPosition&&!a)&&(u=u.concat(e.processedXData),p=u.length,u.sort(function(e,t){return e-t}),d=Math.min(d,l(e.closestPointRange,d)),p)){for(t=0;t<p-1;)u[t]!==u[t+1]&&s.push(u[t+1]),t++;s[0]!==u[0]&&s.unshift(u[0]),u=s}});var p=u.length;if(2<p){var m=u[1]-u[0];for(c=p-1;c--&&!f;)u[c+1]-u[c]!==m&&(f=!0);!e.options.keepOrdinalPadding&&(u[0]-r>m||i-u[u.length-1]>m)&&(f=!0)}else e.options.overscroll&&(p===2?d=u[1]-u[0]:p===1?(d=e.options.overscroll,u=[u[0],u[0]+d]):d=t.overscrollPointsRange);f||e.forceOrdinal?(e.options.overscroll&&(t.overscrollPointsRange=d,u=u.concat(t.getOverscrollPositions())),t.positions=u,m=e.ordinal2lin(Math.max(r,u[0]),!0),c=Math.max(e.ordinal2lin(Math.min(i,u[u.length-1]),!0),1),t.slope=i=(i-r)/(c-m),t.offset=r-m*i):(t.overscrollPointsRange=l(e.closestPointRange,t.overscrollPointsRange),t.positions=e.ordinal.slope=t.offset=void 0)}e.isOrdinal=n&&f,t.groupIntervalFactor=null},e.findIndexOf=function(e,t,n){for(var r=0,i=e.length-1,a;r<i;)a=Math.ceil((r+i)/2),e[a]<=t?r=a:i=a-1;return e[r]===t||n?r:-1},e.prototype.getExtendedPositions=function(){var e=this,r=e.axis,i=r.constructor.prototype,a=r.chart,o=r.series[0].currentDataGrouping,s=o?o.count+o.unitName:`raw`,c=r.options.overscroll,l=r.getExtremes(),u=void 0,d=e.index;if(d||=e.index={},!d[s]){var f={series:[],chart:a,forceOrdinal:!1,getExtremes:function(){return{min:l.dataMin,max:l.dataMax+c}},getGroupPixelWidth:i.getGroupPixelWidth,getTimeTicks:i.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:i.ordinal2lin,getIndexOfPoint:i.getIndexOfPoint,val2lin:i.val2lin};f.ordinal.axis=f,r.series.forEach(function(r){u={xAxis:f,xData:r.xData.slice(),chart:a,destroyGroupedData:t.noop,getProcessedData:n.prototype.getProcessedData,applyGrouping:n.prototype.applyGrouping},u.xData=u.xData.concat(e.getOverscrollPositions()),u.options={dataGrouping:o?{firstAnchor:`firstPoint`,anchor:`middle`,lastAnchor:`lastPoint`,enabled:!0,forced:!0,approximation:`open`,units:[[o.unitName,[o.count]]]}:{enabled:!1}},f.series.push(u),r.processData.apply(u)}),u.closestPointRange!==u.basePointRange&&u.currentDataGrouping&&(f.forceOrdinal=!0),r.ordinal.beforeSetTickPositions.apply({axis:f}),d[s]=f.ordinal.positions}return d[s]},e.prototype.getGroupIntervalFactor=function(e,t,n){n=n.processedXData;var r=n.length,i=[],a=this.groupIntervalFactor;if(!a){for(a=0;a<r-1;a++)i[a]=n[a+1]-n[a];i.sort(function(e,t){return e-t}),i=i[Math.floor(r/2)],e=Math.max(e,n[0]),t=Math.min(t,n[r-1]),this.groupIntervalFactor=a=r*i/(t-e)}return a},e.prototype.getIndexOfPoint=function(t,n){var r=this.axis,i=this.positions?this.positions[0]:0,a=r.series[0].points&&r.series[0].points[0]&&r.series[0].points[0].plotX||r.minPixelPadding;return 1<r.series.length&&r.series.forEach(function(e){e.points&&s(e.points[0])&&s(e.points[0].plotX)&&e.points[0].plotX<a&&(a=e.points[0].plotX)}),t=(t-a)/(r.translationSlope*(this.slope||r.closestPointRange||this.overscrollPointsRange)),e.findIndexOf(n,i)+t},e.prototype.getOverscrollPositions=function(){var e=this.axis,t=e.options.overscroll,n=this.overscrollPointsRange,r=[],i=e.dataMax;if(s(n))for(;i<=e.dataMax+t;)i+=n,r.push(i);return r},e.prototype.postProcessTickInterval=function(e){var t=this.axis,n=this.slope;return n?t.options.breaks?t.closestPointRange||e:e/(n/t.closestPointRange):e},e}()})(f||={}),f}),t(n,`Series/DataModifyComposition.js`,[n[`Core/Axis/Axis.js`],n[`Core/Series/Point.js`],n[`Core/Series/Series.js`],n[`Core/Utilities.js`]],function(e,t,n,r){var i=t.prototype.tooltipFormatter,a=r.addEvent,o=r.arrayMax,s=r.arrayMin,c=r.correctFloat,l=r.defined,u=r.isArray,d=r.isNumber,f=r.isString,p=r.pick,m;return(function(e){function t(e,t,n){this.isXAxis||(this.series.forEach(function(n){e===`compare`&&typeof t!=`boolean`?n.setCompare(t,!1):e!==`cumulative`||f(t)||n.setCumulative(t,!1)}),p(n,!0)&&this.chart.redraw())}function n(e){var t=this,n=t.series.chart.numberFormatter,r=function(r){e=e.replace(`{point.`+r+`}`,(0<t[r]&&r===`change`?`+`:``)+n(t[r],p(t.series.tooltipOptions.changeDecimals,2)))};return l(t.change)&&r(`change`),l(t.cumulativeSum)&&r(`cumulativeSum`),i.apply(this,[e])}function r(){var e=this.options.compare;if(e===`percent`||e===`value`||this.options.cumulative){var t=new x(this);e===`percent`||e===`value`?t.initCompare(e):t.initCumulative()}this.dataModify=t}function m(e){e=e.dataExtremes;var t=e.activeYData;if(this.dataModify&&e){var n=void 0;this.options.compare?n=[this.dataModify.modifyValue(e.dataMin),this.dataModify.modifyValue(e.dataMax)]:this.options.cumulative&&u(t)&&2<=t.length&&(n=x.getCumulativeExtremes(t)),n&&(e.dataMin=s(n),e.dataMax=o(n))}}function h(e,t){this.options.compare=this.userOptions.compare=e,this.update({},p(t,!0)),!this.dataModify||e!==`value`&&e!==`percent`?this.points.forEac
4h(function(e){delete e.change}):this.dataModify.initCompare(e)}function g(){if(this.xAxis&&this.processedYData&&this.dataModify){var e=this.processedXData,t=this.processedYData,n=t.length,r=!0===this.options.compareStart?0:1,i=-1,a;for(this.pointArrayMap&&(i=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||`y`)),a=0;a<n-r;a++){var o=t[a]&&-1<i?t[a][i]:t[a];if(d(o)&&o!==0&&e[a+r]>=(this.xAxis.min||0)){this.dataModify.compareValue=o;break}}}}function _(e,t){this.setModifier(`compare`,e,t)}function v(e,t){e=p(e,!1),this.options.cumulative=this.userOptions.cumulative=e,this.update({},p(t,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(e){delete e.cumulativeSum})}function y(e,t){this.setModifier(`cumulative`,e,t)}var b=[];e.compose=function(e,i,o){if(b.indexOf(e)===-1){b.push(e);var s=e.prototype;s.setCompare=h,s.setCumulative=v,a(e,`afterInit`,r),a(e,`afterGetExtremes`,m),a(e,`afterProcessData`,g)}return b.indexOf(i)===-1&&(b.push(i),i=i.prototype,i.setCompare=_,i.setModifier=t,i.setCumulative=y),b.indexOf(o)===-1&&(b.push(o),o.prototype.tooltipFormatter=n),e};var x=function(){function e(e){this.series=e}return e.prototype.modifyValue=function(){return 0},e.getCumulativeExtremes=function(e){var t=1/0,n=-1/0;return e.reduce(function(e,r){return r=e+r,t=Math.min(t,r,e),n=Math.max(n,r,e),r}),[t,n]},e.prototype.initCompare=function(e){this.modifyValue=function(t,n){t===null&&(t=0);var r=this.compareValue;return t!==void 0&&r!==void 0?(t=e===`value`?t-r:t/r*100-(this.series.options.compareBase===100?0:100),n!==void 0&&(n=this.series.points[n])&&(n.change=t),t):0}},e.prototype.initCumulative=function(){this.modifyValue=function(e,t){if(e===null&&(e=0),e!==void 0&&t!==void 0){var n=0<t?this.series.points[t-1]:null;return n&&n.cumulativeSum&&(e=c(n.cumulativeSum+e)),(t=this.series.points[t])&&(t.cumulativeSum=e),e}return 0}},e}();e.Additions=x})(m||={}),m}),t(n,`Core/Axis/BrokenAxis.js`,[n[`Extensions/Stacking.js`],n[`Core/Utilities.js`]],function(e,t){var n=t.addEvent,r=t.find,i=t.fireEvent,a=t.isArray,o=t.isNumber,s=t.pick,c;return(function(t){function c(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function l(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function u(){var e=this.brokenAxis;if(e&&e.hasBreaks){for(var t=this.tickPositions,n=this.tickPositions.info,r=[],i=0;i<t.length;i++)e.isInAnyBreak(t[i])||r.push(t[i]);this.tickPositions=r,this.tickPositions.info=n}}function d(){this.brokenAxis||=new _(this)}function f(){var e=this.options.connectNulls,t=this.points,n=this.xAxis,r=this.yAxis;if(this.isDirty)for(var i=t.length;i--;){var a=t[i];a.visible=(a.y!==null||!1!==e)&&(n&&n.brokenAxis&&n.brokenAxis.isInAnyBreak(a.x,!0)||r&&r.brokenAxis&&r.brokenAxis.isInAnyBreak(a.y,!0))?!1:!1!==a.options.visible}}function p(){this.drawBreaks(this.xAxis,[`x`]),this.drawBreaks(this.yAxis,s(this.pointArrayMap,[`y`]))}function m(e,t){var n=this,r=n.points,a,c,l,u;if(e&&e.brokenAxis&&e.brokenAxis.hasBreaks){var d=e.brokenAxis;t.forEach(function(t){a=d&&d.breakArray||[],c=e.isXAxis?e.min:s(n.options.threshold,e.min),r.forEach(function(n){u=s(n[`stack`+t.toUpperCase()],n[t]),a.forEach(function(t){o(c)&&o(u)&&(l=!1,c<t.from&&u>t.to||c>t.from&&u<t.from?l=`pointBreak`:(c<t.from&&u>t.from&&u<t.to||c>t.from&&u>t.to&&u<t.from)&&(l=`pointInBreak`),l&&i(e,l,{point:n,brk:t}))})})})}}function h(){var t=this.currentDataGrouping,n=t&&t.gapSize;t=this.points.slice();var r=this.yAxis,i=this.options.gapSize,a=t.length-1,o;if(i&&0<a)for(this.options.gapUnit!==`value`&&(i*=this.basePointRange),n&&n>i&&n>=this.basePointRange&&(i=n),o=void 0;a--;)o&&!1!==o.visible||(o=t[a+1]),n=t[a],!1!==o.visible&&!1!==n.visible&&(o.x-n.x>i&&(o=(n.x+o.x)/2,t.splice(a+1,0,{isNull:!0,x:o}),r.stacking&&this.options.stacking&&(o=r.stacking.stacks[this.stackKey][o]=new e(r,r.options.stackLabels,!1,o,this.stack),o.total=0)),o=n);return this.getGraphPath(t)}var g=[];t.compose=function(e,t){if(g.indexOf(e)===-1&&(g.push(e),e.keepProps.push(`brokenAxis`),n(e,`init`,d),n(e,`afterInit`,c),n(e,`afterSetTickPositions`,u),n(e,`afterSetOptions`,l)),g.indexOf(t)===-1){g.push(t);var r=t.prototype;r.drawBreaks=m,r.gappedPath=h,n(t,`afterGeneratePoints`,f),n(t,`afterRender`,p)}return e};var _=function(){function e(e){this.hasBreaks=!1,this.axis=e}return e.isInBreak=function(e,t){var n=e.repeat||1/0,r=e.from,i=e.to-e.from;return t=t>=r?(t-r)%n:n-(r-t)%n,e.inclusive?t<=i:t<i&&t!==0},e.lin2Val=function(t){var n=this.brokenAxis;if(n&&=n.breakArray,!n||!o(t))return t;for(var r=0;r<n.length;r++){var i=n[r];if(i.from>=t)break;(i.to<t||e.isInBreak(i,t))&&(t+=i.len)}return t},e.val2Lin=function(t){var n=this.brokenAxis;if(n&&=n.breakArray,!n||!o(t))return t;for(var r=t,i=0;i<n.length;i++){var a=n[i];if(a.to<=t)r-=a.len;else if(a.from>=t)break;else if(e.isInBreak(a,t)){r-=t-a.from;break}}return r},e.prototype.findBreakAt=function(e,t){return r(t,function(t){return t.from<e&&e<t.to})},e.prototype.isInAnyBreak=function(t,n){var r=this.axis,i=r.options.breaks||[],a=i.length,c;if(a&&o(t)){for(;a--;)if(e.isInBreak(i[a],t)){var l=!0;c||=s(i[a].showPoints,!r.isXAxis)}var u=l&&n?l&&!c:l}return u},e.prototype.setBreaks=function(t,n){var r=this,c=r.axis,l=a(t)&&!!t.length;c.isDirty=r.hasBreaks!==l,r.hasBreaks=l,c.options.breaks=c.userOptions.breaks=t,c.forceRedraw=!0,c.series.forEac
4h(function(e){e.isDirty=!0}),l||c.val2lin!==e.val2Lin||(delete c.val2lin,delete c.lin2val),l&&(c.userOptions.ordinal=!1,c.lin2val=e.lin2Val,c.val2lin=e.val2Lin,c.setExtremes=function(e,t,n,i,a){if(r.hasBreaks){for(var o=this.options.breaks||[],s;s=r.findBreakAt(e,o);)e=s.to;for(;s=r.findBreakAt(t,o);)t=s.from;t<e&&(t=e)}c.constructor.prototype.setExtremes.call(this,e,t,n,i,a)},c.setAxisTranslation=function(){if(c.constructor.prototype.setAxisTranslation.call(this),r.unitLength=void 0,r.hasBreaks){var t=c.options.breaks||[],n=[],a=[],l=s(c.pointRangePadding,0),u=0,d,f=c.userMin||c.min,p=c.userMax||c.max,m;t.forEach(function(t){d=t.repeat||1/0,o(f)&&o(p)&&(e.isInBreak(t,f)&&(f+=t.to%d-f%d),e.isInBreak(t,p)&&(p-=p%d-t.from%d))}),t.forEach(function(e){if(g=e.from,d=e.repeat||1/0,o(f)&&o(p)){for(;g-d>f;)g-=d;for(;g<f;)g+=d;for(m=g;m<p;m+=d)n.push({value:m,move:`in`}),n.push({value:m+e.to-e.from,move:`out`,size:e.breakSize})}}),n.sort(function(e,t){return e.value===t.value?(e.move===`in`?0:1)-(t.move===`in`?0:1):e.value-t.value});var h=0,g=f;n.forEach(function(e){h+=e.move===`in`?1:-1,h===1&&e.move===`in`&&(g=e.value),h===0&&o(g)&&(a.push({from:g,to:e.value,len:e.value-g-(e.size||0)}),u+=e.value-g-(e.size||0))}),r.breakArray=a,o(f)&&o(p)&&o(c.min)&&(r.unitLength=p-f-u+l,i(c,`afterBreaks`),c.staticScale?c.transA=c.staticScale:r.unitLength&&(c.transA*=(p-c.min+l)/r.unitLength),l&&(c.minPixelPadding=c.transA*(c.minPointOffset||0)),c.min=f,c.max=p)}}),s(n,!0)&&c.chart.redraw()},e}();t.Additions=_})(c||={}),c}),t(n,`masters/modules/broken-axis.src.js`,[n[`Core/Globals.js`],n[`Core/Axis/BrokenAxis.js`]],function(e,t){t.compose(e.Axis,e.Series)}),t(n,`Extensions/DataGrouping.js`,[n[`Core/Axis/Axis.js`],n[`Core/Axis/DateTimeAxis.js`],n[`Core/FormatUtilities.js`],n[`Core/Globals.js`],n[`Core/Series/Point.js`],n[`Core/Series/Series.js`],n[`Core/Tooltip.js`],n[`Core/DefaultOptions.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s,c){var l=n.format,u=a.prototype;n=c.addEvent;var d=c.arrayMax,f=c.arrayMin,p=c.correctFloat,m=c.defined,h=c.error,g=c.extend,_=c.isNumber,v=c.merge,y=c.pick,b=r.approximations={sum:function(e){var t=e.length;if(!t&&e.hasNulls)var n=null;else if(t)for(n=0;t--;)n+=e[t];return n},average:function(e){var t=e.length;return e=b.sum(e),_(e)&&t&&(e=p(e/t)),e},averages:function(){var e=[];return[].forEach.call(arguments,function(t){e.push(b.average(t))}),e[0]===void 0?void 0:e},open:function(e){return e.length?e[0]:e.hasNulls?null:void 0},high:function(e){return e.length?d(e):e.hasNulls?null:void 0},low:function(e){return e.length?f(e):e.hasNulls?null:void 0},close:function(e){return e.length?e[e.length-1]:e.hasNulls?null:void 0},hlc:function(e,t,n){if(e=b.high(e),t=b.low(t),n=b.close(n),_(e)||_(t)||_(n))return[e,t,n]},ohlc:function(e,t,n,r){if(e=b.open(e),t=b.high(t),n=b.low(n),r=b.close(r),_(e)||_(t)||_(n)||_(r))return[e,t,n,r]},range:function(e,t){if(e=b.low(e),t=b.high(t),_(e)||_(t))return[e,t];if(e===null&&t===null)return null}};c=function(e,t,n,r){var i=this,a=i.data,o=i.options&&i.options.data,s=[],c=[],l=[],u=e.length,d=!!t,f=[],p=i.pointArrayMap,h=p&&p.length,g=[`x`].concat(p||[`y`]),y=this.options.dataGrouping&&this.options.dataGrouping.groupAll,x=0,S=0,C;r=typeof r==`function`?r:b[r]?b[r]:b[i.getDGApproximation&&i.getDGApproximation()||`average`],h?p.forEach(function(){f.push([])}):f.push([]);var w=h||1;for(C=0;C<=u&&!(e[C]>=n[0]);C++);for(;C<=u;C++){for(;n[x+1]!==void 0&&e[C]>=n[x+1]||C===u;){var T=n[x];i.dataGroupInfo={start:y?S:i.cropStart+S,length:f[0].length};var E=r.apply(i,f);for(i.pointClass&&!m(i.dataGroupInfo.options)&&(i.dataGroupInfo.options=v(i.pointClass.prototype.optionsToObject.call({series:i},i.options.data[i.cropStart+S])),g.forEach(function(e){delete i.dataGroupInfo.options[e]})),E!==void 0&&(s.push(T),c.push(E),l.push(i.dataGroupInfo)),S=C,T=0;T<w;T++)f[T].length=0,f[T].hasNulls=!1;if(x+=1,C===u)break}if(C===u)break;if(p){T=i.options.dataGrouping&&i.options.dataGrouping.groupAll?C:i.cropStart+C,E=a&&a[T]||i.pointClass.prototype.applyOptions.apply({series:i},[o[T]]);var D=void 0;for(T=0;T<h;T++)D=E[p[T]],_(D)?f[T].push(D):D===null&&(f[T].hasNulls=!0)}else T=d?t[C]:null,_(T)?f[0].push(T):T===null&&(f[0].hasNulls=!0)}return{groupedXData:s,groupedYData:c,groupMap:l}};var x={approximations:b,groupData:c},S=u.generatePoints,C={groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[`%A, %b %e, %H:%M:%S.%L`,`%A, %b %e, %H:%M:%S.%L`,`-%H:%M:%S.%L`],second:[`%A, %b %e, %H:%M:%S`,`%A, %b %e, %H:%M:%S`,`-%H:%M:%S`],minute:[`%A, %b %e, %H:%M`,`%A, %b %e, %H:%M`,`-%H:%M`],hour:[`%A, %b %e, %H:%M`,`%A, %b %e, %H:%M`,`-%H:%M`],day:[`%A, %b %e, %Y`,`%A, %b %e`,`-%A, %b %e, %Y`],week:[`Week from %A, %b %e, %Y`,`%A, %b %e`,`-%A, %b %e, %Y`],month:[`%B %Y`,`%B`,`-%B %Y`],year:[`%Y`,`%Y`,`-%Y`]}},w={line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},T=r.defaultDataGroupingUnits=[[`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]];return u.getDGApproximation=function(){return this.is(`arearange`)?`range`:this.is(`ohlc`)?`ohlc`:this.is(`hlc`)?`hlc`:this.is(`column`)?`sum`:`average`},u.groupData=c,u.applyGrouping=function(e){var n=this.chart,r=this.options.dataGrouping,i=!1!==this.allowDG&&r&&y(r.enabled,n.options.isStock),a=this.visible||!n.options.chart.ignoreHiddenSeries,o,s=this.currentDataGrouping,c=!1;if(i&&!this.requireSorting&&(this.requireSorting=c=!0),e=!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!e)==0||!i,c&&(this.requireSorting=!1),!e){this.destroyGroupedData(),i=r.groupAll?this.xData:this.processedXData;var l=r.groupAll?this.yData:this.processedYData;e=n.plotSizeX,c=this.xAxis;var d=c.options.ordinal,f=this.groupPixelWidth;if(f&&i&&i.length){this.isDirty=o=!0,this.points=null;var p=c.getExtremes(),g=p.min;p=p.max,d=d&&c.ordinal&&c.ordinal.getGroupIntervalFactor(g,p,this)||1,e=c.getTimeTicks(t.Additions.prototype.normalizeTimeTickInterval(f*(p-g)/e*d,r.units||T),Math.min(g,i[0]),Math.max(p,i[i.length-1]),c.options.startOfWeek,i,this.closestPointRange),f=u.groupData.apply(this,[i,l,e,r.approximation]),i=f.groupedXData,l=f.groupedYData,d=0,r&&r.smoothed&&i.length&&(r.firstAnchor=`firstPoint`,r.anchor=`middle`,r.lastAnchor=`lastPoint`,h(32,!1,n,{"dataGrouping.smoothed":`use dataGrouping.anchor`})),n=i;var v=this.options.dataGrouping;if(g=this.currentDataGrouping&&this.currentDataGrouping.gapSize,v&&this.xData&&g&&this.groupMap){var b=n.length-1,x=v.anchor,S=y(v.firstAnchor,x);if(v=y(v.lastAnchor,x),x&&x!==`start`){var C=g*{middle:.5,end:1}[x];for(x=n.length-1;x--&&0<x;)n[x]+=C}if(S&&S!==`start`&&this.xData[0]>=n[0]){x=this.groupMap[0].start,C=this.groupMap[0].length;var w=void 0;_(x)&&_(C)&&(w=x+(C-1)),n[0]={middle:n[0]+.5*g,end:n[0]+g,firstPoint:this.xData[0],lastPoint:w&&this.xData[w]}[S]}v&&v!==`start`&&g&&n[b]>=p-g&&(p=this.groupMap[this.groupMap.length-1].start,n[b]={middle:n[b]+.5*g,end:n[b]+g,firstPoint:p&&this.xData[p],lastPoint:this.xData[this.xData.length-1]}[v])}for(p=1;p<e.length;p++)e.info.segmentStarts&&e.info.segmentStarts.indexOf(p)!==-1||(d=Math.max(e[p]-e[p-1],d));p=e.info,p.gapSize=d,this.closestPointRange=e.info.totalRange,this.groupMap=f.groupMap,a&&(a=i,m(a[0])&&_(c.min)&&_(c.dataMin)&&a[0]<c.min&&((!m(c.options.min)&&c.min<=c.dataMin||c.min===c.dataMin)&&(c.min=Math.min(a[0],c.min)),c.dataMin=Math.min(a[0],c.dataMin)),m(a[a.length-1])&&_(c.max)&&_(c.dataMax)&&a[a.length-1]>c.max&&((!m(c.options.max)&&_(c.dataMax)&&c.max>=c.dataMax||c.max===c.dataMax)&&(c.max=Math.max(a[a.length-1],c.max)),c.dataMax=Math.max(a[a.length-1],c.dataMax))),r.groupAll&&(this.allGroupedData=l,r=this.cropData(i,l,c.min,c.max,1),i=r.xData,l=r.yData,this.cropStart=r.start),this.processedXData=i,this.processedYData=l}else this.groupMap=null;this.hasGroupedData=o,this.currentDataGrouping=p,this.preventGraphAnimation=(s&&s.totalRange)!==(p&&p.totalRange)}},u.destroyGroupedData=function(){this.groupedData&&(this.groupedData.forEach(function(e,t){e&&(this.groupedData[t]=e.destroy?e.destroy():null)},this),this.groupedData.length=0)},u.generatePoints=function(){S.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null},e.prototype.applyGrouping=function(e){var t=this;
4t.series.forEach(function(n){n.groupPixelWidth=void 0,n.groupPixelWidth=t.getGroupPixelWidth&&t.getGroupPixelWidth(),n.groupPixelWidth&&(n.hasProcessed=!0),n.applyGrouping(!!e.hasExtemesChanged)})},e.prototype.getGroupPixelWidth=function(){var e=this.series,t=e.length,n,r=0,i=!1,a;for(n=t;n--;)(a=e[n].options.dataGrouping)&&(r=Math.max(r,y(a.groupPixelWidth,C.groupPixelWidth)));for(n=t;n--;)(a=e[n].options.dataGrouping)&&(t=(e[n].processedXData||e[n].data).length,(e[n].groupPixelWidth||t>this.chart.plotSizeX/r||t&&a.forced)&&(i=!0));return i?r:0},e.prototype.setDataGrouping=function(t,n){var r;if(n=y(n,!0),t||={forced:!1,units:null},this instanceof e)for(r=this.series.length;r--;)this.series[r].update({dataGrouping:t},!1);else this.chart.options.series.forEach(function(e){e.dataGrouping=t},!1);this.ordinal&&(this.ordinal.slope=void 0),n&&this.chart.redraw()},n(e,`postProcessData`,e.prototype.applyGrouping),n(i,`update`,function(){if(this.dataGroup)return h(24,!1,this.series.chart),!1}),n(o,`headerFormatter`,function(e){var t=this.chart,n=t.time,r=e.labelConfig,i=r.series,a=i.tooltipOptions,o=i.options.dataGrouping,s=a.xDateFormat,c=i.xAxis,u=a[e.isFooter?`footerFormat`:`headerFormat`];if(c&&c.options.type===`datetime`&&o&&_(r.key)){var d=i.currentDataGrouping;if(o=o.dateTimeLabelFormats||C.dateTimeLabelFormats,d){if(a=o[d.unitName],d.count===1)s=a[0];else{s=a[1];var f=a[2]}}else!s&&o&&c.dateTime&&(s=c.dateTime.getXDateFormat(r.x,a.dateTimeLabelFormats));s=n.dateFormat(s,r.key),f&&(s+=n.dateFormat(f,r.key+d.totalRange-1)),i.chart.styledMode&&(u=this.styledModeFormat(u)),e.text=l(u,{point:g(r.point,{key:s}),series:i},t),e.preventDefault()}}),n(a,`destroy`,u.destroyGroupedData),n(a,`afterSetOptions`,function(e){e=e.options;var t=this.type,n=this.chart.options.plotOptions,r=s.defaultOptions.plotOptions[t].dataGrouping,i=this.useCommonDataGrouping&&C;if(n&&(w[t]||i)){r||=v(C,w[t]);var a=this.chart.rangeSelector;e.dataGrouping=v(i,r,n.series&&n.series.dataGrouping,n[t].dataGrouping,this.userOptions.dataGrouping,!e.isInternal&&a&&_(a.selected)&&a.buttonOptions[a.selected].dataGrouping)}}),n(e,`afterSetScale`,function(){this.series.forEach(function(e){e.hasProcessed=!1})}),r.dataGrouping=x,x}),t(n,`Series/HLC/HLCPoint.js`,[n[`Core/Series/SeriesRegistry.js`]],function(e){var t=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();return function(e){function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.close=void 0,t.high=void 0,t.low=void 0,t.options=void 0,t.plotClose=void 0,t.series=void 0,t}return t(n,e),n}(e.seriesTypes.column.prototype.pointClass)}),t(n,`Series/HLC/HLCSeries.js`,[n[`Series/HLC/HLCPoint.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.seriesTypes.column,a=n.extend,o=n.merge;return n=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t.yData=void 0,t}return r(t,e),t.prototype.extendStem=function(e,t,n){var r=e[0];e=e[1],typeof r[2]==`number`&&(r[2]=Math.max(n+t,r[2])),typeof e[2]==`number`&&(e[2]=Math.min(n-t,e[2]))},t.prototype.getPointPath=function(e,t){t=t.strokeWidth();var n=e.series,r=t%2/2,i=Math.round(e.plotX)-r,a=Math.round(e.shapeArgs.width/2),o=[[`M`,i,Math.round(e.yBottom)],[`L`,i,Math.round(e.plotHigh)]];return e.close!==null&&(e=Math.round(e.plotClose)+r,o.push([`M`,i,e],[`L`,i+a,e]),n.extendStem(o,t/2,e)),o},t.prototype.drawSinglePoint=function(e){var t=e.series,n=t.chart,r=e.graphic,i=!r;e.plotY!==void 0&&(r||(e.graphic=r=n.renderer.path().add(t.group)),n.styledMode||r.attr(t.pointAttribs(e,e.selected&&`select`)),t=t.getPointPath(e,r),r[i?`attr`:`animate`]({d:t}).addClass(e.getClassName(),!0))}
4,t.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.options.stacking=void 0},t.prototype.pointAttribs=function(t,n){return t=e.prototype.pointAttribs.call(this,t,n),delete t.fill,t},t.prototype.toYData=function(e){return[e.high,e.low,e.close]},t.prototype.translate=function(){var t=this,n=t.yAxis,r=this.pointArrayMap&&this.pointArrayMap.slice()||[],i=r.map(function(e){return`plot`+(e.charAt(0).toUpperCase()+e.slice(1))});i.push(`yBottom`),r.push(`low`),e.prototype.translate.apply(t),t.points.forEach(function(e){r.forEach(function(r,a){r=e[r],r!==null&&(t.dataModify&&(r=t.dataModify.modifyValue(r)),e[i[a]]=n.toPixels(r,!0))}),e.tooltipPos[1]=e.plotHigh+n.pos-t.chart.plotTop})},t.defaultOptions=o(i.defaultOptions,{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}),t}(i),a(n.prototype,{animate:null,directTouch:!1,pointArrayMap:[`high`,`low`,`close`],pointAttrToOptions:{stroke:`color`,"stroke-width":`lineWidth`},pointValKey:`close`}),n.prototype.pointClass=e,t.registerSeriesType(`hlc`,n),n}),t(n,`Series/OHLC/OHLCPoint.js`,[n[`Core/Series/SeriesRegistry.js`]],function(e){var t=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();return function(e){function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.open=void 0,t.options=void 0,t.plotOpen=void 0,t.series=void 0,t}return t(n,e),n.prototype.getClassName=function(){return e.prototype.getClassName.call(this)+(this.open<this.close?` highcharts-point-up`:` highcharts-point-down`)},n.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)},n.prototype.resolveColor=function(){e.prototype.resolveColor.call(this),this.resolveUpColor()},n.prototype.getZone=function(){var t=e.prototype.getZone.call(this);return this.resolveUpColor(),t},n.prototype.applyOptions=function(){return e.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},n}(e.seriesTypes.hlc.prototype.pointClass)}),t(n,`Series/OHLC/OHLCSeries.js`,[n[`Series/OHLC/OHLCPoint.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.series,a=t.seriesTypes.hlc,o=n.addEvent,s=n.extend,c=n.merge,l=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(t,e),t.prototype.getPointPath=function(t,n){var r=e.prototype.getPointPath.call(this,t,n);n=n.strokeWidth();var i=n%2/2,a=Math.round(t.plotX)-i,o=Math.round(t.shapeArgs.width/2);return t.open!==null&&(t=Math.round(t.plotOpen)+i,r.push([`M`,a,t],[`L`,a-o,t]),e.prototype.extendStem.call(this,r,n/2,t)),r},t.prototype.pointAttribs=function(t,n){n=e.prototype.pointAttribs.call(this,t,n);var r=this.options;return delete n.fill,!t.options.color&&r.upColor&&t.open<t.close&&(n.stroke=r.upColor),n},t.prototype.toYData=function(e){return[e.open,e.high,e.low,e.close]},t.defaultOptions=c(a.defaultOptions,{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/>`}}),t}(a);return s(l.prototype,{pointArrayMap:[`open`,`high`,`low`,`close`]}),l.prototype.pointClass=e,t.registerSeriesType(`ohlc`,l),o(i,`init`,function(e){e=e.options,e.useOhlcData&&e.id!==`highcharts-navigator-series`&&s(this,{pointV
4alKey:l.prototype.pointValKey,pointArrayMap:l.prototype.pointArrayMap,toYData:l.prototype.toYData})}),o(i,`afterSetOptions`,function(e){e=e.options;var t=e.dataGrouping;t&&e.useOhlcData&&e.id!==`highcharts-navigator-series`&&(t.approximation=`ohlc`)}),l}),t(n,`Series/Candlestick/CandlestickSeries.js`,[n[`Core/DefaultOptions.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=e.defaultOptions;e=t.seriesTypes;var a=e.column,o=e.ohlc,s=n.merge;return n=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(t,e),t.prototype.pointAttribs=function(e,t){var n=a.prototype.pointAttribs.call(this,e,t),r=this.options,i=e.open<e.close,o=r.lineColor||this.color,s=e.color||this.color;return n[`stroke-width`]=r.lineWidth,n.fill=e.options.color||i&&r.upColor||s,n.stroke=e.options.lineColor||i&&r.upLineColor||o,t&&(e=r.states[t],n.fill=e.color||n.fill,n.stroke=e.lineColor||n.stroke,n[`stroke-width`]=e.lineWidth||n[`stroke-width`]),n},t.prototype.drawPoints=function(){var e=this,t=e.chart,n=e.yAxis.reversed;e.points.forEach(function(r){var i=r.graphic,a=!i;if(r.plotY!==void 0){i||(r.graphic=i=t.renderer.path().add(e.group)),e.chart.styledMode||i.attr(e.pointAttribs(r,r.selected&&`select`)).shadow(e.options.shadow);var o=i.strokeWidth()%2/2,s=Math.round(r.plotX)-o,c=r.plotOpen,l=r.plotClose,u=Math.min(c,l);c=Math.max(c,l);var d=Math.round(r.shapeArgs.width/2);l=n?c!==r.yBottom:Math.round(u)!==Math.round(r.plotHigh);var f=n?Math.round(u)!==Math.round(r.plotHigh):c!==r.yBottom;u=Math.round(u)+o,c=Math.round(c)+o,o=[],o.push([`M`,s-d,c],[`L`,s-d,u],[`L`,s+d,u],[`L`,s+d,c],[`Z`],[`M`,s,u],[`L`,s,l?Math.round(n?r.yBottom:r.plotHigh):u],[`M`,s,c],[`L`,s,f?Math.round(n?r.plotHigh:r.yBottom):c]),i[a?`attr`:`animate`]({d:o}).addClass(r.getClassName(),!0)}})},t.defaultOptions=s(o.defaultOptions,i.plotOptions,{states:{hover:{lineWidth:2}},tooltip:i.plotOptions.ohlc.tooltip,threshold:null,lineColor:`#000000`,lineWidth:1,upColor:`#ffffff`,stickyTracking:!0}),t}(o),t.registerSeriesType(`candlestick`,n),n}),t(n,`Series/Flags/FlagsPoint.js`,[n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t){var n=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=t.isNumber;return function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.options=void 0,t.series=void 0,t}return n(t,e),t.prototype.isValid=function(){return r(this.y)||this.y===void 0},t.prototype.hasNewShapeType=function(){var e=this.options.shape||this.series.options.shape;return this.graphic&&e&&e!==this.graphic.symbolKey},t}(e.seriesTypes.column.prototype.pointClass)}),t(n,`Series/OnSeriesComposition.js`,[n[`Series/Column/ColumnSeries.js`],n[`Core/Series/Series.js`],n[`Core/Utilities.js`]],function(e,t,n){var r=e.prototype,i=t.prototype,a=n.defined,o=n.stableSort,s;return(function(e){function t(){return i.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this)}function n(){r.translate.apply(this);var e=this,t=e.options,n=e.chart,i=e.points,s=t.onSeries,c=(s&&=n.get(s))&&s.options.step,l=s&&s.points,u=n.inverted,d=e.xAxis,f=e.yAxis;n=i.length-1;var p;t=t.onKey||`y`;var m=l&&l.length,h=0,g;if(s&&s.visible&&m){h=(s.pointXOffset||0)+(s.barW||0)/2;var _=s.currentDataGrouping,v=l[m-1].x+(_?_.totalRange:0);for(o(i,function(e,t){return e.x-t.x}),t=`plot`+t[0].toUpperCase()+t.substr(1);m--&&i[n];){var y=l[m];if(_=i[n],_.y=y.y,y.x<=_.x&&y[t]!==void 0){if(_.x<=v&&(_.plotY=y[t],y.x<_.x&&!c&&(g=l[m+1])&&g[t]!==void 0)){var b=(_.x-y.x)/(g.x-y.x);_.plotY+=b*(g[t]-y[t]),_.y+=b*(g.y-y.y)}if(n--,m++,0>n)break}}}i.forEach(function(t,n){if(t.plotX+=h,(t.plotY===void 0||u)&&(0<=t.plotX&&t.plotX<=d.len?u?(t.plotY=d.translate(t.x,0,1,0,1),t.plotX=a(t.y)?f.translate(t.y,0,0,0,1):0):t.plotY=(d.opposite?0:e.yAxis.len)+d.offset:t.shapeArgs={}),(p=i[n-1])&&p.plotX===t.plotX){p.stackIndex===void 0&&(p.stackIndex=0);var r=p.stackIndex+1}t.stackIndex=r}),this.onSeries=s}var s=[];e.compose=function(e){if(s.indexOf(e)===-1){s.push(e);var r=e.prototype;r.getPlotBox=t,r.translate=n}return e},e.getPlotBox=t,e.translate=n})(s||={}),s}),t(n,`Series/Flags/FlagsSymbols.js`,[n[`Core/Renderer/RendererRegistry.js`],n[`Core/Renderer/SVG/SVGRenderer.js`]],function(e,t){function n(e){r[e+`pin`]=function(t,n,i,a,o){var s=o&&o.anchorX;o&&=o.anchorY,e===`circle`&&a>i&&(t-=Math.round((a-i)/2),i=a);var c=r[e](t,n,i,a);if(s&&o){var l=s;e===`circle`?l=t+i/2:(t=c[0],i=c[1],t[0]===`M`&&i[0]===`L`&&(l=(t[1]+i[1])/2)),c.push([`M`,l,n>o?n:n+a],[`L`,s,o]),c=c.concat(r.circle(s-1,o-1,2,2))}return c}}
4var r=t.prototype.symbols;return r.flag=function(e,t,n,i,a){var o=a&&a.anchorX||e;a=a&&a.anchorY||t;var s=r.circle(o-1,a-1,2,2);return s.push([`M`,o,a],[`L`,e,t+i],[`L`,e,t],[`L`,e+n,t],[`L`,e+n,t+i],[`L`,e,t+i],[`Z`]),s},n(`circle`),n(`square`),e=e.getRendererType(),e!==t&&(e.prototype.symbols.circlepin=r.circlepin,e.prototype.symbols.flag=r.flag,e.prototype.symbols.squarepin=r.squarepin),r}),t(n,`Series/Flags/FlagsSeries.js`,[n[`Series/Flags/FlagsPoint.js`],n[`Core/Globals.js`],n[`Series/OnSeriesComposition.js`],n[`Core/Renderer/RendererUtilities.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o){var s=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();t=t.noop;var c=r.distribute,l=i.series,u=i.seriesTypes.column,d=o.addEvent,f=o.defined;r=o.extend;var p=o.merge,m=o.objectEach,h=o.wrap;return o=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return s(t,e),t.prototype.animate=function(e){e&&this.setClip()},t.prototype.drawPoints=function(){var e=this.points,t=this.chart,n=t.renderer,r=t.inverted,i=this.options,o=i.y,s,l=this.yAxis,u={},d=[];for(s=e.length;s--;){var g=e[s],_=(r?g.plotY:g.plotX)>this.xAxis.len,v=g.plotX,y=g.stackIndex,b=g.options.shape||i.shape,x=g.plotY;x!==void 0&&(x=g.plotY+o-(y!==void 0&&y*i.stackDistance)),g.anchorX=y?void 0:g.plotX;var S=y?void 0:g.plotY,C=b!==`flag`;y=g.graphic,x!==void 0&&0<=v&&!_?(y&&g.hasNewShapeType()&&(y=y.destroy()),y||(y=g.graphic=n.label(``,null,null,b,null,null,i.useHTML).addClass(`highcharts-point`).add(this.markerGroup),g.graphic.div&&(g.graphic.div.point=g),y.isNew=!0),y.attr({align:C?`center`:`left`,width:i.width,height:i.height,"text-align":i.textAlign}),t.styledMode||y.attr(this.pointAttribs(g)).css(p(i.style,g.style)).shadow(i.shadow),0<v&&(v-=y.strokeWidth()%2),b={y:x,anchorY:S},i.allowOverlapX&&(b.x=v,b.anchorX=g.anchorX),y.attr({text:g.options.title||i.title||`A`})[y.isNew?`attr`:`animate`](b),i.allowOverlapX||(u[g.plotX]?u[g.plotX].size=Math.max(u[g.plotX].size,y.width):u[g.plotX]={align:C?.5:0,size:y.width,target:v,anchorX:v}),g.tooltipPos=[v,x+l.pos-t.plotTop]):y&&(g.graphic=y.destroy())}if(!i.allowOverlapX){var w=100;m(u,function(e){e.plotX=e.anchorX,d.push(e),w=Math.max(e.size,w)}),c(d,r?l.len:this.xAxis.len,w),e.forEach(function(e){var t=e.graphic&&u[e.plotX];t&&(e.graphic[e.graphic.isNew?`attr`:`animate`]({x:t.pos+t.align*t.size,anchorX:e.anchorX}),f(t.pos)?e.graphic.isNew=!1:(e.graphic.attr({x:-9999,anchorX:-9999}),e.graphic.isNew=!0))})}i.useHTML&&h(this.markerGroup,`on`,function(e){return a.prototype.on.apply(e.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},t.prototype.drawTracker=function(){var t=this.points;e.prototype.drawTracker.call(this),t.forEach(function(e){var n=e.graphic;n&&(e.unbindMouseOver&&e.unbindMouseOver(),e.unbindMouseOver=d(n.element,`mouseover`,function(){0<e.stackIndex&&!e.raised&&(e._y=n.y,n.attr({y:e._y-8}),e.raised=!0),t.forEach(function(t){t!==e&&t.raised&&t.graphic&&(t.graphic.attr({y:t._y}),t.raised=!1)})}))})},t.prototype.pointAttribs=function(e,t){var n=this.options,r=e&&e.color||this.color,i=n.lineColor,a=e&&e.lineWidth;return e=e&&e.fillColor||n.fillColor,t&&(e=n.states[t].fillColor,i=n.states[t].lineColor,a=n.states[t].lineWidth),{fill:e||r,stroke:i||r,"stroke-width":a||n.lineWidth||0}},t.prototype.setClip=function(){l.prototype.setClip.apply(this,arguments),!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},t.defaultOptions=p(u.defaultOptions,{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:`#ccd6eb`}},style:{fontSize:`11px`,fontWeight:`bold`}}),t}(u),n.compose(o),r(o.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:e,sorted:!1,takeOrdinalPosition:!1,trackerGroups:[`markerGroup`],buildKDTree:t,init:l.prototype.init,invertGroups:t}),i.registerSeriesType(`flags`,o),o}),t(n,`Core/Axis/ScrollbarAxis.js`,[n[`Core/Utilities.js`]],function(e){var t=e.addEvent,n=e.defined,r=e.pick;return function(){function e(){}return e.compose=function(i,a){if(e.composed.indexOf(i)===-1)e.composed.push(i);else return i;var o=function(e){var t=r(e.options&&e.options.min,e.min),i=r(e.options&&e.options.max,e.max);return{axisMin:t,axisMax:i,scrollMin:n(e.dataMin)?Math.min(t,e.min,e.dataMin,r(e.threshold,1/0)):t,scrollMax:n(e.dataMax)?Math.max(i,e.max,e.dataMax,r(e.threshold,-1/0)):i}};return t(i,`afterInit`,function(){var e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new a(e.chart.renderer,e.options.scrollbar,e.chart),t(e.scrollbar,`changed`,function(t){var r=o(e),i=r.axisMax,a=r.scrollMin,s=r.scrollMax-a;n(r.axisMin)&&n(i)&&(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(r=a+s*this.to,a+=s*this.from):(r=a+s*(1-this.from),a+=s*(1-this.to)),this.shouldUpdateExtremes(t.DOMType)?e.setExtremes(a,r,!0,t.DOMType!==`mousemove`&&t.DOMType!==`touchmove`,t):this.setRange(this.from,this.to))}))}),t(i,`afterRender`,function(){var e=o(this),t=e.scrollMin,r=e.scrollMax;e=this.scrollbar;var i=this.axisTitleMargin+(this.titleOffset||0),a=this.chart.scrollbarsOffsets,s=this.options.margin||0;e&&(this.horiz?(this.opposite||(a[1]+=i),e.position(this.left,this.top+this.height+2+a[1]-(this.opposite?s:0),this.width,this.height),this.opposite||(a[1]+=s),i=1):(this.opposite&&(a[0]+=i),e.position(e.options.opposite?this.left+this.width+2+a[0]-(this.opposite?0:s):this.opposite?0:s,this.top,this.width,this.height),this.opposite&&(a[0]+=s),i=0),a[i]+=e.size+e.options.margin,isNaN(t)||isNaN(r)||!n(this.min)||!n(this.max)||this.min===this.max?e.setRange(0,1):(a=(this.min-t)/(r-t),t=(this.max-t)/(r-t),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(a,t):e.setRange(1-t,1-a)))}),t(i,`afterGetOffset`,function(){var e=this.scrollbar&&!this.scrollbar.options.opposite;e=this.horiz?2:e?3:1;var t=this.scrollbar;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=t.size+t.options.margin)}),i},e.composed=[],e}()}),t(n,`Core/ScrollbarDefaults.js`,[n[`Core/Globals.js`]],function(e){return{height:e.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroun
4dColor:`#cccccc`,barBorderWidth:1,barBorderColor:`#cccccc`,buttonArrowColor:`#333333`,buttonBackgroundColor:`#e6e6e6`,buttonBorderColor:`#cccccc`,buttonBorderWidth:1,rifleColor:`#333333`,trackBackgroundColor:`#f2f2f2`,trackBorderColor:`#f2f2f2`,trackBorderWidth:1}}),t(n,`Core/Scrollbar.js`,[n[`Core/DefaultOptions.js`],n[`Core/Globals.js`],n[`Core/Axis/ScrollbarAxis.js`],n[`Core/ScrollbarDefaults.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i){var a=e.defaultOptions,o=i.addEvent,s=i.correctFloat,c=i.defined,l=i.destroyObjectProperties,u=i.fireEvent,d=i.merge,f=i.pick,p=i.removeEvent;return e=function(){function e(e,t,n){this._events=[],this.chart=void 0,this.from=this.chartY=this.chartX=0,this.scrollbar=this.renderer=this.options=this.group=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.to=this.size=this.scrollbarTop=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.y=this.x=0,this.init(e,t,n)}return e.compose=function(t){n.compose(t,e)},e.swapXY=function(e,t){return t&&e.forEach(function(e){for(var t=e.length,n,r=0;r<t;r+=2)n=e[r+1],typeof n==`number`&&(e[r+1]=e[r+2],e[r+2]=n)}),e},e.prototype.addEvents=function(){var e=this.options.inverted?[1,0]:[0,1],n=this.scrollbarButtons,r=this.scrollbarGroup.element,i=this.track.element,a=this.mouseDownHandler.bind(this),s=this.mouseMoveHandler.bind(this),c=this.mouseUpHandler.bind(this);e=[[n[e[0]].element,`click`,this.buttonToMinClick.bind(this)],[n[e[1]].element,`click`,this.buttonToMaxClick.bind(this)],[i,`click`,this.trackClick.bind(this)],[r,`mousedown`,a],[r.ownerDocument,`mousemove`,s],[r.ownerDocument,`mouseup`,c]],t.hasTouch&&e.push([r,`touchstart`,a],[r.ownerDocument,`touchmove`,s],[r.ownerDocument,`touchend`,c]),e.forEach(function(e){o.apply(null,e)}),this._events=e},e.prototype.buttonToMaxClick=function(e){var t=(this.to-this.from)*f(this.options.step,.2);this.updatePosition(this.from+t,this.to+t),u(this,`changed`,{from:this.from,to:this.to,trigger:`scrollbar`,DOMEvent:e})},e.prototype.buttonToMinClick=function(e){var t=s(this.to-this.from)*f(this.options.step,.2);this.updatePosition(s(this.from-t),s(this.to-t)),u(this,`changed`,{from:this.from,to:this.to,trigger:`scrollbar`,DOMEvent:e})},e.prototype.cursorToScrollbarPosition=function(e){var t=this.options;return t=t.minWidth>this.calculatedWidth?t.minWidth:0,{chartX:(e.chartX-this.x-this.xOffset)/(this.barWidth-t),chartY:(e.chartY-this.y-this.yOffset)/(this.barWidth-t)}},e.prototype.destroy=function(){var e=this,t=e.chart.scroller;e.removeEvents(),[`track`,`scrollbarRifles`,`scrollbar`,`scrollbarGroup`,`group`].forEach(function(t){e[t]&&e[t].destroy&&(e[t]=e[t].destroy())}),t&&e===t.scrollbar&&(t.scrollbar=null,l(t.scrollbarButtons))},e.prototype.drawScrollbarButton=function(t){var n=this.renderer,r=this.scrollbarButtons,i=this.options,a=this.size,o=n.g().add(this.group);r.push(o),o=n.rect().addClass(`highcharts-scrollbar-button`).add(o),this.chart.styledMode||o.attr({stroke:i.buttonBorderColor,"stroke-width":i.buttonBorderWidth,fill:i.buttonBackgroundColor}),o.attr(o.crisp({x:-.5,y:-.5,width:a+1,height:a+1,r:i.buttonBorderRadius},o.strokeWidth())),o=n.path(e.swapXY([[`M`,a/2+(t?-1:1),a/2-3],[`L`,a/2+(t?-1:1),a/2+3],[`L`,a/2+(t?2:-2),a/2]],i.vertical)).addClass(`highcharts-scrollbar-arrow`).add(r[t]),this.chart.styledMode||o.attr({fill:i.buttonArrowColor})},e.prototype.init=function(e,t,n){this.scrollbarButtons=[],this.renderer=e,this.userOptions=t,this.options=d(r,a.scrollbar,t),this.chart=n,this.size=f(this.options.size,this.options.height),t.enabled&&(this.render(),this.addEvents())},e.prototype.mouseDownHandler=function(e){e=this.chart.pointer.normalize(e),e=this.cursorToScrollbarPosition(e),this.chartX=e.chartX,this.chartY=e.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},e.prototype.mouseMoveHandler=function(e){var t=this.chart.pointer.normalize(e),n=this.options.vertical?`chartY`:`chartX`,r=this.initPositions||[];!this.grabbedCenter||e.touches&&e.touches[0][n]===0||(t=this.cursorToScrollbarPosition(t)[n],n=this[n],n=t-n,this.hasDragged=!0,this.updatePosition(r[0]+n,r[1]+n),this.hasDragged&&u(this,`changed`,{from:this.from,to:this.to,trigger:`scrollbar`,DOMType:e.type,DOMEvent:e}))},e.prototype.mouseUpHandler=function(e){this.hasDragged&&u(this,`changed`,{from:this.from,to:this.to,trigger:`scrollbar`,DOMType:e.type,DOMEvent:e}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},e.prototype.position=function(e,t,n,r){var i=this.options.vertical,a=this.rendered?`animate`:`attr`,o=0;this.x=e,this.y=t+this.trackBorderWidth,this.width=n,this.xOffset=this.height=r,this.yOffset=o,i?(this.width=this.yOffset=n=o=this.size,this.xOffset=t=0,this.barWidth=r-2*n,this.x=e+=this.options.margin):(this.height=this.xOffset=r=t=this.size,this.barWidth=n-2*r,this.y+=this.options.margin),this.group[a]({translateX:e,translateY:this.y}),this.track[a]({width:n,height:r}),this.scrollbarButtons[1][a]({translateX:i?0:n-t,translateY:i?r-o:0})}
4,e.prototype.removeEvents=function(){this._events.forEach(function(e){p.apply(null,e)}),this._events.length=0},e.prototype.render=function(){var t=this.renderer,n=this.options,r=this.size,i=this.chart.styledMode,a=t.g(`scrollbar`).attr({zIndex:n.zIndex,translateY:-99999}).add();this.group=a,this.track=t.rect().addClass(`highcharts-scrollbar-track`).attr({x:0,r:n.trackBorderRadius||0,height:r,width:r}).add(a),i||this.track.attr({fill:n.trackBackgroundColor,stroke:n.trackBorderColor,"stroke-width":n.trackBorderWidth}),this.trackBorderWidth=this.track.strokeWidth(),this.track.attr({y:-this.trackBorderWidth%2/2}),this.scrollbarGroup=t.g().add(a),this.scrollbar=t.rect().addClass(`highcharts-scrollbar-thumb`).attr({height:r,width:r,r:n.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=t.path(e.swapXY([[`M`,-3,r/4],[`L`,-3,2*r/3],[`M`,0,r/4],[`L`,0,2*r/3],[`M`,3,r/4],[`L`,3,2*r/3]],n.vertical)).addClass(`highcharts-scrollbar-rifles`).add(this.scrollbarGroup),i||(this.scrollbar.attr({fill:n.barBackgroundColor,stroke:n.barBorderColor,"stroke-width":n.barBorderWidth}),this.scrollbarRifles.attr({stroke:n.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},e.prototype.setRange=function(e,t){var n=this.options,r=n.vertical,i=n.minWidth,a=this.barWidth,o=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?`attr`:`animate`;if(c(a)){var l=a*Math.min(t,1);e=Math.max(e,0);var u=Math.ceil(a*e);this.calculatedWidth=l=s(l-u),l<i&&(u=(a-i+l)*e,l=i),i=Math.floor(u+this.xOffset+this.yOffset),a=l/2-.5,this.from=e,this.to=t,r?(this.scrollbarGroup[o]({translateY:i}),this.scrollbar[o]({height:l}),this.scrollbarRifles[o]({translateY:a}),this.scrollbarTop=i,this.scrollbarLeft=0):(this.scrollbarGroup[o]({translateX:i}),this.scrollbar[o]({width:l}),this.scrollbarRifles[o]({translateX:a}),this.scrollbarLeft=i,this.scrollbarTop=0),12>=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===n.showFull&&(0>=e&&1<=t?this.group.hide():this.group.show()),this.rendered=!0}},e.prototype.shouldUpdateExtremes=function(e){return f(this.options.liveRedraw,t.svg&&!t.isTouchDevice&&!this.chart.isBoosting)||e===`mouseup`||e===`touchend`||!c(e)},e.prototype.trackClick=function(e){var t=this.chart.pointer.normalize(e),n=this.to-this.from,r=this.y+this.scrollbarTop,i=this.x+this.scrollbarLeft;this.options.vertical&&t.chartY>r||!this.options.vertical&&t.chartX>i?this.updatePosition(this.from+n,this.to+n):this.updatePosition(this.from-n,this.to-n),u(this,`changed`,{from:this.from,to:this.to,trigger:`scrollbar`,DOMEvent:e})},e.prototype.update=function(e){this.destroy(),this.init(this.chart.renderer,d(!0,this.options,e),this.chart)},e.prototype.updatePosition=function(e,t){1<t&&(e=s(1-s(t-e)),t=1),0>e&&(t=s(t-e),e=0),this.from=e,this.to=t},e.defaultOptions=r,e}(),a.scrollbar=d(!0,e.defaultOptions,a.scrollbar),e}),t(n,`Core/Axis/NavigatorAxis.js`,[n[`Core/Globals.js`],n[`Core/Utilities.js`]],function(e,t){var n=e.isTouchDevice,r=t.addEvent,i=t.correctFloat,a=t.defined,o=t.isNumber,s=t.pick,c=function(){function e(e){this.axis=e}return e.prototype.destroy=function(){this.axis=void 0},e.prototype.toFixedRange=function(e,t,n,r){var c=this.axis,l=c.chart;l&&=l.fixedRange;var u=(c.pointRange||0)/2;return e=s(n,c.translate(e,!0,!c.horiz)),t=s(r,c.translate(t,!0,!c.horiz)),c=l&&(t-e)/l,a(n)||(e=i(e+u)),a(r)||(t=i(t-u)),.7<c&&1.3>c&&(r?e=t-l:t=e+l),o(e)&&o(t)||(e=t=void 0),{min:e,max:t}},e}();return function(){function e(){}return e.compose=function(e){e.keepProps.push(`navigatorAxis`),r(e,`init`,function(){this.navigatorAxis||=new c(this)}),r(e,`zoom`,function(e){var t=this.chart.options,r=t.navigator,i=this.navigatorAxis,o=t.chart.pinchType,s=t.rangeSelector;t=t.chart.zoomType,this.isXAxis&&(r&&r.enabled||s&&s.enabled)&&(t===`y`?e.zoomed=!1:(!n&&t===`xy`||n&&o===`xy`)&&this.options.range&&(r=i.previousZoom,a(e.newMin)?i.previousZoom=[this.min,this.max]:r&&(e.newMin=r[0],e.newMax=r[1],i.previousZoom=void 0))),e.zoomed!==void 0&&e.preventDefault()})},e.AdditionsClass=c,e}()}),t(n,`Core/Navigator.js`,[n[`Core/Axis/Axis.js`],n[`Core/Chart/Chart.js`],n[`Core/Color/Color.js`],n[`Core/Globals.js`],n[`Core/Axis/NavigatorAxis.js`],n[`Core/DefaultOptions.js`],n[`Core/Renderer/RendererRegistry.js`],n[`Core/Scrollbar.
4js`],n[`Core/Series/Series.js`],n[`Core/Series/SeriesRegistry.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s,c,l,u){n=n.parse;var d=r.hasTouch,f=r.isTouchDevice,p=a.defaultOptions,m=u.addEvent,h=u.clamp,g=u.correctFloat,_=u.defined,v=u.destroyObjectProperties,y=u.erase,b=u.extend,x=u.find,S=u.isArray,C=u.isNumber,w=u.merge,T=u.pick,E=u.removeEvent,D=u.splat,O=function(e){var t=[...arguments].slice(1);if(t=[].filter.call(t,C),t.length)return Math[e].apply(0,t)};a=l.seriesTypes.areaspline===void 0?`line`:`areaspline`,b(p,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[`navigator-handle`,`navigator-handle`],enabled:!0,lineWidth:1,backgroundColor:`#f2f2f2`,borderColor:`#999999`},maskFill:n(`#6685c2`).setOpacity(.3).get(),outlineColor:`#cccccc`,outlineWidth:1,series:{type:a,fillOpacity:.05,lineWidth:1,compare:null,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:{overscroll:0,className:`highcharts-navigator-xaxis`,tickLength:0,lineWidth:0,gridLineColor:`#e6e6e6`,gridLineWidth:1,tickPixelInterval:200,labels:{align:`left`,style:{color:`#999999`},x:3,y:-4},crosshair:!1},yAxis:{className:`highcharts-navigator-yaxis`,gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),o.getRendererType().prototype.symbols[`navigator-handle`]=function(e,t,n,r,i){return e=(i&&i.width||0)/2,t=Math.round(e/3)+.5,i=i&&i.height||0,[[`M`,-e-1,.5],[`L`,e,.5],[`L`,e,i+.5],[`L`,-e-1,i+.5],[`L`,-e-1,.5],[`M`,-t,4],[`L`,-t,i-3],[`M`,t-1,4],[`L`,t-1,i-3]]};var k=function(){function t(e){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0,this.init(e)}return t.prototype.drawHandle=function(e,t,n,r){var i=this.navigatorOptions.handles.height;this.handles[t][r](n?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(e,10)+.5-i)}:{translateX:Math.round(this.left+parseInt(e,10)),translateY:Math.round(this.top+this.height/2-i/2-1)})},t.prototype.drawOutline=function(e,t,n,r){var i=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),o=a/2,s=a%2/2;a=this.outlineHeight;var c=this.scrollbarHeight||0,l=this.size,u=this.left-c,d=this.top;n?(u-=o,n=d+t+s,t=d+e+s,s=[[`M`,u+a,d-c-s],[`L`,u+a,n],[`L`,u,n],[`L`,u,t],[`L`,u+a,t],[`L`,u+a,d+l+c]],i&&s.push([`M`,u+a,n-o],[`L`,u+a,t+o])):(e+=u+c-s,t+=u+c-s,d+=o,s=[[`M`,u,d],[`L`,e,d],[`L`,e,d+a],[`L`,t,d+a],[`L`,t,d],[`L`,u+l+2*c,d]],i&&s.push([`M`,e-o,d],[`L`,t+o,d])),this.outline[r]({d:s})},t.prototype.drawMasks=function(e,t,n,r){var i=this.left,a=this.top,o=this.height;if(n)var s=[i,i,i],c=[a,a+e,a+t],l=[o,o,o],u=[e,t-e,this.size-t];else s=[i,i+e,i+t],c=[a,a,a],l=[e,t-e,this.size-t],u=[o,o,o];this.shades.forEach(function(e,t){e[r]({x:s[t],y:c[t],width:l[t],height:u[t]})})},t.prototype.renderElements=function(){var e=this,t=e.navigatorOptions,n=t.maskInside,r=e.chart,i=r.renderer,a,o={cursor:r.inverted?`ns-resize`:`ew-resize`};e.navigatorGroup=a=i.g(`navigator`).attr({zIndex:8,visibility:`hidden`}).add(),[!n,n,!n].forEach(function(n,s){e.shades[s]=i.rect().addClass(`highcharts-navigator-mask`+(s===1?`-inside`:`-outside`)).add(a),r.styledMode||e.shades[s].attr({fill:n?t.maskFill:`rgba(0,0,0,0)`}).css(s===1&&o)}),e.outline=i.path().addClass(`highcharts-navigator-outline`).add(a),r.styledMode||e.outline.attr({"stroke-width":t.outlineWidth,stroke:t.outlineColor}
4),t.handles.enabled&&[0,1].forEach(function(n){if(t.handles.inverted=r.inverted,e.handles[n]=i.symbol(t.handles.symbols[n],-t.handles.width/2-1,0,t.handles.width,t.handles.height,t.handles),e.handles[n].attr({zIndex:7-n}).addClass(`highcharts-navigator-handle highcharts-navigator-handle-`+[`left`,`right`][n]).add(a),!r.styledMode){var s=t.handles;e.handles[n].attr({fill:s.backgroundColor,stroke:s.borderColor,"stroke-width":s.lineWidth}).css(o)}})},t.prototype.update=function(e){(this.series||[]).forEach(function(e){e.baseSeries&&delete e.baseSeries.navigatorSeries}),this.destroy(),w(!0,this.chart.options.navigator,this.options,e),this.init(this.chart)},t.prototype.render=function(e,t,n,r){var i=this.chart,a=this.scrollbarHeight,o,s=this.xAxis,c=s.pointRange||0,l=s.navigatorAxis.fake?i.xAxis[0]:s,u=this.navigatorEnabled,d,f=this.rendered,p=i.inverted,m=i.xAxis[0].minRange,v=i.xAxis[0].options.maxRange;if(!this.hasDragged||_(n)){if(e=g(e-c/2),t=g(t+c/2),!C(e)||!C(t)){if(f)n=0,r=T(s.width,l.width);else return}this.left=T(s.left,i.plotLeft+a+(p?i.plotWidth:0)),this.size=d=o=T(s.len,(p?i.plotHeight:i.plotWidth)-2*a),i=p?a:o+2*a,n=T(n,s.toPixels(e,!0)),r=T(r,s.toPixels(t,!0)),C(n)&&Math.abs(n)!==1/0||(n=0,r=i),e=s.toValue(n,!0),t=s.toValue(r,!0);var y=Math.abs(g(t-e));y<m?this.grabbedLeft?n=s.toPixels(t-m-c,!0):this.grabbedRight&&(r=s.toPixels(e+m+c,!0)):_(v)&&g(y-c)>v&&(this.grabbedLeft?n=s.toPixels(t-v-c,!0):this.grabbedRight&&(r=s.toPixels(e+v+c,!0))),this.zoomedMax=h(Math.max(n,r),0,d),this.zoomedMin=h(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(n,r),0,d),this.range=this.zoomedMax-this.zoomedMin,d=Math.round(this.zoomedMax),n=Math.round(this.zoomedMin),u&&(this.navigatorGroup.attr({visibility:`visible`}),f=f&&!this.hasDragged?`animate`:`attr`,this.drawMasks(n,d,p,f),this.drawOutline(n,d,p,f),this.navigatorOptions.handles.enabled&&(this.drawHandle(n,0,p,f),this.drawHandle(d,1,p,f))),this.scrollbar&&(p?(p=this.top-a,l=this.left-a+(u||!l.opposite?0:(l.titleOffset||0)+l.axisTitleMargin),a=o+2*a):(p=this.top+(u?this.height:-a),l=this.left-a),this.scrollbar.position(l,p,i,a),this.scrollbar.setRange(this.zoomedMin/(o||1),this.zoomedMax/(o||1))),this.rendered=!0}},t.prototype.addMouseEvents=function(){var e=this,t=e.chart,n=t.container,r=[],i,a;e.mouseMoveHandler=i=function(t){e.onMouseMove(t)},e.mouseUpHandler=a=function(t){e.onMouseUp(t)},r=e.getPartsEvents(`mousedown`),r.push(m(t.renderTo,`mousemove`,i),m(n.ownerDocument,`mouseup`,a)),d&&(r.push(m(t.renderTo,`touchmove`,i),m(n.ownerDocument,`touchend`,a)),r.concat(e.getPartsEvents(`touchstart`))),e.eventsToUnbind=r,e.series&&e.series[0]&&r.push(m(e.series[0].xAxis,`foundExtremes`,function(){t.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(e){var t=this,n=[];return[`shades`,`handles`].forEach(function(r){t[r].forEach(function(i,a){n.push(m(i.element,e,function(e){t[r+`Mousedown`](e,a)}))})}),n},t.prototype.shadesMousedown=function(e,t){e=this.chart.pointer.normalize(e);var n=this.chart,r=this.xAxis,i=this.zoomedMin,a=this.left,o=this.size,s=this.range,c=e.chartX;if(n.inverted&&(c=e.chartY,a=this.top),t===1)this.grabbedCenter=c,this.fixedWidth=s,this.dragOffset=c-i;else{if(e=c-a-s/2,t===0)e=Math.max(0,e);else if(t===2&&e+s>=o){if(e=o-s,this.reversedExtremes){e-=s;var l=this.getUnionExtremes().dataMin}else var u=this.getUnionExtremes().dataMax}e!==i&&(this.fixedWidth=s,t=r.navigatorAxis.toFixedRange(e,e+s,l,u),_(t.min)&&n.xAxis[0].setExtremes(Math.min(t.min,t.max),Math.max(t.min,t.max),!0,null,{trigger:`navigator`}))}},t.prototype.handlesMousedown=function(e,t){this.chart.pointer.normalize(e),e=this.chart;var n=e.xAxis[0],r=this.reversedExtremes;t===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=r?n.min:n.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=r?n.max:n.min),e.fixedRange=null},t.prototype.onMouseMove=function(e){var t=this,n=t.chart,i=t.left,a=t.navigatorSize,o=t.range,s=t.dragOffset,c=n.inverted;e.touches&&e.touches[0].pageX===0||(e=n.pointer.normalize(e),n=e.chartX,c&&(i=t.to
4p,n=e.chartY),t.grabbedLeft?(t.hasDragged=!0,t.render(0,0,n-i,t.otherHandlePos)):t.grabbedRight?(t.hasDragged=!0,t.render(0,0,t.otherHandlePos,n-i)):t.grabbedCenter&&(t.hasDragged=!0,n<s?n=s:n>a+s-o&&(n=a+s-o),t.render(0,0,n-s,n-s+o)),t.hasDragged&&t.scrollbar&&T(t.scrollbar.options.liveRedraw,r.svg&&!f&&!this.chart.isBoosting)&&(e.DOMType=e.type,setTimeout(function(){t.onMouseUp(e)},0)))},t.prototype.onMouseUp=function(e){var t=this.chart,n=this.xAxis,r=this.scrollbar,i=e.DOMEvent||e,a=t.inverted,o=this.rendered&&!this.hasDragged?`animate`:`attr`;if(this.hasDragged&&(!r||!r.hasDragged)||e.trigger===`scrollbar`){if(r=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos)var s=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var c=this.fixedExtreme;this.zoomedMax===this.size&&(c=this.reversedExtremes?r.dataMin:r.dataMax),this.zoomedMin===0&&(s=this.reversedExtremes?r.dataMax:r.dataMin),n=n.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,s,c),_(n.min)&&t.xAxis[0].setExtremes(Math.min(n.min,n.max),Math.max(n.min,n.max),!0,!this.hasDragged&&null,{trigger:`navigator`,triggerOp:`navigator-drag`,DOMEvent:i})}e.DOMType!==`mousemove`&&e.DOMType!==`touchmove`&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&C(this.zoomedMin)&&C(this.zoomedMax)&&(t=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(t,e,a,o),this.outline&&this.drawOutline(t,e,a,o),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(t,0,a,o),this.drawHandle(e,1,a,o)))},t.prototype.removeEvents=function(){this.eventsToUnbind&&=(this.eventsToUnbind.forEach(function(e){e()}),void 0),this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var e=this.baseSeries||[];this.navigatorEnabled&&e[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&e.forEach(function(e){E(e,`updatedData`,this.updatedDataHandler)},this),e[0].xAxis&&E(e[0].xAxis,`foundExtremes`,this.modifyBaseAxisExtremes))},t.prototype.init=function(t){var n=t.options,r=n.navigator,a=r.enabled,o=n.scrollbar,c=o.enabled;n=a?r.height:0;var l=c?o.height:0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=n,this.scrollbarHeight=l,this.scrollbarEnabled=c,this.navigatorEnabled=a,this.navigatorOptions=r,this.scrollbarOptions=o,this.outlineHeight=n+l,this.opposite=T(r.opposite,!(a||!t.inverted));var u=this;a=u.baseSeries,o=t.xAxis.length,c=t.yAxis.length;var d=a&&a[0]&&a[0].xAxis||t.xAxis[0]||{options:{}};t.isDirtyBox=!0,u.navigatorEnabled?(u.xAxis=new e(t,w({breaks:d.options.breaks,ordinal:d.options.ordinal},r.xAxis,{id:`navigator-x-axis`,yAxis:`navigator-y-axis`,isX:!0,type:`datetime`,index:o,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},t.inverted?{offsets:[l,0,-l,0],width:n}:{offsets:[0,-l,0,l],height:n})),u.yAxis=new e(t,w(r.yAxis,{id:`navigator-y-axis`,alignTicks:!1,offset:0,index:c,isInternal:!0,reversed:T(r.yAxis&&r.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:n}:{height:n})),a||r.series.data?u.updateNavigatorSeries(!1):t.series.length===0&&(u.unbindRedraw=m(t,`beforeRedraw`,function(){0<t.series.length&&!u.series&&(u.setBaseSeries(),u.unbindRedraw())})),u.reversedExtremes=t.inverted&&!u.xAxis.reversed||!t.inverted&&u.xAxis.reversed,u.renderElements(),u.addMouseEvents()):(u.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,n){var r=t.xAxis[0],i=r.getExtremes(),a=r.len-2*l,o=O(`min`,r.options.min,i.dataMin);return r=O(`max`,r.options.max,i.dataMax)-o,n?e*r/a+o:a*(e-o)/r},toPixels:function(e){return this.translate(e)},toValue:function(e){return this.translate(e,!0)}},u.xAxis.navigatorAxis.axis=u.xAxis,u.xAxis.navigatorAxis.toFixedRange=i.AdditionsClass.prototype.toFixedRange.bind(u.xAxis.navigatorAxis)),t.options.scrollbar.enabled&&(t.scrollbar=u.scrollbar=new s(t.renderer,w(t.options.scrollbar,{margin:u.navigatorEnabled?0:10,vertical:t.inverted}),t),m(u.scrollbar,`changed`,function(e){var t=u.size,n=t*this.to;t*=this.from,u.hasDragged=u.scrollbar.hasDragged,u.render(0,0,t,n),this.shouldUpdateExtremes(e.DOMType)&&setTimeout(function(){u.onMouseUp(e)})})),u.addBaseSeriesEvents(),u.addChartEvents()},t.prototype.getUnionExtremes=function(e){var t=this.chart.xAxis[0],n=this.xAxis,r=n.options,i=t.options,a;return e&&t.dataMin===null||(a={dataMin:T(r&&r.min,O(`min`,i.min,t.dataMin,n.dataMin,n.min)),dataMax:T(r&&r.max,O(`max`,i.max,t.dataMax,n.dataMax,n.max))}),a},t.prototype.setBaseSeries=function(e,t){var n=this.chart,r=this.baseSeries=[];e=e||n.options&&n.options.navigator.baseSeries||(n.series.length?x(n.series,function(e){return!e.options.isInternal}
4).index:0),(n.series||[]).forEach(function(t,n){t.options.isInternal||!t.options.showInNavigator&&(n!==e&&t.options.id!==e||!1===t.options.showInNavigator)||r.push(t)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,t)},t.prototype.updateNavigatorSeries=function(e,t){var n=this,r=n.chart,i=n.baseSeries,a,o,s=n.navigatorOptions.series,c,l={enableMouseTracking:!1,index:null,linkedTo:null,group:`nav`,padXAxis:!1,xAxis:`navigator-x-axis`,yAxis:`navigator-y-axis`,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},u=n.series=(n.series||[]).filter(function(e){var t=e.baseSeries;return 0>i.indexOf(t)?(t&&(E(t,`updatedData`,n.updatedDataHandler),delete t.navigatorSeries),e.chart&&e.destroy(),!1):!0});i&&i.length&&i.forEach(function(e){var d=e.navigatorSeries,f=b({color:e.color,visible:e.visible},S(s)?p.navigator.series:s);d&&!1===n.navigatorOptions.adaptToUpdatedData||(l.name=`Navigator `+i.length,a=e.options||{},c=a.navigatorOptions||{},f.dataLabels=D(f.dataLabels),o=w(a,l,f,c),o.pointRange=T(f.pointRange,c.pointRange,p.plotOptions[o.type||`line`].pointRange),f=c.data||f.data,n.hasNavigatorData=n.hasNavigatorData||!!f,o.data=f||a.data&&a.data.slice(0),d&&d.options?d.update(o,t):(e.navigatorSeries=r.initSeries(o),e.navigatorSeries.baseSeries=e,u.push(e.navigatorSeries)))}),(s.data&&(!i||!i.length)||S(s))&&(n.hasNavigatorData=!1,s=D(s),s.forEac
4h(function(e,t){l.name=`Navigator `+(u.length+1),o=w(p.navigator.series,{color:r.series[t]&&!r.series[t].options.isInternal&&r.series[t].color||r.options.colors[t]||r.options.colors[0]},l,e),o.data=e.data,o.data&&(n.hasNavigatorData=!0,u.push(r.initSeries(o)))})),e&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var e=this,t=e.baseSeries||[];t[0]&&t[0].xAxis&&t[0].eventsToUnbind.push(m(t[0].xAxis,`foundExtremes`,this.modifyBaseAxisExtremes)),t.forEach(function(t){t.eventsToUnbind.push(m(t,`show`,function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),t.eventsToUnbind.push(m(t,`hide`,function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&t.xAxis&&t.eventsToUnbind.push(m(t,`updatedData`,this.updatedDataHandler)),t.eventsToUnbind.push(m(t,`remove`,function(){this.navigatorSeries&&(y(e.series,this.navigatorSeries),_(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)},t.prototype.getBaseSeriesMin=function(e){return this.baseSeries.reduce(function(e,t){return Math.min(e,t.xData?t.xData[0]:e)},e)},t.prototype.modifyNavigatorAxisExtremes=function(){var e=this.xAxis,t;e.getExtremes!==void 0&&(!(t=this.getUnionExtremes(!0))||t.dataMin===e.min&&t.dataMax===e.max||(e.min=t.dataMin,e.max=t.dataMax))},t.prototype.modifyBaseAxisExtremes=function(){var e=this.chart.navigator,t=this.getExtremes(),n=t.dataMin,r=t.dataMax;t=t.max-t.min;var i=e.stickToMin,a=e.stickToMax,o=T(this.options.overscroll,0),s=e.series&&e.series[0],c=!!this.setExtremes;if(!this.eventArgs||this.eventArgs.trigger!==`rangeSelectorButton`){if(i)var l=n,u=l+t;a&&(u=r+o,i||(l=Math.max(n,u-t,e.getBaseSeriesMin(s&&s.xData?s.xData[0]:-Number.MAX_VALUE)))),c&&(i||a)&&C(l)&&(this.min=this.userMin=l,this.max=this.userMax=u)}e.stickToMin=e.stickToMax=null},t.prototype.updatedDataHandler=function(){var e=this.chart.navigator,t=this.navigatorSeries;e.stickToMax=e.reversedExtremes?Math.round(e.zoomedMin)===0:Math.round(e.zoomedMax)>=Math.round(e.size),e.stickToMin=e.shouldStickToMin(this,e),t&&!e.hasNavigatorData&&(t.options.pointStart=this.xData[0],t.setData(this.options.data,!1,null,!1))},t.prototype.shouldStickToMin=function(e,t){t=t.getBaseSeriesMin(e.xData[0]);var n=e.xAxis;e=n.max;var r=n.min;return n=n.options.range,C(e)&&C(r)?n&&0<e-t?e-t<n:r<=t:!1},t.prototype.addChartEvents=function(){this.eventsToUnbind||=[],this.eventsToUnbind.push(m(this.chart,`redraw`,function(){var e=this.navigator,t=e&&(e.baseSeries&&e.baseSeries[0]&&e.baseSeries[0].xAxis||this.xAxis[0]);t&&e.render(t.min,t.max)}),m(this.chart,`getMargins`,function(){var e=this.navigator,t=e.opposite?`plotTop`:`marginBottom`;this.inverted&&(t=e.opposite?`marginRight`:`plotLeft`),this[t]=(this[t]||0)+(e.navigatorEnabled||!this.inverted?e.outlineHeight:0)+e.navigatorOptions.margin}))},t.prototype.destroy=function(){this.removeEvents(),this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis)),this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(e){e.destroy&&e.destroy()}),`series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered`.split(` `).forEach(function(e){this[e]&&this[e].destroy&&this[e].destroy(),this[e]=null},this),[this.handles].forEach(function(e){v(e)},this)},t}();return r.Navigator||(r.Navigator=k,i.compose(e),m(t,`beforeShowResetZoom`,function(){var e=this.options,t=e.navigator,n=e.rangeSelector;if((t&&t.enabled||n&&n.enabled)&&(!f&&e.chart.zoomType===`x`||f&&e.chart.pinchType===`x`))return!1}),m(t,`beforeRender`,function(){var e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new k(this))}),m(t,`afterSetChartSize`,function(){var e=this.legend,t=this.navigator;if(t){var n=e&&e.options,r=t.xAxis,i=t.yAxis,a=t.scrollbarHeight;this.inverted?(t.left=t.opposite?this.chartWidth-a-t.height:this.spacing[3]+a,t.top=this.plotTop+a):(t.left=T(r.left,this.plotLeft+a),t.top=t.navigatorOptions.top||this.chartHe
4ight-t.height-a-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(n&&n.verticalAlign===`bottom`&&n.layout!==`proximate`&&n.enabled&&!n.floating?e.legendHeight+T(n.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),r&&i&&(this.inverted?r.options.left=i.options.left=t.left:r.options.top=i.options.top=t.top,r.setAxisSize(),i.setAxisSize())}}),m(t,`update`,function(e){var t=e.options.navigator||{},n=e.options.scrollbar||{};this.navigator||this.scroller||!t.enabled&&!n.enabled||(w(!0,this.options.navigator,t),w(!0,this.options.scrollbar,n),delete e.options.navigator,delete e.options.scrollbar)}),m(t,`afterUpdate`,function(e){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new k(this),T(e.redraw,!0)&&this.redraw(e.animation))}),m(t,`afterAddSeries`,function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),m(c,`afterUpdate`,function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),t.prototype.callbacks.push(function(e){var t=e.navigator;t&&e.xAxis[0]&&(e=e.xAxis[0].getExtremes(),t.render(e.min,e.max))})),r.Navigator=k,r.Navigator}),t(n,`Extensions/RangeSelector.js`,[n[`Core/Axis/Axis.js`],n[`Core/Chart/Chart.js`],n[`Core/Globals.js`],n[`Core/DefaultOptions.js`],n[`Core/Renderer/SVG/SVGElement.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a){function o(e){if(e.indexOf(`%L`)!==-1)return`text`;var t=`aAdewbBmoyY`.split(``).some(function(t){return e.indexOf(`%`+t)!==-1}),n=`HkIlMS`.split(``).some(function(t){return e.indexOf(`%`+t)!==-1});return t&&n?`datetime-local`:t?`date`:n?`time`:`text`}var s=r.defaultOptions,c=a.addEvent,l=a.createElement,u=a.css,d=a.defined,f=a.destroyObjectProperties,p=a.discardElement,m=a.extend,h=a.find,g=a.fireEvent,_=a.isNumber,v=a.merge,y=a.objectEach,b=a.pad,x=a.pick,S=a.pInt,C=a.splat;m(s,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,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:`%b %e, %Y`,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:`#335cad`,cursor:`pointer`},labelStyle:{color:`#666666`}}}),m(s.lang,{rangeSelectorZoom:`Zoom`,rangeSelectorFrom:``,rangeSelectorTo:`→`});var w=function(){function t(e){this.buttons=void 0,this.buttonOptions=t.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=e,this.init(e)}return t.prototype.clickButton=function(t,n){var r=this.chart,i=this.buttonOptions[t],a=r.xAxis[0],o=r.scroller&&r.scroller.getUnionExtremes()||a||{},s=o.dataMin,l=o.dataMax,u=a&&Math.round(Math.min(a.max,x(l,a.max))),f=i.type;o=i._range;var p,m=i.dataGrouping;if(s!==null&&l!==null){if(r.fixedRange=o,this.setSelected(t),m&&(this.forcedDataGrouping=!0,e.prototype.setDataGrouping.call(a||{chart:this.chart},m,!1),this.frozenStates=i.preserveDataGrouping),f===`month`||f===`year`){if(a){f={range:i,max:u,chart:r,dataMin:s,dataMax:l};var h=a.minFromRange.call(f);_(f.newMax)&&(u=f.newMax)}else o=i}else if(o)h=Math.max(u-o,s),u=Math.min(h+o,l);else if(f===`ytd`){if(a)l===void 0&&(s=Number.MAX_VALUE,l=Number.MIN_VALUE,r.series.forEach(function(e){e=e.xData,s=Math.min(e[0],s),l=Math.max(e[e.length-1],l)}),n=!1),u=this.getYTDExtremes(l,s,r.time.useUTC),h=p=u.min,u=u.max;else{this.deferredYTDClick=t;return}}else f===`all`&&a&&(r.navigator&&r.navigator.baseSeries[0]&&(r.navigator.baseSeries[0].xAxis.options.range=void 0),h=s,u=l);if(d(h)&&(h+=i._offsetMin),d(u)&&(u+=i._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),a)a.setExtremes(h,u,x(n,!0),void 0,{trigger:`rangeSelectorButton`,rangeSelectorButton:i});else{var v=C(r.options.xAxis)[0],y=v.range;v.range=o;var b=v.min;v.min=p,c(r,`load`,function(){v.range=y,v.min=b})}g(this,`afterBtnClick`)}},t.prototype.setSelected=function(e){this.selected=this.options.selected=e},t.prototype.init=function(e){var t=this,n=e.options.rangeSelector,r=n.buttons||t.defaultButtons.slice(),i=n.selected,a=function(){var e=t.minInput,n=t.maxInput;e&&e.blur&&g(e,`blur`),n&&n.blur&&g(n,`blur`)};t.chart=e,t.options=n,t.buttons=[],t.buttonOptions=r,this.eventsToUnbind=[],this.eventsToUnbind.push(c(e.container,`mousedown`,a)),this.eventsToUnbind.push(c(e,`resize`,a)),r.forEach(t.computeButtonRange),i!==void 0&&r[i]&&this.clickButton(i,!1),this.eventsToUnbind.push(c(e,`load`,function(){e.xAxis&&e.xAxis[0]&&c(e.xAxis[0],`setExtremes`,function(n){this.max-this.min!==e.fixedRange&&n.trigger!==`rangeSelectorButton`&&n.trigger!==`updatedData`&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},t.prototype.updateButtonStates=function(){var e=this,t=this.chart,n=this.dropdown,r=t.xAxis[0],i=Math.round(r.max-r.min),a=!r.hasVisibleSeries,o=t.scroller&&t.scroller.getUnionExtremes()||r,s=o.dataMin,c=o.dataMax;t=e.getYTDExtremes(c,s,t.time.useUTC);var l=t.min,u=t.max,d=e.selected,f=_(d),p=e.options.allButtonsEnabled,m=e.buttons;e.buttonOptions.forEach(function(t,o){var h=t._range,g=t.type,_=t.count||1,v=m[o],y=0,b=t._offsetMax-t._offsetMin;t=o===d;var x=h>c-s,S=h<r.minRange,C=!1,w=!1;h=h===i,(g===`month`||g===`year`)&&i+36e5>=864e5*{month:28,year:365}[g]*_-b&&i-36e5<=864e5*{month:31,year:366}[g]*_+b?h=!0:g===`ytd`?(h=u-l+b===i,C=!t):g===`all`&&(h=r.max-r.min>=c-s,w=!t&&f&&h),g=!p&&(x||S||w||a),_=t&&h||h&&!f&&!C||t&&e.frozenStates,g?y=3:_&&(f=!0,y=2),v.state!==y&&(v.setState(y),n&&(n.options[o+1].disabled=g,y===2&&(n.selectedIndex=o+1)),y===0&&d===o&&e.setSelected())})},t.prototype.computeButtonRange=function(e){var t=e.type,n=e.count||1,r={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};r[t]?e._range=r[t]*n:(t===`month`||t===`year`)&&(e._range=864e5*{month:30,year:365}[t]*n),e._offsetMin=x(e.offsetMin,0),e._offsetMax=x(e.offsetMax,0),e._range+=e._offsetMax-e._offsetMin},t.prototype.getInputValue=function(e){e=e===`min`?this.minInput
4:this.maxInput;var t=this.chart.options.rangeSelector,n=this.chart.time;return e?(e.type===`text`&&t.inputDateParser||this.defaultInputDateParser)(e.value,n.useUTC,n):0},t.prototype.setInputValue=function(e,t){var n=this.options,r=this.chart.time,i=e===`min`?this.minInput:this.maxInput;if(e=e===`min`?this.minDateBox:this.maxDateBox,i){var a=i.getAttribute(`data-hc-time`);a=d(a)?Number(a):void 0,d(t)&&(d(a)&&i.setAttribute(`data-hc-time-previous`,a),i.setAttribute(`data-hc-time`,t),a=t),i.value=r.dateFormat(this.inputTypeFormats[i.type]||n.inputEditDateFormat,a),e&&e.attr({text:r.dateFormat(n.inputDateFormat,a)})}},t.prototype.setInputExtremes=function(e,t,n){if(e=e===`min`?this.minInput:this.maxInput){var r=this.inputTypeFormats[e.type],i=this.chart.time;r&&(t=i.dateFormat(r,t),e.min!==t&&(e.min=t),n=i.dateFormat(r,n),e.max!==n&&(e.max=n))}},t.prototype.showInput=function(e){var t=e===`min`?this.minDateBox:this.maxDateBox;if((e=e===`min`?this.minInput:this.maxInput)&&t&&this.inputGroup){var n=e.type===`text`,r=this.inputGroup,i=r.translateX;r=r.translateY;var a=this.options.inputBoxWidth;u(e,{width:n?t.width+(a?-2:20)+`px`:`auto`,height:n?t.height-2+`px`:`auto`,border:`2px solid silver`}),n&&a?u(e,{left:i+t.x+`px`,top:r+`px`}):u(e,{left:Math.min(Math.round(t.x+i-(e.offsetWidth-t.width)/2),this.chart.chartWidth-e.offsetWidth)+`px`,top:r-(e.offsetHeight-t.height)/2+`px`})}},t.prototype.hideInput=function(e){(e=e===`min`?this.minInput:this.maxInput)&&u(e,{top:`-9999em`,border:0,width:`1px`,height:`1px`})},t.prototype.defaultInputDateParser=function(e,t,r){var i=e.split(`/`).join(`-`).split(` `).join(`T`);if(i.indexOf(`T`)===-1&&(i+=`T00:00`),t)i+=`Z`;else{var a;(a=n.isSafari)&&(a=i,a=!(6<a.length&&(a.lastIndexOf(`-`)===a.length-6||a.lastIndexOf(`+`)===a.length-6))),a&&(a=new Date(i).getTimezoneOffset()/60,i+=0>=a?`+`+b(-a)+`:00`:`-`+b(a)+`:00`)}return i=Date.parse(i),_(i)||(e=e.split(`-`),i=Date.UTC(S(e[0]),S(e[1])-1,S(e[2]))),r&&t&&_(i)&&(i+=r.getTimezoneOffset(i)),i},t.prototype.drawInput=function(e){function t(){var t=c.getInputValue(e),n=r.xAxis[0],i=r.scroller&&r.scroller.xAxis?r.scroller.xAxis:n,a=i.dataMin;i=i.dataMax;var o=c.maxInput,s=c.minInput;t!==Number(y.getAttribute(`data-hc-time-previous`))&&_(t)&&(y.setAttribute(`data-hc-time-previous`,t),h&&o&&_(a)?t>Number(o.getAttribute(`data-hc-time`))?t=void 0:t<a&&(t=a):s&&_(i)&&(t<Number(s.getAttribute(`data-hc-time`))?t=void 0:t>i&&(t=i)),t!==void 0&&n.setExtremes(h?t:n.min,h?n.max:t,void 0,void 0,{trigger:`rangeSelectorInput`}))}var r=this.chart,i=this.div,a=this.inputGroup,c=this,d=r.renderer.style||{},f=r.renderer,p=r.options.rangeSelector,h=e===`min`,g=s.lang[h?`rangeSelectorFrom`:`rangeSelectorTo`]||``;g=f.label(g,0).addClass(`highcharts-range-label`).attr({padding:g?2:0,height:g?p.inputBoxHeight:0}).add(a),f=f.label(``,0).addClass(`highcharts-range-input`).attr({padding:2,width:p.inputBoxWidth,height:p.inputBoxHeight,"text-align":`center`}).on(`click`,function(){c.showInput(e),c[e+`Input`].focus()}),r.styledMode||f.attr({stroke:p.inputBoxBorderColor,"stroke-width":1}),f.add(a);var y=l(`input`,{name:e,className:`highcharts-range-selector`},void 0,i);y.setAttribute(`type`,o(p.inputDateFormat||`%b %e, %Y`)),r.styledMode||(g.css(v(d,p.labelStyle)),f.css(v({color:`#333333`},d,p.inputStyle)),u(y,m({position:`absolute`,border:0,boxShadow:`0 0 15px rgba(0,0,0,0.3)`,width:`1px`,height:`1px`,padding:0,textAlign:`center`,fontSize:d.fontSize,fontFamily:d.fontFamily,top:`-9999em`},p.inputStyle))),y.onfocus=function(){c.showInput(e)},y.onblur=function(){y===n.doc.activeElement&&t(),c.hideInput(e),c.setInputValue(e),y.blur()};var b=!1;return y.onchange=function(){b||(t(),c.hideInput(e),y.blur())},y.onkeypress=function(e){e.keyCode===13&&t()},y.onkeydown=function(e){b=!0,e.keyCode!==38&&e.keyCode!==40||t()},y.onkeyup=function(){b=!1},{dateBox:f,input:y,label:g}},t.prototype.getPosition=function(){var e=this.chart,t=e.options.rangeSelector;return e=t.verticalAlign===`top`?e.plotTop-e.axisOffset[0]:0,{buttonTop:e+t.buttonPosition.y,inputTop:e+t.inputPosition.y-10}},t.prototype.getYTDExtremes=function(e,t,n){var r=this.chart.time,i=new r.Date(e),a=r.get(`FullYear`,i);return n=n?r.Date.UTC(a,0,1):+new r.Date(a,0,1),t=Math.max(t,n),i=i.getTime(),{max:Math.min(e||i,i),min:t}},t.prototype.render=function(e,t){var n=this.chart,r=n.renderer,i=n.container,a=n.options,o=a.rangeSelector,s=x(a.chart.style&&a.chart.style.zIndex,0)+1;if(a=o.inputEnabled,!1!==o.enabled){if(this.rendered||(this.group=r.g(`range-selector-group`).attr({zIndex:7}).add(),this.div=l(`div`,void 0,{position:`relative`,height:0,zIndex:s}),this.buttonOptions.length&&this.renderButtons(),i.parentNode&&i.parentNode.insertBefore(this.div,i),a&&(this.inputGroup=r.g(`input-group`).add(this.group),r=this.drawInput(`min`),this.minDateBox=r.dateBox,this.minLabel=r.label,this.minInput=r.input,r=this.drawInput(`max`),this.maxDateBox=r.dateBox,this.maxLabel=r.label,this.maxInput=r.input)),a&&(this.setInputValue(`min`,e),this.setInputValue(`max`,t),e=n.scroller&&n.scroller.getUnionExtremes()||n.xAxis[0]||{},d(e.dataMin)&&d(e.dataMax)&&(n=n.xAxis[0].minRange||0,this.setInputExtremes(`min`,e.dataMin,Math.min(e.dataMax,this.getInputValue(`max`))-n),this.setInputExtremes(`max`,Math.max(e.dataMin,this.getInputValue(`min`))+n,e.dataMax)),this.inputGroup)){var c=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEac
4h(function(e){if(e){var t=e.getBBox().width;t&&(e.attr({x:c}),c+=t+o.inputSpacing)}})}this.alignElements(),this.rendered=!0}},t.prototype.renderButtons=function(){var e=this,t=this.buttons,r=this.options,i=s.lang,a=this.chart.renderer,o=v(r.buttonTheme),u=o&&o.states,d=o.width||28;delete o.width,delete o.states,this.buttonGroup=a.g(`range-selector-buttons`).add(this.group);var f=this.dropdown=l(`select`,void 0,{position:`absolute`,width:`1px`,height:`1px`,padding:0,border:0,top:`-9999em`,cursor:`pointer`,opacity:1e-4},this.div);c(f,`touchstart`,function(){f.style.fontSize=`16px`}),[[n.isMS?`mouseover`:`mouseenter`],[n.isMS?`mouseout`:`mouseleave`],[`change`,`click`]].forEach(function(n){var r=n[0],i=n[1];c(f,r,function(){var n=t[e.currentButtonIndex()];n&&g(n.element,i||r)})}),this.zoomText=a.label(i&&i.rangeSelectorZoom||``,0).attr({padding:r.buttonTheme.padding,height:r.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(r.labelStyle),o[`stroke-width`]=x(o[`stroke-width`],0)),l(`option`,{textContent:this.zoomText.textStr,disabled:!0},void 0,f),this.buttonOptions.forEach(function(n,r){l(`option`,{textContent:n.title||n.text},void 0,f),t[r]=a.button(n.text,0,0,function(t){var i=n.events&&n.events.click,a;i&&(a=i.call(n,t)),!1!==a&&e.clickButton(r),e.isActive=!0},o,u&&u.hover,u&&u.select,u&&u.disabled).attr({"text-align":`center`,width:d}).add(e.buttonGroup),n.title&&t[r].attr(`title`,n.title)})},t.prototype.alignElements=function(){var e=this,t=this.buttonGroup,n=this.buttons,r=this.chart,i=this.group,a=this.inputGroup,o=this.options,s=this.zoomText,c=r.options,l=c.exporting&&!1!==c.exporting.enabled&&c.navigation&&c.navigation.buttonOptions;c=o.buttonPosition;var u=o.inputPosition,d=o.verticalAlign,f=function(t,n){return l&&e.titleCollision(r)&&d===`top`&&n.align===`right`&&n.y-t.getBBox().height-12<(l.y||0)+(l.height||0)+r.spacing[0]?-40:0},p=r.plotLeft;if(i&&c&&u){var m=c.x-r.spacing[3];if(t){if(this.positionButtons(),!this.initialButtonGroupWidth){var h=0;s&&(h+=s.getBBox().width+5),n.forEach(function(e,t){h+=e.width,t!==n.length-1&&(h+=o.buttonSpacing)}),this.initialButtonGroupWidth=h}p-=r.spacing[3],this.updateButtonStates(),s=f(t,c),this.alignButtonGroup(s),i.placed=t.placed=r.hasLoaded}t=0,a&&(t=f(a,u),u.align===`left`?m=p:u.align===`right`&&(m=-Math.max(r.axisOffset[1],-t)),a.align({y:u.y,width:a.getBBox().width,align:u.align,x:u.x+m-2},!0,r.spacingBox),a.placed=r.hasLoaded),this.handleCollision(t),i.align({verticalAlign:d},!0,r.spacingBox),a=i.alignAttr.translateY,t=i.getBBox().height+20,f=0,d===`bottom`&&(f=(f=r.legend&&r.legend.options)&&f.verticalAlign===`bottom`&&f.enabled&&!f.floating?r.legend.legendHeight+x(f.margin,10):0,t=t+f-20,f=a-t-(o.floating?0:o.y)-(r.titleOffset?r.titleOffset[2]:0)-10),d===`top`?(o.floating&&(f=0),r.titleOffset&&r.titleOffset[0]&&(f=r.titleOffset[0]),f+=r.margin[0]-r.spacing[0]||0):d===`middle`&&(u.y===c.y?f=a:(u.y||c.y)&&(f=0>u.y||0>c.y?f-Math.min(u.y,c.y):a-t)),i.translate(o.x,o.y+Math.floor(f)),c=this.minInput,u=this.maxInput,a=this.dropdown,o.inputEnabled&&c&&u&&(c.style.marginTop=i.translateY+`px`,u.style.marginTop=i.translateY+`px`),a&&(a.style.marginTop=i.translateY+`px`)}},t.prototype.alignButtonGroup=function(e,t){var n=this.chart,r=this.buttonGroup,i=this.options.buttonPosition,a=n.plotLeft-n.spacing[3],o=i.x-n.spacing[3];i.align===`right`?o+=e-a:i.align===`center`&&(o-=a/2),r&&r.align({y:i.y,width:x(t,this.initialButtonGroupWidth),align:i.align,x:o},!0,n.spacingBox)},t.prototype.positionButtons=function(){var e=this.buttons,t=this.chart,n=this.options,r=this.zoomText,i=t.hasLoaded?`animate`:`attr`,a=n.buttonPosition,o=t.plotLeft,s=o;r&&r.visibility!==`hidden`&&(r[i]({x:x(o+a.x,o)}),s+=a.x+r.getBBox().width+5),this.buttonOptions.forEach(function(t,r){e[r].visibility===`hidden`?e[r][i]({x:o}):(e[r][i]({x:s}),s+=e[r].width+n.buttonSpacing)})},t.prototype.handleCollision=function(e){var t=this,n=this.chart,r=this.buttonGroup,i=this.inputGroup,a=this.options,o=a.buttonPosition,s=a.dropdown,c=a.inputPosition;a=function(){var e=0;return t.buttons.forEach(function(t){t=t.getBBox(),t.width>e&&(e=t.width)}),e};var l=function(t){if(i&&r){var n=i.alignAttr.translateX+i.alignOptions.x-e+i.getBBox().x+2,a=i.alignOptions.width,s=r.alignAttr.translateX+r.getBBox().x;return s+t>n&&n+a>s&&o.y<c.y+i.getBBox().height}return!1},u=function(){i&&r&&i.attr({translateX:i.alignAttr.translateX+(n.axisOffset[1]>=-e?0:-e),translateY:i.alignAttr.translateY+r.getBBox().height+10})};if(r){if(s===`always`){this.collapseButtons(e),l(a())&&u();return}s===`never`&&this.expandButtons()}i&&r?c.align===o.align||l(this.initialButtonGroupWidth+20)?s===`responsive`?(this.collapseButtons(e),l(a())&&u()):u():s===`responsive`&&this.expandButtons():r&&s===`responsive`&&(this.initialButtonGroupWidth>n.plotWidth?this.collapseButtons(e):this.expandButtons())},t.prototype.collapseButtons=function(e){var t=this.buttons,n=this.buttonOptions,r=this.chart,i=this.dropdown,a=this.options,o=this.zoomText,s=r.userOptions.rangeSelector&&r.userOptions.rangeSelector.buttonTheme||{},c=function(e){return{text:e?e+` ▾`:`▾`,width:`auto`,paddingLeft:x(a.buttonTheme.paddingLeft,s.padding,8),paddingRight:x(a.buttonTheme.paddingRight,s.padding,8)}};o&&o.hide();var l=!1;
4n.forEach(function(e,n){n=t[n],n.state===2?(n.show(),n.attr(c(e.text)),l=!0):n.hide()}),l||(i&&(i.selectedIndex=0),t[0].show(),t[0].attr(c(this.zoomText&&this.zoomText.textStr))),n=a.buttonPosition.align,this.positionButtons(),n!==`right`&&n!==`center`||this.alignButtonGroup(e,t[this.currentButtonIndex()].getBBox().width),this.showDropdown()},t.prototype.expandButtons=function(){var e=this.buttons,t=this.buttonOptions,n=this.options,r=this.zoomText;this.hideDropdown(),r&&r.show(),t.forEach(function(t,r){r=e[r],r.show(),r.attr({text:t.text,width:n.buttonTheme.width||28,paddingLeft:x(n.buttonTheme.paddingLeft,`unset`),paddingRight:x(n.buttonTheme.paddingRight,`unset`)}),2>r.state&&r.setState(0)}),this.positionButtons()},t.prototype.currentButtonIndex=function(){var e=this.dropdown;return e&&0<e.selectedIndex?e.selectedIndex-1:0},t.prototype.showDropdown=function(){var e=this.buttonGroup,t=this.buttons,n=this.chart,r=this.dropdown;if(e&&r){var i=e.translateX;e=e.translateY,t=t[this.currentButtonIndex()].getBBox(),u(r,{left:n.plotLeft+i+`px`,top:e+.5+`px`,width:t.width+`px`,height:t.height+`px`}),this.hasVisibleDropdown=!0}},t.prototype.hideDropdown=function(){var e=this.dropdown;e&&(u(e,{top:`-9999em`,width:`1px`,height:`1px`}),this.hasVisibleDropdown=!1)},t.prototype.getHeight=function(){var e=this.options,t=this.group,n=e.y,r=e.buttonPosition.y,i=e.inputPosition.y;return e.height?e.height:(this.alignElements(),e=t?t.getBBox(!0).height+13+n:0,t=Math.min(i,r),(0>i&&0>r||0<i&&0<r)&&(e+=Math.abs(t)),e)},t.prototype.titleCollision=function(e){return!(e.options.title.text||e.options.subtitle.text)},t.prototype.update=function(e){var t=this.chart;v(!0,t.options.rangeSelector,e),this.destroy(),this.init(t),this.render()},t.prototype.destroy=function(){var e=this,n=e.minInput,r=e.maxInput;e.eventsToUnbind&&=(e.eventsToUnbind.forEach(function(e){return e()}),void 0),f(e.buttons),n&&(n.onfocus=n.onblur=n.onchange=null),r&&(r.onfocus=r.onblur=r.onchange=null),y(e,function(n,r){n&&r!==`chart`&&(n instanceof i?n.destroy():n instanceof window.HTMLElement&&p(n)),n!==t.prototype[r]&&(e[r]=null)},this)},t}();if(w.prototype.defaultButtons=[{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`}],w.prototype.inputTypeFormats={"datetime-local":`%Y-%m-%dT%H:%M:%S`,date:`%Y-%m-%d`,time:`%H:%M:%S`},e.prototype.minFromRange=function(){var e=this.range,t=e.type,n=this.max,r=this.chart.time,i=function(e,n){var i=t===`year`?`FullYear`:`Month`,a=new r.Date(e),o=r.get(i,a);return r.set(i,a,o+n),o===r.get(i,a)&&r.set(`Date`,a,0),a.getTime()-e};if(_(e))var a=n-e,o=e;else a=n+i(n,-e.count),this.chart&&(this.chart.fixedRange=n-a);var s=x(this.dataMin,Number.MIN_VALUE);return _(a)||(a=s),a<=s&&(a=s,o===void 0&&(o=i(a,e.count)),this.newMax=Math.min(a+o,this.dataMax)),_(n)||(a=void 0),a},!n.RangeSelector){var T=[],E=function(e){function t(){r&&(n=e.xAxis[0].getExtremes(),i=e.legend,o=r&&r.options.verticalAlign,_(n.min)&&r.render(n.min,n.max),i.display&&o===`top`&&o===i.options.verticalAlign&&(a=v(e.spacingBox),a.y=i.options.layout===`vertical`?e.plotTop:a.y+r.getHeight(),i.group.placed=!1,i.align(a)))}var n,r=e.rangeSelector,i,a,o;r&&(h(T,function(t){return t[0]===e})||T.push([e,[c(e.xAxis[0],`afterSetExtremes`,function(e){r&&r.render(e.min,e.max)}),c(e,`redraw`,t)]]),t())};c(t,`afterGetContainer`,function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new w(this))}),c(t,`beforeRender`,function(){var e=this.axes,t=this.rangeSelector;t&&(_(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),e.forEach(function(e){e.updateNames(),e.setScale()}),this.getAxisMargins(),t.render(),e=t.options.verticalAlign,t.options.floating||(e===`bottom`?this.extraBottomMargin=!0:e!==`middle`&&(this.extraTopMargin=!0)))}),c(t,`update`,function(e){var t=e.options.rangeSelector;e=this.rangeSelector;var n=this.extraBottomMargin,r=this.extraTopMargin;t&&t.enabled&&!d(e)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=e=new w(this)),this.extraTopMargin=this.extraBottomMargin=!1,e&&(E(this),t=t&&t.verticalAlign||e.options&&e.options.verticalAlign,e.options.floating||(t===`bottom`?this.extraBottomMargin=!0:t!==`middle`&&(this.extraTopMargin=!0)),this.extraBottomMargin!==n||this.extraTopMargin!==r)&&(this.isDirtyBox=!0)}),c(t,`render`,function(){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,e===`bottom`?this.extraBottomMargin=!0:e!==`middle`&&(this.extraTopMargin=!0))}),c(t,`getMargins`,function(){var e=this.rangeSelector;e&&(e=e.getHeight(),this.extraTopMargin&&(this.plotTop+=e),this.extraBottomMargin&&(this.marginBottom+=e))}),t.prototype.callbacks.push(E),c(t,`destroy`,function(){for(var e=0;e<T.length;e++){var t=T[e];
4if(t[0]===this){t[1].forEach(function(e){return e()}),T.splice(e,1);break}}}),n.RangeSelector=w}return w}),t(n,`Core/Chart/StockChart.js`,[n[`Core/Animation/AnimationUtilities.js`],n[`Core/Axis/Axis.js`],n[`Core/Chart/Chart.js`],n[`Core/FormatUtilities.js`],n[`Core/DefaultOptions.js`],n[`Core/Series/Series.js`],n[`Core/Renderer/SVG/SVGRenderer.js`],n[`Core/Utilities.js`]],function(e,t,n,r,i,a,o,s){function c(e,t){return e===`xAxis`?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:`justify`},showLastLabel:!0}:e===`yAxis`?{labels:{y:-2},opposite:b(t.opposite,!0),showLastLabel:!(!t.categories&&t.type!==`category`),title:{text:null}}:{}}function l(e,t){if(e===`xAxis`){e=f();var n={type:`datetime`,categories:void 0};return b(t.navigator&&t.navigator.enabled,e.navigator.enabled,!0)&&(n.startOnTick=!1,n.endOnTick=!1),n}return{}}var u=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=r.format,f=i.getOptions;e=s.addEvent;var p=s.clamp,m=s.defined,h=s.extend,g=s.find,_=s.isNumber,v=s.isString,y=s.merge,b=s.pick,x=s.splat;return s=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return u(t,e),t.prototype.init=function(t,n){var r=f(),i=t.xAxis,a=t.yAxis,o=b(t.navigator&&t.navigator.enabled,r.navigator.enabled,!0);t.xAxis=t.yAxis=void 0,o=y({chart:{panning:{enabled:!0,type:`x`},pinchType:`x`},navigator:{enabled:o},scrollbar:{enabled:b(r.scrollbar&&r.scrollbar.enabled,!0)},rangeSelector:{enabled:b(r.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(r.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},t,{isStock:!0}),t.xAxis=i,t.yAxis=a,o.xAxis=x(t.xAxis||{}).map(function(e,n){return y(c(`xAxis`,e),r.xAxis,r.xAxis&&r.xAxis[n],e,l(`xAxis`,t))}),o.yAxis=x(t.yAxis||{}).map(function(e,t){return y(c(`yAxis`,e),r.yAxis,r.yAxis&&r.yAxis[t],e)}),e.prototype.init.call(this,o,n)},t.prototype.createAxis=function(t,n){return n.axis=y(c(t,n.axis),n.axis,l(t,this.userOptions)),e.prototype.createAxis.call(this,t,n)},t}(n),(function(e){e.stockChart=function(t,n,r){return new e(t,n,r)}})(s||={}),e(a,`setOptions`,function(e){var t;this.chart.options.isStock&&(this.is(`column`)||this.is(`columnrange`)?t={borderWidth:0,shadow:!1}:this.is(`scatter`)||this.is(`sma`)||(t={marker:{enabled:!1,radius:2}}),t&&(e.plotOptions[this.type]=y(e.plotOptions[this.type],t)))}),e(t,`autoLabelAlign`,function(e){var t=this.chart,n=this.options;t=t._labelPanes=t._labelPanes||{};var r=this.options.labels;this.chart.options.isStock&&this.coll===`yAxis`&&(n=n.top+`,`+n.height,!t[n]&&r.enabled&&(r.x===15&&(r.x=0),r.align===void 0&&(r.align=`right`),t[n]=this,e.align=`right`,e.preventDefault()))}),e(t,`destroy`,function(){var e=this.chart,t=this.options&&this.options.top+`,`+this.options.height;t&&e._labelPanes&&e._labelPanes[t]===this&&delete e._labelPanes[t]}),e(t,`getPlotLinePath`,function(e){function t(e){var t=e===`xAxis`?`yAxis`:`xAxis`;return e=n.options[t],_(e)?[i[t][e]]:v(e)?[i.get(e)]:r.map(function(e){return e[t]})}var n=this,r=this.isLinked&&!this.series?this.linkedParent.series:this.series,i=n.chart,a=i.renderer,o=n.left,s=n.top,c,l,u,d,f=[],h=[],y=e.translatedValue,x=e.value,S=e.force;if(i.options.isStock&&!1!==e.acrossPanes&&n.coll===`xAxis`||n.coll===`yAxis`){e.preventDefault(),h=t(n.coll),(n.isXAxis?i.yAxis:i.xAxis).forEach(function(e){if(!m(e.options.id)||e.options.id.indexOf(`navigator`)===-1){var t=e.isXAxis?`yAxis`:`xAxis`;t=m(e.options[t])?i[t][e.options[t]]:i[t][0],n===t&&h.push(e)}});var C=h.length?[]:[n.isXAxis?i.yAxis[0]:i.xAxis[0]];h.forEach(function(e){C.indexOf(e)!==-1||g(C,function(t){return t.pos===e.pos&&t.len===e.len})||C.push(e)});var w=b(y,n.translate(x,null,null,e.old));_(w)&&(n.horiz?C.forEach(function(e){var t;l=e.pos,d=l+e.len,c=u=Math.round(w+n.transB),S!==`pass`&&(c<o||c>o+n.width)&&(S?c=u=p(c,o,o+n.width):t=!0),t||f.push([`M`,c,l],[`L`,u,d])}):C.forEach(function(e){var t;c=e.pos,u=c+e.len,l=d=Math.round(s+n.height-w),S!==`pass`&&(l<s||l>s+n.height)&&(S?l=d=p(l,s,s+n.height):t=!0),t||f.push([`M`,c,l],[`L`,u,d])}
4)),e.path=0<f.length?a.crispPolyLine(f,e.lineWidth||1):null}}),o.prototype.crispPolyLine=function(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];r[1]===i[1]&&(r[1]=i[1]=Math.round(r[1])-t%2/2),r[2]===i[2]&&(r[2]=i[2]=Math.round(r[2])+t%2/2)}return e},e(t,`afterHideCrosshair`,function(){this.crossLabel&&=this.crossLabel.hide()}),e(t,`afterDrawCrosshair`,function(e){var t,n;if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&_(this.min)&&_(this.max)){var r=this.chart,i=this.logarithmic,a=this.crosshair.label,o=this.horiz,s=this.opposite,c=this.left,l=this.top,u=this.crossLabel,f=a.format,p=``,m=this.options.tickPosition===`inside`,g=!1!==this.crosshair.snap,v=0,y=e.e||this.cross&&this.cross.e;e=e.point;var x=this.min,S=this.max;i&&(x=i.lin2log(x),S=i.lin2log(S)),i=o?`center`:s?this.labelAlign===`right`?`right`:`left`:this.labelAlign===`left`?`left`:`center`,u||(u=this.crossLabel=r.renderer.label(``,0,void 0,a.shape||`callout`).addClass(`highcharts-crosshair-label highcharts-color-`+(e?e.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:a.align||i,padding:b(a.padding,8),r:b(a.borderRadius,3),zIndex:2}).add(this.labelGroup),r.styledMode||u.attr({fill:a.backgroundColor||e&&e.series&&e.series.color||`#666666`,stroke:a.borderColor||``,"stroke-width":a.borderWidth||0}).css(h({color:`#ffffff`,fontWeight:`normal`,fontSize:`11px`,textAlign:`center`},a.style||{}))),o?(i=g?(e.plotX||0)+c:y.chartX,l+=s?0:this.height):(i=s?this.width+c:0,l=g?(e.plotY||0)+l:y.chartY),f||a.formatter||(this.dateTime&&(p=`%b %d, %Y`),f=`{value`+(p?`:`+p:``)+`}`),p=g?this.isXAxis?e.x:e.y:this.toValue(o?y.chartX:y.chartY),g=e?e.series.isPointInside(e):_(p)&&p>x&&p<S,y=``,f?y=d(f,{value:p},r):a.formatter&&_(p)&&(y=a.formatter.call(this,p)),u.attr({text:y,x:i,y:l,visibility:g?`visible`:`hidden`}),a=u.getBBox(),_(u.y)&&(o?(m&&!s||!m&&s)&&(l=u.y-a.height):l=u.y-a.height/2),o?(t=c-a.x,n=c+this.width-a.x):(t=this.labelAlign===`left`?c:0,n=this.labelAlign===`right`?c+this.width:r.chartWidth),u.translateX<t&&(v=t-u.translateX),u.translateX+a.width>=n&&(v=-(u.translateX+a.width-n)),u.attr({x:i+v,y:l,anchorX:o?i:this.opposite?0:r.chartWidth,anchorY:o?this.opposite?r.chartHeight:0:l+a.height/2})}}),a.prototype.forceCropping=function(){var e=this.chart,t=this.options.dataGrouping;return!1!==this.allowDG&&t&&b(t.enabled,e.options.isStock)},e(n,`update`,function(e){e=e.options,`scrollbar`in e&&this.navigator&&(y(!0,this.options.scrollbar,e.scrollbar),this.navigator.update({},!1),delete e.scrollbar)}),s}),t(n,`masters/modules/stock.src.js`,[n[`Core/Globals.js`],n[`Core/Axis/OrdinalAxis.js`],n[`Series/DataModifyComposition.js`],n[`Core/Scrollbar.js`],n[`Core/Chart/StockChart.js`]],function(e,t,n,r,i){e.Scrollbar=r,e.StockChart=e.stockChart=i.stockChart,r.compose(e.Axis),t.compose(e.Axis,e.Series,e.Chart),n.compose(e.Series,e.Axis,e.Point)}),t(n,`masters/highstock.src.js`,[n[`masters/highcharts.src.js`]],function(e){return e.product=`Highstock`,e}),n[`masters/highstock.src.js`]._modules=n,n[`masters/highstock.src.js`]})})),m=n(),h=e(d(),1),g=e(f(),1),_=e(p(),1),v=10,y=7,b=6,x=5,S=new Date(`1990-09-08`),C=e=>e<v?`0${e}`:e;function w(e){let t=new Date,n=new Date;switch(e){case`1d`:return n.setDate(t.getDate()-2),{interval:u.M5,fromDate:n};case`1w`:return n.setDate(t.getDate()-y),{interval:u.H1,fromDate:n};case`1m`:return n.setMonth(t.getMonth()-1),{interval:u.H4,fromDate:n};case`3m`:return n.setMonth(t.getMonth()-3),{interval:u.H4,fromDate:n};case`6m`:return n.setMonth(t.getMonth()-b),{interval:u.D1,fromDate:n};case`1y`:return n.setFullYear(t.getFullYear()-1),{interval:u.D1,fromDate:n};case`5y`:return n.setFullYear(t.getFullYear()-x),{interval:u.W1,fromDate:n};case`All`:return{interval:u.MN1,fromDate:S};default:return{interval:u.M5,fromDate:S}}}function T(e){let{fromDate:t,interval:n}=w(e);return{fromDateString:`${t.getFullYear()}-${C(t.getMonth()+1)}-${C(t.getDate())}`,interval:n}}var E=.2,D=1.5,O=.8,k=5,A=`#C7C7C7`,j=`#0056FF`,M=`#DAE6FF`,N=`#9898AF`,P={color:A,width:1,zIndex:3,dashStyle:`shortdot`};function F({isDesktop:e,isTablet:t,toCurrencyCode:n,graphData:r}){let i=Math.min(...r.map(e=>e.low)),a=Math.max(...r.map(e=>e.low));return{colors:[j,j],xAxis:{type:`datetime`,crosshair:P,labels:{y:25}},yAxis:{title:{text:null},opposite:!0,gridLineWidth:0,labels:{enabled:e},min:i-(a-i)*E,max:a+(a-i)*E,crosshair:P},chart:{zoomType:`x`,type:`area`,spacingLeft:0,spacingRight:5},plotOptions:{series:{turboThreshold:0,lineWidth:e||t?D:1,fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,M],[O,`#FFFFFF`]]},marker:{fillColor:j,lineWidth:0,radius:3},states:{hover:{halo:{size:0,attributes:{"stroke-width":0}}}}}},title:{text:null},credits:{enabled:!1},legend:{enabled:!1},tooltip:{useHTML:!0,formatter(){let e=Z(this.x);return`<div style="text-align: center;">
5          <div style="font-size: 16px; font-weight: 500; line-height: 120%; letter-spacing: -0.64px;">${this.y.toFixed(k)} ${n}</div>
6          <div style="color: ${N}; font-size: 12px; font-weight: 500; line-height: 120%; letter-spacing: -0.48px;">${e}</div>
7        </div>`}}}}var{fromDateString:I,interval:L}
7=T(`1w`),R=[`1d`,`1w`,`1m`,`3m`,`6m`,`1y`,`5y`,`All`],z=[`1d`,`1w`,`3m`,`6m`,`1y`,`All`],B={"1d":{unit:`day`,value:1},"1w":{unit:`week`,value:1},"1m":{unit:`month`,value:1},"3m":{unit:`month`,value:3},"6m":{unit:`month`,value:6},"1y":{unit:`year`,value:1},"5y":{unit:`year`,value:5}},V={tw:`zh-TW`},H=e=>V[e]||e,U=2e3,W=Array.from({length:12},(e,t)=>new Date(U,t,1)),G=Array.from({length:7},(e,t)=>new Date(U,0,t+2));function K({resetZoom:e}){let t=H(o.read()),n=new Intl.DateTimeFormat(t,{month:`long`}),r=new Intl.DateTimeFormat(t,{month:`short`}),i=new Intl.DateTimeFormat(t,{weekday:`long`});return{months:W.map(e=>n.format(e)),shortMonths:W.map(e=>r.format(e)),weekdays:G.map(e=>i.format(e)),resetZoom:e}}function q(e,t){let n=H(o.read());return new Intl.NumberFormat(n,{style:`unit`,unit:t,unitDisplay:`narrow`}).format(e)}var J=2*s,Y=2*a;function X(e,t){let n=H(o.read()),r=new Date(e);return t>=J?new Intl.DateTimeFormat(n,{year:`numeric`}).format(r):t>=Y?new Intl.DateTimeFormat(n,{month:`short`,year:`numeric`}).format(r):new Intl.DateTimeFormat(n,{day:`2-digit`,month:`short`}).format(r)}function Z(e){let t=H(o.read());return new Intl.DateTimeFormat(t,{day:`2-digit`,month:`short`,year:`numeric`}).format(new Date(e))}function Q(e){return e===`All`?`calculator_page_currency_converter_graph_range_all`:q(B[e].value,B[e].unit)}var $=r(),ee=l(g.default);function te(e){let t=(0,m.c)(5),{options:n,constructorType:r,type:i}=e,a=r===void 0?`chart`:r,o=i===void 0?`line`:i,{t:s}=c();h.setOptions({lang:K({resetZoom:s(`page_currency_converter_graph.reset-zoom`)})});let l=a===`stockChart`?_:h,u;return t[0]!==l||t[1]!==a||t[2]!==n||t[3]!==o?(u=(0,$.jsx)(ee,{constructorType:a,highcharts:l,options:n,type:o}),t[0]=l,t[1]=a,t[2]=n,t[3]=o,t[4]=u):u=t[4],u}export{L as a,T as c,I as i,F as l,X as n,R as o,Q as r,z as s,te as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.