highcharts
Version:
JavaScript charting framework
105 lines (103 loc) • 304 kB
JavaScript
/*
Highcharts JS v10.2.0 (2022-07-05)
(c) 2009-2021 Torstein Honsi
License: www.highcharts.com/license
*/
(function(Y,K){"object"===typeof module&&module.exports?(K["default"]=K,module.exports=Y.document?K(Y):K):"function"===typeof define&&define.amd?define("highcharts/highcharts",function(){return K(Y)}):(Y.Highcharts&&Y.Highcharts.error(16,!0),Y.Highcharts=K(Y))})("undefined"!==typeof window?window:this,function(Y){function K(f,e,l,C){f.hasOwnProperty(e)||(f[e]=C.apply(null,l),"function"===typeof CustomEvent&&Y.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:f[e]}})))}
var l={};K(l,"Core/Globals.js",[],function(){var f;(function(e){e.SVG_NS="http://www.w3.org/2000/svg";e.product="Highcharts";e.version="10.2.0";e.win="undefined"!==typeof Y?Y:{};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=-1!==e.userAgent.indexOf("Chrome");e.isFirefox=-1!==e.userAgent.indexOf("Firefox");e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera;
e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari");e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent);e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit");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 f=!1;if(!e.isMS){var l=Object.defineProperty({},"passive",{get:function(){f=
!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,l),e.win.removeEventListener("testPassive",e.noop,l))}return f}();e.charts=[];e.dateFormats={};e.seriesTypes={};e.symbolSizes={};e.chartCount=0})(f||(f={}));"";return f});K(l,"Core/Utilities.js",[l["Core/Globals.js"]],function(f){function e(c,u,g,k){var A=u?"Highcharts error":"Highcharts warning";32===c&&(c=""+A+": Deprecated member");var m=t(c),n=m?""+A+" #"+c+": www.highcharts.com/errors/"+c+"/":
c.toString();if("undefined"!==typeof k){var b="";m&&(n+="?");w(k,function(a,c){b+="\n - ".concat(c,": ").concat(a);m&&(n+=encodeURI(c)+"="+encodeURI(a))});n+=b}x(f,"displayError",{chart:g,code:c,message:n,params:k},function(){if(u)throw Error(n);a.console&&-1===e.messages.indexOf(n)&&console.warn(n)});e.messages.push(n)}function l(a,c){var A={};w(a,function(u,g){if(G(a[g],!0)&&!a.nodeType&&c[g])u=l(a[g],c[g]),Object.keys(u).length&&(A[g]=u);else if(G(a[g])||a[g]!==c[g]||g in a&&!(g in c))A[g]=a[g]});
return A}function C(a,c){return parseInt(a,c||10)}function v(a){return"string"===typeof a}function E(a){a=Object.prototype.toString.call(a);return"[object Array]"===a||"[object Array Iterator]"===a}function G(a,c){return!!a&&"object"===typeof a&&(!c||!E(a))}function B(a){return G(a)&&"number"===typeof a.nodeType}function y(a){var c=a&&a.constructor;return!(!G(a,!0)||B(a)||!c||!c.name||"Object"===c.name)}function t(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity<a}function h(a){return"undefined"!==
typeof a&&null!==a}function d(a,c,g){var A=v(c)&&!h(g),u,k=function(c,g){h(c)?a.setAttribute(g,c):A?(u=a.getAttribute(g))||"class"!==g||(u=a.getAttribute(g+"Name")):a.removeAttribute(g)};v(c)?k(g,c):w(c,k);return u}function b(a,c){var A;a||(a={});for(A in c)a[A]=c[A];return a}function p(){for(var a=arguments,c=a.length,g=0;g<c;g++){var k=a[g];if("undefined"!==typeof k&&null!==k)return k}}function q(a,c){f.isMS&&!f.svg&&c&&h(c.opacity)&&(c.filter="alpha(opacity=".concat(100*c.opacity,")"));b(a.style,
c)}function r(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))}function n(a,c){return 1E14<a?a:parseFloat(a.toPrecision(c||14))}function J(c,u,g){var A=f.getStyle||J;if("width"===u)return u=Math.min(c.offsetWidth,c.scrollWidth),g=c.getBoundingClientRect&&c.getBoundingClientRect().width,g<u&&g>=u-1&&(u=Math.floor(g)),Math.max(0,u-(A(c,"padding-left",!0)||0)-(A(c,"padding-right",!0)||0));if("height"===u)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(A(c,"padding-top",!0)||0)-(A(c,
"padding-bottom",!0)||0));a.getComputedStyle||e(27,!0);if(c=a.getComputedStyle(c,void 0)){var k=c.getPropertyValue(u);p(g,"opacity"!==u)&&(k=C(k))}return k}function w(a,c,g){for(var A in a)Object.hasOwnProperty.call(a,A)&&c.call(g||a[A],a[A],A,a)}function z(a,c,g){function A(c,I){var A=a.removeEventListener||f.removeEventListenerPolyfill;A&&A.call(a,c,I,!1)}function u(u){var I;if(a.nodeName){if(c){var H={};H[c]=!0}else H=u;w(H,function(a,c){if(u[c])for(I=u[c].length;I--;)A(c,u[c][I].fn)})}}var k=
"function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(k,"hcEvents")){var m=k.hcEvents;c?(k=m[c]||[],g?(m[c]=k.filter(function(a){return g!==a.fn}),A(c,g)):(u(m),m[c]=[])):(u(m),delete k.hcEvents)}}function x(a,c,g,m){g=g||{};if(k.createEvent&&(a.dispatchEvent||a.fireEvent&&a!==f)){var A=k.createEvent("Events");A.initEvent(c,!0,!0);g=b(A,g);a.dispatchEvent?a.dispatchEvent(g):a.fireEvent(c,g)}else if(a.hcEvents){g.target||b(g,{preventDefault:function(){g.defaultPrevented=!0},target:a,
type:c});A=[];for(var u=a,n=!1;u.hcEvents;)Object.hasOwnProperty.call(u,"hcEvents")&&u.hcEvents[c]&&(A.length&&(n=!0),A.unshift.apply(A,u.hcEvents[c])),u=Object.getPrototypeOf(u);n&&A.sort(function(a,c){return a.order-c.order});A.forEach(function(c){!1===c.fn.call(a,g)&&g.preventDefault()})}m&&!g.defaultPrevented&&m.call(a,g)}var m=f.charts,k=f.doc,a=f.win;(e||(e={})).messages=[];Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var g=Array.prototype.find?function(a,c){return a.find(c)}:
function(a,c){var A,u=a.length;for(A=0;A<u;A++)if(c(a[A],A))return a[A]};w({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(a,c){f[c]=function(A){var u;e(32,!1,void 0,(u={},u["Highcharts.".concat(c)]="use Array.".concat(a),u));return Array.prototype[a].apply(A,[].slice.call(arguments,1))}});var c,D=function(){var a=Math.random().toString(36).substring(2,9)+"-",u=0;return function(){return"highcharts-"+(c?"":a)+u++}}();a.jQuery&&(a.jQuery.fn.highcharts=function(){var a=
[].slice.call(arguments);if(this[0])return a[0]?(new (f[v(a[0])?a.shift():"Chart"])(this[0],a[0],a[1]),this):m[d(this[0],"data-highcharts-chart")]});g={addEvent:function(a,c,g,k){void 0===k&&(k={});var u="function"===typeof a&&a.prototype||a;Object.hasOwnProperty.call(u,"hcEvents")||(u.hcEvents={});u=u.hcEvents;f.Point&&a instanceof f.Point&&a.series&&a.series.chart&&(a.series.chart.runTrackerClick=!0);var A=a.addEventListener||f.addEventListenerPolyfill;A&&A.call(a,c,g,f.supportsPassiveEvents?{passive:void 0===
k.passive?-1!==c.indexOf("touch"):k.passive,capture:!1}:!1);u[c]||(u[c]=[]);u[c].push({fn:g,order:"number"===typeof k.order?k.order:Infinity});u[c].sort(function(a,c){return a.order-c.order});return function(){z(a,c,g)}},arrayMax:function(a){for(var c=a.length,g=a[0];c--;)a[c]>g&&(g=a[c]);return g},arrayMin:function(a){for(var c=a.length,g=a[0];c--;)a[c]<g&&(g=a[c]);return g},attr:d,clamp:function(a,c,g){return a>c?a<g?a:g:c},cleanRecursively:l,clearTimeout:function(a){h(a)&&clearTimeout(a)},correctFloat:n,
createElement:function(a,c,g,m,n){a=k.createElement(a);c&&b(a,c);n&&q(a,{padding:"0",border:"none",margin:"0"});g&&q(a,g);m&&m.appendChild(a);return a},css:q,defined:h,destroyObjectProperties:function(a,c){w(a,function(g,u){g&&g!==c&&g.destroy&&g.destroy();delete a[u]})},discardElement:function(a){a&&a.parentElement&&a.parentElement.removeChild(a)},erase:function(a,c){for(var g=a.length;g--;)if(a[g]===c){a.splice(g,1);break}},error:e,extend:b,extendClass:function(a,c){var g=function(){};g.prototype=
new a;b(g.prototype,c);return g},find:g,fireEvent:x,getMagnitude:r,getNestedProperty:function(c,g){for(c=c.split(".");c.length&&h(g);){var u=c.shift();if("undefined"===typeof u||"__proto__"===u)return;g=g[u];if(!h(g)||"function"===typeof g||"number"===typeof g.nodeType||g===a)return}return g},getStyle:J,inArray:function(a,c,g){e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return c.indexOf(a,g)},isArray:E,isClass:y,isDOMElement:B,isFunction:function(a){return"function"===typeof a},isNumber:t,
isObject:G,isString:v,keys:function(a){e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(a)},merge:function(){var a,c=arguments,g={},k=function(a,c){"object"!==typeof a&&(a={});w(c,function(g,I){"__proto__"!==I&&"constructor"!==I&&(!G(g,!0)||y(g)||B(g)?a[I]=c[I]:a[I]=k(a[I]||{},g))});return a};!0===c[0]&&(g=c[1],c=Array.prototype.slice.call(c,2));var m=c.length;for(a=0;a<m;a++)g=k(g,c[a]);return g},normalizeTickInterval:function(a,c,g,k,m){var u=a;g=p(g,r(a));var A=a/g;c||(c=
m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===k&&(1===g?c=c.filter(function(a){return 0===a%1}):.1>=g&&(c=[1/g])));for(k=0;k<c.length&&!(u=c[k],m&&u*g>=a||!m&&A<=(c[k]+(c[k+1]||c[k]))/2);k++);return u=n(u*g,-Math.round(Math.log(.001)/Math.LN10))},objectEach:w,offset:function(c){var g=k.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(a.pageYOffset||g.scrollTop)-(g.clientTop||0),left:c.left+(a.pageXOffset||g.scrollLeft)-
(g.clientLeft||0),width:c.width,height:c.height}},pad:function(a,c,g){return Array((c||2)+1-String(a).replace("-","").length).join(g||"0")+a},pick:p,pInt:C,relativeLength:function(a,c,g){return/%$/.test(a)?c*parseFloat(a)/100+(g||0):parseFloat(a)},removeEvent:z,splat:function(a){return E(a)?a:[a]},stableSort:function(a,c){var g=a.length,k,u;for(u=0;u<g;u++)a[u].safeI=u;a.sort(function(a,g){k=c(a,g);return 0===k?a.safeI-g.safeI:k});for(u=0;u<g;u++)delete a[u].safeI},syncTimeout:function(a,c,g){if(0<
c)return setTimeout(a,c,g);a.call(0,g);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:D,useSerialIds:function(a){return c=p(a,c)},wrap:function(a,c,g){var k=a[c];a[c]=function(){var a=Array.prototype.slice.call(arguments),c=arguments,u=this;u.proceed=function(){k.apply(u,arguments.length?arguments:c)};a.unshift(k);a=g.apply(this,a);u.proceed=null;return a}}};"";return g});K(l,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,
panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});K(l,"Core/Color/Color.js",[l["Core/Globals.js"],l["Core/Utilities.js"]],function(f,e){var l=e.isNumber,C=e.merge,v=e.pInt;e=function(){function e(l){this.rgba=
[NaN,NaN,NaN,NaN];this.input=l;var B=f.Color;if(B&&B!==e)return new B(l);if(!(this instanceof e))return new e(l);this.init(l)}e.parse=function(f){return f?new e(f):e.None};e.prototype.init=function(f){var B;if("object"===typeof f&&"undefined"!==typeof f.stops)this.stops=f.stops.map(function(d){return new e(d[1])});else if("string"===typeof f){this.input=f=e.names[f.toLowerCase()]||f;if("#"===f.charAt(0)){var y=f.length;var t=parseInt(f.substr(1),16);7===y?B=[(t&16711680)>>16,(t&65280)>>8,t&255,1]:
4===y&&(B=[(t&3840)>>4|(t&3840)>>8,(t&240)>>4|t&240,(t&15)<<4|t&15,1])}if(!B)for(t=e.parsers.length;t--&&!B;){var h=e.parsers[t];(y=h.regex.exec(f))&&(B=h.parse(y))}}B&&(this.rgba=B)};e.prototype.get=function(e){var B=this.input,y=this.rgba;if("object"===typeof B&&"undefined"!==typeof this.stops){var t=C(B);t.stops=[].slice.call(t.stops);this.stops.forEach(function(h,d){t.stops[d]=[t.stops[d][0],h.get(e)]});return t}return y&&l(y[0])?"rgb"===e||!e&&1===y[3]?"rgb("+y[0]+","+y[1]+","+y[2]+")":"a"===
e?"".concat(y[3]):"rgba("+y.join(",")+")":B};e.prototype.brighten=function(e){var B=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(l(e)&&0!==e)for(var y=0;3>y;y++)B[y]+=v(255*e),0>B[y]&&(B[y]=0),255<B[y]&&(B[y]=255);return this};e.prototype.setOpacity=function(e){this.rgba[3]=e;return this};e.prototype.tweenTo=function(e,B){var y=this.rgba,t=e.rgba;if(!l(y[0])||!l(t[0]))return e.input||"none";e=1!==t[3]||1!==y[3];return(e?"rgba(":"rgb(")+Math.round(t[0]+(y[0]-t[0])*
(1-B))+","+Math.round(t[1]+(y[1]-t[1])*(1-B))+","+Math.round(t[2]+(y[2]-t[2])*(1-B))+(e?","+(t[3]+(y[3]-t[3])*(1-B)):"")+")"};e.names={white:"#ffffff",black:"#000000"};e.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[v(e[1]),v(e[2]),v(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[v(e[1]),v(e[2]),v(e[3]),1]}}];e.None=new e("");return e}();
"";return e});K(l,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});K(l,"Core/Time.js",[l["Core/Globals.js"],l["Core/Utilities.js"]],function(f,e){var l=f.win,C=e.defined,v=e.error,E=e.extend,G=e.isObject,B=e.merge,y=e.objectEach,t=e.pad,h=e.pick,d=e.splat,b=e.timeUnits,p=f.isSafari&&l.Intl&&l.Intl.DateTimeFormat.prototype.formatRange,q=f.isSafari&&l.Intl&&!l.Intl.DateTimeFormat.prototype.formatRange;
e=function(){function r(n){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=l.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(n)}r.prototype.get=function(n,b){if(this.variableTimezone||this.timezoneOffset){var d=b.getTime(),r=d-this.getTimezoneOffset(b);b.setTime(r);n=b["getUTC"+n]();b.setTime(d);return n}return this.useUTC?b["getUTC"+n]():b["get"+n]()};r.prototype.set=function(n,b,d){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===n||"Seconds"===
n||"Minutes"===n&&0===this.getTimezoneOffset(b)%36E5)return b["setUTC"+n](d);var r=this.getTimezoneOffset(b);r=b.getTime()-r;b.setTime(r);b["setUTC"+n](d);n=this.getTimezoneOffset(b);r=b.getTime()+n;return b.setTime(r)}return this.useUTC||p&&"FullYear"===n?b["setUTC"+n](d):b["set"+n](d)};r.prototype.update=function(b){var n=h(b&&b.useUTC,!0);this.options=b=B(!0,this.options||{},b);this.Date=b.Date||l.Date||Date;this.timezoneOffset=(this.useUTC=n)&&b.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();
this.variableTimezone=n&&!(!b.getTimezoneOffset&&!b.timezone)};r.prototype.makeTime=function(b,d,r,p,x,m){if(this.useUTC){var k=this.Date.UTC.apply(0,arguments);var a=this.getTimezoneOffset(k);k+=a;var g=this.getTimezoneOffset(k);a!==g?k+=g-a:a-36E5!==this.getTimezoneOffset(k-36E5)||q||(k-=36E5)}else k=(new this.Date(b,d,h(r,1),h(p,0),h(x,0),h(m,0))).getTime();return k};r.prototype.timezoneOffsetFunction=function(){var b=this,d=this.options,r=d.getTimezoneOffset,p=d.moment||l.moment;if(!this.useUTC)return function(b){return 6E4*
(new Date(b.toString())).getTimezoneOffset()};if(d.timezone){if(p)return function(b){return 6E4*-p.tz(b,d.timezone).utcOffset()};v(25)}return this.useUTC&&r?function(b){return 6E4*r(b.valueOf())}:function(){return 6E4*(b.timezoneOffset||0)}};r.prototype.dateFormat=function(b,d,r){if(!C(d)||isNaN(d))return f.defaultOptions.lang&&f.defaultOptions.lang.invalidDate||"";b=h(b,"%Y-%m-%d %H:%M:%S");var n=this,p=new this.Date(d),m=this.get("Hours",p),k=this.get("Day",p),a=this.get("Date",p),g=this.get("Month",
p),c=this.get("FullYear",p),D=f.defaultOptions.lang,A=D&&D.weekdays,u=D&&D.shortWeekdays;p=E({a:u?u[k]:A[k].substr(0,3),A:A[k],d:t(a),e:t(a,2," "),w:k,b:D.shortMonths[g],B:D.months[g],m:t(g+1),o:g+1,y:c.toString().substr(2,2),Y:c,H:t(m),k:m,I:t(m%12||12),l:m%12||12,M:t(this.get("Minutes",p)),p:12>m?"AM":"PM",P:12>m?"am":"pm",S:t(p.getSeconds()),L:t(Math.floor(d%1E3),3)},f.dateFormats);y(p,function(a,c){for(;-1!==b.indexOf("%"+c);)b=b.replace("%"+c,"function"===typeof a?a.call(n,d):a)});return r?b.substr(0,
1).toUpperCase()+b.substr(1):b};r.prototype.resolveDTLFormat=function(b){return G(b,!0)?b:(b=d(b),{main:b[0],from:b[1],to:b[2]})};r.prototype.getTimeTicks=function(d,r,p,q){var n=this,m=[],k={},a=new n.Date(r),g=d.unitRange,c=d.count||1,D;q=h(q,1);if(C(r)){n.set("Milliseconds",a,g>=b.second?0:c*Math.floor(n.get("Milliseconds",a)/c));g>=b.second&&n.set("Seconds",a,g>=b.minute?0:c*Math.floor(n.get("Seconds",a)/c));g>=b.minute&&n.set("Minutes",a,g>=b.hour?0:c*Math.floor(n.get("Minutes",a)/c));g>=b.hour&&
n.set("Hours",a,g>=b.day?0:c*Math.floor(n.get("Hours",a)/c));g>=b.day&&n.set("Date",a,g>=b.month?1:Math.max(1,c*Math.floor(n.get("Date",a)/c)));if(g>=b.month){n.set("Month",a,g>=b.year?0:c*Math.floor(n.get("Month",a)/c));var A=n.get("FullYear",a)}g>=b.year&&n.set("FullYear",a,A-A%c);g===b.week&&(A=n.get("Day",a),n.set("Date",a,n.get("Date",a)-A+q+(A<q?-7:0)));A=n.get("FullYear",a);q=n.get("Month",a);var u=n.get("Date",a),z=n.get("Hours",a);r=a.getTime();!n.variableTimezone&&n.useUTC||!C(p)||(D=p-
r>4*b.month||n.getTimezoneOffset(r)!==n.getTimezoneOffset(p));r=a.getTime();for(a=1;r<p;)m.push(r),r=g===b.year?n.makeTime(A+a*c,0):g===b.month?n.makeTime(A,q+a*c):!D||g!==b.day&&g!==b.week?D&&g===b.hour&&1<c?n.makeTime(A,q,u,z+a*c):r+g*c:n.makeTime(A,q,u+a*c*(g===b.day?1:7)),a++;m.push(r);g<=b.hour&&1E4>m.length&&m.forEach(function(a){0===a%18E5&&"000000000"===n.dateFormat("%H%M%S%L",a)&&(k[a]="day")})}m.info=E(d,{higherRanks:k,totalRange:g*c});return m};r.prototype.getDateFormat=function(n,d,r,
p){var q=this.dateFormat("%m-%d %H:%M:%S.%L",d),m={millisecond:15,second:12,minute:9,hour:6,day:3},k="millisecond";for(a in b){if(n===b.week&&+this.dateFormat("%w",d)===r&&"00:00:00.000"===q.substr(6)){var a="week";break}if(b[a]>n){a=k;break}if(m[a]&&q.substr(m[a])!=="01-01 00:00:00.000".substr(m[a]))break;"week"!==a&&(k=a)}return this.resolveDTLFormat(p[a]).main};return r}();"";return e});K(l,"Core/DefaultOptions.js",[l["Core/Chart/ChartDefaults.js"],l["Core/Color/Color.js"],l["Core/Globals.js"],
l["Core/Color/Palettes.js"],l["Core/Time.js"],l["Core/Utilities.js"]],function(f,e,l,C,v,E){e=e.parse;var P=E.merge,B={colors:C.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:f,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",
alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",
x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:l.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:l.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",
x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};B.chart.styledMode=!1;"";var y=new v(P(B.global,B.time));f={defaultOptions:B,defaultTime:y,getOptions:function(){return B},setOptions:function(t){P(!0,B,t);if(t.time||t.global)l.time?l.time.update(P(B.global,B.time,t.global,t.time)):l.time=y;return B}};"";return f});K(l,"Core/Animation/Fx.js",[l["Core/Color/Color.js"],l["Core/Globals.js"],l["Core/Utilities.js"]],function(f,e,l){var P=
f.parse,v=e.win,E=l.isNumber,G=l.objectEach;return function(){function e(e,t,h){this.pos=NaN;this.options=t;this.elem=e;this.prop=h}e.prototype.dSetter=function(){var e=this.paths,t=e&&e[0];e=e&&e[1];var h=this.now||0,d=[];if(1!==h&&t&&e)if(t.length===e.length&&1>h)for(var b=0;b<e.length;b++){for(var p=t[b],q=e[b],r=[],n=0;n<q.length;n++){var J=p[n],w=q[n];E(J)&&E(w)&&("A"!==q[0]||4!==n&&5!==n)?r[n]=J+h*(w-J):r[n]=w}d.push(r)}else d=e;else d=this.toD||[];this.elem.attr("d",d,void 0,!0)};e.prototype.update=
function(){var e=this.elem,t=this.prop,h=this.now,d=this.options.step;if(this[t+"Setter"])this[t+"Setter"]();else e.attr?e.element&&e.attr(t,h,null,!0):e.style[t]=h+this.unit;d&&d.call(e,h,this)};e.prototype.run=function(y,t,h){var d=this,b=d.options,p=function(b){return p.stopped?!1:d.step(b)},q=v.requestAnimationFrame||function(b){setTimeout(b,13)},r=function(){for(var b=0;b<e.timers.length;b++)e.timers[b]()||e.timers.splice(b--,1);e.timers.length&&q(r)};y!==t||this.elem["forceAnimate:"+this.prop]?
(this.startTime=+new Date,this.start=y,this.end=t,this.unit=h,this.now=this.start,this.pos=0,p.elem=this.elem,p.prop=this.prop,p()&&1===e.timers.push(p)&&q(r)):(delete b.curAnim[this.prop],b.complete&&0===Object.keys(b.curAnim).length&&b.complete.call(this.elem))};e.prototype.step=function(e){var t=+new Date,h=this.options,d=this.elem,b=h.complete,p=h.duration,q=h.curAnim;if(d.attr&&!d.element)e=!1;else if(e||t>=p+this.startTime){this.now=this.end;this.pos=1;this.update();var r=q[this.prop]=!0;G(q,
function(b){!0!==b&&(r=!1)});r&&b&&b.call(d);e=!1}else this.pos=h.easing((t-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0;return e};e.prototype.initPath=function(e,t,h){function d(b,m){for(;b.length<z;){var k=b[0],a=m[z-b.length];a&&"M"===k[0]&&(b[0]="C"===a[0]?["C",k[1],k[2],k[1],k[2],k[1],k[2]]:["L",k[1],k[2]]);b.unshift(k);r&&(k=b.pop(),b.push(b[b.length-1],k))}}function b(b,m){for(;b.length<z;)if(m=b[Math.floor(b.length/n)-1].slice(),"C"===m[0]&&(m[1]=
m[5],m[2]=m[6]),r){var k=b[Math.floor(b.length/n)].slice();b.splice(b.length/2,0,m,k)}else b.push(m)}var p=e.startX,q=e.endX;h=h.slice();var r=e.isArea,n=r?2:1;t=t&&t.slice();if(!t)return[h,h];if(p&&q&&q.length){for(e=0;e<p.length;e++)if(p[e]===q[0]){var J=e;break}else if(p[0]===q[q.length-p.length+e]){J=e;var w=!0;break}else if(p[p.length-1]===q[q.length-p.length+e]){J=p.length-e;break}"undefined"===typeof J&&(t=[])}if(t.length&&E(J)){var z=h.length+J*n;w?(d(t,h),b(h,t)):(d(h,t),b(t,h))}return[t,
h]};e.prototype.fillSetter=function(){e.prototype.strokeSetter.apply(this,arguments)};e.prototype.strokeSetter=function(){this.elem.attr(this.prop,P(this.start).tweenTo(P(this.end),this.pos),void 0,!0)};e.timers=[];return e}()});K(l,"Core/Animation/AnimationUtilities.js",[l["Core/Animation/Fx.js"],l["Core/Utilities.js"]],function(f,e){function l(b){return y(b)?t({duration:500,defer:0},b):{duration:b?500:0,defer:0}}function C(b,d){for(var p=f.timers.length;p--;)f.timers[p].elem!==b||d&&d!==f.timers[p].prop||
(f.timers[p].stopped=!0)}var v=e.defined,E=e.getStyle,G=e.isArray,B=e.isNumber,y=e.isObject,t=e.merge,h=e.objectEach,d=e.pick;return{animate:function(b,d,q){var r,n="",p,w;if(!y(q)){var z=arguments;q={duration:z[2],easing:z[3],complete:z[4]}}B(q.duration)||(q.duration=400);q.easing="function"===typeof q.easing?q.easing:Math[q.easing]||Math.easeInOutSine;q.curAnim=t(d);h(d,function(h,m){C(b,m);w=new f(b,q,m);p=void 0;"d"===m&&G(d.d)?(w.paths=w.initPath(b,b.pathArray,d.d),w.toD=d.d,r=0,p=1):b.attr?
r=b.attr(m):(r=parseFloat(E(b,m))||0,"opacity"!==m&&(n="px"));p||(p=h);"string"===typeof p&&p.match("px")&&(p=p.replace(/px/g,""));w.run(r,p,n)})},animObject:l,getDeferredAnimation:function(b,d,q){var r=l(d),n=0,p=0;(q?[q]:b.series).forEach(function(b){b=l(b.options.animation);n=d&&v(d.defer)?r.defer:Math.max(n,b.duration+b.defer);p=Math.min(r.duration,b.duration)});b.renderer.forExport&&(n=0);return{defer:Math.max(0,n-p),duration:Math.min(n,p)}},setAnimation:function(b,p){p.renderer.globalAnimation=
d(b,p.options.chart.animation,!0)},stop:C}});K(l,"Core/Renderer/HTML/AST.js",[l["Core/Globals.js"],l["Core/Utilities.js"]],function(f,e){var l=f.SVG_NS,C=e.attr,v=e.createElement,E=e.css,G=e.error,B=e.isFunction,y=e.isString,t=e.objectEach,h=e.splat,d=(e=f.win.trustedTypes)&&B(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(b){return b}}),b=d?d.createHTML(""):"";try{var p=!!(new DOMParser).parseFromString(b,"text/html")}catch(q){p=!1}B=function(){function q(b){this.nodes="string"===
typeof b?this.parseMarkup(b):b}q.filterUserAttributes=function(b){t(b,function(d,p){var n=!0;-1===q.allowedAttributes.indexOf(p)&&(n=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(p)&&(n=y(d)&&q.allowedReferences.some(function(b){return 0===d.indexOf(b)}));n||(G(33,!1,void 0,{"Invalid attribute in config":"".concat(p)}),delete b[p])});return b};q.parseStyle=function(b){return b.split(";").reduce(function(b,d){d=d.split(":").map(function(b){return b.trim()});var p=d.shift();p&&d.length&&
(b[p.replace(/-([a-z])/g,function(b){return b[1].toUpperCase()})]=d.join(":"));return b},{})};q.setElementHTML=function(b,d){b.innerHTML=q.emptyHTML;d&&(new q(d)).addToDOM(b)};q.prototype.addToDOM=function(b){function d(b,p){var n;h(b).forEach(function(b){var m=b.tagName,k=b.textContent?f.doc.createTextNode(b.textContent):void 0,a=q.bypassHTMLFiltering;if(m)if("#text"===m)var g=k;else if(-1!==q.allowedTags.indexOf(m)||a){m=f.doc.createElementNS("svg"===m?l:p.namespaceURI||l,m);var c=b.attributes||
{};t(b,function(a,g){"tagName"!==g&&"attributes"!==g&&"children"!==g&&"style"!==g&&"textContent"!==g&&(c[g]=a)});C(m,a?c:q.filterUserAttributes(c));b.style&&E(m,b.style);k&&m.appendChild(k);d(b.children||[],m);g=m}else G(33,!1,void 0,{"Invalid tagName in config":m});g&&p.appendChild(g);n=g});return n}return d(this.nodes,b)};q.prototype.parseMarkup=function(b){var n=[];b=b.trim().replace(/ style="/g,' data-style="');if(p)b=(new DOMParser).parseFromString(d?d.createHTML(b):b,"text/html");else{var r=
v("div");r.innerHTML=b;b={body:r}}var h=function(b,d){var m=b.nodeName.toLowerCase(),k={tagName:m};"#text"===m&&(k.textContent=b.textContent||"");if(m=b.attributes){var a={};[].forEach.call(m,function(c){"data-style"===c.name?k.style=q.parseStyle(c.value):a[c.name]=c.value});k.attributes=a}if(b.childNodes.length){var g=[];[].forEach.call(b.childNodes,function(a){h(a,g)});g.length&&(k.children=g)}d.push(k)};[].forEach.call(b.body.childNodes,function(b){return h(b,n)});return n};q.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(" ");
q.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");q.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(" ");q.emptyHTML=b;q.bypassHTMLFiltering=!1;return q}();"";return B});
K(l,"Core/FormatUtilities.js",[l["Core/DefaultOptions.js"],l["Core/Utilities.js"]],function(f,e){function l(e,h,d,b){e=+e||0;h=+h;var p=C.lang,q=(e.toString().split(".")[1]||"").split("e")[0].length,r=e.toString().split("e"),n=h;if(-1===h)h=Math.min(q,20);else if(!G(h))h=2;else if(h&&r[1]&&0>r[1]){var J=h+ +r[1];0<=J?(r[0]=(+r[0]).toExponential(J).split("e")[0],h=J):(r[0]=r[0].split(".")[0]||0,e=20>h?(r[0]*Math.pow(10,r[1])).toFixed(h):0,r[1]=0)}J=(Math.abs(r[1]?r[0]:e)+Math.pow(10,-Math.max(h,q)-
1)).toFixed(h);q=String(y(J));var w=3<q.length?q.length%3:0;d=B(d,p.decimalPoint);b=B(b,p.thousandsSep);e=(0>e?"-":"")+(w?q.substr(0,w)+b:"");e=0>+r[1]&&!n?"0":e+q.substr(w).replace(/(\d{3})(?=\d)/g,"$1"+b);h&&(e+=d+J.slice(-h));r[1]&&0!==+e&&(e+="e"+r[1]);return e}var C=f.defaultOptions,v=f.defaultTime,E=e.getNestedProperty,G=e.isNumber,B=e.pick,y=e.pInt;return{dateFormat:function(e,h,d){return v.dateFormat(e,h,d)},format:function(e,h,d){var b="{",p=!1,q=/f$/,r=/\.([0-9])/,n=C.lang,J=d&&d.time||
v;d=d&&d.numberFormatter||l;for(var w=[];e;){var z=e.indexOf(b);if(-1===z)break;var x=e.slice(0,z);if(p){x=x.split(":");b=E(x.shift()||"",h);if(x.length&&"number"===typeof b)if(x=x.join(":"),q.test(x)){var m=parseInt((x.match(r)||["","-1"])[1],10);null!==b&&(b=d(b,m,n.decimalPoint,-1<x.indexOf(",")?n.thousandsSep:""))}else b=J.dateFormat(x,b);w.push(b)}else w.push(x);e=e.slice(z+1);b=(p=!p)?"}":"{"}w.push(e);return w.join("")},numberFormat:l}});K(l,"Core/Renderer/RendererUtilities.js",[l["Core/Utilities.js"]],
function(f){var e=f.clamp,l=f.pick,C=f.stableSort,v;(function(f){function v(f,y,t){var h=f,d=h.reducedLen||y,b=function(b,d){return(d.rank||0)-(b.rank||0)},p=function(b,d){return b.target-d.target},q,r=!0,n=[],J=0;for(q=f.length;q--;)J+=f[q].size;if(J>d){C(f,b);for(J=q=0;J<=d;)J+=f[q].size,q++;n=f.splice(q-1,f.length)}C(f,p);for(f=f.map(function(b){return{size:b.size,targets:[b.target],align:l(b.align,.5)}});r;){for(q=f.length;q--;)d=f[q],b=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/
2,d.pos=e(b-d.size*d.align,0,y-d.size);q=f.length;for(r=!1;q--;)0<q&&f[q-1].pos+f[q-1].size>f[q].pos&&(f[q-1].size+=f[q].size,f[q-1].targets=f[q-1].targets.concat(f[q].targets),f[q-1].align=.5,f[q-1].pos+f[q-1].size>y&&(f[q-1].pos=y-f[q-1].size),f.splice(q,1),r=!0)}h.push.apply(h,n);q=0;f.some(function(b){var d=0;return(b.targets||[]).some(function(){h[q].pos=b.pos+d;if("undefined"!==typeof t&&Math.abs(h[q].pos-h[q].target)>t)return h.slice(0,q+1).forEach(function(b){return delete b.pos}),h.reducedLen=
(h.reducedLen||y)-.1*y,h.reducedLen>.1*y&&v(h,y,t),!0;d+=h[q].size;q++;return!1})});C(h,p);return h}f.distribute=v})(v||(v={}));return v});K(l,"Core/Renderer/SVG/SVGElement.js",[l["Core/Animation/AnimationUtilities.js"],l["Core/Renderer/HTML/AST.js"],l["Core/Color/Color.js"],l["Core/Globals.js"],l["Core/Utilities.js"]],function(f,e,l,C,v){var P=f.animate,G=f.animObject,B=f.stop,y=C.deg2rad,t=C.doc,h=C.noop,d=C.svg,b=C.SVG_NS,p=C.win,q=v.addEvent,r=v.attr,n=v.createElement,J=v.css,w=v.defined,z=v.erase,
x=v.extend,m=v.fireEvent,k=v.isArray,a=v.isFunction,g=v.isNumber,c=v.isString,D=v.merge,A=v.objectEach,u=v.pick,L=v.pInt,S=v.syncTimeout,R=v.uniqueKey;f=function(){function f(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=b;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}f.prototype._defaultGetter=function(a){a=u(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&
(a=parseFloat(a));return a};f.prototype._defaultSetter=function(a,c,g){g.setAttribute(c,a)};f.prototype.add=function(a){var c=this.renderer,g=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var b=this.zIndexSetter();b||(a?a.element:c.box).appendChild(g);if(this.onAdd)this.onAdd();return this};f.prototype.addClass=function(a,c){var g=c?"":this.attr("class")||
"";a=(a||"").split(/ /g).reduce(function(a,c){-1===g.indexOf(c)&&a.push(c);return a},g?[g]:[]).join(" ");a!==g&&this.attr("class",a);return this};f.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};f.prototype.align=function(a,g,I){var b={},k=this.renderer,m=k.alignedObjects,d,p,F;if(a){if(this.alignOptions=a,this.alignByTranslate=g,!I||c(I))this.alignTo=d=I||"renderer",z(m,this),m.push(this),I=void 0}else a=this.alignOptions,g=this.alignByTranslate,
d=this.alignTo;I=u(I,k[d],"scrollablePlotBox"===d?k.plotBox:void 0,k);d=a.align;var A=a.verticalAlign;k=(I.x||0)+(a.x||0);m=(I.y||0)+(a.y||0);"right"===d?p=1:"center"===d&&(p=2);p&&(k+=(I.width-(a.width||0))/p);b[g?"translateX":"x"]=Math.round(k);"bottom"===A?F=1:"middle"===A&&(F=2);F&&(m+=(I.height-(a.height||0))/F);b[g?"translateY":"y"]=Math.round(m);this[this.placed?"animate":"attr"](b);this.placed=!0;this.alignAttr=b;return this};f.prototype.alignSetter=function(a){var c={left:"start",center:"middle",
right:"end"};c[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",c[a]))};f.prototype.animate=function(a,c,g){var I=this,b=G(u(c,this.renderer.globalAnimation,!0));c=b.defer;u(t.hidden,t.msHidden,t.webkitHidden,!1)&&(b.duration=0);0!==b.duration?(g&&(b.complete=g),S(function(){I.element&&P(I,a,b)},c)):(this.attr(a,void 0,g||b.complete),A(a,function(a,c){b.step&&b.step.call(this,a,{prop:c,pos:1,elem:this})},this));return this};f.prototype.applyTextOutline=function(a){var c=this.element;
-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(c.style.fill)));var g=a.split(" ");a=g[g.length-1];if((g=g[0])&&"none"!==g&&C.svg){this.fakeTS=!0;this.ySetter=this.xSetter;g=g.replace(/(^[\d\.]+)(.*?)$/g,function(a,c,g){return 2*Number(c)+g});this.removeTextOutline();var k=t.createElementNS(b,"tspan");r(k,{"class":"highcharts-text-outline",fill:a,stroke:a,"stroke-width":g,"stroke-linejoin":"round"});[].forEach.call(c.childNodes,function(a){var c=a.cloneNode(!0);c.removeAttribute&&
["fill","stroke","stroke-width","stroke"].forEach(function(a){return c.removeAttribute(a)});k.appendChild(c)});var u=t.createElementNS(b,"tspan");u.textContent="\u200b";["x","y"].forEach(function(a){var g=c.getAttribute(a);g&&u.setAttribute(a,g)});k.appendChild(u);c.insertBefore(k,c.firstChild)}};f.prototype.attr=function(a,c,g,b){var I=this.element,k=this.symbolCustomAttribs,H,u=this,F,m;if("string"===typeof a&&"undefined"!==typeof c){var d=a;a={};a[d]=c}"string"===typeof a?u=(this[a+"Getter"]||
this._defaultGetter).call(this,a,I):(A(a,function(c,g){F=!1;b||B(this,g);this.symbolName&&-1!==k.indexOf(g)&&(H||(this.symbolAttr(a),H=!0),F=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);F||(m=this[g+"Setter"]||this._defaultSetter,m.call(this,c,g,I),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,c,m))},this),this.afterSetters());g&&g.call(this);return u};f.prototype.clip=function(a){return this.attr("clip-path",a?"url("+
this.renderer.url+"#"+a.id+")":"none")};f.prototype.crisp=function(a,c){c=c||a.strokeWidth||0;var g=Math.round(c)%2/2;a.x=Math.floor(a.x||this.x||0)+g;a.y=Math.floor(a.y||this.y||0)+g;a.width=Math.floor((a.width||this.width||0)-2*g);a.height=Math.floor((a.height||this.height||0)-2*g);w(a.strokeWidth)&&(a.strokeWidth=c);return a};f.prototype.complexColor=function(a,c,g){var b=this.renderer,I,u,d,p,F,n,r,q,h,z,e=[],x;m(this.renderer,"complexColor",{args:arguments},function(){a.radialGradient?u="radialGradient":
a.linearGradient&&(u="linearGradient");if(u){d=a[u];F=b.gradients;n=a.stops;h=g.radialReference;k(d)&&(a[u]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===u&&h&&!w(d.gradientUnits)&&(p=d,d=D(d,b.getRadialAttr(h,p),{gradientUnits:"userSpaceOnUse"}));A(d,function(a,c){"id"!==c&&e.push(c,a)});A(n,function(a){e.push(a)});e=e.join(",");if(F[e])z=F[e].attr("id");else{d.id=z=R();var H=F[e]=b.createElement(u).attr(d).add(b.defs);H.radAttr=p;H.stops=[];n.forEach(function(a){0===
a[1].indexOf("rgba")?(I=l.parse(a[1]),r=I.get("rgb"),q=I.get("a")):(r=a[1],q=1);a=b.createElement("stop").attr({offset:a[0],"stop-color":r,"stop-opacity":q}).add(H);H.stops.push(a)})}x="url("+b.url+"#"+z+")";g.setAttribute(c,x);g.gradient=e;a.toString=function(){return x}}})};f.prototype.css=function(a){var c=this.styles,g={},b=this.element,k=!c;a.color&&(a.fill=a.color);c&&A(a,function(a,b){c&&c[b]!==a&&(g[b]=a,k=!0)});if(k){c&&(a=x(c,g));if(null===a.width||"auto"===a.width)delete this.textWidth;
else if("text"===b.nodeName.toLowerCase()&&a.width)var u=this.textWidth=L(a.width);this.styles=a;u&&!d&&this.renderer.forExport&&delete a.width;var m=D(a);b.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(a){return m&&delete m[a]});J(b,m);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a.textOutline&&this.applyTextOutline(a.textOutline))}return this};f.prototype.dashstyleSetter=function(a){var c=this["stroke-width"];"inherit"===c&&(c=
1);if(a=a&&a.toLowerCase()){var g=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(a=g.length;a--;)g[a]=""+L(g[a])*u(c,NaN);a=g.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}};f.prototype.destroy=function(){var a=this,c=a.element||{},g=a.renderer,b=c.ownerSVGElement,k=g.isSVG&&
"SPAN"===c.nodeName&&a.parentGroup||void 0;c.onclick=c.onmouseout=c.onmouseover=c.onmousemove=c.point=null;B(a);if(a.clipPath&&b){var u=a.clipPath;[].forEach.call(b.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){-1<a.getAttribute("clip-path").indexOf(u.element.id)&&a.removeAttribute("clip-path")});a.clipPath=u.destroy()}if(a.stops){for(b=0;b<a.stops.length;b++)a.stops[b].destroy();a.stops.length=0;a.stops=void 0}a.safeRemoveChild(c);for(g.styledMode||a.destroyShadows();k&&k.div&&0===k.div.childNodes.length;)c=
k.parentGroup,a.safeRemoveChild(k.div),delete k.div,k=c;a.alignTo&&z(g.alignedObjects,a);A(a,function(c,g){a[g]&&a[g].parentGroup===a&&a[g].destroy&&a[g].destroy();delete a[g]})};f.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this);this.shadows=void 0};f.prototype.destroyTextPath=function(a,c){var g=a.getElementsByTagName("text")[0];if(g){if(g.removeAttribute("dx"),g.removeAttribute("dy"),c.element.setAttribute("id",""),this.textPathWrapper&&
g.getElementsByTagName("textPath").length){for(a=this.textPathWrapper.element.childNodes;a.length;)g.appendChild(a[0]);g.removeChild(this.textPathWrapper.element)}}else if(a.getAttribute("dx")||a.getAttribute("dy"))a.removeAttribute("dx"),a.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};f.prototype.dSetter=function(a,c,g){k(a)&&("string"===typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(a,c,g){return c&&c.join?
(g?a+" ":"")+c.join(" "):(c||"").toString()},""));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[c]!==a&&(g.setAttribute(c,a),this[c]=a)};f.prototype.fadeOut=function(a){var c=this;c.animate({opacity:0},{duration:u(a,150),complete:function(){c.hide()}})};f.prototype.fillSetter=function(a,c,g){"string"===typeof a?g.setAttribute(c,a):a&&this.complexColor(a,c,g)};f.prototype.getBBox=function(c,g){var b=this.alignValue,k=this.element,d=this.renderer,m=this.styles,p=this.textStr,A=d.cache,F=d.cacheKeys,n=k.namespaceURI===
this.SVG_NS;g=u(g,this.rotation,0);var r=d.styledMode?k&&f.prototype.getStyle.call(k,"font-size"):m&&m.fontSize,D;if(w(p)){var q=p.toString();-1===q.indexOf("<")&&(q=q.replace(/[0-9]/g,"0"));q+=["",g,r,this.textWidth,b,m&&m.textOverflow,m&&m.fontWeight].join()}q&&!c&&(D=A[q]);if(!D){if(n||d.forExport){try{var h=this.fakeTS&&function(a){var c=k.querySelector(".highcharts-text-outline");c&&J(c,{display:a})};a(h)&&h("none");D=k.getBBox?x({},k.getBBox()):{width:k.offsetWidth,height:k.offsetHeight};a(h)&&
h("")}catch(Z){""}if(!D||0>D.width)D={x:0,y:0,width:0,height:0}}else D=this.htmlGetBBox();if(d.isSVG&&(d=D.width,c=D.height,n&&(D.height=c={"11px,17":14,"13px,20":16}[""+(r||"")+",".concat(Math.round(c))]||c),g)){n=Number(k.getAttribute("y")||0)-D.y;b={right:1,center:.5}[b||0]||0;m=g*y;r=(g-90)*y;var z=d*Math.cos(m);g=d*Math.sin(m);h=Math.cos(r);m=Math.sin(r);d=D.x+b*(d-z)+n*h;r=d+z;h=r-c*h;z=h-z;n=D.y+n-b*g+n*m;b=n+g;c=b-c*m;g=c-g;D.x=Math.min(d,r,h,z);D.y=Math.min(n,b,c,g);D.width=Math.max(d,r,
h,z)-D.x;D.height=Math.max(n,b,c,g)-D.y}if(q&&(""===p||0<D.height)){for(;250<F.length;)delete A[F.shift()];A[q]||F.push(q);A[q]=D}}return D};f.prototype.getStyle=function(a){return p.getComputedStyle(this.element||this,"").getPropertyValue(a)};f.prototype.hasClass=function(a){return-1!==(""+this.attr("class")).split(" ").indexOf(a)};f.prototype.hide=function(){return this.attr({visibility:"hidden"})};f.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};f.prototype.init=function(a,
c){this.element="span"===c?n(c):t.createElementNS(this.SVG_NS,c);this.renderer=a;m(this,"afterInit")};f.prototype.invert=function(a){this.inverted=a;this.updateTransform();return this};f.prototype.on=function(a,c){var g=this.onEvents;if(g[a])g[a]();g[a]=q(this.element,a,c);return this};f.prototype.opacitySetter=function(a,c,g){this.opacity=a=Number(Number(a).toFixed(3));g.setAttribute(c,a)};f.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(c(a)?new RegExp("(^| )".concat(a,
"( |$)")):a," ").replace(/ +/g," ").trim())};f.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)};f.prototype.safeRemoveChild=function(a){var c=a.parentNode;c&&c.removeChild(a)};f.prototype.setRadialReference=function(a){var c=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=a;c&&c.radAttr&&c.animate(this.renderer.getRadialAttr(a,c.radAttr));return this};f.prototype.setTextPath=
function(a,c){var b=this.element,k=this.text?this.text.element:b,u={textAnchor:"text-anchor"},d=!1,m=this.textPathWrapper,n=!m;c=D(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},c);var F=e.filterUserAttributes(c.attributes);if(a&&c&&c.enabled){m&&null===m.element.parentNode?(n=!0,m=m.destroy()):m&&this.removeTextOutline.call(m.parentGroup);this.options&&this.options.padding&&(F.dx=-this.options.padding);m||(this.textPathWrapper=m=this.renderer.createElement("textPath"),d=
!0);var r=m.element;(c=a.element.getAttribute("id"))||a.element.setAttribute("id",c=R());if(n)for(k.setAttribute("y",0),g(F.dx)&&k.setAttribute("x",-F.dx),a=[].slice.call(k.childNodes),n=0;n<a.length;n++){var q=a[n];q.nodeType!==p.Node.TEXT_NODE&&"tspan"!==q.nodeName||r.appendChild(q)}d&&m&&m.add({element:k});r.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+c);w(F.dy)&&(r.parentNode.setAttribute("dy",F.dy),delete F.dy);w(F.dx)&&(r.parentNode.setAttribute("dx",F.dx),delete F.dx);
A(F,function(a,c){r.setAttribute(u[c]||c,a)});b.removeAttribute("transform");this.removeTextOutline.call(m);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=h}else m&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(b,a),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};f.prototype.shadow=function(a,c,g){var b=[],k=this.element,
I=this.oldShadowOptions,u={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},m=!1,F;!0===a?F=u:"object"===typeof a&&(F=x(u,a));F&&(F&&I&&A(F,function(a,c){a!==I[c]&&(m=!0)}),m&&this.destroyShadows(),this.oldShadowOptions=F);if(!F)this.destroyShadows();else if(!this.shadows){var d=F.opacity/F.width;var p=this.parentInverted?"translate(".concat(F.offsetY,", ").concat(F.offsetX,")"):"translate(".concat(F.offsetX,", ").concat(F.offsetY,")");for(u=1;u<=
F.width;u++){var n=k.cloneNode(!1);var D=2*F.width+1-2*u;r(n,{stroke:a.color||"#000000","stroke-opacity":d*u,"stroke-width":D,transform:p,fill:"none"});n.setAttribute("class",(n.getAttribute("class")||"")+" highcharts-shadow");g&&(r(n,"height",Math.max(r(n,"height")-D,0)),n.cutHeight=D);c?c.element.appendChild(n):k.parentNode&&k.parentNode.insertBefore(n,k);b.push(n)}this.shadows=b}return this};f.prototype.show=function(a){void 0===a&&(a=!0);return this.attr({visibility:a?"inherit":"visible"})};f.prototype.strokeSetter=
function(a,c,g){this[c]=a;this.stroke&&this["stroke-width"]?(f.prototype.fillSetter.call(this,this.stroke,"stroke",g),g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===c&&0===a&&this.hasStroke?(g.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};f.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=
this.getStyle("stroke-width"),c=0;if(a.indexOf("px")===a.length-2)c=L(a);else if(""!==a){var g=t.createElementNS(b,"rect");r(g,{width:a,"stroke-width":0});this.element.parentNode.appendChild(g);c=g.getBBox().width;g.parentNode.removeChild(g)}return c};f.prototype.symbolAttr=function(a){var c=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g){c[g]=u(a[g],c[g])});c.attr({d:c.renderer.symbols[c.symbolName](c.x,c.y,c.width,c.height,c)})};f.prototype.textSetter=
function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))};f.prototype.titleSetter=function(a){var c=this.element,g=c.getElementsByTagName("title")[0]||t.createElementNS(this.SVG_NS,"title");c.insertBefore?c.insertBefore(g,c.firstChild):c.appendChild(g);g.textContent=String(u(a,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")};f.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};f.prototype.translate=
function(a,c){return this.attr({translateX:a,translateY:c})};f.prototype.updateShadows=function(a,c,g){var b=this.shadows;if(b)for(var k=b.length;k--;)g.call(b[k],"height"===a?Math.max(c-(b[k].cutHeight||0),0):"d"===a?this.d:c,a,b[k])};f.prototype.updateTransform=function(){var a=this.scaleX,c=this.scaleY,g=this.inverted,b=this.rotation,k=this.matrix,m=this.element,d=this.translateX||0,n=this.translateY||0;g&&(d+=this.width,n+=this.height);d=["translate("+d+","+n+")"];w(k)&&d.push("matrix("+k.join(",")+
")");g?d.push("rotate(90) scale(-1,1)"):b&&d.push("rotate("+b+" "+u(this.rotationOriginX,m.getAttribute("x"),0)+" "+u(this.rotationOriginY,m.getAttribute("y")||0)+")");(w(a)||w(c))&&d.push("scale("+u(a,1)+" "+u(c,1)+")");d.length&&m.setAttribute("transform",d.join(" "))};f.prototype.visibilitySetter=function(a,c,g){"inherit"===a?g.removeAttribute(c):this[c]!==a&&g.setAttribute(c,a);this[c]=a};f.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};
f.prototype.zIndexSetter=function(a,c){var g=this.renderer,b=this.parentGroup,k=(b||g).element||g.box,u=this.element;g=k===g.box;var d=!1;var m=this.added;var F;w(a)?(u.setAttribute("data-z-index",a),a=+a,this[c]===a&&(m=!1)):w(this[c])&&u.removeAttribute("data-z-index");this[c]=a;if(m){(a=this.zIndex)&&b&&(b.handleZ=!0);c=k.childNodes;for(F=c.length-1;0<=F&&!d;F--){b=c[F];m=b.getAttribute("data-z-index");var n=!w(m);if(b!==u)if(0>a&&n&&!g&&!F)k.insertBefore(u,c[F]),d=!0;else if(L(m)<=a||n&&(!w(a)||
0<=a))k.insertBefore(u,c[F+1]||null),d=!0}d||(k.insertBefore(u,c[g?3:0]||null),d=!0)}return d};return f}();f.prototype["stroke-widthSetter"]=f.prototype.strokeSetter;f.prototype.yGetter=f.prototype.xGetter;f.prototype.matrixSetter=f.prototype.rotationOriginXSetter=f.prototype.rotationOriginYSetter=f.prototype.rotationSetter=f.prototype.scaleXSetter=f.prototype.scaleYSetter=f.prototype.translateXSetter=f.prototype.translateYSetter=f.prototype.verticalAlignSetter=function(a,c){this[c]=a;this.doTransform=
!0};"";return f});K(l,"Core/Renderer/RendererRegistry.js",[l["Core/Globals.js"]],function(f){var e;(function(e){e.rendererTypes={};var l;e.getRendererType=function(f){void 0===f&&(f=l);return e.rendererTypes[f]||e.rendererTypes[l]};e.registerRendererType=function(v,P,G){e.rendererTypes[v]=P;if(!l||G)l=v,f.Renderer=P}})(e||(e={}));return e});K(l,"Core/Renderer/SVG/SVGLabel.js",[l["Core/Renderer/SVG/SVGElement.js"],l["Core/Utilities.js"]],function(f,e){var l=this&&this.__extends||function(){var e=function(h,
d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var p in d)d.hasOwnProperty(p)&&(b[p]=d[p])};return e(h,d)};return function(h,d){function b(){this.constructor=h}e(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),C=e.defined,v=e.extend,E=e.isNumber,G=e.merge,B=e.pick,y=e.removeEvent;return function(e){function h(d,b,p,q,r,n,f,w,z,x){var m=e.call(this)||this;m.paddingLeftSetter=m.paddingSetter;m.paddingRig