/* Highstock JS v10.1.0 (2022-05-20) (c) 2009-2021 Torstein Honsi License: www.highcharts.com/license */ (function(U,O){"object"===typeof module&&module.exports?(O["default"]=O,module.exports=U.document?O(U):O):"function"===typeof define&&define.amd?define("highcharts/highstock",function(){return O(U)}):(U.Highcharts&&U.Highcharts.error(16,!0),U.Highcharts=O(U))})("undefined"!==typeof window?window:this,function(U){function O(C,a,A,G){C.hasOwnProperty(a)||(C[a]=G.apply(null,A),"function"===typeof CustomEvent&&U.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:a,module:C[a]}})))}var a= {};O(a,"Core/Globals.js",[],function(){var a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="10.1.0";a.win="undefined"!==typeof U?U:{};a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera;a.isSafari= !a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var C=!1;if(!a.isMS){var q=Object.defineProperty({},"passive",{get:function(){C=!0}}); a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",a.noop,q),a.win.removeEventListener("testPassive",a.noop,q))}return C}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});O(a,"Core/Utilities.js",[a["Core/Globals.js"]],function(a){function C(e,b,h,r){var p=b?"Highcharts error":"Highcharts warning";32===e&&(e=""+p+": Deprecated member");var y=l(e),L=y?""+p+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString(); if("undefined"!==typeof r){var I="";y&&(L+="?");M(r,function(b,e){I+="\n - ".concat(e,": ").concat(b);y&&(L+=encodeURI(e)+"="+encodeURI(b))});L+=I}w(a,"displayError",{chart:h,code:e,message:L,params:r},function(){if(b)throw Error(L);f.console&&-1===C.messages.indexOf(L)&&console.warn(L)});C.messages.push(L)}function A(e,b){var f={};M(e,function(h,p){if(J(e[p],!0)&&!e.nodeType&&b[p])h=A(e[p],b[p]),Object.keys(h).length&&(f[p]=h);else if(J(e[p])||e[p]!==b[p]||p in e&&!(p in b))f[p]=e[p]});return f} function G(e,b){return parseInt(e,b||10)}function x(e){return"string"===typeof e}function H(e){e=Object.prototype.toString.call(e);return"[object Array]"===e||"[object Array Iterator]"===e}function J(e,b){return!!e&&"object"===typeof e&&(!b||!H(e))}function D(e){return J(e)&&"number"===typeof e.nodeType}function m(e){var b=e&&e.constructor;return!(!J(e,!0)||D(e)||!b||!b.name||"Object"===b.name)}function l(e){return"number"===typeof e&&!isNaN(e)&&Infinity>e&&-Infinity=b-1&&(b=Math.floor(h)),Math.max(0,b-(y(e,"padding-left",!0)||0)-(y(e,"padding-right",!0)||0));if("height"===b)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(y(e,"padding-top",!0)||0)-(y(e, "padding-bottom",!0)||0));f.getComputedStyle||C(27,!0);if(e=f.getComputedStyle(e,void 0)){var p=e.getPropertyValue(b);t(h,"opacity"!==b)&&(p=G(p))}return p}function M(e,b,f){for(var h in e)Object.hasOwnProperty.call(e,h)&&b.call(f||e[h],e[h],h,e)}function K(e,b,f){function h(b,f){var N=e.removeEventListener||a.removeEventListenerPolyfill;N&&N.call(e,b,f,!1)}function p(f){var N;if(e.nodeName){if(b){var p={};p[b]=!0}else p=f;M(p,function(b,e){if(f[e])for(N=f[e].length;N--;)h(e,f[e][N].fn)})}}var y= "function"===typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(y,"hcEvents")){var L=y.hcEvents;b?(y=L[b]||[],f?(L[b]=y.filter(function(b){return f!==b.fn}),h(b,f)):(p(L),L[b]=[])):(p(L),delete y.hcEvents)}}function w(e,b,f,h){f=f||{};if(n.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==a)){var p=n.createEvent("Events");p.initEvent(b,!0,!0);f=c(p,f);e.dispatchEvent?e.dispatchEvent(f):e.fireEvent(b,f)}else if(e.hcEvents){f.target||c(f,{preventDefault:function(){f.defaultPrevented=!0},target:e, type:b});p=[];for(var y=e,L=!1;y.hcEvents;)Object.hasOwnProperty.call(y,"hcEvents")&&y.hcEvents[b]&&(p.length&&(L=!0),p.unshift.apply(p,y.hcEvents[b])),y=Object.getPrototypeOf(y);L&&p.sort(function(b,e){return b.order-e.order});p.forEach(function(b){!1===b.fn.call(e,f)&&f.preventDefault()})}h&&!f.defaultPrevented&&h.call(e,f)}var z=a.charts,n=a.doc,f=a.win;(C||(C={})).messages=[];Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var u=Array.prototype.find?function(e,b){return e.find(b)}: function(e,b){var f,h=e.length;for(f=0;ff&&(f=e[b]);return f},arrayMin:function(e){for(var b=e.length,f=e[0];b--;)e[b]b?e=f&&(b=[1/f])));for(h=0;h=e||!p&&L<=(b[h]+(b[h+1]||b[h]))/2);h++);return r=E(r*f,-Math.round(Math.log(.001)/Math.LN10))},objectEach:M,offset:function(e){var b=n.documentElement;e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(f.pageYOffset||b.scrollTop)-(b.clientTop||0),left:e.left+(f.pageXOffset||b.scrollLeft)- (b.clientLeft||0),width:e.width,height:e.height}},pad:function(e,b,f){return Array((b||2)+1-String(e).replace("-","").length).join(f||"0")+e},pick:t,pInt:G,relativeLength:function(e,b,f){return/%$/.test(e)?b*parseFloat(e)/100+(f||0):parseFloat(e)},removeEvent:K,splat:function(e){return H(e)?e:[e]},stableSort:function(e,b){var f=e.length,h,p;for(p=0;p>16,(l&65280)>>8,l&255,1]: 4===m&&(D=[(l&3840)>>4|(l&3840)>>8,(l&240)>>4|l&240,(l&15)<<4|l&15,1])}if(!D)for(l=q.parsers.length;l--&&!D;){var d=q.parsers[l];(m=d.regex.exec(a))&&(D=d.parse(m))}}D&&(this.rgba=D)};q.prototype.get=function(a){var D=this.input,m=this.rgba;if("object"===typeof D&&"undefined"!==typeof this.stops){var l=G(D);l.stops=[].slice.call(l.stops);this.stops.forEach(function(d,g){l.stops[g]=[l.stops[g][0],d.get(a)]});return l}return m&&C(m[0])?"rgb"===a||!a&&1===m[3]?"rgb("+m[0]+","+m[1]+","+m[2]+")":"a"=== a?"".concat(m[3]):"rgba("+m.join(",")+")":D};q.prototype.brighten=function(a){var D=this.rgba;if(this.stops)this.stops.forEach(function(l){l.brighten(a)});else if(C(a)&&0!==a)for(var m=0;3>m;m++)D[m]+=x(255*a),0>D[m]&&(D[m]=0),255z?"AM":"PM",P:12>z?"am":"pm",S:l(w.getSeconds()),L:l(Math.floor(g%1E3),3)},a.dateFormats);m(w,function(b,e){for(;-1!==c.indexOf("%"+e);)c=c.replace("%"+e,"function"===typeof b?b.call(B,g):b)});return t?c.substr(0, 1).toUpperCase()+c.substr(1):c};B.prototype.resolveDTLFormat=function(c){return J(c,!0)?c:(c=g(c),{main:c[0],from:c[1],to:c[2]})};B.prototype.getTimeTicks=function(g,t,B,k){var w=this,z=[],n={},f=new w.Date(t),u=g.unitRange,h=g.count||1,r;k=d(k,1);if(G(t)){w.set("Milliseconds",f,u>=c.second?0:h*Math.floor(w.get("Milliseconds",f)/h));u>=c.second&&w.set("Seconds",f,u>=c.minute?0:h*Math.floor(w.get("Seconds",f)/h));u>=c.minute&&w.set("Minutes",f,u>=c.hour?0:h*Math.floor(w.get("Minutes",f)/h));u>=c.hour&& w.set("Hours",f,u>=c.day?0:h*Math.floor(w.get("Hours",f)/h));u>=c.day&&w.set("Date",f,u>=c.month?1:Math.max(1,h*Math.floor(w.get("Date",f)/h)));if(u>=c.month){w.set("Month",f,u>=c.year?0:h*Math.floor(w.get("Month",f)/h));var e=w.get("FullYear",f)}u>=c.year&&w.set("FullYear",f,e-e%h);u===c.week&&(e=w.get("Day",f),w.set("Date",f,w.get("Date",f)-e+k+(e4*c.month||w.getTimezoneOffset(t)!==w.getTimezoneOffset(B));t=f.getTime();for(f=1;tz.length&&z.forEach(function(b){0===b%18E5&&"000000000"===w.dateFormat("%H%M%S%L",b)&&(n[b]="day")})}z.info=H(g,{higherRanks:n,totalRange:u*h});return z};B.prototype.getDateFormat=function(d,g,t, B){var w=this.dateFormat("%m-%d %H:%M:%S.%L",g),z={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond";for(f in c){if(d===c.week&&+this.dateFormat("%w",g)===t&&"00:00:00.000"===w.substr(6)){var f="week";break}if(c[f]>d){f=n;break}if(z[f]&&w.substr(z[f])!=="01-01 00:00:00.000".substr(z[f]))break;"week"!==f&&(n=f)}if(f)var u=this.resolveDTLFormat(B[f]).main;return u};return B}();"";return q});O(a,"Core/DefaultOptions.js",[a["Core/Chart/ChartDefaults.js"],a["Core/Color/Color.js"],a["Core/Globals.js"], a["Core/Color/Palettes.js"],a["Core/Time.js"],a["Core/Utilities.js"]],function(a,q,A,G,x,H){q=q.parse;var C=H.merge,D={colors:G.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:a,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center", alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom", x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:A.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout", hideDelay:500,padding:8,shape:"callout",shared:!1,snap:A.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:q("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right", x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};D.chart.styledMode=!1;"";var m=new x(C(D.global,D.time));a={defaultOptions:D,defaultTime:m,getOptions:function(){return D},setOptions:function(l){C(!0,D,l);if(l.time||l.global)A.time?A.time.update(C(D.global,D.time,l.global,l.time)):A.time=m;return D}};"";return a});O(a,"Core/Animation/Fx.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q,A){var C= a.parse,x=q.win,H=A.isNumber,J=A.objectEach;return function(){function a(a,l,d){this.pos=NaN;this.options=l;this.elem=a;this.prop=d}a.prototype.dSetter=function(){var a=this.paths,l=a&&a[0];a=a&&a[1];var d=this.now||0,g=[];if(1!==d&&l&&a)if(l.length===a.length&&1>d)for(var c=0;c=t+this.startTime){this.now=this.end;this.pos=1;this.update();var B=k[this.prop]=!0;J(k, function(c){!0!==c&&(B=!1)});B&&c&&c.call(g);a=!1}else this.pos=d.easing((l-this.startTime)/t),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,l,d){function g(c,z){for(;c.lengthB[1]){var F=d+ +B[1];0<=F?(B[0]=(+B[0]).toExponential(F).split("e")[0],d=F):(B[0]=B[0].split(".")[0]||0,a=20>d?(B[0]*Math.pow(10,B[1])).toFixed(d):0,B[1]=0)}F=(Math.abs(B[1]?B[0]:a)+Math.pow(10,-Math.max(d,k)- 1)).toFixed(d);k=String(m(F));var l=3a?"-":"")+(l?k.substr(0,l)+c:"");a=0>+B[1]&&!E?"0":a+k.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+c);d&&(a+=g+F.slice(-d));B[1]&&0!==+a&&(a+="e"+B[1]);return a}var G=a.defaultOptions,x=a.defaultTime,H=q.getNestedProperty,J=q.isNumber,D=q.pick,m=q.pInt;return{dateFormat:function(a,d,g){return x.dateFormat(a,d,g)},format:function(a,d,g){var c="{",t=!1,k=/f$/,B=/\.([0-9])/,E=G.lang,F=g&&g.time|| x;g=g&&g.numberFormatter||C;for(var l=[];a;){var K=a.indexOf(c);if(-1===K)break;var w=a.slice(0,K);if(t){w=w.split(":");c=H(w.shift()||"",d);if(w.length&&"number"===typeof c)if(w=w.join(":"),k.test(w)){var z=parseInt((w.match(B)||["","-1"])[1],10);null!==c&&(c=g(c,z,E.decimalPoint,-1g){G(a,c);for(F=k=0;F<=g;)F+=a[k].size,k++;E=a.splice(k-1,a.length)}G(a,t);for(a=a.map(function(c){return{size:c.size,targets:[c.target],align:A(c.align,.5)}});B;){for(k=a.length;k--;)g=a[k],c=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/ 2,g.pos=C(c-g.size*g.align,0,m-g.size);k=a.length;for(B=!1;k--;)0a[k].pos&&(a[k-1].size+=a[k].size,a[k-1].targets=a[k-1].targets.concat(a[k].targets),a[k-1].align=.5,a[k-1].pos+a[k-1].size>m&&(a[k-1].pos=m-a[k-1].size),a.splice(k,1),B=!0)}d.push.apply(d,E);k=0;a.some(function(c){var g=0;return(c.targets||[]).some(function(){d[k].pos=c.pos+g;if("undefined"!==typeof l&&Math.abs(d[k].pos-d[k].target)>l)return d.slice(0,k+1).forEach(function(c){return delete c.pos}),d.reducedLen= (d.reducedLen||m)-.1*m,d.reducedLen>.1*m&&q(d,m,l),!0;g+=d[k].size;k++;return!1})});G(d,t);return d}a.distribute=q})(x||(x={}));return x});O(a,"Core/Renderer/SVG/SVGElement.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q,A,G,x){var C=a.animate,J=a.animObject,D=a.stop,m=G.deg2rad,l=G.doc,d=G.noop,g=G.svg,c=G.SVG_NS,t=G.win,k=x.addEvent,B=x.attr,E=x.createElement,F=x.css,M=x.defined,K=x.erase, w=x.extend,z=x.fireEvent,n=x.isArray,f=x.isFunction,u=x.isNumber,h=x.isString,r=x.merge,e=x.objectEach,b=x.pick,y=x.pInt,I=x.syncTimeout,p=x.uniqueKey;a=function(){function v(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=c;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}v.prototype._defaultGetter=function(e){e=b(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);/^[\-0-9\.]+$/.test(e)&& (e=parseFloat(e));return e};v.prototype._defaultSetter=function(b,e,f){f.setAttribute(e,b)};v.prototype.add=function(b){var e=this.renderer,f=this.element;b&&(this.parentGroup=b);this.parentInverted=b&&b.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&e.buildText(this);this.added=!0;if(!b||b.handleZ||this.zIndex)var h=this.zIndexSetter();h||(b?b.element:e.box).appendChild(f);if(this.onAdd)this.onAdd();return this};v.prototype.addClass=function(b,e){var f=e?"":this.attr("class")|| "";b=(b||"").split(/ /g).reduce(function(b,e){-1===f.indexOf(e)&&b.push(e);return b},f?[f]:[]).join(" ");b!==f&&this.attr("class",b);return this};v.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};v.prototype.align=function(e,f,N){var p={},c=this.renderer,L=c.alignedObjects,r,v,P;if(e){if(this.alignOptions=e,this.alignByTranslate=f,!N||h(N))this.alignTo=r=N||"renderer",K(L,this),L.push(this),N=void 0}else e=this.alignOptions,f=this.alignByTranslate, r=this.alignTo;N=b(N,c[r],"scrollablePlotBox"===r?c.plotBox:void 0,c);r=e.align;var n=e.verticalAlign;c=(N.x||0)+(e.x||0);L=(N.y||0)+(e.y||0);"right"===r?v=1:"center"===r&&(v=2);v&&(c+=(N.width-(e.width||0))/v);p[f?"translateX":"x"]=Math.round(c);"bottom"===n?P=1:"middle"===n&&(P=2);P&&(L+=(N.height-(e.height||0))/P);p[f?"translateY":"y"]=Math.round(L);this[this.placed?"animate":"attr"](p);this.placed=!0;this.alignAttr=p;return this};v.prototype.alignSetter=function(b){var e={left:"start",center:"middle", right:"end"};e[b]&&(this.alignValue=b,this.element.setAttribute("text-anchor",e[b]))};v.prototype.animate=function(f,h,N){var p=this,c=J(b(h,this.renderer.globalAnimation,!0));h=c.defer;b(l.hidden,l.msHidden,l.webkitHidden,!1)&&(c.duration=0);0!==c.duration?(N&&(c.complete=N),I(function(){p.element&&C(p,f,c)},h)):(this.attr(f,void 0,N||c.complete),e(f,function(b,e){c.step&&c.step.call(this,b,{prop:e,pos:1,elem:this})},this));return this};v.prototype.applyTextOutline=function(b){var e=this.element; -1!==b.indexOf("contrast")&&(b=b.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var f=b.split(" ");b=f[f.length-1];if((f=f[0])&&"none"!==f&&G.svg){this.fakeTS=!0;this.ySetter=this.xSetter;f=f.replace(/(^[\d\.]+)(.*?)$/g,function(b,e,f){return 2*Number(e)+f});this.removeTextOutline();var h=l.createElementNS(c,"tspan");B(h,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":f,"stroke-linejoin":"round"});[].forEach.call(e.childNodes,function(b){var e=b.cloneNode(!0);e.removeAttribute&& ["fill","stroke","stroke-width","stroke"].forEach(function(b){return e.removeAttribute(b)});h.appendChild(e)});var p=l.createElementNS(c,"tspan");p.textContent="\u200b";["x","y"].forEach(function(b){var f=e.getAttribute(b);f&&p.setAttribute(b,f)});h.appendChild(p);e.insertBefore(h,e.firstChild)}};v.prototype.attr=function(b,f,h,p){var N=this.element,c=this.symbolCustomAttribs,Q,r=this,L,v;if("string"===typeof b&&"undefined"!==typeof f){var n=b;b={};b[n]=f}"string"===typeof b?r=(this[b+"Getter"]|| this._defaultGetter).call(this,b,N):(e(b,function(e,f){L=!1;p||D(this,f);this.symbolName&&-1!==c.indexOf(f)&&(Q||(this.symbolAttr(b),Q=!0),L=!0);!this.rotation||"x"!==f&&"y"!==f||(this.doTransform=!0);L||(v=this[f+"Setter"]||this._defaultSetter,v.call(this,e,f,N),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(f)&&this.updateShadows(f,e,v))},this),this.afterSetters());h&&h.call(this);return r};v.prototype.clip=function(b){return this.attr("clip-path",b?"url("+ this.renderer.url+"#"+b.id+")":"none")};v.prototype.crisp=function(b,e){e=e||b.strokeWidth||0;var f=Math.round(e)%2/2;b.x=Math.floor(b.x||this.x||0)+f;b.y=Math.floor(b.y||this.y||0)+f;b.width=Math.floor((b.width||this.width||0)-2*f);b.height=Math.floor((b.height||this.height||0)-2*f);M(b.strokeWidth)&&(b.strokeWidth=e);return b};v.prototype.complexColor=function(b,f,h){var N=this.renderer,c,L,v,u,P,d,y,I,g,a,t=[],k;z(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?L="radialGradient": b.linearGradient&&(L="linearGradient");if(L){v=b[L];P=N.gradients;d=b.stops;g=h.radialReference;n(v)&&(b[L]=v={x1:v[0],y1:v[1],x2:v[2],y2:v[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===L&&g&&!M(v.gradientUnits)&&(u=v,v=r(v,N.getRadialAttr(g,u),{gradientUnits:"userSpaceOnUse"}));e(v,function(b,e){"id"!==e&&t.push(e,b)});e(d,function(b){t.push(b)});t=t.join(",");if(P[t])a=P[t].attr("id");else{v.id=a=p();var Q=P[t]=N.createElement(L).attr(v).add(N.defs);Q.radAttr=u;Q.stops=[];d.forEach(function(b){0=== b[1].indexOf("rgba")?(c=A.parse(b[1]),y=c.get("rgb"),I=c.get("a")):(y=b[1],I=1);b=N.createElement("stop").attr({offset:b[0],"stop-color":y,"stop-opacity":I}).add(Q);Q.stops.push(b)})}k="url("+N.url+"#"+a+")";h.setAttribute(f,k);h.gradient=t;b.toString=function(){return k}}})};v.prototype.css=function(b){var f=this.styles,h={},p=this.element,c=!f;b.color&&(b.fill=b.color);f&&e(b,function(b,e){f&&f[e]!==b&&(h[e]=b,c=!0)});if(c){f&&(b=w(f,h));if(null===b.width||"auto"===b.width)delete this.textWidth; else if("text"===p.nodeName.toLowerCase()&&b.width)var v=this.textWidth=y(b.width);this.styles=b;v&&!g&&this.renderer.forExport&&delete b.width;var L=r(b);p.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(b){return L&&delete L[b]});F(p,L);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b.textOutline&&this.applyTextOutline(b.textOutline))}return this};v.prototype.dashstyleSetter=function(e){var f=this["stroke-width"];"inherit"===f&&(f= 1);if(e=e&&e.toLowerCase()){var h=e.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(e=h.length;e--;)h[e]=""+y(h[e])*b(f,NaN);e=h.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",e)}};v.prototype.destroy=function(){var b=this,f=b.element||{},h=b.renderer,p=f.ownerSVGElement,c=h.isSVG&& "SPAN"===f.nodeName&&b.parentGroup||void 0;f.onclick=f.onmouseout=f.onmouseover=f.onmousemove=f.point=null;D(b);if(b.clipPath&&p){var r=b.clipPath;[].forEach.call(p.querySelectorAll("[clip-path],[CLIP-PATH]"),function(b){-1g.width)g={x:0,y:0,width:0,height:0}}else g=this.htmlGetBBox();if(r.isSVG&&(r=g.width,e=g.height,y&&(g.height=e={"11px,17":14,"13px,20":16}[""+(I||"")+",".concat(Math.round(e))]||e),h)){y=Number(c.getAttribute("y")||0)-g.y;p={right:1,center:.5}[p||0]||0;n=h*m;I=(h-90)*m;var z=r*Math.cos(n);h=r*Math.sin(n);a=Math.cos(I);n=Math.sin(I);r=g.x+p*(r-z)+y*a;I=r+z;a=I-e*a;z=a-z;y=g.y+y-p*h+y*n;p=y+h;e=p-e*n;h=e-h;g.x=Math.min(r,I,a,z);g.y=Math.min(y,p,e,h);g.width=Math.max(r,I, a,z)-g.x;g.height=Math.max(y,p,e,h)-g.y}if(L&&(""===u||0]*>/g,"").replace(/</g,"<").replace(/>/g,">")};v.prototype.toFront=function(){var b=this.element;b.parentNode.appendChild(b);return this};v.prototype.translate= function(b,e){return this.attr({translateX:b,translateY:e})};v.prototype.updateShadows=function(b,e,f){var h=this.shadows;if(h)for(var p=h.length;p--;)f.call(h[p],"height"===b?Math.max(e-(h[p].cutHeight||0),0):"d"===b?this.d:e,b,h[p])};v.prototype.updateTransform=function(){var e=this.scaleX,f=this.scaleY,h=this.inverted,p=this.rotation,c=this.matrix,r=this.element,v=this.translateX||0,n=this.translateY||0;h&&(v+=this.width,n+=this.height);v=["translate("+v+","+n+")"];M(c)&&v.push("matrix("+c.join(",")+ ")");h?v.push("rotate(90) scale(-1,1)"):p&&v.push("rotate("+p+" "+b(this.rotationOriginX,r.getAttribute("x"),0)+" "+b(this.rotationOriginY,r.getAttribute("y")||0)+")");(M(e)||M(f))&&v.push("scale("+b(e,1)+" "+b(f,1)+")");v.length&&r.setAttribute("transform",v.join(" "))};v.prototype.visibilitySetter=function(b,e,f){"inherit"===b?f.removeAttribute(e):this[e]!==b&&f.setAttribute(e,b);this[e]=b};v.prototype.xGetter=function(b){"circle"===this.element.nodeName&&("x"===b?b="cx":"y"===b&&(b="cy"));return this._defaultGetter(b)}; v.prototype.zIndexSetter=function(b,e){var f=this.renderer,h=this.parentGroup,p=(h||f).element||f.box,c=this.element;f=p===f.box;var r=!1;var v=this.added;var n;M(b)?(c.setAttribute("data-z-index",b),b=+b,this[e]===b&&(v=!1)):M(this[e])&&c.removeAttribute("data-z-index");this[e]=b;if(v){(b=this.zIndex)&&h&&(h.handleZ=!0);e=p.childNodes;for(n=e.length-1;0<=n&&!r;n--){h=e[n];v=h.getAttribute("data-z-index");var g=!M(v);if(h!==c)if(0>b&&g&&!f&&!n)p.insertBefore(c,e[n]),r=!0;else if(y(v)<=b||g&&(!M(b)|| 0<=b))p.insertBefore(c,e[n+1]||null),r=!0}r||(p.insertBefore(c,e[f?3:0]||null),r=!0)}return r};return v}();a.prototype["stroke-widthSetter"]=a.prototype.strokeSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=a.prototype.rotationOriginYSetter=a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(b,e){this[e]=b;this.doTransform= !0};"";return a});O(a,"Core/Renderer/RendererRegistry.js",[a["Core/Globals.js"]],function(a){var C;(function(C){C.rendererTypes={};var q;C.getRendererType=function(a){void 0===a&&(a=q);return C.rendererTypes[a]||C.rendererTypes[q]};C.registerRendererType=function(x,A,J){C.rendererTypes[x]=A;if(!q||J)q=x,a.Renderer=A}})(C||(C={}));return C});O(a,"Core/Renderer/SVG/SVGLabel.js",[a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,q){var C=this&&this.__extends||function(){var a=function(d, g){a=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 a(d,g)};return function(d,g){function c(){this.constructor=d}a(d,g);d.prototype=null===g?Object.create(g):(c.prototype=g.prototype,new c)}}(),G=q.defined,x=q.extend,H=q.isNumber,J=q.merge,D=q.pick,m=q.removeEvent;return function(l){function d(g,c,a,k,B,E,F,M,K,w){var z=l.call(this)||this;z.paddingLeftSetter=z.paddingSetter;z.paddingRightSetter= z.paddingSetter;z.init(g,"g");z.textStr=c;z.x=a;z.y=k;z.anchorX=E;z.anchorY=F;z.baseline=K;z.className=w;z.addClass("button"===w?"highcharts-no-tooltip":"highcharts-label");w&&z.addClass("highcharts-"+w);z.text=g.text(void 0,0,0,M).attr({zIndex:1});var n;"string"===typeof B&&((n=/^url\((.*?)\)$/.test(B))||z.renderer.symbols[B])&&(z.symbolKey=B);z.bBox=d.emptyBBox;z.padding=3;z.baselineOffset=0;z.needsBox=g.styledMode||n;z.deferredAttr={};z.alignFactor=0;return z}C(d,l);d.prototype.alignSetter=function(g){g= {left:0,center:.5,right:1}[g];g!==this.alignFactor&&(this.alignFactor=g,this.bBox&&H(this.xSetting)&&this.attr({x:this.xSetting}))};d.prototype.anchorXSetter=function(g,c){this.anchorX=g;this.boxAttr(c,Math.round(g)-this.getCrispAdjust()-this.xSetting)};d.prototype.anchorYSetter=function(g,c){this.anchorY=g;this.boxAttr(c,g-this.ySetting)};d.prototype.boxAttr=function(g,c){this.box?this.box.attr(g,c):this.deferredAttr[g]=c};d.prototype.css=function(g){if(g){var c={};g=J(g);d.textProps.forEach(function(d){"undefined"!== typeof g[d]&&(c[d]=g[d],delete g[d])});this.text.css(c);var t="width"in c;"fontSize"in c||"fontWeight"in c?this.updateTextPadding():t&&this.updateBoxSize()}return a.prototype.css.call(this,g)};d.prototype.destroy=function(){m(this.element,"mouseenter");m(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};d.prototype.fillSetter=function(g,c){g&&(this.needsBox=!0);this.fill=g;this.boxAttr(c,g)};d.prototype.getBBox=function(){this.textStr&& 0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var g=this.padding,c=D(this.paddingLeft,g);return{width:this.width,height:this.height,x:this.bBox.x-c,y:this.bBox.y-g}};d.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};d.prototype.heightSetter=function(g){this.heightSetting=g};d.prototype.onAdd=function(){var g=this.textStr;this.text.add(this);this.attr({text:G(g)? g:"",x:this.x,y:this.y});this.box&&G(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};d.prototype.paddingSetter=function(g,c){H(g)?g!==this[c]&&(this[c]=g,this.updateTextPadding()):this[c]=void 0};d.prototype.rSetter=function(g,c){this.boxAttr(c,g)};d.prototype.shadow=function(g){g&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(g));return this};d.prototype.strokeSetter=function(g,c){this.stroke=g;this.boxAttr(c,g)};d.prototype["stroke-widthSetter"]= function(g,c){g&&(this.needsBox=!0);this["stroke-width"]=g;this.boxAttr(c,g)};d.prototype["text-alignSetter"]=function(g){this.textAlign=g};d.prototype.textSetter=function(g){"undefined"!==typeof g&&this.text.attr({text:g});this.updateTextPadding()};d.prototype.updateBoxSize=function(){var g=this.text.element.style,c={},a=this.padding,k=this.bBox=H(this.widthSetting)&&H(this.heightSetting)&&!this.textAlign||!G(this.text.textStr)?d.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height= (this.heightSetting||k.height||0)+2*a;g=this.renderer.fontMetrics(g&&g.fontSize,this.text);this.baselineOffset=a+Math.min((this.text.firstLineMetrics||g).b,k.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-g.h)/2);this.needsBox&&(this.box||(a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),a.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)),a=this.getCrispAdjust(), c.x=a,c.y=(this.baseline?-this.baselineOffset:0)+a,c.width=Math.round(this.width),c.height=Math.round(this.height),this.box.attr(x(c,this.deferredAttr)),this.deferredAttr={})};d.prototype.updateTextPadding=function(){var g=this.text;this.updateBoxSize();var c=this.baseline?0:this.baselineOffset,d=D(this.paddingLeft,this.padding);G(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(d!== g.x||c!==g.y)g.attr("x",d),g.hasBoxWidthChanged&&(this.bBox=g.getBBox(!0)),"undefined"!==typeof c&&g.attr("y",c);g.x=d;g.y=c};d.prototype.widthSetter=function(g){this.widthSetting=H(g)?g:void 0};d.prototype.getPaddedWidth=function(){var g=this.padding,c=D(this.paddingLeft,g);g=D(this.paddingRight,g);return(this.widthSetting||this.bBox.width||0)+c+g};d.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)};d.prototype.ySetter=function(g){this.ySetting=this.y=Math.round(g);this.attr("translateY",this.ySetting)};d.emptyBBox={width:0,height:0,x:0,y:0};d.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return d}(a)});O(a,"Core/Renderer/SVG/Symbols.js",[a["Core/Utilities.js"]],function(a){function C(a,m,l,d,g){var c=[];if(g){var t=g.start||0,k=J(g.r,l);l=J(g.r,d||l);var B= (g.end||0)-.001;d=g.innerR;var E=J(g.open,.001>Math.abs((g.end||0)-t-2*Math.PI)),F=Math.cos(t),M=Math.sin(t),K=Math.cos(B),w=Math.sin(B);t=J(g.longArc,.001>B-t-Math.PI?0:1);c.push(["M",a+k*F,m+l*M],["A",k,l,0,t,J(g.clockwise,1),a+k*K,m+l*w]);x(d)&&c.push(E?["M",a+d*K,m+d*w]:["L",a+d*K,m+d*w],["A",d,d,0,t,x(g.clockwise)?1-g.clockwise:0,a+d*F,m+d*M]);E||c.push(["Z"])}return c}function A(a,m,l,d,g){return g&&g.r?G(a,m,l,d,g):[["M",a,m],["L",a+l,m],["L",a+l,m+d],["L",a,m+d],["Z"]]}function G(a,m,l,d, g){g=g&&g.r||0;return[["M",a+g,m],["L",a+l-g,m],["C",a+l,m,a+l,m,a+l,m+g],["L",a+l,m+d-g],["C",a+l,m+d,a+l,m+d,a+l-g,m+d],["L",a+g,m+d],["C",a,m+d,a,m+d,a,m+d-g],["L",a,m+g],["C",a,m,a,m,a+g,m]]}var x=a.defined,H=a.isNumber,J=a.pick;return{arc:C,callout:function(a,m,l,d,g){var c=Math.min(g&&g.r||0,l,d),t=c+6,k=g&&g.anchorX;g=g&&g.anchorY||0;var B=G(a,m,l,d,{r:c});if(!H(k))return B;a+k>=l?g>m+t&&g=a+k?g>m+t&&gd&&k>a+t&&kg&&k>a+t&&k/g,K=[B,this.ellipsis,this.noWrap,this.textLineHeight, this.textOutline,this.fontSize,this.width].join();if(K!==c.textCache){c.textCache=K;delete c.actualWidth;for(K=F.length;K--;)g.removeChild(F[K]);E||this.ellipsis||this.width||-1!==B.indexOf(" ")&&(!this.noWrap||l.test(B))?""!==B&&(k&&k.appendChild(g),B=new a(B),this.modifyTree(B.nodes),B.addToDOM(c.element),this.modifyDOM(),this.ellipsis&&-1!==(g.textContent||"").indexOf("\u2026")&&c.attr("title",this.unescapeEntities(c.textStr||"",["<",">"])),k&&k.removeChild(g)):g.appendChild(C.createTextNode(this.unescapeEntities(B))); m(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}};g.prototype.modifyDOM=function(){var c=this,a=this.svgElement,g=J(a.element,"x");a.firstLineMetrics=void 0;for(var d;d=a.element.firstChild;)if(/^[\s\u200B]*$/.test(d.textContent||" "))a.element.removeChild(d);else break;[].forEach.call(a.element.querySelectorAll("tspan.highcharts-br"),function(d,w){d.nextSibling&&d.previousSibling&&(0===w&&1===d.previousSibling.nodeType&&(a.firstLineMetrics=a.renderer.fontMetrics(void 0, d.previousSibling)),J(d,{dy:c.getLineHeight(d.nextSibling),x:g}))});var E=this.width||0;if(E){var F=function(d,w){var z=d.textContent||"",n=z.replace(/([^\^])-/g,"$1- ").split(" "),f=!c.noWrap&&(1E){for(;n<=f;)u=Math.ceil((n+f)/2),d&&(h=F(d,u)),e=r(u,h&&h.length-1),n===f?n=f+1:e>E?f=u-1:n=u;0===f?c.textContent="":a&&f===a.length-1||(c.textContent=h||F(a||d,u))}d&&d.splice(0,u);k.actualWidth=e;k.rotation=w};g.prototype.unescapeEntities=function(c,a){l(this.renderer.escapes,function(d,g){a&&-1!==a.indexOf(d)||(c=c.toString().replace(new RegExp(d,"g"),g))});return c};return g}()}); O(a,"Core/Renderer/SVG/SVGRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGLabel.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Renderer/SVG/TextBuilder.js"],a["Core/Utilities.js"]],function(a,q,A,G,x,H,J,D,m){var l=A.charts,d=A.deg2rad,g=A.doc,c=A.isFirefox,t=A.isMS,k=A.isWebKit,B=A.noop,E=A.SVG_NS,F=A.symbolSizes,M=A.win,K=m.addEvent,w=m.attr,z=m.createElement, n=m.css,f=m.defined,u=m.destroyObjectProperties,h=m.extend,r=m.isArray,e=m.isNumber,b=m.isObject,y=m.isString,I=m.merge,p=m.pick,v=m.pInt,L=m.uniqueKey,V;A=function(){function N(b,e,f,h,p,c,r){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(b,e,f,h,p,c,r)}N.prototype.init=function(b,e,f,h,p,r,a){var N=this.createElement("svg").attr({version:"1.1", "class":"highcharts-root"}),v=N.element;a||N.css(this.getStyle(h));b.appendChild(v);w(b,"dir","ltr");-1===b.innerHTML.indexOf("xmlns")&&w(v,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=v;this.boxWrapper=N;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 10.1.0"));this.defs=this.createElement("defs").add();this.allowHTML=r;this.forExport=p;this.styledMode=a;this.gradients={};this.cache={};this.cacheKeys= [];this.imgCount=0;this.setSize(e,f,!1);var d;c&&b.getBoundingClientRect&&(e=function(){n(b,{left:0,top:0});d=b.getBoundingClientRect();n(b,{left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"})},e(),this.unSubPixelFix=K(M,"resize",e))};N.prototype.definition=function(b){return(new a([b])).addToDOM(this.defs.element)};N.prototype.getReferenceURL=function(){if((c||k)&&g.getElementsByTagName("base").length){if(!f(V)){var b=L();b=(new a([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs", children:[{tagName:"clipPath",attributes:{id:b},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(b,")"),fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(g.body);n(b,{position:"fixed",top:0,left:0,zIndex:9E5});var e=g.elementFromPoint(6,6);V="hitme"===(e&&e.id);g.body.removeChild(b)}if(V)return M.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};N.prototype.getStyle= function(b){return this.style=h({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},b)};N.prototype.setStyle=function(b){this.boxWrapper.css(this.getStyle(b))};N.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};N.prototype.destroy=function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();u(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects= null};N.prototype.createElement=function(b){var e=new this.Element;e.init(this,b);return e};N.prototype.getRadialAttr=function(b,e){return{cx:b[0]-b[2]/2+(e.cx||0)*b[2],cy:b[1]-b[2]/2+(e.cy||0)*b[2],r:(e.r||0)*b[2]}};N.prototype.buildText=function(b){(new D(b)).buildSVG()};N.prototype.getContrast=function(b){b=q.parse(b).rgba;b[0]*=1;b[1]*=1.2;b[2]*=.5;return 459b?b+3:Math.round(1.2*b);return{h:e,b:Math.round(.8*e),f:b}};N.prototype.rotCorr=function(b,e,f){var h=b;e&&f&&(h=Math.max(h*Math.cos(e*d),4));return{x:-b/3*Math.sin(e*d),y:h}};N.prototype.pathToSegments=function(b){for(var f= [],h=[],p={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},c=0;c":">","'":"'",'"':"""},symbols:J,draw:B});G.registerRendererType("svg",A,!0);"";return A});O(a,"Core/Renderer/HTML/HTMLElement.js",[a["Core/Globals.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,q,A){var C=this&&this.__extends||function(){var c=function(a,d){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d])};return c(a,d)};return function(a, d){function g(){this.constructor=a}c(a,d);a.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),x=a.isFirefox,H=a.isMS,J=a.isWebKit,D=a.win,m=A.css,l=A.defined,d=A.extend,g=A.pick,c=A.pInt;return function(a){function k(){return null!==a&&a.apply(this,arguments)||this}C(k,a);k.compose=function(c){if(-1===k.composedClasses.indexOf(c)){k.composedClasses.push(c);var a=k.prototype,d=c.prototype;d.getSpanCorrection=a.getSpanCorrection;d.htmlCss=a.htmlCss;d.htmlGetBBox=a.htmlGetBBox; d.htmlUpdateTransform=a.htmlUpdateTransform;d.setSpanRotation=a.setSpanRotation}return c};k.prototype.getSpanCorrection=function(c,a,d){this.xCorr=-c*d;this.yCorr=-a};k.prototype.htmlCss=function(c){var a="SPAN"===this.element.tagName&&c&&"width"in c,k=g(a&&c.width,void 0);if(a){delete c.width;this.textWidth=k;var t=!0}c&&"ellipsis"===c.textOverflow&&(c.whiteSpace="nowrap",c.overflow="hidden");this.styles=d(this.styles,c);m(this.element,c);t&&this.htmlUpdateTransform();return this};k.prototype.htmlGetBBox= function(){var c=this.element;return{x:c.offsetLeft,y:c.offsetTop,width:c.offsetWidth,height:c.offsetHeight}};k.prototype.htmlUpdateTransform=function(){if(this.added){var a=this.renderer,d=this.element,g=this.translateX||0,k=this.translateY||0,t=this.x||0,w=this.y||0,z=this.textAlign||"left",n={left:0,center:.5,right:1}[z],f=this.styles;f=f&&f.whiteSpace;m(d,{marginLeft:g,marginTop:k});!a.styledMode&&this.shadows&&this.shadows.forEach(function(b){m(b,{marginLeft:g+1,marginTop:k+1})});this.inverted&& [].forEach.call(d.childNodes,function(b){a.invertChild(b,d)});if("SPAN"===d.tagName){var u=this.rotation,h=this.textWidth&&c(this.textWidth),r=[u,z,d.innerHTML,this.textWidth,this.textAlign].join(),e=void 0;e=!1;if(h!==this.oldTextWidth){if(this.textPxLength)var b=this.textPxLength;else m(d,{width:"",whiteSpace:f||"nowrap"}),b=d.offsetWidth;(h>this.oldTextWidth||b>h)&&(/[ \-]/.test(d.textContent||d.innerText)||"ellipsis"===d.style.textOverflow)&&(m(d,{width:b>h||u?h+"px":"auto",display:"block",whiteSpace:f|| "normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e;r!==this.cTT&&(e=a.fontMetrics(d.style.fontSize,d).b,!l(u)||u===(this.oldRotation||0)&&z===this.oldAlign||this.setSpanRotation(u,n,e),this.getSpanCorrection(!l(u)&&this.textPxLength||d.offsetWidth,e,n,u,z));m(d,{left:t+(this.xCorr||0)+"px",top:w+(this.yCorr||0)+"px"});this.cTT=r;this.oldRotation=u;this.oldAlign=z}}else this.alignOnAdd=!0};k.prototype.setSpanRotation=function(c,a,d){var g={},k=H&&!/Edge/.test(D.navigator.userAgent)?"-ms-transform": J?"-webkit-transform":x?"MozTransform":D.opera?"-o-transform":void 0;k&&(g[k]=g.transform="rotate("+c+"deg)",g[k+(x?"Origin":"-origin")]=g.transformOrigin=100*a+"% "+d+"px",m(this.element,g))};k.composedClasses=[];return k}(q)});O(a,"Core/Renderer/HTML/HTMLRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,q,A,G){var C=this&&this.__extends||function(){var a=function(d,g){a=Object.setPrototypeOf|| {__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d])};return a(d,g)};return function(d,g){function c(){this.constructor=d}a(d,g);d.prototype=null===g?Object.create(g):(c.prototype=g.prototype,new c)}}(),H=G.attr,J=G.createElement,D=G.extend,m=G.pick;return function(l){function d(){return null!==l&&l.apply(this,arguments)||this}C(d,l);d.compose=function(a){-1===d.composedClasses.indexOf(a)&&(d.composedClasses.push(a),a.prototype.html= d.prototype.html);return a};d.prototype.html=function(d,c,t){var g=this.createElement("span"),B=g.element,E=g.renderer,l=E.isSVG,M=function(c,a){["opacity","visibility"].forEach(function(d){c[d+"Setter"]=function(g,f,u){var h=c.div?c.div.style:a;q.prototype[d+"Setter"].call(this,g,f,u);h&&(h[f]=g)}});c.addedSetters=!0};g.textSetter=function(c){c!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,m(c,"")),this.textStr=c,g.doTransform=!0)};l&&M(g,g.element.style); g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(c,a){"align"===a?g.alignValue=g.textAlign=c:g[a]=c;g.doTransform=!0};g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};g.attr({text:d,x:Math.round(c),y:Math.round(t)}).css({position:"absolute"});E.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});B.style.whiteSpace="nowrap";g.css=g.htmlCss;l&&(g.add=function(c){var a=E.box.parentNode,d=[];if(this.parentGroup=c){var n= c.div;if(!n){for(;c;)d.push(c),c=c.parentGroup;d.reverse().forEach(function(f){function c(b,h){f[h]=b;"translateX"===h?e.left=b+"px":e.top=b+"px";f.doTransform=!0}var h=H(f.element,"class"),r=f.styles||{};n=f.div=f.div||J("div",h?{className:h}:void 0,{position:"absolute",left:(f.translateX||0)+"px",top:(f.translateY||0)+"px",display:f.display,opacity:f.opacity,cursor:r.cursor,pointerEvents:r.pointerEvents,visibility:f.visibility},n||a);var e=n.style;D(f,{classSetter:function(b){return function(e){this.element.setAttribute("class", e);b.className=e}}(n),on:function(){d[0].div&&g.on.apply({element:d[0].div,onEvents:f.onEvents},arguments);return f},translateXSetter:c,translateYSetter:c});f.addedSetters||M(f)})}}else n=a;n.appendChild(B);g.added=!0;g.alignOnAdd&&g.htmlUpdateTransform();return g});return g};d.composedClasses=[];return d}(A)});O(a,"Core/Axis/AxisDefaults.js",[],function(){var a;(function(a){a.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L", range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01, minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999", lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};a.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold", textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};a.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};a.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};a.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};a.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(a||(a={}));return a});O(a,"Core/Foundation.js",[a["Core/Utilities.js"]],function(a){var C=a.addEvent,A=a.isFunction,G=a.objectEach,x=a.removeEvent, H;(function(a){a.registerEventOptions=function(a,m){a.eventOptions=a.eventOptions||{};G(m.events,function(l,d){a.eventOptions[d]!==l&&(a.eventOptions[d]&&(x(a,d,a.eventOptions[d]),delete a.eventOptions[d]),A(l)&&(a.eventOptions[d]=l,C(a,d,l)))})}})(H||(H={}));return H});O(a,"Core/Axis/Tick.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q,A){var C=q.deg2rad,x=A.clamp,H=A.correctFloat,J=A.defined,D=A.destroyObjectProperties,m=A.extend,l=A.fireEvent,d=A.isNumber, g=A.merge,c=A.objectEach,t=A.pick;q=function(){function k(c,a,d,g,k){this.isNewLabel=this.isNew=!0;this.axis=c;this.pos=a;this.type=d||"";this.parameters=k||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;l(this,"init");d||g||this.addLabel()}k.prototype.addLabel=function(){var c=this,g=c.axis,k=g.options,M=g.chart,K=g.categories,w=g.logarithmic,z=g.names,n=c.pos,f=t(c.options&&c.options.labels,k.labels),u=g.tickPositions,h=n===u[0],r=n===u[u.length-1],e= (!f.step||1===f.step)&&1===g.tickInterval;u=u.info;var b=c.label,y;K=this.parameters.category||(K?t(K[n],z[n],n):n);w&&d(K)&&(K=H(w.lin2log(K)));if(g.dateTime)if(u){var I=M.time.resolveDTLFormat(k.dateTimeLabelFormats[!k.grid&&u.higherRanks[n]||u.unitName]);var p=I.main}else d(K)&&(p=g.dateTime.getXDateFormat(K,k.dateTimeLabelFormats||{}));c.isFirst=h;c.isLast=r;var v={axis:g,chart:M,dateTimeLabelFormat:p,isFirst:h,isLast:r,pos:n,tick:c,tickPositionInfo:u,value:K};l(this,"labelFormat",v);var L=function(b){return f.formatter? f.formatter.call(b,b):f.format?(b.text=g.defaultLabelFormatter.call(b),a.format(f.format,b,M)):g.defaultLabelFormatter.call(b,b)};k=L.call(v,v);var V=I&&I.list;c.shortenLabel=V?function(){for(y=0;yf&&g-u*hw&&(I=Math.round((k-g)/Math.cos(f*C)));else if(k=g+(1-u)*h,g-u*hw&&(b=w-c.x+b*u,y=-1),b=Math.min(r,b),bb||a.autoRotation&&(n.styles||{}).width)I=b;I&&(this.shortenLabel?this.shortenLabel():(e.width=Math.floor(I)+"px",(d.style||{}).textOverflow||(e.textOverflow="ellipsis"),n.css(e)))};k.prototype.moveLabel=function(a,d){var g=this,k=g.label,t=g.axis,w=t.reversed,z=!1;k&&k.textStr===a? (g.movedLabel=k,z=!0,delete g.label):c(t.ticks,function(f){z||f.isNew||f===g||!f.label||f.label.textStr!==a||(g.movedLabel=f.label,z=!0,f.labelPos=g.movedLabel.xy,delete f.label)});if(!z&&(g.labelPos||k)){var n=g.labelPos||k.xy;k=t.horiz?w?0:t.width+t.left:n.x;t=t.horiz?n.y:w?t.width+t.left:0;g.movedLabel=g.createLabel({x:k,y:t},a,d);g.movedLabel&&g.movedLabel.attr({opacity:0})}};k.prototype.render=function(c,a,d){var g=this.axis,k=g.horiz,w=this.pos,z=t(this.tickmarkOffset,g.tickmarkOffset);w=this.getPosition(k, w,z,a);z=w.x;var n=w.y;g=k&&z===g.pos+g.len||!k&&n===g.pos?-1:1;k=t(d,this.label&&this.label.newOpacity,1);d=t(d,1);this.isActive=!0;this.renderGridLine(a,d,g);this.renderMark(w,d,g);this.renderLabel(w,a,k,c);this.isNew=!1;l(this,"afterRender")};k.prototype.renderGridLine=function(c,a,d){var g=this.axis,k=g.options,w={},z=this.pos,n=this.type,f=t(this.tickmarkOffset,g.tickmarkOffset),u=g.chart.renderer,h=this.gridLine,r=k.gridLineWidth,e=k.gridLineColor,b=k.gridLineDashStyle;"minor"===this.type&& (r=k.minorGridLineWidth,e=k.minorGridLineColor,b=k.minorGridLineDashStyle);h||(g.chart.styledMode||(w.stroke=e,w["stroke-width"]=r||0,w.dashstyle=b),n||(w.zIndex=1),c&&(a=0),this.gridLine=h=u.path().attr(w).addClass("highcharts-"+(n?n+"-":"")+"grid-line").add(g.gridGroup));if(h&&(d=g.getPlotLinePath({value:z+f,lineWidth:h.strokeWidth()*d,force:"pass",old:c})))h[c||this.isNew?"attr":"animate"]({d:d,opacity:a})};k.prototype.renderMark=function(c,a,d){var g=this.axis,k=g.options,w=g.chart.renderer,z= this.type,n=g.tickSize(z?z+"Tick":"tick"),f=c.x;c=c.y;var u=t(k["minor"!==z?"tickWidth":"minorTickWidth"],!z&&g.isXAxis?1:0);k=k["minor"!==z?"tickColor":"minorTickColor"];var h=this.mark,r=!h;n&&(g.opposite&&(n[0]=-n[0]),h||(this.mark=h=w.path().addClass("highcharts-"+(z?z+"-":"")+"tick").add(g.axisGroup),g.chart.styledMode||h.attr({stroke:k,"stroke-width":u})),h[r?"attr":"animate"]({d:this.getMarkPath(f,c,n[0],h.strokeWidth()*d,g.horiz,w),opacity:a}))};k.prototype.renderLabel=function(c,a,g,k){var l= this.axis,w=l.horiz,z=l.options,n=this.label,f=z.labels,u=f.step;l=t(this.tickmarkOffset,l.tickmarkOffset);var h=c.x;c=c.y;var r=!0;n&&d(h)&&(n.xy=c=this.getLabelPosition(h,c,n,w,f,l,k,u),this.isFirst&&!this.isLast&&!z.showFirstLabel||this.isLast&&!this.isFirst&&!z.showLastLabel?r=!1:!w||f.step||f.rotation||a||0===g||this.handleOverflow(c),u&&k%u&&(r=!1),r&&d(c.y)?(c.opacity=g,n[this.isNewLabel?"attr":"animate"](c).show(!0),this.isNewLabel=!1):(n.hide(),this.isNewLabel=!0))};k.prototype.replaceMovedLabel= function(){var c=this.label,a=this.axis,d=a.reversed;if(c&&!this.isNew){var g=a.horiz?d?a.left:a.width+a.left:c.xy.x;d=a.horiz?c.xy.y:d?a.width+a.top:a.top;c.animate({x:g,y:d,opacity:0},void 0,c.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return k}();"";return q});O(a,"Core/Axis/Axis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Color/Color.js"],a["Core/DefaultOptions.js"],a["Core/Foundation.js"],a["Core/Globals.js"], a["Core/Axis/Tick.js"],a["Core/Utilities.js"]],function(a,q,A,G,x,H,J,D){var m=a.animObject,l=G.defaultOptions,d=x.registerEventOptions,g=H.deg2rad,c=D.arrayMax,t=D.arrayMin,k=D.clamp,B=D.correctFloat,E=D.defined,F=D.destroyObjectProperties,M=D.erase,K=D.error,w=D.extend,z=D.fireEvent,n=D.isArray,f=D.isNumber,u=D.isString,h=D.merge,r=D.normalizeTickInterval,e=D.objectEach,b=D.pick,y=D.relativeLength,I=D.removeEvent,p=D.splat,v=D.syncTimeout,L=function(e,f){return r(f,void 0,void 0,b(e.options.allowDecimals, .5>f||void 0!==e.tickAmount),!!e.tickAmount)};a=function(){function a(b,e){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.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(b,e)}a.prototype.init=function(e,c){var a=c.isX;this.chart=e;this.horiz=e.inverted&&!this.isZAxis?!a:a;this.isXAxis=a;this.coll=this.coll||(a?"xAxis":"yAxis");z(this, "init",{userOptions:c});this.opposite=b(c.opposite,this.opposite);this.side=b(c.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(c);var h=this.options,g=h.labels,r=h.type;this.userOptions=c;this.minPixelPadding=0;this.reversed=b(h.reversed,this.reversed);this.visible=h.visible;this.zoomEnabled=h.zoomEnabled;this.hasNames="category"===r||!0===h.categories;this.categories=h.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups= {};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=E(h.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=h.minRange||h.maxZoom;this.range=h.range;this.offset=h.offset||0;this.min=this.max=null;c=b(h.crosshair,p(e.options.tooltip.crosshairs)[a?0:1]);this.crosshair=!0===c?{}:c;-1===e.axes.indexOf(this)&&(a?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this));this.series= this.series||[];e.inverted&&!this.isZAxis&&a&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=f(g.rotation)?g.rotation:void 0;d(this,h);z(this,"afterInit")};a.prototype.setOptions=function(b){this.options=h(q.defaultXAxisOptions,"yAxis"===this.coll&&q.defaultYAxisOptions,[q.defaultTopAxisOptions,q.defaultRightAxisOptions,q.defaultBottomAxisOptions,q.defaultLeftAxisOptions][this.side],h(l[this.coll],b));z(this,"afterSetOptions",{userOptions:b})};a.prototype.defaultLabelFormatter= function(b){var e=this.axis;b=this.chart.numberFormatter;var c=f(this.value)?this.value:NaN,h=e.chart.time,a=this.dateTimeLabelFormat,p=l.lang,d=p.numericSymbols;p=p.numericSymbolMagnitude||1E3;var g=e.logarithmic?Math.abs(c):e.tickInterval,r=d&&d.length;if(e.categories)var v="".concat(this.value);else if(a)v=h.dateFormat(a,c);else if(r&&1E3<=g)for(;r--&&"undefined"===typeof v;)e=Math.pow(p,r+1),g>=e&&0===10*c%e&&null!==d[r]&&0!==c&&(v=b(c/e,-1)+d[r]);"undefined"===typeof v&&(v=1E4<=Math.abs(c)?b(c, -1):b(c,-1,void 0,""));return v};a.prototype.getSeriesExtremes=function(){var e=this,c=e.chart,h;z(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1;e.dataMin=e.dataMax=e.threshold=null;e.softThreshold=!e.isXAxis;e.stacking&&e.stacking.buildStacks();e.series.forEach(function(a){if(a.visible||!c.options.chart.ignoreHiddenSeries){var p=a.options,d=p.threshold;e.hasVisibleSeries=!0;e.positiveValuesOnly&&0>=d&&(d=null);if(e.isXAxis){if(p=a.xData,p.length){p=e.logarithmic?p.filter(e.validatePositiveValue): p;h=a.getXExtremes(p);var g=h.min;var r=h.max;f(g)||g instanceof Date||(p=p.filter(f),h=a.getXExtremes(p),g=h.min,r=h.max);p.length&&(e.dataMin=Math.min(b(e.dataMin,g),g),e.dataMax=Math.max(b(e.dataMax,r),r))}}else if(a=a.applyExtremes(),f(a.dataMin)&&(g=a.dataMin,e.dataMin=Math.min(b(e.dataMin,g),g)),f(a.dataMax)&&(r=a.dataMax,e.dataMax=Math.max(b(e.dataMax,r),r)),E(d)&&(e.threshold=d),!p.softThreshold||e.positiveValuesOnly)e.softThreshold=!1}})});z(this,"afterGetSeriesExtremes")};a.prototype.translate= function(b,e,c,a,h,p){var d=this.linkedParent||this,g=a&&d.old?d.old.min:d.min,r=d.minPixelPadding;h=(d.isOrdinal||d.brokenAxis&&d.brokenAxis.hasBreaks||d.logarithmic&&h)&&d.lin2val;var v=1,n=0;a=a&&d.old?d.old.transA:d.transA;a||(a=d.transA);c&&(v*=-1,n=d.len);d.reversed&&(v*=-1,n-=v*(d.sector||d.len));e?(p=(b*v+n-r)/a+g,h&&(p=d.lin2val(p))):(h&&(b=d.val2lin(b)),b=v*(b-g)*a,p=f(g)?(d.isRadial?b:B(b))+n+v*r+(f(p)?a*p:0):void 0);return p};a.prototype.toPixels=function(b,e){return this.translate(b, !1,!this.horiz,null,!0)+(e?0:this.pos)};a.prototype.toValue=function(b,e){return this.translate(b-(e?0:this.pos),!0,!this.horiz,null,!0)};a.prototype.getPlotLinePath=function(e){function c(b,e,f){if("pass"!==I&&bf)I?b=k(b,e,f):m=!0;return b}var a=this,h=a.chart,p=a.left,d=a.top,g=e.old,r=e.value,v=e.lineWidth,n=g&&h.oldChartHeight||h.chartHeight,y=g&&h.oldChartWidth||h.chartWidth,N=a.transB,u=e.translatedValue,I=e.force,w,t,L,l,m;e={value:r,lineWidth:v,old:g,force:I,acrossPanes:e.acrossPanes, translatedValue:u};z(this,"getPlotLinePath",e,function(e){u=b(u,a.translate(r,null,null,g));u=k(u,-1E5,1E5);w=L=Math.round(u+N);t=l=Math.round(n-u-N);f(u)?a.horiz?(t=d,l=n-a.bottom,w=L=c(w,p,p+a.width)):(w=p,L=y-a.right,t=l=c(t,d,d+a.height)):(m=!0,I=!1);e.path=m&&!I?null:h.renderer.crispLine([["M",w,t],["L",L,l]],v||1)});return e.path};a.prototype.getLinearTickPositions=function(b,e,f){var a=B(Math.floor(e/b)*b);f=B(Math.ceil(f/b)*b);var c=[],h;B(a+b)===a&&(h=20);if(this.single)return[e];for(e=a;e<= f;){c.push(e);e=B(e+b,h);if(e===p)break;var p=e}return c};a.prototype.getMinorTickInterval=function(){var e=this.options;return!0===e.minorTicks?b(e.minorTickInterval,"auto"):!1===e.minorTicks?null:e.minorTickInterval};a.prototype.getMinorTickPositions=function(){var b=this.options,e=this.tickPositions,f=this.minorTickInterval,a=this.pointRangePadding||0,c=this.min-a;a=this.max+a;var h=a-c,p=[];if(h&&h/f=this.minRange;var y=this.minRange;var u=(y-h+a)/2;u=[a-u,b(e.min,a-u)];n&&(u[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);a=c(u);h=[a+y,b(e.max,a+y)];n&&(h[2]=f?f.log2lin(this.dataMax):this.dataMax);h=t(h);h-a=I)w=I,u=0;else if(this.dataMax<=I){var t=I;n=0}this.min=b(N,w,this.dataMin);this.max=b(k,t,this.dataMax)}c&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,b(this.dataMin,this.min))&&K(10,1,a),this.min=B(c.log2lin(this.min),16),this.max=B(c.log2lin(this.max),16));this.range&&E(this.max)&&(this.userMin=this.min=N=Math.max(this.dataMin,this.minFromRange()),this.userMax=k=this.max,this.range=null);z(this,"foundExtremes"); this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(r||this.axisPointRange||this.stacking&&this.stacking.usePercentage||d)&&E(this.min)&&E(this.max)&&(a=this.max-this.min)&&(!E(N)&&u&&(this.min-=a*u),!E(k)&&n&&(this.max+=a*n));f(this.userMin)||(f(h.softMin)&&h.softMinthis.max&&(this.max=k=h.softMax),f(h.ceiling)&&(this.max=Math.min(this.max,h.ceiling)));v&& E(this.dataMin)&&(I=I||0,!E(N)&&this.min=I?this.min=this.options.minRange?Math.min(I,this.max-this.minRange):I:!E(k)&&this.max>I&&this.dataMax<=I&&(this.max=this.options.minRange?Math.max(I,this.min+this.minRange):I));f(this.min)&&f(this.max)&&!this.chart.polar&&this.min>this.max&&(E(this.options.min)?this.max=this.min:E(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:d&&this.linkedParent&& !y&&g===this.linkedParent.options.tickPixelInterval?y=this.linkedParent.tickInterval:b(y,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,r?1:(this.max-this.min)*g/Math.max(this.len,g));if(p&&!e){var l=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(b){b.forceCrop=b.forceCropping&&b.forceCropping();b.processData(l)});z(this,"postProcessData",{hasExtemesChanged:l})}this.setAxisTranslation();z(this,"initialAxisTranslation"); this.pointRange&&!y&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));e=b(h.minTickInterval,this.dateTime&&!this.series.some(function(b){return b.noSharedTooltip})?this.closestPointRange:0);!y&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)f=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,b.units),this.min,this.max,b.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)f=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var p=b=this.tickInterval;p<=2*b;)if(f=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&f.length>this.tickAmount)this.tickInterval= L(this,p*=1.1);else break;else f=[this.min,this.max],K(19,!1,this.chart);f.length>this.len&&(f=[f[0],f.pop()],f[0]===f[1]&&(f.length=1));this.tickPositions=f;h&&(h=h.apply(this,[this.min,this.max]))&&(this.tickPositions=f=h)}this.paddedTicks=f.slice(0);this.trimTicks(f,c,a);this.isLinked||(this.single&&2>f.length&&!this.categories&&!this.series.some(function(b){return b.is("heatmap")&&"between"===b.options.pointPlacement})&&(this.min-=.5,this.max+=.5),e||h||this.adjustTickAmount());z(this,"afterSetTickPositions")}; a.prototype.trimTicks=function(b,e,f){var a=b[0],h=b[b.length-1],c=!this.isOrdinal&&this.minPointOffset||0;z(this,"trimTicks");if(!this.isLinked){if(e&&-Infinity!==a)this.min=a;else for(;this.min-c>b[0];)b.shift();if(f)this.max=h;else for(;this.max+cf&&(this.finalTickAmt=f,f=5);this.tickAmount=f};a.prototype.adjustTickAmount=function(){var e=this,a=e.finalTickAmt,h=e.max,c=e.min,p=e.options,d=e.tickPositions,g=e.tickAmount,r=e.thresholdAlignment,v=d&&d.length,n=b(e.threshold,e.softThreshold?0:null);var y=e.tickInterval;if(f(r)){var u=.5>r?Math.ceil(r*(g-1)):Math.floor(r*(g-1));p.reversed&&(u=g-1-u)}if(e.hasData()&& f(c)&&f(h)){r=function(){e.transA*=(v-1)/(g-1);e.min=p.startOnTick?d[0]:Math.min(c,d[0]);e.max=p.endOnTick?d[d.length-1]:Math.max(h,d[d.length-1])};if(f(u)&&f(e.threshold)){for(;d[u]!==n||d.length!==g||d[0]>c||d[d.length-1]e.threshold?d.unshift(B(d[0]-y)):d.push(B(d[d.length-1]+y));if(y>8*e.tickInterval)break;y*=2}r()}else if(v=a&&0g&&(e=g)),E(c)&&(fg&&(f=g))),a.displayBtn="undefined"!==typeof e||"undefined"!==typeof f,a.setExtremes(e,f,!1,void 0,{trigger:"zoom"});b.zoomed=!0});return e.zoomed};a.prototype.setAxisSize=function(){var e=this.chart, f=this.options,a=f.offsets||[0,0,0,0],h=this.horiz,c=this.width=Math.round(y(b(f.width,e.plotWidth-a[3]+a[1]),e.plotWidth)),p=this.height=Math.round(y(b(f.height,e.plotHeight-a[0]+a[2]),e.plotHeight)),d=this.top=Math.round(y(b(f.top,e.plotTop+a[0]),e.plotHeight,e.plotTop));f=this.left=Math.round(y(b(f.left,e.plotLeft+a[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-p-d;this.right=e.chartWidth-c-f;this.len=Math.max(h?c:p,0);this.pos=h?f:d};a.prototype.getExtremes=function(){var b=this.logarithmic; return{min:b?B(b.lin2log(this.min)):this.min,max:b?B(b.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(b){var e=this.logarithmic,f=e?e.lin2log(this.min):this.min;e=e?e.lin2log(this.max):this.max;null===b||-Infinity===b?b=f:Infinity===b?b=e:f>b?b=f:ef?b.align="right":195f&&(b.align="left")});return e.align};a.prototype.tickSize=function(e){var f=this.options,a=b(f["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),h=f["tick"===e?"tickLength":"minorTickLength"];if(a&&h){"inside"===f[e+"Position"]&&(h=-h);var c=[h,a]}e={tickSize:c};z(this,"afterTickSize",e);return e.tickSize};a.prototype.labelMetrics=function(){var b=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize, this.ticks[b]&&this.ticks[b].label)};a.prototype.unsquish=function(){var e=this.options.labels,a=this.horiz,h=this.tickInterval,c=this.len/(((this.categories?1:0)+this.max-this.min)/h),p=e.rotation,d=this.labelMetrics(),r=Math.max(this.max-this.min,0),v=function(b){var e=b/(c||1);e=1r&&Infinity!==b&&Infinity!==c&&r&&(e=Math.ceil(r/h));return B(e*h)},n=h,y,u,I=Number.MAX_VALUE;if(a){if(!e.staggerLines&&!e.step)if(f(p))var k=[p];else c=b){u=v(Math.abs(d.h/Math.sin(g*b)));var e=u+Math.abs(b/360);eh.step)return h.rotation?0:(this.staggerLines||1)*this.len/c;if(!a){b=h.style.width; if(void 0!==b)return parseInt(String(b),10);if(p)return p-e.spacing[3]}return.33*e.chartWidth};a.prototype.renderUnsquish=function(){var b=this.chart,e=b.renderer,f=this.tickPositions,a=this.ticks,h=this.options.labels,c=h.style,p=this.horiz,d=this.getSlotWidth(),g=Math.max(1,Math.round(d-2*h.padding)),r={},v=this.labelMetrics(),n=c.textOverflow,y=0;u(h.rotation)||(r.rotation=h.rotation||0);f.forEach(function(b){b=a[b];b.movedLabel&&b.replaceMovedLabel();b&&b.label&&b.label.textPxLength>y&&(y=b.label.textPxLength)}); this.maxLabelLength=y;if(this.autoRotation)y>g&&y>v.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(d){var I=g;if(!n){var k="clip";for(g=f.length;!p&&g--;){var z=f[g];if(z=a[z].label)z.styles&&"ellipsis"===z.styles.textOverflow?z.css({textOverflow:"clip"}):z.textPxLength>d&&z.css({width:d+"px"}),z.getBBox().height>this.len/f.length-(v.h-v.f)&&(z.specificTextOverflow="ellipsis")}}}r.rotation&&(I=y>.5*b.chartHeight?.33*b.chartHeight:y,n||(k="ellipsis"));if(this.labelAlign=h.align||this.autoLabelAlign(this.labelRotation))r.align= this.labelAlign;f.forEach(function(b){var e=(b=a[b])&&b.label,f=c.width,h={};e&&(e.attr(r),b.shortenLabel?b.shortenLabel():I&&!f&&"nowrap"!==c.whiteSpace&&(I=this.min&&b<=this.max||this.grid&&this.grid.isColumn)a[b]||(a[b]=new J(this,b)),f&&a[b].isNew&&a[b].render(e, !0,-1),a[b].render(e)};a.prototype.render=function(){var b=this,a=b.chart,h=b.logarithmic,c=b.options,p=b.isLinked,d=b.tickPositions,g=b.axisTitle,r=b.ticks,n=b.minorTicks,y=b.alternateBands,u=c.stackLabels,I=c.alternateGridColor,k=b.tickmarkOffset,w=b.axisLine,t=b.showAxis,L=m(a.renderer.globalAnimation),l,B;b.labelEdge.length=0;b.overlap=!1;[r,n,y].forEach(function(b){e(b,function(b){b.isActive=!1})});if(b.hasData()||p){var E=b.chart.hasRendered&&b.old&&f(b.old.min);b.minorTickInterval&&!b.categories&& b.getMinorTickPositions().forEach(function(e){b.renderMinorTick(e,E)});d.length&&(d.forEach(function(e,f){b.renderTick(e,f,E)}),k&&(0===b.min||b.single)&&(r[-1]||(r[-1]=new J(b,-1,null,!0)),r[-1].render(-1)));I&&d.forEach(function(e,f){B="undefined"!==typeof d[f+1]?d[f+1]+k:b.max-k;0===f%2&&ec&&(!k||l<=d)&&"undefined"!==typeof l&&m.push(l);l>d&&(z=!0);l=f}}}else c=this.lin2log(c),d=this.lin2log(d),a=k?g.getMinorTickInterval():l.tickInterval,a=G("auto"===a?null:a,this.minorAutoInterval,l.tickPixelInterval/ (k?5:1)*(d-c)/((k?t/g.tickPositions.length:t)||1)),a=A(a),m=g.getLinearTickPositions(a,c,d).map(this.log2lin),k||(this.minorAutoInterval=a/5);k||(g.tickInterval=a);return m};a.prototype.lin2log=function(a){return Math.pow(10,a)};a.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return a}();a.Additions=l})(x||(x={}));return x});O(a,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[a["Core/Utilities.js"]],function(a){var C=a.erase,A=a.extend,G=a.isNumber,x;(function(a){var q=[],x;a.compose= function(a,d){x||(x=a);-1===q.indexOf(d)&&(q.push(d),A(d.prototype,m.prototype));return d};var m=function(){function a(){}a.prototype.getPlotBandPath=function(a,g,c){void 0===c&&(c=this.options);var d=this.getPlotLinePath({value:g,force:!0,acrossPanes:c.acrossPanes}),k=[],l=this.horiz;g=!G(this.min)||!G(this.max)||athis.max&&g>this.max;a=this.getPlotLinePath({value:a,force:!0,acrossPanes:c.acrossPanes});c=1;if(a&&d){if(g){var m=a.toString()===d.toString();c=0}for(g=0;gz-d?z:z-d);else if(k)b[a]=Math.max(r,p+ d+h>f?p:p+d);else return!1},m=function(a,f,h,c,p){var d;pf-e?d=!1:b[a]=pf-c/2?f-c-2:p-h/2;return d},P=function(b){var e=k;k=z;z=e;w=b},B=function(){!1!==l.apply(0,k)?!1!==m.apply(0,z)||w||(P(!0),B()):w?b.x=b.y=0:(P(!0),B())};(f.inverted||1e})&&(a=a.map(function(b){var e=f(b.anchorX,b.anchorY,b.point.isHeader,b.boxWidth,!1);return t(b,{target:e.y,x:e.x})}));d.cleanSplit();D(a,fa);var O=A,aa=A;a.forEach(function(b){var e= b.x,a=b.boxWidth;b=b.isHeader;b||(d.outside&&A+eaa&&(aa=A+e))});a.forEach(function(b){var e=b.x,a=b.anchorX,f=b.pos,c=b.point.isHeader;f={visibility:"undefined"===typeof f?"hidden":"inherit",x:e,y:f+H,anchorX:a,anchorY:b.anchorY};if(d.outside&&eh[0]?Math.max(Math.abs(h[0]),e.width-h[0]):Math.max(Math.abs(h[0]),e.width);d.height=0>h[1]?Math.max(Math.abs(h[1]), e.height-Math.abs(h[1])):Math.max(Math.abs(h[1]),e.height);this.tracker?this.tracker.attr(d):(this.tracker=c.renderer.rect(d).addClass("highcharts-tracker").add(c),a.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};a.prototype.styledModeFormat=function(a){return a.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(a,c){var f=a.series, d=f.tooltipOptions,e=f.xAxis,b=e&&e.dateTime;e={isFooter:c,labelConfig:a};var g=d.xDateFormat,n=d[c?"footerFormat":"headerFormat"];k(this,"headerFormatter",e,function(e){b&&!g&&E(a.key)&&(g=b.getXDateFormat(a.key,d.dateTimeLabelFormats));b&&g&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(b){n=n.replace("{point."+b+"}","{point."+b+":"+g+"}")});f.chart.styledMode&&(n=this.styledModeFormat(n));e.text=C(n,{point:a,series:f},this.chart)});return e.text};a.prototype.update=function(a){this.destroy(); M(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,M(!0,this.options,a))};a.prototype.updatePosition=function(a){var f=this.chart,c=this.options,g=f.pointer,e=this.getLabel();g=g.getChartPosition();var b=(c.positioner||this.getPosition).call(this,e.width,e.height,a),n=a.plotX+f.plotLeft;a=a.plotY+f.plotTop;if(this.outside){c=c.borderWidth+2*this.distance;this.renderer.setSize(e.width+c,e.height+c,!1);if(1!==g.scaleX||1!==g.scaleY)d(this.container,{transform:"scale(".concat(g.scaleX, ", ").concat(g.scaleY,")")}),n*=g.scaleX,a*=g.scaleY;n+=g.left-b.x;a+=g.top-b.y}this.move(Math.round(b.x),Math.round(b.y||0),n,a)};return a}();"";return a});O(a,"Core/Series/Point.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/DefaultOptions.js"],a["Core/FormatUtilities.js"],a["Core/Utilities.js"]],function(a,q,A,G,x){var C=q.animObject,J=A.defaultOptions,D=G.format,m=x.addEvent,l=x.defined,d=x.erase,g=x.extend,c=x.fireEvent,t=x.getNestedProperty,k=x.isArray, B=x.isFunction,E=x.isNumber,F=x.isObject,M=x.merge,K=x.objectEach,w=x.pick,z=x.syncTimeout,n=x.removeEvent,f=x.uniqueKey;q=function(){function u(){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.shapeArgs=this.series=void 0;this.visible=!0;this.x=void 0}u.prototype.animateBeforeDestroy=function(){var a=this,f={x:a.startXPos,opacity:0},e=a.getGraphicalProps();e.singular.forEach(function(b){a[b]= a[b].animate("dataLabel"===b?{x:a[b].startXPos,y:a[b].startYPos,opacity:0}:f)});e.plural.forEach(function(b){a[b].forEach(function(b){b.element&&b.animate(g({x:a.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})};u.prototype.applyOptions=function(a,f){var e=this.series,b=e.options.pointValKey||e.pointValKey;a=u.prototype.optionsToObject.call(this,a);g(this,a);this.options=this.options?g(this.options,a):a;a.group&&delete this.group;a.dataLabels&&delete this.dataLabels;b&&(this.y=u.prototype.getNestedProperty.call(this, b));this.formatPrefix=(this.isNull=w(this.isValid&&!this.isValid(),null===this.x||!E(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof f&&e.xAxis&&e.xAxis.hasNames&&(this.x=e.xAxis.nameToX(this));"undefined"===typeof this.x&&e?this.x="undefined"===typeof f?e.autoIncrement():f:E(a.x)&&e.options.relativeXValue&&(this.x=e.autoIncrement(a.x));return this};u.prototype.destroy=function(){function a(){if(f.graphic||f.dataLabel||f.dataLabels)n(f),f.destroyElements(); for(p in f)f[p]=null}var f=this,e=f.series,b=e.chart;e=e.options.dataSorting;var c=b.hoverPoints,g=C(f.series.chart.renderer.globalAnimation),p;f.legendItem&&b.legend.destroyItem(f);c&&(f.setState(),d(c,f),c.length||(b.hoverPoints=null));if(f===b.hoverPoint)f.onMouseOut();e&&e.enabled?(this.animateBeforeDestroy(),z(a,g.duration)):a();b.pointCount--};u.prototype.destroyElements=function(a){var f=this;a=f.getGraphicalProps(a);a.singular.forEach(function(e){f[e]=f[e].destroy()});a.plural.forEach(function(e){f[e].forEach(function(b){b.element&& b.destroy()});delete f[e]})};u.prototype.firePointEvent=function(a,f,e){var b=this,h=this.series.options;(h.point.events[a]||b.options&&b.options.events&&b.options.events[a])&&b.importEvents();"click"===a&&h.allowPointSelect&&(e=function(e){b.select&&b.select(null,e.ctrlKey||e.metaKey||e.shiftKey)});c(b,a,f,e)};u.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",""):"")};u.prototype.getGraphicalProps=function(a){var f=this,e=[],b={singular:[],plural:[]},c;a=a||{graphic:1,dataLabel:1};a.graphic&&e.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&e.push("dataLabel","dataLabelUpper","connector");for(c=e.length;c--;){var h=e[c];f[h]&& b.singular.push(h)}["dataLabel","connector"].forEach(function(e){var c=e+"s";a[e]&&f[c]&&b.plural.push(c)});return b};u.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}};u.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?t(a,this.options):this[a]};u.prototype.getZone=function(){var a=this.series, f=a.zones;a=a.zoneAxis||"y";var e,b=0;for(e=f[b];this[a]>=e.value;)e=f[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=e&&e.color&&!this.options.color?e.color:this.nonZonedColor;return e};u.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};u.prototype.init=function(a,d,e){this.series=a;this.applyOptions(d,e);this.id=l(this.id)?this.id:f();this.resolveColor();a.chart.pointCount++;c(this,"afterInit"); return this};u.prototype.optionsToObject=function(a){var f=this.series,e=f.options.keys,b=e||f.pointArrayMap||["y"],c=b.length,h={},d=0,g=0;if(E(a)||null===a)h[b[0]]=a;else if(k(a))for(!e&&a.length>c&&(f=typeof a[0],"string"===f?h.name=a[0]:"number"===f&&(h.x=a[0]),d++);gg+b&&(t=g+b),le+y&&(l=e+y),this.hasDragged=Math.sqrt(Math.pow(k-t,2)+Math.pow(p-l,2)),10a.options.findNearestPointBy.indexOf("y");a= a.searchPoint(f,b);if((b=B(a,!0)&&a.series)&&!(b=!B(g,!0))){b=g.distX-a.distX;var e=g.dist-a.dist,d=(a.series.group&&a.series.group.zIndex)-(g.series.group&&g.series.group.zIndex);b=0<(0!==b&&c?b:0!==e?e:0!==d?d:g.series.index>a.series.index?-1:1)}b&&(g=a)});return g};a.prototype.getChartCoordinatesFromPoint=function(a,c){var f=a.series,d=f.xAxis;f=f.yAxis;var h=a.shapeArgs;if(d&&f){var g=M(a.clientX,a.plotX),e=a.plotY||0;a.isNode&&h&&k(h.x)&&k(h.y)&&(g=h.x,e=h.y);return c?{chartX:f.len+f.pos-e,chartY:d.len+ d.pos-g}:{chartX:g+d.pos,chartY:e+f.pos}}if(h&&h.x&&h.y)return{chartX:h.x,chartY:h.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,c=F(a);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var f=a.offsetWidth;a=a.offsetHeight;2w.max&&(f=w.max-B,M=!0);M?(S-=.8*(S-e[n][0]),"number"===typeof F&&(F-=.8*(F-e[n][1])), c()):e[n]=[S,F];t||(g[n]=P-u,g[k]=B);g=t?1/E:E;h[k]=B;h[n]=f;d[t?a?"scaleY":"scaleX":"scale"+p]=E;d["translate"+p]=g*u+(S-g*z)};a.prototype.reset=function(a,c){var f=this.chart,d=f.hoverSeries,h=f.hoverPoint,g=f.hoverPoints,e=f.tooltip,b=e&&e.shared?g:h;a&&b&&K(b).forEach(function(b){b.series.isCartesian&&"undefined"===typeof b.plotX&&(a=!1)});if(a)e&&b&&K(b).length&&(e.refresh(b),e.shared&&g?g.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))}):h&&(h.setState(h.state,!0),f.axes.forEach(function(a){a.crosshair&&h.series[a.coll]===a&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();g&&g.forEach(function(a){a.setState()});if(d)d.onMouseOut();e&&e.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());f.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=f.hoverPoints=f.hoverPoint=null}};a.prototype.runPointActions=function(d,g){var f=this.chart, n=f.tooltip&&f.tooltip.options.enabled?f.tooltip:void 0,h=n?n.shared:!1,r=g||f.hoverPoint,e=r&&r.series||f.hoverSeries;g=this.getHoverData(r,e,f.series,(!d||"touchmove"!==d.type)&&(!!g||e&&e.directTouch&&this.isDirectTouch),h,d);r=g.hoverPoint;e=g.hoverSeries;var b=g.hoverPoints;g=e&&e.tooltipOptions.followPointer&&!e.tooltipOptions.split;var k=h&&e&&!e.noSharedTooltip;if(r&&(r!==f.hoverPoint||n&&n.isHidden)){(f.hoverPoints||[]).forEach(function(a){-1===b.indexOf(a)&&a.setState()});if(f.hoverSeries!== e)e.onMouseOver();this.applyInactiveState(b);(b||[]).forEach(function(a){a.setState("hover")});f.hoverPoint&&f.hoverPoint.firePointEvent("mouseOut");if(!r.series)return;f.hoverPoints=b;f.hoverPoint=r;r.firePointEvent("mouseOver",void 0,function(){n&&r&&n.refresh(k?b:r,d)})}else g&&n&&!n.isHidden&&(h=n.getAnchor([{}],d),f.isInsidePlot(h[0],h[1],{visiblePlotOnly:!0})&&n.updatePosition({plotX:h[0],plotY:h[1]}));this.unDocMouseMove||(this.unDocMouseMove=D(f.container.ownerDocument,"mousemove",function(b){var e= H[a.hoverChartIndex];if(e)e.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));f.axes.forEach(function(a){var e=M((a.crosshair||{}).snap,!0),h;e&&((h=f.hoverPoint)&&h.series[a.coll]===a||(h=c(b,function(b){return b.series&&b.series[a.coll]===a})));h||!e?a.drawCrosshair(d,h):a.hideCrosshair()})};a.prototype.scaleGroups=function(a,c){var f=this.chart;f.series.forEach(function(d){var h=a||d.getPlotBox();d.group&&(d.xAxis&&d.xAxis.zoomEnabled||f.mapView)&&(d.group.attr(h), d.markerGroup&&(d.markerGroup.attr(h),d.markerGroup.clip(c?f.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(h))});f.clipRect.attr(c||f.clipBox)};a.prototype.setDOMEvents=function(){var c=this,d=this.chart.container,f=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(D(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(D(d,"mouseleave", this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=D(f,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&"BODY"!==g.tagName;)this.eventsToUnbind.push(D(g,"scroll",function(){delete c.chartPosition})),g=g.parentElement;q.hasTouch&&(this.eventsToUnbind.push(D(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(D(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})), a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=D(f,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var c=this.chart,d=q.charts[M(a.hoverChartIndex,-1)];if(d&&d!==c)d.pointer.onContainerMouseLeave({relatedTarget:c.container});d&&d.mouseIsDown||(a.hoverChartIndex=c.index)};a.prototype.touch=function(a,c){var f=this.chart,d;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(d=f.isInsidePlot(a.chartX-f.plotLeft,a.chartY- f.plotTop,{visiblePlotOnly:!0}))&&!f.openMenu){c&&this.runPointActions(a);if("touchmove"===a.type){c=this.pinchDown;var h=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-a.chartX,2)+Math.pow(c[0].chartY-a.chartY,2)):!1}M(h,!0)&&this.pinch(a)}else c&&this.reset();else 2===a.touches.length&&this.pinch(a)};a.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};a.prototype.zoomOption=function(a){var c=this.chart,f=c.options.chart;c=c.inverted; var d=f.zoomType||"";/touch/.test(a.type)&&(d=M(f.pinchType,d));this.zoomX=a=/x/.test(d);this.zoomY=f=/y/.test(d);this.zoomHor=a&&!c||f&&c;this.zoomVert=f&&!c||a&&c;this.hasZoom=a||f};return a}();"";return a});O(a,"Core/MSPointer.js",[a["Core/Globals.js"],a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,q,A){function C(){var a=[];a.item=function(a){return this[a]};c(k,function(c){a.push({pageX:c.pageX,pageY:c.pageY,target:c.target})});return a}function x(a,c,d,g){var k=J[q.hoverChartIndex|| NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,g(a),k[c]({type:d,target:a.currentTarget,preventDefault:m,touches:C()}))}var H=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(c,d)};return function(c,d){function g(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):(g.prototype=d.prototype, new g)}}(),J=a.charts,D=a.doc,m=a.noop,l=a.win,d=A.addEvent,g=A.css,c=A.objectEach,t=A.removeEvent,k={},B=!!l.PointerEvent;return function(c){function m(){return null!==c&&c.apply(this,arguments)||this}H(m,c);m.isRequired=function(){return!(a.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)};m.prototype.batchMSEvents=function(a){a(this.chart.container,B?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,B?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(D,B? "pointerup":"MSPointerUp",this.onDocumentPointerUp)};m.prototype.destroy=function(){this.batchMSEvents(t);c.prototype.destroy.call(this)};m.prototype.init=function(a,d){c.prototype.init.call(this,a,d);this.hasZoom&&g(a.container,{"-ms-touch-action":"none","touch-action":"none"})};m.prototype.onContainerPointerDown=function(a){x(a,"onContainerTouchStart","touchstart",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};m.prototype.onContainerPointerMove=function(a){x(a, "onContainerTouchMove","touchmove",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY};k[a.pointerId].target||(k[a.pointerId].target=a.currentTarget)})};m.prototype.onDocumentPointerUp=function(a){x(a,"onDocumentTouchEnd","touchend",function(a){delete k[a.pointerId]})};m.prototype.setDOMEvents=function(){c.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(d)};return m}(q)});O(a,"Core/Legend/Legend.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"], a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Utilities.js"]],function(a,q,A,G,x,H){var C=a.animObject,D=a.setAnimation,m=q.format;a=A.isFirefox;var l=A.marginNames;A=A.win;var d=x.distribute,g=H.addEvent,c=H.createElement,t=H.css,k=H.defined,B=H.discardElement,E=H.find,F=H.fireEvent,M=H.isNumber,K=H.merge,w=H.pick,z=H.relativeLength,n=H.stableSort,f=H.syncTimeout;x=H.wrap;H=function(){function a(a,f){this.allItems=[];this.contentGroup=this.box=void 0; this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,f)}a.prototype.init=function(a,f){this.chart= a;this.setOptions(f);f.enabled&&(this.render(),g(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=g(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(a){var f=w(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=K(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop|| 0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=f;this.initialItemY=f-5;this.symbolWidth=w(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};a.prototype.update=function(a,f){var e=this.chart;this.setOptions(K(!0,this.options,a));this.destroy();e.isDirtyLegend=e.isDirtyBox=!0;w(f,!0)&&e.redraw();F(this,"afterUpdate")};a.prototype.colorizeItem=function(a,f){a.legendGroup[f?"removeClass":"addClass"]("highcharts-legend-item-hidden"); if(!this.chart.styledMode){var e=this.options,b=a.legendItem,c=a.legendLine,d=a.legendSymbol,h=this.itemHiddenStyle.color;e=f?e.itemStyle.color:h;var g=f?a.color||h:h,r=a.options&&a.options.marker,k={fill:g};b&&b.css({fill:e,color:e});c&&c.attr({stroke:g});d&&(r&&d.isMarker&&(k=a.pointAttribs(),f||(k.stroke=k.fill=h)),d.attr(k))}F(this,"afterColorizeItem",{item:a,visible:f})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()}; a.prototype.positionItem=function(a){var f=this,e=this.options,b=e.symbolPadding,c=!e.rtl,d=a._legendItemPos;e=d[0];d=d[1];var h=a.checkbox,g=a.legendGroup;g&&g.element&&(b={translateX:c?e:this.legendWidth-e-2*b-4,translateY:d},c=function(){F(f,"afterPositionItem",{item:a})},k(g.translateY)?g.animate(b,void 0,c):(g.attr(b),c()));h&&(h.x=e,h.y=d)};a.prototype.destroyItem=function(a){var f=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(e){a[e]&&(a[e]=a[e].destroy())}); f&&B(a.checkbox)};a.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(f){["legendItem","legendGroup"].forEach(a,f)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null};a.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,f=this.clipHeight||this.legendHeight,e=this.titleHeight;if(a){var b=a.translateY;this.allItems.forEach(function(c){var d=c.checkbox;if(d){var h=b+ e+d.y+(this.scrollOffset||0)+3;t(d,{left:a.translateX+c.checkboxOffset+d.x-20+"px",top:h+"px",display:this.proximate||h>b-6&&h1.5*e?f.height:e))};a.prototype.layoutItem=function(a){var f=this.options, e=this.padding,b="horizontal"===f.layout,c=a.itemHeight,d=this.itemMarginBottom,g=this.itemMarginTop,h=b?w(f.itemDistance,20):0,k=this.maxLegendWidth;f=f.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:a.itemWidth;b&&this.itemX-e+f>k&&(this.itemX=e,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+d),this.lastLineHeight=0);this.lastItemY=g+this.itemY+d;this.lastLineHeight=Math.max(c,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=f:(this.itemY+=g+c+d,this.lastLineHeight= c);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-e-(a.checkbox?0:h):f)+e,this.offsetWidth)};a.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(f){var e=f&&f.options;f&&w(e.showInLegend,k(e.linkedTo)?!1:void 0,!0)&&(a=a.concat(f.legendItems||("point"===e.legendType?f.data:f)))});F(this,"afterGetAllItems",{allItems:a});return a};a.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)};a.prototype.adjustMargins=function(a,f){var e=this.chart,b=this.options,c=this.getAlignment();c&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(d,g){d.test(c)&&!k(a[g])&&(e[l[g]]=Math.max(e[l[g]],e.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*b[g%2?"x":"y"]+w(b.margin,12)+f[g]+(e.titleOffset[g]||0)))})};a.prototype.proximatePositions=function(){var a=this.chart,f=[],e="left"===this.options.align;this.allItems.forEach(function(b){var c; var d=e;if(b.yAxis){b.xAxis.options.reversed&&(d=!d);b.points&&(c=E(d?b.points:b.points.slice(0).reverse(),function(a){return M(a.plotY)}));d=this.itemMarginTop+b.legendItem.getBBox().height+this.itemMarginBottom;var g=b.yAxis.top-a.plotTop;b.visible?(c=c?c.plotY:b.yAxis.height,c+=g-.3*d):c=g+b.yAxis.height;f.push({target:c,size:d,item:b})}},this);d(f,a.plotHeight).forEach(function(b){b.item._legendItemPos&&b.pos&&(b.item._legendItemPos[1]=a.plotTop-a.spacing[0]+b.pos)})};a.prototype.render=function(){var a= this.chart,f=a.renderer,e=this.options,b=this.padding,c=this.getAllItems(),d=this.group,g=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=z(e.width,a.spacingBox.width-b);var v=a.spacingBox.width-2*b-e.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(v/=2);this.maxLegendWidth=this.widthOption||v;d||(this.group=d=f.g("legend").addClass(e.className||"").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(d),this.scrollGroup= f.g().add(this.contentGroup));this.renderTitle();n(c,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});e.reversed&&c.reverse();this.allItems=c;this.display=v=!!c.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;c.forEach(this.renderItem,this);c.forEach(this.layoutItem,this);c=(this.widthOption||this.offsetWidth)+b;var k=this.lastItemY+this.lastLineHeight+this.titleHeight;k=this.handleOverflow(k);k+=b;g||(this.box=g= f.rect().addClass("highcharts-legend-box").attr({r:e.borderRadius}).add(d));a.styledMode||g.attr({stroke:e.borderColor,"stroke-width":e.borderWidth||0,fill:e.backgroundColor||"none"}).shadow(e.shadow);if(0d&&!1!==n.enabled?(this.clipHeight=P=Math.max(d-20-this.titleHeight-h,0),this.currentPage=w(this.currentPage,1),this.fullHeight=a,m.forEach(function(a,b){var e=a._legendItemPos[1],f=Math.round(a.legendItem.getBBox().height),c=l.length;if(!c||e-l[c-1]>P&&(E||e)!==l[c-1])l.push(E||e),c++;a.pageIx=c-1;E&&(m[b-1].pageIx=c- 1);b===m.length-1&&e+f-l[c-1]>P&&f<=P&&(l.push(e),a.pageIx=c);e!==E&&(E=e)}),F||(F=f.clipRect=b.clipRect(0,h,9999,0),f.contentGroup.clip(F)),z(P),S||(this.nav=S=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,t,t).add(S),B("upTracker").on("click",function(){f.scroll(-1,u)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),!e.styledMode&&n.style&&this.pager.css(n.style),this.pager.add(S),this.down=b.symbol("triangle-down",0,0,t,t).add(S),B("downTracker").on("click", function(){f.scroll(1,u)})),f.scroll(0),a=d):S&&(z(),this.nav=S.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};a.prototype.scroll=function(a,c){var e=this,b=this.chart,d=this.pages,g=d.length,h=this.clipHeight,v=this.options.navigation,k=this.pager,n=this.padding,r=this.currentPage+a;r>g&&(r=g);0=Math.max(p+d,n.pos)&&h<=Math.min(p+d+c.width,n.pos+n.len)||(a.isInsidePlot=!1)}!e.ignoreY&&a.isInsidePlot&&(f=k&&(f?k.xAxis:k.yAxis)||{pos:g,len:Infinity},e=e.paneCoordinates?f.pos+b:g+b,e>=Math.max(v+g,f.pos)&&e<=Math.min(v+g+c.height,f.pos+f.len)||(a.isInsidePlot=!1));R(this,"afterIsInsidePlot", a);return a.isInsidePlot};a.prototype.redraw=function(a){R(this,"beforeRedraw");var b=this.hasCartesianSeries?this.axes:this.colorAxis||[],e=this.series,f=this.pointer,c=this.legend,d=this.userOptions.legend,g=this.renderer,h=g.isHidden(),p=[],v=this.isDirtyBox,k=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);F(this.hasRendered?a:!1,this);h&&this.temporaryDisplay();this.layOutTitles();for(a=e.length;a--;){var n=e[a];if(n.options.stacking||n.options.centerInCategory){var r=!0;if(n.isDirty){var y= !0;break}}}if(y)for(a=e.length;a--;)n=e[a],n.options.stacking&&(n.isDirty=!0);e.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),k=!0):d&&(d.labelFormatter||d.labelFormat)&&(k=!0));a.isDirtyData&&R(a,"updatedData")});k&&c&&c.options.enabled&&(c.render(),this.isDirtyLegend=!1);r&&this.getStacks();b.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();b.forEach(function(a){a.isDirty&&(v=!0)});b.forEach(function(a){var b= a.min+","+a.max;a.extKey!==b&&(a.extKey=b,p.push(function(){R(a,"afterSetExtremes",W(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(v||r)&&a.redraw()});v&&this.drawChartBox();R(this,"predraw");e.forEach(function(a){(v||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});f&&f.reset(!0);g.draw();R(this,"redraw");R(this,"render");h&&this.temporaryDisplay(!0);p.forEach(function(a){a.call()})};a.prototype.get=function(a){function b(b){return b.id===a||b.options&&b.options.id===a}for(var e=this.series, f=ba(this.axes,b)||ba(this.series,b),c=0;!f&&c=h&&f<=p||v||!L(f))k=!0;e[v?"zoomX":"zoomY"]&&k&&(d=g.zoom(a.min,a.max),g.displayBtn&&(c=!0))});var g=b.resetZoomButton;c&&!g?b.showResetZoom():!c&&S(g)&&(b.resetZoomButton=g.destroy());d&&b.redraw(T(b.options.chart.animation,a&&a.animation,100>b.pointCount))};a.prototype.pan=function(a,b){var e=this,f=e.hoverPoints;b="object"===typeof b?b:{enabled:b,type:"x"};var c=e.options.chart;c&&c.panning&&(c.panning=b);var d=b.type,g;R(this,"pan", {originalEvent:a},function(){f&&f.forEach(function(a){a.setState()});var b=e.xAxis;"xy"===d?b=b.concat(e.yAxis):"y"===d&&(b=e.yAxis);var c={};b.forEach(function(b){if(b.options.panningEnabled&&!b.options.isInternal){var f=b.horiz,h=a[f?"chartX":"chartY"];f=f?"mouseDownX":"mouseDownY";var p=e[f],v=b.minPointOffset||0,k=b.reversed&&!e.inverted||!b.reversed&&e.inverted?-1:1,n=b.getExtremes(),r=b.toValue(p-h,!0)+v*k,y=b.toValue(p+b.len-h,!0)-(v*k||b.isXAxis&&b.pointRangePadding||0),u=y=k&&r<=y&&(b.setExtremes(p,r,!1,!1,{trigger:"pan"}),!e.resetZoomButton&&p!==k&&r!==y&&d.match("y")&&(e.showResetZoom(),b.displayBtn=!1),g=!0),c[f]=h)}});Y(c,function(a,b){e[b]=a});g&&e.redraw(!1);v(e.container,{cursor:"move"})})};return a}();W(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis, [!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","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(" ")}); "";return a});O(a,"Core/Legend/LegendSymbol.js",[a["Core/Utilities.js"]],function(a){var C=a.merge,A=a.pick,G;(function(a){a.drawLineMarker=function(a){var q=this.options,x=a.symbolWidth,m=a.symbolHeight,l=m/2,d=this.chart.renderer,g=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var c={},t=q.marker;this.chart.styledMode||(c={"stroke-width":q.lineWidth||0},q.dashStyle&&(c.dashstyle=q.dashStyle));this.legendLine=d.path([["M",0,a],["L",x,a]]).addClass("highcharts-graph").attr(c).add(g); t&&!1!==t.enabled&&x&&(q=Math.min(A(t.radius,l),l),0===this.symbol.indexOf("url")&&(t=C(t,{width:m,height:m}),q=0),this.legendSymbol=x=d.symbol(this.symbol,x/2-q,a-q,2*q,2*q,t).addClass("highcharts-point").add(g),x.isMarker=!0)};a.drawRectangle=function(a,q){var C=a.symbolHeight,m=a.options.squareSymbol;q.legendSymbol=this.chart.renderer.rect(m?(a.symbolWidth-C)/2:0,a.baseline-C+1,m?C:a.symbolWidth,C,A(a.options.symbolRadius,C/2)).addClass("highcharts-point").attr({zIndex:3}).add(q.legendGroup)}})(G|| (G={}));return G});O(a,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{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"}});O(a,"Core/Series/Series.js", [a["Core/Animation/AnimationUtilities.js"],a["Core/DefaultOptions.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/Point.js"],a["Core/Series/SeriesDefaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,q,A,G,x,H,J,D,m,l){var d=a.animObject,g=a.setAnimation,c=q.defaultOptions,t=A.registerEventOptions,k=G.hasTouch,B=G.svg,E=G.win,F=D.seriesTypes,M=l.addEvent,K=l.arrayMax,w=l.arrayMin,z= l.clamp,n=l.cleanRecursively,f=l.correctFloat,u=l.defined,h=l.erase,r=l.error,e=l.extend,b=l.find,y=l.fireEvent,I=l.getNestedProperty,p=l.isArray,v=l.isNumber,L=l.isString,C=l.merge,N=l.objectEach,Q=l.pick,W=l.removeEvent,ba=l.splat,R=l.syncTimeout;a=function(){function a(){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}a.prototype.init=function(a,b){y(this,"init",{options:b});var f=this,c=a.series;this.eventsToUnbind=[];f.chart=a;f.options=f.setOptions(b);b=f.options;f.linkedSeries=[];f.bindAxes();e(f,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});t(this,b);var d=b.events;if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;f.getColor();f.getSymbol();f.parallelArrays.forEach(function(a){f[a+"Data"]||(f[a+"Data"]=[])});f.isCartesian&& (a.hasCartesianSeries=!0);var g;c.length&&(g=c[c.length-1]);f._i=Q(g&&g._i,-1)+1;f.opacity=f.options.opacity;a.orderSeries(this.insert(c));b.dataSorting&&b.dataSorting.enabled?f.setDataSortingOptions():f.points||f.data||f.setData(b.data,!1);y(this,"afterInit")};a.prototype.is=function(a){return F[a]&&this instanceof F[a]};a.prototype.insert=function(a){var b=this.options.index,e;if(v(b)){for(e=a.length;e--;)if(b>=Q(a[e].options.index,a[e]._i)){a.splice(e+1,0,this);break}-1===e&&a.unshift(this);e+= 1}else a.push(this);return Q(e,a.length-1)};a.prototype.bindAxes=function(){var a=this,b=a.options,e=a.chart,f;y(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(c){var d=0;e[c].forEach(function(e){f=e.options;if(b[c]===d&&!f.isInternal||"undefined"!==typeof b[c]&&b[c]===f.id||"undefined"===typeof b[c]&&0===f.index)a.insert(e.series),a[c]=e,e.isDirty=!0;f.isInternal||d++});a[c]||a.optionalAxis===c||r(18,!0,e)})});y(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(a, b){var e=a.series,f=arguments,c=v(b)?function(f){var c="y"===f&&e.toYData?e.toYData(a):a[f];e[f+"Data"][b]=c}:function(a){Array.prototype[b].apply(e[a+"Data"],Array.prototype.slice.call(f,2))};e.parallelArrays.forEach(c)};a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?k-this.cropStart:k);!p&&v(k)&&d[k]&&d[k].touched&&(k=void 0);return k};a.prototype.updateData=function(a,b){var e=this.options,f=e.dataSorting,c=this.points,d=[],g=this.requireSorting,h=a.length===c.length,p,k,n,r=!0;this.xIncrement=null;a.forEach(function(a,b){var k=u(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{},r=k.x;if(k.id||v(r)){if(k=this.findPointIndex(k,n),-1===k||"undefined"===typeof k?d.push(a): c[k]&&a!==e.data[k]?(c[k].update(a,!1,null,!1),c[k].touched=!0,g&&(n=k+1)):c[k]&&(c[k].touched=!0),!h||b!==k||f&&f.enabled||this.hasDerivedData)p=!0}else d.push(a)},this);if(p)for(a=c.length;a--;)(k=c[a])&&!k.touched&&k.remove&&k.remove(!1,b);else!h||f&&f.enabled?r=!1:(a.forEach(function(a,b){a!==c[b].y&&c[b].update&&c[b].update(a,!1,null,!1)}),d.length=0);c.forEach(function(a){a&&(a.touched=!1)});if(!r)return!1;d.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&& this.xData&&this.xData.length&&(this.xIncrement=K(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(a,b,e,f){var c=this,d=c.points,g=d&&d.length||0,h=c.options,k=c.chart,n=h.dataSorting,y=c.xAxis,u=h.turboThreshold,l=this.xData,t=this.yData,w=c.pointArrayMap;w=w&&w.length;var I=h.keys,m,z=0,P=1,B=null;if(!k.options.chart.allowMutatingData){h.data&&delete c.options.data;c.userOptions.data&&delete c.userOptions.data;var E=C(!0,a)}a=E||a||[];E=a.length;b=Q(b,!0);n&&n.enabled&& (a=this.sortData(a));k.options.chart.allowMutatingData&&!1!==f&&E&&g&&!c.cropped&&!c.hasGroupedData&&c.visible&&!c.isSeriesBoosting&&(m=this.updateData(a,e));if(!m){c.xIncrement=null;c.colorCounter=0;this.parallelArrays.forEach(function(a){c[a+"Data"].length=0});if(u&&E>u)if(B=c.getFirstValidPoint(a),v(B))for(e=0;ea?1:0}).forEach(function(a,b){a.x=b},this);b.linkedSeries&&b.linkedSeries.forEach(function(b){var e= b.options,c=e.data;e.dataSorting&&e.dataSorting.enabled||!c||(c.forEach(function(e,d){c[d]=f(b,e);a[d]&&(c[d].x=a[d].x,c[d].index=d)}),b.setData(c,!1))});return a};a.prototype.getProcessedData=function(a){var b=this.xAxis,e=this.options,f=e.cropThreshold,c=a||this.getExtremesFromAll||e.getExtremesFromAll,d=this.isCartesian;a=b&&b.val2lin;e=!(!b||!b.logarithmic);var g=0,h=this.xData,p=this.yData,v=this.requireSorting;var k=!1;var n=h.length;if(b){k=b.getExtremes();var y=k.min;var l=k.max;k=!(!b.categories|| b.names.length)}if(d&&this.sorted&&!c&&(!f||n>f||this.forceCrop))if(h[n-1]l)h=[],p=[];else if(this.yData&&(h[0]l)){var u=this.cropData(this.xData,this.yData,y,l);h=u.xData;p=u.yData;g=u.start;u=!0}for(f=h.length||1;--f;)if(b=e?a(h[f])-a(h[f-1]):h[f]-h[f-1],0b&&v&&!k&&(r(15,!1,this.chart),v=!1);return{xData:h,yData:p,cropped:u,cropStart:g,closestPointRange:t}};a.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;y(this,"afterProcessData")};a.prototype.cropData=function(a,b,e,f,c){var d=a.length,g,h=0,p=d;c=Q(c,this.cropShoulder);for(g=0;g=e){h=Math.max(0,g-c);break}for(e=g;ef){p=e+c;break}return{xData:a.slice(h,p),yData:b.slice(h, p),start:h,end:p}};a.prototype.generatePoints=function(){var a=this.options,b=this.processedData||a.data,f=this.processedXData,c=this.processedYData,d=this.pointClass,g=f.length,h=this.cropStart||0,p=this.hasGroupedData,v=a.keys,k=[];a=a.dataGrouping&&a.dataGrouping.groupAll?h:0;var n,r,l=this.data;if(!l&&!p){var u=[];u.length=b.length;l=this.data=u}v&&p&&(this.options.keys=!1);for(r=0;r=k&&(c[h-g]||t)<=n;if(I&&t)if(I=u.length)for(;I--;)v(u[I])&&(d[r++]=u[I]);else d[r++]=u}a={activeYData:d, dataMin:w(d),dataMax:K(d)};y(this,"afterGetExtremes",{dataExtremes:a});return a};a.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};a.prototype.getFirstValidPoint=function(a){for(var b=a.length,e=0,f=null;null===f&&e=q&&(q=null),B.total=B.stackTotal=F.total,B.percentage=F.total&&B.y/F.total*100,B.stackY=K,this.irregularWidths||F.setOffset(this.pointXOffset||0,this.barW||0));B.yBottom=u(q)?z(g.translate(q,0,1,0,1),-1E5,1E5):null;this.dataModify&&(K=this.dataModify.modifyValue(K,I));B.plotY=void 0;v(K)&&(F=g.translate(K,!1,!0,!1,!0), "undefined"!==typeof F&&(B.plotY=z(F,-1E5,1E5)));B.isInside=this.isPointInside(B);B.clientX=r?f(e.translate(E,0,0,0,1,n)):m;B.negative=B[w]<(a[w+"Threshold"]||l||0);B.category=Q(c&&c[B.x],B.x);if(!B.isNull&&!1!==B.visible){"undefined"!==typeof x&&(L=Math.min(L,Math.abs(m-x)));var x=m}B.zone=this.zones.length?B.getZone():void 0;!B.graphic&&this.group&&d&&(B.isNew=!0)}this.closestPointRangePx=L;y(this,"afterTranslate")};a.prototype.getValidPoints=function(a,b,e){var f=this.chart;return(a||this.points|| []).filter(function(a){return b&&!f.isInsidePlot(a.plotX,a.plotY,{inverted:f.inverted})?!1:!1!==a.visible&&(e||!a.isNull)})};a.prototype.getClipBox=function(){var a=this.chart,b=this.xAxis,e=this.yAxis,f=C(a.clipBox);b&&b.len!==a.plotSizeX&&(f.width=b.len);e&&e.len!==a.plotSizeY&&(f.height=e.len);return f};a.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};a.prototype.setClip=function(){var a=this.chart,b=this.group,e=this.markerGroup, f=a.sharedClips;a=a.renderer;var c=this.getClipBox(),d=this.getSharedClipKey(),g=f[d];g?g.animate(c):f[d]=g=a.clipRect(c);b&&b.clip(!1===this.options.clip?void 0:g);e&&e.clip()};a.prototype.animate=function(a){var b=this.chart,e=this.group,f=this.markerGroup,c=b.inverted,g=d(this.options.animation),h=[this.getSharedClipKey(),g.duration,g.easing,g.defer].join(),p=b.sharedClips[h],v=b.sharedClips[h+"m"];if(a&&e)g=this.getClipBox(),p?p.attr("height",g.height):(g.width=0,c&&(g.x=b.plotHeight),p=b.renderer.clipRect(g), b.sharedClips[h]=p,v=b.renderer.clipRect({x:c?(b.plotSizeX||0)+99:-99,y:c?-b.plotLeft:-b.plotTop,width:99,height:c?b.chartWidth:b.chartHeight}),b.sharedClips[h+"m"]=v),e.clip(p),f&&f.clip(v);else if(p&&!p.hasClass("highcharts-animating")){b=this.getClipBox();var k=g.step;f&&f.element.childNodes.length&&(g.step=function(a,b){k&&k.apply(b,arguments);v&&v.element&&v.attr(b.prop,"width"===b.prop?a+99:a)});p.addClass("highcharts-animating").animate(b,g)}};a.prototype.afterAnimate=function(){var a=this; this.setClip();N(this.chart.sharedClips,function(b,e,f){b&&!a.chart.container.querySelector('[clip-path="url(#'.concat(b.id,')"]'))&&(b.destroy(),delete f[e])});this.finishedAnimating=!0;y(this,"afterAnimate")};a.prototype.drawPoints=function(){var a=this.points,b=this.chart,e=this.options.marker,f=this[this.specialGroup]||this.markerGroup,c=this.xAxis,d=Q(e.enabled,!c||c.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius),g,h;if(!1!==e.enabled||this._hasPointMarkers)for(g=0;g< a.length;g++){var p=a[g];var v=(h=p.graphic)?"animate":"attr";var k=p.marker||{};var n=!!p.marker;if((d&&"undefined"===typeof k.enabled||k.enabled)&&!p.isNull&&!1!==p.visible){var r=Q(k.symbol,this.symbol,"rect");var y=this.markerAttribs(p,p.selected&&"select");this.enabledDataSorting&&(p.startXPos=c.reversed?-(y.width||0):c.width);var u=!1!==p.isInside;h?h[u?"show":"hide"](u).animate(y):u&&(0<(y.width||0)||p.hasImage)&&(p.graphic=h=b.renderer.symbol(r,y.x,y.y,y.width,y.height,n?k:e).add(f),this.enabledDataSorting&& b.hasRendered&&(h.attr({x:p.startXPos}),v="animate"));h&&"animate"===v&&h[u?"show":"hide"](u).animate(y);if(h&&!b.styledMode)h[v](this.pointAttribs(p,p.selected&&"select"));h&&h.addClass(p.getClassName(),!0)}else h&&(p.graphic=h.destroy())}};a.prototype.markerAttribs=function(a,b){var e=this.options,f=e.marker,c=a.marker||{},d=c.symbol||f.symbol,g=Q(c.radius,f&&f.radius);b&&(f=f.states[b],b=c.states&&c.states[b],g=Q(b&&b.radius,f&&f.radius,g&&g+(f&&f.radiusPlus||0)));a.hasImage=d&&0===d.indexOf("url"); a.hasImage&&(g=0);a=v(g)?{x:e.crisp?Math.floor(a.plotX-g):a.plotX-g,y:a.plotY-g}:{};g&&(a.width=a.height=2*g);return a};a.prototype.pointAttribs=function(a,b){var e=this.options.marker,f=a&&a.options,c=f&&f.marker||{},d=f&&f.color,g=a&&a.color,h=a&&a.zone&&a.zone.color,p=this.color;a=Q(c.lineWidth,e.lineWidth);f=1;p=d||h||g||p;d=c.fillColor||e.fillColor||p;g=c.lineColor||e.lineColor||p;b=b||"normal";e=e.states[b]||{};b=c.states&&c.states[b]||{};a=Q(b.lineWidth,e.lineWidth,a+Q(b.lineWidthPlus,e.lineWidthPlus, 0));d=b.fillColor||e.fillColor||d;g=b.lineColor||e.lineColor||g;f=Q(b.opacity,e.opacity,f);return{stroke:g,"stroke-width":a,fill:d,opacity:f}};a.prototype.destroy=function(a){var b=this,e=b.chart,f=/AppleWebKit\/533/.test(E.navigator.userAgent),c=b.data||[],d,g,p,v;y(b,"destroy",{keepEventsForUpdate:a});this.removeEvents(a);(b.axisTypes||[]).forEach(function(a){(v=b[a])&&v.series&&(h(v.series,b),v.isDirty=v.forceRedraw=!0)});b.legendItem&&b.chart.legend.destroyItem(b);for(g=c.length;g--;)(p=c[g])&& p.destroy&&p.destroy();b.clips&&b.clips.forEach(function(a){return a.destroy()});l.clearTimeout(b.animationTimeout);N(b,function(a,b){a instanceof m&&!a.survive&&(d=f&&"group"===b?"hide":"destroy",a[d]())});e.hoverSeries===b&&(e.hoverSeries=void 0);h(e.series,b);e.orderSeries();N(b,function(e,f){a&&"hcEvents"===f||delete b[f]})};a.prototype.applyZones=function(){var a=this,b=this.chart,e=b.renderer,f=this.zones,c=this.clips||[],d=this.graph,g=this.area,h=Math.max(b.chartWidth,b.chartHeight),p=this[(this.zoneAxis|| "y")+"Axis"],v=b.inverted,k,n,r,y,u,l,t,w,I=!1;if(f.length&&(d||g)&&p&&"undefined"!==typeof p.min){var m=p.reversed;var L=p.horiz;d&&!this.showLine&&d.hide();g&&g.hide();var B=p.getExtremes();f.forEach(function(f,E){k=m?L?b.plotWidth:0:L?0:p.toPixels(B.min)||0;k=z(Q(n,k),0,h);n=z(Math.round(p.toPixels(Q(f.value,B.max),!0)||0),0,h);I&&(k=n=p.toPixels(B.max));y=Math.abs(k-n);u=Math.min(k,n);l=Math.max(k,n);p.isXAxis?(r={x:v?l:u,y:0,width:y,height:h},L||(r.x=b.plotHeight-r.x)):(r={x:0,y:v?l:u,width:h, height:y},L&&(r.y=b.plotWidth-r.y));v&&e.isVML&&(r=p.isXAxis?{x:0,y:m?u:l,height:r.width,width:b.chartWidth}:{x:r.y-b.plotLeft-b.spacingBox.x,y:0,width:r.height,height:b.chartHeight});c[E]?c[E].animate(r):c[E]=e.clipRect(r);t=a["zone-area-"+E];w=a["zone-graph-"+E];d&&w&&w.clip(c[E]);g&&t&&t.clip(c[E]);I=f.value>B.max;a.resetZones&&0===n&&(n=void 0)});this.clips=c}else a.visible&&(d&&d.show(),g&&g.show())};a.prototype.invertGroups=function(a){function b(){["group","markerGroup"].forEach(function(b){e[b]&& (f.renderer.isVML&&e[b].attr({width:e.yAxis.len,height:e.xAxis.len}),e[b].width=e.yAxis.len,e[b].height=e.xAxis.len,e[b].invert(e.isRadialSeries?!1:a))})}var e=this,f=e.chart;e.xAxis&&(e.eventsToUnbind.push(M(f,"resize",b)),b(),e.invertGroups=b)};a.prototype.plotGroup=function(a,b,e,f,c){var d=this[a],g=!d;e={visibility:e,zIndex:f||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(e.opacity=this.opacity);g&&(this[a]=d=this.chart.renderer.g().add(c));d.addClass("highcharts-"+ b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(u(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(d.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);d.attr(e)[g?"attr":"animate"](this.getPlotBox());return d};a.prototype.getPlotBox=function(){var a=this.chart,b=this.xAxis,e=this.yAxis;a.inverted&&(b=e,e=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:e?e.top:a.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents= function(a){a||W(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};a.prototype.render=function(){var a=this,b=a.chart,e=a.options,f=d(e.animation),c=a.visible?"inherit":"hidden",g=e.zIndex,h=a.hasRendered,p=b.seriesGroup,v=b.inverted;b=!a.finishedAnimating&&b.renderer.isSVG?f.duration:0;y(this,"render");var k=a.plotGroup("group","series",c,g,p);a.markerGroup=a.plotGroup("markerGroup","markers",c,g,p);!1!==e.clip&&a.setClip();a.animate&& b&&a.animate(!0);k.inverted=Q(a.invertible,a.isCartesian)?v:!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(v);a.animate&&b&&a.animate();h||(b&&f.defer&&(b+=f.defer),a.animationTimeout=R(function(){a.afterAnimate()},b||0));a.isDirty=!1;a.hasRendered=!0;y(a,"afterRender")};a.prototype.redraw=function(){var a=this.chart,b=this.isDirty|| this.isDirtyData,e=this.group,f=this.xAxis,c=this.yAxis;e&&(a.inverted&&e.attr({width:a.plotWidth,height:a.plotHeight}),e.animate({translateX:Q(f&&f.left,a.plotLeft),translateY:Q(c&&c.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree};a.prototype.searchPoint=function(a,b){var e=this.xAxis,f=this.yAxis,c=this.chart.inverted;return this.searchKDTree({clientX:c?e.len-a.chartY+e.pos:a.chartX-e.pos,plotY:c?f.len-a.chartX+f.pos:a.chartY-f.pos},b,a)};a.prototype.buildKDTree=function(a){function b(a, f,c){var d=a&&a.length;if(d){var g=e.kdAxisArray[f%c];a.sort(function(a,b){return a[g]-b[g]});d=Math.floor(d/2);return{point:a[d],left:b(a.slice(0,d),f+1,c),right:b(a.slice(d+1),f+1,c)}}}this.buildingKdTree=!0;var e=this,f=-1k?"left":"right";r=0>k?"right":"left";b[y]&&(y=f(a,b[y],e+1,p),n=y[h]u;)l--;this.updateParallelArrays(r,"splice",l,0,0);this.updateParallelArrays(r,l);p&&r.name&&(p[u]=r.name);v.splice(l,0,a);if(n||this.processedData)this.data.splice(l,0,null),this.processData();"point"===d.legendType&&this.generatePoints();e&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(r, "shift"),v.shift()));!1!==c&&y(this,"addPoint",{point:r});this.isDirtyData=this.isDirty=!0;b&&h.redraw(f)};a.prototype.removePoint=function(a,b,e){var f=this,c=f.data,d=c[a],h=f.points,p=f.chart,v=function(){h&&h.length===c.length&&h.splice(a,1);c.splice(a,1);f.options.data.splice(a,1);f.updateParallelArrays(d||{series:f},"splice",a,1);d&&d.destroy();f.isDirty=!0;f.isDirtyData=!0;b&&p.redraw()};g(e,p);b=Q(b,!0);d?d.firePointEvent("remove",null,v):v()};a.prototype.remove=function(a,b,e,f){function c(){d.destroy(f); g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();Q(a,!0)&&g.redraw(b)}var d=this,g=d.chart;!1!==e?y(d,"remove",null,c):c()};a.prototype.update=function(a,b){a=n(a,this.userOptions);y(this,"update",{options:a});var f=this,c=f.chart,d=f.userOptions,g=f.initialType||f.type,h=c.options.plotOptions,p=F[g].prototype,v=f.finishedAnimating&&{animation:!1},k={},u,l=["eventOptions","navigatorSeries","baseSeries"],t=a.type||d.type||c.options.chart.type,w=!(this.hasDerivedData||t&&t!==this.type||"undefined"!== typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||a.joinBy||a.mapData||f.hasOptionChanged("dataGrouping")||f.hasOptionChanged("pointStart")||f.hasOptionChanged("pointInterval")||f.hasOptionChanged("pointIntervalUnit")||f.hasOptionChanged("keys"));t=t||g;w&&(l.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData", "minY","maxY","minX","maxX"),!1!==a.visible&&l.push("area","graph"),f.parallelArrays.forEach(function(a){l.push(a+"Data")}),a.data&&(a.dataSorting&&e(f.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=C(d,v,{index:"undefined"===typeof d.index?f.index:d.index,pointStart:Q(h&&h.series&&h.series.pointStart,d.pointStart,f.xData[0])},!w&&{data:f.options.data},a);w&&a.data&&(a.data=f.options.data);l=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(l);l.forEach(function(a){l[a]= f[a];delete f[a]});h=!1;if(F[t]){if(h=t!==f.type,f.remove(!1,!1,!1,!0),h)if(Object.setPrototypeOf)Object.setPrototypeOf(f,F[t].prototype);else{v=Object.hasOwnProperty.call(f,"hcEvents")&&f.hcEvents;for(u in p)f[u]=void 0;e(f,F[t].prototype);v?f.hcEvents=v:delete f.hcEvents}}else r(17,!0,c,{missingModuleFor:t});l.forEach(function(a){f[a]=l[a]});f.init(c,a);if(w&&this.points){var I=f.options;!1===I.visible?(k.graphic=1,k.dataLabel=1):f._hasPointLabels||(a=I.marker,p=I.dataLabels,!a||!1!==a.enabled&& (d.marker&&d.marker.symbol)===a.symbol||(k.graphic=1),p&&!1===p.enabled&&(k.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(k).length&&a.destroyElements(k),!1===I.showInLegend&&a.legendItem&&c.legend.destroyItem(a))},this)}f.initialType=g;c.linkSeries();h&&f.linkedSeries.length&&(f.isDirtyData=!0);y(this,"afterUpdate");Q(b,!0)&&c.redraw(w?void 0:!1)};a.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend= !0};a.prototype.hasOptionChanged=function(a){var b=this.options[a],e=this.chart.options.plotOptions,f=this.userOptions[a];return f?b!==f:b!==Q(e&&e[this.type]&&e[this.type][a],e&&e.series&&e.series[a],b)};a.prototype.onMouseOver=function(){var a=this.chart,b=a.hoverSeries;a.pointer.setHoverChartIndex();if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&y(this,"mouseOver");this.setState("hover");a.hoverSeries=this};a.prototype.onMouseOut=function(){var a=this.options,b=this.chart,e=b.tooltip, f=b.hoverPoint;b.hoverSeries=null;if(f)f.onMouseOut();this&&a.events.mouseOut&&y(this,"mouseOut");!e||this.stickyTracking||e.shared&&!this.noSharedTooltip||e.hide();b.series.forEach(function(a){a.setState("",!0)})};a.prototype.setState=function(a,b){var e=this,f=e.options,c=e.graph,d=f.inactiveOtherPoints,g=f.states,h=Q(g[a||"normal"]&&g[a||"normal"].animation,e.chart.options.chart.animation),p=f.lineWidth,v=0,k=f.opacity;a=a||"";if(e.state!==a&&([e.group,e.markerGroup,e.dataLabelsGroup].forEach(function(b){b&& (e.state&&b.removeClass("highcharts-series-"+e.state),a&&b.addClass("highcharts-series-"+a))}),e.state=a,!e.chart.styledMode)){if(g[a]&&!1===g[a].enabled)return;a&&(p=g[a].lineWidth||p+(g[a].lineWidthPlus||0),k=Q(g[a].opacity,k));if(c&&!c.dashstyle)for(f={"stroke-width":p},c.animate(f,h);e["zone-graph-"+v];)e["zone-graph-"+v].animate(f,h),v+=1;d||[e.group,e.markerGroup,e.dataLabelsGroup,e.labelBySeries].forEach(function(a){a&&a.animate({opacity:k},h)})}b&&d&&e.points&&e.setAllPointsToState(a||void 0)}; a.prototype.setAllPointsToState=function(a){this.points.forEach(function(b){b.setState&&b.setState(a)})};a.prototype.setVisible=function(a,b){var e=this,f=e.chart,c=e.legendItem,d=f.options.chart.ignoreHiddenSeries,g=e.visible,h=(e.visible=a=e.options.visible=e.userOptions.visible="undefined"===typeof a?!g:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(e[a])e[a][h]()});if(f.hoverSeries===e||(f.hoverPoint&&f.hoverPoint.series)===e)e.onMouseOut();c&& f.legend.colorizeItem(e,a);e.isDirty=!0;e.options.stacking&&f.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});e.linkedSeries.forEach(function(b){b.setVisible(a,!1)});d&&(f.isDirtyBox=!0);y(e,h);!1!==b&&f.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=function(){this.setVisible(!1)};a.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);y(this,a?"select": "unselect")};a.prototype.shouldShowTooltip=function(a,b,e){void 0===e&&(e={});e.series=this;e.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,b,e)};a.defaultOptions=J;return a}();e(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:x.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:H,requireSorting:!0,sorted:!0});D.series=a;"";"";return a});O(a,"Extensions/ScrollablePlotArea.js", [a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,q,A,G,x,H){var C=a.stop,D=H.addEvent,m=H.createElement,l=H.merge,d=H.pick;D(A,"afterSetChartSize",function(a){var c=this.options.chart.scrollablePlotArea,d=c&&c.minWidth;c=c&&c.minHeight;if(!this.renderer.forExport){if(d){if(this.scrollablePixelsX=d=Math.max(0,d-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox= l(this.plotBox);this.plotBox.width=this.plotWidth+=d;this.inverted?this.clipBox.height+=d:this.clipBox.width+=d;var g={1:{name:"right",value:d}}}}else c&&(this.scrollablePixelsY=d=Math.max(0,c-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,g={2:{name:"bottom",value:d}});g&&!a.skipAxes&&this.axes.forEach(function(a){g[a.side]?a.getPlotLinePath=function(){var c= g[a.side].name,d=this[c];this[c]=d-g[a.side].value;var k=q.prototype.getPlotLinePath.apply(this,arguments);this[c]=d;return k}:(a.setAxisSize(),a.setAxisTranslation())})}});D(A,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var a=this,c={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(c.overflowX= "auto");this.scrollablePixelsY&&(c.overflowY="auto");this.scrollingParent=m("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=m("div",{className:"highcharts-scrolling"},c,this.scrollingParent);D(this.scrollingContainer,"scroll",function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=m("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling= null};A.prototype.moveFixedElements=function(){var a=this.container,c=this.fixedRenderer,d=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),k;this.scrollablePixelsX&&!this.inverted?k=".highcharts-yaxis":this.scrollablePixelsX&& this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(k=".highcharts-yaxis");k&&d.push(""+k+":not(.highcharts-radial-axis)",""+k+"-labels:not(.highcharts-radial-axis-labels)");d.forEach(function(d){[].forEach.call(a.querySelectorAll(d),function(a){(a.namespaceURI===c.SVG_NS?c.box:c.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};A.prototype.applyFixed=function(){var a=!this.fixedDiv,c=this.options.chart, l=c.scrollablePlotArea,k=x.getRendererType();a?(this.fixedDiv=m("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(c.style&&c.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=c=new k(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=c.path().attr({fill:this.options.chart.backgroundColor|| "#fff","fill-opacity":d(l.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),D(this,"afterShowResetZoom",this.moveFixedElements),D(this,"afterApplyDrilldown",this.moveFixedElements),D(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();c=this.chartWidth+(this.scrollablePixelsX||0);k=this.chartHeight+(this.scrollablePixelsY||0);C(this.container); this.container.style.width=c+"px";this.container.style.height=k+"px";this.renderer.boxWrapper.attr({width:c,height:k,viewBox:[0,0,c,k].join(" ")});this.chartBackground.attr({width:c,height:k});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(l.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*l.scrollPositionX),l.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*l.scrollPositionY));k=this.axisOffset;a=this.plotTop-k[0]-1;l=this.plotLeft- k[3]-1;c=this.plotTop+this.plotHeight+k[2]+1;k=this.plotLeft+this.plotWidth+k[1]+1;var B=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),E=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,c],["L",0,c],["Z"],["M",B,a],["L",this.chartWidth,a],["L",this.chartWidth,c],["L",B,c],["Z"]]:this.scrollablePixelsY?[["M",l,0],["L",l,this.plotTop-1],["L",k,this.plotTop-1],["L",k,0],["Z"],["M",l,E],["L",l,this.chartHeight], ["L",k,this.chartHeight],["L",k,E],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};D(q,"afterInit",function(){this.chart.scrollableDirty=!0});D(G,"show",function(){this.chart.scrollableDirty=!0});""});O(a,"Core/Axis/StackingAxis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,q,A){var C=a.getDeferredAnimation,x=A.addEvent,H=A.destroyObjectProperties,J=A.fireEvent,D=A.isNumber,m=A.objectEach,l;(function(a){function d(){var a= this.stacking;if(a){var c=a.stacks;m(c,function(a,d){H(a);c[d]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function c(){this.stacking||(this.stacking=new k(this))}var l=[];a.compose=function(a){-1===l.indexOf(a)&&(l.push(a),x(a,"init",c),x(a,"destroy",d));return a};var k=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=function(){var a=this.axis,c=a.series,d=a.options.reversedStacks,g=c.length,k;if(!a.isXAxis){this.usePercentage= !1;for(k=g;k--;){var l=c[d?k:g-k-1];l.setStackedPoints();l.setGroupedPoints()}for(k=0;kk&&l.shadow));m&&(m.startX=d.xMap,m.isArea=d.isArea)})};D.prototype.getGraphPath=function(a,l,d){var g=this,c=g.options,t=[],k=[],m,E=c.step;a=a||g.points;var F=a.reversed;F&&a.reverse();(E={right:1,center:2}[E]||E&&3)&&F&&(E=4-E);a=this.getValidPoints(a,!1,!(c.connectNulls&&!l&&!d));a.forEach(function(B,F){var w=B.plotX,z=B.plotY, n=a[F-1];(B.leftCliff||n&&n.rightCliff)&&!d&&(m=!0);B.isNull&&!x(l)&&0a&&F>c?(F=Math.max(a,c),C=2*c-F):Fd&& C>c?(C=Math.max(d,c),F=2*c-C):C=Math.abs(c)&&.5a.closestPointRange* a.xAxis.transA;k=a.borderWidth=K(d.borderWidth,k?0:1);var e=a.xAxis,b=a.yAxis,n=d.threshold,l=a.translatedThreshold=b.getThreshold(n),p=K(d.minPointLength,5),v=a.getColumnMetrics(),m=v.width,w=a.pointXOffset=v.offset,z=a.dataMin,B=a.dataMax,q=a.barW=Math.max(m,1+2*k);c.inverted&&(l-=.5);d.pointPadding&&(q=Math.ceil(q));x.prototype.translate.apply(a);a.points.forEach(function(f){var h=K(f.yBottom,l),k=999+Math.abs(h),r=f.plotX||0;k=g(f.plotY,-k,b.len+k);var y=Math.min(k,h),u=Math.max(k,h)-y,I=m,L= r+w,E=q;p&&Math.abs(u)p?h-p:l-(r?p:0));t(f.options.pointWidth)&&(I=E=Math.ceil(f.options.pointWidth),L-=Math.round((I-m)/2));d.centerInCategory&&(L=a.adjustForMissingColumns(L,I,f,v));f.barX=L;f.pointWidth=I;f.tooltipPos=c.inverted?[g(b.len+b.pos-c.plotLeft-k,b.pos-c.plotLeft,b.len+b.pos-c.plotLeft),e.len+e.pos-c.plotTop-L-E/2,u]:[e.left-c.plotLeft+L+ E/2,g(k+b.pos-c.plotTop,b.pos-c.plotTop,b.len+b.pos-c.plotTop),u];f.shapeType=a.pointClass.prototype.shapeType||"rect";f.shapeArgs=a.crispCol.apply(a,f.isNull?[L,l,E,0]:[L,y,E,u])})};n.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};n.prototype.pointAttribs=function(a,c){var f=this.options,d=this.pointAttrToOptions||{},e=d.stroke||"borderColor",b=d["stroke-width"]||"borderWidth",g=a&&a.color||this.color,k=a&&a[e]||f[e]||g;d=a&&a.options.dashStyle|| f.dashStyle;var p=a&&a[b]||f[b]||this[b]||0,v=K(a&&a.opacity,f.opacity,1);if(a&&this.zones.length){var n=a.getZone();g=a.options.color||n&&(n.color||a.nonZonedColor)||this.color;n&&(k=n.borderColor||k,d=n.dashStyle||d,p=n.borderWidth||p)}c&&a&&(a=M(f.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,g=a.color||"undefined"!==typeof c&&l(g).brighten(a.brightness).get()||g,k=a[e]||k,p=a[b]||p,d=a.dashStyle||d,v=K(a.opacity,v));e={fill:g,stroke:k,"stroke-width":p,opacity:v};d&&(e.dashstyle= d);return e};n.prototype.drawPoints=function(){var a=this,c=this.chart,d=a.options,g=c.renderer,e=d.animationLimit||250,b;a.points.forEach(function(f){var h=f.graphic,p=!!h,k=h&&c.pointCount"===f&&a>c||"<"===f&&a="===f&&a>=c||"<="===f&&a<=c||"=="===f&&a==c||"==="===f&&a===c?!0:!1):!0}function q(){var a=this,f=a.chart,k=a.options,h=a.points,l=a.hasRendered||0,e=f.renderer,b=k.dataLabels,y,w=b.animation;w=b.defer?C(f,w,a):{defer:0,duration:0};b=K(K(f.options.plotOptions&&f.options.plotOptions.series&&f.options.plotOptions.series.dataLabels,f.options.plotOptions&&f.options.plotOptions[a.type]&& f.options.plotOptions[a.type].dataLabels),b);D(this,"drawDataLabels");if(m(b)||b.enabled||a._hasPointLabels){var p=a.plotGroup("dataLabelsGroup","data-labels",l?"inherit":"hidden",b.zIndex||6);p.attr({opacity:+l});!l&&(l=a.dataLabelsGroup)&&(a.visible&&p.show(),l[k.animation?"animate":"attr"]({opacity:1},w));h.forEach(function(h){y=c(K(b,h.dlOptions||h.options&&h.options.dataLabels));y.forEach(function(b,c){var v=b.enabled&&(!h.isNull||h.dataLabelOnNull)&&t(h,b),n=h.connectors?h.connectors[c]:h.connector, l=h.dataLabels?h.dataLabels[c]:h.dataLabel,r=!l,y=g(b.distance,h.labelDistance);if(v){var m=h.getLabelConfig();var u=g(b[h.formatPrefix+"Format"],b.format);m=H(u)?x(u,m,f):(b[h.formatPrefix+"Formatter"]||b.formatter).call(m,b);u=b.style;var w=b.rotation;f.styledMode||(u.color=g(b.color,u.color,a.color,"#000000"),"contrast"===u.color?(h.contrastColor=e.getContrast(h.color||a.color),u.color=!H(y)&&b.inside||0>y||k.stacking?h.contrastColor:"#000000"):delete h.contrastColor,k.cursor&&(u.cursor=k.cursor)); var I={r:b.borderRadius||0,rotation:w,padding:b.padding,zIndex:1};f.styledMode||(I.fill=b.backgroundColor,I.stroke=b.borderColor,I["stroke-width"]=b.borderWidth);d(I,function(a,b){"undefined"===typeof a&&delete I[b]})}!l||v&&H(m)&&!!l.div===!!b.useHTML&&(l.rotation&&b.rotation||l.rotation===b.rotation)||(r=!0,h.dataLabel=l=h.dataLabel&&h.dataLabel.destroy(),h.dataLabels&&(1===h.dataLabels.length?delete h.dataLabels:delete h.dataLabels[c]),c||delete h.dataLabel,n&&(h.connector=h.connector.destroy(), h.connectors&&(1===h.connectors.length?delete h.connectors:delete h.connectors[c])));v&&H(m)?(l?I.text=m:(h.dataLabels=h.dataLabels||[],l=h.dataLabels[c]=w?e.text(m,0,0,b.useHTML).addClass("highcharts-data-label"):e.label(m,0,0,b.shape,null,null,b.useHTML,null,"data-label"),c||(h.dataLabel=l),l.addClass(" highcharts-data-label-color-"+h.colorIndex+" "+(b.className||"")+(b.useHTML?" highcharts-tracker":""))),l.options=b,l.attr(I),f.styledMode||l.css(u).shadow(b.shadow),l.added||l.add(p),b.textPath&& !b.useHTML&&(l.setTextPath(h.getDataLabelPath&&h.getDataLabelPath(l)||h.graphic,b.textPath),h.dataLabelPath&&!b.textPath.enabled&&(h.dataLabelPath=h.dataLabelPath.destroy())),a.alignDataLabel(h,l,b,null,r)):l&&l.hide()})})}D(this,"afterDrawDataLabels")}function A(a,c,d,g,k,e){var b=this.chart,f=c.align,h=c.verticalAlign,p=a.box?0:a.padding||0,v=c.x;v=void 0===v?0:v;var n=c.y;n=void 0===n?0:n;var l=(d.x||0)+p;if(0>l){"right"===f&&0<=v?(c.align="left",c.inside=!0):v-=l;var r=!0}l=(d.x||0)+g.width-p; l>b.plotWidth&&("left"===f&&0>=v?(c.align="right",c.inside=!0):v+=b.plotWidth-l,r=!0);l=d.y+p;0>l&&("bottom"===h&&0<=n?(c.verticalAlign="top",c.inside=!0):n-=l,r=!0);l=(d.y||0)+g.height-p;l>b.plotHeight&&("top"===h&&0>=n?(c.verticalAlign="bottom",c.inside=!0):n+=b.plotHeight-l,r=!0);r&&(c.x=v,c.y=n,a.placed=!e,a.align(c,void 0,k));return r}function K(a,c){var f=[],d;if(m(a)&&!m(c))f=a.map(function(a){return l(a,c)});else if(m(c)&&!m(a))f=c.map(function(c){return l(a,c)});else if(m(a)||m(c))for(d= Math.max(a.length,c.length);d--;)f[d]=l(a[d],c[d]);else f=l(a,c);return f}function w(a,c,d,g,k){var e=this.chart,b=e.inverted,f=this.xAxis,h=f.reversed,p=b?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=b?k.x:h?-p-a:f.width-p+a;c.startYPos=b?h?this.yAxis.height-p+a:-p-a:k.y;g?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);e.hasRendered&&(d&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)}var z=[];a.compose= function(a){if(-1===z.indexOf(a)){var c=a.prototype;z.push(a);c.alignDataLabel=k;c.drawDataLabels=q;c.justifyDataLabel=A;c.setDataLabelStartPos=w}}})(t||(t={}));"";return t});O(a,"Series/Column/ColumnDataLabel.js",[a["Core/Series/DataLabel.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,A){var C=q.series,x=A.merge,H=A.pick,J;(function(q){function m(a,g,c,l,k){var d=this.chart.inverted,t=a.series,m=(t.xAxis?t.xAxis.len:this.chart.plotSizeX)||0;t=(t.yAxis?t.yAxis.len:this.chart.plotSizeY)|| 0;var q=a.dlBox||a.shapeArgs,K=H(a.below,a.plotY>H(this.translatedThreshold,t)),w=H(c.inside,!!this.options.stacking);q&&(l=x(q),0>l.y&&(l.height+=l.y,l.y=0),q=l.y+l.height-t,0\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});return l}(q);J(G.prototype,{drawTracker:a.prototype.drawTracker, sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});H(G,"afterTranslate",function(){this.applyJitter()});A.registerSeriesType("scatter",G);"";return G});O(a,"Series/CenteredUtilities.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,q,A){var C=a.deg2rad,x=A.fireEvent,H=A.isNumber,J=A.pick,D=A.relativeLength,m;(function(a){a.getCenter=function(){var a=this.options,g=this.chart,c=2*(a.slicedOffset|| 0),l=g.plotWidth-2*c,k=g.plotHeight-2*c,m=a.center,C=Math.min(l,k),F=a.thickness,A=a.size,K=a.innerSize||0;"string"===typeof A&&(A=parseFloat(A));"string"===typeof K&&(K=parseFloat(K));a=[J(m[0],"50%"),J(m[1],"50%"),J(A&&0>A?void 0:a.size,"100%"),J(K&&0>K?void 0:a.innerSize||0,"0%")];!g.angular||this instanceof q||(a[3]=0);for(m=0;4>m;++m)A=a[m],g=2>m||2===m&&/%$/.test(A),a[m]=D(A,[l,k,C,a[2]][m])+(g?c:0);a[3]>a[2]&&(a[3]=a[2]);H(F)&&2*Fa&&360>g-a?g:a+360;return{start:C*(a+-90),end:C*(g+-90)}}})(m||(m={}));"";return m});O(a,"Series/Pie/PiePoint.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,q,A){var C=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}; return a(d,c)};return function(d,c){function g(){this.constructor=d}a(d,c);d.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)}}(),x=a.setAnimation,H=A.addEvent,J=A.defined;a=A.extend;var D=A.isNumber,m=A.pick,l=A.relativeLength;q=function(a){function d(){var c=null!==a&&a.apply(this,arguments)||this;c.labelDistance=void 0;c.options=void 0;c.series=void 0;return c}C(d,a);d.prototype.getConnectorPath=function(){var a=this.labelPosition,d=this.series.options.dataLabels,g=this.connectorShapes, l=d.connectorShape;g[l]&&(l=g[l]);return l.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,d)};d.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};d.prototype.haloPath=function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:c.r-1,start:c.start,end:c.end})};d.prototype.init=function(){var c=this;a.prototype.init.apply(this,arguments); this.name=m(this.name,"Slice");var d=function(a){c.slice("select"===a.type)};H(this,"select",d);H(this,"unselect",d);return this};d.prototype.isValid=function(){return D(this.y)&&0<=this.y};d.prototype.setVisible=function(a,d){var c=this,g=this.series,l=g.chart,t=g.options.ignoreHiddenPoint;d=m(d,t);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(d){if(c[d])c[d][a? "show":"hide"](a)}),this.legendItem&&l.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),t&&(g.isDirty=!0),d&&l.redraw())};d.prototype.slice=function(a,d,g){var c=this.series;x(g,c.chart);m(d,!0);this.sliced=this.options.sliced=J(a)?a:!this.sliced;c.options.data[c.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return d}(q);a(q.prototype,{connectorShapes:{fixedOffset:function(a, g,c){var d=g.breakAt;g=g.touchingSliceAt;return[["M",a.x,a.y],c.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*d.x-g.x,2*d.y-g.y,d.x,d.y]:["L",d.x,d.y],["L",g.x,g.y]]},straight:function(a,g){g=g.touchingSliceAt;return[["M",a.x,a.y],["L",g.x,g.y]]},crookedLine:function(a,g,c){g=g.touchingSliceAt;var d=this.series,k=d.center[0],m=d.chart.plotWidth,q=d.chart.plotLeft;d=a.alignment;var F=this.shapeArgs.r;c=l(c.crookDistance,1);m="left"===d?k+F+(m+q-k-F)*(1-c):q+(k-F)*c;c=["L",m,a.y];k=!0;if("left"=== d?m>a.x||mg.x)k=!1;a=[["M",a.x,a.y]];k&&a.push(c);a.push(["L",g.x,g.y]);return a}}});return q});O(a,"Series/Pie/PieSeries.js",[a["Series/CenteredUtilities.js"],a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Series/Pie/PiePoint.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Utilities.js"]],function(a,q,A,G,x,H,J,D,m){var l=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf|| {__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(c,d)};return function(c,d){function g(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),d=a.getStartAndEndRadians;A=A.noop;var g=m.clamp,c=m.extend,t=m.fireEvent,k=m.merge,B=m.pick,C=m.relativeLength;m=function(a){function c(){var c=null!==a&&a.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(c,a);c.prototype.animate=function(a){var c=this,d=c.points,g=c.startAngleRad;a||d.forEach(function(a){var f=a.graphic,d=a.shapeArgs;f&&d&&(f.attr({r:B(a.startR,c.center&&c.center[3]/2),start:g,end:g}),f.animate({r:d.r,start:d.start,end:d.end},c.options.animation))})};c.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var g=this.center[0];var f=this.center[1];this.graph||(this.graph= this.chart.renderer.arc(g,f,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:D.arc(g,f,this.center[2]/2,0,{start:a,end:c,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none",stroke:d.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};c.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic= c.graphic.destroy());c.graphic||(c.graphic=a[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};c.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};c.prototype.getX=function(a,c,d){var k=this.center,f=this.radii?this.radii[d.index]||0:k[2]/2;a=Math.asin(g((a-k[1])/(f+d.labelDistance),-1,1));return k[0]+(c?-1:1)*Math.cos(a)*(f+d.labelDistance)+(01.5*Math.PI?v-=2*Math.PI:v<-Math.PI/2&&(v+=2*Math.PI);m.slicedTranslation={translateX:Math.round(Math.cos(v)*g),translateY:Math.round(Math.sin(v)*g)};L=Math.cos(v)*a[2]/2;var q=Math.sin(v)*a[2]/2;m.tooltipPos=[a[0]+.7*L,a[1]+.7*q];m.half=v<-Math.PI/2||v>Math.PI/2?1:0;m.angle=v;p=Math.min(k,m.labelDistance/5);m.labelPosition={natural:{x:a[0]+L+ Math.cos(v)*m.labelDistance,y:a[1]+q+Math.sin(v)*m.labelDistance},"final":{},alignment:0>m.labelDistance?"center":m.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+L+Math.cos(v)*p,y:a[1]+q+Math.sin(v)*p},touchingSliceAt:{x:a[0]+L,y:a[1]+q}}}}t(this,"afterTranslate")};c.prototype.updateTotals=function(){var a=this.points,c=a.length,d=this.options.ignoreHiddenPoint,g,f=0;for(g=0;gy&&(a.dataLabel.css({width:Math.round(.7* y)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),w.forEach(function(g,k){var n=g.length,m=[],y;if(n){a.sortByAngle(g,k-.5);if(0r-h&&0===k&&(u=Math.round(G+A-r+h),q[1]=Math.max(u,q[1])),0>M-H/2?q[0]=Math.max(Math.round(-M+H/2),q[0]):M+H/2>e&&(q[2]=Math.max(Math.round(M+H/2-e),q[2])), x.sideOverflow=u)}}}),0===m(q)||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(b){T=g(l,b.options.dataLabels);if(F=c(T.connectorWidth,1)){var e;E=b.connector;if((x=b.dataLabel)&&x._pos&&b.visible&&0c.bottom-2?d:f,c.half,c)},justify:function(a,c,f){return f[0]+(a.half?-1:1)*(c+a.labelDistance)},alignToPlotEdges:function(a,c,f,d){a=a.getBBox().width;return c?a+d:f-a-d},alignToConnectors:function(a,c,f,d){var g=0,k;a.forEach(function(a){k=a.dataLabel.getBBox().width;k>g&&(g=k)});return c?g+d:f-g-d}};k.compose=function(c){a.compose(D);-1===A.indexOf(c)&& (A.push(c),c=c.prototype,c.dataLabelPositioners=w,c.alignDataLabel=C,c.drawDataLabels=q,c.placeDataLabels=B,c.verifyDataLabelOverflow=x)}})(k||(k={}));return k});O(a,"Extensions/OverlappingDataLabels.js",[a["Core/Chart/Chart.js"],a["Core/Utilities.js"]],function(a,q){function C(a,d){var g=!1;if(a){var c=a.newOpacity;a.oldOpacity!==c&&(a.alignAttr&&a.placed?(a[c?"removeClass":"addClass"]("highcharts-data-label-hidden"),g=!0,a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){d.styledMode|| a.css({pointerEvents:c?"auto":"none"})}),x(d,"afterHideOverlappingLabel")):a.attr({opacity:c}));a.isOld=!0}return g}var G=q.addEvent,x=q.fireEvent,H=q.isArray,J=q.isNumber,D=q.objectEach,m=q.pick;G(a,"render",function(){var a=this,d=[];(this.labelCollectors||[]).forEach(function(a){d=d.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&D(a.stacking.stacks,function(a){D(a,function(a){a.label&&d.push(a.label)})})});(this.series|| []).forEach(function(g){var c=g.options.dataLabels;g.visible&&(!1!==c.enabled||g._hasPointLabels)&&(c=function(c){return c.forEach(function(c){c.visible&&(H(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[]).forEach(function(g){var k=g.options;g.labelrank=m(k.labelrank,c.labelrank,c.shapeArgs&&c.shapeArgs.height);k.allowOverlap?(g.oldOpacity=g.opacity,g.newOpacity=1,C(g,a)):d.push(g)})})},c(g.nodes||[]),c(g.points))});this.hideOverlappingLabels(d)});a.prototype.hideOverlappingLabels=function(a){var d= this,g=a.length,c=d.renderer,l,k,m,q=!1;var F=function(a){var d,g=a.box?0:a.padding||0,f=d=0,k;if(a&&(!a.alignAttr||a.placed)){var h=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var l=a.parentGroup;a.width||(d=a.getBBox(),a.width=d.width,a.height=d.height,d=c.fontMetrics(null,a.element).h);var e=a.width-2*g;(k={left:"0",center:"0.5",right:"1"}[a.alignValue])?f=+k*e:J(a.x)&&Math.round(a.x)!==a.translateX&&(f=a.x-a.translateX);return{x:h.x+(l.translateX||0)+g-(f||0),y:h.y+(l.translateY||0)+g-d,width:a.width- 2*g,height:a.height-2*g}}};for(k=0;k=A.x+A.width||D.x+D.width<=A.x||D.y>=A.y+A.height||D.y+D.height<=A.y||((F.labelrank=D(d.minWidth, 0)&&this.chartHeight>=D(d.minHeight,0)}).call(this)&&c.push(a._id)};a.prototype.setResponsive=function(a,c){var d=this,g=this.options.responsive,k=this.currentResponsive,m=[];!c&&g&&g.rules&&g.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=l());d.matchResponsiveRule(a,m)},this);c=H.apply(void 0,m.map(function(a){return C((g||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&a.chartOptions}));c.isResponsiveOptions=!0;m=m.toString()||void 0;m!==(k&&k.ruleIds)&&(k&& this.update(k.undoOptions,a,!0),m?(k=this.currentOptions(c),k.isResponsiveOptions=!0,this.currentResponsive={ruleIds:m,mergedOptions:c,undoOptions:k},this.update(c,a,!0)):this.currentResponsive=void 0)};return a}()})(d||(d={}));"";"";return d});O(a,"masters/highcharts.src.js",[a["Core/Globals.js"],a["Core/Utilities.js"],a["Core/DefaultOptions.js"],a["Core/Animation/Fx.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],a["Core/FormatUtilities.js"],a["Core/Renderer/RendererUtilities.js"], a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Renderer/HTML/HTMLElement.js"],a["Core/Renderer/HTML/HTMLRenderer.js"],a["Core/Axis/Axis.js"],a["Core/Axis/DateTimeAxis.js"],a["Core/Axis/LogarithmicAxis.js"],a["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],a["Core/Axis/Tick.js"],a["Core/Tooltip.js"],a["Core/Series/Point.js"],a["Core/Pointer.js"],a["Core/MSPointer.js"],a["Core/Legend/Legend.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"], a["Series/Column/ColumnSeries.js"],a["Series/Column/ColumnDataLabel.js"],a["Series/Pie/PieSeries.js"],a["Series/Pie/PieDataLabel.js"],a["Core/Series/DataLabel.js"],a["Core/Responsive.js"],a["Core/Color/Color.js"],a["Core/Time.js"]],function(a,q,A,G,x,H,J,D,m,l,d,g,c,t,k,B,E,F,M,K,w,z,n,f,u,h,r,e,b,y,I,p,v){a.animate=x.animate;a.animObject=x.animObject;a.getDeferredAnimation=x.getDeferredAnimation;a.setAnimation=x.setAnimation;a.stop=x.stop;a.timers=G.timers;a.AST=H;a.Axis=c;a.Chart=n;a.chart=n.chart; a.Fx=G;a.Legend=z;a.PlotLineOrBand=B;a.Point=M;a.Pointer=w.isRequired()?w:K;a.Series=f;a.SVGElement=m;a.SVGRenderer=l;a.Tick=E;a.Time=v;a.Tooltip=F;a.Color=p;a.color=p.parse;g.compose(l);d.compose(m);a.defaultOptions=A.defaultOptions;a.getOptions=A.getOptions;a.time=A.defaultTime;a.setOptions=A.setOptions;a.dateFormat=J.dateFormat;a.format=J.format;a.numberFormat=J.numberFormat;a.addEvent=q.addEvent;a.arrayMax=q.arrayMax;a.arrayMin=q.arrayMin;a.attr=q.attr;a.clearTimeout=q.clearTimeout;a.correctFloat= q.correctFloat;a.createElement=q.createElement;a.css=q.css;a.defined=q.defined;a.destroyObjectProperties=q.destroyObjectProperties;a.discardElement=q.discardElement;a.distribute=D.distribute;a.erase=q.erase;a.error=q.error;a.extend=q.extend;a.extendClass=q.extendClass;a.find=q.find;a.fireEvent=q.fireEvent;a.getMagnitude=q.getMagnitude;a.getStyle=q.getStyle;a.inArray=q.inArray;a.isArray=q.isArray;a.isClass=q.isClass;a.isDOMElement=q.isDOMElement;a.isFunction=q.isFunction;a.isNumber=q.isNumber;a.isObject= q.isObject;a.isString=q.isString;a.keys=q.keys;a.merge=q.merge;a.normalizeTickInterval=q.normalizeTickInterval;a.objectEach=q.objectEach;a.offset=q.offset;a.pad=q.pad;a.pick=q.pick;a.pInt=q.pInt;a.relativeLength=q.relativeLength;a.removeEvent=q.removeEvent;a.seriesType=u.seriesType;a.splat=q.splat;a.stableSort=q.stableSort;a.syncTimeout=q.syncTimeout;a.timeUnits=q.timeUnits;a.uniqueKey=q.uniqueKey;a.useSerialIds=q.useSerialIds;a.wrap=q.wrap;r.compose(h);y.compose(f);t.compose(c);k.compose(c);b.compose(e); B.compose(c);I.compose(n);return a});O(a,"Core/Axis/OrdinalAxis.js",[a["Core/Axis/Axis.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,q,A,G){var x=G.addEvent,C=G.correctFloat,J=G.css,D=G.defined,m=G.error,l=G.pick,d=G.timeUnits,g=[],c;(function(a){function c(a,e,b,c,f,g,h){void 0===f&&(f=[]);void 0===g&&(g=0);var p={},k=this.options.tickPixelInterval,v=this.chart.time,l=[],r,n,y=0,t=[],u=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!f|| 3>f.length||"undefined"===typeof e)return v.getTimeTicks.apply(v,arguments);var I=f.length;for(r=0;rb;f[r]5*g||w){if(f[r]>u){for(n=v.getTimeTicks(a,f[y],f[r],c);n.length&&n[0]<=u;)n.shift();n.length&&(u=n[n.length-1]);l.push(t.length);t=t.concat(n)}y=r+1}if(w)break}if(n){n=n.info;if(h&&n.unitRange<=d.hour){r=t.length-1;for(y=1;yb?n-1:n;for(r=void 0;q--;)l=v[q],n=Math.abs(r-l),r&&n<.8*k&&(null===y||n<.8*y)?(p[t[q]]&&!p[t[q+1]]?(n=q+1,r=l):n=q,t.splice(n,1)):r=l}return t}function t(a){var e=this.ordinal.positions;if(!e)return a;var b=e.length-1;if(0>a)a=e[0];else if(a>b)a=e[b];else{b=Math.floor(a);var c=a-b}return"undefined"!== typeof c&&"undefined"!==typeof e[b]?e[b]+(c?c*(e[b+1]-e[b]):0):a}function E(a){var e=this.ordinal,b=e.positions;if(!b)return a;var c=(a-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;0a?c+f*a:b+f*(a-e)}return a}function F(c,e){var b=a.Additions.findIndexOf(c,e,!0);return c[b]===e?b:b+(e-c[b])/(c[b+1]-c[b])}function G(){this.ordinal||(this.ordinal=new a.Additions(this))}function H(){this.isXAxis&&D(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&D(this.userMin)&& (this.min+=this.options.overscroll))}function w(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function z(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function n(a){var e=this.xAxis[0],b=e.options.overscroll,c=a.originalEvent.chartX,f=this.options.chart.panning,d=!1;if(f&&"y"!==f.type&&e.options.ordinal&&e.series.length){var g=this.mouseDownX, h=e.getExtremes(),k=h.dataMax,l=h.min,n=h.max,r=this.hoverPoints,m=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange;g=(g-c)/(e.translationSlope*(e.ordinal.slope||m));m=e.ordinal.getExtendedPositions();m={ordinal:{positions:m,extendedOrdinalPositions:m}};var t=e.index2val,u=e.val2lin,w=void 0,q=w=void 0,z=void 0;m.ordinal.positions?1g?(q=m,z=e.ordinal.positions?e:m):(q=e.ordinal.positions?e:m,z=m),w=z.ordinal.positions,k>w[w.length- 1]&&w.push(k),this.fixedRange=n-l,w=e.navigatorAxis.toFixedRange(void 0,void 0,t.apply(q,[u.apply(q,[l,!0])+g]),t.apply(z,[u.apply(z,[n,!0])+g])),w.min>=Math.min(h.dataMin,l)&&w.max<=Math.max(k,n)+b&&e.setExtremes(w.min,w.max,!0,!1,{trigger:"pan"}),this.mouseDownX=c,J(this.container,{cursor:"move"})):d=!0}else d=!0;d||f&&/y/.test(f.type)?b&&(e.max=e.dataMax+b):a.preventDefault()}function f(){var a=this.xAxis;a&&a.options.ordinal&&(delete a.ordinal.index,delete a.ordinal.extendedOrdinalPositions)} function u(a,e){var b=this.ordinal,c=b.positions,f=b.slope,d=b.extendedOrdinalPositions;if(!c)return a;var g=c.length;if(c[0]<=a&&c[g-1]>=a)a=F(c,a);else{d||(d=b.getExtendedPositions&&b.getExtendedPositions(),b.extendedOrdinalPositions=d);if(!d||!d.length)return a;g=d.length;f||(f=(d[g-1]-d[0])/g);c=F(d,c[0]);a>=d[0]&&a<=d[g-1]?a=F(d,a)-c:aw||d-m[m.length-1]>w)&&(t=!0)}else a.options.overscroll&& (2===u?r=m[1]-m[0]:1===u?(r=a.options.overscroll,m=[m[0],m[0]+r]):r=b.overscrollPointsRange);t||a.forceOrdinal?(a.options.overscroll&&(b.overscrollPointsRange=r,m=m.concat(b.getOverscrollPositions())),b.positions=m,w=a.ordinal2lin(Math.max(f,m[0]),!0),n=Math.max(a.ordinal2lin(Math.min(d,m[m.length-1]),!0),1),b.slope=d=(d-f)/(n-w),b.offset=f-w*d):(b.overscrollPointsRange=l(a.closestPointRange,b.overscrollPointsRange),b.positions=a.ordinal.slope=b.offset=void 0)}a.isOrdinal=c&&t;b.groupIntervalFactor= null};a.findIndexOf=function(a,b,c){for(var e=0,f=a.length-1,d;e=(this.xAxis.min||0)){this.dataModify.compareValue=k;break}}}}function n(a,b){this.setModifier("compare",a,b)}function f(a,b){a=t(a,!1);this.options.cumulative=this.userOptions.cumulative=a;this.update({},t(b,!0));this.dataModify?this.dataModify.initCumulative(): this.points.forEach(function(a){delete a.cumulativeSum})}function u(a,b){this.setModifier("cumulative",a,b)}var h=[];a.compose=function(a,b,c){if(-1===h.indexOf(a)){h.push(a);var e=a.prototype;e.setCompare=w;e.setCumulative=f;C(a,"afterInit",B);C(a,"afterGetExtremes",A);C(a,"afterProcessData",z)}-1===h.indexOf(b)&&(h.push(b),b=b.prototype,b.setCompare=n,b.setModifier=k,b.setCumulative=u);-1===h.indexOf(c)&&(h.push(c),c.prototype.tooltipFormatter=q);return a};var r=function(){function a(a){this.series= a}a.prototype.modifyValue=function(){return 0};a.getCumulativeExtremes=function(a){var b=Infinity,c=-Infinity;a.reduce(function(a,e){e=a+e;b=Math.min(b,e,a);c=Math.max(c,e,a);return e});return[b,c]};a.prototype.initCompare=function(a){this.modifyValue=function(b,c){null===b&&(b=0);var e=this.compareValue;return"undefined"!==typeof b&&"undefined"!==typeof e?(b="value"===a?b-e:b/e*100-(100===this.series.options.compareBase?0:100),"undefined"!==typeof c&&(c=this.series.points[c])&&(c.change=b),b):0}}; a.prototype.initCumulative=function(){this.modifyValue=function(a,c){null===a&&(a=0);if(void 0!==a&&void 0!==c){var b=0c.to||h>c.from&&ec.from&&ec.from&&e>c.to&&ef&&d>=this.basePointRange&&(f=d),h=void 0;k--;)h&&!1!==h.visible||(h=c[k+1]),d=c[k],!1!==h.visible&&!1!==d.visible&&(h.x-d.x>f&&(h=(d.x+h.x)/2,c.splice(k+1,0,{isNull:!0,x:h}),g.stacking&&this.options.stacking&&(h=g.stacking.stacks[this.stackKey][h]=new a(g,g.options.stackLabels,!1,h,this.stack),h.total=0)),h=d);return this.getGraphPath(c)}var G=[];l.compose=function(a,l){-1===G.indexOf(a)&&(G.push(a),a.keepProps.push("brokenAxis"),A(a,"init",m),A(a,"afterInit",d),A(a,"afterSetTickPositions", c),A(a,"afterSetOptions",g));if(-1===G.indexOf(l)){G.push(l);var n=l.prototype;n.drawBreaks=E;n.gappedPath=F;A(l,"afterGeneratePoints",k);A(l,"afterRender",q)}return a};var K=function(){function a(a){this.hasBreaks=!1;this.axis=a}a.isInBreak=function(a,c){var f=a.repeat||Infinity,d=a.from,g=a.to-a.from;c=c>=d?(c-d)%f:f-(d-c)%f;return a.inclusive?c<=g:c= c)break;else g.to=c)break;else if(a.isInBreak(h,c)){f-=c-h.from;break}}return f};a.prototype.findBreakAt=function(a,c){return C(c,function(c){return c.fromk;)t-=p;for(;t=b[0]);E++);for(E;E<=n;E++){for(;"undefined"!==typeof b[z+1]&&a[E]>=b[z+1]||E===n;){var D=b[z];e.dataGroupInfo={start:B?x:e.cropStart+x,length:r[0].length};var G=d.apply(e,r);e.pointClass&&!k(e.dataGroupInfo.options)&&(e.dataGroupInfo.options=C(e.pointClass.prototype.optionsToObject.call({series:e},e.options.data[e.cropStart+x])),q.forEach(function(a){delete e.dataGroupInfo.options[a]})); "undefined"!==typeof G&&(h.push(D),l.push(G),m.push(e.dataGroupInfo));x=E;for(D=0;D=c[0]){x=this.groupMap[0].start;D=this.groupMap[0].length;var C=void 0;F(x)&&F(D)&&(C=x+(D-1));c[0]={middle:c[0]+.5*w,end:c[0]+w,firstPoint:this.xData[0],lastPoint:C&&this.xData[C]}[A]}z&&"start"!==z&&w&&c[E]>=u-w&&(u=this.groupMap[this.groupMap.length-1].start,c[E]={middle:c[E]+.5*w,end:c[E]+w,firstPoint:u&&this.xData[u],lastPoint:this.xData[this.xData.length-1]}[z])}for(u=1;um.max){if(!k(m.options.max)&&F(m.dataMax)&&m.max>=m.dataMax||m.max===m.dataMax)m.max=Math.max(g[g.length-1],m.max);m.dataMax=Math.max(g[g.length-1],m.dataMax)}}b.groupAll&& (this.allGroupedData=n,b=this.cropData(f,n,m.min,m.max,1),f=b.xData,n=b.yData,this.cropStart=b.start);this.processedXData=f;this.processedYData=n}else this.groupMap=null;this.hasGroupedData=p;this.currentDataGrouping=u;this.preventGraphAnimation=(l&&l.totalRange)!==(u&&u.totalRange)}};d.destroyGroupedData=function(){this.groupedData&&(this.groupedData.forEach(function(a,c){a&&(this.groupedData[c]=a.destroy?a.destroy():null)},this),this.groupedData.length=0)};d.generatePoints=function(){n.apply(this); this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};a.prototype.applyGrouping=function(a){var c=this,b=c.series;b.forEach(function(a){a.groupPixelWidth=void 0});b.forEach(function(b){b.groupPixelWidth=c.getGroupPixelWidth&&c.getGroupPixelWidth();b.groupPixelWidth&&(b.hasProcessed=!0);b.applyGrouping(!!a.hasExtemesChanged)})};a.prototype.getGroupPixelWidth=function(){var a=this.series,c=a.length,b,d=0,g=!1,h;for(b=c;b--;)(h=a[b].options.dataGrouping)&&(d=Math.max(d,K(h.groupPixelWidth, f.groupPixelWidth)));for(b=c;b--;)if(h=a[b].options.dataGrouping)if(c=(a[b].processedXData||a[b].data).length,a[b].groupPixelWidth||c>this.chart.plotSizeX/d||c&&h.forced)g=!0;return g?d:0};a.prototype.setDataGrouping=function(c,e){var b;e=K(e,!0);c||(c={forced:!1,units:null});if(this instanceof a)for(b=this.series.length;b--;)this.series[b].update({dataGrouping:c},!1);else this.chart.options.series.forEach(function(a){a.dataGrouping="boolean"===typeof c?c:C(c,a.dataGrouping)});this.ordinal&&(this.ordinal.slope= void 0);e&&this.chart.redraw()};A(a,"postProcessData",a.prototype.applyGrouping);A(x,"update",function(){if(this.dataGroup)return B(24,!1,this.series.chart),!1});A(J,"headerFormatter",function(a){var c=this.chart,b=c.time,d=a.labelConfig,g=d.series,h=g.tooltipOptions,k=g.options.dataGrouping,m=h.xDateFormat,n=g.xAxis,t=h[a.isFooter?"footerFormat":"headerFormat"];if(n&&"datetime"===n.options.type&&k&&F(d.key)){var r=g.currentDataGrouping;k=k.dateTimeLabelFormats||f.dateTimeLabelFormats;if(r)if(h=k[r.unitName], 1===r.count)m=h[0];else{m=h[1];var u=h[2]}else!m&&k&&n.dateTime&&(m=n.dateTime.getXDateFormat(d.x,h.dateTimeLabelFormats));m=b.dateFormat(m,d.key);u&&(m+=b.dateFormat(u,d.key+r.totalRange-1));g.chart.styledMode&&(t=this.styledModeFormat(t));a.text=l(t,{point:E(d.point,{key:m}),series:g},c);a.preventDefault()}});A(H,"destroy",d.destroyGroupedData);A(H,"afterSetOptions",function(a){a=a.options;var c=this.type,b=this.chart.options.plotOptions,d=D.defaultOptions.plotOptions[c].dataGrouping,g=this.useCommonDataGrouping&& f;if(b&&(u[c]||g)){d||(d=C(f,u[c]));var h=this.chart.rangeSelector;a.dataGrouping=C(g,d,b.series&&b.series.dataGrouping,b[c].dataGrouping,this.userOptions.dataGrouping,!a.isInternal&&h&&F(h.selected)&&h.buttonOptions[h.selected].dataGrouping)}});A(a,"afterSetScale",function(){this.series.forEach(function(a){a.hasProcessed=!1})});G.dataGrouping=z;"";return z});O(a,"Series/HLC/HLCPoint.js",[a["Core/Series/SeriesRegistry.js"]],function(a){var q=this&&this.__extends||function(){var a=function(q,x){a= Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,q){a.__proto__=q}||function(a,q){for(var x in q)q.hasOwnProperty(x)&&(a[x]=q[x])};return a(q,x)};return function(q,x){function A(){this.constructor=q}a(q,x);q.prototype=null===x?Object.create(x):(A.prototype=x.prototype,new A)}}();return function(a){function A(){var q=null!==a&&a.apply(this,arguments)||this;q.close=void 0;q.high=void 0;q.low=void 0;q.options=void 0;q.plotClose=void 0;q.series=void 0;return q}q(A,a);return A}(a.seriesTypes.column.prototype.pointClass)}); O(a,"Series/HLC/HLCSeries.js",[a["Series/HLC/HLCPoint.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,A){var C=this&&this.__extends||function(){var a=function(m,l){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var c in g)g.hasOwnProperty(c)&&(a[c]=g[c])};return a(m,l)};return function(m,l){function d(){this.constructor=m}a(m,l);m.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)}}(),x=q.seriesTypes.column, H=A.extend,J=A.merge;A=function(a){function m(){var l=null!==a&&a.apply(this,arguments)||this;l.data=void 0;l.options=void 0;l.points=void 0;l.yData=void 0;return l}C(m,a);m.prototype.extendStem=function(a,d,g){var c=a[0];a=a[1];"number"===typeof c[2]&&(c[2]=Math.max(g+d,c[2]));"number"===typeof a[2]&&(a[2]=Math.min(g-d,a[2]))};m.prototype.getPointPath=function(a,d){d=d.strokeWidth();var g=a.series,c=d%2/2,l=Math.round(a.plotX)-c,k=Math.round(a.shapeArgs.width/2);var m=[["M",l,Math.round(a.yBottom)], ["L",l,Math.round(a.plotHigh)]];null!==a.close&&(a=Math.round(a.plotClose)+c,m.push(["M",l,a],["L",l+k,a]),g.extendStem(m,d/2,a));return m};m.prototype.drawSinglePoint=function(a){var d=a.series,g=d.chart,c=a.graphic,l=!c;"undefined"!==typeof a.plotY&&(c||(a.graphic=c=g.renderer.path().add(d.group)),g.styledMode||c.attr(d.pointAttribs(a,a.selected&&"select")),d=d.getPointPath(a,c),c[l?"attr":"animate"]({d:d}).addClass(a.getClassName(),!0))};m.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)}; m.prototype.init=function(){a.prototype.init.apply(this,arguments);this.options.stacking=void 0};m.prototype.pointAttribs=function(l,d){l=a.prototype.pointAttribs.call(this,l,d);delete l.fill;return l};m.prototype.toYData=function(a){return[a.high,a.low,a.close]};m.prototype.translate=function(){var l=this,d=l.yAxis,g=this.pointArrayMap&&this.pointArrayMap.slice()||[],c=g.map(function(a){return"plot".concat(a.charAt(0).toUpperCase()+a.slice(1))});c.push("yBottom");g.push("low");a.prototype.translate.apply(l); l.points.forEach(function(a){g.forEach(function(g,m){g=a[g];null!==g&&(l.dataModify&&(g=l.dataModify.modifyValue(g)),a[c[m]]=d.toPixels(g,!0))});a.tooltipPos[1]=a.plotHigh+d.pos-l.chart.plotTop})};m.defaultOptions=J(x.defaultOptions,{lineWidth:1,tooltip:{pointFormat:'\u25cf {series.name}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0});return m}(x);H(A.prototype, {animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"});A.prototype.pointClass=a;q.registerSeriesType("hlc",A);"";return A});O(a,"Series/OHLC/OHLCPoint.js",[a["Core/Series/SeriesRegistry.js"]],function(a){var q=this&&this.__extends||function(){var a=function(q,x){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,q){a.__proto__=q}||function(a,q){for(var x in q)q.hasOwnProperty(x)&&(a[x]= q[x])};return a(q,x)};return function(q,x){function A(){this.constructor=q}a(q,x);q.prototype=null===x?Object.create(x):(A.prototype=x.prototype,new A)}}();return function(a){function A(){var q=null!==a&&a.apply(this,arguments)||this;q.open=void 0;q.options=void 0;q.plotOpen=void 0;q.series=void 0;return q}q(A,a);A.prototype.getClassName=function(){return a.prototype.getClassName.call(this)+(this.open\u25cf {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'}});return d}(H);D(l.prototype,{pointArrayMap:["open","high","low","close"]});l.prototype.pointClass= a;q.registerSeriesType("ohlc",l);J(x,"init",function(a){a=a.options;a.useOhlcData&&"highcharts-navigator-series"!==a.id&&D(this,{pointValKey:l.prototype.pointValKey,pointArrayMap:l.prototype.pointArrayMap,toYData:l.prototype.toYData})});J(x,"afterSetOptions",function(a){a=a.options;var d=a.dataGrouping;d&&a.useOhlcData&&"highcharts-navigator-series"!==a.id&&(d.approximation="ohlc")});"";return l});O(a,"Series/Candlestick/CandlestickSeries.js",[a["Core/DefaultOptions.js"],a["Core/Series/SeriesRegistry.js"], a["Core/Utilities.js"]],function(a,q,A){var C=this&&this.__extends||function(){var a=function(l,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(l,d)};return function(l,d){function g(){this.constructor=l}a(l,d);l.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),x=a.defaultOptions;a=q.seriesTypes;var H=a.column,J=a.ohlc,D=A.merge;A=function(a){function l(){var d=null!== a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}C(l,a);l.prototype.pointAttribs=function(a,g){var c=H.prototype.pointAttribs.call(this,a,g),d=this.options,k=a.openg)break}}}l.forEach(function(b,c){b.plotX+=u;if("undefined"=== typeof b.plotY||A)0<=b.plotX&&b.plotX<=w.len?A?(b.plotY=w.translate(b.x,0,1,0,1),b.plotX=H(b.y)?z.translate(b.y,0,0,0,1):0):b.plotY=(w.opposite?0:a.yAxis.len)+w.offset:b.shapeArgs={};if((n=l[c-1])&&n.plotX===b.plotX){"undefined"===typeof n.stackIndex&&(n.stackIndex=0);var e=n.stackIndex+1}b.stackIndex=e});this.onSeries=m}var g=[];a.compose=function(a){if(-1===g.indexOf(a)){g.push(a);var c=a.prototype;c.getPlotBox=l;c.translate=d}return a};a.getPlotBox=l;a.translate=d})(D||(D={}));return D});O(a,"Series/Flags/FlagsSymbols.js", [a["Core/Renderer/RendererRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"]],function(a,q){function A(a){C[a+"pin"]=function(q,x,A,m,l){var d=l&&l.anchorX;l=l&&l.anchorY;"circle"===a&&m>A&&(q-=Math.round((m-A)/2),A=m);var g=C[a](q,x,A,m);if(d&&l){var c=d;"circle"===a?c=q+A/2:(q=g[0],A=g[1],"M"===q[0]&&"L"===A[0]&&(c=(q[1]+A[1])/2));g.push(["M",c,x>l?x:x+m],["L",d,l]);g=g.concat(C.circle(d-1,l-1,2,2))}return g}}var C=q.prototype.symbols;C.flag=function(a,q,A,D,m){var l=m&&m.anchorX||a;m=m&&m.anchorY|| q;var d=C.circle(l-1,m-1,2,2);d.push(["M",l,m],["L",a,q+D],["L",a,q],["L",a+A,q],["L",a+A,q+D],["L",a,q+D],["Z"]);return d};A("circle");A("square");a=a.getRendererType();a!==q&&(a.prototype.symbols.circlepin=C.circlepin,a.prototype.symbols.flag=C.flag,a.prototype.symbols.squarepin=C.squarepin);return C});O(a,"Series/Flags/FlagsSeries.js",[a["Series/Flags/FlagsPoint.js"],a["Core/Globals.js"],a["Series/OnSeriesComposition.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Series/SeriesRegistry.js"], a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,q,A,G,x,H,J){var C=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(c,d)};return function(c,d){function g(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}();q=q.noop;var m=G.distribute,l=x.series,d=x.seriesTypes.column, g=J.addEvent,c=J.defined;G=J.extend;var t=J.merge,k=J.objectEach,B=J.wrap;J=function(a){function q(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}C(q,a);q.prototype.animate=function(a){a&&this.setClip()};q.prototype.drawPoints=function(){var a=this.points,d=this.chart,g=d.renderer,l=d.inverted,n=this.options,f=n.y,q,h=this.yAxis,r={},e=[];for(q=a.length;q--;){var b=a[q];var y=(l?b.plotY:b.plotX)>this.xAxis.len;var I=b.plotX;var p=b.stackIndex; var v=b.options.shape||n.shape;var L=b.plotY;"undefined"!==typeof L&&(L=b.plotY+f-("undefined"!==typeof p&&p*n.stackDistance));b.anchorX=p?void 0:b.plotX;var x=p?void 0:b.plotY;var A="flag"!==v;p=b.graphic;"undefined"!==typeof L&&0<=I&&!y?(p&&b.hasNewShapeType()&&(p=p.destroy()),p||(p=b.graphic=g.label("",null,null,v,null,null,n.useHTML).addClass("highcharts-point").add(this.markerGroup),b.graphic.div&&(b.graphic.div.point=b),p.isNew=!0),p.attr({align:A?"center":"left",width:n.width,height:n.height, "text-align":n.textAlign}),d.styledMode||p.attr(this.pointAttribs(b)).css(t(n.style,b.style)).shadow(n.shadow),0this.calculatedWidth?c.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-c),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-c)}};a.prototype.destroy=function(){var a=this,c=a.chart.scroller;a.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(c){a[c]&&a[c].destroy&&(a[c]=a[c].destroy())});c&&a===c.scrollbar&&(c.scrollbar=null,l(c.scrollbarButtons))};a.prototype.drawScrollbarButton=function(c){var d=this.renderer, g=this.scrollbarButtons,k=this.options,l=this.size,m=d.g().add(this.group);g.push(m);m=d.rect().addClass("highcharts-scrollbar-button").add(m);this.chart.styledMode||m.attr({stroke:k.buttonBorderColor,"stroke-width":k.buttonBorderWidth,fill:k.buttonBackgroundColor});m.attr(m.crisp({x:-.5,y:-.5,width:l+1,height:l+1,r:k.buttonBorderRadius},m.strokeWidth()));m=d.path(a.swapXY([["M",l/2+(c?-1:1),l/2-3],["L",l/2+(c?-1:1),l/2+3],["L",l/2+(c?2:-2),l/2]],k.vertical)).addClass("highcharts-scrollbar-arrow").add(g[c]); this.chart.styledMode||m.attr({fill:k.buttonArrowColor})};a.prototype.init=function(a,d,k){this.scrollbarButtons=[];this.renderer=a;this.userOptions=d;this.options=g(G,C.scrollbar,d);this.chart=k;this.size=c(this.options.size,this.options.height);d.enabled&&(this.render(),this.addEvents())};a.prototype.mouseDownHandler=function(a){a=this.chart.pointer.normalize(a);a=this.cursorToScrollbarPosition(a);this.chartX=a.chartX;this.chartY=a.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter= !0};a.prototype.mouseMoveHandler=function(a){var c=this.chart.pointer.normalize(a),g=this.options.vertical?"chartY":"chartX",k=this.initPositions||[];!this.grabbedCenter||a.touches&&0===a.touches[0][g]||(c=this.cursorToScrollbarPosition(c)[g],g=this[g],g=c-g,this.hasDragged=!0,this.updatePosition(k[0]+g,k[1]+g),this.hasDragged&&d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};a.prototype.mouseUpHandler=function(a){this.hasDragged&&d(this,"changed",{from:this.from, to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};a.prototype.position=function(a,c,d,g){var k=this.options.vertical,l=this.rendered?"animate":"attr",m=g,n=0;this.group.show();this.x=a;this.y=c+this.trackBorderWidth;this.width=d;this.height=g;this.xOffset=m;this.yOffset=n;k?(this.width=this.yOffset=d=n=this.size,this.xOffset=m=0,this.barWidth=g-2*d,this.x=a+=this.options.margin):(this.height=this.xOffset=g=m=this.size,this.barWidth= d-2*g,this.y+=this.options.margin);this.group[l]({translateX:a,translateY:this.y});this.track[l]({width:d,height:g});this.scrollbarButtons[1][l]({translateX:k?0:d-m,translateY:k?g-n:0})};a.prototype.removeEvents=function(){this._events.forEach(function(a){t.apply(null,a)});this._events.length=0};a.prototype.render=function(){var c=this.renderer,d=this.options,g=this.size,k=this.chart.styledMode,l=c.g("scrollbar").attr({zIndex:d.zIndex}).hide().add();this.group=l;this.track=c.rect().addClass("highcharts-scrollbar-track").attr({x:0, r:d.trackBorderRadius||0,height:g,width:g}).add(l);k||this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor,"stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=c.g().add(l);this.scrollbar=c.rect().addClass("highcharts-scrollbar-thumb").attr({height:g,width:g,r:d.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=c.path(a.swapXY([["M",-3,g/4],["L",-3,2*g/3],["M",0,g/4], ["L",0,2*g/3],["M",3,g/4],["L",3,2*g/3]],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);k||(this.scrollbar.attr({fill:d.barBackgroundColor,stroke:d.barBorderColor,"stroke-width":d.barBorderWidth}),this.scrollbarRifles.attr({stroke:d.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};a.prototype.setRange= function(a,c){var d=this.options,g=d.vertical,k=d.minWidth,l=this.barWidth,q=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(m(l)){var n=l*Math.min(c,1);a=Math.max(a,0);var f=Math.ceil(l*a);this.calculatedWidth=n=D(n-f);n=n?this.scrollbarRifles.hide():this.scrollbarRifles.show();!1===d.showFull&&(0>=a&&1<=c?this.group.hide():this.group.show());this.rendered=!0}};a.prototype.shouldUpdateExtremes=function(a){return c(this.options.liveRedraw,q.svg&&!q.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===a||"touchend"===a||!m(a)};a.prototype.trackClick= function(a){var c=this.chart.pointer.normalize(a),g=this.to-this.from,k=this.y+this.scrollbarTop,l=this.x+this.scrollbarLeft;this.options.vertical&&c.chartY>k||!this.options.vertical&&c.chartX>l?this.updatePosition(this.from+g,this.to+g):this.updatePosition(this.from-g,this.to-g);d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,g(!0,this.options,a),this.chart)};a.prototype.updatePosition=function(a, c){1a&&(c=D(c-a),a=0);this.from=a;this.to=c};a.defaultOptions=G;return a}();C.scrollbar=g(!0,a.defaultOptions,C.scrollbar);return a});O(a,"Core/Axis/NavigatorAxis.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q){var A=a.isTouchDevice,C=q.addEvent,x=q.correctFloat,H=q.defined,J=q.isNumber,D=q.pick,m=function(){function a(a){this.axis=a}a.prototype.destroy=function(){this.axis=void 0};a.prototype.toFixedRange=function(a,g,c,l){var d=this.axis,m=d.chart;m=m&& m.fixedRange;var q=(d.pointRange||0)/2;a=D(c,d.translate(a,!0,!d.horiz));g=D(l,d.translate(g,!0,!d.horiz));d=m&&(g-a)/m;H(c)||(a=x(a+q));H(l)||(g=x(g-q));.7d&&(l?a=g-m:g=a+m);J(a)&&J(g)||(a=g=void 0);return{min:a,max:g}};return a}();return function(){function a(){}a.compose=function(a){a.keepProps.push("navigatorAxis");C(a,"init",function(){this.navigatorAxis||(this.navigatorAxis=new m(this))});C(a,"zoom",function(a){var c=this.chart.options,d=c.navigator,g=this.navigatorAxis,l=c.chart.pinchType, m=c.rangeSelector;c=c.chart.zoomType;this.isXAxis&&(d&&d.enabled||m&&m.enabled)&&("y"===c?a.zoomed=!1:(!A&&"xy"===c||A&&"xy"===l)&&this.options.range&&(d=g.previousZoom,H(a.newMin)?g.previousZoom=[this.min,this.max]:d&&(a.newMin=d[0],a.newMax=d[1],g.previousZoom=void 0)));"undefined"!==typeof a.zoomed&&a.preventDefault()})};a.AdditionsClass=m;return a}()});O(a,"Core/Navigator.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Axis/NavigatorAxis.js"], a["Core/DefaultOptions.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Scrollbar.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,A,G,x,H,J,D,m,l,d){A=A.parse;var g=G.hasTouch,c=G.isTouchDevice,t=H.defaultOptions,k=d.addEvent,C=d.clamp,E=d.correctFloat,F=d.defined,M=d.destroyObjectProperties,K=d.erase,w=d.extend,z=d.find,n=d.isArray,f=d.isNumber,u=d.merge,h=d.pick,r=d.removeEvent,e=d.splat,b=function(a){for(var b=[],c=1;cu&&(this.grabbedLeft?c=k.toPixels(b-u-l,!0):this.grabbedRight&&(e=k.toPixels(a+u+l,!0)));this.zoomedMax=C(Math.max(c,e),0,v);this.zoomedMin=C(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,e),0,v);this.range=this.zoomedMax-this.zoomedMin;v=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);n&&(this.navigatorGroup.attr({visibility:"inherit"}),q=q&&!this.hasDragged?"animate":"attr",this.drawMasks(c,v,r,q),this.drawOutline(c, v,r,q),this.navigatorOptions.handles.enabled&&(this.drawHandle(c,0,r,q),this.drawHandle(v,1,r,q)));this.scrollbar&&(r?(r=this.top-g,m=this.left-g+(n||!m.opposite?0:(m.titleOffset||0)+m.axisTitleMargin),g=p+2*g):(r=this.top+(n?this.height:-g),m=this.left-g),this.scrollbar.position(m,r,d,g),this.scrollbar.setRange(this.zoomedMin/(p||1),this.zoomedMax/(p||1)));this.rendered=!0}};d.prototype.addMouseEvents=function(){var a=this,b=a.chart,c=b.container,e=[],d,f;a.mouseMoveHandler=d=function(b){a.onMouseMove(b)}; a.mouseUpHandler=f=function(b){a.onMouseUp(b)};e=a.getPartsEvents("mousedown");e.push(k(b.renderTo,"mousemove",d),k(c.ownerDocument,"mouseup",f));g&&(e.push(k(b.renderTo,"touchmove",d),k(c.ownerDocument,"touchend",f)),e.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(k(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};d.prototype.getPartsEvents=function(a){var b=this,c=[];["shades","handles"].forEach(function(e){b[e].forEach(function(d, f){c.push(k(d.element,a,function(a){b[e+"Mousedown"](a,f)}))})});return c};d.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,e=this.xAxis,d=this.zoomedMin,f=this.left,g=this.size,h=this.range,k=a.chartX;c.inverted&&(k=a.chartY,f=this.top);if(1===b)this.grabbedCenter=k,this.fixedWidth=h,this.dragOffset=k-d;else{a=k-f-h/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+h>=g)if(a=g-h,this.reversedExtremes){a-=h;var p=this.getUnionExtremes().dataMin}else var l=this.getUnionExtremes().dataMax; a!==d&&(this.fixedWidth=h,b=e.navigatorAxis.toFixedRange(a,a+h,p,l),F(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};d.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],e=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=e?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=e?c.max:c.min);a.fixedRange= null};d.prototype.onMouseMove=function(a){var b=this,e=b.chart,d=b.left,f=b.navigatorSize,g=b.range,k=b.dragOffset,p=e.inverted;a.touches&&0===a.touches[0].pageX||(a=e.pointer.normalize(a),e=a.chartX,p&&(d=b.top,e=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,e-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,e-d)):b.grabbedCenter&&(b.hasDragged=!0,ef+k-g&&(e=f+k-g),b.render(0,0,e-k,e-k+g)),b.hasDragged&&b.scrollbar&&h(b.scrollbar.options.liveRedraw, G.svg&&!c&&!this.chart.isBoosting)&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};d.prototype.onMouseUp=function(a){var b=this.chart,c=this.xAxis,e=this.scrollbar,d=a.DOMEvent||a,g=b.inverted,h=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!e||!e.hasDragged)||"scrollbar"===a.trigger){e=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var k=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var p=this.fixedExtreme;this.zoomedMax=== this.size&&(p=this.reversedExtremes?e.dataMin:e.dataMax);0===this.zoomedMin&&(k=this.reversedExtremes?e.dataMax:e.dataMin);c=c.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,k,p);F(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:d})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos= this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&f(this.zoomedMin)&&f(this.zoomedMax)&&(b=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(b,a,g,h),this.outline&&this.drawOutline(b,a,g,h),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(b,0,g,h),this.drawHandle(a,1,g,h)))};d.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind= void 0);this.removeBaseSeriesEvents()};d.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){r(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&r(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};d.prototype.init=function(c){var e=c.options,d=e.navigator,f=d.enabled,g=e.scrollbar,l=g.enabled;e=f?d.height:0;var p=l?g.height:0;this.handles=[];this.shades=[];this.chart= c;this.setBaseSeries();this.height=e;this.scrollbarHeight=p;this.scrollbarEnabled=l;this.navigatorEnabled=f;this.navigatorOptions=d;this.scrollbarOptions=g;this.outlineHeight=e+p;this.opposite=h(d.opposite,!(f||!c.inverted));var m=this;f=m.baseSeries;g=c.xAxis.length;l=c.yAxis.length;var n=f&&f[0]&&f[0].xAxis||c.xAxis[0]||{options:{}};c.isDirtyBox=!0;m.navigatorEnabled?(m.xAxis=new a(c,u({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0, type:"datetime",index:g,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},c.inverted?{offsets:[p,0,-p,0],width:e}:{offsets:[0,-p,0,p],height:e})),m.yAxis=new a(c,u(d.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:l,isInternal:!0,reversed:h(d.yAxis&&d.yAxis.reversed,c.yAxis[0]&&c.yAxis[0].reversed,!1),zoomEnabled:!1},c.inverted?{width:e}:{height:e})),f||d.series.data?m.updateNavigatorSeries(!1):0===c.series.length&&(m.unbindRedraw= k(c,"beforeRedraw",function(){0f.indexOf(b)?(b&&(r(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});f&&f.length&&f.forEach(function(a){var q=a.navigatorSeries,r=w({color:a.color,visible:a.visible},n(l)?t.navigator.series:l);q&&!1===c.navigatorOptions.adaptToUpdatedData||(m.name="Navigator "+f.length,g=a.options||{},p=g.navigatorOptions||{},r.dataLabels=e(r.dataLabels), k=u(g,m,r,p),k.pointRange=h(r.pointRange,p.pointRange,t.plotOptions[k.type||"line"].pointRange),r=p.data||r.data,c.hasNavigatorData=c.hasNavigatorData||!!r,k.data=r||g.data&&g.data.slice(0),q&&q.options?q.update(k,b):(a.navigatorSeries=d.initSeries(k),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});if(l.data&&(!f||!f.length)||n(l))c.hasNavigatorData=!1,l=e(l),l.forEach(function(a,b){m.name="Navigator "+(v.length+1);k=u(t.navigator.series,{color:d.series[b]&&!d.series[b].options.isInternal&& d.series[b].color||d.options.colors[b]||d.options.colors[0]},m,a);k.data=a.data;k.data&&(c.hasNavigatorData=!0,v.push(d.initSeries(k)))});a&&this.addBaseSeriesEvents()};d.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(k(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(b){b.eventsToUnbind.push(k(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));b.eventsToUnbind.push(k(b,"hide", function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(k(b,"updatedData",this.updatedDataHandler));b.eventsToUnbind.push(k(b,"remove",function(){this.navigatorSeries&&(K(a.series,this.navigatorSeries),F(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};d.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a, b.xData&&b.xData.length?b.xData[0]:a)},a)};d.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};d.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax;b=b.max-b.min;var d=a.stickToMin,g=a.stickToMax,k=h(this.options.overscroll,0),l=a.series&&a.series[0],m=!!this.setExtremes;if(!this.eventArgs|| "rangeSelectorButton"!==this.eventArgs.trigger){if(d){var n=c;var q=n+b}g&&(q=e+k,d||(n=Math.max(c,q-b,a.getBaseSeriesMin(l&&l.xData?l.xData[0]:-Number.MAX_VALUE))));m&&(d||g)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=q)}a.stickToMin=a.stickToMax=null};d.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=a.shouldStickToMin(this,a); b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};d.prototype.shouldStickToMin=function(a,b){b=b.getBaseSeriesMin(a.xData[0]);var c=a.xAxis;a=c.max;var e=c.min;c=c.options.range;return f(a)&&f(e)?c&&0l-k,A=h=864E5*{month:28,year:365}[p]*v-x&&f-36E5<=864E5*{month:31,year:366}[p]*v+x?h=!0:"ytd"===p?(h=n-m+x===f,I=!b):"all"===p&&(h=d.max-d.min>=l-k,C=!b&&r&&h);p= !t&&(z||A||C||g);v=b&&h||h&&!r&&!I||b&&a.frozenStates;p?w=3:v&&(r=!0,w=2);y.state!==w&&(y.setState(w),e&&(e.options[c+1].disabled=p,2===w&&(e.selectedIndex=c+1)),0===w&&q===c&&a.setSelected())})};e.prototype.computeButtonRange=function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=z(a.offsetMin,0);a._offsetMax=z(a.offsetMax,0);a._range+= a._offsetMax-a._offsetMin};e.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,c.useUTC,c):0};e.prototype.setInputValue=function(a,c){var b=this.options,e=this.chart.time,d="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(d){var f=d.getAttribute("data-hc-time");f=g(f)?Number(f):void 0;g(c)&&(g(f)&& d.setAttribute("data-hc-time-previous",f),d.setAttribute("data-hc-time",c),f=c);d.value=e.dateFormat(this.inputTypeFormats[d.type]||b.inputEditDateFormat,f);a&&a.attr({text:e.dateFormat(b.inputDateFormat,f)})}};e.prototype.setInputExtremes=function(a,c,e){if(a="min"===a?this.minInput:this.maxInput){var b=this.inputTypeFormats[a.type],d=this.chart.time;b&&(c=d.dateFormat(b,c),a.min!==c&&(a.min=c),e=d.dateFormat(b,e),a.max!==e&&(a.max=e))}};e.prototype.showInput=function(a){var b="min"===a?this.minDateBox: this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var c="text"===a.type,e=this.inputGroup,f=e.translateX;e=e.translateY;var g=this.options.inputBoxWidth;d(a,{width:c?b.width+(g?-2:20)+"px":"auto",height:c?b.height-2+"px":"auto",border:"2px solid silver"});c&&g?d(a,{left:f+b.x+"px",top:e+"px"}):d(a,{left:Math.min(Math.round(b.x+f-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:e-(a.offsetHeight-b.height)/2+"px"})}};e.prototype.hideInput=function(a){(a= "min"===a?this.minInput:this.maxInput)&&d(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};e.prototype.defaultInputDateParser=function(a,c,e){var b=a.split("/").join("-").split(" ").join("T");-1===b.indexOf("T")&&(b+="T00:00");if(c)b+="Z";else{var d;if(d=A.isSafari)d=b,d=!(6=d?"+".concat(w(-d),":00"):"-".concat(w(d),":00"))}b=Date.parse(b);F(b)||(a=a.split("-"),b=Date.UTC(n(a[0]), n(a[1])-1,n(a[2])));e&&c&&F(b)&&(b+=e.getTimezoneOffset(b));return b};e.prototype.drawInput=function(a){function b(){var b=g.getInputValue(a),e=c.xAxis[0],d=c.scroller&&c.scroller.xAxis?c.scroller.xAxis:e,f=d.dataMin;d=d.dataMax;var h=g.maxInput,k=g.minInput;b!==Number(t.getAttribute("data-hc-time-previous"))&&F(b)&&(t.setAttribute("data-hc-time-previous",b),q&&h&&F(f)?b>Number(h.getAttribute("data-hc-time"))?b=void 0:bd&&(b= d)),"undefined"!==typeof b&&e.setExtremes(q?b:e.min,q?e.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=this.chart,e=this.div,f=this.inputGroup,g=this,h=c.renderer.style||{},m=c.renderer,n=c.options.rangeSelector,q="min"===a,r=D.lang[q?"rangeSelectorFrom":"rangeSelectorTo"]||"";r=m.label(r,0).addClass("highcharts-range-label").attr({padding:r?2:0,height:r?n.inputBoxHeight:0}).add(f);m=m.label("",0).addClass("highcharts-range-input").attr({padding:2,width:n.inputBoxWidth,height:n.inputBoxHeight, "text-align":"center"}).on("click",function(){g.showInput(a);g[a+"Input"].focus()});c.styledMode||m.attr({stroke:n.inputBoxBorderColor,"stroke-width":1});m.add(f);var t=l("input",{name:a,className:"highcharts-range-selector"},void 0,e);t.setAttribute("type",C(n.inputDateFormat||"%b %e, %Y"));c.styledMode||(r.css(M(h,n.labelStyle)),m.css(M({color:"#333333"},h,n.inputStyle)),d(t,k({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center", fontSize:h.fontSize,fontFamily:h.fontFamily,top:"-9999em"},n.inputStyle)));t.onfocus=function(){g.showInput(a)};t.onblur=function(){t===A.doc.activeElement&&b();g.hideInput(a);g.setInputValue(a);t.blur()};var u=!1;t.onchange=function(){u||(b(),g.hideInput(a),t.blur())};t.onkeypress=function(a){13===a.keyCode&&b()};t.onkeydown=function(a){u=!0;38!==a.keyCode&&40!==a.keyCode||b()};t.onkeyup=function(){u=!1};return{dateBox:m,input:t,label:r}};e.prototype.getPosition=function(){var a=this.chart,c=a.options.rangeSelector; a="top"===c.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+c.buttonPosition.y,inputTop:a+c.inputPosition.y-10}};e.prototype.getYTDExtremes=function(a,c,e){var b=this.chart.time,d=new b.Date(a),f=b.get("FullYear",d);e=e?b.Date.UTC(f,0,1):+new b.Date(f,0,1);c=Math.max(c,e);d=d.getTime();return{max:Math.min(a||d,d),min:c}};e.prototype.render=function(a,c){var b=this.chart,e=b.renderer,d=b.container,f=b.options,h=f.rangeSelector,k=z(f.chart.style&&f.chart.style.zIndex,0)+1;f=h.inputEnabled; if(!1!==h.enabled){this.rendered||(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=l("div",void 0,{position:"relative",height:0,zIndex:k}),this.buttonOptions.length&&this.renderButtons(),d.parentNode&&d.parentNode.insertBefore(this.div,d),f&&(this.inputGroup=e.g("input-group").add(this.group),e=this.drawInput("min"),this.minDateBox=e.dateBox,this.minLabel=e.label,this.minInput=e.input,e=this.drawInput("max"),this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input)); if(f&&(this.setInputValue("min",a),this.setInputValue("max",c),a=b.scroller&&b.scroller.getUnionExtremes()||b.xAxis[0]||{},g(a.dataMin)&&g(a.dataMax)&&(b=b.xAxis[0].minRange||0,this.setInputExtremes("min",a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-b),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+b,a.dataMax)),this.inputGroup)){var m=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:m}), m+=b+h.inputSpacing)}})}this.alignElements();this.rendered=!0}};e.prototype.renderButtons=function(){var a=this,c=this.buttons,e=this.options,d=D.lang,f=this.chart.renderer,g=M(e.buttonTheme),h=g&&g.states,k=g.width||28;delete g.width;delete g.states;this.buttonGroup=f.g("range-selector-buttons").add(this.group);var n=this.dropdown=l("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);m(n,"touchstart",function(){n.style.fontSize= "16px"});[[A.isMS?"mouseover":"mouseenter"],[A.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(b){var e=b[0],d=b[1];m(n,e,function(){var b=c[a.currentButtonIndex()];b&&E(b.element,d||e)})});this.zoomText=f.label(d&&d.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(e.labelStyle),g["stroke-width"]=z(g["stroke-width"],0));l("option",{textContent:this.zoomText.textStr, disabled:!0},void 0,n);this.buttonOptions.forEach(function(b,e){l("option",{textContent:b.title||b.text},void 0,n);c[e]=f.button(b.text,0,0,function(c){var d=b.events&&b.events.click,f;d&&(f=d.call(b,c));!1!==f&&a.clickButton(e);a.isActive=!0},g,h&&h.hover,h&&h.select,h&&h.disabled).attr({"text-align":"center",width:k}).add(a.buttonGroup);b.title&&c[e].attr("title",b.title)})};e.prototype.alignElements=function(){var a=this,c=this.buttonGroup,e=this.buttons,d=this.chart,f=this.group,g=this.inputGroup, h=this.options,k=this.zoomText,l=d.options,m=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=h.buttonPosition;var n=h.inputPosition,q=h.verticalAlign,r=function(b,c){return m&&a.titleCollision(d)&&"top"===q&&"right"===c.align&&c.y-b.getBBox().height-12<(m.y||0)+(m.height||0)+d.spacing[0]?-40:0},t=d.plotLeft;if(f&&l&&n){var u=l.x-d.spacing[3];if(c){this.positionButtons();if(!this.initialButtonGroupWidth){var w=0;k&&(w+=k.getBBox().width+5);e.forEach(function(a,b){w+= a.width;b!==e.length-1&&(w+=h.buttonSpacing)});this.initialButtonGroupWidth=w}t-=d.spacing[3];this.updateButtonStates();k=r(c,l);this.alignButtonGroup(k);f.placed=c.placed=d.hasLoaded}c=0;g&&(c=r(g,n),"left"===n.align?u=t:"right"===n.align&&(u=-Math.max(d.axisOffset[1],-c)),g.align({y:n.y,width:g.getBBox().width,align:n.align,x:n.x+u-2},!0,d.spacingBox),g.placed=d.hasLoaded);this.handleCollision(c);f.align({verticalAlign:q},!0,d.spacingBox);g=f.alignAttr.translateY;c=f.getBBox().height+20;r=0;"bottom"=== q&&(r=(r=d.legend&&d.legend.options)&&"bottom"===r.verticalAlign&&r.enabled&&!r.floating?d.legend.legendHeight+z(r.margin,10):0,c=c+r-20,r=g-c-(h.floating?0:h.y)-(d.titleOffset?d.titleOffset[2]:0)-10);if("top"===q)h.floating&&(r=0),d.titleOffset&&d.titleOffset[0]&&(r=d.titleOffset[0]),r+=d.margin[0]-d.spacing[0]||0;else if("middle"===q)if(n.y===l.y)r=g;else if(n.y||l.y)r=0>n.y||0>l.y?r-Math.min(n.y,l.y):g-c;f.translate(h.x,h.y+Math.floor(r));l=this.minInput;n=this.maxInput;g=this.dropdown;h.inputEnabled&& l&&n&&(l.style.marginTop=f.translateY+"px",n.style.marginTop=f.translateY+"px");g&&(g.style.marginTop=f.translateY+"px")}};e.prototype.alignButtonGroup=function(a,c){var b=this.chart,e=this.buttonGroup,d=this.options.buttonPosition,f=b.plotLeft-b.spacing[3],g=d.x-b.spacing[3];"right"===d.align?g+=a-f:"center"===d.align&&(g-=f/2);e&&e.align({y:d.y,width:z(c,this.initialButtonGroupWidth),align:d.align,x:g},!0,b.spacingBox)};e.prototype.positionButtons=function(){var a=this.buttons,c=this.chart,e=this.options, d=this.zoomText,f=c.hasLoaded?"animate":"attr",g=e.buttonPosition,h=c.plotLeft,k=h;d&&"hidden"!==d.visibility&&(d[f]({x:z(h+g.x,h)}),k+=g.x+d.getBBox().width+5);this.buttonOptions.forEach(function(b,c){if("hidden"!==a[c].visibility)a[c][f]({x:k}),k+=a[c].width+e.buttonSpacing;else a[c][f]({x:h})})};e.prototype.handleCollision=function(a){var b=this,c=this.chart,e=this.buttonGroup,d=this.inputGroup,f=this.options,g=f.buttonPosition,h=f.dropdown,k=f.inputPosition;f=function(){var a=0;b.buttons.forEach(function(b){b= b.getBBox();b.width>a&&(a=b.width)});return a};var l=function(b){if(d&&e){var c=d.alignAttr.translateX+d.alignOptions.x-a+d.getBBox().x+2,f=d.alignOptions.width,h=e.alignAttr.translateX+e.getBBox().x;return h+b>c&&c+f>h&&g.y=-a?0:-a),translateY:d.alignAttr.translateY+e.getBBox().height+10})};if(e){if("always"===h){this.collapseButtons(a);l(f())&&m();return}"never"===h&&this.expandButtons()}d&& e?k.align===g.align||l(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(a),l(f())&&m()):m():"responsive"===h&&this.expandButtons():e&&"responsive"===h&&(this.initialButtonGroupWidth>c.plotWidth?this.collapseButtons(a):this.expandButtons())};e.prototype.collapseButtons=function(a){var b=this.buttons,c=this.buttonOptions,e=this.chart,d=this.dropdown,f=this.options,g=this.zoomText,h=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(a){return{text:a? ""+a+" \u25be":"\u25be",width:"auto",paddingLeft:z(f.buttonTheme.paddingLeft,h.padding,8),paddingRight:z(f.buttonTheme.paddingRight,h.padding,8)}};g&&g.hide();var l=!1;c.forEach(function(a,c){c=b[c];2!==c.state?c.hide():(c.show(),c.attr(k(a.text)),l=!0)});l||(d&&(d.selectedIndex=0),b[0].show(),b[0].attr(k(this.zoomText&&this.zoomText.textStr)));c=f.buttonPosition.align;this.positionButtons();"right"!==c&&"center"!==c||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()}; e.prototype.expandButtons=function(){var a=this.buttons,c=this.buttonOptions,e=this.options,d=this.zoomText;this.hideDropdown();d&&d.show();c.forEach(function(b,c){c=a[c];c.show();c.attr({text:b.text,width:e.buttonTheme.width||28,paddingLeft:z(e.buttonTheme.paddingLeft,"unset"),paddingRight:z(e.buttonTheme.paddingRight,"unset")});2>c.state&&c.setState(0)});this.positionButtons()};e.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0f&&0>d||0b+d.width)&&(E?n=q=t(n,b,b+d.width):c=!0);c||z.push(["M",n,p],["L",q,x])}):H.forEach(function(a){var b;n=a.pos;q=n+a.len;p=x=Math.round(m+d.height-J);"pass"!==E&&(pm+d.height)&&(E?p=x=t(p,m,m+d.height):b=!0);b||z.push(["M",n,p],["L",q,x])}));a.path=0E&&x=d&&(C=-(q.translateX+e.width- d));q.attr({x:k+C,y:n,anchorX:b?k:this.opposite?0:h.chartWidth,anchorY:b?this.opposite?h.chartHeight:0:n+e.height/2})}});H.prototype.forceCropping=function(){var a=this.chart,c=this.options.dataGrouping;return!1!==this.allowDG&&c&&w(c.enabled,a.options.isStock)};a(A,"update",function(a){a=a.options;"scrollbar"in a&&this.navigator&&(K(!0,this.options.scrollbar,a.scrollbar),this.navigator.update({},!1),delete a.scrollbar)});return D});O(a,"masters/modules/stock.src.js",[a["Core/Globals.js"],a["Core/Axis/OrdinalAxis.js"], a["Series/DataModifyComposition.js"],a["Core/Scrollbar.js"],a["Core/Chart/StockChart.js"]],function(a,q,A,G,x){a.Scrollbar=G;a.StockChart=a.stockChart=x.stockChart;G.compose(a.Axis);q.compose(a.Axis,a.Series,a.Chart);A.compose(a.Series,a.Axis,a.Point)});O(a,"masters/highstock.src.js",[a["masters/highcharts.src.js"]],function(a){a.product="Highstock";return a});a["masters/highstock.src.js"]._modules=a;return a["masters/highstock.src.js"]}); //# sourceMappingURL=highstock.js.map