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

',pointFormat:'\u25cf {series.name}: {point.yCategory}
'},borderRadius:3,pointRange:0},{type:"xrange",parallelArrays:["x","x2","y"],requireSorting:!1,animate:q.line.prototype.animate,cropShoulder:1,getExtremesFromAll:!0,autoIncrement:l.noop,buildKDTree:l.noop, init:function(){q.column.prototype.init.apply(this,arguments);this.options.stacking=void 0},getColumnMetrics:function(){function e(){g.series.forEach(function(b){var a=b.xAxis;b.xAxis=b.yAxis;b.yAxis=a})}var g=this.chart;e();var b=z.prototype.getColumnMetrics.call(this);e();return b},cropData:function(e,g,b,f){g=u.prototype.cropData.call(this,this.x2Data,g,b,f);g.xData=e.slice(g.start,g.end);return g},findPointIndex:function(e){var g=this.cropped,b=this.cropStart,f=this.points,a=e.id;if(a)var c=(c= E(f,function(b){return b.id===a}))?c.index:void 0;"undefined"===typeof c&&(c=(c=E(f,function(a){return a.x===e.x&&a.x2===e.x2&&!a.touched}))?c.index:void 0);g&&C(c)&&C(b)&&c>=b&&(c-=b);return c},translatePoint:function(e){var g=this.xAxis,b=this.yAxis,f=this.columnMetrics,a=this.options,c=a.minPointLength||0,k=e.plotX,l=A(e.x2,e.x+(e.len||0)),m=g.translate(l,0,0,0,1);l=Math.abs(m-k);var q=this.chart.inverted,u=A(a.borderWidth,1)%2/2,n=f.offset,t=Math.round(f.width);c&&(c-=l,0>c&&(c=0),k-=c/2,m+=c/ 2);k=Math.max(k,-10);m=H(m,-10,g.len+10);K(e.options.pointWidth)&&(n-=(Math.ceil(e.options.pointWidth)-t)/2,t=Math.ceil(e.options.pointWidth));a.pointPlacement&&C(e.plotY)&&b.categories&&(e.plotY=b.translate(e.y,0,1,0,1,a.pointPlacement));e.shapeArgs={x:Math.floor(Math.min(k,m))+u,y:Math.floor(e.plotY+n)+u,width:Math.round(Math.abs(m-k)),height:t,r:this.options.borderRadius};a=e.shapeArgs.x;c=a+e.shapeArgs.width;0>a||c>g.len?(a=H(a,0,g.len),c=H(c,0,g.len),m=c-a,e.dlBox=y(e.shapeArgs,{x:a,width:c- a,centerX:m?m/2:null})):e.dlBox=null;a=e.tooltipPos;c=q?1:0;m=q?0:1;f=this.columnMetrics?this.columnMetrics.offset:-f.width/2;a[c]=H(a[c]+l/2*(g.reversed?-1:1)*(q?-1:1),0,g.len-1);a[m]=H(a[m]+(q?-1:1)*f,0,b.len-1);if(f=e.partialFill)J(f)&&(f=f.amount),C(f)||(f=0),b=e.shapeArgs,e.partShapeArgs={x:b.x,y:b.y,width:b.width,height:b.height,r:this.options.borderRadius},k=Math.max(Math.round(l*f+e.plotX-k),0),e.clipRectArgs={x:g.reversed?b.x+l-k:b.x,y:b.y,width:k,height:b.height}},translate:function(){z.prototype.translate.apply(this, arguments);this.points.forEach(function(e){this.translatePoint(e)},this)},drawPoint:function(e,g){var b=this.options,f=this.chart.renderer,a=e.graphic,c=e.shapeType,k=e.shapeArgs,l=e.partShapeArgs,m=e.clipRectArgs,q=e.partialFill,u=b.stacking&&!b.borderRadius,n=e.state,t=b.states[n||"normal"]||{},x="undefined"===typeof n?"attr":g;n=this.pointAttribs(e,n);t=A(this.chart.options.chart.animation,t.animation);if(e.isNull||!1===e.visible)a&&(e.graphic=a.destroy());else{if(a)a.rect[g](k);else e.graphic= a=f.g("point").addClass(e.getClassName()).add(e.group||this.group),a.rect=f[c](y(k)).addClass(e.getClassName()).addClass("highcharts-partfill-original").add(a);l&&(a.partRect?(a.partRect[g](y(l)),a.partialClipRect[g](y(m))):(a.partialClipRect=f.clipRect(m.x,m.y,m.width,m.height),a.partRect=f[c](l).addClass("highcharts-partfill-overlay").add(a).clip(a.partialClipRect)));this.chart.styledMode||(a.rect[g](n,t).shadow(b.shadow,null,u),l&&(J(q)||(q={}),J(b.partialFill)&&(q=y(q,b.partialFill)),e=q.fill|| B(n.fill).brighten(-.3).get()||B(e.color||this.color).brighten(-.3).get(),n.fill=e,a.partRect[x](n,t).shadow(b.shadow,null,u)))}},drawPoints:function(){var e=this,g=e.getAnimationVerb();e.points.forEach(function(b){e.drawPoint(b,g)})},getAnimationVerb:function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"}},{resolveColor:function(){var e=this.series;if(e.options.colorByPoint&&!this.options.color){var g=e.options.colors||e.chart.options.colors;var b=this.y%(g?g.length: e.chart.options.chart.colorCount);g=g&&g[b];e.chart.styledMode||(this.color=g);this.options.colorIndex||(this.colorIndex=b)}else this.color||(this.color=e.color)},init:function(){x.prototype.init.apply(this,arguments);this.y||(this.y=0);return this},setState:function(){x.prototype.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())},getLabelConfig:function(){var e=x.prototype.getLabelConfig.call(this),g=this.series.yAxis.categories;e.x2=this.x2;e.yCategory=this.yCategory= g&&g[this.y];return e},tooltipDateKeys:["x","x2"],isValid:function(){return"number"===typeof this.x&&"number"===typeof this.x2}});e(m,"afterGetSeriesExtremes",function(){var e=this.series,g;if(this.isXAxis){var b=A(this.dataMax,-Number.MAX_VALUE);e.forEach(function(e){e.x2Data&&e.x2Data.forEach(function(a){a>b&&(b=a,g=!0)})});g&&(this.dataMax=b)}});""});P(x,"parts-gantt/GanttSeries.js",[x["parts/Globals.js"],x["parts/Utilities.js"]],function(l,e){var x=e.isNumber,t=e.merge,N=e.pick,H=e.seriesType, L=e.splat,K=l.dateFormat,E=l.seriesTypes.xrange;H("gantt","xrange",{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'{series.name}
',pointFormat:null,pointFormatter:function(){var e=this.series,l=e.chart.tooltip,t=e.xAxis,x=e.tooltipOptions.dateTimeLabelFormats,z=t.options.startOfWeek,q=e.tooltipOptions,m=q.xDateFormat;e=this.options.milestone;var u=""+(this.name||this.yCategory)+"";if(q.pointFormat)return this.tooltipFormatter(q.pointFormat); m||(m=L(l.getDateFormat(t.closestPointRange,this.start,z,x))[0]);l=K(m,this.start);t=K(m,this.end);u+="
";return e?u+(l+"
"):u+("Start: "+l+"
End: ")+(t+"
")}},connectors:{type:"simpleConnect",animation:{reversed:!0},startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}},{pointArrayMap:["start","end","y"],keyboardMoveVertical:!1,translatePoint:function(e){E.prototype.translatePoint.call(this,e);if(e.options.milestone){var l= e.shapeArgs;var t=l.height;e.shapeArgs={x:l.x-t/2,y:l.y,width:t,height:t}}},drawPoint:function(e,l){var t=this.options,A=this.chart.renderer,z=e.shapeArgs,q=e.plotY,m=e.graphic,u=e.selected&&"select",k=t.stacking&&!t.borderRadius;if(e.options.milestone)if(x(q)&&null!==e.y&&!1!==e.visible){z=A.symbols.diamond(z.x,z.y,z.width,z.height);if(m)m[l]({d:z});else e.graphic=A.path(z).addClass(e.getClassName(),!0).add(e.group||this.group);this.chart.styledMode||e.graphic.attr(this.pointAttribs(e,u)).shadow(t.shadow, null,k)}else m&&(e.graphic=m.destroy());else E.prototype.drawPoint.call(this,e,l)},setData:l.Series.prototype.setData,setGanttPointAliases:function(e){function l(l,t){"undefined"!==typeof t&&(e[l]=t)}l("x",N(e.start,e.x));l("x2",N(e.end,e.x2));l("partialFill",N(e.completed,e.partialFill));l("connect",N(e.dependency,e.connect))}},t(E.prototype.pointClass.prototype,{applyOptions:function(e,x){e=t(e);l.seriesTypes.gantt.prototype.setGanttPointAliases(e);return e=E.prototype.pointClass.prototype.applyOptions.call(this, e,x)},isValid:function(){return("number"===typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)}}));""});P(x,"parts-gantt/GanttChart.js",[x["parts/Globals.js"],x["parts/Utilities.js"]],function(l,e){var x=e.isArray,t=e.merge,N=e.splat,H=l.Chart;l.ganttChart=function(e,B,E){var C="string"===typeof e||e.nodeName,J=B.series,y=l.getOptions(),A,z=B;B=arguments[C?1:0];x(B.xAxis)||(B.xAxis=[B.xAxis||{},{}]);B.xAxis=B.xAxis.map(function(e,l){1=== l&&(A=0);return t(y.xAxis,{grid:{enabled:!0},opposite:!0,linkedTo:A},e,{type:"datetime"})});B.yAxis=N(B.yAxis||{}).map(function(e){return t(y.yAxis,{grid:{enabled:!0},staticScale:50,reversed:!0,type:e.categories?e.type:"treegrid"},e)});B.series=null;B=t(!0,{chart:{type:"gantt"},title:{text:null},legend:{enabled:!1}},B,{isGantt:!0});B.series=z.series=J;B.series.forEach(function(e){e.data.forEach(function(e){l.seriesTypes.gantt.prototype.setGanttPointAliases(e)})});return C?new H(e,B,E):new H(B,B)}}); P(x,"parts/ScrollbarAxis.js",[x["parts/Globals.js"],x["parts/Utilities.js"]],function(l,e){var x=e.addEvent,t=e.defined,N=e.pick;return function(){function e(){}e.compose=function(e,B){x(e,"afterInit",function(){var e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new B(e.chart.renderer,e.options.scrollbar,e.chart),x(e.scrollbar,"changed",function(x){var B=N(e.options&&e.options.min, e.min),y=N(e.options&&e.options.max,e.max),A=t(e.dataMin)?Math.min(B,e.min,e.dataMin):B,z=(t(e.dataMax)?Math.max(y,e.max,e.dataMax):y)-A;t(B)&&t(y)&&(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(B=A+z*this.to,A+=z*this.from):(B=A+z*(1-this.from),A+=z*(1-this.to)),N(this.options.liveRedraw,l.svg&&!l.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===x.DOMType||!t(x.DOMType)?e.setExtremes(A,B,!0,"mousemove"!==x.DOMType,x):this.setRange(this.from,this.to))}))});x(e,"afterRender",function(){var e=Math.min(N(this.options.min, this.min),this.min,N(this.dataMin,this.min)),l=Math.max(N(this.options.max,this.max),this.max,N(this.dataMax,this.max)),x=this.scrollbar,y=this.axisTitleMargin+(this.titleOffset||0),A=this.chart.scrollbarsOffsets,z=this.options.margin||0;x&&(this.horiz?(this.opposite||(A[1]+=y),x.position(this.left,this.top+this.height+2+A[1]-(this.opposite?z:0),this.width,this.height),this.opposite||(A[1]+=z),y=1):(this.opposite&&(A[0]+=y),x.position(this.left+this.width+2+A[0]-(this.opposite?0:z),this.top,this.width, this.height),this.opposite&&(A[0]+=z),y=0),A[y]+=x.size+x.options.margin,isNaN(e)||isNaN(l)||!t(this.min)||!t(this.max)||this.min===this.max?x.setRange(0,1):(A=(this.min-e)/(l-e),e=(this.max-e)/(l-e),this.horiz&&!this.reversed||!this.horiz&&this.reversed?x.setRange(A,e):x.setRange(1-e,1-A)))});x(e,"afterGetOffset",function(){var e=this.horiz?2:1,l=this.scrollbar;l&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=l.size+l.options.margin)})};return e}()});P(x,"parts/Scrollbar.js",[x["parts/Axis.js"], x["parts/Globals.js"],x["parts/ScrollbarAxis.js"],x["parts/Utilities.js"]],function(l,e,x,t){var B=t.addEvent,H=t.correctFloat,L=t.defined,K=t.destroyObjectProperties,E=t.fireEvent,C=t.merge,J=t.pick,y=t.removeEvent;t=e.defaultOptions;var A=e.hasTouch,z=e.isTouchDevice,q=e.swapXY=function(e,k){k&&e.forEach(function(e){for(var b=e.length,f,a=0;athis.calculatedWidth?g.minWidth:0;return{chartX:(e.chartX- this.x-this.xOffset)/(this.barWidth-g),chartY:(e.chartY-this.y-this.yOffset)/(this.barWidth-g)}};e.prototype.destroy=function(){var e=this.chart.scroller;this.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){this[e]&&this[e].destroy&&(this[e]=this[e].destroy())},this);e&&this===e.scrollbar&&(e.scrollbar=null,K(e.scrollbarButtons))};e.prototype.drawScrollbarButton=function(e){var g=this.renderer,b=this.scrollbarButtons,f=this.options,a=this.size;var c= g.g().add(this.group);b.push(c);c=g.rect().addClass("highcharts-scrollbar-button").add(c);this.chart.styledMode||c.attr({stroke:f.buttonBorderColor,"stroke-width":f.buttonBorderWidth,fill:f.buttonBackgroundColor});c.attr(c.crisp({x:-.5,y:-.5,width:a+1,height:a+1,r:f.buttonBorderRadius},c.strokeWidth()));c=g.path(q([["M",a/2+(e?-1:1),a/2-3],["L",a/2+(e?-1:1),a/2+3],["L",a/2+(e?2:-2),a/2]],f.vertical)).addClass("highcharts-scrollbar-arrow").add(b[e]);this.chart.styledMode||c.attr({fill:f.buttonArrowColor})}; e.prototype.init=function(k,g,b){this.scrollbarButtons=[];this.renderer=k;this.userOptions=g;this.options=C(e.defaultOptions,g);this.chart=b;this.size=J(this.options.size,this.options.height);g.enabled&&(this.render(),this.addEvents())};e.prototype.mouseDownHandler=function(e){e=this.chart.pointer.normalize(e);e=this.cursorToScrollbarPosition(e);this.chartX=e.chartX;this.chartY=e.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};e.prototype.mouseMoveHandler=function(e){var g=this.chart.pointer.normalize(e), b=this.options.vertical?"chartY":"chartX",f=this.initPositions||[];!this.grabbedCenter||e.touches&&0===e.touches[0][b]||(g=this.cursorToScrollbarPosition(g)[b],b=this[b],b=g-b,this.hasDragged=!0,this.updatePosition(f[0]+b,f[1]+b),this.hasDragged&&E(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}))};e.prototype.mouseUpHandler=function(e){this.hasDragged&&E(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e});this.grabbedCenter= this.hasDragged=this.chartX=this.chartY=null};e.prototype.position=function(e,g,b,f){var a=this.options.vertical,c=0,k=this.rendered?"animate":"attr";this.x=e;this.y=g+this.trackBorderWidth;this.width=b;this.xOffset=this.height=f;this.yOffset=c;a?(this.width=this.yOffset=b=c=this.size,this.xOffset=g=0,this.barWidth=f-2*b,this.x=e+=this.options.margin):(this.height=this.xOffset=f=g=this.size,this.barWidth=b-2*f,this.y+=this.options.margin);this.group[k]({translateX:e,translateY:this.y});this.track[k]({width:b, height:f});this.scrollbarButtons[1][k]({translateX:a?0:b-g,translateY:a?f-c:0})};e.prototype.removeEvents=function(){this._events.forEach(function(e){y.apply(null,e)});this._events.length=0};e.prototype.render=function(){var e=this.renderer,g=this.options,b=this.size,f=this.chart.styledMode,a;this.group=a=e.g("scrollbar").attr({zIndex:g.zIndex,translateY:-99999}).add();this.track=e.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:g.trackBorderRadius||0,height:b,width:b}).add(a);f||this.track.attr({fill:g.trackBackgroundColor, stroke:g.trackBorderColor,"stroke-width":g.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=e.g().add(a);this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:b,width:b,r:g.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=e.path(q([["M",-3,b/4],["L",-3,2*b/3],["M",0,b/4],["L",0,2*b/3],["M",3,b/4],["L",3,2*b/3]],g.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup); f||(this.scrollbar.attr({fill:g.barBackgroundColor,stroke:g.barBorderColor,"stroke-width":g.barBorderWidth}),this.scrollbarRifles.attr({stroke:g.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)};e.prototype.setRange=function(e,g){var b=this.options,f=b.vertical,a=b.minWidth,c=this.barWidth,k,l=!this.rendered||this.hasDragged|| this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(L(c)){e=Math.max(e,0);var m=Math.ceil(c*e);this.calculatedWidth=k=H(c*Math.min(g,1)-m);k=k?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===b.showFull&&(0>=e&&1<=g?this.group.hide():this.group.show());this.rendered=!0}};e.prototype.trackClick=function(e){var g=this.chart.pointer.normalize(e),b=this.to-this.from,f=this.y+this.scrollbarTop,a=this.x+this.scrollbarLeft;this.options.vertical&&g.chartY>f||!this.options.vertical&&g.chartX>a?this.updatePosition(this.from+b,this.to+b):this.updatePosition(this.from-b,this.to-b);E(this, "changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:e})};e.prototype.update=function(e){this.destroy();this.init(this.chart.renderer,C(!0,this.options,e),this.chart)};e.prototype.updatePosition=function(e,g){1e&&(g=H(g-e),e=0);this.from=e;this.to=g};e.defaultOptions={height:z?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333", buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1};return e}();e.Scrollbar||(t.scrollbar=C(!0,m.defaultOptions,t.scrollbar),e.Scrollbar=m,x.compose(l,m));return e.Scrollbar});P(x,"parts/RangeSelector.js",[x["parts/Globals.js"],x["parts/Utilities.js"]],function(l,e){function x(b){this.init(b)}var t=e.addEvent,N=e.createElement,H=e.css,L=e.defined,K=e.destroyObjectProperties, E=e.discardElement,C=e.extend,J=e.fireEvent,y=e.isNumber,A=e.merge,z=e.objectEach,q=e.pick,m=e.pInt,u=e.splat,k=l.Axis;e=l.Chart;var g=l.defaultOptions;C(g,{rangeSelector:{verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:"right",x:0,y:0},buttonPosition:{align:"left",x:0,y:0},labelStyle:{color:"#666666"}}});g.lang=A(g.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"});x.prototype={clickButton:function(b, e){var a=this.chart,c=this.buttonOptions[b],f=a.xAxis[0],g=a.scroller&&a.scroller.getUnionExtremes()||f||{},l=g.dataMin,m=g.dataMax,v=f&&Math.round(Math.min(f.max,q(m,f.max))),n=c.type;g=c._range;var F,x=c.dataGrouping;if(null!==l&&null!==m){a.fixedRange=g;x&&(this.forcedDataGrouping=!0,k.prototype.setDataGrouping.call(f||{chart:this.chart},x,!1),this.frozenStates=c.preserveDataGrouping);if("month"===n||"year"===n)if(f){n={range:c,max:v,chart:a,dataMin:l,dataMax:m};var D=f.minFromRange.call(n);y(n.newMax)&& (v=n.newMax)}else g=c;else if(g)D=Math.max(v-g,l),v=Math.min(D+g,m);else if("ytd"===n)if(f)"undefined"===typeof m&&(l=Number.MAX_VALUE,m=Number.MIN_VALUE,a.series.forEach(function(a){a=a.xData;l=Math.min(a[0],l);m=Math.max(a[a.length-1],m)}),e=!1),v=this.getYTDExtremes(m,l,a.time.useUTC),D=F=v.min,v=v.max;else{this.deferredYTDClick=b;return}else"all"===n&&f&&(D=l,v=m);D+=c._offsetMin;v+=c._offsetMax;this.setSelected(b);if(f)f.setExtremes(D,v,q(e,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:c}); else{var h=u(a.options.xAxis)[0];var d=h.range;h.range=g;var z=h.min;h.min=F;t(a,"load",function(){h.range=d;h.min=z})}}},setSelected:function(b){this.selected=this.options.selected=b},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(b){var e=this,a=b.options.rangeSelector,c=a.buttons||[].concat(e.defaultButtons),g=a.selected,k=function(){var a= e.minInput,b=e.maxInput;a&&a.blur&&J(a,"blur");b&&b.blur&&J(b,"blur")};e.chart=b;e.options=a;e.buttons=[];e.buttonOptions=c;this.unMouseDown=t(b.container,"mousedown",k);this.unResize=t(b,"resize",k);c.forEach(e.computeButtonRange);"undefined"!==typeof g&&c[g]&&this.clickButton(g,!1);t(b,"load",function(){b.xAxis&&b.xAxis[0]&&t(b.xAxis[0],"setExtremes",function(a){this.max-this.min!==b.fixedRange&&"rangeSelectorButton"!==a.trigger&&"updatedData"!==a.trigger&&e.forcedDataGrouping&&!e.frozenStates&& this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var b=this,e=this.chart,a=e.xAxis[0],c=Math.round(a.max-a.min),g=!a.hasVisibleSeries,k=e.scroller&&e.scroller.getUnionExtremes()||a,l=k.dataMin,m=k.dataMax;e=b.getYTDExtremes(m,l,e.time.useUTC);var q=e.min,n=e.max,u=b.selected,t=y(u),x=b.options.allButtonsEnabled,h=b.buttons;b.buttonOptions.forEach(function(d,e){var f=d._range,k=d.type,p=d.count||1,r=h[e],v=0,w=d._offsetMax-d._offsetMin;d=e===u;var F=f>m-l,y=f=864E5*{month:28,year:365}[k]*p-w&&c-36E5<=864E5*{month:31,year:366}[k]*p+w?f=!0:"ytd"===k?(f=n-q+w===c,D=!d):"all"===k&&(f=a.max-a.min>=m-l,z=!d&&t&&f);k=!x&&(F||y||z||g);p=d&&f||f&&!t&&!D||d&&b.frozenStates;k?v=3:p&&(t=!0,v=2);r.state!==v&&(r.setState(v),0===v&&u===e&&b.setSelected(null))})},computeButtonRange:function(b){var e=b.type,a=b.count||1,c={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(c[e])b._range=c[e]*a;else if("month"=== e||"year"===e)b._range=864E5*{month:30,year:365}[e]*a;b._offsetMin=q(b.offsetMin,0);b._offsetMax=q(b.offsetMax,0);b._range+=b._offsetMax-b._offsetMin},setInputValue:function(b,e){var a=this.chart.options.rangeSelector,c=this.chart.time,f=this[b+"Input"];L(e)&&(f.previousValue=f.HCTime,f.HCTime=e);f.value=c.dateFormat(a.inputEditDateFormat||"%Y-%m-%d",f.HCTime);this[b+"DateBox"].attr({text:c.dateFormat(a.inputDateFormat||"%b %e, %Y",f.HCTime)})},showInput:function(b){var e=this.inputGroup,a=this[b+ "DateBox"];H(this[b+"Input"],{left:e.translateX+a.x+"px",top:e.translateY+"px",width:a.width-2+"px",height:a.height-2+"px",border:"2px solid silver"})},hideInput:function(b){H(this[b+"Input"],{border:0,width:"1px",height:"1px"});this.setInputValue(b)},drawInput:function(b){function e(){var b=n.value,e=(q.inputDateParser||Date.parse)(b),d=c.xAxis[0],f=c.scroller&&c.scroller.xAxis?c.scroller.xAxis:d,g=f.dataMin;f=f.dataMax;e!==n.previousValue&&(n.previousValue=e,y(e)||(e=b.split("-"),e=Date.UTC(m(e[0]), m(e[1])-1,m(e[2]))),y(e)&&(c.time.useUTC||(e+=6E4*(new Date).getTimezoneOffset()),v?e>a.maxInput.HCTime?e=void 0:ef&&(e=f),"undefined"!==typeof e&&d.setExtremes(v?e:d.min,v?d.max:e,void 0,void 0,{trigger:"rangeSelectorInput"})))}var a=this,c=a.chart,k=c.renderer.style||{},p=c.renderer,q=c.options.rangeSelector,u=a.div,v="min"===b,n,t,x=this.inputGroup;this[b+"Label"]=t=p.label(g.lang[v?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(x); x.offset+=t.width+5;this[b+"DateBox"]=p=p.label("",x.offset).addClass("highcharts-range-input").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,"text-align":"center"}).on("click",function(){a.showInput(b);a[b+"Input"].focus()});c.styledMode||p.attr({stroke:q.inputBoxBorderColor||"#cccccc","stroke-width":1});p.add(x);x.offset+=p.width+(v?10:0);this[b+"Input"]=n=N("input",{name:b,className:"highcharts-range-selector",type:"text"},{top:c.plotTop+"px"},u);c.styledMode||(t.css(A(k, q.labelStyle)),p.css(A({color:"#333333"},k,q.inputStyle)),H(n,C({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:k.fontSize,fontFamily:k.fontFamily,top:"-9999em"},q.inputStyle)));n.onfocus=function(){a.showInput(b)};n.onblur=function(){n===l.doc.activeElement&&e();a.hideInput(b);n.blur()};n.onchange=e;n.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var b=this.chart,e=b.options.rangeSelector;b="top"===e.verticalAlign?b.plotTop-b.axisOffset[0]: 0;return{buttonTop:b+e.buttonPosition.y,inputTop:b+e.inputPosition.y-10}},getYTDExtremes:function(b,e,a){var c=this.chart.time,f=new c.Date(b),g=c.get("FullYear",f);a=a?c.Date.UTC(g,0,1):+new c.Date(g,0,1);e=Math.max(e||0,a);f=f.getTime();return{max:Math.min(b||f,f),min:e}},render:function(b,e){var a=this,c=a.chart,f=c.renderer,k=c.container,l=c.options,m=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions,v=g.lang,n=a.div,u=l.rangeSelector,t=q(l.chart.style&&l.chart.style.zIndex, 0)+1;l=u.floating;var y=a.buttons;n=a.inputGroup;var h=u.buttonTheme,d=u.buttonPosition,x=u.inputPosition,z=u.inputEnabled,A=h&&h.states,B=c.plotLeft,C=a.buttonGroup,E,H=a.options.verticalAlign,J=c.legend,L=J&&J.options,K=d.y,P=x.y,T=c.hasLoaded,aa=T?"animate":"attr",R=0,Y=0;if(!1!==u.enabled){a.rendered||(a.group=E=f.g("range-selector-group").attr({zIndex:7}).add(),a.buttonGroup=C=f.g("range-selector-buttons").add(E),a.zoomText=f.text(v.rangeSelectorZoom,0,15).add(C),c.styledMode||(a.zoomText.css(u.labelStyle), h["stroke-width"]=q(h["stroke-width"],0)),a.buttonOptions.forEach(function(b,d){y[d]=f.button(b.text,0,0,function(c){var e=b.events&&b.events.click,f;e&&(f=e.call(b,c));!1!==f&&a.clickButton(d);a.isActive=!0},h,A&&A.hover,A&&A.select,A&&A.disabled).attr({"text-align":"center"}).add(C)}),!1!==z&&(a.div=n=N("div",null,{position:"relative",height:0,zIndex:t}),k.parentNode.insertBefore(n,k),a.inputGroup=n=f.g("input-group").add(E),n.offset=0,a.drawInput("min"),a.drawInput("max")));a.zoomText[aa]({x:q(B+ d.x,B)});var ba=q(B+d.x,B)+a.zoomText.getBBox().width+5;a.buttonOptions.forEach(function(a,b){y[b][aa]({x:ba});ba+=y[b].width+q(u.buttonSpacing,5)});B=c.plotLeft-c.spacing[3];a.updateButtonStates();m&&this.titleCollision(c)&&"top"===H&&"right"===d.align&&d.y+C.getBBox().height-12<(m.y||0)+m.height&&(R=-40);k=d.x-c.spacing[3];"right"===d.align?k+=R-B:"center"===d.align&&(k-=B/2);C.align({y:d.y,width:C.getBBox().width,align:d.align,x:k},!0,c.spacingBox);a.group.placed=T;a.buttonGroup.placed=T;!1!== z&&(R=m&&this.titleCollision(c)&&"top"===H&&"right"===x.align&&x.y-n.getBBox().height-12<(m.y||0)+m.height+c.spacing[0]?-40:0,"left"===x.align?k=B:"right"===x.align&&(k=-Math.max(c.axisOffset[1],-R)),n.align({y:x.y,width:n.getBBox().width,align:x.align,x:x.x+k-2},!0,c.spacingBox),m=n.alignAttr.translateX+n.alignOptions.x-R+n.getBBox().x+2,k=n.alignOptions.width,v=C.alignAttr.translateX+C.getBBox().x,B=C.getBBox().width+20,(x.align===d.align||v+B>m&&m+k>v&&K=-R?0:-R),translateY:n.alignAttr.translateY+C.getBBox().height+10}),a.setInputValue("min",b),a.setInputValue("max",e),a.inputGroup.placed=T);a.group.align({verticalAlign:H},!0,c.spacingBox);b=a.group.getBBox().height+20;e=a.group.alignAttr.translateY;"bottom"===H&&(J=L&&"bottom"===L.verticalAlign&&L.enabled&&!L.floating?J.legendHeight+q(L.margin,10):0,b=b+J-20,Y=e-b-(l?0:u.y)-(c.titleOffset?c.titleOffset[2]:0)-10);if("top"===H)l&&(Y=0),c.titleOffset&&c.titleOffset[0]&&(Y=c.titleOffset[0]), Y+=c.margin[0]-c.spacing[0]||0;else if("middle"===H)if(P===K)Y=0>P?e+void 0:e;else if(P||K)Y=0>P||0>K?Y-Math.min(P,K):e-b+NaN;a.group.translate(u.x,u.y+Math.floor(Y));!1!==z&&(a.minInput.style.marginTop=a.group.translateY+"px",a.maxInput.style.marginTop=a.group.translateY+"px");a.rendered=!0}},getHeight:function(){var b=this.options,e=this.group,a=b.y,c=b.buttonPosition.y,g=b.inputPosition.y;if(b.height)return b.height;b=e?e.getBBox(!0).height+13+a:0;e=Math.min(g,c);if(0>g&&0>c||0q&&(x?e=l-m:l=e+m);L(e)&&L(l)||(e=l=void 0);return{min:e,max:l}};return e}();return function(){function e(){}e.compose= function(e){e.keepProps.push("navigatorAxis");t(e,"init",function(){this.navigatorAxis||(this.navigatorAxis=new E(this))});t(e,"zoom",function(e){var l=this.chart.options,t=l.navigator,q=this.navigatorAxis,m=l.chart.pinchType,u=l.rangeSelector;l=l.chart.zoomType;this.isXAxis&&(t&&t.enabled||u&&u.enabled)&&("y"===l?e.zoomed=!1:(!x&&"xy"===l||x&&"xy"===m)&&this.options.range&&(t=q.previousZoom,H(e.newMin)?q.previousZoom=[this.min,this.max]:t&&(e.newMin=t[0],e.newMax=t[1],q.previousZoom=void 0)));"undefined"!== typeof e.zoomed&&e.preventDefault()})};e.AdditionsClass=E;return e}()});P(x,"parts/Navigator.js",[x["parts/Axis.js"],x["parts/Color.js"],x["parts/Globals.js"],x["parts/NavigatorAxis.js"],x["parts/Scrollbar.js"],x["parts/Utilities.js"]],function(l,e,x,t,N,H){e=e.parse;var B=H.addEvent,K=H.clamp,E=H.correctFloat,C=H.defined,J=H.destroyObjectProperties,y=H.erase,A=H.extend,z=H.find,q=H.isArray,m=H.isNumber,u=H.merge,k=H.pick,g=H.removeEvent,b=H.splat;H=x.Chart;var f=x.defaultOptions,a=x.hasTouch,c=x.isTouchDevice, r=x.Series,p=function(a){for(var b=[],c=1;cw&&(this.grabbedLeft?c=l.toPixels(b-w-n,!0):this.grabbedRight&&(e=l.toPixels(a+w+n,!0)));this.zoomedMax=K(Math.max(c,e),0,r);this.zoomedMin=K(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,e),0,r);this.range=this.zoomedMax-this.zoomedMin;r=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:"visible"}),u=u&&!this.hasDragged?"animate":"attr",this.drawMasks(c,r,t,u),this.drawOutline(c, r,t,u),this.navigatorOptions.handles.enabled&&(this.drawHandle(c,0,t,u),this.drawHandle(r,1,t,u)));this.scrollbar&&(t?(t=this.top-d,p=this.left-d+(q||!p.opposite?0:(p.titleOffset||0)+p.axisTitleMargin),d=g+2*d):(t=this.top+(q?this.height:-d),p=this.left-d),this.scrollbar.position(p,t,f,d),this.scrollbar.setRange(this.zoomedMin/(g||1),this.zoomedMax/(g||1)));this.rendered=!0}};e.prototype.addMouseEvents=function(){var b=this,c=b.chart,e=c.container,f=[],g,d;b.mouseMoveHandler=g=function(a){b.onMouseMove(a)}; b.mouseUpHandler=d=function(a){b.onMouseUp(a)};f=b.getPartsEvents("mousedown");f.push(B(c.renderTo,"mousemove",g),B(e.ownerDocument,"mouseup",d));a&&(f.push(B(c.renderTo,"touchmove",g),B(e.ownerDocument,"touchend",d)),f.concat(b.getPartsEvents("touchstart")));b.eventsToUnbind=f;b.series&&b.series[0]&&f.push(B(b.series[0].xAxis,"foundExtremes",function(){c.navigator.modifyNavigatorAxisExtremes()}))};e.prototype.getPartsEvents=function(a){var b=this,c=[];["shades","handles"].forEach(function(e){b[e].forEach(function(f, d){c.push(B(f.element,a,function(a){b[e+"Mousedown"](a,d)}))})});return c};e.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,e=this.xAxis,f=this.zoomedMin,d=this.left,g=this.size,k=this.range,l=a.chartX;c.inverted&&(l=a.chartY,d=this.top);if(1===b)this.grabbedCenter=l,this.fixedWidth=k,this.dragOffset=l-f;else{a=l-d-k/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+k>=g)if(a=g-k,this.reversedExtremes){a-=k;var m=this.getUnionExtremes().dataMin}else var n=this.getUnionExtremes().dataMax; a!==f&&(this.fixedWidth=k,b=e.navigatorAxis.toFixedRange(a,a+k,m,n),C(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};e.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],e=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=e?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=e?c.max:c.min);a.fixedRange= null};e.prototype.onMouseMove=function(a){var b=this,e=b.chart,f=b.left,g=b.navigatorSize,d=b.range,l=b.dragOffset,m=e.inverted;a.touches&&0===a.touches[0].pageX||(a=e.pointer.normalize(a),e=a.chartX,m&&(f=b.top,e=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,e-f,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,e-f)):b.grabbedCenter&&(b.hasDragged=!0,eg+l-d&&(e=g+l-d),b.render(0,0,e-l,e-l+d)),b.hasDragged&&b.scrollbar&&k(b.scrollbar.options.liveRedraw, x.svg&&!c&&!this.chart.isBoosting)&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};e.prototype.onMouseUp=function(a){var b=this.chart,c=this.xAxis,e=this.scrollbar,f=a.DOMEvent||a,d=b.inverted,g=this.rendered&&!this.hasDragged?"animate":"attr",k=Math.round(this.zoomedMax),l=Math.round(this.zoomedMin);if(this.hasDragged&&(!e||!e.hasDragged)||"scrollbar"===a.trigger){e=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var m=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var n= this.fixedExtreme;this.zoomedMax===this.size&&(n=this.reversedExtremes?e.dataMin:e.dataMax);0===this.zoomedMin&&(m=this.reversedExtremes?e.dataMax:e.dataMin);c=c.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,m,n);C(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:f})}"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&&(this.shades&&this.drawMasks(l,k,d,g),this.outline&&this.drawOutline(l,k,d,g),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(l,0,d,g),this.drawHandle(k,1,d,g)))};e.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};e.prototype.removeBaseSeriesEvents= function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){g(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&g(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};e.prototype.init=function(a){var b=a.options,c=b.navigator,e=c.enabled,f=b.scrollbar,d=f.enabled;b=e?c.height:0;var g=d?f.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled= d;this.navigatorEnabled=e;this.navigatorOptions=c;this.scrollbarOptions=f;this.outlineHeight=b+g;this.opposite=k(c.opposite,!(e||!a.inverted));var m=this;e=m.baseSeries;f=a.xAxis.length;d=a.yAxis.length;var n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;m.navigatorEnabled?(m.xAxis=new l(a,u({breaks:n.options.breaks,ordinal:n.options.ordinal},c.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},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),m.yAxis=new l(a,u(c.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:d,isInternal:!0,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?m.updateNavigatorSeries(!1):0===a.series.length&&(m.unbindRedraw=B(a,"beforeRedraw",function(){0h.indexOf(b)?(b&&(g(b,"updatedData",e.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});h&&h.length&&h.forEach(function(a){var b=a.navigatorSeries,g=A({color:a.color,visible:a.visible},q(n)?f.navigator.series:n);b&&!1===e.navigatorOptions.adaptToUpdatedData||(r.name="Navigator "+h.length,d=a.options||{},p=d.navigatorOptions||{},m=u(d,r,g,p),m.pointRange=k(g.pointRange,p.pointRange,f.plotOptions[m.type||"line"].pointRange),g=p.data||g.data,e.hasNavigatorData=e.hasNavigatorData|| !!g,m.data=g||d.data&&d.data.slice(0),b&&b.options?b.update(m,c):(a.navigatorSeries=l.initSeries(m),a.navigatorSeries.baseSeries=a,t.push(a.navigatorSeries)))});if(n.data&&(!h||!h.length)||q(n))e.hasNavigatorData=!1,n=b(n),n.forEach(function(a,b){r.name="Navigator "+(t.length+1);m=u(f.navigator.series,{color:l.series[b]&&!l.series[b].options.isInternal&&l.series[b].color||l.options.colors[b]||l.options.colors[0]},r,a);m.data=a.data;m.data&&(e.hasNavigatorData=!0,t.push(l.initSeries(m)))});a&&this.addBaseSeriesEvents()}; e.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&B(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes);b.forEach(function(b){B(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});B(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&B(b,"updatedData",this.updatedDataHandler);B(b,"remove",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries), C(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)};e.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,b.xData?b.xData[0]:a)},a)};e.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};e.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator, b=this.getExtremes(),c=b.dataMin,e=b.dataMax;b=b.max-b.min;var f=a.stickToMin,d=a.stickToMax,g=k(this.options.overscroll,0),l=a.series&&a.series[0],p=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(f){var q=c;var r=q+b}d&&(r=e+g,f||(q=Math.max(c,r-b,a.getBaseSeriesMin(l&&l.xData?l.xData[0]:-Number.MAX_VALUE))));p&&(f||d)&&m(q)&&(this.min=this.userMin=q,this.max=this.userMax=r)}a.stickToMin=a.stickToMax=null};e.prototype.updatedDataHandler=function(){var a= this.chart.navigator,b=this.navigatorSeries,c=a.getBaseSeriesMin(this.xData[0]);a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=m(this.xAxis.min)&&this.xAxis.min<=c&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};e.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(B(this.chart,"redraw", function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);b&&a.render(b.min,b.max)}),B(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};e.prototype.destroy=function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes, this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){J(a)},this)};return e}();x.Navigator||(x.Navigator=w,t.compose(l),B(H,"beforeShowResetZoom",function(){var a= this.options,b=a.navigator,e=a.rangeSelector;if((b&&b.enabled||e&&e.enabled)&&(!c&&"x"===a.chart.zoomType||c&&"x"===a.chart.pinchType))return!1}),B(H,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new w(this)}),B(H,"afterSetChartSize",function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var e=b.xAxis;var f=b.yAxis;var g=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-g-b.height:this.spacing[3]+ g,b.top=this.plotTop+g):(b.left=this.plotLeft+g,b.top=b.navigatorOptions.top||this.chartHeight-b.height-g-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&c.enabled&&!c.floating?a.legendHeight+k(c.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize())}}),B(H,"update",function(a){var b=a.options.navigator|| {},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)}),B(H,"afterUpdate",function(a){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new w(this),k(a.redraw,!0)&&this.redraw(a.animation))}),B(H,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}), B(r,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),H.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));x.Navigator=w;return x.Navigator});P(x,"masters/modules/gantt.src.js",[],function(){});P(x,"masters/highcharts-gantt.src.js",[x["masters/highcharts.src.js"]],function(l){l.product="Highcharts Gantt";return l});x["masters/highcharts-gantt.src.js"]._modules= x;return x["masters/highcharts-gantt.src.js"]}); //# sourceMappingURL=highcharts-gantt.js.map