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