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