/*
 Highstock JS v8.0.3 (2020-03-05)

 (c) 2009-2018 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(V,P){"object"===typeof module&&module.exports?(P["default"]=P,module.exports=V.document?P(V):P):"function"===typeof define&&define.amd?define("highcharts/highstock",function(){return P(V)}):(V.Highcharts&&V.Highcharts.error(16,!0),V.Highcharts=P(V))})("undefined"!==typeof window?window:this,function(V){function P(f,m,I,r){f.hasOwnProperty(m)||(f[m]=r.apply(null,I))}var y={};P(y,"parts/Globals.js",[],function(){var f="undefined"!==typeof V?V:"undefined"!==typeof window?window:{},m=f.document,
I=f.navigator&&f.navigator.userAgent||"",r=m&&m.createElementNS&&!!m.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,F=/(edge|msie|trident)/i.test(I)&&!f.opera,N=-1!==I.indexOf("Firefox"),G=-1!==I.indexOf("Chrome"),B=N&&4>parseInt(I.split("Firefox/")[1],10);return{product:"Highcharts",version:"8.0.3",deg2rad:2*Math.PI/360,doc:m,hasBidiBug:B,hasTouch:!!f.TouchEvent,isMS:F,isWebKit:-1!==I.indexOf("AppleWebKit"),isFirefox:N,isChrome:G,isSafari:!G&&-1!==I.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(I),
SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:r,win:f,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}});P(y,"parts/Utilities.js",[y["parts/Globals.js"]],function(f){function m(){var d,a=arguments,c={},b=function(d,a){"object"!==typeof d&&(d={});Y(a,function(c,h){!u(c,!0)||l(c)||n(c)?d[h]=a[h]:d[h]=b(d[h]||{},c)});return d};!0===a[0]&&(c=a[1],a=Array.prototype.slice.call(a,2));var h=a.length;for(d=0;d<
h;d++)c=b(c,a[d]);return c}function I(d,a,c){var h;x(a)?b(c)?d.setAttribute(a,c):d&&d.getAttribute&&((h=d.getAttribute(a))||"class"!==a||(h=d.getAttribute(a+"Name"))):Y(a,function(a,c){d.setAttribute(c,a)});return h}function r(){for(var d=arguments,a=d.length,c=0;c<a;c++){var b=d[c];if("undefined"!==typeof b&&null!==b)return b}}function F(d,a){if(!d)return a;var c=d.split(".").reverse();if(1===c.length)return a[d];for(d=c.pop();"undefined"!==typeof d&&"undefined"!==typeof a&&null!==a;)a=a[d],d=c.pop();
return a}f.timers=[];var N=f.charts,G=f.doc,B=f.win,D=f.error=function(d,a,c,b){var h=q(d),e=h?"Highcharts error #"+d+": www.highcharts.com/errors/"+d+"/":d.toString(),k=function(){if(a)throw Error(e);B.console&&console.log(e)};if("undefined"!==typeof b){var O="";h&&(e+="?");f.objectEach(b,function(d,a){O+="\n"+a+": "+d;h&&(e+=encodeURI(a)+"="+encodeURI(d))});e+=O}c?f.fireEvent(c,"displayError",{code:d,message:e,params:b},k):k()},K=function(){function d(d,a,c){this.options=a;this.elem=d;this.prop=
c}d.prototype.dSetter=function(){var d=this.paths[0],a=this.paths[1],c=[],b=this.now,h=d.length;if(1===b)c=this.toD;else if(h===a.length&&1>b)for(;h--;){var e=parseFloat(d[h]);c[h]=isNaN(e)||"A"===a[h-4]||"A"===a[h-5]?a[h]:b*parseFloat(""+(a[h]-e))+e}else c=a;this.elem.attr("d",c,null,!0)};d.prototype.update=function(){var d=this.elem,a=this.prop,c=this.now,b=this.options.step;if(this[a+"Setter"])this[a+"Setter"]();else d.attr?d.element&&d.attr(a,c,null,!0):d.style[a]=c+this.unit;b&&b.call(d,c,this)};
d.prototype.run=function(d,a,c){var b=this,h=b.options,e=function(d){return e.stopped?!1:b.step(d)},k=B.requestAnimationFrame||function(d){setTimeout(d,13)},O=function(){for(var d=0;d<f.timers.length;d++)f.timers[d]()||f.timers.splice(d--,1);f.timers.length&&k(O)};d!==a||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=d,this.end=a,this.unit=c,this.now=this.start,this.pos=0,e.elem=this.elem,e.prop=this.prop,e()&&1===f.timers.push(e)&&k(O)):(delete h.curAnim[this.prop],h.complete&&
0===Object.keys(h.curAnim).length&&h.complete.call(this.elem))};d.prototype.step=function(d){var a=+new Date,c=this.options,b=this.elem,h=c.complete,e=c.duration,k=c.curAnim;if(b.attr&&!b.element)d=!1;else if(d||a>=e+this.startTime){this.now=this.end;this.pos=1;this.update();var O=k[this.prop]=!0;Y(k,function(d){!0!==d&&(O=!1)});O&&h&&h.call(b);d=!1}else this.pos=c.easing((a-this.startTime)/e),this.now=this.start+(this.end-this.start)*this.pos,this.update(),d=!0;return d};d.prototype.initPath=function(d,
a,c){function b(d){for(H=d.length;H--;){var a="M"===d[H]||"L"===d[H];var c=/[a-zA-Z]/.test(d[H+3]);a&&c&&d.splice(H+1,0,d[H+1],d[H+2],d[H+1],d[H+2])}}function h(d,a){for(;d.length<R;){d[0]=a[R-d.length];var c=d.slice(0,C);[].splice.apply(d,[0,0].concat(c));p&&(c=d.slice(d.length-C),[].splice.apply(d,[d.length,0].concat(c)),H--)}d[0]="M"}function e(d,a){for(var c=(R-d.length)/C;0<c&&c--;)J=d.slice().splice(d.length/w-C,C*w),J[0]=a[R-C-c*C],g&&(J[C-6]=J[C-2],J[C-5]=J[C-1]),[].splice.apply(d,[d.length/
w,0].concat(J)),p&&c--}a=a||"";var k=d.startX,O=d.endX,g=-1<a.indexOf("C"),C=g?7:3,J,H;a=a.split(" ");c=c.slice();var p=d.isArea,w=p?2:1;g&&(b(a),b(c));if(k&&O){for(H=0;H<k.length;H++)if(k[H]===O[0]){var t=H;break}else if(k[0]===O[O.length-k.length+H]){t=H;var v=!0;break}else if(k[k.length-1]===O[O.length-k.length+H]){t=k.length-H;break}"undefined"===typeof t&&(a=[])}if(a.length&&q(t)){var R=c.length+t*w*C;v?(h(a,c),e(c,a)):(h(c,a),e(a,c))}return[a,c]};d.prototype.fillSetter=function(){f.Fx.prototype.strokeSetter.apply(this,
arguments)};d.prototype.strokeSetter=function(){this.elem.attr(this.prop,f.color(this.start).tweenTo(f.color(this.end),this.pos),null,!0)};return d}();f.Fx=K;f.merge=m;var z=f.pInt=function(d,a){return parseInt(d,a||10)},x=f.isString=function(d){return"string"===typeof d},A=f.isArray=function(d){d=Object.prototype.toString.call(d);return"[object Array]"===d||"[object Array Iterator]"===d},u=f.isObject=function(d,a){return!!d&&"object"===typeof d&&(!a||!A(d))},n=f.isDOMElement=function(d){return u(d)&&
"number"===typeof d.nodeType},l=f.isClass=function(d){var a=d&&d.constructor;return!(!u(d,!0)||n(d)||!a||!a.name||"Object"===a.name)},q=f.isNumber=function(d){return"number"===typeof d&&!isNaN(d)&&Infinity>d&&-Infinity<d},e=f.erase=function(d,a){for(var c=d.length;c--;)if(d[c]===a){d.splice(c,1);break}},b=f.defined=function(d){return"undefined"!==typeof d&&null!==d};f.attr=I;var g=f.splat=function(d){return A(d)?d:[d]},p=f.syncTimeout=function(d,a,c){if(0<a)return setTimeout(d,a,c);d.call(0,c);return-1},
c=f.clearTimeout=function(d){b(d)&&clearTimeout(d)},a=f.extend=function(d,a){var c;d||(d={});for(c in a)d[c]=a[c];return d};f.pick=r;var w=f.css=function(d,c){f.isMS&&!f.svg&&c&&"undefined"!==typeof c.opacity&&(c.filter="alpha(opacity="+100*c.opacity+")");a(d.style,c)},E=f.createElement=function(d,c,b,h,e){d=G.createElement(d);c&&a(d,c);e&&w(d,{padding:"0",border:"none",margin:"0"});b&&w(d,b);h&&h.appendChild(d);return d},v=f.extendClass=function(d,c){var b=function(){};b.prototype=new d;a(b.prototype,
c);return b},k=f.pad=function(d,a,c){return Array((a||2)+1-String(d).replace("-","").length).join(c||"0")+d},h=f.relativeLength=function(d,a,c){return/%$/.test(d)?a*parseFloat(d)/100+(c||0):parseFloat(d)},t=f.wrap=function(d,a,c){var b=d[a];d[a]=function(){var d=Array.prototype.slice.call(arguments),a=arguments,h=this;h.proceed=function(){b.apply(h,arguments.length?arguments:a)};d.unshift(b);d=c.apply(this,d);h.proceed=null;return d}},L=f.format=function(d,a,c){var b="{",h=!1,e=[],k=/f$/,O=/\.([0-9])/,
C=f.defaultOptions.lang,g=c&&c.time||f.time;for(c=c&&c.numberFormatter||X;d;){var H=d.indexOf(b);if(-1===H)break;var J=d.slice(0,H);if(h){J=J.split(":");b=F(J.shift()||"",a);if(J.length&&"number"===typeof b)if(J=J.join(":"),k.test(J)){var w=parseInt((J.match(O)||["","-1"])[1],10);null!==b&&(b=c(b,w,C.decimalPoint,-1<J.indexOf(",")?C.thousandsSep:""))}else b=g.dateFormat(J,b);e.push(b)}else e.push(J);d=d.slice(H+1);b=(h=!h)?"}":"{"}e.push(d);return e.join("")},M=f.getMagnitude=function(d){return Math.pow(10,
Math.floor(Math.log(d)/Math.LN10))},Q=f.normalizeTickInterval=function(d,a,c,b,h){var e=d;c=r(c,1);var k=d/c;a||(a=h?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===b&&(1===c?a=a.filter(function(d){return 0===d%1}):.1>=c&&(a=[1/c])));for(b=0;b<a.length&&!(e=a[b],h&&e*c>=d||!h&&k<=(a[b]+(a[b+1]||a[b]))/2);b++);return e=W(e*c,-Math.round(Math.log(.001)/Math.LN10))},C=f.stableSort=function(d,a){var c=d.length,b,h;for(h=0;h<c;h++)d[h].safeI=h;d.sort(function(d,c){b=a(d,c);return 0===b?d.safeI-c.safeI:
b});for(h=0;h<c;h++)delete d[h].safeI},d=f.arrayMin=function(d){for(var a=d.length,c=d[0];a--;)d[a]<c&&(c=d[a]);return c},J=f.arrayMax=function(d){for(var a=d.length,c=d[0];a--;)d[a]>c&&(c=d[a]);return c},H=f.destroyObjectProperties=function(d,a){Y(d,function(c,b){c&&c!==a&&c.destroy&&c.destroy();delete d[b]})},T=f.discardElement=function(d){var a=f.garbageBin;a||(a=E("div"));d&&a.appendChild(d);a.innerHTML=""},W=f.correctFloat=function(d,a){return parseFloat(d.toPrecision(a||14))},U=f.setAnimation=
function(d,a){a.renderer.globalAnimation=r(d,a.options.chart.animation,!0)},S=f.animObject=function(d){return u(d)?m(d):{duration:d?500:0}},O=f.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},X=f.numberFormat=function(d,a,c,b){d=+d||0;a=+a;var h=f.defaultOptions.lang,e=(d.toString().split(".")[1]||"").split("e")[0].length,k=d.toString().split("e");if(-1===a)a=Math.min(e,20);else if(!q(a))a=2;else if(a&&k[1]&&0>k[1]){var O=a+ +k[1];0<=O?(k[0]=
(+k[0]).toExponential(O).split("e")[0],a=O):(k[0]=k[0].split(".")[0]||0,d=20>a?(k[0]*Math.pow(10,k[1])).toFixed(a):0,k[1]=0)}var C=(Math.abs(k[1]?k[0]:d)+Math.pow(10,-Math.max(a,e)-1)).toFixed(a);e=String(z(C));O=3<e.length?e.length%3:0;c=r(c,h.decimalPoint);b=r(b,h.thousandsSep);d=(0>d?"-":"")+(O?e.substr(0,O)+b:"");d+=e.substr(O).replace(/(\d{3})(?=\d)/g,"$1"+b);a&&(d+=c+C.slice(-a));k[1]&&0!==+d&&(d+="e"+k[1]);return d};Math.easeInOutSine=function(d){return-.5*(Math.cos(Math.PI*d)-1)};var ea=f.getStyle=
function(d,a,c){if("width"===a)return a=Math.min(d.offsetWidth,d.scrollWidth),c=d.getBoundingClientRect&&d.getBoundingClientRect().width,c<a&&c>=a-1&&(a=Math.floor(c)),Math.max(0,a-f.getStyle(d,"padding-left")-f.getStyle(d,"padding-right"));if("height"===a)return Math.max(0,Math.min(d.offsetHeight,d.scrollHeight)-f.getStyle(d,"padding-top")-f.getStyle(d,"padding-bottom"));B.getComputedStyle||D(27,!0);if(d=B.getComputedStyle(d,void 0))d=d.getPropertyValue(a),r(c,"opacity"!==a)&&(d=z(d));return d},
Z=f.inArray=function(d,a,c){return a.indexOf(d,c)},R=f.find=Array.prototype.find?function(d,a){return d.find(a)}:function(d,a){var c,b=d.length;for(c=0;c<b;c++)if(a(d[c],c))return d[c]};f.keys=Object.keys;var ba=f.offset=function(d){var a=G.documentElement;d=d.parentElement||d.parentNode?d.getBoundingClientRect():{top:0,left:0};return{top:d.top+(B.pageYOffset||a.scrollTop)-(a.clientTop||0),left:d.left+(B.pageXOffset||a.scrollLeft)-(a.clientLeft||0)}},ca=f.stop=function(d,a){for(var c=f.timers.length;c--;)f.timers[c].elem!==
d||a&&a!==f.timers[c].prop||(f.timers[c].stopped=!0)},Y=f.objectEach=function(d,a,c){for(var b in d)Object.hasOwnProperty.call(d,b)&&a.call(c||d[b],d[b],b,d)};Y({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(d,a){f[a]=function(a){return Array.prototype[d].apply(a,[].slice.call(arguments,1))}});var ha=f.addEvent=function(d,a,c,b){void 0===b&&(b={});var h=d.addEventListener||f.addEventListenerPolyfill;var e="function"===typeof d&&d.prototype?d.prototype.protoEvents=d.prototype.protoEvents||
{}:d.hcEvents=d.hcEvents||{};f.Point&&d instanceof f.Point&&d.series&&d.series.chart&&(d.series.chart.runTrackerClick=!0);h&&h.call(d,a,c,!1);e[a]||(e[a]=[]);e[a].push({fn:c,order:"number"===typeof b.order?b.order:Infinity});e[a].sort(function(d,a){return d.order-a.order});return function(){aa(d,a,c)}},aa=f.removeEvent=function(d,a,c){function b(a,c){var b=d.removeEventListener||f.removeEventListenerPolyfill;b&&b.call(d,a,c,!1)}function h(c){var h;if(d.nodeName){if(a){var e={};e[a]=!0}else e=c;Y(e,
function(d,a){if(c[a])for(h=c[a].length;h--;)b(a,c[a][h].fn)})}}var e;["protoEvents","hcEvents"].forEach(function(k,O){var C=(O=O?d:d.prototype)&&O[k];C&&(a?(e=C[a]||[],c?(C[a]=e.filter(function(d){return c!==d.fn}),b(a,c)):(h(C),C[a]=[])):(h(C),O[k]={}))})},da=f.fireEvent=function(d,c,b,h){var e;b=b||{};if(G.createEvent&&(d.dispatchEvent||d.fireEvent)){var k=G.createEvent("Events");k.initEvent(c,!0,!0);a(k,b);d.dispatchEvent?d.dispatchEvent(k):d.fireEvent(c,k)}else b.target||a(b,{preventDefault:function(){b.defaultPrevented=
!0},target:d,type:c}),function(a,c){void 0===a&&(a=[]);void 0===c&&(c=[]);var h=0,k=0,O=a.length+c.length;for(e=0;e<O;e++)!1===(a[h]?c[k]?a[h].order<=c[k].order?a[h++]:c[k++]:a[h++]:c[k++]).fn.call(d,b)&&b.preventDefault()}(d.protoEvents&&d.protoEvents[c],d.hcEvents&&d.hcEvents[c]);h&&!b.defaultPrevented&&h.call(d,b)},ia=f.animate=function(d,a,c){var b,h="",e,k;if(!u(c)){var O=arguments;c={duration:O[2],easing:O[3],complete:O[4]}}q(c.duration)||(c.duration=400);c.easing="function"===typeof c.easing?
c.easing:Math[c.easing]||Math.easeInOutSine;c.curAnim=m(a);Y(a,function(O,C){ca(d,C);k=new K(d,c,C);e=null;"d"===C?(k.paths=k.initPath(d,d.d,a.d),k.toD=a.d,b=0,e=1):d.attr?b=d.attr(C):(b=parseFloat(ea(d,C))||0,"opacity"!==C&&(h="px"));e||(e=O);e&&e.match&&e.match("px")&&(e=e.replace(/px/g,""));k.run(b,e,h)})},y=f.seriesType=function(d,a,c,b,h){var e=f.getOptions(),k=f.seriesTypes;e.plotOptions[d]=m(e.plotOptions[a],c);k[d]=v(k[a]||function(){},b);k[d].prototype.type=d;h&&(k[d].prototype.pointClass=
v(f.Point,h));return k[d]},fa=f.uniqueKey=function(){var d=Math.random().toString(36).substring(2,9),a=0;return function(){return"highcharts-"+d+"-"+a++}}(),ja=f.isFunction=function(d){return"function"===typeof d};B.jQuery&&(B.jQuery.fn.highcharts=function(){var d=[].slice.call(arguments);if(this[0])return d[0]?(new (f[x(d[0])?d.shift():"Chart"])(this[0],d[0],d[1]),this):N[I(this[0],"data-highcharts-chart")]});return{Fx:K,addEvent:ha,animate:ia,animObject:S,arrayMax:J,arrayMin:d,attr:I,clamp:function(d,
a,c){return d>a?d<c?d:c:a},clearTimeout:c,correctFloat:W,createElement:E,css:w,defined:b,destroyObjectProperties:H,discardElement:T,erase:e,error:D,extend:a,extendClass:v,find:R,fireEvent:da,format:L,getMagnitude:M,getNestedProperty:F,getStyle:ea,inArray:Z,isArray:A,isClass:l,isDOMElement:n,isFunction:ja,isNumber:q,isObject:u,isString:x,merge:m,normalizeTickInterval:Q,numberFormat:X,objectEach:Y,offset:ba,pad:k,pick:r,pInt:z,relativeLength:h,removeEvent:aa,seriesType:y,setAnimation:U,splat:g,stableSort:C,
stop:ca,syncTimeout:p,timeUnits:O,uniqueKey:fa,wrap:t}});P(y,"parts/Color.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var I=m.isNumber,r=m.merge,F=m.pInt;m=function(){function f(m){this.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(f){return[F(f[1]),F(f[2]),F(f[3]),parseFloat(f[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(f){return[F(f[1]),F(f[2]),
F(f[3]),1]}}];this.rgba=[];if(!(this instanceof f))return new f(m);this.init(m)}f.parse=function(m){return new f(m)};f.prototype.init=function(m){var B,D;if((this.input=m=f.names[m&&m.toLowerCase?m.toLowerCase():""]||m)&&m.stops)this.stops=m.stops.map(function(x){return new f(x[1])});else{if(m&&m.charAt&&"#"===m.charAt()){var r=m.length;m=parseInt(m.substr(1),16);7===r?B=[(m&16711680)>>16,(m&65280)>>8,m&255,1]:4===r&&(B=[(m&3840)>>4|(m&3840)>>8,(m&240)>>4|m&240,(m&15)<<4|m&15,1])}if(!B)for(D=this.parsers.length;D--&&
!B;){var z=this.parsers[D];(r=z.regex.exec(m))&&(B=z.parse(r))}}this.rgba=B||[]};f.prototype.get=function(f){var m=this.input,D=this.rgba;if("undefined"!==typeof this.stops){var G=r(m);G.stops=[].concat(G.stops);this.stops.forEach(function(z,x){G.stops[x]=[G.stops[x][0],z.get(f)]})}else G=D&&I(D[0])?"rgb"===f||!f&&1===D[3]?"rgb("+D[0]+","+D[1]+","+D[2]+")":"a"===f?D[3]:"rgba("+D.join(",")+")":m;return G};f.prototype.brighten=function(f){var m,D=this.rgba;if(this.stops)this.stops.forEach(function(m){m.brighten(f)});
else if(I(f)&&0!==f)for(m=0;3>m;m++)D[m]+=F(255*f),0>D[m]&&(D[m]=0),255<D[m]&&(D[m]=255);return this};f.prototype.setOpacity=function(f){this.rgba[3]=f;return this};f.prototype.tweenTo=function(f,m){var D=this.rgba,r=f.rgba;r.length&&D&&D.length?(f=1!==r[3]||1!==D[3],m=(f?"rgba(":"rgb(")+Math.round(r[0]+(D[0]-r[0])*(1-m))+","+Math.round(r[1]+(D[1]-r[1])*(1-m))+","+Math.round(r[2]+(D[2]-r[2])*(1-m))+(f?","+(r[3]+(D[3]-r[3])*(1-m)):"")+")"):m=f.input||"none";return m};f.names={white:"#ffffff",black:"#000000"};
return f}();f.Color=m;f.color=m.parse;return f.Color});P(y,"parts/SvgRenderer.js",[y["parts/Globals.js"],y["parts/Color.js"],y["parts/Utilities.js"]],function(f,m,I){var r=m.parse,F=I.addEvent,N=I.animate,G=I.animObject,B=I.attr,D=I.createElement,K=I.css,z=I.defined,x=I.destroyObjectProperties,A=I.erase,u=I.extend,n=I.inArray,l=I.isArray,q=I.isNumber,e=I.isObject,b=I.isString,g=I.merge,p=I.objectEach,c=I.pick,a=I.pInt,w=I.removeEvent,E=I.splat,v=I.stop,k=I.uniqueKey,h=f.charts,t=f.deg2rad,L=f.doc,
M=f.hasTouch,Q=f.isFirefox,C=f.isMS,d=f.isWebKit,J=f.noop,H=f.svg,T=f.SVG_NS,W=f.symbolSizes,U=f.win;var S=f.SVGElement=function(){return this};u(S.prototype,{opacity:1,SVG_NS:T,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),init:function(d,a){this.element="span"===a?D(a):L.createElementNS(this.SVG_NS,a);this.renderer=d;f.fireEvent(this,"afterInit")},animate:function(d,a,b){var h=G(c(a,this.renderer.globalAnimation,
!0));c(L.hidden,L.msHidden,L.webkitHidden,!1)&&(h.duration=0);0!==h.duration?(b&&(h.complete=b),N(this,d,h)):(this.attr(d,void 0,b),p(d,function(d,a){h.step&&h.step.call(this,d,{prop:a,pos:1})},this));return this},complexColor:function(d,a,c){var b=this.renderer,h,e,O,C,J,H,w,t,v,X,E,L=[],n;f.fireEvent(this.renderer,"complexColor",{args:arguments},function(){d.radialGradient?e="radialGradient":d.linearGradient&&(e="linearGradient");e&&(O=d[e],J=b.gradients,w=d.stops,X=c.radialReference,l(O)&&(d[e]=
O={x1:O[0],y1:O[1],x2:O[2],y2:O[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===e&&X&&!z(O.gradientUnits)&&(C=O,O=g(O,b.getRadialAttr(X,C),{gradientUnits:"userSpaceOnUse"})),p(O,function(d,a){"id"!==a&&L.push(a,d)}),p(w,function(d){L.push(d)}),L=L.join(","),J[L]?E=J[L].attr("id"):(O.id=E=k(),J[L]=H=b.createElement(e).attr(O).add(b.defs),H.radAttr=C,H.stops=[],w.forEach(function(d){0===d[1].indexOf("rgba")?(h=r(d[1]),t=h.get("rgb"),v=h.get("a")):(t=d[1],v=1);d=b.createElement("stop").attr({offset:d[0],
"stop-color":t,"stop-opacity":v}).add(H);H.stops.push(d)})),n="url("+b.url+"#"+E+")",c.setAttribute(a,n),c.gradient=L,d.toString=function(){return n})})},applyTextOutline:function(d){var a=this.element,c;-1!==d.indexOf("contrast")&&(d=d.replace(/contrast/g,this.renderer.getContrast(a.style.fill)));d=d.split(" ");var b=d[d.length-1];if((c=d[0])&&"none"!==c&&f.svg){this.fakeTS=!0;d=[].slice.call(a.getElementsByTagName("tspan"));this.ySetter=this.xSetter;c=c.replace(/(^[\d\.]+)(.*?)$/g,function(d,a,
c){return 2*a+c});this.removeTextOutline(d);var h=a.textContent?/^[\u0591-\u065F\u066A-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(a.textContent):!1;var e=a.firstChild;d.forEach(function(d,k){0===k&&(d.setAttribute("x",a.getAttribute("x")),k=a.getAttribute("y"),d.setAttribute("y",k||0),null===k&&a.setAttribute("y",0));k=d.cloneNode(!0);B(h&&!Q?d:k,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":c,"stroke-linejoin":"round"});a.insertBefore(k,e)});h&&Q&&d[0]&&(d=d[0].cloneNode(!0),d.textContent=
" ",a.insertBefore(d,e))}},removeTextOutline:function(d){for(var a=d.length,c;a--;)c=d[a],"highcharts-text-outline"===c.getAttribute("class")&&A(d,this.element.removeChild(c))},symbolCustomAttribs:"x y width height r start end innerR anchorX anchorY rounded".split(" "),attr:function(d,a,c,b){var h=this.element,e,k=this,C,O,g=this.symbolCustomAttribs;if("string"===typeof d&&"undefined"!==typeof a){var J=d;d={};d[J]=a}"string"===typeof d?k=(this[d+"Getter"]||this._defaultGetter).call(this,d,h):(p(d,
function(a,c){C=!1;b||v(this,c);this.symbolName&&-1!==n(c,g)&&(e||(this.symbolAttr(d),e=!0),C=!0);!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0);C||(O=this[c+"Setter"]||this._defaultSetter,O.call(this,a,c,h),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,a,O))},this),this.afterSetters());c&&c.call(this);return k},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(d,
a,c){for(var b=this.shadows,h=b.length;h--;)c.call(b[h],"height"===d?Math.max(a-(b[h].cutHeight||0),0):"d"===d?this.d:a,d,b[h])},addClass:function(d,a){var c=a?"":this.attr("class")||"";d=(d||"").split(/ /g).reduce(function(d,a){-1===c.indexOf(a)&&d.push(a);return d},c?[c]:[]).join(" ");d!==c&&this.attr("class",d);return this},hasClass:function(d){return-1!==(this.attr("class")||"").split(" ").indexOf(d)},removeClass:function(d){return this.attr("class",(this.attr("class")||"").replace(b(d)?new RegExp(" ?"+
d+" ?"):d,""))},symbolAttr:function(d){var a=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(b){a[b]=c(d[b],a[b])});a.attr({d:a.renderer.symbols[a.symbolName](a.x,a.y,a.width,a.height,a)})},clip:function(d){return this.attr("clip-path",d?"url("+this.renderer.url+"#"+d.id+")":"none")},crisp:function(d,a){a=a||d.strokeWidth||0;var c=Math.round(a)%2/2;d.x=Math.floor(d.x||this.x||0)+c;d.y=Math.floor(d.y||this.y||0)+c;d.width=Math.floor((d.width||this.width||
0)-2*c);d.height=Math.floor((d.height||this.height||0)-2*c);z(d.strokeWidth)&&(d.strokeWidth=a);return d},css:function(d){var c=this.styles,b={},h=this.element,e="",k=!c,C=["textOutline","textOverflow","width"];d&&d.color&&(d.fill=d.color);c&&p(d,function(d,a){d!==c[a]&&(b[a]=d,k=!0)});if(k){c&&(d=u(c,b));if(d)if(null===d.width||"auto"===d.width)delete this.textWidth;else if("text"===h.nodeName.toLowerCase()&&d.width)var g=this.textWidth=a(d.width);this.styles=d;g&&!H&&this.renderer.forExport&&delete d.width;
if(h.namespaceURI===this.SVG_NS){var O=function(d,a){return"-"+a.toLowerCase()};p(d,function(d,a){-1===C.indexOf(a)&&(e+=a.replace(/([A-Z])/g,O)+":"+d+";")});e&&B(h,"style",e)}else K(h,d);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),d&&d.textOutline&&this.applyTextOutline(d.textOutline))}return this},getStyle:function(d){return U.getComputedStyle(this.element||this,"").getPropertyValue(d)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||
0;var d=this.getStyle("stroke-width"),c=0;if(d.indexOf("px")===d.length-2)c=a(d);else if(""!==d){var b=L.createElementNS(T,"rect");B(b,{width:d,"stroke-width":0});this.element.parentNode.appendChild(b);c=b.getBBox().width;b.parentNode.removeChild(b)}return c},on:function(d,a){var c=this,b=c.element;M&&"click"===d?(b.ontouchstart=function(d){c.touchEventFired=Date.now();d.preventDefault();a.call(b,d)},b.onclick=function(d){(-1===U.navigator.userAgent.indexOf("Android")||1100<Date.now()-(c.touchEventFired||
0))&&a.call(b,d)}):b["on"+d]=a;return this},setRadialReference:function(d){var a=this.renderer.gradients[this.element.gradient];this.element.radialReference=d;a&&a.radAttr&&a.animate(this.renderer.getRadialAttr(d,a.radAttr));return this},translate:function(d,a){return this.attr({translateX:d,translateY:a})},invert:function(d){this.inverted=d;this.updateTransform();return this},updateTransform:function(){var d=this.translateX||0,a=this.translateY||0,b=this.scaleX,h=this.scaleY,e=this.inverted,k=this.rotation,
C=this.matrix,g=this.element;e&&(d+=this.width,a+=this.height);d=["translate("+d+","+a+")"];z(C)&&d.push("matrix("+C.join(",")+")");e?d.push("rotate(90) scale(-1,1)"):k&&d.push("rotate("+k+" "+c(this.rotationOriginX,g.getAttribute("x"),0)+" "+c(this.rotationOriginY,g.getAttribute("y")||0)+")");(z(b)||z(h))&&d.push("scale("+c(b,1)+" "+c(h,1)+")");d.length&&g.setAttribute("transform",d.join(" "))},toFront:function(){var d=this.element;d.parentNode.appendChild(d);return this},align:function(d,a,h){var e,
k={};var C=this.renderer;var g=C.alignedObjects;var J,H;if(d){if(this.alignOptions=d,this.alignByTranslate=a,!h||b(h))this.alignTo=e=h||"renderer",A(g,this),g.push(this),h=null}else d=this.alignOptions,a=this.alignByTranslate,e=this.alignTo;h=c(h,C[e],C);e=d.align;C=d.verticalAlign;g=(h.x||0)+(d.x||0);var O=(h.y||0)+(d.y||0);"right"===e?J=1:"center"===e&&(J=2);J&&(g+=(h.width-(d.width||0))/J);k[a?"translateX":"x"]=Math.round(g);"bottom"===C?H=1:"middle"===C&&(H=2);H&&(O+=(h.height-(d.height||0))/
H);k[a?"translateY":"y"]=Math.round(O);this[this.placed?"animate":"attr"](k);this.placed=!0;this.alignAttr=k;return this},getBBox:function(d,a){var b,h=this.renderer,e=this.element,k=this.styles,C=this.textStr,g,J=h.cache,H=h.cacheKeys,O=e.namespaceURI===this.SVG_NS;a=c(a,this.rotation,0);var w=h.styledMode?e&&S.prototype.getStyle.call(e,"font-size"):k&&k.fontSize;if(z(C)){var p=C.toString();-1===p.indexOf("<")&&(p=p.replace(/[0-9]/g,"0"));p+=["",a,w,this.textWidth,k&&k.textOverflow].join()}p&&!d&&
(b=J[p]);if(!b){if(O||h.forExport){try{(g=this.fakeTS&&function(d){[].forEach.call(e.querySelectorAll(".highcharts-text-outline"),function(a){a.style.display=d})})&&g("none"),b=e.getBBox?u({},e.getBBox()):{width:e.offsetWidth,height:e.offsetHeight},g&&g("")}catch(fa){""}if(!b||0>b.width)b={width:0,height:0}}else b=this.htmlGetBBox();h.isSVG&&(d=b.width,h=b.height,O&&(b.height=h={"11px,17":14,"13px,20":16}[k&&k.fontSize+","+Math.round(h)]||h),a&&(k=a*t,b.width=Math.abs(h*Math.sin(k))+Math.abs(d*Math.cos(k)),
b.height=Math.abs(h*Math.cos(k))+Math.abs(d*Math.sin(k))));if(p&&0<b.height){for(;250<H.length;)delete J[H.shift()];J[p]||H.push(p);J[p]=b}}return b},show:function(d){return this.attr({visibility:d?"inherit":"visible"})},hide:function(d){d?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this},fadeOut:function(d){var a=this;a.animate({opacity:0},{duration:d||150,complete:function(){a.attr({y:-9999})}})},add:function(d){var a=this.renderer,c=this.element;d&&(this.parentGroup=d);this.parentInverted=
d&&d.inverted;"undefined"!==typeof this.textStr&&a.buildText(this);this.added=!0;if(!d||d.handleZ||this.zIndex)var b=this.zIndexSetter();b||(d?d.element:a.box).appendChild(c);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(d){var a=d.parentNode;a&&a.removeChild(d)},destroy:function(){var d=this,a=d.element||{},c=d.renderer,b=c.isSVG&&"SPAN"===a.nodeName&&d.parentGroup,h=a.ownerSVGElement,e=d.clipPath;a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.point=null;v(d);e&&h&&([].forEach.call(h.querySelectorAll("[clip-path],[CLIP-PATH]"),
function(d){-1<d.getAttribute("clip-path").indexOf(e.element.id)&&d.removeAttribute("clip-path")}),d.clipPath=e.destroy());if(d.stops){for(h=0;h<d.stops.length;h++)d.stops[h]=d.stops[h].destroy();d.stops=null}d.safeRemoveChild(a);for(c.styledMode||d.destroyShadows();b&&b.div&&0===b.div.childNodes.length;)a=b.parentGroup,d.safeRemoveChild(b.div),delete b.div,b=a;d.alignTo&&A(c.alignedObjects,d);p(d,function(a,c){d[c]&&d[c].parentGroup===d&&d[c].destroy&&d[c].destroy();delete d[c]})},shadow:function(d,
a,b){var h=[],e,k=this.element;if(!d)this.destroyShadows();else if(!this.shadows){var C=c(d.width,3);var g=(d.opacity||.15)/C;var J=this.parentInverted?"(-1,-1)":"("+c(d.offsetX,1)+", "+c(d.offsetY,1)+")";for(e=1;e<=C;e++){var H=k.cloneNode(0);var p=2*C+1-2*e;B(H,{stroke:d.color||"#000000","stroke-opacity":g*e,"stroke-width":p,transform:"translate"+J,fill:"none"});H.setAttribute("class",(H.getAttribute("class")||"")+" highcharts-shadow");b&&(B(H,"height",Math.max(B(H,"height")-p,0)),H.cutHeight=p);
a?a.element.appendChild(H):k.parentNode&&k.parentNode.insertBefore(H,k);h.push(H)}this.shadows=h}return this},destroyShadows:function(){(this.shadows||[]).forEach(function(d){this.safeRemoveChild(d)},this);this.shadows=void 0},xGetter:function(d){"circle"===this.element.nodeName&&("x"===d?d="cx":"y"===d&&(d="cy"));return this._defaultGetter(d)},_defaultGetter:function(d){d=c(this[d+"Value"],this[d],this.element?this.element.getAttribute(d):null,0);/^[\-0-9\.]+$/.test(d)&&(d=parseFloat(d));return d},
dSetter:function(d,a,c){d&&d.join&&(d=d.join(" "));/(NaN| {2}|^$)/.test(d)&&(d="M 0 0");this[a]!==d&&(c.setAttribute(a,d),this[a]=d)},dashstyleSetter:function(d){var c,b=this["stroke-width"];"inherit"===b&&(b=1);if(d=d&&d.toLowerCase()){d=d.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(c=d.length;c--;)d[c]=a(d[c])*
b;d=d.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",d)}},alignSetter:function(d){var a={left:"start",center:"middle",right:"end"};a[d]&&(this.alignValue=d,this.element.setAttribute("text-anchor",a[d]))},opacitySetter:function(d,a,c){this[a]=d;c.setAttribute(a,d)},titleSetter:function(d){var a=this.element.getElementsByTagName("title")[0];a||(a=L.createElementNS(this.SVG_NS,"title"),this.element.appendChild(a));a.firstChild&&a.removeChild(a.firstChild);a.appendChild(L.createTextNode(String(c(d,
"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(d){d!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=d,this.added&&this.renderer.buildText(this))},setTextPath:function(d,a){var c=this.element,b={textAnchor:"text-anchor"},h=!1,e=this.textPathWrapper,C=!e;a=g(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},a);var H=a.attributes;if(d&&a&&a.enabled){e&&null===e.element.parentNode?(C=!0,e=e.destroy()):e&&this.removeTextOutline.call(e.parentGroup,
[].slice.call(c.getElementsByTagName("tspan")));this.options&&this.options.padding&&(H.dx=-this.options.padding);e||(this.textPathWrapper=e=this.renderer.createElement("textPath"),h=!0);var w=e.element;(a=d.element.getAttribute("id"))||d.element.setAttribute("id",a=k());if(C)for(d=c.getElementsByTagName("tspan");d.length;)d[0].setAttribute("y",0),q(H.dx)&&d[0].setAttribute("x",-H.dx),w.appendChild(d[0]);h&&e.add({element:this.text?this.text.element:c});w.setAttributeNS("http://www.w3.org/1999/xlink",
"href",this.renderer.url+"#"+a);z(H.dy)&&(w.parentNode.setAttribute("dy",H.dy),delete H.dy);z(H.dx)&&(w.parentNode.setAttribute("dx",H.dx),delete H.dx);p(H,function(d,a){w.setAttribute(b[a]||a,d)});c.removeAttribute("transform");this.removeTextOutline.call(e,[].slice.call(c.getElementsByTagName("tspan")));this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=J}else e&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(c,
d),this.updateTransform(),this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},destroyTextPath:function(d,a){var c=d.getElementsByTagName("text")[0];if(c){if(c.removeAttribute("dx"),c.removeAttribute("dy"),a.element.setAttribute("id",""),c.getElementsByTagName("textPath").length){for(d=this.textPathWrapper.element.childNodes;d.length;)c.appendChild(d[0]);c.removeChild(this.textPathWrapper.element)}}else if(d.getAttribute("dx")||d.getAttribute("dy"))d.removeAttribute("dx"),
d.removeAttribute("dy");this.textPathWrapper=this.textPathWrapper.destroy()},fillSetter:function(d,a,c){"string"===typeof d?c.setAttribute(a,d):d&&this.complexColor(d,a,c)},visibilitySetter:function(d,a,c){"inherit"===d?c.removeAttribute(a):this[a]!==d&&c.setAttribute(a,d);this[a]=d},zIndexSetter:function(d,c){var b=this.renderer,h=this.parentGroup,e=(h||b).element||b.box,k=this.element,C=!1;b=e===b.box;var g=this.added;var H;z(d)?(k.setAttribute("data-z-index",d),d=+d,this[c]===d&&(g=!1)):z(this[c])&&
k.removeAttribute("data-z-index");this[c]=d;if(g){(d=this.zIndex)&&h&&(h.handleZ=!0);c=e.childNodes;for(H=c.length-1;0<=H&&!C;H--){h=c[H];g=h.getAttribute("data-z-index");var J=!z(g);if(h!==k)if(0>d&&J&&!b&&!H)e.insertBefore(k,c[H]),C=!0;else if(a(g)<=d||J&&(!z(d)||0<=d))e.insertBefore(k,c[H+1]||null),C=!0}C||(e.insertBefore(k,c[b?3:0]||null),C=!0)}return C},_defaultSetter:function(d,a,c){c.setAttribute(a,d)}});S.prototype.yGetter=S.prototype.xGetter;S.prototype.translateXSetter=S.prototype.translateYSetter=
S.prototype.rotationSetter=S.prototype.verticalAlignSetter=S.prototype.rotationOriginXSetter=S.prototype.rotationOriginYSetter=S.prototype.scaleXSetter=S.prototype.scaleYSetter=S.prototype.matrixSetter=function(d,a){this[a]=d;this.doTransform=!0};S.prototype["stroke-widthSetter"]=S.prototype.strokeSetter=function(d,a,c){this[a]=d;this.stroke&&this["stroke-width"]?(S.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===
a&&0===d&&this.hasStroke?(c.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};m=f.SVGRenderer=function(){this.init.apply(this,arguments)};u(m.prototype,{Element:S,SVG_NS:T,init:function(a,c,b,h,e,k,C){var g=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});C||g.css(this.getStyle(h));h=g.element;a.appendChild(h);B(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&
B(h,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=g;this.alignedObjects=[];this.url=(Q||d)&&L.getElementsByTagName("base").length?U.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(L.createTextNode("Created with Highcharts 8.0.3"));this.defs=this.createElement("defs").add();this.allowHTML=k;this.forExport=e;this.styledMode=C;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=
0;this.setSize(c,b,!1);var H;Q&&a.getBoundingClientRect&&(c=function(){K(a,{left:0,top:0});H=a.getBoundingClientRect();K(a,{left:Math.ceil(H.left)-H.left+"px",top:Math.ceil(H.top)-H.top+"px"})},c(),this.unSubPixelFix=F(U,"resize",c))},definition:function(d){function a(d,b){var h;E(d).forEach(function(d){var e=c.createElement(d.tagName),k={};p(d,function(d,a){"tagName"!==a&&"children"!==a&&"textContent"!==a&&(k[a]=d)});e.attr(k);e.add(b||c.defs);d.textContent&&e.element.appendChild(L.createTextNode(d.textContent));
a(d.children||[],e);h=e});return h}var c=this;return a(d)},getStyle:function(d){return this.style=u({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},d)},setStyle:function(d){this.boxWrapper.css(this.getStyle(d))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var d=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();x(this.gradients||{});this.gradients=null;d&&(this.defs=d.destroy());this.unSubPixelFix&&
this.unSubPixelFix();return this.alignedObjects=null},createElement:function(d){var a=new this.Element;a.init(this,d);return a},draw:J,getRadialAttr:function(d,a){return{cx:d[0]-d[2]/2+a.cx*d[2],cy:d[1]-d[2]/2+a.cy*d[2],r:a.r*d[2]}},truncate:function(d,a,c,b,h,e,k){var C=this,g=d.rotation,H,J=b?1:0,p=(c||b).length,w=p,t=[],v=function(d){a.firstChild&&a.removeChild(a.firstChild);d&&a.appendChild(L.createTextNode(d))},l=function(e,g){g=g||e;if("undefined"===typeof t[g])if(a.getSubStringLength)try{t[g]=
h+a.getSubStringLength(0,b?g+1:g)}catch(ka){""}else C.getSpanWidth&&(v(k(c||b,e)),t[g]=h+C.getSpanWidth(d,a));return t[g]},E;d.rotation=0;var R=l(a.textContent.length);if(E=h+R>e){for(;J<=p;)w=Math.ceil((J+p)/2),b&&(H=k(b,w)),R=l(w,H&&H.length-1),J===p?J=p+1:R>e?p=w-1:J=w;0===p?v(""):c&&p===c.length-1||v(H||k(c||b,w))}b&&b.splice(0,w);d.actualWidth=R;d.rotation=g;return E},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(d){var b=d.element,h=this,e=h.forExport,
k=c(d.textStr,"").toString(),C=-1!==k.indexOf("<"),g=b.childNodes,J,w=B(b,"x"),t=d.styles,v=d.textWidth,l=t&&t.lineHeight,E=t&&t.textOutline,n=t&&"ellipsis"===t.textOverflow,O=t&&"nowrap"===t.whiteSpace,q=t&&t.fontSize,W,f=g.length;t=v&&!d.added&&this.box;var M=function(d){var c;h.styledMode||(c=/(px|em)$/.test(d&&d.style.fontSize)?d.style.fontSize:q||h.style.fontSize||12);return l?a(l):h.fontMetrics(c,d.getAttribute("style")?d:b).h},u=function(d,a){p(h.escapes,function(c,b){a&&-1!==a.indexOf(c)||
(d=d.toString().replace(new RegExp(c,"g"),b))});return d},U=function(d,a){var c=d.indexOf("<");d=d.substring(c,d.indexOf(">")-c);c=d.indexOf(a+"=");if(-1!==c&&(c=c+a.length+1,a=d.charAt(c),'"'===a||"'"===a))return d=d.substring(c+1),d.substring(0,d.indexOf(a))},x=/<br.*?>/g;var Q=[k,n,O,l,E,q,v].join();if(Q!==d.textCache){for(d.textCache=Q;f--;)b.removeChild(g[f]);C||E||n||v||-1!==k.indexOf(" ")&&(!O||x.test(k))?(t&&t.appendChild(b),C?(k=h.styledMode?k.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,
'<span class="highcharts-emphasized">'):k.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">'),k=k.replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(x)):k=[k],k=k.filter(function(d){return""!==d}),k.forEach(function(a,c){var k=0,C=0;a=a.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");var g=a.split("|||");g.forEach(function(a){if(""!==a||1===g.length){var p={},t=L.createElementNS(h.SVG_NS,
"tspan"),l,E;(l=U(a,"class"))&&B(t,"class",l);if(l=U(a,"style"))l=l.replace(/(;| |^)color([ :])/,"$1fill$2"),B(t,"style",l);(E=U(a,"href"))&&!e&&(B(t,"onclick",'location.href="'+E+'"'),B(t,"class","highcharts-anchor"),h.styledMode||K(t,{cursor:"pointer"}));a=u(a.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" ");if(" "!==a){t.appendChild(L.createTextNode(a));k?p.dx=0:c&&null!==w&&(p.x=w);B(t,p);b.appendChild(t);!k&&W&&(!H&&e&&K(t,{display:"block"}),B(t,"dy",M(t)));if(v){var R=a.replace(/([^\^])-/g,"$1- ").split(" ");
p=!O&&(1<g.length||c||1<R.length);E=0;var f=M(t);if(n)J=h.truncate(d,t,a,void 0,0,Math.max(0,v-parseInt(q||12,10)),function(d,a){return d.substring(0,a)+"\u2026"});else if(p)for(;R.length;)R.length&&!O&&0<E&&(t=L.createElementNS(T,"tspan"),B(t,{dy:f,x:w}),l&&B(t,"style",l),t.appendChild(L.createTextNode(R.join(" ").replace(/- /g,"-"))),b.appendChild(t)),h.truncate(d,t,null,R,0===E?C:0,v,function(d,a){return R.slice(0,a).join(" ").replace(/- /g,"-")}),C=d.actualWidth,E++}k++}}});W=W||b.childNodes.length}),
n&&J&&d.attr("title",u(d.textStr,["&lt;","&gt;"])),t&&t.removeChild(b),E&&d.applyTextOutline&&d.applyTextOutline(E)):b.appendChild(L.createTextNode(u(k)))}},getContrast:function(d){d=r(d).rgba;d[0]*=1;d[1]*=1.2;d[2]*=.5;return 459<d[0]+d[1]+d[2]?"#000000":"#FFFFFF"},button:function(d,a,c,b,h,e,k,H,J,p){var w=this.label(d,a,c,J,null,null,p,null,"button"),t=0,v=this.styledMode;w.attr(g({padding:8,r:2},h));if(!v){h=g({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",
fontWeight:"normal"}},h);var l=h.style;delete h.style;e=g(h,{fill:"#e6e6e6"},e);var E=e.style;delete e.style;k=g(h,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},k);var L=k.style;delete k.style;H=g(h,{style:{color:"#cccccc"}},H);var n=H.style;delete H.style}F(w.element,C?"mouseover":"mouseenter",function(){3!==t&&w.setState(1)});F(w.element,C?"mouseout":"mouseleave",function(){3!==t&&w.setState(t)});w.setState=function(d){1!==d&&(w.state=t=d);w.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+
["normal","hover","pressed","disabled"][d||0]);v||w.attr([h,e,k,H][d||0]).css([l,E,L,n][d||0])};v||w.attr(h).css(u({cursor:"default"},l));return w.on("click",function(d){3!==t&&b.call(w,d)})},crispLine:function(d,a){d[1]===d[4]&&(d[1]=d[4]=Math.round(d[1])-a%2/2);d[2]===d[5]&&(d[2]=d[5]=Math.round(d[2])+a%2/2);return d},path:function(d){var a=this.styledMode?{}:{fill:"none"};l(d)?a.d=d:e(d)&&u(a,d);return this.createElement("path").attr(a)},circle:function(d,a,c){d=e(d)?d:"undefined"===typeof d?{}:
{x:d,y:a,r:c};a=this.createElement("circle");a.xSetter=a.ySetter=function(d,a,c){c.setAttribute("c"+a,d)};return a.attr(d)},arc:function(d,a,c,b,h,k){e(d)?(b=d,a=b.y,c=b.r,d=b.x):b={innerR:b,start:h,end:k};d=this.symbol("arc",d,a,c,c,b);d.r=c;return d},rect:function(d,a,c,b,h,k){h=e(d)?d.r:h;var C=this.createElement("rect");d=e(d)?d:"undefined"===typeof d?{}:{x:d,y:a,width:Math.max(c,0),height:Math.max(b,0)};this.styledMode||("undefined"!==typeof k&&(d.strokeWidth=k,d=C.crisp(d)),d.fill="none");h&&
(d.r=h);C.rSetter=function(d,a,c){C.r=d;B(c,{rx:d,ry:d})};C.rGetter=function(){return C.r};return C.attr(d)},setSize:function(d,a,b){var h=this.alignedObjects,e=h.length;this.width=d;this.height=a;for(this.boxWrapper.animate({width:d,height:a},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:c(b,!0)?void 0:0});e--;)h[e].align()},g:function(d){var a=this.createElement("g");return d?a.attr({"class":"highcharts-"+d}):a},image:function(d,a,c,b,h,e){var k=
{preserveAspectRatio:"none"},C=function(d,a){d.setAttributeNS?d.setAttributeNS("http://www.w3.org/1999/xlink","href",a):d.setAttribute("hc-svg-href",a)},g=function(a){C(H.element,d);e.call(H,a)};1<arguments.length&&u(k,{x:a,y:c,width:b,height:h});var H=this.createElement("image").attr(k);e?(C(H.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),k=new U.Image,F(k,"load",g),k.src=d,k.complete&&g({})):C(H.element,d);return H},symbol:function(d,a,b,e,k,C){var g=this,
H=/^url\((.*?)\)$/,J=H.test(d),w=!J&&(this.symbols[d]?d:"circle"),p=w&&this.symbols[w],t=z(a)&&p&&p.call(this.symbols,Math.round(a),Math.round(b),e,k,C);if(p){var v=this.path(t);g.styledMode||v.attr("fill","none");u(v,{symbolName:w,x:a,y:b,width:e,height:k});C&&u(v,C)}else if(J){var l=d.match(H)[1];v=this.image(l);v.imgwidth=c(W[l]&&W[l].width,C&&C.width);v.imgheight=c(W[l]&&W[l].height,C&&C.height);var E=function(){v.attr({width:v.width,height:v.height})};["width","height"].forEach(function(d){v[d+
"Setter"]=function(d,a){var c={},b=this["img"+a],h="width"===a?"translateX":"translateY";this[a]=d;z(b)&&(C&&"within"===C.backgroundSize&&this.width&&this.height&&(b=Math.round(b*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(a,b),this.alignByTranslate||(c[h]=((this[a]||0)-b)/2,this.attr(c)))}});z(a)&&v.attr({x:a,y:b});v.isImg=!0;z(v.imgwidth)&&z(v.imgheight)?E():(v.attr({width:0,height:0}),D("img",{onload:function(){var d=h[g.chartIndex];0===
this.width&&(K(this,{position:"absolute",top:"-999em"}),L.body.appendChild(this));W[l]={width:this.width,height:this.height};v.imgwidth=this.width;v.imgheight=this.height;v.element&&E();this.parentNode&&this.parentNode.removeChild(this);g.imgCount--;if(!g.imgCount&&d&&!d.hasLoaded)d.onload()},src:l}),this.imgCount++)}return v},symbols:{circle:function(d,a,c,b){return this.arc(d+c/2,a+b/2,c/2,b/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(d,a,c,b){return["M",d,a,"L",d+c,a,d+c,a+b,
d,a+b,"Z"]},triangle:function(d,a,c,b){return["M",d+c/2,a,"L",d+c,a+b,d,a+b,"Z"]},"triangle-down":function(d,a,c,b){return["M",d,a,"L",d+c,a,d+c/2,a+b,"Z"]},diamond:function(d,a,c,b){return["M",d+c/2,a,"L",d+c,a+b/2,d+c/2,a+b,d,a+b/2,"Z"]},arc:function(d,a,b,h,e){var k=e.start,C=e.r||b,g=e.r||h||b,H=e.end-.001;b=e.innerR;h=c(e.open,.001>Math.abs(e.end-e.start-2*Math.PI));var J=Math.cos(k),w=Math.sin(k),p=Math.cos(H);H=Math.sin(H);k=c(e.longArc,.001>e.end-k-Math.PI?0:1);C=["M",d+C*J,a+g*w,"A",C,g,
0,k,c(e.clockwise,1),d+C*p,a+g*H];z(b)&&C.push(h?"M":"L",d+b*p,a+b*H,"A",b,b,0,k,z(e.clockwise)?1-e.clockwise:0,d+b*J,a+b*w);C.push(h?"":"Z");return C},callout:function(d,a,c,b,h){var e=Math.min(h&&h.r||0,c,b),k=e+6,C=h&&h.anchorX;h=h&&h.anchorY;var g=["M",d+e,a,"L",d+c-e,a,"C",d+c,a,d+c,a,d+c,a+e,"L",d+c,a+b-e,"C",d+c,a+b,d+c,a+b,d+c-e,a+b,"L",d+e,a+b,"C",d,a+b,d,a+b,d,a+b-e,"L",d,a+e,"C",d,a,d,a,d+e,a];C&&C>c?h>a+k&&h<a+b-k?g.splice(13,3,"L",d+c,h-6,d+c+6,h,d+c,h+6,d+c,a+b-e):g.splice(13,3,"L",
d+c,b/2,C,h,d+c,b/2,d+c,a+b-e):C&&0>C?h>a+k&&h<a+b-k?g.splice(33,3,"L",d,h+6,d-6,h,d,h-6,d,a+e):g.splice(33,3,"L",d,b/2,C,h,d,b/2,d,a+e):h&&h>b&&C>d+k&&C<d+c-k?g.splice(23,3,"L",C+6,a+b,C,a+b+6,C-6,a+b,d+e,a+b):h&&0>h&&C>d+k&&C<d+c-k&&g.splice(3,3,"L",C-6,a,C,a-6,C+6,a,c-e,a);return g}},clipRect:function(d,a,c,b){var h=k()+"-",e=this.createElement("clipPath").attr({id:h}).add(this.defs);d=this.rect(d,a,c,b,0).add(e);d.id=h;d.clipPath=e;d.count=0;return d},text:function(d,a,c,b){var h={};if(b&&(this.allowHTML||
!this.forExport))return this.html(d,a,c);h.x=Math.round(a||0);c&&(h.y=Math.round(c));z(d)&&(h.text=d);d=this.createElement("text").attr(h);b||(d.xSetter=function(d,a,c){var b=c.getElementsByTagName("tspan"),h=c.getAttribute(a),e;for(e=0;e<b.length;e++){var k=b[e];k.getAttribute(a)===h&&k.setAttribute(a,d)}c.setAttribute(a,d)});return d},fontMetrics:function(d,c){d=!this.styledMode&&/px/.test(d)||!U.getComputedStyle?d||c&&c.style&&c.style.fontSize||this.style&&this.style.fontSize:c&&S.prototype.getStyle.call(c,
"font-size");d=/px/.test(d)?a(d):12;c=24>d?d+3:Math.round(1.2*d);return{h:c,b:Math.round(.8*c),f:d}},rotCorr:function(d,a,c){var b=d;a&&c&&(b=Math.max(b*Math.cos(a*t),4));return{x:-d/3*Math.sin(a*t),y:b}},label:function(d,a,c,b,h,e,k,C,H){var J=this,p=J.styledMode,t=J.g("button"!==H&&"label"),v=t.text=J.text("",0,0,k).attr({zIndex:1}),l,E,L=0,n=3,W=0,T,f,M,R,U,x={},Q,m,ba=/^url\((.*?)\)$/.test(b),O=p||ba,A=function(){return p?l.strokeWidth()%2/2:(Q?parseInt(Q,10):0)%2/2};H&&t.addClass("highcharts-"+
H);var r=function(){var d=v.element.style,a={};E=("undefined"===typeof T||"undefined"===typeof f||U)&&z(v.textStr)&&v.getBBox();t.width=(T||E.width||0)+2*n+W;t.height=(f||E.height||0)+2*n;m=n+Math.min(J.fontMetrics(d&&d.fontSize,v).b,E?E.height:Infinity);O&&(l||(t.box=l=J.symbols[b]||ba?J.symbol(b):J.rect(),l.addClass(("button"===H?"":"highcharts-label-box")+(H?" highcharts-"+H+"-box":"")),l.add(t),d=A(),a.x=d,a.y=(C?-m:0)+d),a.width=Math.round(t.width),a.height=Math.round(t.height),l.attr(u(a,x)),
x={})};var D=function(){var d=W+n;var a=C?0:m;z(T)&&E&&("center"===U||"right"===U)&&(d+={center:.5,right:1}[U]*(T-E.width));if(d!==v.x||a!==v.y)v.attr("x",d),v.hasBoxWidthChanged&&(E=v.getBBox(!0),r()),"undefined"!==typeof a&&v.attr("y",a);v.x=d;v.y=a};var X=function(d,a){l?l.attr(d,a):x[d]=a};t.onAdd=function(){v.add(t);t.attr({text:d||0===d?d:"",x:a,y:c});l&&z(h)&&t.attr({anchorX:h,anchorY:e})};t.widthSetter=function(d){T=q(d)?d:null};t.heightSetter=function(d){f=d};t["text-alignSetter"]=function(d){U=
d};t.paddingSetter=function(d){z(d)&&d!==n&&(n=t.padding=d,D())};t.paddingLeftSetter=function(d){z(d)&&d!==W&&(W=d,D())};t.alignSetter=function(d){d={left:0,center:.5,right:1}[d];d!==L&&(L=d,E&&t.attr({x:M}))};t.textSetter=function(d){"undefined"!==typeof d&&v.attr({text:d});r();D()};t["stroke-widthSetter"]=function(d,a){d&&(O=!0);Q=this["stroke-width"]=d;X(a,d)};p?t.rSetter=function(d,a){X(a,d)}:t.strokeSetter=t.fillSetter=t.rSetter=function(d,a){"r"!==a&&("fill"===a&&d&&(O=!0),t[a]=d);X(a,d)};t.anchorXSetter=
function(d,a){h=t.anchorX=d;X(a,Math.round(d)-A()-M)};t.anchorYSetter=function(d,a){e=t.anchorY=d;X(a,d-R)};t.xSetter=function(d){t.x=d;L&&(d-=L*((T||E.width)+2*n),t["forceAnimate:x"]=!0);M=Math.round(d);t.attr("translateX",M)};t.ySetter=function(d){R=t.y=Math.round(d);t.attr("translateY",R)};var B=t.css;k={css:function(d){if(d){var a={};d=g(d);t.textProps.forEach(function(c){"undefined"!==typeof d[c]&&(a[c]=d[c],delete d[c])});v.css(a);"width"in a&&r();"fontSize"in a&&(r(),D())}return B.call(t,d)},
getBBox:function(){return{width:E.width+2*n,height:E.height+2*n,x:E.x-n,y:E.y-n}},destroy:function(){w(t.element,"mouseenter");w(t.element,"mouseleave");v&&(v=v.destroy());l&&(l=l.destroy());S.prototype.destroy.call(t);t=J=r=D=X=null}};p||(k.shadow=function(d){d&&(r(),l&&l.shadow(d));return t});return u(t,k)}});f.Renderer=m});P(y,"parts/Html.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var I=m.attr,r=m.createElement,F=m.css,N=m.defined,G=m.extend,B=m.pick,D=m.pInt,K=f.isFirefox,
z=f.isMS,x=f.isWebKit,A=f.SVGElement;m=f.SVGRenderer;var u=f.win;G(A.prototype,{htmlCss:function(n){var l="SPAN"===this.element.tagName&&n&&"width"in n,q=B(l&&n.width,void 0);if(l){delete n.width;this.textWidth=q;var e=!0}n&&"ellipsis"===n.textOverflow&&(n.whiteSpace="nowrap",n.overflow="hidden");this.styles=G(this.styles,n);F(this.element,n);e&&this.htmlUpdateTransform();return this},htmlGetBBox:function(){var n=this.element;return{x:n.offsetLeft,y:n.offsetTop,width:n.offsetWidth,height:n.offsetHeight}},
htmlUpdateTransform:function(){if(this.added){var n=this.renderer,l=this.element,q=this.translateX||0,e=this.translateY||0,b=this.x||0,g=this.y||0,p=this.textAlign||"left",c={left:0,center:.5,right:1}[p],a=this.styles,w=a&&a.whiteSpace;F(l,{marginLeft:q,marginTop:e});!n.styledMode&&this.shadows&&this.shadows.forEach(function(a){F(a,{marginLeft:q+1,marginTop:e+1})});this.inverted&&[].forEach.call(l.childNodes,function(a){n.invertChild(a,l)});if("SPAN"===l.tagName){a=this.rotation;var E=this.textWidth&&
D(this.textWidth),v=[a,p,l.innerHTML,this.textWidth,this.textAlign].join(),k;(k=E!==this.oldTextWidth)&&!(k=E>this.oldTextWidth)&&((k=this.textPxLength)||(F(l,{width:"",whiteSpace:w||"nowrap"}),k=l.offsetWidth),k=k>E);k&&(/[ \-]/.test(l.textContent||l.innerText)||"ellipsis"===l.style.textOverflow)?(F(l,{width:E+"px",display:"block",whiteSpace:w||"normal"}),this.oldTextWidth=E,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;v!==this.cTT&&(w=n.fontMetrics(l.style.fontSize,l).b,!N(a)||a===(this.oldRotation||
0)&&p===this.oldAlign||this.setSpanRotation(a,c,w),this.getSpanCorrection(!N(a)&&this.textPxLength||l.offsetWidth,w,c,a,p));F(l,{left:b+(this.xCorr||0)+"px",top:g+(this.yCorr||0)+"px"});this.cTT=v;this.oldRotation=a;this.oldAlign=p}}else this.alignOnAdd=!0},setSpanRotation:function(n,l,q){var e={},b=this.renderer.getTransformKey();e[b]=e.transform="rotate("+n+"deg)";e[b+(K?"Origin":"-origin")]=e.transformOrigin=100*l+"% "+q+"px";F(this.element,e)},getSpanCorrection:function(n,l,q){this.xCorr=-n*q;
this.yCorr=-l}});G(m.prototype,{getTransformKey:function(){return z&&!/Edge/.test(u.navigator.userAgent)?"-ms-transform":x?"-webkit-transform":K?"MozTransform":u.opera?"-o-transform":""},html:function(n,l,q){var e=this.createElement("span"),b=e.element,g=e.renderer,p=g.isSVG,c=function(a,c){["opacity","visibility"].forEach(function(b){a[b+"Setter"]=function(e,k,h){var g=a.div?a.div.style:c;A.prototype[b+"Setter"].call(this,e,k,h);g&&(g[k]=e)}});a.addedSetters=!0};e.textSetter=function(a){a!==b.innerHTML&&
(delete this.bBox,delete this.oldTextWidth);this.textStr=a;b.innerHTML=B(a,"");e.doTransform=!0};p&&c(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,c){"align"===c&&(c="textAlign");e[c]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:n,x:Math.round(l),y:Math.round(q)}).css({position:"absolute"});g.styledMode||e.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});b.style.whiteSpace=
"nowrap";e.css=e.htmlCss;p&&(e.add=function(a){var p=g.box.parentNode,l=[];if(this.parentGroup=a){var v=a.div;if(!v){for(;a;)l.push(a),a=a.parentGroup;l.reverse().forEach(function(a){function b(c,b){a[b]=c;"translateX"===b?g.left=c+"px":g.top=c+"px";a.doTransform=!0}var k=I(a.element,"class");v=a.div=a.div||r("div",k?{className:k}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},v||
p);var g=v.style;G(a,{classSetter:function(a){return function(c){this.element.setAttribute("class",c);a.className=c}}(v),on:function(){l[0].div&&e.on.apply({element:l[0].div},arguments);return a},translateXSetter:b,translateYSetter:b});a.addedSetters||c(a)})}}else v=p;v.appendChild(b);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})});P(y,"parts/Tick.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var I=m.clamp,r=m.correctFloat,F=m.defined,N=m.destroyObjectProperties,
G=m.extend,B=m.isNumber,D=m.merge,K=m.objectEach,z=m.pick,x=f.fireEvent,A=f.deg2rad;m=function(){function u(n,l,q,e,b){this.isNewLabel=this.isNew=!0;this.axis=n;this.pos=l;this.type=q||"";this.parameters=b||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;q||e||this.addLabel()}u.prototype.addLabel=function(){var n=this,l=n.axis,q=l.options,e=l.chart,b=l.categories,g=l.names,p=n.pos,c=z(n.options&&n.options.labels,q.labels),a=l.tickPositions,w=p===a[0],E=p===
a[a.length-1];g=this.parameters.category||(b?z(b[p],g[p],p):p);var v=n.label;b=(!c.step||1===c.step)&&1===l.tickInterval;a=a.info;var k,h;if(l.isDatetimeAxis&&a){var t=e.time.resolveDTLFormat(q.dateTimeLabelFormats[!q.grid&&a.higherRanks[p]||a.unitName]);var L=t.main}n.isFirst=w;n.isLast=E;n.formatCtx={axis:l,chart:e,isFirst:w,isLast:E,dateTimeLabelFormat:L,tickPositionInfo:a,value:l.isLog?r(l.lin2log(g)):g,pos:p};q=l.labelFormatter.call(n.formatCtx,this.formatCtx);if(h=t&&t.list)n.shortenLabel=function(){for(k=
0;k<h.length;k++)if(v.attr({text:l.labelFormatter.call(G(n.formatCtx,{dateTimeLabelFormat:h[k]}))}),v.getBBox().width<l.getSlotWidth(n)-2*z(c.padding,5))return;v.attr({text:""})};b&&l._addedPlotLB&&l.isXAxis&&n.moveLabel(q,c);F(v)||n.movedLabel?v&&v.textStr!==q&&!b&&(!v.textWidth||c.style&&c.style.width||v.styles.width||v.css({width:null}),v.attr({text:q}),v.textPxLength=v.getBBox().width):(n.label=v=n.createLabel({x:0,y:0},q,c),n.rotation=0)};u.prototype.createLabel=function(n,l,q){var e=this.axis,
b=e.chart;if(n=F(l)&&q.enabled?b.renderer.text(l,n.x,n.y,q.useHTML).add(e.labelGroup):null)b.styledMode||n.css(D(q.style)),n.textPxLength=n.getBBox().width;return n};u.prototype.destroy=function(){N(this,this.axis)};u.prototype.getPosition=function(n,l,q,e){var b=this.axis,g=b.chart,p=e&&g.oldChartHeight||g.chartHeight;n={x:n?r(b.translate(l+q,null,null,e)+b.transB):b.left+b.offset+(b.opposite?(e&&g.oldChartWidth||g.chartWidth)-b.right-b.left:0),y:n?p-b.bottom+b.offset-(b.opposite?b.height:0):r(p-
b.translate(l+q,null,null,e)-b.transB)};n.y=I(n.y,-1E5,1E5);x(this,"afterGetPosition",{pos:n});return n};u.prototype.getLabelPosition=function(n,l,q,e,b,g,p,c){var a=this.axis,w=a.transA,E=a.isLinked&&a.linkedParent?a.linkedParent.reversed:a.reversed,v=a.staggerLines,k=a.tickRotCorr||{x:0,y:0},h=b.y,t=e||a.reserveSpaceDefault?0:-a.labelOffset*("center"===a.labelAlign?.5:1),L={};F(h)||(h=0===a.side?q.rotation?-8:-q.getBBox().height:2===a.side?k.y+8:Math.cos(q.rotation*A)*(k.y-q.getBBox(!1,0).height/
2));n=n+b.x+t+k.x-(g&&e?g*w*(E?-1:1):0);l=l+h-(g&&!e?g*w*(E?1:-1):0);v&&(q=p/(c||1)%v,a.opposite&&(q=v-q-1),l+=a.labelOffset/v*q);L.x=n;L.y=Math.round(l);x(this,"afterGetLabelPosition",{pos:L,tickmarkOffset:g,index:p});return L};u.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};u.prototype.getMarkPath=function(n,l,q,e,b,g){return g.crispLine(["M",n,l,"L",n+(b?0:-q),l+(b?q:0)],e)};u.prototype.handleOverflow=function(n){var l=this.axis,q=
l.options.labels,e=n.x,b=l.chart.chartWidth,g=l.chart.spacing,p=z(l.labelLeft,Math.min(l.pos,g[3]));g=z(l.labelRight,Math.max(l.isRadial?0:l.pos+l.len,b-g[1]));var c=this.label,a=this.rotation,w={left:0,center:.5,right:1}[l.labelAlign||c.attr("align")],E=c.getBBox().width,v=l.getSlotWidth(this),k=v,h=1,t,L={};if(a||"justify"!==z(q.overflow,"justify"))0>a&&e-w*E<p?t=Math.round(e/Math.cos(a*A)-p):0<a&&e+w*E>g&&(t=Math.round((b-e)/Math.cos(a*A)));else if(b=e+(1-w)*E,e-w*E<p?k=n.x+k*(1-w)-p:b>g&&(k=g-
n.x+k*w,h=-1),k=Math.min(v,k),k<v&&"center"===l.labelAlign&&(n.x+=h*(v-k-w*(v-Math.min(E,k)))),E>k||l.autoRotation&&(c.styles||{}).width)t=k;t&&(this.shortenLabel?this.shortenLabel():(L.width=Math.floor(t),(q.style||{}).textOverflow||(L.textOverflow="ellipsis"),c.css(L)))};u.prototype.moveLabel=function(n,l){var q=this,e=q.label,b=!1,g=q.axis,p=g.reversed,c=g.chart.inverted;e&&e.textStr===n?(q.movedLabel=e,b=!0,delete q.label):K(g.ticks,function(a){b||a.isNew||a===q||!a.label||a.label.textStr!==n||
(q.movedLabel=a.label,b=!0,a.labelPos=q.movedLabel.xy,delete a.label)});if(!b&&(q.labelPos||e)){var a=q.labelPos||e.xy;e=c?a.x:p?0:g.width+g.left;g=c?p?g.width+g.left:0:a.y;q.movedLabel=q.createLabel({x:e,y:g},n,l);q.movedLabel&&q.movedLabel.attr({opacity:0})}};u.prototype.render=function(n,l,q){var e=this.axis,b=e.horiz,g=this.pos,p=z(this.tickmarkOffset,e.tickmarkOffset);g=this.getPosition(b,g,p,l);p=g.x;var c=g.y;e=b&&p===e.pos+e.len||!b&&c===e.pos?-1:1;q=z(q,1);this.isActive=!0;this.renderGridLine(l,
q,e);this.renderMark(g,q,e);this.renderLabel(g,l,q,n);this.isNew=!1;f.fireEvent(this,"afterRender")};u.prototype.renderGridLine=function(n,l,q){var e=this.axis,b=e.options,g=this.gridLine,p={},c=this.pos,a=this.type,w=z(this.tickmarkOffset,e.tickmarkOffset),E=e.chart.renderer,v=a?a+"Grid":"grid",k=b[v+"LineWidth"],h=b[v+"LineColor"];b=b[v+"LineDashStyle"];g||(e.chart.styledMode||(p.stroke=h,p["stroke-width"]=k,b&&(p.dashstyle=b)),a||(p.zIndex=1),n&&(l=0),this.gridLine=g=E.path().attr(p).addClass("highcharts-"+
(a?a+"-":"")+"grid-line").add(e.gridGroup));if(g&&(q=e.getPlotLinePath({value:c+w,lineWidth:g.strokeWidth()*q,force:"pass",old:n})))g[n||this.isNew?"attr":"animate"]({d:q,opacity:l})};u.prototype.renderMark=function(n,l,q){var e=this.axis,b=e.options,g=e.chart.renderer,p=this.type,c=p?p+"Tick":"tick",a=e.tickSize(c),w=this.mark,E=!w,v=n.x;n=n.y;var k=z(b[c+"Width"],!p&&e.isXAxis?1:0);b=b[c+"Color"];a&&(e.opposite&&(a[0]=-a[0]),E&&(this.mark=w=g.path().addClass("highcharts-"+(p?p+"-":"")+"tick").add(e.axisGroup),
e.chart.styledMode||w.attr({stroke:b,"stroke-width":k})),w[E?"attr":"animate"]({d:this.getMarkPath(v,n,a[0],w.strokeWidth()*q,e.horiz,g),opacity:l}))};u.prototype.renderLabel=function(n,l,q,e){var b=this.axis,g=b.horiz,p=b.options,c=this.label,a=p.labels,w=a.step;b=z(this.tickmarkOffset,b.tickmarkOffset);var E=!0,v=n.x;n=n.y;c&&B(v)&&(c.xy=n=this.getLabelPosition(v,n,c,g,a,b,e,w),this.isFirst&&!this.isLast&&!z(p.showFirstLabel,1)||this.isLast&&!this.isFirst&&!z(p.showLastLabel,1)?E=!1:!g||a.step||
a.rotation||l||0===q||this.handleOverflow(n),w&&e%w&&(E=!1),E&&B(n.y)?(n.opacity=q,c[this.isNewLabel?"attr":"animate"](n),this.isNewLabel=!1):(c.attr("y",-9999),this.isNewLabel=!0))};u.prototype.replaceMovedLabel=function(){var n=this.label,l=this.axis,q=l.reversed,e=this.axis.chart.inverted;if(n&&!this.isNew){var b=e?n.xy.x:q?l.left:l.width+l.left;q=e?q?l.width+l.top:l.top:n.xy.y;n.animate({x:b,y:q,opacity:0},void 0,n.destroy);delete this.label}l.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};
return u}();f.Tick=m;return f.Tick});P(y,"parts/Time.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var I=m.defined,r=m.error,F=m.extend,N=m.isObject,G=m.merge,B=m.objectEach,D=m.pad,K=m.pick,z=m.splat,x=m.timeUnits,A=f.win;m=function(){function u(n){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=A.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(n)}u.prototype.get=function(n,l){if(this.variableTimezone||this.timezoneOffset){var q=l.getTime(),
e=q-this.getTimezoneOffset(l);l.setTime(e);n=l["getUTC"+n]();l.setTime(q);return n}return this.useUTC?l["getUTC"+n]():l["get"+n]()};u.prototype.set=function(n,l,q){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===n||"Seconds"===n||"Minutes"===n)return l["setUTC"+n](q);var e=this.getTimezoneOffset(l);e=l.getTime()-e;l.setTime(e);l["setUTC"+n](q);n=this.getTimezoneOffset(l);e=l.getTime()+n;return l.setTime(e)}return this.useUTC?l["setUTC"+n](q):l["set"+n](q)};u.prototype.update=function(n){var l=
K(n&&n.useUTC,!0);this.options=n=G(!0,this.options||{},n);this.Date=n.Date||A.Date||Date;this.timezoneOffset=(this.useUTC=l)&&n.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=!(l&&!n.getTimezoneOffset&&!n.timezone)};u.prototype.makeTime=function(n,l,q,e,b,g){if(this.useUTC){var p=this.Date.UTC.apply(0,arguments);var c=this.getTimezoneOffset(p);p+=c;var a=this.getTimezoneOffset(p);c!==a?p+=a-c:c-36E5!==this.getTimezoneOffset(p-36E5)||f.isSafari||(p-=36E5)}else p=
(new this.Date(n,l,K(q,1),K(e,0),K(b,0),K(g,0))).getTime();return p};u.prototype.timezoneOffsetFunction=function(){var n=this,l=this.options,q=A.moment;if(!this.useUTC)return function(e){return 6E4*(new Date(e.toString())).getTimezoneOffset()};if(l.timezone){if(q)return function(e){return 6E4*-q.tz(e,l.timezone).utcOffset()};r(25)}return this.useUTC&&l.getTimezoneOffset?function(e){return 6E4*l.getTimezoneOffset(e)}:function(){return 6E4*(n.timezoneOffset||0)}};u.prototype.dateFormat=function(n,l,
q){var e;if(!I(l)||isNaN(l))return(null===(e=f.defaultOptions.lang)||void 0===e?void 0:e.invalidDate)||"";n=K(n,"%Y-%m-%d %H:%M:%S");var b=this;e=new this.Date(l);var g=this.get("Hours",e),p=this.get("Day",e),c=this.get("Date",e),a=this.get("Month",e),w=this.get("FullYear",e),E=f.defaultOptions.lang,v=null===E||void 0===E?void 0:E.weekdays,k=null===E||void 0===E?void 0:E.shortWeekdays;e=F({a:k?k[p]:v[p].substr(0,3),A:v[p],d:D(c),e:D(c,2," "),w:p,b:E.shortMonths[a],B:E.months[a],m:D(a+1),o:a+1,y:w.toString().substr(2,
2),Y:w,H:D(g),k:g,I:D(g%12||12),l:g%12||12,M:D(this.get("Minutes",e)),p:12>g?"AM":"PM",P:12>g?"am":"pm",S:D(e.getSeconds()),L:D(Math.floor(l%1E3),3)},f.dateFormats);B(e,function(a,c){for(;-1!==n.indexOf("%"+c);)n=n.replace("%"+c,"function"===typeof a?a.call(b,l):a)});return q?n.substr(0,1).toUpperCase()+n.substr(1):n};u.prototype.resolveDTLFormat=function(n){return N(n,!0)?n:(n=z(n),{main:n[0],from:n[1],to:n[2]})};u.prototype.getTimeTicks=function(n,l,q,e){var b=this,g=[],p={};var c=new b.Date(l);
var a=n.unitRange,w=n.count||1,E;e=K(e,1);if(I(l)){b.set("Milliseconds",c,a>=x.second?0:w*Math.floor(b.get("Milliseconds",c)/w));a>=x.second&&b.set("Seconds",c,a>=x.minute?0:w*Math.floor(b.get("Seconds",c)/w));a>=x.minute&&b.set("Minutes",c,a>=x.hour?0:w*Math.floor(b.get("Minutes",c)/w));a>=x.hour&&b.set("Hours",c,a>=x.day?0:w*Math.floor(b.get("Hours",c)/w));a>=x.day&&b.set("Date",c,a>=x.month?1:Math.max(1,w*Math.floor(b.get("Date",c)/w)));if(a>=x.month){b.set("Month",c,a>=x.year?0:w*Math.floor(b.get("Month",
c)/w));var v=b.get("FullYear",c)}a>=x.year&&b.set("FullYear",c,v-v%w);a===x.week&&(v=b.get("Day",c),b.set("Date",c,b.get("Date",c)-v+e+(v<e?-7:0)));v=b.get("FullYear",c);e=b.get("Month",c);var k=b.get("Date",c),h=b.get("Hours",c);l=c.getTime();b.variableTimezone&&(E=q-l>4*x.month||b.getTimezoneOffset(l)!==b.getTimezoneOffset(q));l=c.getTime();for(c=1;l<q;)g.push(l),l=a===x.year?b.makeTime(v+c*w,0):a===x.month?b.makeTime(v,e+c*w):!E||a!==x.day&&a!==x.week?E&&a===x.hour&&1<w?b.makeTime(v,e,k,h+c*w):
l+a*w:b.makeTime(v,e,k+c*w*(a===x.day?1:7)),c++;g.push(l);a<=x.hour&&1E4>g.length&&g.forEach(function(a){0===a%18E5&&"000000000"===b.dateFormat("%H%M%S%L",a)&&(p[a]="day")})}g.info=F(n,{higherRanks:p,totalRange:a*w});return g};u.defaultOptions={Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0};return u}();f.Time=m;return f.Time});P(y,"parts/Options.js",[y["parts/Globals.js"],y["parts/Time.js"],y["parts/Color.js"],y["parts/Utilities.js"]],function(f,m,I,r){I=I.parse;
var F=r.merge;f.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),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:m.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},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,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:f.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:"",padding:8,snap:f.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:I("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},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"}};f.setOptions=function(m){f.defaultOptions=F(!0,f.defaultOptions,m);(m.time||m.global)&&f.time.update(F(f.defaultOptions.global,f.defaultOptions.time,m.global,m.time));return f.defaultOptions};f.getOptions=function(){return f.defaultOptions};f.defaultPlotOptions=f.defaultOptions.plotOptions;f.time=new m(F(f.defaultOptions.global,f.defaultOptions.time));f.dateFormat=
function(m,r,B){return f.time.dateFormat(m,r,B)};""});P(y,"parts/Axis.js",[y["parts/Globals.js"],y["parts/Color.js"],y["parts/Tick.js"],y["parts/Utilities.js"]],function(f,m,I,r){var F=m.parse,N=r.addEvent,G=r.animObject,B=r.arrayMax,D=r.arrayMin,K=r.clamp,z=r.correctFloat,x=r.defined,A=r.destroyObjectProperties,u=r.error,n=r.extend,l=r.fireEvent,q=r.format,e=r.getMagnitude,b=r.isArray,g=r.isFunction,p=r.isNumber,c=r.isString,a=r.merge,w=r.normalizeTickInterval,E=r.objectEach,v=r.pick,k=r.relativeLength,
h=r.removeEvent,t=r.splat,L=r.syncTimeout,M=f.defaultOptions,Q=f.deg2rad;m=function(){this.init.apply(this,arguments)};n(m.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,
minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,
labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],
x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(a,d){var c=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!c:c;b.isXAxis=c;b.coll=b.coll||(c?"xAxis":"yAxis");l(this,"init",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var h=this.options,e=h.type;b.labelFormatter=h.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=
h.reversed;b.visible=!1!==h.visible;b.zoomEnabled=!1!==h.zoomEnabled;b.hasNames="category"===e||!0===h.categories;b.categories=h.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog="logarithmic"===e;b.isDatetimeAxis="datetime"===e;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=x(h.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=h.minRange||h.maxZoom;b.range=
h.range;b.offset=h.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=v(h.crosshair,t(a.options.tooltip.crosshairs)[c?0:1],!1);d=b.options.events;-1===a.axes.indexOf(b)&&(c?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&c&&"undefined"===typeof b.reversed&&(b.reversed=!0);E(d,function(d,a){g(d)&&N(b,a,d)});b.lin2log=h.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);
l(this,"afterInit")},setOptions:function(c){this.options=a(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],a(M[this.coll],c));l(this,"afterSetOptions",{userOptions:c})},defaultLabelFormatter:function(){var a=this.axis,d=this.value,c=a.chart.time,b=a.categories,h=this.dateTimeLabelFormat,e=M.lang,k=e.numericSymbols;e=e.numericSymbolMagnitude||1E3;var g=k&&
k.length,p=a.options.labels.format;a=a.isLog?Math.abs(d):a.tickInterval;var t=this.chart,w=t.numberFormatter;if(p)var v=q(p,this,t);else if(b)v=d;else if(h)v=c.dateFormat(h,d);else if(g&&1E3<=a)for(;g--&&"undefined"===typeof v;)c=Math.pow(e,g+1),a>=c&&0===10*d%c&&null!==k[g]&&0!==d&&(v=w(d/c,-1)+k[g]);"undefined"===typeof v&&(v=1E4<=Math.abs(d)?w(d,-1):w(d,-1,void 0,""));return v},getSeriesExtremes:function(){var a=this,d=a.chart,c;l(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;
a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();a.series.forEach(function(b){if(b.visible||!d.options.chart.ignoreHiddenSeries){var h=b.options,e=h.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis){if(h=b.xData,h.length){c=b.getXExtremes(h);var k=c.min;var g=c.max;p(k)||k instanceof Date||(h=h.filter(p),c=b.getXExtremes(h),k=c.min,g=c.max);h.length&&(a.dataMin=Math.min(v(a.dataMin,k),k),a.dataMax=Math.max(v(a.dataMax,
g),g))}}else if(b.getExtremes(),g=b.dataMax,k=b.dataMin,x(k)&&x(g)&&(a.dataMin=Math.min(v(a.dataMin,k),k),a.dataMax=Math.max(v(a.dataMax,g),g)),x(e)&&(a.threshold=e),!h.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});l(this,"afterGetSeriesExtremes")},translate:function(a,d,c,b,h,e){var k=this.linkedParent||this,g=1,C=0,J=b?k.oldTransA:k.transA;b=b?k.oldMin:k.min;var t=k.minPixelPadding;h=(k.isOrdinal||k.isBroken||k.isLog&&h)&&k.lin2val;J||(J=k.transA);c&&(g*=-1,C=k.len);k.reversed&&(g*=
-1,C-=g*(k.sector||k.len));d?(a=(a*g+C-t)/J+b,h&&(a=k.lin2val(a))):(h&&(a=k.val2lin(a)),a=p(b)?g*(a-b)*J+C+g*t+(p(e)?J*e:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a){var d=this,c=d.chart,b=d.left,h=d.top,e=a.old,k=a.value,g=a.translatedValue,C=a.lineWidth,t=a.force,w,E,n,L,q=e&&c.oldChartHeight||c.chartHeight,f=e&&c.oldChartWidth||
c.chartWidth,M,u=d.transB,x=function(d,a,c){if("pass"!==t&&d<a||d>c)t?d=K(d,a,c):M=!0;return d};a={value:k,lineWidth:C,old:e,force:t,acrossPanes:a.acrossPanes,translatedValue:g};l(this,"getPlotLinePath",a,function(a){g=v(g,d.translate(k,null,null,e));g=K(g,-1E5,1E5);w=n=Math.round(g+u);E=L=Math.round(q-g-u);p(g)?d.horiz?(E=h,L=q-d.bottom,w=n=x(w,b,b+d.width)):(w=b,n=f-d.right,E=L=x(E,h,h+d.height)):(M=!0,t=!1);a.path=M&&!t?null:c.renderer.crispLine(["M",w,E,"L",n,L],C||1)});return a.path},getLinearTickPositions:function(a,
d,c){var b=z(Math.floor(d/a)*a);c=z(Math.ceil(c/a)*a);var h=[],e;z(b+a)===b&&(e=20);if(this.single)return[d];for(d=b;d<=c;){h.push(d);d=z(d+a,e);if(d===k)break;var k=d}return h},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?v(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,c=a.tickPositions,b=a.minorTickInterval,h=[],e=a.pointRangePadding||0,k=a.min-e;e=a.max+e;var g=e-k;if(g&&g/b<a.len/3)if(a.isLog)this.paddedTicks.forEach(function(d,
c,e){c&&h.push.apply(h,a.getLogTickPositions(b,e[c-1],e[c],!0))});else if(a.isDatetimeAxis&&"auto"===this.getMinorTickInterval())h=h.concat(a.getTimeTicks(a.normalizeTimeTickInterval(b),k,e,d.startOfWeek));else for(d=k+(c[0]-k)%b;d<=e&&d!==h[0];d+=b)h.push(d);0!==h.length&&a.trimTicks(h);return h},adjustForMinRange:function(){var a=this.options,d=this.min,c=this.max,b,h,e,k,g;this.isXAxis&&"undefined"===typeof this.minRange&&!this.isLog&&(x(a.min)||x(a.max)?this.minRange=null:(this.series.forEach(function(d){k=
d.xData;for(h=g=d.xIncrement?1:k.length-1;0<h;h--)if(e=k[h]-k[h-1],"undefined"===typeof b||e<b)b=e}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(c-d<this.minRange){var t=this.dataMax-this.dataMin>=this.minRange;var p=this.minRange;var w=(p-c+d)/2;w=[d-w,v(a.min,d-w)];t&&(w[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin);d=B(w);c=[d+p,v(a.max,d+p)];t&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax);c=D(c);c-d<p&&(w[0]=c-p,w[1]=v(a.min,c-p),d=B(w))}this.min=d;this.max=
c},getClosest:function(){var a;this.categories?a=1:this.series.forEach(function(d){var c=d.closestPointRange,b=d.visible||!d.chart.options.chart.ignoreHiddenSeries;!d.noSharedTooltip&&x(c)&&b&&(a=x(a)?Math.min(a,c):c)});return a},nameToX:function(a){var d=b(this.categories),c=d?this.categories:this.names,h=a.options.x;a.series.requireSorting=!1;x(h)||(h=!1===this.options.uniqueNames?a.series.autoIncrement():d?c.indexOf(a.name):v(c.keys[a.name],-1));if(-1===h){if(!d)var e=c.length}else e=h;"undefined"!==
typeof e&&(this.names[e]=a.name,this.names.keys[a.name]=e);return e},updateNames:function(){var a=this,d=this.names;0<d.length&&(Object.keys(d.keys).forEach(function(a){delete d.keys[a]}),d.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(d){d.xIncrement=null;if(!d.points||d.isDirtyData)a.max=Math.max(a.max,d.xData.length-1),d.processData(),d.generatePoints();d.data.forEach(function(c,b){if(c&&c.options&&"undefined"!==typeof c.name){var h=a.nameToX(c);"undefined"!==typeof h&&
h!==c.x&&(c.x=h,d.xData[b]=h)}})}))},setAxisTranslation:function(a){var d=this,b=d.max-d.min,h=d.axisPointRange||0,e=0,k=0,g=d.linkedParent,C=!!d.categories,p=d.transA,t=d.isXAxis;if(t||C||h){var w=d.getClosest();g?(e=g.minPointOffset,k=g.pointRangePadding):d.series.forEach(function(a){var b=C?1:t?v(a.options.pointRange,w,0):d.axisPointRange||0,g=a.options.pointPlacement;h=Math.max(h,b);if(!d.single||C)a=a.is("xrange")?!t:t,e=Math.max(e,a&&c(g)?0:b/2),k=Math.max(k,a&&"on"===g?0:b)});g=d.ordinalSlope&&
w?d.ordinalSlope/w:1;d.minPointOffset=e*=g;d.pointRangePadding=k*=g;d.pointRange=Math.min(h,d.single&&C?1:b);t&&(d.closestPointRange=w)}a&&(d.oldTransA=p);d.translationSlope=d.transA=p=d.staticScale||d.len/(b+k||1);d.transB=d.horiz?d.left:d.bottom;d.minPixelPadding=p*e;l(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(a){var d=this,c=d.chart,b=d.options,h=d.isLog,k=d.isDatetimeAxis,g=d.isXAxis,C=d.isLinked,t=b.maxPadding,E=b.minPadding,
n=b.tickInterval,L=b.tickPixelInterval,q=d.categories,f=p(d.threshold)?d.threshold:null,M=d.softThreshold;k||q||C||this.getTickAmount();var Q=v(d.userMin,b.min);var m=v(d.userMax,b.max);if(C){d.linkedParent=c[d.coll][b.linkedTo];var A=d.linkedParent.getExtremes();d.min=v(A.min,A.dataMin);d.max=v(A.max,A.dataMax);b.type!==d.linkedParent.options.type&&u(11,1,c)}else{if(!M&&x(f))if(d.dataMin>=f)A=f,E=0;else if(d.dataMax<=f){var r=f;t=0}d.min=v(Q,A,d.dataMin);d.max=v(m,r,d.dataMax)}h&&(d.positiveValuesOnly&&
!a&&0>=Math.min(d.min,v(d.dataMin,d.min))&&u(10,1,c),d.min=z(d.log2lin(d.min),16),d.max=z(d.log2lin(d.max),16));d.range&&x(d.max)&&(d.userMin=d.min=Q=Math.max(d.dataMin,d.minFromRange()),d.userMax=m=d.max,d.range=null);l(d,"foundExtremes");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(q||d.axisPointRange||d.usePercentage||C)&&x(d.min)&&x(d.max)&&(c=d.max-d.min)&&(!x(Q)&&E&&(d.min-=c*E),!x(m)&&t&&(d.max+=c*t));p(d.userMin)||(p(b.softMin)&&b.softMin<d.min&&(d.min=Q=b.softMin),p(b.floor)&&
(d.min=Math.max(d.min,b.floor)));p(d.userMax)||(p(b.softMax)&&b.softMax>d.max&&(d.max=m=b.softMax),p(b.ceiling)&&(d.max=Math.min(d.max,b.ceiling)));M&&x(d.dataMin)&&(f=f||0,!x(Q)&&d.min<f&&d.dataMin>=f?d.min=d.options.minRange?Math.min(f,d.max-d.minRange):f:!x(m)&&d.max>f&&d.dataMax<=f&&(d.max=d.options.minRange?Math.max(f,d.min+d.minRange):f));d.tickInterval=d.min===d.max||"undefined"===typeof d.min||"undefined"===typeof d.max?1:C&&!n&&L===d.linkedParent.options.tickPixelInterval?n=d.linkedParent.tickInterval:
v(n,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,q?1:(d.max-d.min)*L/Math.max(d.len,L));g&&!a&&d.series.forEach(function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!n&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));a=v(b.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!n&&d.tickInterval<
a&&(d.tickInterval=a);k||h||n||(d.tickInterval=w(d.tickInterval,null,e(d.tickInterval),v(b.allowDecimals,!(.5<d.tickInterval&&5>d.tickInterval&&1E3<d.max&&9999>d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,d=a.tickPositions;var c=this.getMinorTickInterval();var b=a.tickPositioner,h=a.startOnTick,e=a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?
.5:0;this.minorTickInterval="auto"===c&&this.tickInterval?this.tickInterval/5:c;this.single=this.min===this.max&&x(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=c=d&&d.slice();!c&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(c=[this.min,this.max],u(19,!1,this.chart)):c=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,
this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),c.length>this.len&&(c=[c[0],c.pop()],c[0]===c[1]&&(c.length=1)),this.tickPositions=c,b&&(b=b.apply(this,[this.min,this.max])))&&(this.tickPositions=c=b);this.paddedTicks=c.slice(0);this.trimTicks(c,h,e);this.isLinked||(this.single&&2>c.length&&!this.categories&&!this.series.some(function(d){return d.is("heatmap")&&
"between"===d.options.pointPlacement})&&(this.min-=.5,this.max+=.5),d||b||this.adjustTickAmount());l(this,"afterSetTickPositions")},trimTicks:function(a,d,c){var b=a[0],h=a[a.length-1],e=!this.isOrdinal&&this.minPointOffset||0;l(this,"trimTicks");if(!this.isLinked){if(d&&-Infinity!==b)this.min=b;else for(;this.min-e>a[0];)a.shift();if(c)this.max=h;else for(;this.max+e<a[a.length-1];)a.pop();0===a.length&&x(b)&&!this.options.tickPositions&&a.push((h+b)/2)}},alignToOthers:function(){var a={},d,c=this.options;
!1===this.chart.options.chart.alignTicks||!1===c.alignTicks||!1===c.startOnTick||!1===c.endOnTick||this.isLog||this.chart[this.coll].forEach(function(c){var b=c.options;b=[c.horiz?b.left:b.top,b.width,b.height,b.pane].join();c.series.length&&(a[b]?d=!0:a[b]=1)});return d},getTickAmount:function(){var a=this.options,d=a.tickAmount,c=a.tickPixelInterval;!x(a.tickInterval)&&this.len<c&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(d=2);!d&&this.alignToOthers()&&(d=Math.ceil(this.len/c)+1);
4>d&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.options,d=this.tickInterval,c=this.tickPositions,b=this.tickAmount,h=this.finalTickAmt,e=c&&c.length,k=v(this.threshold,this.softThreshold?0:null),g;if(this.hasData()){if(e<b){for(g=this.min;c.length<b;)c.length%2||g===k?c.push(z(c[c.length-1]+d)):c.unshift(z(c[0]-d));this.transA*=(e-1)/(b-1);this.min=a.startOnTick?c[0]:Math.min(this.min,c[0]);this.max=a.endOnTick?c[c.length-1]:Math.max(this.max,c[c.length-1])}else e>
b&&(this.tickInterval*=2,this.setTickPositions());if(x(h)){for(d=a=c.length;d--;)(3===h&&1===d%2||2>=h&&0<d&&d<a-1)&&c.splice(d,1);this.finalTickAmt=void 0}}},setScale:function(){var a=this.series.some(function(d){return d.isDirtyData||d.isDirty||d.xAxis&&d.xAxis.isDirty}),d;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();(d=this.len!==this.oldAxisLength)||a||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?
(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=d||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks();l(this,"afterSetScale")},setExtremes:function(a,d,c,b,h){var e=this,k=e.chart;c=v(c,!0);e.series.forEach(function(d){delete d.kdTree});h=n(h,{min:a,max:d});l(e,"setExtremes",h,function(){e.userMin=a;e.userMax=d;e.eventArgs=
h;c&&k.redraw(b)})},zoom:function(a,d){var c=this.dataMin,b=this.dataMax,h=this.options,e=Math.min(c,v(h.min,c)),k=Math.max(b,v(h.max,b));a={newMin:a,newMax:d};l(this,"zoom",a,function(d){var a=d.newMin,h=d.newMax;if(a!==this.min||h!==this.max)this.allowZoomOutside||(x(c)&&(a<e&&(a=e),a>k&&(a=k)),x(b)&&(h<e&&(h=e),h>k&&(h=k))),this.displayBtn="undefined"!==typeof a||"undefined"!==typeof h,this.setExtremes(a,h,!1,void 0,{trigger:"zoom"});d.zoomed=!0});return a.zoomed},setAxisSize:function(){var a=
this.chart,d=this.options,c=d.offsets||[0,0,0,0],b=this.horiz,h=this.width=Math.round(k(v(d.width,a.plotWidth-c[3]+c[1]),a.plotWidth)),e=this.height=Math.round(k(v(d.height,a.plotHeight-c[0]+c[2]),a.plotHeight)),g=this.top=Math.round(k(v(d.top,a.plotTop+c[0]),a.plotHeight,a.plotTop));d=this.left=Math.round(k(v(d.left,a.plotLeft+c[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-e-g;this.right=a.chartWidth-h-d;this.len=Math.max(b?h:e,0);this.pos=b?d:g},getExtremes:function(){var a=this.isLog;
return{min:a?z(this.lin2log(this.min)):this.min,max:a?z(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,c=d?this.lin2log(this.min):this.min;d=d?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=c:Infinity===a?a=d:c>a?a=c:d<a&&(a=d);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){var d=(v(a,0)-90*this.side+720)%360;a={align:"center"};l(this,"autoLabelAlign",a,function(a){15<
d&&165>d?a.align="right":195<d&&345>d&&(a.align="left")});return a.align},tickSize:function(a){var d=this.options,c=d[a+"Length"],b=v(d[a+"Width"],"tick"===a&&this.isXAxis&&!this.categories?1:0);if(b&&c){"inside"===d[a+"Position"]&&(c=-c);var h=[c,b]}a={tickSize:h};l(this,"afterTickSize",a);return a.tickSize},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&
this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,c=this.tickInterval,b=c,h=this.len/(((this.categories?1:0)+this.max-this.min)/c),e,k=a.rotation,g=this.labelMetrics(),t,p=Number.MAX_VALUE,w,l=this.max-this.min,E=function(d){var a=d/(h||1);a=1<a?Math.ceil(a):1;a*c>l&&Infinity!==d&&Infinity!==h&&l&&(a=Math.ceil(l/c));return z(a*c)};d?(w=!a.staggerLines&&!a.step&&(x(k)?[k]:h<v(a.autoRotationLimit,80)&&a.autoRotation))&&w.forEach(function(d){if(d===k||d&&-90<=d&&90>=d){t=
E(Math.abs(g.h/Math.sin(Q*d)));var a=t+Math.abs(d/360);a<p&&(p=a,e=d,b=t)}}):a.step||(b=E(g.h));this.autoRotation=w;this.labelRotation=v(e,k);return b},getSlotWidth:function(a){var d=this.chart,c=this.horiz,b=this.options.labels,h=Math.max(this.tickPositions.length-(this.categories?0:1),1),e=d.margin[3];return a&&a.slotWidth||c&&2>(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/h||!c&&(b.style&&parseInt(b.style.width,10)||e&&e-d.spacing[3]||.33*d.chartWidth)},renderUnsquish:function(){var a=
this.chart,d=a.renderer,b=this.tickPositions,h=this.ticks,e=this.options.labels,k=e&&e.style||{},g=this.horiz,t=this.getSlotWidth(),p=Math.max(1,Math.round(t-2*(e.padding||5))),w={},v=this.labelMetrics(),l=e.style&&e.style.textOverflow,E=0;c(e.rotation)||(w.rotation=e.rotation||0);b.forEach(function(d){d=h[d];d.movedLabel&&d.replaceMovedLabel();d&&d.label&&d.label.textPxLength>E&&(E=d.label.textPxLength)});this.maxLabelLength=E;if(this.autoRotation)E>p&&E>v.h?w.rotation=this.labelRotation:this.labelRotation=
0;else if(t){var n=p;if(!l){var L="clip";for(p=b.length;!g&&p--;){var q=b[p];if(q=h[q].label)q.styles&&"ellipsis"===q.styles.textOverflow?q.css({textOverflow:"clip"}):q.textPxLength>t&&q.css({width:t+"px"}),q.getBBox().height>this.len/b.length-(v.h-v.f)&&(q.specificTextOverflow="ellipsis")}}}w.rotation&&(n=E>.5*a.chartHeight?.33*a.chartHeight:E,l||(L="ellipsis"));if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))w.align=this.labelAlign;b.forEach(function(d){var a=(d=h[d])&&d.label,
c=k.width,b={};a&&(a.attr(w),d.shortenLabel?d.shortenLabel():n&&!c&&"nowrap"!==k.whiteSpace&&(n<a.textPxLength||"SPAN"===a.element.tagName)?(b.width=n,l||(b.textOverflow=a.specificTextOverflow||L),a.css(b)):a.styles&&a.styles.width&&!b.width&&!c&&a.css({width:null}),delete a.specificTextOverflow,d.rotation=w.rotation)},this);this.tickRotCorr=d.rotCorr(v.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.series.some(function(a){return a.hasData()})||this.options.showEmpty&&x(this.min)&&
x(this.max)},addTitle:function(c){var d=this.chart.renderer,b=this.horiz,h=this.opposite,e=this.options.title,k,g=this.chart.styledMode;this.axisTitle||((k=e.textAlign)||(k=(b?{low:"left",middle:"center",high:"right"}:{low:h?"right":"left",middle:"center",high:h?"left":"right"})[e.align]),this.axisTitle=d.text(e.text,0,0,e.useHTML).attr({zIndex:7,rotation:e.rotation||0,align:k}).addClass("highcharts-axis-title"),g||this.axisTitle.css(a(e.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=
!0);g||e.style.width||this.isRadial||this.axisTitle.css({width:this.len});this.axisTitle[c?"show":"hide"](c)},generateTick:function(a){var d=this.ticks;d[a]?d[a].addLabel():d[a]=new I(this,a)},getOffset:function(){var a=this,d=a.chart,c=d.renderer,b=a.options,h=a.tickPositions,e=a.ticks,k=a.horiz,g=a.side,t=d.inverted&&!a.isZAxis?[1,0,3,2][g]:g,p,w=0,n=0,L=b.title,q=b.labels,f=0,M=d.axisOffset;d=d.clipOffset;var u=[-1,1,1,-1][g],Q=b.className,z=a.axisParent;var m=a.hasData();a.showAxis=p=m||v(b.showEmpty,
!0);a.staggerLines=a.horiz&&q.staggerLines;a.axisGroup||(a.gridGroup=c.g("grid").attr({zIndex:b.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(Q||"")).add(z),a.axisGroup=c.g("axis").attr({zIndex:b.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(Q||"")).add(z),a.labelGroup=c.g("axis-labels").attr({zIndex:q.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels "+(Q||"")).add(z));m||a.isLinked?(h.forEach(function(d,c){a.generateTick(d,c)}),a.renderUnsquish(),
a.reserveSpaceDefault=0===g||2===g||{1:"left",3:"right"}[g]===a.labelAlign,v(q.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&h.forEach(function(d){f=Math.max(e[d].getLabelSize(),f)}),a.staggerLines&&(f*=a.staggerLines),a.labelOffset=f*(a.opposite?-1:1)):E(e,function(d,a){d.destroy();delete e[a]});if(L&&L.text&&!1!==L.enabled&&(a.addTitle(p),p&&!1!==L.reserveSpace)){a.titleOffset=w=a.axisTitle.getBBox()[k?"height":"width"];var A=L.offset;n=x(A)?0:v(L.margin,k?5:10)}a.renderLine();
a.offset=u*v(b.offset,M[g]?M[g]+(b.margin||0):0);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};c=0===g?-a.labelMetrics().h:2===g?a.tickRotCorr.y:0;n=Math.abs(f)+n;f&&(n=n-c+u*(k?v(q.y,a.tickRotCorr.y+8*u):q.x));a.axisTitleMargin=v(A,n);a.getMaxLabelDimensions&&(a.maxLabelDimensions=a.getMaxLabelDimensions(e,h));k=this.tickSize("tick");M[g]=Math.max(M[g],a.axisTitleMargin+w+u*a.offset,n,h&&h.length&&k?k[0]+u*a.offset:0);b=b.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);d[t]=Math.max(d[t],b);l(this,"afterGetOffset")},
getLinePath:function(a){var d=this.chart,c=this.opposite,b=this.offset,h=this.horiz,e=this.left+(c?this.width:0)+b;b=d.chartHeight-this.bottom-(c?this.height:0)+b;c&&(a*=-1);return d.renderer.crispLine(["M",h?this.left:e,h?b:this.top,"L",h?d.chartWidth-this.right:e,h?b:d.chartHeight-this.bottom],a)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,
"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var a=this.horiz,d=this.left,c=this.top,b=this.len,h=this.options.title,e=a?d:c,k=this.opposite,g=this.offset,t=h.x||0,p=h.y||0,w=this.axisTitle,v=this.chart.renderer.fontMetrics(h.style&&h.style.fontSize,w);w=Math.max(w.getBBox(null,0).height-v.h-1,0);b={low:e+(a?0:b),middle:e+b/2,high:e+(a?b:0)}[h.align];d=(a?c+this.height:d)+(a?1:-1)*(k?-1:1)*this.axisTitleMargin+[-w,w,v.f,-w][this.side];a={x:a?b+t:d+(k?this.width:0)+
g+t,y:a?d+p-(k?this.height:0)+g:b+p};l(this,"afterGetTitlePosition",{titlePosition:a});return a},renderMinorTick:function(a){var d=this.chart.hasRendered&&p(this.oldMin),c=this.minorTicks;c[a]||(c[a]=new I(this,a,"minor"));d&&c[a].isNew&&c[a].render(null,!0);c[a].render(null,!1,1)},renderTick:function(a,d){var c=this.isLinked,b=this.ticks,h=this.chart.hasRendered&&p(this.oldMin);if(!c||a>=this.min&&a<=this.max)b[a]||(b[a]=new I(this,a)),h&&b[a].isNew&&b[a].render(d,!0,-1),b[a].render(d)},render:function(){var a=
this,d=a.chart,c=a.options,b=a.isLog,h=a.isLinked,e=a.tickPositions,k=a.axisTitle,g=a.ticks,t=a.minorTicks,w=a.alternateBands,v=c.stackLabels,n=c.alternateGridColor,q=a.tickmarkOffset,M=a.axisLine,u=a.showAxis,x=G(d.renderer.globalAnimation),Q,z;a.labelEdge.length=0;a.overlap=!1;[g,t,w].forEach(function(d){E(d,function(d){d.isActive=!1})});if(a.hasData()||h)a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(d){a.renderMinorTick(d)}),e.length&&(e.forEach(function(d,c){a.renderTick(d,
c)}),q&&(0===a.min||a.single)&&(g[-1]||(g[-1]=new I(a,-1,null,!0)),g[-1].render(-1))),n&&e.forEach(function(c,h){z="undefined"!==typeof e[h+1]?e[h+1]+q:a.max-q;0===h%2&&c<a.max&&z<=a.max+(d.polar?-q:q)&&(w[c]||(w[c]=new f.PlotLineOrBand(a)),Q=c+q,w[c].options={from:b?a.lin2log(Q):Q,to:b?a.lin2log(z):z,color:n},w[c].render(),w[c].isActive=!0)}),a._addedPlotLB||((c.plotLines||[]).concat(c.plotBands||[]).forEach(function(d){a.addPlotBandOrLine(d)}),a._addedPlotLB=!0);[g,t,w].forEach(function(a){var c,
b=[],h=x.duration;E(a,function(d,a){d.isActive||(d.render(a,!1,0),d.isActive=!1,b.push(a))});L(function(){for(c=b.length;c--;)a[b[c]]&&!a[b[c]].isActive&&(a[b[c]].destroy(),delete a[b[c]])},a!==w&&d.hasRendered&&h?h:0)});M&&(M[M.isPlaced?"animate":"attr"]({d:this.getLinePath(M.strokeWidth())}),M.isPlaced=!0,M[u?"show":"hide"](u));k&&u&&(c=a.getTitlePosition(),p(c.y)?(k[k.isNew?"attr":"animate"](c),k.isNew=!1):(k.attr("y",-9999),k.isNew=!0));v&&v.enabled&&a.renderStackTotals();a.isDirty=!1;l(this,
"afterRender")},redraw:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(a){a.render()}));this.series.forEach(function(a){a.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(a){var d=this,c=d.stacks,b=d.plotLinesAndBands,e;l(this,"destroy",{keepEvents:a});a||h(d);E(c,function(d,a){A(d);c[a]=null});[d.ticks,d.minorTicks,d.alternateBands].forEach(function(d){A(d)});if(b)for(a=b.length;a--;)b[a].destroy();"stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(a){d[a]&&
(d[a]=d[a].destroy())});for(e in d.plotLinesAndBandsGroups)d.plotLinesAndBandsGroups[e]=d.plotLinesAndBandsGroups[e].destroy();E(d,function(a,c){-1===d.keepProps.indexOf(c)&&delete d[c]})},drawCrosshair:function(a,d){var c=this.crosshair,b=v(c.snap,!0),h,e=this.cross,k=this.chart;l(this,"drawCrosshair",{e:a,point:d});a||(a=this.cross&&this.cross.e);if(this.crosshair&&!1!==(x(d)||!b)){b?x(d)&&(h=v("colorAxis"!==this.coll?d.crosshairPos:null,this.isXAxis?d.plotX:this.len-d.plotY)):h=a&&(this.horiz?
a.chartX-this.pos:this.len-a.chartY+this.pos);if(x(h)){var g={value:d&&(this.isXAxis?d.x:v(d.stackY,d.y)),translatedValue:h};k.polar&&n(g,{isCrosshair:!0,chartX:a&&a.chartX,chartY:a&&a.chartY,point:d});g=this.getPlotLinePath(g)||null}if(!x(g)){this.hideCrosshair();return}b=this.categories&&!this.isRadial;e||(this.cross=e=k.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(b?"category ":"thin ")+c.className).attr({zIndex:v(c.zIndex,2)}).add(),k.styledMode||(e.attr({stroke:c.color||
(b?F("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":v(c.width,1)}).css({"pointer-events":"none"}),c.dashStyle&&e.attr({dashstyle:c.dashStyle})));e.show().attr({d:g});b&&!c.width&&e.attr({"stroke-width":this.transA});this.cross.e=a}else this.hideCrosshair();l(this,"afterDrawCrosshair",{e:a,point:d})},hideCrosshair:function(){this.cross&&this.cross.hide();l(this,"afterHideCrosshair")}});return f.Axis=m});P(y,"parts/DateTimeAxis.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,
m){var I=m.getMagnitude,r=m.normalizeTickInterval,F=m.timeUnits;f=f.Axis;f.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};f.prototype.normalizeTimeTickInterval=function(f,m){var B=m||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];m=B[B.length-1];var D=F[m[0]],G=m[1],z;for(z=0;z<B.length&&!(m=B[z],
D=F[m[0]],G=m[1],B[z+1]&&f<=(D*G[G.length-1]+F[B[z+1][0]])/2);z++);D===F.year&&f<5*D&&(G=[1,2,5]);f=r(f/D,G,"year"===m[0]?Math.max(I(f/D),1):1);return{unitRange:D,count:f,unitName:m[0]}}});P(y,"parts/LogarithmicAxis.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var I=m.getMagnitude,r=m.normalizeTickInterval,F=m.pick;f=f.Axis;f.prototype.getLogTickPositions=function(f,m,B,D){var G=this.options,z=this.len,x=[];D||(this._minorAutoInterval=null);if(.5<=f)f=Math.round(f),x=this.getLinearTickPositions(f,
m,B);else if(.08<=f){z=Math.floor(m);var A,u;for(G=.3<f?[1,2,4]:.15<f?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];z<B+1&&!u;z++){var n=G.length;for(A=0;A<n&&!u;A++){var l=this.log2lin(this.lin2log(z)*G[A]);l>m&&(!D||q<=B)&&"undefined"!==typeof q&&x.push(q);q>B&&(u=!0);var q=l}}}else m=this.lin2log(m),B=this.lin2log(B),f=D?this.getMinorTickInterval():G.tickInterval,f=F("auto"===f?null:f,this._minorAutoInterval,G.tickPixelInterval/(D?5:1)*(B-m)/((D?z/this.tickPositions.length:z)||1)),f=r(f,null,I(f)),x=this.getLinearTickPositions(f,
m,B).map(this.log2lin),D||(this._minorAutoInterval=f/5);D||(this.tickInterval=f);return x};f.prototype.log2lin=function(f){return Math.log(f)/Math.LN10};f.prototype.lin2log=function(f){return Math.pow(10,f)}});P(y,"parts/PlotLineOrBand.js",[y["parts/Globals.js"],y["parts/Axis.js"],y["parts/Utilities.js"]],function(f,m,I){var r=I.arrayMax,F=I.arrayMin,N=I.defined,G=I.destroyObjectProperties,B=I.erase,D=I.extend,K=I.merge,z=I.objectEach,x=I.pick,A=function(){function u(n,l){this.axis=n;l&&(this.options=
l,this.id=l.id)}u.prototype.render=function(){f.fireEvent(this,"render");var n=this,l=n.axis,q=l.horiz,e=n.options,b=e.label,g=n.label,p=e.to,c=e.from,a=e.value,w=N(c)&&N(p),E=N(a),v=n.svgElem,k=!v,h=[],t=e.color,L=x(e.zIndex,0),M=e.events;h={"class":"highcharts-plot-"+(w?"band ":"line ")+(e.className||"")};var u={},C=l.chart.renderer,d=w?"bands":"lines";l.isLog&&(c=l.log2lin(c),p=l.log2lin(p),a=l.log2lin(a));l.chart.styledMode||(E?(h.stroke=t||"#999999",h["stroke-width"]=x(e.width,1),e.dashStyle&&
(h.dashstyle=e.dashStyle)):w&&(h.fill=t||"#e6ebf5",e.borderWidth&&(h.stroke=e.borderColor,h["stroke-width"]=e.borderWidth)));u.zIndex=L;d+="-"+L;(t=l.plotLinesAndBandsGroups[d])||(l.plotLinesAndBandsGroups[d]=t=C.g("plot-"+d).attr(u).add());k&&(n.svgElem=v=C.path().attr(h).add(t));if(E)h=l.getPlotLinePath({value:a,lineWidth:v.strokeWidth(),acrossPanes:e.acrossPanes});else if(w)h=l.getPlotBandPath(c,p,e);else return;(k||!v.d)&&h&&h.length?(v.attr({d:h}),M&&z(M,function(d,a){v.on(a,function(d){M[a].apply(n,
[d])})})):v&&(h?(v.show(!0),v.animate({d:h})):v.d&&(v.hide(),g&&(n.label=g=g.destroy())));b&&(N(b.text)||N(b.formatter))&&h&&h.length&&0<l.width&&0<l.height&&!h.isFlat?(b=K({align:q&&w&&"center",x:q?!w&&4:10,verticalAlign:!q&&w&&"middle",y:q?w?16:10:w?6:-4,rotation:q&&!w&&90},b),this.renderLabel(b,h,w,L)):g&&g.hide();return n};u.prototype.renderLabel=function(n,l,q,e){var b=this.label,g=this.axis.chart.renderer;b||(b={align:n.textAlign||n.align,rotation:n.rotation,"class":"highcharts-plot-"+(q?"band":
"line")+"-label "+(n.className||"")},b.zIndex=e,e=this.getLabelText(n),this.label=b=g.text(e,0,0,n.useHTML).attr(b).add(),this.axis.chart.styledMode||b.css(n.style));g=l.xBounds||[l[1],l[4],q?l[6]:l[1]];l=l.yBounds||[l[2],l[5],q?l[7]:l[2]];q=F(g);e=F(l);b.align(n,!1,{x:q,y:e,width:r(g)-q,height:r(l)-e});b.show(!0)};u.prototype.getLabelText=function(n){return N(n.formatter)?n.formatter.call(this):n.text};u.prototype.destroy=function(){B(this.axis.plotLinesAndBands,this);delete this.axis;G(this)};return u}();
D(m.prototype,{getPlotBandPath:function(f,n){var l=this.getPlotLinePath({value:n,force:!0,acrossPanes:this.options.acrossPanes}),q=this.getPlotLinePath({value:f,force:!0,acrossPanes:this.options.acrossPanes}),e=[],b=this.horiz,g=1;f=f<this.min&&n<this.min||f>this.max&&n>this.max;if(q&&l){if(f){var p=q.toString()===l.toString();g=0}for(f=0;f<q.length;f+=6)b&&l[f+1]===q[f+1]?(l[f+1]+=g,l[f+4]+=g):b||l[f+2]!==q[f+2]||(l[f+2]+=g,l[f+5]+=g),e.push("M",q[f+1],q[f+2],"L",q[f+4],q[f+5],l[f+4],l[f+5],l[f+
1],l[f+2],"z"),e.isFlat=p}return e},addPlotBand:function(f){return this.addPlotBandOrLine(f,"plotBands")},addPlotLine:function(f){return this.addPlotBandOrLine(f,"plotLines")},addPlotBandOrLine:function(f,n){var l=(new A(this,f)).render(),q=this.userOptions;if(l){if(n){var e=q[n]||[];e.push(f);q[n]=e}this.plotLinesAndBands.push(l)}return l},removePlotBandOrLine:function(f){for(var n=this.plotLinesAndBands,l=this.options,q=this.userOptions,e=n.length;e--;)n[e].id===f&&n[e].destroy();[l.plotLines||
[],q.plotLines||[],l.plotBands||[],q.plotBands||[]].forEach(function(b){for(e=b.length;e--;)b[e].id===f&&B(b,b[e])})},removePlotBand:function(f){this.removePlotBandOrLine(f)},removePlotLine:function(f){this.removePlotBandOrLine(f)}});f.PlotLineOrBand=A;return f.PlotLineOrBand});P(y,"parts/Tooltip.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var I=m.clamp,r=m.css,F=m.defined,N=m.discardElement,G=m.extend,B=m.format,D=m.isNumber,K=m.isString,z=m.merge,x=m.pick,A=m.splat,u=m.syncTimeout,
n=m.timeUnits;"";var l=f.doc,q=function(){function e(b,e){this.chart=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.init(b,e)}e.prototype.applyFilter=function(){var b=this.chart;b.renderer.definition({tagName:"filter",id:"drop-shadow-"+b.index,opacity:.5,children:[{tagName:"feGaussianBlur","in":"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",
slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode","in":"SourceGraphic"}]}]});b.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+b.index+"{filter:url(#drop-shadow-"+b.index+")}"})};e.prototype.bodyFormatter=function(b){return b.map(function(b){var e=b.series.tooltipOptions;return(e[(b.point.formatPrefix||"point")+"Formatter"]||b.point.tooltipFormatter).call(b.point,e[(b.point.formatPrefix||"point")+"Format"]||"")})};e.prototype.cleanSplit=
function(b){this.chart.series.forEach(function(e){var g=e&&e.tt;g&&(!g.isActive||b?e.tt=g.destroy():g.isActive=!1)})};e.prototype.defaultFormatter=function(b){var e=this.points||A(this);var p=[b.tooltipFooterHeaderFormatter(e[0])];p=p.concat(b.bodyFormatter(e));p.push(b.tooltipFooterHeaderFormatter(e[0],!0));return p};e.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=
this.renderer.destroy(),N(this.container));m.clearTimeout(this.hideTimer);m.clearTimeout(this.tooltipTimeout)};e.prototype.getAnchor=function(b,e){var g=this.chart,c=g.pointer,a=g.inverted,w=g.plotTop,l=g.plotLeft,v=0,k=0,h,t;b=A(b);this.followPointer&&e?("undefined"===typeof e.chartX&&(e=c.normalize(e)),b=[e.chartX-g.plotLeft,e.chartY-w]):b[0].tooltipPos?b=b[0].tooltipPos:(b.forEach(function(c){h=c.series.yAxis;t=c.series.xAxis;v+=c.plotX+(!a&&t?t.left-l:0);k+=(c.plotLow?(c.plotLow+c.plotHigh)/2:
c.plotY)+(!a&&h?h.top-w:0)}),v/=b.length,k/=b.length,b=[a?g.plotWidth-k:v,this.shared&&!a&&1<b.length&&e?e.chartY-w:a?g.plotHeight-v:k]);return b.map(Math.round)};e.prototype.getDateFormat=function(b,e,p,c){var a=this.chart.time,g=a.dateFormat("%m-%d %H:%M:%S.%L",e),l={millisecond:15,second:12,minute:9,hour:6,day:3},v="millisecond";for(k in n){if(b===n.week&&+a.dateFormat("%w",e)===p&&"00:00:00.000"===g.substr(6)){var k="week";break}if(n[k]>b){k=v;break}if(l[k]&&g.substr(l[k])!=="01-01 00:00:00.000".substr(l[k]))break;
"week"!==k&&(v=k)}if(k)var h=a.resolveDTLFormat(c[k]).main;return h};e.prototype.getLabel=function(){var b,e=this,p=this.chart.renderer,c=this.chart.styledMode,a=this.options,w="tooltip"+(F(a.className)?" "+a.className:""),l;if(!this.label){this.outside&&(this.container=l=f.doc.createElement("div"),l.className="highcharts-tooltip-container",r(l,{position:"absolute",top:"1px",pointerEvents:a.style&&a.style.pointerEvents,zIndex:3}),f.doc.body.appendChild(l),this.renderer=p=new f.Renderer(l,0,0,{},void 0,
void 0,p.styledMode));this.split?this.label=p.g(w):(this.label=p.label("",0,0,a.shape||"callout",null,null,a.useHTML,null,w).attr({padding:a.padding,r:a.borderRadius}),c||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).shadow(a.shadow));c&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index));if(e.outside&&!e.split){var v={x:this.label.xSetter,y:this.label.ySetter};this.label.xSetter=function(a,c){v[c].call(this.label,e.distance);l.style.left=
a+"px"};this.label.ySetter=function(a,c){v[c].call(this.label,e.distance);l.style.top=a+"px"}}this.label.attr({zIndex:8,pointerEvents:(null===(b=a.style)||void 0===b?0:b.pointerEvents)||a.stickOnHover?"auto":"none"}).add()}return this.label};e.prototype.getPosition=function(b,e,p){var c=this.chart,a=this.distance,g={},E=c.inverted&&p.h||0,v,k=this.outside,h=k?l.documentElement.clientWidth-2*a:c.chartWidth,t=k?Math.max(l.body.scrollHeight,l.documentElement.scrollHeight,l.body.offsetHeight,l.documentElement.offsetHeight,
l.documentElement.clientHeight):c.chartHeight,n=c.pointer.getChartPosition(),f=c.containerScaling,q=function(d){return f?d*f.scaleX:d},C=function(d){return f?d*f.scaleY:d},d=function(d){var g="x"===d;return[d,g?h:t,g?b:e].concat(k?[g?q(b):C(e),g?n.left-a+q(p.plotX+c.plotLeft):n.top-a+C(p.plotY+c.plotTop),0,g?h:t]:[g?b:e,g?p.plotX+c.plotLeft:p.plotY+c.plotTop,g?c.plotLeft:c.plotTop,g?c.plotLeft+c.plotWidth:c.plotTop+c.plotHeight])},J=d("y"),H=d("x"),u=!this.followPointer&&x(p.ttBelow,!c.inverted===
!!p.negative),z=function(d,c,b,h,e,k,t){var w="y"===d?C(a):q(a),p=(b-h)/2,v=h<e-a,l=e+a+h<c,J=e-w-b+p;e=e+w-p;if(u&&l)g[d]=e;else if(!u&&v)g[d]=J;else if(v)g[d]=Math.min(t-h,0>J-E?J:J-E);else if(l)g[d]=Math.max(k,e+E+b>c?e:e+E);else return!1},m=function(d,c,b,h,e){var k;e<a||e>c-a?k=!1:g[d]=e<b/2?1:e>c-h/2?c-h-2:e-b/2;return k},A=function(d){var a=J;J=H;H=a;v=d},r=function(){!1!==z.apply(0,J)?!1!==m.apply(0,H)||v||(A(!0),r()):v?g.x=g.y=0:(A(!0),r())};(c.inverted||1<this.len)&&A();r();return g};e.prototype.getXDateFormat=
function(b,e,p){e=e.dateTimeLabelFormats;var c=p&&p.closestPointRange;return(c?this.getDateFormat(c,b.x,p.options.startOfWeek,e):e.day)||e.year};e.prototype.hide=function(b){var e=this;m.clearTimeout(this.hideTimer);b=x(b,this.options.hideDelay,500);this.isHidden||(this.hideTimer=u(function(){e.getLabel()[b?"fadeOut":"hide"]();e.isHidden=!0},b))};e.prototype.init=function(b,e){this.chart=b;this.options=e;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=e.split&&!b.inverted&&!b.polar;
this.shared=e.shared||this.split;this.outside=x(e.outside,!(!b.scrollablePixelsX&&!b.scrollablePixelsY))};e.prototype.move=function(b,e,p,c){var a=this,g=a.now,l=!1!==a.options.animation&&!a.isHidden&&(1<Math.abs(b-g.x)||1<Math.abs(e-g.y)),v=a.followPointer||1<a.len;G(g,{x:l?(2*g.x+b)/3:b,y:l?(g.y+e)/2:e,anchorX:v?void 0:l?(2*g.anchorX+p)/3:p,anchorY:v?void 0:l?(g.anchorY+c)/2:c});a.getLabel().attr(g);l&&(m.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){a&&a.move(b,e,
p,c)},32))};e.prototype.refresh=function(b,e){var g=this.chart,c=this.options,a=b,w={},l=[],v=c.formatter||this.defaultFormatter;w=this.shared;var k=g.styledMode;if(c.enabled){m.clearTimeout(this.hideTimer);this.followPointer=A(a)[0].series.tooltipOptions.followPointer;var h=this.getAnchor(a,e);e=h[0];var t=h[1];!w||a.series&&a.series.noSharedTooltip?w=a.getLabelConfig():(g.pointer.applyInactiveState(a),a.forEach(function(a){a.setState("hover");l.push(a.getLabelConfig())}),w={x:a[0].category,y:a[0].y},
w.points=l,a=a[0]);this.len=l.length;g=v.call(w,this);v=a.series;this.distance=x(v.tooltipOptions.distance,16);!1===g?this.hide():(this.split?this.renderSplit(g,A(b)):(b=this.getLabel(),c.style.width&&!k||b.css({width:this.chart.spacingBox.width}),b.attr({text:g&&g.join?g.join(""):g}),b.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+x(a.colorIndex,v.colorIndex)),k||b.attr({stroke:c.borderColor||a.color||v.color||"#666666"}),this.updatePosition({plotX:e,plotY:t,negative:a.negative,
ttBelow:a.ttBelow,h:h[2]||0})),this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1);f.fireEvent(this,"refresh")}};e.prototype.renderSplit=function(b,e){function g(d,a,c,b,e){void 0===e&&(e=!0);c?(a=r?0:B,d=I(d-b/2,m.left,m.right-b)):(a-=O,d=e?d-b-J:d+J,d=I(d,e?d:m.left,m.right));return{x:d,y:a}}var c=this,a=c.chart,w=c.chart,l=w.plotHeight,v=w.plotLeft,k=w.plotTop,h=w.pointer,t=w.renderer,n=w.scrollablePixelsY,q=void 0===n?0:n;n=w.scrollingContainer;n=void 0===n?{scrollLeft:0,
scrollTop:0}:n;var u=n.scrollLeft,C=n.scrollTop,d=w.styledMode,J=c.distance,H=c.options,z=c.options.positioner,m={left:u,right:u+w.chartWidth,top:C,bottom:C+w.chartHeight},A=c.getLabel(),r=!(!a.xAxis[0]||!a.xAxis[0].opposite),O=k+C,D=0,B=l-q;K(b)&&(b=[!1,b]);b=b.slice(0,e.length+1).reduce(function(a,b,h){if(!1!==b&&""!==b){h=e[h-1]||{isHeader:!0,plotX:e[0].plotX,plotY:l,series:{}};var w=h.isHeader,p=w?c:h.series,E=p.tt,n=h.isHeader;var f=h.series;var L="highcharts-color-"+x(h.colorIndex,f.colorIndex,
"none");E||(E={padding:H.padding,r:H.borderRadius},d||(E.fill=H.backgroundColor,E["stroke-width"]=H.borderWidth),E=t.label("",0,0,H[n?"headerShape":"shape"]||"callout",void 0,void 0,H.useHTML).addClass((n?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+L).attr(E).add(A));E.isActive=!0;E.attr({text:b});d||E.css(H.style).shadow(H.shadow).attr({stroke:H.borderColor||h.color||f.color||"#333333"});b=p.tt=E;n=b.getBBox();p=n.width+b.strokeWidth();w&&(D=n.height,B+=D,r&&(O-=D));f=h.plotX;f=void 0===
f?0:f;L=h.plotY;L=void 0===L?0:L;var M=h.series;if(h.isHeader){f=v+f;var u=k+l/2}else E=M.xAxis,M=M.yAxis,f=E.pos+I(f,-J,E.len+J),M.pos+L>=C+k&&M.pos+L<=C+k+l-q&&(u=M.pos+L);f=I(f,m.left-J,m.right+J);"number"===typeof u?(n=n.height+1,L=z?z.call(c,p,n,h):g(f,u,w,p),a.push({align:z?0:void 0,anchorX:f,anchorY:u,boxWidth:p,point:h,rank:x(L.rank,w?1:0),size:n,target:L.y,tt:b,x:L.x})):b.isActive=!1}return a},[]);!z&&b.some(function(d){return d.x<m.left})&&(b=b.map(function(d){var a=g(d.anchorX,d.anchorY,
d.point.isHeader,d.boxWidth,!1);return G(d,{target:a.y,x:a.x})}));c.cleanSplit();f.distribute(b,B);b.forEach(function(d){var a=d.pos;d.tt.attr({visibility:"undefined"===typeof a?"hidden":"inherit",x:d.x,y:a+O,anchorX:d.anchorX,anchorY:d.anchorY})});b=c.container;a=c.renderer;c.outside&&b&&a&&(w=A.getBBox(),a.setSize(w.width+w.x,w.height+w.y,!1),h=h.getChartPosition(),b.style.left=h.left+"px",b.style.top=h.top+"px")};e.prototype.styledModeFormat=function(b){return b.replace('style="font-size: 10px"',
'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};e.prototype.tooltipFooterHeaderFormatter=function(b,e){var g=e?"footer":"header",c=b.series,a=c.tooltipOptions,w=a.xDateFormat,l=c.xAxis,v=l&&"datetime"===l.options.type&&D(b.key),k=a[g+"Format"];e={isFooter:e,labelConfig:b};f.fireEvent(this,"headerFormatter",e,function(e){v&&!w&&(w=this.getXDateFormat(b,a,l));v&&w&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(a){k=
k.replace("{point."+a+"}","{point."+a+":"+w+"}")});c.chart.styledMode&&(k=this.styledModeFormat(k));e.text=B(k,{point:b,series:c},this.chart)});return e.text};e.prototype.update=function(b){this.destroy();z(!0,this.chart.options.tooltip.userOptions,b);this.init(this.chart,z(!0,this.options,b))};e.prototype.updatePosition=function(b){var e=this.chart,p=e.pointer,c=this.getLabel(),a=b.plotX+e.plotLeft,w=b.plotY+e.plotTop;p=p.getChartPosition();b=(this.options.positioner||this.getPosition).call(this,
c.width,c.height,b);if(this.outside){var l=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(c.width+l,c.height+l,!1);if(e=e.containerScaling)r(this.container,{transform:"scale("+e.scaleX+", "+e.scaleY+")"}),a*=e.scaleX,w*=e.scaleY;a+=p.left-b.x;w+=p.top-b.y}this.move(Math.round(b.x),Math.round(b.y||0),a,w)};return e}();f.Tooltip=q;return f.Tooltip});P(y,"parts/Pointer.js",[y["parts/Globals.js"],y["parts/Utilities.js"],y["parts/Tooltip.js"],y["parts/Color.js"]],function(f,m,I,r){var F=
m.addEvent,N=m.attr,G=m.css,B=m.defined,D=m.extend,K=m.find,z=m.fireEvent,x=m.isNumber,A=m.isObject,u=m.objectEach,n=m.offset,l=m.pick,q=m.splat,e=r.parse,b=f.charts,g=f.noop;m=function(){function p(c,a){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.chart=c;this.hasDragged=!1;this.options=a;this.unbindContainerMouseLeave=function(){};this.init(c,a)}p.prototype.applyInactiveState=function(c){var a=[],b;(c||[]).forEach(function(c){b=c.series;a.push(b);b.linkedParent&&a.push(b.linkedParent);
b.linkedSeries&&(a=a.concat(b.linkedSeries));b.navigatorSeries&&a.push(b.navigatorSeries)});this.chart.series.forEach(function(c){-1===a.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};p.prototype.destroy=function(){var c=this;"undefined"!==typeof c.unDocMouseMove&&c.unDocMouseMove();this.unbindContainerMouseLeave();f.chartCount||(f.unbindDocumentMouseUp&&(f.unbindDocumentMouseUp=f.unbindDocumentMouseUp()),f.unbindDocumentTouchEnd&&(f.unbindDocumentTouchEnd=
f.unbindDocumentTouchEnd()));clearInterval(c.tooltipTimeout);u(c,function(a,b){c[b]=null})};p.prototype.drag=function(c){var a=this.chart,b=a.options.chart,g=c.chartX,p=c.chartY,k=this.zoomHor,h=this.zoomVert,t=a.plotLeft,l=a.plotTop,n=a.plotWidth,f=a.plotHeight,q=this.selectionMarker,d=this.mouseDownX||0,J=this.mouseDownY||0,H=A(b.panning)?b.panning&&b.panning.enabled:b.panning,u=b.panKey&&c[b.panKey+"Key"];if(!q||!q.touch)if(g<t?g=t:g>t+n&&(g=t+n),p<l?p=l:p>l+f&&(p=l+f),this.hasDragged=Math.sqrt(Math.pow(d-
g,2)+Math.pow(J-p,2)),10<this.hasDragged){var x=a.isInsidePlot(d-t,J-l);a.hasCartesianSeries&&(this.zoomX||this.zoomY)&&x&&!u&&!q&&(this.selectionMarker=q=a.renderer.rect(t,l,k?1:n,h?1:f,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||q.attr({fill:b.selectionMarkerFill||e("#335cad").setOpacity(.25).get()}));q&&k&&(g-=d,q.attr({width:Math.abs(g),x:(0<g?0:g)+d}));q&&h&&(g=p-J,q.attr({height:Math.abs(g),y:(0<g?0:g)+J}));x&&!q&&H&&a.pan(c,b.panning)}};p.prototype.dragStart=
function(c){var a=this.chart;a.mouseIsDown=c.type;a.cancelClick=!1;a.mouseDownX=this.mouseDownX=c.chartX;a.mouseDownY=this.mouseDownY=c.chartY};p.prototype.drop=function(c){var a=this,b=this.chart,e=this.hasPinched;if(this.selectionMarker){var g={originalEvent:c,xAxis:[],yAxis:[]},k=this.selectionMarker,h=k.attr?k.attr("x"):k.x,t=k.attr?k.attr("y"):k.y,p=k.attr?k.attr("width"):k.width,l=k.attr?k.attr("height"):k.height,n;if(this.hasDragged||e)b.axes.forEach(function(b){if(b.zoomEnabled&&B(b.min)&&
(e||a[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])){var d=b.horiz,k="touchend"===c.type?b.minPixelPadding:0,w=b.toValue((d?h:t)+k);d=b.toValue((d?h+p:t+l)-k);g[b.coll].push({axis:b,min:Math.min(w,d),max:Math.max(w,d)});n=!0}}),n&&z(b,"selection",g,function(a){b.zoom(D(a,e?{animation:!1}:null))});x(b.index)&&(this.selectionMarker=this.selectionMarker.destroy());e&&this.scaleGroups()}b&&x(b.index)&&(G(b.container,{cursor:b._cursor}),b.cancelClick=10<this.hasDragged,b.mouseIsDown=this.hasDragged=this.hasPinched=
!1,this.pinchDown=[])};p.prototype.findNearestKDPoint=function(c,a,b){var e;if(this.isStickyTooltip(b))return this.chart.hoverPoint;c.forEach(function(c){var k=!(c.noSharedTooltip&&a)&&0>c.options.findNearestPointBy.indexOf("y");c=c.searchPoint(b,k);if((k=A(c,!0))&&!(k=!A(e,!0))){k=e.distX-c.distX;var h=e.dist-c.dist,g=(c.series.group&&c.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);k=0<(0!==k&&a?k:0!==h?h:0!==g?g:e.series.index>c.series.index?-1:1)}k&&(e=c)});return e};p.prototype.getChartCoordinatesFromPoint=
function(c,a){var b=c.series,e=b.xAxis;b=b.yAxis;var g=l(c.clientX,c.plotX),k=c.shapeArgs;if(e&&b)return a?{chartX:e.len+e.pos-g,chartY:b.len+b.pos-c.plotY}:{chartX:g+e.pos,chartY:c.plotY+b.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}};p.prototype.getChartPosition=function(){return this.chartPosition||(this.chartPosition=n(this.chart.container))};p.prototype.getCoordinates=function(c){var a={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(b){a[b.isXAxis?"xAxis":"yAxis"].push({axis:b,value:b.toValue(c[b.horiz?
"chartX":"chartY"])})});return a};p.prototype.getHoverData=function(c,a,b,e,g,k){var h,t=[];e=!(!e||!c);var p=a&&!a.stickyTracking,w={chartX:k?k.chartX:void 0,chartY:k?k.chartY:void 0,shared:g};z(this,"beforeGetHoverData",w);p=p?[a]:b.filter(function(a){return w.filter?w.filter(a):a.visible&&!(!g&&a.directTouch)&&l(a.options.enableMouseTracking,!0)&&a.stickyTracking});a=(h=e||!k?c:this.findNearestKDPoint(p,g,k))&&h.series;h&&(g&&!a.noSharedTooltip?(p=b.filter(function(a){return w.filter?w.filter(a):
a.visible&&!(!g&&a.directTouch)&&l(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),p.forEach(function(a){var c=K(a.points,function(d){return d.x===h.x&&!d.isNull});A(c)&&(a.chart.isBoosting&&(c=a.getPoint(c)),t.push(c))})):t.push(h));w={hoverPoint:h};z(this,"afterGetHoverData",w);return{hoverPoint:w.hoverPoint,hoverSeries:a,hoverPoints:t}};p.prototype.getPointFromEvent=function(c){c=c.target;for(var a;c&&!a;)a=c.point,c=c.parentNode;return a};p.prototype.onTrackerMouseOut=function(c){var a=
this.chart.hoverSeries,b=c.relatedTarget||c.toElement;this.isDirectTouch=!1;if(!(!a||!b||a.stickyTracking||this.isStickyTooltip(c)||this.inClass(b,"highcharts-tooltip")||this.inClass(b,"highcharts-series-"+a.index)&&this.inClass(b,"highcharts-tracker")))a.onMouseOut()};p.prototype.inClass=function(c,a){for(var b;c;){if(b=N(c,"class")){if(-1!==b.indexOf(a))return!0;if(-1!==b.indexOf("highcharts-container"))return!1}c=c.parentNode}};p.prototype.init=function(c,a){this.options=a;this.chart=c;this.runChartClick=
a.chart.events&&!!a.chart.events.click;this.pinchDown=[];this.lastValidTouch={};I&&(c.tooltip=new I(c,a.tooltip),this.followTouchMove=l(a.tooltip.followTouchMove,!0));this.setDOMEvents()};p.prototype.isStickyTooltip=function(c){var a=this.chart,b=this.chartPosition,e=a.hoverPoint,g=a.tooltip;a=c.chartX;c=c.chartY;var k=!1;if(b&&e&&e.graphic&&g&&!g.isHidden&&g.options.stickOnHover&&g.label){k=g.label.getBBox();var h=f.offset(g.label.element);g=e.graphic.getBBox();e=f.offset(e.graphic.element);k.x=
h.left-b.left;k.y=h.top-b.top;g.x=e.left-b.left;g.y=e.top-b.top;b=Math.min(g.y,k.y);e=Math.max(g.x+g.width,k.x+k.width);h=Math.max(g.y+g.height,k.y+k.height);k=a>=Math.min(g.x,k.x)&&a<=e&&c>=b&&c<=h}return k};p.prototype.normalize=function(c,a){var b=c.touches,e=b?b.length?b.item(0):b.changedTouches[0]:c;a||(a=this.getChartPosition());b=e.pageX-a.left;a=e.pageY-a.top;if(e=this.chart.containerScaling)b/=e.scaleX,a/=e.scaleY;return D(c,{chartX:Math.round(b),chartY:Math.round(a)})};p.prototype.onContainerClick=
function(c){var a=this.chart,b=a.hoverPoint,e=a.plotLeft,g=a.plotTop;c=this.normalize(c);a.cancelClick||(b&&this.inClass(c.target,"highcharts-tracker")?(z(b.series,"click",D(c,{point:b})),a.hoverPoint&&b.firePointEvent("click",c)):(D(c,this.getCoordinates(c)),a.isInsidePlot(c.chartX-e,c.chartY-g)&&z(a,"click",c)))};p.prototype.onContainerMouseDown=function(c){c=this.normalize(c);2!==c.button&&(this.zoomOption(c),c.preventDefault&&c.preventDefault(),this.dragStart(c))};p.prototype.onContainerMouseLeave=
function(c){var a=b[f.hoverChartIndex];a&&(c.relatedTarget||c.toElement)&&(a.pointer.reset(),a.pointer.chartPosition=void 0)};p.prototype.onContainerMouseMove=function(c){var a=this.chart;B(f.hoverChartIndex)&&b[f.hoverChartIndex]&&b[f.hoverChartIndex].mouseIsDown||(f.hoverChartIndex=a.index);c=this.normalize(c);c.preventDefault||(c.returnValue=!1);"mousedown"===a.mouseIsDown&&this.drag(c);a.openMenu||this.isStickyTooltip(c)||!this.inClass(c.target,"highcharts-tracker")&&!a.isInsidePlot(c.chartX-
a.plotLeft,c.chartY-a.plotTop)||this.runPointActions(c)};p.prototype.onDocumentTouchEnd=function(c){b[f.hoverChartIndex]&&b[f.hoverChartIndex].pointer.drop(c)};p.prototype.onContainerTouchMove=function(c){this.touch(c)};p.prototype.onContainerTouchStart=function(c){this.zoomOption(c);this.touch(c,!0)};p.prototype.onDocumentMouseMove=function(c){var a=this.chart,b=this.chartPosition;c=this.normalize(c,b);!b||this.isStickyTooltip(c)||this.inClass(c.target,"highcharts-tracker")||a.isInsidePlot(c.chartX-
a.plotLeft,c.chartY-a.plotTop)||this.reset()};p.prototype.onDocumentMouseUp=function(c){b[f.hoverChartIndex]&&b[f.hoverChartIndex].pointer.drop(c)};p.prototype.pinch=function(c){var a=this,b=a.chart,e=a.pinchDown,p=c.touches||[],k=p.length,h=a.lastValidTouch,t=a.hasZoom,n=a.selectionMarker,f={},q=1===k&&(a.inClass(c.target,"highcharts-tracker")&&b.runTrackerClick||a.runChartClick),C={};1<k&&(a.initiated=!0);t&&a.initiated&&!q&&c.preventDefault();[].map.call(p,function(d){return a.normalize(d)});"touchstart"===
c.type?([].forEach.call(p,function(d,a){e[a]={chartX:d.chartX,chartY:d.chartY}}),h.x=[e[0].chartX,e[1]&&e[1].chartX],h.y=[e[0].chartY,e[1]&&e[1].chartY],b.axes.forEach(function(d){if(d.zoomEnabled){var a=b.bounds[d.horiz?"h":"v"],c=d.minPixelPadding,e=d.toPixels(Math.min(l(d.options.min,d.dataMin),d.dataMin)),h=d.toPixels(Math.max(l(d.options.max,d.dataMax),d.dataMax)),k=Math.max(e,h);a.min=Math.min(d.pos,Math.min(e,h)-c);a.max=Math.max(d.pos+d.len,k+c)}}),a.res=!0):a.followTouchMove&&1===k?this.runPointActions(a.normalize(c)):
e.length&&(n||(a.selectionMarker=n=D({destroy:g,touch:!0},b.plotBox)),a.pinchTranslate(e,p,f,n,C,h),a.hasPinched=t,a.scaleGroups(f,C),a.res&&(a.res=!1,this.reset(!1,0)))};p.prototype.pinchTranslate=function(c,a,b,e,g,k){this.zoomHor&&this.pinchTranslateDirection(!0,c,a,b,e,g,k);this.zoomVert&&this.pinchTranslateDirection(!1,c,a,b,e,g,k)};p.prototype.pinchTranslateDirection=function(c,a,b,e,g,k,h,t){var p=this.chart,l=c?"x":"y",w=c?"X":"Y",v="chart"+w,d=c?"width":"height",n=p["plot"+(c?"Left":"Top")],
f,q,E=t||1,u=p.inverted,x=p.bounds[c?"h":"v"],z=1===a.length,m=a[0][v],A=b[0][v],r=!z&&a[1][v],R=!z&&b[1][v];b=function(){"number"===typeof R&&20<Math.abs(m-r)&&(E=t||Math.abs(A-R)/Math.abs(m-r));q=(n-A)/E+m;f=p["plot"+(c?"Width":"Height")]/E};b();a=q;if(a<x.min){a=x.min;var D=!0}else a+f>x.max&&(a=x.max-f,D=!0);D?(A-=.8*(A-h[l][0]),"number"===typeof R&&(R-=.8*(R-h[l][1])),b()):h[l]=[A,R];u||(k[l]=q-n,k[d]=f);k=u?1/E:E;g[d]=f;g[l]=a;e[u?c?"scaleY":"scaleX":"scale"+w]=E;e["translate"+w]=k*n+(A-k*m)};
p.prototype.reset=function(c,a){var b=this.chart,e=b.hoverSeries,g=b.hoverPoint,k=b.hoverPoints,h=b.tooltip,p=h&&h.shared?k:g;c&&p&&q(p).forEach(function(a){a.series.isCartesian&&"undefined"===typeof a.plotX&&(c=!1)});if(c)h&&p&&q(p).length&&(h.refresh(p),h.shared&&k?k.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):g&&(g.setState(g.state,!0),b.axes.forEach(function(a){a.crosshair&&
g.series[a.coll]===a&&a.drawCrosshair(null,g)})));else{if(g)g.onMouseOut();k&&k.forEach(function(a){a.setState()});if(e)e.onMouseOut();h&&h.hide(a);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());b.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=b.hoverPoints=b.hoverPoint=null}};p.prototype.runPointActions=function(c,a){var e=this.chart,g=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,p=g?g.shared:!1,k=a||e.hoverPoint,h=k&&k.series||e.hoverSeries;h=this.getHoverData(k,
h,e.series,(!c||"touchmove"!==c.type)&&(!!a||h&&h.directTouch&&this.isDirectTouch),p,c);k=h.hoverPoint;var t=h.hoverPoints;a=(h=h.hoverSeries)&&h.tooltipOptions.followPointer;p=p&&h&&!h.noSharedTooltip;if(k&&(k!==e.hoverPoint||g&&g.isHidden)){(e.hoverPoints||[]).forEach(function(a){-1===t.indexOf(a)&&a.setState()});if(e.hoverSeries!==h)h.onMouseOver();this.applyInactiveState(t);(t||[]).forEach(function(a){a.setState("hover")});e.hoverPoint&&e.hoverPoint.firePointEvent("mouseOut");if(!k.series)return;
k.firePointEvent("mouseOver");e.hoverPoints=t;e.hoverPoint=k;g&&g.refresh(p?t:k,c)}else a&&g&&!g.isHidden&&(k=g.getAnchor([{}],c),g.updatePosition({plotX:k[0],plotY:k[1]}));this.unDocMouseMove||(this.unDocMouseMove=F(e.container.ownerDocument,"mousemove",function(a){var c=b[f.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(a)}));e.axes.forEach(function(a){var b=l(a.crosshair.snap,!0),e=b?K(t,function(c){return c.series[a.coll]===a}):void 0;e||!b?a.drawCrosshair(c,e):a.hideCrosshair()})};p.prototype.scaleGroups=
function(c,a){var b=this.chart,e;b.series.forEach(function(g){e=c||g.getPlotBox();g.xAxis&&g.xAxis.zoomEnabled&&g.group&&(g.group.attr(e),g.markerGroup&&(g.markerGroup.attr(e),g.markerGroup.clip(a?b.clipRect:null)),g.dataLabelsGroup&&g.dataLabelsGroup.attr(e))});b.clipRect.attr(a||b.clipBox)};p.prototype.setDOMEvents=function(){var c=this,a=c.chart.container,b=a.ownerDocument;a.onmousedown=function(a){c.onContainerMouseDown(a)};a.onmousemove=function(a){c.onContainerMouseMove(a)};a.onclick=function(a){c.onContainerClick(a)};
this.unbindContainerMouseLeave=F(a,"mouseleave",c.onContainerMouseLeave);f.unbindDocumentMouseUp||(f.unbindDocumentMouseUp=F(b,"mouseup",c.onDocumentMouseUp));f.hasTouch&&(F(a,"touchstart",function(a){c.onContainerTouchStart(a)}),F(a,"touchmove",function(a){c.onContainerTouchMove(a)}),f.unbindDocumentTouchEnd||(f.unbindDocumentTouchEnd=F(b,"touchend",c.onDocumentTouchEnd)))};p.prototype.touch=function(c,a){var b=this.chart,e;if(b.index!==f.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});
f.hoverChartIndex=b.index;if(1===c.touches.length)if(c=this.normalize(c),(e=b.isInsidePlot(c.chartX-b.plotLeft,c.chartY-b.plotTop))&&!b.openMenu){a&&this.runPointActions(c);if("touchmove"===c.type){a=this.pinchDown;var g=a[0]?4<=Math.sqrt(Math.pow(a[0].chartX-c.chartX,2)+Math.pow(a[0].chartY-c.chartY,2)):!1}l(g,!0)&&this.pinch(c)}else a&&this.reset();else 2===c.touches.length&&this.pinch(c)};p.prototype.zoomOption=function(c){var a=this.chart,b=a.options.chart,e=b.zoomType||"";a=a.inverted;/touch/.test(c.type)&&
(e=l(b.pinchType,e));this.zoomX=c=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=c&&!a||e&&a;this.zoomVert=e&&!a||c&&a;this.hasZoom=c||e};return p}();f.Pointer=m;return f.Pointer});P(y,"parts/MSPointer.js",[y["parts/Globals.js"],y["parts/Pointer.js"],y["parts/Utilities.js"]],function(f,m,I){function r(){var l=[];l.item=function(l){return this[l]};D(u,function(n){l.push({pageX:n.pageX,pageY:n.pageY,target:n.target})});return l}function F(l,n,e,b){"touch"!==l.pointerType&&l.pointerType!==l.MSPOINTER_TYPE_TOUCH||
!z[f.hoverChartIndex]||(b(l),b=z[f.hoverChartIndex].pointer,b[n]({type:e,target:l.currentTarget,preventDefault:A,touches:r()}))}var N=this&&this.__extends||function(){var l=function(n,e){l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var g in e)e.hasOwnProperty(g)&&(b[g]=e[g])};return l(n,e)};return function(n,e){function b(){this.constructor=n}l(n,e);n.prototype=null===e?Object.create(e):(b.prototype=e.prototype,new b)}}(),G=I.addEvent,B=
I.css,D=I.objectEach,K=I.removeEvent,z=f.charts,x=f.doc,A=f.noop,u={},n=!!f.win.PointerEvent;return function(l){function f(){return null!==l&&l.apply(this,arguments)||this}N(f,l);f.prototype.batchMSEvents=function(e){e(this.chart.container,n?"pointerdown":"MSPointerDown",this.onContainerPointerDown);e(this.chart.container,n?"pointermove":"MSPointerMove",this.onContainerPointerMove);e(x,n?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};f.prototype.destroy=function(){this.batchMSEvents(K);l.prototype.destroy.call(this)};
f.prototype.init=function(e,b){l.prototype.init.call(this,e,b);this.hasZoom&&B(e.container,{"-ms-touch-action":"none","touch-action":"none"})};f.prototype.onContainerPointerDown=function(e){F(e,"onContainerTouchStart","touchstart",function(b){u[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};f.prototype.onContainerPointerMove=function(e){F(e,"onContainerTouchMove","touchmove",function(b){u[b.pointerId]={pageX:b.pageX,pageY:b.pageY};u[b.pointerId].target||(u[b.pointerId].target=
b.currentTarget)})};f.prototype.onDocumentPointerUp=function(e){F(e,"onDocumentTouchEnd","touchend",function(b){delete u[b.pointerId]})};f.prototype.setDOMEvents=function(){l.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(G)};return f}(m)});P(y,"parts/Legend.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var I=m.addEvent,r=m.css,F=m.defined,N=m.discardElement,G=m.find,B=m.fireEvent,D=m.format,K=m.isNumber,z=m.merge,x=m.pick,A=m.relativeLength,
u=m.setAnimation,n=m.stableSort,l=m.syncTimeout;m=m.wrap;var q=f.isFirefox,e=f.marginNames,b=f.win,g=function(){function b(c,a){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=
void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=c;this.init(c,a)}b.prototype.init=function(c,a){this.chart=c;this.setOptions(a);a.enabled&&(this.render(),I(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=I(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};b.prototype.setOptions=function(c){var a=x(c.padding,
8);this.options=c;this.chart.styledMode||(this.itemStyle=c.itemStyle,this.itemHiddenStyle=z(this.itemStyle,c.itemHiddenStyle));this.itemMarginTop=c.itemMarginTop||0;this.itemMarginBottom=c.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=x(c.symbolWidth,16);this.pages=[];this.proximate="proximate"===c.layout&&!this.chart.inverted;this.baseline=void 0};b.prototype.update=function(c,a){var b=this.chart;this.setOptions(z(!0,this.options,c));this.destroy();b.isDirtyLegend=b.isDirtyBox=
!0;x(a,!0)&&b.redraw();B(this,"afterUpdate")};b.prototype.colorizeItem=function(c,a){c.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var b=this.options,e=c.legendItem,g=c.legendLine,k=c.legendSymbol,h=this.itemHiddenStyle.color;b=a?b.itemStyle.color:h;var t=a?c.color||h:h,p=c.options&&c.options.marker,l={fill:t};e&&e.css({fill:b,color:b});g&&g.attr({stroke:t});k&&(p&&k.isMarker&&(l=c.pointAttribs(),a||(l.stroke=l.fill=h)),k.attr(l))}B(this,"afterColorizeItem",
{item:c,visible:a})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(c){var a=this.options,b=a.symbolPadding;a=!a.rtl;var e=c._legendItemPos,g=e[0];e=e[1];var k=c.checkbox;if((c=c.legendGroup)&&c.element)c[F(c.translateY)?"animate":"attr"]({translateX:a?g:this.legendWidth-g-2*b-4,translateY:e});k&&(k.x=g,k.y=e)};b.prototype.destroyItem=function(c){var a=c.checkbox;["legendItem","legendLine",
"legendSymbol","legendGroup"].forEach(function(a){c[a]&&(c[a]=c[a].destroy())});a&&N(c.checkbox)};b.prototype.destroy=function(){function c(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(a){["legendItem","legendGroup"].forEach(c,a)});"clipRect up down pager nav box title group".split(" ").forEach(c,this);this.display=null};b.prototype.positionCheckboxes=function(){var c=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,b=this.titleHeight;if(c){var e=
c.translateY;this.allItems.forEach(function(g){var k=g.checkbox;if(k){var h=e+b+k.y+(this.scrollOffset||0)+3;r(k,{left:c.translateX+g.checkboxOffset+k.x-20+"px",top:h+"px",display:this.proximate||h>e-6&&h<e+a-6?"":"none"})}},this)}};b.prototype.renderTitle=function(){var c=this.options,a=this.padding,b=c.title,e=0;b.text&&(this.title||(this.title=this.chart.renderer.label(b.text,a-3,a-4,null,null,null,c.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(b.style),this.title.add(this.group)),
b.width||this.title.css({width:this.maxLegendWidth+"px"}),c=this.title.getBBox(),e=c.height,this.offsetWidth=c.width,this.contentGroup.attr({translateY:e}));this.titleHeight=e};b.prototype.setText=function(c){var a=this.options;c.legendItem.attr({text:a.labelFormat?D(a.labelFormat,c,this.chart):a.labelFormatter.call(c)})};b.prototype.renderItem=function(c){var a=this.chart,b=a.renderer,e=this.options,g=this.symbolWidth,k=e.symbolPadding,h=this.itemStyle,t=this.itemHiddenStyle,p="horizontal"===e.layout?
x(e.itemDistance,20):0,l=!e.rtl,n=c.legendItem,f=!c.series,d=!f&&c.series.drawLegendSymbol?c.series:c,J=d.options;J=this.createCheckboxForItem&&J&&J.showCheckbox;p=g+k+p+(J?20:0);var H=e.useHTML,q=c.options.className;n||(c.legendGroup=b.g("legend-item").addClass("highcharts-"+d.type+"-series highcharts-color-"+c.colorIndex+(q?" "+q:"")+(f?" highcharts-series-"+c.index:"")).attr({zIndex:1}).add(this.scrollGroup),c.legendItem=n=b.text("",l?g+k:-k,this.baseline||0,H),a.styledMode||n.css(z(c.visible?
h:t)),n.attr({align:l?"left":"right",zIndex:2}).add(c.legendGroup),this.baseline||(this.fontMetrics=b.fontMetrics(a.styledMode?12:h.fontSize,n),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,n.attr("y",this.baseline)),this.symbolHeight=e.symbolHeight||this.fontMetrics.f,d.drawLegendSymbol(this,c),this.setItemEvents&&this.setItemEvents(c,n,H));J&&!c.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(c);this.colorizeItem(c,c.visible);!a.styledMode&&h.width||n.css({width:(e.itemWidth||
this.widthOption||a.spacingBox.width)-p});this.setText(c);a=n.getBBox();c.itemWidth=c.checkboxOffset=e.itemWidth||c.legendItemWidth||a.width+p;this.maxItemWidth=Math.max(this.maxItemWidth,c.itemWidth);this.totalItemWidth+=c.itemWidth;this.itemHeight=c.itemHeight=Math.round(c.legendItemHeight||a.height||this.symbolHeight)};b.prototype.layoutItem=function(c){var a=this.options,b=this.padding,e="horizontal"===a.layout,g=c.itemHeight,k=this.itemMarginBottom,h=this.itemMarginTop,t=e?x(a.itemDistance,20):
0,p=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>p?this.maxItemWidth:c.itemWidth;e&&this.itemX-b+a>p&&(this.itemX=b,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+k),this.lastLineHeight=0);this.lastItemY=h+this.itemY+k;this.lastLineHeight=Math.max(g,this.lastLineHeight);c._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=a:(this.itemY+=h+g+k,this.lastLineHeight=g);this.offsetWidth=this.widthOption||Math.max((e?this.itemX-b-(c.checkbox?0:t):a)+b,this.offsetWidth)};b.prototype.getAllItems=
function(){var c=[];this.chart.series.forEach(function(a){var b=a&&a.options;a&&x(b.showInLegend,F(b.linkedTo)?!1:void 0,!0)&&(c=c.concat(a.legendItems||("point"===b.legendType?a.data:a)))});B(this,"afterGetAllItems",{allItems:c});return c};b.prototype.getAlignment=function(){var c=this.options;return this.proximate?c.align.charAt(0)+"tv":c.floating?"":c.align.charAt(0)+c.verticalAlign.charAt(0)+c.layout.charAt(0)};b.prototype.adjustMargins=function(c,a){var b=this.chart,g=this.options,p=this.getAlignment();
p&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(k,h){k.test(p)&&!F(c[h])&&(b[e[h]]=Math.max(b[e[h]],b.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*g[h%2?"x":"y"]+x(g.margin,12)+a[h]+(b.titleOffset[h]||0)))})};b.prototype.proximatePositions=function(){var c=this.chart,a=[],b="left"===this.options.align;this.allItems.forEach(function(e){var g=b;if(e.yAxis&&e.points){e.xAxis.options.reversed&&(g=!g);var k=G(g?e.points:e.points.slice(0).reverse(),function(a){return K(a.plotY)});
g=this.itemMarginTop+e.legendItem.getBBox().height+this.itemMarginBottom;var h=e.yAxis.top-c.plotTop;e.visible?(k=k?k.plotY:e.yAxis.height,k+=h-.3*g):k=h+e.yAxis.height;a.push({target:k,size:g,item:e})}},this);f.distribute(a,c.plotHeight);a.forEach(function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})};b.prototype.render=function(){var c=this.chart,a=c.renderer,b=this.group,e,g=this.box,k=this.options,h=this.padding;this.itemX=h;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=
0;this.widthOption=A(k.width,c.spacingBox.width-h);var p=c.spacingBox.width-2*h-k.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(p/=2);this.maxLegendWidth=this.widthOption||p;b||(this.group=b=a.g("legend").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(b),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();p=this.getAllItems();n(p,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});k.reversed&&p.reverse();
this.allItems=p;this.display=e=!!p.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;p.forEach(this.renderItem,this);p.forEach(this.layoutItem,this);p=(this.widthOption||this.offsetWidth)+h;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l);l+=h;g||(this.box=g=a.rect().addClass("highcharts-legend-box").attr({r:k.borderRadius}).add(b),g.isNew=!0);c.styledMode||g.attr({stroke:k.borderColor,"stroke-width":k.borderWidth||0,fill:k.backgroundColor||
"none"}).shadow(k.shadow);0<p&&0<l&&(g[g.isNew?"attr":"animate"](g.crisp.call({},{x:0,y:0,width:p,height:l},g.strokeWidth())),g.isNew=!1);g[e?"show":"hide"]();c.styledMode&&"none"===b.getStyle("display")&&(p=l=0);this.legendWidth=p;this.legendHeight=l;e&&(a=c.spacingBox,g=a.y,/(lth|ct|rth)/.test(this.getAlignment())&&0<c.titleOffset[0]?g+=c.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<c.titleOffset[2]&&(g-=c.titleOffset[2]),g!==a.y&&(a=z(a,{y:g})),b.align(z(k,{width:p,height:l,verticalAlign:this.proximate?
"top":k.verticalAlign}),!0,a));this.proximate||this.positionItems();B(this,"afterRender")};b.prototype.handleOverflow=function(b){var a=this,c=this.chart,e=c.renderer,g=this.options,k=g.y,h=this.padding;k=c.spacingBox.height+("top"===g.verticalAlign?-k:k)-h;var p=g.maxHeight,l,n=this.clipRect,f=g.navigation,q=x(f.animation,!0),d=f.arrowSize||12,J=this.nav,H=this.pages,u,z=this.allItems,m=function(d){"number"===typeof d?n.attr({height:d}):n&&(a.clipRect=n.destroy(),a.contentGroup.clip());a.contentGroup.div&&
(a.contentGroup.div.style.clip=d?"rect("+h+"px,9999px,"+(h+d)+"px,0)":"auto")},A=function(b){a[b]=e.circle(0,0,1.3*d).translate(d/2,d/2).add(J);c.styledMode||a[b].attr("fill","rgba(0,0,0,0.0001)");return a[b]};"horizontal"!==g.layout||"middle"===g.verticalAlign||g.floating||(k/=2);p&&(k=Math.min(k,p));H.length=0;b>k&&!1!==f.enabled?(this.clipHeight=l=Math.max(k-20-this.titleHeight-h,0),this.currentPage=x(this.currentPage,1),this.fullHeight=b,z.forEach(function(a,d){var b=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),
e=H.length;if(!e||b-H[e-1]>l&&(u||b)!==H[e-1])H.push(u||b),e++;a.pageIx=e-1;u&&(z[d-1].pageIx=e-1);d===z.length-1&&b+c-H[e-1]>l&&b!==u&&(H.push(b),a.pageIx=e);b!==u&&(u=b)}),n||(n=a.clipRect=e.clipRect(0,h,9999,0),a.contentGroup.clip(n)),m(l),J||(this.nav=J=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,d,d).add(J),A("upTracker").on("click",function(){a.scroll(-1,q)}),this.pager=e.text("",15,10).addClass("highcharts-legend-navigation"),c.styledMode||this.pager.css(f.style),
this.pager.add(J),this.down=e.symbol("triangle-down",0,0,d,d).add(J),A("downTracker").on("click",function(){a.scroll(1,q)})),a.scroll(0),b=k):J&&(m(),this.nav=J.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b};b.prototype.scroll=function(b,a){var c=this,e=this.chart,g=this.pages,k=g.length,h=this.currentPage+b;b=this.clipHeight;var p=this.options.navigation,n=this.pager,q=this.padding;h>k&&(h=k);0<h&&("undefined"!==typeof a&&u(a,e),this.nav.attr({translateX:q,translateY:b+
this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),n.attr({text:h+"/"+k}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":h===k?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:1===h?p.inactiveColor:p.activeColor}),this.upTracker.css({cursor:1===h?"default":
"pointer"}),this.down.attr({fill:h===k?p.inactiveColor:p.activeColor}),this.downTracker.css({cursor:h===k?"default":"pointer"})),this.scrollOffset=-g[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),a=f.animObject(x(a,e.renderer.globalAnimation,!0)),l(function(){B(c,"afterScroll",{currentPage:h})},a.duration||0))};return b}();(/Trident\/7\.0/.test(b.navigator&&b.navigator.userAgent)||q)&&m(g.prototype,"positionItem",function(b,
c){var a=this,e=function(){c._legendItemPos&&b.call(a,c)};e();a.bubbleLegend||setTimeout(e)});f.Legend=g;return f.Legend});P(y,"parts/Chart.js",[y["parts/Globals.js"],y["parts/Legend.js"],y["parts/MSPointer.js"],y["parts/Pointer.js"],y["parts/Time.js"],y["parts/Utilities.js"]],function(f,m,I,r,F,N){var G=N.addEvent,B=N.animate,D=N.animObject,K=N.attr,z=N.createElement,x=N.css,A=N.defined,u=N.discardElement,n=N.erase,l=N.error,q=N.extend,e=N.find,b=N.fireEvent,g=N.getStyle,p=N.isArray,c=N.isFunction,
a=N.isNumber,w=N.isObject,E=N.isString,v=N.merge,k=N.numberFormat,h=N.objectEach,t=N.pick,L=N.pInt,M=N.relativeLength,Q=N.removeEvent,C=N.setAnimation,d=N.splat,J=N.syncTimeout,H=N.uniqueKey,T=f.doc,W=f.Axis,U=f.defaultOptions,S=f.charts,O=f.marginNames,X=f.seriesTypes,y=f.win,Z=f.Chart=function(){this.getArgs.apply(this,arguments)};f.chart=function(a,d,b){return new Z(a,d,b)};q(Z.prototype,{callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(E(a[0])||a[0].nodeName)this.renderTo=a.shift();
this.init(a[0],a[1])},init:function(a,d){var e,g=a.series,p=a.plotOptions||{};b(this,"init",{args:arguments},function(){a.series=null;e=v(U,a);h(e.plotOptions,function(a,d){w(a)&&(a.tooltip=p[d]&&v(p[d].tooltip)||void 0)});e.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;e.series=a.series=g;this.userOptions=a;var t=e.chart,l=t.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=d;this.isResizing=0;this.options=e;this.axes=
[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new F(a.time):f.time;this.numberFormatter=t.numberFormatter||k;this.styledMode=t.styledMode;this.hasCartesianSeries=t.showAxes;var n=this;n.index=S.length;S.push(n);f.chartCount++;l&&h(l,function(a,d){c(a)&&G(n,d,a)});n.xAxis=[];n.yAxis=[];n.pointCount=n.colorCounter=n.symbolCounter=0;b(n,"afterInit");n.firstRender()})},initSeries:function(a){var d=this.options.chart;d=a.type||d.type||d.defaultSeriesType;var b=X[d];b||l(17,!0,this,{missingModuleFor:d});
d=new b;d.init(this,a);return d},setSeriesData:function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||!a.enabledDataSorting||a.setData(a.options.data,!1)})},getSeriesOrderByLinks:function(){return this.series.concat().sort(function(a,d){return a.linkedSeries.length||d.linkedSeries.length?d.linkedSeries.length-a.linkedSeries.length:0})},orderSeries:function(a){var d=this.series;for(a=a||0;a<d.length;a++)d[a]&&(d[a].index=a,d[a].name=d[a].getName())},isInsidePlot:function(a,d,
c){var e=c?d:a;a=c?a:d;e={x:e,y:a,isInsidePlot:0<=e&&e<=this.plotWidth&&0<=a&&a<=this.plotHeight};b(this,"afterIsInsidePlot",e);return e.isInsidePlot},redraw:function(a){b(this,"beforeRedraw");var d=this.axes,c=this.series,e=this.pointer,h=this.legend,k=this.userOptions.legend,g=this.isDirtyLegend,p=this.hasCartesianSeries,t=this.isDirtyBox,l=this.renderer,n=l.isHidden(),f=[];this.setResponsive&&this.setResponsive(!1);C(this.hasRendered?a:!1,this);n&&this.temporaryDisplay();this.layOutTitles();for(a=
c.length;a--;){var w=c[a];if(w.options.stacking){var J=!0;if(w.isDirty){var H=!0;break}}}if(H)for(a=c.length;a--;)w=c[a],w.options.stacking&&(w.isDirty=!0);c.forEach(function(a){a.isDirty&&("point"===a.options.legendType?(a.updateTotals&&a.updateTotals(),g=!0):k&&(k.labelFormatter||k.labelFormat)&&(g=!0));a.isDirtyData&&b(a,"updatedData")});g&&h&&h.options.enabled&&(h.render(),this.isDirtyLegend=!1);J&&this.getStacks();p&&d.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();p&&(d.forEach(function(a){a.isDirty&&
(t=!0)}),d.forEach(function(a){var d=a.min+","+a.max;a.extKey!==d&&(a.extKey=d,f.push(function(){b(a,"afterSetExtremes",q(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(t||J)&&a.redraw()}));t&&this.drawChartBox();b(this,"predraw");c.forEach(function(a){(t||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});e&&e.reset(!0);l.draw();b(this,"redraw");b(this,"render");n&&this.temporaryDisplay(!0);f.forEach(function(a){a.call()})},get:function(a){function d(d){return d.id===a||d.options&&d.options.id===
a}var b=this.series,c;var h=e(this.axes,d)||e(this.series,d);for(c=0;!h&&c<b.length;c++)h=e(b[c].points||[],d);return h},getAxes:function(){var a=this,c=this.options,e=c.xAxis=d(c.xAxis||{});c=c.yAxis=d(c.yAxis||{});b(this,"getAxes");e.forEach(function(a,d){a.index=d;a.isX=!0});c.forEach(function(a,d){a.index=d});e.concat(c).forEach(function(d){new W(a,d)});b(this,"afterGetAxes")},getSelectedPoints:function(){var a=[];this.series.forEach(function(d){a=a.concat(d.getPointsCollection().filter(function(a){return t(a.selectedStaging,
a.selected)}))});return a},getSelectedSeries:function(){return this.series.filter(function(a){return a.selected})},setTitle:function(a,d,b){this.applyDescription("title",a);this.applyDescription("subtitle",d);this.applyDescription("caption",void 0);this.layOutTitles(b)},applyDescription:function(a,d){var b=this,c="title"===a?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};c=this.options[a]=v(!this.styledMode&&{style:c},this.options[a],d);var e=this[a];e&&d&&(this[a]=
e=e.destroy());c&&!e&&(e=this.renderer.text(c.text,0,0,c.useHTML).attr({align:c.align,"class":"highcharts-"+a,zIndex:c.zIndex||4}).add(),e.update=function(d){b[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](d)},this.styledMode||e.css(c.style),this[a]=e)},layOutTitles:function(a){var d=[0,0,0],c=this.renderer,e=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var b=this[a],h=this.options[a],k=h.verticalAlign||"top";a="title"===a?-3:"top"===k?d[0]+2:0;if(b){if(!this.styledMode)var g=
h.style.fontSize;g=c.fontMetrics(g,b).b;b.css({width:(h.width||e.width+(h.widthAdjust||0))+"px"});var p=Math.round(b.getBBox(h.useHTML).height);b.align(q({y:"bottom"===k?g:a+g,height:p},h),!1,"spacingBox");h.floating||("top"===k?d[0]=Math.ceil(d[0]+p):"bottom"===k&&(d[2]=Math.ceil(d[2]+p)))}},this);d[0]&&"top"===(this.options.title.verticalAlign||"top")&&(d[0]+=this.options.title.margin);d[2]&&"bottom"===this.options.caption.verticalAlign&&(d[2]+=this.options.caption.margin);var h=!this.titleOffset||
this.titleOffset.join(",")!==d.join(",");this.titleOffset=d;b(this,"afterLayOutTitles");!this.isDirtyBox&&h&&(this.isDirtyBox=this.isDirtyLegend=h,this.hasRendered&&t(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var a=this.options.chart,d=a.width;a=a.height;var b=this.renderTo;A(d)||(this.containerWidth=g(b,"width"));A(a)||(this.containerHeight=g(b,"height"));this.chartWidth=Math.max(0,d||this.containerWidth||600);this.chartHeight=Math.max(0,M(a,this.chartWidth)||(1<this.containerHeight?
this.containerHeight:400))},temporaryDisplay:function(a){var d=this.renderTo;if(a)for(;d&&d.style;)d.hcOrigStyle&&(x(d,d.hcOrigStyle),delete d.hcOrigStyle),d.hcOrigDetached&&(T.body.removeChild(d),d.hcOrigDetached=!1),d=d.parentNode;else for(;d&&d.style;){T.body.contains(d)||d.parentNode||(d.hcOrigDetached=!0,T.body.appendChild(d));if("none"===g(d,"display",!1)||d.hcOricDetached)d.hcOrigStyle={display:d.style.display,height:d.style.height,overflow:d.style.overflow},a={display:"block",overflow:"hidden"},
d!==this.renderTo&&(a.height=0),x(d,a),d.offsetWidth||d.style.setProperty("display","block","important");d=d.parentNode;if(d===T.body)break}},setClassName:function(a){this.container.className="highcharts-container "+(a||"")},getContainer:function(){var d=this.options,c=d.chart;var e=this.renderTo;var h=H(),k,g;e||(this.renderTo=e=c.renderTo);E(e)&&(this.renderTo=e=T.getElementById(e));e||l(13,!0,this);var p=L(K(e,"data-highcharts-chart"));a(p)&&S[p]&&S[p].hasRendered&&S[p].destroy();K(e,"data-highcharts-chart",
this.index);e.innerHTML="";c.skipClone||e.offsetWidth||this.temporaryDisplay();this.getChartSize();p=this.chartWidth;var t=this.chartHeight;x(e,{overflow:"hidden"});this.styledMode||(k=q({position:"relative",overflow:"hidden",width:p+"px",height:t+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},c.style));this.container=e=z("div",{id:h},k,e);this._cursor=e.style.cursor;this.renderer=new (f[c.renderer]||f.Renderer)(e,p,t,null,c.forExport,d.exporting&&
d.exporting.allowHTML,this.styledMode);C(void 0,this);this.setClassName(c.className);if(this.styledMode)for(g in d.defs)this.renderer.definition(d.defs[g]);else this.renderer.setStyle(c.style);this.renderer.chartIndex=this.index;b(this,"afterGetContainer")},getMargins:function(a){var d=this.spacing,c=this.margin,e=this.titleOffset;this.resetMargins();e[0]&&!A(c[0])&&(this.plotTop=Math.max(this.plotTop,e[0]+d[0]));e[2]&&!A(c[2])&&(this.marginBottom=Math.max(this.marginBottom,e[2]+d[2]));this.legend&&
this.legend.display&&this.legend.adjustMargins(c,d);b(this,"getMargins");a||this.getAxisMargins()},getAxisMargins:function(){var a=this,d=a.axisOffset=[0,0,0,0],b=a.colorAxis,c=a.margin,e=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?e(a.axes):b&&b.length&&e(b);O.forEach(function(b,e){A(c[e])||(a[b]+=d[e])});a.setChartSize()},reflow:function(a){var d=this,b=d.options.chart,c=d.renderTo,e=A(b.width)&&A(b.height),h=b.width||g(c,"width");b=b.height||g(c,"height");
c=a?a.target:y;if(!e&&!d.isPrinting&&h&&b&&(c===y||c===T)){if(h!==d.containerWidth||b!==d.containerHeight)N.clearTimeout(d.reflowTimeout),d.reflowTimeout=J(function(){d.container&&d.setSize(void 0,void 0,!1)},a?100:0);d.containerWidth=h;d.containerHeight=b}},setReflow:function(a){var d=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=G(y,"resize",function(a){d.options&&d.reflow(a)}),G(this,"destroy",this.unbindReflow))},setSize:function(a,
d,c){var e=this,h=e.renderer;e.isResizing+=1;C(c,e);e.oldChartHeight=e.chartHeight;e.oldChartWidth=e.chartWidth;"undefined"!==typeof a&&(e.options.chart.width=a);"undefined"!==typeof d&&(e.options.chart.height=d);e.getChartSize();if(!e.styledMode){var k=h.globalAnimation;(k?B:x)(e.container,{width:e.chartWidth+"px",height:e.chartHeight+"px"},k)}e.setChartSize(!0);h.setSize(e.chartWidth,e.chartHeight,c);e.axes.forEach(function(a){a.isDirty=!0;a.setScale()});e.isDirtyLegend=!0;e.isDirtyBox=!0;e.layOutTitles();
e.getMargins();e.redraw(c);e.oldChartHeight=null;b(e,"resize");J(function(){e&&b(e,"endResize",null,function(){--e.isResizing})},D(k).duration||0)},setChartSize:function(a){var d=this.inverted,c=this.renderer,e=this.chartWidth,h=this.chartHeight,k=this.options.chart,g=this.spacing,p=this.clipOffset,t,l,n,f;this.plotLeft=t=Math.round(this.plotLeft);this.plotTop=l=Math.round(this.plotTop);this.plotWidth=n=Math.max(0,Math.round(e-t-this.marginRight));this.plotHeight=f=Math.max(0,Math.round(h-l-this.marginBottom));
this.plotSizeX=d?f:n;this.plotSizeY=d?n:f;this.plotBorderWidth=k.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:e-g[3]-g[1],height:h-g[0]-g[2]};this.plotBox=c.plotBox={x:t,y:l,width:n,height:f};e=2*Math.floor(this.plotBorderWidth/2);d=Math.ceil(Math.max(e,p[3])/2);c=Math.ceil(Math.max(e,p[0])/2);this.clipBox={x:d,y:c,width:Math.floor(this.plotSizeX-Math.max(e,p[1])/2-d),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(e,p[2])/2-c))};a||this.axes.forEach(function(a){a.setAxisSize();
a.setAxisTranslation()});b(this,"afterSetChartSize",{skipAxes:a})},resetMargins:function(){b(this,"resetMargins");var a=this,d=a.options.chart;["margin","spacing"].forEach(function(b){var c=d[b],e=w(c)?c:[c,c,c,c];["Top","Right","Bottom","Left"].forEach(function(c,h){a[b][h]=t(d[b+c],e[h])})});O.forEach(function(d,c){a[d]=t(a.margin[c],a.spacing[c])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,d=this.renderer,c=this.chartWidth,e=this.chartHeight,
h=this.chartBackground,k=this.plotBackground,g=this.plotBorder,p=this.styledMode,t=this.plotBGImage,l=a.backgroundColor,n=a.plotBackgroundColor,f=a.plotBackgroundImage,w,J=this.plotLeft,H=this.plotTop,v=this.plotWidth,q=this.plotHeight,C=this.plotBox,L=this.clipRect,u=this.clipBox,x="animate";h||(this.chartBackground=h=d.rect().addClass("highcharts-background").add(),x="attr");if(p)var E=w=h.strokeWidth();else{E=a.borderWidth||0;w=E+(a.shadow?8:0);l={fill:l||"none"};if(E||h["stroke-width"])l.stroke=
a.borderColor,l["stroke-width"]=E;h.attr(l).shadow(a.shadow)}h[x]({x:w/2,y:w/2,width:c-w-E%2,height:e-w-E%2,r:a.borderRadius});x="animate";k||(x="attr",this.plotBackground=k=d.rect().addClass("highcharts-plot-background").add());k[x](C);p||(k.attr({fill:n||"none"}).shadow(a.plotShadow),f&&(t?(f!==t.attr("href")&&t.attr("href",f),t.animate(C)):this.plotBGImage=d.image(f,J,H,v,q).add()));L?L.animate({width:u.width,height:u.height}):this.clipRect=d.clipRect(u);x="animate";g||(x="attr",this.plotBorder=
g=d.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());p||g.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});g[x](g.crisp({x:J,y:H,width:v,height:q},-g.strokeWidth()));this.isDirtyBox=!1;b(this,"afterDrawChartBox")},propFromSeries:function(){var a=this,d=a.options.chart,c,b=a.options.series,e,h;["inverted","angular","polar"].forEach(function(k){c=X[d.type||d.defaultSeriesType];h=d[k]||c&&c.prototype[k];for(e=b&&b.length;!h&&e--;)(c=X[b[e].type])&&c.prototype[k]&&
(h=!0);a[k]=h})},linkSeries:function(){var a=this,d=a.series;d.forEach(function(a){a.linkedSeries.length=0});d.forEach(function(d){var c=d.options.linkedTo;E(c)&&(c=":previous"===c?a.series[d.index-1]:a.get(c))&&c.linkedParent!==d&&(c.linkedSeries.push(d),d.linkedParent=c,c.enabledDataSorting&&d.setDataSortingOptions(),d.visible=t(d.options.visible,c.options.visible,d.visible))});b(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach(function(a){a.translate();a.render()})},renderLabels:function(){var a=
this,d=a.options.labels;d.items&&d.items.forEach(function(c){var b=q(d.style,c.style),e=L(b.left)+a.plotLeft,h=L(b.top)+a.plotTop+12;delete b.left;delete b.top;a.renderer.text(c.html,e,h).attr({zIndex:2}).css(b).add()})},render:function(){var a=this.axes,d=this.colorAxis,c=this.renderer,b=this.options,e=0,h=function(a){a.forEach(function(a){a.visible&&a.render()})};this.setTitle();this.legend=new m(this,b.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();b=this.plotWidth;
a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return e=21,!0});var k=this.plotHeight=Math.max(this.plotHeight-e,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var g=1.1<b/this.plotWidth;var p=1.05<k/this.plotHeight;if(g||p)a.forEach(function(a){(a.horiz&&g||!a.horiz&&p)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?h(a):d&&d.length&&h(d);this.seriesGroup||(this.seriesGroup=c.g("series-group").attr({zIndex:3}).add());
this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.updateContainerScaling();this.hasRendered=!0},addCredits:function(a){var d=this;a=v(!0,this.options.credits,a);a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){a.href&&(y.location.href=a.href)}).attr({align:a.position.align,zIndex:8}),d.styledMode||this.credits.css(a.style),this.credits.add().align(a.position),
this.credits.update=function(a){d.credits=d.credits.destroy();d.addCredits(a)})},updateContainerScaling:function(){var a=this.container;if(a.offsetWidth&&a.offsetHeight&&a.getBoundingClientRect){var d=a.getBoundingClientRect(),c=d.width/a.offsetWidth;a=d.height/a.offsetHeight;1!==c||1!==a?this.containerScaling={scaleX:c,scaleY:a}:delete this.containerScaling}},destroy:function(){var a=this,d=a.axes,c=a.series,e=a.container,k,g=e&&e.parentNode;b(a,"destroy");a.renderer.forExport?n(S,a):S[a.index]=
void 0;f.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");Q(a);for(k=d.length;k--;)d[k]=d[k].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(k=c.length;k--;)c[k]=c[k].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(d){var c=a[d];c&&c.destroy&&(a[d]=c.destroy())});e&&(e.innerHTML="",Q(e),g&&u(e));h(a,function(d,
c){delete a[c]})},firstRender:function(){var a=this,d=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();(p(d.series)?d.series:[]).forEach(function(d){a.initSeries(d)});a.linkSeries();a.setSeriesData();b(a,"beforeRender");r&&(a.pointer=f.hasTouch||!y.PointerEvent&&!y.MSPointerEvent?new r(a,d):new I(a,d));a.render();if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}},onload:function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&
"undefined"!==typeof this.index&&a.apply(this,[this])},this);b(this,"load");b(this,"render");A(this.index)&&this.setReflow(this.options.chart.reflow);this.hasLoaded=!0}})});P(y,"parts/ScrollablePlotArea.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var I=m.addEvent,r=m.createElement,F=m.pick,y=m.stop;m=f.Chart;"";I(m,"afterSetChartSize",function(m){var r=this.options.chart.scrollablePlotArea,D=r&&r.minWidth;r=r&&r.minHeight;if(!this.renderer.forExport){if(D){if(this.scrollablePixelsX=
D=Math.max(0,D-this.chartWidth)){this.plotWidth+=D;this.inverted?(this.clipBox.height+=D,this.plotBox.height+=D):(this.clipBox.width+=D,this.plotBox.width+=D);var G={1:{name:"right",value:D}}}}else r&&(this.scrollablePixelsY=D=Math.max(0,r-this.chartHeight))&&(this.plotHeight+=D,this.inverted?(this.clipBox.width+=D,this.plotBox.width+=D):(this.clipBox.height+=D,this.plotBox.height+=D),G={2:{name:"bottom",value:D}});G&&!m.skipAxes&&this.axes.forEach(function(z){G[z.side]?z.getPlotLinePath=function(){var x=
G[z.side].name,m=this[x];this[x]=m-G[z.side].value;var u=f.Axis.prototype.getPlotLinePath.apply(this,arguments);this[x]=m;return u}:(z.setAxisSize(),z.setAxisTranslation())})}});I(m,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});m.prototype.setUpScrolling=function(){var f=this,m={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(m.overflowX=
"auto");this.scrollablePixelsY&&(m.overflowY="auto");this.scrollingContainer=r("div",{className:"highcharts-scrolling"},m,this.renderTo);I(this.scrollingContainer,"scroll",function(){f.pointer&&delete f.pointer.chartPosition});this.innerContainer=r("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};m.prototype.moveFixedElements=function(){var f=this.container,m=this.fixedRenderer,r=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
F;this.scrollablePixelsX&&!this.inverted?F=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?F=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?F=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(F=".highcharts-yaxis");r.push(F,F+"-labels");r.forEach(function(z){[].forEach.call(f.querySelectorAll(z),function(f){(f.namespaceURI===m.SVG_NS?m.box:m.box.parentNode).appendChild(f);f.style.pointerEvents="auto"})})};m.prototype.applyFixed=function(){var m,B=!this.fixedDiv,D=this.options.chart.scrollablePlotArea;
B?(this.fixedDiv=r("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=m=new f.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight),this.scrollableMask=m.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":F(D.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),
I(this,"afterShowResetZoom",this.moveFixedElements),I(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);m=this.chartWidth+(this.scrollablePixelsX||0);var K=this.chartHeight+(this.scrollablePixelsY||0);y(this.container);this.container.style.width=m+"px";this.container.style.height=K+"px";this.renderer.boxWrapper.attr({width:m,height:K,viewBox:[0,0,m,K].join(" ")});this.chartBackground.attr({width:m,height:K});this.scrollablePixelsY&&(this.scrollingContainer.style.height=
this.chartHeight+"px");B&&(D.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*D.scrollPositionX),D.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*D.scrollPositionY));K=this.axisOffset;B=this.plotTop-K[0]-1;D=this.plotLeft-K[3]-1;m=this.plotTop+this.plotHeight+K[2]+1;K=this.plotLeft+this.plotWidth+K[1]+1;var z=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),x=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);B=this.scrollablePixelsX?
["M",0,B,"L",this.plotLeft-1,B,"L",this.plotLeft-1,m,"L",0,m,"Z","M",z,B,"L",this.chartWidth,B,"L",this.chartWidth,m,"L",z,m,"Z"]:this.scrollablePixelsY?["M",D,0,"L",D,this.plotTop-1,"L",K,this.plotTop-1,"L",K,0,"Z","M",D,x,"L",D,this.chartHeight,"L",K,this.chartHeight,"L",K,x,"Z"]:["M",0,0];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:B})}});P(y,"mixins/legend-symbol.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var I=m.merge,r=m.pick;f.LegendSymbolMixin={drawRectangle:function(f,
m){var G=f.symbolHeight,B=f.options.squareSymbol;m.legendSymbol=this.chart.renderer.rect(B?(f.symbolWidth-G)/2:0,f.baseline-G+1,B?G:f.symbolWidth,G,r(f.options.symbolRadius,G/2)).addClass("highcharts-point").attr({zIndex:3}).add(m.legendGroup)},drawLineMarker:function(f){var m=this.options,G=m.marker,B=f.symbolWidth,D=f.symbolHeight,F=D/2,z=this.chart.renderer,x=this.legendGroup;f=f.baseline-Math.round(.3*f.fontMetrics.b);var A={};this.chart.styledMode||(A={"stroke-width":m.lineWidth||0},m.dashStyle&&
(A.dashstyle=m.dashStyle));this.legendLine=z.path(["M",0,f,"L",B,f]).addClass("highcharts-graph").attr(A).add(x);G&&!1!==G.enabled&&B&&(m=Math.min(r(G.radius,F),F),0===this.symbol.indexOf("url")&&(G=I(G,{width:D,height:D}),m=0),this.legendSymbol=G=z.symbol(this.symbol,B/2-m,f-m,2*m,2*m,G).addClass("highcharts-point").add(x),G.isMarker=!0)}};return f.LegendSymbolMixin});P(y,"parts/Point.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){"";var I=m.animObject,r=m.defined,F=m.erase,y=
m.extend,G=m.format,B=m.getNestedProperty,D=m.isArray,K=m.isNumber,z=m.isObject,x=m.syncTimeout,A=m.pick,u=m.removeEvent,n=m.uniqueKey,l=f.fireEvent;m=function(){function f(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}f.prototype.animateBeforeDestroy=function(){var e=this,b={x:e.startXPos,opacity:0},g,p=e.getGraphicalProps();p.singular.forEach(function(c){g=
"dataLabel"===c;e[c]=e[c].animate(g?{x:e[c].startXPos,y:e[c].startYPos,opacity:0}:b)});p.plural.forEach(function(c){e[c].forEach(function(a){a.element&&a.animate(y({x:e.startXPos},a.startYPos?{x:a.startXPos,y:a.startYPos}:{}))})})};f.prototype.applyOptions=function(e,b){var g=this.series,p=g.options.pointValKey||g.pointValKey;e=f.prototype.optionsToObject.call(this,e);y(this,e);this.options=this.options?y(this.options,e):e;e.group&&delete this.group;e.dataLabels&&delete this.dataLabels;p&&(this.y=
f.prototype.getNestedProperty.call(this,p));this.formatPrefix=(this.isNull=A(this.isValid&&!this.isValid(),null===this.x||!K(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof b&&g.xAxis&&g.xAxis.hasNames&&(this.x=g.xAxis.nameToX(this));"undefined"===typeof this.x&&g&&(this.x="undefined"===typeof b?g.autoIncrement(this):b);return this};f.prototype.destroy=function(){function e(){if(b.graphic||b.dataLabel||b.dataLabels)u(b),b.destroyElements();for(l in b)b[l]=
null}var b=this,g=b.series,p=g.chart;g=g.options.dataSorting;var c=p.hoverPoints,a=I(b.series.chart.renderer.globalAnimation),l;b.legendItem&&p.legend.destroyItem(b);c&&(b.setState(),F(c,b),c.length||(p.hoverPoints=null));if(b===p.hoverPoint)b.onMouseOut();g&&g.enabled?(this.animateBeforeDestroy(),x(e,a.duration)):e();p.pointCount--};f.prototype.destroyElements=function(e){var b=this;e=b.getGraphicalProps(e);e.singular.forEach(function(e){b[e]=b[e].destroy()});e.plural.forEach(function(e){b[e].forEach(function(b){b.element&&
b.destroy()});delete b[e]})};f.prototype.firePointEvent=function(e,b,g){var p=this,c=this.series.options;(c.point.events[e]||p.options&&p.options.events&&p.options.events[e])&&p.importEvents();"click"===e&&c.allowPointSelect&&(g=function(a){p.select&&p.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});l(p,e,b,g)};f.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+
("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};f.prototype.getGraphicalProps=function(e){var b=this,g=[],p,c={singular:[],plural:[]};e=e||{graphic:1,dataLabel:1};e.graphic&&g.push("graphic","shadowGroup");e.dataLabel&&g.push("dataLabel","dataLabelUpper","connector");for(p=g.length;p--;){var a=g[p];b[a]&&c.singular.push(a)}["dataLabel",
"connector"].forEach(function(a){var g=a+"s";e[a]&&b[g]&&c.plural.push(g)});return c};f.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};f.prototype.getNestedProperty=function(e){if(e)return 0===e.indexOf("custom.")?B(e,this.options):this[e]};f.prototype.getZone=function(){var e=this.series,b=e.zones;e=e.zoneAxis||
"y";var g=0,p;for(p=b[g];this[e]>=p.value;)p=b[++g];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=p&&p.color&&!this.options.color?p.color:this.nonZonedColor;return p};f.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};f.prototype.init=function(e,b,g){this.series=e;this.applyOptions(b,g);this.id=r(this.id)?this.id:n();this.resolveColor();e.chart.pointCount++;l(this,"afterInit");return this};f.prototype.optionsToObject=
function(e){var b={},g=this.series,p=g.options.keys,c=p||g.pointArrayMap||["y"],a=c.length,l=0,n=0;if(K(e)||null===e)b[c[0]]=e;else if(D(e))for(!p&&e.length>a&&(g=typeof e[0],"string"===g?b.name=e[0]:"number"===g&&(b.x=e[0]),l++);n<a;)p&&"undefined"===typeof e[l]||(0<c[n].indexOf(".")?f.prototype.setNestedProperty(b,e[l],c[n]):b[c[n]]=e[l]),l++,n++;else"object"===typeof e&&(b=e,e.dataLabels&&(g._hasPointLabels=!0),e.marker&&(g._hasPointMarkers=!0));return b};f.prototype.resolveColor=function(){var e=
this.series;var b=e.chart.options.chart.colorCount;var g=e.chart.styledMode;g||this.options.color||(this.color=e.color);e.options.colorByPoint?(g||(b=e.options.colors||e.chart.options.colors,this.color=this.color||b[e.colorCounter],b=b.length),g=e.colorCounter,e.colorCounter++,e.colorCounter===b&&(e.colorCounter=0)):g=e.colorIndex;this.colorIndex=A(this.colorIndex,g)};f.prototype.setNestedProperty=function(e,b,g){g.split(".").reduce(function(e,c,a,g){e[c]=g.length-1===a?b:z(e[c],!0)?e[c]:{};return e[c]},
e);return e};f.prototype.tooltipFormatter=function(e){var b=this.series,g=b.tooltipOptions,p=A(g.valueDecimals,""),c=g.valuePrefix||"",a=g.valueSuffix||"";b.chart.styledMode&&(e=b.chart.tooltip.styledModeFormat(e));(b.pointArrayMap||["y"]).forEach(function(b){b="{point."+b;if(c||a)e=e.replace(RegExp(b+"}","g"),c+b+"}"+a);e=e.replace(RegExp(b+"}","g"),b+":,."+p+"f}")});return G(e,{point:this,series:this.series},b.chart)};return f}();f.Point=m;return f.Point});P(y,"parts/Series.js",[y["parts/Globals.js"],
y["mixins/legend-symbol.js"],y["parts/Point.js"],y["parts/Utilities.js"]],function(f,m,I,r){"";var F=r.addEvent,y=r.animObject,G=r.arrayMax,B=r.arrayMin,D=r.clamp,K=r.correctFloat,z=r.defined,x=r.erase,A=r.error,u=r.extend,n=r.find,l=r.fireEvent,q=r.getNestedProperty,e=r.isArray,b=r.isFunction,g=r.isNumber,p=r.isString,c=r.merge,a=r.objectEach,w=r.pick,E=r.removeEvent,v=r.seriesType,k=r.splat,h=r.syncTimeout,t=f.defaultOptions,L=f.defaultPlotOptions,M=f.seriesTypes,Q=f.SVGElement,C=f.win;f.Series=
v("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){var a=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",
fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,eventsToUnbind:[],
isCartesian:!0,parallelArrays:["x","y"],pointClass:I,requireSorting:!0,sorted:!0,init:function(d,c){l(this,"init",{options:c});var e=this,h=d.series,k;this.eventOptions=this.eventOptions||{};e.chart=d;e.options=c=e.setOptions(c);e.linkedSeries=[];e.bindAxes();u(e,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});var g=c.events;a(g,function(a,d){b(a)&&e.eventOptions[d]!==a&&(b(e.eventOptions[d])&&E(e,d,e.eventOptions[d]),e.eventOptions[d]=a,F(e,d,a))});if(g&&g.click||c.point&&
c.point.events&&c.point.events.click||c.allowPointSelect)d.runTrackerClick=!0;e.getColor();e.getSymbol();e.parallelArrays.forEach(function(a){e[a+"Data"]||(e[a+"Data"]=[])});e.isCartesian&&(d.hasCartesianSeries=!0);h.length&&(k=h[h.length-1]);e._i=w(k&&k._i,-1)+1;d.orderSeries(this.insert(h));c.dataSorting&&c.dataSorting.enabled?e.setDataSortingOptions():e.points||e.data||e.setData(c.data,!1);l(this,"afterInit")},is:function(a){return M[a]&&this instanceof M[a]},insert:function(a){var d=this.options.index,
c;if(g(d)){for(c=a.length;c--;)if(d>=w(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return w(c,a.length-1)},bindAxes:function(){var a=this,c=a.options,b=a.chart,e;l(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(d){b[d].forEach(function(b){e=b.options;if(c[d]===e.index||"undefined"!==typeof c[d]&&c[d]===e.id||"undefined"===typeof c[d]&&0===e.index)a.insert(b.series),a[d]=b,b.isDirty=!0});a[d]||a.optionalAxis===d||A(18,!0,
b)})});l(this,"afterBindAxes")},updateParallelArrays:function(a,c){var d=a.series,b=arguments,e=g(c)?function(b){var e="y"===b&&d.toYData?d.toYData(a):a[b];d[b+"Data"][c]=e}:function(a){Array.prototype[c].apply(d[a+"Data"],Array.prototype.slice.call(b,2))};d.parallelArrays.forEach(e)},hasData:function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var a=this.options,c=this.xIncrement,
b,e=a.pointIntervalUnit,h=this.chart.time;c=w(c,a.pointStart,0);this.pointInterval=b=w(this.pointInterval,a.pointInterval,1);e&&(a=new h.Date(c),"day"===e?h.set("Date",a,h.get("Date",a)+b):"month"===e?h.set("Month",a,h.get("Month",a)+b):"year"===e&&h.set("FullYear",a,h.get("FullYear",a)+b),b=a.getTime()-c);this.xIncrement=c+b;return c},setDataSortingOptions:function(){var a=this.options;u(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});z(a.pointRange)||(a.pointRange=1)},setOptions:function(a){var d=
this.chart,b=d.options,e=b.plotOptions,h=d.userOptions||{};a=c(a);d=d.styledMode;var k={plotOptions:e,userOptions:a};l(this,"setOptions",k);var g=k.plotOptions[this.type],p=h.plotOptions||{};this.userOptions=k.userOptions;h=c(g,e.series,h.plotOptions&&h.plotOptions[this.type],a);this.tooltipOptions=c(t.tooltip,t.plotOptions.series&&t.plotOptions.series.tooltip,t.plotOptions[this.type].tooltip,b.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,
p[this.type]&&p[this.type].stickyTracking,p.series&&p.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:h.stickyTracking);null===g.marker&&delete h.marker;this.zoneAxis=h.zoneAxis;b=this.zones=(h.zones||[]).slice();!h.negativeColor&&!h.negativeFillColor||h.zones||(e={value:h[this.zoneAxis+"Threshold"]||h.threshold||0,className:"highcharts-negative"},d||(e.color=h.negativeColor,e.fillColor=h.negativeFillColor),b.push(e));b.length&&z(b[b.length-1].value)&&b.push(d?{}:{color:this.color,
fillColor:this.fillColor});l(this,"afterSetOptions",{options:h});return h},getName:function(){return w(this.options.name,"Series "+(this.index+1))},getCyclic:function(a,c,b){var d=this.chart,e=this.userOptions,h=a+"Index",k=a+"Counter",g=b?b.length:w(d.options.chart[a+"Count"],d[a+"Count"]);if(!c){var p=w(e[h],e["_"+h]);z(p)||(d.series.length||(d[k]=0),e["_"+h]=p=d[k]%g,d[k]+=1);b&&(c=b[p])}"undefined"!==typeof p&&(this[h]=p);this[a]=c},getColor:function(){this.chart.styledMode?this.getCyclic("color"):
this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||L[this.type].color,this.chart.options.colors)},getPointsCollection:function(){return(this.hasGroupedData?this.points:this.data)||[]},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(a,c){var d=a.id,b=a.x,e=this.points,h,k=this.options.dataSorting;if(d)var p=this.chart.get(d);else if(this.linkedParent||this.enabledDataSorting){var t=
k&&k.matchByName?"name":"index";p=n(e,function(d){return!d.touched&&d[t]===a[t]});if(!p)return}if(p){var l=p&&p.index;"undefined"!==typeof l&&(h=!0)}"undefined"===typeof l&&g(b)&&(l=this.xData.indexOf(b,c));-1!==l&&"undefined"!==typeof l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l);!h&&e[l]&&e[l].touched&&(l=void 0);return l},drawLegendSymbol:m.drawLineMarker,updateData:function(a,c){var d=this.options,b=d.dataSorting,e=this.points,h=[],k,p,l,t=this.requireSorting,f=a.length===e.length,
n=!0;this.xIncrement=null;a.forEach(function(a,c){var p=z(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{};var n=p.x;if(p.id||g(n)){if(n=this.findPointIndex(p,l),-1===n||"undefined"===typeof n?h.push(a):e[n]&&a!==d.data[n]?(e[n].update(a,!1,null,!1),e[n].touched=!0,t&&(l=n+1)):e[n]&&(e[n].touched=!0),!f||c!==n||b&&b.enabled||this.hasDerivedData)k=!0}else h.push(a)},this);if(k)for(a=e.length;a--;)(p=e[a])&&!p.touched&&p.remove&&p.remove(!1,c);else!f||b&&b.enabled?n=!1:(a.forEach(function(a,
d){e[d].update&&a!==e[d].y&&e[d].update(a,!1,null,!1)}),h.length=0);e.forEach(function(a){a&&(a.touched=!1)});if(!n)return!1;h.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=G(this.xData),this.autoIncrement());return!0},setData:function(a,c,b,h){var d=this,k=d.points,l=k&&k.length||0,t,f=d.options,n=d.chart,v=f.dataSorting,q=null,J=d.xAxis;q=f.turboThreshold;var C=this.xData,L=this.yData,H=(t=d.pointArrayMap)&&t.length,
m=f.keys,u=0,x=1,E;a=a||[];t=a.length;c=w(c,!0);v&&v.enabled&&(a=this.sortData(a));!1!==h&&t&&l&&!d.cropped&&!d.hasGroupedData&&d.visible&&!d.isSeriesBoosting&&(E=this.updateData(a,b));if(!E){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(a){d[a+"Data"].length=0});if(q&&t>q)if(q=d.getFirstValidPoint(a),g(q))for(b=0;b<t;b++)C[b]=this.autoIncrement(),L[b]=a[b];else if(e(q))if(H)for(b=0;b<t;b++)h=a[b],C[b]=h[0],L[b]=h.slice(1,H+1);else for(m&&(u=m.indexOf("x"),x=m.indexOf("y"),
u=0<=u?u:0,x=0<=x?x:1),b=0;b<t;b++)h=a[b],C[b]=h[u],L[b]=h[x];else A(12,!1,n);else for(b=0;b<t;b++)"undefined"!==typeof a[b]&&(h={series:d},d.pointClass.prototype.applyOptions.apply(h,[a[b]]),d.updateParallelArrays(h,b));L&&p(L[0])&&A(14,!0,n);d.data=[];d.options.data=d.userOptions.data=a;for(b=l;b--;)k[b]&&k[b].destroy&&k[b].destroy();J&&(J.minRange=J.userMinRange);d.isDirty=n.isDirtyBox=!0;d.isDirtyData=!!k;b=!1}"point"===f.legendType&&(this.processData(),this.generatePoints());c&&n.redraw(b)},
sortData:function(a){var d=this,b=d.options.dataSorting.sortKey||"y",c=function(a,d){return z(d)&&a.pointClass.prototype.optionsToObject.call({series:a},d)||{}};a.forEach(function(b,e){a[e]=c(d,b);a[e].index=e},this);a.concat().sort(function(a,d){a=q(b,a);d=q(b,d);return d<a?-1:d>a?1:0}).forEach(function(a,d){a.x=d},this);d.linkedSeries&&d.linkedSeries.forEach(function(d){var b=d.options,e=b.data;b.dataSorting&&b.dataSorting.enabled||!e||(e.forEach(function(b,h){e[h]=c(d,b);a[h]&&(e[h].x=a[h].x,e[h].index=
h)}),d.setData(e,!1))});return a},processData:function(a){var d=this.xData,b=this.yData,c=d.length;var e=0;var h=this.xAxis,k=this.options;var g=k.cropThreshold;var p=this.getExtremesFromAll||k.getExtremesFromAll,t=this.isCartesian;k=h&&h.val2lin;var l=h&&h.isLog,f=this.requireSorting;if(t&&!this.isDirty&&!h.isDirty&&!this.yAxis.isDirty&&!a)return!1;if(h){a=h.getExtremes();var n=a.min;var w=a.max}if(t&&this.sorted&&!p&&(!g||c>g||this.forceCrop))if(d[c-1]<n||d[0]>w)d=[],b=[];else if(this.yData&&(d[0]<
n||d[c-1]>w)){e=this.cropData(this.xData,this.yData,n,w);d=e.xData;b=e.yData;e=e.start;var v=!0}for(g=d.length||1;--g;)if(c=l?k(d[g])-k(d[g-1]):d[g]-d[g-1],0<c&&("undefined"===typeof q||c<q))var q=c;else 0>c&&f&&(A(15,!1,this.chart),f=!1);this.cropped=v;this.cropStart=e;this.processedXData=d;this.processedYData=b;this.closestPointRange=this.basePointRange=q},cropData:function(a,b,c,e,h){var d=a.length,k=0,g=d,p;h=w(h,this.cropShoulder);for(p=0;p<d;p++)if(a[p]>=c){k=Math.max(0,p-h);break}for(c=p;c<
d;c++)if(a[c]>e){g=c+h;break}return{xData:a.slice(k,g),yData:b.slice(k,g),start:k,end:g}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,h=this.processedXData,g=this.processedYData,p=this.pointClass,t=h.length,f=this.cropStart||0,n=this.hasGroupedData;a=a.keys;var w=[],v;c||n||(c=[],c.length=b.length,c=this.data=c);a&&n&&(this.options.keys=!1);for(v=0;v<t;v++){var q=f+v;if(n){var C=(new p).init(this,[h[v]].concat(k(g[v])));C.dataGroup=this.groupMap[v];C.dataGroup.options&&(C.options=
C.dataGroup.options,u(C,C.dataGroup.options),delete C.dataLabels)}else(C=c[q])||"undefined"===typeof b[q]||(c[q]=C=(new p).init(this,b[q],h[v]));C&&(C.index=q,w[v]=C)}this.options.keys=a;if(c&&(t!==(e=c.length)||n))for(v=0;v<e;v++)v!==f||n||(v+=t),c[v]&&(c[v].destroyElements(),c[v].plotX=void 0);this.data=c;this.points=w;l(this,"afterGeneratePoints")},getXExtremes:function(a){return{min:B(a),max:G(a)}},getExtremes:function(a){var d=this.xAxis,c=this.yAxis,b=this.processedXData||this.xData,h=[],k=
0,p=0;var t=0;var n=this.requireSorting?this.cropShoulder:0,f=c?c.positiveValuesOnly:!1,w;a=a||this.stackedYData||this.processedYData||[];c=a.length;d&&(t=d.getExtremes(),p=t.min,t=t.max);for(w=0;w<c;w++){var v=b[w];var q=a[w];var C=(g(q)||e(q))&&(q.length||0<q||!f);v=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!d||(b[w+n]||v)>=p&&(b[w-n]||v)<=t;if(C&&v)if(C=q.length)for(;C--;)g(q[C])&&(h[k++]=q[C]);else h[k++]=q}this.dataMin=B(h);this.dataMax=G(h);l(this,"afterGetExtremes")},
getFirstValidPoint:function(a){for(var d=null,c=a.length,b=0;null===d&&b<c;)d=a[b],b++;return d},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,b=this.xAxis,h=b.categories,k=this.enabledDataSorting,p=this.yAxis,t=this.points,n=t.length,f=!!this.modifyValue,v,q=this.pointPlacementToXValue(),C=!!q,L=a.threshold,m=a.startFromThreshold?L:0,u,x=this.zoneAxis||"y",E=Number.MAX_VALUE;for(v=0;v<n;v++){var M=t[v],Q=M.x;var A=M.y;var r=M.low,
B=c&&p.stacks[(this.negStacks&&A<(m?0:L)?"-":"")+this.stackKey];p.positiveValuesOnly&&null!==A&&0>=A&&(M.isNull=!0);M.plotX=u=K(D(b.translate(Q,0,0,0,1,q,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&B&&B[Q]){var G=this.getStackIndicator(G,Q,this.index);if(!M.isNull){var I=B[Q];var F=I.points[G.key]}}e(F)&&(r=F[0],A=F[1],r===m&&G.key===B[Q].base&&(r=w(g(L)&&L,p.min)),p.positiveValuesOnly&&0>=r&&(r=null),M.total=M.stackTotal=I.total,M.percentage=I.total&&M.y/I.total*100,M.stackY=A,this.irregularWidths||
I.setOffset(this.pointXOffset||0,this.barW||0));M.yBottom=z(r)?D(p.translate(r,0,1,0,1),-1E5,1E5):null;f&&(A=this.modifyValue(A,M));M.plotY=A="number"===typeof A&&Infinity!==A?D(p.translate(A,0,1,0,1),-1E5,1E5):void 0;M.isInside="undefined"!==typeof A&&0<=A&&A<=p.len&&0<=u&&u<=b.len;M.clientX=C?K(b.translate(Q,0,0,0,1,q)):u;M.negative=M[x]<(a[x+"Threshold"]||L||0);M.category=h&&"undefined"!==typeof h[M.x]?h[M.x]:M.x;if(!M.isNull&&!1!==M.visible){"undefined"!==typeof y&&(E=Math.min(E,Math.abs(u-y)));
var y=u}M.zone=this.zones.length&&M.getZone();!M.graphic&&this.group&&k&&(M.isNew=!0)}this.closestPointRangePx=E;l(this,"afterTranslate")},getValidPoints:function(a,c,b){var d=this.chart;return(a||this.points||[]).filter(function(a){return c&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!1!==a.visible&&(b||!a.isNull)})},getClipBox:function(a,c){var d=this.options,b=this.chart,e=b.inverted,h=this.xAxis,k=h&&this.yAxis;a&&!1===d.clip&&k?a=e?{y:-b.chartWidth+k.len+k.pos,height:b.chartWidth,width:b.chartHeight,
x:-b.chartHeight+h.len+h.pos}:{y:-k.pos,height:b.chartHeight,width:b.chartWidth,x:-h.pos}:(a=this.clipBox||b.clipBox,c&&(a.width=b.plotSizeX,a.x=0));return c?{width:a.width,x:a.x}:a},setClip:function(a){var d=this.chart,b=this.options,c=d.renderer,e=d.inverted,h=this.clipBox,k=this.getClipBox(a),g=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,k.height,b.xAxis,b.yAxis].join(),p=d[g],t=d[g+"m"];a&&(k.width=0,e&&(k.x=d.plotHeight+(!1!==b.clip?0:d.plotTop)));p?d.hasLoaded||p.attr(k):(a&&
(d[g+"m"]=t=c.clipRect(e?d.plotSizeX+99:-99,e?-d.plotLeft:-d.plotTop,99,e?d.chartWidth:d.chartHeight)),d[g]=p=c.clipRect(k),p.count={length:0});a&&!p.count[this.index]&&(p.count[this.index]=!0,p.count.length+=1);if(!1!==b.clip||a)this.group.clip(a||h?p:d.clipRect),this.markerGroup.clip(t),this.sharedClipKey=g;a||(p.count[this.index]&&(delete p.count[this.index],--p.count.length),0===p.count.length&&g&&d[g]&&(h||(d[g]=d[g].destroy()),d[g+"m"]&&(d[g+"m"]=d[g+"m"].destroy())))},animate:function(a){var d=
this.chart,b=y(this.options.animation);if(!d.hasRendered)if(a)this.setClip(b);else{var c=this.sharedClipKey;a=d[c];var e=this.getClipBox(b,!0);a&&a.animate(e,b);d[c+"m"]&&d[c+"m"].animate({width:e.width+99,x:e.x-(d.inverted?0:99)},b)}},afterAnimate:function(){this.setClip();l(this,"afterAnimate");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,h=this.options.marker,k=this[this.specialGroup]||this.markerGroup,g=this.xAxis,p=w(h.enabled,!g||g.isRadial?!0:null,this.closestPointRangePx>=
h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;c<a.length;c++){var t=a[c];var l=(e=t.graphic)?"animate":"attr";var n=t.marker||{};var f=!!t.marker;if((p&&"undefined"===typeof n.enabled||n.enabled)&&!t.isNull&&!1!==t.visible){var v=w(n.symbol,this.symbol);var q=this.markerAttribs(t,t.selected&&"select");this.enabledDataSorting&&(t.startXPos=g.reversed?-q.width:g.width);var C=!1!==t.isInside;e?e[C?"show":"hide"](C).animate(q):C&&(0<q.width||t.hasImage)&&(t.graphic=e=b.renderer.symbol(v,
q.x,q.y,q.width,q.height,f?n:h).add(k),this.enabledDataSorting&&b.hasRendered&&(e.attr({x:t.startXPos}),l="animate"));e&&"animate"===l&&e[C?"show":"hide"](C).animate(q);if(e&&!b.styledMode)e[l](this.pointAttribs(t,t.selected&&"select"));e&&e.addClass(t.getClassName(),!0)}else e&&(t.graphic=e.destroy())}},markerAttribs:function(a,b){var d=this.options.marker,c=a.marker||{},e=c.symbol||d.symbol,h=w(c.radius,d.radius);b&&(d=d.states[b],b=c.states&&c.states[b],h=w(b&&b.radius,d&&d.radius,h+(d&&d.radiusPlus||
0)));a.hasImage=e&&0===e.indexOf("url");a.hasImage&&(h=0);a={x:Math.floor(a.plotX)-h,y:a.plotY-h};h&&(a.width=a.height=2*h);return a},pointAttribs:function(a,b){var d=this.options.marker,c=a&&a.options,e=c&&c.marker||{},h=this.color,k=c&&c.color,g=a&&a.color;c=w(e.lineWidth,d.lineWidth);var p=a&&a.zone&&a.zone.color;a=1;h=k||p||g||h;k=e.fillColor||d.fillColor||h;h=e.lineColor||d.lineColor||h;b=b||"normal";d=d.states[b];b=e.states&&e.states[b]||{};c=w(b.lineWidth,d.lineWidth,c+w(b.lineWidthPlus,d.lineWidthPlus,
0));k=b.fillColor||d.fillColor||k;h=b.lineColor||d.lineColor||h;a=w(b.opacity,d.opacity,a);return{stroke:h,"stroke-width":c,fill:k,opacity:a}},destroy:function(d){var b=this,c=b.chart,e=/AppleWebKit\/533/.test(C.navigator.userAgent),h,k,g=b.data||[],p,t;l(b,"destroy");this.removeEvents(d);(b.axisTypes||[]).forEach(function(a){(t=b[a])&&t.series&&(x(t.series,b),t.isDirty=t.forceRedraw=!0)});b.legendItem&&b.chart.legend.destroyItem(b);for(k=g.length;k--;)(p=g[k])&&p.destroy&&p.destroy();b.points=null;
r.clearTimeout(b.animationTimeout);a(b,function(a,d){a instanceof Q&&!a.survive&&(h=e&&"group"===d?"hide":"destroy",a[h]())});c.hoverSeries===b&&(c.hoverSeries=null);x(c.series,b);c.orderSeries();a(b,function(a,c){d&&"hcEvents"===c||delete b[c]})},getGraphPath:function(a,b,c){var d=this,e=d.options,h=e.step,k,g=[],p=[],t;a=a||d.points;(k=a.reversed)&&a.reverse();(h={right:1,center:2}[h]||h&&3)&&k&&(h=4-h);a=this.getValidPoints(a,!1,!(e.connectNulls&&!b&&!c));a.forEach(function(k,l){var n=k.plotX,
f=k.plotY,w=a[l-1];(k.leftCliff||w&&w.rightCliff)&&!c&&(t=!0);k.isNull&&!z(b)&&0<l?t=!e.connectNulls:k.isNull&&!b?t=!0:(0===l||t?l=["M",k.plotX,k.plotY]:d.getPointSpline?l=d.getPointSpline(a,k,l):h?(l=1===h?["L",w.plotX,f]:2===h?["L",(w.plotX+n)/2,w.plotY,"L",(w.plotX+n)/2,f]:["L",n,w.plotY],l.push("L",n,f)):l=["L",n,f],p.push(k.x),h&&(p.push(k.x),2===h&&p.push(k.x)),g.push.apply(g,l),t=!1)});g.xMap=p;return d.graphPath=g},drawGraph:function(){var a=this,b=this.options,c=(this.gappedPath||this.getGraphPath).call(this),
e=this.chart.styledMode,h=[["graph","highcharts-graph"]];e||h[0].push(b.lineColor||this.color||"#cccccc",b.dashStyle);h=a.getZonesGraphs(h);h.forEach(function(d,h){var k=d[0],g=a[k],p=g?"animate":"attr";g?(g.endX=a.preventGraphAnimation?null:c.xMap,g.animate({d:c})):c.length&&(a[k]=g=a.chart.renderer.path(c).addClass(d[1]).attr({zIndex:1}).add(a.group));g&&!e&&(k={stroke:d[2],"stroke-width":b.lineWidth,fill:a.fillGraph&&a.color||"none"},d[3]?k.dashstyle=d[3]:"square"!==b.linecap&&(k["stroke-linecap"]=
k["stroke-linejoin"]="round"),g[p](k).shadow(2>h&&b.shadow));g&&(g.startX=c.xMap,g.isArea=c.isArea)})},getZonesGraphs:function(a){this.zones.forEach(function(d,b){b=["zone-graph-"+b,"highcharts-graph highcharts-zone-graph-"+b+" "+(d.className||"")];this.chart.styledMode||b.push(d.color||this.color,d.dashStyle||this.options.dashStyle);a.push(b)},this);return a},applyZones:function(){var a=this,b=this.chart,c=b.renderer,e=this.zones,h,k,g=this.clips||[],p,t=this.graph,l=this.area,n=Math.max(b.chartWidth,
b.chartHeight),f=this[(this.zoneAxis||"y")+"Axis"],v=b.inverted,q,C,L,m=!1;if(e.length&&(t||l)&&f&&"undefined"!==typeof f.min){var u=f.reversed;var x=f.horiz;t&&!this.showLine&&t.hide();l&&l.hide();var M=f.getExtremes();e.forEach(function(d,e){h=u?x?b.plotWidth:0:x?0:f.toPixels(M.min)||0;h=D(w(k,h),0,n);k=D(Math.round(f.toPixels(w(d.value,M.max),!0)||0),0,n);m&&(h=k=f.toPixels(M.max));q=Math.abs(h-k);C=Math.min(h,k);L=Math.max(h,k);f.isXAxis?(p={x:v?L:C,y:0,width:q,height:n},x||(p.x=b.plotHeight-
p.x)):(p={x:0,y:v?L:C,width:n,height:q},x&&(p.y=b.plotWidth-p.y));v&&c.isVML&&(p=f.isXAxis?{x:0,y:u?C:L,height:p.width,width:b.chartWidth}:{x:p.y-b.plotLeft-b.spacingBox.x,y:0,width:p.height,height:b.chartHeight});g[e]?g[e].animate(p):g[e]=c.clipRect(p);t&&a["zone-graph-"+e].clip(g[e]);l&&a["zone-area-"+e].clip(g[e]);m=d.value>M.max;a.resetZones&&0===k&&(k=void 0)});this.clips=g}else a.visible&&(t&&t.show(!0),l&&l.show(!0))},invertGroups:function(a){function d(){["group","markerGroup"].forEach(function(d){b[d]&&
(c.renderer.isVML&&b[d].attr({width:b.yAxis.len,height:b.xAxis.len}),b[d].width=b.yAxis.len,b[d].height=b.xAxis.len,b[d].invert(b.isRadialSeries?!1:a))})}var b=this,c=b.chart;b.xAxis&&(b.eventsToUnbind.push(F(c,"resize",d)),d(),b.invertGroups=d)},plotGroup:function(a,b,c,e,h){var d=this[a],k=!d;k&&(this[a]=d=this.chart.renderer.g().attr({zIndex:e||.1}).add(h));d.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(z(this.colorIndex)?"highcharts-color-"+this.colorIndex+
" ":"")+(this.options.className||"")+(d.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);d.attr({visibility:c})[k?"attr":"animate"](this.getPlotBox());return d},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},removeEvents:function(a){a?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0):E(this)},render:function(){var a=
this,b=a.chart,c=a.options,e=!a.finishedAnimating&&b.renderer.isSVG&&y(c.animation).duration,k=a.visible?"inherit":"hidden",g=c.zIndex,p=a.hasRendered,t=b.seriesGroup,n=b.inverted;l(this,"render");var f=a.plotGroup("group","series",k,g,t);a.markerGroup=a.plotGroup("markerGroup","markers",k,g,t);e&&a.animate&&a.animate(!0);f.inverted=a.isCartesian||a.invertable?n:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();
a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(n);!1===c.clip||a.sharedClipKey||p||f.clip(b.clipRect);e&&a.animate&&a.animate();p||(a.animationTimeout=h(function(){a.afterAnimate()},e||0));a.isDirty=!1;a.hasRendered=!0;l(a,"afterRender")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,h=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:w(e&&e.left,a.plotLeft),translateY:w(h&&
h.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:e?c.len-a.chartX+c.pos:a.chartY-c.pos},b,a)},buildKDTree:function(a){function d(a,c,e){var h;if(h=a&&a.length){var k=b.kdAxisArray[c%e];a.sort(function(a,d){return a[k]-d[k]});h=Math.floor(h/2);return{point:a[h],left:d(a.slice(0,h),c+1,e),
right:d(a.slice(h+1),c+1,e)}}}this.buildingKdTree=!0;var b=this,c=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;h(function(){b.kdTree=d(b.getValidPoints(null,!b.directTouch),c,c);b.buildingKdTree=!1},b.options.kdNow||a&&"touchstart"===a.type?0:1)},searchKDTree:function(a,b,c){function d(a,b,c,p){var t=b.point,l=e.kdAxisArray[c%p],n=t;var f=z(a[h])&&z(t[h])?Math.pow(a[h]-t[h],2):null;var w=z(a[k])&&z(t[k])?Math.pow(a[k]-t[k],2):null;w=(f||0)+(w||0);t.dist=z(w)?Math.sqrt(w):Number.MAX_VALUE;
t.distX=z(f)?Math.sqrt(f):Number.MAX_VALUE;l=a[l]-t[l];w=0>l?"left":"right";f=0>l?"right":"left";b[w]&&(w=d(a,b[w],c+1,p),n=w[g]<n[g]?w:t);b[f]&&Math.sqrt(l*l)<n[g]&&(a=d(a,b[f],c+1,p),n=a[g]<n[g]?a:n);return n}var e=this,h=this.kdAxisArray[0],k=this.kdAxisArray[1],g=b?"distX":"dist";b=-1<e.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(c);if(this.kdTree)return d(a,this.kdTree,b,b)},pointPlacementToXValue:function(){var a=this.options,b=a.pointRange,
c=this.xAxis;a=a.pointPlacement;"between"===a&&(a=c.reversed?-.5:.5);return g(a)?a*w(b,c.pointRange):0}});""});P(y,"parts/Stacking.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var I=m.correctFloat,r=m.defined,F=m.destroyObjectProperties,y=m.format,G=m.objectEach,B=m.pick;m=f.Axis;var D=f.Chart,K=f.Series;f.StackItem=function(f,m,A,u,n){var l=f.chart.inverted;this.axis=f;this.isNegative=A;this.options=m=m||{};this.x=u;this.total=null;this.points={};this.stack=n;this.rightCliff=
this.leftCliff=0;this.alignOptions={align:m.align||(l?A?"left":"right":"center"),verticalAlign:m.verticalAlign||(l?"middle":A?"bottom":"top"),y:m.y,x:m.x};this.textAlign=m.textAlign||(l?A?"right":"left":"center")};f.StackItem.prototype={destroy:function(){F(this,this.axis)},render:function(f){var m=this.axis.chart,z=this.options,u=z.format;u=u?y(u,this,m):z.formatter.call(this);this.label?this.label.attr({text:u,visibility:"hidden"}):(this.label=m.renderer.label(u,null,null,z.shape,null,null,z.useHTML,
!1,"stack-labels"),u={text:u,rotation:z.rotation,padding:B(z.padding,5),visibility:"hidden"},this.label.attr(u),m.styledMode||this.label.css(z.style),this.label.added||this.label.add(f));this.label.labelrank=m.plotHeight},setOffset:function(f,m,A,u,n){var l=this.axis,q=l.chart;u=l.translate(l.usePercentage?100:u?u:this.total,0,0,0,1);A=l.translate(A?A:0);A=r(u)&&Math.abs(u-A);f=B(n,q.xAxis[0].translate(this.x))+f;l=r(u)&&this.getStackBox(q,this,f,u,m,A,l);m=this.label;A=this.isNegative;f="justify"===
B(this.options.overflow,"justify");var e=this.textAlign;m&&l&&(n=m.getBBox(),u=m.padding,e="left"===e?q.inverted?-u:u:"right"===e?n.width:q.inverted&&"center"===e?n.width/2:q.inverted?A?n.width+u:-u:n.width/2,A=q.inverted?n.height/2:A?-u:n.height,this.alignOptions.x=B(this.options.x,0),this.alignOptions.y=B(this.options.y,0),l.x-=e,l.y-=A,m.align(this.alignOptions,null,l),q.isInsidePlot(m.alignAttr.x+e-this.alignOptions.x,m.alignAttr.y+A-this.alignOptions.y)?m.show():(m.alignAttr.y=-9999,f=!1),f&&
K.prototype.justifyDataLabel.call(this.axis,m,this.alignOptions,m.alignAttr,n,l),m.attr({x:m.alignAttr.x,y:m.alignAttr.y}),B(!f&&this.options.crop,!0)&&((q=q.isInsidePlot(m.x-u+m.width,m.y)&&q.isInsidePlot(m.x+u,m.y))||m.hide()))},getStackBox:function(f,m,A,u,n,l,q){var e=m.axis.reversed,b=f.inverted;f=q.height+q.pos-(b?f.plotLeft:f.plotTop);m=m.isNegative&&!e||!m.isNegative&&e;return{x:b?m?u:u-l:A,y:b?f-A-n:m?f-u-l:f-u,width:b?l:n,height:b?n:l}}};D.prototype.getStacks=function(){var f=this,m=f.inverted;
f.yAxis.forEach(function(f){f.stacks&&f.hasVisibleSeries&&(f.oldStacks=f.stacks)});f.series.forEach(function(x){var u=x.xAxis&&x.xAxis.options||{};!x.options.stacking||!0!==x.visible&&!1!==f.options.chart.ignoreHiddenSeries||(x.stackKey=[x.type,B(x.options.stack,""),m?u.top:u.left,m?u.height:u.width].join())})};m.prototype.buildStacks=function(){var m=this.series,x=B(this.options.reversedStacks,!0),A=m.length,u;if(!this.isXAxis){this.usePercentage=!1;for(u=A;u--;){var n=m[x?u:A-u-1];n.setStackedPoints()}for(u=
0;u<A;u++)m[u].modifyStacks();f.fireEvent(this,"afterBuildStacks")}};m.prototype.renderStackTotals=function(){var f=this.chart,m=f.renderer,A=this.stacks,u=this.stackTotalGroup;u||(this.stackTotalGroup=u=m.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());u.translate(f.plotLeft,f.plotTop);G(A,function(f){G(f,function(l){l.render(u)})})};m.prototype.resetStacks=function(){var f=this,m=f.stacks;f.isXAxis||G(m,function(m){G(m,function(u,n){u.touched<f.stacksTouched?(u.destroy(),delete m[n]):
(u.total=null,u.cumulative=null)})})};m.prototype.cleanStacks=function(){if(!this.isXAxis){if(this.oldStacks)var f=this.stacks=this.oldStacks;G(f,function(f){G(f,function(f){f.cumulative=f.total})})}};K.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var m=this.processedXData,x=this.processedYData,A=[],u=x.length,n=this.options,l=n.threshold,q=B(n.startFromThreshold&&l,0),e=n.stack;n=n.stacking;var b=this.stackKey,
g="-"+b,p=this.negStacks,c=this.yAxis,a=c.stacks,w=c.oldStacks,E,v;c.stacksTouched+=1;for(v=0;v<u;v++){var k=m[v];var h=x[v];var t=this.getStackIndicator(t,k,this.index);var L=t.key;var M=(E=p&&h<(q?0:l))?g:b;a[M]||(a[M]={});a[M][k]||(w[M]&&w[M][k]?(a[M][k]=w[M][k],a[M][k].total=null):a[M][k]=new f.StackItem(c,c.options.stackLabels,E,k,e));M=a[M][k];null!==h?(M.points[L]=M.points[this.index]=[B(M.cumulative,q)],r(M.cumulative)||(M.base=L),M.touched=c.stacksTouched,0<t.index&&!1===this.singleStacks&&
(M.points[L][0]=M.points[this.index+","+k+",0"][0])):M.points[L]=M.points[this.index]=null;"percent"===n?(E=E?b:g,p&&a[E]&&a[E][k]?(E=a[E][k],M.total=E.total=Math.max(E.total,M.total)+Math.abs(h)||0):M.total=I(M.total+(Math.abs(h)||0))):M.total=I(M.total+(h||0));M.cumulative=B(M.cumulative,q)+(h||0);null!==h&&(M.points[L].push(M.cumulative),A[v]=M.cumulative)}"percent"===n&&(c.usePercentage=!0);this.stackedYData=A;c.oldStacks={}}};K.prototype.modifyStacks=function(){var f=this,m=f.stackKey,A=f.yAxis.stacks,
u=f.processedXData,n,l=f.options.stacking;f[l+"Stacker"]&&[m,"-"+m].forEach(function(q){for(var e=u.length,b,g;e--;)if(b=u[e],n=f.getStackIndicator(n,b,f.index,q),g=(b=A[q]&&A[q][b])&&b.points[n.key])f[l+"Stacker"](g,b,e)})};K.prototype.percentStacker=function(f,m,A){m=m.total?100/m.total:0;f[0]=I(f[0]*m);f[1]=I(f[1]*m);this.stackedYData[A]=f[1]};K.prototype.getStackIndicator=function(f,m,A,u){!r(f)||f.x!==m||u&&f.key!==u?f={x:m,index:0,key:u}:f.index++;f.key=[A,m,f.index].join();return f}});P(y,
"parts/Dynamics.js",[y["parts/Globals.js"],y["parts/Point.js"],y["parts/Time.js"],y["parts/Utilities.js"]],function(f,m,I,r){var F=r.addEvent,y=r.animate,G=r.createElement,B=r.css,D=r.defined,K=r.erase,z=r.error,x=r.extend,A=r.fireEvent,u=r.isArray,n=r.isNumber,l=r.isObject,q=r.isString,e=r.merge,b=r.objectEach,g=r.pick,p=r.relativeLength,c=r.setAnimation,a=r.splat,w=f.Axis;r=f.Chart;var E=f.Series,v=f.seriesTypes;f.cleanRecursively=function(a,c){var e={};b(a,function(b,h){if(l(a[h],!0)&&!a.nodeType&&
c[h])b=f.cleanRecursively(a[h],c[h]),Object.keys(b).length&&(e[h]=b);else if(l(a[h])||a[h]!==c[h])e[h]=a[h]});return e};x(r.prototype,{addSeries:function(a,b,c){var e,h=this;a&&(b=g(b,!0),A(h,"addSeries",{options:a},function(){e=h.initSeries(a);h.isDirtyLegend=!0;h.linkSeries();e.enabledDataSorting&&e.setData(a.data,!1);A(h,"afterAddSeries",{series:e});b&&h.redraw(c)}));return e},addAxis:function(a,b,c,e){return this.createAxis(b?"xAxis":"yAxis",{axis:a,redraw:c,animation:e})},addColorAxis:function(a,
b,c){return this.createAxis("colorAxis",{axis:a,redraw:b,animation:c})},createAxis:function(b,c){var h=this.options,k="colorAxis"===b,p=c.redraw,l=c.animation;c=e(c.axis,{index:this[b].length,isX:"xAxis"===b});var n=k?new f.ColorAxis(this,c):new w(this,c);h[b]=a(h[b]||{});h[b].push(c);k&&(this.isDirtyLegend=!0,this.axes.forEach(function(a){a.series=[]}),this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0}));g(p,!0)&&this.redraw(l);return n},showLoading:function(a){var b=this,c=b.options,
e=b.loadingDiv,k=c.loading,p=function(){e&&B(e,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};e||(b.loadingDiv=e=G("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container),b.loadingSpan=G("span",{className:"highcharts-loading-inner"},null,e),F(b,"redraw",p));e.className="highcharts-loading";b.loadingSpan.innerHTML=g(a,c.lang.loading,"");b.styledMode||(B(e,x(k.style,{zIndex:10})),B(b.loadingSpan,k.labelStyle),b.loadingShown||(B(e,
{opacity:0,display:""}),y(e,{opacity:k.style.opacity||.5},{duration:k.showDuration||0})));b.loadingShown=!0;p()},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&(b.className="highcharts-loading highcharts-loading-hidden",this.styledMode||y(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){B(b,{display:"none"})}}));this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],update:function(c,h,t,l){var k=this,w={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},v,d,m,u=c.isResponsiveOptions,L=[];A(k,"update",
{options:c});u||k.setResponsive(!1,!0);c=f.cleanRecursively(c,k.options);e(!0,k.userOptions,c);if(v=c.chart){e(!0,k.options.chart,v);"className"in v&&k.setClassName(v.className);"reflow"in v&&k.setReflow(v.reflow);if("inverted"in v||"polar"in v||"type"in v){k.propFromSeries();var E=!0}"alignTicks"in v&&(E=!0);b(v,function(a,b){-1!==k.propsRequireUpdateSeries.indexOf("chart."+b)&&(d=!0);-1!==k.propsRequireDirtyBox.indexOf(b)&&(k.isDirtyBox=!0);u||-1===k.propsRequireReflow.indexOf(b)||(m=!0)});!k.styledMode&&
"style"in v&&k.renderer.setStyle(v.style)}!k.styledMode&&c.colors&&(this.options.colors=c.colors);c.plotOptions&&e(!0,this.options.plotOptions,c.plotOptions);c.time&&this.time===f.time&&(this.time=new I(c.time));b(c,function(a,b){if(k[b]&&"function"===typeof k[b].update)k[b].update(a,!1);else if("function"===typeof k[w[b]])k[w[b]](a);"chart"!==b&&-1!==k.propsRequireUpdateSeries.indexOf(b)&&(d=!0)});this.collectionsWithUpdate.forEach(function(d){if(c[d]){if("series"===d){var b=[];k[d].forEach(function(a,
d){a.options.isInternal||b.push(g(a.options.index,d))})}a(c[d]).forEach(function(a,c){(c=D(a.id)&&k.get(a.id)||k[d][b?b[c]:c])&&c.coll===d&&(c.update(a,!1),t&&(c.touched=!0));!c&&t&&k.collectionsWithInit[d]&&(k.collectionsWithInit[d][0].apply(k,[a].concat(k.collectionsWithInit[d][1]||[]).concat([!1])).touched=!0)});t&&k[d].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:L.push(a)})}});L.forEach(function(a){a.remove&&a.remove(!1)});E&&k.axes.forEach(function(a){a.update({},!1)});
d&&k.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);c.loading&&e(!0,k.options.loading,c.loading);E=v&&v.width;v=v&&v.height;q(v)&&(v=p(v,E||k.chartWidth));m||n(E)&&E!==k.chartWidth||n(v)&&v!==k.chartHeight?k.setSize(E,v,l):g(h,!0)&&k.redraw(l);A(k,"afterUpdate",{options:c,redraw:h,animation:l})},setSubtitle:function(a,b){this.applyDescription("subtitle",a);this.layOutTitles(b)},setCaption:function(a,b){this.applyDescription("caption",a);this.layOutTitles(b)}});r.prototype.collectionsWithInit=
{xAxis:[r.prototype.addAxis,[!0]],yAxis:[r.prototype.addAxis,[!1]],series:[r.prototype.addSeries]};x(m.prototype,{update:function(a,b,c,e){function h(){k.applyOptions(a);var e=d&&k.hasDummyGraphic;e=null===k.y?!e:e;d&&e&&(k.graphic=d.destroy(),delete k.hasDummyGraphic);l(a,!0)&&(d&&d.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(k.graphic=d.destroy()),a&&a.dataLabels&&k.dataLabel&&(k.dataLabel=k.dataLabel.destroy()),k.connector&&(k.connector=k.connector.destroy()));t=k.index;p.updateParallelArrays(k,
t);n.data[t]=l(n.data[t],!0)||l(a,!0)?k.options:g(a,n.data[t]);p.isDirty=p.isDirtyData=!0;!p.fixedBox&&p.hasCartesianSeries&&(f.isDirtyBox=!0);"point"===n.legendType&&(f.isDirtyLegend=!0);b&&f.redraw(c)}var k=this,p=k.series,d=k.graphic,t,f=p.chart,n=p.options;b=g(b,!0);!1===e?h():k.firePointEvent("update",{options:a},h)},remove:function(a,b){this.series.removePoint(this.series.data.indexOf(this),a,b)}});x(E.prototype,{addPoint:function(a,b,c,e,p){var h=this.options,k=this.data,d=this.chart,t=this.xAxis;
t=t&&t.hasNames&&t.names;var l=h.data,f=this.xData,n;b=g(b,!0);var v={series:this};this.pointClass.prototype.applyOptions.apply(v,[a]);var w=v.x;var q=f.length;if(this.requireSorting&&w<f[q-1])for(n=!0;q&&f[q-1]>w;)q--;this.updateParallelArrays(v,"splice",q,0,0);this.updateParallelArrays(v,q);t&&v.name&&(t[w]=v.name);l.splice(q,0,a);n&&(this.data.splice(q,0,null),this.processData());"point"===h.legendType&&this.generatePoints();c&&(k[0]&&k[0].remove?k[0].remove(!1):(k.shift(),this.updateParallelArrays(v,
"shift"),l.shift()));!1!==p&&A(this,"addPoint",{point:v});this.isDirtyData=this.isDirty=!0;b&&d.redraw(e)},removePoint:function(a,b,e){var h=this,k=h.data,p=k[a],t=h.points,d=h.chart,l=function(){t&&t.length===k.length&&t.splice(a,1);k.splice(a,1);h.options.data.splice(a,1);h.updateParallelArrays(p||{series:h},"splice",a,1);p&&p.destroy();h.isDirty=!0;h.isDirtyData=!0;b&&d.redraw()};c(e,d);b=g(b,!0);p?p.firePointEvent("remove",null,l):l()},remove:function(a,b,c,e){function h(){k.destroy(e);k.remove=
null;p.isDirtyLegend=p.isDirtyBox=!0;p.linkSeries();g(a,!0)&&p.redraw(b)}var k=this,p=k.chart;!1!==c?A(k,"remove",null,h):h()},update:function(a,b){a=f.cleanRecursively(a,this.userOptions);A(this,"update",{options:a});var c=this,h=c.chart,k=c.userOptions,p=c.initialType||c.type,l=a.type||k.type||h.options.chart.type,d=!(this.hasDerivedData||a.dataGrouping||l&&l!==this.type||"undefined"!==typeof a.pointStart||a.pointInterval||a.pointIntervalUnit||a.keys),n=v[p].prototype,w,q=["group","markerGroup",
"dataLabelsGroup","transformGroup"],m=["eventOptions","navigatorSeries","baseSeries"],u=c.finishedAnimating&&{animation:!1},E={};d&&(m.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&m.push("area","graph"),c.parallelArrays.forEach(function(a){m.push(a+"Data")}),a.data&&(a.dataSorting&&x(c.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=e(k,u,{index:"undefined"===
typeof k.index?c.index:k.index,pointStart:g(k.pointStart,c.xData[0])},!d&&{data:c.options.data},a);d&&a.data&&(a.data=c.options.data);m=q.concat(m);m.forEach(function(a){m[a]=c[a];delete c[a]});c.remove(!1,null,!1,!0);for(w in n)c[w]=void 0;v[l||p]?x(c,v[l||p].prototype):z(17,!0,h,{missingModuleFor:l||p});m.forEach(function(a){c[a]=m[a]});c.init(h,a);if(d&&this.points){var r=c.options;!1===r.visible?(E.graphic=1,E.dataLabel=1):c._hasPointLabels||(l=r.marker,n=r.dataLabels,l&&(!1===l.enabled||"symbol"in
l)&&(E.graphic=1),n&&!1===n.enabled&&(E.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(E).length&&a.destroyElements(E),!1===r.showInLegend&&a.legendItem&&h.legend.destroyItem(a))},this)}a.zIndex!==k.zIndex&&q.forEach(function(d){c[d]&&c[d].attr({zIndex:a.zIndex})});c.initialType=p;h.linkSeries();A(this,"afterUpdate");g(b,!0)&&h.redraw(d?void 0:!1)},setName:function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0}});x(w.prototype,
{update:function(a,c){var h=this.chart,k=a&&a.events||{};a=e(this.userOptions,a);h.options[this.coll].indexOf&&(h.options[this.coll][h.options[this.coll].indexOf(this.userOptions)]=a);b(h.options[this.coll].events,function(a,b){"undefined"===typeof k[b]&&(k[b]=void 0)});this.destroy(!0);this.init(h,x(a,{events:k}));h.isDirtyBox=!0;g(c,!0)&&h.redraw()},remove:function(a){for(var b=this.chart,c=this.coll,e=this.series,k=e.length;k--;)e[k]&&e[k].remove(!1);K(b.axes,this);K(b[c],this);u(b.options[c])?
b.options[c].splice(this.options.index,1):delete b.options[c];b[c].forEach(function(a,b){a.options.index=a.userOptions.index=b});this.destroy();b.isDirtyBox=!0;g(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}})});P(y,"parts/AreaSeries.js",[y["parts/Globals.js"],y["parts/Color.js"],y["mixins/legend-symbol.js"],y["parts/Utilities.js"]],function(f,m,I,r){var F=m.parse,y=r.objectEach,G=r.pick;m=r.seriesType;var B=f.Series;
m("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(f){var m=[],z=[],x=this.xAxis,A=this.yAxis,u=A.stacks[this.stackKey],n={},l=this.index,q=A.series,e=q.length,b=G(A.options.reversedStacks,!0)?1:-1,g;f=f||this.points;if(this.options.stacking){for(g=0;g<f.length;g++)f[g].leftNull=f[g].rightNull=void 0,n[f[g].x]=f[g];y(u,function(b,a){null!==b.total&&z.push(a)});z.sort(function(b,a){return b-a});var p=q.map(function(b){return b.visible});z.forEach(function(c,a){var f=
0,q,v;if(n[c]&&!n[c].isNull)m.push(n[c]),[-1,1].forEach(function(k){var h=1===k?"rightNull":"leftNull",f=0,w=u[z[a+k]];if(w)for(g=l;0<=g&&g<e;)q=w.points[g],q||(g===l?n[c][h]=!0:p[g]&&(v=u[c].points[g])&&(f-=v[1]-v[0])),g+=b;n[c][1===k?"rightCliff":"leftCliff"]=f});else{for(g=l;0<=g&&g<e;){if(q=u[c].points[g]){f=q[1];break}g+=b}f=A.translate(f,0,1,0,1);m.push({isNull:!0,plotX:x.translate(c,0,0,0,1),x:c,plotY:f,yBottom:f})}})}return m},getGraphPath:function(f){var m=B.prototype.getGraphPath,z=this.options,
x=z.stacking,A=this.yAxis,u,n=[],l=[],q=this.index,e=A.stacks[this.stackKey],b=z.threshold,g=Math.round(A.getThreshold(z.threshold));z=G(z.connectNulls,"percent"===x);var p=function(c,p,k){var h=f[c];c=x&&e[h.x].points[q];var t=h[k+"Null"]||0;k=h[k+"Cliff"]||0;h=!0;if(k||t){var v=(t?c[0]:c[1])+k;var w=c[0]+k;h=!!t}else!x&&f[p]&&f[p].isNull&&(v=w=b);"undefined"!==typeof v&&(l.push({plotX:a,plotY:null===v?g:A.getThreshold(v),isNull:h,isCliff:!0}),n.push({plotX:a,plotY:null===w?g:A.getThreshold(w),doCurve:!1}))};
f=f||this.points;x&&(f=this.getStackPoints(f));for(u=0;u<f.length;u++){x||(f[u].leftCliff=f[u].rightCliff=f[u].leftNull=f[u].rightNull=void 0);var c=f[u].isNull;var a=G(f[u].rectPlotX,f[u].plotX);var w=G(f[u].yBottom,g);if(!c||z)z||p(u,u-1,"left"),c&&!x&&z||(l.push(f[u]),n.push({x:u,plotX:a,plotY:w})),z||p(u,u+1,"right")}u=m.call(this,l,!0,!0);n.reversed=!0;c=m.call(this,n,!0,!0);c.length&&(c[0]="L");c=u.concat(c);m=m.call(this,l,!1,z);c.xMap=u.xMap;this.areaPath=c;return m},drawGraph:function(){this.areaPath=
[];B.prototype.drawGraph.apply(this);var f=this,m=this.areaPath,z=this.options,x=[["area","highcharts-area",this.color,z.fillColor]];this.zones.forEach(function(m,u){x.push(["zone-area-"+u,"highcharts-area highcharts-zone-area-"+u+" "+m.className,m.color||f.color,m.fillColor||z.fillColor])});x.forEach(function(x){var u=x[0],n=f[u],l=n?"animate":"attr",q={};n?(n.endX=f.preventGraphAnimation?null:m.xMap,n.animate({d:m})):(q.zIndex=0,n=f[u]=f.chart.renderer.path(m).addClass(x[1]).add(f.group),n.isArea=
!0);f.chart.styledMode||(q.fill=G(x[3],F(x[2]).setOpacity(G(z.fillOpacity,.75)).get()));n[l](q);n.startX=m.xMap;n.shiftUnit=z.step?2:1})},drawLegendSymbol:I.drawRectangle});""});P(y,"parts/SplineSeries.js",[y["parts/Utilities.js"]],function(f){var m=f.pick;f=f.seriesType;f("spline","line",{},{getPointSpline:function(f,r,F){var y=r.plotX,G=r.plotY,B=f[F-1];F=f[F+1];if(B&&!B.isNull&&!1!==B.doCurve&&!r.isCliff&&F&&!F.isNull&&!1!==F.doCurve&&!r.isCliff){f=B.plotY;var D=F.plotX;F=F.plotY;var I=0;var z=
(1.5*y+B.plotX)/2.5;var x=(1.5*G+f)/2.5;D=(1.5*y+D)/2.5;var A=(1.5*G+F)/2.5;D!==z&&(I=(A-x)*(D-y)/(D-z)+G-A);x+=I;A+=I;x>f&&x>G?(x=Math.max(f,G),A=2*G-x):x<f&&x<G&&(x=Math.min(f,G),A=2*G-x);A>F&&A>G?(A=Math.max(F,G),x=2*G-A):A<F&&A<G&&(A=Math.min(F,G),x=2*G-A);r.rightContX=D;r.rightContY=A}r=["C",m(B.rightContX,B.plotX),m(B.rightContY,B.plotY),m(z,y),m(x,G),y,G];B.rightContX=B.rightContY=null;return r}});""});P(y,"parts/AreaSplineSeries.js",[y["parts/Globals.js"],y["mixins/legend-symbol.js"],y["parts/Utilities.js"]],
function(f,m,y){y=y.seriesType;var r=f.seriesTypes.area.prototype;y("areaspline","spline",f.defaultPlotOptions.area,{getStackPoints:r.getStackPoints,getGraphPath:r.getGraphPath,drawGraph:r.drawGraph,drawLegendSymbol:m.drawRectangle});""});P(y,"parts/ColumnSeries.js",[y["parts/Globals.js"],y["parts/Color.js"],y["mixins/legend-symbol.js"],y["parts/Utilities.js"]],function(f,m,y,r){var F=m.parse,I=r.animObject,G=r.clamp,B=r.defined,D=r.extend,K=r.isNumber,z=r.merge,x=r.pick;m=r.seriesType;var A=f.Series;
m("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){A.prototype.init.apply(this,
arguments);var f=this,n=f.chart;n.hasRendered&&n.series.forEach(function(l){l.type===f.type&&(l.isDirty=!0)})},getColumnMetrics:function(){var f=this,n=f.options,l=f.xAxis,q=f.yAxis,e=l.options.reversedStacks;e=l.reversed&&!e||!l.reversed&&e;var b,g={},p=0;!1===n.grouping?p=1:f.chart.series.forEach(function(a){var c=a.yAxis,e=a.options;if(a.type===f.type&&(a.visible||!f.chart.options.chart.ignoreHiddenSeries)&&q.len===c.len&&q.pos===c.pos){if(e.stacking){b=a.stackKey;"undefined"===typeof g[b]&&(g[b]=
p++);var h=g[b]}else!1!==e.grouping&&(h=p++);a.columnIndex=h}});var c=Math.min(Math.abs(l.transA)*(l.ordinalSlope||n.pointRange||l.closestPointRange||l.tickInterval||1),l.len),a=c*n.groupPadding,w=(c-2*a)/(p||1);n=Math.min(n.maxPointWidth||l.len,x(n.pointWidth,w*(1-2*n.pointPadding)));f.columnMetrics={width:n,offset:(w-n)/2+(a+((f.columnIndex||0)+(e?1:0))*w-c/2)*(e?-1:1)};return f.columnMetrics},crispCol:function(f,n,l,q){var e=this.chart,b=this.borderWidth,g=-(b%2?.5:0);b=b%2?.5:1;e.inverted&&e.renderer.isVML&&
(b+=1);this.options.crisp&&(l=Math.round(f+l)+g,f=Math.round(f)+g,l-=f);q=Math.round(n+q)+b;g=.5>=Math.abs(n)&&.5<q;n=Math.round(n)+b;q-=n;g&&q&&(--n,q+=1);return{x:f,y:n,width:l,height:q}},translate:function(){var f=this,n=f.chart,l=f.options,q=f.dense=2>f.closestPointRange*f.xAxis.transA;q=f.borderWidth=x(l.borderWidth,q?0:1);var e=f.xAxis,b=f.yAxis,g=l.threshold,p=f.translatedThreshold=b.getThreshold(g),c=x(l.minPointLength,5),a=f.getColumnMetrics(),w=a.width,m=f.barW=Math.max(w,1+2*q),v=f.pointXOffset=
a.offset,k=f.dataMin,h=f.dataMax;n.inverted&&(p-=.5);l.pointPadding&&(m=Math.ceil(m));A.prototype.translate.apply(f);f.points.forEach(function(a){var l=x(a.yBottom,p),t=999+Math.abs(l),q=w,C=a.plotX;t=G(a.plotY,-t,b.len+t);var d=a.plotX+v,u=m,E=Math.min(t,l),z=Math.max(t,l)-E;if(c&&Math.abs(z)<c){z=c;var r=!b.reversed&&!a.negative||b.reversed&&a.negative;a.y===g&&f.dataMax<=g&&b.min<g&&k!==h&&(r=!r);E=Math.abs(E-p)>c?l-c:p-(r?c:0)}B(a.options.pointWidth)&&(q=u=Math.ceil(a.options.pointWidth),d-=Math.round((q-
w)/2));a.barX=d;a.pointWidth=q;a.tooltipPos=n.inverted?[b.len+b.pos-n.plotLeft-t,e.len+e.pos-n.plotTop-(C||0)-v-u/2,z]:[d+u/2,t+b.pos-n.plotTop,z];a.shapeType=f.pointClass.prototype.shapeType||"rect";a.shapeArgs=f.crispCol.apply(f,a.isNull?[d,p,u,0]:[d,E,u,z])})},getSymbol:f.noop,drawLegendSymbol:y.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(f,n){var l=this.options,q=this.pointAttrToOptions||{};var e=q.stroke||
"borderColor";var b=q["stroke-width"]||"borderWidth",g=f&&f.color||this.color,p=f&&f[e]||l[e]||this.color||g,c=f&&f[b]||l[b]||this[b]||0;q=f&&f.options.dashStyle||l.dashStyle;var a=x(f&&f.opacity,l.opacity,1);if(f&&this.zones.length){var w=f.getZone();g=f.options.color||w&&(w.color||f.nonZonedColor)||this.color;w&&(p=w.borderColor||p,q=w.dashStyle||q,c=w.borderWidth||c)}n&&f&&(f=z(l.states[n],f.options.states&&f.options.states[n]||{}),n=f.brightness,g=f.color||"undefined"!==typeof n&&F(g).brighten(f.brightness).get()||
g,p=f[e]||p,c=f[b]||c,q=f.dashStyle||q,a=x(f.opacity,a));e={fill:g,stroke:p,"stroke-width":c,opacity:a};q&&(e.dashstyle=q);return e},drawPoints:function(){var f=this,n=this.chart,l=f.options,q=n.renderer,e=l.animationLimit||250,b;f.points.forEach(function(g){var p=g.graphic,c=!!p,a=p&&n.pointCount<e?"animate":"attr";if(K(g.plotY)&&null!==g.y){b=g.shapeArgs;p&&g.hasNewShapeType()&&(p=p.destroy());f.enabledDataSorting&&(g.startXPos=f.xAxis.reversed?-(b?b.width:0):f.xAxis.width);p||(g.graphic=p=q[g.shapeType](b).add(g.group||
f.group))&&f.enabledDataSorting&&n.hasRendered&&n.pointCount<e&&(p.attr({x:g.startXPos}),c=!0,a="animate");if(p&&c)p[a](z(b));if(l.borderRadius)p[a]({r:l.borderRadius});n.styledMode||p[a](f.pointAttribs(g,g.selected&&"select")).shadow(!1!==g.allowShadow&&l.shadow,null,l.stacking&&!l.borderRadius);p.addClass(g.getClassName(),!0)}else p&&(g.graphic=p.destroy())})},animate:function(f){var n=this,l=this.yAxis,q=n.options,e=this.chart.inverted,b={},g=e?"translateX":"translateY";if(f)b.scaleY=.001,f=G(l.toPixels(q.threshold),
l.pos,l.pos+l.len),e?b.translateX=f-l.len:b.translateY=f,n.clipBox&&n.setClip(),n.group.attr(b);else{var p=n.group.attr(g);n.group.animate({scaleY:1},D(I(n.options.animation),{step:function(c,a){b[g]=p+a.pos*(l.pos-p);n.group.attr(b)}}))}},remove:function(){var f=this,n=f.chart;n.hasRendered&&n.series.forEach(function(l){l.type===f.type&&(l.isDirty=!0)});A.prototype.remove.apply(f,arguments)}});""});P(y,"parts/BarSeries.js",[y["parts/Utilities.js"]],function(f){f=f.seriesType;f("bar","column",null,
{inverted:!0});""});P(y,"parts/ScatterSeries.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var y=m.addEvent;m=m.seriesType;var r=f.Series;m("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group",
"markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&r.prototype.drawGraph.call(this)},applyJitter:function(){var f=this,m=this.options.jitter,r=this.points.length;m&&this.points.forEach(function(B,D){["x","y"].forEach(function(y,z){var x="plot"+y.toUpperCase();if(m[y]&&!B.isNull){var A=f[y+"Axis"];var u=m[y]*A.transA;if(A&&!A.isLog){var n=Math.max(0,B[x]-u);A=Math.min(A.len,B[x]+u);z=1E4*Math.sin(D+z*r);B[x]=n+(A-n)*(z-Math.floor(z));"x"===y&&(B.clientX=
B.plotX)}}})})}});y(r,"afterTranslate",function(){this.applyJitter&&this.applyJitter()});""});P(y,"mixins/centered-series.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var y=m.isNumber,r=m.pick,F=m.relativeLength,N=f.deg2rad;f.CenteredSeriesMixin={getCenter:function(){var f=this.options,m=this.chart,D=2*(f.slicedOffset||0),y=m.plotWidth-2*D,z=m.plotHeight-2*D,x=f.center,A=Math.min(y,z),u=f.size,n=f.innerSize||0;"string"===typeof u&&(u=parseFloat(u));"string"===typeof n&&(n=parseFloat(n));
f=[r(x[0],"50%"),r(x[1],"50%"),r(u&&0>u?void 0:f.size,"100%"),r(n&&0>n?void 0:f.innerSize||0,"0%")];m.angular&&(f[3]=0);for(x=0;4>x;++x)u=f[x],m=2>x||2===x&&/%$/.test(u),f[x]=F(u,[y,z,A,f[2]][x])+(m?D:0);f[3]>f[2]&&(f[3]=f[2]);return f},getStartAndEndRadians:function(f,m){f=y(f)?f:0;m=y(m)&&m>f&&360>m-f?m:f+360;return{start:N*(f+-90),end:N*(m+-90)}}}});P(y,"parts/PieSeries.js",[y["parts/Globals.js"],y["mixins/legend-symbol.js"],y["parts/Point.js"],y["parts/Utilities.js"]],function(f,m,y,r){var F=
r.addEvent,I=r.clamp,G=r.defined,B=r.fireEvent,D=r.isNumber,K=r.merge,z=r.pick,x=r.relativeLength,A=r.seriesType,u=r.setAnimation;r=f.CenteredSeriesMixin;var n=r.getStartAndEndRadians,l=f.noop,q=f.Series;A("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,
inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:f.seriesTypes.column.prototype.pointAttribs,animate:function(e){var b=this,g=b.points,f=b.startAngleRad;e||g.forEach(function(c){var a=c.graphic,
e=c.shapeArgs;a&&e&&(a.attr({r:z(c.startR,b.center&&b.center[3]/2),start:f,end:f}),a.animate({r:e.r,start:e.start,end:e.end},b.options.animation))})},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var e,b=0,g=this.points,f=g.length,c=this.options.ignoreHiddenPoint;for(e=0;e<f;e++){var a=g[e];b+=c&&!a.visible?0:a.isNull?0:a.y}this.total=b;for(e=0;e<f;e++)a=g[e],a.percentage=0<b&&(a.visible||!c)?a.y/b*100:0,a.total=b},generatePoints:function(){q.prototype.generatePoints.call(this);
this.updateTotals()},getX:function(e,b,g){var f=this.center,c=this.radii?this.radii[g.index]:f[2]/2;e=Math.asin(I((e-f[1])/(c+g.labelDistance),-1,1));return f[0]+(b?-1:1)*Math.cos(e)*(c+g.labelDistance)+(0<g.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)},translate:function(e){this.generatePoints();var b=0,g=this.options,f=g.slicedOffset,c=f+(g.borderWidth||0),a=n(g.startAngle,g.endAngle),l=this.startAngleRad=a.start;a=(this.endAngleRad=a.end)-l;var m=this.points,v=g.dataLabels.distance;
g=g.ignoreHiddenPoint;var k,h=m.length;e||(this.center=e=this.getCenter());for(k=0;k<h;k++){var t=m[k];var q=l+b*a;if(!g||t.visible)b+=t.percentage/100;var u=l+b*a;t.shapeType="arc";t.shapeArgs={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(1E3*q)/1E3,end:Math.round(1E3*u)/1E3};t.labelDistance=z(t.options.dataLabels&&t.options.dataLabels.distance,v);t.labelDistance=x(t.labelDistance,t.shapeArgs.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,t.labelDistance);u=(u+q)/2;u>1.5*Math.PI?
u-=2*Math.PI:u<-Math.PI/2&&(u+=2*Math.PI);t.slicedTranslation={translateX:Math.round(Math.cos(u)*f),translateY:Math.round(Math.sin(u)*f)};var r=Math.cos(u)*e[2]/2;var C=Math.sin(u)*e[2]/2;t.tooltipPos=[e[0]+.7*r,e[1]+.7*C];t.half=u<-Math.PI/2||u>Math.PI/2?1:0;t.angle=u;q=Math.min(c,t.labelDistance/5);t.labelPosition={natural:{x:e[0]+r+Math.cos(u)*t.labelDistance,y:e[1]+C+Math.sin(u)*t.labelDistance},"final":{},alignment:0>t.labelDistance?"center":t.half?"right":"left",connectorPosition:{breakAt:{x:e[0]+
r+Math.cos(u)*q,y:e[1]+C+Math.sin(u)*q},touchingSliceAt:{x:e[0]+r,y:e[1]+C}}}}B(this,"afterTranslate")},drawEmpty:function(){var e=this.options;if(0===this.total){var b=this.center[0];var g=this.center[1];this.graph||(this.graph=this.chart.renderer.circle(b,g,0).addClass("highcharts-graph").add(this.group));this.graph.animate({"stroke-width":e.borderWidth,cx:b,cy:g,r:this.center[2]/2,fill:e.fillColor||"none",stroke:e.color||"#cccccc"},this.options.animation)}else this.graph&&(this.graph=this.graph.destroy())},
redrawPoints:function(){var e=this,b=e.chart,g=b.renderer,f,c,a,l,n=e.options.shadow;this.drawEmpty();!n||e.shadowGroup||b.styledMode||(e.shadowGroup=g.g("shadow").attr({zIndex:-1}).add(e.group));e.points.forEach(function(p){var k={};c=p.graphic;if(!p.isNull&&c){l=p.shapeArgs;f=p.getTranslate();if(!b.styledMode){var h=p.shadowGroup;n&&!h&&(h=p.shadowGroup=g.g("shadow").add(e.shadowGroup));h&&h.attr(f);a=e.pointAttribs(p,p.selected&&"select")}p.delayedRendering?(c.setRadialReference(e.center).attr(l).attr(f),
b.styledMode||c.attr(a).attr({"stroke-linejoin":"round"}).shadow(n,h),p.delayedRendering=!1):(c.setRadialReference(e.center),b.styledMode||K(!0,k,a),K(!0,k,l,f),c.animate(k));c.attr({visibility:p.visible?"inherit":"hidden"});c.addClass(p.getClassName())}else c&&(p.graphic=c.destroy())})},drawPoints:function(){var e=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||(b.graphic=e[b.shapeType](b.shapeArgs).add(b.series.group),
b.delayedRendering=!0)})},searchPoint:l,sortByAngle:function(e,b){e.sort(function(e,f){return"undefined"!==typeof e.angle&&(f.angle-e.angle)*b})},drawLegendSymbol:m.drawRectangle,getCenter:r.getCenter,getSymbol:l,drawGraph:null},{init:function(){y.prototype.init.apply(this,arguments);var e=this;e.name=z(e.name,"Slice");var b=function(b){e.slice("select"===b.type)};F(e,"select",b);F(e,"unselect",b);return e},isValid:function(){return D(this.y)&&0<=this.y},setVisible:function(e,b){var g=this,f=g.series,
c=f.chart,a=f.options.ignoreHiddenPoint;b=z(b,a);e!==g.visible&&(g.visible=g.options.visible=e="undefined"===typeof e?!g.visible:e,f.options.data[f.data.indexOf(g)]=g.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(a){if(g[a])g[a][e?"show":"hide"](!0)}),g.legendItem&&c.legend.colorizeItem(g,e),e||"hover"!==g.state||g.setState(""),a&&(f.isDirty=!0),b&&c.redraw())},slice:function(e,b,g){var f=this.series;u(g,f.chart);z(b,!0);this.sliced=this.options.sliced=G(e)?e:!this.sliced;
f.options.data[f.data.indexOf(this)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(e){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+e,b.r+e,{innerR:b.r-1,start:b.start,end:b.end})},connectorShapes:{fixedOffset:function(e,b,g){var f=b.breakAt;b=b.touchingSliceAt;
return["M",e.x,e.y].concat(g.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*f.x-b.x,2*f.y-b.y,f.x,f.y]:["L",f.x,f.y]).concat(["L",b.x,b.y])},straight:function(e,b){b=b.touchingSliceAt;return["M",e.x,e.y,"L",b.x,b.y]},crookedLine:function(e,b,g){b=b.touchingSliceAt;var f=this.series,c=f.center[0],a=f.chart.plotWidth,l=f.chart.plotLeft;f=e.alignment;var n=this.shapeArgs.r;g=x(g.crookDistance,1);g="left"===f?c+n+(a+l-c-n)*(1-g):l+(c-n)*g;c=["L",g,e.y];if("left"===f?g>e.x||g<b.x:g<e.x||g>b.x)c=
[];return["M",e.x,e.y].concat(c).concat(["L",b.x,b.y])}},getConnectorPath:function(){var e=this.labelPosition,b=this.series.options.dataLabels,g=b.connectorShape,f=this.connectorShapes;f[g]&&(g=f[g]);return g.call(this,{x:e.final.x,y:e.final.y,alignment:e.alignment},e.connectorPosition,b)}});""});P(y,"parts/DataLabels.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var y=m.animObject,r=m.arrayMax,F=m.clamp,N=m.defined,G=m.extend,B=m.format,D=m.isArray,K=m.merge,z=m.objectEach,x=
m.pick,A=m.relativeLength,u=m.splat,n=m.stableSort;m=f.noop;var l=f.Series,q=f.seriesTypes;f.distribute=function(e,b,g){function p(a,b){return a.target-b.target}var c,a=!0,l=e,m=[];var v=0;var k=l.reducedLen||b;for(c=e.length;c--;)v+=e[c].size;if(v>k){n(e,function(a,b){return(b.rank||0)-(a.rank||0)});for(v=c=0;v<=k;)v+=e[c].size,c++;m=e.splice(c-1,e.length)}n(e,p);for(e=e.map(function(a){return{size:a.size,targets:[a.target],align:x(a.align,.5)}});a;){for(c=e.length;c--;)a=e[c],v=(Math.min.apply(0,
a.targets)+Math.max.apply(0,a.targets))/2,a.pos=F(v-a.size*a.align,0,b-a.size);c=e.length;for(a=!1;c--;)0<c&&e[c-1].pos+e[c-1].size>e[c].pos&&(e[c-1].size+=e[c].size,e[c-1].targets=e[c-1].targets.concat(e[c].targets),e[c-1].align=.5,e[c-1].pos+e[c-1].size>b&&(e[c-1].pos=b-e[c-1].size),e.splice(c,1),a=!0)}l.push.apply(l,m);c=0;e.some(function(a){var e=0;if(a.targets.some(function(){l[c].pos=a.pos+e;if("undefined"!==typeof g&&Math.abs(l[c].pos-l[c].target)>g)return l.slice(0,c+1).forEach(function(a){delete a.pos}),
l.reducedLen=(l.reducedLen||b)-.1*b,l.reducedLen>.1*b&&f.distribute(l,b,g),!0;e+=l[c].size;c++}))return!0});n(l,p)};l.prototype.drawDataLabels=function(){function e(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,">"===b&&a>d||"<"===b&&a<d||">="===b&&a>=d||"<="===b&&a<=d||"=="===b&&a==d||"==="===b&&a===d?!0:!1):!0}function b(a,b){var d=[],c;if(D(a)&&!D(b))d=a.map(function(a){return K(a,b)});else if(D(b)&&!D(a))d=b.map(function(d){return K(a,d)});else if(D(a)||D(b))for(c=Math.max(a.length,
b.length);c--;)d[c]=K(a[c],b[c]);else d=K(a,b);return d}var g=this,p=g.chart,c=g.options,a=c.dataLabels,l=g.points,n,v=g.hasRendered||0,k=y(c.animation).duration,h=Math.min(k,200),t=!p.renderer.forExport&&x(a.defer,0<h),m=p.renderer;a=b(b(p.options.plotOptions&&p.options.plotOptions.series&&p.options.plotOptions.series.dataLabels,p.options.plotOptions&&p.options.plotOptions[g.type]&&p.options.plotOptions[g.type].dataLabels),a);f.fireEvent(this,"drawDataLabels");if(D(a)||a.enabled||g._hasPointLabels){var q=
g.plotGroup("dataLabelsGroup","data-labels",t&&!v?"hidden":"inherit",a.zIndex||6);t&&(q.attr({opacity:+v}),v||setTimeout(function(){var a=g.dataLabelsGroup;a&&(g.visible&&q.show(!0),a[c.animation?"animate":"attr"]({opacity:1},{duration:h}))},k-h));l.forEach(function(h){n=u(b(a,h.dlOptions||h.options&&h.options.dataLabels));n.forEach(function(a,d){var b=a.enabled&&(!h.isNull||h.dataLabelOnNull)&&e(h,a),k=h.dataLabels?h.dataLabels[d]:h.dataLabel,f=h.connectors?h.connectors[d]:h.connector,l=x(a.distance,
h.labelDistance),t=!k;if(b){var n=h.getLabelConfig();var v=x(a[h.formatPrefix+"Format"],a.format);n=N(v)?B(v,n,p):(a[h.formatPrefix+"Formatter"]||a.formatter).call(n,a);v=a.style;var w=a.rotation;p.styledMode||(v.color=x(a.color,v.color,g.color,"#000000"),"contrast"===v.color?(h.contrastColor=m.getContrast(h.color||g.color),v.color=!N(l)&&a.inside||0>l||c.stacking?h.contrastColor:"#000000"):delete h.contrastColor,c.cursor&&(v.cursor=c.cursor));var C={r:a.borderRadius||0,rotation:w,padding:a.padding,
zIndex:1};p.styledMode||(C.fill=a.backgroundColor,C.stroke=a.borderColor,C["stroke-width"]=a.borderWidth);z(C,function(a,d){"undefined"===typeof a&&delete C[d]})}!k||b&&N(n)?b&&N(n)&&(k?C.text=n:(h.dataLabels=h.dataLabels||[],k=h.dataLabels[d]=w?m.text(n,0,-9999,a.useHTML).addClass("highcharts-data-label"):m.label(n,0,-9999,a.shape,null,null,a.useHTML,null,"data-label"),d||(h.dataLabel=k),k.addClass(" highcharts-data-label-color-"+h.colorIndex+" "+(a.className||"")+(a.useHTML?" highcharts-tracker":
""))),k.options=a,k.attr(C),p.styledMode||k.css(v).shadow(a.shadow),k.added||k.add(q),a.textPath&&!a.useHTML&&(k.setTextPath(h.getDataLabelPath&&h.getDataLabelPath(k)||h.graphic,a.textPath),h.dataLabelPath&&!a.textPath.enabled&&(h.dataLabelPath=h.dataLabelPath.destroy())),g.alignDataLabel(h,k,a,null,t)):(h.dataLabel=h.dataLabel&&h.dataLabel.destroy(),h.dataLabels&&(1===h.dataLabels.length?delete h.dataLabels:delete h.dataLabels[d]),d||delete h.dataLabel,f&&(h.connector=h.connector.destroy(),h.connectors&&
(1===h.connectors.length?delete h.connectors:delete h.connectors[d])))})})}f.fireEvent(this,"afterDrawDataLabels")};l.prototype.alignDataLabel=function(e,b,g,f,c){var a=this,p=this.chart,l=this.isCartesian&&p.inverted,n=this.enabledDataSorting,k=x(e.dlBox&&e.dlBox.centerX,e.plotX,-9999),h=x(e.plotY,-9999),t=b.getBBox(),m=g.rotation,q=g.align,u=p.isInsidePlot(k,Math.round(h),l),C="justify"===x(g.overflow,n?"none":"justify"),d=this.visible&&!1!==e.visible&&(e.series.forceDL||n&&!C||u||g.inside&&f&&
p.isInsidePlot(k,l?f.x+1:f.y+f.height-1,l));var z=function(d){n&&a.xAxis&&!C&&a.setDataLabelStartPos(e,b,c,u,d)};if(d){var r=p.renderer.fontMetrics(p.styledMode?void 0:g.style.fontSize,b).b;f=G({x:l?this.yAxis.len-h:k,y:Math.round(l?this.xAxis.len-k:h),width:0,height:0},f);G(g,{width:t.width,height:t.height});m?(C=!1,k=p.renderer.rotCorr(r,m),k={x:f.x+g.x+f.width/2+k.x,y:f.y+g.y+{top:0,middle:.5,bottom:1}[g.verticalAlign]*f.height},z(k),b[c?"attr":"animate"](k).attr({align:q}),z=(m+720)%360,z=180<
z&&360>z,"left"===q?k.y-=z?t.height:0:"center"===q?(k.x-=t.width/2,k.y-=t.height/2):"right"===q&&(k.x-=t.width,k.y-=z?0:t.height),b.placed=!0,b.alignAttr=k):(z(f),b.align(g,null,f),k=b.alignAttr);C&&0<=f.height?this.justifyDataLabel(b,g,k,t,f,c):x(g.crop,!0)&&(d=p.isInsidePlot(k.x,k.y)&&p.isInsidePlot(k.x+t.width,k.y+t.height));if(g.shape&&!m)b[c?"attr":"animate"]({anchorX:l?p.plotWidth-e.plotY:e.plotX,anchorY:l?p.plotHeight-e.plotX:e.plotY})}c&&n&&(b.placed=!1);d||n&&!C||(b.hide(!0),b.placed=!1)};
l.prototype.setDataLabelStartPos=function(e,b,g,f,c){var a=this.chart,p=a.inverted,l=this.xAxis,n=l.reversed,k=p?b.height/2:b.width/2;e=(e=e.pointWidth)?e/2:0;l=p?c.x:n?-k-e:l.width-k+e;c=p?n?this.yAxis.height-k+e:-k-e:c.y;b.startXPos=l;b.startYPos=c;f?"hidden"===b.visibility&&(b.show(),b.attr({opacity:0}).animate({opacity:1})):b.attr({opacity:1}).animate({opacity:0},void 0,b.hide);a.hasRendered&&(g&&b.attr({x:b.startXPos,y:b.startYPos}),b.placed=!0)};l.prototype.justifyDataLabel=function(e,b,g,f,
c,a){var p=this.chart,l=b.align,n=b.verticalAlign,k=e.box?0:e.padding||0;var h=g.x+k;if(0>h){"right"===l?(b.align="left",b.inside=!0):b.x=-h;var t=!0}h=g.x+f.width-k;h>p.plotWidth&&("left"===l?(b.align="right",b.inside=!0):b.x=p.plotWidth-h,t=!0);h=g.y+k;0>h&&("bottom"===n?(b.verticalAlign="top",b.inside=!0):b.y=-h,t=!0);h=g.y+f.height-k;h>p.plotHeight&&("top"===n?(b.verticalAlign="bottom",b.inside=!0):b.y=p.plotHeight-h,t=!0);t&&(e.placed=!a,e.align(b,null,c));return t};q.pie&&(q.pie.prototype.dataLabelPositioners=
{radialDistributionY:function(e){return e.top+e.distributeBox.pos},radialDistributionX:function(e,b,g,f){return e.getX(g<b.top+2||g>b.bottom-2?f:g,b.half,b)},justify:function(e,b,g){return g[0]+(e.half?-1:1)*(b+e.labelDistance)},alignToPlotEdges:function(e,b,g,f){e=e.getBBox().width;return b?e+f:g-e-f},alignToConnectors:function(e,b,g,f){var c=0,a;e.forEach(function(b){a=b.dataLabel.getBBox().width;a>c&&(c=a)});return b?c+f:g-c-f}},q.pie.prototype.drawDataLabels=function(){var e=this,b=e.data,g,p=
e.chart,c=e.options.dataLabels||{},a=c.connectorPadding,n,m=p.plotWidth,v=p.plotHeight,k=p.plotLeft,h=Math.round(p.chartWidth/3),t,q=e.center,u=q[2]/2,z=q[1],C,d,A,H,D=[[],[]],B,y,F,I,G=[0,0,0,0],P=e.dataLabelPositioners,Z;e.visible&&(c.enabled||e._hasPointLabels)&&(b.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),l.prototype.drawDataLabels.apply(e),b.forEach(function(a){a.dataLabel&&
(a.visible?(D[a.half].push(a),a.dataLabel._pos=null,!N(c.style.width)&&!N(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>h&&(a.dataLabel.css({width:.7*h}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),D.forEach(function(b,h){var l=b.length,t=[],n;if(l){e.sortByAngle(b,h-.5);if(0<e.maxLabelDistance){var w=Math.max(0,z-u-e.maxLabelDistance);var L=Math.min(z+
u+e.maxLabelDistance,p.plotHeight);b.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,z-u-a.labelDistance),a.bottom=Math.min(z+u+a.labelDistance,p.plotHeight),n=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+n/2,size:n,rank:a.y},t.push(a.distributeBox))});w=L+n-w;f.distribute(t,w,w/5)}for(I=0;I<l;I++){g=b[I];A=g.labelPosition;C=g.dataLabel;F=!1===g.visible?"hidden":"inherit";y=w=A.natural.y;t&&N(g.distributeBox)&&("undefined"===typeof g.distributeBox.pos?
F="hidden":(H=g.distributeBox.size,y=P.radialDistributionY(g)));delete g.positionIndex;if(c.justify)B=P.justify(g,u,q);else switch(c.alignTo){case "connectors":B=P.alignToConnectors(b,h,m,k);break;case "plotEdges":B=P.alignToPlotEdges(C,h,m,k);break;default:B=P.radialDistributionX(e,g,y,w)}C._attr={visibility:F,align:A.alignment};Z=g.options.dataLabels||{};C._pos={x:B+x(Z.x,c.x)+({left:a,right:-a}[A.alignment]||0),y:y+x(Z.y,c.y)-10};A.final.x=B;A.final.y=y;x(c.crop,!0)&&(d=C.getBBox().width,w=null,
B-d<a&&1===h?(w=Math.round(d-B+a),G[3]=Math.max(w,G[3])):B+d>m-a&&0===h&&(w=Math.round(B+d-m+a),G[1]=Math.max(w,G[1])),0>y-H/2?G[0]=Math.max(Math.round(-y+H/2),G[0]):y+H/2>v&&(G[2]=Math.max(Math.round(y+H/2-v),G[2])),C.sideOverflow=w)}}}),0===r(G)||this.verifyDataLabelOverflow(G))&&(this.placeDataLabels(),this.points.forEach(function(a){Z=K(c,a.options.dataLabels);if(n=x(Z.connectorWidth,1)){var d;t=a.connector;if((C=a.dataLabel)&&C._pos&&a.visible&&0<a.labelDistance){F=C._attr.visibility;if(d=!t)a.connector=
t=p.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+a.colorIndex+(a.className?" "+a.className:"")).add(e.dataLabelsGroup),p.styledMode||t.attr({"stroke-width":n,stroke:Z.connectorColor||a.color||"#666666"});t[d?"attr":"animate"]({d:a.getConnectorPath()});t.attr("visibility",F)}else t&&(a.connector=t.destroy())}}))},q.pie.prototype.placeDataLabels=function(){this.points.forEach(function(e){var b=e.dataLabel,g;b&&e.visible&&((g=b._pos)?(b.sideOverflow&&(b._attr.width=Math.max(b.getBBox().width-
b.sideOverflow,0),b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](g),b.moved=!0):b&&b.attr({y:-9999}));delete e.distributeBox},this)},q.pie.prototype.alignDataLabel=m,q.pie.prototype.verifyDataLabelOverflow=function(e){var b=this.center,g=this.options,f=g.center,c=g.minSize||80,a=null!==g.size;if(!a){if(null!==f[0])var l=Math.max(b[2]-Math.max(e[1],e[3]),c);else l=Math.max(b[2]-
e[1]-e[3],c),b[0]+=(e[3]-e[1])/2;null!==f[1]?l=F(l,c,b[2]-Math.max(e[0],e[2])):(l=F(l,c,b[2]-e[0]-e[2]),b[1]+=(e[0]-e[2])/2);l<b[2]?(b[2]=l,b[3]=Math.min(A(g.innerSize||0,l),l),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):a=!0}return a});q.column&&(q.column.prototype.alignDataLabel=function(e,b,g,f,c){var a=this.chart.inverted,p=e.series,n=e.dlBox||e.shapeArgs,m=x(e.below,e.plotY>x(this.translatedThreshold,p.yAxis.len)),k=x(g.inside,!!this.options.stacking);n&&(f=K(n),0>f.y&&(f.height+=
f.y,f.y=0),n=f.y+f.height-p.yAxis.len,0<n&&n<f.height&&(f.height-=n),a&&(f={x:p.yAxis.len-f.y-f.height,y:p.xAxis.len-f.x-f.width,width:f.height,height:f.width}),k||(a?(f.x+=m?0:f.width,f.width=0):(f.y+=m?f.height:0,f.height=0)));g.align=x(g.align,!a||k?"center":m?"right":"left");g.verticalAlign=x(g.verticalAlign,a||k?"middle":m?"top":"bottom");l.prototype.alignDataLabel.call(this,e,b,g,f,c);g.inside&&e.contrastColor&&b.css({color:e.contrastColor})})});P(y,"modules/overlapping-datalabels.src.js",[y["parts/Globals.js"],
y["parts/Utilities.js"]],function(f,m){var y=m.addEvent,r=m.fireEvent,F=m.isArray,N=m.objectEach,G=m.pick;f=f.Chart;y(f,"render",function(){var f=[];(this.labelCollectors||[]).forEach(function(m){f=f.concat(m())});(this.yAxis||[]).forEach(function(m){m.options.stackLabels&&!m.options.stackLabels.allowOverlap&&N(m.stacks,function(m){N(m,function(m){f.push(m.label)})})});(this.series||[]).forEach(function(m){var r=m.options.dataLabels;m.visible&&(!1!==r.enabled||m._hasPointLabels)&&(m.nodes||m.points).forEach(function(m){m.visible&&
(F(m.dataLabels)?m.dataLabels:m.dataLabel?[m.dataLabel]:[]).forEach(function(x){var z=x.options;x.labelrank=G(z.labelrank,m.labelrank,m.shapeArgs&&m.shapeArgs.height);z.allowOverlap||f.push(x)})})});this.hideOverlappingLabels(f)});f.prototype.hideOverlappingLabels=function(f){var m=this,B=f.length,z=m.renderer,x,A,u,n=!1;var l=function(b){var e=b.box?0:b.padding||0;var f=0;if(b&&(!b.alignAttr||b.placed)){var c=b.alignAttr||{x:b.attr("x"),y:b.attr("y")};var a=b.parentGroup;b.width||(f=b.getBBox(),
b.width=f.width,b.height=f.height,f=z.fontMetrics(null,b.element).h);return{x:c.x+(a.translateX||0)+e,y:c.y+(a.translateY||0)+e-f,width:b.width-2*e,height:b.height-2*e}}};for(A=0;A<B;A++)if(x=f[A])x.oldOpacity=x.opacity,x.newOpacity=1,x.absoluteBox=l(x);f.sort(function(b,e){return(e.labelrank||0)-(b.labelrank||0)});for(A=0;A<B;A++){var q=(l=f[A])&&l.absoluteBox;for(x=A+1;x<B;++x){var e=(u=f[x])&&u.absoluteBox;!q||!e||l===u||0===l.newOpacity||0===u.newOpacity||e.x>q.x+q.width||e.x+e.width<q.x||e.y>
q.y+q.height||e.y+e.height<q.y||((l.labelrank<u.labelrank?l:u).newOpacity=0)}}f.forEach(function(b){var e;if(b){var f=b.newOpacity;b.oldOpacity!==f&&(b.alignAttr&&b.placed?(f?b.show(!0):e=function(){b.hide(!0);b.placed=!1},n=!0,b.alignAttr.opacity=f,b[b.isOld?"animate":"attr"](b.alignAttr,null,e),r(m,"afterHideOverlappingLabel")):b.attr({opacity:f}));b.isOld=!0}});n&&r(m,"afterHideAllOverlappingLabels")}});P(y,"parts/Interaction.js",[y["parts/Globals.js"],y["parts/Legend.js"],y["parts/Point.js"],
y["parts/Utilities.js"]],function(f,m,y,r){var F=r.addEvent,I=r.createElement,G=r.css,B=r.defined,D=r.extend,K=r.fireEvent,z=r.isArray,x=r.isFunction,A=r.isObject,u=r.merge,n=r.objectEach,l=r.pick;r=f.Chart;var q=f.defaultOptions,e=f.defaultPlotOptions,b=f.hasTouch,g=f.Series,p=f.seriesTypes,c=f.svg;f=f.TrackerMixin={drawTrackerPoint:function(){var a=this,c=a.chart,e=c.pointer,g=function(a){var b=e.getPointFromEvent(a);"undefined"!==typeof b&&(e.isDirectTouch=!0,b.onMouseOver(a))},k;a.points.forEach(function(a){k=
z(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);k.forEach(function(b){b.div?b.div.point=a:b.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(h){if(a[h]){a[h].addClass("highcharts-tracker").on("mouseover",g).on("mouseout",function(a){e.onTrackerMouseOut(a)});if(b)a[h].on("touchstart",g);!c.styledMode&&a.options.cursor&&a[h].css(G).css({cursor:a.options.cursor})}}),a._hasTracking=!0);K(this,"afterDrawTracker")},drawTrackerGraph:function(){var a=
this,e=a.options,g=e.trackByArea,f=[].concat(g?a.areaPath:a.graphPath),k=f.length,h=a.chart,l=h.pointer,p=h.renderer,n=h.options.tooltip.snap,m=a.tracker,q,d=function(d){l.normalize(d);if(h.hoverSeries!==a&&!l.isStickyTooltip(d))a.onMouseOver()},u="rgba(192,192,192,"+(c?.0001:.002)+")";if(k&&!g)for(q=k+1;q--;)"M"===f[q]&&f.splice(q+1,0,f[q+1]-n,f[q+2],"L"),(q&&"M"===f[q]||q===k)&&f.splice(q,0,"L",f[q-2]+n,f[q-1]);m?m.attr({d:f}):a.graph&&(a.tracker=p.path(f).attr({visibility:a.visible?"visible":"hidden",
zIndex:2}).addClass(g?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),h.styledMode||a.tracker.attr({"stroke-linejoin":"round",stroke:u,fill:g?u:"none","stroke-width":a.graph.strokeWidth()+(g?0:2*n)}),[a.tracker,a.markerGroup].forEach(function(a){a.addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(a){l.onTrackerMouseOut(a)});e.cursor&&!h.styledMode&&a.css({cursor:e.cursor});if(b)a.on("touchstart",d)}));K(this,"afterDrawTracker")}};p.column&&(p.column.prototype.drawTracker=
f.drawTrackerPoint);p.pie&&(p.pie.prototype.drawTracker=f.drawTrackerPoint);p.scatter&&(p.scatter.prototype.drawTracker=f.drawTrackerPoint);D(m.prototype,{setItemEvents:function(a,b,c){var e=this,k=e.chart.renderer.boxWrapper,h=a instanceof y,g="highcharts-legend-"+(h?"point":"series")+"-active",f=e.chart.styledMode;(c?[b,a.legendSymbol]:[a.legendGroup]).forEach(function(c){if(c)c.on("mouseover",function(){a.visible&&e.allItems.forEach(function(b){a!==b&&b.setState("inactive",!h)});a.setState("hover");
a.visible&&k.addClass(g);f||b.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||b.css(u(a.visible?e.itemStyle:e.itemHiddenStyle));e.allItems.forEach(function(b){a!==b&&b.setState("",!h)});k.removeClass(g);a.setState()}).on("click",function(b){var c=function(){a.setVisible&&a.setVisible();e.allItems.forEach(function(d){a!==d&&d.setState(a.visible?"inactive":"",!h)})};k.removeClass(g);b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):K(a,"legendItemClick",
b,c)})})},createCheckboxForItem:function(a){a.checkbox=I("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);F(a.checkbox,"click",function(b){K(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});D(r.prototype,{showResetZoom:function(){function a(){b.zoomOut()}var b=this,c=q.lang,e=b.options.chart.resetZoomButton,k=e.theme,h=k.states,g="chart"===e.relativeTo||
"spaceBox"===e.relativeTo?null:"plotBox";K(this,"beforeShowResetZoom",null,function(){b.resetZoomButton=b.renderer.button(c.resetZoom,null,null,a,k,h&&h.hover).attr({align:e.position.align,title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(e.position,!1,g)});K(this,"afterShowResetZoom")},zoomOut:function(){K(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(a){var b=this,c,e=b.pointer,k=!1,h=b.inverted?e.mouseDownX:e.mouseDownY;!a||a.resetSelection?(b.axes.forEach(function(a){c=
a.zoom()}),e.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var g=a.axis,f=b.inverted?g.left:g.top,l=b.inverted?f+g.width:f+g.height,d=g.isXAxis,p=!1;if(!d&&h>=f&&h<=l||d||!B(h))p=!0;e[d?"zoomX":"zoomY"]&&p&&(c=g.zoom(a.min,a.max),g.displayBtn&&(k=!0))});var g=b.resetZoomButton;k&&!g?b.showResetZoom():!k&&A(g)&&(b.resetZoomButton=g.destroy());c&&b.redraw(l(b.options.chart.animation,a&&a.animation,100>b.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,k=c.options.chart,h;b="object"===
typeof b?b:{enabled:b,type:"x"};k&&k.panning&&(k.panning=b);var g=b.type;K(this,"pan",{originalEvent:a},function(){e&&e.forEach(function(a){a.setState()});var b=[1];"xy"===g?b=[1,0]:"y"===g&&(b=[0]);b.forEach(function(b){var e=c[b?"xAxis":"yAxis"][0],k=e.options,d=e.horiz,g=a[d?"chartX":"chartY"];d=d?"mouseDownX":"mouseDownY";var f=c[d],l=(e.pointRange||0)/2,p=e.reversed&&!c.inverted||!e.reversed&&c.inverted?-1:1,n=e.getExtremes(),t=e.toValue(f-g,!0)+l*p;p=e.toValue(f+e.len-g,!0)-l*p;var m=p<t;f=
m?p:t;t=m?t:p;p=Math.min(n.dataMin,l?n.min:e.toValue(e.toPixels(n.min)-e.minPixelPadding));l=Math.max(n.dataMax,l?n.max:e.toValue(e.toPixels(n.max)+e.minPixelPadding));if(!k.ordinal){b&&(k=p-f,0<k&&(t+=k,f=p),k=t-l,0<k&&(t=l,f-=k));if(e.series.length&&f!==n.min&&t!==n.max&&b||e.panningState&&f>=e.panningState.startMin&&t<=e.panningState.startMax)e.setExtremes(f,t,!1,!1,{trigger:"pan"}),h=!0;c[d]=g}});h&&c.redraw(!1);G(c.container,{cursor:"move"})})}});D(y.prototype,{select:function(a,b){var c=this,
e=c.series,k=e.chart;this.selectedStaging=a=l(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=a;e.options.data[e.data.indexOf(c)]=c.options;c.setState(a&&"select");b||k.getSelectedPoints().forEach(function(a){var b=a.series;a.selected&&a!==c&&(a.selected=a.options.selected=!1,b.options.data[b.data.indexOf(a)]=a.options,a.setState(k.hoverPoints&&b.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});delete this.selectedStaging},
onMouseOver:function(a){var b=this.series.chart,c=b.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,b.inverted);c.runPointActions(a,this)},onMouseOut:function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var a=this,b=u(a.series.options.point,a.options).events;a.events=b;n(b,function(b,c){x(b)&&
F(a,c,b)});this.hasImportedEvents=!0}},setState:function(a,b){var c=this.series,g=this.state,k=c.options.states[a||"normal"]||{},h=e[c.type].marker&&c.options.marker,f=h&&!1===h.enabled,p=h&&h.states&&h.states[a||"normal"]||{},n=!1===p.enabled,m=c.stateMarkerGraphic,q=this.marker||{},d=c.chart,w=c.halo,u,x=h&&c.markerAttribs;a=a||"";if(!(a===this.state&&!b||this.selected&&"select"!==a||!1===k.enabled||a&&(n||f&&!1===p.enabled)||a&&q.states&&q.states[a]&&!1===q.states[a].enabled)){this.state=a;x&&
(u=c.markerAttribs(this,a));if(this.graphic){g&&this.graphic.removeClass("highcharts-point-"+g);a&&this.graphic.addClass("highcharts-point-"+a);if(!d.styledMode){var z=c.pointAttribs(this,a);var r=l(d.options.chart.animation,k.animation);c.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach(function(a){a&&a.animate({opacity:z.opacity},r)}),this.connector&&this.connector.animate({opacity:z.opacity},r));this.graphic.animate(z,r)}u&&this.graphic.animate(u,l(d.options.chart.animation,p.animation,
h.animation));m&&m.hide()}else{if(a&&p){g=q.symbol||c.symbol;m&&m.currentSymbol!==g&&(m=m.destroy());if(u)if(m)m[b?"animate":"attr"]({x:u.x,y:u.y});else g&&(c.stateMarkerGraphic=m=d.renderer.symbol(g,u.x,u.y,u.width,u.height).add(c.markerGroup),m.currentSymbol=g);!d.styledMode&&m&&m.attr(c.pointAttribs(this,a))}m&&(m[a&&this.isInside?"show":"hide"](),m.element.point=this)}a=k.halo;k=(m=this.graphic||m)&&m.visibility||"inherit";a&&a.size&&m&&"hidden"!==k&&!this.isCluster?(w||(c.halo=w=d.renderer.path().add(m.parentGroup)),
w.show()[b?"animate":"attr"]({d:this.haloPath(a.size)}),w.attr({"class":"highcharts-halo highcharts-color-"+l(this.colorIndex,c.colorIndex)+(this.className?" "+this.className:""),visibility:k,zIndex:-1}),w.point=this,d.styledMode||w.attr(D({fill:this.color||c.color,"fill-opacity":a.opacity},a.attributes))):w&&w.point&&w.point.haloPath&&w.animate({d:w.point.haloPath(0)},null,w.hide);K(this,"afterSetState")}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-
a,this.plotY-a,2*a,2*a)}});D(g.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&K(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,e=b.hoverPoint;b.hoverSeries=null;if(e)e.onMouseOut();this&&a.events.mouseOut&&K(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();b.series.forEach(function(a){a.setState("",!0)})},
setState:function(a,b){var c=this,e=c.options,k=c.graph,h=e.inactiveOtherPoints,g=e.states,f=e.lineWidth,p=e.opacity,n=l(g[a||"normal"]&&g[a||"normal"].animation,c.chart.options.chart.animation);e=0;a=a||"";if(c.state!==a&&([c.group,c.markerGroup,c.dataLabelsGroup].forEach(function(b){b&&(c.state&&b.removeClass("highcharts-series-"+c.state),a&&b.addClass("highcharts-series-"+a))}),c.state=a,!c.chart.styledMode)){if(g[a]&&!1===g[a].enabled)return;a&&(f=g[a].lineWidth||f+(g[a].lineWidthPlus||0),p=l(g[a].opacity,
p));if(k&&!k.dashstyle)for(g={"stroke-width":f},k.animate(g,n);c["zone-graph-"+e];)c["zone-graph-"+e].attr(g),e+=1;h||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(a){a&&a.animate({opacity:p},n)})}b&&h&&c.points&&c.setAllPointsToState(a)},setAllPointsToState:function(a){this.points.forEach(function(b){b.setState&&b.setState(a)})},setVisible:function(a,b){var c=this,e=c.chart,k=c.legendItem,h=e.options.chart.ignoreHiddenSeries,g=c.visible;var f=(c.visible=a=c.options.visible=
c.userOptions.visible="undefined"===typeof a?!g:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(c[a])c[a][f]()});if(e.hoverSeries===c||(e.hoverPoint&&e.hoverPoint.series)===c)c.onMouseOut();k&&e.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&e.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});c.linkedSeries.forEach(function(b){b.setVisible(a,!1)});h&&(e.isDirtyBox=!0);K(c,f);!1!==b&&e.redraw()},show:function(){this.setVisible(!0)},
hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);K(this,a?"select":"unselect")},drawTracker:f.drawTrackerGraph})});P(y,"parts/Responsive.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var y=m.find,r=m.isArray,F=m.isObject,N=m.merge,G=m.objectEach,B=m.pick,D=m.splat,K=m.uniqueKey;f=f.Chart;f.prototype.setResponsive=function(f,m){var x=this.options.responsive,
u=[],n=this.currentResponsive;!m&&x&&x.rules&&x.rules.forEach(function(f){"undefined"===typeof f._id&&(f._id=K());this.matchResponsiveRule(f,u)},this);m=N.apply(0,u.map(function(f){return y(x.rules,function(l){return l._id===f}).chartOptions}));m.isResponsiveOptions=!0;u=u.toString()||void 0;u!==(n&&n.ruleIds)&&(n&&this.update(n.undoOptions,f,!0),u?(n=this.currentOptions(m),n.isResponsiveOptions=!0,this.currentResponsive={ruleIds:u,mergedOptions:m,undoOptions:n},this.update(m,f,!0)):this.currentResponsive=
void 0)};f.prototype.matchResponsiveRule=function(f,m){var x=f.condition;(x.callback||function(){return this.chartWidth<=B(x.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=B(x.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=B(x.minWidth,0)&&this.chartHeight>=B(x.minHeight,0)}).call(this)&&m.push(f._id)};f.prototype.currentOptions=function(f){function m(f,l,q,e){var b;G(f,function(g,f){if(!e&&-1<z.collectionsWithUpdate.indexOf(f))for(g=D(g),q[f]=[],b=0;b<g.length;b++)l[f][b]&&(q[f][b]={},m(g[b],l[f][b],
q[f][b],e+1));else F(g)?(q[f]=r(g)?[]:{},m(g,l[f]||{},q[f],e+1)):q[f]="undefined"===typeof l[f]?null:l[f]})}var z=this,u={};m(f,this.options,u,0);return u}});P(y,"masters/highcharts.src.js",[y["parts/Globals.js"]],function(f){return f});P(y,"parts/Scrollbar.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var y=m.addEvent,r=m.correctFloat,F=m.defined,N=m.destroyObjectProperties,G=m.fireEvent,B=m.merge,D=m.pick,K=m.removeEvent;m=f.Axis;var z=f.defaultOptions,x=f.hasTouch,A,u={height:f.isTouchDevice?
20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1};z.scrollbar=B(!0,u,z.scrollbar);f.swapXY=A=function(f,n){var e=f.length;if(n)for(n=0;n<e;n+=3){var b=f[n+1];f[n+1]=f[n+2];f[n+
2]=b}return f};var n=function(){function f(f,e,b){this._events=[];this.from=this.chartY=this.chartX=0;this.scrollbar=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions={};this.y=this.x=0;this.chart=b;this.options=e;this.renderer=b.renderer;this.init(f,e,b)}f.prototype.addEvents=function(){var f=this.options.inverted?
[1,0]:[0,1],e=this.scrollbarButtons,b=this.scrollbarGroup.element,g=this.track.element,p=this.mouseDownHandler.bind(this),c=this.mouseMoveHandler.bind(this),a=this.mouseUpHandler.bind(this);f=[[e[f[0]].element,"click",this.buttonToMinClick.bind(this)],[e[f[1]].element,"click",this.buttonToMaxClick.bind(this)],[g,"click",this.trackClick.bind(this)],[b,"mousedown",p],[b.ownerDocument,"mousemove",c],[b.ownerDocument,"mouseup",a]];x&&f.push([b,"touchstart",p],[b.ownerDocument,"touchmove",c],[b.ownerDocument,
"touchend",a]);f.forEach(function(a){y.apply(null,a)});this._events=f};f.prototype.buttonToMaxClick=function(f){var e=(this.to-this.from)*D(this.options.step,.2);this.updatePosition(this.from+e,this.to+e);G(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:f})};f.prototype.buttonToMinClick=function(f){var e=r(this.to-this.from)*D(this.options.step,.2);this.updatePosition(r(this.from-e),r(this.to-e));G(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:f})};
f.prototype.cursorToScrollbarPosition=function(f){var e=this.options;e=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(f.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(f.chartY-this.y-this.yOffset)/(this.barWidth-e)}};f.prototype.destroy=function(){var f=this.chart.scroller;this.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){this[e]&&this[e].destroy&&(this[e]=this[e].destroy())},this);f&&this===f.scrollbar&&(f.scrollbar=null,
N(f.scrollbarButtons))};f.prototype.drawScrollbarButton=function(f){var e=this.renderer,b=this.scrollbarButtons,g=this.options,p=this.size;var c=e.g().add(this.group);b.push(c);c=e.rect().addClass("highcharts-scrollbar-button").add(c);this.chart.styledMode||c.attr({stroke:g.buttonBorderColor,"stroke-width":g.buttonBorderWidth,fill:g.buttonBackgroundColor});c.attr(c.crisp({x:-.5,y:-.5,width:p+1,height:p+1,r:g.buttonBorderRadius},c.strokeWidth()));c=e.path(A(["M",p/2+(f?-1:1),p/2-3,"L",p/2+(f?-1:1),
p/2+3,"L",p/2+(f?2:-2),p/2],g.vertical)).addClass("highcharts-scrollbar-arrow").add(b[f]);this.chart.styledMode||c.attr({fill:g.buttonArrowColor})};f.prototype.init=function(f,e,b){this.scrollbarButtons=[];this.renderer=f;this.userOptions=e;this.options=B(u,e);this.chart=b;this.size=D(this.options.size,this.options.height);e.enabled&&(this.render(),this.addEvents())};f.prototype.mouseDownHandler=function(f){f=this.chart.pointer.normalize(f);f=this.cursorToScrollbarPosition(f);this.chartX=f.chartX;
this.chartY=f.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};f.prototype.mouseMoveHandler=function(f){var e=this.chart.pointer.normalize(f),b=this.options.vertical?"chartY":"chartX",g=this.initPositions||[];!this.grabbedCenter||f.touches&&0===f.touches[0][b]||(e=this.cursorToScrollbarPosition(e)[b],b=this[b],b=e-b,this.hasDragged=!0,this.updatePosition(g[0]+b,g[1]+b),this.hasDragged&&G(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:f.type,DOMEvent:f}))};
f.prototype.mouseUpHandler=function(f){this.hasDragged&&G(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:f.type,DOMEvent:f});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};f.prototype.position=function(f,e,b,g){var p=this.options.vertical,c=0,a=this.rendered?"animate":"attr";this.x=f;this.y=e+this.trackBorderWidth;this.width=b;this.xOffset=this.height=g;this.yOffset=c;p?(this.width=this.yOffset=b=c=this.size,this.xOffset=e=0,this.barWidth=g-2*b,this.x=f+=this.options.margin):
(this.height=this.xOffset=g=e=this.size,this.barWidth=b-2*g,this.y+=this.options.margin);this.group[a]({translateX:f,translateY:this.y});this.track[a]({width:b,height:g});this.scrollbarButtons[1][a]({translateX:p?0:b-e,translateY:p?g-c:0})};f.prototype.removeEvents=function(){this._events.forEach(function(f){K.apply(null,f)});this._events.length=0};f.prototype.render=function(){var f=this.renderer,e=this.options,b=this.size,g=this.chart.styledMode,p;this.group=p=f.g("scrollbar").attr({zIndex:e.zIndex,
translateY:-99999}).add();this.track=f.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:e.trackBorderRadius||0,height:b,width:b}).add(p);g||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=f.g().add(p);this.scrollbar=f.rect().addClass("highcharts-scrollbar-thumb").attr({height:b,width:b,r:e.barBorderRadius||0}).add(this.scrollbarGroup);
this.scrollbarRifles=f.path(A(["M",-3,b/4,"L",-3,2*b/3,"M",0,b/4,"L",0,2*b/3,"M",3,b/4,"L",3,2*b/3],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);g||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);
this.drawScrollbarButton(0);this.drawScrollbarButton(1)};f.prototype.setRange=function(f,e){var b=this.options,g=b.vertical,p=b.minWidth,c=this.barWidth,a,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(F(c)){f=Math.max(f,0);var n=Math.ceil(c*f);this.calculatedWidth=a=r(c*Math.min(e,1)-n);a<p&&(n=(c-p+a)*f,a=p);p=Math.floor(n+this.xOffset+this.yOffset);c=a/2-.5;this.from=f;this.to=e;g?(this.scrollbarGroup[l]({translateY:p}),this.scrollbar[l]({height:a}),
this.scrollbarRifles[l]({translateY:c}),this.scrollbarTop=p,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:p}),this.scrollbar[l]({width:a}),this.scrollbarRifles[l]({translateX:c}),this.scrollbarLeft=p,this.scrollbarTop=0);12>=a?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===b.showFull&&(0>=f&&1<=e?this.group.hide():this.group.show());this.rendered=!0}};f.prototype.trackClick=function(f){var e=this.chart.pointer.normalize(f),b=this.to-this.from,g=this.y+this.scrollbarTop,
l=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>g||!this.options.vertical&&e.chartX>l?this.updatePosition(this.from+b,this.to+b):this.updatePosition(this.from-b,this.to-b);G(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:f})};f.prototype.update=function(f){this.destroy();this.init(this.chart.renderer,B(!0,this.options,f),this.chart)};f.prototype.updatePosition=function(f,e){1<e&&(f=r(1-r(e-f)),e=1);0>f&&(e=r(e-f),f=0);this.from=f;this.to=e};return f}();f.Scrollbar||
(y(m,"afterInit",function(){var l=this;l.options&&l.options.scrollbar&&l.options.scrollbar.enabled&&(l.options.scrollbar.vertical=!l.horiz,l.options.startOnTick=l.options.endOnTick=!1,l.scrollbar=new n(l.chart.renderer,l.options.scrollbar,l.chart),y(l.scrollbar,"changed",function(n){var e=Math.min(D(l.options.min,l.min),l.min,l.dataMin),b=Math.max(D(l.options.max,l.max),l.max,l.dataMax)-e;if(l.horiz&&!l.reversed||!l.horiz&&l.reversed){var g=e+b*this.to;e+=b*this.from}else g=e+b*(1-this.from),e+=b*
(1-this.to);D(this.options.liveRedraw,f.svg&&!f.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===n.DOMType||!F(n.DOMType)?l.setExtremes(e,g,!0,"mousemove"!==n.DOMType,n):this.setRange(this.from,this.to)}))}),y(m,"afterRender",function(){var f=Math.min(D(this.options.min,this.min),this.min,D(this.dataMin,this.min)),n=Math.max(D(this.options.max,this.max),this.max,D(this.dataMax,this.max)),e=this.scrollbar,b=this.axisTitleMargin+(this.titleOffset||0),g=this.chart.scrollbarsOffsets,p=this.options.margin||
0;e&&(this.horiz?(this.opposite||(g[1]+=b),e.position(this.left,this.top+this.height+2+g[1]-(this.opposite?p:0),this.width,this.height),this.opposite||(g[1]+=p),b=1):(this.opposite&&(g[0]+=b),e.position(this.left+this.width+2+g[0]-(this.opposite?0:p),this.top,this.width,this.height),this.opposite&&(g[0]+=p),b=0),g[b]+=e.size+e.options.margin,isNaN(f)||isNaN(n)||!F(this.min)||!F(this.max)||this.min===this.max?e.setRange(0,1):(g=(this.min-f)/(n-f),f=(this.max-f)/(n-f),this.horiz&&!this.reversed||!this.horiz&&
this.reversed?e.setRange(g,f):e.setRange(1-f,1-g)))}),y(m,"afterGetOffset",function(){var f=this.horiz?2:1,n=this.scrollbar;n&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[f]+=n.size+n.options.margin)}),f.Scrollbar=n);return f.Scrollbar});P(y,"parts/Navigator.js",[y["parts/Globals.js"],y["parts/Color.js"],y["parts/Scrollbar.js"],y["parts/Utilities.js"]],function(f,m,y,r){m=m.parse;var F=r.addEvent,I=r.clamp,G=r.correctFloat,B=r.defined,D=r.destroyObjectProperties,K=r.erase,z=r.extend,
x=r.find,A=r.isArray,u=r.isNumber,n=r.merge,l=r.pick,q=r.removeEvent,e=r.splat,b=f.Axis;r=f.Chart;var g=f.defaultOptions,p=f.hasTouch,c=f.isTouchDevice,a=f.Series,w=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];b=[].filter.call(b,u);if(b.length)return Math[a].apply(0,b)};var E="undefined"===typeof f.seriesTypes.areaspline?"line":"areaspline";z(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,
lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:m("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:E,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,
zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},
tickLength:0,tickWidth:0}}});f.Renderer.prototype.symbols["navigator-handle"]=function(a,b,c,e,f){a=f.width/2;b=Math.round(a/3)+.5;f=f.height;return["M",-a-1,.5,"L",a,.5,"L",a,f+.5,"L",-a-1,f+.5,"L",-a-1,.5,"M",-b,4,"L",-b,f-3,"M",b-1,4,"L",b-1,f-3]};b.prototype.toFixedRange=function(a,b,c,e){var h=this.chart&&this.chart.fixedRange,f=(this.pointRange||0)/2;a=l(c,this.translate(a,!0,!this.horiz));b=l(e,this.translate(b,!0,!this.horiz));var g=h&&(b-a)/h;B(c)||(a=G(a+f));B(e)||(b=G(b-f));.7<g&&1.3>g&&
(e?a=b-h:b=a+h);u(a)&&u(b)||(a=b=void 0);return{min:a,max:b}};var v=function(){function a(a){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(a)}a.prototype.drawHandle=function(a,b,c,e){var h=this.navigatorOptions.handles.height;
this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-h)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-h/2-1)})};a.prototype.drawOutline=function(a,b,c,e){var h=this.navigatorOptions.maskInside,f=this.outline.strokeWidth(),d=f/2;f=f%2/2;var g=this.outlineHeight,k=this.scrollbarHeight,p=this.size,l=this.left-k,n=this.top;c?(l-=d,c=n+b+f,b=n+a+f,a=["M",l+g,n-k-f,"L",l+g,c,"L",l,c,"L",l,b,
"L",l+g,b,"L",l+g,n+p+k].concat(h?["M",l+g,c-d,"L",l+g,b+d]:[])):(a+=l+k-f,b+=l+k-f,n+=d,a=["M",l,n,"L",a,n,"L",a,n+g,"L",b,n+g,"L",b,n,"L",l+p+2*k,n].concat(h?["M",a-d,n,"L",b+d,n]:[]));this.outline[e]({d:a})};a.prototype.drawMasks=function(a,b,c,e){var h=this.left,f=this.top,d=this.height;if(c){var g=[h,h,h];var k=[f,f+a,f+b];var l=[d,d,d];var p=[a,b-a,this.size-b]}else g=[h,h+a,h+b],k=[f,f,f],l=[a,b-a,this.size-b],p=[d,d,d];this.shades.forEach(function(a,d){a[e]({x:g[d],y:k[d],width:l[d],height:p[d]})})};
a.prototype.renderElements=function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.renderer,g,d={cursor:e.inverted?"ns-resize":"ew-resize"};a.navigatorGroup=g=f.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,h){a.shades[h]=f.rect().addClass("highcharts-navigator-mask"+(1===h?"-inside":"-outside")).add(g);e.styledMode||a.shades[h].attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}).css(1===h&&d)});a.outline=f.path().addClass("highcharts-navigator-outline").add(g);
e.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=e.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][c]).add(g);if(!e.styledMode){var h=b.handles;a.handles[c].attr({fill:h.backgroundColor,stroke:h.borderColor,"stroke-width":h.lineWidth}).css(d)}})};
a.prototype.update=function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();n(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)};a.prototype.render=function(a,b,c,e){var h=this.chart,f=this.scrollbarHeight,d,g=this.xAxis,k=g.pointRange||0;var p=g.fake?h.xAxis[0]:g;var n=this.navigatorEnabled,t,m=this.rendered;var v=h.inverted;var q=h.xAxis[0].minRange,w=h.xAxis[0].options.maxRange;if(!this.hasDragged||B(c)){a=G(a-k/2);
b=G(b+k/2);if(!u(a)||!u(b))if(m)c=0,e=l(g.width,p.width);else return;this.left=l(g.left,h.plotLeft+f+(v?h.plotWidth:0));this.size=t=d=l(g.len,(v?h.plotHeight:h.plotWidth)-2*f);h=v?f:d+2*f;c=l(c,g.toPixels(a,!0));e=l(e,g.toPixels(b,!0));u(c)&&Infinity!==Math.abs(c)||(c=0,e=h);a=g.toValue(c,!0);b=g.toValue(e,!0);var x=Math.abs(G(b-a));x<q?this.grabbedLeft?c=g.toPixels(b-q-k,!0):this.grabbedRight&&(e=g.toPixels(a+q+k,!0)):B(w)&&G(x-k)>w&&(this.grabbedLeft?c=g.toPixels(b-w-k,!0):this.grabbedRight&&(e=
g.toPixels(a+w+k,!0)));this.zoomedMax=I(Math.max(c,e),0,t);this.zoomedMin=I(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,e),0,t);this.range=this.zoomedMax-this.zoomedMin;t=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);n&&(this.navigatorGroup.attr({visibility:"visible"}),m=m&&!this.hasDragged?"animate":"attr",this.drawMasks(c,t,v,m),this.drawOutline(c,t,v,m),this.navigatorOptions.handles.enabled&&(this.drawHandle(c,0,v,m),this.drawHandle(t,1,v,m)));this.scrollbar&&(v?(v=this.top-
f,p=this.left-f+(n||!p.opposite?0:(p.titleOffset||0)+p.axisTitleMargin),f=d+2*f):(v=this.top+(n?this.height:-f),p=this.left-f),this.scrollbar.position(p,v,h,f),this.scrollbar.setRange(this.zoomedMin/(d||1),this.zoomedMax/(d||1)));this.rendered=!0}};a.prototype.addMouseEvents=function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(d){a.onMouseMove(d)};a.mouseUpHandler=g=function(d){a.onMouseUp(d)};e=a.getPartsEvents("mousedown");e.push(F(b.renderTo,"mousemove",f),F(c.ownerDocument,
"mouseup",g));p&&(e.push(F(b.renderTo,"touchmove",f),F(c.ownerDocument,"touchend",g)),e.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(F(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};a.prototype.getPartsEvents=function(a){var b=this,c=[];["shades","handles"].forEach(function(e){b[e].forEach(function(h,f){c.push(F(h.element,a,function(a){b[e+"Mousedown"](a,f)}))})});return c};a.prototype.shadesMousedown=function(a,
b){a=this.chart.pointer.normalize(a);var c=this.chart,e=this.xAxis,h=this.zoomedMin,f=this.left,d=this.size,g=this.range,k=a.chartX;c.inverted&&(k=a.chartY,f=this.top);if(1===b)this.grabbedCenter=k,this.fixedWidth=g,this.dragOffset=k-h;else{a=k-f-g/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+g>=d)if(a=d-g,this.reversedExtremes){a-=g;var l=this.getUnionExtremes().dataMin}else var p=this.getUnionExtremes().dataMax;a!==h&&(this.fixedWidth=g,b=e.toFixedRange(a,a+g,l,p),B(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,
b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};a.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],e=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=e?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=e?c.max:c.min);a.fixedRange=null};a.prototype.onMouseMove=function(a){var b=this,e=b.chart,h=b.left,g=b.navigatorSize,k=b.range,d=b.dragOffset,
p=e.inverted;a.touches&&0===a.touches[0].pageX||(a=e.pointer.normalize(a),e=a.chartX,p&&(h=b.top,e=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,e-h,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,e-h)):b.grabbedCenter&&(b.hasDragged=!0,e<d?e=d:e>g+d-k&&(e=g+d-k),b.render(0,0,e-d,e-d+k)),b.hasDragged&&b.scrollbar&&l(b.scrollbar.options.liveRedraw,f.svg&&!c&&!this.chart.isBoosting)&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};a.prototype.onMouseUp=
function(a){var b=this.chart,c=this.xAxis,e=this.scrollbar,h=a.DOMEvent||a,f=b.inverted,d=this.rendered&&!this.hasDragged?"animate":"attr",g=Math.round(this.zoomedMax),k=Math.round(this.zoomedMin);if(this.hasDragged&&(!e||!e.hasDragged)||"scrollbar"===a.trigger){e=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var p=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var l=this.fixedExtreme;this.zoomedMax===this.size&&(l=this.reversedExtremes?e.dataMin:e.dataMax);0===this.zoomedMin&&
(p=this.reversedExtremes?e.dataMax:e.dataMin);c=c.toFixedRange(this.zoomedMin,this.zoomedMax,p,l);B(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:h})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&(this.shades&&this.drawMasks(k,
g,f,d),this.outline&&this.drawOutline(k,g,f,d),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(k,0,f,d),this.drawHandle(g,1,f,d)))};a.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};a.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&
a.forEach(function(a){q(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&q(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};a.prototype.init=function(a){var c=a.options,e=c.navigator,f=e.enabled,h=c.scrollbar,g=h.enabled;c=f?e.height:0;var d=g?h.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=c;this.scrollbarHeight=d;this.scrollbarEnabled=g;this.navigatorEnabled=f;this.navigatorOptions=e;this.scrollbarOptions=h;this.outlineHeight=c+d;this.opposite=
l(e.opposite,!(f||!a.inverted));var k=this;f=k.baseSeries;h=a.xAxis.length;g=a.yAxis.length;var p=f&&f[0]&&f[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new b(a,n({breaks:p.options.breaks,ordinal:p.options.ordinal},e.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:h,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[d,0,-d,0],width:c}:{offsets:[0,
-d,0,d],height:c})),k.yAxis=new b(a,n(e.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:g,isInternal:!0,zoomEnabled:!1},a.inverted?{width:c}:{height:c})),f||e.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=F(a,"beforeRedraw",function(){0<a.series.length&&!k.series&&(k.setBaseSeries(),k.unbindRedraw())})),k.reversedExtremes=a.inverted&&!k.xAxis.reversed||!a.inverted&&k.xAxis.reversed,k.renderElements(),k.addMouseEvents()):k.xAxis={translate:function(b,c){var e=
a.xAxis[0],f=e.getExtremes(),h=e.len-2*d,g=w("min",e.options.min,f.dataMin);e=w("max",e.options.max,f.dataMax)-g;return c?b*e/h+g:h*(b-g)/e},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)},toFixedRange:b.prototype.toFixedRange,fake:!0};a.options.scrollbar.enabled&&(a.scrollbar=k.scrollbar=new y(a.renderer,n(a.options.scrollbar,{margin:k.navigatorEnabled?0:10,vertical:a.inverted}),a),F(k.scrollbar,"changed",function(b){var d=k.size,c=d*this.to;d*=this.from;
k.hasDragged=k.scrollbar.hasDragged;k.render(0,0,d,c);(a.options.scrollbar.liveRedraw||"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType)&&setTimeout(function(){k.onMouseUp(b)})}));k.addBaseSeriesEvents();k.addChartEvents()};a.prototype.getUnionExtremes=function(a){var b=this.chart.xAxis[0],c=this.xAxis,e=c.options,f=b.options,h;a&&null===b.dataMin||(h={dataMin:l(e&&e.min,w("min",f.min,b.dataMin,c.dataMin,c.min)),dataMax:l(e&&e.max,w("max",f.max,b.dataMax,c.dataMax,c.max))});return h};a.prototype.setBaseSeries=
function(a,b){var c=this.chart,e=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||(c.series.length?x(c.series,function(a){return!a.options.isInternal}).index:0);(c.series||[]).forEach(function(b,c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||e.push(b)});this.xAxis&&!this.xAxis.fake&&this.updateNavigatorSeries(!0,b)};a.prototype.updateNavigatorSeries=function(a,b){var c=this,f=c.chart,h=c.baseSeries,k,d,p=c.navigatorOptions.series,
m,t={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,states:{inactive:{opacity:1}}},v=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>h.indexOf(b)?(b&&(q(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});h&&h.length&&h.forEach(function(a){var e=a.navigatorSeries,q=z({color:a.color,visible:a.visible},A(p)?g.navigator.series:
p);e&&!1===c.navigatorOptions.adaptToUpdatedData||(t.name="Navigator "+h.length,k=a.options||{},m=k.navigatorOptions||{},d=n(k,t,q,m),d.pointRange=l(q.pointRange,m.pointRange,g.plotOptions[d.type||"line"].pointRange),q=m.data||q.data,c.hasNavigatorData=c.hasNavigatorData||!!q,d.data=q||k.data&&k.data.slice(0),e&&e.options?e.update(d,b):(a.navigatorSeries=f.initSeries(d),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});if(p.data&&(!h||!h.length)||A(p))c.hasNavigatorData=!1,p=e(p),p.forEach(function(a,
b){t.name="Navigator "+(v.length+1);d=n(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);d.data=a.data;d.data&&(c.hasNavigatorData=!0,v.push(f.initSeries(d)))});a&&this.addBaseSeriesEvents()};a.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&F(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes);b.forEach(function(b){F(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,
!1)});F(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&F(b,"updatedData",this.updatedDataHandler);F(b,"remove",function(){this.navigatorSeries&&(K(a.series,this.navigatorSeries),B(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)};a.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,b.xData?b.xData[0]:a)},a)};
a.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};a.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax;b=b.max-b.min;var f=a.stickToMin,g=a.stickToMax,d=l(this.options.overscroll,0),k=a.series&&a.series[0],p=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(f){var n=
c;var m=n+b}g&&(m=e+d,f||(n=Math.max(m-b,a.getBaseSeriesMin(k&&k.xData?k.xData[0]:-Number.MAX_VALUE))));p&&(f||g)&&u(n)&&(this.min=this.userMin=n,this.max=this.userMax=m)}a.stickToMin=a.stickToMax=null};a.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries,c=a.getBaseSeriesMin(this.xData[0]);a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=u(this.xAxis.min)&&this.xAxis.min<=c&&(!this.chart.fixedRange||
!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};a.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(F(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)}),F(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&
(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};a.prototype.destroy=function(){this.removeEvents();this.xAxis&&(K(this.chart.xAxis,this.xAxis),K(this.chart.axes,this.xAxis));this.yAxis&&(K(this.chart.yAxis,this.yAxis),K(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&
this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){D(a)},this)};return a}();f.Navigator||(f.Navigator=v,F(b,"zoom",function(a){var b=this.chart.options,e=b.chart.zoomType,f=b.chart.pinchType,g=b.navigator;b=b.rangeSelector;this.isXAxis&&(g&&g.enabled||b&&b.enabled)&&("y"===e?a.zoomed=!1:(!c&&"xy"===e||c&&"xy"===f)&&this.options.range&&(e=this.previousZoom,B(a.newMin)?this.previousZoom=[this.min,this.max]:e&&(a.newMin=e[0],a.newMax=e[1],delete this.previousZoom)));
"undefined"!==typeof a.zoomed&&a.preventDefault()}),F(r,"beforeShowResetZoom",function(){var a=this.options,b=a.navigator,e=a.rangeSelector;if((b&&b.enabled||e&&e.enabled)&&(!c&&"x"===a.chart.zoomType||c&&"x"===a.chart.pinchType))return!1}),F(r,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new v(this)}),F(r,"afterSetChartSize",function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var e=b.xAxis;var f=b.yAxis;var g=
b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-g-b.height:this.spacing[3]+g,b.top=this.plotTop+g):(b.left=this.plotLeft+g,b.top=b.navigatorOptions.top||this.chartHeight-b.height-g-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&c.enabled&&!c.floating?a.legendHeight+l(c.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=
b.top,e.setAxisSize(),f.setAxisSize())}}),F(r,"update",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(n(!0,this.options.navigator,b),n(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)}),F(r,"afterUpdate",function(a){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new v(this),l(a.redraw,!0)&&this.redraw(a.animation))}),
F(r,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),F(a,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),r.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));f.Navigator=v;return f.Navigator});P(y,"parts/OrdinalAxis.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var y=m.addEvent,r=m.css,F=m.defined,N=m.extend,
G=m.pick,B=m.timeUnits,D=f.Axis;m=f.Chart;var K=f.noop;y(f.Series,"updatedData",function(){var f=this.xAxis;f&&f.options.ordinal&&delete f.ordinalIndex});D.prototype.getTimeTicks=function(f,m,r,u,n,l,q){var e=0,b,g,p={},c=[],a=-Number.MAX_VALUE,w=this.options.tickPixelInterval,x=this.chart.time,v=[];if(!this.options.ordinal&&!this.options.breaks||!n||3>n.length||"undefined"===typeof m)return x.getTimeTicks.apply(x,arguments);var k=n.length;for(b=0;b<k;b++){var h=b&&n[b-1]>r;n[b]<m&&(e=b);if(b===k-
1||n[b+1]-n[b]>5*l||h){if(n[b]>a){for(g=x.getTimeTicks(f,n[e],n[b],u);g.length&&g[0]<=a;)g.shift();g.length&&(a=g[g.length-1]);v.push(c.length);c=c.concat(g)}e=b+1}if(h)break}g=g.info;if(q&&g.unitRange<=B.hour){b=c.length-1;for(e=1;e<b;e++)if(x.dateFormat("%d",c[e])!==x.dateFormat("%d",c[e-1])){p[c[e]]="day";var t=!0}t&&(p[c[0]]="day");g.higherRanks=p}g.segmentStarts=v;c.info=g;if(q&&F(w)){e=v=c.length;t=[];var z;for(x=[];e--;)b=this.translate(c[e]),z&&(x[e]=z-b),t[e]=z=b;x.sort();x=x[Math.floor(x.length/
2)];x<.6*w&&(x=null);e=c[v-1]>r?v-1:v;for(z=void 0;e--;)b=t[e],v=Math.abs(z-b),z&&v<.8*w&&(null===x||v<.8*x)?(p[c[e]]&&!p[c[e+1]]?(v=e+1,z=b):v=e,c.splice(v,1)):z=b}return c};N(D.prototype,{beforeSetTickPositions:function(){var f=[],m,r=!1,u=this.getExtremes(),n=u.min,l=u.max,q,e=this.isXAxis&&!!this.options.breaks;u=this.options.ordinal;var b=Number.MAX_VALUE,g=this.chart.options.chart.ignoreHiddenSeries,p;if(u||e){this.series.forEach(function(a,l){m=[];if(!(g&&!1===a.visible||!1===a.takeOrdinalPosition&&
!e)&&(f=f.concat(a.processedXData),c=f.length,f.sort(function(a,b){return a-b}),b=Math.min(b,G(a.closestPointRange,b)),c)){for(l=0;l<c-1;)f[l]!==f[l+1]&&m.push(f[l+1]),l++;m[0]!==f[0]&&m.unshift(f[0]);f=m}a.isSeriesBoosting&&(p=!0)});p&&(f.length=0);var c=f.length;if(2<c){var a=f[1]-f[0];for(q=c-1;q--&&!r;)f[q+1]-f[q]!==a&&(r=!0);!this.options.keepOrdinalPadding&&(f[0]-n>a||l-f[f.length-1]>a)&&(r=!0)}else this.options.overscroll&&(2===c?b=f[1]-f[0]:1===c?(b=this.options.overscroll,f=[f[0],f[0]+b]):
b=this.overscrollPointsRange);r?(this.options.overscroll&&(this.overscrollPointsRange=b,f=f.concat(this.getOverscrollPositions())),this.ordinalPositions=f,a=this.ordinal2lin(Math.max(n,f[0]),!0),q=Math.max(this.ordinal2lin(Math.min(l,f[f.length-1]),!0),1),this.ordinalSlope=l=(l-n)/(q-a),this.ordinalOffset=n-a*l):(this.overscrollPointsRange=G(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=u&&r;this.groupIntervalFactor=
null},val2lin:function(f,m){var x=this.ordinalPositions;if(x){var u=x.length,n;for(n=u;n--;)if(x[n]===f){var l=n;break}for(n=u-1;n--;)if(f>x[n]||0===n){f=(f-x[n])/(x[n+1]-x[n]);l=n+f;break}m=m?l:this.ordinalSlope*(l||0)+this.ordinalOffset}else m=f;return m},lin2val:function(f,m){var x=this.ordinalPositions;if(x){var u=this.ordinalSlope,n=this.ordinalOffset,l=x.length-1;if(m)if(0>f)f=x[0];else if(f>l)f=x[l];else{l=Math.floor(f);var q=f-l}else for(;l--;)if(m=u*l+n,f>=m){u=u*(l+1)+n;q=(f-m)/(u-m);break}return"undefined"!==
typeof q&&"undefined"!==typeof x[l]?x[l]+(q?q*(x[l+1]-x[l]):0):f}return f},getExtendedPositions:function(){var f=this,m=f.chart,r=f.series[0].currentDataGrouping,u=f.ordinalIndex,n=r?r.count+r.unitName:"raw",l=f.options.overscroll,q=f.getExtremes(),e;u||(u=f.ordinalIndex={});if(!u[n]){var b={series:[],chart:m,getExtremes:function(){return{min:q.dataMin,max:q.dataMax+l}},options:{ordinal:!0},val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin};f.series.forEach(function(g){e={xAxis:b,xData:g.xData.slice(),
chart:m,destroyGroupedData:K};e.xData=e.xData.concat(f.getOverscrollPositions());e.options={dataGrouping:r?{enabled:!0,forced:!0,approximation:"open",units:[[r.unitName,[r.count]]]}:{enabled:!1}};g.processData.apply(e);b.series.push(e)});f.beforeSetTickPositions.apply(b);u[n]=b.ordinalPositions}return u[n]},getOverscrollPositions:function(){var f=this.options.overscroll,m=this.overscrollPointsRange,r=[],u=this.dataMax;if(F(m))for(r.push(u);u<=this.dataMax+f;)u+=m,r.push(u);return r},getGroupIntervalFactor:function(f,
m,r){r=r.processedXData;var u=r.length,n=[];var l=this.groupIntervalFactor;if(!l){for(l=0;l<u-1;l++)n[l]=r[l+1]-r[l];n.sort(function(f,e){return f-e});n=n[Math.floor(u/2)];f=Math.max(f,r[0]);m=Math.min(m,r[u-1]);this.groupIntervalFactor=l=u*n/(m-f)}return l},postProcessTickInterval:function(f){var m=this.ordinalSlope;return m?this.options.breaks?this.closestPointRange||f:f/(m/this.closestPointRange):f}});D.prototype.ordinal2lin=D.prototype.val2lin;y(m,"pan",function(f){var m=this.xAxis[0],z=m.options.overscroll,
u=f.originalEvent.chartX,n=this.options.chart&&this.options.chart.panning,l=!1;if(n&&"y"!==n.type&&m.options.ordinal&&m.series.length){var q=this.mouseDownX,e=m.getExtremes(),b=e.dataMax,g=e.min,p=e.max,c=this.hoverPoints,a=m.closestPointRange||m.overscrollPointsRange;q=(q-u)/(m.translationSlope*(m.ordinalSlope||a));var w={ordinalPositions:m.getExtendedPositions()};a=m.lin2val;var B=m.val2lin;if(!w.ordinalPositions)l=!0;else if(1<Math.abs(q)){c&&c.forEach(function(a){a.setState()});if(0>q){c=w;var v=
m.ordinalPositions?m:w}else c=m.ordinalPositions?m:w,v=w;w=v.ordinalPositions;b>w[w.length-1]&&w.push(b);this.fixedRange=p-g;q=m.toFixedRange(null,null,a.apply(c,[B.apply(c,[g,!0])+q,!0]),a.apply(v,[B.apply(v,[p,!0])+q,!0]));q.min>=Math.min(e.dataMin,g)&&q.max<=Math.max(b,p)+z&&m.setExtremes(q.min,q.max,!0,!1,{trigger:"pan"});this.mouseDownX=u;r(this.container,{cursor:"move"})}}else l=!0;l||n&&/y/.test(n.type)?z&&(m.max=m.dataMax+z):f.preventDefault()});y(D,"foundExtremes",function(){this.isXAxis&&
F(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&F(this.userMin)&&(this.min+=this.options.overscroll))});y(D,"afterSetScale",function(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)})});P(y,"modules/broken-axis.src.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],
function(f,m){var y=m.addEvent,r=m.extend,F=m.find,N=m.fireEvent,G=m.isArray,B=m.pick,D=f.Axis;m=f.Series;var K=function(f,m){return F(m,function(m){return m.from<f&&f<m.to})};r(D.prototype,{isInBreak:function(f,m){var r=f.repeat||Infinity,u=f.from,n=f.to-f.from;m=m>=u?(m-u)%r:r-(u-m)%r;return f.inclusive?m<=n:m<n&&0!==m},isInAnyBreak:function(f,m){var r=this.options.breaks,u=r&&r.length,n;if(u){for(;u--;)if(this.isInBreak(r[u],f)){var l=!0;n||(n=B(r[u].showPoints,!this.isXAxis))}var q=l&&m?l&&!n:
l}return q}});y(D,"afterInit",function(){"function"===typeof this.setBreaks&&this.setBreaks(this.options.breaks,!1)});y(D,"afterSetTickPositions",function(){if(this.isBroken){var f=this.tickPositions,m=this.tickPositions.info,r=[],u;for(u=0;u<f.length;u++)this.isInAnyBreak(f[u])||r.push(f[u]);this.tickPositions=r;this.tickPositions.info=m}});y(D,"afterSetOptions",function(){this.isBroken&&(this.options.ordinal=!1)});D.prototype.setBreaks=function(f,m){function r(f){var e=f,b;for(b=0;b<n.breakArray.length;b++){var g=
n.breakArray[b];if(g.to<=f)e-=g.len;else if(g.from>=f)break;else if(n.isInBreak(g,f)){e-=f-g.from;break}}return e}function u(f){var e;for(e=0;e<n.breakArray.length;e++){var b=n.breakArray[e];if(b.from>=f)break;else b.to<f?f+=b.len:n.isInBreak(b,f)&&(f+=b.len)}return f}var n=this,l=G(f)&&!!f.length;n.isDirty=n.isBroken!==l;n.isBroken=l;n.options.breaks=n.userOptions.breaks=f;n.forceRedraw=!0;n.series.forEach(function(f){f.isDirty=!0});l||n.val2lin!==r||(delete n.val2lin,delete n.lin2val);l&&(n.userOptions.ordinal=
!1,n.val2lin=r,n.lin2val=u,n.setExtremes=function(f,e,b,g,p){if(this.isBroken){for(var c,a=this.options.breaks;c=K(f,a);)f=c.to;for(;c=K(e,a);)e=c.from;e<f&&(e=f)}D.prototype.setExtremes.call(this,f,e,b,g,p)},n.setAxisTranslation=function(f){D.prototype.setAxisTranslation.call(this,f);this.unitLength=null;if(this.isBroken){f=n.options.breaks;var e=[],b=[],g=0,p,c=n.userMin||n.min,a=n.userMax||n.max,l=B(n.pointRangePadding,0),m;f.forEach(function(b){p=b.repeat||Infinity;n.isInBreak(b,c)&&(c+=b.to%
p-c%p);n.isInBreak(b,a)&&(a-=a%p-b.from%p)});f.forEach(function(b){k=b.from;for(p=b.repeat||Infinity;k-p>c;)k-=p;for(;k<c;)k+=p;for(m=k;m<a;m+=p)e.push({value:m,move:"in"}),e.push({value:m+(b.to-b.from),move:"out",size:b.breakSize})});e.sort(function(a,b){return a.value===b.value?("in"===a.move?0:1)-("in"===b.move?0:1):a.value-b.value});var v=0;var k=c;e.forEach(function(a){v+="in"===a.move?1:-1;1===v&&"in"===a.move&&(k=a.value);0===v&&(b.push({from:k,to:a.value,len:a.value-k-(a.size||0)}),g+=a.value-
k-(a.size||0))});n.breakArray=b;n.unitLength=a-c-g+l;N(n,"afterBreaks");n.staticScale?n.transA=n.staticScale:n.unitLength&&(n.transA*=(a-n.min+l)/n.unitLength);l&&(n.minPixelPadding=n.transA*n.minPointOffset);n.min=c;n.max=a}});B(m,!0)&&this.chart.redraw()};y(m,"afterGeneratePoints",function(){var f=this.options.connectNulls,m=this.points,r=this.xAxis,u=this.yAxis;if(this.isDirty)for(var n=m.length;n--;){var l=m[n],q=!(null===l.y&&!1===f)&&(r&&r.isInAnyBreak(l.x,!0)||u&&u.isInAnyBreak(l.y,!0));l.visible=
q?!1:!1!==l.options.visible}});y(m,"afterRender",function(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,B(this.pointArrayMap,["y"]))});f.Series.prototype.drawBreaks=function(f,m){var r=this,u=r.points,n,l,q,e;f&&m.forEach(function(b){n=f.breakArray||[];l=f.isXAxis?f.min:B(r.options.threshold,f.min);u.forEach(function(g){e=B(g["stack"+b.toUpperCase()],g[b]);n.forEach(function(b){q=!1;if(l<b.from&&e>b.to||l>b.from&&e<b.from)q="pointBreak";else if(l<b.from&&e>b.from&&e<b.to||l>b.from&&
e>b.to&&e<b.from)q="pointInBreak";q&&N(f,q,{point:g,brk:b})})})})};f.Series.prototype.gappedPath=function(){var m=this.currentDataGrouping,r=m&&m.gapSize;m=this.options.gapSize;var B=this.points.slice(),u=B.length-1,n=this.yAxis,l;if(m&&0<u)for("value"!==this.options.gapUnit&&(m*=this.basePointRange),r&&r>m&&r>=this.basePointRange&&(m=r),l=void 0;u--;)l&&!1!==l.visible||(l=B[u+1]),r=B[u],!1!==l.visible&&!1!==r.visible&&(l.x-r.x>m&&(l=(r.x+l.x)/2,B.splice(u+1,0,{isNull:!0,x:l}),this.options.stacking&&
(l=n.stacks[this.stackKey][l]=new f.StackItem(n,n.options.stackLabels,!1,l,this.stack),l.total=0)),l=r);return this.getGraphPath(B)}});P(y,"masters/modules/broken-axis.src.js",[],function(){});P(y,"parts/DataGrouping.js",[y["parts/Globals.js"],y["parts/Point.js"],y["parts/Tooltip.js"],y["parts/Utilities.js"]],function(f,m,y,r){"";var F=r.addEvent,I=r.arrayMax,G=r.arrayMin,B=r.correctFloat,D=r.defined,K=r.error,z=r.extend,x=r.format,A=r.isNumber,u=r.merge,n=r.pick,l=f.Axis,q=f.defaultPlotOptions;r=
f.Series;var e=f.approximations={sum:function(a){var b=a.length;if(!b&&a.hasNulls)var c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=e.sum(a);A(a)&&b&&(a=B(a/b));return a},averages:function(){var a=[];[].forEach.call(arguments,function(b){a.push(e.average(b))});return"undefined"===typeof a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?I(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):
a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,f){a=e.open(a);b=e.high(b);c=e.low(c);f=e.close(f);if(A(a)||A(b)||A(c)||A(f))return[a,b,c,f]},range:function(a,b){a=e.low(a);b=e.high(b);if(A(a)||A(b))return[a,b];if(null===a&&null===b)return null}},b=function(a,b,c,f){var g=this,h=g.data,k=g.options&&g.options.data,d=[],l=[],p=[],n=a.length,m=!!b,t=[],v=g.pointArrayMap,q=v&&v.length,w=["x"].concat(v||["y"]),r=0,x=0,z;f="function"===
typeof f?f:e[f]?e[f]:e[g.getDGApproximation&&g.getDGApproximation()||"average"];q?v.forEach(function(){t.push([])}):t.push([]);var B=q||1;for(z=0;z<=n&&!(a[z]>=c[0]);z++);for(z;z<=n;z++){for(;"undefined"!==typeof c[r+1]&&a[z]>=c[r+1]||z===n;){var y=c[r];g.dataGroupInfo={start:g.cropStart+x,length:t[0].length};var E=f.apply(g,t);g.pointClass&&!D(g.dataGroupInfo.options)&&(g.dataGroupInfo.options=u(g.pointClass.prototype.optionsToObject.call({series:g},g.options.data[g.cropStart+x])),w.forEach(function(a){delete g.dataGroupInfo.options[a]}));
"undefined"!==typeof E&&(d.push(y),l.push(E),p.push(g.dataGroupInfo));x=z;for(y=0;y<B;y++)t[y].length=0,t[y].hasNulls=!1;r+=1;if(z===n)break}if(z===n)break;if(v)for(y=g.cropStart+z,E=h&&h[y]||g.pointClass.prototype.applyOptions.apply({series:g},[k[y]]),y=0;y<q;y++){var L=E[v[y]];A(L)?t[y].push(L):null===L&&(t[y].hasNulls=!0)}else y=m?b[z]:null,A(y)?t[0].push(y):null===y&&(t[0].hasNulls=!0)}return{groupedXData:d,groupedYData:l,groupMap:p}},g={approximations:e,groupData:b},p=r.prototype,c=p.processData,
a=p.generatePoints,w={groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},E={line:{},spline:{},
area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5}},v=f.defaultDataGroupingUnits=[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]];p.getDGApproximation=function(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("column")?"sum":"average"};p.groupData=
b;p.processData=function(){var a=this.chart,b=this.options.dataGrouping,e=!1!==this.allowDG&&b&&n(b.enabled,a.options.isStock),f=this.visible||!a.options.chart.ignoreHiddenSeries,g,l=this.currentDataGrouping,m=!1;this.forceCrop=e;this.groupPixelWidth=null;this.hasProcessed=!0;e&&!this.requireSorting&&(this.requireSorting=m=!0);e=!1===c.apply(this,arguments)||!e;m&&(this.requireSorting=!1);if(!e){this.destroyGroupedData();e=b.groupAll?this.xData:this.processedXData;var d=b.groupAll?this.yData:this.processedYData,
q=a.plotSizeX;a=this.xAxis;var w=a.options.ordinal,u=this.groupPixelWidth=a.getGroupPixelWidth&&a.getGroupPixelWidth();if(u){this.isDirty=g=!0;this.points=null;m=a.getExtremes();var r=m.min;m=m.max;w=w&&a.getGroupIntervalFactor(r,m,this)||1;u=u*(m-r)/q*w;q=a.getTimeTicks(a.normalizeTimeTickInterval(u,b.units||v),Math.min(r,e[0]),Math.max(m,e[e.length-1]),a.options.startOfWeek,e,this.closestPointRange);d=p.groupData.apply(this,[e,d,q,b.approximation]);e=d.groupedXData;w=d.groupedYData;var x=0;if(b.smoothed&&
e.length){var z=e.length-1;for(e[z]=Math.min(e[z],m);z--&&0<z;)e[z]+=u/2;e[0]=Math.max(e[0],r)}for(z=1;z<q.length;z++)q.info.segmentStarts&&-1!==q.info.segmentStarts.indexOf(z)||(x=Math.max(q[z]-q[z-1],x));r=q.info;r.gapSize=x;this.closestPointRange=q.info.totalRange;this.groupMap=d.groupMap;if(D(e[0])&&e[0]<a.min&&f){if(!D(a.options.min)&&a.min<=a.dataMin||a.min===a.dataMin)a.min=Math.min(e[0],a.min);a.dataMin=Math.min(e[0],a.dataMin)}b.groupAll&&(b=this.cropData(e,w,a.min,a.max,1),e=b.xData,w=b.yData);
this.processedXData=e;this.processedYData=w}else this.groupMap=null;this.hasGroupedData=g;this.currentDataGrouping=r;this.preventGraphAnimation=(l&&l.totalRange)!==(r&&r.totalRange)}};p.destroyGroupedData=function(){this.groupedData&&(this.groupedData.forEach(function(a,b){a&&(this.groupedData[b]=a.destroy?a.destroy():null)},this),this.groupedData.length=0)};p.generatePoints=function(){a.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};F(m,"update",function(){if(this.dataGroup)return K(24,
!1,this.series.chart),!1});F(y,"headerFormatter",function(a){var b=this.chart,c=b.time,e=a.labelConfig,f=e.series,g=f.tooltipOptions,k=f.options.dataGrouping,d=g.xDateFormat,l=f.xAxis,p=g[(a.isFooter?"footer":"header")+"Format"];if(l&&"datetime"===l.options.type&&k&&A(e.key)){var n=f.currentDataGrouping;k=k.dateTimeLabelFormats||w.dateTimeLabelFormats;if(n)if(g=k[n.unitName],1===n.count)d=g[0];else{d=g[1];var m=g[2]}else!d&&k&&(d=this.getXDateFormat(e,g,l));d=c.dateFormat(d,e.key);m&&(d+=c.dateFormat(m,
e.key+n.totalRange-1));f.chart.styledMode&&(p=this.styledModeFormat(p));a.text=x(p,{point:z(e.point,{key:d}),series:f},b);a.preventDefault()}});F(r,"destroy",p.destroyGroupedData);F(r,"afterSetOptions",function(a){a=a.options;var b=this.type,c=this.chart.options.plotOptions,e=q[b].dataGrouping,f=this.useCommonDataGrouping&&w;if(E[b]||f)e||(e=u(w,E[b])),a.dataGrouping=u(f,e,c.series&&c.series.dataGrouping,c[b].dataGrouping,this.userOptions.dataGrouping)});F(l,"afterSetScale",function(){this.series.forEach(function(a){a.hasProcessed=
!1})});l.prototype.getGroupPixelWidth=function(){var a=this.series,b=a.length,c,e=0,f=!1,g;for(c=b;c--;)(g=a[c].options.dataGrouping)&&(e=Math.max(e,n(g.groupPixelWidth,w.groupPixelWidth)));for(c=b;c--;)(g=a[c].options.dataGrouping)&&a[c].hasProcessed&&(b=(a[c].processedXData||a[c].data).length,a[c].groupPixelWidth||b>this.chart.plotSizeX/e||b&&g.forced)&&(f=!0);return f?e:0};l.prototype.setDataGrouping=function(a,b){var c;b=n(b,!0);a||(a={forced:!1,units:null});if(this instanceof l)for(c=this.series.length;c--;)this.series[c].update({dataGrouping:a},
!1);else this.chart.options.series.forEach(function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;b&&this.chart.redraw()};f.dataGrouping=g;"";return g});P(y,"parts/OHLCSeries.js",[y["parts/Globals.js"],y["parts/Point.js"],y["parts/Utilities.js"]],function(f,m,y){y=y.seriesType;var r=f.seriesTypes;y("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},
threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(f){return[f.open,f.high,f.low,f.close]},pointValKey:"close",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},init:function(){r.column.prototype.init.apply(this,arguments);this.options.stacking=!1},pointAttribs:function(f,m){m=r.column.prototype.pointAttribs.call(this,f,m);var y=this.options;delete m.fill;!f.options.color&&y.upColor&&f.open<f.close&&
(m.stroke=y.upColor);return m},translate:function(){var f=this,m=f.yAxis,y=!!f.modifyValue,B=["plotOpen","plotHigh","plotLow","plotClose","yBottom"];r.column.prototype.translate.apply(f);f.points.forEach(function(r){[r.open,r.high,r.low,r.close,r.low].forEach(function(D,z){null!==D&&(y&&(D=f.modifyValue(D)),r[B[z]]=m.toPixels(D,!0))});r.tooltipPos[1]=r.plotHigh+m.pos-f.chart.plotTop})},drawPoints:function(){var f=this,m=f.chart,r=function(f,m,r){f[2]=Math.max(r+m,f[2]);f[5]=Math.min(r-m,f[5])};f.points.forEach(function(y){var B=
y.graphic,G=!B;if("undefined"!==typeof y.plotY){B||(y.graphic=B=m.renderer.path().add(f.group));m.styledMode||B.attr(f.pointAttribs(y,y.selected&&"select"));var z=B.strokeWidth();var x=z%2/2;var A=Math.round(y.plotX)-x;var u=Math.round(y.shapeArgs.width/2);var n=["M",A,Math.round(y.yBottom),"L",A,Math.round(y.plotHigh)];if(null!==y.open){var l=Math.round(y.plotOpen)+x;n.push("M",A,l,"L",A-u,l);r(n,z/2,l)}null!==y.close&&(l=Math.round(y.plotClose)+x,n.push("M",A,l,"L",A+u,l),r(n,z/2,l));B[G?"attr":
"animate"]({d:n}).addClass(y.getClassName(),!0)}})},animate:null},{getClassName:function(){return m.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}});""});P(y,"parts/CandlestickSeries.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var y=m.merge;m=m.seriesType;var r=f.defaultPlotOptions,F=f.seriesTypes;m("candlestick","ohlc",y(r.column,{states:{hover:{lineWidth:2}},tooltip:r.ohlc.tooltip,threshold:null,lineColor:"#000000",
lineWidth:1,upColor:"#ffffff",stickyTracking:!0}),{pointAttribs:function(f,m){var r=F.column.prototype.pointAttribs.call(this,f,m),y=this.options,G=f.open<f.close,z=y.lineColor||this.color;r["stroke-width"]=y.lineWidth;r.fill=f.options.color||(G?y.upColor||this.color:this.color);r.stroke=f.options.lineColor||(G?y.upLineColor||z:z);m&&(f=y.states[m],r.fill=f.color||r.fill,r.stroke=f.lineColor||r.stroke,r["stroke-width"]=f.lineWidth||r["stroke-width"]);return r},drawPoints:function(){var f=this,m=f.chart,
r=f.yAxis.reversed;f.points.forEach(function(y){var B=y.graphic,z=!B;if("undefined"!==typeof y.plotY){B||(y.graphic=B=m.renderer.path().add(f.group));f.chart.styledMode||B.attr(f.pointAttribs(y,y.selected&&"select")).shadow(f.options.shadow);var x=B.strokeWidth()%2/2;var A=Math.round(y.plotX)-x;var u=y.plotOpen;var n=y.plotClose;var l=Math.min(u,n);u=Math.max(u,n);var q=Math.round(y.shapeArgs.width/2);n=r?u!==y.yBottom:Math.round(l)!==Math.round(y.plotHigh);var e=r?Math.round(l)!==Math.round(y.plotHigh):
u!==y.yBottom;l=Math.round(l)+x;u=Math.round(u)+x;x=[];x.push("M",A-q,u,"L",A-q,l,"L",A+q,l,"L",A+q,u,"Z","M",A,l,"L",A,n?Math.round(r?y.yBottom:y.plotHigh):l,"M",A,u,"L",A,e?Math.round(r?y.plotHigh:y.yBottom):u);B[z?"attr":"animate"]({d:x}).addClass(y.getClassName(),!0)}})}});""});P(y,"mixins/on-series.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],function(f,m){var y=m.defined,r=m.stableSort,F=f.seriesTypes;return{getPlotBox:function(){return f.Series.prototype.getPlotBox.call(this.options.onSeries&&
this.chart.get(this.options.onSeries)||this)},translate:function(){F.column.prototype.translate.apply(this);var f=this,m=f.options,B=f.chart,D=f.points,I=D.length-1,z,x=m.onSeries;x=x&&B.get(x);m=m.onKey||"y";var A=x&&x.options.step,u=x&&x.points,n=u&&u.length,l=B.inverted,q=f.xAxis,e=f.yAxis,b=0,g;if(x&&x.visible&&n){b=(x.pointXOffset||0)+(x.barW||0)/2;B=x.currentDataGrouping;var p=u[n-1].x+(B?B.totalRange:0);r(D,function(a,b){return a.x-b.x});for(m="plot"+m[0].toUpperCase()+m.substr(1);n--&&D[I];){var c=
u[n];B=D[I];B.y=c.y;if(c.x<=B.x&&"undefined"!==typeof c[m]){if(B.x<=p&&(B.plotY=c[m],c.x<B.x&&!A&&(g=u[n+1])&&"undefined"!==typeof g[m])){var a=(B.x-c.x)/(g.x-c.x);B.plotY+=a*(g[m]-c[m]);B.y+=a*(g.y-c.y)}I--;n++;if(0>I)break}}}D.forEach(function(a,c){a.plotX+=b;if("undefined"===typeof a.plotY||l)0<=a.plotX&&a.plotX<=q.len?l?(a.plotY=q.translate(a.x,0,1,0,1),a.plotX=y(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=(q.opposite?0:f.yAxis.len)+q.offset:a.shapeArgs={};if((z=D[c-1])&&z.plotX===a.plotX){"undefined"===
typeof z.stackIndex&&(z.stackIndex=0);var g=z.stackIndex+1}a.stackIndex=g});this.onSeries=x}}});P(y,"parts/FlagsSeries.js",[y["parts/Globals.js"],y["parts/Utilities.js"],y["mixins/on-series.js"]],function(f,m,y){function r(f){l[f+"pin"]=function(e,b,g,p,c){var a=c&&c.anchorX;c=c&&c.anchorY;"circle"===f&&p>g&&(e-=Math.round((p-g)/2),g=p);var n=l[f](e,b,g,p);a&&c&&(n.push("M","circle"===f?e+g/2:n[1]+n[4]/2,b>c?b:b+p,"L",a,c),n=n.concat(l.circle(a-1,c-1,2,2)));return n}}var F=m.addEvent,I=m.defined,
G=m.isNumber,B=m.merge,D=m.objectEach,K=m.seriesType,z=m.wrap;m=f.noop;var x=f.Renderer,A=f.Series,u=f.TrackerMixin,n=f.VMLRenderer,l=f.SVGRenderer.prototype.symbols;K("flags","column",{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}<br/>"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,
takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:A.prototype.init,pointAttribs:function(f,e){var b=this.options,g=f&&f.color||this.color,l=b.lineColor,c=f&&f.lineWidth;f=f&&f.fillColor||b.fillColor;e&&(f=b.states[e].fillColor,l=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:f||g,stroke:l||g,"stroke-width":c||b.lineWidth||0}},translate:y.translate,getPlotBox:y.getPlotBox,drawPoints:function(){var l=this.points,e=this.chart,b=e.renderer,g=e.inverted,p=this.options,
c=p.y,a,n=this.yAxis,m={},v=[];for(a=l.length;a--;){var k=l[a];var h=(g?k.plotY:k.plotX)>this.xAxis.len;var t=k.plotX;var r=k.stackIndex;var u=k.options.shape||p.shape;var x=k.plotY;"undefined"!==typeof x&&(x=k.plotY+c-("undefined"!==typeof r&&r*p.stackDistance));k.anchorX=r?void 0:k.plotX;var y=r?void 0:k.plotY;var d="flag"!==u;r=k.graphic;"undefined"!==typeof x&&0<=t&&!h?(r||(r=k.graphic=b.label("",null,null,u,null,null,p.useHTML),e.styledMode||r.attr(this.pointAttribs(k)).css(B(p.style,k.style)),
r.attr({align:d?"center":"left",width:p.width,height:p.height,"text-align":p.textAlign}).addClass("highcharts-point").add(this.markerGroup),k.graphic.div&&(k.graphic.div.point=k),e.styledMode||r.shadow(p.shadow),r.isNew=!0),0<t&&(t-=r.strokeWidth()%2),u={y:x,anchorY:y},p.allowOverlapX&&(u.x=t,u.anchorX=k.anchorX),r.attr({text:k.options.title||p.title||"A"})[r.isNew?"attr":"animate"](u),p.allowOverlapX||(m[k.plotX]?m[k.plotX].size=Math.max(m[k.plotX].size,r.width):m[k.plotX]={align:d?.5:0,size:r.width,
target:t,anchorX:t}),k.tooltipPos=[t,x+n.pos-e.plotTop]):r&&(k.graphic=r.destroy())}p.allowOverlapX||(D(m,function(a){a.plotX=a.anchorX;v.push(a)}),f.distribute(v,g?n.len:this.xAxis.len,100),l.forEach(function(a){var b=a.graphic&&m[a.plotX];b&&(a.graphic[a.graphic.isNew?"attr":"animate"]({x:b.pos+b.align*b.size,anchorX:a.anchorX}),I(b.pos)?a.graphic.isNew=!1:(a.graphic.attr({x:-9999,anchorX:-9999}),a.graphic.isNew=!0))}));p.useHTML&&z(this.markerGroup,"on",function(a){return f.SVGElement.prototype.on.apply(a.apply(this,
[].slice.call(arguments,1)),[].slice.call(arguments,1))})},drawTracker:function(){var f=this.points;u.drawTrackerPoint.apply(this);f.forEach(function(e){var b=e.graphic;b&&F(b.element,"mouseover",function(){0<e.stackIndex&&!e.raised&&(e._y=b.y,b.attr({y:e._y-8}),e.raised=!0);f.forEach(function(b){b!==e&&b.raised&&b.graphic&&(b.graphic.attr({y:b._y}),b.raised=!1)})})})},animate:function(f){f&&this.setClip()},setClip:function(){A.prototype.setClip.apply(this,arguments);!1!==this.options.clip&&this.sharedClipKey&&
this.markerGroup.clip(this.chart[this.sharedClipKey])},buildKDTree:m,invertGroups:m},{isValid:function(){return G(this.y)||"undefined"===typeof this.y}});l.flag=function(f,e,b,g,p){var c=p&&p.anchorX||f;p=p&&p.anchorY||e;return l.circle(c-1,p-1,2,2).concat(["M",c,p,"L",f,e+g,f,e,f+b,e,f+b,e+g,f,e+g,"Z"])};r("circle");r("square");x===n&&["circlepin","flag","squarepin"].forEach(function(f){n.prototype.symbols[f]=l[f]});""});P(y,"parts/RangeSelector.js",[y["parts/Globals.js"],y["parts/Utilities.js"]],
function(f,m){function y(b){this.init(b)}var r=m.addEvent,F=m.createElement,N=m.css,G=m.defined,B=m.destroyObjectProperties,D=m.discardElement,K=m.extend,z=m.fireEvent,x=m.isNumber,A=m.merge,u=m.objectEach,n=m.pick,l=m.pInt,q=m.splat,e=f.Axis;m=f.Chart;var b=f.defaultOptions;K(b,{rangeSelector:{verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:"right",x:0,y:0},buttonPosition:{align:"left",x:0,y:0},labelStyle:{color:"#666666"}}});
b.lang=A(b.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"});y.prototype={clickButton:function(b,f){var c=this.chart,a=this.buttonOptions[b],g=c.xAxis[0],l=c.scroller&&c.scroller.getUnionExtremes()||g||{},p=l.dataMin,k=l.dataMax,h=g&&Math.round(Math.min(g.max,n(k,g.max))),m=a.type;l=a._range;var u,y=a.dataGrouping;if(null!==p&&null!==k){c.fixedRange=l;y&&(this.forcedDataGrouping=!0,e.prototype.setDataGrouping.call(g||{chart:this.chart},y,!1),this.frozenStates=a.preserveDataGrouping);
if("month"===m||"year"===m)if(g){m={range:a,max:h,chart:c,dataMin:p,dataMax:k};var z=g.minFromRange.call(m);x(m.newMax)&&(h=m.newMax)}else l=a;else if(l)z=Math.max(h-l,p),h=Math.min(z+l,k);else if("ytd"===m)if(g)"undefined"===typeof k&&(p=Number.MAX_VALUE,k=Number.MIN_VALUE,c.series.forEach(function(a){a=a.xData;p=Math.min(a[0],p);k=Math.max(a[a.length-1],k)}),f=!1),h=this.getYTDExtremes(k,p,c.time.useUTC),z=u=h.min,h=h.max;else{this.deferredYTDClick=b;return}else"all"===m&&g&&(z=p,h=k);z+=a._offsetMin;
h+=a._offsetMax;this.setSelected(b);if(g)g.setExtremes(z,h,n(f,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:a});else{var C=q(c.options.xAxis)[0];var d=C.range;C.range=l;var A=C.min;C.min=u;r(c,"load",function(){C.range=d;C.min=A})}}},setSelected:function(b){this.selected=this.options.selected=b},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],
init:function(b){var e=this,c=b.options.rangeSelector,a=c.buttons||[].concat(e.defaultButtons),f=c.selected,g=function(){var a=e.minInput,b=e.maxInput;a&&a.blur&&z(a,"blur");b&&b.blur&&z(b,"blur")};e.chart=b;e.options=c;e.buttons=[];e.buttonOptions=a;this.unMouseDown=r(b.container,"mousedown",g);this.unResize=r(b,"resize",g);a.forEach(e.computeButtonRange);"undefined"!==typeof f&&a[f]&&this.clickButton(f,!1);r(b,"load",function(){b.xAxis&&b.xAxis[0]&&r(b.xAxis[0],"setExtremes",function(a){this.max-
this.min!==b.fixedRange&&"rangeSelectorButton"!==a.trigger&&"updatedData"!==a.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var b=this,e=this.chart,c=e.xAxis[0],a=Math.round(c.max-c.min),f=!c.hasVisibleSeries,l=e.scroller&&e.scroller.getUnionExtremes()||c,n=l.dataMin,k=l.dataMax;e=b.getYTDExtremes(k,n,e.time.useUTC);var h=e.min,m=e.max,q=b.selected,r=x(q),u=b.options.allButtonsEnabled,y=b.buttons;b.buttonOptions.forEach(function(d,e){var g=
d._range,l=d.type,p=d.count||1,v=y[e],t=0,w=d._offsetMax-d._offsetMin;d=e===q;var x=g>k-n,z=g<c.minRange,C=!1,A=!1;g=g===a;("month"===l||"year"===l)&&a+36E5>=864E5*{month:28,year:365}[l]*p-w&&a-36E5<=864E5*{month:31,year:366}[l]*p+w?g=!0:"ytd"===l?(g=m-h+w===a,C=!d):"all"===l&&(g=c.max-c.min>=k-n,A=!d&&r&&g);l=!u&&(x||z||A||f);p=d&&g||g&&!r&&!C||d&&b.frozenStates;l?t=3:p&&(r=!0,t=2);v.state!==t&&(v.setState(t),0===t&&q===e&&b.setSelected(null))})},computeButtonRange:function(b){var e=b.type,c=b.count||
1,a={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(a[e])b._range=a[e]*c;else if("month"===e||"year"===e)b._range=864E5*{month:30,year:365}[e]*c;b._offsetMin=n(b.offsetMin,0);b._offsetMax=n(b.offsetMax,0);b._range+=b._offsetMax-b._offsetMin},setInputValue:function(b,e){var c=this.chart.options.rangeSelector,a=this.chart.time,f=this[b+"Input"];G(e)&&(f.previousValue=f.HCTime,f.HCTime=e);f.value=a.dateFormat(c.inputEditDateFormat||"%Y-%m-%d",f.HCTime);this[b+"DateBox"].attr({text:a.dateFormat(c.inputDateFormat||
"%b %e, %Y",f.HCTime)})},showInput:function(b){var e=this.inputGroup,c=this[b+"DateBox"];N(this[b+"Input"],{left:e.translateX+c.x+"px",top:e.translateY+"px",width:c.width-2+"px",height:c.height-2+"px",border:"2px solid silver"})},hideInput:function(b){N(this[b+"Input"],{border:0,width:"1px",height:"1px"});this.setInputValue(b)},drawInput:function(e){function g(){var b=t.value,e=(v.inputDateParser||Date.parse)(b),d=a.xAxis[0],f=a.scroller&&a.scroller.xAxis?a.scroller.xAxis:d,g=f.dataMin;f=f.dataMax;
e!==t.previousValue&&(t.previousValue=e,x(e)||(e=b.split("-"),e=Date.UTC(l(e[0]),l(e[1])-1,l(e[2]))),x(e)&&(a.time.useUTC||(e+=6E4*(new Date).getTimezoneOffset()),h?e>c.maxInput.HCTime?e=void 0:e<g&&(e=g):e<c.minInput.HCTime?e=void 0:e>f&&(e=f),"undefined"!==typeof e&&d.setExtremes(h?e:d.min,h?d.max:e,void 0,void 0,{trigger:"rangeSelectorInput"})))}var c=this,a=c.chart,n=a.renderer.style||{},m=a.renderer,v=a.options.rangeSelector,k=c.div,h="min"===e,t,q,r=this.inputGroup;this[e+"Label"]=q=m.label(b.lang[h?
"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(r);r.offset+=q.width+5;this[e+"DateBox"]=m=m.label("",r.offset).addClass("highcharts-range-input").attr({padding:2,width:v.inputBoxWidth||90,height:v.inputBoxHeight||17,"text-align":"center"}).on("click",function(){c.showInput(e);c[e+"Input"].focus()});a.styledMode||m.attr({stroke:v.inputBoxBorderColor||"#cccccc","stroke-width":1});m.add(r);r.offset+=m.width+(h?10:0);this[e+"Input"]=
t=F("input",{name:e,className:"highcharts-range-selector",type:"text"},{top:a.plotTop+"px"},k);a.styledMode||(q.css(A(n,v.labelStyle)),m.css(A({color:"#333333"},n,v.inputStyle)),N(t,K({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},v.inputStyle)));t.onfocus=function(){c.showInput(e)};t.onblur=function(){t===f.doc.activeElement&&g();c.hideInput(e);t.blur()};t.onchange=g;t.onkeypress=function(a){13===a.keyCode&&
g()}},getPosition:function(){var b=this.chart,e=b.options.rangeSelector;b="top"===e.verticalAlign?b.plotTop-b.axisOffset[0]:0;return{buttonTop:b+e.buttonPosition.y,inputTop:b+e.inputPosition.y-10}},getYTDExtremes:function(b,e,c){var a=this.chart.time,f=new a.Date(b),g=a.get("FullYear",f);c=c?a.Date.UTC(g,0,1):+new a.Date(g,0,1);e=Math.max(e||0,c);f=f.getTime();return{max:Math.min(b||f,f),min:e}},render:function(e,f){var c=this,a=c.chart,g=a.renderer,l=a.container,m=a.options,k=m.exporting&&!1!==m.exporting.enabled&&
m.navigation&&m.navigation.buttonOptions,h=b.lang,p=c.div,q=m.rangeSelector,r=n(m.chart.style&&m.chart.style.zIndex,0)+1;m=q.floating;var u=c.buttons;p=c.inputGroup;var x=q.buttonTheme,d=q.buttonPosition,y=q.inputPosition,z=q.inputEnabled,A=x&&x.states,B=a.plotLeft,D=c.buttonGroup,G,I=c.options.verticalAlign,K=a.legend,N=K&&K.options,P=d.y,R=y.y,ba=a.hasLoaded,ca=ba?"animate":"attr",Y=0,V=0,aa;if(!1!==q.enabled){c.rendered||(c.group=G=g.g("range-selector-group").attr({zIndex:7}).add(),c.buttonGroup=
D=g.g("range-selector-buttons").add(G),c.zoomText=g.text(h.rangeSelectorZoom,0,15).add(D),a.styledMode||(c.zoomText.css(q.labelStyle),x["stroke-width"]=n(x["stroke-width"],0)),c.buttonOptions.forEach(function(a,b){u[b]=g.button(a.text,0,0,function(d){var e=a.events&&a.events.click,f;e&&(f=e.call(a,d));!1!==f&&c.clickButton(b);c.isActive=!0},x,A&&A.hover,A&&A.select,A&&A.disabled).attr({"text-align":"center"}).add(D)}),!1!==z&&(c.div=p=F("div",null,{position:"relative",height:0,zIndex:r}),l.parentNode.insertBefore(p,
l),c.inputGroup=p=g.g("input-group").add(G),p.offset=0,c.drawInput("min"),c.drawInput("max")));c.zoomText[ca]({x:n(B+d.x,B)});var da=n(B+d.x,B)+c.zoomText.getBBox().width+5;c.buttonOptions.forEach(function(a,b){u[b][ca]({x:da});da+=u[b].width+n(q.buttonSpacing,5)});B=a.plotLeft-a.spacing[3];c.updateButtonStates();k&&this.titleCollision(a)&&"top"===I&&"right"===d.align&&d.y+D.getBBox().height-12<(k.y||0)+k.height&&(Y=-40);"left"===d.align?aa=d.x-a.spacing[3]:"right"===d.align&&(aa=d.x+Y-a.spacing[1]);
D.align({y:d.y,width:D.getBBox().width,align:d.align,x:aa},!0,a.spacingBox);c.group.placed=ba;c.buttonGroup.placed=ba;!1!==z&&(Y=k&&this.titleCollision(a)&&"top"===I&&"right"===y.align&&y.y-p.getBBox().height-12<(k.y||0)+k.height+a.spacing[0]?-40:0,"left"===y.align?aa=B:"right"===y.align&&(aa=-Math.max(a.axisOffset[1],-Y)),p.align({y:y.y,width:p.getBBox().width,align:y.align,x:y.x+aa-2},!0,a.spacingBox),l=p.alignAttr.translateX+p.alignOptions.x-Y+p.getBBox().x+2,k=p.alignOptions.width,h=D.alignAttr.translateX+
D.getBBox().x,aa=D.getBBox().width+20,(y.align===d.align||h+aa>l&&l+k>h&&P<R+p.getBBox().height)&&p.attr({translateX:p.alignAttr.translateX+(a.axisOffset[1]>=-Y?0:-Y),translateY:p.alignAttr.translateY+D.getBBox().height+10}),c.setInputValue("min",e),c.setInputValue("max",f),c.inputGroup.placed=ba);c.group.align({verticalAlign:I},!0,a.spacingBox);e=c.group.getBBox().height+20;f=c.group.alignAttr.translateY;"bottom"===I&&(K=N&&"bottom"===N.verticalAlign&&N.enabled&&!N.floating?K.legendHeight+n(N.margin,
10):0,e=e+K-20,V=f-e-(m?0:q.y)-(a.titleOffset?a.titleOffset[2]:0)-10);if("top"===I)m&&(V=0),a.titleOffset&&a.titleOffset[0]&&(V=a.titleOffset[0]),V+=a.margin[0]-a.spacing[0]||0;else if("middle"===I)if(R===P)V=0>R?f+void 0:f;else if(R||P)V=0>R||0>P?V-Math.min(R,P):f-e+NaN;c.group.translate(q.x,q.y+Math.floor(V));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+"px",c.maxInput.style.marginTop=c.group.translateY+"px");c.rendered=!0}},getHeight:function(){var b=this.options,e=this.group,c=b.y,a=
b.buttonPosition.y,f=b.inputPosition.y;if(b.height)return b.height;b=e?e.getBBox(!0).height+13+c:0;e=Math.min(f,a);if(0>f&&0>a||0<f&&0<a)b+=Math.abs(e);return b},titleCollision:function(b){return!(b.options.title.text||b.options.subtitle.text)},update:function(b){var e=this.chart;A(!0,e.options.rangeSelector,b);this.destroy();this.init(e);e.rangeSelector.render()},destroy:function(){var b=this,e=b.minInput,c=b.maxInput;b.unMouseDown();b.unResize();B(b.buttons);e&&(e.onfocus=e.onblur=e.onchange=null);
c&&(c.onfocus=c.onblur=c.onchange=null);u(b,function(a,c){a&&"chart"!==c&&(a.destroy?a.destroy():a.nodeType&&D(this[c]));a!==y.prototype[c]&&(b[c]=null)},this)}};e.prototype.minFromRange=function(){var b=this.range,e=b.type,c=this.max,a=this.chart.time,f=function(b,c){var f="year"===e?"FullYear":"Month",g=new a.Date(b),h=a.get(f,g);a.set(f,g,h+c);h===a.get(f,g)&&a.set("Date",g,0);return g.getTime()-b};if(x(b)){var l=c-b;var m=b}else l=c+f(c,-b.count),this.chart&&(this.chart.fixedRange=c-l);var k=
n(this.dataMin,Number.MIN_VALUE);x(l)||(l=k);l<=k&&(l=k,"undefined"===typeof m&&(m=f(l,b.count)),this.newMax=Math.min(l+m,this.dataMax));x(c)||(l=void 0);return l};f.RangeSelector||(r(m,"afterGetContainer",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new y(this))}),r(m,"beforeRender",function(){var b=this.axes,e=this.rangeSelector;e&&(x(e.deferredYTDClick)&&(e.clickButton(e.deferredYTDClick),delete e.deferredYTDClick),b.forEach(function(b){b.updateNames();b.setScale()}),this.getAxisMargins(),
e.render(),b=e.options.verticalAlign,e.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)))}),r(m,"update",function(b){var e=b.options.rangeSelector;b=this.rangeSelector;var c=this.extraBottomMargin,a=this.extraTopMargin;e&&e.enabled&&!G(b)&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=new y(this));this.extraTopMargin=this.extraBottomMargin=!1;b&&(b.render(),e=e&&e.verticalAlign||b.options&&b.options.verticalAlign,b.options.floating||("bottom"===
e?this.extraBottomMargin=!0:"middle"!==e&&(this.extraTopMargin=!0)),this.extraBottomMargin!==c||this.extraTopMargin!==a)&&(this.isDirtyBox=!0)}),r(m,"render",function(){var b=this.rangeSelector;b&&!b.options.floating&&(b.render(),b=b.options.verticalAlign,"bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0))}),r(m,"getMargins",function(){var b=this.rangeSelector;b&&(b=b.getHeight(),this.extraTopMargin&&(this.plotTop+=b),this.extraBottomMargin&&(this.marginBottom+=b))}),m.prototype.callbacks.push(function(b){function e(){c=
b.xAxis[0].getExtremes();x(c.min)&&a.render(c.min,c.max)}var c,a=b.rangeSelector;if(a){var f=r(b.xAxis[0],"afterSetExtremes",function(b){a.render(b.min,b.max)});var g=r(b,"redraw",e);e()}r(b,"destroy",function(){a&&(g(),f())})}),f.RangeSelector=y)});P(y,"parts/StockChart.js",[y["parts/Globals.js"],y["parts/Point.js"],y["parts/Utilities.js"]],function(f,m,y){var r=y.addEvent,F=y.arrayMax,I=y.arrayMin,G=y.clamp,B=y.defined,D=y.extend,K=y.find,z=y.format,x=y.isNumber,A=y.isString,u=y.merge,n=y.pick,
l=y.splat;y=f.Axis;var q=f.Chart,e=f.Renderer,b=f.Series,g=f.SVGRenderer,p=f.VMLRenderer,c=b.prototype,a=c.init,w=c.processData,E=m.prototype.tooltipFormatter;f.StockChart=f.stockChart=function(a,b,c){var e=A(a)||a.nodeName,g=arguments[e?1:0],h=g,k=g.series,m=f.getOptions(),d,p=g.chart&&g.chart.panning,v=n(g.navigator&&g.navigator.enabled,m.navigator.enabled,!0),r=p&&/y/.test(p.type),w={startOnTick:!1,endOnTick:!1};g.xAxis=l(g.xAxis||{}).map(function(a,b){return u({minPadding:0,maxPadding:0,overscroll:0,
ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0},m.xAxis,m.xAxis&&m.xAxis[b],a,{type:"datetime",categories:null},v?w:null)});g.yAxis=l(g.yAxis||{}).map(function(a,b){d=n(a.opposite,!0);return u({labels:{y:-2},opposite:d,showLastLabel:!(!a.categories&&"category"!==a.type),title:{text:null}},m.yAxis,m.yAxis&&m.yAxis[b],a,r?w:null)});g.series=null;g=u({chart:{panning:{enabled:!0,type:"x"},pinchType:"x"},navigator:{enabled:v},scrollbar:{enabled:n(m.scrollbar.enabled,!0)},rangeSelector:{enabled:n(m.rangeSelector.enabled,
!0)},title:{text:null},tooltip:{split:n(m.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},g,{isStock:!0});g.series=h.series=k;return e?new q(a,g,c):new q(g,b)};r(b,"setOptions",function(a){var b;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?b={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(b={marker:{enabled:!1,radius:2}}),b&&(a.plotOptions[this.type]=u(a.plotOptions[this.type],b)))});r(y,"autoLabelAlign",function(a){var b=this.chart,c=this.options;b=
b._labelPanes=b._labelPanes||{};var e=this.options.labels;this.chart.options.isStock&&"yAxis"===this.coll&&(c=c.top+","+c.height,!b[c]&&e.enabled&&(15===e.x&&(e.x=0),"undefined"===typeof e.align&&(e.align="right"),b[c]=this,a.align="right",a.preventDefault()))});r(y,"destroy",function(){var a=this.chart,b=this.options&&this.options.top+","+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});r(y,"getPlotLinePath",function(a){function b(a){var b="xAxis"===a?"yAxis":
"xAxis";a=c.options[b];return x(a)?[f[b][a]]:A(a)?[f.get(a)]:e.map(function(a){return a[b]})}var c=this,e=this.isLinked&&!this.series?this.linkedParent.series:this.series,f=c.chart,g=f.renderer,l=c.left,m=c.top,d,p,q,r,v=[],u=[],w=a.translatedValue,y=a.value,z=a.force;if(f.options.isStock&&!1!==a.acrossPanes&&"xAxis"===c.coll||"yAxis"===c.coll){a.preventDefault();u=b(c.coll);var D=c.isXAxis?f.yAxis:f.xAxis;D.forEach(function(a){if(B(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?
"yAxis":"xAxis";b=B(a.options[b])?f[b][a.options[b]]:f[b][0];c===b&&u.push(a)}});var E=u.length?[]:[c.isXAxis?f.yAxis[0]:f.xAxis[0]];u.forEach(function(a){-1!==E.indexOf(a)||K(E,function(b){return b.pos===a.pos&&b.len===a.len})||E.push(a)});var F=n(w,c.translate(y,null,null,a.old));x(F)&&(c.horiz?E.forEach(function(a){var b;p=a.pos;r=p+a.len;d=q=Math.round(F+c.transB);"pass"!==z&&(d<l||d>l+c.width)&&(z?d=q=G(d,l,l+c.width):b=!0);b||v.push("M",d,p,"L",q,r)}):E.forEach(function(a){var b;d=a.pos;q=d+
a.len;p=r=Math.round(m+c.height-F);"pass"!==z&&(p<m||p>m+c.height)&&(z?p=r=G(p,m,m+c.height):b=!0);b||v.push("M",d,p,"L",q,r)}));a.path=0<v.length?g.crispPolyLine(v,a.lineWidth||1):null}});g.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+b%2/2);return a};e===p&&(p.prototype.crispPolyLine=g.prototype.crispPolyLine);r(y,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=
this.crossLabel.hide())});r(y,"afterDrawCrosshair",function(a){var b,c;if(B(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){var e=this.chart,f=this.options.crosshair.label,g=this.horiz,l=this.opposite,m=this.left,d=this.top,p=this.crossLabel,q=f.format,r="",v="inside"===this.options.tickPosition,u=!1!==this.crosshair.snap,w=0,x=a.e||this.cross&&this.cross.e,y=a.point;var A=this.lin2log;if(this.isLog){a=A(this.min);var E=A(this.max)}else a=this.min,E=this.max;A=g?"center":l?"right"===
this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";p||(p=this.crossLabel=e.renderer.label(null,null,null,f.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&" highcharts-color-"+this.series[0].colorIndex)).attr({align:f.align||A,padding:n(f.padding,8),r:n(f.borderRadius,3),zIndex:2}).add(this.labelGroup),e.styledMode||p.attr({fill:f.backgroundColor||this.series[0]&&this.series[0].color||"#666666",stroke:f.borderColor||"","stroke-width":f.borderWidth||0}).css(D({color:"#ffffff",
fontWeight:"normal",fontSize:"11px",textAlign:"center"},f.style)));g?(A=u?y.plotX+m:x.chartX,d+=l?0:this.height):(A=l?this.width+m:0,d=u?y.plotY+d:x.chartY);q||f.formatter||(this.isDatetimeAxis&&(r="%b %d, %Y"),q="{value"+(r?":"+r:"")+"}");r=u?y[this.isXAxis?"x":"y"]:this.toValue(g?x.chartX:x.chartY);p.attr({text:q?z(q,{value:r},e):f.formatter.call(this,r),x:A,y:d,visibility:r<a||r>E?"hidden":"visible"});f=p.getBBox();if(g){if(v&&!l||!v&&l)d=p.y-f.height}else d=p.y-f.height/2;g?(b=m-f.x,c=m+this.width-
f.x):(b="left"===this.labelAlign?m:0,c="right"===this.labelAlign?m+this.width:e.chartWidth);p.translateX<b&&(w=b-p.translateX);p.translateX+f.width>=c&&(w=-(p.translateX+f.width-c));p.attr({x:A+w,y:d,anchorX:g?A:this.opposite?0:e.chartWidth,anchorY:g?this.opposite?e.chartHeight:0:d+f.height/2})}});c.init=function(){a.apply(this,arguments);this.setCompare(this.options.compare)};c.setCompare=function(a){this.modifyValue="value"===a||"percent"===a?function(b,c){var e=this.compareValue;return"undefined"!==
typeof b&&"undefined"!==typeof e?(b="value"===a?b-e:b/e*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b):0}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};c.processData=function(a){var b,c=-1,e=!0===this.options.compareStart?0:1;w.apply(this,arguments);if(this.xAxis&&this.processedYData){var f=this.processedXData;var g=this.processedYData;var l=g.length;this.pointArrayMap&&(c=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y"));for(b=
0;b<l-e;b++){var m=g[b]&&-1<c?g[b][c]:g[b];if(x(m)&&f[b+e]>=this.xAxis.min&&0!==m){this.compareValue=m;break}}}};r(b,"afterGetExtremes",function(){if(this.modifyValue){var a=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)];this.dataMin=I(a);this.dataMax=F(a)}});y.prototype.setCompare=function(a,b){this.isXAxis||(this.series.forEach(function(b){b.setCompare(a)}),n(b,!0)&&this.chart.redraw())};m.prototype.tooltipFormatter=function(a){var b=this.series.chart.numberFormatter;a=a.replace("{point.change}",
(0<this.change?"+":"")+b(this.change,n(this.series.tooltipOptions.changeDecimals,2)));return E.apply(this,[a])};r(b,"render",function(){var a=this.chart;if(!(a.is3d&&a.is3d()||a.polar)&&this.xAxis&&!this.xAxis.isRadial){var b=this.yAxis.len;if(this.xAxis.axisLine){var c=a.plotTop+a.plotHeight-this.yAxis.pos-this.yAxis.len,e=Math.floor(this.xAxis.axisLine.strokeWidth()/2);0<=c&&(b-=Math.max(e-c,0))}!this.clipBox&&this.animate?(this.clipBox=u(a.clipBox),this.clipBox.width=this.xAxis.len,this.clipBox.height=
b):a[this.sharedClipKey]&&(a[this.sharedClipKey].animate({width:this.xAxis.len,height:b}),a[this.sharedClipKey+"m"]&&a[this.sharedClipKey+"m"].animate({width:this.xAxis.len}))}});r(q,"update",function(a){a=a.options;"scrollbar"in a&&this.navigator&&(u(!0,this.options.scrollbar,a.scrollbar),this.navigator.update({},!1),delete a.scrollbar)});r(y,"afterSetScale",function(){var a=this,b=a.chart.options.chart&&a.chart.options.chart.panning;if(b&&("y"===b.type||"xy"===b.type)&&!a.isXAxis&&!B(a.panningState)){var c=
Number.MAX_VALUE,e=Number.MIN_VALUE;a.series.forEach(function(b){c=Math.min(f.arrayMin(b.yData),c)-(a.min&&a.dataMin?a.dataMin-a.min:0);e=Math.max(f.arrayMax(b.yData),e)+(a.max&&a.dataMax?a.max-a.dataMax:0)});a.panningState={startMin:c,startMax:e}}})});P(y,"masters/modules/stock.src.js",[],function(){});P(y,"masters/highstock.src.js",[y["masters/highcharts.src.js"]],function(f){f.product="Highstock";return f});y["masters/highstock.src.js"]._modules=y;return y["masters/highstock.src.js"]});
//# sourceMappingURL=highstock.js.map