/*
 Highcharts JS v5.0.14 (2017-07-28)

 (c) 2009-2016 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(L,T){"object"===typeof module&&module.exports?module.exports=L.document?T(L):T:L.Highcharts=T(L)})("undefined"!==typeof window?window:this,function(L){L=function(){var a=window,y=a.document,C=a.navigator&&a.navigator.userAgent||"",E=y&&y.createElementNS&&!!y.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,D=/(edge|msie|trident)/i.test(C)&&!window.opera,q=!E,d=/Firefox/.test(C),g=d&&4>parseInt(C.split("Firefox/")[1],10);return a.Highcharts?a.Highcharts.error(16,!0):{product:"Highcharts",
version:"5.0.14",deg2rad:2*Math.PI/360,doc:y,hasBidiBug:g,hasTouch:y&&void 0!==y.documentElement.ontouchstart,isMS:D,isWebKit:/AppleWebKit/.test(C),isFirefox:d,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,vml:q,win:a,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();(function(a){var y=[],C=a.charts,E=a.doc,D=a.win;a.error=function(q,d){q=a.isNumber(q)?"Highcharts error #"+
q+": www.highcharts.com/errors/"+q:q;if(d)throw Error(q);D.console&&console.log(q)};a.Fx=function(a,d,g){this.options=d;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],d=this.paths[1],g=[],p=this.now,m=a.length,n;if(1===p)g=this.toD;else if(m===d.length&&1>p)for(;m--;)n=parseFloat(a[m]),g[m]=isNaN(n)?a[m]:p*parseFloat(d[m]-n)+n;else g=d;this.elem.attr("d",g,null,!0)},update:function(){var a=this.elem,d=this.prop,g=this.now,p=this.options.step;if(this[d+"Setter"])this[d+
"Setter"]();else a.attr?a.element&&a.attr(d,g,null,!0):a.style[d]=g+this.unit;p&&p.call(a,g,this)},run:function(a,d,g){var q=this,m=function(a){return m.stopped?!1:q.step(a)},n;this.startTime=+new Date;this.start=a;this.end=d;this.unit=g;this.now=this.start;this.pos=0;m.elem=this.elem;m.prop=this.prop;m()&&1===y.push(m)&&(m.timerId=setInterval(function(){for(n=0;n<y.length;n++)y[n]()||y.splice(n--,1);y.length||clearInterval(m.timerId)},13))},step:function(q){var d=+new Date,g,p=this.options,m=this.elem,
n=p.complete,f=p.duration,c=p.curAnim;m.attr&&!m.element?q=!1:q||d>=f+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=c[this.prop]=!0,a.objectEach(c,function(a){!0!==a&&(g=!1)}),g&&n&&n.call(m),q=!1):(this.pos=p.easing((d-this.startTime)/f),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,d,g){function p(a){var b,e;for(k=a.length;k--;)b="M"===a[k]||"L"===a[k],e=/[a-zA-Z]/.test(a[k+3]),b&&e&&a.splice(k+1,0,a[k+1],a[k+2],a[k+1],a[k+2])}
function m(a,e){for(;a.length<u;){a[0]=e[u-a.length];var l=a.slice(0,b);[].splice.apply(a,[0,0].concat(l));F&&(l=a.slice(a.length-b),[].splice.apply(a,[a.length,0].concat(l)),k--)}a[0]="M"}function n(a,c){for(var k=(u-a.length)/b;0<k&&k--;)l=a.slice().splice(a.length/H-b,b*H),l[0]=c[u-b-k*b],e&&(l[b-6]=l[b-2],l[b-5]=l[b-1]),[].splice.apply(a,[a.length/H,0].concat(l)),F&&k--}d=d||"";var f,c=q.startX,x=q.endX,e=-1<d.indexOf("C"),b=e?7:3,u,l,k;d=d.split(" ");g=g.slice();var F=q.isArea,H=F?2:1,B;e&&(p(d),
p(g));if(c&&x){for(k=0;k<c.length;k++)if(c[k]===x[0]){f=k;break}else if(c[0]===x[x.length-c.length+k]){f=k;B=!0;break}void 0===f&&(d=[])}d.length&&a.isNumber(f)&&(u=g.length+f*H*b,B?(m(d,g),n(g,d)):(m(g,d),n(d,g)));return[d,g]}};a.Fx.prototype.fillSetter=a.Fx.prototype.strokeSetter=function(){this.elem.attr(this.prop,a.color(this.start).tweenTo(a.color(this.end),this.pos),null,!0)};a.extend=function(a,d){var g;a||(a={});for(g in d)a[g]=d[g];return a};a.merge=function(){var q,d=arguments,g,p={},m=
function(d,f){"object"!==typeof d&&(d={});a.objectEach(f,function(c,g){!a.isObject(c,!0)||a.isClass(c)||a.isDOMElement(c)?d[g]=f[g]:d[g]=m(d[g]||{},c)});return d};!0===d[0]&&(p=d[1],d=Array.prototype.slice.call(d,2));g=d.length;for(q=0;q<g;q++)p=m(p,d[q]);return p};a.pInt=function(a,d){return parseInt(a,d||10)};a.isString=function(a){return"string"===typeof a};a.isArray=function(a){a=Object.prototype.toString.call(a);return"[object Array]"===a||"[object Array Iterator]"===a};a.isObject=function(q,
d){return!!q&&"object"===typeof q&&(!d||!a.isArray(q))};a.isDOMElement=function(q){return a.isObject(q)&&"number"===typeof q.nodeType};a.isClass=function(q){var d=q&&q.constructor;return!(!a.isObject(q,!0)||a.isDOMElement(q)||!d||!d.name||"Object"===d.name)};a.isNumber=function(a){return"number"===typeof a&&!isNaN(a)};a.erase=function(a,d){for(var g=a.length;g--;)if(a[g]===d){a.splice(g,1);break}};a.defined=function(a){return void 0!==a&&null!==a};a.attr=function(q,d,g){var p;a.isString(d)?a.defined(g)?
q.setAttribute(d,g):q&&q.getAttribute&&(p=q.getAttribute(d)):a.defined(d)&&a.isObject(d)&&a.objectEach(d,function(a,d){q.setAttribute(d,a)});return p};a.splat=function(q){return a.isArray(q)?q:[q]};a.syncTimeout=function(a,d,g){if(d)return setTimeout(a,d,g);a.call(0,g)};a.pick=function(){var a=arguments,d,g,p=a.length;for(d=0;d<p;d++)if(g=a[d],void 0!==g&&null!==g)return g};a.css=function(q,d){a.isMS&&!a.svg&&d&&void 0!==d.opacity&&(d.filter="alpha(opacity\x3d"+100*d.opacity+")");a.extend(q.style,
d)};a.createElement=function(q,d,g,p,m){q=E.createElement(q);var n=a.css;d&&a.extend(q,d);m&&n(q,{padding:0,border:"none",margin:0});g&&n(q,g);p&&p.appendChild(q);return q};a.extendClass=function(q,d){var g=function(){};g.prototype=new q;a.extend(g.prototype,d);return g};a.pad=function(a,d,g){return Array((d||2)+1-String(a).length).join(g||0)+a};a.relativeLength=function(a,d,g){return/%$/.test(a)?d*parseFloat(a)/100+(g||0):parseFloat(a)};a.wrap=function(a,d,g){var p=a[d];a[d]=function(){var a=Array.prototype.slice.call(arguments),
d=arguments,f=this;f.proceed=function(){p.apply(f,arguments.length?arguments:d)};a.unshift(p);a=g.apply(this,a);f.proceed=null;return a}};a.getTZOffset=function(q){var d=a.Date;return 6E4*(d.hcGetTimezoneOffset&&d.hcGetTimezoneOffset(q)||d.hcTimezoneOffset||0)};a.dateFormat=function(q,d,g){if(!a.defined(d)||isNaN(d))return a.defaultOptions.lang.invalidDate||"";q=a.pick(q,"%Y-%m-%d %H:%M:%S");var p=a.Date,m=new p(d-a.getTZOffset(d)),n=m[p.hcGetHours](),f=m[p.hcGetDay](),c=m[p.hcGetDate](),x=m[p.hcGetMonth](),
e=m[p.hcGetFullYear](),b=a.defaultOptions.lang,u=b.weekdays,l=b.shortWeekdays,k=a.pad,p=a.extend({a:l?l[f]:u[f].substr(0,3),A:u[f],d:k(c),e:k(c,2," "),w:f,b:b.shortMonths[x],B:b.months[x],m:k(x+1),y:e.toString().substr(2,2),Y:e,H:k(n),k:n,I:k(n%12||12),l:n%12||12,M:k(m[p.hcGetMinutes]()),p:12>n?"AM":"PM",P:12>n?"am":"pm",S:k(m.getSeconds()),L:k(Math.round(d%1E3),3)},a.dateFormats);a.objectEach(p,function(a,b){for(;-1!==q.indexOf("%"+b);)q=q.replace("%"+b,"function"===typeof a?a(d):a)});return g?q.substr(0,
1).toUpperCase()+q.substr(1):q};a.formatSingle=function(q,d){var g=/\.([0-9])/,p=a.defaultOptions.lang;/f$/.test(q)?(g=(g=q.match(g))?g[1]:-1,null!==d&&(d=a.numberFormat(d,g,p.decimalPoint,-1<q.indexOf(",")?p.thousandsSep:""))):d=a.dateFormat(q,d);return d};a.format=function(q,d){for(var g="{",p=!1,m,n,f,c,x=[],e;q;){g=q.indexOf(g);if(-1===g)break;m=q.slice(0,g);if(p){m=m.split(":");n=m.shift().split(".");c=n.length;e=d;for(f=0;f<c;f++)e=e[n[f]];m.length&&(e=a.formatSingle(m.join(":"),e));x.push(e)}else x.push(m);
q=q.slice(g+1);g=(p=!p)?"}":"{"}x.push(q);return x.join("")};a.getMagnitude=function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))};a.normalizeTickInterval=function(q,d,g,p,m){var n,f=q;g=a.pick(g,1);n=q/g;d||(d=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===p&&(1===g?d=a.grep(d,function(a){return 0===a%1}):.1>=g&&(d=[1/g])));for(p=0;p<d.length&&!(f=d[p],m&&f*g>=q||!m&&n<=(d[p]+(d[p+1]||d[p]))/2);p++);return f=a.correctFloat(f*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=
function(a,d){var g=a.length,p,q;for(q=0;q<g;q++)a[q].safeI=q;a.sort(function(a,f){p=d(a,f);return 0===p?a.safeI-f.safeI:p});for(q=0;q<g;q++)delete a[q].safeI};a.arrayMin=function(a){for(var d=a.length,g=a[0];d--;)a[d]<g&&(g=a[d]);return g};a.arrayMax=function(a){for(var d=a.length,g=a[0];d--;)a[d]>g&&(g=a[d]);return g};a.destroyObjectProperties=function(q,d){a.objectEach(q,function(a,p){a&&a!==d&&a.destroy&&a.destroy();delete q[p]})};a.discardElement=function(q){var d=a.garbageBin;d||(d=a.createElement("div"));
q&&d.appendChild(q);d.innerHTML=""};a.correctFloat=function(a,d){return parseFloat(a.toPrecision(d||14))};a.setAnimation=function(q,d){d.renderer.globalAnimation=a.pick(q,d.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};a.numberFormat=function(q,d,g,p){q=+q||0;d=+d;var m=a.defaultOptions.lang,n=(q.toString().split(".")[1]||"").split("e")[0].length,
f,c,x=q.toString().split("e");-1===d?d=Math.min(n,20):a.isNumber(d)||(d=2);c=(Math.abs(x[1]?x[0]:q)+Math.pow(10,-Math.max(d,n)-1)).toFixed(d);n=String(a.pInt(c));f=3<n.length?n.length%3:0;g=a.pick(g,m.decimalPoint);p=a.pick(p,m.thousandsSep);q=(0>q?"-":"")+(f?n.substr(0,f)+p:"");q+=n.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+p);d&&(q+=g+c.slice(-d));x[1]&&(q+="e"+x[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,d,g){if("width"===d)return Math.min(q.offsetWidth,
q.scrollWidth)-a.getStyle(q,"padding-left")-a.getStyle(q,"padding-right");if("height"===d)return Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,"padding-top")-a.getStyle(q,"padding-bottom");if(q=D.getComputedStyle(q,void 0))q=q.getPropertyValue(d),a.pick(g,!0)&&(q=a.pInt(q));return q};a.inArray=function(a,d){return d.indexOf?d.indexOf(a):[].indexOf.call(d,a)};a.grep=function(a,d){return[].filter.call(a,d)};a.find=function(a,d){return[].find.call(a,d)};a.map=function(a,d){for(var g=[],p=0,m=
a.length;p<m;p++)g[p]=d.call(a[p],a[p],p,a);return g};a.offset=function(a){var d=E.documentElement;a=a.getBoundingClientRect();return{top:a.top+(D.pageYOffset||d.scrollTop)-(d.clientTop||0),left:a.left+(D.pageXOffset||d.scrollLeft)-(d.clientLeft||0)}};a.stop=function(a,d){for(var g=y.length;g--;)y[g].elem!==a||d&&d!==y[g].prop||(y[g].stopped=!0)};a.each=function(a,d,g){return Array.prototype.forEach.call(a,d,g)};a.objectEach=function(a,d,g){for(var p in a)a.hasOwnProperty(p)&&d.call(g,a[p],p,a)};
a.addEvent=function(q,d,g){function p(a){a.target=a.srcElement||D;g.call(q,a)}var m=q.hcEvents=q.hcEvents||{};q.addEventListener?q.addEventListener(d,g,!1):q.attachEvent&&(q.hcEventsIE||(q.hcEventsIE={}),g.hcGetKey||(g.hcGetKey=a.uniqueKey()),q.hcEventsIE[g.hcGetKey]=p,q.attachEvent("on"+d,p));m[d]||(m[d]=[]);m[d].push(g);return function(){a.removeEvent(q,d,g)}};a.removeEvent=function(q,d,g){function p(a,e){q.removeEventListener?q.removeEventListener(a,e,!1):q.attachEvent&&(e=q.hcEventsIE[e.hcGetKey],
q.detachEvent("on"+a,e))}function m(){var c,e;q.nodeName&&(d?(c={},c[d]=!0):c=f,a.objectEach(c,function(a,c){if(f[c])for(e=f[c].length;e--;)p(c,f[c][e])}))}var n,f=q.hcEvents,c;f&&(d?(n=f[d]||[],g?(c=a.inArray(g,n),-1<c&&(n.splice(c,1),f[d]=n),p(d,g)):(m(),f[d]=[])):(m(),q.hcEvents={}))};a.fireEvent=function(q,d,g,p){var m;m=q.hcEvents;var n,f;g=g||{};if(E.createEvent&&(q.dispatchEvent||q.fireEvent))m=E.createEvent("Events"),m.initEvent(d,!0,!0),a.extend(m,g),q.dispatchEvent?q.dispatchEvent(m):q.fireEvent(d,
m);else if(m)for(m=m[d]||[],n=m.length,g.target||a.extend(g,{preventDefault:function(){g.defaultPrevented=!0},target:q,type:d}),d=0;d<n;d++)(f=m[d])&&!1===f.call(q,g)&&g.preventDefault();p&&!g.defaultPrevented&&p(g)};a.animate=function(q,d,g){var p,m="",n,f,c;a.isObject(g)||(c=arguments,g={duration:c[2],easing:c[3],complete:c[4]});a.isNumber(g.duration)||(g.duration=400);g.easing="function"===typeof g.easing?g.easing:Math[g.easing]||Math.easeInOutSine;g.curAnim=a.merge(d);a.objectEach(d,function(c,
e){a.stop(q,e);f=new a.Fx(q,g,e);n=null;"d"===e?(f.paths=f.initPath(q,q.d,d.d),f.toD=d.d,p=0,n=1):q.attr?p=q.attr(e):(p=parseFloat(a.getStyle(q,e))||0,"opacity"!==e&&(m="px"));n||(n=c);n&&n.match&&n.match("px")&&(n=n.replace(/px/g,""));f.run(p,n,m)})};a.seriesType=function(q,d,g,p,m){var n=a.getOptions(),f=a.seriesTypes;n.plotOptions[q]=a.merge(n.plotOptions[d],g);f[q]=a.extendClass(f[d]||function(){},p);f[q].prototype.type=q;m&&(f[q].prototype.pointClass=a.extendClass(a.Point,m));return f[q]};a.uniqueKey=
function(){var a=Math.random().toString(36).substring(2,9),d=0;return function(){return"highcharts-"+a+"-"+d++}}();D.jQuery&&(D.jQuery.fn.highcharts=function(){var q=[].slice.call(arguments);if(this[0])return q[0]?(new (a[a.isString(q[0])?q.shift():"Chart"])(this[0],q[0],q[1]),this):C[a.attr(this[0],"data-highcharts-chart")]});E&&!E.defaultView&&(a.getStyle=function(q,d){var g={width:"clientWidth",height:"clientHeight"}[d];if(q.style[d])return a.pInt(q.style[d]);"opacity"===d&&(d="filter");if(g)return q.style.zoom=
1,Math.max(q[g]-2*a.getStyle(q,"padding"),0);q=q.currentStyle[d.replace(/\-(\w)/g,function(a,d){return d.toUpperCase()})];"filter"===d&&(q=q.replace(/alpha\(opacity=([0-9]+)\)/,function(a,d){return d/100}));return""===q?1:a.pInt(q)});Array.prototype.forEach||(a.each=function(a,d,g){for(var p=0,m=a.length;p<m;p++)if(!1===d.call(g,a[p],p,a))return p});Array.prototype.indexOf||(a.inArray=function(a,d){var g,p=0;if(d)for(g=d.length;p<g;p++)if(d[p]===a)return p;return-1});Array.prototype.filter||(a.grep=
function(a,d){for(var g=[],p=0,m=a.length;p<m;p++)d(a[p],p)&&g.push(a[p]);return g});Array.prototype.find||(a.find=function(a,d){var g,p=a.length;for(g=0;g<p;g++)if(d(a[g],g))return a[g]})})(L);(function(a){var y=a.each,C=a.isNumber,E=a.map,D=a.merge,q=a.pInt;a.Color=function(d){if(!(this instanceof a.Color))return new a.Color(d);this.init(d)};a.Color.prototype={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(a){return[q(a[1]),
q(a[2]),q(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[q(a[1]),q(a[2]),q(a[3]),1]}}],names:{none:"rgba(255,255,255,0)",white:"#ffffff",black:"#000000"},init:function(d){var g,p,m,n;if((this.input=d=this.names[d&&d.toLowerCase?d.toLowerCase():""]||d)&&d.stops)this.stops=E(d.stops,function(d){return new a.Color(d[1])});else if(d&&"#"===d.charAt()&&(g=d.length,d=parseInt(d.substr(1),16),7===g?p=[(d&16711680)>>16,(d&65280)>>
8,d&255,1]:4===g&&(p=[(d&3840)>>4|(d&3840)>>8,(d&240)>>4|d&240,(d&15)<<4|d&15,1])),!p)for(m=this.parsers.length;m--&&!p;)n=this.parsers[m],(g=n.regex.exec(d))&&(p=n.parse(g));this.rgba=p||[]},get:function(a){var d=this.input,p=this.rgba,m;this.stops?(m=D(d),m.stops=[].concat(m.stops),y(this.stops,function(d,f){m.stops[f]=[m.stops[f][0],d.get(a)]})):m=p&&C(p[0])?"rgb"===a||!a&&1===p[3]?"rgb("+p[0]+","+p[1]+","+p[2]+")":"a"===a?p[3]:"rgba("+p.join(",")+")":d;return m},brighten:function(a){var d,p=this.rgba;
if(this.stops)y(this.stops,function(d){d.brighten(a)});else if(C(a)&&0!==a)for(d=0;3>d;d++)p[d]+=q(255*a),0>p[d]&&(p[d]=0),255<p[d]&&(p[d]=255);return this},setOpacity:function(a){this.rgba[3]=a;return this},tweenTo:function(a,g){var d,m;a.rgba.length?(d=this.rgba,a=a.rgba,m=1!==a[3]||1!==d[3],a=(m?"rgba(":"rgb(")+Math.round(a[0]+(d[0]-a[0])*(1-g))+","+Math.round(a[1]+(d[1]-a[1])*(1-g))+","+Math.round(a[2]+(d[2]-a[2])*(1-g))+(m?","+(a[3]+(d[3]-a[3])*(1-g)):"")+")"):a=a.input||"none";return a}};a.color=
function(d){return new a.Color(d)}})(L);(function(a){var y,C,E=a.addEvent,D=a.animate,q=a.attr,d=a.charts,g=a.color,p=a.css,m=a.createElement,n=a.defined,f=a.deg2rad,c=a.destroyObjectProperties,x=a.doc,e=a.each,b=a.extend,u=a.erase,l=a.grep,k=a.hasTouch,F=a.inArray,H=a.isArray,B=a.isFirefox,I=a.isMS,r=a.isObject,G=a.isString,w=a.isWebKit,A=a.merge,v=a.noop,J=a.objectEach,h=a.pick,t=a.pInt,M=a.removeEvent,K=a.splat,N=a.stop,O=a.svg,Q=a.SVG_NS,R=a.symbolSizes,P=a.win;y=a.SVGElement=function(){return this};
b(y.prototype,{opacity:1,SVG_NS:Q,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),init:function(a,h){this.element="span"===h?m(h):x.createElementNS(this.SVG_NS,h);this.renderer=a},animate:function(z,t,b){t=a.animObject(h(t,this.renderer.globalAnimation,!0));0!==t.duration?(b&&(t.complete=b),D(this,z,t)):(this.attr(z,null,b),t.step&&t.step.call(this));return this},colorGradient:function(z,h,t){var b=
this.renderer,c,l,k,d,f,w,g,v,u,S,r=[],K;z.radialGradient?l="radialGradient":z.linearGradient&&(l="linearGradient");l&&(k=z[l],f=b.gradients,g=z.stops,S=t.radialReference,H(k)&&(z[l]=k={x1:k[0],y1:k[1],x2:k[2],y2:k[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===l&&S&&!n(k.gradientUnits)&&(d=k,k=A(k,b.getRadialAttr(S,d),{gradientUnits:"userSpaceOnUse"})),J(k,function(a,z){"id"!==z&&r.push(z,a)}),J(g,function(a){r.push(a)}),r=r.join(","),f[r]?S=f[r].attr("id"):(k.id=S=a.uniqueKey(),f[r]=w=b.createElement(l).attr(k).add(b.defs),
w.radAttr=d,w.stops=[],e(g,function(z){0===z[1].indexOf("rgba")?(c=a.color(z[1]),v=c.get("rgb"),u=c.get("a")):(v=z[1],u=1);z=b.createElement("stop").attr({offset:z[0],"stop-color":v,"stop-opacity":u}).add(w);w.stops.push(z)})),K="url("+b.url+"#"+S+")",t.setAttribute(h,K),t.gradient=r,z.toString=function(){return K})},applyTextOutline:function(z){var h=this.element,t,b,c,l,k;-1!==z.indexOf("contrast")&&(z=z.replace(/contrast/g,this.renderer.getContrast(h.style.fill)));z=z.split(" ");b=z[z.length-1];
if((c=z[0])&&"none"!==c&&a.svg){this.fakeTS=!0;z=[].slice.call(h.getElementsByTagName("tspan"));this.ySetter=this.xSetter;c=c.replace(/(^[\d\.]+)(.*?)$/g,function(a,z,h){return 2*z+h});for(k=z.length;k--;)t=z[k],"highcharts-text-outline"===t.getAttribute("class")&&u(z,h.removeChild(t));l=h.firstChild;e(z,function(a,z){0===z&&(a.setAttribute("x",h.getAttribute("x")),z=h.getAttribute("y"),a.setAttribute("y",z||0),null===z&&h.setAttribute("y",0));a=a.cloneNode(1);q(a,{"class":"highcharts-text-outline",
fill:b,stroke:b,"stroke-width":c,"stroke-linejoin":"round"});h.insertBefore(a,l)})}},attr:function(a,h,t,b){var z,e=this.element,c,l=this,k,d;"string"===typeof a&&void 0!==h&&(z=a,a={},a[z]=h);"string"===typeof a?l=(this[a+"Getter"]||this._defaultGetter).call(this,a,e):(J(a,function(z,h){k=!1;b||N(this,h);this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(h)&&(c||(this.symbolAttr(a),c=!0),k=!0);!this.rotation||"x"!==h&&"y"!==h||(this.doTransform=!0);k||(d=this[h+"Setter"]||
this._defaultSetter,d.call(this,z,h,e))},this),this.afterSetters());t&&t();return l},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},addClass:function(a,h){var z=this.attr("class")||"";-1===z.indexOf(a)&&(h||(a=(z+(z?" ":"")+a).replace("  "," ")),this.attr("class",a));return this},hasClass:function(a){return-1!==F(a,(this.attr("class")||"").split(" "))},removeClass:function(a){return this.attr("class",(this.attr("class")||"").replace(a,""))},symbolAttr:function(a){var z=
this;e("x y r start end width height innerR anchorX anchorY".split(" "),function(t){z[t]=h(a[t],z[t])});z.attr({d:z.renderer.symbols[z.symbolName](z.x,z.y,z.width,z.height,z)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a,h){var z=this,t={},b;h=h||a.strokeWidth||0;b=Math.round(h)%2/2;a.x=Math.floor(a.x||z.x||0)+b;a.y=Math.floor(a.y||z.y||0)+b;a.width=Math.floor((a.width||z.width||0)-2*b);a.height=Math.floor((a.height||z.height||0)-
2*b);n(a.strokeWidth)&&(a.strokeWidth=h);J(a,function(a,h){z[h]!==a&&(z[h]=t[h]=a)});return t},css:function(a){var h=this.styles,z={},e=this.element,c,k="",l,d=!h,f=["textOutline","textOverflow","width"];a&&a.color&&(a.fill=a.color);h&&J(a,function(a,t){a!==h[t]&&(z[t]=a,d=!0)});d&&(h&&(a=b(h,z)),c=this.textWidth=a&&a.width&&"auto"!==a.width&&"text"===e.nodeName.toLowerCase()&&t(a.width),this.styles=a,c&&!O&&this.renderer.forExport&&delete a.width,I&&!O?p(this.element,a):(l=function(a,h){return"-"+
h.toLowerCase()},J(a,function(a,h){-1===F(h,f)&&(k+=h.replace(/([A-Z])/g,l)+":"+a+";")}),k&&q(e,"style",k)),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline)));return this},getStyle:function(a){return P.getComputedStyle(this.element||this,"").getPropertyValue(a)},strokeWidth:function(){var a=this.getStyle("stroke-width"),h;a.indexOf("px")===a.length-2?a=t(a):(h=x.createElementNS(Q,"rect"),q(h,{width:a,"stroke-width":0}),
this.element.parentNode.appendChild(h),a=h.getBBox().width,h.parentNode.removeChild(h));return a},on:function(a,h){var z=this,t=z.element;k&&"click"===a?(t.ontouchstart=function(a){z.touchEventFired=Date.now();a.preventDefault();h.call(t,a)},t.onclick=function(a){(-1===P.navigator.userAgent.indexOf("Android")||1100<Date.now()-(z.touchEventFired||0))&&h.call(t,a)}):t["on"+a]=h;return this},setRadialReference:function(a){var h=this.renderer.gradients[this.element.gradient];this.element.radialReference=
a;h&&h.radAttr&&h.animate(this.renderer.getRadialAttr(a,h.radAttr));return this},translate:function(a,h){return this.attr({translateX:a,translateY:h})},invert:function(a){this.inverted=a;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,t=this.translateY||0,b=this.scaleX,e=this.scaleY,c=this.inverted,k=this.rotation,l=this.element;c&&(a+=this.width,t+=this.height);a=["translate("+a+","+t+")"];c?a.push("rotate(90) scale(-1,1)"):k&&a.push("rotate("+k+" "+(l.getAttribute("x")||
0)+" "+(l.getAttribute("y")||0)+")");(n(b)||n(e))&&a.push("scale("+h(b,1)+" "+h(e,1)+")");a.length&&l.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,t,b){var z,e,c,k,l={};e=this.renderer;c=e.alignedObjects;var d,f;if(a){if(this.alignOptions=a,this.alignByTranslate=t,!b||G(b))this.alignTo=z=b||"renderer",u(c,this),c.push(this),b=null}else a=this.alignOptions,t=this.alignByTranslate,z=this.alignTo;b=h(b,e[z],e);
z=a.align;e=a.verticalAlign;c=(b.x||0)+(a.x||0);k=(b.y||0)+(a.y||0);"right"===z?d=1:"center"===z&&(d=2);d&&(c+=(b.width-(a.width||0))/d);l[t?"translateX":"x"]=Math.round(c);"bottom"===e?f=1:"middle"===e&&(f=2);f&&(k+=(b.height-(a.height||0))/f);l[t?"translateY":"y"]=Math.round(k);this[this.placed?"animate":"attr"](l);this.placed=!0;this.alignAttr=l;return this},getBBox:function(a,t){var z,c=this.renderer,l,k=this.element,d=this.styles,w,g=this.textStr,v,u=c.cache,r=c.cacheKeys,A;t=h(t,this.rotation);
l=t*f;w=k&&y.prototype.getStyle.call(k,"font-size");void 0!==g&&(A=g.toString(),-1===A.indexOf("\x3c")&&(A=A.replace(/[0-9]/g,"0")),A+=["",t||0,w,d&&d.width,d&&d.textOverflow].join());A&&!a&&(z=u[A]);if(!z){if(k.namespaceURI===this.SVG_NS||c.forExport){try{(v=this.fakeTS&&function(a){e(k.querySelectorAll(".highcharts-text-outline"),function(h){h.style.display=a})})&&v("none"),z=k.getBBox?b({},k.getBBox()):{width:k.offsetWidth,height:k.offsetHeight},v&&v("")}catch(V){}if(!z||0>z.width)z={width:0,height:0}}else z=
this.htmlGetBBox();c.isSVG&&(a=z.width,c=z.height,d&&"11px"===d.fontSize&&17===Math.round(c)&&(z.height=c=14),t&&(z.width=Math.abs(c*Math.sin(l))+Math.abs(a*Math.cos(l)),z.height=Math.abs(c*Math.cos(l))+Math.abs(a*Math.sin(l))));if(A&&0<z.height){for(;250<r.length;)delete u[r.shift()];u[A]||r.push(A);u[A]=z}}return z},show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var h=this;h.animate({opacity:0},
{duration:a||150,complete:function(){h.attr({y:-9999})}})},add:function(a){var h=this.renderer,z=this.element,t;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&h.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)t=this.zIndexSetter();t||(a?a.element:h.box).appendChild(z);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var h=a.parentNode;h&&h.removeChild(a)},destroy:function(){var a=this,h=a.element||{},t=a.renderer.isSVG&&"SPAN"===h.nodeName&&
a.parentGroup,b=h.ownerSVGElement;h.onclick=h.onmouseout=h.onmouseover=h.onmousemove=h.point=null;N(a);a.clipPath&&b&&(e(b.querySelectorAll("[clip-path]"),function(h){-1<h.getAttribute("clip-path").indexOf(a.clipPath.element.id+")")&&h.removeAttribute("clip-path")}),a.clipPath=a.clipPath.destroy());if(a.stops){for(b=0;b<a.stops.length;b++)a.stops[b]=a.stops[b].destroy();a.stops=null}for(a.safeRemoveChild(h);t&&t.div&&0===t.div.childNodes.length;)h=t.parentGroup,a.safeRemoveChild(t.div),delete t.div,
t=h;a.alignTo&&u(a.renderer.alignedObjects,a);J(a,function(h,t){delete a[t]});return null},xGetter:function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)},_defaultGetter:function(a){a=h(this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,h,t){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[h]!==a&&(t.setAttribute(h,a),this[h]=a)},alignSetter:function(a){this.element.setAttribute("text-anchor",
{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,h,t){this[h]=a;t.setAttribute(h,a)},titleSetter:function(a){var t=this.element.getElementsByTagName("title")[0];t||(t=x.createElementNS(this.SVG_NS,"title"),this.element.appendChild(t));t.firstChild&&t.removeChild(t.firstChild);t.appendChild(x.createTextNode(String(h(a),"").replace(/<[^>]*>/g,"")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,
h,t){"string"===typeof a?t.setAttribute(h,a):a&&this.colorGradient(a,h,t)},visibilitySetter:function(a,h,t){"inherit"===a?t.removeAttribute(h):this[h]!==a&&t.setAttribute(h,a);this[h]=a},zIndexSetter:function(a,h){var b=this.renderer,z=this.parentGroup,e=(z||b).element||b.box,c,k=this.element,l;c=this.added;var d;n(a)&&(k.zIndex=a,a=+a,this[h]===a&&(c=!1),this[h]=a);if(c){(a=this.zIndex)&&z&&(z.handleZ=!0);h=e.childNodes;for(d=0;d<h.length&&!l;d++)z=h[d],c=z.zIndex,z!==k&&(t(c)>a||!n(a)&&n(c)||0>
a&&!n(c)&&e!==b.box)&&(e.insertBefore(k,z),l=!0);l||e.appendChild(k)}return l},_defaultSetter:function(a,h,t){t.setAttribute(h,a)}});y.prototype.yGetter=y.prototype.xGetter;y.prototype.translateXSetter=y.prototype.translateYSetter=y.prototype.rotationSetter=y.prototype.verticalAlignSetter=y.prototype.scaleXSetter=y.prototype.scaleYSetter=function(a,h){this[h]=a;this.doTransform=!0};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};b(C.prototype,{Element:y,SVG_NS:Q,init:function(a,h,t,b,
e,c){var z;b=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});z=b.element;a.appendChild(z);-1===a.innerHTML.indexOf("xmlns")&&q(z,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=z;this.boxWrapper=b;this.alignedObjects=[];this.url=(B||w)&&x.getElementsByTagName("base").length?P.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(x.createTextNode("Created with Highcharts 5.0.14"));
this.defs=this.createElement("defs").add();this.allowHTML=c;this.forExport=e;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(h,t,!1);var k;B&&a.getBoundingClientRect&&(h=function(){p(a,{left:0,top:0});k=a.getBoundingClientRect();p(a,{left:Math.ceil(k.left)-k.left+"px",top:Math.ceil(k.top)-k.top+"px"})},h(),this.unSubPixelFix=E(P,"resize",h))},definition:function(a){function h(a,b){var z;e(K(a),function(a){var e=t.createElement(a.tagName),c={};J(a,function(a,h){"tagName"!==
h&&"children"!==h&&"textContent"!==h&&(c[h]=a)});e.attr(c);e.add(b||t.defs);a.textContent&&e.element.appendChild(x.createTextNode(a.textContent));h(a.children||[],e);z=e});return z}var t=this;return h(a)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var h=
new this.Element;h.init(this,a);return h},draw:v,getRadialAttr:function(a,h){return{cx:a[0]-a[2]/2+h.cx*a[2],cy:a[1]-a[2]/2+h.cy*a[2],r:h.r*a[2]}},getSpanWidth:function(a,h){var t=a.getBBox(!0).width;!O&&this.forExport&&(t=this.measureSpanWidth(h.firstChild.data,a.styles));return t},applyEllipsis:function(a,h,t,b){var e=a.rotation,z=t,c,k=0,l=t.length,d=function(a){h.removeChild(h.firstChild);a&&h.appendChild(x.createTextNode(a))},f;a.rotation=0;z=this.getSpanWidth(a,h);if(f=z>b){for(;k<=l;)c=Math.ceil((k+
l)/2),z=t.substring(0,c)+"\u2026",d(z),z=this.getSpanWidth(a,h),k===l?k=l+1:z>b?l=c-1:k=c;0===l&&d("")}a.rotation=e;return f},buildText:function(a){var b=a.element,c=this,k=c.forExport,z=h(a.textStr,"").toString(),d=-1!==z.indexOf("\x3c"),f=b.childNodes,w,g,v,u,r=q(b,"x"),A=a.styles,n=a.textWidth,K=A&&A.lineHeight,M=A&&A.textOutline,B=A&&"ellipsis"===A.textOverflow,I=A&&"nowrap"===A.whiteSpace,F,m=f.length,N=n&&!a.added&&this.box,R=function(a){return K?t(K):c.fontMetrics(void 0,a.getAttribute("style")?
a:b).h},A=[z,B,I,K,M,A&&A.fontSize,n].join();if(A!==a.textCache){for(a.textCache=A;m--;)b.removeChild(f[m]);d||M||B||n||-1!==z.indexOf(" ")?(w=/<.*class="([^"]+)".*>/,g=/<.*style="([^"]+)".*>/,v=/<.*href="([^"]+)".*>/,N&&N.appendChild(b),z=d?z.replace(/<(b|strong)>/g,'\x3cspan class\x3d"highcharts-strong"\x3e').replace(/<(i|em)>/g,'\x3cspan class\x3d"highcharts-emphasized"\x3e').replace(/<a/g,"\x3cspan").replace(/<\/(b|strong|i|em|a)>/g,"\x3c/span\x3e").split(/<br.*?>/g):[z],z=l(z,function(a){return""!==
a}),e(z,function(h,t){var z,l=0;h=h.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||\x3cspan").replace(/<\/span>/g,"\x3c/span\x3e|||");z=h.split("|||");e(z,function(h){if(""!==h||1===z.length){var e={},d=x.createElementNS(c.SVG_NS,"tspan"),f,A;w.test(h)&&(f=h.match(w)[1],q(d,"class",f));g.test(h)&&(A=h.match(g)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),q(d,"style",A));v.test(h)&&!k&&(q(d,"onclick",'location.href\x3d"'+h.match(v)[1]+'"'),p(d,{cursor:"pointer"}));h=(h.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,
"\x3c").replace(/&gt;/g,"\x3e");if(" "!==h){d.appendChild(x.createTextNode(h));l?e.dx=0:t&&null!==r&&(e.x=r);q(d,e);b.appendChild(d);!l&&F&&(!O&&k&&p(d,{display:"block"}),q(d,"dy",R(d)));if(n){e=h.replace(/([^\^])-/g,"$1- ").split(" ");f=1<z.length||t||1<e.length&&!I;var K=[],M,m=R(d),N=a.rotation;for(B&&(u=c.applyEllipsis(a,d,h,n));!B&&f&&(e.length||K.length);)a.rotation=0,M=c.getSpanWidth(a,d),h=M>n,void 0===u&&(u=h),h&&1!==e.length?(d.removeChild(d.firstChild),K.unshift(e.pop())):(e=K,K=[],e.length&&
!I&&(d=x.createElementNS(Q,"tspan"),q(d,{dy:m,x:r}),A&&q(d,"style",A),b.appendChild(d)),M>n&&(n=M)),e.length&&d.appendChild(x.createTextNode(e.join(" ").replace(/- /g,"-")));a.rotation=N}l++}}});F=F||b.childNodes.length}),u&&a.attr("title",a.textStr),N&&N.removeChild(b),M&&a.applyTextOutline&&a.applyTextOutline(M)):b.appendChild(x.createTextNode(z.replace(/&lt;/g,"\x3c").replace(/&gt;/g,"\x3e")))}},getContrast:function(a){a=g(a).rgba;return 510<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"},button:function(a,
h,t,b,e,c,k,l,d){var z=this.label(a,h,t,d,null,null,null,null,"button"),f=0;z.attr(A({padding:8,r:2},e));E(z.element,I?"mouseover":"mouseenter",function(){3!==f&&z.setState(1)});E(z.element,I?"mouseout":"mouseleave",function(){3!==f&&z.setState(f)});z.setState=function(a){1!==a&&(z.state=f=a);z.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0])};return z.on("click",function(a){3!==f&&b.call(z,a)})},crispLine:function(a,
h){a[1]===a[4]&&(a[1]=a[4]=Math.round(a[1])-h%2/2);a[2]===a[5]&&(a[2]=a[5]=Math.round(a[2])+h%2/2);return a},path:function(a){var h={};H(a)?h.d=a:r(a)&&b(h,a);return this.createElement("path").attr(h)},circle:function(a,h,t){a=r(a)?a:{x:a,y:h,r:t};h=this.createElement("circle");h.xSetter=h.ySetter=function(a,h,t){t.setAttribute("c"+h,a)};return h.attr(a)},arc:function(a,h,t,b,e,c){r(a)?(b=a,h=b.y,t=b.r,a=b.x):b={innerR:b,start:e,end:c};a=this.symbol("arc",a,h,t,t,b);a.r=t;return a},rect:function(a,
h,t,b,e,c){e=r(a)?a.r:e;c=this.createElement("rect");a=r(a)?a:void 0===a?{}:{x:a,y:h,width:Math.max(t,0),height:Math.max(b,0)};e&&(a.r=e);c.rSetter=function(a,h,t){q(t,{rx:a,ry:a})};return c.attr(a)},setSize:function(a,t,b){var e=this.alignedObjects,c=e.length;this.width=a;this.height=t;for(this.boxWrapper.animate({width:a,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:h(b,!0)?void 0:0});c--;)e[c].align()},g:function(a){var h=this.createElement("g");
return a?h.attr({"class":"highcharts-"+a}):h},image:function(a,h,t,e,c){var k={preserveAspectRatio:"none"};1<arguments.length&&b(k,{x:h,y:t,width:e,height:c});k=this.createElement("image").attr(k);k.element.setAttributeNS?k.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):k.element.setAttribute("hc-svg-href",a);return k},symbol:function(a,t,c,k,l,f){var z=this,w,g=/^url\((.*?)\)$/,A=g.test(a),u=!A&&(this.symbols[a]?a:"circle"),v=u&&this.symbols[u],r=n(t)&&v&&v.call(this.symbols,Math.round(t),
Math.round(c),k,l,f),K,Q;v?(w=this.path(r),b(w,{symbolName:u,x:t,y:c,width:k,height:l}),f&&b(w,f)):A&&(K=a.match(g)[1],w=this.image(K),w.imgwidth=h(R[K]&&R[K].width,f&&f.width),w.imgheight=h(R[K]&&R[K].height,f&&f.height),Q=function(){w.attr({width:w.width,height:w.height})},e(["width","height"],function(a){w[a+"Setter"]=function(a,h){var t={},b=this["img"+h],e="width"===h?"translateX":"translateY";this[h]=a;n(b)&&(this.element&&this.element.setAttribute(h,b),this.alignByTranslate||(t[e]=((this[h]||
0)-b)/2,this.attr(t)))}}),n(t)&&w.attr({x:t,y:c}),w.isImg=!0,n(w.imgwidth)&&n(w.imgheight)?Q():(w.attr({width:0,height:0}),m("img",{onload:function(){var a=d[z.chartIndex];0===this.width&&(p(this,{position:"absolute",top:"-999em"}),x.body.appendChild(this));R[K]={width:this.width,height:this.height};w.imgwidth=this.width;w.imgheight=this.height;w.element&&Q();this.parentNode&&this.parentNode.removeChild(this);z.imgCount--;if(!z.imgCount&&a&&a.onload)a.onload()},src:K}),this.imgCount++));return w},
symbols:{circle:function(a,h,t,b){return this.arc(a+t/2,h+b/2,t/2,b/2,{start:0,end:2*Math.PI,open:!1})},square:function(a,h,t,b){return["M",a,h,"L",a+t,h,a+t,h+b,a,h+b,"Z"]},triangle:function(a,h,t,b){return["M",a+t/2,h,"L",a+t,h+b,a,h+b,"Z"]},"triangle-down":function(a,h,t,b){return["M",a,h,"L",a+t,h,a+t/2,h+b,"Z"]},diamond:function(a,h,t,b){return["M",a+t/2,h,"L",a+t,h+b/2,a+t/2,h+b,a,h+b/2,"Z"]},arc:function(a,t,b,e,c){var k=c.start,l=c.r||b,d=c.r||e||b,f=c.end-.001;b=c.innerR;e=h(c.open,.001>
Math.abs(c.end-c.start-2*Math.PI));var w=Math.cos(k),z=Math.sin(k),g=Math.cos(f),f=Math.sin(f);c=.001>c.end-k-Math.PI?0:1;l=["M",a+l*w,t+d*z,"A",l,d,0,c,1,a+l*g,t+d*f];n(b)&&l.push(e?"M":"L",a+b*g,t+b*f,"A",b,b,0,c,0,a+b*w,t+b*z);l.push(e?"":"Z");return l},callout:function(a,h,t,b,e){var c=Math.min(e&&e.r||0,t,b),k=c+6,l=e&&e.anchorX;e=e&&e.anchorY;var d;d=["M",a+c,h,"L",a+t-c,h,"C",a+t,h,a+t,h,a+t,h+c,"L",a+t,h+b-c,"C",a+t,h+b,a+t,h+b,a+t-c,h+b,"L",a+c,h+b,"C",a,h+b,a,h+b,a,h+b-c,"L",a,h+c,"C",a,
h,a,h,a+c,h];l&&l>t?e>h+k&&e<h+b-k?d.splice(13,3,"L",a+t,e-6,a+t+6,e,a+t,e+6,a+t,h+b-c):d.splice(13,3,"L",a+t,b/2,l,e,a+t,b/2,a+t,h+b-c):l&&0>l?e>h+k&&e<h+b-k?d.splice(33,3,"L",a,e+6,a-6,e,a,e-6,a,h+c):d.splice(33,3,"L",a,b/2,l,e,a,b/2,a,h+c):e&&e>b&&l>a+k&&l<a+t-k?d.splice(23,3,"L",l+6,h+b,l,h+b+6,l-6,h+b,a+c,h+b):e&&0>e&&l>a+k&&l<a+t-k&&d.splice(3,3,"L",l-6,h,l,h-6,l+6,h,t-c,h);return d}},clipRect:function(h,t,b,e){var c=a.uniqueKey(),k=this.createElement("clipPath").attr({id:c}).add(this.defs);
h=this.rect(h,t,b,e,0).add(k);h.id=c;h.clipPath=k;h.count=0;return h},text:function(a,h,t,b){var e=!O&&this.forExport,c={};if(b&&(this.allowHTML||!this.forExport))return this.html(a,h,t);c.x=Math.round(h||0);t&&(c.y=Math.round(t));if(a||0===a)c.text=a;a=this.createElement("text").attr(c);e&&a.css({position:"absolute"});b||(a.xSetter=function(a,h,t){var b=t.getElementsByTagName("tspan"),e,c=t.getAttribute(h),k;for(k=0;k<b.length;k++)e=b[k],e.getAttribute(h)===c&&e.setAttribute(h,a);t.setAttribute(h,
a)});return a},fontMetrics:function(a,h){a=h&&y.prototype.getStyle.call(h,"font-size");a=/px/.test(a)?t(a):/em/.test(a)?parseFloat(a)*(h?this.fontMetrics(null,h.parentNode).f:16):12;h=24>a?a+3:Math.round(1.2*a);return{h:h,b:Math.round(.8*h),f:a}},rotCorr:function(a,h,t){var b=a;h&&t&&(b=Math.max(b*Math.cos(h*f),4));return{x:-a/3*Math.sin(h*f),y:b}},label:function(h,t,c,k,l,d,f,w,g){var u=this,v=u.g("button"!==g&&"label"),r=v.text=u.text("",0,0,f).attr({zIndex:1}),K,z,x=0,Q=3,B=0,p,I,F,m,N,q={},R,
H=/^url\((.*?)\)$/.test(k),J=H,G,O,P,S;g&&v.addClass("highcharts-"+g);J=!0;G=function(){return K.strokeWidth()%2/2};O=function(){var a=r.element.style,h={};z=(void 0===p||void 0===I||N)&&n(r.textStr)&&r.getBBox();v.width=(p||z.width||0)+2*Q+B;v.height=(I||z.height||0)+2*Q;R=Q+u.fontMetrics(a&&a.fontSize,r).b;J&&(K||(v.box=K=u.symbols[k]||H?u.symbol(k):u.rect(),K.addClass(("button"===g?"":"highcharts-label-box")+(g?" highcharts-"+g+"-box":"")),K.add(v),a=G(),h.x=a,h.y=(w?-R:0)+a),h.width=Math.round(v.width),
h.height=Math.round(v.height),K.attr(b(h,q)),q={})};P=function(){var a=B+Q,h;h=w?0:R;n(p)&&z&&("center"===N||"right"===N)&&(a+={center:.5,right:1}[N]*(p-z.width));if(a!==r.x||h!==r.y)r.attr("x",a),void 0!==h&&r.attr("y",h);r.x=a;r.y=h};S=function(a,h){K?K.attr(a,h):q[a]=h};v.onAdd=function(){r.add(v);v.attr({text:h||0===h?h:"",x:t,y:c});K&&n(l)&&v.attr({anchorX:l,anchorY:d})};v.widthSetter=function(h){p=a.isNumber(h)?h:null};v.heightSetter=function(a){I=a};v["text-alignSetter"]=function(a){N=a};v.paddingSetter=
function(a){n(a)&&a!==Q&&(Q=v.padding=a,P())};v.paddingLeftSetter=function(a){n(a)&&a!==B&&(B=a,P())};v.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==x&&(x=a,z&&v.attr({x:F}))};v.textSetter=function(a){void 0!==a&&r.textSetter(a);O();P()};v["stroke-widthSetter"]=function(a,h){a&&(J=!0);this["stroke-width"]=a;S(h,a)};v.rSetter=function(a,h){S(h,a)};v.anchorXSetter=function(a,h){l=v.anchorX=a;S(h,Math.round(a)-G()-F)};v.anchorYSetter=function(a,h){d=v.anchorY=a;S(h,a-m)};v.xSetter=function(a){v.x=
a;x&&(a-=x*((p||z.width)+2*Q));F=Math.round(a);v.attr("translateX",F)};v.ySetter=function(a){m=v.y=Math.round(a);v.attr("translateY",m)};var U=v.css;return b(v,{css:function(a){if(a){var h={};a=A(a);e(v.textProps,function(t){void 0!==a[t]&&(h[t]=a[t],delete a[t])});r.css(h)}return U.call(v,a)},getBBox:function(){return{width:z.width+2*Q,height:z.height+2*Q,x:z.x-Q,y:z.y-Q}},destroy:function(){M(v.element,"mouseenter");M(v.element,"mouseleave");r&&(r=r.destroy());K&&(K=K.destroy());y.prototype.destroy.call(v);
v=u=O=P=S=null}})}});a.Renderer=C})(L);(function(a){var y=a.attr,C=a.createElement,E=a.css,D=a.defined,q=a.each,d=a.extend,g=a.isFirefox,p=a.isMS,m=a.isWebKit,n=a.pInt,f=a.SVGRenderer,c=a.win,x=a.wrap;d(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&"SPAN"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.updateTransform();a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=d(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=
this.element;"text"===a.nodeName&&(a.style.position="absolute");return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.x||0,l=this.y||0,k=this.textAlign||"left",d={left:0,center:.5,right:1}[k],f=this.styles;E(b,{marginLeft:this.translateX||0,marginTop:this.translateY||0});this.inverted&&q(b.childNodes,function(c){a.invertChild(c,b)});if("SPAN"===b.tagName){var g=this.rotation,x=n(this.textWidth),
r=f&&f.whiteSpace,p=[g,k,b.innerHTML,this.textWidth,this.textAlign].join();p!==this.cTT&&(f=a.fontMetrics(b.style.fontSize).b,D(g)&&this.setSpanRotation(g,d,f),E(b,{width:"",whiteSpace:r||"nowrap"}),b.offsetWidth>x&&/[ \-]/.test(b.textContent||b.innerText)&&E(b,{width:x+"px",display:"block",whiteSpace:r||"normal"}),this.getSpanCorrection(b.offsetWidth,f,d,g,k));E(b,{left:c+(this.xCorr||0)+"px",top:l+(this.yCorr||0)+"px"});m&&(f=b.offsetHeight);this.cTT=p}}else this.alignOnAdd=!0},setSpanRotation:function(a,
b,d){var e={},k=p?"-ms-transform":m?"-webkit-transform":g?"MozTransform":c.opera?"-o-transform":"";e[k]=e.transform="rotate("+a+"deg)";e[k+(g?"Origin":"-origin")]=e.transformOrigin=100*b+"% "+d+"px";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});d(f.prototype,{html:function(a,b,c){var e=this.createElement("span"),k=e.element,f=e.renderer,g=f.isSVG,u=function(a,b){q(["opacity","visibility"],function(e){x(a,e+"Setter",function(a,e,c,k){a.call(this,e,c,k);b[c]=
e})})};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;k.innerHTML=this.textStr=a;e.htmlUpdateTransform()};g&&u(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,b){"align"===b&&(b="textAlign");e[b]=a;e.htmlUpdateTransform()};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({position:"absolute"});k.style.whiteSpace="nowrap";e.css=e.htmlCss;g&&(e.add=function(a){var b,c=f.box.parentNode,l=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)l.push(a),a=a.parentGroup;
q(l.reverse(),function(a){var k,f=y(a.element,"class");f&&(f={className:f});b=a.div=a.div||C("div",f,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;d(a,{classSetter:function(a){this.element.setAttribute("class",a);b.className=a},on:function(){l[0].div&&e.on.apply({element:l[0].div},arguments);return a},translateXSetter:function(h,t){k.left=h+"px";a[t]=h;a.doTransform=!0},
translateYSetter:function(h,t){k.top=h+"px";a[t]=h;a.doTransform=!0}});u(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){function y(){var d=a.defaultOptions.global,m=g.moment;if(d.timezone){if(m)return function(a){return-m.tz(a,d.timezone).utcOffset()};a.error(25)}return d.useUTC&&d.getTimezoneOffset}function C(){var p=a.defaultOptions.global,m,n=p.useUTC,f=n?"getUTC":"get",c=n?"setUTC":"set";a.Date=m=p.Date||g.Date;m.hcTimezoneOffset=
n&&p.timezoneOffset;m.hcGetTimezoneOffset=y();m.hcMakeTime=function(a,e,b,c,l,k){var f;n?(f=m.UTC.apply(0,arguments),f+=D(f)):f=(new m(a,e,d(b,1),d(c,0),d(l,0),d(k,0))).getTime();return f};E("Minutes Hours Day Date Month FullYear".split(" "),function(a){m["hcGet"+a]=f+a});E("Milliseconds Seconds Minutes Hours Date Month FullYear".split(" "),function(a){m["hcSet"+a]=c+a})}var E=a.each,D=a.getTZOffset,q=a.merge,d=a.pick,g=a.win;a.defaultOptions={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:{useUTC:!0},chart:{borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,
spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}},width:null,height:null},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{},itemCheckboxStyle:{position:"absolute",width:"13px",
height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{}},loading:{},tooltip:{enabled:!0,animation:a.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:a.isTouchDevice?25:10,headerFormat:'\x3cspan class\x3d"highcharts-header"\x3e{point.key}\x3c/span\x3e\x3cbr/\x3e',
pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cspan class\x3d"highcharts-strong"\x3e{point.y}\x3c/span\x3e\x3cbr/\x3e'},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},text:"Highcharts.com"}};a.setOptions=function(d){a.defaultOptions=q(!0,a.defaultOptions,d);C();return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;
C()})(L);(function(a){var y=a.correctFloat,C=a.defined,E=a.destroyObjectProperties,D=a.isNumber,q=a.pick,d=a.deg2rad;a.Tick=function(a,d,m,n){this.axis=a;this.pos=d;this.type=m||"";this.isNewLabel=this.isNew=!0;m||n||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,d=a.options,m=a.chart,n=a.categories,f=a.names,c=this.pos,x=d.labels,e=a.tickPositions,b=c===e[0],u=c===e[e.length-1],f=n?q(n[c],f[c],c):c,n=this.label,e=e.info,l;a.isDatetimeAxis&&e&&(l=d.dateTimeLabelFormats[e.higherRanks[c]||
e.unitName]);this.isFirst=b;this.isLast=u;d=a.labelFormatter.call({axis:a,chart:m,isFirst:b,isLast:u,dateTimeLabelFormat:l,value:a.isLog?y(a.lin2log(f)):f,pos:c});C(n)?n&&n.attr({text:d}):(this.labelLength=(this.label=n=C(d)&&x.enabled?m.renderer.text(d,0,0,x.useHTML).add(a.labelGroup):null)&&n.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var g=this.axis,m=a.x,n=g.chart.chartWidth,f=
g.chart.spacing,c=q(g.labelLeft,Math.min(g.pos,f[3])),f=q(g.labelRight,Math.max(g.pos+g.len,n-f[1])),x=this.label,e=this.rotation,b={left:0,center:.5,right:1}[g.labelAlign],u=x.getBBox().width,l=g.getSlotWidth(),k=l,F=1,H,B={};if(e)0>e&&m-b*u<c?H=Math.round(m/Math.cos(e*d)-c):0<e&&m+b*u>f&&(H=Math.round((n-m)/Math.cos(e*d)));else if(n=m+(1-b)*u,m-b*u<c?k=a.x+k*(1-b)-c:n>f&&(k=f-a.x+k*b,F=-1),k=Math.min(l,k),k<l&&"center"===g.labelAlign&&(a.x+=F*(l-k-b*(l-Math.min(u,k)))),u>k||g.autoRotation&&(x.styles||
{}).width)H=k;H&&(B.width=H,(g.options.labels.style||{}).textOverflow||(B.textOverflow="ellipsis"),x.css(B))},getPosition:function(a,d,m,n){var f=this.axis,c=f.chart,g=n&&c.oldChartHeight||c.chartHeight;return{x:a?f.translate(d+m,null,null,n)+f.transB:f.left+f.offset+(f.opposite?(n&&c.oldChartWidth||c.chartWidth)-f.right-f.left:0),y:a?g-f.bottom+f.offset-(f.opposite?f.height:0):g-f.translate(d+m,null,null,n)-f.transB}},getLabelPosition:function(a,p,m,n,f,c,x,e){var b=this.axis,g=b.transA,l=b.reversed,
k=b.staggerLines,F=b.tickRotCorr||{x:0,y:0},q=f.y;C(q)||(q=0===b.side?m.rotation?-8:-m.getBBox().height:2===b.side?F.y+8:Math.cos(m.rotation*d)*(F.y-m.getBBox(!1,0).height/2));a=a+f.x+F.x-(c&&n?c*g*(l?-1:1):0);p=p+q-(c&&!n?c*g*(l?1:-1):0);k&&(m=x/(e||1)%k,b.opposite&&(m=k-m-1),p+=b.labelOffset/k*m);return{x:a,y:Math.round(p)}},getMarkPath:function(a,d,m,n,f,c){return c.crispLine(["M",a,d,"L",a+(f?0:-m),d+(f?m:0)],n)},renderGridLine:function(a,d,m){var g=this.axis,f=this.gridLine,c={},x=this.pos,e=
this.type,b=g.tickmarkOffset,u=g.chart.renderer;f||(e||(c.zIndex=1),a&&(c.opacity=0),this.gridLine=f=u.path().attr(c).addClass("highcharts-"+(e?e+"-":"")+"grid-line").add(g.gridGroup));if(!a&&f&&(a=g.getPlotLinePath(x+b,f.strokeWidth()*m,a,!0)))f[this.isNew?"attr":"animate"]({d:a,opacity:d})},renderMark:function(a,d,m){var g=this.axis,f=g.chart.renderer,c=this.type,x=g.tickSize(c?c+"Tick":"tick"),e=this.mark,b=!e,u=a.x;a=a.y;x&&(g.opposite&&(x[0]=-x[0]),b&&(this.mark=e=f.path().addClass("highcharts-"+
(c?c+"-":"")+"tick").add(g.axisGroup)),e[b?"attr":"animate"]({d:this.getMarkPath(u,a,x[0],e.strokeWidth()*m,g.horiz,f),opacity:d}))},renderLabel:function(a,d,m,n){var f=this.axis,c=f.horiz,g=f.options,e=this.label,b=g.labels,u=b.step,l=f.tickmarkOffset,k=!0,F=a.x;a=a.y;e&&D(F)&&(e.xy=a=this.getLabelPosition(F,a,e,c,b,l,n,u),this.isFirst&&!this.isLast&&!q(g.showFirstLabel,1)||this.isLast&&!this.isFirst&&!q(g.showLastLabel,1)?k=!1:!c||f.isRadial||b.step||b.rotation||d||0===m||this.handleOverflow(a),
u&&n%u&&(k=!1),k&&D(a.y)?(a.opacity=m,e[this.isNewLabel?"attr":"animate"](a),this.isNewLabel=!1):(e.attr("y",-9999),this.isNewLabel=!0),this.isNew=!1)},render:function(a,d,m){var g=this.axis,f=g.horiz,c=this.getPosition(f,this.pos,g.tickmarkOffset,d),x=c.x,e=c.y,g=f&&x===g.pos+g.len||!f&&e===g.pos?-1:1;m=q(m,1);this.isActive=!0;this.renderGridLine(d,m,g);this.renderMark(c,m,g);this.renderLabel(c,d,m,a)},destroy:function(){E(this,this.axis)}}})(L);var T=function(a){var y=a.addEvent,C=a.animObject,
E=a.arrayMax,D=a.arrayMin,q=a.correctFloat,d=a.defaultOptions,g=a.defined,p=a.deg2rad,m=a.destroyObjectProperties,n=a.each,f=a.extend,c=a.fireEvent,x=a.format,e=a.getMagnitude,b=a.grep,u=a.inArray,l=a.isArray,k=a.isNumber,F=a.isString,H=a.merge,B=a.normalizeTickInterval,I=a.objectEach,r=a.pick,G=a.removeEvent,w=a.splat,A=a.syncTimeout,v=a.Tick,J=function(){this.init.apply(this,arguments)};a.extend(J.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",
hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,x:0},minPadding:.01,maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle"},type:"linear"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,
enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)}}},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,t){var h=t.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!h:h;b.isXAxis=h;b.coll=b.coll||(h?"xAxis":"yAxis");b.opposite=t.opposite;b.side=
t.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(t);var e=this.options,c=e.type;b.labelFormatter=e.labels.formatter||b.defaultLabelFormatter;b.userOptions=t;b.minPixelPadding=0;b.reversed=e.reversed;b.visible=!1!==e.visible;b.zoomEnabled=!1!==e.zoomEnabled;b.hasNames="category"===c||!0===e.categories;b.categories=e.categories||b.hasNames;b.names=b.names||[];b.plotLinesAndBandsGroups={};b.isLog="logarithmic"===c;b.isDatetimeAxis="datetime"===c;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;
b.isLinked=g(e.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=e.minRange||e.maxZoom;b.range=e.range;b.offset=e.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=r(e.crosshair,w(a.options.tooltip.crosshairs)[h?0:1],!1);t=b.options.events;-1===u(b,a.axes)&&(h?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&&h&&void 0===
b.reversed&&(b.reversed=!0);I(t,function(a,h){y(b,h,a)});b.lin2log=e.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log)},setOptions:function(a){this.options=H(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],H(d[this.coll],a))},defaultLabelFormatter:function(){var h=this.axis,b=this.value,e=h.categories,c=this.dateTimeLabelFormat,
k=d.lang,l=k.numericSymbols,k=k.numericSymbolMagnitude||1E3,f=l&&l.length,w,v=h.options.labels.format,h=h.isLog?Math.abs(b):h.tickInterval;if(v)w=x(v,this);else if(e)w=b;else if(c)w=a.dateFormat(c,b);else if(f&&1E3<=h)for(;f--&&void 0===w;)e=Math.pow(k,f+1),h>=e&&0===10*b%e&&null!==l[f]&&0!==b&&(w=a.numberFormat(b/e,-1)+l[f]);void 0===w&&(w=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,""));return w},getSeriesExtremes:function(){var a=this,t=a.chart;a.hasVisibleSeries=!1;a.dataMin=
a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();n(a.series,function(h){if(h.visible||!t.options.chart.ignoreHiddenSeries){var e=h.options,c=e.threshold,d;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=c&&(c=null);if(a.isXAxis)e=h.xData,e.length&&(h=D(e),k(h)||h instanceof Date||(e=b(e,function(a){return k(a)}),h=D(e)),a.dataMin=Math.min(r(a.dataMin,e[0]),h),a.dataMax=Math.max(r(a.dataMax,e[0]),E(e)));else if(h.getExtremes(),d=h.dataMax,h=h.dataMin,g(h)&&g(d)&&
(a.dataMin=Math.min(r(a.dataMin,h),h),a.dataMax=Math.max(r(a.dataMax,d),d)),g(c)&&(a.threshold=c),!e.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})},translate:function(a,b,e,c,d,l){var h=this.linkedParent||this,t=1,f=0,w=c?h.oldTransA:h.transA;c=c?h.oldMin:h.min;var v=h.minPixelPadding;d=(h.isOrdinal||h.isBroken||h.isLog&&d)&&h.lin2val;w||(w=h.transA);e&&(t*=-1,f=h.len);h.reversed&&(t*=-1,f-=t*(h.sector||h.len));b?(a=(a*t+f-v)/w+c,d&&(a=h.lin2val(a))):(d&&(a=h.val2lin(a)),a=t*(a-c)*w+f+
t*v+(k(l)?w*l:0));return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,e,c,d){var h=this.chart,t=this.left,l=this.top,f,w,v=e&&h.oldChartHeight||h.chartHeight,g=e&&h.oldChartWidth||h.chartWidth,u;f=this.transB;var A=function(a,h,b){if(a<h||a>b)c?a=Math.min(Math.max(h,a),b):u=!0;return a};d=r(d,this.translate(a,null,null,e));a=e=Math.round(d+
f);f=w=Math.round(v-d-f);k(d)?this.horiz?(f=l,w=v-this.bottom,a=e=A(a,t,t+this.width)):(a=t,e=g-this.right,f=w=A(f,l,l+this.height)):u=!0;return u&&!c?null:h.renderer.crispLine(["M",a,f,"L",e,w],b||1)},getLinearTickPositions:function(a,b,e){var h,t=q(Math.floor(b/a)*a);e=q(Math.ceil(e/a)*a);var c=[];if(this.single)return[b];for(b=t;b<=e;){c.push(b);b=q(b+a);if(b===h)break;h=b}return c},getMinorTickPositions:function(){var a=this,b=a.options,e=a.tickPositions,c=a.minorTickInterval,k=[],d=a.pointRangePadding||
0,l=a.min-d,d=a.max+d,f=d-l;if(f&&f/c<a.len/3)if(a.isLog)n(this.paddedTicks,function(h,b,t){b&&k.push.apply(k,a.getLogTickPositions(c,t[b-1],t[b],!0))});else if(a.isDatetimeAxis&&"auto"===b.minorTickInterval)k=k.concat(a.getTimeTicks(a.normalizeTimeTickInterval(c),l,d,b.startOfWeek));else for(b=l+(e[0]-l)%c;b<=d&&b!==k[0];b+=c)k.push(b);0!==k.length&&a.trimTicks(k);return k},adjustForMinRange:function(){var a=this.options,b=this.min,e=this.max,c,k,d,l,f,w,v,u;this.isXAxis&&void 0===this.minRange&&
!this.isLog&&(g(a.min)||g(a.max)?this.minRange=null:(n(this.series,function(a){w=a.xData;for(l=v=a.xIncrement?1:w.length-1;0<l;l--)if(f=w[l]-w[l-1],void 0===d||f<d)d=f}),this.minRange=Math.min(5*d,this.dataMax-this.dataMin)));e-b<this.minRange&&(k=this.dataMax-this.dataMin>=this.minRange,u=this.minRange,c=(u-e+b)/2,c=[b-c,r(a.min,b-c)],k&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(c),e=[b+u,r(a.max,b+u)],k&&(e[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),e=D(e),e-b<u&&
(c[0]=e-u,c[1]=r(a.min,e-u),b=E(c)));this.min=b;this.max=e},getClosest:function(){var a;this.categories?a=1:n(this.series,function(h){var b=h.closestPointRange,t=h.visible||!h.chart.options.chart.ignoreHiddenSeries;!h.noSharedTooltip&&g(b)&&t&&(a=g(a)?Math.min(a,b):b)});return a},nameToX:function(a){var h=l(this.categories),b=h?this.categories:this.names,e=a.options.x,c;a.series.requireSorting=!1;g(e)||(e=!1===this.options.uniqueNames?a.series.autoIncrement():u(a.name,b));-1===e?h||(c=b.length):c=
e;void 0!==c&&(this.names[c]=a.name);return c},updateNames:function(){var a=this;0<this.names.length&&(this.names.length=0,this.minRange=this.userMinRange,n(this.series||[],function(h){h.xIncrement=null;if(!h.points||h.isDirtyData)h.processData(),h.generatePoints();n(h.points,function(b,t){var e;b.options&&(e=a.nameToX(b),void 0!==e&&e!==b.x&&(b.x=e,h.xData[t]=e))})}))},setAxisTranslation:function(a){var h=this,b=h.max-h.min,e=h.axisPointRange||0,c,k=0,d=0,l=h.linkedParent,f=!!h.categories,w=h.transA,
v=h.isXAxis;if(v||f||e)c=h.getClosest(),l?(k=l.minPointOffset,d=l.pointRangePadding):n(h.series,function(a){var b=f?1:v?r(a.options.pointRange,c,0):h.axisPointRange||0;a=a.options.pointPlacement;e=Math.max(e,b);h.single||(k=Math.max(k,F(a)?0:b/2),d=Math.max(d,"on"===a?0:b))}),l=h.ordinalSlope&&c?h.ordinalSlope/c:1,h.minPointOffset=k*=l,h.pointRangePadding=d*=l,h.pointRange=Math.min(e,b),v&&(h.closestPointRange=c);a&&(h.oldTransA=w);h.translationSlope=h.transA=w=h.options.staticScale||h.len/(b+d||
1);h.transB=h.horiz?h.left:h.bottom;h.minPixelPadding=w*k},minFromRange:function(){return this.max-this.range},setTickInterval:function(h){var b=this,d=b.chart,l=b.options,f=b.isLog,w=b.log2lin,v=b.isDatetimeAxis,u=b.isXAxis,A=b.isLinked,z=l.maxPadding,x=l.minPadding,F=l.tickInterval,m=l.tickPixelInterval,I=b.categories,p=b.threshold,J=b.softThreshold,G,H,y,C;v||I||A||this.getTickAmount();y=r(b.userMin,l.min);C=r(b.userMax,l.max);A?(b.linkedParent=d[b.coll][l.linkedTo],d=b.linkedParent.getExtremes(),
b.min=r(d.min,d.dataMin),b.max=r(d.max,d.dataMax),l.type!==b.linkedParent.options.type&&a.error(11,1)):(!J&&g(p)&&(b.dataMin>=p?(G=p,x=0):b.dataMax<=p&&(H=p,z=0)),b.min=r(y,G,b.dataMin),b.max=r(C,H,b.dataMax));f&&(b.positiveValuesOnly&&!h&&0>=Math.min(b.min,r(b.dataMin,b.min))&&a.error(10,1),b.min=q(w(b.min),15),b.max=q(w(b.max),15));b.range&&g(b.max)&&(b.userMin=b.min=y=Math.max(b.dataMin,b.minFromRange()),b.userMax=C=b.max,b.range=null);c(b,"foundExtremes");b.beforePadding&&b.beforePadding();b.adjustForMinRange();
!(I||b.axisPointRange||b.usePercentage||A)&&g(b.min)&&g(b.max)&&(w=b.max-b.min)&&(!g(y)&&x&&(b.min-=w*x),!g(C)&&z&&(b.max+=w*z));k(l.softMin)&&(b.min=Math.min(b.min,l.softMin));k(l.softMax)&&(b.max=Math.max(b.max,l.softMax));k(l.floor)&&(b.min=Math.max(b.min,l.floor));k(l.ceiling)&&(b.max=Math.min(b.max,l.ceiling));J&&g(b.dataMin)&&(p=p||0,!g(y)&&b.min<p&&b.dataMin>=p?b.min=p:!g(C)&&b.max>p&&b.dataMax<=p&&(b.max=p));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:A&&!F&&m===b.linkedParent.options.tickPixelInterval?
F=b.linkedParent.tickInterval:r(F,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,I?1:(b.max-b.min)*m/Math.max(b.len,m));u&&!h&&n(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!F&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));h=r(l.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);
!F&&b.tickInterval<h&&(b.tickInterval=h);v||f||F||(b.tickInterval=B(b.tickInterval,null,e(b.tickInterval),r(l.allowDecimals,!(.5<b.tickInterval&&5>b.tickInterval&&1E3<b.max&&9999>b.max)),!!this.tickAmount));this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,e=a.tickPositions,c=a.tickPositioner,k=a.startOnTick,d=a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=
"auto"===a.minorTickInterval&&this.tickInterval?this.tickInterval/5:a.minorTickInterval;this.single=this.min===this.max&&g(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=b=e&&e.slice();!b&&(b=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),b.length>this.len&&(b=[b[0],b.pop()]),this.tickPositions=b,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=b=c);this.paddedTicks=b.slice(0);this.trimTicks(b,k,d);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),e||c||this.adjustTickAmount())},trimTicks:function(a,b,e){var h=a[0],c=a[a.length-1],k=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==h)this.min=h;else for(;this.min-k>a[0];)a.shift();if(e)this.max=c;else for(;this.max+k<a[a.length-
1];)a.pop();0===a.length&&g(h)&&a.push((c+h)/2)}},alignToOthers:function(){var a={},b,e=this.options;!1===this.chart.options.chart.alignTicks||!1===e.alignTicks||this.isLog||n(this.chart[this.coll],function(h){var e=h.options,e=[h.horiz?e.left:e.top,e.width,e.height,e.pane].join();h.series.length&&(a[e]?b=!0:a[e]=1)});return b},getTickAmount:function(){var a=this.options,b=a.tickAmount,e=a.tickPixelInterval;!g(a.tickInterval)&&this.len<e&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(b=
2);!b&&this.alignToOthers()&&(b=Math.ceil(this.len/e)+1);4>b&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,e=this.tickAmount,c=this.finalTickAmt,k=b&&b.length;if(k<e){for(;b.length<e;)b.push(q(b[b.length-1]+a));this.transA*=(k-1)/(e-1);this.max=b[b.length-1]}else k>e&&(this.tickInterval*=2,this.setTickPositions());if(g(c)){for(a=e=b.length;a--;)(3===c&&1===a%2||2>=c&&0<a&&a<e-1)&&b.splice(a,1);this.finalTickAmt=void 0}},setScale:function(){var a,
b;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();b=this.len!==this.oldAxisLength;n(this.series,function(b){if(b.isDirtyData||b.isDirty||b.xAxis.isDirty)a=!0});b||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=b||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks()},setExtremes:function(a,b,e,k,d){var h=this,l=h.chart;e=r(e,!0);n(h.series,function(a){delete a.kdTree});d=f(d,{min:a,max:b});c(h,"setExtremes",d,function(){h.userMin=a;h.userMax=b;h.eventArgs=d;e&&l.redraw(k)})},zoom:function(a,b){var h=this.dataMin,e=this.dataMax,c=this.options,k=Math.min(h,r(c.min,h)),c=Math.max(e,r(c.max,e));if(a!==this.min||b!==this.max)this.allowZoomOutside||(g(h)&&(a<k&&(a=
k),a>c&&(a=c)),g(e)&&(b<k&&(b=k),b>c&&(b=c))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:"zoom"});return!0},setAxisSize:function(){var b=this.chart,e=this.options,c=e.offsets||[0,0,0,0],k=this.horiz,d=this.width=Math.round(a.relativeLength(r(e.width,b.plotWidth-c[3]+c[1]),b.plotWidth)),l=this.height=Math.round(a.relativeLength(r(e.height,b.plotHeight-c[0]+c[2]),b.plotHeight)),f=this.top=Math.round(a.relativeLength(r(e.top,b.plotTop+c[0]),b.plotHeight,b.plotTop)),
e=this.left=Math.round(a.relativeLength(r(e.left,b.plotLeft+c[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-l-f;this.right=b.chartWidth-d-e;this.len=Math.max(k?d:l,0);this.pos=k?e:f},getExtremes:function(){var a=this.isLog,b=this.lin2log;return{min:a?q(b(this.min)):this.min,max:a?q(b(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,h=this.lin2log,e=b?h(this.min):this.min,b=b?h(this.max):this.max;
null===a?a=e:e>a?a=e:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(r(a,0)-90*this.side+720)%360;return 15<a&&165>a?"right":195<a&&345>a?"left":"center"},tickSize:function(a){var b=this.options,h=b[a+"Length"],e=r(b[a+"Width"],"tick"===a&&this.isXAxis?1:0);if(e&&h)return"inside"===b[a+"Position"]&&(h=-h),[h,e]},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,b=this.horiz,e=this.tickInterval,c=e,k=this.len/(((this.categories?1:0)+this.max-this.min)/e),d,l=a.rotation,f=this.labelMetrics(),w,v=Number.MAX_VALUE,u,A=function(a){a/=k||1;a=1<a?Math.ceil(a):1;return a*e};b?(u=!a.staggerLines&&!a.step&&(g(l)?[l]:k<r(a.autoRotationLimit,80)&&a.autoRotation))&&n(u,function(a){var b;if(a===l||a&&-90<=a&&90>=a)w=A(Math.abs(f.h/Math.sin(p*a))),b=w+Math.abs(a/360),b<v&&(v=b,d=a,c=w)}):
a.step||(c=A(f.h));this.autoRotation=u;this.labelRotation=r(d,l);return c},getSlotWidth:function(){var a=this.chart,b=this.horiz,e=this.options.labels,c=Math.max(this.tickPositions.length-(this.categories?0:1),1),k=a.margin[3];return b&&2>(e.step||0)&&!e.rotation&&(this.staggerLines||1)*this.len/c||!b&&(k&&k-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,e=this.tickPositions,c=this.ticks,k=this.options.labels,d=this.horiz,l=this.getSlotWidth(),f=Math.max(1,
Math.round(l-2*(k.padding||5))),w={},v=this.labelMetrics(),g=k.style&&k.style.textOverflow,u,A=0,r,x;F(k.rotation)||(w.rotation=k.rotation||0);n(e,function(a){(a=c[a])&&a.labelLength>A&&(A=a.labelLength)});this.maxLabelLength=A;if(this.autoRotation)A>f&&A>v.h?w.rotation=this.labelRotation:this.labelRotation=0;else if(l&&(u={width:f+"px"},!g))for(u.textOverflow="clip",r=e.length;!d&&r--;)if(x=e[r],f=c[x].label)f.styles&&"ellipsis"===f.styles.textOverflow?f.css({textOverflow:"clip"}):c[x].labelLength>
l&&f.css({width:l+"px"}),f.getBBox().height>this.len/e.length-(v.h-v.f)&&(f.specCss={textOverflow:"ellipsis"});w.rotation&&(u={width:(A>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight)+"px"},g||(u.textOverflow="ellipsis"));if(this.labelAlign=k.align||this.autoLabelAlign(this.labelRotation))w.align=this.labelAlign;n(e,function(a){var b=(a=c[a])&&a.label;b&&(b.attr(w),u&&b.css(H(u,b.specCss)),delete b.specCss,a.rotation=w.rotation)});this.tickRotCorr=b.rotCorr(v.b,this.labelRotation||0,0!==this.side)},
hasData:function(){return this.hasVisibleSeries||g(this.min)&&g(this.max)&&!!this.tickPositions},addTitle:function(a){var b=this.chart.renderer,h=this.horiz,e=this.opposite,c=this.options.title,k;this.axisTitle||((k=c.textAlign)||(k=(h?{low:"left",middle:"center",high:"right"}:{low:e?"right":"left",middle:"center",high:e?"left":"right"})[c.align]),this.axisTitle=b.text(c.text,0,0,c.useHTML).attr({zIndex:7,rotation:c.rotation||0,align:k}).addClass("highcharts-axis-title").add(this.axisGroup),this.axisTitle.isNew=
!0);this.axisTitle.css({width:this.len});this.axisTitle[a?"show":"hide"](!0)},generateTick:function(a){var b=this.ticks;b[a]?b[a].addLabel():b[a]=new v(this,a)},getOffset:function(){var a=this,b=a.chart,e=b.renderer,c=a.options,k=a.tickPositions,d=a.ticks,l=a.horiz,f=a.side,w=b.inverted&&!a.isZAxis?[1,0,3,2][f]:f,v,u,A=0,x,B=0,F=c.title,m=c.labels,p=0,q=b.axisOffset,b=b.clipOffset,J=[-1,1,1,-1][f],G=c.className,H=a.axisParent,y=this.tickSize("tick");v=a.hasData();a.showAxis=u=v||r(c.showEmpty,!0);
a.staggerLines=a.horiz&&m.staggerLines;a.axisGroup||(a.gridGroup=e.g("grid").attr({zIndex:c.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(G||"")).add(H),a.axisGroup=e.g("axis").attr({zIndex:c.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(G||"")).add(H),a.labelGroup=e.g("axis-labels").attr({zIndex:m.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels "+(G||"")).add(H));v||a.isLinked?(n(k,function(b,h){a.generateTick(b,h)}),a.renderUnsquish(),
!1===m.reserveSpace||0!==f&&2!==f&&{1:"left",3:"right"}[f]!==a.labelAlign&&"center"!==a.labelAlign||n(k,function(a){p=Math.max(d[a].getLabelSize(),p)}),a.staggerLines&&(p*=a.staggerLines,a.labelOffset=p*(a.opposite?-1:1))):I(d,function(a,b){a.destroy();delete d[b]});F&&F.text&&!1!==F.enabled&&(a.addTitle(u),u&&!1!==F.reserveSpace&&(a.titleOffset=A=a.axisTitle.getBBox()[l?"height":"width"],x=F.offset,B=g(x)?0:r(F.margin,l?5:10)));a.renderLine();a.offset=J*r(c.offset,q[f]);a.tickRotCorr=a.tickRotCorr||
{x:0,y:0};e=0===f?-a.labelMetrics().h:2===f?a.tickRotCorr.y:0;B=Math.abs(p)+B;p&&(B=B-e+J*(l?r(m.y,a.tickRotCorr.y+8*J):m.x));a.axisTitleMargin=r(x,B);q[f]=Math.max(q[f],a.axisTitleMargin+A+J*a.offset,B,v&&k.length&&y?y[0]+J*a.offset:0);k=2*Math.floor(a.axisLine.strokeWidth()/2);0<c.offset&&(k-=2*c.offset);b[w]=Math.max(b[w]||k,k)},getLinePath:function(a){var b=this.chart,h=this.opposite,e=this.offset,c=this.horiz,k=this.left+(h?this.width:0)+e,e=b.chartHeight-this.bottom-(h?this.height:0)+e;h&&(a*=
-1);return b.renderer.crispLine(["M",c?this.left:k,c?e:this.top,"L",c?b.chartWidth-this.right:k,c?e:b.chartHeight-this.bottom],a)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup))},getTitlePosition:function(){var a=this.horiz,b=this.left,e=this.top,c=this.len,k=this.options.title,d=a?b:e,l=this.opposite,f=this.offset,w=k.x||0,v=k.y||0,u=this.axisTitle,g=this.chart.renderer.fontMetrics(k.style&&k.style.fontSize,u),
u=Math.max(u.getBBox(null,0).height-g.h-1,0),c={low:d+(a?0:c),middle:d+c/2,high:d+(a?c:0)}[k.align],b=(a?e+this.height:b)+(a?1:-1)*(l?-1:1)*this.axisTitleMargin+[-u,u,g.f,-u][this.side];return{x:a?c+w:b+(l?this.width:0)+f+w,y:a?b+v-(l?this.height:0)+f:c+v}},renderMinorTick:function(a){var b=this.chart.hasRendered&&k(this.oldMin),h=this.minorTicks;h[a]||(h[a]=new v(this,a,"minor"));b&&h[a].isNew&&h[a].render(null,!0);h[a].render(null,!1,1)},renderTick:function(a,b){var h=this.isLinked,e=this.ticks,
c=this.chart.hasRendered&&k(this.oldMin);if(!h||a>=this.min&&a<=this.max)e[a]||(e[a]=new v(this,a)),c&&e[a].isNew&&e[a].render(b,!0,.1),e[a].render(b)},render:function(){var b=this,e=b.chart,c=b.options,d=b.isLog,l=b.lin2log,f=b.isLinked,w=b.tickPositions,u=b.axisTitle,g=b.ticks,r=b.minorTicks,x=b.alternateBands,B=c.stackLabels,F=c.alternateGridColor,m=b.tickmarkOffset,p=b.axisLine,q=b.showAxis,J=C(e.renderer.globalAnimation),G,H;b.labelEdge.length=0;b.overlap=!1;n([g,r,x],function(a){I(a,function(a){a.isActive=
!1})});if(b.hasData()||f)b.minorTickInterval&&!b.categories&&n(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),w.length&&(n(w,function(a,e){b.renderTick(a,e)}),m&&(0===b.min||b.single)&&(g[-1]||(g[-1]=new v(b,-1,null,!0)),g[-1].render(-1))),F&&n(w,function(h,c){H=void 0!==w[c+1]?w[c+1]+m:b.max-m;0===c%2&&h<b.max&&H<=b.max+(e.polar?-m:m)&&(x[h]||(x[h]=new a.PlotLineOrBand(b)),G=h+m,x[h].options={from:d?l(G):G,to:d?l(H):H,color:F},x[h].render(),x[h].isActive=!0)}),b._addedPlotLB||(n((c.plotLines||
[]).concat(c.plotBands||[]),function(a){b.addPlotBandOrLine(a)}),b._addedPlotLB=!0);n([g,r,x],function(a){var b,h=[],c=J.duration;I(a,function(a,b){a.isActive||(a.render(b,!1,0),a.isActive=!1,h.push(b))});A(function(){for(b=h.length;b--;)a[h[b]]&&!a[h[b]].isActive&&(a[h[b]].destroy(),delete a[h[b]])},a!==x&&e.hasRendered&&c?c:0)});p&&(p[p.isPlaced?"animate":"attr"]({d:this.getLinePath(p.strokeWidth())}),p.isPlaced=!0,p[q?"show":"hide"](!0));u&&q&&(c=b.getTitlePosition(),k(c.y)?(u[u.isNew?"attr":"animate"](c),
u.isNew=!1):(u.attr("y",-9999),u.isNew=!0));B&&B.enabled&&b.renderStackTotals();b.isDirty=!1},redraw:function(){this.visible&&(this.render(),n(this.plotLinesAndBands,function(a){a.render()}));n(this.series,function(a){a.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(a){var b=this,e=b.stacks,h=b.plotLinesAndBands,c;a||G(b);I(e,function(a,b){m(a);e[b]=null});n([b.ticks,b.minorTicks,b.alternateBands],function(a){m(a)});if(h)for(a=h.length;a--;)h[a].destroy();
n("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross".split(" "),function(a){b[a]&&(b[a]=b[a].destroy())});for(c in b.plotLinesAndBandsGroups)b.plotLinesAndBandsGroups[c]=b.plotLinesAndBandsGroups[c].destroy();I(b,function(a,e){-1===u(e,b.keepProps)&&delete b[e]})},drawCrosshair:function(a,b){var e,h=this.crosshair,c=r(h.snap,!0),k,d=this.cross;a||(a=this.cross&&this.cross.e);this.crosshair&&!1!==(g(b)||!c)?(c?g(b)&&(k=this.isXAxis?b.plotX:this.len-b.plotY):k=a&&(this.horiz?
a.chartX-this.pos:this.len-a.chartY+this.pos),g(k)&&(e=this.getPlotLinePath(b&&(this.isXAxis?b.x:r(b.stackY,b.y)),null,null,null,k)||null),g(e)?(b=this.categories&&!this.isRadial,d||(this.cross=d=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(b?"category ":"thin ")+h.className).attr({zIndex:r(h.zIndex,2)}).add()),d.show().attr({d:e}),b&&!h.width&&d.attr({"stroke-width":this.transA}),this.cross.e=a):this.hideCrosshair()):this.hideCrosshair()},hideCrosshair:function(){this.cross&&
this.cross.hide()}});return a.Axis=J}(L);(function(a){var y=a.Axis,C=a.Date,E=a.dateFormat,D=a.defaultOptions,q=a.defined,d=a.each,g=a.extend,p=a.getMagnitude,m=a.getTZOffset,n=a.normalizeTickInterval,f=a.pick,c=a.timeUnits;y.prototype.getTimeTicks=function(a,e,b,u){var l=[],k={},n=D.global.useUTC,x,B=new C(e-Math.max(m(e),m(b))),p=C.hcMakeTime,r=a.unitRange,G=a.count,w,A;if(q(e)){B[C.hcSetMilliseconds](r>=c.second?0:G*Math.floor(B.getMilliseconds()/G));if(r>=c.second)B[C.hcSetSeconds](r>=c.minute?
0:G*Math.floor(B.getSeconds()/G));if(r>=c.minute)B[C.hcSetMinutes](r>=c.hour?0:G*Math.floor(B[C.hcGetMinutes]()/G));if(r>=c.hour)B[C.hcSetHours](r>=c.day?0:G*Math.floor(B[C.hcGetHours]()/G));if(r>=c.day)B[C.hcSetDate](r>=c.month?1:G*Math.floor(B[C.hcGetDate]()/G));r>=c.month&&(B[C.hcSetMonth](r>=c.year?0:G*Math.floor(B[C.hcGetMonth]()/G)),x=B[C.hcGetFullYear]());if(r>=c.year)B[C.hcSetFullYear](x-x%G);if(r===c.week)B[C.hcSetDate](B[C.hcGetDate]()-B[C.hcGetDay]()+f(u,1));x=B[C.hcGetFullYear]();u=B[C.hcGetMonth]();
var v=B[C.hcGetDate](),J=B[C.hcGetHours]();if(C.hcTimezoneOffset||C.hcGetTimezoneOffset)A=(!n||!!C.hcGetTimezoneOffset)&&(b-e>4*c.month||m(e)!==m(b)),B=B.getTime(),w=m(B),B=new C(B+w);n=B.getTime();for(e=1;n<b;)l.push(n),n=r===c.year?p(x+e*G,0):r===c.month?p(x,u+e*G):!A||r!==c.day&&r!==c.week?A&&r===c.hour?p(x,u,v,J+e*G,0,0,w)-w:n+r*G:p(x,u,v+e*G*(r===c.day?1:7)),e++;l.push(n);r<=c.hour&&1E4>l.length&&d(l,function(a){0===a%18E5&&"000000000"===E("%H%M%S%L",a)&&(k[a]="day")})}l.info=g(a,{higherRanks:k,
totalRange:r*G});return l};y.prototype.normalizeTimeTickInterval=function(a,e){var b=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=b[b.length-1];var d=c[e[0]],l=e[1],k;for(k=0;k<b.length&&!(e=b[k],d=c[e[0]],l=e[1],b[k+1]&&a<=(d*l[l.length-1]+c[b[k+1][0]])/2);k++);d===c.year&&a<5*d&&(l=[1,2,5]);a=n(a/d,l,"year"===e[0]?Math.max(p(a/d),1):1);return{unitRange:d,
count:a,unitName:e[0]}}})(L);(function(a){var y=a.Axis,C=a.getMagnitude,E=a.map,D=a.normalizeTickInterval,q=a.pick;y.prototype.getLogTickPositions=function(a,g,p,m){var d=this.options,f=this.len,c=this.lin2log,x=this.log2lin,e=[];m||(this._minorAutoInterval=null);if(.5<=a)a=Math.round(a),e=this.getLinearTickPositions(a,g,p);else if(.08<=a)for(var f=Math.floor(g),b,u,l,k,F,d=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<p+1&&!F;f++)for(u=d.length,b=0;b<u&&!F;b++)l=x(c(f)*d[b]),l>g&&(!m||k<=
p)&&void 0!==k&&e.push(k),k>p&&(F=!0),k=l;else g=c(g),p=c(p),a=d[m?"minorTickInterval":"tickInterval"],a=q("auto"===a?null:a,this._minorAutoInterval,d.tickPixelInterval/(m?5:1)*(p-g)/((m?f/this.tickPositions.length:f)||1)),a=D(a,null,C(a)),e=E(this.getLinearTickPositions(a,g,p),x),m||(this._minorAutoInterval=a/5);m||(this.tickInterval=a);return e};y.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};y.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,y){var C=a.arrayMax,
E=a.arrayMin,D=a.defined,q=a.destroyObjectProperties,d=a.each,g=a.erase,p=a.merge,m=a.pick;a.PlotLineOrBand=function(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)};a.PlotLineOrBand.prototype={render:function(){var d=this,f=d.axis,c=f.horiz,g=d.options,e=g.label,b=d.label,u=g.to,l=g.from,k=g.value,F=D(l)&&D(u),q=D(k),B=d.svgElem,I=!B,r=[],G=m(g.zIndex,0),w=g.events,r={"class":"highcharts-plot-"+(F?"band ":"line ")+(g.className||"")},A={},v=f.chart.renderer,J=F?"bands":"lines",h;h=f.log2lin;f.isLog&&
(l=h(l),u=h(u),k=h(k));A.zIndex=G;J+="-"+G;(h=f.plotLinesAndBandsGroups[J])||(f.plotLinesAndBandsGroups[J]=h=v.g("plot-"+J).attr(A).add());I&&(d.svgElem=B=v.path().attr(r).add(h));if(q)r=f.getPlotLinePath(k,B.strokeWidth());else if(F)r=f.getPlotBandPath(l,u,g);else return;I&&r&&r.length?(B.attr({d:r}),w&&a.objectEach(w,function(a,b){B.on(b,function(a){w[b].apply(d,[a])})})):B&&(r?(B.show(),B.animate({d:r})):(B.hide(),b&&(d.label=b=b.destroy())));e&&D(e.text)&&r&&r.length&&0<f.width&&0<f.height&&!r.flat?
(e=p({align:c&&F&&"center",x:c?!F&&4:10,verticalAlign:!c&&F&&"middle",y:c?F?16:10:F?6:-4,rotation:c&&!F&&90},e),this.renderLabel(e,r,F,G)):b&&b.hide();return d},renderLabel:function(a,d,c,g){var e=this.label,b=this.axis.chart.renderer;e||(e={align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(c?"band":"line")+"-label "+(a.className||"")},e.zIndex=g,this.label=e=b.text(a.text,0,0,a.useHTML).attr(e).add());g=[d[1],d[4],c?d[6]:d[1]];d=[d[2],d[5],c?d[7]:d[2]];c=E(g);b=E(d);e.align(a,
!1,{x:c,y:b,width:C(g)-c,height:C(d)-b});e.show()},destroy:function(){g(this.axis.plotLinesAndBands,this);delete this.axis;q(this)}};a.extend(y.prototype,{getPlotBandPath:function(a,d){var c=this.getPlotLinePath(d,null,null,!0),f=this.getPlotLinePath(a,null,null,!0),e=this.horiz,b=1;a=a<this.min&&d<this.min||a>this.max&&d>this.max;f&&c?(a&&(f.flat=f.toString()===c.toString(),b=0),f.push(e&&c[4]===f[4]?c[4]+b:c[4],e||c[5]!==f[5]?c[5]:c[5]+b,e&&c[1]===f[1]?c[1]+b:c[1],e||c[2]!==f[2]?c[2]:c[2]+b)):f=
null;return f},addPlotBand:function(a){return this.addPlotBandOrLine(a,"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(d,f){var c=(new a.PlotLineOrBand(this,d)).render(),g=this.userOptions;c&&(f&&(g[f]=g[f]||[],g[f].push(d)),this.plotLinesAndBands.push(c));return c},removePlotBandOrLine:function(a){for(var f=this.plotLinesAndBands,c=this.options,x=this.userOptions,e=f.length;e--;)f[e].id===a&&f[e].destroy();d([c.plotLines||[],x.plotLines||
[],c.plotBands||[],x.plotBands||[]],function(b){for(e=b.length;e--;)b[e].id===a&&g(b,b[e])})},removePlotBand:function(a){this.removePlotBandOrLine(a)},removePlotLine:function(a){this.removePlotBandOrLine(a)}})})(L,T);(function(a){var y=a.dateFormat,C=a.each,E=a.extend,D=a.format,q=a.isNumber,d=a.map,g=a.merge,p=a.pick,m=a.splat,n=a.syncTimeout,f=a.timeUnits;a.Tooltip=function(){this.init.apply(this,arguments)};a.Tooltip.prototype={init:function(a,d){this.chart=a;this.options=d;this.crosshairs=[];
this.now={x:0,y:0};this.isHidden=!0;this.split=d.split&&!a.inverted;this.shared=d.shared||this.split},cleanSplit:function(a){C(this.chart.series,function(c){var e=c&&c.tt;e&&(!e.isActive||a?c.tt=e.destroy():e.isActive=!1)})},applyFilter:function(){var a=this.chart;a.renderer.definition({tagName:"filter",id:"drop-shadow-"+a.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"}]}]});a.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+a.index+"{filter:url(#drop-shadow-"+a.index+")}"})},getLabel:function(){var a=this.chart.renderer,d=this.options;this.label||(this.label=this.split?a.g("tooltip"):a.label("",0,0,d.shape||"callout",null,null,d.useHTML,null,"tooltip").attr({padding:d.padding,r:d.borderRadius}),this.applyFilter(),this.label.addClass("highcharts-tooltip-"+
this.chart.index),this.label.attr({zIndex:8}).add());return this.label},update:function(a){this.destroy();g(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,g(!0,this.options,a))},destroy:function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(a,d,e,b){var c=this,l=c.now,k=!1!==c.options.animation&&!c.isHidden&&(1<Math.abs(a-
l.x)||1<Math.abs(d-l.y)),f=c.followPointer||1<c.len;E(l,{x:k?(2*l.x+a)/3:a,y:k?(l.y+d)/2:d,anchorX:f?void 0:k?(2*l.anchorX+e)/3:e,anchorY:f?void 0:k?(l.anchorY+b)/2:b});c.getLabel().attr(l);k&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){c&&c.move(a,d,e,b)},32))},hide:function(a){var c=this;clearTimeout(this.hideTimer);a=p(a,this.options.hideDelay,500);this.isHidden||(this.hideTimer=n(function(){c.getLabel()[a?"fadeOut":"hide"]();c.isHidden=!0},a))},getAnchor:function(a,
f){var e,b=this.chart,c=b.inverted,l=b.plotTop,k=b.plotLeft,g=0,p=0,B,n;a=m(a);e=a[0].tooltipPos;this.followPointer&&f&&(void 0===f.chartX&&(f=b.pointer.normalize(f)),e=[f.chartX-b.plotLeft,f.chartY-l]);e||(C(a,function(a){B=a.series.yAxis;n=a.series.xAxis;g+=a.plotX+(!c&&n?n.left-k:0);p+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!c&&B?B.top-l:0)}),g/=a.length,p/=a.length,e=[c?b.plotWidth-p:g,this.shared&&!c&&1<a.length&&f?f.chartY-l:c?b.plotHeight-g:p]);return d(e,Math.round)},getPosition:function(a,
d,e){var b=this.chart,c=this.distance,l={},k=e.h||0,f,g=["y",b.chartHeight,d,e.plotY+b.plotTop,b.plotTop,b.plotTop+b.plotHeight],B=["x",b.chartWidth,a,e.plotX+b.plotLeft,b.plotLeft,b.plotLeft+b.plotWidth],n=!this.followPointer&&p(e.ttBelow,!b.inverted===!!e.negative),r=function(a,b,e,d,f,w){var h=e<d-c,v=d+c+e<b,g=d-c-e;d+=c;if(n&&v)l[a]=d;else if(!n&&h)l[a]=g;else if(h)l[a]=Math.min(w-e,0>g-k?g:g-k);else if(v)l[a]=Math.max(f,d+k+e>b?d:d+k);else return!1},m=function(a,b,e,d){var h;d<c||d>b-c?h=!1:
l[a]=d<e/2?1:d>b-e/2?b-e-2:d-e/2;return h},w=function(a){var b=g;g=B;B=b;f=a},A=function(){!1!==r.apply(0,g)?!1!==m.apply(0,B)||f||(w(!0),A()):f?l.x=l.y=0:(w(!0),A())};(b.inverted||1<this.len)&&w();A();return l},defaultFormatter:function(a){var c=this.points||m(this),e;e=[a.tooltipFooterHeaderFormatter(c[0])];e=e.concat(a.bodyFormatter(c));e.push(a.tooltipFooterHeaderFormatter(c[0],!0));return e},refresh:function(a,d){var e,b=this.options,c=a,l,k={},f=[];e=b.formatter||this.defaultFormatter;var k=
this.shared,g;b.enabled&&(clearTimeout(this.hideTimer),this.followPointer=m(c)[0].series.tooltipOptions.followPointer,l=this.getAnchor(c,d),d=l[0],b=l[1],!k||c.series&&c.series.noSharedTooltip?k=c.getLabelConfig():(C(c,function(a){a.setState("hover");f.push(a.getLabelConfig())}),k={x:c[0].category,y:c[0].y},k.points=f,c=c[0]),this.len=f.length,k=e.call(k,this),g=c.series,this.distance=p(g.tooltipOptions.distance,16),!1===k?this.hide():(e=this.getLabel(),this.isHidden&&e.attr({opacity:1}).show(),this.split?
this.renderSplit(k,a):(e.css({width:this.chart.spacingBox.width}),e.attr({text:k&&k.join?k.join(""):k}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+p(c.colorIndex,g.colorIndex)),this.updatePosition({plotX:d,plotY:b,negative:c.negative,ttBelow:c.ttBelow,h:l[2]||0})),this.isHidden=!1))},renderSplit:function(c,d){var e=this,b=[],f=this.chart,l=f.renderer,k=!0,g=this.options,n=0,B=this.getLabel();C(c.slice(0,d.length+1),function(a,c){if(!1!==a){c=d[c-1]||{isHeader:!0,plotX:d[0].plotX};
var u=c.series||e,w=u.tt,A="highcharts-color-"+p(c.colorIndex,(c.series||{}).colorIndex,"none");w||(u.tt=w=l.label(null,null,null,"callout").addClass("highcharts-tooltip-box "+A).attr({padding:g.padding,r:g.borderRadius}).add(B));w.isActive=!0;w.attr({text:a});a=w.getBBox();A=a.width+w.strokeWidth();c.isHeader?(n=a.height,A=Math.max(0,Math.min(c.plotX+f.plotLeft-A/2,f.chartWidth-A))):A=c.plotX+f.plotLeft-p(g.distance,16)-A;0>A&&(k=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);
a-=f.plotTop;b.push({target:c.isHeader?f.plotHeight+n:a,rank:c.isHeader?1:0,size:u.tt.getBBox().height+1,point:c,x:A,tt:w})}});this.cleanSplit();a.distribute(b,f.plotHeight+n);C(b,function(a){var b=a.point,e=b.series;a.tt.attr({visibility:void 0===a.pos?"hidden":"inherit",x:k||b.isHeader?a.x:b.plotX+f.plotLeft+p(g.distance,16),y:a.pos+f.plotTop,anchorX:b.isHeader?b.plotX+f.plotLeft:b.plotX+e.xAxis.pos,anchorY:b.isHeader?a.pos+f.plotTop-15:b.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=
this.chart,e=this.getLabel(),e=(this.options.positioner||this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+c.plotLeft,a.plotY+c.plotTop)},getDateFormat:function(a,d,e,b){var c=y("%m-%d %H:%M:%S.%L",d),l,k,g={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond";for(k in f){if(a===f.week&&+y("%w",d)===e&&"00:00:00.000"===c.substr(6)){k="week";break}if(f[k]>a){k=n;break}if(g[k]&&c.substr(g[k])!=="01-01 00:00:00.000".substr(g[k]))break;"week"!==
k&&(n=k)}k&&(l=b[k]);return l},getXDateFormat:function(a,d,e){d=d.dateTimeLabelFormats;var b=e&&e.closestPointRange;return(b?this.getDateFormat(b,a.x,e.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){var e=d?"footer":"header";d=a.series;var b=d.tooltipOptions,c=b.xDateFormat,l=d.xAxis,k=l&&"datetime"===l.options.type&&q(a.key),e=b[e+"Format"];k&&!c&&(c=this.getXDateFormat(a,b,l));k&&c&&(e=e.replace("{point.key}","{point.key:"+c+"}"));return D(e,{point:a,series:d})},
bodyFormatter:function(a){return d(a,function(a){var e=a.series.tooltipOptions;return(e.pointFormatter||a.point.tooltipFormatter).call(a.point,e.pointFormat)})}}})(L);(function(a){var y=a.addEvent,C=a.attr,E=a.charts,D=a.css,q=a.defined,d=a.each,g=a.extend,p=a.find,m=a.fireEvent,n=a.isObject,f=a.offset,c=a.pick,x=a.removeEvent,e=a.splat,b=a.Tooltip,u=a.win;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,e){this.options=e;this.chart=a;this.runChartClick=e.chart.events&&
!!e.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,e.tooltip),this.followTouchMove=c(e.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,e=b.options.chart,d=e.zoomType||"",b=b.inverted;/touch/.test(a.type)&&(d=c(e.pinchType,d));this.zoomX=a=/x/.test(d);this.zoomY=d=/y/.test(d);this.zoomHor=a&&!b||d&&b;this.zoomVert=d&&!b||a&&b;this.hasZoom=a||d},normalize:function(a,b){var e,c;a=a||u.event;a.target||(a.target=a.srcElement);
c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=f(this.chart.container));void 0===c.pageX?(e=Math.max(a.x,a.clientX-b.left),b=a.y):(e=c.pageX-b.left,b=c.pageY-b.top);return g(a,{chartX:Math.round(e),chartY:Math.round(b)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};d(this.chart.axes,function(e){b[e.isXAxis?"xAxis":"yAxis"].push({axis:e,value:e.toValue(a[e.horiz?"chartX":"chartY"])})});return b},findNearestKDPoint:function(a,b,e){var c;d(a,function(a){var d=
!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(e,d);if((d=n(a,!0))&&!(d=!n(c,!0)))var d=c.distX-a.distX,k=c.dist-a.dist,f=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),d=0<(0!==d&&b?d:0!==k?k:0!==f?f:c.series.index>a.series.index?-1:1);d&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var e=a.series,c=e.xAxis,e=e.yAxis;if(c&&
e)return b?{chartX:c.len+c.pos-a.clientX,chartY:e.len+e.pos-a.plotY}:{chartX:a.clientX+c.pos,chartY:a.plotY+e.pos}},getHoverData:function(b,e,f,g,u,m){var k,l=[];g=!(!g||!b);var w=e&&!e.stickyTracking?[e]:a.grep(f,function(a){return a.visible&&!(!u&&a.directTouch)&&c(a.options.enableMouseTracking,!0)&&a.stickyTracking});e=(k=g?b:this.findNearestKDPoint(w,u,m))&&k.series;k&&(u&&!e.noSharedTooltip?(w=a.grep(f,function(a){return a.visible&&!(!u&&a.directTouch)&&c(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),
d(w,function(a){a=p(a.points,function(a){return a.x===k.x});n(a)&&!a.isNull&&l.push(a)})):l.push(k));return{hoverPoint:k,hoverSeries:e,hoverPoints:l}},runPointActions:function(b,e){var k=this.chart,f=k.tooltip,l=f?f.shared:!1,g=e||k.hoverPoint,u=g&&g.series||k.hoverSeries,u=this.getHoverData(g,u,k.series,!!e||u&&u.directTouch&&this.isDirectTouch,l,b),n,g=u.hoverPoint;n=u.hoverPoints;e=(u=u.hoverSeries)&&u.tooltipOptions.followPointer;l=l&&u&&!u.noSharedTooltip;if(g&&(g!==k.hoverPoint||f&&f.isHidden)){d(k.hoverPoints||
[],function(b){-1===a.inArray(b,n)&&b.setState()});d(n||[],function(a){a.setState("hover")});if(k.hoverSeries!==u)u.onMouseOver();k.hoverPoint&&k.hoverPoint.firePointEvent("mouseOut");g.firePointEvent("mouseOver");k.hoverPoints=n;k.hoverPoint=g;f&&f.refresh(l?n:g,b)}else e&&f&&!f.isHidden&&(g=f.getAnchor([{}],b),f.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=y(k.container.ownerDocument,"mousemove",function(b){var e=E[a.hoverChartIndex];if(e)e.pointer.onDocumentMouseMove(b)}));
d(k.axes,function(e){var d=c(e.crosshair.snap,!0),k=d?a.find(n,function(a){return a.series[e.coll]===e}):void 0;k||!d?e.drawCrosshair(b,k):e.hideCrosshair()})},reset:function(a,b){var c=this.chart,k=c.hoverSeries,f=c.hoverPoint,l=c.hoverPoints,g=c.tooltip,u=g&&g.shared?l:f;a&&u&&d(e(u),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)g&&u&&(g.refresh(u),f&&(f.setState(f.state,!0),d(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,f)})));else{if(f)f.onMouseOut();l&&d(l,function(a){a.setState()});
if(k)k.onMouseOut();g&&g.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());d(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var e=this.chart,c;d(e.series,function(d){c=a||d.getPlotBox();d.xAxis&&d.xAxis.zoomEnabled&&d.group&&(d.group.attr(c),d.markerGroup&&(d.markerGroup.attr(c),d.markerGroup.clip(b?e.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(c))});e.clipRect.attr(b||e.clipBox)},dragStart:function(a){var b=
this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,e=b.options.chart,c=a.chartX,d=a.chartY,f=this.zoomHor,l=this.zoomVert,g=b.plotLeft,w=b.plotTop,u=b.plotWidth,v=b.plotHeight,n,h=this.selectionMarker,t=this.mouseDownX,p=this.mouseDownY,m=e.panKey&&a[e.panKey+"Key"];h&&h.touch||(c<g?c=g:c>g+u&&(c=g+u),d<w?d=w:d>w+v&&(d=w+v),this.hasDragged=Math.sqrt(Math.pow(t-c,2)+Math.pow(p-d,2)),10<this.hasDragged&&
(n=b.isInsidePlot(t-g,p-w),b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&n&&!m&&!h&&(this.selectionMarker=h=b.renderer.rect(g,w,f?1:u,l?1:v,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add()),h&&f&&(c-=t,h.attr({width:Math.abs(c),x:(0<c?0:c)+t})),h&&l&&(c=d-p,h.attr({height:Math.abs(c),y:(0<c?0:c)+p})),n&&!h&&e.panning&&b.pan(a,e.panning)))},drop:function(a){var b=this,e=this.chart,c=this.hasPinched;if(this.selectionMarker){var f={originalEvent:a,xAxis:[],yAxis:[]},l=this.selectionMarker,
u=l.attr?l.attr("x"):l.x,n=l.attr?l.attr("y"):l.y,w=l.attr?l.attr("width"):l.width,A=l.attr?l.attr("height"):l.height,v;if(this.hasDragged||c)d(e.axes,function(e){if(e.zoomEnabled&&q(e.min)&&(c||b[{xAxis:"zoomX",yAxis:"zoomY"}[e.coll]])){var h=e.horiz,d="touchend"===a.type?e.minPixelPadding:0,k=e.toValue((h?u:n)+d),h=e.toValue((h?u+w:n+A)-d);f[e.coll].push({axis:e,min:Math.min(k,h),max:Math.max(k,h)});v=!0}}),v&&m(e,"selection",f,function(a){e.zoom(g(a,c?{animation:!1}:null))});this.selectionMarker=
this.selectionMarker.destroy();c&&this.scaleGroups()}e&&(D(e.container,{cursor:e._cursor}),e.cancelClick=10<this.hasDragged,e.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a);this.zoomOption(a);a.preventDefault&&a.preventDefault();this.dragStart(a)},onDocumentMouseUp:function(b){E[a.hoverChartIndex]&&E[a.hoverChartIndex].pointer.drop(b)},onDocumentMouseMove:function(a){var b=this.chart,e=this.chartPosition;a=this.normalize(a,e);
!e||this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||this.reset()},onContainerMouseLeave:function(b){var e=E[a.hoverChartIndex];e&&(b.relatedTarget||b.toElement)&&(e.pointer.reset(),e.pointer.chartPosition=null)},onContainerMouseMove:function(b){var e=this.chart;q(a.hoverChartIndex)&&E[a.hoverChartIndex]&&E[a.hoverChartIndex].mouseIsDown||(a.hoverChartIndex=e.index);b=this.normalize(b);b.returnValue=!1;"mousedown"===e.mouseIsDown&&this.drag(b);!this.inClass(b.target,
"highcharts-tracker")&&!e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop)||e.openMenu||this.runPointActions(b)},inClass:function(a,b){for(var e;a;){if(e=C(a,"class")){if(-1!==e.indexOf(b))return!0;if(-1!==e.indexOf("highcharts-container"))return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries;a=a.relatedTarget||a.toElement;this.isDirectTouch=!1;if(!(!b||!a||b.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+b.index)&&this.inClass(a,
"highcharts-tracker")))b.onMouseOut()},onContainerClick:function(a){var b=this.chart,e=b.hoverPoint,c=b.plotLeft,d=b.plotTop;a=this.normalize(a);b.cancelClick||(e&&this.inClass(a.target,"highcharts-tracker")?(m(e.series,"click",g(a,{point:e})),b.hoverPoint&&e.firePointEvent("click",a)):(g(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-c,a.chartY-d)&&m(b,"click",a)))},setDOMEvents:function(){var b=this,e=b.chart.container,c=e.ownerDocument;e.onmousedown=function(a){b.onContainerMouseDown(a)};e.onmousemove=
function(a){b.onContainerMouseMove(a)};e.onclick=function(a){b.onContainerClick(a)};y(e,"mouseleave",b.onContainerMouseLeave);1===a.chartCount&&y(c,"mouseup",b.onDocumentMouseUp);a.hasTouch&&(e.ontouchstart=function(a){b.onContainerTouchStart(a)},e.ontouchmove=function(a){b.onContainerTouchMove(a)},1===a.chartCount&&y(c,"touchend",b.onDocumentTouchEnd))},destroy:function(){var b=this,e=this.chart.container.ownerDocument;b.unDocMouseMove&&b.unDocMouseMove();x(b.chart.container,"mouseleave",b.onContainerMouseLeave);
a.chartCount||(x(e,"mouseup",b.onDocumentMouseUp),a.hasTouch&&x(e,"touchend",b.onDocumentTouchEnd));clearInterval(b.tooltipTimeout);a.objectEach(b,function(a,e){b[e]=null})}}})(L);(function(a){var y=a.charts,C=a.each,E=a.extend,D=a.map,q=a.noop,d=a.pick;E(a.Pointer.prototype,{pinchTranslate:function(a,d,m,n,f,c){this.zoomHor&&this.pinchTranslateDirection(!0,a,d,m,n,f,c);this.zoomVert&&this.pinchTranslateDirection(!1,a,d,m,n,f,c)},pinchTranslateDirection:function(a,d,m,n,f,c,q,e){var b=this.chart,
g=a?"x":"y",l=a?"X":"Y",k="chart"+l,p=a?"width":"height",x=b["plot"+(a?"Left":"Top")],B,I,r=e||1,G=b.inverted,w=b.bounds[a?"h":"v"],A=1===d.length,v=d[0][k],J=m[0][k],h=!A&&d[1][k],t=!A&&m[1][k],M;m=function(){!A&&20<Math.abs(v-h)&&(r=e||Math.abs(J-t)/Math.abs(v-h));I=(x-J)/r+v;B=b["plot"+(a?"Width":"Height")]/r};m();d=I;d<w.min?(d=w.min,M=!0):d+B>w.max&&(d=w.max-B,M=!0);M?(J-=.8*(J-q[g][0]),A||(t-=.8*(t-q[g][1])),m()):q[g]=[J,t];G||(c[g]=I-x,c[p]=B);c=G?1/r:r;f[p]=B;f[g]=d;n[G?a?"scaleY":"scaleX":
"scale"+l]=r;n["translate"+l]=c*x+(J-c*v)},pinch:function(a){var g=this,m=g.chart,n=g.pinchDown,f=a.touches,c=f.length,x=g.lastValidTouch,e=g.hasZoom,b=g.selectionMarker,u={},l=1===c&&(g.inClass(a.target,"highcharts-tracker")&&m.runTrackerClick||g.runChartClick),k={};1<c&&(g.initiated=!0);e&&g.initiated&&!l&&a.preventDefault();D(f,function(a){return g.normalize(a)});"touchstart"===a.type?(C(f,function(a,b){n[b]={chartX:a.chartX,chartY:a.chartY}}),x.x=[n[0].chartX,n[1]&&n[1].chartX],x.y=[n[0].chartY,
n[1]&&n[1].chartY],C(m.axes,function(a){if(a.zoomEnabled){var b=m.bounds[a.horiz?"h":"v"],e=a.minPixelPadding,c=a.toPixels(d(a.options.min,a.dataMin)),f=a.toPixels(d(a.options.max,a.dataMax)),k=Math.max(c,f);b.min=Math.min(a.pos,Math.min(c,f)-e);b.max=Math.max(a.pos+a.len,k+e)}}),g.res=!0):g.followTouchMove&&1===c?this.runPointActions(g.normalize(a)):n.length&&(b||(g.selectionMarker=b=E({destroy:q,touch:!0},m.plotBox)),g.pinchTranslate(n,f,u,b,k,x),g.hasPinched=e,g.scaleGroups(u,k),g.res&&(g.res=
!1,this.reset(!1,0)))},touch:function(g,p){var m=this.chart,n,f;if(m.index!==a.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});a.hoverChartIndex=m.index;1===g.touches.length?(g=this.normalize(g),(f=m.isInsidePlot(g.chartX-m.plotLeft,g.chartY-m.plotTop))&&!m.openMenu?(p&&this.runPointActions(g),"touchmove"===g.type&&(p=this.pinchDown,n=p[0]?4<=Math.sqrt(Math.pow(p[0].chartX-g.chartX,2)+Math.pow(p[0].chartY-g.chartY,2)):!1),d(n,!0)&&this.pinch(g)):p&&this.reset()):2===g.touches.length&&
this.pinch(g)},onContainerTouchStart:function(a){this.zoomOption(a);this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(d){y[a.hoverChartIndex]&&y[a.hoverChartIndex].pointer.drop(d)}})})(L);(function(a){var y=a.addEvent,C=a.charts,E=a.css,D=a.doc,q=a.extend,d=a.noop,g=a.Pointer,p=a.removeEvent,m=a.win,n=a.wrap;if(!a.hasTouch&&(m.PointerEvent||m.MSPointerEvent)){var f={},c=!!m.PointerEvent,x=function(){var b=[];b.item=function(a){return this[a]};a.objectEach(f,
function(a){b.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return b},e=function(b,e,c,f){"touch"!==b.pointerType&&b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!C[a.hoverChartIndex]||(f(b),f=C[a.hoverChartIndex].pointer,f[e]({type:c,target:b.currentTarget,preventDefault:d,touches:x()}))};q(g.prototype,{onContainerPointerDown:function(a){e(a,"onContainerTouchStart","touchstart",function(a){f[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){e(a,
"onContainerTouchMove","touchmove",function(a){f[a.pointerId]={pageX:a.pageX,pageY:a.pageY};f[a.pointerId].target||(f[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){e(a,"onDocumentTouchEnd","touchend",function(a){delete f[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,c?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,c?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(D,c?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});
n(g.prototype,"init",function(a,e,c){a.call(this,e,c);this.hasZoom&&E(e.container,{"-ms-touch-action":"none","touch-action":"none"})});n(g.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(y)});n(g.prototype,"destroy",function(a){this.batchMSEvents(p);a.call(this)})}})(L);(function(a){var y=a.addEvent,C=a.css,E=a.discardElement,D=a.defined,q=a.each,d=a.isFirefox,g=a.marginNames,p=a.merge,m=a.pick,n=a.setAnimation,f=a.stableSort,c=a.win,x=a.wrap;
a.Legend=function(a,b){this.init(a,b)};a.Legend.prototype={init:function(a,b){this.chart=a;this.setOptions(b);b.enabled&&(this.render(),y(this.chart,"endResize",function(){this.legend.positionCheckboxes()}))},setOptions:function(a){var b=m(a.padding,8);this.options=a;this.itemMarginTop=a.itemMarginTop||0;this.padding=b;this.initialItemY=b-5;this.itemHeight=this.maxItemWidth=0;this.symbolWidth=m(a.symbolWidth,16);this.pages=[]},update:function(a,b){var e=this.chart;this.setOptions(p(!0,this.options,
a));this.destroy();e.isDirtyLegend=e.isDirtyBox=!0;m(b,!0)&&e.redraw()},colorizeItem:function(a,b){a.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden")},positionItem:function(a){var b=this.options,e=b.symbolPadding,b=!b.rtl,c=a._legendItemPos,d=c[0],c=c[1],f=a.checkbox;(a=a.legendGroup)&&a.element&&a.translate(b?d:this.legendWidth-d-2*e-4,c);f&&(f.x=d,f.y=c)},destroyItem:function(a){var b=a.checkbox;q(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&
(a[b]=a[b].destroy())});b&&E(a.checkbox)},destroy:function(){function a(a){this[a]&&(this[a]=this[a].destroy())}q(this.getAllItems(),function(b){q(["legendItem","legendGroup"],a,b)});q("clipRect up down pager nav box title group".split(" "),a,this);this.display=null},positionCheckboxes:function(a){var b=this.group&&this.group.alignAttr,e,c=this.clipHeight||this.legendHeight,d=this.titleHeight;b&&(e=b.translateY,q(this.allItems,function(f){var k=f.checkbox,g;k&&(g=e+d+k.y+(a||0)+3,C(k,{left:b.translateX+
f.checkboxOffset+k.x-20+"px",top:g+"px",display:g>e-6&&g<e+c-6?"":"none"}))}))},renderTitle:function(){var a=this.options,b=this.padding,c=a.title,d=0;c.text&&(this.title||(this.title=this.chart.renderer.label(c.text,b-3,b-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}).add(this.group)),a=this.title.getBBox(),d=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:d}));this.titleHeight=d},setText:function(e){var b=this.options;e.legendItem.attr({text:b.labelFormat?
a.format(b.labelFormat,e):b.labelFormatter.call(e)})},renderItem:function(a){var b=this.chart,e=b.renderer,c=this.options,d="horizontal"===c.layout,f=this.symbolWidth,g=c.symbolPadding,n=this.padding,p=d?m(c.itemDistance,20):0,r=!c.rtl,q=c.width,w=c.itemMarginBottom||0,A=this.itemMarginTop,v=a.legendItem,x=!a.series,h=!x&&a.series.drawLegendSymbol?a.series:a,t=h.options,M=this.createCheckboxForItem&&t&&t.showCheckbox,t=f+g+p+(M?20:0),K=c.useHTML,N=a.options.className;v||(a.legendGroup=e.g("legend-item").addClass("highcharts-"+
h.type+"-series highcharts-color-"+a.colorIndex+(N?" "+N:"")+(x?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=v=e.text("",r?f+g:-g,this.baseline||0,K).attr({align:r?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=e.fontMetrics(12,v),this.baseline=this.fontMetrics.f+3+A,v.attr("y",this.baseline)),this.symbolHeight=c.symbolHeight||this.fontMetrics.f,h.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,v,K),M&&this.createCheckboxForItem(a));
this.colorizeItem(a,a.visible);v.css({width:(c.itemWidth||c.width||b.spacingBox.width)-t});this.setText(a);e=v.getBBox();f=a.checkboxOffset=c.itemWidth||a.legendItemWidth||e.width+t;this.itemHeight=e=Math.round(a.legendItemHeight||e.height||this.symbolHeight);d&&this.itemX-n+f>(q||b.spacingBox.width-2*n-c.x)&&(this.itemX=n,this.itemY+=A+this.lastLineHeight+w,this.lastLineHeight=0);this.maxItemWidth=Math.max(this.maxItemWidth,f);this.lastItemY=A+this.itemY+w;this.lastLineHeight=Math.max(e,this.lastLineHeight);
a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=f:(this.itemY+=A+e+w,this.lastLineHeight=e);this.offsetWidth=q||Math.max((d?this.itemX-n-(a.checkbox?0:p):f)+n,this.offsetWidth)},getAllItems:function(){var a=[];q(this.chart.series,function(b){var e=b&&b.options;b&&m(e.showInLegend,D(e.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===e.legendType?b.data:b)))});return a},adjustMargins:function(a,b){var e=this.chart,c=this.options,d=c.align.charAt(0)+c.verticalAlign.charAt(0)+c.layout.charAt(0);
c.floating||q([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(f,k){f.test(d)&&!D(a[k])&&(e[g[k]]=Math.max(e[g[k]],e.legend[(k+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][k]*c[k%2?"x":"y"]+m(c.margin,12)+b[k]))})},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,k,g,n,m,x=a.box,r=a.options,G=a.padding;a.itemX=G;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;d||(a.group=d=c.g("legend").attr({zIndex:7}).add(),a.contentGroup=c.g().attr({zIndex:1}).add(d),a.scrollGroup=
c.g().add(a.contentGroup));a.renderTitle();k=a.getAllItems();f(k,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});r.reversed&&k.reverse();a.allItems=k;a.display=g=!!k.length;a.lastLineHeight=0;q(k,function(b){a.renderItem(b)});n=(r.width||a.offsetWidth)+G;m=a.lastItemY+a.lastLineHeight+a.titleHeight;m=a.handleOverflow(m);m+=G;x||(a.box=x=c.rect().addClass("highcharts-legend-box").attr({r:r.borderRadius}).add(d),x.isNew=!0);0<n&&0<m&&(x[x.isNew?"attr":
"animate"](x.crisp({x:0,y:0,width:n,height:m},x.strokeWidth())),x.isNew=!1);x[g?"show":"hide"]();"none"===d.getStyle("display")&&(n=m=0);a.legendWidth=n;a.legendHeight=m;q(k,function(b){a.positionItem(b)});g&&d.align(p(r,{width:n,height:m}),!0,"spacingBox");b.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b=this,c=this.chart,e=c.renderer,d=this.options,f=d.y,g=this.padding,c=c.spacingBox.height+("top"===d.verticalAlign?-f:f)-g,f=d.maxHeight,n,p=this.clipRect,r=d.navigation,
x=m(r.animation,!0),w=r.arrowSize||12,A=this.nav,v=this.pages,J,h=this.allItems,t=function(a){"number"===typeof a?p.attr({height:a}):p&&(b.clipRect=p.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=a?"rect("+g+"px,9999px,"+(g+a)+"px,0)":"auto")};"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(c/=2);f&&(c=Math.min(c,f));v.length=0;a>c&&!1!==r.enabled?(this.clipHeight=n=Math.max(c-20-this.titleHeight-g,0),this.currentPage=m(this.currentPage,1),this.fullHeight=
a,q(h,function(a,b){var c=a._legendItemPos[1];a=Math.round(a.legendItem.getBBox().height);var e=v.length;if(!e||c-v[e-1]>n&&(J||c)!==v[e-1])v.push(J||c),e++;b===h.length-1&&c+a-v[e-1]>n&&v.push(c);c!==J&&(J=c)}),p||(p=b.clipRect=e.clipRect(0,g,9999,0),b.contentGroup.clip(p)),t(n),A||(this.nav=A=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,w,w).on("click",function(){b.scroll(-1,x)}).add(A),this.pager=e.text("",15,10).addClass("highcharts-legend-navigation").add(A),this.down=
e.symbol("triangle-down",0,0,w,w).on("click",function(){b.scroll(1,x)}).add(A)),b.scroll(0),a=c):A&&(t(),this.nav=A.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,e=c.length;a=this.currentPage+a;var d=this.clipHeight,f=this.pager,g=this.padding;a>e&&(a=e);0<a&&(void 0!==b&&n(b,this.chart),this.nav.attr({translateX:g,translateY:d+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({"class":1===a?"highcharts-legend-nav-inactive":
"highcharts-legend-nav-active"}),f.attr({text:a+"/"+e}),this.down.attr({x:18+this.pager.getBBox().width,"class":a===e?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),b=-c[a-1]+this.initialItemY,this.scrollGroup.animate({translateY:b}),this.currentPage=a,this.positionCheckboxes(b))}};a.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.symbolHeight,e=a.options.squareSymbol;b.legendSymbol=this.chart.renderer.rect(e?(a.symbolWidth-c)/2:0,a.baseline-c+1,e?c:a.symbolWidth,c,m(a.options.symbolRadius,
c/2)).addClass("highcharts-point").attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b=this.options.marker,c,e=a.symbolWidth,d=a.symbolHeight;c=d/2;var f=this.chart.renderer,g=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);this.legendLine=f.path(["M",0,a,"L",e,a]).addClass("highcharts-graph").attr({}).add(g);b&&!1!==b.enabled&&(c=Math.min(m(b.radius,c),c),0===this.symbol.indexOf("url")&&(b=p(b,{width:d,height:d}),c=0),this.legendSymbol=b=f.symbol(this.symbol,e/2-c,
a-c,2*c,2*c,b).addClass("highcharts-point").add(g),b.isMarker=!0)}};(/Trident\/7\.0/.test(c.navigator.userAgent)||d)&&x(a.Legend.prototype,"positionItem",function(a,b){var c=this,e=function(){b._legendItemPos&&a.call(c,b)};e();setTimeout(e)})})(L);(function(a){var y=a.addEvent,C=a.animObject,E=a.attr,D=a.doc,q=a.Axis,d=a.createElement,g=a.defaultOptions,p=a.discardElement,m=a.charts,n=a.defined,f=a.each,c=a.extend,x=a.find,e=a.fireEvent,b=a.getStyle,u=a.grep,l=a.isNumber,k=a.isObject,F=a.isString,
H=a.Legend,B=a.marginNames,I=a.merge,r=a.objectEach,G=a.Pointer,w=a.pick,A=a.pInt,v=a.removeEvent,J=a.seriesTypes,h=a.splat,t=a.svg,M=a.syncTimeout,K=a.win,N=a.Renderer,O=a.Chart=function(){this.getArgs.apply(this,arguments)};a.chart=function(a,b,c){return new O(a,b,c)};c(O.prototype,{callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(F(a[0])||a[0].nodeName)this.renderTo=a.shift();this.init(a[0],a[1])},init:function(b,c){var e,d,h=b.series,f=b.plotOptions||{};b.series=null;e=I(g,b);
for(d in e.plotOptions)e.plotOptions[d].tooltip=f[d]&&I(f[d].tooltip)||void 0;e.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;e.series=b.series=h;this.userOptions=b;b=e.chart;d=b.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.callback=c;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.hasCartesianSeries=b.showAxes;var k=this;k.index=m.length;m.push(k);a.chartCount++;d&&r(d,function(a,b){y(k,b,a)});k.xAxis=[];k.yAxis=[];k.pointCount=
k.colorCounter=k.symbolCounter=0;k.firstRender()},initSeries:function(b){var c=this.options.chart;(c=J[b.type||c.type||c.defaultSeriesType])||a.error(17,!0);c=new c;c.init(this,b);return c},orderSeries:function(a){var b=this.series;for(a=a||0;a<b.length;a++)b[a]&&(b[a].index=a,b[a].name=b[a].name||"Series "+(b[a].index+1))},isInsidePlot:function(a,b,c){var e=c?b:a;a=c?a:b;return 0<=e&&e<=this.plotWidth&&0<=a&&a<=this.plotHeight},redraw:function(b){var d=this.axes,h=this.series,k=this.pointer,g=this.legend,
w=this.isDirtyLegend,v,l,t=this.hasCartesianSeries,A=this.isDirtyBox,n,m=this.renderer,r=m.isHidden(),p=[];this.setResponsive&&this.setResponsive(!1);a.setAnimation(b,this);r&&this.temporaryDisplay();this.layOutTitles();for(b=h.length;b--;)if(n=h[b],n.options.stacking&&(v=!0,n.isDirty)){l=!0;break}if(l)for(b=h.length;b--;)n=h[b],n.options.stacking&&(n.isDirty=!0);f(h,function(a){a.isDirty&&"point"===a.options.legendType&&(a.updateTotals&&a.updateTotals(),w=!0);a.isDirtyData&&e(a,"updatedData")});
w&&g.options.enabled&&(g.render(),this.isDirtyLegend=!1);v&&this.getStacks();t&&f(d,function(a){a.updateNames();a.setScale()});this.getMargins();t&&(f(d,function(a){a.isDirty&&(A=!0)}),f(d,function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,p.push(function(){e(a,"afterSetExtremes",c(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(A||v)&&a.redraw()}));A&&this.drawChartBox();e(this,"predraw");f(h,function(a){(A||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});k&&k.reset(!0);m.draw();
e(this,"redraw");e(this,"render");r&&this.temporaryDisplay(!0);f(p,function(a){a.call()})},get:function(a){function b(b){return b.id===a||b.options&&b.options.id===a}var c,e=this.series,d;c=x(this.axes,b)||x(this.series,b);for(d=0;!c&&d<e.length;d++)c=x(e[d].points||[],b);return c},getAxes:function(){var a=this,b=this.options,c=b.xAxis=h(b.xAxis||{}),b=b.yAxis=h(b.yAxis||{});f(c,function(a,b){a.index=b;a.isX=!0});f(b,function(a,b){a.index=b});c=c.concat(b);f(c,function(b){new q(a,b)})},getSelectedPoints:function(){var a=
[];f(this.series,function(b){a=a.concat(u(b.data||[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return u(this.series,function(a){return a.selected})},setTitle:function(a,b,c){var e=this,d=e.options,h;h=d.title=I(d.title,a);d=d.subtitle=I(d.subtitle,b);f([["title",a,h],["subtitle",b,d]],function(a,b){var c=a[0],d=e[c],h=a[1];a=a[2];d&&h&&(e[c]=d=d.destroy());a&&a.text&&!d&&(e[c]=e.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+c,zIndex:a.zIndex||
4}).add(),e[c].update=function(a){e.setTitle(!b&&a,b&&a)})});e.layOutTitles(c)},layOutTitles:function(a){var b=0,e,d=this.renderer,h=this.spacingBox;f(["title","subtitle"],function(a){var e=this[a],f=this.options[a];a="title"===a?-3:f.verticalAlign?0:b+2;var k;e&&(k=d.fontMetrics(k,e).b,e.css({width:(f.width||h.width+f.widthAdjust)+"px"}).align(c({y:a+k},f),!1,"spacingBox"),f.floating||f.verticalAlign||(b=Math.ceil(b+e.getBBox(f.useHTML).height)))},this);e=this.titleOffset!==b;this.titleOffset=b;
!this.isDirtyBox&&e&&(this.isDirtyBox=e,this.hasRendered&&w(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var c=this.options.chart,e=c.width,c=c.height,d=this.renderTo;n(e)||(this.containerWidth=b(d,"width"));n(c)||(this.containerHeight=b(d,"height"));this.chartWidth=Math.max(0,e||this.containerWidth||600);this.chartHeight=Math.max(0,a.relativeLength(c,this.chartWidth)||this.containerHeight||400)},temporaryDisplay:function(c){var e=this.renderTo;if(c)for(;e&&e.style;)e.hcOrigStyle&&
(a.css(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(D.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style;){D.body.contains(e)||(e.hcOrigDetached=!0,D.body.appendChild(e));if("none"===b(e,"display",!1)||e.hcOricDetached)e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},c={display:"block",overflow:"hidden"},e!==this.renderTo&&(c.height=0),a.css(e,c),e.offsetWidth||e.style.setProperty("display","block","important");e=e.parentNode;
if(e===D.body)break}},setClassName:function(a){this.container.className="highcharts-container "+(a||"")},getContainer:function(){var b,c=this.options,e=c.chart,h,f;b=this.renderTo;var k=a.uniqueKey(),g;b||(this.renderTo=b=e.renderTo);F(b)&&(this.renderTo=b=D.getElementById(b));b||a.error(13,!0);h=A(E(b,"data-highcharts-chart"));l(h)&&m[h]&&m[h].hasRendered&&m[h].destroy();E(b,"data-highcharts-chart",this.index);b.innerHTML="";e.skipClone||b.offsetWidth||this.temporaryDisplay();this.getChartSize();
h=this.chartWidth;f=this.chartHeight;this.container=b=d("div",{id:k},void 0,b);this._cursor=b.style.cursor;this.renderer=new (a[e.renderer]||N)(b,h,f,null,e.forExport,c.exporting&&c.exporting.allowHTML);this.setClassName(e.className);for(g in c.defs)this.renderer.definition(c.defs[g]);this.renderer.chartIndex=this.index},getMargins:function(a){var b=this.spacing,c=this.margin,e=this.titleOffset;this.resetMargins();e&&!n(c[0])&&(this.plotTop=Math.max(this.plotTop,e+this.options.title.margin+b[0]));
this.legend.display&&this.legend.adjustMargins(c,b);this.extraMargin&&(this[this.extraMargin.type]=(this[this.extraMargin.type]||0)+this.extraMargin.value);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],c=a.margin;a.hasCartesianSeries&&f(a.axes,function(a){a.visible&&a.getOffset()});f(B,function(e,d){n(c[d])||(a[e]+=b[d])});a.setChartSize()},reflow:function(a){var c=this,e=c.options.chart,d=c.renderTo,
h=n(e.width)&&n(e.height),f=e.width||b(d,"width"),e=e.height||b(d,"height"),d=a?a.target:K;if(!h&&!c.isPrinting&&f&&e&&(d===K||d===D)){if(f!==c.containerWidth||e!==c.containerHeight)clearTimeout(c.reflowTimeout),c.reflowTimeout=M(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=f;c.containerHeight=e}},initReflow:function(){var a=this,b;b=y(K,"resize",function(b){a.reflow(b)});y(a,"destroy",b)},setSize:function(b,c,d){var h=this,k=h.renderer;h.isResizing+=1;a.setAnimation(d,
h);h.oldChartHeight=h.chartHeight;h.oldChartWidth=h.chartWidth;void 0!==b&&(h.options.chart.width=b);void 0!==c&&(h.options.chart.height=c);h.getChartSize();h.setChartSize(!0);k.setSize(h.chartWidth,h.chartHeight,d);f(h.axes,function(a){a.isDirty=!0;a.setScale()});h.isDirtyLegend=!0;h.isDirtyBox=!0;h.layOutTitles();h.getMargins();h.redraw(d);h.oldChartHeight=null;e(h,"resize");M(function(){h&&e(h,"endResize",null,function(){--h.isResizing})},C(void 0).duration)},setChartSize:function(a){function b(a){a=
w[a]||0;return Math.max(n||a,a)/2}var c=this.inverted,e=this.renderer,d=this.chartWidth,h=this.chartHeight,k=this.options.chart,g=this.spacing,w=this.clipOffset,v,l,t,A,n;this.plotLeft=v=Math.round(this.plotLeft);this.plotTop=l=Math.round(this.plotTop);this.plotWidth=t=Math.max(0,Math.round(d-v-this.marginRight));this.plotHeight=A=Math.max(0,Math.round(h-l-this.marginBottom));this.plotSizeX=c?A:t;this.plotSizeY=c?t:A;this.plotBorderWidth=k.plotBorderWidth||0;this.spacingBox=e.spacingBox={x:g[3],y:g[0],
width:d-g[3]-g[1],height:h-g[0]-g[2]};this.plotBox=e.plotBox={x:v,y:l,width:t,height:A};n=2*Math.floor(this.plotBorderWidth/2);c=Math.ceil(b(3));e=Math.ceil(b(0));this.clipBox={x:c,y:e,width:Math.floor(this.plotSizeX-b(1)-c),height:Math.max(0,Math.floor(this.plotSizeY-b(2)-e))};a||f(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this,b=a.options.chart;f(["margin","spacing"],function(c){var e=b[c],d=k(e)?e:[e,e,e,e];f(["Top","Right","Bottom","Left"],function(e,
h){a[c][h]=w(b[c+e],d[h])})});f(B,function(b,c){a[b]=w(a.margin[c],a.spacing[c])});a.axisOffset=[0,0,0,0];a.clipOffset=[]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,e=this.chartHeight,d=this.chartBackground,h=this.plotBackground,f=this.plotBorder,k,g,w=this.plotLeft,v=this.plotTop,l=this.plotWidth,t=this.plotHeight,A=this.plotBox,n=this.clipRect,m=this.clipBox,r="animate";d||(this.chartBackground=d=b.rect().addClass("highcharts-background").add(),r="attr");
k=g=d.strokeWidth();d[r]({x:g/2,y:g/2,width:c-g-k%2,height:e-g-k%2,r:a.borderRadius});r="animate";h||(r="attr",this.plotBackground=h=b.rect().addClass("highcharts-plot-background").add());h[r](A);n?n.animate({width:m.width,height:m.height}):this.clipRect=b.clipRect(m);r="animate";f||(r="attr",this.plotBorder=f=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f[r](f.crisp({x:w,y:v,width:l,height:t},-f.strokeWidth()));this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,
c,e=a.options.series,d,h;f(["inverted","angular","polar"],function(f){c=J[b.type||b.defaultSeriesType];h=b[f]||c&&c.prototype[f];for(d=e&&e.length;!h&&d--;)(c=J[e[d].type])&&c.prototype[f]&&(h=!0);a[f]=h})},linkSeries:function(){var a=this,b=a.series;f(b,function(a){a.linkedSeries.length=0});f(b,function(b){var c=b.options.linkedTo;F(c)&&(c=":previous"===c?a.series[b.index-1]:a.get(c))&&c.linkedParent!==b&&(c.linkedSeries.push(b),b.linkedParent=c,b.visible=w(b.options.visible,c.options.visible,b.visible))})},
renderSeries:function(){f(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&f(b.items,function(e){var d=c(b.style,e.style),h=A(d.left)+a.plotLeft,f=A(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(e.html,h,f).attr({zIndex:2}).css(d).add()})},render:function(){var a=this.axes,b=this.renderer,c=this.options,e,d,h;this.setTitle();this.legend=new H(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();
c=this.plotWidth;e=this.plotHeight-=21;f(a,function(a){a.setScale()});this.getAxisMargins();d=1.1<c/this.plotWidth;h=1.05<e/this.plotHeight;if(d||h)f(a,function(a){(a.horiz&&d||!a.horiz&&h)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&f(a,function(a){a.visible&&a.render()});this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=
!0},addCredits:function(a){var b=this;a=I(!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&&(K.location.href=a.href)}).attr({align:a.position.align,zIndex:8}).add().align(a.position),this.credits.update=function(a){b.credits=b.credits.destroy();b.addCredits(a)})},destroy:function(){var b=this,c=b.axes,d=b.series,h=b.container,k,g=h&&h.parentNode;e(b,"destroy");b.renderer.forExport?
a.erase(m,b):m[b.index]=void 0;a.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");v(b);for(k=c.length;k--;)c[k]=c[k].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(k=d.length;k--;)d[k]=d[k].destroy();f("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" "),function(a){var c=b[a];c&&c.destroy&&(b[a]=c.destroy())});h&&(h.innerHTML="",v(h),
g&&p(h));r(b,function(a,c){delete b[c]})},isReadyToRender:function(){var a=this;return t||K!=K.top||"complete"===D.readyState?!0:(D.attachEvent("onreadystatechange",function(){D.detachEvent("onreadystatechange",a.firstRender);"complete"===D.readyState&&a.firstRender()}),!1)},firstRender:function(){var a=this,b=a.options;if(a.isReadyToRender()){a.getContainer();e(a,"init");a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();f(b.series||[],function(b){a.initSeries(b)});a.linkSeries();e(a,
"beforeRender");G&&(a.pointer=new G(a,b));a.render();if(!a.renderer.imgCount&&a.onload)a.onload();a.temporaryDisplay(!0)}},onload:function(){f([this.callback].concat(this.callbacks),function(a){a&&void 0!==this.index&&a.apply(this,[this])},this);e(this,"load");e(this,"render");n(this.index)&&!1!==this.options.chart.reflow&&this.initReflow();this.onload=null}})})(L);(function(a){var y,C=a.each,E=a.extend,D=a.erase,q=a.fireEvent,d=a.format,g=a.isArray,p=a.isNumber,m=a.pick,n=a.removeEvent;a.Point=y=
function(){};a.Point.prototype={init:function(a,c,d){var e=a.chart.options.chart.colorCount;this.series=a;this.applyOptions(c,d);a.options.colorByPoint?(c=a.colorCounter,a.colorCounter++,a.colorCounter===e&&(a.colorCounter=0)):c=a.colorIndex;this.colorIndex=m(this.colorIndex,c);a.chart.pointCount++;return this},applyOptions:function(a,c){var d=this.series,e=d.options.pointValKey||d.pointValKey;a=y.prototype.optionsToObject.call(this,a);E(this,a);this.options=this.options?E(this.options,a):a;a.group&&
delete this.group;e&&(this.y=this[e]);this.isNull=m(this.isValid&&!this.isValid(),null===this.x||!p(this.y,!0));this.selected&&(this.state="select");"name"in this&&void 0===c&&d.xAxis&&d.xAxis.hasNames&&(this.x=d.xAxis.nameToX(this));void 0===this.x&&d&&(this.x=void 0===c?d.autoIncrement(this):c);return this},optionsToObject:function(a){var c={},d=this.series,e=d.options.keys,b=e||d.pointArrayMap||["y"],f=b.length,l=0,k=0;if(p(a)||null===a)c[b[0]]=a;else if(g(a))for(!e&&a.length>f&&(d=typeof a[0],
"string"===d?c.name=a[0]:"number"===d&&(c.x=a[0]),l++);k<f;)e&&void 0===a[l]||(c[b[k]]=a[l]),l++,k++;else"object"===typeof a&&(c=a,a.dataLabels&&(d._hasPointLabels=!0),a.marker&&(d._hasPointMarkers=!0));return c},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:
"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var a=this.series,c=a.zones,a=a.zoneAxis||"y",d=0,e;for(e=c[d];this[a]>=e.value;)e=c[++d];e&&e.color&&!this.options.color&&(this.color=e.color);return e},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),D(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)n(this),this.destroyElements();
this.legendItem&&a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},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}},tooltipFormatter:function(a){var c=this.series,
f=c.tooltipOptions,e=m(f.valueDecimals,""),b=f.valuePrefix||"",g=f.valueSuffix||"";C(c.pointArrayMap||["y"],function(c){c="{point."+c;if(b||g)a=a.replace(c+"}",b+c+"}"+g);a=a.replace(c+"}",c+":,."+e+"f}")});return d(a,{point:this,series:this.series})},firePointEvent:function(a,c,d){var e=this,b=this.series.options;(b.point.events[a]||e.options&&e.options.events&&e.options.events[a])&&this.importEvents();"click"===a&&b.allowPointSelect&&(d=function(a){e.select&&e.select(null,a.ctrlKey||a.metaKey||
a.shiftKey)});q(this,a,c,d)},visible:!0}})(L);(function(a){var y=a.addEvent,C=a.animObject,E=a.arrayMax,D=a.arrayMin,q=a.correctFloat,d=a.Date,g=a.defaultOptions,p=a.defined,m=a.each,n=a.erase,f=a.extend,c=a.fireEvent,x=a.grep,e=a.isArray,b=a.isNumber,u=a.isString,l=a.merge,k=a.objectEach,F=a.pick,H=a.removeEvent,B=a.splat,I=a.SVGElement,r=a.syncTimeout,G=a.win;a.Series=a.seriesType("line",null,{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{radius:4,states:{hover:{animation:{duration:50},
enabled:!0,radiusPlus:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":a.numberFormat(this.y,-1)},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],
colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(a,b){var c=this,e,d=a.series,g;c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();f(c,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;k(e,function(a,b){y(c,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();m(c.parallelArrays,function(a){c[a+"Data"]=[]});c.setData(b.data,!1);c.isCartesian&&(a.hasCartesianSeries=
!0);d.length&&(g=d[d.length-1]);c._i=F(g&&g._i,-1)+1;a.orderSeries(this.insert(d))},insert:function(a){var c=this.options.index,e;if(b(c)){for(e=a.length;e--;)if(c>=F(a[e].options.index,a[e]._i)){a.splice(e+1,0,this);break}-1===e&&a.unshift(this);e+=1}else a.push(this);return F(e,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;m(b.axisTypes||[],function(h){m(e[h],function(a){d=a.options;if(c[h]===d.index||void 0!==c[h]&&c[h]===d.id||void 0===c[h]&&0===d.index)b.insert(a.series),
b[h]=a,a.isDirty=!0});b[h]||b.optionalAxis===h||a.error(18,!0)})},updateParallelArrays:function(a,c){var e=a.series,d=arguments,h=b(c)?function(b){var d="y"===b&&e.toYData?e.toYData(a):a[b];e[b+"Data"][c]=d}:function(a){Array.prototype[c].apply(e[a+"Data"],Array.prototype.slice.call(d,2))};m(e.parallelArrays,h)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,b=F(b,a.pointStart,0);this.pointInterval=c=F(this.pointInterval,a.pointInterval,1);e&&(a=new d(b),"day"===
e?a=+a[d.hcSetDate](a[d.hcGetDate]()+c):"month"===e?a=+a[d.hcSetMonth](a[d.hcGetMonth]()+c):"year"===e&&(a=+a[d.hcSetFullYear](a[d.hcGetFullYear]()+c)),c=a-b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,c=b.options,e=c.plotOptions,d=(b.userOptions||{}).plotOptions||{},f=e[this.type];this.userOptions=a;b=l(f,e.series,a);this.tooltipOptions=l(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,c.tooltip.userOptions,e.series&&e.series.tooltip,
e[this.type].tooltip,a.tooltip);this.stickyTracking=F(a.stickyTracking,d[this.type]&&d[this.type].stickyTracking,d.series&&d.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===f.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+"Threshold"]||b.threshold||0,className:"highcharts-negative"});a.length&&p(a[a.length-1].value)&&a.push({});return b},
getCyclic:function(a,b,c){var e,d=this.chart,f=this.userOptions,k=a+"Index",g=a+"Counter",w=c?c.length:F(d.options.chart[a+"Count"],d[a+"Count"]);b||(e=F(f[k],f["_"+k]),p(e)||(d.series.length||(d[g]=0),f["_"+k]=e=d[g]%w,d[g]+=1),c&&(b=c[e]));void 0!==e&&(this[k]=e);this[a]=b},getColor:function(){this.getCyclic("color")},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,setData:function(c,d,f,k){var h=
this,g=h.points,w=g&&g.length||0,l,v=h.options,n=h.chart,r=null,A=h.xAxis,p=v.turboThreshold,q=this.xData,B=this.yData,x=(l=h.pointArrayMap)&&l.length;c=c||[];l=c.length;d=F(d,!0);if(!1!==k&&l&&w===l&&!h.cropped&&!h.hasGroupedData&&h.visible)m(c,function(a,b){g[b].update&&a!==v.data[b]&&g[b].update(a,!1,null,!1)});else{h.xIncrement=null;h.colorCounter=0;m(this.parallelArrays,function(a){h[a+"Data"].length=0});if(p&&l>p){for(f=0;null===r&&f<l;)r=c[f],f++;if(b(r))for(f=0;f<l;f++)q[f]=this.autoIncrement(),
B[f]=c[f];else if(e(r))if(x)for(f=0;f<l;f++)r=c[f],q[f]=r[0],B[f]=r.slice(1,x+1);else for(f=0;f<l;f++)r=c[f],q[f]=r[0],B[f]=r[1];else a.error(12)}else for(f=0;f<l;f++)void 0!==c[f]&&(r={series:h},h.pointClass.prototype.applyOptions.apply(r,[c[f]]),h.updateParallelArrays(r,f));u(B[0])&&a.error(14,!0);h.data=[];h.options.data=h.userOptions.data=c;for(f=w;f--;)g[f]&&g[f].destroy&&g[f].destroy();A&&(A.minRange=A.userMinRange);h.isDirty=n.isDirtyBox=!0;h.isDirtyData=!!g;f=!1}"point"===v.legendType&&(this.processData(),
this.generatePoints());d&&n.redraw(f)},processData:function(b){var c=this.xData,e=this.yData,d=c.length,h;h=0;var f,k,g=this.xAxis,l,w=this.options;l=w.cropThreshold;var n=this.getExtremesFromAll||w.getExtremesFromAll,r=this.isCartesian,w=g&&g.val2lin,m=g&&g.isLog,p,u;if(r&&!this.isDirty&&!g.isDirty&&!this.yAxis.isDirty&&!b)return!1;g&&(b=g.getExtremes(),p=b.min,u=b.max);if(r&&this.sorted&&!n&&(!l||d>l||this.forceCrop))if(c[d-1]<p||c[0]>u)c=[],e=[];else if(c[0]<p||c[d-1]>u)h=this.cropData(this.xData,
this.yData,p,u),c=h.xData,e=h.yData,h=h.start,f=!0;for(l=c.length||1;--l;)d=m?w(c[l])-w(c[l-1]):c[l]-c[l-1],0<d&&(void 0===k||d<k)?k=d:0>d&&this.requireSorting&&a.error(15);this.cropped=f;this.cropStart=h;this.processedXData=c;this.processedYData=e;this.closestPointRange=k},cropData:function(a,b,c,e){var d=a.length,f=0,k=d,g=F(this.cropShoulder,1),l;for(l=0;l<d;l++)if(a[l]>=c){f=Math.max(0,l-g);break}for(c=l;c<d;c++)if(a[c]>e){k=c+g;break}return{xData:a.slice(f,k),yData:b.slice(f,k),start:f,end:k}},
generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,f=this.processedYData,k=this.pointClass,g=d.length,l=this.cropStart||0,n,r=this.hasGroupedData,a=a.keys,m,p=[],u;c||r||(c=[],c.length=b.length,c=this.data=c);a&&r&&(this.options.keys=!1);for(u=0;u<g;u++)n=l+u,r?(m=(new k).init(this,[d[u]].concat(B(f[u]))),m.dataGroup=this.groupMap[u]):(m=c[n])||void 0===b[n]||(c[n]=m=(new k).init(this,b[n],d[u])),m&&(m.index=n,p[u]=m);this.options.keys=a;if(c&&(g!==(e=c.length)||
r))for(u=0;u<e;u++)u!==l||r||(u+=g),c[u]&&(c[u].destroyElements(),c[u].plotX=void 0);this.data=c;this.points=p},getExtremes:function(a){var c=this.yAxis,d=this.processedXData,f,h=[],k=0;f=this.xAxis.getExtremes();var g=f.min,l=f.max,w,n,r,m;a=a||this.stackedYData||this.processedYData||[];f=a.length;for(m=0;m<f;m++)if(n=d[m],r=a[m],w=(b(r,!0)||e(r))&&(!c.positiveValuesOnly||r.length||0<r),n=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(d[m]||n)>=g&&(d[m]||n)<=l,w&&n)if(w=
r.length)for(;w--;)null!==r[w]&&(h[k++]=r[w]);else h[k++]=r;this.dataMin=D(h);this.dataMax=E(h)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,f=this.points,k=f.length,g=!!this.modifyValue,l=a.pointPlacement,n="between"===l||b(l),r=a.threshold,m=a.startFromThreshold?r:0,u,B,x,I,G=Number.MAX_VALUE;"between"===l&&(l=.5);b(l)&&(l*=F(a.pointRange||e.pointRange));for(a=0;a<k;a++){var y=f[a],C=
y.x,H=y.y;B=y.low;var D=c&&h.stacks[(this.negStacks&&H<(m?0:r)?"-":"")+this.stackKey],E;h.positiveValuesOnly&&null!==H&&0>=H&&(y.isNull=!0);y.plotX=u=q(Math.min(Math.max(-1E5,e.translate(C,0,0,0,1,l,"flags"===this.type)),1E5));c&&this.visible&&!y.isNull&&D&&D[C]&&(I=this.getStackIndicator(I,C,this.index),E=D[C],H=E.points[I.key],B=H[0],H=H[1],B===m&&I.key===D[C].base&&(B=F(r,h.min)),h.positiveValuesOnly&&0>=B&&(B=null),y.total=y.stackTotal=E.total,y.percentage=E.total&&y.y/E.total*100,y.stackY=H,
E.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=p(B)?h.translate(B,0,1,0,1):null;g&&(H=this.modifyValue(H,y));y.plotY=B="number"===typeof H&&Infinity!==H?Math.min(Math.max(-1E5,h.translate(H,0,1,0,1)),1E5):void 0;y.isInside=void 0!==B&&0<=B&&B<=h.len&&0<=u&&u<=e.len;y.clientX=n?q(e.translate(C,0,0,0,1,l)):u;y.negative=y.y<(r||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==x&&(G=Math.min(G,Math.abs(u-x))),x=u);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=
G},getValidPoints:function(a,b){var c=this.chart;return x(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,f=this.clipBox,k=f||b.clipBox,g=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,k.height,c.xAxis,c.yAxis].join(),l=b[g],n=b[g+"m"];l||(a&&(k.width=0,b[g+"m"]=n=e.clipRect(-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[g]=l=e.clipRect(k),
l.count={length:0});a&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1);!1!==c.clip&&(this.group.clip(a||f?l:b.clipRect),this.markerGroup.clip(n),this.sharedClipKey=g);a||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&g&&b[g]&&(f||(b[g]=b[g].destroy()),b[g+"m"]&&(b[g+"m"]=b[g+"m"].destroy())))},animate:function(a){var b=this.chart,c=C(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX},c),
b[e+"m"]&&b[e+"m"].animate({width:b.plotSizeX+99},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,"afterAnimate");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,c=this.chart,e,d,h,f,k=this.options.marker,g,l,n,r,m=this[this.specialGroup]||this.markerGroup,u=F(k.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=2*k.radius);if(!1!==k.enabled||this._hasPointMarkers)for(d=0;d<a.length;d++)h=a[d],e=h.plotY,f=h.graphic,g=h.marker||{},l=!!h.marker,n=u&&
void 0===g.enabled||g.enabled,r=h.isInside,n&&b(e)&&null!==h.y?(e=F(g.symbol,this.symbol),h.hasImage=0===e.indexOf("url"),n=this.markerAttribs(h,h.selected&&"select"),f?f[r?"show":"hide"](!0).animate(n):r&&(0<n.width||h.hasImage)&&(h.graphic=f=c.renderer.symbol(e,n.x,n.y,n.width,n.height,l?g:k).add(m)),f&&f.addClass(h.getClassName(),!0)):f&&(h.graphic=f.destroy())},markerAttribs:function(a,b){var c=this.options.marker,e=a.marker||{},d=F(e.radius,c.radius);b&&(c=c.states[b],b=e.states&&e.states[b],
d=F(b&&b.radius,c&&c.radius,d+(c&&c.radiusPlus||0)));a.hasImage&&(d=0);a={x:Math.floor(a.plotX)-d,y:a.plotY-d};d&&(a.width=a.height=2*d);return a},destroy:function(){var a=this,b=a.chart,e=/AppleWebKit\/533/.test(G.navigator.userAgent),d,h,f=a.data||[],g,l;c(a,"destroy");H(a);m(a.axisTypes||[],function(b){(l=a[b])&&l.series&&(n(l.series,a),l.isDirty=l.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(h=f.length;h--;)(g=f[h])&&g.destroy&&g.destroy();a.points=null;clearTimeout(a.animationTimeout);
k(a,function(a,b){a instanceof I&&!a.survive&&(d=e&&"group"===b?"hide":"destroy",a[d]())});b.hoverSeries===a&&(b.hoverSeries=null);n(b.series,a);b.orderSeries();k(a,function(b,c){delete a[c]})},getGraphPath:function(a,b,c){var e=this,d=e.options,f=d.step,g,k=[],l=[],n;a=a||e.points;(g=a.reversed)&&a.reverse();(f={right:1,center:2}[f]||f&&3)&&g&&(f=4-f);!d.connectNulls||b||c||(a=this.getValidPoints(a));m(a,function(h,g){var r=h.plotX,m=h.plotY,w=a[g-1];(h.leftCliff||w&&w.rightCliff)&&!c&&(n=!0);h.isNull&&
!p(b)&&0<g?n=!d.connectNulls:h.isNull&&!b?n=!0:(0===g||n?g=["M",h.plotX,h.plotY]:e.getPointSpline?g=e.getPointSpline(a,h,g):f?(g=1===f?["L",w.plotX,m]:2===f?["L",(w.plotX+r)/2,w.plotY,"L",(w.plotX+r)/2,m]:["L",r,w.plotY],g.push("L",r,m)):g=["L",r,m],l.push(h.x),f&&l.push(h.x),k.push.apply(k,g),n=!1)});k.xMap=l;return e.graphPath=k},drawGraph:function(){var a=this,b=(this.gappedPath||this.getGraphPath).call(this),c=[["graph","highcharts-graph"]];m(this.zones,function(a,b){c.push(["zone-graph-"+b,"highcharts-graph highcharts-zone-graph-"+
b+" "+(a.className||"")])});m(c,function(c,e){e=c[0];var d=a[e];d?(d.endX=b.xMap,d.animate({d:b})):b.length&&(a[e]=a.chart.renderer.path(b).addClass(c[1]).attr({zIndex:1}).add(a.group));d&&(d.startX=b.xMap,d.isArea=b.isArea)})},applyZones:function(){var a=this,b=this.chart,c=b.renderer,e=this.zones,d,f,g=this.clips||[],k,l=this.graph,n=this.area,r=Math.max(b.chartWidth,b.chartHeight),u=this[(this.zoneAxis||"y")+"Axis"],p,q,B=b.inverted,x,I,G,y,H=!1;e.length&&(l||n)&&u&&void 0!==u.min&&(q=u.reversed,
x=u.horiz,l&&l.hide(),n&&n.hide(),p=u.getExtremes(),m(e,function(e,h){d=q?x?b.plotWidth:0:x?0:u.toPixels(p.min);d=Math.min(Math.max(F(f,d),0),r);f=Math.min(Math.max(Math.round(u.toPixels(F(e.value,p.max),!0)),0),r);H&&(d=f=u.toPixels(p.max));I=Math.abs(d-f);G=Math.min(d,f);y=Math.max(d,f);u.isXAxis?(k={x:B?y:G,y:0,width:I,height:r},x||(k.x=b.plotHeight-k.x)):(k={x:0,y:B?y:G,width:r,height:I},x&&(k.y=b.plotWidth-k.y));g[h]?g[h].animate(k):(g[h]=c.clipRect(k),l&&a["zone-graph-"+h].clip(g[h]),n&&a["zone-area-"+
h].clip(g[h]));H=e.value>p.max}),this.clips=g)},invertGroups:function(a){function b(){m(["group","markerGroup"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=y(e,"resize",b),y(c,"destroy",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var h=this[a],f=!h;f&&(this[a]=h=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));h.addClass("highcharts-"+b+" highcharts-series-"+
this.index+" highcharts-"+this.type+"-series highcharts-color-"+this.colorIndex+" "+(this.options.className||""),!0);h.attr({visibility:c})[f?"attr":"animate"](this.getPlotBox());return h},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}},render:function(){var a=this,b=a.chart,c,e=a.options,d=!!a.animate&&b.renderer.isSVG&&C(e.animation).duration,f=a.visible?"inherit":
"hidden",g=e.zIndex,k=a.hasRendered,l=b.seriesGroup,n=b.inverted;c=a.plotGroup("group","series",f,g,l);a.markerGroup=a.plotGroup("markerGroup","markers",f,g,l);d&&a.animate(!0);c.inverted=a.isCartesian?n:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(n);!1===e.clip||a.sharedClipKey||k||c.clip(b.clipRect);d&&a.animate();k||(a.animationTimeout=r(function(){a.afterAnimate()},
d));a.isDirty=!1;a.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:F(e&&e.left,a.plotLeft),translateY:F(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?c.len-a.chartY+
c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,d){var h,f;if(f=c&&c.length)return h=b.kdAxisArray[e%d],c.sort(function(a,b){return a[h]-b[h]}),f=Math.floor(f/2),{point:c[f],left:a(c.slice(0,f),e+1,d),right:a(c.slice(f+1),e+1,d)}}this.buildingKdTree=!0;var b=this,c=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;r(function(){b.kdTree=a(b.getValidPoints(null,!b.directTouch),c,c);b.buildingKdTree=!1},b.options.kdNow?0:1)},
searchKDTree:function(a,b){function c(a,b,h,k){var l=b.point,n=e.kdAxisArray[h%k],r,m,u=l;m=p(a[d])&&p(l[d])?Math.pow(a[d]-l[d],2):null;r=p(a[f])&&p(l[f])?Math.pow(a[f]-l[f],2):null;r=(m||0)+(r||0);l.dist=p(r)?Math.sqrt(r):Number.MAX_VALUE;l.distX=p(m)?Math.sqrt(m):Number.MAX_VALUE;n=a[n]-l[n];r=0>n?"left":"right";m=0>n?"right":"left";b[r]&&(r=c(a,b[r],h+1,k),u=r[g]<u[g]?r:l);b[m]&&Math.sqrt(n*n)<u[g]&&(a=c(a,b[m],h+1,k),u=a[g]<u[g]?a:u);return u}var e=this,d=this.kdAxisArray[0],f=this.kdAxisArray[1],
g=b?"distX":"dist";b=-1<e.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree();if(this.kdTree)return c(a,this.kdTree,b,b)}})})(L);(function(a){var y=a.Axis,C=a.Chart,E=a.correctFloat,D=a.defined,q=a.destroyObjectProperties,d=a.each,g=a.format,p=a.objectEach,m=a.pick,n=a.Series;a.StackItem=function(a,c,d,e,b){var f=a.chart.inverted;this.axis=a;this.isNegative=d;this.options=c;this.x=e;this.total=null;this.points={};this.stack=b;this.rightCliff=this.leftCliff=
0;this.alignOptions={align:c.align||(f?d?"left":"right":"center"),verticalAlign:c.verticalAlign||(f?"middle":d?"bottom":"top"),y:m(c.y,f?4:d?14:-6),x:m(c.x,f?d?-6:6:0)};this.textAlign=c.textAlign||(f?d?"right":"left":"center")};a.StackItem.prototype={destroy:function(){q(this,this.axis)},render:function(a){var c=this.options,d=c.format,d=d?g(d,this):c.formatter.call(this);this.label?this.label.attr({text:d,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(d,null,null,c.useHTML).css(c.style).attr({align:this.textAlign,
rotation:c.rotation,visibility:"hidden"}).add(a)},setOffset:function(a,c){var d=this.axis,e=d.chart,b=d.translate(d.usePercentage?100:this.total,0,0,0,1),d=d.translate(0),d=Math.abs(b-d);a=e.xAxis[0].translate(this.x)+a;b=this.getStackBox(e,this,a,b,c,d);if(c=this.label)c.align(this.alignOptions,null,b),b=c.alignAttr,c[!1===this.options.crop||e.isInsidePlot(b.x,b.y)?"show":"hide"](!0)},getStackBox:function(a,c,d,e,b,g){var f=c.axis.reversed,k=a.inverted;a=a.plotHeight;c=c.isNegative&&!f||!c.isNegative&&
f;return{x:k?c?e:e-g:d,y:k?a-d-b:c?a-e-g:a-e,width:k?g:b,height:k?b:g}}};C.prototype.getStacks=function(){var a=this;d(a.yAxis,function(a){a.stacks&&a.hasVisibleSeries&&(a.oldStacks=a.stacks)});d(a.series,function(c){!c.options.stacking||!0!==c.visible&&!1!==a.options.chart.ignoreHiddenSeries||(c.stackKey=c.type+m(c.options.stack,""))})};y.prototype.buildStacks=function(){var a=this.series,c=m(this.options.reversedStacks,!0),d=a.length,e;if(!this.isXAxis){this.usePercentage=!1;for(e=d;e--;)a[c?e:
d-e-1].setStackedPoints();if(this.usePercentage)for(e=0;e<d;e++)a[e].setPercentStacks()}};y.prototype.renderStackTotals=function(){var a=this.chart,c=a.renderer,d=this.stacks,e=this.stackTotalGroup;e||(this.stackTotalGroup=e=c.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());e.translate(a.plotLeft,a.plotTop);p(d,function(a){p(a,function(a){a.render(e)})})};y.prototype.resetStacks=function(){var a=this,c=a.stacks;a.isXAxis||p(c,function(c){p(c,function(e,b){e.touched<a.stacksTouched?
(e.destroy(),delete c[b]):(e.total=null,e.cum=null)})})};y.prototype.cleanStacks=function(){var a;this.isXAxis||(this.oldStacks&&(a=this.stacks=this.oldStacks),p(a,function(a){p(a,function(a){a.cum=a.total})}))};n.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var d=this.processedXData,c=this.processedYData,g=[],e=c.length,b=this.options,n=b.threshold,l=b.startFromThreshold?n:0,k=b.stack,b=b.stacking,p=this.stackKey,
q="-"+p,B=this.negStacks,I=this.yAxis,r=I.stacks,G=I.oldStacks,w,A,v,y,h,t,C;I.stacksTouched+=1;for(h=0;h<e;h++)t=d[h],C=c[h],w=this.getStackIndicator(w,t,this.index),y=w.key,v=(A=B&&C<(l?0:n))?q:p,r[v]||(r[v]={}),r[v][t]||(G[v]&&G[v][t]?(r[v][t]=G[v][t],r[v][t].total=null):r[v][t]=new a.StackItem(I,I.options.stackLabels,A,t,k)),v=r[v][t],null!==C&&(v.points[y]=v.points[this.index]=[m(v.cum,l)],D(v.cum)||(v.base=y),v.touched=I.stacksTouched,0<w.index&&!1===this.singleStacks&&(v.points[y][0]=v.points[this.index+
","+t+",0"][0])),"percent"===b?(A=A?p:q,B&&r[A]&&r[A][t]?(A=r[A][t],v.total=A.total=Math.max(A.total,v.total)+Math.abs(C)||0):v.total=E(v.total+(Math.abs(C)||0))):v.total=E(v.total+(C||0)),v.cum=m(v.cum,l)+(C||0),null!==C&&(v.points[y].push(v.cum),g[h]=v.cum);"percent"===b&&(I.usePercentage=!0);this.stackedYData=g;I.oldStacks={}}};n.prototype.setPercentStacks=function(){var a=this,c=a.stackKey,g=a.yAxis.stacks,e=a.processedXData,b;d([c,"-"+c],function(c){for(var d=e.length,f,n;d--;)if(f=e[d],b=a.getStackIndicator(b,
f,a.index,c),f=(n=g[c]&&g[c][f])&&n.points[b.key])n=n.total?100/n.total:0,f[0]=E(f[0]*n),f[1]=E(f[1]*n),a.stackedYData[d]=f[1]})};n.prototype.getStackIndicator=function(a,c,d,e){!D(a)||a.x!==c||e&&a.key!==e?a={x:c,index:0,key:e}:a.index++;a.key=[d,c,a.index].join();return a}})(L);(function(a){var y=a.addEvent,C=a.Axis,E=a.createElement,D=a.css,q=a.defined,d=a.each,g=a.erase,p=a.extend,m=a.fireEvent,n=a.inArray,f=a.isNumber,c=a.isObject,x=a.isArray,e=a.merge,b=a.objectEach,u=a.pick,l=a.Point,k=a.Series,
F=a.seriesTypes,H=a.setAnimation,B=a.splat;p(a.Chart.prototype,{addSeries:function(a,b,c){var e,d=this;a&&(b=u(b,!0),m(d,"addSeries",{options:a},function(){e=d.initSeries(a);d.isDirtyLegend=!0;d.linkSeries();b&&d.redraw(c)}));return e},addAxis:function(a,b,c,d){var f=b?"xAxis":"yAxis",g=this.options;a=e(a,{index:this[f].length,isX:b});b=new C(this,a);g[f]=B(g[f]||{});g[f].push(a);u(c,!0)&&this.redraw(d);return b},showLoading:function(a){var b=this,c=b.options,e=b.loadingDiv,d=function(){e&&D(e,{left:b.plotLeft+
"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};e||(b.loadingDiv=e=E("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container),b.loadingSpan=E("span",{className:"highcharts-loading-inner"},null,e),y(b,"redraw",d));e.className="highcharts-loading";b.loadingSpan.innerHTML=a||c.lang.loading;b.loadingShown=!0;d()},hideLoading:function(){var a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden");this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions tooltip".split(" "),update:function(a,c,g){var k=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},r=a.chart,m,h,p=[];if(r){e(!0,k.options.chart,r);"className"in r&&k.setClassName(r.className);if("inverted"in r||"polar"in r)k.propFromSeries(),m=!0;"alignTicks"in r&&(m=!0);b(r,function(a,b){-1!==n("chart."+b,k.propsRequireUpdateSeries)&&(h=!0);-1!==n(b,k.propsRequireDirtyBox)&&
(k.isDirtyBox=!0)})}a.plotOptions&&e(!0,this.options.plotOptions,a.plotOptions);b(a,function(a,b){if(k[b]&&"function"===typeof k[b].update)k[b].update(a,!1);else if("function"===typeof k[l[b]])k[l[b]](a);"chart"!==b&&-1!==n(b,k.propsRequireUpdateSeries)&&(h=!0)});d("xAxis yAxis zAxis series colorAxis pane".split(" "),function(b){a[b]&&(d(B(a[b]),function(a,c){(c=q(a.id)&&k.get(a.id)||k[b][c])&&c.coll===b&&(c.update(a,!1),g&&(c.touched=!0));if(!c&&g)if("series"===b)k.addSeries(a,!1).touched=!0;else if("xAxis"===
b||"yAxis"===b)k.addAxis(a,"xAxis"===b,!1).touched=!0}),g&&d(k[b],function(a){a.touched?delete a.touched:p.push(a)}))});d(p,function(a){a.remove(!1)});m&&d(k.axes,function(a){a.update({},!1)});h&&d(k.series,function(a){a.update({},!1)});a.loading&&e(!0,k.options.loading,a.loading);m=r&&r.width;r=r&&r.height;f(m)&&m!==k.chartWidth||f(r)&&r!==k.chartHeight?k.setSize(m,r):u(c,!0)&&k.redraw()},setSubtitle:function(a){this.setTitle(void 0,a)}});p(l.prototype,{update:function(a,b,e,d){function f(){g.applyOptions(a);
null===g.y&&h&&(g.graphic=h.destroy());c(a,!0)&&(h&&h.element&&a&&a.marker&&void 0!==a.marker.symbol&&(g.graphic=h.destroy()),a&&a.dataLabels&&g.dataLabel&&(g.dataLabel=g.dataLabel.destroy()));l=g.index;k.updateParallelArrays(g,l);r.data[l]=c(r.data[l],!0)||c(a,!0)?g.options:a;k.isDirty=k.isDirtyData=!0;!k.fixedBox&&k.hasCartesianSeries&&(n.isDirtyBox=!0);"point"===r.legendType&&(n.isDirtyLegend=!0);b&&n.redraw(e)}var g=this,k=g.series,h=g.graphic,l,n=k.chart,r=k.options;b=u(b,!0);!1===d?f():g.firePointEvent("update",
{options:a},f)},remove:function(a,b){this.series.removePoint(n(this,this.series.data),a,b)}});p(k.prototype,{addPoint:function(a,b,c,e){var d=this.options,f=this.data,g=this.chart,h=this.xAxis,h=h&&h.hasNames&&h.names,k=d.data,l,n,r=this.xData,m,p;b=u(b,!0);l={series:this};this.pointClass.prototype.applyOptions.apply(l,[a]);p=l.x;m=r.length;if(this.requireSorting&&p<r[m-1])for(n=!0;m&&r[m-1]>p;)m--;this.updateParallelArrays(l,"splice",m,0,0);this.updateParallelArrays(l,m);h&&l.name&&(h[p]=l.name);
k.splice(m,0,a);n&&(this.data.splice(m,0,null),this.processData());"point"===d.legendType&&this.generatePoints();c&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),this.updateParallelArrays(l,"shift"),k.shift()));this.isDirtyData=this.isDirty=!0;b&&g.redraw(e)},removePoint:function(a,b,c){var e=this,d=e.data,f=d[a],g=e.points,h=e.chart,k=function(){g&&g.length===d.length&&g.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(f||{series:e},"splice",a,1);f&&f.destroy();e.isDirty=
!0;e.isDirtyData=!0;b&&h.redraw()};H(c,h);b=u(b,!0);f?f.firePointEvent("remove",null,k):k()},remove:function(a,b,c){function e(){d.destroy();f.isDirtyLegend=f.isDirtyBox=!0;f.linkSeries();u(a,!0)&&f.redraw(b)}var d=this,f=d.chart;!1!==c?m(d,"remove",null,e):e()},update:function(a,b){var c=this,f=c.chart,g=c.userOptions,k=c.oldType||c.type,l=a.type||g.type||f.options.chart.type,h=F[k].prototype,n,m=["group","markerGroup","dataLabelsGroup","navigatorSeries","baseSeries"],r=c.finishedAnimating&&{animation:!1};
if(Object.keys&&"data"===Object.keys(a).toString())return this.setData(a.data,b);if(l&&l!==k||void 0!==a.zIndex)m.length=0;d(m,function(a){m[a]=c[a];delete c[a]});a=e(g,r,{index:c.index,pointStart:c.xData[0]},{data:c.options.data},a);c.remove(!1,null,!1);for(n in h)c[n]=void 0;p(c,F[l||k].prototype);d(m,function(a){c[a]=m[a]});c.init(f,a);c.oldType=k;f.linkSeries();u(b,!0)&&f.redraw(!1)}});p(C.prototype,{update:function(a,b){var c=this.chart;a=c.options[this.coll][this.options.index]=e(this.userOptions,
a);this.destroy(!0);this.init(c,p(a,{events:void 0}));c.isDirtyBox=!0;u(b,!0)&&c.redraw()},remove:function(a){for(var b=this.chart,c=this.coll,e=this.series,f=e.length;f--;)e[f]&&e[f].remove(!1);g(b.axes,this);g(b[c],this);x(b.options[c])?b.options[c].splice(this.options.index,1):delete b.options[c];d(b[c],function(a,b){a.options.index=b});this.destroy();b.isDirtyBox=!0;u(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}})})(L);
(function(a){var y=a.each,C=a.map,E=a.pick,D=a.Series,q=a.seriesType;q("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(d){var g=[],p=[],m=this.xAxis,n=this.yAxis,f=n.stacks[this.stackKey],c={},q=this.index,e=n.series,b=e.length,u,l=E(n.options.reversedStacks,!0)?1:-1,k;d=d||this.points;if(this.options.stacking){for(k=0;k<d.length;k++)c[d[k].x]=d[k];a.objectEach(f,function(a,b){null!==a.total&&p.push(b)});p.sort(function(a,b){return a-b});u=C(e,function(){return this.visible});
y(p,function(a,e){var d=0,x,r;if(c[a]&&!c[a].isNull)g.push(c[a]),y([-1,1],function(d){var g=1===d?"rightNull":"leftNull",n=0,m=f[p[e+d]];if(m)for(k=q;0<=k&&k<b;)x=m.points[k],x||(k===q?c[a][g]=!0:u[k]&&(r=f[a].points[k])&&(n-=r[1]-r[0])),k+=l;c[a][1===d?"rightCliff":"leftCliff"]=n});else{for(k=q;0<=k&&k<b;){if(x=f[a].points[k]){d=x[1];break}k+=l}d=n.translate(d,0,1,0,1);g.push({isNull:!0,plotX:m.translate(a,0,0,0,1),x:a,plotY:d,yBottom:d})}})}return g},getGraphPath:function(a){var d=D.prototype.getGraphPath,
p=this.options,m=p.stacking,n=this.yAxis,f,c,q=[],e=[],b=this.index,u,l=n.stacks[this.stackKey],k=p.threshold,y=n.getThreshold(p.threshold),C,p=p.connectNulls||"percent"===m,B=function(c,d,f){var g=a[c];c=m&&l[g.x].points[b];var r=g[f+"Null"]||0;f=g[f+"Cliff"]||0;var p,B,g=!0;f||r?(p=(r?c[0]:c[1])+f,B=c[0]+f,g=!!r):!m&&a[d]&&a[d].isNull&&(p=B=k);void 0!==p&&(e.push({plotX:u,plotY:null===p?y:n.getThreshold(p),isNull:g,isCliff:!0}),q.push({plotX:u,plotY:null===B?y:n.getThreshold(B),doCurve:!1}))};a=
a||this.points;m&&(a=this.getStackPoints(a));for(f=0;f<a.length;f++)if(c=a[f].isNull,u=E(a[f].rectPlotX,a[f].plotX),C=E(a[f].yBottom,y),!c||p)p||B(f,f-1,"left"),c&&!m&&p||(e.push(a[f]),q.push({x:f,plotX:u,plotY:C})),p||B(f,f+1,"right");f=d.call(this,e,!0,!0);q.reversed=!0;c=d.call(this,q,!0,!0);c.length&&(c[0]="L");c=f.concat(c);d=d.call(this,e,!1,p);c.xMap=f.xMap;this.areaPath=c;return d},drawGraph:function(){this.areaPath=[];D.prototype.drawGraph.apply(this);var a=this,g=this.areaPath,p=this.options,
m=[["area","highcharts-area"]];y(this.zones,function(a,d){m.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+a.className])});y(m,function(d){var f=d[0],c=a[f];c?(c.endX=g.xMap,c.animate({d:g})):(c=a[f]=a.chart.renderer.path(g).addClass(d[1]).attr({zIndex:0}).add(a.group),c.isArea=!0);c.startX=g.xMap;c.shiftUnit=p.step?2:1})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})})(L);(function(a){var y=a.pick;a=a.seriesType;a("spline","line",{},{getPointSpline:function(a,E,D){var q=
E.plotX,d=E.plotY,g=a[D-1];D=a[D+1];var p,m,n,f;if(g&&!g.isNull&&!1!==g.doCurve&&!E.isCliff&&D&&!D.isNull&&!1!==D.doCurve&&!E.isCliff){a=g.plotY;n=D.plotX;D=D.plotY;var c=0;p=(1.5*q+g.plotX)/2.5;m=(1.5*d+a)/2.5;n=(1.5*q+n)/2.5;f=(1.5*d+D)/2.5;n!==p&&(c=(f-m)*(n-q)/(n-p)+d-f);m+=c;f+=c;m>a&&m>d?(m=Math.max(a,d),f=2*d-m):m<a&&m<d&&(m=Math.min(a,d),f=2*d-m);f>D&&f>d?(f=Math.max(D,d),m=2*d-f):f<D&&f<d&&(f=Math.min(D,d),m=2*d-f);E.rightContX=n;E.rightContY=f}E=["C",y(g.rightContX,g.plotX),y(g.rightContY,
g.plotY),y(p,q),y(m,d),q,d];g.rightContX=g.rightContY=null;return E}})})(L);(function(a){var y=a.seriesTypes.area.prototype,C=a.seriesType;C("areaspline","spline",a.defaultPlotOptions.area,{getStackPoints:y.getStackPoints,getGraphPath:y.getGraphPath,drawGraph:y.drawGraph,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})})(L);(function(a){var y=a.animObject,C=a.each,E=a.extend,D=a.isNumber,q=a.merge,d=a.pick,g=a.Series,p=a.seriesType,m=a.svg;p("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,
marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){g.prototype.init.apply(this,arguments);var a=this,d=a.chart;d.hasRendered&&C(d.series,function(c){c.type===a.type&&(c.isDirty=!0)})},getColumnMetrics:function(){var a=
this,f=a.options,c=a.xAxis,g=a.yAxis,e=c.reversed,b,m={},l=0;!1===f.grouping?l=1:C(a.chart.series,function(c){var e=c.options,d=c.yAxis,f;c.type!==a.type||!c.visible&&a.chart.options.chart.ignoreHiddenSeries||g.len!==d.len||g.pos!==d.pos||(e.stacking?(b=c.stackKey,void 0===m[b]&&(m[b]=l++),f=m[b]):!1!==e.grouping&&(f=l++),c.columnIndex=f)});var k=Math.min(Math.abs(c.transA)*(c.ordinalSlope||f.pointRange||c.closestPointRange||c.tickInterval||1),c.len),p=k*f.groupPadding,q=(k-2*p)/(l||1),f=Math.min(f.maxPointWidth||
c.len,d(f.pointWidth,q*(1-2*f.pointPadding)));a.columnMetrics={width:f,offset:(q-f)/2+(p+((a.columnIndex||0)+(e?1:0))*q-k/2)*(e?-1:1)};return a.columnMetrics},crispCol:function(a,d,c,g){var e=this.chart,b=this.borderWidth,f=-(b%2?.5:0),b=b%2?.5:1;e.inverted&&e.renderer.isVML&&(b+=1);this.options.crisp&&(c=Math.round(a+c)+f,a=Math.round(a)+f,c-=a);g=Math.round(d+g)+b;f=.5>=Math.abs(d)&&.5<g;d=Math.round(d)+b;g-=d;f&&g&&(--d,g+=1);return{x:a,y:d,width:c,height:g}},translate:function(){var a=this,f=
a.chart,c=a.options,m=a.dense=2>a.closestPointRange*a.xAxis.transA,m=a.borderWidth=d(c.borderWidth,m?0:1),e=a.yAxis,b=a.translatedThreshold=e.getThreshold(c.threshold),p=d(c.minPointLength,5),l=a.getColumnMetrics(),k=l.width,q=a.barW=Math.max(k,1+2*m),y=a.pointXOffset=l.offset;f.inverted&&(b-=.5);c.pointPadding&&(q=Math.ceil(q));g.prototype.translate.apply(a);C(a.points,function(c){var g=d(c.yBottom,b),l=999+Math.abs(g),l=Math.min(Math.max(-l,c.plotY),e.len+l),n=c.plotX+y,m=q,u=Math.min(l,g),B,x=
Math.max(l,g)-u;Math.abs(x)<p&&p&&(x=p,B=!e.reversed&&!c.negative||e.reversed&&c.negative,u=Math.abs(u-b)>p?g-p:b-(B?p:0));c.barX=n;c.pointWidth=k;c.tooltipPos=f.inverted?[e.len+e.pos-f.plotLeft-l,a.xAxis.len-n-m/2,x]:[n+m/2,l+e.pos-f.plotTop,x];c.shapeType="rect";c.shapeArgs=a.crispCol.apply(a,c.isNull?[n,b,m,0]:[n,u,m,x])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},drawPoints:function(){var a=
this,d=this.chart,c=a.options,g=d.renderer,e=c.animationLimit||250,b;C(a.points,function(f){var l=f.graphic;if(D(f.plotY)&&null!==f.y){b=f.shapeArgs;if(l)l[d.pointCount<e?"animate":"attr"](q(b));else f.graphic=l=g[f.shapeType](b).add(f.group||a.group);c.borderRadius&&l.attr({r:c.borderRadius});l.addClass(f.getClassName(),!0)}else l&&(f.graphic=l.destroy())})},animate:function(a){var d=this,c=this.yAxis,g=d.options,e=this.chart.inverted,b={};m&&(a?(b.scaleY=.001,a=Math.min(c.pos+c.len,Math.max(c.pos,
c.toPixels(g.threshold))),e?b.translateX=a-c.len:b.translateY=a,d.group.attr(b)):(b[e?"translateX":"translateY"]=c.pos,d.group.animate(b,E(y(d.options.animation),{step:function(a,b){d.group.attr({scaleY:Math.max(.001,b.pos)})}})),d.animate=null))},remove:function(){var a=this,d=a.chart;d.hasRendered&&C(d.series,function(c){c.type===a.type&&(c.isDirty=!0)});g.prototype.remove.apply(a,arguments)}})})(L);(function(a){a=a.seriesType;a("bar","column",null,{inverted:!0})})(L);(function(a){var y=a.Series;
a=a.seriesType;a("scatter","line",{lineWidth:0,findNearestPointBy:"xy",marker:{enabled:!0},tooltip:{headerFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cspan class\x3d"highcharts-header"\x3e {series.name}\x3c/span\x3e\x3cbr/\x3e',pointFormat:"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,
drawGraph:function(){this.options.lineWidth&&y.prototype.drawGraph.call(this)}})})(L);(function(a){var y=a.pick,C=a.relativeLength;a.CenteredSeriesMixin={getCenter:function(){var a=this.options,D=this.chart,q=2*(a.slicedOffset||0),d=D.plotWidth-2*q,D=D.plotHeight-2*q,g=a.center,g=[y(g[0],"50%"),y(g[1],"50%"),a.size||"100%",a.innerSize||0],p=Math.min(d,D),m,n;for(m=0;4>m;++m)n=g[m],a=2>m||2===m&&/%$/.test(n),g[m]=C(n,[d,D,p,g[2]][m])+(a?q:0);g[3]>g[2]&&(g[3]=g[2]);return g}}})(L);(function(a){var y=
a.addEvent,C=a.defined,E=a.each,D=a.extend,q=a.inArray,d=a.noop,g=a.pick,p=a.Point,m=a.Series,n=a.seriesType,f=a.setAnimation;n("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,
trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,e=c.points,b=c.startAngleRad;a||(E(e,function(a){var e=a.graphic,d=a.shapeArgs;e&&(e.attr({r:a.startR||c.center[3]/2,start:b,end:b}),e.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,d=0,e=this.points,b=e.length,f,g=this.options.ignoreHiddenPoint;for(a=0;a<b;a++)f=e[a],d+=g&&!f.visible?0:f.isNull?
0:f.y;this.total=d;for(a=0;a<b;a++)f=e[a],f.percentage=0<d&&(f.visible||!g)?f.y/d*100:0,f.total=d},generatePoints:function(){m.prototype.generatePoints.call(this);this.updateTotals()},translate:function(a){this.generatePoints();var c=0,d=this.options,b=d.slicedOffset,f=b+(d.borderWidth||0),l,k,m,n=d.startAngle||0,p=this.startAngleRad=Math.PI/180*(n-90),n=(this.endAngleRad=Math.PI/180*(g(d.endAngle,n+360)-90))-p,q=this.points,r,G=d.dataLabels.distance,d=d.ignoreHiddenPoint,w,A=q.length,v;a||(this.center=
a=this.getCenter());this.getX=function(b,c,d){m=Math.asin(Math.min((b-a[1])/(a[2]/2+d.labelDistance),1));return a[0]+(c?-1:1)*Math.cos(m)*(a[2]/2+d.labelDistance)};for(w=0;w<A;w++){v=q[w];v.labelDistance=g(v.options.dataLabels&&v.options.dataLabels.distance,G);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,v.labelDistance);l=p+c*n;if(!d||v.visible)c+=v.percentage/100;k=p+c*n;v.shapeType="arc";v.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*l)/1E3,end:Math.round(1E3*
k)/1E3};m=(k+l)/2;m>1.5*Math.PI?m-=2*Math.PI:m<-Math.PI/2&&(m+=2*Math.PI);v.slicedTranslation={translateX:Math.round(Math.cos(m)*b),translateY:Math.round(Math.sin(m)*b)};k=Math.cos(m)*a[2]/2;r=Math.sin(m)*a[2]/2;v.tooltipPos=[a[0]+.7*k,a[1]+.7*r];v.half=m<-Math.PI/2||m>Math.PI/2?1:0;v.angle=m;l=Math.min(f,v.labelDistance/5);v.labelPos=[a[0]+k+Math.cos(m)*v.labelDistance,a[1]+r+Math.sin(m)*v.labelDistance,a[0]+k+Math.cos(m)*l,a[1]+r+Math.sin(m)*l,a[0]+k,a[1]+r,0>v.labelDistance?"center":v.half?"right":
"left",m]}},drawGraph:null,drawPoints:function(){var a=this,d=a.chart.renderer,e,b,f;E(a.points,function(c){c.isNull||(b=c.graphic,f=c.shapeArgs,e=c.getTranslate(),b?b.setRadialReference(a.center).animate(D(f,e)):(c.graphic=b=d[c.shapeType](f).setRadialReference(a.center).attr(e).add(a.group),c.visible||b.attr({visibility:"hidden"})),b.addClass(c.getClassName()))})},searchPoint:d,sortByAngle:function(a,d){a.sort(function(a,b){return void 0!==a.angle&&(b.angle-a.angle)*d})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,
getCenter:a.CenteredSeriesMixin.getCenter,getSymbol:d},{init:function(){p.prototype.init.apply(this,arguments);var a=this,d;a.name=g(a.name,"Slice");d=function(c){a.slice("select"===c.type)};y(a,"select",d);y(a,"unselect",d);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,d){var c=this,b=c.series,f=b.chart,l=b.options.ignoreHiddenPoint;d=g(d,l);a!==c.visible&&(c.visible=c.options.visible=a=void 0===a?!c.visible:a,b.options.data[q(c,b.data)]=c.options,E(["graphic",
"dataLabel","connector","shadowGroup"],function(b){if(c[b])c[b][a?"show":"hide"](!0)}),c.legendItem&&f.legend.colorizeItem(c,a),a||"hover"!==c.state||c.setState(""),l&&(b.isDirty=!0),d&&f.redraw())},slice:function(a,d,e){var b=this.series;f(e,b.chart);g(d,!0);this.sliced=this.options.sliced=C(a)?a:!this.sliced;b.options.data[q(this,b.data)]=this.options;this.graphic.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=
this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r,start:c.start,end:c.end})}})})(L);(function(a){var y=a.addEvent,C=a.arrayMax,E=a.defined,D=a.each,q=a.extend,d=a.format,g=a.map,p=a.merge,m=a.noop,n=a.pick,f=a.relativeLength,c=a.Series,x=a.seriesTypes,e=a.stableSort;a.distribute=function(a,c){function b(a,b){return a.target-b.target}var d,f=!0,m=a,n=[],p;p=0;for(d=a.length;d--;)p+=a[d].size;if(p>c){e(a,function(a,
b){return(b.rank||0)-(a.rank||0)});for(p=d=0;p<=c;)p+=a[d].size,d++;n=a.splice(d-1,a.length)}e(a,b);for(a=g(a,function(a){return{size:a.size,targets:[a.target]}});f;){for(d=a.length;d--;)f=a[d],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size/2),c-f.size);d=a.length;for(f=!1;d--;)0<d&&a[d-1].pos+a[d-1].size>a[d].pos&&(a[d-1].size+=a[d].size,a[d-1].targets=a[d-1].targets.concat(a[d].targets),a[d-1].pos+a[d-1].size>c&&(a[d-1].pos=c-a[d-1].size),a.splice(d,
1),f=!0)}d=0;D(a,function(a){var b=0;D(a.targets,function(){m[d].pos=a.pos+b;b+=m[d].size;d++})});m.push.apply(m,n);e(m,b)};c.prototype.drawDataLabels=function(){var b=this,c=b.options,e=c.dataLabels,f=b.points,g,m,q=b.hasRendered||0,x,r,G=n(e.defer,!!c.animation),w=b.chart.renderer;if(e.enabled||b._hasPointLabels)b.dlProcessOptions&&b.dlProcessOptions(e),r=b.plotGroup("dataLabelsGroup","data-labels",G&&!q?"hidden":"visible",e.zIndex||6),G&&(r.attr({opacity:+q}),q||y(b,"afterAnimate",function(){b.visible&&
r.show(!0);r[c.animation?"animate":"attr"]({opacity:1},{duration:200})})),m=e,D(f,function(c){var f,k=c.dataLabel,h,l,q=c.connector,u=!k;g=c.dlOptions||c.options&&c.options.dataLabels;if(f=n(g&&g.enabled,m.enabled)&&null!==c.y)e=p(m,g),h=c.getLabelConfig(),x=e.format?d(e.format,h):e.formatter.call(h,e),h=e.rotation,l={r:e.borderRadius||0,rotation:h,padding:e.padding,zIndex:1},a.objectEach(l,function(a,b){void 0===a&&delete l[b]});!k||f&&E(x)?f&&E(x)&&(k?l.text=x:(k=c.dataLabel=w[h?"text":"label"](x,
0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),k.addClass("highcharts-data-label-color-"+c.colorIndex+" "+(e.className||"")+(e.useHTML?"highcharts-tracker":""))),k.attr(l),k.added||k.add(r),b.alignDataLabel(c,k,e,null,u)):(c.dataLabel=k=k.destroy(),q&&(c.connector=q.destroy()))})};c.prototype.alignDataLabel=function(a,c,d,e,f){var b=this.chart,g=b.inverted,k=n(a.plotX,-9999),l=n(a.plotY,-9999),m=c.getBBox(),p,u=d.rotation,v=d.align,x=this.visible&&(a.series.forceDL||b.isInsidePlot(k,Math.round(l),
g)||e&&b.isInsidePlot(k,g?e.x+1:e.y+e.height-1,g)),h="justify"===n(d.overflow,"justify");if(x&&(p=b.renderer.fontMetrics(void 0,c).b,e=q({x:g?this.yAxis.len-l:k,y:Math.round(g?this.xAxis.len-k:l),width:0,height:0},e),q(d,{width:m.width,height:m.height}),u?(h=!1,k=b.renderer.rotCorr(p,u),k={x:e.x+d.x+e.width/2+k.x,y:e.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*e.height},c[f?"attr":"animate"](k).attr({align:v}),l=(u+720)%360,l=180<l&&360>l,"left"===v?k.y-=l?m.height:0:"center"===v?(k.x-=m.width/
2,k.y-=m.height/2):"right"===v&&(k.x-=m.width,k.y-=l?0:m.height)):(c.align(d,null,e),k=c.alignAttr),h?a.isLabelJustified=this.justifyDataLabel(c,d,k,m,e,f):n(d.crop,!0)&&(x=b.isInsidePlot(k.x,k.y)&&b.isInsidePlot(k.x+m.width,k.y+m.height)),d.shape&&!u))c[f?"attr":"animate"]({anchorX:g?b.plotWidth-a.plotY:a.plotX,anchorY:g?b.plotHeight-a.plotX:a.plotY});x||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,e,f,g){var b=this.chart,k=c.align,l=c.verticalAlign,m,n,p=a.box?0:
a.padding||0;m=d.x+p;0>m&&("right"===k?c.align="left":c.x=-m,n=!0);m=d.x+e.width-p;m>b.plotWidth&&("left"===k?c.align="right":c.x=b.plotWidth-m,n=!0);m=d.y+p;0>m&&("bottom"===l?c.verticalAlign="top":c.y=-m,n=!0);m=d.y+e.height-p;m>b.plotHeight&&("top"===l?c.verticalAlign="bottom":c.y=b.plotHeight-m,n=!0);n&&(a.placed=!g,a.align(c,null,f));return n};x.pie&&(x.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,e,f=b.chart,g=b.options.dataLabels,m=n(g.connectorPadding,10),p=n(g.connectorWidth,
1),q=f.plotWidth,r=f.plotHeight,x,w=b.center,A=w[2]/2,v=w[1],y,h,t,M,K=[[],[]],N,O,L,R,P=[0,0,0,0];b.visible&&(g.enabled||b._hasPointLabels)&&(D(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),D(d,function(a){a.dataLabel&&a.visible&&(K[a.half].push(a),a.dataLabel._pos=null)}),D(K,function(c,d){var k,l,p=c.length,u=[],B;if(p)for(b.sortByAngle(c,d-.5),
0<b.maxLabelDistance&&(k=Math.max(0,v-A-b.maxLabelDistance),l=Math.min(v+A+b.maxLabelDistance,f.plotHeight),D(c,function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,v-A-a.labelDistance),a.bottom=Math.min(v+A+a.labelDistance,f.plotHeight),B=a.dataLabel.getBBox().height||21,a.positionsIndex=u.push({target:a.labelPos[1]-a.top+B/2,size:B,rank:a.y})-1)}),a.distribute(u,l+B-k)),R=0;R<p;R++)e=c[R],l=e.positionsIndex,t=e.labelPos,y=e.dataLabel,L=!1===e.visible?"hidden":"inherit",k=t[1],u&&E(u[l])?
void 0===u[l].pos?L="hidden":(M=u[l].size,O=e.top+u[l].pos):O=k,delete e.positionIndex,N=g.justify?w[0]+(d?-1:1)*(A+e.labelDistance):b.getX(O<e.top+2||O>e.bottom-2?k:O,d,e),y._attr={visibility:L,align:t[6]},y._pos={x:N+g.x+({left:m,right:-m}[t[6]]||0),y:O+g.y-10},t.x=N,t.y=O,n(g.crop,!0)&&(h=y.getBBox().width,k=null,N-h<m?(k=Math.round(h-N+m),P[3]=Math.max(k,P[3])):N+h>q-m&&(k=Math.round(N+h-q+m),P[1]=Math.max(k,P[1])),0>O-M/2?P[0]=Math.max(Math.round(-O+M/2),P[0]):O+M/2>r&&(P[2]=Math.max(Math.round(O+
M/2-r),P[2])),y.sideOverflow=k)}),0===C(P)||this.verifyDataLabelOverflow(P))&&(this.placeDataLabels(),p&&D(this.points,function(a){var c;x=a.connector;if((y=a.dataLabel)&&y._pos&&a.visible&&0<a.labelDistance){L=y._attr.visibility;if(c=!x)a.connector=x=f.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+a.colorIndex).add(b.dataLabelsGroup);x[c?"attr":"animate"]({d:b.connectorPath(a.labelPos)});x.attr("visibility",L)}else x&&(a.connector=x.destroy())}))},x.pie.prototype.connectorPath=
function(a){var b=a.x,c=a.y;return n(this.options.dataLabels.softConnector,!0)?["M",b+("left"===a[6]?5:-5),c,"C",b,c,2*a[2]-a[4],2*a[3]-a[5],a[2],a[3],"L",a[4],a[5]]:["M",b+("left"===a[6]?5:-5),c,"L",a[2],a[3],"L",a[4],a[5]]},x.pie.prototype.placeDataLabels=function(){D(this.points,function(a){var b=a.dataLabel;b&&a.visible&&((a=b._pos)?(b.sideOverflow&&(b._attr.width=b.getBBox().width-b.sideOverflow,b.css({width:b._attr.width+"px",textOverflow:"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?
"animate":"attr"](a),b.moved=!0):b&&b.attr({y:-9999}))},this)},x.pie.prototype.alignDataLabel=m,x.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,d=c.center,e=c.minSize||80,g,m=null!==c.size;m||(null!==d[0]?g=Math.max(b[2]-Math.max(a[1],a[3]),e):(g=Math.max(b[2]-a[1]-a[3],e),b[0]+=(a[3]-a[1])/2),null!==d[1]?g=Math.max(Math.min(g,b[2]-Math.max(a[0],a[2])),e):(g=Math.max(Math.min(g,b[2]-a[0]-a[2]),e),b[1]+=(a[0]-a[2])/2),g<b[2]?(b[2]=g,b[3]=Math.min(f(c.innerSize||
0,g),g),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):m=!0);return m});x.column&&(x.column.prototype.alignDataLabel=function(a,d,e,f,g){var b=this.chart.inverted,k=a.series,m=a.dlBox||a.shapeArgs,l=n(a.below,a.plotY>n(this.translatedThreshold,k.yAxis.len)),q=n(e.inside,!!this.options.stacking);m&&(f=p(m),0>f.y&&(f.height+=f.y,f.y=0),m=f.y+f.height-k.yAxis.len,0<m&&(f.height-=m),b&&(f={x:k.yAxis.len-f.y-f.height,y:k.xAxis.len-f.x-f.width,width:f.height,height:f.width}),q||(b?(f.x+=
l?0:f.width,f.width=0):(f.y+=l?f.height:0,f.height=0)));e.align=n(e.align,!b||q?"center":l?"right":"left");e.verticalAlign=n(e.verticalAlign,b||q?"middle":l?"top":"bottom");c.prototype.alignDataLabel.call(this,a,d,e,f,g);a.isLabelJustified&&a.contrastColor&&a.dataLabel.css({color:a.contrastColor})})})(L);(function(a){var y=a.Chart,C=a.each,E=a.objectEach,D=a.pick,q=a.addEvent;y.prototype.callbacks.push(function(a){function d(){var d=[];C(a.yAxis||[],function(a){a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&
E(a.stacks,function(a){E(a,function(a){d.push(a.label)})})});C(a.series||[],function(a){var g=a.options.dataLabels,f=a.dataLabelCollections||["dataLabel"];(g.enabled||a._hasPointLabels)&&!g.allowOverlap&&a.visible&&C(f,function(c){C(a.points,function(a){a[c]&&(a[c].labelrank=D(a.labelrank,a.shapeArgs&&a.shapeArgs.height),d.push(a[c]))})})});a.hideOverlappingLabels(d)}d();q(a,"redraw",d)});y.prototype.hideOverlappingLabels=function(a){var d=a.length,p,m,n,f,c,q,e,b,u,l=function(a,b,c,d,e,f,g,m){return!(e>
a+c||e+g<a||f>b+d||f+m<b)};for(m=0;m<d;m++)if(p=a[m])p.oldOpacity=p.opacity,p.newOpacity=1,p.width||(n=p.getBBox(),p.width=n.width,p.height=n.height);a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(m=0;m<d;m++)for(n=a[m],p=m+1;p<d;++p)if(f=a[p],n&&f&&n!==f&&n.placed&&f.placed&&0!==n.newOpacity&&0!==f.newOpacity&&(c=n.alignAttr,q=f.alignAttr,e=n.parentGroup,b=f.parentGroup,u=2*(n.box?0:n.padding||0),c=l(c.x+e.translateX,c.y+e.translateY,n.width-u,n.height-u,q.x+b.translateX,q.y+
b.translateY,f.width-u,f.height-u)))(n.labelrank<f.labelrank?n:f).newOpacity=0;C(a,function(a){var b,c;a&&(c=a.newOpacity,a.oldOpacity!==c&&a.placed&&(c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b)),a.isOld=!0)})}})(L);(function(a){var y=a.addEvent,C=a.Chart,E=a.createElement,D=a.css,q=a.defaultOptions,d=a.defaultPlotOptions,g=a.each,p=a.extend,m=a.fireEvent,n=a.hasTouch,f=a.inArray,c=a.isObject,x=a.Legend,e=a.merge,b=a.pick,u=a.Point,l=a.Series,
k=a.seriesTypes,F=a.svg,H;H=a.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart.pointer,c=function(a){var c=b.getPointFromEvent(a);void 0!==c&&(b.isDirectTouch=!0,c.onMouseOver(a))};g(a.points,function(a){a.graphic&&(a.graphic.element.point=a);a.dataLabel&&(a.dataLabel.div?a.dataLabel.div.point=a:a.dataLabel.element.point=a)});a._hasTracking||(g(a.trackerGroups,function(d){if(a[d]&&(a[d].addClass("highcharts-tracker").on("mouseover",c).on("mouseout",function(a){b.onTrackerMouseOut(a)}),
n))a[d].on("touchstart",c)}),a._hasTracking=!0)},drawTrackerGraph:function(){var a=this,b=a.options.trackByArea,c=[].concat(b?a.areaPath:a.graphPath),d=c.length,e=a.chart,f=e.pointer,k=e.renderer,m=e.options.tooltip.snap,h=a.tracker,l,p=function(){if(e.hoverSeries!==a)a.onMouseOver()},q="rgba(192,192,192,"+(F?.0001:.002)+")";if(d&&!b)for(l=d+1;l--;)"M"===c[l]&&c.splice(l+1,0,c[l+1]-m,c[l+2],"L"),(l&&"M"===c[l]||l===d)&&c.splice(l,0,"L",c[l-2]+m,c[l-1]);h?h.attr({d:c}):a.graph&&(a.tracker=k.path(c).attr({"stroke-linejoin":"round",
visibility:a.visible?"visible":"hidden",stroke:q,fill:b?q:"none","stroke-width":a.graph.strokeWidth()+(b?0:2*m),zIndex:2}).add(a.group),g([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(a){f.onTrackerMouseOut(a)});if(n)a.on("touchstart",p)}))}};k.column&&(k.column.prototype.drawTracker=H.drawTrackerPoint);k.pie&&(k.pie.prototype.drawTracker=H.drawTrackerPoint);k.scatter&&(k.scatter.prototype.drawTracker=H.drawTrackerPoint);p(x.prototype,
{setItemEvents:function(a,b,c){var d=this.chart.renderer.boxWrapper,e="highcharts-legend-"+(a.series?"point":"series")+"-active";(c?b:a.legendGroup).on("mouseover",function(){a.setState("hover");d.addClass(e)}).on("mouseout",function(){d.removeClass(e);a.setState()}).on("click",function(b){var c=function(){a.setVisible&&a.setVisible()};b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):m(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=E("input",{type:"checkbox",
checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);y(a.checkbox,"click",function(b){m(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});p(C.prototype,{showResetZoom:function(){var a=this,b=q.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,f="chart"===c.relativeTo?null:"plotBox";this.resetZoomButton=a.renderer.button(b.resetZoom,null,null,function(){a.zoomOut()},d,e&&e.hover).attr({align:c.position.align,
title:b.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(c.position,!1,f)},zoomOut:function(){var a=this;m(a,"selection",{resetSelection:!0},function(){a.zoom()})},zoom:function(a){var d,e=this.pointer,f=!1,k;!a||a.resetSelection?(g(this.axes,function(a){d=a.zoom()}),e.initiated=!1):g(a.xAxis.concat(a.yAxis),function(a){var b=a.axis;e[b.isXAxis?"zoomX":"zoomY"]&&(d=b.zoom(a.min,a.max),b.displayBtn&&(f=!0))});k=this.resetZoomButton;f&&!k?this.showResetZoom():!f&&c(k)&&(this.resetZoomButton=
k.destroy());d&&this.redraw(b(this.options.chart.animation,a&&a.animation,100>this.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&g(d,function(a){a.setState()});g("xy"===b?[1,0]:[1],function(b){b=c[b?"xAxis":"yAxis"][0];var d=b.horiz,f=a[d?"chartX":"chartY"],d=d?"mouseDownX":"mouseDownY",h=c[d],g=(b.pointRange||0)/2,k=b.getExtremes(),l=b.toValue(h-f,!0)+g,g=b.toValue(h+b.len-f,!0)-g,m=g<l,h=m?g:l,l=m?l:g,g=Math.min(k.dataMin,b.toValue(b.toPixels(k.min)-b.minPixelPadding)),m=Math.max(k.dataMax,
b.toValue(b.toPixels(k.max)+b.minPixelPadding)),n;n=g-h;0<n&&(l+=n,h=g);n=l-m;0<n&&(l=m,h-=n);b.series.length&&h!==k.min&&l!==k.max&&(b.setExtremes(h,l,!1,!1,{trigger:"pan"}),e=!0);c[d]=f});e&&c.redraw(!1);D(c.container,{cursor:"move"})}});p(u.prototype,{select:function(a,c){var d=this,e=d.series,k=e.chart;a=b(a,!d.selected);d.firePointEvent(a?"select":"unselect",{accumulate:c},function(){d.selected=d.options.selected=a;e.options.data[f(d,e.data)]=d.options;d.setState(a&&"select");c||g(k.getSelectedPoints(),
function(a){a.selected&&a!==d&&(a.selected=a.options.selected=!1,e.options.data[f(a,e.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},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");g(a.hoverPoints||[],function(a){a.setState()});a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var b=
this,c=e(b.series.options.point,b.options).events;b.events=c;a.objectEach(c,function(a,c){y(b,c,a)});this.hasImportedEvents=!0}},setState:function(a,c){var e=Math.floor(this.plotX),f=this.plotY,g=this.series,k=g.options.states[a]||{},l=d[g.type].marker&&g.options.marker,m=l&&!1===l.enabled,h=l&&l.states&&l.states[a]||{},n=!1===h.enabled,p=g.stateMarkerGraphic,q=this.marker||{},u=g.chart,x=g.halo,y,B=l&&g.markerAttribs;a=a||"";if(!(a===this.state&&!c||this.selected&&"select"!==a||!1===k.enabled||a&&
(n||m&&!1===h.enabled)||a&&q.states&&q.states[a]&&!1===q.states[a].enabled)){B&&(y=g.markerAttribs(this,a));if(this.graphic)this.state&&this.graphic.removeClass("highcharts-point-"+this.state),a&&this.graphic.addClass("highcharts-point-"+a),y&&this.graphic.animate(y,b(u.options.chart.animation,h.animation,l.animation)),p&&p.hide();else{if(a&&h)if(l=q.symbol||g.symbol,p&&p.currentSymbol!==l&&(p=p.destroy()),p)p[c?"animate":"attr"]({x:y.x,y:y.y});else l&&(g.stateMarkerGraphic=p=u.renderer.symbol(l,
y.x,y.y,y.width,y.height).add(g.markerGroup),p.currentSymbol=l);p&&(p[a&&u.isInsidePlot(e,f,u.inverted)?"show":"hide"](),p.element.point=this)}(e=k.halo)&&e.size?(x||(g.halo=x=u.renderer.path().add((this.graphic||p).parentGroup)),x[c?"animate":"attr"]({d:this.haloPath(e.size)}),x.attr({"class":"highcharts-halo highcharts-color-"+b(this.colorIndex,g.colorIndex)}),x.point=this):x&&x.point&&x.point.haloPath&&x.animate({d:x.point.haloPath(0)});this.state=a}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-
a,this.plotY-a,2*a,2*a)}});p(l.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&m(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;b.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&m(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();this.setState()},setState:function(a){var b=this;
a=a||"";b.state!==a&&(g([b.group,b.markerGroup,b.dataLabelsGroup],function(c){c&&(b.state&&c.removeClass("highcharts-series-"+b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a)},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,f,k=d.options.chart.ignoreHiddenSeries,l=c.visible;f=(c.visible=a=c.options.visible=c.userOptions.visible=void 0===a?!l:a)?"show":"hide";g(["group","dataLabelsGroup","markerGroup","tracker","tt"],function(a){if(c[a])c[a][f]()});if(d.hoverSeries===c||(d.hoverPoint&&
d.hoverPoint.series)===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&g(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});g(c.linkedSeries,function(b){b.setVisible(a,!1)});k&&(d.isDirtyBox=!0);!1!==b&&d.redraw();m(c,f)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=void 0===a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);m(this,a?"select":"unselect")},drawTracker:H.drawTrackerGraph})})(L);
(function(a){var y=a.Chart,C=a.each,E=a.inArray,D=a.isArray,q=a.isObject,d=a.pick,g=a.splat;y.prototype.setResponsive=function(d){var g=this.options.responsive,n=[],f=this.currentResponsive;g&&g.rules&&C(g.rules,function(c){void 0===c._id&&(c._id=a.uniqueKey());this.matchResponsiveRule(c,n,d)},this);var c=a.merge.apply(0,a.map(n,function(c){return a.find(g.rules,function(a){return a._id===c}).chartOptions})),n=n.toString()||void 0;n!==(f&&f.ruleIds)&&(f&&this.update(f.undoOptions,d),n?(this.currentResponsive=
{ruleIds:n,mergedOptions:c,undoOptions:this.currentOptions(c)},this.update(c,d)):this.currentResponsive=void 0)};y.prototype.matchResponsiveRule=function(a,g){var m=a.condition;(m.callback||function(){return this.chartWidth<=d(m.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=d(m.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=d(m.minWidth,0)&&this.chartHeight>=d(m.minHeight,0)}).call(this)&&g.push(a._id)};y.prototype.currentOptions=function(d){function m(d,c,n,e){var b;a.objectEach(d,function(a,f){if(!e&&
-1<E(f,["series","xAxis","yAxis"]))for(d[f]=g(d[f]),n[f]=[],b=0;b<d[f].length;b++)c[f][b]&&(n[f][b]={},m(a[b],c[f][b],n[f][b],e+1));else q(a)?(n[f]=D(a)?[]:{},m(a,c[f]||{},n[f],e+1)):n[f]=c[f]||null})}var n={};m(d,this.options,n,0);return n}})(L);return L});
