/* Highcharts JS v9.0.1 (2021-02-15) (c) 2009-2021 Torstein Honsi License: www.highcharts.com/license */ (function(W,P){"object"===typeof module&&module.exports?(P["default"]=P,module.exports=W.document?P(W):P):"function"===typeof define&&define.amd?define("highcharts/highcharts",function(){return P(W)}):(W.Highcharts&&W.Highcharts.error(16,!0),W.Highcharts=P(W))})("undefined"!==typeof window?window:this,function(W){function P(f,d,k,x){f.hasOwnProperty(d)||(f[d]=x.apply(null,k))}var k={};P(k,"Core/Globals.js",[],function(){var f="undefined"!==typeof W?W:"undefined"!==typeof window?window:{},d=f.document, k=f.navigator&&f.navigator.userAgent||"",x=d&&d.createElementNS&&!!d.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,B=/(edge|msie|trident)/i.test(k)&&!f.opera,G=-1!==k.indexOf("Firefox"),D=-1!==k.indexOf("Chrome"),H=G&&4>parseInt(k.split("Firefox/")[1],10),t=function(){};return{product:"Highcharts",version:"9.0.1",deg2rad:2*Math.PI/360,doc:d,hasBidiBug:H,hasTouch:!!f.TouchEvent,isMS:B,isWebKit:-1!==k.indexOf("AppleWebKit"),isFirefox:G,isChrome:D,isSafari:!D&&-1!==k.indexOf("Safari"), isTouchDevice:/(Mobile|Android|Windows Phone)/.test(k),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},supportsPassiveEvents:function(){var C=!1;if(!B){var l=Object.defineProperty({},"passive",{get:function(){C=!0}});f.addEventListener&&f.removeEventListener&&(f.addEventListener("testPassive",t,l),f.removeEventListener("testPassive",t,l))}return C}(),symbolSizes:{},svg:x,win:f,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:t,charts:[],dateFormats:{}}});P(k,"Core/Utilities.js", [k["Core/Globals.js"]],function(f){function d(a,c,v,L){var p=c?"Highcharts error":"Highcharts warning";32===a&&(a=p+": Deprecated member");var K=l(a),h=K?p+" #"+a+": www.highcharts.com/errors/"+a+"/":a.toString();p=function(){if(c)throw Error(h);b.console&&-1===d.messages.indexOf(h)&&console.warn(h)};if("undefined"!==typeof L){var g="";K&&(h+="?");m(L,function(p,a){g+="\n - "+a+": "+p;K&&(h+=encodeURI(a)+"="+encodeURI(p))});h+=g}v?e(v,"displayError",{code:a,message:h,params:L},p):p();d.messages.push(h)} function k(){var a,b=arguments,v={},L=function(p,a){"object"!==typeof p&&(p={});m(a,function(b,u){"__proto__"!==u&&"constructor"!==u&&(!H(b,!0)||C(b)||t(b)?p[u]=a[u]:p[u]=L(p[u]||{},b))});return p};!0===b[0]&&(v=b[1],b=Array.prototype.slice.call(b,2));var p=b.length;for(a=0;aa&&-Infinitye[1]){var u=b+ +e[1];0<=u?(e[0]=(+e[0]).toExponential(u).split("e")[0],b=u):(e[0]=e[0].split(".")[0]||0,a=20>b?(e[0]*Math.pow(10, e[1])).toFixed(b):0,e[1]=0)}var m=(Math.abs(e[1]?e[0]:a)+Math.pow(10,-Math.max(b,K)-1)).toFixed(b);K=String(B(m));u=3a?"-":"")+(u?K.substr(0,u)+L:"");a=0>+e[1]&&!h?"0":a+K.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+L);b&&(a+=v+m.slice(-b));e[1]&&0!==+a&&(a+="e"+e[1]);return a}function z(a,b){if(!a)return b;var v=a.split(".").reverse();if(1===v.length)return b[a];for(a=v.pop();"undefined"!==typeof a&&"undefined"!==typeof b&&null!== b;)b=b[a],a=v.pop();return b}function m(a,b,v){for(var e in a)Object.hasOwnProperty.call(a,e)&&b.call(v||a[e],a[e],e,a)}function r(a,b,v){function e(p,b){var u=a.removeEventListener||f.removeEventListenerPolyfill;u&&u.call(a,p,b,!1)}function p(p){var u;if(a.nodeName){if(b){var v={};v[b]=!0}else v=p;m(v,function(a,b){if(p[b])for(u=p[b].length;u--;)e(b,p[b][u].fn)})}}var K="function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(K,"hcEvents")){var h=K.hcEvents;b?(K=h[b]||[],v?(h[b]=K.filter(function(a){return v!== a.fn}),e(b,v)):(p(h),h[b]=[])):(p(h),delete K.hcEvents)}}function e(b,e,v,L){v=v||{};if(a.createEvent&&(b.dispatchEvent||b.fireEvent)){var p=a.createEvent("Events");p.initEvent(e,!0,!0);y(p,v);b.dispatchEvent?b.dispatchEvent(p):b.fireEvent(e,p)}else if(b.hcEvents){v.target||y(v,{preventDefault:function(){v.defaultPrevented=!0},target:b,type:e});p=[];for(var K=b,h=!1;K.hcEvents;)Object.hasOwnProperty.call(K,"hcEvents")&&K.hcEvents[e]&&(p.length&&(h=!0),p.unshift.apply(p,K.hcEvents[e])),K=Object.getPrototypeOf(K); h&&p.sort(function(a,p){return a.order-p.order});p.forEach(function(a){!1===a.fn.call(b,v)&&v.preventDefault()})}L&&!v.defaultPrevented&&L.call(b,v)}var h=f.charts,a=f.doc,b=f.win;"";(d||(d={})).messages=[];var w;Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var J=Array.prototype.find?function(a,b){return a.find(b)}:function(a,b){var v,e=a.length;for(v=0;vv&&(v=a[b]);return v},arrayMin:function(a){for(var b=a.length,v=a[0];b--;)a[b]b?a=e-1&&(e=Math.floor(v)),Math.max(0,e-f.getStyle(a,"padding-left")-f.getStyle(a,"padding-right"));if("height"===e)return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-f.getStyle(a,"padding-top")-f.getStyle(a,"padding-bottom"));b.getComputedStyle|| d(27,!0);if(a=b.getComputedStyle(a,void 0))a=a.getPropertyValue(e),c(v,"opacity"!==e)&&(a=B(a));return a},inArray:function(a,b,v){d(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return b.indexOf(a,v)},isArray:D,isClass:C,isDOMElement:t,isFunction:function(a){return"function"===typeof a},isNumber:l,isObject:H,isString:G,keys:function(a){d(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(a)},merge:k,normalizeTickInterval:function(a,b,v,e,p){var K=a;v=c(v,1);var h=a/ v;b||(b=p?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===e&&(1===v?b=b.filter(function(a){return 0===a%1}):.1>=v&&(b=[1/v])));for(e=0;e=a||!p&&h<=(b[e]+(b[e+1]||b[e]))/2);e++);return K=A(K*v,-Math.round(Math.log(.001)/Math.LN10))},numberFormat:M,objectEach:m,offset:function(e){var h=a.documentElement;e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(b.pageYOffset||h.scrollTop)-(h.clientTop||0),left:e.left+(b.pageXOffset|| h.scrollLeft)-(h.clientLeft||0),width:e.width,height:e.height}},pad:function(a,b,v){return Array((b||2)+1-String(a).replace("-","").length).join(v||"0")+a},pick:c,pInt:B,relativeLength:function(a,b,v){return/%$/.test(a)?b*parseFloat(a)/100+(v||0):parseFloat(a)},removeEvent:r,setOptions:R,splat:function(a){return D(a)?a:[a]},stableSort:function(a,b){var v=a.length,e,p;for(p=0;p>16,(f&65280)>>8,f&255,1]:4===C&&(k=[(f&3840)>>4|(f&3840)>>8,(f&240)>> 4|f&240,(f&15)<<4|f&15,1])}if(!k)for(t=this.parsers.length;t--&&!k;){var l=this.parsers[t];(C=l.regex.exec(f))&&(k=l.parse(C))}}this.rgba=k||[]};d.prototype.get=function(d){var f=this.input,t=this.rgba;if("undefined"!==typeof this.stops){var C=x(f);C.stops=[].concat(C.stops);this.stops.forEach(function(l,E){C.stops[E]=[C.stops[E][0],l.get(d)]})}else C=t&&k(t[0])?"rgb"===d||!d&&1===t[3]?"rgb("+t[0]+","+t[1]+","+t[2]+")":"a"===d?t[3]:"rgba("+t.join(",")+")":f;return C};d.prototype.brighten=function(d){var f, t=this.rgba;if(this.stops)this.stops.forEach(function(C){C.brighten(d)});else if(k(d)&&0!==d)for(f=0;3>f;f++)t[f]+=B(255*d),0>t[f]&&(t[f]=0),255C)for(var l=0;l=E+this.startTime){this.now=this.end;this.pos=1;this.update();var y=g[this.prop]=!0;B(g,function(c){!0!==c&&(y=!1)});y&&l&&l.call(C);d=!1}else this.pos=t.easing((f-this.startTime)/E),this.now=this.start+(this.end-this.start)*this.pos,this.update(),d=!0;return d};d.prototype.initPath=function(d,f,t){function C(c,g){for(;c.length< A;){var m=c[0],n=g[A-c.length];n&&"M"===m[0]&&(c[0]="C"===n[0]?["C",m[1],m[2],m[1],m[2],m[1],m[2]]:["L",m[1],m[2]]);c.unshift(m);y&&c.push(c[c.length-1])}}function l(g,n){for(;g.lengthp.width)p={width:0,height:0}}else p=this.htmlGetBBox();c.isSVG&&(b=p.width,c=p.height,v&&(p.height=c={"11px,17":14,"13px,20":16}[g&&g.fontSize+","+Math.round(c)]||c),e&&(g=e*C,p.width=Math.abs(c*Math.sin(g))+Math.abs(b*Math.cos(g)),p.height=Math.abs(c* Math.cos(g))+Math.abs(b*Math.sin(g))));if(w&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")};f.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};f.prototype.translate=function(a,b){return this.attr({translateX:a,translateY:b})};f.prototype.updateShadows=function(a,b,p){var e=this.shadows;if(e)for(var c=e.length;c--;)p.call(e[c],"height"===a?Math.max(b-(e[c].cutHeight||0),0):"d"===a?this.d:b,a,e[c])};f.prototype.updateTransform= function(){var a=this.translateX||0,b=this.translateY||0,p=this.scaleX,e=this.scaleY,c=this.inverted,h=this.rotation,u=this.matrix,g=this.element;c&&(a+=this.width,b+=this.height);a=["translate("+a+","+b+")"];z(u)&&a.push("matrix("+u.join(",")+")");c?a.push("rotate(90) scale(-1,1)"):h&&a.push("rotate("+h+" "+F(this.rotationOriginX,g.getAttribute("x"),0)+" "+F(this.rotationOriginY,g.getAttribute("y")||0)+")");(z(p)||z(e))&&a.push("scale("+F(p,1)+" "+F(e,1)+")");a.length&&g.setAttribute("transform", a.join(" "))};f.prototype.visibilitySetter=function(a,b,p){"inherit"===a?p.removeAttribute(b):this[b]!==a&&p.setAttribute(b,a);this[b]=a};f.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};f.prototype.zIndexSetter=function(a,b){var p=this.renderer,e=this.parentGroup,c=(e||p).element||p.box,h=this.element,u=!1;p=c===p.box;var g=this.added;var I;z(a)?(h.setAttribute("data-z-index",a),a=+a,this[b]===a&&(g=!1)):z(this[b])&& h.removeAttribute("data-z-index");this[b]=a;if(g){(a=this.zIndex)&&e&&(e.handleZ=!0);b=c.childNodes;for(I=b.length-1;0<=I&&!u;I--){e=b[I];g=e.getAttribute("data-z-index");var m=!z(g);if(e!==h)if(0>a&&m&&!p&&!I)c.insertBefore(h,b[I]),u=!0;else if(N(g)<=a||m&&(!z(a)||0<=a))c.insertBefore(h,b[I+1]||null),u=!0}u||(c.insertBefore(h,b[p?3:0]||null),u=!0)}return u};return f}();f.prototype["stroke-widthSetter"]=f.prototype.strokeSetter;f.prototype.yGetter=f.prototype.xGetter;f.prototype.matrixSetter=f.prototype.rotationOriginXSetter= f.prototype.rotationOriginYSetter=f.prototype.rotationSetter=f.prototype.scaleXSetter=f.prototype.scaleYSetter=f.prototype.translateXSetter=f.prototype.translateYSetter=f.prototype.verticalAlignSetter=function(a,b){this[b]=a;this.doTransform=!0};x.SVGElement=f;return x.SVGElement});P(k,"Core/Renderer/SVG/SVGLabel.js",[k["Core/Renderer/SVG/SVGElement.js"],k["Core/Utilities.js"]],function(f,d){function k(f,d){D(f)?f!==this[d]&&(this[d]=f,this.updateTextPadding()):this[d]=void 0}var x=this&&this.__extends|| function(){var f=function(d,g){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,c){g.__proto__=c}||function(g,c){for(var q in c)c.hasOwnProperty(q)&&(g[q]=c[q])};return f(d,g)};return function(d,g){function y(){this.constructor=d}f(d,g);d.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)}}(),B=d.defined,G=d.extend,D=d.isNumber,H=d.merge,t=d.pick,C=d.removeEvent;return function(d){function l(g,f,c,q,n,A,M,z,m,r){var e=d.call(this)||this;e.paddingSetter=k;e.paddingLeftSetter= k;e.paddingRightSetter=k;e.init(g,"g");e.textStr=f;e.x=c;e.y=q;e.anchorX=A;e.anchorY=M;e.baseline=m;e.className=r;"button"!==r&&e.addClass("highcharts-label");r&&e.addClass("highcharts-"+r);e.text=g.text("",0,0,z).attr({zIndex:1});if("string"===typeof n){var h=/^url\((.*?)\)$/.test(n);if(e.renderer.symbols[n]||h)e.symbolKey=n}e.bBox=l.emptyBBox;e.padding=3;e.baselineOffset=0;e.needsBox=g.styledMode||h;e.deferredAttr={};e.alignFactor=0;return e}x(l,d);l.prototype.alignSetter=function(g){g={left:0, center:.5,right:1}[g];g!==this.alignFactor&&(this.alignFactor=g,this.bBox&&D(this.xSetting)&&this.attr({x:this.xSetting}))};l.prototype.anchorXSetter=function(g,l){this.anchorX=g;this.boxAttr(l,Math.round(g)-this.getCrispAdjust()-this.xSetting)};l.prototype.anchorYSetter=function(g,l){this.anchorY=g;this.boxAttr(l,g-this.ySetting)};l.prototype.boxAttr=function(g,l){this.box?this.box.attr(g,l):this.deferredAttr[g]=l};l.prototype.css=function(g){if(g){var d={};g=H(g);l.textProps.forEach(function(c){"undefined"!== typeof g[c]&&(d[c]=g[c],delete g[c])});this.text.css(d);var c="width"in d;"fontSize"in d||"fontWeight"in d?this.updateTextPadding():c&&this.updateBoxSize()}return f.prototype.css.call(this,g)};l.prototype.destroy=function(){C(this.element,"mouseenter");C(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());f.prototype.destroy.call(this)};l.prototype.fillSetter=function(g,l){g&&(this.needsBox=!0);this.fill=g;this.boxAttr(l,g)};l.prototype.getBBox=function(){var g= this.bBox,l=this.padding,c=t(this.paddingLeft,l);return{width:this.width,height:this.height,x:g.x-c,y:g.y-l}};l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};l.prototype.heightSetter=function(g){this.heightSetting=g};l.prototype.on=function(g,l){var c=this,q=c.text,n=q&&"SPAN"===q.element.tagName?q:void 0;if(n){var d=function(q){("mouseenter"===g||"mouseleave"===g)&&q.relatedTarget instanceof Element&&(c.element.compareDocumentPosition(q.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||n.element.compareDocumentPosition(q.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||l.call(c.element,q)};n.on(g,d)}f.prototype.on.call(c,g,d||l);return c};l.prototype.onAdd=function(){var g=this.textStr;this.text.add(this);this.attr({text:B(g)?g:"",x:this.x,y:this.y});this.box&&B(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};l.prototype.rSetter=function(g,l){this.boxAttr(l, g)};l.prototype.shadow=function(g){g&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(g));return this};l.prototype.strokeSetter=function(g,l){this.stroke=g;this.boxAttr(l,g)};l.prototype["stroke-widthSetter"]=function(g,l){g&&(this.needsBox=!0);this["stroke-width"]=g;this.boxAttr(l,g)};l.prototype["text-alignSetter"]=function(g){this.textAlign=g};l.prototype.textSetter=function(g){"undefined"!==typeof g&&this.text.attr({text:g});this.updateTextPadding()};l.prototype.updateBoxSize= function(){var g=this.text.element.style,d={},c=this.padding,q=this.bBox=D(this.widthSetting)&&D(this.heightSetting)&&!this.textAlign||!B(this.text.textStr)?l.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||q.height||0)+2*c;this.baselineOffset=c+Math.min(this.renderer.fontMetrics(g&&g.fontSize,this.text).b,q.height||Infinity);this.needsBox&&(this.box||(g=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),g.addClass(("button"=== this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),g.add(this)),g=this.getCrispAdjust(),d.x=g,d.y=(this.baseline?-this.baselineOffset:0)+g,d.width=Math.round(this.width),d.height=Math.round(this.height),this.box.attr(G(d,this.deferredAttr)),this.deferredAttr={})};l.prototype.updateTextPadding=function(){var g=this.text;this.updateBoxSize();var l=this.baseline?0:this.baselineOffset,c=t(this.paddingLeft,this.padding);B(this.widthSetting)&&this.bBox&& ("center"===this.textAlign||"right"===this.textAlign)&&(c+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(c!==g.x||l!==g.y)g.attr("x",c),g.hasBoxWidthChanged&&(this.bBox=g.getBBox(!0)),"undefined"!==typeof l&&g.attr("y",l);g.x=c;g.y=l};l.prototype.widthSetter=function(g){this.widthSetting=D(g)?g:void 0};l.prototype.getPaddedWidth=function(){var g=this.padding,l=t(this.paddingLeft,g);g=t(this.paddingRight,g);return(this.widthSetting||this.bBox.width||0)+l+g};l.prototype.xSetter= function(g){this.x=g;this.alignFactor&&(g-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(g);this.attr("translateX",this.xSetting)};l.prototype.ySetter=function(g){this.ySetting=this.y=Math.round(g);this.attr("translateY",this.ySetting)};l.emptyBBox={width:0,height:0,x:0,y:0};l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return l}(f)});P(k,"Core/Renderer/SVG/TextBuilder.js", [k["Core/Globals.js"],k["Core/Utilities.js"],k["Core/Renderer/HTML/AST.js"]],function(f,d,k){var x=f.doc,B=f.SVG_NS,S=d.attr,D=d.isString,H=d.objectEach,t=d.pick;return function(){function d(l){var d=l.styles;this.renderer=l.renderer;this.svgElement=l;this.width=l.textWidth;this.textLineHeight=d&&d.lineHeight;this.textOutline=d&&d.textOutline;this.ellipsis=!(!d||"ellipsis"!==d.textOverflow);this.noWrap=!(!d||"nowrap"!==d.whiteSpace);this.fontSize=d&&d.fontSize}d.prototype.buildSVG=function(){var l= this.svgElement,d=l.element,g=l.renderer,f=t(l.textStr,"").toString(),c=-1!==f.indexOf("<"),q=d.childNodes,n=q.length;g=this.width&&!l.added&&g.box;var A=//g;var M=[f,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(M!==l.textCache){l.textCache=M;for(delete l.actualWidth;n--;)d.removeChild(q[n]);c||this.ellipsis||this.width||-1!==f.indexOf(" ")&&(!this.noWrap||A.test(f))?""!==f&&(g&&g.appendChild(d),f=new k(f),this.modifyTree(f.nodes),f.addToDOM(l.element), this.modifyDOM(),this.ellipsis&&-1!==(d.textContent||"").indexOf("\u2026")&&l.attr("title",this.unescapeEntities(l.textStr||"",["<",">"])),g&&g.removeChild(d)):d.appendChild(x.createTextNode(this.unescapeEntities(f)));D(this.textOutline)&&l.applyTextOutline&&l.applyTextOutline(this.textOutline)}};d.prototype.modifyDOM=function(){var d=this,f=this.svgElement,g=S(f.element,"x");[].forEach.call(f.element.querySelectorAll("tspan.highcharts-br"),function(c){c.nextSibling&&c.previousSibling&&S(c, {dy:d.getLineHeight(c.nextSibling),x:g})});var y=this.width||0;if(y){var c=function(c,q){var n=c.textContent||"",l=n.replace(/([^\^])-/g,"$1- ").split(" "),m=!d.noWrap&&(1c){for(;m<=r;)e=Math.ceil((m+r)/2),g&&(h=q(g,e)),b=a(e,h&&h.length-1),m===r?m=r+1:b>c?r=e-1:m=e;0===r?d.textContent="":f&&r===f.length-1||(d.textContent=h||q(f||g,e))}g&&g.splice(0,e);n.actualWidth=b;n.rotation=M};d.prototype.unescapeEntities=function(d,f){H(this.renderer.escapes,function(g,l){f&&-1!==f.indexOf(g)||(d=d.toString().replace(new RegExp(g,"g"),l))});return d};return d}()});P(k,"Core/Renderer/SVG/SVGRenderer.js", [k["Core/Color/Color.js"],k["Core/Globals.js"],k["Core/Color/Palette.js"],k["Core/Renderer/SVG/SVGElement.js"],k["Core/Renderer/SVG/SVGLabel.js"],k["Core/Renderer/HTML/AST.js"],k["Core/Renderer/SVG/TextBuilder.js"],k["Core/Utilities.js"]],function(f,d,k,x,B,G,D,H){var t=H.addEvent,C=H.attr,l=H.createElement,E=H.css,g=H.defined,y=H.destroyObjectProperties,c=H.extend,q=H.isArray,n=H.isNumber,A=H.isObject,M=H.isString,z=H.merge,m=H.pick,r=H.pInt,e=H.uniqueKey,h=d.charts,a=d.deg2rad,b=d.doc,w=d.isFirefox, J=d.isMS,O=d.isWebKit;H=d.noop;var F=d.SVG_NS,N=d.symbolSizes,R=d.win,Q,T=function(){function d(a,b,e,c,h,u,g){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(a,b,e,c,h,u,g)}d.prototype.init=function(a,p,e,c,h,u,g){var K=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});g||K.css(this.getStyle(c));c=K.element; a.appendChild(c);C(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&C(c,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=c;this.boxWrapper=K;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(b.createTextNode("Created with Highcharts 9.0.1"));this.defs=this.createElement("defs").add();this.allowHTML=u;this.forExport=h;this.styledMode=g;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(p,e,!1);var m;w&&a.getBoundingClientRect&& (p=function(){E(a,{left:0,top:0});m=a.getBoundingClientRect();E(a,{left:Math.ceil(m.left)-m.left+"px",top:Math.ceil(m.top)-m.top+"px"})},p(),this.unSubPixelFix=t(R,"resize",p))};d.prototype.definition=function(a){return(new G([a])).addToDOM(this.defs.element)};d.prototype.getReferenceURL=function(){if((w||O)&&b.getElementsByTagName("base").length){if(!g(Q)){var a=e();a=(new G([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:a},children:[{tagName:"rect", attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+a+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(b.body);E(a,{position:"fixed",top:0,left:0,zIndex:9E5});var p=b.elementFromPoint(6,6);Q="hitme"===(p&&p.id);b.body.removeChild(a)}if(Q)return R.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};d.prototype.getStyle=function(a){return this.style=c({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize:"12px"},a)};d.prototype.setStyle=function(a){this.boxWrapper.css(this.getStyle(a))};d.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};d.prototype.destroy=function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();y(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};d.prototype.createElement=function(a){var b=new this.Element;b.init(this,a);return b};d.prototype.getRadialAttr= function(a,b){return{cx:a[0]-a[2]/2+b.cx*a[2],cy:a[1]-a[2]/2+b.cy*a[2],r:b.r*a[2]}};d.prototype.buildText=function(a){(new D(a)).buildSVG()};d.prototype.getContrast=function(a){a=f.parse(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459a?a+3:Math.round(1.2*a);return{h:b,b:Math.round(.8*b),f:a}};d.prototype.rotCorr=function(b,p,e){var c=b;p&&e&&(c=Math.max(c*Math.cos(p*a),4));return{x:-b/3*Math.sin(p*a),y:c}};d.prototype.pathToSegments=function(a){for(var b=[],e=[],c={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},h=0;h":">","'":"'",'"':"""};T.prototype.symbols={circle:function(a,b,e,c){return this.arc(a+e/2,b+c/2,e/2,c/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(a,b,e,c){return[["M",a,b],["L",a+e,b],["L",a+e,b+c],["L",a,b+c],["Z"]]},triangle:function(a, b,e,c){return[["M",a+e/2,b],["L",a+e,b+c],["L",a,b+c],["Z"]]},"triangle-down":function(a,b,e,c){return[["M",a,b],["L",a+e,b],["L",a+e/2,b+c],["Z"]]},diamond:function(a,b,e,c){return[["M",a+e/2,b],["L",a+e,b+c/2],["L",a+e/2,b+c],["L",a,b+c/2],["Z"]]},arc:function(a,b,e,c,h){var p=[];if(h){var u=h.start||0,K=h.end||0,I=h.r||e;e=h.r||c||e;var w=.001>Math.abs(K-u-2*Math.PI);K-=.001;c=h.innerR;w=m(h.open,w);var d=Math.cos(u),n=Math.sin(u),q=Math.cos(K),r=Math.sin(K);u=m(h.longArc,.001>K-u-Math.PI?0:1); p.push(["M",a+I*d,b+e*n],["A",I,e,0,u,m(h.clockwise,1),a+I*q,b+e*r]);g(c)&&p.push(w?["M",a+c*q,b+c*r]:["L",a+c*q,b+c*r],["A",c,c,0,u,g(h.clockwise)?1-h.clockwise:0,a+c*d,b+c*n]);w||p.push(["Z"])}return p},callout:function(a,b,e,c,h){var p=Math.min(h&&h.r||0,e,c),u=p+6,g=h&&h.anchorX;h=h&&h.anchorY||0;var m=[["M",a+p,b],["L",a+e-p,b],["C",a+e,b,a+e,b,a+e,b+p],["L",a+e,b+c-p],["C",a+e,b+c,a+e,b+c,a+e-p,b+c],["L",a+p,b+c],["C",a,b+c,a,b+c,a,b+c-p],["L",a,b+p],["C",a,b,a,b,a+p,b]];if(!n(g))return m;a+ g>=e?h>b+u&&h=a+g?h>b+u&&hc&&g>a+u&&gh&&g>a+u&&gthis.oldTextWidth)&&((r=this.textPxLength)||(x(f,{width:"",whiteSpace:M||"nowrap"}),r=f.offsetWidth),r=r>z);r&&(/[ \-]/.test(f.textContent||f.innerText)||"ellipsis"===f.style.textOverflow)?(x(f,{width:z+"px",display:"block", whiteSpace:M||"normal"}),this.oldTextWidth=z,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;m!==this.cTT&&(M=d.fontMetrics(f.style.fontSize,f).b,!B(A)||A===(this.oldRotation||0)&&q===this.oldAlign||this.setSpanRotation(A,n,M),this.getSpanCorrection(!B(A)&&this.textPxLength||f.offsetWidth,M,n,A,q));x(f,{left:y+(this.xCorr||0)+"px",top:c+(this.yCorr||0)+"px"});this.cTT=m;this.oldRotation=A;this.oldAlign=q}}else this.alignOnAdd=!0},setSpanRotation:function(d,f,k){var g={},l=this.renderer.getTransformKey(); g[l]=g.transform="rotate("+d+"deg)";g[l+(t?"Origin":"-origin")]=g.transformOrigin=100*f+"% "+k+"px";x(this.element,g)},getSpanCorrection:function(d,f,t){this.xCorr=-d*t;this.yCorr=-f}});return d});P(k,"Core/Renderer/HTML/HTMLRenderer.js",[k["Core/Globals.js"],k["Core/Renderer/HTML/AST.js"],k["Core/Renderer/SVG/SVGElement.js"],k["Core/Renderer/SVG/SVGRenderer.js"],k["Core/Utilities.js"]],function(f,d,k,x,B){var S=f.isFirefox,D=f.isMS,H=f.isWebKit,t=f.win,C=B.attr,l=B.createElement,E=B.extend,g=B.pick; E(x.prototype,{getTransformKey:function(){return D&&!/Edge/.test(t.navigator.userAgent)?"-ms-transform":H?"-webkit-transform":S?"MozTransform":t.opera?"-o-transform":""},html:function(f,c,q){var n=this.createElement("span"),A=n.element,M=n.renderer,z=M.isSVG,m=function(c,e){["opacity","visibility"].forEach(function(h){c[h+"Setter"]=function(a,b,g){var m=c.div?c.div.style:e;k.prototype[h+"Setter"].call(this,a,b,g);m&&(m[b]=a)}});c.addedSetters=!0};n.textSetter=function(c){c!==this.textStr&&(delete this.bBox, delete this.oldTextWidth,d.setElementHTML(this.element,g(c,"")),this.textStr=c,n.doTransform=!0)};z&&m(n,n.element.style);n.xSetter=n.ySetter=n.alignSetter=n.rotationSetter=function(c,e){"align"===e?n.alignValue=n.textAlign=c:n[e]=c;n.doTransform=!0};n.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};n.attr({text:f,x:Math.round(c),y:Math.round(q)}).css({position:"absolute"});M.styledMode||n.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}); A.style.whiteSpace="nowrap";n.css=n.htmlCss;z&&(n.add=function(c){var e=M.box.parentNode,h=[];if(this.parentGroup=c){var a=c.div;if(!a){for(;c;)h.push(c),c=c.parentGroup;h.reverse().forEach(function(b){function c(a,e){b[e]=a;"translateX"===e?q.left=a+"px":q.top=a+"px";b.doTransform=!0}var g=C(b.element,"class"),d=b.styles||{};a=b.div=b.div||l("div",g?{className:g}:void 0,{position:"absolute",left:(b.translateX||0)+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:d.cursor, pointerEvents:d.pointerEvents},a||e);var q=a.style;E(b,{classSetter:function(a){return function(b){this.element.setAttribute("class",b);a.className=b}}(a),on:function(){h[0].div&&n.on.apply({element:h[0].div},arguments);return b},translateXSetter:c,translateYSetter:c});b.addedSetters||m(b)})}}else a=e;a.appendChild(A);n.added=!0;n.alignOnAdd&&n.htmlUpdateTransform();return n});return n}});return x});P(k,"Core/Time.js",[k["Core/Globals.js"],k["Core/Utilities.js"]],function(f,d){var k=f.win,x=d.defined, B=d.error,G=d.extend,D=d.isObject,H=d.merge,t=d.objectEach,C=d.pad,l=d.pick,E=d.splat,g=d.timeUnits;"";d=function(){function d(c){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=k.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(c)}d.prototype.get=function(c,g){if(this.variableTimezone||this.timezoneOffset){var d=g.getTime(),q=d-this.getTimezoneOffset(g);g.setTime(q);c=g["getUTC"+c]();g.setTime(d);return c}return this.useUTC?g["getUTC"+c]():g["get"+c]()};d.prototype.set= function(c,g,d){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===c||"Seconds"===c||"Minutes"===c&&0===this.getTimezoneOffset(g)%36E5)return g["setUTC"+c](d);var n=this.getTimezoneOffset(g);n=g.getTime()-n;g.setTime(n);g["setUTC"+c](d);c=this.getTimezoneOffset(g);n=g.getTime()+c;return g.setTime(n)}return this.useUTC?g["setUTC"+c](d):g["set"+c](d)};d.prototype.update=function(c){var g=l(c&&c.useUTC,!0);this.options=c=H(!0,this.options||{},c);this.Date=c.Date||k.Date||Date;this.timezoneOffset= (this.useUTC=g)&&c.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=g&&!(!c.getTimezoneOffset&&!c.timezone)};d.prototype.makeTime=function(c,g,d,A,M,z){if(this.useUTC){var m=this.Date.UTC.apply(0,arguments);var n=this.getTimezoneOffset(m);m+=n;var e=this.getTimezoneOffset(m);n!==e?m+=e-n:n-36E5!==this.getTimezoneOffset(m-36E5)||f.isSafari||(m-=36E5)}else m=(new this.Date(c,g,l(d,1),l(A,0),l(M,0),l(z,0))).getTime();return m};d.prototype.timezoneOffsetFunction= function(){var c=this,g=this.options,d=g.moment||k.moment;if(!this.useUTC)return function(c){return 6E4*(new Date(c.toString())).getTimezoneOffset()};if(g.timezone){if(d)return function(c){return 6E4*-d.tz(c,g.timezone).utcOffset()};B(25)}return this.useUTC&&g.getTimezoneOffset?function(c){return 6E4*g.getTimezoneOffset(c.valueOf())}:function(){return 6E4*(c.timezoneOffset||0)}};d.prototype.dateFormat=function(c,g,d){var n;if(!x(g)||isNaN(g))return(null===(n=f.defaultOptions.lang)||void 0===n?void 0: n.invalidDate)||"";c=l(c,"%Y-%m-%d %H:%M:%S");var q=this;n=new this.Date(g);var z=this.get("Hours",n),m=this.get("Day",n),r=this.get("Date",n),e=this.get("Month",n),h=this.get("FullYear",n),a=f.defaultOptions.lang,b=null===a||void 0===a?void 0:a.weekdays,w=null===a||void 0===a?void 0:a.shortWeekdays;n=G({a:w?w[m]:b[m].substr(0,3),A:b[m],d:C(r),e:C(r,2," "),w:m,b:a.shortMonths[e],B:a.months[e],m:C(e+1),o:e+1,y:h.toString().substr(2,2),Y:h,H:C(z),k:z,I:C(z%12||12),l:z%12||12,M:C(this.get("Minutes", n)),p:12>z?"AM":"PM",P:12>z?"am":"pm",S:C(n.getSeconds()),L:C(Math.floor(g%1E3),3)},f.dateFormats);t(n,function(a,b){for(;-1!==c.indexOf("%"+b);)c=c.replace("%"+b,"function"===typeof a?a.call(q,g):a)});return d?c.substr(0,1).toUpperCase()+c.substr(1):c};d.prototype.resolveDTLFormat=function(c){return D(c,!0)?c:(c=E(c),{main:c[0],from:c[1],to:c[2]})};d.prototype.getTimeTicks=function(c,d,n,f){var q=this,A=[],m={};var r=new q.Date(d);var e=c.unitRange,h=c.count||1,a;f=l(f,1);if(x(d)){q.set("Milliseconds", r,e>=g.second?0:h*Math.floor(q.get("Milliseconds",r)/h));e>=g.second&&q.set("Seconds",r,e>=g.minute?0:h*Math.floor(q.get("Seconds",r)/h));e>=g.minute&&q.set("Minutes",r,e>=g.hour?0:h*Math.floor(q.get("Minutes",r)/h));e>=g.hour&&q.set("Hours",r,e>=g.day?0:h*Math.floor(q.get("Hours",r)/h));e>=g.day&&q.set("Date",r,e>=g.month?1:Math.max(1,h*Math.floor(q.get("Date",r)/h)));if(e>=g.month){q.set("Month",r,e>=g.year?0:h*Math.floor(q.get("Month",r)/h));var b=q.get("FullYear",r)}e>=g.year&&q.set("FullYear", r,b-b%h);e===g.week&&(b=q.get("Day",r),q.set("Date",r,q.get("Date",r)-b+f+(b4*g.month||q.getTimezoneOffset(d)!==q.getTimezoneOffset(n));d=r.getTime();for(r=1;dA.length&&A.forEach(function(a){0===a%18E5&&"000000000"===q.dateFormat("%H%M%S%L",a)&&(m[a]="day")})}A.info=G(c,{higherRanks:m,totalRange:e*h});return A};return d}();f.Time=d;return f.Time});P(k,"Core/Options.js",[k["Core/Globals.js"],k["Core/Color/Color.js"],k["Core/Color/Palette.js"],k["Core/Time.js"],k["Core/Utilities.js"]],function(f,d,k,x,B){var G=f.isTouchDevice,D=f.svg;d=d.parse;B=B.merge;"";f.defaultOptions={colors:k.colors,symbols:["circle","diamond","square", "triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0, timezoneOffset:0,useUTC:!0},chart:{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}},zoomBySingleTouch:!1,width:null,height:null,borderColor:k.highlightColor80,backgroundColor:k.backgroundColor,plotBorderColor:k.neutralColor20},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:k.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:k.neutralColor40,borderRadius:0,navigation:{activeColor:k.highlightColor100,inactiveColor:k.neutralColor20},itemStyle:{color:k.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:k.neutralColor100},itemHiddenStyle:{color:k.neutralColor20}, 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:k.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:D,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:G?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:d(k.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:k.neutralColor80,cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits", position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:k.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};f.defaultOptions.chart.styledMode=!1;"";f.time=new x(B(f.defaultOptions.global,f.defaultOptions.time));f.dateFormat=function(d,t,k){return f.time.dateFormat(d,t,k)};return{dateFormat:f.dateFormat,defaultOptions:f.defaultOptions,time:f.time}});P(k,"Core/Axis/Tick.js",[k["Core/Globals.js"],k["Core/Utilities.js"]],function(f,d){var k=f.deg2rad,x=d.clamp,B= d.correctFloat,G=d.defined,D=d.destroyObjectProperties,H=d.extend,t=d.fireEvent,C=d.isNumber,l=d.merge,E=d.objectEach,g=d.pick;"";d=function(){function d(c,g,d,f,l){this.isNewLabel=this.isNew=!0;this.axis=c;this.pos=g;this.type=d||"";this.parameters=l||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;t(this,"init");d||f||this.addLabel()}d.prototype.addLabel=function(){var c=this,d=c.axis,n=d.options,f=d.chart,l=d.categories,z=d.logarithmic,m=d.names,r=c.pos, e=g(c.options&&c.options.labels,n.labels),h=d.tickPositions,a=r===h[0],b=r===h[h.length-1];m=this.parameters.category||(l?g(l[r],m[r],r):r);var w=c.label;l=(!e.step||1===e.step)&&1===d.tickInterval;h=h.info;var J,O;if(d.dateTime&&h){var F=f.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid&&h.higherRanks[r]||h.unitName]);var N=F.main}c.isFirst=a;c.isLast=b;c.formatCtx={axis:d,chart:f,isFirst:a,isLast:b,dateTimeLabelFormat:N,tickPositionInfo:h,value:z?B(z.lin2log(m)):m,pos:r};n=d.labelFormatter.call(c.formatCtx, this.formatCtx);if(O=F&&F.list)c.shortenLabel=function(){for(J=0;Je&&l-h*az&&(O=Math.round((t-l)/Math.cos(e*k)));else if(t=l+(1-h)*a,l-h* az&&(w=z-c.x+w*h,J=-1),w=Math.min(b,w),ww||d.autoRotation&&(r.styles||{}).width)O=w;O&&(this.shortenLabel?this.shortenLabel():(F.width=Math.floor(O)+"px",(f.style||{}).textOverflow||(F.textOverflow="ellipsis"),r.css(F)))};d.prototype.moveLabel=function(c,g){var d=this,f=d.label,q=!1,l=d.axis,m=l.reversed;f&&f.textStr===c?(d.movedLabel=f,q=!0,delete d.label):E(l.ticks,function(e){q||e.isNew||e===d||!e.label||e.label.textStr!== c||(d.movedLabel=e.label,q=!0,e.labelPos=d.movedLabel.xy,delete e.label)});if(!q&&(d.labelPos||f)){var r=d.labelPos||f.xy;f=l.horiz?m?0:l.width+l.left:r.x;l=l.horiz?r.y:m?l.width+l.left:0;d.movedLabel=d.createLabel({x:f,y:l},c,g);d.movedLabel&&d.movedLabel.attr({opacity:0})}};d.prototype.render=function(c,d,f){var n=this.axis,q=n.horiz,l=this.pos,m=g(this.tickmarkOffset,n.tickmarkOffset);l=this.getPosition(q,l,m,d);m=l.x;var r=l.y;n=q&&m===n.pos+n.len||!q&&r===n.pos?-1:1;f=g(f,1);this.isActive=!0; this.renderGridLine(d,f,n);this.renderMark(l,f,n);this.renderLabel(l,d,f,c);this.isNew=!1;t(this,"afterRender")};d.prototype.renderGridLine=function(c,d,f){var n=this.axis,q=n.options,l=this.gridLine,m={},r=this.pos,e=this.type,h=g(this.tickmarkOffset,n.tickmarkOffset),a=n.chart.renderer,b=e?e+"Grid":"grid",w=q[b+"LineWidth"],J=q[b+"LineColor"];q=q[b+"LineDashStyle"];l||(n.chart.styledMode||(m.stroke=J,m["stroke-width"]=w,q&&(m.dashstyle=q)),e||(m.zIndex=1),c&&(d=0),this.gridLine=l=a.path().attr(m).addClass("highcharts-"+ (e?e+"-":"")+"grid-line").add(n.gridGroup));if(l&&(f=n.getPlotLinePath({value:r+h,lineWidth:l.strokeWidth()*f,force:"pass",old:c})))l[c||this.isNew?"attr":"animate"]({d:f,opacity:d})};d.prototype.renderMark=function(c,d,f){var n=this.axis,q=n.options,l=n.chart.renderer,m=this.type,r=m?m+"Tick":"tick",e=n.tickSize(r),h=this.mark,a=!h,b=c.x;c=c.y;var w=g(q[r+"Width"],!m&&n.isXAxis?1:0);q=q[r+"Color"];e&&(n.opposite&&(e[0]=-e[0]),a&&(this.mark=h=l.path().addClass("highcharts-"+(m?m+"-":"")+"tick").add(n.axisGroup), n.chart.styledMode||h.attr({stroke:q,"stroke-width":w})),h[a?"attr":"animate"]({d:this.getMarkPath(b,c,e[0],h.strokeWidth()*f,n.horiz,l),opacity:d}))};d.prototype.renderLabel=function(c,d,f,l){var n=this.axis,q=n.horiz,m=n.options,r=this.label,e=m.labels,h=e.step;n=g(this.tickmarkOffset,n.tickmarkOffset);var a=!0,b=c.x;c=c.y;r&&C(b)&&(r.xy=c=this.getLabelPosition(b,c,r,q,e,n,l,h),this.isFirst&&!this.isLast&&!g(m.showFirstLabel,1)||this.isLast&&!this.isFirst&&!g(m.showLastLabel,1)?a=!1:!q||e.step|| e.rotation||d||0===f||this.handleOverflow(c),h&&l%h&&(a=!1),a&&C(c.y)?(c.opacity=f,r[this.isNewLabel?"attr":"animate"](c),this.isNewLabel=!1):(r.attr("y",-9999),this.isNewLabel=!0))};d.prototype.replaceMovedLabel=function(){var c=this.label,g=this.axis,d=g.reversed;if(c&&!this.isNew){var f=g.horiz?d?g.left:g.width+g.left:c.xy.x;d=g.horiz?c.xy.y:d?g.width+g.top:g.top;c.animate({x:f,y:d,opacity:0},void 0,c.destroy);delete this.label}g.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return d}(); f.Tick=d;return f.Tick});P(k,"Core/Axis/Axis.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Color/Color.js"],k["Core/Globals.js"],k["Core/Color/Palette.js"],k["Core/Options.js"],k["Core/Axis/Tick.js"],k["Core/Utilities.js"]],function(f,d,k,x,B,G,D){var H=f.animObject,t=B.defaultOptions,C=D.addEvent,l=D.arrayMax,E=D.arrayMin,g=D.clamp,y=D.correctFloat,c=D.defined,q=D.destroyObjectProperties,n=D.erase,A=D.error,M=D.extend,z=D.fireEvent,m=D.format,r=D.getMagnitude,e=D.isArray,h=D.isFunction, a=D.isNumber,b=D.isString,w=D.merge,J=D.normalizeTickInterval,O=D.objectEach,F=D.pick,N=D.relativeLength,R=D.removeEvent,Q=D.splat,T=D.syncTimeout;"";var v=k.deg2rad;f=function(){function f(a,b){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange= this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(a,b)}f.prototype.init=function(a,b){var e=b.isX,p=this;p.chart= a;p.horiz=a.inverted&&!p.isZAxis?!e:e;p.isXAxis=e;p.coll=p.coll||(e?"xAxis":"yAxis");z(this,"init",{userOptions:b});p.opposite=F(b.opposite,p.opposite);p.side=F(b.side,p.side,p.horiz?p.opposite?0:2:p.opposite?1:3);p.setOptions(b);var u=this.options,g=u.type;p.labelFormatter=u.labels.formatter||p.defaultLabelFormatter;p.userOptions=b;p.minPixelPadding=0;p.reversed=F(u.reversed,p.reversed);p.visible=!1!==u.visible;p.zoomEnabled=!1!==u.zoomEnabled;p.hasNames="category"===g||!0===u.categories;p.categories= u.categories||p.hasNames;p.names||(p.names=[],p.names.keys={});p.plotLinesAndBandsGroups={};p.positiveValuesOnly=!!p.logarithmic;p.isLinked=c(u.linkedTo);p.ticks={};p.labelEdge=[];p.minorTicks={};p.plotLinesAndBands=[];p.alternateBands={};p.len=0;p.minRange=p.userMinRange=u.minRange||u.maxZoom;p.range=u.range;p.offset=u.offset||0;p.max=null;p.min=null;p.crosshair=F(u.crosshair,Q(a.options.tooltip.crosshairs)[e?0:1],!1);b=p.options.events;-1===a.axes.indexOf(p)&&(e?a.axes.splice(a.xAxis.length,0,p): a.axes.push(p),a[p.coll].push(p));p.series=p.series||[];a.inverted&&!p.isZAxis&&e&&"undefined"===typeof p.reversed&&(p.reversed=!0);p.labelRotation=p.options.labels.rotation;O(b,function(a,b){h(a)&&C(p,b,a)});z(this,"afterInit")};f.prototype.setOptions=function(a){this.options=w(f.defaultOptions,"yAxis"===this.coll&&f.defaultYAxisOptions,[f.defaultTopAxisOptions,f.defaultRightAxisOptions,f.defaultBottomAxisOptions,f.defaultLeftAxisOptions][this.side],w(t[this.coll],a));z(this,"afterSetOptions",{userOptions:a})}; f.prototype.defaultLabelFormatter=function(){var b=this.axis,e=a(this.value)?this.value:NaN,c=b.chart.time,g=b.categories,u=this.dateTimeLabelFormat,h=t.lang,d=h.numericSymbols;h=h.numericSymbolMagnitude||1E3;var f=d&&d.length,w=b.options.labels.format;b=b.logarithmic?Math.abs(e):b.tickInterval;var n=this.chart,q=n.numberFormatter;if(w)var r=m(w,this,n);else if(g)r=""+this.value;else if(u)r=c.dateFormat(u,e);else if(f&&1E3<=b)for(;f--&&"undefined"===typeof r;)c=Math.pow(h,f+1),b>=c&&0===10*e%c&&null!== d[f]&&0!==e&&(r=q(e/c,-1)+d[f]);"undefined"===typeof r&&(r=1E4<=Math.abs(e)?q(e,-1):q(e,-1,void 0,""));return r};f.prototype.getSeriesExtremes=function(){var b=this,e=b.chart,g;z(this,"getSeriesExtremes",null,function(){b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.threshold=null;b.softThreshold=!b.isXAxis;b.stacking&&b.stacking.buildStacks();b.series.forEach(function(p){if(p.visible||!e.options.chart.ignoreHiddenSeries){var u=p.options,h=u.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=h&& (h=null);if(b.isXAxis){if(u=p.xData,u.length){u=b.logarithmic?u.filter(b.validatePositiveValue):u;g=p.getXExtremes(u);var d=g.min;var f=g.max;a(d)||d instanceof Date||(u=u.filter(a),g=p.getXExtremes(u),d=g.min,f=g.max);u.length&&(b.dataMin=Math.min(F(b.dataMin,d),d),b.dataMax=Math.max(F(b.dataMax,f),f))}}else if(p=p.applyExtremes(),a(p.dataMin)&&(d=p.dataMin,b.dataMin=Math.min(F(b.dataMin,d),d)),a(p.dataMax)&&(f=p.dataMax,b.dataMax=Math.max(F(b.dataMax,f),f)),c(h)&&(b.threshold=h),!u.softThreshold|| b.positiveValuesOnly)b.softThreshold=!1}})});z(this,"afterGetSeriesExtremes")};f.prototype.translate=function(b,e,c,g,u,h){var p=this.linkedParent||this,d=1,f=0,m=g&&p.old?p.old.transA:p.transA;g=g&&p.old?p.old.min:p.min;var w=p.minPixelPadding;u=(p.isOrdinal||p.brokenAxis&&p.brokenAxis.hasBreaks||p.logarithmic&&u)&&p.lin2val;m||(m=p.transA);c&&(d*=-1,f=p.len);p.reversed&&(d*=-1,f-=d*(p.sector||p.len));e?(b=(b*d+f-w)/m+g,u&&(b=p.lin2val(b))):(u&&(b=p.val2lin(b)),b=a(g)?d*(b-g)*m+f+d*w+(a(h)?m*h:0): void 0);return b};f.prototype.toPixels=function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)};f.prototype.toValue=function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)};f.prototype.getPlotLinePath=function(b){function e(a,b,e){if("pass"!==n&&ae)n?a=g(a,b,e):Z=!0;return a}var c=this,p=c.chart,u=c.left,h=c.top,d=b.old,f=b.value,m=b.translatedValue,w=b.lineWidth,n=b.force,r,q,l,J,v=d&&p.oldChartHeight||p.chartHeight,V=d&&p.oldChartWidth||p.chartWidth, Z,N=c.transB;b={value:f,lineWidth:w,old:d,force:n,acrossPanes:b.acrossPanes,translatedValue:m};z(this,"getPlotLinePath",b,function(b){m=F(m,c.translate(f,null,null,d));m=g(m,-1E5,1E5);r=l=Math.round(m+N);q=J=Math.round(v-m-N);a(m)?c.horiz?(q=h,J=v-c.bottom,r=l=e(r,u,u+c.width)):(r=u,l=V-c.right,q=J=e(q,h,h+c.height)):(Z=!0,n=!1);b.path=Z&&!n?null:p.renderer.crispLine([["M",r,q],["L",l,J]],w||1)});return b.path};f.prototype.getLinearTickPositions=function(a,b,e){var c=y(Math.floor(b/a)*a);e=y(Math.ceil(e/ a)*a);var p=[],g;y(c+a)===c&&(g=20);if(this.single)return[b];for(b=c;b<=e;){p.push(b);b=y(b+a,g);if(b===h)break;var h=b}return p};f.prototype.getMinorTickInterval=function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval};f.prototype.getMinorTickPositions=function(){var a=this.options,b=this.tickPositions,e=this.minorTickInterval,c=[],u=this.pointRangePadding||0,g=this.min-u;u=this.max+u;var h=u-g;if(h&&h/e=this.minRange;var n=this.minRange;var r=(n-e+b)/2;r=[b-r,F(a.min,b-r)];w&&(r[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);b=l(r);e=[b+n,F(a.max,b+n)];w&&(e[2]=g?g.log2lin(this.dataMax):this.dataMax); e=E(e);e-b=l)V= l,m=0;else if(e.dataMax<=l){var Z=l;f=0}e.min=F(N,V,e.dataMin);e.max=F(O,Z,e.dataMax)}g&&(e.positiveValuesOnly&&!b&&0>=Math.min(e.min,F(e.dataMin,e.min))&&A(10,1,p),e.min=y(g.log2lin(e.min),16),e.max=y(g.log2lin(e.max),16));e.range&&c(e.max)&&(e.userMin=e.min=N=Math.max(e.dataMin,e.minFromRange()),e.userMax=O=e.max,e.range=null);z(e,"foundExtremes");e.beforePadding&&e.beforePadding();e.adjustForMinRange();!(q||e.axisPointRange||e.stacking&&e.stacking.usePercentage||d)&&c(e.min)&&c(e.max)&&(p=e.max- e.min)&&(!c(N)&&m&&(e.min-=p*m),!c(O)&&f&&(e.max+=p*f));a(e.userMin)||(a(u.softMin)&&u.softMine.max&&(e.max=O=u.softMax),a(u.ceiling)&&(e.max=Math.min(e.max,u.ceiling)));v&&c(e.dataMin)&&(l=l||0,!c(N)&&e.min=l?e.min=e.options.minRange?Math.min(l,e.max-e.minRange):l:!c(O)&&e.max>l&&e.dataMax<=l&&(e.max=e.options.minRange?Math.max(l,e.min+e.minRange):l));a(e.min)&&a(e.max)&& !this.chart.polar&&e.min>e.max&&(c(e.options.min)?e.max=e.min:c(e.options.max)&&(e.min=e.max));e.tickInterval=e.min===e.max||"undefined"===typeof e.min||"undefined"===typeof e.max?1:d&&!w&&n===e.linkedParent.options.tickPixelInterval?w=e.linkedParent.tickInterval:F(w,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,q?1:(e.max-e.min)*n/Math.max(e.len,n));h&&!b&&e.series.forEach(function(a){var b,c;a.processData(e.min!==(null===(b=e.old)||void 0===b?void 0:b.min)||e.max!==(null=== (c=e.old)||void 0===c?void 0:c.max))});e.setAxisTranslation();z(this,"initialAxisTranslation");e.pointRange&&!w&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval));b=F(u.minTickInterval,e.dateTime&&!e.series.some(function(a){return a.noSharedTooltip})?e.closestPointRange:0);!w&&e.tickIntervale.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount|| (e.tickInterval=e.unsquish());this.setTickPositions()};f.prototype.setTickPositions=function(){var a=this.options,b=a.tickPositions;var e=this.getMinorTickInterval();var g=a.tickPositioner,h=this.hasVerticalPanning(),d="colorAxis"===this.coll,f=(d||!h)&&a.startOnTick;h=(d||!h)&&a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===e&&this.tickInterval?this.tickInterval/5:e;this.single=this.min===this.max&&c(this.min)&& !this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=e=b&&b.slice();!e&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?e=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max): this.getLinearTickPositions(this.tickInterval,this.min,this.max):(e=[this.min,this.max],A(19,!1,this.chart)),e.length>this.len&&(e=[e[0],e.pop()],e[0]===e[1]&&(e.length=1)),this.tickPositions=e,g&&(g=g.apply(this,[this.min,this.max])))&&(this.tickPositions=e=g);this.paddedTicks=e.slice(0);this.trimTicks(e,f,h);this.isLinked||(this.single&&2>e.length&&!this.categories&&!this.series.some(function(a){return a.is("heatmap")&&"between"===a.options.pointPlacement})&&(this.min-=.5,this.max+=.5),b||g||this.adjustTickAmount()); z(this,"afterSetTickPositions")};f.prototype.trimTicks=function(a,b,e){var g=a[0],p=a[a.length-1],h=!this.isOrdinal&&this.minPointOffset||0;z(this,"trimTicks");if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-h>a[0];)a.shift();if(e)this.max=p;else for(;this.max+hb&&(this.finalTickAmt=b,b=5);this.tickAmount= b};f.prototype.adjustTickAmount=function(){var b=this.options,e=this.tickInterval,g=this.tickPositions,h=this.tickAmount,u=this.finalTickAmt,d=g&&g.length,f=F(this.threshold,this.softThreshold?0:null);if(this.hasData()&&a(this.min)&&a(this.max)){if(dh&&(this.tickInterval*= 2,this.setTickPositions());if(c(u)){for(e=b=g.length;e--;)(3===u&&1===e%2||2>=u&&0f&&(b=f)),c(h)&&(pf&&(p=f))),e.displayBtn="undefined"!==typeof b||"undefined"!==typeof p,e.setExtremes(b,p,!1,void 0,{trigger:"zoom"});a.zoomed=!0});return a.zoomed};f.prototype.setAxisSize=function(){var a=this.chart,b=this.options,e=b.offsets||[0,0,0,0],c=this.horiz,g=this.width=Math.round(N(F(b.width,a.plotWidth-e[3]+e[1]),a.plotWidth)),h=this.height=Math.round(N(F(b.height,a.plotHeight-e[0]+e[2]),a.plotHeight)),d=this.top=Math.round(N(F(b.top,a.plotTop+e[0]),a.plotHeight,a.plotTop));b=this.left=Math.round(N(F(b.left, a.plotLeft+e[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-h-d;this.right=a.chartWidth-g-b;this.len=Math.max(c?g:h,0);this.pos=c?b:d};f.prototype.getExtremes=function(){var a=this.logarithmic;return{min:a?y(a.lin2log(this.min)):this.min,max:a?y(a.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};f.prototype.getThreshold=function(a){var b=this.logarithmic,e=b?b.lin2log(this.min):this.min;b=b?b.lin2log(this.max):this.max;null=== a||-Infinity===a?a=e:Infinity===a?a=b:e>a?a=e:bb?a.align="right":195b&&(a.align="left")});return a.align};f.prototype.tickSize=function(a){var b=this.options,e=b["tick"===a?"tickLength":"minorTickLength"],c=F(b["tick"===a?"tickWidth":"minorTickWidth"],"tick"===a&&this.isXAxis&&!this.categories?1:0);if(c&&e){"inside"=== b[a+"Position"]&&(e=-e);var g=[e,c]}a={tickSize:g};z(this,"afterTickSize",a);return a.tickSize};f.prototype.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)};f.prototype.unsquish=function(){var a=this.options.labels,b=this.horiz,e=this.tickInterval,g=e,h=this.len/(((this.categories?1:0)+this.max-this.min)/e),d,f=a.rotation,m=this.labelMetrics(), w,n=Number.MAX_VALUE,r,l=Math.max(this.max-this.min,0),q=function(a){var b=a/(h||1);b=1l&&Infinity!==a&&Infinity!==h&&l&&(b=Math.ceil(l/e));return y(b*e)};b?(r=!a.staggerLines&&!a.step&&(c(f)?[f]:h=a){w=q(Math.abs(m.h/Math.sin(v*a)));var b=w+Math.abs(a/360);b(h.step||0))return h.rotation?0:(this.staggerLines||1)*this.len/d;if(!g){b=null===(e=null===h||void 0===h?void 0:h.style)||void 0===e?void 0:e.width;if(void 0!==b)return parseInt(b,10);if(p)return p-c.spacing[3]}return.33*c.chartWidth};f.prototype.renderUnsquish=function(){var a=this.chart,e=a.renderer,c=this.tickPositions,g= this.ticks,h=this.options.labels,d=h&&h.style||{},f=this.horiz,m=this.getSlotWidth(),w=Math.max(1,Math.round(m-2*(h.padding||5))),n={},r=this.labelMetrics(),l=h.style&&h.style.textOverflow,q=0;b(h.rotation)||(n.rotation=h.rotation||0);c.forEach(function(a){a=g[a];a.movedLabel&&a.replaceMovedLabel();a&&a.label&&a.label.textPxLength>q&&(q=a.label.textPxLength)});this.maxLabelLength=q;if(this.autoRotation)q>w&&q>r.h?n.rotation=this.labelRotation:this.labelRotation=0;else if(m){var J=w;if(!l){var F="clip"; for(w=c.length;!f&&w--;){var v=c[w];if(v=g[v].label)v.styles&&"ellipsis"===v.styles.textOverflow?v.css({textOverflow:"clip"}):v.textPxLength>m&&v.css({width:m+"px"}),v.getBBox().height>this.len/c.length-(r.h-r.f)&&(v.specificTextOverflow="ellipsis")}}}n.rotation&&(J=q>.5*a.chartHeight?.33*a.chartHeight:q,l||(F="ellipsis"));if(this.labelAlign=h.align||this.autoLabelAlign(this.labelRotation))n.align=this.labelAlign;c.forEach(function(a){var b=(a=g[a])&&a.label,e=d.width,c={};b&&(b.attr(n),a.shortenLabel? a.shortenLabel():J&&!e&&"nowrap"!==d.whiteSpace&&(J=this.min&&a<=this.max||(null===(e=this.grid)||void 0===e?0:e.isColumn))c[a]||(c[a]=new G(this,a)),g&&c[a].isNew&&c[a].render(b, !0,-1),c[a].render(b)};f.prototype.render=function(){var b=this,e=b.chart,c=b.logarithmic,g=b.options,h=b.isLinked,d=b.tickPositions,f=b.axisTitle,m=b.ticks,w=b.minorTicks,n=b.alternateBands,r=g.stackLabels,q=g.alternateGridColor,l=b.tickmarkOffset,J=b.axisLine,F=b.showAxis,v=H(e.renderer.globalAnimation),V,N;b.labelEdge.length=0;b.overlap=!1;[m,w,n].forEach(function(a){O(a,function(a){a.isActive=!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&b.getMinorTickPositions().forEach(function(a){b.renderMinorTick(a)}), d.length&&(d.forEach(function(a,e){b.renderTick(a,e)}),l&&(0===b.min||b.single)&&(m[-1]||(m[-1]=new G(b,-1,null,!0)),m[-1].render(-1))),q&&d.forEach(function(a,g){N="undefined"!==typeof d[g+1]?d[g+1]+l:b.max-l;0===g%2&&af&&(!k||m<=l)&&"undefined"!==typeof m&&q.push(m);m>l&&(A=!0);var m=z}}}else f=this.lin2log(f),l=this.lin2log(l),d=k?g.getMinorTickInterval():c.tickInterval,d=G("auto"===d?null:d,this.minorAutoInterval,c.tickPixelInterval/(k?5:1)*(l-f)/((k?y/g.tickPositions.length:y)||1)),d=B(d,void 0,x(d)),q=g.getLinearTickPositions(d,f,l).map(this.log2lin),k||(this.minorAutoInterval=d/5);k||(g.tickInterval=d);return q};d.prototype.lin2log=function(d){return Math.pow(10,d)};d.prototype.log2lin=function(d){return Math.log(d)/ Math.LN10};return d}();d=function(){function d(){}d.compose=function(d){d.keepProps.push("logarithmic");k(d,"init",function(d){var f=this.logarithmic;"logarithmic"!==d.userOptions.type?this.logarithmic=void 0:f||(this.logarithmic=new D(this))});k(d,"afterInit",function(){var d=this.logarithmic;d&&(this.lin2val=function(f){return d.lin2log(f)},this.val2lin=function(f){return d.log2lin(f)})})};return d}();d.compose(f);return d});P(k,"Core/Axis/PlotLineOrBand.js",[k["Core/Axis/Axis.js"],k["Core/Globals.js"], k["Core/Color/Palette.js"],k["Core/Utilities.js"]],function(f,d,k,x){var B=x.arrayMax,G=x.arrayMin,D=x.defined,H=x.destroyObjectProperties,t=x.erase,C=x.extend,l=x.fireEvent,E=x.merge,g=x.objectEach,y=x.pick;x=function(){function c(c,g){this.axis=c;g&&(this.options=g,this.id=g.id)}c.prototype.render=function(){l(this,"render");var c=this,d=c.axis,f=d.horiz,t=d.logarithmic,z=c.options,m=z.label,r=c.label,e=z.to,h=z.from,a=z.value,b=D(h)&&D(e),w=D(a),J=c.svgElem,O=!J,F=[],N=z.color,R=y(z.zIndex,0), Q=z.events;F={"class":"highcharts-plot-"+(b?"band ":"line ")+(z.className||"")};var C={},v=d.chart.renderer,x=b?"bands":"lines";t&&(h=t.log2lin(h),e=t.log2lin(e),a=t.log2lin(a));d.chart.styledMode||(w?(F.stroke=N||k.neutralColor40,F["stroke-width"]=y(z.width,1),z.dashStyle&&(F.dashstyle=z.dashStyle)):b&&(F.fill=N||k.highlightColor10,z.borderWidth&&(F.stroke=z.borderColor,F["stroke-width"]=z.borderWidth)));C.zIndex=R;x+="-"+R;(t=d.plotLinesAndBandsGroups[x])||(d.plotLinesAndBandsGroups[x]=t=v.g("plot-"+ x).attr(C).add());O&&(c.svgElem=J=v.path().attr(F).add(t));if(w)F=d.getPlotLinePath({value:a,lineWidth:J.strokeWidth(),acrossPanes:z.acrossPanes});else if(b)F=d.getPlotBandPath(h,e,z);else return;!c.eventsAdded&&Q&&(g(Q,function(a,b){J.on(b,function(a){Q[b].apply(c,[a])})}),c.eventsAdded=!0);(O||!J.d)&&F&&F.length?J.attr({d:F}):J&&(F?(J.show(!0),J.animate({d:F})):J.d&&(J.hide(),r&&(c.label=r=r.destroy())));m&&(D(m.text)||D(m.formatter))&&F&&F.length&&0this.max&&g>this.max;if(d&&f){if(c){var r=d.toString()===f.toString();m=0}for(c=0;cc){m=f;break}if(h[m]&&b.substr(h[m])!=="01-01 00:00:00.000".substr(h[m]))break;"week"!==m&&(f=m)}if(m)var n=a.resolveDTLFormat(d[m]).main;return n};z.prototype.getLabel=function(){var c,g,e,d=this,a=this.chart.renderer,b=this.chart.styledMode,w=this.options,n="tooltip"+(D(w.className)? " "+w.className:""),l=(null===(c=w.style)||void 0===c?void 0:c.pointerEvents)||(!this.followPointer&&w.stickOnContact?"auto":"none"),q;c=function(){d.inContact=!0};var k=function(){var a=d.chart.hoverSeries;d.inContact=!1;if(a&&a.onMouseOut)a.onMouseOut()};if(!this.label){if(this.outside){var t=null===(g=this.chart.options.chart)||void 0===g?void 0:g.style;this.container=q=f.doc.createElement("div");q.className="highcharts-tooltip-container";G(q,{position:"absolute",top:"1px",pointerEvents:l,zIndex:Math.max((null=== (e=this.options.style)||void 0===e?void 0:e.zIndex)||0,((null===t||void 0===t?void 0:t.zIndex)||0)+3)});f.doc.body.appendChild(q);this.renderer=a=new f.Renderer(q,0,0,t,void 0,void 0,a.styledMode)}this.split?this.label=a.g(n):(this.label=a.label("",0,0,w.shape||"callout",null,null,w.useHTML,null,n).attr({padding:w.padding,r:w.borderRadius}),b||this.label.attr({fill:w.backgroundColor,"stroke-width":w.borderWidth}).css(w.style).css({pointerEvents:l}).shadow(w.shadow));b&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+ this.chart.index));if(d.outside&&!d.split){var y=this.label,z=y.xSetter,v=y.ySetter;y.xSetter=function(a){z.call(y,d.distance);q.style.left=a+"px"};y.ySetter=function(a){v.call(y,d.distance);q.style.top=a+"px"}}this.label.on("mouseenter",c).on("mouseleave",k).attr({zIndex:8}).add()}return this.label};z.prototype.getPosition=function(g,d,e){var h=this.chart,a=this.distance,b={},f=h.inverted&&e.h||0,m,n=this.outside,l=n?x.documentElement.clientWidth-2*a:h.chartWidth,r=n?Math.max(x.body.scrollHeight, x.documentElement.scrollHeight,x.body.offsetHeight,x.documentElement.offsetHeight,x.documentElement.clientHeight):h.chartHeight,q=h.pointer.getChartPosition(),k=function(b){var c="x"===b;return[b,c?l:r,c?g:d].concat(n?[c?g*q.scaleX:d*q.scaleY,c?q.left-a+(e.plotX+h.plotLeft)*q.scaleX:q.top-a+(e.plotY+h.plotTop)*q.scaleY,0,c?l:r]:[c?g:d,c?e.plotX+h.plotLeft:e.plotY+h.plotTop,c?h.plotLeft:h.plotTop,c?h.plotLeft+h.plotWidth:h.plotTop+h.plotHeight])},y=k("y"),v=k("x"),t=!this.followPointer&&c(e.ttBelow, !h.inverted===!!e.negative),p=function(e,c,g,d,h,m,p){var u=n?"y"===e?a*q.scaleY:a*q.scaleX:a,w=(g-d)/2,l=dJ-f?J:J-f);else if(r)b[e]=Math.max(m,h+f+g>c?h:h+f);else return!1},z=function(e,c,g,d,h){var f;hc-a?f=!1:b[e]=hc-d/2?c-d-2:h-g/2;return f},A=function(a){var b=y;y=v;v=b;m=a},E=function(){!1!==p.apply(0,y)?!1!==z.apply(0,v)||m||(A(!0),E()):m?b.x=b.y=0:(A(!0),E())};(h.inverted||1=v+q&&O.pos+N<=v+q+w-z&&(y=O.pos+N);F=B(F,x.left-p,x.right+p);"number"===typeof y?(J=J.height+1,N=M?M.call(h,m,J,g):e(F,y,f,m),a.push({align:M?0:void 0,anchorX:F,anchorY:y,boxWidth:m,point:g,rank:c(N.rank,f?1:0),size:J,target:N.y, tt:b,x:N.x})):b.isActive=!1}return a},[]);!M&&m.some(function(a){return a.xe[0]?Math.max(Math.abs(e[0]),a.width-e[0]):Math.max(Math.abs(e[0]),a.width);d.height=0> e[1]?Math.max(Math.abs(e[1]),a.height-Math.abs(e[1])):Math.max(Math.abs(e[1]),a.height);this.tracker?this.tracker.attr(d):(this.tracker=g.renderer.rect(d).addClass("highcharts-tracker").add(g),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};z.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};z.prototype.tooltipFooterHeaderFormatter= function(c,g){var e=g?"footer":"header",d=c.series,a=d.tooltipOptions,b=a.xDateFormat,f=d.xAxis,m=f&&"datetime"===f.options.type&&E(c.key),n=a[e+"Format"];g={isFooter:g,labelConfig:c};C(this,"headerFormatter",g,function(e){m&&!b&&(b=this.getXDateFormat(c,a,f));m&&b&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(a){n=n.replace("{point."+a+"}","{point."+a+":"+b+"}")});d.chart.styledMode&&(n=this.styledModeFormat(n));e.text=l(n,{point:c,series:d},this.chart)});return g.text};z.prototype.update= function(c){this.destroy();y(!0,this.chart.options.tooltip.userOptions,c);this.init(this.chart,y(!0,this.options,c))};z.prototype.updatePosition=function(c){var g=this.chart,e=g.pointer,d=this.getLabel(),a=c.plotX+g.plotLeft;g=c.plotY+g.plotTop;e=e.getChartPosition();c=(this.options.positioner||this.getPosition).call(this,d.width,d.height,c);if(this.outside){var b=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(d.width+b,d.height+b,!1);if(1!==e.scaleX||1!==e.scaleY)G(this.container, {transform:"scale("+e.scaleX+", "+e.scaleY+")"}),a*=e.scaleX,g*=e.scaleY;a+=e.left-c.x;g+=e.top-c.y}this.move(Math.round(c.x),Math.round(c.y||0),a,g)};return z}();f.Tooltip=M;return f.Tooltip});P(k,"Core/Pointer.js",[k["Core/Color/Color.js"],k["Core/Globals.js"],k["Core/Color/Palette.js"],k["Core/Tooltip.js"],k["Core/Utilities.js"]],function(f,d,k,x,B){var G=f.parse,D=d.charts,H=d.noop,t=B.addEvent,C=B.attr,l=B.css,E=B.defined,g=B.extend,y=B.find,c=B.fireEvent,q=B.isNumber,n=B.isObject,A=B.objectEach, M=B.offset,z=B.pick,m=B.splat;"";f=function(){function f(e,c){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.chart=e;this.hasDragged=!1;this.options=c;this.unbindContainerMouseLeave=function(){};this.unbindContainerMouseEnter=function(){};this.init(e,c)}f.prototype.applyInactiveState=function(e){var c=[],a;(e||[]).forEach(function(b){a=b.series;c.push(a);a.linkedParent&&c.push(a.linkedParent);a.linkedSeries&&(c=c.concat(a.linkedSeries));a.navigatorSeries&&c.push(a.navigatorSeries)}); this.chart.series.forEach(function(a){-1===c.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};f.prototype.destroy=function(){var e=this;"undefined"!==typeof e.unDocMouseMove&&e.unDocMouseMove();this.unbindContainerMouseLeave();d.chartCount||(d.unbindDocumentMouseUp&&(d.unbindDocumentMouseUp=d.unbindDocumentMouseUp()),d.unbindDocumentTouchEnd&&(d.unbindDocumentTouchEnd=d.unbindDocumentTouchEnd()));clearInterval(e.tooltipTimeout);A(e,function(c, a){e[a]=void 0})};f.prototype.drag=function(e){var c=this.chart,a=c.options.chart,b=e.chartX,g=e.chartY,d=this.zoomHor,f=this.zoomVert,m=c.plotLeft,l=c.plotTop,q=c.plotWidth,r=c.plotHeight,y=this.selectionMarker,v=this.mouseDownX||0,t=this.mouseDownY||0,p=n(a.panning)?a.panning&&a.panning.enabled:a.panning,z=a.panKey&&e[a.panKey+"Key"];if(!y||!y.touch)if(bm+q&&(b=m+q),gl+r&&(g=l+r),this.hasDragged=Math.sqrt(Math.pow(v-b,2)+Math.pow(t-g,2)),10b.options.findNearestPointBy.indexOf("y");b=b.searchPoint(a,e);if((e=n(b,!0)&&b.series)&&!(e=!n(d,!0))){e=d.distX-b.distX;var g=d.dist-b.dist,f=(b.series.group&&b.series.group.zIndex)-(d.series.group&&d.series.group.zIndex);e=0<(0!==e&&c?e:0!==g?g:0!==f?f:d.series.index>b.series.index?-1:1)}e&&(d=b)});return d};f.prototype.getChartCoordinatesFromPoint= function(e,c){var a=e.series,b=a.xAxis;a=a.yAxis;var g=z(e.clientX,e.plotX),d=e.shapeArgs;if(b&&a)return c?{chartX:b.len+b.pos-g,chartY:a.len+a.pos-e.plotY}:{chartX:g+b.pos,chartY:e.plotY+a.pos};if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}};f.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var e=this.chart.container,c=M(e);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var a=e.offsetWidth;e=e.offsetHeight;2u.max&&(c=u.max-p,A=!0);A?(t-=.8*(t-f[n][0]),"number"===typeof O&&(O-=.8*(O-f[n][1])),a()):f[n]=[t,O];k||(d[n]=J-r,d[q]=p);d=k?1/F:F;g[q]=p;g[n]=c;b[k?e?"scaleY":"scaleX":"scale"+l]=F;b["translate"+l]=d*r+(t-d*I)};f.prototype.reset=function(e,c){var a= this.chart,b=a.hoverSeries,g=a.hoverPoint,d=a.hoverPoints,f=a.tooltip,h=f&&f.shared?d:g;e&&h&&m(h).forEach(function(a){a.series.isCartesian&&"undefined"===typeof a.plotX&&(e=!1)});if(e)f&&h&&m(h).length&&(f.refresh(h),f.shared&&d?d.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):g&&(g.setState(g.state,!0),a.axes.forEach(function(a){a.crosshair&&g.series[a.coll]=== a&&a.drawCrosshair(null,g)})));else{if(g)g.onMouseOut();d&&d.forEach(function(a){a.setState()});if(b)b.onMouseOut();f&&f.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());a.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=a.hoverPoints=a.hoverPoint=null}};f.prototype.runPointActions=function(e,c){var a=this.chart,b=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,g=b?b.shared:!1,f=c||a.hoverPoint,h=f&&f.series||a.hoverSeries;h=this.getHoverData(f,h,a.series,(!e|| "touchmove"!==e.type)&&(!!c||h&&h.directTouch&&this.isDirectTouch),g,e);f=h.hoverPoint;var m=h.hoverPoints;c=(h=h.hoverSeries)&&h.tooltipOptions.followPointer;g=g&&h&&!h.noSharedTooltip;if(f&&(f!==a.hoverPoint||b&&b.isHidden)){(a.hoverPoints||[]).forEach(function(a){-1===m.indexOf(a)&&a.setState()});if(a.hoverSeries!==h)h.onMouseOver();this.applyInactiveState(m);(m||[]).forEach(function(a){a.setState("hover")});a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut");if(!f.series)return;a.hoverPoints= m;a.hoverPoint=f;f.firePointEvent("mouseOver");b&&b.refresh(g?m:f,e)}else c&&b&&!b.isHidden&&(f=b.getAnchor([{}],e),b.updatePosition({plotX:f[0],plotY:f[1]}));this.unDocMouseMove||(this.unDocMouseMove=t(a.container.ownerDocument,"mousemove",function(a){var b=D[d.hoverChartIndex];if(b)b.pointer.onDocumentMouseMove(a)}));a.axes.forEach(function(b){var c=z((b.crosshair||{}).snap,!0),g;c&&((g=a.hoverPoint)&&g.series[b.coll]===b||(g=y(m,function(a){return a.series[b.coll]===b})));g||!c?b.drawCrosshair(e, g):b.hideCrosshair()})};f.prototype.scaleGroups=function(e,c){var a=this.chart,b;a.series.forEach(function(g){b=e||g.getPlotBox();g.xAxis&&g.xAxis.zoomEnabled&&g.group&&(g.group.attr(b),g.markerGroup&&(g.markerGroup.attr(b),g.markerGroup.clip(c?a.clipRect:null)),g.dataLabelsGroup&&g.dataLabelsGroup.attr(b))});a.clipRect.attr(c||a.clipBox)};f.prototype.setDOMEvents=function(){var e=this,c=this.chart.container,a=c.ownerDocument;c.onmousedown=this.onContainerMouseDown.bind(this);c.onmousemove=this.onContainerMouseMove.bind(this); c.onclick=this.onContainerClick.bind(this);this.unbindContainerMouseEnter=t(c,"mouseenter",this.onContainerMouseEnter.bind(this));this.unbindContainerMouseLeave=t(c,"mouseleave",this.onContainerMouseLeave.bind(this));d.unbindDocumentMouseUp||(d.unbindDocumentMouseUp=t(a,"mouseup",this.onDocumentMouseUp.bind(this)));for(var b=this.chart.renderTo.parentElement;b&&"BODY"!==b.tagName;)t(b,"scroll",function(){delete e.chartPosition}),b=b.parentElement;d.hasTouch&&(t(c,"touchstart",this.onContainerTouchStart.bind(this), {passive:!1}),t(c,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1}),d.unbindDocumentTouchEnd||(d.unbindDocumentTouchEnd=t(a,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};f.prototype.setHoverChartIndex=function(){var e=this.chart,c=d.charts[z(d.hoverChartIndex,-1)];if(c&&c!==e)c.pointer.onContainerMouseLeave({relatedTarget:!0});c&&c.mouseIsDown||(d.hoverChartIndex=e.index)};f.prototype.touch=function(e,c){var a=this.chart,b;this.setHoverChartIndex();if(1===e.touches.length)if(e= this.normalize(e),(b=a.isInsidePlot(e.chartX-a.plotLeft,e.chartY-a.plotTop))&&!a.openMenu){c&&this.runPointActions(e);if("touchmove"===e.type){c=this.pinchDown;var g=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-e.chartX,2)+Math.pow(c[0].chartY-e.chartY,2)):!1}z(g,!0)&&this.pinch(e)}else c&&this.reset();else 2===e.touches.length&&this.pinch(e)};f.prototype.touchSelect=function(e){return!(!this.chart.options.chart.zoomBySingleTouch||!e.touches||1!==e.touches.length)};f.prototype.zoomOption=function(e){var c= this.chart,a=c.options.chart,b=a.zoomType||"";c=c.inverted;/touch/.test(e.type)&&(b=z(a.pinchType,b));this.zoomX=e=/x/.test(b);this.zoomY=b=/y/.test(b);this.zoomHor=e&&!c||b&&c;this.zoomVert=b&&!c||e&&c;this.hasZoom=e||b};return f}();return d.Pointer=f});P(k,"Core/MSPointer.js",[k["Core/Globals.js"],k["Core/Pointer.js"],k["Core/Utilities.js"]],function(f,d,k){function x(){var c=[];c.item=function(c){return this[c]};E(y,function(g){c.push({pageX:g.pageX,pageY:g.pageY,target:g.target})});return c}function B(c, g,d,l){"touch"!==c.pointerType&&c.pointerType!==c.MSPOINTER_TYPE_TOUCH||!D[f.hoverChartIndex]||(l(c),l=D[f.hoverChartIndex].pointer,l[g]({type:d,target:c.currentTarget,preventDefault:t,touches:x()}))}var G=this&&this.__extends||function(){var c=function(g,d){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var d in g)g.hasOwnProperty(d)&&(c[d]=g[d])};return c(g,d)};return function(g,d){function f(){this.constructor=g}c(g,d);g.prototype=null=== d?Object.create(d):(f.prototype=d.prototype,new f)}}(),D=f.charts,H=f.doc,t=f.noop,C=k.addEvent,l=k.css,E=k.objectEach,g=k.removeEvent,y={},c=!!f.win.PointerEvent;return function(d){function f(){return null!==d&&d.apply(this,arguments)||this}G(f,d);f.prototype.batchMSEvents=function(g){g(this.chart.container,c?"pointerdown":"MSPointerDown",this.onContainerPointerDown);g(this.chart.container,c?"pointermove":"MSPointerMove",this.onContainerPointerMove);g(H,c?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}; f.prototype.destroy=function(){this.batchMSEvents(g);d.prototype.destroy.call(this)};f.prototype.init=function(c,g){d.prototype.init.call(this,c,g);this.hasZoom&&l(c.container,{"-ms-touch-action":"none","touch-action":"none"})};f.prototype.onContainerPointerDown=function(c){B(c,"onContainerTouchStart","touchstart",function(c){y[c.pointerId]={pageX:c.pageX,pageY:c.pageY,target:c.currentTarget}})};f.prototype.onContainerPointerMove=function(c){B(c,"onContainerTouchMove","touchmove",function(c){y[c.pointerId]= {pageX:c.pageX,pageY:c.pageY};y[c.pointerId].target||(y[c.pointerId].target=c.currentTarget)})};f.prototype.onDocumentPointerUp=function(c){B(c,"onDocumentTouchEnd","touchend",function(c){delete y[c.pointerId]})};f.prototype.setDOMEvents=function(){d.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(C)};return f}(d)});P(k,"Core/Series/Point.js",[k["Core/Renderer/HTML/AST.js"],k["Core/Animation/AnimationUtilities.js"],k["Core/Globals.js"],k["Core/Options.js"], k["Core/Utilities.js"]],function(f,d,k,x,B){var G=d.animObject,D=x.defaultOptions,H=B.addEvent,t=B.defined,C=B.erase,l=B.extend,E=B.fireEvent,g=B.format,y=B.getNestedProperty,c=B.isArray,q=B.isFunction,n=B.isNumber,A=B.isObject,M=B.merge,z=B.objectEach,m=B.pick,r=B.syncTimeout,e=B.removeEvent,h=B.uniqueKey;"";d=function(){function a(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total= this.series=void 0;this.visible=!0;this.x=void 0}a.prototype.animateBeforeDestroy=function(){var a=this,c={x:a.startXPos,opacity:0},e,g=a.getGraphicalProps();g.singular.forEach(function(b){e="dataLabel"===b;a[b]=a[b].animate(e?{x:a[b].startXPos,y:a[b].startYPos,opacity:0}:c)});g.plural.forEach(function(b){a[b].forEach(function(b){b.element&&b.animate(l({x:a.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})};a.prototype.applyOptions=function(b,c){var e=this.series,g=e.options.pointValKey|| e.pointValKey;b=a.prototype.optionsToObject.call(this,b);l(this,b);this.options=this.options?l(this.options,b):b;b.group&&delete this.group;b.dataLabels&&delete this.dataLabels;g&&(this.y=a.prototype.getNestedProperty.call(this,g));this.formatPrefix=(this.isNull=m(this.isValid&&!this.isValid(),null===this.x||!n(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof c&&e.xAxis&&e.xAxis.hasNames&&(this.x=e.xAxis.nameToX(this));"undefined"===typeof this.x&& e&&(this.x="undefined"===typeof c?e.autoIncrement(this):c);return this};a.prototype.destroy=function(){function a(){if(c.graphic||c.dataLabel||c.dataLabels)e(c),c.destroyElements();for(m in c)c[m]=null}var c=this,g=c.series,d=g.chart;g=g.options.dataSorting;var f=d.hoverPoints,h=G(c.series.chart.renderer.globalAnimation),m;c.legendItem&&d.legend.destroyItem(c);f&&(c.setState(),C(f,c),f.length||(d.hoverPoints=null));if(c===d.hoverPoint)c.onMouseOut();g&&g.enabled?(this.animateBeforeDestroy(),r(a,h.duration)): a();d.pointCount--};a.prototype.destroyElements=function(a){var b=this;a=b.getGraphicalProps(a);a.singular.forEach(function(a){b[a]=b[a].destroy()});a.plural.forEach(function(a){b[a].forEach(function(a){a.element&&a.destroy()});delete b[a]})};a.prototype.firePointEvent=function(a,c,e){var b=this,g=this.series.options;(g.point.events[a]||b.options&&b.options.events&&b.options.events[a])&&b.importEvents();"click"===a&&g.allowPointSelect&&(e=function(a){b.select&&b.select(null,a.ctrlKey||a.metaKey|| a.shiftKey)});E(b,a,c,e)};a.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};a.prototype.getGraphicalProps=function(a){var b=this,c= [],e,g={singular:[],plural:[]};a=a||{graphic:1,dataLabel:1};a.graphic&&c.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&c.push("dataLabel","dataLabelUpper","connector");for(e=c.length;e--;){var d=c[e];b[d]&&g.singular.push(d)}["dataLabel","connector"].forEach(function(c){var e=c+"s";a[c]&&b[e]&&g.plural.push(e)});return g};a.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this, percentage:this.percentage,total:this.total||this.stackTotal}};a.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?y(a,this.options):this[a]};a.prototype.getZone=function(){var a=this.series,c=a.zones;a=a.zoneAxis||"y";var e=0,g;for(g=c[e];this[a]>=g.value;)g=c[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=g&&g.color&&!this.options.color?g.color:this.nonZonedColor;return g};a.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName|| this.graphic.element.nodeName))!==this.shapeType};a.prototype.init=function(a,c,e){this.series=a;this.applyOptions(c,e);this.id=t(this.id)?this.id:h();this.resolveColor();a.chart.pointCount++;E(this,"afterInit");return this};a.prototype.optionsToObject=function(b){var e={},g=this.series,d=g.options.keys,f=d||g.pointArrayMap||["y"],h=f.length,m=0,l=0;if(n(b)||null===b)e[f[0]]=b;else if(c(b))for(!d&&b.length>h&&(g=typeof b[0],"string"===g?e.name=b[0]:"number"===g&&(e.x=b[0]),m++);le-6&&fm?this.maxItemWidth:a.itemWidth;e&&this.itemX-c+b>m&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=f+this.lastLineHeight+d),this.lastLineHeight=0);this.lastItemY=f+this.itemY+d;this.lastLineHeight=Math.max(g,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=b:(this.itemY+= f+g+d,this.lastLineHeight=g);this.offsetWidth=this.widthOption||Math.max((e?this.itemX-c-(a.checkbox?0:h):b)+c,this.offsetWidth)};e.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(b){var c=b&&b.options;b&&M(c.showInLegend,E(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});c(this,"afterGetAllItems",{allItems:a});return a};e.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating? "":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};e.prototype.adjustMargins=function(a,b){var c=this.chart,e=this.options,g=this.getAlignment();g&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(d,f){d.test(g)&&!E(a[f])&&(c[D[f]]=Math.max(c[D[f]],c.legend[(f+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][f]*e[f%2?"x":"y"]+M(e.margin,12)+b[f]+(c.titleOffset[f]||0)))})};e.prototype.proximatePositions=function(){var a=this.chart,b=[],c="left"===this.options.align; this.allItems.forEach(function(e){var g;var d=c;if(e.yAxis){e.xAxis.options.reversed&&(d=!d);e.points&&(g=y(d?e.points:e.points.slice(0).reverse(),function(a){return n(a.plotY)}));d=this.itemMarginTop+e.legendItem.getBBox().height+this.itemMarginBottom;var f=e.yAxis.top-a.plotTop;e.visible?(g=g?g.plotY:e.yAxis.height,g+=f-.3*d):g=f+e.yAxis.height;b.push({target:g,size:d,item:e})}},this);d.distribute(b,a.plotHeight);b.forEach(function(b){b.item._legendItemPos[1]=a.plotTop-a.spacing[0]+b.pos})};e.prototype.render= function(){var a=this.chart,b=a.renderer,e=this.group,g=this.box,d=this.options,f=this.padding;this.itemX=f;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=z(d.width,a.spacingBox.width-f);var h=a.spacingBox.width-2*f-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(h/=2);this.maxLegendWidth=this.widthOption||h;e||(this.group=e=b.g("legend").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup)); this.renderTitle();var n=this.getAllItems();m(n,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});d.reversed&&n.reverse();this.allItems=n;this.display=h=!!n.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n.forEach(this.renderItem,this);n.forEach(this.layoutItem,this);n=(this.widthOption||this.offsetWidth)+f;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l);l+=f;g||(this.box=g=b.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(e), g.isNew=!0);a.styledMode||g.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);0d&&!1!==l.enabled?(this.clipHeight=m=Math.max(d-20-this.titleHeight-f,0),this.currentPage=M(this.currentPage,1),this.fullHeight=a,u.forEach(function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),g=k.length;if(!g||c-k[g-1]>m&&(y||c)!==k[g-1])k.push(y||c),g++;a.pageIx=g-1;y&&(u[b-1].pageIx=g-1);b===u.length-1&&c+e-k[g-1]>m&&c!==y&&(k.push(c),a.pageIx=g);c!==y&&(y=c)}),n||(n=b.clipRect=e.clipRect(0,f,9999, 0),b.contentGroup.clip(n)),t(m),r||(this.nav=r=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,p,p).add(r),I("upTracker").on("click",function(){b.scroll(-1,q)}),this.pager=e.text("",15,10).addClass("highcharts-legend-navigation"),c.styledMode||this.pager.css(l.style),this.pager.add(r),this.down=e.symbol("triangle-down",0,0,p,p).add(r),I("downTracker").on("click",function(){b.scroll(1,q)})),b.scroll(0),a=d):r&&(t(),this.nav=r.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight= 0);return a};e.prototype.scroll=function(a,b){var e=this,g=this.chart,d=this.pages,f=d.length,h=this.currentPage+a;a=this.clipHeight;var m=this.options.navigation,n=this.pager,l=this.padding;h>f&&(h=f);0=h&&d<=m||u||!w(d))l=!0;e[u?"zoomX":"zoomY"]&&l&&(c=f.zoom(a.min, a.max),f.displayBtn&&(g=!0))});var f=b.resetZoomButton;g&&!f?b.showResetZoom():!g&&K(f)&&(b.resetZoomButton=f.destroy());c&&b.redraw(I(b.options.chart.animation,a&&a.animation,100>b.pointCount))};f.prototype.pan=function(a,c){var e=this,g=e.hoverPoints,d=e.options.chart,f=e.options.mapNavigation&&e.options.mapNavigation.enabled,h;c="object"===typeof c?c:{enabled:c,type:"x"};d&&d.panning&&(d.panning=c);var m=c.type;Q(this,"pan",{originalEvent:a},function(){g&&g.forEach(function(a){a.setState()});var c= [1];"xy"===m?c=[1,0]:"y"===m&&(c=[0]);c.forEach(function(b){var c=e[b?"xAxis":"yAxis"][0],g=c.horiz,d=a[g?"chartX":"chartY"];g=g?"mouseDownX":"mouseDownY";var u=e[g],l=(c.pointRange||0)/2,n=c.reversed&&!e.inverted||!c.reversed&&e.inverted?-1:1,q=c.getExtremes(),r=c.toValue(u-d,!0)+l*n;n=c.toValue(u+c.len-d,!0)-l*n;var k=n=b&&r<=l&&(c.setExtremes(u,r,!1,!1,{trigger:"pan"}),e.resetZoomButton||f||u===b||r===l||!m.match("y")||(e.showResetZoom(),c.displayBtn=!1),h=!0),e[g]=d)});h&&e.redraw(!1);b(e.container,{cursor:"move"})})};return f}();N(ca.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ca.prototype.addAxis,[!0]],yAxis:[ca.prototype.addAxis,[!1]],series:[ca.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis", "series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});k.chart=function(a,b,c){return new ca(a, b,c)};k.Chart=ca;"";return ca});P(k,"Mixins/LegendSymbol.js",[k["Core/Globals.js"],k["Core/Utilities.js"]],function(f,d){var k=d.merge,x=d.pick;return f.LegendSymbolMixin={drawRectangle:function(d,f){var k=d.symbolHeight,H=d.options.squareSymbol;f.legendSymbol=this.chart.renderer.rect(H?(d.symbolWidth-k)/2:0,d.baseline-k+1,H?k:d.symbolWidth,k,x(d.options.symbolRadius,k/2)).addClass("highcharts-point").attr({zIndex:3}).add(f.legendGroup)},drawLineMarker:function(d){var f=this.options,D=f.marker,H= d.symbolWidth,t=d.symbolHeight,C=t/2,l=this.chart.renderer,E=this.legendGroup;d=d.baseline-Math.round(.3*d.fontMetrics.b);var g={};this.chart.styledMode||(g={"stroke-width":f.lineWidth||0},f.dashStyle&&(g.dashstyle=f.dashStyle));this.legendLine=l.path([["M",0,d],["L",H,d]]).addClass("highcharts-graph").attr(g).add(E);D&&!1!==D.enabled&&H&&(f=Math.min(x(D.radius,C),C),0===this.symbol.indexOf("url")&&(D=k(D,{width:t,height:t}),f=0),this.legendSymbol=D=l.symbol(this.symbol,H/2-f,d-f,2*f,2*f,D).addClass("highcharts-point").add(E), D.isMarker=!0)}}});P(k,"Core/Series/Series.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Globals.js"],k["Mixins/LegendSymbol.js"],k["Core/Options.js"],k["Core/Color/Palette.js"],k["Core/Series/Point.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Renderer/SVG/SVGElement.js"],k["Core/Utilities.js"]],function(f,d,k,x,B,G,D,H,t){var C=f.animObject,l=f.setAnimation,E=d.hasTouch,g=d.svg,y=d.win,c=x.defaultOptions,q=D.seriesTypes,n=t.addEvent,A=t.arrayMax,M=t.arrayMin,z=t.clamp,m=t.cleanRecursively, r=t.correctFloat,e=t.defined,h=t.erase,a=t.error,b=t.extend,w=t.find,J=t.fireEvent,O=t.getNestedProperty,F=t.isArray,N=t.isFunction,R=t.isNumber,Q=t.isString,T=t.merge,v=t.objectEach,L=t.pick,p=t.removeEvent,K=t.splat,S=t.syncTimeout;f=function(){function d(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}d.prototype.init= function(a,c){J(this,"init",{options:c});var e=this,g=a.series,d;this.eventOptions=this.eventOptions||{};this.eventsToUnbind=[];e.chart=a;e.options=c=e.setOptions(c);e.linkedSeries=[];e.bindAxes();b(e,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});var f=c.events;v(f,function(a,b){N(a)&&e.eventOptions[b]!==a&&(N(e.eventOptions[b])&&p(e,b,e.eventOptions[b]),e.eventOptions[b]=a,n(e,b,a))});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick= !0;e.getColor();e.getSymbol();e.parallelArrays.forEach(function(a){e[a+"Data"]||(e[a+"Data"]=[])});e.isCartesian&&(a.hasCartesianSeries=!0);g.length&&(d=g[g.length-1]);e._i=L(d&&d._i,-1)+1;e.opacity=e.options.opacity;a.orderSeries(this.insert(g));c.dataSorting&&c.dataSorting.enabled?e.setDataSortingOptions():e.points||e.data||e.setData(c.data,!1);J(this,"afterInit")};d.prototype.is=function(a){return q[a]&&this instanceof q[a]};d.prototype.insert=function(a){var b=this.options.index,c;if(R(b)){for(c= a.length;c--;)if(b>=L(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 L(c,a.length-1)};d.prototype.bindAxes=function(){var b=this,c=b.options,e=b.chart,g;J(this,"bindAxes",null,function(){(b.axisTypes||[]).forEach(function(d){e[d].forEach(function(a){g=a.options;if(c[d]===g.index||"undefined"!==typeof c[d]&&c[d]===g.id||"undefined"===typeof c[d]&&0===g.index)b.insert(a.series),b[d]=a,a.isDirty=!0});b[d]||b.optionalAxis===d||a(18,!0,e)})}); J(this,"afterBindAxes")};d.prototype.updateParallelArrays=function(a,b){var c=a.series,e=arguments,g=R(b)?function(e){var g="y"===e&&c.toYData?c.toYData(a):a[e];c[e+"Data"][b]=g}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(e,2))};c.parallelArrays.forEach(g)};d.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?l-this.cropStart:l);!d&&g[l]&&g[l].touched&&(l=void 0);return l};d.prototype.updateData= function(a,b){var c=this.options,g=c.dataSorting,d=this.points,f=[],h,m,l,n=this.requireSorting,u=a.length===d.length,p=!0;this.xIncrement=null;a.forEach(function(a,b){var m=e(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{};var p=m.x;if(m.id||R(p)){if(p=this.findPointIndex(m,l),-1===p||"undefined"===typeof p?f.push(a):d[p]&&a!==c.data[p]?(d[p].update(a,!1,null,!1),d[p].touched=!0,n&&(l=p+1)):d[p]&&(d[p].touched=!0),!u||b!==p||g&&g.enabled||this.hasDerivedData)h=!0}else f.push(a)}, this);if(h)for(a=d.length;a--;)(m=d[a])&&!m.touched&&m.remove&&m.remove(!1,b);else!u||g&&g.enabled?p=!1:(a.forEach(function(a,b){d[b].update&&a!==d[b].y&&d[b].update(a,!1,null,!1)}),f.length=0);d.forEach(function(a){a&&(a.touched=!1)});if(!p)return!1;f.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=A(this.xData),this.autoIncrement());return!0};d.prototype.setData=function(b,c,e,g){var d=this,f=d.points,h=f&&f.length|| 0,m,l=d.options,n=d.chart,u=l.dataSorting,p=null,q=d.xAxis;p=l.turboThreshold;var r=this.xData,k=this.yData,w=(m=d.pointArrayMap)&&m.length,y=l.keys,t=0,I=1,v;b=b||[];m=b.length;c=L(c,!0);u&&u.enabled&&(b=this.sortData(b));!1!==g&&m&&h&&!d.cropped&&!d.hasGroupedData&&d.visible&&!d.isSeriesBoosting&&(v=this.updateData(b,e));if(!v){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(a){d[a+"Data"].length=0});if(p&&m>p)if(p=d.getFirstValidPoint(b),R(p))for(e=0;ea?1:0}).forEach(function(a,b){a.x=b},this);b.linkedSeries&&b.linkedSeries.forEach(function(b){var c= b.options,e=c.data;c.dataSorting&&c.dataSorting.enabled||!e||(e.forEach(function(c,d){e[d]=g(b,c);a[d]&&(e[d].x=a[d].x,e[d].index=d)}),b.setData(e,!1))});return a};d.prototype.getProcessedData=function(b){var c=this.xData,e=this.yData,g=c.length;var d=0;var f=this.xAxis,h=this.options;var m=h.cropThreshold;var l=b||this.getExtremesFromAll||h.getExtremesFromAll,n=this.isCartesian;b=f&&f.val2lin;h=!(!f||!f.logarithmic);var p=this.requireSorting;if(f){f=f.getExtremes();var u=f.min;var q=f.max}if(n&& this.sorted&&!l&&(!m||g>m||this.forceCrop))if(c[g-1]q)c=[],e=[];else if(this.yData&&(c[0]q)){d=this.cropData(this.xData,this.yData,u,q);c=d.xData;e=d.yData;d=d.start;var r=!0}for(m=c.length||1;--m;)if(g=h?b(c[m])-b(c[m-1]):c[m]-c[m-1],0g&&p&&(a(15,!1,this.chart),p=!1);return{xData:c,yData:e,cropped:r,cropStart:d,closestPointRange:k}};d.prototype.processData=function(a){var b=this.xAxis;if(this.isCartesian&&!this.isDirty&&!b.isDirty&& !this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange};d.prototype.cropData=function(a,b,c,e,g){var d=a.length,f=0,h=d,m;g=L(g,this.cropShoulder);for(m=0;m=c){f=Math.max(0,m-g);break}for(c=m;ce){h=c+g;break}return{xData:a.slice(f,h),yData:b.slice(f,h),start:f,end:h}};d.prototype.generatePoints=function(){var a= this.options,c=a.data,e=this.data,g,d=this.processedXData,f=this.processedYData,h=this.pointClass,m=d.length,l=this.cropStart||0,n=this.hasGroupedData;a=a.keys;var p=[],q;e||n||(e=[],e.length=c.length,e=this.data=e);a&&n&&(this.options.keys=!1);for(q=0;q=h&&(g[p-l]||u)<=m;if(r&&u)if(r=q.length)for(;r--;)R(q[r])&&(d[f++]=q[r]);else d[f++]=q}a={dataMin:M(d),dataMax:A(d)};J(this,"afterGetExtremes",{dataExtremes:a});return a};d.prototype.applyExtremes=function(){var a=this.getExtremes(); this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};d.prototype.getFirstValidPoint=function(a){for(var b=null,c=a.length,e=0;null===b&&e=x&&(x=null),A.total=A.stackTotal=H.total,A.percentage=H.total&&A.y/H.total*100,A.stackY=E,this.irregularWidths||H.setOffset(this.pointXOffset||0,this.barW||0));A.yBottom=e(x)?z(f.translate(x,0,1,0,1),-1E5,1E5):null;l&&(E=this.modifyValue(E,A));A.plotY=void 0;R(E)&&(E=f.translate(E,!1,!0,!1,!0),"undefined"!==typeof E&&(A.plotY=z(E,-1E5,1E5)));A.isInside=this.isPointInside(A);A.clientX=q?r(c.translate(C,0,0,0,1,p)):y;A.negative=A[t]<(a[t+"Threshold"]||k|| 0);A.category=g&&"undefined"!==typeof g[A.x]?g[A.x]:A.x;if(!A.isNull&&!1!==A.visible){"undefined"!==typeof D&&(v=Math.min(v,Math.abs(y-D)));var D=y}A.zone=this.zones.length&&A.getZone();!A.graphic&&this.group&&d&&(A.isNew=!0)}this.closestPointRangePx=v;J(this,"afterTranslate")};d.prototype.getValidPoints=function(a,b,c){var e=this.chart;return(a||this.points||[]).filter(function(a){return b&&!e.isInsidePlot(a.plotX,a.plotY,e.inverted)?!1:!1!==a.visible&&(c||!a.isNull)})};d.prototype.getClipBox=function(a, b){var c=this.options,e=this.chart,g=e.inverted,d=this.xAxis,f=d&&this.yAxis,h=e.options.chart.scrollablePlotArea||{};a&&!1===c.clip&&f?a=g?{y:-e.chartWidth+f.len+f.pos,height:e.chartWidth,width:e.chartHeight,x:-e.chartHeight+d.len+d.pos}:{y:-f.pos,height:e.chartHeight,width:e.chartWidth,x:-d.pos}:(a=this.clipBox||e.clipBox,b&&(a.width=e.plotSizeX,a.x=(e.scrollablePixelsX||0)*(h.scrollPositionX||0)));return b?{width:a.width,x:a.x}:a};d.prototype.setClip=function(a){var b=this.chart,c=this.options, e=b.renderer,g=b.inverted,d=this.clipBox,f=this.getClipBox(a),h=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,a&&a.defer,f.height,c.xAxis,c.yAxis].join(),m=b[h],l=b[h+"m"];a&&(f.width=0,g&&(f.x=b.plotHeight+(!1!==c.clip?0:b.plotTop)));m?b.hasLoaded||m.attr(f):(a&&(b[h+"m"]=l=e.clipRect(g?b.plotSizeX+99:-99,g?-b.plotLeft:-b.plotTop,99,g?b.chartWidth:b.chartHeight)),b[h]=m=e.clipRect(f),m.count={length:0});a&&!m.count[this.index]&&(m.count[this.index]=!0,m.count.length+=1);if(!1!==c.clip|| a)this.group.clip(a||d?m:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h;a||(m.count[this.index]&&(delete m.count[this.index],--m.count.length),0===m.count.length&&h&&b[h]&&(d||(b[h]=b[h].destroy()),b[h+"m"]&&(b[h+"m"]=b[h+"m"].destroy())))};d.prototype.animate=function(a){var b=this.chart,c=C(this.options.animation);if(a)this.setClip(c);else{var e=this.sharedClipKey;a=b[e];var g=this.getClipBox(c,!0);a&&a.animate(g,c);b[e+"m"]&&b[e+"m"].animate({width:g.width+99,x:g.x-(b.inverted?0:99)}, c)}};d.prototype.afterAnimate=function(){this.setClip();J(this,"afterAnimate");this.finishedAnimating=!0};d.prototype.drawPoints=function(){var a=this.points,b=this.chart,c,e,g=this.options.marker,d=this[this.specialGroup]||this.markerGroup,f=this.xAxis,h=L(g.enabled,!f||f.isRadial?!0:null,this.closestPointRangePx>=g.enabledThreshold*g.radius);if(!1!==g.enabled||this._hasPointMarkers)for(c=0;cE.max;a.resetZones&&0===d&&(d=void 0)});this.clips=f}else a.visible&&(m&&m.show(!0),l&&l.show(!0))};d.prototype.invertGroups=function(a){function b(){["group","markerGroup"].forEach(function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(c.isRadialSeries?!1:a))})}var c=this,e=c.chart;c.xAxis&&(c.eventsToUnbind.push(n(e, "resize",b)),b(),c.invertGroups=b)};d.prototype.plotGroup=function(a,b,c,g,d){var f=this[a],h=!f;c={visibility:c,zIndex:g||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(c.opacity=this.opacity);h&&(this[a]=f=this.chart.renderer.g().add(d));f.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(e(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")? " highcharts-tracker":""),!0);f.attr(c)[h?"attr":"animate"](this.getPlotBox());return f};d.prototype.getPlotBox=function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}};d.prototype.removeEvents=function(a){a||p(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};d.prototype.render=function(){var a=this,b=a.chart,c=a.options, e=C(c.animation),g=!a.finishedAnimating&&b.renderer.isSVG&&e.duration,d=a.visible?"inherit":"hidden",f=c.zIndex,h=a.hasRendered,m=b.seriesGroup,l=b.inverted;J(this,"render");var n=a.plotGroup("group","series",d,f,m);a.markerGroup=a.plotGroup("markerGroup","markers",d,f,m);g&&a.animate&&a.animate(!0);n.inverted=L(a.invertible,a.isCartesian)?l:!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(l);!1===c.clip||a.sharedClipKey||h||n.clip(b.clipRect);g&&a.animate&&a.animate();h||(g&&e.defer&&(g+=e.defer),a.animationTimeout=S(function(){a.afterAnimate()},g||0));a.isDirty=!1;a.hasRendered=!0;J(a,"afterRender")};d.prototype.redraw=function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,g=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:L(e&&e.left, a.plotLeft),translateY:L(g&&g.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree};d.prototype.searchPoint=function(a,b){var c=this.xAxis,e=this.yAxis,g=this.chart.inverted;return this.searchKDTree({clientX:g?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:g?e.len-a.chartX+e.pos:a.chartY-e.pos},b,a)};d.prototype.buildKDTree=function(a){function b(a,e,g){var d;if(d=a&&a.length){var f=c.kdAxisArray[e%g];a.sort(function(a,b){return a[f]-b[f]});d=Math.floor(d/2);return{point:a[d],left:b(a.slice(0, d),e+1,g),right:b(a.slice(d+1),e+1,g)}}}this.buildingKdTree=!0;var c=this,e=-1p?"left":"right";r=0>p?"right":"left";b[k]&&(k=g(a,b[k],c+1,l),q=k[m]r;)k--;this.updateParallelArrays(q,"splice",k,0, 0);this.updateParallelArrays(q,k);m&&q.name&&(m[r]=q.name);l.splice(k,0,a);p&&(this.data.splice(k,0,null),this.processData());"point"===d.legendType&&this.generatePoints();c&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),this.updateParallelArrays(q,"shift"),l.shift()));!1!==g&&J(this,"addPoint",{point:q});this.isDirtyData=this.isDirty=!0;b&&h.redraw(e)};d.prototype.removePoint=function(a,b,c){var e=this,g=e.data,d=g[a],f=e.points,h=e.chart,m=function(){f&&f.length===g.length&&f.splice(a,1);g.splice(a, 1);e.options.data.splice(a,1);e.updateParallelArrays(d||{series:e},"splice",a,1);d&&d.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&h.redraw()};l(c,h);b=L(b,!0);d?d.firePointEvent("remove",null,m):m()};d.prototype.remove=function(a,b,c,e){function g(){d.destroy(e);f.isDirtyLegend=f.isDirtyBox=!0;f.linkSeries();L(a,!0)&&f.redraw(b)}var d=this,f=d.chart;!1!==c?J(d,"remove",null,g):g()};d.prototype.update=function(c,e){c=m(c,this.userOptions);J(this,"update",{options:c});var g=this,d=g.chart,f=g.userOptions, h=g.initialType||g.type,l=d.options.plotOptions,n=c.type||f.type||d.options.chart.type,p=!(this.hasDerivedData||n&&n!==this.type||"undefined"!==typeof c.pointStart||"undefined"!==typeof c.pointInterval||g.hasOptionChanged("dataGrouping")||g.hasOptionChanged("pointStart")||g.hasOptionChanged("pointInterval")||g.hasOptionChanged("pointIntervalUnit")||g.hasOptionChanged("keys")),r=q[h].prototype,k,w=["eventOptions","navigatorSeries","baseSeries"],u=g.finishedAnimating&&{animation:!1},y={};p&&(w.push("data", "isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==c.visible&&w.push("area","graph"),g.parallelArrays.forEach(function(a){w.push(a+"Data")}),c.data&&(c.dataSorting&&b(g.options.dataSorting,c.dataSorting),this.setData(c.data,!1)));c=T(f,u,{index:"undefined"===typeof f.index?g.index:f.index,pointStart:L(l&&l.series&&l.series.pointStart,f.pointStart,g.xData[0])},!p&& {data:g.options.data},c);p&&c.data&&(c.data=g.options.data);w=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(w);w.forEach(function(a){w[a]=g[a];delete g[a]});if(q[n||h]){if(f=n!==g.type,g.remove(!1,!1,!1,!0),f)if(Object.setPrototypeOf)Object.setPrototypeOf(g,q[n||h].prototype);else{f=Object.hasOwnProperty.call(g,"hcEvents")&&g.hcEvents;for(k in r)g[k]=void 0;b(g,q[n||h].prototype);f?g.hcEvents=f:delete g.hcEvents}}else a(17,!0,d,{missingModuleFor:n||h});w.forEach(function(a){g[a]= w[a]});g.init(d,c);if(p&&this.points){var t=g.options;!1===t.visible?(y.graphic=1,y.dataLabel=1):g._hasPointLabels||(c=t.marker,n=t.dataLabels,c&&(!1===c.enabled||"symbol"in c)&&(y.graphic=1),n&&!1===n.enabled&&(y.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(y).length&&a.destroyElements(y),!1===t.showInLegend&&a.legendItem&&d.legend.destroyItem(a))},this)}g.initialType=h;d.linkSeries();J(this,"afterUpdate");L(e,!0)&&d.redraw(p?void 0:!1)};d.prototype.setName= function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};d.prototype.hasOptionChanged=function(a){var b=this.options[a],c=this.chart.options.plotOptions,e=this.userOptions[a];return e?b!==e:b!==L(c&&c[this.type]&&c[this.type][a],c&&c.series&&c.series[a],b)};d.prototype.onMouseOver=function(){var a=this.chart,b=a.hoverSeries;a.pointer.setHoverChartIndex();if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&J(this,"mouseOver");this.setState("hover");a.hoverSeries= this};d.prototype.onMouseOut=function(){var a=this.options,b=this.chart,c=b.tooltip,e=b.hoverPoint;b.hoverSeries=null;if(e)e.onMouseOut();this&&a.events.mouseOut&&J(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();b.series.forEach(function(a){a.setState("",!0)})};d.prototype.setState=function(a,b){var c=this,e=c.options,g=c.graph,d=e.inactiveOtherPoints,f=e.states,h=e.lineWidth,m=e.opacity,l=L(f[a||"normal"]&&f[a||"normal"].animation,c.chart.options.chart.animation); e=0;a=a||"";if(c.state!==a&&([c.group,c.markerGroup,c.dataLabelsGroup].forEach(function(b){b&&(c.state&&b.removeClass("highcharts-series-"+c.state),a&&b.addClass("highcharts-series-"+a))}),c.state=a,!c.chart.styledMode)){if(f[a]&&!1===f[a].enabled)return;a&&(h=f[a].lineWidth||h+(f[a].lineWidthPlus||0),m=L(f[a].opacity,m));if(g&&!g.dashstyle)for(f={"stroke-width":h},g.animate(f,l);c["zone-graph-"+e];)c["zone-graph-"+e].animate(f,l),e+=1;d||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(a){a&& a.animate({opacity:m},l)})}b&&d&&c.points&&c.setAllPointsToState(a||void 0)};d.prototype.setAllPointsToState=function(a){this.points.forEach(function(b){b.setState&&b.setState(a)})};d.prototype.setVisible=function(a,b){var c=this,e=c.chart,g=c.legendItem,d=e.options.chart.ignoreHiddenSeries,f=c.visible;var h=(c.visible=a=c.options.visible=c.userOptions.visible="undefined"===typeof a?!f:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(c[a])c[a][h]()}); if(e.hoverSeries===c||(e.hoverPoint&&e.hoverPoint.series)===c)c.onMouseOut();g&&e.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&e.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});c.linkedSeries.forEach(function(b){b.setVisible(a,!1)});d&&(e.isDirtyBox=!0);J(c,h);!1!==b&&e.redraw()};d.prototype.show=function(){this.setVisible(!0)};d.prototype.hide=function(){this.setVisible(!1)};d.prototype.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")};d.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:B.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:B.neutralColor20,lineColor:B.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{}, align:"center",defer:!0,formatter:function(){var a=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}}, stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"};return d}();b(f.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:k.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:G,requireSorting:!0,sorted:!0});D.series=f;"";"";return f});P(k,"Extensions/ScrollablePlotArea.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Axis/Axis.js"],k["Core/Chart/Chart.js"],k["Core/Series/Series.js"], k["Core/Globals.js"],k["Core/Utilities.js"]],function(f,d,k,x,B,G){var D=f.stop,H=G.addEvent,t=G.createElement,C=G.merge,l=G.pick;"";H(k,"afterSetChartSize",function(d){var g=this.options.chart.scrollablePlotArea,f=g&&g.minWidth;g=g&&g.minHeight;if(!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=C(this.plotBox);this.plotWidth+=f;this.inverted?(this.clipBox.height+=f,this.plotBox.height+=f):(this.clipBox.width+=f,this.plotBox.width+= f);var c={1:{name:"right",value:f}}}}else g&&(this.scrollablePixelsY=f=Math.max(0,g-this.chartHeight))&&(this.scrollablePlotBox=C(this.plotBox),this.plotHeight+=f,this.inverted?(this.clipBox.width+=f,this.plotBox.width+=f):(this.clipBox.height+=f,this.plotBox.height+=f),c={2:{name:"bottom",value:f}});c&&!d.skipAxes&&this.axes.forEach(function(g){c[g.side]?g.getPlotLinePath=function(){var d=c[g.side].name,f=this[d];this[d]=f-c[g.side].value;var l=B.Axis.prototype.getPlotLinePath.apply(this,arguments); this[d]=f;return l}:(g.setAxisSize(),g.setAxisTranslation())})}});H(k,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});k.prototype.setUpScrolling=function(){var d=this,g={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(g.overflowX="auto");this.scrollablePixelsY&&(g.overflowY="auto");this.scrollingParent=t("div",{className:"highcharts-scrolling-parent"}, {position:"relative"},this.renderTo);this.scrollingContainer=t("div",{className:"highcharts-scrolling"},g,this.scrollingParent);H(this.scrollingContainer,"scroll",function(){d.pointer&&delete d.pointer.chartPosition});this.innerContainer=t("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};k.prototype.moveFixedElements=function(){var d=this.container,g=this.fixedRenderer,f=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), c;this.scrollablePixelsX&&!this.inverted?c=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?c=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?c=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(c=".highcharts-yaxis");c&&f.push(c+":not(.highcharts-radial-axis)",c+"-labels:not(.highcharts-radial-axis-labels)");f.forEach(function(c){[].forEach.call(d.querySelectorAll(c),function(c){(c.namespaceURI===g.SVG_NS?g.box:g.box.parentNode).appendChild(c);c.style.pointerEvents="auto"})})}; k.prototype.applyFixed=function(){var f=this,g,k,c,q=!this.fixedDiv,n=this.options.chart,A=n.scrollablePlotArea;q?(this.fixedDiv=t("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null===(g=n.style)||void 0===g?void 0:g.zIndex)||0)+2,top:0},null,!0),null===(k=this.scrollingContainer)||void 0===k?void 0:k.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=g=new B.Renderer(this.fixedDiv, this.chartWidth,this.chartHeight,null===(c=this.options.chart)||void 0===c?void 0:c.style),this.scrollableMask=g.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":l(A.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),H(this,"afterShowResetZoom",this.moveFixedElements),H(this,"afterLayOutTitles",this.moveFixedElements),H(d,"afterInit",function(){f.scrollableDirty=!0}),H(x,"show",function(){f.scrollableDirty=!0})):this.fixedRenderer.setSize(this.chartWidth, this.chartHeight);if(this.scrollableDirty||q)this.scrollableDirty=!1,this.moveFixedElements();c=this.chartWidth+(this.scrollablePixelsX||0);g=this.chartHeight+(this.scrollablePixelsY||0);D(this.container);this.container.style.width=c+"px";this.container.style.height=g+"px";this.renderer.boxWrapper.attr({width:c,height:g,viewBox:[0,0,c,g].join(" ")});this.chartBackground.attr({width:c,height:g});this.scrollingContainer.style.height=this.chartHeight+"px";q&&(A.scrollPositionX&&(this.scrollingContainer.scrollLeft= this.scrollablePixelsX*A.scrollPositionX),A.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*A.scrollPositionY));g=this.axisOffset;q=this.plotTop-g[0]-1;A=this.plotLeft-g[3]-1;c=this.plotTop+this.plotHeight+g[2]+1;g=this.plotLeft+this.plotWidth+g[1]+1;k=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0);n=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);q=this.scrollablePixelsX?[["M",0,q],["L",this.plotLeft-1,q],["L",this.plotLeft-1,c],["L",0,c],["Z"],["M", k,q],["L",this.chartWidth,q],["L",this.chartWidth,c],["L",k,c],["Z"]]:this.scrollablePixelsY?[["M",A,0],["L",A,this.plotTop-1],["L",g,this.plotTop-1],["L",g,0],["Z"],["M",A,n],["L",A,this.chartHeight],["L",g,this.chartHeight],["L",g,n],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:q})}});P(k,"Core/Axis/StackingAxis.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Utilities.js"]],function(f,d){var k=f.getDeferredAnimation,x=d.addEvent,B=d.destroyObjectProperties, G=d.fireEvent,D=d.objectEach,H=d.pick,t=function(){function d(d){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=d}d.prototype.buildStacks=function(){var d=this.axis,f=d.series,g=H(d.options.reversedStacks,!0),k=f.length,c;if(!d.isXAxis){this.usePercentage=!1;for(c=k;c--;){var q=f[g?c:k-c-1];q.setStackedPoints();q.setGroupedPoints()}for(c=0;cf&&l.shadow));q&&(q.startX=k.xMap,q.isArea=k.isArea)})};t.prototype.getGraphPath=function(d,f,k){var g=this,l=g.options,c=l.step,q,n=[],t=[],E;d=d||g.points;(q=d.reversed)&&d.reverse();(c={right:1,center:2}[c]||c&&3)&&q&&(c=4-c);d=this.getValidPoints(d,!1,!(l.connectNulls&&!f&&!k));d.forEach(function(q,m){var r=q.plotX,e=q.plotY,h=d[m-1];(q.leftCliff||h&&h.rightCliff)&&!k&&(E=!0);q.isNull&&!G(f)&&0d&&x>g?(x=Math.max(d,g),C=2*g-x):xl&&C>g?(C=Math.max(l,g),x=2*g-C):C=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA;d=a.borderWidth=m(e.borderWidth,d?0:1);var f=a.xAxis,h=a.yAxis,l=e.threshold,k=a.translatedThreshold=h.getThreshold(l),n=m(e.minPointLength, 5),q=a.getColumnMetrics(),r=q.width,t=a.barW=Math.max(r,1+2*d),p=a.pointXOffset=q.offset,y=a.dataMin,z=a.dataMax;b.inverted&&(k-=.5);e.pointPadding&&(t=Math.ceil(t));G.prototype.translate.apply(a);a.points.forEach(function(d){var w=m(d.yBottom,k),v=999+Math.abs(w),F=r,x=d.plotX||0;v=g(d.plotY,-v,h.len+v);var E=x+p,C=t,A=Math.min(v,w),B=Math.max(v,w)-A;if(n&&Math.abs(B)n?w-n:k-(H?n:0)}c(d.options.pointWidth)&&(F=C=Math.ceil(d.options.pointWidth),E-=Math.round((F-r)/2));e.centerInCategory&&(E=a.adjustForMissingColumns(E,F,d,q));d.barX=E;d.pointWidth=F;d.tooltipPos=b.inverted?[g(h.len+h.pos-b.plotLeft-v,h.pos-b.plotLeft,h.len+h.pos-b.plotLeft),f.len+f.pos-b.plotTop-(x||0)-p-C/2,B]:[f.left-b.plotLeft+E+C/2,g(v+h.pos-b.plotTop,h.pos-b.plotTop,h.len+h.pos-b.plotTop),B];d.shapeType=a.pointClass.prototype.shapeType||"rect";d.shapeArgs=a.crispCol.apply(a, d.isNull?[E,k,C,0]:[E,A,C,B])})};d.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};d.prototype.pointAttribs=function(a,b){var c=this.options,e=this.pointAttrToOptions||{};var d=e.stroke||"borderColor";var g=e["stroke-width"]||"borderWidth",f=a&&a.color||this.color,h=a&&a[d]||c[d]||this.color||f,k=a&&a[g]||c[g]||this[g]||0;e=a&&a.options.dashStyle||c.dashStyle;var n=m(a&&a.opacity,c.opacity,1);if(a&&this.zones.length){var q=a.getZone();f=a.options.color|| q&&(q.color||a.nonZonedColor)||this.color;q&&(h=q.borderColor||h,e=q.dashStyle||e,k=q.borderWidth||k)}b&&a&&(a=z(c.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,f=a.color||"undefined"!==typeof b&&l(f).brighten(a.brightness).get()||f,h=a[d]||h,k=a[g]||k,e=a.dashStyle||e,n=m(a.opacity,n));d={fill:f,stroke:h,"stroke-width":k,opacity:n};e&&(d.dashstyle=e);return d};d.prototype.drawPoints=function(){var a=this,b=this.chart,c=a.options,e=b.renderer,d=c.animationLimit||250,g;a.points.forEach(function(f){var h= f.graphic,m=!!h,l=h&&b.pointCount\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});return k}(d);D(x.prototype,{drawTracker:f.prototype.drawTracker, sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});G(x,"afterTranslate",function(){this.applyJitter()});k.registerSeriesType("scatter",x);"";return x});P(k,"Mixins/CenteredSeries.js",[k["Core/Globals.js"],k["Core/Series/Series.js"],k["Core/Utilities.js"]],function(f,d,k){var x=k.isNumber,B=k.pick,G=k.relativeLength,D=f.deg2rad;return f.CenteredSeriesMixin={getCenter:function(){var f=this.options,k=this.chart,x=2*(f.slicedOffset|| 0),l=k.plotWidth-2*x,E=k.plotHeight-2*x,g=f.center,y=Math.min(l,E),c=f.size,q=f.innerSize||0;"string"===typeof c&&(c=parseFloat(c));"string"===typeof q&&(q=parseFloat(q));f=[B(g[0],"50%"),B(g[1],"50%"),B(c&&0>c?void 0:f.size,"100%"),B(q&&0>q?void 0:f.innerSize||0,"0%")];!k.angular||this instanceof d||(f[3]=0);for(g=0;4>g;++g)c=f[g],k=2>g||2===g&&/%$/.test(c),f[g]=G(c,[l,E,y,f[2]][g])+(k?x:0);f[3]>f[2]&&(f[3]=f[2]);return f},getStartAndEndRadians:function(d,f){d=x(d)?d:0;f=x(f)&&f>d&&360>f-d?f:d+360; return{start:D*(d+-90),end:D*(f+-90)}}}});P(k,"Series/Pie/PiePoint.js",[k["Core/Animation/AnimationUtilities.js"],k["Core/Series/Point.js"],k["Core/Utilities.js"]],function(f,d,k){var x=this&&this.__extends||function(){var d=function(f,g){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var g in c)c.hasOwnProperty(g)&&(d[g]=c[g])};return d(f,g)};return function(f,g){function l(){this.constructor=f}d(f,g);f.prototype=null===g?Object.create(g): (l.prototype=g.prototype,new l)}}(),B=f.setAnimation,G=k.addEvent,D=k.defined;f=k.extend;var H=k.isNumber,t=k.pick,C=k.relativeLength;k=function(f){function l(){var d=null!==f&&f.apply(this,arguments)||this;d.labelDistance=void 0;d.options=void 0;d.series=void 0;return d}x(l,f);l.prototype.getConnectorPath=function(){var d=this.labelPosition,f=this.series.options.dataLabels,c=f.connectorShape,l=this.connectorShapes;l[c]&&(c=l[c]);return c.call(this,{x:d.final.x,y:d.final.y,alignment:d.alignment}, d.connectorPosition,f)};l.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};l.prototype.haloPath=function(d){var f=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(f.x,f.y,f.r+d,f.r+d,{innerR:f.r-1,start:f.start,end:f.end})};l.prototype.init=function(){d.prototype.init.apply(this,arguments);var f=this;f.name=t(f.name,"Slice");var l=function(c){f.slice("select"===c.type)};G(f,"select",l);G(f,"unselect", l);return f};l.prototype.isValid=function(){return H(this.y)&&0<=this.y};l.prototype.setVisible=function(d,f){var c=this,g=c.series,l=g.chart,k=g.options.ignoreHiddenPoint;f=t(f,k);d!==c.visible&&(c.visible=c.options.visible=d="undefined"===typeof d?!c.visible:d,g.options.data[g.data.indexOf(c)]=c.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(f){if(c[f])c[f][d?"show":"hide"](d)}),c.legendItem&&l.legend.colorizeItem(c,d),d||"hover"!==c.state||c.setState(""),k&&(g.isDirty= !0),f&&l.redraw())};l.prototype.slice=function(d,f,c){var g=this.series;B(c,g.chart);t(f,!0);this.sliced=this.options.sliced=D(d)?d:!this.sliced;g.options.data[g.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return l}(d);f(k.prototype,{connectorShapes:{fixedOffset:function(d,f,g){var l=f.breakAt;f=f.touchingSliceAt;return[["M",d.x,d.y],g.softConnector?["C",d.x+("left"===d.alignment?-5:5),d.y, 2*l.x-f.x,2*l.y-f.y,l.x,l.y]:["L",l.x,l.y],["L",f.x,f.y]]},straight:function(d,f){f=f.touchingSliceAt;return[["M",d.x,d.y],["L",f.x,f.y]]},crookedLine:function(d,f,g){f=f.touchingSliceAt;var l=this.series,c=l.center[0],k=l.chart.plotWidth,n=l.chart.plotLeft;l=d.alignment;var t=this.shapeArgs.r;g=C(g.crookDistance,1);k="left"===l?c+t+(k+n-c-t)*(1-g):n+(c-t)*g;g=["L",k,d.y];c=!0;if("left"===l?k>d.x||kf.x)c=!1;d=[["M",d.x,d.y]];c&&d.push(g);d.push(["L",f.x,f.y]);return d}}});return k}); P(k,"Series/Pie/PieSeries.js",[k["Mixins/CenteredSeries.js"],k["Series/Column/ColumnSeries.js"],k["Core/Globals.js"],k["Mixins/LegendSymbol.js"],k["Core/Color/Palette.js"],k["Series/Pie/PiePoint.js"],k["Core/Series/Series.js"],k["Core/Series/SeriesRegistry.js"],k["Core/Renderer/SVG/SVGRenderer.js"],k["Core/Utilities.js"]],function(f,d,k,x,B,G,D,H,t,C){var l=this&&this.__extends||function(){var c=function(d,f){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,e){c.__proto__=e}||function(c, e){for(var d in e)e.hasOwnProperty(d)&&(c[d]=e[d])};return c(d,f)};return function(d,f){function g(){this.constructor=d}c(d,f);d.prototype=null===f?Object.create(f):(g.prototype=f.prototype,new g)}}(),E=f.getStartAndEndRadians;k=k.noop;var g=C.clamp,y=C.extend,c=C.fireEvent,q=C.merge,n=C.pick,A=C.relativeLength;C=function(d){function f(){var c=null!==d&&d.apply(this,arguments)||this;c.center=void 0;c.data=void 0;c.maxLabelDistance=void 0;c.options=void 0;c.points=void 0;return c}l(f,d);f.prototype.animate= function(c){var d=this,e=d.points,f=d.startAngleRad;c||e.forEach(function(a){var b=a.graphic,c=a.shapeArgs;b&&c&&(b.attr({r:n(a.startR,d.center&&d.center[3]/2),start:f,end:f}),b.animate({r:c.r,start:c.start,end:c.end},d.options.animation))})};f.prototype.drawEmpty=function(){var c=this.startAngleRad,d=this.endAngleRad,e=this.options;if(0===this.total&&this.center){var f=this.center[0];var a=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,a,this.center[1]/2,0,c,d).addClass("highcharts-empty-series").add(this.group)); this.graph.attr({d:t.prototype.symbols.arc(f,a,this.center[2]/2,0,{start:c,end:d,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":e.borderWidth,fill:e.fillColor||"none",stroke:e.color||B.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};f.prototype.drawPoints=function(){var c=this.chart.renderer;this.points.forEach(function(d){d.graphic&&d.hasNewShapeType()&&(d.graphic=d.graphic.destroy());d.graphic||(d.graphic=c[d.shapeType](d.shapeArgs).add(d.series.group), d.delayedRendering=!0)})};f.prototype.generatePoints=function(){d.prototype.generatePoints.call(this);this.updateTotals()};f.prototype.getX=function(c,d,e){var f=this.center,a=this.radii?this.radii[e.index]||0:f[2]/2;c=Math.asin(g((c-f[1])/(a+e.labelDistance),-1,1));return f[0]+(d?-1:1)*Math.cos(c)*(a+e.labelDistance)+(01.5*Math.PI?y-=2*Math.PI:y<-Math.PI/2&&(y+=2*Math.PI);z.slicedTranslation={translateX:Math.round(Math.cos(y)*g),translateY:Math.round(Math.sin(y)*g)};var v=Math.cos(y)*d[2]/2;var C=Math.sin(y)*d[2]/2;z.tooltipPos=[d[0]+.7*v,d[1]+.7*C];z.half=y<-Math.PI/2||y>Math.PI/2?1:0;z.angle=y;x=Math.min(a,z.labelDistance/5);z.labelPosition={natural:{x:d[0]+v+Math.cos(y)*z.labelDistance,y:d[1]+C+Math.sin(y)*z.labelDistance},"final":{}, alignment:0>z.labelDistance?"center":z.half?"right":"left",connectorPosition:{breakAt:{x:d[0]+v+Math.cos(y)*x,y:d[1]+C+Math.sin(y)*x},touchingSliceAt:{x:d[0]+v,y:d[1]+C}}}}c(this,"afterTranslate")};f.prototype.updateTotals=function(){var c,d=0,e=this.points,f=e.length,a=this.options.ignoreHiddenPoint;for(c=0;cq){z(c,function(a, b){return(b.rank||0)-(a.rank||0)});for(k=a=0;k<=q;)k+=c[a].size,a++;l=c.splice(a-1,c.length)}z(c,g);for(c=c.map(function(a){return{size:a.size,targets:[a.target],align:n(a.align,.5)}});b;){for(a=c.length;a--;)b=c[a],k=(Math.min.apply(0,b.targets)+Math.max.apply(0,b.targets))/2,b.pos=t(k-b.size*b.align,0,f-b.size);a=c.length;for(b=!1;a--;)0c[a].pos&&(c[a-1].size+=c[a].size,c[a-1].targets=c[a-1].targets.concat(c[a].targets),c[a-1].align=.5,c[a-1].pos+c[a-1].size>f&&(c[a-1].pos= f-c[a-1].size),c.splice(a,1),b=!0)}m.push.apply(m,l);a=0;c.some(function(b){var c=0;if(b.targets.some(function(){m[a].pos=b.pos+c;if("undefined"!==typeof e&&Math.abs(m[a].pos-m[a].target)>e)return m.slice(0,a+1).forEach(function(a){delete a.pos}),m.reducedLen=(m.reducedLen||f)-.1*f,m.reducedLen>.1*f&&d.distribute(m,f,e),!0;c+=m[a].size;a++}))return!0});z(m,g)};x.prototype.drawDataLabels=function(){function d(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,">"===b&&a>c||"<"=== b&&a="===b&&a>=c||"<="===b&&a<=c||"=="===b&&a==c||"==="===b&&a===c?!0:!1):!0}function f(a,b){var d=[],e;if(y(a)&&!y(b))d=a.map(function(a){return c(a,b)});else if(y(b)&&!y(a))d=b.map(function(b){return c(a,b)});else if(y(a)||y(b))for(e=Math.max(a.length,b.length);e--;)d[e]=c(a[e],b[e]);else d=c(a,b);return d}var e=this,h=e.chart,a=e.options,b=a.dataLabels,l=e.points,t,z=e.hasRendered||0,x=b.animation;x=b.defer?D(h,x,e):{defer:0,duration:0};var A=h.renderer;b=f(f(h.options.plotOptions&&h.options.plotOptions.series&& h.options.plotOptions.series.dataLabels,h.options.plotOptions&&h.options.plotOptions[e.type]&&h.options.plotOptions[e.type].dataLabels),b);E(this,"drawDataLabels");if(y(b)||b.enabled||e._hasPointLabels){var B=e.plotGroup("dataLabelsGroup","data-labels",z?"inherit":"hidden",b.zIndex||6);B.attr({opacity:+z});!z&&(z=e.dataLabelsGroup)&&(e.visible&&B.show(!0),z[a.animation?"animate":"attr"]({opacity:1},x));l.forEach(function(c){t=M(f(b,c.dlOptions||c.options&&c.options.dataLabels));t.forEach(function(b, f){var m=b.enabled&&(!c.isNull||c.dataLabelOnNull)&&d(c,b),l=c.dataLabels?c.dataLabels[f]:c.dataLabel,r=c.connectors?c.connectors[f]:c.connector,t=n(b.distance,c.labelDistance),w=!l;if(m){var u=c.getLabelConfig();var v=n(b[c.formatPrefix+"Format"],b.format);u=C(v)?g(v,u,h):(b[c.formatPrefix+"Formatter"]||b.formatter).call(u,b);v=b.style;var z=b.rotation;h.styledMode||(v.color=n(b.color,v.color,e.color,k.neutralColor100),"contrast"===v.color?(c.contrastColor=A.getContrast(c.color||e.color),v.color= !C(t)&&b.inside||0>t||a.stacking?c.contrastColor:k.neutralColor100):delete c.contrastColor,a.cursor&&(v.cursor=a.cursor));var x={r:b.borderRadius||0,rotation:z,padding:b.padding,zIndex:1};h.styledMode||(x.fill=b.backgroundColor,x.stroke=b.borderColor,x["stroke-width"]=b.borderWidth);q(x,function(a,b){"undefined"===typeof a&&delete x[b]})}!l||m&&C(u)?m&&C(u)&&(l?x.text=u:(c.dataLabels=c.dataLabels||[],l=c.dataLabels[f]=z?A.text(u,0,-9999,b.useHTML).addClass("highcharts-data-label"):A.label(u,0,-9999, b.shape,null,null,b.useHTML,null,"data-label"),f||(c.dataLabel=l),l.addClass(" highcharts-data-label-color-"+c.colorIndex+" "+(b.className||"")+(b.useHTML?" highcharts-tracker":""))),l.options=b,l.attr(x),h.styledMode||l.css(v).shadow(b.shadow),l.added||l.add(B),b.textPath&&!b.useHTML&&(l.setTextPath(c.getDataLabelPath&&c.getDataLabelPath(l)||c.graphic,b.textPath),c.dataLabelPath&&!b.textPath.enabled&&(c.dataLabelPath=c.dataLabelPath.destroy())),e.alignDataLabel(c,l,b,null,w)):(c.dataLabel=c.dataLabel&& c.dataLabel.destroy(),c.dataLabels&&(1===c.dataLabels.length?delete c.dataLabels:delete c.dataLabels[f]),f||delete c.dataLabel,r&&(c.connector=c.connector.destroy(),c.connectors&&(1===c.connectors.length?delete c.connectors:delete c.connectors[f])))})})}E(this,"afterDrawDataLabels")};x.prototype.alignDataLabel=function(c,d,e,f,a){var b=this,g=this.chart,h=this.isCartesian&&g.inverted,m=this.enabledDataSorting,k=n(c.dlBox&&c.dlBox.centerX,c.plotX,-9999),q=n(c.plotY,-9999),r=d.getBBox(),t=e.rotation, z=e.align,v=g.isInsidePlot(k,Math.round(q),h),x="justify"===n(e.overflow,m?"none":"justify"),p=this.visible&&!1!==c.visible&&(c.series.forceDL||m&&!x||v||e.inside&&f&&g.isInsidePlot(k,h?f.x+1:f.y+f.height-1,h));var y=function(e){m&&b.xAxis&&!x&&b.setDataLabelStartPos(c,d,a,v,e)};if(p){var C=g.renderer.fontMetrics(g.styledMode?void 0:e.style.fontSize,d).b;f=l({x:h?this.yAxis.len-q:k,y:Math.round(h?this.xAxis.len-k:q),width:0,height:0},f);l(e,{width:r.width,height:r.height});t?(x=!1,k=g.renderer.rotCorr(C, t),k={x:f.x+(e.x||0)+f.width/2+k.x,y:f.y+(e.y||0)+{top:0,middle:.5,bottom:1}[e.verticalAlign]*f.height},y(k),d[a?"attr":"animate"](k).attr({align:z}),y=(t+720)%360,y=180y,"left"===z?k.y-=y?r.height:0:"center"===z?(k.x-=r.width/2,k.y-=r.height/2):"right"===z&&(k.x-=r.width,k.y-=y?0:r.height),d.placed=!0,d.alignAttr=k):(y(f),d.align(e,null,f),k=d.alignAttr);x&&0<=f.height?this.justifyDataLabel(d,e,k,r,f,a):n(e.crop,!0)&&(p=g.isInsidePlot(k.x,k.y)&&g.isInsidePlot(k.x+r.width,k.y+r.height));if(e.shape&& !t)d[a?"attr":"animate"]({anchorX:h?g.plotWidth-c.plotY:c.plotX,anchorY:h?g.plotHeight-c.plotX:c.plotY})}a&&m&&(d.placed=!1);p||m&&!x||(d.hide(!0),d.placed=!1)};x.prototype.setDataLabelStartPos=function(c,d,e,f,a){var b=this.chart,g=b.inverted,h=this.xAxis,k=h.reversed,l=g?d.height/2:d.width/2;c=(c=c.pointWidth)?c/2:0;h=g?a.x:k?-l-c:h.width-l+c;a=g?k?this.yAxis.height-l+c:-l-c:a.y;d.startXPos=h;d.startYPos=a;f?"hidden"===d.visibility&&(d.show(),d.attr({opacity:0}).animate({opacity:1})):d.attr({opacity:1}).animate({opacity:0}, void 0,d.hide);b.hasRendered&&(e&&d.attr({x:d.startXPos,y:d.startYPos}),d.placed=!0)};x.prototype.justifyDataLabel=function(c,d,e,f,a,b){var g=this.chart,h=d.align,k=d.verticalAlign,l=c.box?0:c.padding||0,m=d.x;m=void 0===m?0:m;var n=d.y;var q=void 0===n?0:n;n=e.x+l;if(0>n){"right"===h&&0<=m?(d.align="left",d.inside=!0):m-=n;var r=!0}n=e.x+f.width-l;n>g.plotWidth&&("left"===h&&0>=m?(d.align="right",d.inside=!0):m+=g.plotWidth-n,r=!0);n=e.y+l;0>n&&("bottom"===k&&0<=q?(d.verticalAlign="top",d.inside= !0):q-=n,r=!0);n=e.y+f.height-l;n>g.plotHeight&&("top"===k&&0>=q?(d.verticalAlign="bottom",d.inside=!0):q+=g.plotHeight-n,r=!0);r&&(d.x=m,d.y=q,c.placed=!b,c.align(d,void 0,a));return r};B.pie&&(B.pie.prototype.dataLabelPositioners={radialDistributionY:function(c){return c.top+c.distributeBox.pos},radialDistributionX:function(c,d,e,f){return c.getX(ed.bottom-2?f:e,d.half,d)},justify:function(c,d,e){return e[0]+(c.half?-1:1)*(d+c.labelDistance)},alignToPlotEdges:function(c,d,e,f){c=c.getBBox().width; return d?c+f:e-c-f},alignToConnectors:function(c,d,e,f){var a=0,b;c.forEach(function(c){b=c.dataLabel.getBBox().width;b>a&&(a=b)});return d?a+f:e-a-f}},B.pie.prototype.drawDataLabels=function(){var f=this,g=f.data,e,h=f.chart,a=f.options.dataLabels||{},b=a.connectorPadding,l,q=h.plotWidth,t=h.plotHeight,z=h.plotLeft,y=Math.round(h.chartWidth/3),A,B=f.center,E=B[2]/2,v=B[1],D,p,G,M,P=[[],[]],u,S,I,X,U=[0,0,0,0],W=f.dataLabelPositioners,Y;f.visible&&(a.enabled||f._hasPointLabels)&&(g.forEach(function(a){a.dataLabel&& a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),x.prototype.drawDataLabels.apply(f),g.forEach(function(b){b.dataLabel&&(b.visible?(P[b.half].push(b),b.dataLabel._pos=null,!C(a.style.width)&&!C(b.options.dataLabels&&b.options.dataLabels.style&&b.options.dataLabels.style.width)&&b.dataLabel.getBBox().width>y&&(b.dataLabel.css({width:Math.round(.7*y)+"px"}),b.dataLabel.shortened=!0)):(b.dataLabel=b.dataLabel.destroy(), b.dataLabels&&1===b.dataLabels.length&&delete b.dataLabels))}),P.forEach(function(c,g){var k=c.length,l=[],m;if(k){f.sortByAngle(c,g-.5);if(0q-b&&0===g&&(r=Math.round(u+p-q+b),U[1]=Math.max(r,U[1])),0>S-M/2?U[0]=Math.max(Math.round(-S+M/2),U[0]):S+M/2>t&&(U[2]=Math.max(Math.round(S+M/2-t),U[2])),D.sideOverflow=r)}}}),0===H(U)||this.verifyDataLabelOverflow(U))&& (this.placeDataLabels(),this.points.forEach(function(b){Y=c(a,b.options.dataLabels);if(l=n(Y.connectorWidth,1)){var d;A=b.connector;if((D=b.dataLabel)&&D._pos&&b.visible&&0n(this.translatedThreshold,h.yAxis.len)),m=n(e.inside,!!this.options.stacking);k&&(g=c(k),0>g.y&&(g.height+=g.y,g.y=0),k=g.y+g.height-h.yAxis.len,0=A.x+A.width||B.x+B.width<=A.x||B.y>=A.y+A.height||B.y+B.height<=A.y||((n.labelrank=H(g.minWidth,0)&&this.chartHeight>=H(g.minHeight,0)}).call(this)&& f.push(d._id)};f.prototype.currentOptions=function(d){function f(c,d,k,l){var n;D(c,function(c,m){if(!l&&-1