/* Highcharts JS v8.0.2 (2020-03-03) (c) 2009-2018 Torstein Honsi License: www.highcharts.com/license */ (function(aa,R){"object"===typeof module&&module.exports?(R["default"]=R,module.exports=aa.document?R(aa):R):"function"===typeof define&&define.amd?define("highcharts/highcharts",function(){return R(aa)}):(aa.Highcharts&&aa.Highcharts.error(16,!0),aa.Highcharts=R(aa))})("undefined"!==typeof window?window:this,function(aa){function R(e,g,X,u){e.hasOwnProperty(g)||(e[g]=u.apply(null,X))}var p={};R(p,"parts/Globals.js",[],function(){var e="undefined"!==typeof aa?aa:"undefined"!==typeof window?window: {},g=e.document,X=e.navigator&&e.navigator.userAgent||"",u=g&&g.createElementNS&&!!g.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,p=/(edge|msie|trident)/i.test(X)&&!e.opera,L=-1!==X.indexOf("Firefox"),E=-1!==X.indexOf("Chrome"),A=L&&4>parseInt(X.split("Firefox/")[1],10);return{product:"Highcharts",version:"8.0.2",deg2rad:2*Math.PI/360,doc:g,hasBidiBug:A,hasTouch:!!e.TouchEvent,isMS:p,isWebKit:-1!==X.indexOf("AppleWebKit"),isFirefox:L,isChrome:E,isSafari:!E&&-1!==X.indexOf("Safari"), isTouchDevice:/(Mobile|Android|Windows Phone)/.test(X),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:u,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}});R(p,"parts/Utilities.js",[p["parts/Globals.js"]],function(e){function g(){var b,a=arguments,q={},d=function(b,a){"object"!==typeof b&&(b={});Y(a,function(q,c){!M(q,!0)||m(q)||v(q)?b[c]=a[c]:b[c]=d(b[c]||{},q)});return b};!0===a[0]&&(q=a[1],a=Array.prototype.slice.call(a, 2));var c=a.length;for(b=0;bd)for(;c--;){var n=parseFloat(b[c]);q[c]=isNaN(n)||"A"===a[c-4]||"A"===a[c-5]?a[c]:d*parseFloat(""+(a[c]-n))+n}else q=a;this.elem.attr("d",q,null,!0)};b.prototype.update=function(){var b=this.elem,a=this.prop,q=this.now,d=this.options.step;if(this[a+"Setter"])this[a+"Setter"]();else b.attr?b.element&&b.attr(a,q,null,!0):b.style[a]=q+this.unit; d&&d.call(b,q,this)};b.prototype.run=function(b,a,q){var d=this,c=d.options,n=function(b){return n.stopped?!1:d.step(b)},x=A.requestAnimationFrame||function(b){setTimeout(b,13)},f=function(){for(var b=0;b=n+this.startTime){this.now=this.end;this.pos=1;this.update();var f=x[this.prop]=!0;Y(x,function(b){!0!==b&&(f=!1)});f&&c&&c.call(d);b=!1}else this.pos=q.easing((a-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b};b.prototype.initPath= function(b,a,q){function d(b){for(B=b.length;B--;){var a="M"===b[B]||"L"===b[B];var q=/[a-zA-Z]/.test(b[B+3]);a&&q&&b.splice(B+1,0,b[B+1],b[B+2],b[B+1],b[B+2])}}function c(b,a){for(;b.lengthb&&-Infinity=q&&(a=[1/q])));for(d=0;d=b||!c&&x<=(a[d]+(a[d+1]||a[d]))/2);d++);return n=P(n*q,-Math.round(Math.log(.001)/Math.LN10))},n=e.stableSort=function(b,a){var q=b.length,d,c;for(c=0;cq&&(q=b[a]);return q},x=e.destroyObjectProperties=function(b,a){Y(b,function(q,d){q&&q!==a&&q.destroy&&q.destroy();delete b[d]})},T=e.discardElement=function(b){var a=e.garbageBin;a||(a=t("div"));b&&a.appendChild(b);a.innerHTML=""},P=e.correctFloat=function(b,a){return parseFloat(b.toPrecision(a||14))},W=e.setAnimation= function(b,a){a.renderer.globalAnimation=u(b,a.options.chart.animation,!0)},U=e.animObject=function(b){return M(b)?g(b):{duration:b?500:0}},q=e.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},Q=e.numberFormat=function(b,a,q,d){b=+b||0;a=+a;var c=e.defaultOptions.lang,n=(b.toString().split(".")[1]||"").split("e")[0].length,x=b.toString().split("e");if(-1===a)a=Math.min(n,20);else if(!H(a))a=2;else if(a&&x[1]&&0>x[1]){var f=a+ +x[1];0<=f?(x[0]= (+x[0]).toExponential(f).split("e")[0],a=f):(x[0]=x[0].split(".")[0]||0,b=20>a?(x[0]*Math.pow(10,x[1])).toFixed(a):0,x[1]=0)}var G=(Math.abs(x[1]?x[0]:b)+Math.pow(10,-Math.max(a,n)-1)).toFixed(a);n=String(z(G));f=3b?"-":"")+(f?n.substr(0,f)+d:"");b+=n.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+d);a&&(b+=q+G.slice(-a));x[1]&&0!==+b&&(b+="e"+x[1]);return b};Math.easeInOutSine=function(b){return-.5*(Math.cos(Math.PI*b)-1)};var Z=e.getStyle= function(b,a,q){if("width"===a)return a=Math.min(b.offsetWidth,b.scrollWidth),q=b.getBoundingClientRect&&b.getBoundingClientRect().width,q=a-1&&(a=Math.floor(q)),Math.max(0,a-e.getStyle(b,"padding-left")-e.getStyle(b,"padding-right"));if("height"===a)return Math.max(0,Math.min(b.offsetHeight,b.scrollHeight)-e.getStyle(b,"padding-top")-e.getStyle(b,"padding-bottom"));A.getComputedStyle||C(27,!0);if(b=A.getComputedStyle(b,void 0))b=b.getPropertyValue(a),u(q,"opacity"!==a)&&(b=z(b));return b}, ca=e.inArray=function(b,a,q){return a.indexOf(b,q)},G=e.find=Array.prototype.find?function(b,a){return b.find(a)}:function(b,a){var q,d=b.length;for(q=0;qa?b>16,(g&65280)>>8,g&255,1]:4===u&&(A=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])}if(!A)for(C=this.parsers.length;C--&&!A;){var z=this.parsers[C]; (u=z.regex.exec(g))&&(A=z.parse(u))}}this.rgba=A||[]};e.prototype.get=function(e){var g=this.input,C=this.rgba;if("undefined"!==typeof this.stops){var E=u(g);E.stops=[].concat(E.stops);this.stops.forEach(function(g,r){E.stops[r]=[E.stops[r][0],g.get(e)]})}else E=C&&X(C[0])?"rgb"===e||!e&&1===C[3]?"rgb("+C[0]+","+C[1]+","+C[2]+")":"a"===e?C[3]:"rgba("+C.join(",")+")":g;return E};e.prototype.brighten=function(e){var g,u=this.rgba;if(this.stops)this.stops.forEach(function(g){g.brighten(e)});else if(X(e)&& 0!==e)for(g=0;3>g;g++)u[g]+=p(255*e),0>u[g]&&(u[g]=0),255q.width)q={width:0,height:0}}else q=this.htmlGetBBox();c.isSVG&&(b=q.width,c=q.height,Q&&(q.height=c={"11px,17":14,"13px,20":16}[x&&x.fontSize+","+Math.round(c)]||c),a&&(x=a*I,q.width=Math.abs(c*Math.sin(x))+Math.abs(b*Math.cos(x)), q.height=Math.abs(c*Math.cos(x))+Math.abs(b*Math.sin(x))));if(h&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},textSetter:function(b){b!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=b,this.added&&this.renderer.buildText(this))},setTextPath:function(b,a){var d=this.element,q={textAnchor:"text-anchor"},c=!1,n=this.textPathWrapper,x=!n;a=l(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},a);var f=a.attributes;if(b&&a&&a.enabled){n&&null===n.element.parentNode?(x=!0,n=n.destroy()):n&&this.removeTextOutline.call(n.parentGroup, [].slice.call(d.getElementsByTagName("tspan")));this.options&&this.options.padding&&(f.dx=-this.options.padding);n||(this.textPathWrapper=n=this.renderer.createElement("textPath"),c=!0);var k=n.element;(a=b.element.getAttribute("id"))||b.element.setAttribute("id",a=y());if(x)for(b=d.getElementsByTagName("tspan");b.length;)b[0].setAttribute("y",0),H(f.dx)&&b[0].setAttribute("x",-f.dx),k.appendChild(b[0]);c&&n.add({element:this.text?this.text.element:d});k.setAttributeNS("http://www.w3.org/1999/xlink", "href",this.renderer.url+"#"+a);z(f.dy)&&(k.parentNode.setAttribute("dy",f.dy),delete f.dy);z(f.dx)&&(k.parentNode.setAttribute("dx",f.dx),delete f.dx);h(f,function(b,a){k.setAttribute(q[a]||a,b)});d.removeAttribute("transform");this.removeTextOutline.call(n,[].slice.call(d.getElementsByTagName("tspan")));this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=B}else n&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(d, b),this.updateTransform(),this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},destroyTextPath:function(b,a){var d=b.getElementsByTagName("text")[0];if(d){if(d.removeAttribute("dx"),d.removeAttribute("dy"),a.element.setAttribute("id",""),d.getElementsByTagName("textPath").length){for(b=this.textPathWrapper.element.childNodes;b.length;)d.appendChild(b[0]);d.removeChild(this.textPathWrapper.element)}}else if(b.getAttribute("dx")||b.getAttribute("dy"))b.removeAttribute("dx"), b.removeAttribute("dy");this.textPathWrapper=this.textPathWrapper.destroy()},fillSetter:function(b,a,d){"string"===typeof b?d.setAttribute(a,b):b&&this.complexColor(b,a,d)},visibilitySetter:function(b,a,d){"inherit"===b?d.removeAttribute(a):this[a]!==b&&d.setAttribute(a,b);this[a]=b},zIndexSetter:function(b,d){var c=this.renderer,q=this.parentGroup,n=(q||c).element||c.box,x=this.element,f=!1;c=n===c.box;var k=this.added;var B;z(b)?(x.setAttribute("data-z-index",b),b=+b,this[d]===b&&(k=!1)):z(this[d])&& x.removeAttribute("data-z-index");this[d]=b;if(k){(b=this.zIndex)&&q&&(q.handleZ=!0);d=n.childNodes;for(B=d.length-1;0<=B&&!f;B--){q=d[B];k=q.getAttribute("data-z-index");var l=!z(k);if(q!==x)if(0>b&&l&&!c&&!B)n.insertBefore(x,d[B]),f=!0;else if(a(k)<=b||l&&(!z(b)||0<=b))n.insertBefore(x,d[B+1]||null),f=!0}f||(n.insertBefore(x,d[c?3:0]||null),f=!0)}return f},_defaultSetter:function(b,a,d){d.setAttribute(a,b)}});U.prototype.yGetter=U.prototype.xGetter;U.prototype.translateXSetter=U.prototype.translateYSetter= U.prototype.rotationSetter=U.prototype.verticalAlignSetter=U.prototype.rotationOriginXSetter=U.prototype.rotationOriginYSetter=U.prototype.scaleXSetter=U.prototype.scaleYSetter=U.prototype.matrixSetter=function(b,a){this[a]=b;this.doTransform=!0};U.prototype["stroke-widthSetter"]=U.prototype.strokeSetter=function(b,a,d){this[a]=b;this.stroke&&this["stroke-width"]?(U.prototype.fillSetter.call(this,this.stroke,"stroke",d),d.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"=== a&&0===b&&this.hasStroke?(d.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(d.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};g=e.SVGRenderer=function(){this.init.apply(this,arguments)};M(g.prototype,{Element:U,SVG_NS:T,init:function(a,d,c,n,x,f,k){var q=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});k||q.css(this.getStyle(n));n=q.element;a.appendChild(n);A(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&& A(n,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=n;this.boxWrapper=q;this.alignedObjects=[];this.url=(N||b)&&S.getElementsByTagName("base").length?W.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(S.createTextNode("Created with Highcharts 8.0.2"));this.defs=this.createElement("defs").add();this.allowHTML=f;this.forExport=x;this.styledMode=k;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount= 0;this.setSize(d,c,!1);var B;N&&a.getBoundingClientRect&&(d=function(){J(a,{left:0,top:0});B=a.getBoundingClientRect();J(a,{left:Math.ceil(B.left)-B.left+"px",top:Math.ceil(B.top)-B.top+"px"})},d(),this.unSubPixelFix=K(W,"resize",d))},definition:function(b){function a(b,c){var n;t(b).forEach(function(b){var q=d.createElement(b.tagName),x={};h(b,function(b,a){"tagName"!==a&&"children"!==a&&"textContent"!==a&&(x[a]=b)});q.attr(x);q.add(c||d.defs);b.textContent&&q.element.appendChild(S.createTextNode(b.textContent)); a(b.children||[],q);n=q});return n}var d=this;return a(b)},getStyle:function(b){return this.style=M({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},b)},setStyle:function(b){this.boxWrapper.css(this.getStyle(b))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();r(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());this.unSubPixelFix&& this.unSubPixelFix();return this.alignedObjects=null},createElement:function(b){var a=new this.Element;a.init(this,b);return a},draw:B,getRadialAttr:function(b,a){return{cx:b[0]-b[2]/2+a.cx*b[2],cy:b[1]-b[2]/2+a.cy*b[2],r:a.r*b[2]}},truncate:function(b,a,d,c,n,x,f){var q=this,k=b.rotation,B,l=c?1:0,G=(d||c).length,h=G,y=[],t=function(b){a.firstChild&&a.removeChild(a.firstChild);b&&a.appendChild(S.createTextNode(b))},w=function(x,k){k=k||x;if("undefined"===typeof y[k])if(a.getSubStringLength)try{y[k]= n+a.getSubStringLength(0,c?k+1:k)}catch(la){""}else q.getSpanWidth&&(t(f(d||c,x)),y[k]=n+q.getSpanWidth(b,a));return y[k]},P;b.rotation=0;var Q=w(a.textContent.length);if(P=n+Q>x){for(;l<=G;)h=Math.ceil((l+G)/2),c&&(B=f(c,h)),Q=w(h,B&&B.length-1),l===G?l=G+1:Q>x?G=h-1:l=h;0===G?t(""):d&&G===d.length-1||t(B||f(d||c,h))}c&&c.splice(0,h);b.actualWidth=Q;b.rotation=k;return P},escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},buildText:function(b){var c=b.element,n=this,q=n.forExport, f=d(b.textStr,"").toString(),k=-1!==f.indexOf("<"),B=c.childNodes,l,y=A(c,"x"),t=b.styles,w=b.textWidth,P=t&&t.lineHeight,m=t&&t.textOutline,v=t&&"ellipsis"===t.textOverflow,e=t&&"nowrap"===t.whiteSpace,F=t&&t.fontSize,W,I=B.length;t=w&&!b.added&&this.box;var H=function(b){var d;n.styledMode||(d=/(px|em)$/.test(b&&b.style.fontSize)?b.style.fontSize:F||n.style.fontSize||12);return P?a(P):n.fontMetrics(d,b.getAttribute("style")?b:c).h},r=function(b,a){h(n.escapes,function(d,c){a&&-1!==a.indexOf(d)|| (b=b.toString().replace(new RegExp(d,"g"),c))});return b},U=function(b,a){var d=b.indexOf("<");b=b.substring(d,b.indexOf(">")-d);d=b.indexOf(a+"=");if(-1!==d&&(d=d+a.length+1,a=b.charAt(d),'"'===a||"'"===a))return b=b.substring(d+1),b.substring(0,b.indexOf(a))},g=//g;var N=[f,v,e,P,m,F,w].join();if(N!==b.textCache){for(b.textCache=N;I--;)c.removeChild(B[I]);k||m||v||w||-1!==f.indexOf(" ")&&(!e||g.test(f))?(t&&t.appendChild(c),k?(f=n.styledMode?f.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g, ''):f.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,''),f=f.replace(//g,"").split(g)):f=[f],f=f.filter(function(b){return""!==b}),f.forEach(function(a,d){var f=0,k=0;a=a.replace(/^\s+|\s+$/g,"").replace(//g,"|||");var B=a.split("|||");B.forEach(function(a){if(""!==a||1===B.length){var G={},h=S.createElementNS(n.SVG_NS, "tspan"),t,P;(t=U(a,"class"))&&A(h,"class",t);if(t=U(a,"style"))t=t.replace(/(;| |^)color([ :])/,"$1fill$2"),A(h,"style",t);(P=U(a,"href"))&&!q&&(A(h,"onclick",'location.href="'+P+'"'),A(h,"class","highcharts-anchor"),n.styledMode||J(h,{cursor:"pointer"}));a=r(a.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" ");if(" "!==a){h.appendChild(S.createTextNode(a));f?G.dx=0:d&&null!==y&&(G.x=y);A(h,G);c.appendChild(h);!f&&W&&(!x&&q&&J(h,{display:"block"}),A(h,"dy",H(h)));if(w){var Q=a.replace(/([^\^])-/g,"$1- ").split(" "); G=!e&&(1Math.abs(x.end-x.start-2*Math.PI));var l=Math.cos(f),h=Math.sin(f),y=Math.cos(B);B=Math.sin(B);f=d(x.longArc,.001>x.end-f-Math.PI?0:1);q=["M",b+q*l,a+k*h,"A",q,k, 0,f,d(x.clockwise,1),b+q*y,a+k*B];z(c)&&q.push(n?"M":"L",b+c*y,a+c*B,"A",c,c,0,f,z(x.clockwise)?1-x.clockwise:0,b+c*l,a+c*h);q.push(n?"":"Z");return q},callout:function(b,a,d,c,n){var x=Math.min(n&&n.r||0,d,c),f=x+6,k=n&&n.anchorX;n=n&&n.anchorY;var B=["M",b+x,a,"L",b+d-x,a,"C",b+d,a,b+d,a,b+d,a+x,"L",b+d,a+c-x,"C",b+d,a+c,b+d,a+c,b+d-x,a+c,"L",b+x,a+c,"C",b,a+c,b,a+c,b,a+c-x,"L",b,a+x,"C",b,a,b,a,b+x,a];k&&k>d?n>a+f&&nk?n>a+f&&nc&&k>b+f&&kn&&k>b+f&&kb?b+3:Math.round(1.2*b);return{h:d,b:Math.round(.8*d),f:b}},rotCorr:function(b,a,d){var c=b;a&&d&&(c=Math.max(c*Math.cos(a*I),4));return{x:-b/3*Math.sin(a*I),y:c}},label:function(b,a,d,c,n,x,f,B,h){var q=this,y=q.styledMode,t=q.g("button"!==h&&"label"),w=t.text=q.text("",0,0,f).attr({zIndex:1}),G,P,m=0,T=3,v=0,e,F,W,V,I,Q={},r,g,N=/^url\((.*?)\)$/.test(c),S=y||N,D=function(){return y?G.strokeWidth()%2/2:(r?parseInt(r,10):0)%2/2};h&&t.addClass("highcharts-"+ h);var O=function(){var b=w.element.style,a={};P=("undefined"===typeof e||"undefined"===typeof F||I)&&z(w.textStr)&&w.getBBox();t.width=(e||P.width||0)+2*T+v;t.height=(F||P.height||0)+2*T;g=T+Math.min(q.fontMetrics(b&&b.fontSize,w).b,P?P.height:Infinity);S&&(G||(t.box=G=q.symbols[c]||N?q.symbol(c):q.rect(),G.addClass(("button"===h?"":"highcharts-label-box")+(h?" highcharts-"+h+"-box":"")),G.add(t),b=D(),a.x=b,a.y=(B?-g:0)+b),a.width=Math.round(t.width),a.height=Math.round(t.height),G.attr(M(a,Q)), Q={})};var ba=function(){var b=v+T;var a=B?0:g;z(e)&&P&&("center"===I||"right"===I)&&(b+={center:.5,right:1}[I]*(e-P.width));if(b!==w.x||a!==w.y)w.attr("x",b),w.hasBoxWidthChanged&&(P=w.getBBox(!0),O()),"undefined"!==typeof a&&w.attr("y",a);w.x=b;w.y=a};var Y=function(b,a){G?G.attr(b,a):Q[b]=a};t.onAdd=function(){w.add(t);t.attr({text:b||0===b?b:"",x:a,y:d});G&&z(n)&&t.attr({anchorX:n,anchorY:x})};t.widthSetter=function(b){e=H(b)?b:null};t.heightSetter=function(b){F=b};t["text-alignSetter"]=function(b){I= b};t.paddingSetter=function(b){z(b)&&b!==T&&(T=t.padding=b,ba())};t.paddingLeftSetter=function(b){z(b)&&b!==v&&(v=b,ba())};t.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==m&&(m=b,P&&t.attr({x:W}))};t.textSetter=function(b){"undefined"!==typeof b&&w.attr({text:b});O();ba()};t["stroke-widthSetter"]=function(b,a){b&&(S=!0);r=this["stroke-width"]=b;Y(a,b)};y?t.rSetter=function(b,a){Y(a,b)}:t.strokeSetter=t.fillSetter=t.rSetter=function(b,a){"r"!==a&&("fill"===a&&b&&(S=!0),t[a]=b);Y(a,b)}; t.anchorXSetter=function(b,a){n=t.anchorX=b;Y(a,Math.round(b)-D()-W)};t.anchorYSetter=function(b,a){x=t.anchorY=b;Y(a,b-V)};t.xSetter=function(b){t.x=b;m&&(b-=m*((e||P.width)+2*T),t["forceAnimate:x"]=!0);W=Math.round(b);t.attr("translateX",W)};t.ySetter=function(b){V=t.y=Math.round(b);t.attr("translateY",V)};var u=t.css;f={css:function(b){if(b){var a={};b=l(b);t.textProps.forEach(function(d){"undefined"!==typeof b[d]&&(a[d]=b[d],delete b[d])});w.css(a);"width"in a&&O();"fontSize"in a&&(O(),ba())}return u.call(t, b)},getBBox:function(){return{width:P.width+2*T,height:P.height+2*T,x:P.x-T,y:P.y-T}},destroy:function(){k(t.element,"mouseenter");k(t.element,"mouseleave");w&&(w=w.destroy());G&&(G=G.destroy());U.prototype.destroy.call(t);t=q=O=ba=Y=null}};y||(f.shadow=function(b){b&&(O(),G&&G.shadow(b));return t});return M(t,f)}});e.Renderer=g});R(p,"parts/Html.js",[p["parts/Globals.js"],p["parts/Utilities.js"]],function(e,g){var p=g.attr,u=g.createElement,K=g.css,L=g.defined,E=g.extend,A=g.pick,C=g.pInt,J=e.isFirefox, z=e.isMS,r=e.isWebKit,D=e.SVGElement;g=e.SVGRenderer;var M=e.win;E(D.prototype,{htmlCss:function(v){var m="SPAN"===this.element.tagName&&v&&"width"in v,e=A(m&&v.width,void 0);if(m){delete v.width;this.textWidth=e;var f=!0}v&&"ellipsis"===v.textOverflow&&(v.whiteSpace="nowrap",v.overflow="hidden");this.styles=E(this.styles,v);K(this.element,v);f&&this.htmlUpdateTransform();return this},htmlGetBBox:function(){var e=this.element;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}, htmlUpdateTransform:function(){if(this.added){var e=this.renderer,m=this.element,H=this.translateX||0,f=this.translateY||0,c=this.x||0,l=this.y||0,h=this.textAlign||"left",d={left:0,center:.5,right:1}[h],a=this.styles,k=a&&a.whiteSpace;K(m,{marginLeft:H,marginTop:f});!e.styledMode&&this.shadows&&this.shadows.forEach(function(a){K(a,{marginLeft:H+1,marginTop:f+1})});this.inverted&&[].forEach.call(m.childNodes,function(a){e.invertChild(a,m)});if("SPAN"===m.tagName){a=this.rotation;var t=this.textWidth&& C(this.textWidth),w=[a,h,m.innerHTML,this.textWidth,this.textAlign].join(),y;(y=t!==this.oldTextWidth)&&!(y=t>this.oldTextWidth)&&((y=this.textPxLength)||(K(m,{width:"",whiteSpace:k||"nowrap"}),y=m.offsetWidth),y=y>t);y&&(/[ \-]/.test(m.textContent||m.innerText)||"ellipsis"===m.style.textOverflow)?(K(m,{width:t+"px",display:"block",whiteSpace:k||"normal"}),this.oldTextWidth=t,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;w!==this.cTT&&(k=e.fontMetrics(m.style.fontSize,m).b,!L(a)||a===(this.oldRotation|| 0)&&h===this.oldAlign||this.setSpanRotation(a,d,k),this.getSpanCorrection(!L(a)&&this.textPxLength||m.offsetWidth,k,d,a,h));K(m,{left:c+(this.xCorr||0)+"px",top:l+(this.yCorr||0)+"px"});this.cTT=w;this.oldRotation=a;this.oldAlign=h}}else this.alignOnAdd=!0},setSpanRotation:function(e,m,H){var f={},c=this.renderer.getTransformKey();f[c]=f.transform="rotate("+e+"deg)";f[c+(J?"Origin":"-origin")]=f.transformOrigin=100*m+"% "+H+"px";K(this.element,f)},getSpanCorrection:function(e,m,H){this.xCorr=-e*H; this.yCorr=-m}});E(g.prototype,{getTransformKey:function(){return z&&!/Edge/.test(M.navigator.userAgent)?"-ms-transform":r?"-webkit-transform":J?"MozTransform":M.opera?"-o-transform":""},html:function(e,m,H){var f=this.createElement("span"),c=f.element,l=f.renderer,h=l.isSVG,d=function(a,d){["opacity","visibility"].forEach(function(c){a[c+"Setter"]=function(f,k,t){var l=a.div?a.div.style:d;D.prototype[c+"Setter"].call(this,f,k,t);l&&(l[k]=f)}});a.addedSetters=!0};f.textSetter=function(a){a!==c.innerHTML&& (delete this.bBox,delete this.oldTextWidth);this.textStr=a;c.innerHTML=A(a,"");f.doTransform=!0};h&&d(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,d){"align"===d&&(d="textAlign");f[d]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:e,x:Math.round(m),y:Math.round(H)}).css({position:"absolute"});l.styledMode||f.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});c.style.whiteSpace= "nowrap";f.css=f.htmlCss;h&&(f.add=function(a){var k=l.box.parentNode,t=[];if(this.parentGroup=a){var h=a.div;if(!h){for(;a;)t.push(a),a=a.parentGroup;t.reverse().forEach(function(a){function c(d,c){a[c]=d;"translateX"===c?y.left=d+"px":y.top=d+"px";a.doTransform=!0}var l=p(a.element,"class");h=a.div=a.div||u("div",l?{className:l}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},h|| k);var y=h.style;E(a,{classSetter:function(a){return function(d){this.element.setAttribute("class",d);a.className=d}}(h),on:function(){t[0].div&&f.on.apply({element:t[0].div},arguments);return a},translateXSetter:c,translateYSetter:c});a.addedSetters||d(a)})}}else h=k;h.appendChild(c);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})});R(p,"parts/Tick.js",[p["parts/Globals.js"],p["parts/Utilities.js"]],function(e,g){var p=g.clamp,u=g.correctFloat,K=g.defined,L=g.destroyObjectProperties, E=g.extend,A=g.isNumber,C=g.merge,J=g.objectEach,z=g.pick,r=e.fireEvent,D=e.deg2rad;g=function(){function g(e,m,H,f,c){this.isNewLabel=this.isNew=!0;this.axis=e;this.pos=m;this.type=H||"";this.parameters=c||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;H||f||this.addLabel()}g.prototype.addLabel=function(){var e=this,m=e.axis,H=m.options,f=m.chart,c=m.categories,l=m.names,h=e.pos,d=z(e.options&&e.options.labels,H.labels),a=m.tickPositions,k=h===a[0],t=h=== a[a.length-1];l=this.parameters.category||(c?z(c[h],l[h],h):h);var w=e.label;c=(!d.step||1===d.step)&&1===m.tickInterval;a=a.info;var y,F;if(m.isDatetimeAxis&&a){var I=f.time.resolveDTLFormat(H.dateTimeLabelFormats[!H.grid&&a.higherRanks[h]||a.unitName]);var g=I.main}e.isFirst=k;e.isLast=t;e.formatCtx={axis:m,chart:f,isFirst:k,isLast:t,dateTimeLabelFormat:g,tickPositionInfo:a,value:m.isLog?u(m.lin2log(l)):l,pos:h};H=m.labelFormatter.call(e.formatCtx,this.formatCtx);if(F=I&&I.list)e.shortenLabel=function(){for(y= 0;ya&&f-k*tl&&(g=Math.round((c-f)/Math.cos(a*D)));else if(c=f+(1-k)*t,f-k*tl&&(y=l- e.x+y*k,F=-1),y=Math.min(w,y),yy||m.autoRotation&&(d.styles||{}).width)g=y;g&&(this.shortenLabel?this.shortenLabel():(r.width=Math.floor(g),(v.style||{}).textOverflow||(r.textOverflow="ellipsis"),d.css(r)))};g.prototype.moveLabel=function(e,m){var v=this,f=v.label,c=!1,l=v.axis,h=l.reversed,d=l.chart.inverted;f&&f.textStr===e?(v.movedLabel=f,c=!0,delete v.label):J(l.ticks,function(a){c||a.isNew||a===v||!a.label||a.label.textStr!==e|| (v.movedLabel=a.label,c=!0,a.labelPos=v.movedLabel.xy,delete a.label)});if(!c&&(v.labelPos||f)){var a=v.labelPos||f.xy;f=d?a.x:h?0:l.width+l.left;l=d?h?l.width+l.left:0:a.y;v.movedLabel=v.createLabel({x:f,y:l},e,m);v.movedLabel&&v.movedLabel.attr({opacity:0})}};g.prototype.render=function(v,m,g){var f=this.axis,c=f.horiz,l=this.pos,h=z(this.tickmarkOffset,f.tickmarkOffset);l=this.getPosition(c,l,h,m);h=l.x;var d=l.y;f=c&&h===f.pos+f.len||!c&&d===f.pos?-1:1;g=z(g,1);this.isActive=!0;this.renderGridLine(m, g,f);this.renderMark(l,g,f);this.renderLabel(l,m,g,v);this.isNew=!1;e.fireEvent(this,"afterRender")};g.prototype.renderGridLine=function(e,m,g){var f=this.axis,c=f.options,l=this.gridLine,h={},d=this.pos,a=this.type,k=z(this.tickmarkOffset,f.tickmarkOffset),t=f.chart.renderer,w=a?a+"Grid":"grid",y=c[w+"LineWidth"],F=c[w+"LineColor"];c=c[w+"LineDashStyle"];l||(f.chart.styledMode||(h.stroke=F,h["stroke-width"]=y,c&&(h.dashstyle=c)),a||(h.zIndex=1),e&&(m=0),this.gridLine=l=t.path().attr(h).addClass("highcharts-"+ (a?a+"-":"")+"grid-line").add(f.gridGroup));if(l&&(g=f.getPlotLinePath({value:d+k,lineWidth:l.strokeWidth()*g,force:"pass",old:e})))l[e||this.isNew?"attr":"animate"]({d:g,opacity:m})};g.prototype.renderMark=function(e,m,g){var f=this.axis,c=f.options,l=f.chart.renderer,h=this.type,d=h?h+"Tick":"tick",a=f.tickSize(d),k=this.mark,t=!k,w=e.x;e=e.y;var y=z(c[d+"Width"],!h&&f.isXAxis?1:0);c=c[d+"Color"];a&&(f.opposite&&(a[0]=-a[0]),t&&(this.mark=k=l.path().addClass("highcharts-"+(h?h+"-":"")+"tick").add(f.axisGroup), f.chart.styledMode||k.attr({stroke:c,"stroke-width":y})),k[t?"attr":"animate"]({d:this.getMarkPath(w,e,a[0],k.strokeWidth()*g,f.horiz,l),opacity:m}))};g.prototype.renderLabel=function(e,m,g,f){var c=this.axis,l=c.horiz,h=c.options,d=this.label,a=h.labels,k=a.step;c=z(this.tickmarkOffset,c.tickmarkOffset);var t=!0,w=e.x;e=e.y;d&&A(w)&&(d.xy=e=this.getLabelPosition(w,e,d,l,a,c,f,k),this.isFirst&&!this.isLast&&!z(h.showFirstLabel,1)||this.isLast&&!this.isFirst&&!z(h.showLastLabel,1)?t=!1:!l||a.step|| a.rotation||m||0===g||this.handleOverflow(e),k&&f%k&&(t=!1),t&&A(e.y)?(e.opacity=g,d[this.isNewLabel?"attr":"animate"](e),this.isNewLabel=!1):(d.attr("y",-9999),this.isNewLabel=!0))};g.prototype.replaceMovedLabel=function(){var e=this.label,m=this.axis,g=m.reversed,f=this.axis.chart.inverted;if(e&&!this.isNew){var c=f?e.xy.x:g?m.left:m.width+m.left;g=f?g?m.width+m.top:m.top:e.xy.y;e.animate({x:c,y:g,opacity:0},void 0,e.destroy);delete this.label}m.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel}; return g}();e.Tick=g;return e.Tick});R(p,"parts/Time.js",[p["parts/Globals.js"],p["parts/Utilities.js"]],function(e,g){var p=g.defined,u=g.error,K=g.extend,L=g.isObject,E=g.merge,A=g.objectEach,C=g.pad,J=g.pick,z=g.splat,r=g.timeUnits,D=e.win;g=function(){function g(e){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=D.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(e)}g.prototype.get=function(e,m){if(this.variableTimezone||this.timezoneOffset){var g=m.getTime(), f=g-this.getTimezoneOffset(m);m.setTime(f);e=m["getUTC"+e]();m.setTime(g);return e}return this.useUTC?m["getUTC"+e]():m["get"+e]()};g.prototype.set=function(e,m,g){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===e||"Seconds"===e||"Minutes"===e)return m["setUTC"+e](g);var f=this.getTimezoneOffset(m);f=m.getTime()-f;m.setTime(f);m["setUTC"+e](g);e=this.getTimezoneOffset(m);f=m.getTime()+e;return m.setTime(f)}return this.useUTC?m["setUTC"+e](g):m["set"+e](g)};g.prototype.update=function(e){var m= J(e&&e.useUTC,!0);this.options=e=E(!0,this.options||{},e);this.Date=e.Date||D.Date||Date;this.timezoneOffset=(this.useUTC=m)&&e.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=!(m&&!e.getTimezoneOffset&&!e.timezone)};g.prototype.makeTime=function(g,m,r,f,c,l){if(this.useUTC){var h=this.Date.UTC.apply(0,arguments);var d=this.getTimezoneOffset(h);h+=d;var a=this.getTimezoneOffset(h);d!==a?h+=a-d:d-36E5!==this.getTimezoneOffset(h-36E5)||e.isSafari||(h-=36E5)}else h= (new this.Date(g,m,J(r,1),J(f,0),J(c,0),J(l,0))).getTime();return h};g.prototype.timezoneOffsetFunction=function(){var e=this,m=this.options,g=D.moment;if(!this.useUTC)return function(f){return 6E4*(new Date(f.toString())).getTimezoneOffset()};if(m.timezone){if(g)return function(f){return 6E4*-g.tz(f,m.timezone).utcOffset()};u(25)}return this.useUTC&&m.getTimezoneOffset?function(f){return 6E4*m.getTimezoneOffset(f)}:function(){return 6E4*(e.timezoneOffset||0)}};g.prototype.dateFormat=function(g,m, r){var f;if(!p(m)||isNaN(m))return(null===(f=e.defaultOptions.lang)||void 0===f?void 0:f.invalidDate)||"";g=J(g,"%Y-%m-%d %H:%M:%S");var c=this;f=new this.Date(m);var l=this.get("Hours",f),h=this.get("Day",f),d=this.get("Date",f),a=this.get("Month",f),k=this.get("FullYear",f),t=e.defaultOptions.lang,w=null===t||void 0===t?void 0:t.weekdays,y=null===t||void 0===t?void 0:t.shortWeekdays;f=K({a:y?y[h]:w[h].substr(0,3),A:w[h],d:C(d),e:C(d,2," "),w:h,b:t.shortMonths[a],B:t.months[a],m:C(a+1),o:a+1,y:k.toString().substr(2, 2),Y:k,H:C(l),k:l,I:C(l%12||12),l:l%12||12,M:C(this.get("Minutes",f)),p:12>l?"AM":"PM",P:12>l?"am":"pm",S:C(f.getSeconds()),L:C(Math.floor(m%1E3),3)},e.dateFormats);A(f,function(a,d){for(;-1!==g.indexOf("%"+d);)g=g.replace("%"+d,"function"===typeof a?a.call(c,m):a)});return r?g.substr(0,1).toUpperCase()+g.substr(1):g};g.prototype.resolveDTLFormat=function(e){return L(e,!0)?e:(e=z(e),{main:e[0],from:e[1],to:e[2]})};g.prototype.getTimeTicks=function(e,m,g,f){var c=this,l=[],h={};var d=new c.Date(m); var a=e.unitRange,k=e.count||1,t;f=J(f,1);if(p(m)){c.set("Milliseconds",d,a>=r.second?0:k*Math.floor(c.get("Milliseconds",d)/k));a>=r.second&&c.set("Seconds",d,a>=r.minute?0:k*Math.floor(c.get("Seconds",d)/k));a>=r.minute&&c.set("Minutes",d,a>=r.hour?0:k*Math.floor(c.get("Minutes",d)/k));a>=r.hour&&c.set("Hours",d,a>=r.day?0:k*Math.floor(c.get("Hours",d)/k));a>=r.day&&c.set("Date",d,a>=r.month?1:Math.max(1,k*Math.floor(c.get("Date",d)/k)));if(a>=r.month){c.set("Month",d,a>=r.year?0:k*Math.floor(c.get("Month", d)/k));var w=c.get("FullYear",d)}a>=r.year&&c.set("FullYear",d,w-w%k);a===r.week&&(w=c.get("Day",d),c.set("Date",d,c.get("Date",d)-w+f+(w4*r.month||c.getTimezoneOffset(m)!==c.getTimezoneOffset(g));m=d.getTime();for(d=1;ml.length&&l.forEach(function(a){0===a%18E5&&"000000000"===c.dateFormat("%H%M%S%L",a)&&(h[a]="day")})}l.info=K(e,{higherRanks:h,totalRange:a*k});return l};g.defaultOptions={Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0};return g}();e.Time=g;return e.Time});R(p,"parts/Options.js",[p["parts/Globals.js"],p["parts/Time.js"],p["parts/Color.js"],p["parts/Utilities.js"]],function(e,g,p,u){p=p.parse; var K=u.merge;e.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""), resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:g.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44}, caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"}, shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:e.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:e.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:p("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits", position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};e.setOptions=function(g){e.defaultOptions=K(!0,e.defaultOptions,g);(g.time||g.global)&&e.time.update(K(e.defaultOptions.global,e.defaultOptions.time,g.global,g.time));return e.defaultOptions};e.getOptions=function(){return e.defaultOptions};e.defaultPlotOptions=e.defaultOptions.plotOptions;e.time=new g(K(e.defaultOptions.global,e.defaultOptions.time));e.dateFormat= function(g,u,A){return e.time.dateFormat(g,u,A)};""});R(p,"parts/Axis.js",[p["parts/Globals.js"],p["parts/Color.js"],p["parts/Tick.js"],p["parts/Utilities.js"]],function(e,g,p,u){var K=g.parse,L=u.addEvent,E=u.animObject,A=u.arrayMax,C=u.arrayMin,J=u.clamp,z=u.correctFloat,r=u.defined,D=u.destroyObjectProperties,M=u.error,v=u.extend,m=u.fireEvent,H=u.format,f=u.getMagnitude,c=u.isArray,l=u.isFunction,h=u.isNumber,d=u.isString,a=u.merge,k=u.normalizeTickInterval,t=u.objectEach,w=u.pick,y=u.relativeLength, F=u.removeEvent,I=u.splat,S=u.syncTimeout,O=e.defaultOptions,N=e.deg2rad;g=function(){this.init.apply(this,arguments)};v(g.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01, minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0, labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45], x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(a,b){var d=b.isX,c=this;c.chart=a;c.horiz=a.inverted&&!c.isZAxis?!d:d;c.isXAxis=d;c.coll=c.coll||(d?"xAxis":"yAxis");m(this,"init",{userOptions:b});c.opposite=b.opposite;c.side=b.side||(c.horiz?c.opposite?0:2:c.opposite?1:3);c.setOptions(b);var n=this.options,f=n.type;c.labelFormatter=n.labels.formatter||c.defaultLabelFormatter;c.userOptions=b;c.minPixelPadding=0;c.reversed= n.reversed;c.visible=!1!==n.visible;c.zoomEnabled=!1!==n.zoomEnabled;c.hasNames="category"===f||!0===n.categories;c.categories=n.categories||c.hasNames;c.names||(c.names=[],c.names.keys={});c.plotLinesAndBandsGroups={};c.isLog="logarithmic"===f;c.isDatetimeAxis="datetime"===f;c.positiveValuesOnly=c.isLog&&!c.allowNegativeLog;c.isLinked=r(n.linkedTo);c.ticks={};c.labelEdge=[];c.minorTicks={};c.plotLinesAndBands=[];c.alternateBands={};c.len=0;c.minRange=c.userMinRange=n.minRange||n.maxZoom;c.range= n.range;c.offset=n.offset||0;c.stacks={};c.oldStacks={};c.stacksTouched=0;c.max=null;c.min=null;c.crosshair=w(n.crosshair,I(a.options.tooltip.crosshairs)[d?0:1],!1);b=c.options.events;-1===a.axes.indexOf(c)&&(d?a.axes.splice(a.xAxis.length,0,c):a.axes.push(c),a[c.coll].push(c));c.series=c.series||[];a.inverted&&!c.isZAxis&&d&&"undefined"===typeof c.reversed&&(c.reversed=!0);t(b,function(b,a){l(b)&&L(c,a,b)});c.lin2log=n.linearToLogConverter||c.lin2log;c.isLog&&(c.val2lin=c.log2lin,c.lin2val=c.lin2log); m(this,"afterInit")},setOptions:function(d){this.options=a(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],a(O[this.coll],d));m(this,"afterSetOptions",{userOptions:d})},defaultLabelFormatter:function(){var a=this.axis,b=this.value,d=a.chart.time,c=a.categories,f=this.dateTimeLabelFormat,k=O.lang,t=k.numericSymbols;k=k.numericSymbolMagnitude||1E3;var l=t&& t.length,q=a.options.labels.format;a=a.isLog?Math.abs(b):a.tickInterval;var h=this.chart,e=h.numberFormatter;if(q)var y=H(q,this,h);else if(c)y=b;else if(f)y=d.dateFormat(f,b);else if(l&&1E3<=a)for(;l--&&"undefined"===typeof y;)d=Math.pow(k,l+1),a>=d&&0===10*b%d&&null!==t[l]&&0!==b&&(y=e(b/d,-1)+t[l]);"undefined"===typeof y&&(y=1E4<=Math.abs(b)?e(b,-1):e(b,-1,void 0,""));return y},getSeriesExtremes:function(){var a=this,b=a.chart,d;m(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1; a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();a.series.forEach(function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries){var n=c.options,f=n.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=f&&(f=null);if(a.isXAxis){if(n=c.xData,n.length){d=c.getXExtremes(n);var x=d.min;var k=d.max;h(x)||x instanceof Date||(n=n.filter(h),d=c.getXExtremes(n),x=d.min,k=d.max);n.length&&(a.dataMin=Math.min(w(a.dataMin,x),x),a.dataMax=Math.max(w(a.dataMax, k),k))}}else if(c.getExtremes(),k=c.dataMax,x=c.dataMin,r(x)&&r(k)&&(a.dataMin=Math.min(w(a.dataMin,x),x),a.dataMax=Math.max(w(a.dataMax,k),k)),r(f)&&(a.threshold=f),!n.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});m(this,"afterGetSeriesExtremes")},translate:function(a,b,d,c,f,k){var n=this.linkedParent||this,x=1,B=0,t=c?n.oldTransA:n.transA;c=c?n.oldMin:n.min;var l=n.minPixelPadding;f=(n.isOrdinal||n.isBroken||n.isLog&&f)&&n.lin2val;t||(t=n.transA);d&&(x*=-1,B=n.len);n.reversed&&(x*= -1,B-=x*(n.sector||n.len));b?(a=(a*x+B-l)/t+c,f&&(a=n.lin2val(a))):(f&&(a=n.val2lin(a)),a=h(c)?x*(a-c)*t+B+x*l+(h(k)?t*k:0):void 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){var b=this,d=b.chart,c=b.left,n=b.top,f=a.old,k=a.value,t=a.translatedValue,q=a.lineWidth,l=a.force,e,y,G,g,F=f&&d.oldChartHeight||d.chartHeight,r=f&&d.oldChartWidth|| d.chartWidth,I,N=b.transB,D=function(b,a,d){if("pass"!==l&&bd)l?b=J(b,a,d):I=!0;return b};a={value:k,lineWidth:q,old:f,force:l,acrossPanes:a.acrossPanes,translatedValue:t};m(this,"getPlotLinePath",a,function(a){t=w(t,b.translate(k,null,null,f));t=J(t,-1E5,1E5);e=G=Math.round(t+N);y=g=Math.round(F-t-N);h(t)?b.horiz?(y=n,g=F-b.bottom,e=G=D(e,c,c+b.width)):(e=c,G=r-b.right,y=g=D(y,n,n+b.height)):(I=!0,l=!1);a.path=I&&!l?null:d.renderer.crispLine(["M",e,y,"L",G,g],q||1)});return a.path},getLinearTickPositions:function(a, b,d){var c=z(Math.floor(b/a)*a);d=z(Math.ceil(d/a)*a);var n=[],f;z(c+a)===c&&(f=20);if(this.single)return[b];for(b=c;b<=d;){n.push(b);b=z(b+a,f);if(b===k)break;var k=b}return n},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?w(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,b=a.options,d=a.tickPositions,c=a.minorTickInterval,f=[],k=a.pointRangePadding||0,t=a.min-k;k=a.max+k;var l=k-t;if(l&&l/c=this.minRange;var h=this.minRange;var e=(h-d+b)/2;e=[b-e,w(a.min,b-e)];q&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin);b=A(e);d=[b+h,w(a.max,b+h)];q&&(d[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax);d=C(d);d-b=V)v=V,y=0;else if(b.dataMax<=V){var O=V;q=0}b.min=w(N,v,b.dataMin);b.max=w(D,O,b.dataMax)}n&&(b.positiveValuesOnly&& !a&&0>=Math.min(b.min,w(b.dataMin,b.min))&&M(10,1,d),b.min=z(b.log2lin(b.min),16),b.max=z(b.log2lin(b.max),16));b.range&&r(b.max)&&(b.userMin=b.min=N=Math.max(b.dataMin,b.minFromRange()),b.userMax=D=b.max,b.range=null);m(b,"foundExtremes");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(G||b.axisPointRange||b.usePercentage||e)&&r(b.min)&&r(b.max)&&(d=b.max-b.min)&&(!r(N)&&y&&(b.min-=d*y),!r(D)&&q&&(b.max+=d*q));h(b.userMin)||(h(c.softMin)&&c.softMinb.max&&(b.max=D=c.softMax),h(c.ceiling)&&(b.max=Math.min(b.max,c.ceiling)));I&&r(b.dataMin)&&(V=V||0,!r(N)&&b.min=V?b.min=b.options.minRange?Math.min(V,b.max-b.minRange):V:!r(D)&&b.max>V&&b.dataMax<=V&&(b.max=b.options.minRange?Math.max(V,b.min+b.minRange):V));b.tickInterval=b.min===b.max||"undefined"===typeof b.min||"undefined"===typeof b.max?1:e&&!g&&F===b.linkedParent.options.tickPixelInterval?g=b.linkedParent.tickInterval: w(g,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,G?1:(b.max-b.min)*F/Math.max(b.len,F));l&&!a&&b.series.forEach(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&&!g&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));a=w(c.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!g&&b.tickInterval< a&&(b.tickInterval=a);t||n||g||(b.tickInterval=k(b.tickInterval,null,f(b.tickInterval),w(c.allowDecimals,!(.5b.tickInterval&&1E3b.max)),!!this.tickAmount));this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b=a.tickPositions;var d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,k=a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval? .5:0;this.minorTickInterval="auto"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&r(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(d=[this.min,this.max],M(19,!1,this.chart)):d=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),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,k);this.isLinked||(this.single&&2>d.length&&!this.categories&&!this.series.some(function(b){return b.is("heatmap")&& "between"===b.options.pointPlacement})&&(this.min-=.5,this.max+=.5),b||c||this.adjustTickAmount());m(this,"afterSetTickPositions")},trimTicks:function(a,b,d){var c=a[0],f=a[a.length-1],n=!this.isOrdinal&&this.minPointOffset||0;m(this,"trimTicks");if(!this.isLinked){if(b&&-Infinity!==c)this.min=c;else for(;this.min-n>a[0];)a.shift();if(d)this.max=f;else for(;this.max+nb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.options,b=this.tickInterval,d=this.tickPositions,c=this.tickAmount,f=this.finalTickAmt,k=d&&d.length,t=w(this.threshold,this.softThreshold?0:null),l;if(this.hasData()){if(k c&&(this.tickInterval*=2,this.setTickPositions());if(r(f)){for(b=a=d.length;b--;)(3===f&&1===b%2||2>=f&&0k&&(a=k)),r(c)&&(fk&&(f=k))),this.displayBtn="undefined"!==typeof a||"undefined"!==typeof f,this.setExtremes(a,f,!1,void 0,{trigger:"zoom"});b.zoomed=!0});return a.zoomed},setAxisSize:function(){var a= this.chart,b=this.options,d=b.offsets||[0,0,0,0],c=this.horiz,f=this.width=Math.round(y(w(b.width,a.plotWidth-d[3]+d[1]),a.plotWidth)),k=this.height=Math.round(y(w(b.height,a.plotHeight-d[0]+d[2]),a.plotHeight)),t=this.top=Math.round(y(w(b.top,a.plotTop+d[0]),a.plotHeight,a.plotTop));b=this.left=Math.round(y(w(b.left,a.plotLeft+d[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-k-t;this.right=a.chartWidth-f-b;this.len=Math.max(c?f:k,0);this.pos=c?b:t},getExtremes:function(){var a=this.isLog; return{min:a?z(this.lin2log(this.min)):this.min,max:a?z(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,d=b?this.lin2log(this.min):this.min;b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=d:Infinity===a?a=b:d>a?a=d:bb?a.align="right":195b&&(a.align="left")});return a.align},tickSize:function(a){var b=this.options,d=b[a+"Length"],c=w(b[a+"Width"],"tick"===a&&this.isXAxis&&!this.categories?1:0);if(c&&d){"inside"===b[a+"Position"]&&(d=-d);var f=[d,c]}a={tickSize:f};m(this,"afterTickSize",a);return a.tickSize},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&& this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,d=this.tickInterval,c=d,f=this.len/(((this.categories?1:0)+this.max-this.min)/d),k,t=a.rotation,l=this.labelMetrics(),q,h=Number.MAX_VALUE,e,y=this.max-this.min,G=function(b){var a=b/(f||1);a=1y&&Infinity!==b&&Infinity!==f&&y&&(a=Math.ceil(y/d));return z(a*d)};b?(e=!a.staggerLines&&!a.step&&(r(t)?[t]:f=b){q= G(Math.abs(l.h/Math.sin(N*b)));var a=q+Math.abs(b/360);a(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/f||!d&&(c.style&&parseInt(c.style.width,10)||k&&k-b.spacing[3]||.33*b.chartWidth)},renderUnsquish:function(){var a= this.chart,b=a.renderer,c=this.tickPositions,f=this.ticks,k=this.options.labels,t=k&&k.style||{},l=this.horiz,h=this.getSlotWidth(),q=Math.max(1,Math.round(h-2*(k.padding||5))),e={},y=this.labelMetrics(),w=k.style&&k.style.textOverflow,G=0;d(k.rotation)||(e.rotation=k.rotation||0);c.forEach(function(b){b=f[b];b.movedLabel&&b.replaceMovedLabel();b&&b.label&&b.label.textPxLength>G&&(G=b.label.textPxLength)});this.maxLabelLength=G;if(this.autoRotation)G>q&&G>y.h?e.rotation=this.labelRotation:this.labelRotation= 0;else if(h){var m=q;if(!w){var g="clip";for(q=c.length;!l&&q--;){var F=c[q];if(F=f[F].label)F.styles&&"ellipsis"===F.styles.textOverflow?F.css({textOverflow:"clip"}):F.textPxLength>h&&F.css({width:h+"px"}),F.getBBox().height>this.len/c.length-(y.h-y.f)&&(F.specificTextOverflow="ellipsis")}}}e.rotation&&(m=G>.5*a.chartHeight?.33*a.chartHeight:G,w||(g="ellipsis"));if(this.labelAlign=k.align||this.autoLabelAlign(this.labelRotation))e.align=this.labelAlign;c.forEach(function(b){var a=(b=f[b])&&b.label, d=t.width,c={};a&&(a.attr(e),b.shortenLabel?b.shortenLabel():m&&!d&&"nowrap"!==t.whiteSpace&&(m=this.min&&a<=this.max)c[a]||(c[a]=new p(this,a)),f&&c[a].isNew&&c[a].render(b,!0,-1),c[a].render(b)},render:function(){var a= this,b=a.chart,d=a.options,c=a.isLog,f=a.isLinked,k=a.tickPositions,l=a.axisTitle,y=a.ticks,q=a.minorTicks,w=a.alternateBands,g=d.stackLabels,F=d.alternateGridColor,G=a.tickmarkOffset,r=a.axisLine,I=a.showAxis,N=E(b.renderer.globalAnimation),D,v;a.labelEdge.length=0;a.overlap=!1;[y,q,w].forEach(function(b){t(b,function(b){b.isActive=!1})});if(a.hasData()||f)a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(b){a.renderMinorTick(b)}),k.length&&(k.forEach(function(b,d){a.renderTick(b, d)}),G&&(0===a.min||a.single)&&(y[-1]||(y[-1]=new p(a,-1,null,!0)),y[-1].render(-1))),F&&k.forEach(function(d,f){v="undefined"!==typeof k[f+1]?k[f+1]+G:a.max-G;0===f%2&&dg&&(!C||H<=A)&&"undefined"!==typeof H&&r.push(H);H>A&&(M=!0);var H=m}}}else g=this.lin2log(g),A=this.lin2log(A),e=C?this.getMinorTickInterval():E.tickInterval,e=K("auto"===e?null:e,this._minorAutoInterval,E.tickPixelInterval/(C?5:1)*(A-g)/((C?z/this.tickPositions.length:z)||1)),e=u(e,null,p(e)),r=this.getLinearTickPositions(e, g,A).map(this.log2lin),C||(this._minorAutoInterval=e/5);C||(this.tickInterval=e);return r};e.prototype.log2lin=function(e){return Math.log(e)/Math.LN10};e.prototype.lin2log=function(e){return Math.pow(10,e)}});R(p,"parts/PlotLineOrBand.js",[p["parts/Globals.js"],p["parts/Axis.js"],p["parts/Utilities.js"]],function(e,g,p){var u=p.arrayMax,K=p.arrayMin,L=p.defined,E=p.destroyObjectProperties,A=p.erase,C=p.extend,J=p.merge,z=p.objectEach,r=p.pick;e.PlotLineOrBand=function(e,g){this.axis=e;g&&(this.options= g,this.id=g.id)};e.PlotLineOrBand.prototype={render:function(){e.fireEvent(this,"render");var g=this,u=g.axis,v=u.horiz,m=g.options,H=m.label,f=g.label,c=m.to,l=m.from,h=m.value,d=L(l)&&L(c),a=L(h),k=g.svgElem,t=!k,w=[],y=m.color,F=r(m.zIndex,0),I=m.events;w={"class":"highcharts-plot-"+(d?"band ":"line ")+(m.className||"")};var S={},O=u.chart.renderer,N=d?"bands":"lines";u.isLog&&(l=u.log2lin(l),c=u.log2lin(c),h=u.log2lin(h));u.chart.styledMode||(a?(w.stroke=y||"#999999",w["stroke-width"]=r(m.width, 1),m.dashStyle&&(w.dashstyle=m.dashStyle)):d&&(w.fill=y||"#e6ebf5",m.borderWidth&&(w.stroke=m.borderColor,w["stroke-width"]=m.borderWidth)));S.zIndex=F;N+="-"+F;(y=u.plotLinesAndBandsGroups[N])||(u.plotLinesAndBandsGroups[N]=y=O.g("plot-"+N).attr(S).add());t&&(g.svgElem=k=O.path().attr(w).add(y));if(a)w=u.getPlotLinePath({value:h,lineWidth:k.strokeWidth(),acrossPanes:m.acrossPanes});else if(d)w=u.getPlotBandPath(l,c,m);else return;(t||!k.d)&&w&&w.length?(k.attr({d:w}),I&&z(I,function(a,b){k.on(b, function(a){I[b].apply(g,[a])})})):k&&(w?(k.show(!0),k.animate({d:w})):k.d&&(k.hide(),f&&(g.label=f=f.destroy())));H&&(L(H.text)||L(H.formatter))&&w&&w.length&&0this.max&&g>this.max;if(m&&r){if(e){var l=m.toString()===r.toString();c=0}for(e=0;ec){h=l;break}if(t[h]&&k.substr(t[h])!=="01-01 00:00:00.000".substr(t[h]))break;"week"!==h&&(l=h)}if(h)var g=a.resolveDTLFormat(d[h]).main; return g};f.prototype.getLabel=function(){var c,f=this,h=this.chart.renderer,d=this.chart.styledMode,a=this.options,k="tooltip"+(K(a.className)?" "+a.className:""),t;if(!this.label){this.outside&&(this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",u(t,{position:"absolute",top:"1px",pointerEvents:a.style&&a.style.pointerEvents,zIndex:3}),e.doc.body.appendChild(t),this.renderer=h=new e.Renderer(t,0,0,{},void 0,void 0,h.styledMode));this.split?this.label=h.g(k):(this.label= h.label("",0,0,a.shape||"callout",null,null,a.useHTML,null,k).attr({padding:a.padding,r:a.borderRadius}),d||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).shadow(a.shadow));d&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index));if(f.outside&&!f.split){var w={x:this.label.xSetter,y:this.label.ySetter};this.label.xSetter=function(a,d){w[d].call(this.label,f.distance);t.style.left=a+"px"};this.label.ySetter=function(a,d){w[d].call(this.label, f.distance);t.style.top=a+"px"}}this.label.attr({zIndex:8,pointerEvents:(null===(c=a.style)||void 0===c?0:c.pointerEvents)||a.stickOnHover?"auto":"none"}).add()}return this.label};f.prototype.getPosition=function(c,f,e){var d=this.chart,a=this.distance,k={},t=d.inverted&&e.h||0,l,h=this.outside,g=h?m.documentElement.clientWidth-2*a:d.chartWidth,I=h?Math.max(m.body.scrollHeight,m.documentElement.scrollHeight,m.body.offsetHeight,m.documentElement.offsetHeight,m.documentElement.clientHeight):d.chartHeight, v=d.pointer.getChartPosition(),O=d.containerScaling,N=function(b){return O?b*O.scaleX:b},n=function(b){return O?b*O.scaleY:b},b=function(b){var k="x"===b;return[b,k?g:I,k?c:f].concat(h?[k?N(c):n(f),k?v.left-a+N(e.plotX+d.plotLeft):v.top-a+n(e.plotY+d.plotTop),0,k?g:I]:[k?c:f,k?e.plotX+d.plotLeft:e.plotY+d.plotTop,k?d.plotLeft:d.plotTop,k?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},B=b("y"),x=b("x"),z=!this.followPointer&&r(e.ttBelow,!d.inverted===!!e.negative),P=function(b,d,c,f,e,l,x){var q= "y"===b?n(a):N(a),h=(c-f)/2,y=fw-t?w:w-t);else if(g)k[b]=Math.max(l,e+t+c>d?e:e+t);else return!1},W=function(b,d,c,f,e){var t;ed-a?t=!1:k[b]=ed-f/2?d-f-2:e-c/2;return t},u=function(b){var a=B;B=x;x=a;l=b},q=function(){!1!==P.apply(0,B)?!1!==W.apply(0,x)||l||(u(!0),q()):l?k.x=k.y=0:(u(!0),q())};(d.inverted||1=n+y&&N.pos+I<=n+y+t-z&&(v=N.pos+I);F=p(F,P.left-B,P.right+B);"number"===typeof v?(G=G.height+1,I=T?T.call(d,g,G,k):h(F,v,e,g),a.push({align:T?0:void 0,anchorX:F,anchorY:v,boxWidth:g,point:k,rank:r(I.rank,e?1:0),size:G,target:I.y,tt:c,x:I.x})):c.isActive=!1}return a},[]);!T&&c.some(function(b){return b.xm+v&&(e=m+v),hr+N&&(h=r+N),this.hasDragged=Math.sqrt(Math.pow(b-e,2)+Math.pow(B-h,2)),10d.options.findNearestPointBy.indexOf("y");d=d.searchPoint(c,k);if((k=D(d,!0))&&!(k=!D(f,!0))){k=f.distX-d.distX;var e=f.dist-d.dist,t=(d.series.group&&d.series.group.zIndex)-(f.series.group&&f.series.group.zIndex);k=0<(0!==k&&a?k:0!==e?e:0!==t?t:f.series.index>d.series.index?-1:1)}k&&(f=d)});return f};h.prototype.getChartCoordinatesFromPoint=function(d,a){var c=d.series, f=c.xAxis;c=c.yAxis;var e=m(d.clientX,d.plotX),h=d.shapeArgs;if(f&&c)return a?{chartX:f.len+f.pos-e,chartY:c.len+c.pos-d.plotY}:{chartX:e+f.pos,chartY:d.plotY+c.pos};if(h&&h.x&&h.y)return{chartX:h.x,chartY:h.y}};h.prototype.getChartPosition=function(){return this.chartPosition||(this.chartPosition=v(this.chart.container))};h.prototype.getCoordinates=function(d){var a={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(c){a[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(d[c.horiz?"chartX": "chartY"])})});return a};h.prototype.getHoverData=function(d,a,c,f,e,h){var k,t=[];f=!(!f||!d);var l=a&&!a.stickyTracking,y={chartX:h?h.chartX:void 0,chartY:h?h.chartY:void 0,shared:e};z(this,"beforeGetHoverData",y);l=l?[a]:c.filter(function(a){return y.filter?y.filter(a):a.visible&&!(!e&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});a=(k=f||!h?d:this.findNearestKDPoint(l,e,h))&&k.series;k&&(e&&!a.noSharedTooltip?(l=c.filter(function(a){return y.filter?y.filter(a):a.visible&& !(!e&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),l.forEach(function(a){var d=J(a.points,function(b){return b.x===k.x&&!b.isNull});D(d)&&(a.chart.isBoosting&&(d=a.getPoint(d)),t.push(d))})):t.push(k));y={hoverPoint:k};z(this,"afterGetHoverData",y);return{hoverPoint:y.hoverPoint,hoverSeries:a,hoverPoints:t}};h.prototype.getPointFromEvent=function(d){d=d.target;for(var a;d&&!a;)a=d.point,d=d.parentNode;return a};h.prototype.onTrackerMouseOut=function(d){var a=this.chart.hoverSeries, c=d.relatedTarget||d.toElement;this.isDirectTouch=!1;if(!(!a||!c||a.stickyTracking||this.isStickyTooltip(d)||this.inClass(c,"highcharts-tooltip")||this.inClass(c,"highcharts-series-"+a.index)&&this.inClass(c,"highcharts-tracker")))a.onMouseOut()};h.prototype.inClass=function(d,a){for(var c;d;){if(c=L(d,"class")){if(-1!==c.indexOf(a))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}d=d.parentNode}};h.prototype.init=function(d,a){this.options=a;this.chart=d;this.runChartClick=a.chart.events&& !!a.chart.events.click;this.pinchDown=[];this.lastValidTouch={};p&&(d.tooltip=new p(d,a.tooltip),this.followTouchMove=m(a.tooltip.followTouchMove,!0));this.setDOMEvents()};h.prototype.isStickyTooltip=function(d){var a=this.chart,c=this.chartPosition,f=a.hoverPoint,h=a.tooltip;a=d.chartX;d=d.chartY;var l=!1;if(c&&f&&f.graphic&&h&&!h.isHidden&&h.options.stickOnHover&&h.label){l=h.label.getBBox();var g=e.offset(h.label.element);h=f.graphic.getBBox();f=e.offset(f.graphic.element);l.x=g.left-c.left;l.y= g.top-c.top;h.x=f.left-c.left;h.y=f.top-c.top;c=Math.min(h.y,l.y);f=Math.max(h.x+h.width,l.x+l.width);g=Math.max(h.y+h.height,l.y+l.height);l=a>=Math.min(h.x,l.x)&&a<=f&&d>=c&&d<=g}return l};h.prototype.normalize=function(d,a){var c=d.touches,f=c?c.length?c.item(0):c.changedTouches[0]:d;a||(a=this.getChartPosition());c=f.pageX-a.left;a=f.pageY-a.top;if(f=this.chart.containerScaling)c/=f.scaleX,a/=f.scaleY;return C(d,{chartX:Math.round(c),chartY:Math.round(a)})};h.prototype.onContainerClick=function(d){var a= this.chart,c=a.hoverPoint,f=a.plotLeft,e=a.plotTop;d=this.normalize(d);a.cancelClick||(c&&this.inClass(d.target,"highcharts-tracker")?(z(c.series,"click",C(d,{point:c})),a.hoverPoint&&c.firePointEvent("click",d)):(C(d,this.getCoordinates(d)),a.isInsidePlot(d.chartX-f,d.chartY-e)&&z(a,"click",d)))};h.prototype.onContainerMouseDown=function(d){d=this.normalize(d);2!==d.button&&(this.zoomOption(d),d.preventDefault&&d.preventDefault(),this.dragStart(d))};h.prototype.onContainerMouseLeave=function(d){var a= c[e.hoverChartIndex];a&&(d.relatedTarget||d.toElement)&&(a.pointer.reset(),a.pointer.chartPosition=void 0)};h.prototype.onContainerMouseMove=function(d){var a=this.chart;A(e.hoverChartIndex)&&c[e.hoverChartIndex]&&c[e.hoverChartIndex].mouseIsDown||(e.hoverChartIndex=a.index);d=this.normalize(d);d.preventDefault||(d.returnValue=!1);"mousedown"===a.mouseIsDown&&this.drag(d);a.openMenu||this.isStickyTooltip(d)||!this.inClass(d.target,"highcharts-tracker")&&!a.isInsidePlot(d.chartX-a.plotLeft,d.chartY- a.plotTop)||this.runPointActions(d)};h.prototype.onDocumentTouchEnd=function(d){c[e.hoverChartIndex]&&c[e.hoverChartIndex].pointer.drop(d)};h.prototype.onContainerTouchMove=function(d){this.touch(d)};h.prototype.onContainerTouchStart=function(d){this.zoomOption(d);this.touch(d,!0)};h.prototype.onDocumentMouseMove=function(d){var a=this.chart,c=this.chartPosition;d=this.normalize(d,c);!c||this.isStickyTooltip(d)||this.inClass(d.target,"highcharts-tracker")||a.isInsidePlot(d.chartX-a.plotLeft,d.chartY- a.plotTop)||this.reset()};h.prototype.onDocumentMouseUp=function(d){c[e.hoverChartIndex]&&c[e.hoverChartIndex].pointer.drop(d)};h.prototype.pinch=function(d){var a=this,c=a.chart,f=a.pinchDown,e=d.touches||[],h=e.length,g=a.lastValidTouch,r=a.hasZoom,v=a.selectionMarker,z={},N=1===h&&(a.inClass(d.target,"highcharts-tracker")&&c.runTrackerClick||a.runChartClick),n={};1F.max&&(a=F.max-x,V=!0);V?(I-=.8*(I-l[t][0]),"number"===typeof G&&(G-=.8*(G-l[t][1])),c()):l[t]=[I,G];r||(h[t]=m-B,h[b]=x);h=r?1/w:w;e[b]=x;e[t]=a;f[r?d?"scaleY":"scaleX":"scale"+y]=w;f["translate"+y]=h*B+(I-h*v)}; h.prototype.reset=function(d,a){var c=this.chart,f=c.hoverSeries,e=c.hoverPoint,h=c.hoverPoints,l=c.tooltip,g=l&&l.shared?h:e;d&&g&&H(g).forEach(function(a){a.series.isCartesian&&"undefined"===typeof a.plotX&&(d=!1)});if(d)l&&g&&H(g).length&&(l.refresh(g),l.shared&&h?h.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):e&&(e.setState(e.state,!0),c.axes.forEach(function(a){a.crosshair&& e.series[a.coll]===a&&a.drawCrosshair(null,e)})));else{if(e)e.onMouseOut();h&&h.forEach(function(a){a.setState()});if(f)f.onMouseOut();l&&l.hide(a);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};h.prototype.runPointActions=function(d,a){var f=this.chart,h=f.tooltip&&f.tooltip.options.enabled?f.tooltip:void 0,l=h?h.shared:!1,g=a||f.hoverPoint,r=g&&g.series||f.hoverSeries;r=this.getHoverData(g, r,f.series,(!d||"touchmove"!==d.type)&&(!!a||r&&r.directTouch&&this.isDirectTouch),l,d);g=r.hoverPoint;var v=r.hoverPoints;a=(r=r.hoverSeries)&&r.tooltipOptions.followPointer;l=l&&r&&!r.noSharedTooltip;if(g&&(g!==f.hoverPoint||h&&h.isHidden)){(f.hoverPoints||[]).forEach(function(a){-1===v.indexOf(a)&&a.setState()});if(f.hoverSeries!==r)r.onMouseOver();this.applyInactiveState(v);(v||[]).forEach(function(a){a.setState("hover")});f.hoverPoint&&f.hoverPoint.firePointEvent("mouseOut");if(!g.series)return; g.firePointEvent("mouseOver");f.hoverPoints=v;f.hoverPoint=g;h&&h.refresh(l?v:g,d)}else a&&h&&!h.isHidden&&(g=h.getAnchor([{}],d),h.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=K(f.container.ownerDocument,"mousemove",function(a){var d=c[e.hoverChartIndex];if(d)d.pointer.onDocumentMouseMove(a)}));f.axes.forEach(function(a){var c=m(a.crosshair.snap,!0),f=c?J(v,function(d){return d.series[a.coll]===a}):void 0;f||!c?a.drawCrosshair(d,f):a.hideCrosshair()})};h.prototype.scaleGroups= function(d,a){var c=this.chart,f;c.series.forEach(function(e){f=d||e.getPlotBox();e.xAxis&&e.xAxis.zoomEnabled&&e.group&&(e.group.attr(f),e.markerGroup&&(e.markerGroup.attr(f),e.markerGroup.clip(a?c.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(f))});c.clipRect.attr(a||c.clipBox)};h.prototype.setDOMEvents=function(){var d=this,a=d.chart.container,c=a.ownerDocument;a.onmousedown=function(a){d.onContainerMouseDown(a)};a.onmousemove=function(a){d.onContainerMouseMove(a)};a.onclick=function(a){d.onContainerClick(a)}; this.unbindContainerMouseLeave=K(a,"mouseleave",d.onContainerMouseLeave);e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=K(c,"mouseup",d.onDocumentMouseUp));e.hasTouch&&(K(a,"touchstart",function(a){d.onContainerTouchStart(a)}),K(a,"touchmove",function(a){d.onContainerTouchMove(a)}),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=K(c,"touchend",d.onDocumentTouchEnd)))};h.prototype.touch=function(d,a){var c=this.chart,f;if(c.index!==e.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0}); e.hoverChartIndex=c.index;if(1===d.touches.length)if(d=this.normalize(d),(f=c.isInsidePlot(d.chartX-c.plotLeft,d.chartY-c.plotTop))&&!c.openMenu){a&&this.runPointActions(d);if("touchmove"===d.type){a=this.pinchDown;var h=a[0]?4<=Math.sqrt(Math.pow(a[0].chartX-d.chartX,2)+Math.pow(a[0].chartY-d.chartY,2)):!1}m(h,!0)&&this.pinch(d)}else a&&this.reset();else 2===d.touches.length&&this.pinch(d)};h.prototype.zoomOption=function(c){var a=this.chart,d=a.options.chart,f=d.zoomType||"";a=a.inverted;/touch/.test(c.type)&& (f=m(d.pinchType,f));this.zoomX=c=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=c&&!a||f&&a;this.zoomVert=f&&!a||c&&a;this.hasZoom=c||f};return h}();e.Pointer=g;return e.Pointer});R(p,"parts/MSPointer.js",[p["parts/Globals.js"],p["parts/Pointer.js"],p["parts/Utilities.js"]],function(e,g,p){function u(){var e=[];e.item=function(e){return this[e]};C(M,function(g){e.push({pageX:g.pageX,pageY:g.pageY,target:g.target})});return e}function K(g,r,f,c){"touch"!==g.pointerType&&g.pointerType!==g.MSPOINTER_TYPE_TOUCH|| !z[e.hoverChartIndex]||(c(g),c=z[e.hoverChartIndex].pointer,c[r]({type:f,target:g.currentTarget,preventDefault:D,touches:u()}))}var L=this&&this.__extends||function(){var e=function(g,f){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var e in f)f.hasOwnProperty(e)&&(c[e]=f[e])};return e(g,f)};return function(g,f){function c(){this.constructor=g}e(g,f);g.prototype=null===f?Object.create(f):(c.prototype=f.prototype,new c)}}(),E=p.addEvent,A= p.css,C=p.objectEach,J=p.removeEvent,z=e.charts,r=e.doc,D=e.noop,M={},v=!!e.win.PointerEvent;return function(e){function g(){return null!==e&&e.apply(this,arguments)||this}L(g,e);g.prototype.batchMSEvents=function(f){f(this.chart.container,v?"pointerdown":"MSPointerDown",this.onContainerPointerDown);f(this.chart.container,v?"pointermove":"MSPointerMove",this.onContainerPointerMove);f(r,v?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};g.prototype.destroy=function(){this.batchMSEvents(J);e.prototype.destroy.call(this)}; g.prototype.init=function(f,c){e.prototype.init.call(this,f,c);this.hasZoom&&A(f.container,{"-ms-touch-action":"none","touch-action":"none"})};g.prototype.onContainerPointerDown=function(f){K(f,"onContainerTouchStart","touchstart",function(c){M[c.pointerId]={pageX:c.pageX,pageY:c.pageY,target:c.currentTarget}})};g.prototype.onContainerPointerMove=function(f){K(f,"onContainerTouchMove","touchmove",function(c){M[c.pointerId]={pageX:c.pageX,pageY:c.pageY};M[c.pointerId].target||(M[c.pointerId].target= c.currentTarget)})};g.prototype.onDocumentPointerUp=function(f){K(f,"onDocumentTouchEnd","touchend",function(c){delete M[c.pointerId]})};g.prototype.setDOMEvents=function(){e.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(E)};return g}(g)});R(p,"parts/Legend.js",[p["parts/Globals.js"],p["parts/Utilities.js"]],function(e,g){var p=g.addEvent,u=g.css,K=g.defined,L=g.discardElement,E=g.find,A=g.fireEvent,C=g.format,J=g.isNumber,z=g.merge,r=g.pick,D=g.relativeLength, M=g.setAnimation,v=g.stableSort,m=g.syncTimeout;g=g.wrap;var H=e.isFirefox,f=e.marginNames,c=e.win,l=function(){function c(c,a){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup= void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=c;this.init(c,a)}c.prototype.init=function(c,a){this.chart=c;this.setOptions(a);a.enabled&&(this.render(),p(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=p(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};c.prototype.setOptions=function(c){var a=r(c.padding, 8);this.options=c;this.chart.styledMode||(this.itemStyle=c.itemStyle,this.itemHiddenStyle=z(this.itemStyle,c.itemHiddenStyle));this.itemMarginTop=c.itemMarginTop||0;this.itemMarginBottom=c.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=r(c.symbolWidth,16);this.pages=[];this.proximate="proximate"===c.layout&&!this.chart.inverted;this.baseline=void 0};c.prototype.update=function(c,a){var d=this.chart;this.setOptions(z(!0,this.options,c));this.destroy();d.isDirtyLegend=d.isDirtyBox= !0;r(a,!0)&&d.redraw();A(this,"afterUpdate")};c.prototype.colorizeItem=function(c,a){c.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var d=this.options,f=c.legendItem,e=c.legendLine,h=c.legendSymbol,l=this.itemHiddenStyle.color;d=a?d.itemStyle.color:l;var g=a?c.color||l:l,m=c.options&&c.options.marker,r={fill:g};f&&f.css({fill:d,color:d});e&&e.attr({stroke:g});h&&(m&&h.isMarker&&(r=c.pointAttribs(),a||(r.stroke=r.fill=l)),h.attr(r))}A(this,"afterColorizeItem", {item:c,visible:a})};c.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};c.prototype.positionItem=function(c){var a=this.options,d=a.symbolPadding;a=!a.rtl;var f=c._legendItemPos,e=f[0];f=f[1];var h=c.checkbox;if((c=c.legendGroup)&&c.element)c[K(c.translateY)?"animate":"attr"]({translateX:a?e:this.legendWidth-e-2*d-4,translateY:f});h&&(h.x=e,h.y=f)};c.prototype.destroyItem=function(c){var a=c.checkbox;["legendItem","legendLine", "legendSymbol","legendGroup"].forEach(function(a){c[a]&&(c[a]=c[a].destroy())});a&&L(c.checkbox)};c.prototype.destroy=function(){function c(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(a){["legendItem","legendGroup"].forEach(c,a)});"clipRect up down pager nav box title group".split(" ").forEach(c,this);this.display=null};c.prototype.positionCheckboxes=function(){var c=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,f=this.titleHeight;if(c){var e= c.translateY;this.allItems.forEach(function(d){var k=d.checkbox;if(k){var h=e+f+k.y+(this.scrollOffset||0)+3;u(k,{left:c.translateX+d.checkboxOffset+k.x-20+"px",top:h+"px",display:this.proximate||h>e-6&&hm?this.maxItemWidth:c.itemWidth;f&&this.itemX-d+a>m&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+h),this.lastLineHeight=0);this.lastItemY=l+this.itemY+h;this.lastLineHeight=Math.max(e,this.lastLineHeight);c._legendItemPos=[this.itemX,this.itemY];f?this.itemX+=a:(this.itemY+=l+e+h,this.lastLineHeight=e);this.offsetWidth=this.widthOption||Math.max((f?this.itemX-d-(c.checkbox?0:g):a)+d,this.offsetWidth)};c.prototype.getAllItems= function(){var c=[];this.chart.series.forEach(function(a){var d=a&&a.options;a&&r(d.showInLegend,K(d.linkedTo)?!1:void 0,!0)&&(c=c.concat(a.legendItems||("point"===d.legendType?a.data:a)))});A(this,"afterGetAllItems",{allItems:c});return c};c.prototype.getAlignment=function(){var c=this.options;return this.proximate?c.align.charAt(0)+"tv":c.floating?"":c.align.charAt(0)+c.verticalAlign.charAt(0)+c.layout.charAt(0)};c.prototype.adjustMargins=function(c,a){var d=this.chart,e=this.options,h=this.getAlignment(); h&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(k,l){k.test(h)&&!K(c[l])&&(d[f[l]]=Math.max(d[f[l]],d.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*e[l%2?"x":"y"]+r(e.margin,12)+a[l]+(d.titleOffset[l]||0)))})};c.prototype.proximatePositions=function(){var c=this.chart,a=[],f="left"===this.options.align;this.allItems.forEach(function(d){var e=f;if(d.yAxis&&d.points){d.xAxis.options.reversed&&(e=!e);var h=E(e?d.points:d.points.slice(0).reverse(),function(a){return J(a.plotY)}); e=this.itemMarginTop+d.legendItem.getBBox().height+this.itemMarginBottom;var k=d.yAxis.top-c.plotTop;d.visible?(h=h?h.plotY:d.yAxis.height,h+=k-.3*e):h=k+d.yAxis.height;a.push({target:h,size:e,item:d})}},this);e.distribute(a,c.plotHeight);a.forEach(function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})};c.prototype.render=function(){var c=this.chart,a=c.renderer,f=this.group,e,h=this.box,l=this.options,g=this.padding;this.itemX=g;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth= 0;this.widthOption=D(l.width,c.spacingBox.width-g);var m=c.spacingBox.width-2*g-l.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(m/=2);this.maxLegendWidth=this.widthOption||m;f||(this.group=f=a.g("legend").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(f),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();m=this.getAllItems();v(m,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});l.reversed&&m.reverse(); this.allItems=m;this.display=e=!!m.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m.forEach(this.renderItem,this);m.forEach(this.layoutItem,this);m=(this.widthOption||this.offsetWidth)+g;var r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=g;h||(this.box=h=a.rect().addClass("highcharts-legend-box").attr({r:l.borderRadius}).add(f),h.isNew=!0);c.styledMode||h.attr({stroke:l.borderColor,"stroke-width":l.borderWidth||0,fill:l.backgroundColor|| "none"}).shadow(l.shadow);0h&&!1!==z.enabled?(this.clipHeight=m=Math.max(h-20-this.titleHeight-l,0),this.currentPage=r(this.currentPage,1),this.fullHeight=c,P.forEach(function(a,b){var c=a._legendItemPos[1],d=Math.round(a.legendItem.getBBox().height), f=x.length;if(!f||c-x[f-1]>m&&(T||c)!==x[f-1])x.push(T||c),f++;a.pageIx=f-1;T&&(P[b-1].pageIx=f-1);b===P.length-1&&c+d-x[f-1]>m&&c!==T&&(x.push(c),a.pageIx=f);c!==T&&(T=c)}),v||(v=a.clipRect=f.clipRect(0,l,9999,0),a.contentGroup.clip(v)),u(m),B||(this.nav=B=f.g().attr({zIndex:1}).add(this.group),this.up=f.symbol("triangle",0,0,b,b).add(B),D("upTracker").on("click",function(){a.scroll(-1,n)}),this.pager=f.text("",15,10).addClass("highcharts-legend-navigation"),d.styledMode||this.pager.css(z.style), this.pager.add(B),this.down=f.symbol("triangle-down",0,0,b,b).add(B),D("downTracker").on("click",function(){a.scroll(1,n)})),a.scroll(0),c=h):B&&(u(),this.nav=B.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return c};c.prototype.scroll=function(c,a){var d=this,f=this.chart,h=this.pages,l=h.length,g=this.currentPage+c;c=this.clipHeight;var v=this.options.navigation,z=this.pager,u=this.padding;g>l&&(g=l);0=h.value;)h=c[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=h&&h.color&&!this.options.color?h.color:this.nonZonedColor;return h};e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};e.prototype.init=function(f,c,e){this.series=f;this.applyOptions(c,e);this.id=u(this.id)?this.id:v();this.resolveColor();f.chart.pointCount++;m(this,"afterInit");return this};e.prototype.optionsToObject= function(f){var c={},g=this.series,h=g.options.keys,d=h||g.pointArrayMap||["y"],a=d.length,k=0,t=0;if(J(f)||null===f)c[d[0]]=f;else if(C(f))for(!h&&f.length>a&&(g=typeof f[0],"string"===g?c.name=f[0]:"number"===g&&(c.x=f[0]),k++);t=k(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return k(c,a.length-1)},bindAxes:function(){var a=this,c=a.options,d=a.chart,f;m(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(b){d[b].forEach(function(d){f=d.options;if(c[b]===f.index||"undefined"!==typeof c[b]&&c[b]===f.id||"undefined"===typeof c[b]&&0===f.index)a.insert(d.series),a[b]=d,d.isDirty=!0});a[b]||a.optionalAxis===b||D(18,!0, d)})});m(this,"afterBindAxes")},updateParallelArrays:function(a,c){var b=a.series,d=arguments,f=l(c)?function(d){var f="y"===d&&b.toYData?b.toYData(a):a[d];b[d+"Data"][c]=f}:function(a){Array.prototype[c].apply(b[a+"Data"],Array.prototype.slice.call(d,2))};b.parallelArrays.forEach(f)},hasData:function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?n-this.cropStart:n);!e&&f[n]&&f[n].touched&&(n=void 0);return n},drawLegendSymbol:g.drawLineMarker,updateData:function(a,c){var b=this.options,d=b.dataSorting,f=this.points,e=[],h,g,k,n=this.requireSorting,t=a.length===f.length, m=!0;this.xIncrement=null;a.forEach(function(a,c){var g=z(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{};var q=g.x;if(g.id||l(q)){if(q=this.findPointIndex(g,k),-1===q||"undefined"===typeof q?e.push(a):f[q]&&a!==b.data[q]?(f[q].update(a,!1,null,!1),f[q].touched=!0,n&&(k=q+1)):f[q]&&(f[q].touched=!0),!t||c!==q||d&&d.enabled||this.hasDerivedData)h=!0}else e.push(a)},this);if(h)for(a=f.length;a--;)(g=f[a])&&!g.touched&&g.remove&&g.remove(!1,c);else!t||d&&d.enabled?m=!1:(a.forEach(function(a, b){f[b].update&&a!==f[b].y&&f[b].update(a,!1,null,!1)}),e.length=0);f.forEach(function(a){a&&(a.touched=!1)});if(!m)return!1;e.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=E(this.xData),this.autoIncrement());return!0},setData:function(a,c,d,e){var b=this,g=b.points,n=g&&g.length||0,q,x=b.options,t=b.chart,m=x.dataSorting,y=null,r=b.xAxis;y=x.turboThreshold;var B=this.xData,w=this.yData,v=(q=b.pointArrayMap)&&q.length, z=x.keys,F=0,N=1,u;a=a||[];q=a.length;c=k(c,!0);m&&m.enabled&&(a=this.sortData(a));!1!==e&&q&&n&&!b.cropped&&!b.hasGroupedData&&b.visible&&!b.isSeriesBoosting&&(u=this.updateData(a,d));if(!u){b.xIncrement=null;b.colorCounter=0;this.parallelArrays.forEach(function(a){b[a+"Data"].length=0});if(y&&q>y)if(y=b.getFirstValidPoint(a),l(y))for(d=0;da?1:0}).forEach(function(a,b){a.x=b},this);b.linkedSeries&&b.linkedSeries.forEach(function(b){var c=b.options,f=c.data;c.dataSorting&&c.dataSorting.enabled||!f||(f.forEach(function(c,e){f[e]=d(b,c);a[e]&&(f[e].x=a[e].x,f[e].index= e)}),b.setData(f,!1))});return a},processData:function(a){var b=this.xData,c=this.yData,d=b.length;var f=0;var e=this.xAxis,h=this.options;var g=h.cropThreshold;var l=this.getExtremesFromAll||h.getExtremesFromAll,k=this.isCartesian;h=e&&e.val2lin;var n=e&&e.isLog,t=this.requireSorting;if(k&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!a)return!1;if(e){a=e.getExtremes();var m=a.min;var y=a.max}if(k&&this.sorted&&!l&&(!g||d>g||this.forceCrop))if(b[d-1]y)b=[],c=[];else if(this.yData&&(b[0]< m||b[d-1]>y)){f=this.cropData(this.xData,this.yData,m,y);b=f.xData;c=f.yData;f=f.start;var r=!0}for(g=b.length||1;--g;)if(d=n?h(b[g])-h(b[g-1]):b[g]-b[g-1],0d&&t&&(D(15,!1,this.chart),t=!1);this.cropped=r;this.cropStart=f;this.processedXData=b;this.processedYData=c;this.closestPointRange=this.basePointRange=w},cropData:function(a,c,d,f,e){var b=a.length,h=0,g=b,l;e=k(e,this.cropShoulder);for(l=0;l=d){h=Math.max(0,l-e);break}for(d=l;d< b;d++)if(a[d]>f){g=d+e;break}return{xData:a.slice(h,g),yData:c.slice(h,g),start:h,end:g}},generatePoints:function(){var a=this.options,c=a.data,d=this.data,f,e=this.processedXData,h=this.processedYData,g=this.pointClass,l=e.length,k=this.cropStart||0,n=this.hasGroupedData;a=a.keys;var t=[],r;d||n||(d=[],d.length=c.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(r=0;r=g&&(d[y-n]||r)<=k;if(v&&r)if(v=w.length)for(;v--;)l(w[v])&&(e[h++]=w[v]);else e[h++]=w}this.dataMin=A(e);this.dataMax=E(e);m(this,"afterGetExtremes")}, getFirstValidPoint:function(a){for(var b=null,c=a.length,d=0;null===b&&d=O&&(p.isNull=!0);p.plotX=N=J(C(d.translate(D,0,0,0,1,r,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&M&&M[D]){var H=this.getStackIndicator(H,D,this.index);if(!p.isNull){var S=M[D];var E=S.points[H.key]}}f(E)&&(A=E[0],O=E[1],A===F&&H.key===M[D].base&&(A=k(l(v)&&v,g.min)),g.positiveValuesOnly&&0>=A&&(A=null),p.total=p.stackTotal=S.total,p.percentage=S.total&&p.y/S.total*100,p.stackY=O,this.irregularWidths|| S.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(A)?C(g.translate(A,0,1,0,1),-1E5,1E5):null;t&&(O=this.modifyValue(O,p));p.plotY=O="number"===typeof O&&Infinity!==O?C(g.translate(O,0,1,0,1),-1E5,1E5):void 0;p.isInside="undefined"!==typeof O&&0<=O&&O<=g.len&&0<=N&&N<=d.len;p.clientX=w?J(d.translate(D,0,0,0,1,r)):N;p.negative=p[u]<(a[u+"Threshold"]||v||0);p.category=e&&"undefined"!==typeof e[p.x]?e[p.x]:p.x;if(!p.isNull&&!1!==p.visible){"undefined"!==typeof L&&(I=Math.min(I,Math.abs(N-L))); var L=N}p.zone=this.zones.length&&p.getZone();!p.graphic&&this.group&&h&&(p.isNew=!0)}this.closestPointRangePx=I;m(this,"afterTranslate")},getValidPoints:function(a,c,d){var b=this.chart;return(a||this.points||[]).filter(function(a){return c&&!b.isInsidePlot(a.plotX,a.plotY,b.inverted)?!1:!1!==a.visible&&(d||!a.isNull)})},getClipBox:function(a,c){var b=this.options,d=this.chart,f=d.inverted,e=this.xAxis,h=e&&this.yAxis;a&&!1===b.clip&&h?a=f?{y:-d.chartWidth+h.len+h.pos,height:d.chartWidth,width:d.chartHeight, x:-d.chartHeight+e.len+e.pos}:{y:-h.pos,height:d.chartHeight,width:d.chartWidth,x:-e.pos}:(a=this.clipBox||d.clipBox,c&&(a.width=d.plotSizeX,a.x=0));return c?{width:a.width,x:a.x}:a},setClip:function(a){var b=this.chart,c=this.options,d=b.renderer,f=b.inverted,e=this.clipBox,h=this.getClipBox(a),g=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,h.height,c.xAxis,c.yAxis].join(),l=b[g],k=b[g+"m"];l||(a&&(h.width=0,f&&(h.x=b.plotSizeX+(!1!==c.clip?0:b.plotTop)),b[g+"m"]=k=d.clipRect(f?b.plotSizeX+ 99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[g]=l=d.clipRect(h),l.count={length:0});a&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1);if(!1!==c.clip||a)this.group.clip(a||e?l:b.clipRect),this.markerGroup.clip(k),this.sharedClipKey=g;a||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&g&&b[g]&&(e||(b[g]=b[g].destroy()),b[g+"m"]&&(b[g+"m"]=b[g+"m"].destroy())))},animate:function(a){var b=this.chart,c=L(this.options.animation); if(a)this.setClip(c);else{var d=this.sharedClipKey;a=b[d];var f=this.getClipBox(c,!0);a&&a.animate(f,c);b[d+"m"]&&b[d+"m"].animate({width:f.width+99,x:f.x-(b.inverted?0:99)},c);this.animate=null}},afterAnimate:function(){this.setClip();m(this,"afterAnimate");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,c=this.chart,d,f,e=this.options.marker,h=this[this.specialGroup]||this.markerGroup,g=this.xAxis,l=k(e.enabled,!g||g.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold* e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;de&&c.shadow));g&&(g.startX=d.xMap,g.isArea=d.isArea)})},getZonesGraphs:function(a){this.zones.forEach(function(b,c){c=["zone-graph-"+c,"highcharts-graph highcharts-zone-graph-"+c+" "+(b.className||"")];this.chart.styledMode||c.push(b.color||this.color,b.dashStyle||this.options.dashStyle);a.push(c)},this);return a},applyZones:function(){var a=this,c=this.chart,d=c.renderer,f=this.zones,e,h,g=this.clips||[],l,n=this.graph,t=this.area,m=Math.max(c.chartWidth, c.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],r=c.inverted,w,v,z,F=!1;if(f.length&&(n||t)&&y&&"undefined"!==typeof y.min){var N=y.reversed;var p=y.horiz;n&&!this.showLine&&n.hide();t&&t.hide();var u=y.getExtremes();f.forEach(function(b,f){e=N?p?c.plotWidth:0:p?0:y.toPixels(u.min)||0;e=C(k(h,e),0,m);h=C(Math.round(y.toPixels(k(b.value,u.max),!0)||0),0,m);F&&(e=h=y.toPixels(u.max));w=Math.abs(e-h);v=Math.min(e,h);z=Math.max(e,h);y.isXAxis?(l={x:r?z:v,y:0,width:w,height:m},p||(l.x=c.plotHeight- l.x)):(l={x:0,y:r?z:v,width:m,height:w},p&&(l.y=c.plotWidth-l.y));r&&d.isVML&&(l=y.isXAxis?{x:0,y:N?v:z,height:l.width,width:c.chartWidth}:{x:l.y-c.plotLeft-c.spacingBox.x,y:0,width:l.height,height:c.chartHeight});g[f]?g[f].animate(l):g[f]=d.clipRect(l);n&&a["zone-graph-"+f].clip(g[f]);t&&a["zone-area-"+f].clip(g[f]);F=b.value>u.max;a.resetZones&&0===h&&(h=void 0)});this.clips=g}else a.visible&&(n&&n.show(!0),t&&t.show(!0))},invertGroups:function(a){function b(){["group","markerGroup"].forEach(function(b){c[b]&& (d.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(c.isRadialSeries?!1:a))})}var c=this,d=c.chart;c.xAxis&&(c.eventsToUnbind.push(K(d,"resize",b)),b(),c.invertGroups=b)},plotGroup:function(a,c,d,f,e){var b=this[a],h=!b;h&&(this[a]=b=this.chart.renderer.g().attr({zIndex:f||.1}).add(e));b.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(z(this.colorIndex)?"highcharts-color-"+this.colorIndex+ " ":"")+(this.options.className||"")+(b.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);b.attr({visibility:d})[h?"attr":"animate"](this.getPlotBox());return b},getPlotBox:function(){var a=this.chart,c=this.xAxis,d=this.yAxis;a.inverted&&(c=d,d=this.xAxis);return{translateX:c?c.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},removeEvents:function(a){a?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0):t(this)},render:function(){var a= this,c=a.chart,d=a.options,f=!!a.animate&&c.renderer.isSVG&&L(d.animation).duration,e=a.visible?"inherit":"hidden",h=d.zIndex,g=a.hasRendered,l=c.seriesGroup,k=c.inverted;m(this,"render");var n=a.plotGroup("group","series",e,h,l);a.markerGroup=a.plotGroup("markerGroup","markers",e,h,l);f&&a.animate(!0);n.inverted=a.isCartesian||a.invertable?k:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&& !1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(k);!1===d.clip||a.sharedClipKey||g||n.clip(c.clipRect);f&&a.animate();g||(a.animationTimeout=F(function(){a.afterAnimate()},f||0));a.isDirty=!1;a.hasRendered=!0;m(a,"afterRender")},redraw:function(){var a=this.chart,c=this.isDirty||this.isDirtyData,d=this.group,f=this.xAxis,e=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:k(f&&f.left,a.plotLeft),translateY:k(e&&e.top,a.plotTop)})); this.translate();this.render();c&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,c){var b=this.xAxis,d=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?b.len-a.chartY+b.pos:a.chartX-b.pos,plotY:f?d.len-a.chartX+d.pos:a.chartY-d.pos},c,a)},buildKDTree:function(a){function b(a,d,f){var e;if(e=a&&a.length){var h=c.kdAxisArray[d%f];a.sort(function(a,b){return a[h]-b[h]});e=Math.floor(e/2);return{point:a[e],left:b(a.slice(0,e),d+1,f),right:b(a.slice(e+1), d+1,f)}}}this.buildingKdTree=!0;var c=this,d=-1n?"left":"right";q=0>n?"right":"left";c[m]&&(m=b(a,c[m],d+1,l),t=m[g]r;)q--;this.updateParallelArrays(w,"splice",q,0,0);this.updateParallelArrays(w,q);k&&w.name&&(k[r]=w.name);m.splice(q,0,a);y&&(this.data.splice(q,0,null),this.processData());"point"===g.legendType&&this.generatePoints();d&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(w,"shift"),m.shift()));!1!==e&&D(this,"addPoint",{point:w});this.isDirtyData=this.isDirty=!0;c&&b.redraw(f)},removePoint:function(a, c,f){var e=this,g=e.data,h=g[a],k=e.points,b=e.chart,m=function(){k&&k.length===g.length&&k.splice(a,1);g.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||{series:e},"splice",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;c&&b.redraw()};d(f,b);c=l(c,!0);h?h.firePointEvent("remove",null,m):m()},remove:function(a,c,d,f){function e(){g.destroy(f);g.remove=null;h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();l(a,!0)&&h.redraw(c)}var g=this,h=g.chart;!1!==d?D(g,"remove",null,e):e()}, update:function(a,c){a=e.cleanRecursively(a,this.userOptions);D(this,"update",{options:a});var d=this,g=d.chart,h=d.userOptions,k=d.initialType||d.type,n=a.type||h.type||g.options.chart.type,b=!(this.hasDerivedData||a.dataGrouping||n&&n!==this.type||"undefined"!==typeof a.pointStart||a.pointInterval||a.pointIntervalUnit||a.keys),m=w[k].prototype,t,y=["group","markerGroup","dataLabelsGroup","transformGroup"],v=["eventOptions","navigatorSeries","baseSeries"],p=d.finishedAnimating&&{animation:!1},u= {};b&&(v.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&v.push("area","graph"),d.parallelArrays.forEach(function(a){v.push(a+"Data")}),a.data&&(a.dataSorting&&r(d.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=f(h,p,{index:"undefined"===typeof h.index?d.index:h.index,pointStart:l(h.pointStart,d.xData[0])},!b&&{data:d.options.data},a);b&&a.data&&(a.data= d.options.data);v=y.concat(v);v.forEach(function(a){v[a]=d[a];delete d[a]});d.remove(!1,null,!1,!0);for(t in m)d[t]=void 0;w[n||k]?r(d,w[n||k].prototype):z(17,!0,g,{missingModuleFor:n||k});v.forEach(function(a){d[a]=v[a]});d.init(g,a);if(b&&this.points){var q=d.options;!1===q.visible?(u.graphic=1,u.dataLabel=1):d._hasPointLabels||(n=q.marker,m=q.dataLabels,n&&(!1===n.enabled||"symbol"in n)&&(u.graphic=1),m&&!1===m.enabled&&(u.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(), Object.keys(u).length&&a.destroyElements(u),!1===q.showInLegend&&a.legendItem&&g.legend.destroyItem(a))},this)}a.zIndex!==h.zIndex&&y.forEach(function(b){d[b]&&d[b].attr({zIndex:a.zIndex})});d.initialType=k;g.linkSeries();D(this,"afterUpdate");l(c,!0)&&g.redraw(b?void 0:!1)},setName:function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0}});r(k.prototype,{update:function(a,d){var e=this.chart,g=a&&a.events||{};a=f(this.userOptions,a);e.options[this.coll].indexOf&& (e.options[this.coll][e.options[this.coll].indexOf(this.userOptions)]=a);c(e.options[this.coll].events,function(a,c){"undefined"===typeof g[c]&&(g[c]=void 0)});this.destroy(!0);this.init(e,r(a,{events:g}));e.isDirtyBox=!0;l(d,!0)&&e.redraw()},remove:function(a){for(var c=this.chart,d=this.coll,f=this.series,e=f.length;e--;)f[e]&&f[e].remove(!1);J(c.axes,this);J(c[d],this);M(c.options[d])?c.options[d].splice(this.options.index,1):delete c.options[d];c[d].forEach(function(a,c){a.options.index=a.userOptions.index= c});this.destroy();c.isDirtyBox=!0;l(a,!0)&&c.redraw()},setTitle:function(a,c){this.update({title:a},c)},setCategories:function(a,c){this.update({categories:a},c)}})});R(p,"parts/AreaSeries.js",[p["parts/Globals.js"],p["parts/Color.js"],p["mixins/legend-symbol.js"],p["parts/Utilities.js"]],function(e,g,p,u){var K=g.parse,L=u.objectEach,E=u.pick;g=u.seriesType;var A=e.Series;g("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(e){var g=[],p=[],r=this.xAxis,u=this.yAxis, A=u.stacks[this.stackKey],v={},m=this.index,C=u.series,f=C.length,c=E(u.options.reversedStacks,!0)?1:-1,l;e=e||this.points;if(this.options.stacking){for(l=0;le&&r>E?(r=Math.max(e,E),D=2*E-r):rK&&D>E?(D=Math.max(K,E),r=2*E-D):D=Math.abs(g)&&.5e.closestPointRange*e.xAxis.transA;f=e.borderWidth=r(p.borderWidth,f?0:1);var c=e.xAxis,l=e.yAxis,h=p.threshold,d=e.translatedThreshold=l.getThreshold(h),a=r(p.minPointLength,5),k=e.getColumnMetrics(),t=k.width,w=e.barW=Math.max(t,1+2*f),y=e.pointXOffset=k.offset,u=e.dataMin,z=e.dataMax;g.inverted&&(d-=.5);p.pointPadding&&(w=Math.ceil(w)); D.prototype.translate.apply(e);e.points.forEach(function(f){var k=r(f.yBottom,d),m=999+Math.abs(k),n=t,b=f.plotX;m=E(f.plotY,-m,l.len+m);var p=f.plotX+y,x=w,v=Math.min(m,k),F=Math.max(m,k)-v;if(a&&Math.abs(F)a?k-a:d-(I?a:0)}A(f.options.pointWidth)&&(n=x=Math.ceil(f.options.pointWidth),p-=Math.round((n-t)/2));f.barX=p;f.pointWidth=n;f.tooltipPos=g.inverted?[l.len+l.pos-g.plotLeft- m,c.len+c.pos-g.plotTop-(b||0)-y-x/2,F]:[p+x/2,m+l.pos-g.plotTop,F];f.shapeType=e.pointClass.prototype.shapeType||"rect";f.shapeArgs=e.crispCol.apply(e,f.isNull?[p,d,x,0]:[p,v,x,F])})},getSymbol:e.noop,drawLegendSymbol:p.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(e,g){var m=this.options,f=this.pointAttrToOptions||{};var c=f.stroke||"borderColor";var l=f["stroke-width"]||"borderWidth",h=e&&e.color||this.color,d= e&&e[c]||m[c]||this.color||h,a=e&&e[l]||m[l]||this[l]||0;f=e&&e.options.dashStyle||m.dashStyle;var k=r(e&&e.opacity,m.opacity,1);if(e&&this.zones.length){var t=e.getZone();h=e.options.color||t&&(t.color||e.nonZonedColor)||this.color;t&&(d=t.borderColor||d,f=t.dashStyle||f,a=t.borderWidth||a)}g&&e&&(e=z(m.states[g],e.options.states&&e.options.states[g]||{}),g=e.brightness,h=e.color||"undefined"!==typeof g&&K(h).brighten(e.brightness).get()||h,d=e[c]||d,a=e[l]||a,f=e.dashStyle||f,k=r(e.opacity,k)); c={fill:h,stroke:d,"stroke-width":a,opacity:k};f&&(c.dashstyle=f);return c},drawPoints:function(){var e=this,g=this.chart,r=e.options,f=g.renderer,c=r.animationLimit||250,l;e.points.forEach(function(h){var d=h.graphic,a=!!d,k=d&&g.pointCount\u25cf
{series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group", "markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&u.prototype.drawGraph.call(this)},applyJitter:function(){var e=this,g=this.options.jitter,p=this.points.length;g&&this.points.forEach(function(u,C){["x","y"].forEach(function(A,z){var r="plot"+A.toUpperCase();if(g[A]&&!u.isNull){var D=e[A+"Axis"];var E=g[A]*D.transA;if(D&&!D.isLog){var v=Math.max(0,u[r]-E);D=Math.min(D.len,u[r]+E);z=1E4*Math.sin(C+z*p);u[r]=v+(D-v)*(z-Math.floor(z));"x"===A&&(u.clientX= u.plotX)}}})})}});p(u,"afterTranslate",function(){this.applyJitter&&this.applyJitter()});""});R(p,"mixins/centered-series.js",[p["parts/Globals.js"],p["parts/Utilities.js"]],function(e,g){var p=g.isNumber,u=g.pick,K=g.relativeLength,L=e.deg2rad;e.CenteredSeriesMixin={getCenter:function(){var e=this.options,g=this.chart,p=2*(e.slicedOffset||0),J=g.plotWidth-2*p,z=g.plotHeight-2*p,r=e.center,D=Math.min(J,z),M=e.size,v=e.innerSize||0;"string"===typeof M&&(M=parseFloat(M));"string"===typeof v&&(v=parseFloat(v)); e=[u(r[0],"50%"),u(r[1],"50%"),u(M&&0>M?void 0:e.size,"100%"),u(v&&0>v?void 0:e.innerSize||0,"0%")];g.angular&&(e[3]=0);for(r=0;4>r;++r)M=e[r],g=2>r||2===r&&/%$/.test(M),e[r]=K(M,[J,z,D,e[2]][r])+(g?p:0);e[3]>e[2]&&(e[3]=e[2]);return e},getStartAndEndRadians:function(e,g){e=p(e)?e:0;g=p(g)&&g>e&&360>g-e?g:e+360;return{start:L*(e+-90),end:L*(g+-90)}}}});R(p,"parts/PieSeries.js",[p["parts/Globals.js"],p["mixins/legend-symbol.js"],p["parts/Point.js"],p["parts/Utilities.js"]],function(e,g,p,u){var K= u.addEvent,L=u.clamp,E=u.defined,A=u.fireEvent,C=u.isNumber,J=u.merge,z=u.pick,r=u.relativeLength,D=u.seriesType,M=u.setAnimation;u=e.CenteredSeriesMixin;var v=u.getStartAndEndRadians,m=e.noop,H=e.Series;D("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0, inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:e.seriesTypes.column.prototype.pointAttribs,animate:function(f){var c=this,e=c.points,g=c.startAngleRad;f||(e.forEach(function(d){var a=d.graphic, f=d.shapeArgs;a&&f&&(a.attr({r:z(d.startR,c.center&&c.center[3]/2),start:g,end:g}),a.animate({r:f.r,start:f.start,end:f.end},c.options.animation))}),c.animate=null)},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var f,c=0,e=this.points,g=e.length,d=this.options.ignoreHiddenPoint;for(f=0;f1.5*Math.PI? C-=2*Math.PI:C<-Math.PI/2&&(C+=2*Math.PI);I.slicedTranslation={translateX:Math.round(Math.cos(C)*g),translateY:Math.round(Math.sin(C)*g)};var N=Math.cos(C)*f[2]/2;var n=Math.sin(C)*f[2]/2;I.tooltipPos=[f[0]+.7*N,f[1]+.7*n];I.half=C<-Math.PI/2||C>Math.PI/2?1:0;I.angle=C;D=Math.min(d,I.labelDistance/5);I.labelPosition={natural:{x:f[0]+N+Math.cos(C)*I.labelDistance,y:f[1]+n+Math.sin(C)*I.labelDistance},"final":{},alignment:0>I.labelDistance?"center":I.half?"right":"left",connectorPosition:{breakAt:{x:f[0]+ N+Math.cos(C)*D,y:f[1]+n+Math.sin(C)*D},touchingSliceAt:{x:f[0]+N,y:f[1]+n}}}}A(this,"afterTranslate")},drawEmpty:function(){var f=this.options;if(0===this.total){var c=this.center[0];var e=this.center[1];this.graph||(this.graph=this.chart.renderer.circle(c,e,0).addClass("highcharts-graph").add(this.group));this.graph.animate({"stroke-width":f.borderWidth,cx:c,cy:e,r:this.center[2]/2,fill:f.fillColor||"none",stroke:f.color||"#cccccc"},this.options.animation)}else this.graph&&(this.graph=this.graph.destroy())}, redrawPoints:function(){var f=this,c=f.chart,e=c.renderer,g,d,a,k,t=f.options.shadow;this.drawEmpty();!t||f.shadowGroup||c.styledMode||(f.shadowGroup=e.g("shadow").attr({zIndex:-1}).add(f.group));f.points.forEach(function(h){var l={};d=h.graphic;if(!h.isNull&&d){k=h.shapeArgs;g=h.getTranslate();if(!c.styledMode){var m=h.shadowGroup;t&&!m&&(m=h.shadowGroup=e.g("shadow").add(f.shadowGroup));m&&m.attr(g);a=f.pointAttribs(h,h.selected&&"select")}h.delayedRendering?(d.setRadialReference(f.center).attr(k).attr(g), c.styledMode||d.attr(a).attr({"stroke-linejoin":"round"}).shadow(t,m),h.delayedRendering=!1):(d.setRadialReference(f.center),c.styledMode||J(!0,l,a),J(!0,l,k,g),d.animate(l));d.attr({visibility:h.visible?"inherit":"hidden"});d.addClass(h.getClassName())}else d&&(h.graphic=d.destroy())})},drawPoints:function(){var f=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy());c.graphic||(c.graphic=f[c.shapeType](c.shapeArgs).add(c.series.group), c.delayedRendering=!0)})},searchPoint:m,sortByAngle:function(f,c){f.sort(function(f,e){return"undefined"!==typeof f.angle&&(e.angle-f.angle)*c})},drawLegendSymbol:g.drawRectangle,getCenter:u.getCenter,getSymbol:m,drawGraph:null},{init:function(){p.prototype.init.apply(this,arguments);var f=this;f.name=z(f.name,"Slice");var c=function(c){f.slice("select"===c.type)};K(f,"select",c);K(f,"unselect",c);return f},isValid:function(){return C(this.y)&&0<=this.y},setVisible:function(f,c){var e=this,g=e.series, d=g.chart,a=g.options.ignoreHiddenPoint;c=z(c,a);f!==e.visible&&(e.visible=e.options.visible=f="undefined"===typeof f?!e.visible:f,g.options.data[g.data.indexOf(e)]=e.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(a){if(e[a])e[a][f?"show":"hide"](!0)}),e.legendItem&&d.legend.colorizeItem(e,f),f||"hover"!==e.state||e.setState(""),a&&(g.isDirty=!0),c&&d.redraw())},slice:function(f,c,e){var g=this.series;M(e,g.chart);z(c,!0);this.sliced=this.options.sliced=E(f)?f:!this.sliced; g.options.data[g.data.indexOf(this)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(f){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+f,c.r+f,{innerR:c.r-1,start:c.start,end:c.end})},connectorShapes:{fixedOffset:function(f,c,e){var g=c.breakAt;c=c.touchingSliceAt; return["M",f.x,f.y].concat(e.softConnector?["C",f.x+("left"===f.alignment?-5:5),f.y,2*g.x-c.x,2*g.y-c.y,g.x,g.y]:["L",g.x,g.y]).concat(["L",c.x,c.y])},straight:function(f,c){c=c.touchingSliceAt;return["M",f.x,f.y,"L",c.x,c.y]},crookedLine:function(f,c,e){c=c.touchingSliceAt;var g=this.series,d=g.center[0],a=g.chart.plotWidth,k=g.chart.plotLeft;g=f.alignment;var l=this.shapeArgs.r;e=r(e.crookDistance,1);e="left"===g?d+l+(a+k-d-l)*(1-e):k+(d-l)*e;d=["L",e,f.y];if("left"===g?e>f.x||ec.x)d= [];return["M",f.x,f.y].concat(d).concat(["L",c.x,c.y])}},getConnectorPath:function(){var e=this.labelPosition,c=this.series.options.dataLabels,g=c.connectorShape,h=this.connectorShapes;h[g]&&(g=h[g]);return g.call(this,{x:e.final.x,y:e.final.y,alignment:e.alignment},e.connectorPosition,c)}});""});R(p,"parts/DataLabels.js",[p["parts/Globals.js"],p["parts/Utilities.js"]],function(e,g){var p=g.animObject,u=g.arrayMax,K=g.clamp,L=g.defined,E=g.extend,A=g.format,C=g.isArray,J=g.merge,z=g.objectEach,r= g.pick,D=g.relativeLength,M=g.splat,v=g.stableSort;g=e.noop;var m=e.Series,H=e.seriesTypes;e.distribute=function(f,c,g){function h(a,c){return a.target-c.target}var d,a=!0,k=f,l=[];var m=0;var p=k.reducedLen||c;for(d=f.length;d--;)m+=f[d].size;if(m>p){v(f,function(a,c){return(c.rank||0)-(a.rank||0)});for(m=d=0;m<=p;)m+=f[d].size,d++;l=f.splice(d-1,f.length)}v(f,h);for(f=f.map(function(a){return{size:a.size,targets:[a.target],align:r(a.align,.5)}});a;){for(d=f.length;d--;)a=f[d],m=(Math.min.apply(0, a.targets)+Math.max.apply(0,a.targets))/2,a.pos=K(m-a.size*a.align,0,c-a.size);d=f.length;for(a=!1;d--;)0f[d].pos&&(f[d-1].size+=f[d].size,f[d-1].targets=f[d-1].targets.concat(f[d].targets),f[d-1].align=.5,f[d-1].pos+f[d-1].size>c&&(f[d-1].pos=c-f[d-1].size),f.splice(d,1),a=!0)}k.push.apply(k,l);d=0;f.some(function(a){var f=0;if(a.targets.some(function(){k[d].pos=a.pos+f;if("undefined"!==typeof g&&Math.abs(k[d].pos-k[d].target)>g)return k.slice(0,d+1).forEach(function(a){delete a.pos}), k.reducedLen=(k.reducedLen||c)-.1*c,k.reducedLen>.1*c&&e.distribute(k,c,g),!0;f+=k[d].size;d++}))return!0});v(k,h)};m.prototype.drawDataLabels=function(){function f(a,c){var b=c.filter;return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function c(a,c){var b=[],d;if(C(a)&&!C(c))b=a.map(function(a){return J(a,c)});else if(C(c)&&!C(a))b=c.map(function(b){return J(a,b)});else if(C(a)||C(c))for(d=Math.max(a.length, c.length);d--;)b[d]=J(a[d],c[d]);else b=J(a,c);return b}var g=this,h=g.chart,d=g.options,a=d.dataLabels,k=g.points,m,w=g.hasRendered||0,y=p(d.animation).duration,u=Math.min(y,200),v=!h.renderer.forExport&&r(a.defer,0n||d.stacking?e.contrastColor:"#000000"):delete e.contrastColor,d.cursor&&(q.cursor=d.cursor));var w={r:a.borderRadius||0,rotation:p,padding:a.padding, zIndex:1};h.styledMode||(w.fill=a.backgroundColor,w.stroke=a.borderColor,w["stroke-width"]=a.borderWidth);z(w,function(a,b){"undefined"===typeof a&&delete w[b]})}!k||c&&L(t)?c&&L(t)&&(k?w.text=t:(e.dataLabels=e.dataLabels||[],k=e.dataLabels[b]=p?D.text(t,0,-9999,a.useHTML).addClass("highcharts-data-label"):D.label(t,0,-9999,a.shape,null,null,a.useHTML,null,"data-label"),b||(e.dataLabel=k),k.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(a.className||"")+(a.useHTML?" highcharts-tracker": ""))),k.options=a,k.attr(w),h.styledMode||k.css(q).shadow(a.shadow),k.added||k.add(E),a.textPath&&!a.useHTML&&(k.setTextPath(e.getDataLabelPath&&e.getDataLabelPath(k)||e.graphic,a.textPath),e.dataLabelPath&&!a.textPath.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),g.alignDataLabel(e,k,a,null,m)):(e.dataLabel=e.dataLabel&&e.dataLabel.destroy(),e.dataLabels&&(1===e.dataLabels.length?delete e.dataLabels:delete e.dataLabels[b]),b||delete e.dataLabel,l&&(e.connector=e.connector.destroy(),e.connectors&& (1===e.connectors.length?delete e.connectors:delete e.connectors[b])))})})}e.fireEvent(this,"afterDrawDataLabels")};m.prototype.alignDataLabel=function(e,c,g,h,d){var a=this,f=this.chart,l=this.isCartesian&&f.inverted,m=this.enabledDataSorting,p=r(e.dlBox&&e.dlBox.centerX,e.plotX,-9999),u=r(e.plotY,-9999),v=c.getBBox(),z=g.rotation,A=g.align,C=f.isInsidePlot(p,Math.round(u),l),n="justify"===r(g.overflow,m?"none":"justify"),b=this.visible&&!1!==e.visible&&(e.series.forceDL||m&&!n||C||g.inside&&h&& f.isInsidePlot(p,l?h.x+1:h.y+h.height-1,l));var B=function(b){m&&a.xAxis&&!n&&a.setDataLabelStartPos(e,c,d,C,b)};if(b){var x=f.renderer.fontMetrics(f.styledMode?void 0:g.style.fontSize,c).b;h=E({x:l?this.yAxis.len-u:p,y:Math.round(l?this.xAxis.len-p:u),width:0,height:0},h);E(g,{width:v.width,height:v.height});z?(n=!1,p=f.renderer.rotCorr(x,z),p={x:h.x+g.x+h.width/2+p.x,y:h.y+g.y+{top:0,middle:.5,bottom:1}[g.verticalAlign]*h.height},B(p),c[d?"attr":"animate"](p).attr({align:A}),B=(z+720)%360,B=180< B&&360>B,"left"===A?p.y-=B?v.height:0:"center"===A?(p.x-=v.width/2,p.y-=v.height/2):"right"===A&&(p.x-=v.width,p.y-=B?0:v.height),c.placed=!0,c.alignAttr=p):(B(h),c.align(g,null,h),p=c.alignAttr);n&&0<=h.height?this.justifyDataLabel(c,g,p,v,h,d):r(g.crop,!0)&&(b=f.isInsidePlot(p.x,p.y)&&f.isInsidePlot(p.x+v.width,p.y+v.height));if(g.shape&&!z)c[d?"attr":"animate"]({anchorX:l?f.plotWidth-e.plotY:e.plotX,anchorY:l?f.plotHeight-e.plotX:e.plotY})}d&&m&&(c.placed=!1);b||m&&!n||(c.hide(!0),c.placed=!1)}; m.prototype.setDataLabelStartPos=function(e,c,g,h,d){var a=this.chart,f=a.inverted,l=this.xAxis,m=l.reversed,p=f?c.height/2:c.width/2;e=(e=e.pointWidth)?e/2:0;l=f?d.x:m?-p-e:l.width-p+e;d=f?m?this.yAxis.height-p+e:-p-e:d.y;c.startXPos=l;c.startYPos=d;h?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);a.hasRendered&&(g&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)};m.prototype.justifyDataLabel=function(e,c,g,h, d,a){var f=this.chart,l=c.align,m=c.verticalAlign,p=e.box?0:e.padding||0;var r=g.x+p;if(0>r){"right"===l?(c.align="left",c.inside=!0):c.x=-r;var u=!0}r=g.x+h.width-p;r>f.plotWidth&&("left"===l?(c.align="right",c.inside=!0):c.x=f.plotWidth-r,u=!0);r=g.y+p;0>r&&("bottom"===m?(c.verticalAlign="top",c.inside=!0):c.y=-r,u=!0);r=g.y+h.height-p;r>f.plotHeight&&("top"===m?(c.verticalAlign="bottom",c.inside=!0):c.y=f.plotHeight-r,u=!0);u&&(e.placed=!a,e.align(c,null,d));return u};H.pie&&(H.pie.prototype.dataLabelPositioners= {radialDistributionY:function(e){return e.top+e.distributeBox.pos},radialDistributionX:function(e,c,g,h){return e.getX(gc.bottom-2?h:g,c.half,c)},justify:function(e,c,g){return g[0]+(e.half?-1:1)*(c+e.labelDistance)},alignToPlotEdges:function(e,c,g,h){e=e.getBBox().width;return c?e+h:g-e-h},alignToConnectors:function(e,c,g,h){var d=0,a;e.forEach(function(c){a=c.dataLabel.getBBox().width;a>d&&(d=a)});return c?d+h:g-d-h}},H.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,g,h= f.chart,d=f.options.dataLabels||{},a=d.connectorPadding,k,t=h.plotWidth,p=h.plotHeight,v=h.plotLeft,z=Math.round(h.chartWidth/3),A,C=f.center,D=C[2]/2,N=C[1],n,b,B,x,E=[[],[]],H,M,K,q,Q=[0,0,0,0],R=f.dataLabelPositioners,X;f.visible&&(d.enabled||f._hasPointLabels)&&(c.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),m.prototype.drawDataLabels.apply(f),c.forEach(function(a){a.dataLabel&& (a.visible?(E[a.half].push(a),a.dataLabel._pos=null,!L(d.style.width)&&!L(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>z&&(a.dataLabel.css({width:.7*z}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),E.forEach(function(c,k){var l=c.length,m=[],w;if(l){f.sortByAngle(c,k-.5);if(0t-a&&0===k&&(u=Math.round(H+b-t+a),Q[1]=Math.max(u,Q[1])),0>M-x/2?Q[0]=Math.max(Math.round(-M+x/2),Q[0]):M+x/2>p&&(Q[2]=Math.max(Math.round(M+x/2-p),Q[2])),n.sideOverflow=u)}}}),0===u(Q)||this.verifyDataLabelOverflow(Q))&&(this.placeDataLabels(),this.points.forEach(function(a){X=J(d,a.options.dataLabels);if(k=r(X.connectorWidth,1)){var b;A=a.connector;if((n=a.dataLabel)&&n._pos&&a.visible&&0r(this.translatedThreshold,f.yAxis.len)),u=r(g.inside,!!this.options.stacking);l&&(h=J(l),0>h.y&&(h.height+= h.y,h.y=0),l=h.y+h.height-f.yAxis.len,0H.x+H.width||f.x+f.width H.y+H.height||f.y+f.height=k&&g<=l||b||!A(g))m=!0;d[b?"zoomX":"zoomY"]&&m&&(e=h.zoom(a.min,a.max),h.displayBtn&&(f=!0))});var h=c.resetZoomButton;f&&!h?c.showResetZoom():!f&&D(h)&&(c.resetZoomButton=h.destroy());e&&c.redraw(m(c.options.chart.animation,a&&a.animation,100>c.pointCount))},pan:function(a,c){var e=this,d=e.hoverPoints,f=e.options.chart,g;c="object"=== typeof c?c:{enabled:c,type:"x"};f&&f.panning&&(f.panning=c);var h=c.type;J(this,"pan",{originalEvent:a},function(){d&&d.forEach(function(a){a.setState()});var c=[1];"xy"===h?c=[1,0]:"y"===h&&(c=[0]);c.forEach(function(c){var d=e[c?"xAxis":"yAxis"][0],f=d.options,b=d.horiz,h=a[b?"chartX":"chartY"];b=b?"mouseDownX":"mouseDownY";var k=e[b],l=(d.pointRange||0)/2,m=d.reversed&&!e.inverted||!d.reversed&&e.inverted?-1:1,p=d.getExtremes(),t=d.toValue(k-h,!0)+l*m;m=d.toValue(k+d.len-h,!0)-l*m;var q=m=d.panningState.startMin&&t<=d.panningState.startMax)d.setExtremes(k,t,!1,!1,{trigger:"pan"}),g=!0;e[b]=h}});g&&e.redraw(!1);E(e.container,{cursor:"move"})})}});C(p.prototype,{select:function(a,c){var d=this, e=d.series,f=e.chart;this.selectedStaging=a=m(a,!d.selected);d.firePointEvent(a?"select":"unselect",{accumulate:c},function(){d.selected=d.options.selected=a;e.options.data[e.data.indexOf(d)]=d.options;d.setState(a&&"select");c||f.getSelectedPoints().forEach(function(a){var c=a.series;a.selected&&a!==d&&(a.selected=a.options.selected=!1,c.options.data[c.data.indexOf(a)]=a.options,a.setState(f.hoverPoints&&c.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});delete this.selectedStaging}, onMouseOver:function(a){var c=this.series.chart,d=c.pointer;a=a?d.normalize(a):d.getChartCoordinatesFromPoint(this,c.inverted);d.runPointActions(a,this)},onMouseOut:function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var a=this,c=M(a.series.options.point,a.options).events;a.events=c;v(c,function(c,d){r(c)&& K(a,d,c)});this.hasImportedEvents=!0}},setState:function(a,c){var d=this.series,e=this.state,g=d.options.states[a||"normal"]||{},h=f[d.type].marker&&d.options.marker,k=h&&!1===h.enabled,l=h&&h.states&&h.states[a||"normal"]||{},p=!1===l.enabled,r=d.stateMarkerGraphic,n=this.marker||{},b=d.chart,u=d.halo,v,z=h&&d.markerAttribs;a=a||"";if(!(a===this.state&&!c||this.selected&&"select"!==a||!1===g.enabled||a&&(p||k&&!1===l.enabled)||a&&n.states&&n.states[a]&&!1===n.states[a].enabled)){this.state=a;z&& (v=d.markerAttribs(this,a));if(this.graphic){e&&this.graphic.removeClass("highcharts-point-"+e);a&&this.graphic.addClass("highcharts-point-"+a);if(!b.styledMode){var A=d.pointAttribs(this,a);var D=m(b.options.chart.animation,g.animation);d.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach(function(a){a&&a.animate({opacity:A.opacity},D)}),this.connector&&this.connector.animate({opacity:A.opacity},D));this.graphic.animate(A,D)}v&&this.graphic.animate(v,m(b.options.chart.animation,l.animation, h.animation));r&&r.hide()}else{if(a&&l){e=n.symbol||d.symbol;r&&r.currentSymbol!==e&&(r=r.destroy());if(v)if(r)r[c?"animate":"attr"]({x:v.x,y:v.y});else e&&(d.stateMarkerGraphic=r=b.renderer.symbol(e,v.x,v.y,v.width,v.height).add(d.markerGroup),r.currentSymbol=e);!b.styledMode&&r&&r.attr(d.pointAttribs(this,a))}r&&(r[a&&this.isInside?"show":"hide"](),r.element.point=this)}a=g.halo;g=(r=this.graphic||r)&&r.visibility||"inherit";a&&a.size&&r&&"hidden"!==g&&!this.isCluster?(u||(d.halo=u=b.renderer.path().add(r.parentGroup)), u.show()[c?"animate":"attr"]({d:this.haloPath(a.size)}),u.attr({"class":"highcharts-halo highcharts-color-"+m(this.colorIndex,d.colorIndex)+(this.className?" "+this.className:""),visibility:g,zIndex:-1}),u.point=this,b.styledMode||u.attr(C({fill:this.color||d.color,"fill-opacity":a.opacity},a.attributes))):u&&u.point&&u.point.haloPath&&u.animate({d:u.point.haloPath(0)},null,u.hide);J(this,"afterSetState")}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)- a,this.plotY-a,2*a,2*a)}});C(l.prototype,{onMouseOver:function(){var a=this.chart,c=a.hoverSeries;if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&J(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,c=this.chart,d=c.tooltip,e=c.hoverPoint;c.hoverSeries=null;if(e)e.onMouseOut();this&&a.events.mouseOut&&J(this,"mouseOut");!d||this.stickyTracking||d.shared&&!this.noSharedTooltip||d.hide();c.series.forEach(function(a){a.setState("",!0)})}, setState:function(a,c){var d=this,e=d.options,f=d.graph,g=e.inactiveOtherPoints,h=e.states,k=e.lineWidth,l=e.opacity,p=m(h[a||"normal"]&&h[a||"normal"].animation,d.chart.options.chart.animation);e=0;a=a||"";if(d.state!==a&&([d.group,d.markerGroup,d.dataLabelsGroup].forEach(function(c){c&&(d.state&&c.removeClass("highcharts-series-"+d.state),a&&c.addClass("highcharts-series-"+a))}),d.state=a,!d.chart.styledMode)){if(h[a]&&!1===h[a].enabled)return;a&&(k=h[a].lineWidth||k+(h[a].lineWidthPlus||0),l=m(h[a].opacity, l));if(f&&!f.dashstyle)for(h={"stroke-width":k},f.animate(h,p);d["zone-graph-"+e];)d["zone-graph-"+e].attr(h),e+=1;g||[d.group,d.markerGroup,d.dataLabelsGroup,d.labelBySeries].forEach(function(a){a&&a.animate({opacity:l},p)})}c&&g&&d.points&&d.setAllPointsToState(a)},setAllPointsToState:function(a){this.points.forEach(function(c){c.setState&&c.setState(a)})},setVisible:function(a,c){var d=this,e=d.chart,f=d.legendItem,g=e.options.chart.ignoreHiddenSeries,h=d.visible;var k=(d.visible=a=d.options.visible= d.userOptions.visible="undefined"===typeof a?!h:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(d[a])d[a][k]()});if(e.hoverSeries===d||(e.hoverPoint&&e.hoverPoint.series)===d)d.onMouseOut();f&&e.legend.colorizeItem(d,a);d.isDirty=!0;d.options.stacking&&e.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});d.linkedSeries.forEach(function(c){c.setVisible(a,!1)});g&&(e.isDirtyBox=!0);J(d,k);!1!==c&&e.redraw()},show:function(){this.setVisible(!0)}, hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);J(this,a?"select":"unselect")},drawTracker:e.drawTrackerGraph})});R(p,"parts/Responsive.js",[p["parts/Globals.js"],p["parts/Utilities.js"]],function(e,g){var p=g.find,u=g.isArray,K=g.isObject,L=g.merge,E=g.objectEach,A=g.pick,C=g.splat,J=g.uniqueKey;e=e.Chart;e.prototype.setResponsive=function(e,g){var r=this.options.responsive, u=[],v=this.currentResponsive;!g&&r&&r.rules&&r.rules.forEach(function(e){"undefined"===typeof e._id&&(e._id=J());this.matchResponsiveRule(e,u)},this);g=L.apply(0,u.map(function(e){return p(r.rules,function(g){return g._id===e}).chartOptions}));g.isResponsiveOptions=!0;u=u.toString()||void 0;u!==(v&&v.ruleIds)&&(v&&this.update(v.undoOptions,e,!0),u?(v=this.currentOptions(g),v.isResponsiveOptions=!0,this.currentResponsive={ruleIds:u,mergedOptions:g,undoOptions:v},this.update(g,e,!0)):this.currentResponsive= void 0)};e.prototype.matchResponsiveRule=function(e,g){var p=e.condition;(p.callback||function(){return this.chartWidth<=A(p.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=A(p.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=A(p.minWidth,0)&&this.chartHeight>=A(p.minHeight,0)}).call(this)&&g.push(e._id)};e.prototype.currentOptions=function(e){function g(e,m,r,f){var c;E(e,function(e,h){if(!f&&-1