/* Highcharts Gantt JS v9.1.1 (2021-06-03) (c) 2017-2021 Lars Cabrera, Torstein Honsi, Jon Arild Nygard & Oystein Moseng License: www.highcharts.com/license */ 'use strict';(function(X,P){"object"===typeof module&&module.exports?(P["default"]=P,module.exports=X.document?P(X):P):"function"===typeof define&&define.amd?define("highcharts/highcharts-gantt",function(){return P(X)}):(X.Highcharts&&X.Highcharts.error(16,!0),X.Highcharts=P(X))})("undefined"!==typeof window?window:this,function(X){function P(e,v,E,C){e.hasOwnProperty(v)||(e[v]=C.apply(null,E))}var e={};P(e,"Core/Globals.js",[],function(){var e="undefined"!==typeof X?X:"undefined"!==typeof window? window:{},v;(function(q){q.SVG_NS="http://www.w3.org/2000/svg";q.product="Highcharts";q.version="9.1.1";q.win=e;q.doc=q.win.document;q.svg=q.doc&&q.doc.createElementNS&&!!q.doc.createElementNS(q.SVG_NS,"svg").createSVGRect;q.userAgent=q.win.navigator&&q.win.navigator.userAgent||"";q.isChrome=-1!==q.userAgent.indexOf("Chrome");q.isFirefox=-1!==q.userAgent.indexOf("Firefox");q.isMS=/(edge|msie|trident)/i.test(q.userAgent)&&!q.win.opera;q.isSafari=!q.isChrome&&-1!==q.userAgent.indexOf("Safari");q.isTouchDevice= /(Mobile|Android|Windows Phone)/.test(q.userAgent);q.isWebKit=-1!==q.userAgent.indexOf("AppleWebKit");q.deg2rad=2*Math.PI/360;q.hasBidiBug=q.isFirefox&&4>parseInt(q.userAgent.split("Firefox/")[1],10);q.hasTouch=!!q.win.TouchEvent;q.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];q.noop=function(){};q.supportsPassiveEvents=function(){var e=!1;if(!q.isMS){var v=Object.defineProperty({},"passive",{get:function(){e=!0}});q.win.addEventListener&&q.win.removeEventListener&&(q.win.addEventListener("testPassive", q.noop,v),q.win.removeEventListener("testPassive",q.noop,v))}return e}();q.charts=[];q.dateFormats={};q.seriesTypes={};q.symbolSizes={}})(v||(v={}));return v});P(e,"Core/Utilities.js",[e["Core/Globals.js"]],function(q){function e(a,c,G,f){var r=c?"Highcharts error":"Highcharts warning";32===a&&(a=r+": Deprecated member");var K=k(a),M=K?r+" #"+a+": www.highcharts.com/errors/"+a+"/":a.toString();if("undefined"!==typeof f){var y="";K&&(M+="?");J(f,function(p,N){y+="\n - "+N+": "+p;K&&(M+=encodeURI(N)+ "="+encodeURI(p))});M+=y}z(q,"displayError",{chart:G,code:a,message:M,params:f},function(){if(c)throw Error(M);h.console&&-1===e.messages.indexOf(M)&&console.warn(M)});e.messages.push(M)}function E(a,c){var r={};J(a,function(K,w){if(F(a[w],!0)&&!a.nodeType&&c[w])K=E(a[w],c[w]),Object.keys(K).length&&(r[w]=K);else if(F(a[w])||a[w]!==c[w])r[w]=a[w]});return r}function C(a,c){return parseInt(a,c||10)}function D(a){return"string"===typeof a}function A(a){a=Object.prototype.toString.call(a);return"[object Array]"=== a||"[object Array Iterator]"===a}function F(a,c){return!!a&&"object"===typeof a&&(!c||!A(a))}function B(a){return F(a)&&"number"===typeof a.nodeType}function l(a){var c=a&&a.constructor;return!(!F(a,!0)||B(a)||!c||!c.name||"Object"===c.name)}function k(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity=c-1&&(c=Math.floor(f)),Math.max(0,c-(r(a,"padding-left",!0)||0)-(r(a,"padding-right",!0)||0));if("height"===c)return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-(r(a,"padding-top",!0)||0)-(r(a,"padding-bottom",!0)||0));h.getComputedStyle||e(27,!0);if(a=h.getComputedStyle(a,void 0)){var w= a.getPropertyValue(c);I(f,"opacity"!==c)&&(w=C(w))}return w}function J(a,c,f){for(var r in a)Object.hasOwnProperty.call(a,r)&&c.call(f||a[r],a[r],r,a)}function O(a,c,f){function r(c,p){var N=a.removeEventListener||q.removeEventListenerPolyfill;N&&N.call(a,c,p,!1)}function w(f){var p;if(a.nodeName){if(c){var N={};N[c]=!0}else N=f;J(N,function(a,N){if(f[N])for(p=f[N].length;p--;)r(N,f[N][p].fn)})}}var h="function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(h,"hcEvents")){var M=h.hcEvents; c?(h=M[c]||[],f?(M[c]=h.filter(function(a){return f!==a.fn}),r(c,f)):(w(M),M[c]=[])):(w(M),delete h.hcEvents)}}function z(a,r,f,h){f=f||{};if(c.createEvent&&(a.dispatchEvent||a.fireEvent&&a!==q)){var w=c.createEvent("Events");w.initEvent(r,!0,!0);f=t(w,f);a.dispatchEvent?a.dispatchEvent(f):a.fireEvent(r,f)}else if(a.hcEvents){f.target||t(f,{preventDefault:function(){f.defaultPrevented=!0},target:a,type:r});w=[];for(var y=a,M=!1;y.hcEvents;)Object.hasOwnProperty.call(y,"hcEvents")&&y.hcEvents[r]&& (w.length&&(M=!0),w.unshift.apply(w,y.hcEvents[r])),y=Object.getPrototypeOf(y);M&&w.sort(function(a,p){return a.order-p.order});w.forEach(function(c){!1===c.fn.call(a,f)&&f.preventDefault()})}h&&!f.defaultPrevented&&h.call(a,f)}var u=q.charts,c=q.doc,h=q.win;"";(e||(e={})).messages=[];var a;Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var f=Array.prototype.find?function(a,c){return a.find(c)}:function(a,c){var r,f=a.length;for(r=0;rf&&(f=a[c]);return f},arrayMin:function(a){for(var c=a.length,f=a[0];c--;)a[c]c?a=f&&(c=[1/f])));for(h=0;h=a||!w&&M<=(c[h]+ (c[h+1]||c[h]))/2);h++);return r=g(r*f,-Math.round(Math.log(.001)/Math.LN10))},objectEach:J,offset:function(a){var f=c.documentElement;a=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(h.pageYOffset||f.scrollTop)-(f.clientTop||0),left:a.left+(h.pageXOffset||f.scrollLeft)-(f.clientLeft||0),width:a.width,height:a.height}},pad:function(a,c,f){return Array((c||2)+1-String(a).replace("-","").length).join(f||"0")+a},pick:I,pInt:C,relativeLength:function(a, c,f){return/%$/.test(a)?c*parseFloat(a)/100+(f||0):parseFloat(a)},removeEvent:O,splat:function(a){return A(a)?a:[a]},stableSort:function(a,c){var f=a.length,h,r;for(r=0;r>16,(q&65280)>>8,q&255,1]:4===k&&(B=[(q&3840)>>4|(q&3840)>>8,(q&240)>>4|q&240,(q&15)<<4|q&15,1])}if(!B)for(l=this.parsers.length;l--&&!B;){var d=this.parsers[l];(k=d.regex.exec(q))&&(B=d.parse(k))}}this.rgba=B||[]};e.prototype.get=function(q){var B=this.input,l=this.rgba;if("undefined"!==typeof this.stops){var k=C(B);k.stops=[].concat(k.stops);this.stops.forEach(function(d,b){k.stops[b]=[k.stops[b][0],d.get(q)]})}else k= l&&v(l[0])?"rgb"===q||!q&&1===l[3]?"rgb("+l[0]+","+l[1]+","+l[2]+")":"a"===q?l[3]:"rgba("+l.join(",")+")":B;return k};e.prototype.brighten=function(q){var B,l=this.rgba;if(this.stops)this.stops.forEach(function(k){k.brighten(q)});else if(v(q)&&0!==q)for(B=0;3>B;B++)l[B]+=D(255*q),0>l[B]&&(l[B]=0),255u?"AM":"PM",P:12>u?"am":"pm",S:k(z.getSeconds()),L:k(Math.floor(n%1E3),3)},q.dateFormats);l(z, function(a,c){for(;-1!==g.indexOf("%"+c);)g=g.replace("%"+c,"function"===typeof a?a.call(b,n):a)});return m?g.substr(0,1).toUpperCase()+g.substr(1):g};m.prototype.resolveDTLFormat=function(g){return F(g,!0)?g:(g=b(g),{main:g[0],from:g[1],to:g[2]})};m.prototype.getTimeTicks=function(g,n,m,b){var z=this,u=[],c={},h=new z.Date(n),a=g.unitRange,f=g.count||1,y;b=d(b,1);if(C(n)){z.set("Milliseconds",h,a>=t.second?0:f*Math.floor(z.get("Milliseconds",h)/f));a>=t.second&&z.set("Seconds",h,a>=t.minute?0:f* Math.floor(z.get("Seconds",h)/f));a>=t.minute&&z.set("Minutes",h,a>=t.hour?0:f*Math.floor(z.get("Minutes",h)/f));a>=t.hour&&z.set("Hours",h,a>=t.day?0:f*Math.floor(z.get("Hours",h)/f));a>=t.day&&z.set("Date",h,a>=t.month?1:Math.max(1,f*Math.floor(z.get("Date",h)/f)));if(a>=t.month){z.set("Month",h,a>=t.year?0:f*Math.floor(z.get("Month",h)/f));var L=z.get("FullYear",h)}a>=t.year&&z.set("FullYear",h,L-L%f);a===t.week&&(L=z.get("Day",h),z.set("Date",h,z.get("Date",h)-L+b+(L4*t.month||z.getTimezoneOffset(n)!==z.getTimezoneOffset(m));n=h.getTime();for(h=1;nu.length&&u.forEach(function(a){0===a%18E5&&"000000000"===z.dateFormat("%H%M%S%L", a)&&(c[a]="day")})}u.info=A(g,{higherRanks:c,totalRange:a*f});return u};return m}();"";return e});P(e,"Core/DefaultOptions.js",[e["Core/Globals.js"],e["Core/Chart/ChartDefaults.js"],e["Core/Color/Color.js"],e["Core/Color/Palette.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(q,e,E,C,D,A){var v=q.isTouchDevice,B=q.svg;E=E.parse;var l=A.merge;"";var k={colors:C.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "), shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:e,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:C.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:C.neutralColor40,borderRadius:0,navigation:{activeColor:C.highlightColor100,inactiveColor:C.neutralColor20},itemStyle:{color:C.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"}, itemHoverStyle:{color:C.neutralColor100},itemHiddenStyle:{color:C.neutralColor20},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:C.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:B,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:v?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:E(C.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:C.neutralColor80,cursor:"default",fontSize:"12px", whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:C.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};k.chart.styledMode=!1;"";var d=new D(l(k.global,k.time));return{defaultOptions:k,defaultTime:d,getOptions:function(){return k},setOptions:function(b){l(!0,k,b);if(b.time||b.global)q.time?q.time.update(l(k.global,k.time,b.global,b.time)):q.time=d;return k}}});P(e,"Core/Animation/Fx.js", [e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(q,e,E){var v=q.parse,D=e.win,A=E.isNumber,F=E.objectEach;return function(){function q(l,k,d){this.pos=NaN;this.options=k;this.elem=l;this.prop=d}q.prototype.dSetter=function(){var l=this.paths,k=l&&l[0];l=l&&l[1];var d=this.now||0,b=[];if(1!==d&&k&&l)if(k.length===l.length&&1>d)for(var t=0;t=I+this.startTime){this.now=this.end;this.pos=1;this.update();var m=x[this.prop]=!0;F(x,function(g){!0!==g&&(m=!1)});m&&t&&t.call(b);l=!1}else this.pos=d.easing((k-this.startTime)/I),this.now=this.start+(this.end-this.start)*this.pos,this.update(),l=!0;return l};q.prototype.initPath=function(l,k,d){function b(g,n){for(;g.lengthm[1]){var n=d+ +m[1];0<=n?(m[0]=(+m[0]).toExponential(n).split("e")[0],d=n):(m[0]=m[0].split(".")[0]||0,k=20>d?(m[0]* Math.pow(10,m[1])).toFixed(d):0,m[1]=0)}n=(Math.abs(m[1]?m[0]:k)+Math.pow(10,-Math.max(d,x)-1)).toFixed(d);x=String(l(n));var J=3k?"-":"")+(J?x.substr(0,J)+t:"");k=0>+m[1]&&!g?"0":k+x.substr(J).replace(/(\d{3})(?=\d)/g,"$1"+t);d&&(k+=b+n.slice(-d));m[1]&&0!==+k&&(k+="e"+m[1]);return k}var C=q.defaultOptions,D=q.defaultTime,A=e.getNestedProperty,F=e.isNumber,B=e.pick,l=e.pInt;return{dateFormat:function(k,d,b){return D.dateFormat(k, d,b)},format:function(k,d,b){var t="{",l=!1,x=/f$/,m=/\.([0-9])/,g=C.lang,n=b&&b.time||D;b=b&&b.numberFormatter||v;for(var J=[];k;){var O=k.indexOf(t);if(-1===O)break;var z=k.slice(0,O);if(l){z=z.split(":");t=A(z.shift()||"",d);if(z.length&&"number"===typeof t)if(z=z.join(":"),x.test(z)){var u=parseInt((z.match(m)||["","-1"])[1],10);null!==t&&(t=b(t,u,g.decimalPoint,-1m.width)m={width:0, height:0}}else m=this.htmlGetBBox();p.isSVG&&(c=m.width,p=m.height,n&&(m.height=p={"11px,17":14,"13px,20":16}[h&&h.fontSize+","+Math.round(p)]||p),f&&(h=f*k,m.width=Math.abs(p*Math.sin(h))+Math.abs(c*Math.cos(h)),m.height=Math.abs(p*Math.cos(h))+Math.abs(c*Math.sin(h))));if(G&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")};H.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};H.prototype.translate=function(a,c){return this.attr({translateX:a,translateY:c})};H.prototype.updateShadows=function(a,c,p){var f=this.shadows;if(f)for(var h=f.length;h--;)p.call(f[h],"height"===a?Math.max(c-(f[h].cutHeight||0),0):"d"===a?this.d:c,a,f[h])};H.prototype.updateTransform= function(){var a=this.scaleX,c=this.scaleY,p=this.inverted,f=this.rotation,h=this.matrix,y=this.element,g=this.translateX||0,w=this.translateY||0;p&&(g+=this.width,w+=this.height);g=["translate("+g+","+w+")"];O(h)&&g.push("matrix("+h.join(",")+")");p?g.push("rotate(90) scale(-1,1)"):f&&g.push("rotate("+f+" "+r(this.rotationOriginX,y.getAttribute("x"),0)+" "+r(this.rotationOriginY,y.getAttribute("y")||0)+")");(O(a)||O(c))&&g.push("scale("+r(a,1)+" "+r(c,1)+")");g.length&&y.setAttribute("transform", g.join(" "))};H.prototype.visibilitySetter=function(a,c,p){"inherit"===a?p.removeAttribute(c):this[c]!==a&&p.setAttribute(c,a);this[c]=a};H.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};H.prototype.zIndexSetter=function(a,c){var p=this.renderer,f=this.parentGroup,h=(f||p).element||p.box,y=this.element;p=h===p.box;var r=!1;var g=this.added;var w;O(a)?(y.setAttribute("data-z-index",a),a=+a,this[c]===a&&(g=!1)):O(this[c])&& y.removeAttribute("data-z-index");this[c]=a;if(g){(a=this.zIndex)&&f&&(f.handleZ=!0);c=h.childNodes;for(w=c.length-1;0<=w&&!r;w--){f=c[w];g=f.getAttribute("data-z-index");var n=!O(g);if(f!==y)if(0>a&&n&&!p&&!w)h.insertBefore(y,c[w]),r=!0;else if(G(g)<=a||n&&(!O(a)||0<=a))h.insertBefore(y,c[w+1]||null),r=!0}r||(h.insertBefore(y,c[p?3:0]||null),r=!0)}return r};return H}();q.prototype["stroke-widthSetter"]=q.prototype.strokeSetter;q.prototype.yGetter=q.prototype.xGetter;q.prototype.matrixSetter=q.prototype.rotationOriginXSetter= q.prototype.rotationOriginYSetter=q.prototype.rotationSetter=q.prototype.scaleXSetter=q.prototype.scaleYSetter=q.prototype.translateXSetter=q.prototype.translateYSetter=q.prototype.verticalAlignSetter=function(a,c){this[c]=a;this.doTransform=!0};"";return q});P(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],function(q){var e;(function(e){var v;e.rendererTypes={};e.getRendererType=function(q){void 0===q&&(q=v);return e.rendererTypes[q]||e.rendererTypes[v]};e.registerRendererType=function(D, A,F){e.rendererTypes[D]=A;if(!v||F)v=D,q.Renderer=A}})(e||(e={}));return e});P(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(q,e){var v=this&&this.__extends||function(){var k=function(d,b){k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var t in d)d.hasOwnProperty(t)&&(b[t]=d[t])};return k(d,b)};return function(d,b){function t(){this.constructor=d}k(d,b);d.prototype=null===b?Object.create(b): (t.prototype=b.prototype,new t)}}(),C=e.defined,D=e.extend,A=e.isNumber,F=e.merge,B=e.pick,l=e.removeEvent;return function(k){function d(b,t,l,x,m,g,n,J,O,z){var u=k.call(this)||this;u.paddingLeftSetter=u.paddingSetter;u.paddingRightSetter=u.paddingSetter;u.init(b,"g");u.textStr=t;u.x=l;u.y=x;u.anchorX=g;u.anchorY=n;u.baseline=O;u.className=z;u.addClass("button"===z?"highcharts-no-tooltip":"highcharts-label");z&&u.addClass("highcharts-"+z);u.text=b.text("",0,0,J).attr({zIndex:1});var c;"string"=== typeof m&&((c=/^url\((.*?)\)$/.test(m))||u.renderer.symbols[m])&&(u.symbolKey=m);u.bBox=d.emptyBBox;u.padding=3;u.baselineOffset=0;u.needsBox=b.styledMode||c;u.deferredAttr={};u.alignFactor=0;return u}v(d,k);d.prototype.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==this.alignFactor&&(this.alignFactor=b,this.bBox&&A(this.xSetting)&&this.attr({x:this.xSetting}))};d.prototype.anchorXSetter=function(b,d){this.anchorX=b;this.boxAttr(d,Math.round(b)-this.getCrispAdjust()-this.xSetting)};d.prototype.anchorYSetter= function(b,d){this.anchorY=b;this.boxAttr(d,b-this.ySetting)};d.prototype.boxAttr=function(b,d){this.box?this.box.attr(b,d):this.deferredAttr[b]=d};d.prototype.css=function(b){if(b){var t={};b=F(b);d.textProps.forEach(function(d){"undefined"!==typeof b[d]&&(t[d]=b[d],delete b[d])});this.text.css(t);var k="width"in t;"fontSize"in t||"fontWeight"in t?this.updateTextPadding():k&&this.updateBoxSize()}return q.prototype.css.call(this,b)};d.prototype.destroy=function(){l(this.element,"mouseenter");l(this.element, "mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());q.prototype.destroy.call(this)};d.prototype.fillSetter=function(b,d){b&&(this.needsBox=!0);this.fill=b;this.boxAttr(d,b)};d.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var b=this.padding,d=B(this.paddingLeft,b);return{width:this.width,height:this.height,x:this.bBox.x-d,y:this.bBox.y-b}};d.prototype.getCrispAdjust=function(){return this.renderer.styledMode&& this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};d.prototype.heightSetter=function(b){this.heightSetting=b};d.prototype.on=function(b,d){var t=this,k=t.text,m=k&&"SPAN"===k.element.tagName?k:void 0;if(m){var g=function(g){("mouseenter"===b||"mouseleave"===b)&&g.relatedTarget instanceof Element&&(t.element.compareDocumentPosition(g.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||m.element.compareDocumentPosition(g.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)|| d.call(t.element,g)};m.on(b,g)}q.prototype.on.call(t,b,g||d);return t};d.prototype.onAdd=function(){var b=this.textStr;this.text.add(this);this.attr({text:C(b)?b:"",x:this.x,y:this.y});this.box&&C(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};d.prototype.paddingSetter=function(b,d){A(b)?b!==this[d]&&(this[d]=b,this.updateTextPadding()):this[d]=void 0};d.prototype.rSetter=function(b,d){this.boxAttr(d,b)};d.prototype.shadow=function(b){b&&!this.renderer.styledMode&&(this.updateBoxSize(), this.box&&this.box.shadow(b));return this};d.prototype.strokeSetter=function(b,d){this.stroke=b;this.boxAttr(d,b)};d.prototype["stroke-widthSetter"]=function(b,d){b&&(this.needsBox=!0);this["stroke-width"]=b;this.boxAttr(d,b)};d.prototype["text-alignSetter"]=function(b){this.textAlign=b};d.prototype.textSetter=function(b){"undefined"!==typeof b&&this.text.attr({text:b});this.updateTextPadding()};d.prototype.updateBoxSize=function(){var b=this.text.element.style,k={},l=this.padding,x=this.bBox=A(this.widthSetting)&& A(this.heightSetting)&&!this.textAlign||!C(this.text.textStr)?d.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||x.height||0)+2*l;b=this.renderer.fontMetrics(b&&b.fontSize,this.text);this.baselineOffset=l+Math.min((this.text.firstLineMetrics||b).b,x.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-b.h)/2);this.needsBox&&(this.box||(l=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),l.addClass(("button"=== this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),l.add(this)),l=this.getCrispAdjust(),k.x=l,k.y=(this.baseline?-this.baselineOffset:0)+l,k.width=Math.round(this.width),k.height=Math.round(this.height),this.box.attr(D(k,this.deferredAttr)),this.deferredAttr={})};d.prototype.updateTextPadding=function(){var b=this.text;this.updateBoxSize();var d=this.baseline?0:this.baselineOffset,k=B(this.paddingLeft,this.padding);C(this.widthSetting)&&this.bBox&& ("center"===this.textAlign||"right"===this.textAlign)&&(k+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(k!==b.x||d!==b.y)b.attr("x",k),b.hasBoxWidthChanged&&(this.bBox=b.getBBox(!0)),"undefined"!==typeof d&&b.attr("y",d);b.x=k;b.y=d};d.prototype.widthSetter=function(b){this.widthSetting=A(b)?b:void 0};d.prototype.getPaddedWidth=function(){var b=this.padding,d=B(this.paddingLeft,b);b=B(this.paddingRight,b);return(this.widthSetting||this.bBox.width||0)+d+b};d.prototype.xSetter= function(b){this.x=b;this.alignFactor&&(b-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(b);this.attr("translateX",this.xSetting)};d.prototype.ySetter=function(b){this.ySetting=this.y=Math.round(b);this.attr("translateY",this.ySetting)};d.emptyBBox={width:0,height:0,x:0,y:0};d.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return d}(q)});P(e,"Core/Renderer/SVG/Symbols.js", [e["Core/Utilities.js"]],function(q){function e(e,l,k,d,b){var t=[];if(b){var I=b.start||0,x=F(b.r,k);k=F(b.r,d||k);var m=(b.end||0)-.001;d=b.innerR;var g=F(b.open,.001>Math.abs((b.end||0)-I-2*Math.PI)),n=Math.cos(I),J=Math.sin(I),O=Math.cos(m),z=Math.sin(m);I=F(b.longArc,.001>m-I-Math.PI?0:1);t.push(["M",e+x*n,l+k*J],["A",x,k,0,I,F(b.clockwise,1),e+x*O,l+k*z]);D(d)&&t.push(g?["M",e+d*O,l+d*z]:["L",e+d*O,l+d*z],["A",d,d,0,I,D(b.clockwise)?1-b.clockwise:0,e+d*n,l+d*J]);g||t.push(["Z"])}return t}function E(e, l,k,d,b){return b&&b.r?C(e,l,k,d,b):[["M",e,l],["L",e+k,l],["L",e+k,l+d],["L",e,l+d],["Z"]]}function C(e,l,k,d,b){b=b&&b.r||0;return[["M",e+b,l],["L",e+k-b,l],["C",e+k,l,e+k,l,e+k,l+b],["L",e+k,l+d-b],["C",e+k,l+d,e+k,l+d,e+k-b,l+d],["L",e+b,l+d],["C",e,l+d,e,l+d,e,l+d-b],["L",e,l+b],["C",e,l,e,l,e+b,l]]}var D=q.defined,A=q.isNumber,F=q.pick;return{arc:e,callout:function(e,l,k,d,b){var t=Math.min(b&&b.r||0,k,d),I=t+6,x=b&&b.anchorX;b=b&&b.anchorY||0;var m=C(e,l,k,d,{r:t});if(!A(x))return m;e+x>=k? b>l+I&&b=e+x?b>l+I&&bd&&x>e+I&&xb&&x>e+I&&x/g;var J=[I,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(J!==d.textCache){d.textCache=J;for(delete d.actualWidth;g--;)b.removeChild(m[g]);x||this.ellipsis||this.width||-1!==I.indexOf(" ")&&(!this.noWrap||n.test(I))?""!==I&&(k&&k.appendChild(b),I=new e(I),this.modifyTree(I.nodes),I.addToDOM(d.element),this.modifyDOM(),this.ellipsis&&-1!==(b.textContent||"").indexOf("\u2026")&& d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),k&&k.removeChild(b)):b.appendChild(q.createTextNode(this.unescapeEntities(I)));F(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}};k.prototype.modifyDOM=function(){var d=this,b=this.svgElement,k=A(b.element,"x");b.firstLineMetrics=void 0;[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(g,n){g.nextSibling&&g.previousSibling&&(0===n&&1===g.previousSibling.nodeType&&(b.firstLineMetrics= b.renderer.fontMetrics(void 0,g.previousSibling)),A(g,{dy:d.getLineHeight(g.nextSibling),x:k}))});var l=this.width||0;if(l){var x=function(g,n){var m=g.textContent||"",t=m.replace(/([^\^])-/g,"$1- ").split(" "),z=!d.noWrap&&(1e){for(;z<=u;)c=Math.ceil((z+u)/2),k&&(h=m(k,c)),f=a(c,h&&h.length-1),z===u?z=u+1:f>e?u=c-1:z=c;0===u?d.textContent="":b&&u===b.length-1||(d.textContent=h||m(b||k,c))}k&&k.splice(0,c);g.actualWidth=f;g.rotation=t};k.prototype.unescapeEntities=function(d,b){B(this.renderer.escapes,function(k,l){b&&-1!==b.indexOf(k)||(d=d.toString().replace(new RegExp(k,"g"),l))});return d};return k}()}); P(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(e,v,E,C,D,A,F,B,l,k){var d=E.charts,b=E.deg2rad,t=E.doc,q=E.isFirefox,x=E.isMS,m=E.isWebKit,g=E.noop,n=E.SVG_NS,J=E.symbolSizes,O=E.win,z=k.addEvent, u=k.attr,c=k.createElement,h=k.css,a=k.defined,f=k.destroyObjectProperties,y=k.extend,L=k.isArray,K=k.isNumber,r=k.isObject,G=k.isString,Q=k.merge,w=k.pick,H=k.pInt,M=k.uniqueKey,T;E=function(){function p(a,c,p,f,h,y,r){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(a,c,p,f,h,y,r)}p.prototype.init=function(a,c,p,f,y,r,g){var N=this.createElement("svg").attr({version:"1.1", "class":"highcharts-root"}),w=N.element;g||N.css(this.getStyle(f));a.appendChild(w);u(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&u(w,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=w;this.boxWrapper=N;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(t.createTextNode("Created with Highcharts 9.1.1"));this.defs=this.createElement("defs").add();this.allowHTML=r;this.forExport=y;this.styledMode=g;this.gradients={};this.cache={};this.cacheKeys= [];this.imgCount=0;this.setSize(c,p,!1);var n;q&&a.getBoundingClientRect&&(c=function(){h(a,{left:0,top:0});n=a.getBoundingClientRect();h(a,{left:Math.ceil(n.left)-n.left+"px",top:Math.ceil(n.top)-n.top+"px"})},c(),this.unSubPixelFix=z(O,"resize",c))};p.prototype.definition=function(a){return(new e([a])).addToDOM(this.defs.element)};p.prototype.getReferenceURL=function(){if((q||m)&&t.getElementsByTagName("base").length){if(!a(T)){var c=M();c=(new e([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs", children:[{tagName:"clipPath",attributes:{id:c},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+c+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(t.body);h(c,{position:"fixed",top:0,left:0,zIndex:9E5});var p=t.elementFromPoint(6,6);T="hitme"===(p&&p.id);t.body.removeChild(c)}if(T)return O.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};p.prototype.getStyle= function(a){return this.style=y({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)};p.prototype.setStyle=function(a){this.boxWrapper.css(this.getStyle(a))};p.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};p.prototype.destroy=function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();f(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects= null};p.prototype.createElement=function(a){var c=new this.Element;c.init(this,a);return c};p.prototype.getRadialAttr=function(a,c){return{cx:a[0]-a[2]/2+(c.cx||0)*a[2],cy:a[1]-a[2]/2+(c.cy||0)*a[2],r:(c.r||0)*a[2]}};p.prototype.buildText=function(a){(new l(a)).buildSVG()};p.prototype.getContrast=function(a){a=v.parse(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459a?a+3:Math.round(1.2*a);return{h:c,b:Math.round(.8*c),f:a}};p.prototype.rotCorr=function(a,c,p){var f=a;c&&p&&(f=Math.max(f*Math.cos(c*b),4));return{x:-a/3*Math.sin(c*b),y:f}};p.prototype.pathToSegments=function(a){for(var c=[],p=[],f={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},h=0;h":">","'":"'",'"':"""},symbols:B, draw:g});D.registerRendererType("svg",E,!0);"";return E});P(e,"Core/Renderer/HTML/HTMLElement.js",[e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(e,v,E){var q=this&&this.__extends||function(){var b=function(d,m){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,n){g.__proto__=n}||function(g,n){for(var b in n)n.hasOwnProperty(b)&&(g[b]=n[b])};return b(d,m)};return function(d,m){function g(){this.constructor=d}b(d,m);d.prototype=null===m? Object.create(m):(g.prototype=m.prototype,new g)}}(),D=e.isFirefox,A=e.isMS,F=e.isWebKit,B=e.win,l=E.css,k=E.defined,d=E.extend,b=E.pick,t=E.pInt;return function(e){function x(){return null!==e&&e.apply(this,arguments)||this}q(x,e);x.compose=function(b){b=b.prototype;var g=x.prototype;b.getSpanCorrection=g.getSpanCorrection;b.htmlCss=g.htmlCss;b.htmlGetBBox=g.htmlGetBBox;b.htmlUpdateTransform=g.htmlUpdateTransform;b.setSpanRotation=g.setSpanRotation};x.prototype.getSpanCorrection=function(b,g,n){this.xCorr= -b*n;this.yCorr=-g};x.prototype.htmlCss=function(m){var g="SPAN"===this.element.tagName&&m&&"width"in m,n=b(g&&m.width,void 0);if(g){delete m.width;this.textWidth=n;var k=!0}m&&"ellipsis"===m.textOverflow&&(m.whiteSpace="nowrap",m.overflow="hidden");this.styles=d(this.styles,m);l(this.element,m);k&&this.htmlUpdateTransform();return this};x.prototype.htmlGetBBox=function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}};x.prototype.htmlUpdateTransform= function(){if(this.added){var b=this.renderer,g=this.element,n=this.translateX||0,d=this.translateY||0,e=this.x||0,z=this.y||0,u=this.textAlign||"left",c={left:0,center:.5,right:1}[u],h=this.styles;h=h&&h.whiteSpace;l(g,{marginLeft:n,marginTop:d});!b.styledMode&&this.shadows&&this.shadows.forEach(function(a){l(a,{marginLeft:n+1,marginTop:d+1})});this.inverted&&[].forEach.call(g.childNodes,function(a){b.invertChild(a,g)});if("SPAN"===g.tagName){var a=this.rotation,f=this.textWidth&&t(this.textWidth), y=[a,u,g.innerHTML,this.textWidth,this.textAlign].join(),L=void 0;(L=f!==this.oldTextWidth)&&!(L=f>this.oldTextWidth)&&((L=this.textPxLength)||(l(g,{width:"",whiteSpace:h||"nowrap"}),L=g.offsetWidth),L=L>f);L&&(/[ \-]/.test(g.textContent||g.innerText)||"ellipsis"===g.style.textOverflow)?(l(g,{width:f+"px",display:"block",whiteSpace:h||"normal"}),this.oldTextWidth=f,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;y!==this.cTT&&(L=b.fontMetrics(g.style.fontSize,g).b,!k(a)||a===(this.oldRotation|| 0)&&u===this.oldAlign||this.setSpanRotation(a,c,L),this.getSpanCorrection(!k(a)&&this.textPxLength||g.offsetWidth,L,c,a,u));l(g,{left:e+(this.xCorr||0)+"px",top:z+(this.yCorr||0)+"px"});this.cTT=y;this.oldRotation=a;this.oldAlign=u}}else this.alignOnAdd=!0};x.prototype.setSpanRotation=function(b,g,n){var d={},m=A&&!/Edge/.test(B.navigator.userAgent)?"-ms-transform":F?"-webkit-transform":D?"MozTransform":B.opera?"-o-transform":void 0;m&&(d[m]=d.transform="rotate("+b+"deg)",d[m+(D?"Origin":"-origin")]= d.transformOrigin=100*g+"% "+n+"px",l(this.element,d))};return x}(v)});P(e,"Core/Renderer/HTML/HTMLRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(e,v,E,C){var q=this&&this.__extends||function(){var k=function(d,b){k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var k in d)d.hasOwnProperty(k)&&(b[k]=d[k])};return k(d,b)};return function(d, b){function l(){this.constructor=d}k(d,b);d.prototype=null===b?Object.create(b):(l.prototype=b.prototype,new l)}}(),A=C.attr,F=C.createElement,B=C.extend,l=C.pick;return function(k){function d(){return null!==k&&k.apply(this,arguments)||this}q(d,k);d.compose=function(b){b.prototype.html=d.prototype.html};d.prototype.html=function(b,d,k){var t=this.createElement("span"),m=t.element,g=t.renderer,n=g.isSVG,J=function(g,b){["opacity","visibility"].forEach(function(n){g[n+"Setter"]=function(c,h,a){var f= g.div?g.div.style:b;v.prototype[n+"Setter"].call(this,c,h,a);f&&(f[h]=c)}});g.addedSetters=!0};t.textSetter=function(g){g!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,l(g,"")),this.textStr=g,t.doTransform=!0)};n&&J(t,t.element.style);t.xSetter=t.ySetter=t.alignSetter=t.rotationSetter=function(g,n){"align"===n?t.alignValue=t.textAlign=g:t[n]=g;t.doTransform=!0};t.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)}; t.attr({text:b,x:Math.round(d),y:Math.round(k)}).css({position:"absolute"});g.styledMode||t.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});m.style.whiteSpace="nowrap";t.css=t.htmlCss;n&&(t.add=function(n){var b=g.box.parentNode,d=[];if(this.parentGroup=n){var c=n.div;if(!c){for(;n;)d.push(n),n=n.parentGroup;d.reverse().forEach(function(h){function a(a,c){h[c]=a;"translateX"===c?n.left=a+"px":n.top=a+"px";h.doTransform=!0}var f=A(h.element,"class"),g=h.styles||{};c=h.div=h.div|| F("div",f?{className:f}:void 0,{position:"absolute",left:(h.translateX||0)+"px",top:(h.translateY||0)+"px",display:h.display,opacity:h.opacity,cursor:g.cursor,pointerEvents:g.pointerEvents},c||b);var n=c.style;B(h,{classSetter:function(a){return function(c){this.element.setAttribute("class",c);a.className=c}}(c),on:function(){d[0].div&&t.on.apply({element:d[0].div,onEvents:t.onEvents},arguments);return h},translateXSetter:a,translateYSetter:a});h.addedSetters||J(h)})}}else c=b;c.appendChild(m);t.added= !0;t.alignOnAdd&&t.htmlUpdateTransform();return t});return t};return d}(E)});P(e,"Core/Axis/AxisDefaults.js",[e["Core/Color/Palette.js"]],function(e){var q;(function(q){q.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}}, endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:e.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0, showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:e.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:e.neutralColor5,minorGridLineWidth:1,minorTickColor:e.neutralColor40,lineColor:e.highlightColor20,lineWidth:1,gridLineColor:e.neutralColor10,gridLineWidth:void 0,tickColor:e.highlightColor20};q.defaultYAxisOptions={reversedStacks:!0, endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var e=this.axis.chart.numberFormatter;return e(this.total,-1)},style:{color:e.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};q.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};q.defaultRightAxisOptions= {labels:{x:15},title:{rotation:90}};q.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};q.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(q||(q={}));return q});P(e,"Core/Foundation.js",[e["Core/Utilities.js"]],function(e){var q=e.addEvent,E=e.isFunction,C=e.objectEach,D=e.removeEvent;return{registerEventOptions:function(e,F){e.eventOptions=e.eventOptions||{};C(F.events,function(B,l){E(B)&&e.eventOptions[l]!==B&&(E(e.eventOptions[l])&& D(e,l,e.eventOptions[l]),e.eventOptions[l]=B,q(e,l,B))})}}});P(e,"Core/Axis/Tick.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,v,E){var q=v.deg2rad,D=E.clamp,A=E.correctFloat,F=E.defined,B=E.destroyObjectProperties,l=E.extend,k=E.fireEvent,d=E.isNumber,b=E.merge,t=E.objectEach,I=E.pick;v=function(){function x(b,g,n,d,t){this.isNewLabel=this.isNew=!0;this.axis=b;this.pos=g;this.type=n||"";this.parameters=t||{};this.tickmarkOffset=this.parameters.tickmarkOffset; this.options=this.parameters.options;k(this,"init");n||d||this.addLabel()}x.prototype.addLabel=function(){var b=this,g=b.axis,n=g.options,t=g.chart,x=g.categories,z=g.logarithmic,u=g.names,c=b.pos,h=I(b.options&&b.options.labels,n.labels),a=g.tickPositions,f=c===a[0],y=c===a[a.length-1],L=(!h.step||1===h.step)&&1===g.tickInterval;a=a.info;var K=b.label,r;x=this.parameters.category||(x?I(x[c],u[c],c):c);z&&d(x)&&(x=A(z.lin2log(x)));if(g.dateTime&&a){var G=t.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid&& a.higherRanks[c]||a.unitName]);var Q=G.main}b.isFirst=f;b.isLast=y;var w={axis:g,chart:t,dateTimeLabelFormat:Q,isFirst:f,isLast:y,pos:c,tick:b,tickPositionInfo:a,value:x};k(this,"labelFormat",w);var H=function(a){return h.formatter?h.formatter.call(a,a):h.format?(a.text=g.defaultLabelFormatter.call(a),e.format(h.format,a,t)):g.defaultLabelFormatter.call(a,a)};n=H.call(w,w);var M=G&&G.list;b.shortenLabel=M?function(){for(r=0;rh&&d-a*fk&&(G=Math.round((m-d)/Math.cos(h*q)));else if(m=d+(1-a)*f,d-a*fk&&(K=k-b.x+K*a,r=-1),K=Math.min(y,K),KK||g.autoRotation&&(c.styles||{}).width)G=K;G&&(this.shortenLabel? this.shortenLabel():(L.width=Math.floor(G)+"px",(n.style||{}).textOverflow||(L.textOverflow="ellipsis"),c.css(L)))};x.prototype.moveLabel=function(b,g){var n=this,d=n.label,m=n.axis,k=m.reversed,u=!1;d&&d.textStr===b?(n.movedLabel=d,u=!0,delete n.label):t(m.ticks,function(c){u||c.isNew||c===n||!c.label||c.label.textStr!==b||(n.movedLabel=c.label,u=!0,c.labelPos=n.movedLabel.xy,delete c.label)});if(!u&&(n.labelPos||d)){var c=n.labelPos||d.xy;d=m.horiz?k?0:m.width+m.left:c.x;m=m.horiz?c.y:k?m.width+ m.left:0;n.movedLabel=n.createLabel({x:d,y:m},b,g);n.movedLabel&&n.movedLabel.attr({opacity:0})}};x.prototype.render=function(b,g,n){var d=this.axis,m=d.horiz,z=this.pos,u=I(this.tickmarkOffset,d.tickmarkOffset);z=this.getPosition(m,z,u,g);u=z.x;var c=z.y;d=m&&u===d.pos+d.len||!m&&c===d.pos?-1:1;m=I(n,this.label&&this.label.newOpacity,1);n=I(n,1);this.isActive=!0;this.renderGridLine(g,n,d);this.renderMark(z,n,d);this.renderLabel(z,g,m,b);this.isNew=!1;k(this,"afterRender")};x.prototype.renderGridLine= function(b,g,n){var d=this.axis,m=d.options,k={},u=this.pos,c=this.type,h=I(this.tickmarkOffset,d.tickmarkOffset),a=d.chart.renderer,f=this.gridLine,y=m.gridLineWidth,L=m.gridLineColor,K=m.gridLineDashStyle;"minor"===this.type&&(y=m.minorGridLineWidth,L=m.minorGridLineColor,K=m.minorGridLineDashStyle);f||(d.chart.styledMode||(k.stroke=L,k["stroke-width"]=y||0,k.dashstyle=K),c||(k.zIndex=1),b&&(g=0),this.gridLine=f=a.path().attr(k).addClass("highcharts-"+(c?c+"-":"")+"grid-line").add(d.gridGroup)); if(f&&(n=d.getPlotLinePath({value:u+h,lineWidth:f.strokeWidth()*n,force:"pass",old:b})))f[b||this.isNew?"attr":"animate"]({d:n,opacity:g})};x.prototype.renderMark=function(b,g,n){var d=this.axis,m=d.options,k=d.chart.renderer,u=this.type,c=d.tickSize(u?u+"Tick":"tick"),h=b.x;b=b.y;var a=I(m["minor"!==u?"tickWidth":"minorTickWidth"],!u&&d.isXAxis?1:0);m=m["minor"!==u?"tickColor":"minorTickColor"];var f=this.mark,y=!f;c&&(d.opposite&&(c[0]=-c[0]),f||(this.mark=f=k.path().addClass("highcharts-"+(u?u+ "-":"")+"tick").add(d.axisGroup),d.chart.styledMode||f.attr({stroke:m,"stroke-width":a})),f[y?"attr":"animate"]({d:this.getMarkPath(h,b,c[0],f.strokeWidth()*n,d.horiz,k),opacity:g}))};x.prototype.renderLabel=function(b,g,n,k){var m=this.axis,z=m.horiz,u=m.options,c=this.label,h=u.labels,a=h.step;m=I(this.tickmarkOffset,m.tickmarkOffset);var f=b.x;b=b.y;var y=!0;c&&d(f)&&(c.xy=b=this.getLabelPosition(f,b,c,z,h,m,k,a),this.isFirst&&!this.isLast&&!u.showFirstLabel||this.isLast&&!this.isFirst&&!u.showLastLabel? y=!1:!z||h.step||h.rotation||g||0===n||this.handleOverflow(b),a&&k%a&&(y=!1),y&&d(b.y)?(b.opacity=n,c[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(c.attr("y",-9999),this.isNewLabel=!0))};x.prototype.replaceMovedLabel=function(){var b=this.label,g=this.axis,d=g.reversed;if(b&&!this.isNew){var k=g.horiz?d?g.left:g.width+g.left:b.xy.x;d=g.horiz?b.xy.y:d?g.width+g.top:g.top;b.animate({x:k,y:d,opacity:0},void 0,b.destroy);delete this.label}g.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel}; return x}();"";return v});P(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/AxisDefaults.js"],e["Core/Color/Color.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/DefaultOptions.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],function(e,v,E,C,D,A,F,B,l){var k=e.animObject,d=C.registerEventOptions,b=D.deg2rad,t=F.defaultOptions,q=l.arrayMax,x=l.arrayMin,m=l.clamp,g=l.correctFloat,n=l.defined,J=l.destroyObjectProperties,O=l.erase, z=l.error,u=l.extend,c=l.fireEvent,h=l.getMagnitude,a=l.isArray,f=l.isNumber,y=l.isString,L=l.merge,K=l.normalizeTickInterval,r=l.objectEach,G=l.pick,Q=l.relativeLength,w=l.removeEvent,H=l.splat,M=l.syncTimeout;e=function(){function l(a,c){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly= this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(a, c)}l.prototype.init=function(a,h){var p=h.isX;this.chart=a;this.horiz=a.inverted&&!this.isZAxis?!p:p;this.isXAxis=p;this.coll=this.coll||(p?"xAxis":"yAxis");c(this,"init",{userOptions:h});this.opposite=G(h.opposite,this.opposite);this.side=G(h.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(h);var b=this.options,g=b.labels,r=b.type;this.userOptions=h;this.minPixelPadding=0;this.reversed=G(b.reversed,this.reversed);this.visible=b.visible;this.zoomEnabled=b.zoomEnabled; this.hasNames="category"===r||!0===b.categories;this.categories=b.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=n(b.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=b.minRange||b.maxZoom;this.range=b.range;this.offset=b.offset||0;this.min=this.max=null;h=G(b.crosshair,H(a.options.tooltip.crosshairs)[p? 0:1]);this.crosshair=!0===h?{}:h;-1===a.axes.indexOf(this)&&(p?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];a.inverted&&!this.isZAxis&&p&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=f(g.rotation)?g.rotation:void 0;d(this,b);c(this,"afterInit")};l.prototype.setOptions=function(a){this.options=L(v.defaultXAxisOptions,"yAxis"===this.coll&&v.defaultYAxisOptions,[v.defaultTopAxisOptions,v.defaultRightAxisOptions, v.defaultBottomAxisOptions,v.defaultLeftAxisOptions][this.side],L(t[this.coll],a));c(this,"afterSetOptions",{userOptions:a})};l.prototype.defaultLabelFormatter=function(a){var c=this.axis;a=this.chart.numberFormatter;var p=f(this.value)?this.value:NaN,h=c.chart.time,b=this.dateTimeLabelFormat,g=t.lang,r=g.numericSymbols;g=g.numericSymbolMagnitude||1E3;var y=c.logarithmic?Math.abs(p):c.tickInterval,d=r&&r.length;if(c.categories)var w=""+this.value;else if(b)w=h.dateFormat(b,p);else if(d&&1E3<=y)for(;d--&& "undefined"===typeof w;)c=Math.pow(g,d+1),y>=c&&0===10*p%c&&null!==r[d]&&0!==p&&(w=a(p/c,-1)+r[d]);"undefined"===typeof w&&(w=1E4<=Math.abs(p)?a(p,-1):a(p,-1,void 0,""));return w};l.prototype.getSeriesExtremes=function(){var a=this,h=a.chart,b;c(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.stacking&&a.stacking.buildStacks();a.series.forEach(function(c){if(c.visible||!h.options.chart.ignoreHiddenSeries){var p=c.options, g=p.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=g&&(g=null);if(a.isXAxis){if(p=c.xData,p.length){p=a.logarithmic?p.filter(a.validatePositiveValue):p;b=c.getXExtremes(p);var r=b.min;var y=b.max;f(r)||r instanceof Date||(p=p.filter(f),b=c.getXExtremes(p),r=b.min,y=b.max);p.length&&(a.dataMin=Math.min(G(a.dataMin,r),r),a.dataMax=Math.max(G(a.dataMax,y),y))}}else if(c=c.applyExtremes(),f(c.dataMin)&&(r=c.dataMin,a.dataMin=Math.min(G(a.dataMin,r),r)),f(c.dataMax)&&(y=c.dataMax,a.dataMax=Math.max(G(a.dataMax, y),y)),n(g)&&(a.threshold=g),!p.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});c(this,"afterGetSeriesExtremes")};l.prototype.translate=function(a,c,h,b,g,r){var p=this.linkedParent||this,y=b&&p.old?p.old.min:p.min,w=p.minPixelPadding;g=(p.isOrdinal||p.brokenAxis&&p.brokenAxis.hasBreaks||p.logarithmic&&g)&&p.lin2val;var d=1,n=0;b=b&&p.old?p.old.transA:p.transA;b||(b=p.transA);h&&(d*=-1,n=p.len);p.reversed&&(d*=-1,n-=d*(p.sector||p.len));c?(a=(a*d+n-w)/b+y,g&&(a=p.lin2val(a))):(g&&(a=p.val2lin(a)), a=f(y)?d*(a-y)*b+n+d*w+(f(r)?b*r:0):void 0);return a};l.prototype.toPixels=function(a,c){return this.translate(a,!1,!this.horiz,null,!0)+(c?0:this.pos)};l.prototype.toValue=function(a,c){return this.translate(a-(c?0:this.pos),!0,!this.horiz,null,!0)};l.prototype.getPlotLinePath=function(a){function p(a,c,p){if("pass"!==l&&ap)l?a=m(a,c,p):e=!0;return a}var h=this,b=h.chart,g=h.left,r=h.top,y=a.old,d=a.value,w=a.lineWidth,n=y&&b.oldChartHeight||b.chartHeight,k=y&&b.oldChartWidth||b.chartWidth, H=h.transB,u=a.translatedValue,l=a.force,L,z,K,t,e;a={value:d,lineWidth:w,old:y,force:l,acrossPanes:a.acrossPanes,translatedValue:u};c(this,"getPlotLinePath",a,function(a){u=G(u,h.translate(d,null,null,y));u=m(u,-1E5,1E5);L=K=Math.round(u+H);z=t=Math.round(n-u-H);f(u)?h.horiz?(z=r,t=n-h.bottom,L=K=p(L,g,g+h.width)):(L=g,K=k-h.right,z=t=p(z,r,r+h.height)):(e=!0,l=!1);a.path=e&&!l?null:b.renderer.crispLine([["M",L,z],["L",K,t]],w||1)});return a.path};l.prototype.getLinearTickPositions=function(a,c, f){var p=g(Math.floor(c/a)*a);f=g(Math.ceil(f/a)*a);var h=[],b;g(p+a)===p&&(b=20);if(this.single)return[c];for(c=p;c<=f;){h.push(c);c=g(c+a,b);if(c===r)break;var r=c}return h};l.prototype.getMinorTickInterval=function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval};l.prototype.getMinorTickPositions=function(){var a=this.options,c=this.tickPositions,f=this.minorTickInterval,h=this.pointRangePadding||0,b=this.min-h;h=this.max+h; var g=h-b,r=[];if(g&&g/f=this.minRange;var m=this.minRange;var k=(m-h+f)/2;k=[f-k,G(a.min,f-k)];w&&(k[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin); f=q(k);h=[f+m,G(a.max,f+m)];w&&(h[2]=c?c.log2lin(this.dataMax):this.dataMax);h=x(h);h-f=t)x=t,l=0;else if(p.dataMax<=t){var M=t;H=0}p.min=G(e,x,p.dataMin);p.max=G(Q,M,p.dataMax)}r&&(p.positiveValuesOnly&&!a&&0>=Math.min(p.min,G(p.dataMin,p.min))&&z(10,1,b),p.min=g(r.log2lin(p.min),16),p.max=g(r.log2lin(p.max),16));p.range&&n(p.max)&&(p.userMin=p.min=e=Math.max(p.dataMin,p.minFromRange()),p.userMax=Q=p.max,p.range=null);c(p,"foundExtremes");p.beforePadding&&p.beforePadding();p.adjustForMinRange();!(k||p.axisPointRange|| p.stacking&&p.stacking.usePercentage||w)&&n(p.min)&&n(p.max)&&(b=p.max-p.min)&&(!n(e)&&l&&(p.min-=b*l),!n(Q)&&H&&(p.max+=b*H));f(p.userMin)||(f(y.softMin)&&y.softMinp.max&&(p.max=Q=y.softMax),f(y.ceiling)&&(p.max=Math.min(p.max,y.ceiling)));u&&n(p.dataMin)&&(t=t||0,!n(e)&&p.min=t?p.min=p.options.minRange?Math.min(t,p.max-p.minRange):t:!n(Q)&&p.max>t&&p.dataMax<=t&&(p.max=p.options.minRange? Math.max(t,p.min+p.minRange):t));f(p.min)&&f(p.max)&&!this.chart.polar&&p.min>p.max&&(n(p.options.min)?p.max=p.min:n(p.options.max)&&(p.min=p.max));p.tickInterval=p.min===p.max||"undefined"===typeof p.min||"undefined"===typeof p.max?1:w&&p.linkedParent&&!L&&m===p.linkedParent.options.tickPixelInterval?L=p.linkedParent.tickInterval:G(L,this.tickAmount?(p.max-p.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(p.max-p.min)*m/Math.max(p.len,m));d&&!a&&p.series.forEach(function(a){a.processData(p.min!== (p.old&&p.old.min)||p.max!==(p.old&&p.old.max))});p.setAxisTranslation();c(this,"initialAxisTranslation");p.pointRange&&!L&&(p.tickInterval=Math.max(p.pointRange,p.tickInterval));a=G(y.minTickInterval,p.dateTime&&!p.series.some(function(a){return a.noSharedTooltip})?p.closestPointRange:0);!L&&p.tickIntervalp.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)); this.tickAmount||(p.tickInterval=p.unsquish());this.setTickPositions()};l.prototype.setTickPositions=function(){var a=this.options,f=a.tickPositions,h=this.getMinorTickInterval(),b=this.hasVerticalPanning(),r="colorAxis"===this.coll,g=(r||!b)&&a.startOnTick;b=(r||!b)&&a.endOnTick;r=a.tickPositioner;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===h&&this.tickInterval?this.tickInterval/5:h;this.single=this.min===this.max&& n(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=h=f&&f.slice();!h&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?h=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):(h=[this.min,this.max],z(19,!1,this.chart)),h.length>this.len&&(h=[h[0],h.pop()],h[0]===h[1]&&(h.length=1)),this.tickPositions=h,r&&(r=r.apply(this,[this.min,this.max])))&&(this.tickPositions=h=r);this.paddedTicks=h.slice(0);this.trimTicks(h,g,b);this.isLinked||(this.single&&2>h.length&&!this.categories&&!this.series.some(function(a){return a.is("heatmap")&&"between"===a.options.pointPlacement})&&(this.min-=.5,this.max+=.5), f||r||this.adjustTickAmount());c(this,"afterSetTickPositions")};l.prototype.trimTicks=function(a,f,h){var p=a[0],b=a[a.length-1],r=!this.isOrdinal&&this.minPointOffset||0;c(this,"trimTicks");if(!this.isLinked){if(f&&-Infinity!==p)this.min=p;else for(;this.min-r>a[0];)a.shift();if(h)this.max=b;else for(;this.max+rf&&(this.finalTickAmt= f,f=5);this.tickAmount=f};l.prototype.adjustTickAmount=function(){var a=this.options,c=this.tickInterval,h=this.tickPositions,b=this.tickAmount,r=this.finalTickAmt,y=h&&h.length,d=G(this.threshold,this.softThreshold?0:null);if(this.hasData()&&f(this.min)&&f(this.max)){if(yb&&(this.tickInterval*=2,this.setTickPositions());if(n(r)){for(c=a=h.length;c--;)(3===r&&1===c%2||2>=r&&0y&&(c=y)),n(b)&&(fy&&(f=y))),p.displayBtn="undefined"!==typeof c||"undefined"!==typeof f,p.setExtremes(c,f,!1,void 0,{trigger:"zoom"}); a.zoomed=!0});return a.zoomed};l.prototype.setAxisSize=function(){var a=this.chart,c=this.options,f=c.offsets||[0,0,0,0],h=this.horiz,b=this.width=Math.round(Q(G(c.width,a.plotWidth-f[3]+f[1]),a.plotWidth)),r=this.height=Math.round(Q(G(c.height,a.plotHeight-f[0]+f[2]),a.plotHeight)),g=this.top=Math.round(Q(G(c.top,a.plotTop+f[0]),a.plotHeight,a.plotTop));c=this.left=Math.round(Q(G(c.left,a.plotLeft+f[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-r-g;this.right=a.chartWidth-b-c;this.len=Math.max(h? b:r,0);this.pos=h?c:g};l.prototype.getExtremes=function(){var a=this.logarithmic;return{min:a?g(a.lin2log(this.min)):this.min,max:a?g(a.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};l.prototype.getThreshold=function(a){var c=this.logarithmic,p=c?c.lin2log(this.min):this.min;c=c?c.lin2log(this.max):this.max;null===a||-Infinity===a?a=p:Infinity===a?a=c:p>a?a=p:cp?a.align="right":195p&&(a.align="left")});return a.align};l.prototype.tickSize=function(a){var p=this.options,f=G(p["tick"===a?"tickWidth":"minorTickWidth"],"tick"===a&&this.isXAxis&&!this.categories?1:0),h=p["tick"===a?"tickLength":"minorTickLength"];if(f&&h){"inside"===p[a+"Position"]&&(h=-h);var b=[h,f]}a={tickSize:b};c(this,"afterTickSize",a);return a.tickSize};l.prototype.labelMetrics= function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)};l.prototype.unsquish=function(){var a=this.options.labels,c=this.horiz,h=this.tickInterval,r=this.len/(((this.categories?1:0)+this.max-this.min)/h),y=a.rotation,d=this.labelMetrics(),w=Math.max(this.max-this.min,0),n=function(a){var c=a/(r||1);c=1w&&Infinity!==a&&Infinity!==r&&w&&(c=Math.ceil(w/h));return g(c* h)},m=h,k,u,H=Number.MAX_VALUE;if(c){if(!a.staggerLines&&!a.step)if(f(y))var l=[y];else r=a){u=n(Math.abs(d.h/Math.sin(b*a)));var c=u+Math.abs(a/360);ch.step)return h.rotation?0:(this.staggerLines||1)*this.len/b;if(!p){a=h.style.width;if(void 0!==a)return parseInt(String(a),10);if(r)return r-c.spacing[3]}return.33*c.chartWidth};l.prototype.renderUnsquish=function(){var a=this.chart,c=a.renderer,f=this.tickPositions,h=this.ticks,b=this.options.labels,r=b.style,g=this.horiz,d=this.getSlotWidth(),w=Math.max(1,Math.round(d-2*b.padding)),n={},m=this.labelMetrics(),G=r.textOverflow,k=0;y(b.rotation)|| (n.rotation=b.rotation||0);f.forEach(function(a){a=h[a];a.movedLabel&&a.replaceMovedLabel();a&&a.label&&a.label.textPxLength>k&&(k=a.label.textPxLength)});this.maxLabelLength=k;if(this.autoRotation)k>w&&k>m.h?n.rotation=this.labelRotation:this.labelRotation=0;else if(d){var u=w;if(!G){var H="clip";for(w=f.length;!g&&w--;){var l=f[w];if(l=h[l].label)l.styles&&"ellipsis"===l.styles.textOverflow?l.css({textOverflow:"clip"}):l.textPxLength>d&&l.css({width:d+"px"}),l.getBBox().height>this.len/f.length- (m.h-m.f)&&(l.specificTextOverflow="ellipsis")}}}n.rotation&&(u=k>.5*a.chartHeight?.33*a.chartHeight:k,G||(H="ellipsis"));if(this.labelAlign=b.align||this.autoLabelAlign(this.labelRotation))n.align=this.labelAlign;f.forEach(function(a){var c=(a=h[a])&&a.label,f=r.width,p={};c&&(c.attr(n),a.shortenLabel?a.shortenLabel():u&&!f&&"nowrap"!==r.whiteSpace&&(u=this.min&&a<=this.max||this.grid&&this.grid.isColumn)f[a]||(f[a]=new B(this,a)),p&&f[a].isNew&&f[a].render(c,!0,-1),f[a].render(c)};l.prototype.render=function(){var a=this,h=a.chart,b=a.logarithmic,g=a.options,y=a.isLinked,w=a.tickPositions,d=a.axisTitle,n=a.ticks,m=a.minorTicks,G=a.alternateBands,u=g.stackLabels,H=g.alternateGridColor, l=a.tickmarkOffset,L=a.axisLine,z=a.showAxis,t=k(h.renderer.globalAnimation),K,e;a.labelEdge.length=0;a.overlap=!1;[n,m,G].forEach(function(a){r(a,function(a){a.isActive=!1})});if(a.hasData()||y)a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(c){a.renderMinorTick(c)}),w.length&&(w.forEach(function(c,f){a.renderTick(c,f)}),l&&(0===a.min||a.single)&&(n[-1]||(n[-1]=new B(a,-1,null,!0)),n[-1].render(-1))),H&&w.forEach(function(c,f){e="undefined"!==typeof w[f+1]?w[f+1]+l: a.max-l;0===f%2&&ck&&(!b||x<=d)&&"undefined"!==typeof x&&m.push(x); x>d&&(q=!0);x=z}}}else k=this.lin2log(k),d=this.lin2log(d),l=b?t.getMinorTickInterval():x.tickInterval,l=A("auto"===l?null:l,this.minorAutoInterval,x.tickPixelInterval/(b?5:1)*(d-k)/((b?e/t.tickPositions.length:e)||1)),l=D(l,void 0,C(l)),m=t.getLinearTickPositions(l,k,d).map(this.log2lin),b||(this.minorAutoInterval=l/5);b||(t.tickInterval=l);return m};e.prototype.lin2log=function(l){return Math.pow(10,l)};e.prototype.log2lin=function(l){return Math.log(l)/Math.LN10};return e}();v=function(){function e(){} e.compose=function(l){l.keepProps.push("logarithmic");q(l,"init",function(k){var d=this.logarithmic;"logarithmic"!==k.userOptions.type?this.logarithmic=void 0:d||(this.logarithmic=new F(this))});q(l,"afterInit",function(){var k=this.logarithmic;k&&(this.lin2val=function(d){return k.lin2log(d)},this.val2lin=function(d){return k.log2lin(d)})})};return e}();v.compose(e);return v});P(e,"Core/Axis/PlotLineOrBand.js",[e["Core/Axis/Axis.js"],e["Core/Color/Palette.js"],e["Core/Utilities.js"]],function(e, v,E){var q=E.arrayMax,D=E.arrayMin,A=E.defined,F=E.destroyObjectProperties,B=E.erase,l=E.extend,k=E.fireEvent,d=E.isNumber,b=E.merge,t=E.objectEach,I=E.pick,x=function(){function d(b,d){this.axis=b;d&&(this.options=d,this.id=d.id)}d.prototype.render=function(){k(this,"render");var g=this,d=g.axis,m=d.horiz,l=d.logarithmic,e=g.options,u=e.label,c=g.label,h=e.to,a=e.from,f=e.value,y=A(a)&&A(h),L=A(f),K=g.svgElem,r=!K,G=[],Q=e.color,w=I(e.zIndex,0),H=e.events;G={"class":"highcharts-plot-"+(y?"band ": "line ")+(e.className||"")};var x={},q=d.chart.renderer,p=y?"bands":"lines";l&&(a=l.log2lin(a),h=l.log2lin(h),f=l.log2lin(f));d.chart.styledMode||(L?(G.stroke=Q||v.neutralColor40,G["stroke-width"]=I(e.width,1),e.dashStyle&&(G.dashstyle=e.dashStyle)):y&&(G.fill=Q||v.highlightColor10,e.borderWidth&&(G.stroke=e.borderColor,G["stroke-width"]=e.borderWidth)));x.zIndex=w;p+="-"+w;(l=d.plotLinesAndBandsGroups[p])||(d.plotLinesAndBandsGroups[p]=l=q.g("plot-"+p).attr(x).add());r&&(g.svgElem=K=q.path().attr(G).add(l)); if(L)G=d.getPlotLinePath({value:f,lineWidth:K.strokeWidth(),acrossPanes:e.acrossPanes});else if(y)G=d.getPlotBandPath(a,h,e);else return;!g.eventsAdded&&H&&(t(H,function(a,c){K.on(c,function(a){H[c].apply(g,[a])})}),g.eventsAdded=!0);(r||!K.d)&&G&&G.length?K.attr({d:G}):K&&(G?(K.show(!0),K.animate({d:G})):K.d&&(K.hide(),c&&(g.label=c=c.destroy())));u&&(A(u.text)||A(u.formatter))&&G&&G.length&&0this.max&&g>this.max;if(n&&m){if(b){var c=n.toString()===m.toString();u=0}for(b=0;bc){n=r;break}if(d[n]&&g.substr(d[n])!=="01-01 00:00:00.000".substr(d[n]))break;"week"!==n&&(r=n)}if(n)var m=b.resolveDTLFormat(f[n]).main;return m};u.prototype.getLabel=function(){var c=this,h=this.chart.renderer,a=this.chart.styledMode,f=this.options,b="tooltip"+(k(f.className)?" "+f.className: ""),g=f.style&&f.style.pointerEvents||(!this.followPointer&&f.stickOnContact?"auto":"none"),d,r=function(){c.inContact=!0},n=function(){var a=c.chart.hoverSeries;c.inContact=!1;if(a&&a.onMouseOut)a.onMouseOut()};if(!this.label){if(this.outside){var m=this.chart.options.chart.style,w=C.getRendererType();this.container=d=v.doc.createElement("div");d.className="highcharts-tooltip-container";l(d,{position:"absolute",top:"1px",pointerEvents:g,zIndex:Math.max(this.options.style&&this.options.style.zIndex|| 0,(m&&m.zIndex||0)+3)});v.doc.body.appendChild(d);this.renderer=h=new w(d,0,0,m,void 0,void 0,h.styledMode)}this.split?this.label=h.g(b):(this.label=h.label("",0,0,f.shape||"callout",null,null,f.useHTML,null,b).attr({padding:f.padding,r:f.borderRadius}),a||this.label.attr({fill:f.backgroundColor,"stroke-width":f.borderWidth}).css(f.style).css({pointerEvents:g}).shadow(f.shadow));a&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index));if(c.outside&&!c.split){var u=this.label, e=u.xSetter,t=u.ySetter;u.xSetter=function(a){e.call(u,c.distance);d.style.left=a+"px"};u.ySetter=function(a){t.call(u,c.distance);d.style.top=a+"px"}}this.label.on("mouseenter",r).on("mouseleave",n).attr({zIndex:8}).add()}return this.label};u.prototype.getPosition=function(c,h,a){var f=this.chart,b=this.distance,g={},d=f.inverted&&a.h||0,r,m=this.outside,k=m?F.documentElement.clientWidth-2*b:f.chartWidth,w=m?Math.max(F.body.scrollHeight,F.documentElement.scrollHeight,F.body.offsetHeight,F.documentElement.offsetHeight, F.documentElement.clientHeight):f.chartHeight,l=f.pointer.getChartPosition(),u=function(p){var g="x"===p;return[p,g?k:w,g?c:h].concat(m?[g?c*l.scaleX:h*l.scaleY,g?l.left-b+(a.plotX+f.plotLeft)*l.scaleX:l.top-b+(a.plotY+f.plotTop)*l.scaleY,0,g?k:w]:[g?c:h,g?a.plotX+f.plotLeft:a.plotY+f.plotTop,g?f.plotLeft:f.plotTop,g?f.plotLeft+f.plotWidth:f.plotTop+f.plotHeight])},e=u("y"),p=u("x"),t=!this.followPointer&&n(a.ttBelow,!f.inverted===!!a.negative),z=function(a,c,f,h,p,r,y){var w=m?"y"===a?b*l.scaleY: b*l.scaleX:b,n=(f-h)/2,k=hu-d?u:u-d);else if(G)g[a]=Math.max(r,p+d+f>c?p:p+d);else return!1},x=function(a,c,f,h,p){var r;pc-b?r=!1:g[a]=pc-h/2?c-h-2:p-f/2;return r},q=function(a){var c=e;e=p;p=c;r=a},R=function(){!1!==z.apply(0,e)?!1!==x.apply(0,p)||r||(q(!0),R()):r?g.x=g.y=0:(q(!0),R())};(f.inverted||1c})&&(c=c.map(function(c){var f=a(c.anchorX,c.anchorY, c.point.isHeader,c.boxWidth,!1);return b(c,{target:f.y,x:f.x})}));f.cleanSplit();v.distribute(c,da);var Y=A,P=A;c.forEach(function(a){var c=a.x,b=a.boxWidth;a=a.isHeader;a||(f.outside&&A+cP&&(P=A+c))});c.forEach(function(a){var c=a.x,b=a.anchorX,h=a.pos,p=a.point.isHeader;h={visibility:"undefined"===typeof h?"hidden":"inherit",x:c,y:h+D,anchorX:b,anchorY:a.anchorY};if(f.outside&&ca[0]?Math.max(Math.abs(a[0]),g.width-a[0]):Math.max(Math.abs(a[0]),g.width);f.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(f):(this.tracker=b.renderer.rect(f).addClass("highcharts-tracker").add(b),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};u.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"')};u.prototype.tooltipFooterHeaderFormatter=function(c,b){var a=b?"footer":"header",f=c.series,h=f.tooltipOptions,g=h.xDateFormat,d=f.xAxis,r=d&&"datetime"===d.options.type&&x(c.key),n=h[a+"Format"];b={isFooter:b,labelConfig:c};t(this,"headerFormatter",b,function(a){r&&!g&&(g=this.getXDateFormat(c,h,d));r&&g&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(a){n=n.replace("{point."+a+"}","{point."+a+":"+g+"}")});f.chart.styledMode&&(n=this.styledModeFormat(n)); a.text=q(n,{point:c,series:f},this.chart)});return b.text};u.prototype.update=function(c){this.destroy();g(!0,this.chart.options.tooltip.userOptions,c);this.init(this.chart,g(!0,this.options,c))};u.prototype.updatePosition=function(c){var b=this.chart,a=b.pointer,f=this.getLabel(),g=c.plotX+b.plotLeft;b=c.plotY+b.plotTop;a=a.getChartPosition();c=(this.options.positioner||this.getPosition).call(this,f.width,f.height,c);if(this.outside){var d=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(f.width+ d,f.height+d,!1);if(1!==a.scaleX||1!==a.scaleY)l(this.container,{transform:"scale("+a.scaleX+", "+a.scaleY+")"}),g*=a.scaleX,b*=a.scaleY;g+=a.left-c.x;b+=a.top-c.y}this.move(Math.round(c.x),Math.round(c.y||0),g,b)};return u}();v.Tooltip=e;return v.Tooltip});P(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(e,v,E,C,D){var q=e.parse,F=v.charts,B=v.noop,l=D.addEvent,k=D.attr,d=D.css,b=D.defined,t=D.extend, I=D.find,x=D.fireEvent,m=D.isNumber,g=D.isObject,n=D.objectEach,J=D.offset,O=D.pick,z=D.splat;e=function(){function u(c,b){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=c;this.hasDragged=!1;this.options=b;this.init(c,b)}u.prototype.applyInactiveState=function(c){var b=[],a;(c||[]).forEach(function(c){a=c.series;b.push(a);a.linkedParent&&b.push(a.linkedParent);a.linkedSeries&&(b=b.concat(a.linkedSeries));a.navigatorSeries&&b.push(a.navigatorSeries)}); this.chart.series.forEach(function(a){-1===b.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};u.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(c){return c()});this.eventsToUnbind=[];v.chartCount||(u.unbindDocumentMouseUp&&(u.unbindDocumentMouseUp=u.unbindDocumentMouseUp()),u.unbindDocumentTouchEnd&&(u.unbindDocumentTouchEnd=u.unbindDocumentTouchEnd()));clearInterval(c.tooltipTimeout);n(c,function(b,a){c[a]=void 0})}; u.prototype.drag=function(c){var b=this.chart,a=b.options.chart,f=this.zoomHor,d=this.zoomVert,n=b.plotLeft,m=b.plotTop,r=b.plotWidth,k=b.plotHeight,l=this.mouseDownX||0,w=this.mouseDownY||0,u=g(a.panning)?a.panning&&a.panning.enabled:a.panning,e=a.panKey&&c[a.panKey+"Key"],t=c.chartX,p=c.chartY,z=this.selectionMarker;if(!z||!z.touch)if(tn+r&&(t=n+r),pm+k&&(p=m+k),this.hasDragged=Math.sqrt(Math.pow(l-t,2)+Math.pow(w-p,2)),10c.options.findNearestPointBy.indexOf("y");c=c.searchPoint(a,f);if((f=g(c,!0)&&c.series)&&!(f=!g(d,!0))){f=d.distX-c.distX;var h=d.dist-c.dist,y=(c.series.group&&c.series.group.zIndex)-(d.series.group&&d.series.group.zIndex);f=0<(0!==f&&b?f:0!==h?h:0!==y?y:d.series.index>c.series.index?-1:1)}f&&(d=c)});return d};u.prototype.getChartCoordinatesFromPoint= function(c,b){var a=c.series,f=a.xAxis;a=a.yAxis;var h=c.shapeArgs;if(f&&a){var g=O(c.clientX,c.plotX),d=c.plotY||0;c.isNode&&h&&m(h.x)&&m(h.y)&&(g=h.x,d=h.y);return b?{chartX:a.len+a.pos-d,chartY:f.len+f.pos-g}:{chartX:g+f.pos,chartY:d+a.pos}}if(h&&h.x&&h.y)return{chartX:h.x,chartY:h.y}};u.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c=this.chart.container,b=J(c);this.chartPosition={left:b.left,top:b.top,scaleX:1,scaleY:1};var a=c.offsetWidth;c=c.offsetHeight; 2u.max&&(a=u.max-R,I=!0);I?(x-= .8*(x-n[y][0]),"number"===typeof q&&(q-=.8*(q-n[y][1])),b()):n[y]=[x,q];p||(d[y]=L-l,d[k]=R);d=p?1/K:K;g[k]=R;g[y]=a;f[p?c?"scaleY":"scaleX":"scale"+w]=K;f["translate"+w]=d*l+(x-d*t)};u.prototype.reset=function(c,b){var a=this.chart,f=a.hoverSeries,g=a.hoverPoint,d=a.hoverPoints,h=a.tooltip,r=h&&h.shared?d:g;c&&r&&z(r).forEach(function(a){a.series.isCartesian&&"undefined"===typeof a.plotX&&(c=!1)});if(c)h&&r&&z(r).length&&(h.refresh(r),h.shared&&d?d.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&& (a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):g&&(g.setState(g.state,!0),a.axes.forEach(function(a){a.crosshair&&g.series[a.coll]===a&&a.drawCrosshair(null,g)})));else{if(g)g.onMouseOut();d&&d.forEach(function(a){a.setState()});if(f)f.onMouseOut();h&&h.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());a.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=a.hoverPoints=a.hoverPoint=null}}; u.prototype.runPointActions=function(c,b){var a=this.chart,f=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,g=f?f.shared:!1,d=b||a.hoverPoint,h=d&&d.series||a.hoverSeries;b=this.getHoverData(d,h,a.series,(!c||"touchmove"!==c.type)&&(!!b||h&&h.directTouch&&this.isDirectTouch),g,c);d=b.hoverPoint;h=b.hoverSeries;var r=b.hoverPoints;b=h&&h.tooltipOptions.followPointer&&!h.tooltipOptions.split;g=g&&h&&!h.noSharedTooltip;if(d&&(d!==a.hoverPoint||f&&f.isHidden)){(a.hoverPoints||[]).forEach(function(a){-1=== r.indexOf(a)&&a.setState()});if(a.hoverSeries!==h)h.onMouseOver();this.applyInactiveState(r);(r||[]).forEach(function(a){a.setState("hover")});a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut");if(!d.series)return;a.hoverPoints=r;a.hoverPoint=d;d.firePointEvent("mouseOver");f&&f.refresh(g?r:d,c)}else b&&f&&!f.isHidden&&(d=f.getAnchor([{}],c),a.isInsidePlot(d[0],d[1],{visiblePlotOnly:!0})&&f.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=l(a.container.ownerDocument, "mousemove",function(a){var c=F[u.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(a)}),this.eventsToUnbind.push(this.unDocMouseMove));a.axes.forEach(function(b){var f=O((b.crosshair||{}).snap,!0),g;f&&((g=a.hoverPoint)&&g.series[b.coll]===b||(g=I(r,function(a){return a.series[b.coll]===b})));g||!f?b.drawCrosshair(c,g):b.hideCrosshair()})};u.prototype.scaleGroups=function(c,b){var a=this.chart;a.series.forEach(function(f){var g=c||f.getPlotBox();f.xAxis&&f.xAxis.zoomEnabled&&f.group&&(f.group.attr(g), f.markerGroup&&(f.markerGroup.attr(g),f.markerGroup.clip(b?a.clipRect:null)),f.dataLabelsGroup&&f.dataLabelsGroup.attr(g))});a.clipRect.attr(b||a.clipBox)};u.prototype.setDOMEvents=function(){var c=this,b=this.chart.container,a=b.ownerDocument;b.onmousedown=this.onContainerMouseDown.bind(this);b.onmousemove=this.onContainerMouseMove.bind(this);b.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(l(b,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(l(b,"mouseleave", this.onContainerMouseLeave.bind(this)));u.unbindDocumentMouseUp||(u.unbindDocumentMouseUp=l(a,"mouseup",this.onDocumentMouseUp.bind(this)));for(var f=this.chart.renderTo.parentElement;f&&"BODY"!==f.tagName;)this.eventsToUnbind.push(l(f,"scroll",function(){delete c.chartPosition})),f=f.parentElement;v.hasTouch&&(this.eventsToUnbind.push(l(b,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(l(b,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})), u.unbindDocumentTouchEnd||(u.unbindDocumentTouchEnd=l(a,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};u.prototype.setHoverChartIndex=function(){var c=this.chart,b=v.charts[O(u.hoverChartIndex,-1)];if(b&&b!==c)b.pointer.onContainerMouseLeave({relatedTarget:!0});b&&b.mouseIsDown||(u.hoverChartIndex=c.index)};u.prototype.touch=function(c,b){var a=this.chart,f;this.setHoverChartIndex();if(1===c.touches.length)if(c=this.normalize(c),(f=a.isInsidePlot(c.chartX-a.plotLeft,c.chartY-a.plotTop, {visiblePlotOnly:!0}))&&!a.openMenu){b&&this.runPointActions(c);if("touchmove"===c.type){b=this.pinchDown;var g=b[0]?4<=Math.sqrt(Math.pow(b[0].chartX-c.chartX,2)+Math.pow(b[0].chartY-c.chartY,2)):!1}O(g,!0)&&this.pinch(c)}else b&&this.reset();else 2===c.touches.length&&this.pinch(c)};u.prototype.touchSelect=function(c){return!(!this.chart.options.chart.zoomBySingleTouch||!c.touches||1!==c.touches.length)};u.prototype.zoomOption=function(c){var b=this.chart,a=b.options.chart;b=b.inverted;var f=a.zoomType|| "";/touch/.test(c.type)&&(f=O(a.pinchType,f));this.zoomX=c=/x/.test(f);this.zoomY=a=/y/.test(f);this.zoomHor=c&&!b||a&&b;this.zoomVert=a&&!b||c&&b;this.hasZoom=c||a};return u}();"";return e});P(e,"Core/MSPointer.js",[e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],function(e,v,E){function q(){var b=[];b.item=function(b){return this[b]};t(x,function(g){b.push({pageX:g.pageX,pageY:g.pageY,target:g.target})});return b}function D(b,d,m,k){var g=F[v.hoverChartIndex||NaN];"touch"!==b.pointerType&& b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!g||(g=g.pointer,k(b),g[d]({type:m,target:b.currentTarget,preventDefault:l,touches:q()}))}var A=this&&this.__extends||function(){var b=function(g,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,g){b.__proto__=g}||function(b,g){for(var d in g)g.hasOwnProperty(d)&&(b[d]=g[d])};return b(g,d)};return function(g,d){function n(){this.constructor=g}b(g,d);g.prototype=null===d?Object.create(d):(n.prototype=d.prototype,new n)}}(),F=e.charts,B= e.doc,l=e.noop,k=e.win,d=E.addEvent,b=E.css,t=E.objectEach,I=E.removeEvent,x={},m=!!k.PointerEvent;return function(g){function n(){return null!==g&&g.apply(this,arguments)||this}A(n,g);n.isRequired=function(){return!(e.hasTouch||!k.PointerEvent&&!k.MSPointerEvent)};n.prototype.batchMSEvents=function(b){b(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown);b(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove);b(B,m?"pointerup":"MSPointerUp", this.onDocumentPointerUp)};n.prototype.destroy=function(){this.batchMSEvents(I);g.prototype.destroy.call(this)};n.prototype.init=function(d,n){g.prototype.init.call(this,d,n);this.hasZoom&&b(d.container,{"-ms-touch-action":"none","touch-action":"none"})};n.prototype.onContainerPointerDown=function(b){D(b,"onContainerTouchStart","touchstart",function(b){x[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};n.prototype.onContainerPointerMove=function(b){D(b,"onContainerTouchMove","touchmove", function(b){x[b.pointerId]={pageX:b.pageX,pageY:b.pageY};x[b.pointerId].target||(x[b.pointerId].target=b.currentTarget)})};n.prototype.onDocumentPointerUp=function(b){D(b,"onDocumentTouchEnd","touchend",function(b){delete x[b.pointerId]})};n.prototype.setDOMEvents=function(){g.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(d)};return n}(v)});P(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"], e["Core/Globals.js"],e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(e,v,E,C,D,A){var q=v.animObject,B=E.format,l=D.defaultOptions,k=A.addEvent,d=A.defined,b=A.erase,t=A.extend,I=A.fireEvent,x=A.getNestedProperty,m=A.isArray,g=A.isFunction,n=A.isNumber,J=A.isObject,O=A.merge,z=A.objectEach,u=A.pick,c=A.syncTimeout,h=A.removeEvent,a=A.uniqueKey;"";v=function(){function f(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options= this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}f.prototype.animateBeforeDestroy=function(){var a=this,c={x:a.startXPos,opacity:0},b,f=a.getGraphicalProps();f.singular.forEach(function(f){b="dataLabel"===f;a[f]=a[f].animate(b?{x:a[f].startXPos,y:a[f].startYPos,opacity:0}:c)});f.plural.forEach(function(c){a[c].forEach(function(c){c.element&&c.animate(t({x:a.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};f.prototype.applyOptions=function(a, c){var b=this.series,g=b.options.pointValKey||b.pointValKey;a=f.prototype.optionsToObject.call(this,a);t(this,a);this.options=this.options?t(this.options,a):a;a.group&&delete this.group;a.dataLabels&&delete this.dataLabels;g&&(this.y=f.prototype.getNestedProperty.call(this,g));this.formatPrefix=(this.isNull=u(this.isValid&&!this.isValid(),null===this.x||!n(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof c&&b.xAxis&&b.xAxis.hasNames&&(this.x=b.xAxis.nameToX(this)); "undefined"===typeof this.x&&b&&(this.x="undefined"===typeof c?b.autoIncrement(this):c);return this};f.prototype.destroy=function(){function a(){if(f.graphic||f.dataLabel||f.dataLabels)h(f),f.destroyElements();for(w in f)f[w]=null}var f=this,g=f.series,d=g.chart;g=g.options.dataSorting;var n=d.hoverPoints,m=q(f.series.chart.renderer.globalAnimation),w;f.legendItem&&d.legend.destroyItem(f);n&&(f.setState(),b(n,f),n.length||(d.hoverPoints=null));if(f===d.hoverPoint)f.onMouseOut();g&&g.enabled?(this.animateBeforeDestroy(), c(a,m.duration)):a();d.pointCount--};f.prototype.destroyElements=function(a){var c=this;a=c.getGraphicalProps(a);a.singular.forEach(function(a){c[a]=c[a].destroy()});a.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.destroy()});delete c[a]})};f.prototype.firePointEvent=function(a,c,b){var f=this,g=this.series.options;(g.point.events[a]||f.options&&f.options.events&&f.options.events[a])&&f.importEvents();"click"===a&&g.allowPointSelect&&(b=function(a){f.select&&f.select(null,a.ctrlKey|| a.metaKey||a.shiftKey)});I(f,a,c,b)};f.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};f.prototype.getGraphicalProps=function(a){var c= this,b=[],f,g={singular:[],plural:[]};a=a||{graphic:1,dataLabel:1};a.graphic&&b.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&b.push("dataLabel","dataLabelUpper","connector");for(f=b.length;f--;){var d=b[f];c[d]&&g.singular.push(d)}["dataLabel","connector"].forEach(function(b){var f=b+"s";a[b]&&c[f]&&g.plural.push(f)});return g};f.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series, point:this,percentage:this.percentage,total:this.total||this.stackTotal}};f.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?x(a,this.options):this[a]};f.prototype.getZone=function(){var a=this.series,c=a.zones;a=a.zoneAxis||"y";var b=0,f;for(f=c[b];this[a]>=f.value;)f=c[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=f&&f.color&&!this.options.color?f.color:this.nonZonedColor;return f};f.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName|| this.graphic.element.nodeName))!==this.shapeType};f.prototype.init=function(c,b,f){this.series=c;this.applyOptions(b,f);this.id=d(this.id)?this.id:a();this.resolveColor();c.chart.pointCount++;I(this,"afterInit");return this};f.prototype.optionsToObject=function(a){var c={},b=this.series,g=b.options.keys,d=g||b.pointArrayMap||["y"],h=d.length,w=0,k=0;if(n(a)||null===a)c[d[0]]=a;else if(m(a))for(!g&&a.length>h&&(b=typeof a[0],"string"===b?c.name=a[0]:"number"===b&&(c.x=a[0]),w++);kg-6&&nw?this.maxItemWidth:a.itemWidth;d&&this.itemX-b+c>w&&(this.itemX=b,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+ h),this.lastLineHeight=0);this.lastItemY=n+this.itemY+h;this.lastLineHeight=Math.max(g,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=c:(this.itemY+=n+g+h,this.lastLineHeight=g);this.offsetWidth=this.widthOption||Math.max((d?this.itemX-b-(a.checkbox?0:m):c)+b,this.offsetWidth)};c.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(c){var b=c&&c.options;c&&J(b.showInLegend,t(b.linkedTo)?!1:void 0,!0)&&(a=a.concat(c.legendItems||("point"===b.legendType? c.data:c)))});m(this,"afterGetAllItems",{allItems:a});return a};c.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)};c.prototype.adjustMargins=function(a,c){var b=this.chart,f=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,h){g.test(d)&&!t(a[h])&&(b[l[h]]=Math.max(b[l[h]],b.legend[(h+1)%2?"legendHeight": "legendWidth"]+[1,-1,-1,1][h]*f[h%2?"x":"y"]+J(f.margin,12)+c[h]+(b.titleOffset[h]||0)))})};c.prototype.proximatePositions=function(){var a=this.chart,c=[],b="left"===this.options.align;this.allItems.forEach(function(f){var d;var h=b;if(f.yAxis){f.xAxis.options.reversed&&(h=!h);f.points&&(d=x(h?f.points:f.points.slice(0).reverse(),function(a){return g(a.plotY)}));h=this.itemMarginTop+f.legendItem.getBBox().height+this.itemMarginBottom;var n=f.yAxis.top-a.plotTop;f.visible?(d=d?d.plotY:f.yAxis.height, d+=n-.3*h):d=n+f.yAxis.height;c.push({target:d,size:h,item:f})}},this);E.distribute(c,a.plotHeight);c.forEach(function(c){c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos})};c.prototype.render=function(){var a=this.chart,c=a.renderer,b=this.group,d=this.box,g=this.options,h=this.padding;this.itemX=h;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=O(g.width,a.spacingBox.width-h);var n=a.spacingBox.width-2*h-g.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0, 2))&&(n/=2);this.maxLegendWidth=this.widthOption||n;b||(this.group=b=c.g("legend").addClass(g.className||"").attr({zIndex:7}).add(),this.contentGroup=c.g().attr({zIndex:1}).add(b),this.scrollGroup=c.g().add(this.contentGroup));this.renderTitle();var k=this.getAllItems();z(k,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});g.reversed&&k.reverse();this.allItems=k;this.display=n=!!k.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight= 0;k.forEach(this.renderItem,this);k.forEach(this.layoutItem,this);k=(this.widthOption||this.offsetWidth)+h;var w=this.lastItemY+this.lastLineHeight+this.titleHeight;w=this.handleOverflow(w);w+=h;d||(this.box=d=c.rect().addClass("highcharts-legend-box").attr({r:g.borderRadius}).add(b),d.isNew=!0);a.styledMode||d.attr({stroke:g.borderColor,"stroke-width":g.borderWidth||0,fill:g.backgroundColor||"none"}).shadow(g.shadow);0h&&!1!==l.enabled?(this.clipHeight=w=Math.max(h-20-this.titleHeight-n,0),this.currentPage=J(this.currentPage,1),this.fullHeight= a,x.forEach(function(a,c){var b=a._legendItemPos[1],f=Math.round(a.legendItem.getBBox().height),d=t.length;if(!d||b-t[d-1]>w&&(z||b)!==t[d-1])t.push(z||b),d++;a.pageIx=d-1;z&&(x[c-1].pageIx=d-1);c===x.length-1&&b+f-t[d-1]>w&&b!==z&&(t.push(b),a.pageIx=d);b!==z&&(z=b)}),k||(k=c.clipRect=d.clipRect(0,n,9999,0),c.contentGroup.clip(k)),R(w),e||(this.nav=e=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,p,p).add(e),q("upTracker").on("click",function(){c.scroll(-1,u)}),this.pager= d.text("",15,10).addClass("highcharts-legend-navigation"),b.styledMode||this.pager.css(l.style),this.pager.add(e),this.down=d.symbol("triangle-down",0,0,p,p).add(e),q("downTracker").on("click",function(){c.scroll(1,u)})),c.scroll(0),a=h):e&&(R(),this.nav=e.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};c.prototype.scroll=function(a,c){var b=this,f=this.chart,d=this.pages,g=d.length,h=this.currentPage+a;a=this.clipHeight;var n=this.options.navigation,k=this.pager,l=this.padding; h>g&&(h=g);0=Math.max(n+g,k.pos)&&h<=Math.min(n+g+d.width,k.pos+k.len)|| (a.isInsidePlot=!1)}!b.ignoreY&&a.isInsidePlot&&(f=m&&(f?m.xAxis:m.yAxis)||{pos:p,len:Infinity},b=b.paneCoordinates?f.pos+c:p+c,b>=Math.max(r+p,f.pos)&&b<=Math.min(r+p+d.height,f.pos+f.len)||(a.isInsidePlot=!1));S(this,"afterIsInsidePlot",a);return a.isInsidePlot};b.prototype.redraw=function(a){S(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],b=this.series,f=this.pointer,d=this.legend,g=this.userOptions.legend,h=this.renderer,r=h.isHidden(),m=[],k=this.isDirtyBox, w=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);n(this.hasRendered?a:!1,this);r&&this.temporaryDisplay();this.layOutTitles();for(a=b.length;a--;){var l=b[a];if(l.options.stacking||l.options.centerInCategory){var u=!0;if(l.isDirty){var e=!0;break}}}if(e)for(a=b.length;a--;)l=b[a],l.options.stacking&&(l.isDirty=!0);b.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),w=!0):g&&(g.labelFormatter||g.labelFormat)&&(w=!0)); a.isDirtyData&&S(a,"updatedData")});w&&d&&d.options.enabled&&(d.render(),this.isDirtyLegend=!1);u&&this.getStacks();c.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(k=!0)});c.forEach(function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,m.push(function(){S(a,"afterSetExtremes",p(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(k||u)&&a.redraw()});k&&this.drawChartBox();S(this,"predraw");b.forEach(function(a){(k||a.isDirty)&&a.visible&& a.redraw();a.isDirtyData=!1});f&&f.reset(!0);h.draw();S(this,"redraw");S(this,"render");r&&this.temporaryDisplay(!0);m.forEach(function(a){a.call()})};b.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}for(var b=this.series,f=N(this.axes,c)||N(this.series,c),d=0;!f&&d=h&&f<=n||r||!w(f))m=!0;b[r?"zoomX":"zoomY"]&&m&&(g=p.zoom(a.min, a.max),p.displayBtn&&(d=!0))});var p=c.resetZoomButton;d&&!p?c.showResetZoom():!d&&V(p)&&(c.resetZoomButton=p.destroy());g&&c.redraw(U(c.options.chart.animation,a&&a.animation,100>c.pointCount))};b.prototype.pan=function(a,c){var b=this,f=b.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var d=b.options.chart,g=b.options.mapNavigation&&b.options.mapNavigation.enabled;d&&d.panning&&(d.panning=c);var p=c.type,h;S(this,"pan",{originalEvent:a},function(){f&&f.forEach(function(a){a.setState()}); var c=b.xAxis;"xy"===p?c=c.concat(b.yAxis):"y"===p&&(c=b.yAxis);var d={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var f=c.horiz,n=a[f?"chartX":"chartY"];f=f?"mouseDownX":"mouseDownY";var r=b[f],m=c.minPointOffset||0,k=c.reversed&&!b.inverted||!c.reversed&&b.inverted?-1:1,w=c.getExtremes(),l=c.toValue(r-n,!0)+m*k,u=c.toValue(r+c.len-n,!0)-(m*k||c.isXAxis&&c.pointRangePadding||0),e=u=k&&l<=u&&(c.setExtremes(r,l,!1,!1,{trigger:"pan"}),b.resetZoomButton||g||r===k||l===u||!p.match("y")||(b.showResetZoom(),c.displayBtn=!1),h=!0),d[f]=n)}});ba(d,function(a,c){b[c]=a});h&&b.redraw(!1);Q(b.container,{cursor:"move"})})};return b}();p(e.prototype,{callbacks:[],collectionsWithInit:{xAxis:[e.prototype.addAxis,[!0]],yAxis:[e.prototype.addAxis,[!1]],series:[e.prototype.addSeries]}, collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}); "";return e});P(e,"Mixins/LegendSymbol.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,v){var q=v.merge,C=v.pick;return e.LegendSymbolMixin={drawRectangle:function(e,q){var A=e.symbolHeight,B=e.options.squareSymbol;q.legendSymbol=this.chart.renderer.rect(B?(e.symbolWidth-A)/2:0,e.baseline-A+1,B?A:e.symbolWidth,A,C(e.options.symbolRadius,A/2)).addClass("highcharts-point").attr({zIndex:3}).add(q.legendGroup)},drawLineMarker:function(e){var A=this.options,F=A.marker,B=e.symbolWidth,l=e.symbolHeight, k=l/2,d=this.chart.renderer,b=this.legendGroup;e=e.baseline-Math.round(.3*e.fontMetrics.b);var t={};this.chart.styledMode||(t={"stroke-width":A.lineWidth||0},A.dashStyle&&(t.dashstyle=A.dashStyle));this.legendLine=d.path([["M",0,e],["L",B,e]]).addClass("highcharts-graph").attr(t).add(b);F&&!1!==F.enabled&&B&&(A=Math.min(C(F.radius,k),k),0===this.symbol.indexOf("url")&&(F=q(F,{width:l,height:l}),A=0),this.legendSymbol=F=d.symbol(this.symbol,B/2-A,e-A,2*A,2*A,F).addClass("highcharts-point").add(b), F.isMarker=!0)}}});P(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Mixins/LegendSymbol.js"],e["Core/DefaultOptions.js"],e["Core/Color/Palette.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(e,v,E,C,D,A,F,B,l,k){var d=e.animObject,b=e.setAnimation,t=v.registerEventOptions,q=E.hasTouch,x=E.svg,m=E.win,g=D.defaultOptions,n=B.seriesTypes,J=k.addEvent, O=k.arrayMax,z=k.arrayMin,u=k.clamp,c=k.cleanRecursively,h=k.correctFloat,a=k.defined,f=k.erase,y=k.error,L=k.extend,K=k.find,r=k.fireEvent,G=k.getNestedProperty,Q=k.isArray,w=k.isNumber,H=k.isString,M=k.merge,T=k.objectEach,p=k.pick,N=k.removeEvent,S=k.splat,aa=k.syncTimeout;e=function(){function e(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions= this.data=this.chart=this._i=void 0}e.prototype.init=function(a,c){r(this,"init",{options:c});var b=this,f=a.series;this.eventsToUnbind=[];b.chart=a;b.options=b.setOptions(c);c=b.options;b.linkedSeries=[];b.bindAxes();L(b,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});t(this,c);var d=c.events;if(d&&d.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;b.getColor();b.getSymbol();b.parallelArrays.forEach(function(a){b[a+"Data"]||(b[a+ "Data"]=[])});b.isCartesian&&(a.hasCartesianSeries=!0);var g;f.length&&(g=f[f.length-1]);b._i=p(g&&g._i,-1)+1;b.opacity=b.options.opacity;a.orderSeries(this.insert(f));c.dataSorting&&c.dataSorting.enabled?b.setDataSortingOptions():b.points||b.data||b.setData(c.data,!1);r(this,"afterInit")};e.prototype.is=function(a){return n[a]&&this instanceof n[a]};e.prototype.insert=function(a){var c=this.options.index,b;if(w(c)){for(b=a.length;b--;)if(c>=p(a[b].options.index,a[b]._i)){a.splice(b+1,0,this);break}-1=== b&&a.unshift(this);b+=1}else a.push(this);return p(b,a.length-1)};e.prototype.bindAxes=function(){var a=this,c=a.options,b=a.chart,f;r(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(d){var g=0;b[d].forEach(function(b){f=b.options;if(c[d]===g&&!f.isInternal||"undefined"!==typeof c[d]&&c[d]===f.id||"undefined"===typeof c[d]&&0===f.index)a.insert(b.series),a[d]=b,b.isDirty=!0;f.isInternal||g++});a[d]||a.optionalAxis===d||y(18,!0,b)})});r(this,"afterBindAxes")};e.prototype.updateParallelArrays= function(a,c){var b=a.series,f=arguments,d=w(c)?function(f){var d="y"===f&&b.toYData?b.toYData(a):a[f];b[f+"Data"][c]=d}:function(a){Array.prototype[c].apply(b[a+"Data"],Array.prototype.slice.call(f,2))};b.parallelArrays.forEach(d)};e.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?r-this.cropStart:r);!g&&d[r]&&d[r].touched&&(r=void 0);return r};e.prototype.updateData=function(c,b){var f=this.options,d=f.dataSorting,g=this.points, p=[],h,n,r,m=this.requireSorting,k=c.length===g.length,e=!0;this.xIncrement=null;c.forEach(function(c,b){var n=a(c)&&this.pointClass.prototype.optionsToObject.call({series:this},c)||{};var e=n.x;if(n.id||w(e)){if(e=this.findPointIndex(n,r),-1===e||"undefined"===typeof e?p.push(c):g[e]&&c!==f.data[e]?(g[e].update(c,!1,null,!1),g[e].touched=!0,m&&(r=e+1)):g[e]&&(g[e].touched=!0),!k||b!==e||d&&d.enabled||this.hasDerivedData)h=!0}else p.push(c)},this);if(h)for(c=g.length;c--;)(n=g[c])&&!n.touched&&n.remove&& n.remove(!1,b);else!k||d&&d.enabled?e=!1:(c.forEach(function(a,c){a!==g[c].y&&g[c].update&&g[c].update(a,!1,null,!1)}),p.length=0);g.forEach(function(a){a&&(a.touched=!1)});if(!e)return!1;p.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=O(this.xData),this.autoIncrement());return!0};e.prototype.setData=function(a,c,b,f){var d=this,g=d.points,h=g&&g.length||0,n,r=d.options,m=d.chart,k=r.dataSorting,e=null,l=d.xAxis; e=r.turboThreshold;var u=this.xData,t=this.yData,z=(n=d.pointArrayMap)&&n.length,x=r.keys,G=0,q=1,R;a=a||[];n=a.length;c=p(c,!0);k&&k.enabled&&(a=this.sortData(a));!1!==f&&n&&h&&!d.cropped&&!d.hasGroupedData&&d.visible&&!d.isSeriesBoosting&&(R=this.updateData(a,b));if(!R){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(a){d[a+"Data"].length=0});if(e&&n>e)if(e=d.getFirstValidPoint(a),w(e))for(b=0;ba?1:0}).forEach(function(a,c){a.x=c},this);b.linkedSeries&&b.linkedSeries.forEach(function(a){var b=a.options,f=b.data;b.dataSorting&&b.dataSorting.enabled|| !f||(f.forEach(function(b,g){f[g]=d(a,b);c[g]&&(f[g].x=c[g].x,f[g].index=g)}),a.setData(f,!1))});return c};e.prototype.getProcessedData=function(a){var c=this.xData,b=this.yData,f=c.length;var d=0;var g=this.xAxis,h=this.options;var p=h.cropThreshold;var n=a||this.getExtremesFromAll||h.getExtremesFromAll,r=this.isCartesian;a=g&&g.val2lin;h=!(!g||!g.logarithmic);var m=this.requireSorting;if(g){g=g.getExtremes();var k=g.min;var e=g.max}if(r&&this.sorted&&!n&&(!p||f>p||this.forceCrop))if(c[f-1] e)c=[],b=[];else if(this.yData&&(c[0]e)){d=this.cropData(this.xData,this.yData,k,e);c=d.xData;b=d.yData;d=d.start;var w=!0}for(p=c.length||1;--p;)if(f=h?a(c[p])-a(c[p-1]):c[p]-c[p-1],0f&&m&&(y(15,!1,this.chart),m=!1);return{xData:c,yData:b,cropped:w,cropStart:d,closestPointRange:l}};e.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData(); this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange};e.prototype.cropData=function(a,c,b,f,d){var g=a.length,h=0,n=g,r;d=p(d,this.cropShoulder);for(r=0;r=b){h=Math.max(0,r-d);break}for(b=r;bf){n=b+d;break}return{xData:a.slice(h,n),yData:c.slice(h,n),start:h,end:n}};e.prototype.generatePoints=function(){var a=this.options,c=a.data,b=this.data,f,d=this.processedXData, g=this.processedYData,h=this.pointClass,p=d.length,n=this.cropStart||0,m=this.hasGroupedData,k=a.keys,e=[],w;a=a.dataGrouping&&a.dataGrouping.groupAll?n:0;b||m||(b=[],b.length=c.length,b=this.data=b);k&&m&&(this.options.keys=!1);for(w=0;w=p&&(d[e-m]||l)<=n;if(t&&l)if(t=u.length)for(;t--;)w(u[t])&&(g[h++]=u[t]);else g[h++]=u}a={dataMin:z(g),dataMax:O(g)};r(this,"afterGetExtremes",{dataExtremes:a});return a};e.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin; this.dataMax=a.dataMax;return a};e.prototype.getFirstValidPoint=function(a){for(var c=null,b=a.length,f=0;null===c&&f=K&&(K=null),M.total=M.stackTotal=N.total,M.percentage=N.total&&M.y/N.total*100,M.stackY=J,this.irregularWidths||N.setOffset(this.pointXOffset||0,this.barW||0));M.yBottom=a(K)?u(n.translate(K,0,1,0,1),-1E5,1E5):null;e&&(J=this.modifyValue(J,M));M.plotY=void 0;w(J)&&(J=n.translate(J,!1,!0,!1,!0),"undefined"!==typeof J&&(M.plotY=u(J,-1E5,1E5)));M.isInside=this.isPointInside(M);M.clientX=z?h(f.translate(I,0,0,0,1,t)):x;M.negative=M[G]<(c[G+"Threshold"]||y||0);M.category= d&&"undefined"!==typeof d[M.x]?d[M.x]:M.x;if(!M.isNull&&!1!==M.visible){"undefined"!==typeof B&&(q=Math.min(q,Math.abs(x-B)));var B=x}M.zone=this.zones.length&&M.getZone();!M.graphic&&this.group&&g&&(M.isNew=!0)}this.closestPointRangePx=q;r(this,"afterTranslate")};e.prototype.getValidPoints=function(a,c,b){var f=this.chart;return(a||this.points||[]).filter(function(a){return c&&!f.isInsidePlot(a.plotX,a.plotY,{inverted:f.inverted})?!1:!1!==a.visible&&(b||!a.isNull)})};e.prototype.getClipBox=function(a, c){var b=this.options,f=this.chart,d=f.inverted,g=this.xAxis,h=g&&this.yAxis,p=f.options.chart.scrollablePlotArea||{};a&&!1===b.clip&&h?a=d?{y:-f.chartWidth+h.len+h.pos,height:f.chartWidth,width:f.chartHeight,x:-f.chartHeight+g.len+g.pos}:{y:-h.pos,height:f.chartHeight,width:f.chartWidth,x:-g.pos}:(a=this.clipBox||f.clipBox,c&&(a.width=f.plotSizeX,a.x=(f.scrollablePixelsX||0)*(p.scrollPositionX||0)));return c?{width:a.width,x:a.x}:a};e.prototype.getSharedClipKey=function(a){if(this.sharedClipKey)return this.sharedClipKey; var c=[a&&a.duration,a&&a.easing,a&&a.defer,this.getClipBox(a).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||a)this.sharedClipKey=c;return c};e.prototype.setClip=function(a){var c=this.chart,b=this.options,f=c.renderer,d=c.inverted,g=this.clipBox,h=this.getClipBox(a),p=this.getSharedClipKey(a),n=c.sharedClips[p],r=c.sharedClips[p+"m"];a&&(h.width=0,d&&(h.x=c.plotHeight+(!1!==b.clip?0:c.plotTop)));n?c.hasLoaded||n.attr(h):(a&&(c.sharedClips[p+"m"]=r=f.clipRect(d?(c.plotSizeX|| 0)+99:-99,d?-c.plotLeft:-c.plotTop,99,d?c.chartWidth:c.chartHeight)),c.sharedClips[p]=n=f.clipRect(h),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||g?n:c.clipRect),this.markerGroup.clip(r);a||(n.count[this.index]&&(delete n.count[this.index],--n.count.length),0===n.count.length&&(g||(c.sharedClips[p]=n.destroy()),r&&(c.sharedClips[p+"m"]=r.destroy())))};e.prototype.animate=function(a){var c=this.chart,b=d(this.options.animation), f=this.sharedClipKey;if(a)this.setClip(b);else if(f){a=c.sharedClips[f];f=c.sharedClips[f+"m"];var g=this.getClipBox(b,!0);a&&a.animate(g,b);f&&f.animate({width:g.width+99,x:g.x-(c.inverted?0:99)},b)}};e.prototype.afterAnimate=function(){this.setClip();r(this,"afterAnimate");this.finishedAnimating=!0};e.prototype.drawPoints=function(){var a=this.points,c=this.chart,b,f,d=this.options.marker,g=this[this.specialGroup]||this.markerGroup,h=this.xAxis,n=p(d.enabled,!h||h.isRadial?!0:null,this.closestPointRangePx>= d.enabledThreshold*d.radius);if(!1!==d.enabled||this._hasPointMarkers)for(b=0;bM.max;a.resetZones&&0===g&&(g=void 0)});this.clips=h}else a.visible&&(r&&r.show(!0),m&&m.show(!0))};e.prototype.invertGroups= function(a){function c(){["group","markerGroup"].forEach(function(c){b[c]&&(f.renderer.isVML&&b[c].attr({width:b.yAxis.len,height:b.xAxis.len}),b[c].width=b.yAxis.len,b[c].height=b.xAxis.len,b[c].invert(b.isRadialSeries?!1:a))})}var b=this,f=b.chart;b.xAxis&&(b.eventsToUnbind.push(J(f,"resize",c)),c(),b.invertGroups=c)};e.prototype.plotGroup=function(c,b,f,d,g){var h=this[c],p=!h;f={visibility:f,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(f.opacity= this.opacity);p&&(this[c]=h=this.chart.renderer.g().add(g));h.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(a(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(h.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);h.attr(f)[p?"attr":"animate"](this.getPlotBox());return h};e.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis;a.inverted&&(c=b,b=this.xAxis);return{translateX:c?c.left: a.plotLeft,translateY:b?b.top:a.plotTop,scaleX:1,scaleY:1}};e.prototype.removeEvents=function(a){a||N(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};e.prototype.render=function(){var a=this,c=a.chart,b=a.options,f=d(b.animation),g=!a.finishedAnimating&&c.renderer.isSVG&&f.duration,h=a.visible?"inherit":"hidden",n=b.zIndex,m=a.hasRendered,k=c.seriesGroup,e=c.inverted;r(this,"render");var w=a.plotGroup("group","series",h,n,k);a.markerGroup= a.plotGroup("markerGroup","markers",h,n,k);g&&a.animate&&a.animate(!0);w.inverted=p(a.invertible,a.isCartesian)?e:!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(e);!1===b.clip||a.sharedClipKey||m||w.clip(c.clipRect);g&&a.animate&&a.animate();m||(g&&f.defer&&(g+=f.defer),a.animationTimeout=aa(function(){a.afterAnimate()},g|| 0));a.isDirty=!1;a.hasRendered=!0;r(a,"afterRender")};e.prototype.redraw=function(){var a=this.chart,c=this.isDirty||this.isDirtyData,b=this.group,f=this.xAxis,d=this.yAxis;b&&(a.inverted&&b.attr({width:a.plotWidth,height:a.plotHeight}),b.animate({translateX:p(f&&f.left,a.plotLeft),translateY:p(d&&d.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};e.prototype.searchPoint=function(a,c){var b=this.xAxis,f=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?b.len- a.chartY+b.pos:a.chartX-b.pos,plotY:d?f.len-a.chartX+f.pos:a.chartY-f.pos},c,a)};e.prototype.buildKDTree=function(a){function c(a,f,d){var g;if(g=a&&a.length){var h=b.kdAxisArray[f%d];a.sort(function(a,c){return a[h]-c[h]});g=Math.floor(g/2);return{point:a[g],left:c(a.slice(0,g),f+1,d),right:c(a.slice(g+1),f+1,d)}}}this.buildingKdTree=!0;var b=this,f=-1k?"left":"right";w=0>k?"right":"left";b[l]&&(l=d(c,b[l],f+1,r),e=l[n]u;)t--;this.updateParallelArrays(l,"splice",t,0,0);this.updateParallelArrays(l,t);m&&l.name&&(m[u]=l.name);k.splice(t,0,a);w&&(this.data.splice(t,0,null),this.processData());"point"===g.legendType&&this.generatePoints();b&& (h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(l,"shift"),k.shift()));!1!==d&&r(this,"addPoint",{point:l});this.isDirtyData=this.isDirty=!0;c&&n.redraw(f)};e.prototype.removePoint=function(a,c,f){var d=this,g=d.data,h=g[a],n=d.points,r=d.chart,m=function(){n&&n.length===g.length&&n.splice(a,1);g.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},"splice",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;c&&r.redraw()};b(f,r);c=p(c,!0);h?h.firePointEvent("remove", null,m):m()};e.prototype.remove=function(a,c,b,f){function d(){g.destroy(f);h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();p(a,!0)&&h.redraw(c)}var g=this,h=g.chart;!1!==b?r(g,"remove",null,d):d()};e.prototype.update=function(a,b){a=c(a,this.userOptions);r(this,"update",{options:a});var f=this,d=f.chart,g=f.userOptions,h=f.initialType||f.type,m=d.options.plotOptions,k=a.type||g.type||d.options.chart.type,e=!(this.hasDerivedData||k&&k!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval|| f.hasOptionChanged("dataGrouping")||f.hasOptionChanged("pointStart")||f.hasOptionChanged("pointInterval")||f.hasOptionChanged("pointIntervalUnit")||f.hasOptionChanged("keys")),w=n[h].prototype,l,u=["eventOptions","navigatorSeries","baseSeries"],t=f.finishedAnimating&&{animation:!1},z={};k=k||h;e&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"), !1!==a.visible&&u.push("area","graph"),f.parallelArrays.forEach(function(a){u.push(a+"Data")}),a.data&&(a.dataSorting&&L(f.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=M(g,t,{index:"undefined"===typeof g.index?f.index:g.index,pointStart:p(m&&m.series&&m.series.pointStart,g.pointStart,f.xData[0])},!e&&{data:f.options.data},a);e&&a.data&&(a.data=f.options.data);u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u);u.forEach(function(a){u[a]=f[a];delete f[a]});g=!1; if(n[k]){if(g=k!==f.type,f.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(f,n[k].prototype);else{m=Object.hasOwnProperty.call(f,"hcEvents")&&f.hcEvents;for(l in w)f[l]=void 0;L(f,n[k].prototype);m?f.hcEvents=m:delete f.hcEvents}}else y(17,!0,d,{missingModuleFor:k});u.forEach(function(a){f[a]=u[a]});f.init(d,a);if(e&&this.points){var H=f.options;!1===H.visible?(z.graphic=1,z.dataLabel=1):f._hasPointLabels||(a=H.marker,k=H.dataLabels,a&&(!1===a.enabled||"symbol"in a)&&(z.graphic= 1),k&&!1===k.enabled&&(z.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(z).length&&a.destroyElements(z),!1===H.showInLegend&&a.legendItem&&d.legend.destroyItem(a))},this)}f.initialType=h;d.linkSeries();g&&f.linkedSeries.length&&(f.isDirtyData=!0);r(this,"afterUpdate");p(b,!0)&&d.redraw(e?void 0:!1)};e.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};e.prototype.hasOptionChanged=function(a){var c= this.options[a],b=this.chart.options.plotOptions,f=this.userOptions[a];return f?c!==f:c!==p(b&&b[this.type]&&b[this.type][a],b&&b.series&&b.series[a],c)};e.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&r(this,"mouseOver");this.setState("hover");a.hoverSeries=this};e.prototype.onMouseOut=function(){var a=this.options,c=this.chart,b=c.tooltip,f=c.hoverPoint;c.hoverSeries=null;if(f)f.onMouseOut(); this&&a.events.mouseOut&&r(this,"mouseOut");!b||this.stickyTracking||b.shared&&!this.noSharedTooltip||b.hide();c.series.forEach(function(a){a.setState("",!0)})};e.prototype.setState=function(a,c){var b=this,f=b.options,d=b.graph,g=f.inactiveOtherPoints,h=f.states,n=f.lineWidth,r=f.opacity,m=p(h[a||"normal"]&&h[a||"normal"].animation,b.chart.options.chart.animation);f=0;a=a||"";if(b.state!==a&&([b.group,b.markerGroup,b.dataLabelsGroup].forEach(function(c){c&&(b.state&&c.removeClass("highcharts-series-"+ b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a,!b.chart.styledMode)){if(h[a]&&!1===h[a].enabled)return;a&&(n=h[a].lineWidth||n+(h[a].lineWidthPlus||0),r=p(h[a].opacity,r));if(d&&!d.dashstyle)for(h={"stroke-width":n},d.animate(h,m);b["zone-graph-"+f];)b["zone-graph-"+f].animate(h,m),f+=1;g||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(a){a&&a.animate({opacity:r},m)})}c&&g&&b.points&&b.setAllPointsToState(a||void 0)};e.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&& c.setState(a)})};e.prototype.setVisible=function(a,c){var b=this,f=b.chart,d=b.legendItem,g=f.options.chart.ignoreHiddenSeries,h=b.visible;var p=(b.visible=a=b.options.visible=b.userOptions.visible="undefined"===typeof a?!h:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(b[a])b[a][p]()});if(f.hoverSeries===b||(f.hoverPoint&&f.hoverPoint.series)===b)b.onMouseOut();d&&f.legend.colorizeItem(b,a);b.isDirty=!0;b.options.stacking&&f.series.forEach(function(a){a.options.stacking&& a.visible&&(a.isDirty=!0)});b.linkedSeries.forEach(function(c){c.setVisible(a,!1)});g&&(f.isDirtyBox=!0);r(b,p);!1!==c&&f.redraw()};e.prototype.show=function(){this.setVisible(!0)};e.prototype.hide=function(){this.setVisible(!1)};e.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);r(this,a?"select":"unselect")};e.prototype.shouldShowTooltip=function(a,c,b){void 0===b&&(b={});b.series=this;b.visiblePlotOnly= !0;return this.chart.isInsidePlot(a,c,b)};e.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:A.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:A.neutralColor20,lineColor:A.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var a= this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}; return e}();L(e.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:C.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:F,requireSorting:!0,sorted:!0});B.series=e;"";"";return e});P(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]], function(e,v,E,C,D,A){var q=e.stop,B=A.addEvent,l=A.createElement,k=A.merge,d=A.pick;B(E,"afterSetChartSize",function(b){var d=this.options.chart.scrollablePlotArea,e=d&&d.minWidth;d=d&&d.minHeight;if(!this.renderer.forExport){if(e){if(this.scrollablePixelsX=e=Math.max(0,e-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=k(this.plotBox);this.plotBox.width=this.plotWidth+=e;this.inverted?this.clipBox.height+=e:this.clipBox.width+=e;var l={1:{name:"right",value:e}}}}else d&& (this.scrollablePixelsY=e=Math.max(0,d-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=k(this.plotBox),this.plotBox.height=this.plotHeight+=e,this.inverted?this.clipBox.width+=e:this.clipBox.height+=e,l={2:{name:"bottom",value:e}});l&&!b.skipAxes&&this.axes.forEach(function(b){l[b.side]?b.getPlotLinePath=function(){var d=l[b.side].name,n=this[d];this[d]=n-l[b.side].value;var m=v.prototype.getPlotLinePath.apply(this,arguments);this[d]=n;return m}:(b.setAxisSize(),b.setAxisTranslation())})}}); B(E,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});E.prototype.setUpScrolling=function(){var b=this,d={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(d.overflowX="auto");this.scrollablePixelsY&&(d.overflowY="auto");this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer= l("div",{className:"highcharts-scrolling"},d,this.scrollingParent);B(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};E.prototype.moveFixedElements=function(){var b=this.container,d=this.fixedRenderer,e=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), k;this.scrollablePixelsX&&!this.inverted?k=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(k=".highcharts-yaxis");k&&e.push(k+":not(.highcharts-radial-axis)",k+"-labels:not(.highcharts-radial-axis-labels)");e.forEach(function(m){[].forEach.call(b.querySelectorAll(m),function(b){(b.namespaceURI===d.SVG_NS?d.box:d.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})}; E.prototype.applyFixed=function(){var b=!this.fixedDiv,k=this.options.chart,e=k.scrollablePlotArea,x=D.getRendererType();b?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(k.style&&k.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=k=new x(this.fixedDiv,this.chartWidth,this.chartHeight, this.options.chart.style),this.scrollableMask=k.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(e.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),B(this,"afterShowResetZoom",this.moveFixedElements),B(this,"afterDrilldown",this.moveFixedElements),B(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();k=this.chartWidth+ (this.scrollablePixelsX||0);x=this.chartHeight+(this.scrollablePixelsY||0);q(this.container);this.container.style.width=k+"px";this.container.style.height=x+"px";this.renderer.boxWrapper.attr({width:k,height:x,viewBox:[0,0,k,x].join(" ")});this.chartBackground.attr({width:k,height:x});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(e.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*e.scrollPositionX),e.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY* e.scrollPositionY));x=this.axisOffset;b=this.plotTop-x[0]-1;e=this.plotLeft-x[3]-1;k=this.plotTop+this.plotHeight+x[2]+1;x=this.plotLeft+this.plotWidth+x[1]+1;var m=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),g=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,k],["L",0,k],["Z"],["M",m,b],["L",this.chartWidth,b],["L",this.chartWidth,k],["L",m,k],["Z"]]:this.scrollablePixelsY?[["M",e,0],["L",e,this.plotTop- 1],["L",x,this.plotTop-1],["L",x,0],["Z"],["M",e,g],["L",e,this.chartHeight],["L",x,this.chartHeight],["L",x,g],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};B(v,"afterInit",function(){this.chart.scrollableDirty=!0});B(C,"show",function(){this.chart.scrollableDirty=!0});""});P(e,"Core/Axis/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Utilities.js"]],function(e,v){var q=e.getDeferredAnimation,C=v.addEvent,D=v.destroyObjectProperties, A=v.fireEvent,F=v.isNumber,B=v.objectEach,l=function(){function k(d){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=d}k.prototype.buildStacks=function(){var d=this.axis,b=d.series,k=d.options.reversedStacks,e=b.length,l;if(!d.isXAxis){this.usePercentage=!1;for(l=e;l--;){var m=b[k?l:e-l-1];m.setStackedPoints();m.setGroupedPoints()}for(l=0;lm&&d.shadow));n&&(n.startX=b.xMap,n.isArea=b.isArea)})};l.prototype.getGraphPath=function(e,d,b){var k=this,l=k.options,x=l.step,m,g=[],n=[],q;e=e||k.points;(m=e.reversed)&&e.reverse();(x={right:1, center:2}[x]||x&&3)&&m&&(x=4-x);e=this.getValidPoints(e,!1,!(l.connectNulls&&!d&&!b));e.forEach(function(m,t){var u=m.plotX,c=m.plotY,h=e[t-1];(m.leftCliff||h&&h.rightCliff)&&!b&&(q=!0);m.isNull&&!A(d)&&0e&&n>l?(n=Math.max(e,l),B=2*l-n):nd&&B>l?(B=Math.max(d,l),n=2*l-B):B=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA;d=a.borderWidth=z(b.borderWidth,d?0:1);var g=a.xAxis,h=a.yAxis,e=b.threshold,n=a.translatedThreshold=h.getThreshold(e),m=z(b.minPointLength,5),k=a.getColumnMetrics(),l=k.width,u=a.barW=Math.max(l,1+2*d),p=a.pointXOffset=k.offset,q=a.dataMin,B=a.dataMax;c.inverted&&(n-=.5);b.pointPadding&&(u=Math.ceil(u));A.prototype.translate.apply(a);a.points.forEach(function(f){var d= z(f.yBottom,n),r=999+Math.abs(d),w=l,H=f.plotX||0;r=t(f.plotY,-r,h.len+r);H+=p;var y=u,G=Math.min(r,d),M=Math.max(r,d)-G;if(m&&Math.abs(M)m?d-m:n-(Q?m:0)}x(f.options.pointWidth)&&(w=y=Math.ceil(f.options.pointWidth),H-=Math.round((w-l)/2));b.centerInCategory&&(H=a.adjustForMissingColumns(H,w,f,k));f.barX=H;f.pointWidth=w;f.tooltipPos=c.inverted?[t(h.len+ h.pos-c.plotLeft-r,h.pos-c.plotLeft,h.len+h.pos-c.plotLeft),g.len+g.pos-c.plotTop-H-y/2,M]:[g.left-c.plotLeft+H+y/2,t(r+h.pos-c.plotTop,h.pos-c.plotTop,h.len+h.pos-c.plotTop),M];f.shapeType=a.pointClass.prototype.shapeType||"rect";f.shapeArgs=a.crispCol.apply(a,f.isNull?[H,n,y,0]:[H,G,y,M])})};h.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};h.prototype.pointAttribs=function(a,c){var b=this.options,f=this.pointAttrToOptions||{};var g=f.stroke|| "borderColor";var h=f["stroke-width"]||"borderWidth",e=a&&a.color||this.color,n=a&&a[g]||b[g]||e,m=a&&a[h]||b[h]||this[h]||0;f=a&&a.options.dashStyle||b.dashStyle;var k=z(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var l=a.getZone();e=a.options.color||l&&(l.color||a.nonZonedColor)||this.color;l&&(n=l.borderColor||n,f=l.dashStyle||f,m=l.borderWidth||m)}c&&a&&(a=O(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||"undefined"!==typeof c&&d(e).brighten(a.brightness).get()|| e,n=a[g]||n,m=a[h]||m,f=a.dashStyle||f,k=z(a.opacity,k));g={fill:e,stroke:n,"stroke-width":m,opacity:k};f&&(g.dashstyle=f);return g};h.prototype.drawPoints=function(){var a=this,c=this.chart,b=a.options,d=c.renderer,g=b.animationLimit||250,h;a.points.forEach(function(f){var e=f.graphic,n=!!e,m=e&&c.pointCount\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});return k}(v);F(C.prototype,{drawTracker:e.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});A(C,"afterTranslate",function(){this.applyJitter()});E.registerSeriesType("scatter",C);"";return C}); P(e,"Mixins/CenteredSeries.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(e,v,E){var q=E.isNumber,D=E.pick,A=E.relativeLength,F=e.deg2rad;return e.CenteredSeriesMixin={getCenter:function(){var e=this.options,l=this.chart,k=2*(e.slicedOffset||0),d=l.plotWidth-2*k,b=l.plotHeight-2*k,t=e.center,q=Math.min(d,b),x=e.size,m=e.innerSize||0;"string"===typeof x&&(x=parseFloat(x));"string"===typeof m&&(m=parseFloat(m));e=[D(t[0],"50%"),D(t[1],"50%"),D(x&&0>x?void 0:e.size, "100%"),D(m&&0>m?void 0:e.innerSize||0,"0%")];!l.angular||this instanceof v||(e[3]=0);for(t=0;4>t;++t)x=e[t],l=2>t||2===t&&/%$/.test(x),e[t]=A(x,[d,b,q,e[2]][t])+(l?k:0);e[3]>e[2]&&(e[3]=e[2]);return e},getStartAndEndRadians:function(e,l){e=q(e)?e:0;l=q(l)&&l>e&&360>l-e?l:e+360;return{start:F*(e+-90),end:F*(l+-90)}}}});P(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,v,E){var q=this&&this.__extends||function(){var d= function(b,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var e in d)d.hasOwnProperty(e)&&(b[e]=d[e])};return d(b,e)};return function(b,e){function k(){this.constructor=b}d(b,e);b.prototype=null===e?Object.create(e):(k.prototype=e.prototype,new k)}}(),D=e.setAnimation,A=E.addEvent,F=E.defined;e=E.extend;var B=E.isNumber,l=E.pick,k=E.relativeLength;E=function(d){function b(){var b=null!==d&&d.apply(this,arguments)||this;b.labelDistance=void 0; b.options=void 0;b.series=void 0;return b}q(b,d);b.prototype.getConnectorPath=function(){var b=this.labelPosition,d=this.series.options.dataLabels,e=d.connectorShape,m=this.connectorShapes;m[e]&&(e=m[e]);return e.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,d)};b.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};b.prototype.haloPath=function(b){var d=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(d.x, d.y,d.r+b,d.r+b,{innerR:d.r-1,start:d.start,end:d.end})};b.prototype.init=function(){v.prototype.init.apply(this,arguments);var b=this;b.name=l(b.name,"Slice");var d=function(d){b.slice("select"===d.type)};A(b,"select",d);A(b,"unselect",d);return b};b.prototype.isValid=function(){return B(this.y)&&0<=this.y};b.prototype.setVisible=function(b,d){var e=this,m=e.series,g=m.chart,n=m.options.ignoreHiddenPoint;d=l(d,n);b!==e.visible&&(e.visible=e.options.visible=b="undefined"===typeof b?!e.visible:b,m.options.data[m.data.indexOf(e)]= e.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(d){if(e[d])e[d][b?"show":"hide"](b)}),e.legendItem&&g.legend.colorizeItem(e,b),b||"hover"!==e.state||e.setState(""),n&&(m.isDirty=!0),d&&g.redraw())};b.prototype.slice=function(b,d,e){var m=this.series;D(e,m.chart);l(d,!0);this.sliced=this.options.sliced=F(b)?b:!this.sliced;m.options.data[m.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())}; return b}(v);e(E.prototype,{connectorShapes:{fixedOffset:function(d,b,e){var k=b.breakAt;b=b.touchingSliceAt;return[["M",d.x,d.y],e.softConnector?["C",d.x+("left"===d.alignment?-5:5),d.y,2*k.x-b.x,2*k.y-b.y,k.x,k.y]:["L",k.x,k.y],["L",b.x,b.y]]},straight:function(d,b){b=b.touchingSliceAt;return[["M",d.x,d.y],["L",b.x,b.y]]},crookedLine:function(d,b,e){b=b.touchingSliceAt;var l=this.series,t=l.center[0],m=l.chart.plotWidth,g=l.chart.plotLeft;l=d.alignment;var n=this.shapeArgs.r;e=k(e.crookDistance, 1);m="left"===l?t+n+(m+g-t-n)*(1-e):g+(t-n)*e;e=["L",m,d.y];t=!0;if("left"===l?m>d.x||mb.x)t=!1;d=[["M",d.x,d.y]];t&&d.push(e);d.push(["L",b.x,b.y]);return d}}});return E});P(e,"Series/Pie/PieSeries.js",[e["Mixins/CenteredSeries.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Mixins/LegendSymbol.js"],e["Core/Color/Palette.js"],e["Series/Pie/PiePoint.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]], function(e,v,E,C,D,A,F,B,l,k){var d=this&&this.__extends||function(){var b=function(d,g){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d])};return b(d,g)};return function(d,g){function e(){this.constructor=d}b(d,g);d.prototype=null===g?Object.create(g):(e.prototype=g.prototype,new e)}}(),b=e.getStartAndEndRadians;E=E.noop;var t=k.clamp,q=k.extend,x=k.fireEvent,m=k.merge,g=k.pick,n=k.relativeLength;k= function(e){function k(){var b=null!==e&&e.apply(this,arguments)||this;b.center=void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}d(k,e);k.prototype.animate=function(b){var d=this,c=d.points,e=d.startAngleRad;b||c.forEach(function(a){var c=a.graphic,b=a.shapeArgs;c&&b&&(c.attr({r:g(a.startR,d.center&&d.center[3]/2),start:e,end:e}),c.animate({r:b.r,start:b.start,end:b.end},d.options.animation))})};k.prototype.drawEmpty=function(){var b=this.startAngleRad,d=this.endAngleRad, c=this.options;if(0===this.total&&this.center){var g=this.center[0];var a=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(g,a,this.center[1]/2,0,b,d).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:l.arc(g,a,this.center[2]/2,0,{start:b,end:d,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":c.borderWidth,fill:c.fillColor||"none",stroke:c.color||D.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};k.prototype.drawPoints= function(){var b=this.chart.renderer;this.points.forEach(function(d){d.graphic&&d.hasNewShapeType()&&(d.graphic=d.graphic.destroy());d.graphic||(d.graphic=b[d.shapeType](d.shapeArgs).add(d.series.group),d.delayedRendering=!0)})};k.prototype.generatePoints=function(){e.prototype.generatePoints.call(this);this.updateTotals()};k.prototype.getX=function(b,d,c){var g=this.center,a=this.radii?this.radii[c.index]||0:g[2]/2;b=Math.asin(t((b-g[1])/(a+c.labelDistance),-1,1));return g[0]+(d?-1:1)*Math.cos(b)* (a+c.labelDistance)+(01.5*Math.PI?H-=2*Math.PI:H<-Math.PI/2&&(H+=2*Math.PI);q.slicedTranslation={translateX:Math.round(Math.cos(H)*h),translateY:Math.round(Math.sin(H)*h)};z=Math.cos(H)*d[2]/ 2;var T=Math.sin(H)*d[2]/2;q.tooltipPos=[d[0]+.7*z,d[1]+.7*T];q.half=H<-Math.PI/2||H>Math.PI/2?1:0;q.angle=H;w=Math.min(a,q.labelDistance/5);q.labelPosition={natural:{x:d[0]+z+Math.cos(H)*q.labelDistance,y:d[1]+T+Math.sin(H)*q.labelDistance},"final":{},alignment:0>q.labelDistance?"center":q.half?"right":"left",connectorPosition:{breakAt:{x:d[0]+z+Math.cos(H)*w,y:d[1]+T+Math.sin(H)*w},touchingSliceAt:{x:d[0]+z,y:d[1]+T}}}}x(this,"afterTranslate")};k.prototype.updateTotals=function(){var b,d=0,c=this.points, g=c.length,a=this.options.ignoreHiddenPoint;for(b=0;bl){z(b,function(a,c){return(c.rank||0)-(a.rank||0)});for(m=f=0;m<=l;)m+=b[f].size,f++;k=b.splice(f-1,b.length)}z(b,a);for(b=b.map(function(a){return{size:a.size,targets:[a.target],align:n(a.align,.5)}});e;){for(f=b.length;f--;)e= b[f],m=(Math.min.apply(0,e.targets)+Math.max.apply(0,e.targets))/2,e.pos=d(m-e.size*e.align,0,c-e.size);f=b.length;for(e=!1;f--;)0b[f].pos&&(b[f-1].size+=b[f].size,b[f-1].targets=b[f-1].targets.concat(b[f].targets),b[f-1].align=.5,b[f-1].pos+b[f-1].size>c&&(b[f-1].pos=c-b[f-1].size),b.splice(f,1),e=!0)}h.push.apply(h,k);f=0;b.some(function(a){var b=0;if(a.targets.some(function(){h[f].pos=a.pos+b;if("undefined"!==typeof g&&Math.abs(h[f].pos-h[f].target)>g)return h.slice(0, f+1).forEach(function(a){delete a.pos}),h.reducedLen=(h.reducedLen||c)-.1*c,h.reducedLen>.1*c&&E.distribute(h,c,g),!0;b+=h[f].size;f++}))return!0});z(h,a)};D.prototype.drawDataLabels=function(){function d(a,c){var b=c.filter;return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function c(a,c){var b=[],d;if(x(a)&&!x(c))b=a.map(function(a){return m(a,c)});else if(x(c)&&!x(a))b=c.map(function(c){return m(a, c)});else if(x(a)||x(c))for(d=Math.max(a.length,c.length);d--;)b[d]=m(a[d],c[d]);else b=m(a,c);return b}var e=this,a=e.chart,f=e.options,k=f.dataLabels,t=e.points,z,r=e.hasRendered||0,G=k.animation;G=k.defer?q(a,G,e):{defer:0,duration:0};var Q=a.renderer;k=c(c(a.options.plotOptions&&a.options.plotOptions.series&&a.options.plotOptions.series.dataLabels,a.options.plotOptions&&a.options.plotOptions[e.type]&&a.options.plotOptions[e.type].dataLabels),k);I(this,"drawDataLabels");if(x(k)||k.enabled||e._hasPointLabels){var w= e.plotGroup("dataLabelsGroup","data-labels",r?"inherit":"hidden",k.zIndex||6);w.attr({opacity:+r});!r&&(r=e.dataLabelsGroup)&&(e.visible&&w.show(!0),r[f.animation?"animate":"attr"]({opacity:1},G));t.forEach(function(h){z=O(c(k,h.dlOptions||h.options&&h.options.dataLabels));z.forEach(function(c,k){var p=c.enabled&&(!h.isNull||h.dataLabelOnNull)&&d(h,c),m=h.dataLabels?h.dataLabels[k]:h.dataLabel,r=h.connectors?h.connectors[k]:h.connector,u=n(c.distance,h.labelDistance),q=!m;if(p){var t=h.getLabelConfig(); var z=n(c[h.formatPrefix+"Format"],c.format);t=b(z)?l(z,t,a):(c[h.formatPrefix+"Formatter"]||c.formatter).call(t,c);z=c.style;var y=c.rotation;a.styledMode||(z.color=n(c.color,z.color,e.color,C.neutralColor100),"contrast"===z.color?(h.contrastColor=Q.getContrast(h.color||e.color),z.color=!b(u)&&c.inside||0>u||f.stacking?h.contrastColor:C.neutralColor100):delete h.contrastColor,f.cursor&&(z.cursor=f.cursor));var H={r:c.borderRadius||0,rotation:y,padding:c.padding,zIndex:1};a.styledMode||(H.fill=c.backgroundColor, H.stroke=c.borderColor,H["stroke-width"]=c.borderWidth);g(H,function(a,c){"undefined"===typeof a&&delete H[c]})}!m||p&&b(t)?p&&b(t)&&(m?H.text=t:(h.dataLabels=h.dataLabels||[],m=h.dataLabels[k]=y?Q.text(t,0,-9999,c.useHTML).addClass("highcharts-data-label"):Q.label(t,0,-9999,c.shape,null,null,c.useHTML,null,"data-label"),k||(h.dataLabel=m),m.addClass(" highcharts-data-label-color-"+h.colorIndex+" "+(c.className||"")+(c.useHTML?" highcharts-tracker":""))),m.options=c,m.attr(H),a.styledMode||m.css(z).shadow(c.shadow), m.added||m.add(w),c.textPath&&!c.useHTML&&(m.setTextPath(h.getDataLabelPath&&h.getDataLabelPath(m)||h.graphic,c.textPath),h.dataLabelPath&&!c.textPath.enabled&&(h.dataLabelPath=h.dataLabelPath.destroy())),e.alignDataLabel(h,m,c,null,q)):(h.dataLabel=h.dataLabel&&h.dataLabel.destroy(),h.dataLabels&&(1===h.dataLabels.length?delete h.dataLabels:delete h.dataLabels[k]),k||delete h.dataLabel,r&&(h.connector=h.connector.destroy(),h.connectors&&(1===h.connectors.length?delete h.connectors:delete h.connectors[k])))})})}I(this, "afterDrawDataLabels")};D.prototype.alignDataLabel=function(b,c,d,a,f){var g=this,e=this.chart,h=this.isCartesian&&e.inverted,k=this.enabledDataSorting,m=n(b.dlBox&&b.dlBox.centerX,b.plotX,-9999),l=n(b.plotY,-9999),w=c.getBBox(),u=d.rotation,q=d.align,z=e.isInsidePlot(m,Math.round(l),{inverted:h,paneCoordinates:!0,series:g}),p="justify"===n(d.overflow,k?"none":"justify"),x=this.visible&&!1!==b.visible&&(b.series.forceDL||k&&!p||z||n(d.inside,!!this.options.stacking)&&a&&e.isInsidePlot(m,h?a.x+1:a.y+ a.height-1,{inverted:h,paneCoordinates:!0,series:g}));var B=function(a){k&&g.xAxis&&!p&&g.setDataLabelStartPos(b,c,f,z,a)};if(x){var A=e.renderer.fontMetrics(e.styledMode?void 0:d.style.fontSize,c).b;a=t({x:h?this.yAxis.len-l:m,y:Math.round(h?this.xAxis.len-m:l),width:0,height:0},a);t(d,{width:w.width,height:w.height});u?(p=!1,m=e.renderer.rotCorr(A,u),m={x:a.x+(d.x||0)+a.width/2+m.x,y:a.y+(d.y||0)+{top:0,middle:.5,bottom:1}[d.verticalAlign]*a.height},B(m),c[f?"attr":"animate"](m).attr({align:q}), B=(u+720)%360,B=180B,"left"===q?m.y-=B?w.height:0:"center"===q?(m.x-=w.width/2,m.y-=w.height/2):"right"===q&&(m.x-=w.width,m.y-=B?0:w.height),c.placed=!0,c.alignAttr=m):(B(a),c.align(d,void 0,a),m=c.alignAttr);p&&0<=a.height?this.justifyDataLabel(c,d,m,w,a,f):n(d.crop,!0)&&(x=e.isInsidePlot(m.x,m.y,{paneCoordinates:!0,series:g})&&e.isInsidePlot(m.x+w.width,m.y+w.height,{paneCoordinates:!0,series:g}));if(d.shape&&!u)c[f?"attr":"animate"]({anchorX:h?e.plotWidth-b.plotY:b.plotX,anchorY:h?e.plotHeight- b.plotX:b.plotY})}f&&k&&(c.placed=!1);x||k&&!p||(c.hide(!0),c.placed=!1)};D.prototype.setDataLabelStartPos=function(b,c,d,a,f){var g=this.chart,e=g.inverted,h=this.xAxis,n=h.reversed,m=e?c.height/2:c.width/2;b=(b=b.pointWidth)?b/2:0;h=e?f.x:n?-m-b:h.width-m+b;f=e?n?this.yAxis.height-m+b:-m-b:f.y;c.startXPos=h;c.startYPos=f;a?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);g.hasRendered&&(d&&c.attr({x:c.startXPos,y:c.startYPos}), c.placed=!0)};D.prototype.justifyDataLabel=function(b,c,d,a,f,g){var e=this.chart,h=c.align,n=c.verticalAlign,m=b.box?0:b.padding||0,k=c.x;k=void 0===k?0:k;var l=c.y;var u=void 0===l?0:l;l=(d.x||0)+m;if(0>l){"right"===h&&0<=k?(c.align="left",c.inside=!0):k-=l;var q=!0}l=(d.x||0)+a.width-m;l>e.plotWidth&&("left"===h&&0>=k?(c.align="right",c.inside=!0):k+=e.plotWidth-l,q=!0);l=d.y+m;0>l&&("bottom"===n&&0<=u?(c.verticalAlign="top",c.inside=!0):u-=l,q=!0);l=(d.y||0)+a.height-m;l>e.plotHeight&&("top"=== n&&0>=u?(c.verticalAlign="bottom",c.inside=!0):u+=e.plotHeight-l,q=!0);q&&(c.x=k,c.y=u,b.placed=!g,b.align(c,void 0,f));return q};A.pie&&(A.pie.prototype.dataLabelPositioners={radialDistributionY:function(b){return b.top+b.distributeBox.pos},radialDistributionX:function(b,c,d,a){return b.getX(dc.bottom-2?a:d,c.half,c)},justify:function(b,c,d){return d[0]+(b.half?-1:1)*(c+b.labelDistance)},alignToPlotEdges:function(b,c,d,a){b=b.getBBox().width;return c?b+a:d-b-a},alignToConnectors:function(b, c,d,a){var f=0,g;b.forEach(function(a){g=a.dataLabel.getBBox().width;g>f&&(f=g)});return c?f+a:d-f-a}},A.pie.prototype.drawDataLabels=function(){var d=this,c=d.data,g,a=d.chart,f=d.options.dataLabels||{},e=f.connectorPadding,l,q=a.plotWidth,r=a.plotHeight,t=a.plotLeft,z=Math.round(a.chartWidth/3),w,H=d.center,x=H[2]/2,T=H[1],p,N,B,A,v=[[],[]],I,J,F,O,P=[0,0,0,0],U=d.dataLabelPositioners,W;d.visible&&(f.enabled||d._hasPointLabels)&&(c.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&& (a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),D.prototype.drawDataLabels.apply(d),c.forEach(function(a){a.dataLabel&&(a.visible?(v[a.half].push(a),a.dataLabel._pos=null,!b(f.style.width)&&!b(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>z&&(a.dataLabel.css({width:Math.round(.7*z)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&& delete a.dataLabels))}),v.forEach(function(c,h){var m=c.length,k=[],l;if(m){d.sortByAngle(c,h-.5);if(0q-e&&0===h&&(w=Math.round(I+N-q+e),P[1]=Math.max(w,P[1])),0>J-A/2?P[0]=Math.max(Math.round(-J+A/2),P[0]):J+A/2>r&&(P[2]=Math.max(Math.round(J+A/2-r),P[2])),p.sideOverflow=w)}}}),0===k(P)||this.verifyDataLabelOverflow(P))&&(this.placeDataLabels(),this.points.forEach(function(c){W= m(f,c.options.dataLabels);if(l=n(W.connectorWidth,1)){var b;w=c.connector;if((p=c.dataLabel)&&p._pos&&c.visible&&0n(this.translatedThreshold,e.yAxis.len)),l=n(d.inside,!!this.options.stacking);h&&(a=m(h),0>a.y&&(a.height+=a.y,a.y=0),h=a.y+a.height-e.yAxis.len,0=B.x+B.width||A.x+A.width<=B.x||A.y>=B.y+B.height||A.y+A.height<=B.y||((n.labelrank=B(e.minWidth,0)&&this.chartHeight>=B(e.minHeight,0)}).call(this)&&d.push(b._id)};b.prototype.setResponsive=function(b,d){var e=this.options.responsive,m=this.currentResponsive,g=[];!d&& e&&e.rules&&e.rules.forEach(function(b){"undefined"===typeof b._id&&(b._id=k());this.matchResponsiveRule(b,g)},this);d=A.apply(void 0,g.map(function(b){return E((e||{}).rules||[],function(d){return d._id===b})}).map(function(b){return b&&b.chartOptions}));d.isResponsiveOptions=!0;g=g.toString()||void 0;g!==(m&&m.ruleIds)&&(m&&this.update(m.undoOptions,b,!0),g?(m=this.currentOptions(d),m.isResponsiveOptions=!0,this.currentResponsive={ruleIds:g,mergedOptions:d,undoOptions:m},this.update(d,b,!0)):this.currentResponsive= void 0)};return b}();e=function(){function b(){}b.compose=function(b){q(b.prototype,d.prototype);return b};return b}();"";"";return e});P(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/DefaultOptions.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/FormatUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Renderer/HTML/HTMLRenderer.js"], e["Core/Axis/Axis.js"],e["Core/Axis/PlotLineOrBand.js"],e["Core/Axis/Tick.js"],e["Core/Pointer.js"],e["Core/MSPointer.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],e["Core/Time.js"]],function(e,v,E,C,D,A,F,B,l,k,d,b,t,I,x,m,g,n,J,O,z){e.animate=D.animate;e.animObject=D.animObject;e.getDeferredAnimation=D.getDeferredAnimation;e.setAnimation=D.setAnimation;e.stop=D.stop;e.timers=C.timers;e.AST=A;e.Axis=b;e.Chart=g;e.chart=g.chart;e.Fx=C;e.PlotLineOrBand= t;e.Pointer=m.isRequired()?m:x;e.Series=n;e.SVGElement=B;e.SVGRenderer=l;e.Tick=I;e.Time=z;e.Color=O;e.color=O.parse;d.compose(l);k.compose(B);e.defaultOptions=E.defaultOptions;e.getOptions=E.getOptions;e.time=E.defaultTime;e.setOptions=E.setOptions;e.dateFormat=F.dateFormat;e.format=F.format;e.numberFormat=F.numberFormat;e.addEvent=v.addEvent;e.arrayMax=v.arrayMax;e.arrayMin=v.arrayMin;e.attr=v.attr;e.clearTimeout=v.clearTimeout;e.correctFloat=v.correctFloat;e.createElement=v.createElement;e.css= v.css;e.defined=v.defined;e.destroyObjectProperties=v.destroyObjectProperties;e.discardElement=v.discardElement;e.erase=v.erase;e.error=v.error;e.extend=v.extend;e.extendClass=v.extendClass;e.find=v.find;e.fireEvent=v.fireEvent;e.getMagnitude=v.getMagnitude;e.getStyle=v.getStyle;e.inArray=v.inArray;e.isArray=v.isArray;e.isClass=v.isClass;e.isDOMElement=v.isDOMElement;e.isFunction=v.isFunction;e.isNumber=v.isNumber;e.isObject=v.isObject;e.isString=v.isString;e.keys=v.keys;e.merge=v.merge;e.normalizeTickInterval= v.normalizeTickInterval;e.objectEach=v.objectEach;e.offset=v.offset;e.pad=v.pad;e.pick=v.pick;e.pInt=v.pInt;e.relativeLength=v.relativeLength;e.removeEvent=v.removeEvent;e.splat=v.splat;e.stableSort=v.stableSort;e.syncTimeout=v.syncTimeout;e.timeUnits=v.timeUnits;e.uniqueKey=v.uniqueKey;e.useSerialIds=v.useSerialIds;e.wrap=v.wrap;J.compose(g);return e});P(e,"Series/XRange/XRangePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,v,E){var q=this&& this.__extends||function(){var e=function(q,v){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var k in l)l.hasOwnProperty(k)&&(e[k]=l[k])};return e(q,v)};return function(q,v){function B(){this.constructor=q}e(q,v);q.prototype=null===v?Object.create(v):(B.prototype=v.prototype,new B)}}();E=E.extend;v=function(v){function A(){var e=null!==v&&v.apply(this,arguments)||this;e.options=void 0;e.series=void 0;return e}q(A,v);A.getColorByCategory=function(e, q){var l=e.options.colors||e.chart.options.colors;e=q.y%(l?l.length:e.chart.options.chart.colorCount);return{colorIndex:e,color:l&&l[e]}};A.prototype.resolveColor=function(){var e=this.series;if(e.options.colorByPoint&&!this.options.color){var q=A.getColorByCategory(e,this);e.chart.styledMode||(this.color=q.color);this.options.colorIndex||(this.colorIndex=q.colorIndex)}else this.color||(this.color=e.color)};A.prototype.init=function(){e.prototype.init.apply(this,arguments);this.y||(this.y=0);return this}; A.prototype.setState=function(){e.prototype.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};A.prototype.getLabelConfig=function(){var q=e.prototype.getLabelConfig.call(this),B=this.series.yAxis.categories;q.x2=this.x2;q.yCategory=this.yCategory=B&&B[this.y];return q};A.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return A}(v.seriesTypes.column.prototype.pointClass);E(v.prototype,{tooltipDateKeys:["x","x2"]});return v}); P(e,"Series/XRange/XRangeComposition.js",[e["Core/Axis/Axis.js"],e["Core/Utilities.js"]],function(e,v){var q=v.addEvent,C=v.pick;q(e,"afterGetSeriesExtremes",function(){var e=this.series,q;if(this.isXAxis){var v=C(this.dataMax,-Number.MAX_VALUE);e.forEach(function(e){e.x2Data&&e.x2Data.forEach(function(e){e>v&&(v=e,q=!0)})});q&&(this.dataMax=v)}})});P(e,"Series/XRange/XRangeSeries.js",[e["Core/Globals.js"],e["Core/Color/Color.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"],e["Series/XRange/XRangePoint.js"]], function(e,v,E,C,D){var q=this&&this.__extends||function(){var b=function(d,g){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d])};return b(d,g)};return function(d,g){function e(){this.constructor=d}b(d,g);d.prototype=null===g?Object.create(g):(e.prototype=g.prototype,new e)}}(),F=v.parse,B=E.series,l=E.seriesTypes.column,k=l.prototype,d=C.clamp,b=C.correctFloat,t=C.defined;v=C.extend;var I=C.find,x= C.isNumber,m=C.isObject,g=C.merge,n=C.pick;C=function(e){function v(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}q(v,e);v.prototype.init=function(){l.prototype.init.apply(this,arguments);this.options.stacking=void 0};v.prototype.getColumnMetrics=function(){function b(){d.series.forEach(function(c){var a=c.xAxis;c.xAxis=c.yAxis;c.yAxis=a})}var d=this.chart;b();var c=k.getColumnMetrics.call(this);b();return c};v.prototype.cropData=function(b, d,c,g){d=B.prototype.cropData.call(this,this.x2Data,d,c,g);d.xData=b.slice(d.start,d.end);return d};v.prototype.findPointIndex=function(b){var d=this.cropped,c=this.cropStart,g=this.points,a=b.id;if(a)var f=(f=I(g,function(c){return c.id===a}))?f.index:void 0;"undefined"===typeof f&&(f=(f=I(g,function(a){return a.x===b.x&&a.x2===b.x2&&!a.touched}))?f.index:void 0);d&&x(f)&&x(c)&&f>=c&&(f-=c);return f};v.prototype.translatePoint=function(b){var e=this.xAxis,c=this.yAxis,h=this.columnMetrics,a=this.options, f=a.minPointLength||0,k=(b.shapeArgs&&b.shapeArgs.width||0)/2,l=this.pointXOffset=h.offset,q=b.plotX,r=n(b.x2,b.x+(b.len||0)),z=e.translate(r,0,0,0,1);r=Math.abs(z-q);var Q=this.chart.inverted,w=n(a.borderWidth,1)%2/2,H=h.offset,M=Math.round(h.width);f&&(f-=r,0>f&&(f=0),q-=f/2,z+=f/2);q=Math.max(q,-10);z=d(z,-10,e.len+10);t(b.options.pointWidth)&&(H-=(Math.ceil(b.options.pointWidth)-M)/2,M=Math.ceil(b.options.pointWidth));a.pointPlacement&&x(b.plotY)&&c.categories&&(b.plotY=c.translate(b.y,0,1,0, 1,a.pointPlacement));a={x:Math.floor(Math.min(q,z))+w,y:Math.floor(b.plotY+H)+w,width:Math.round(Math.abs(z-q)),height:M,r:this.options.borderRadius};b.shapeArgs=a;Q?b.tooltipPos[1]+=l+k:b.tooltipPos[0]-=k+l-a.width/2;k=a.x;l=k+a.width;0>k||l>e.len?(k=d(k,0,e.len),l=d(l,0,e.len),f=l-k,b.dlBox=g(a,{x:k,width:l-k,centerX:f?f/2:null})):b.dlBox=null;k=b.tooltipPos;l=Q?1:0;f=Q?0:1;h=this.columnMetrics?this.columnMetrics.offset:-h.width/2;k[l]=Q?k[l]+a.width/2:k[l]+(e.reversed?-1:0)*a.width;k[f]=d(k[f]+ (Q?-1:1)*h,0,c.len-1);if(c=b.partialFill)m(c)&&(c=c.amount),x(c)||(c=0),b.partShapeArgs=g(a,{r:this.options.borderRadius}),q=Math.max(Math.round(r*c+b.plotX-q),0),b.clipRectArgs={x:e.reversed?a.x+r-q:a.x,y:a.y,width:q,height:a.height}};v.prototype.translate=function(){k.translate.apply(this,arguments);this.points.forEach(function(b){this.translatePoint(b)},this)};v.prototype.drawPoint=function(b,d){var c=this.options,e=this.chart.renderer,a=b.graphic,f=b.shapeType,k=b.shapeArgs,l=b.partShapeArgs, u=b.clipRectArgs,r=b.partialFill,t=c.stacking&&!c.borderRadius,q=b.state,w=c.states[q||"normal"]||{},H="undefined"===typeof q?"attr":d;q=this.pointAttribs(b,q);w=n(this.chart.options.chart.animation,w.animation);if(b.isNull||!1===b.visible)a&&(b.graphic=a.destroy());else{if(a)a.rect[d](k);else b.graphic=a=e.g("point").addClass(b.getClassName()).add(b.group||this.group),a.rect=e[f](g(k)).addClass(b.getClassName()).addClass("highcharts-partfill-original").add(a);l&&(a.partRect?(a.partRect[d](g(l)), a.partialClipRect[d](g(u))):(a.partialClipRect=e.clipRect(u.x,u.y,u.width,u.height),a.partRect=e[f](l).addClass("highcharts-partfill-overlay").add(a).clip(a.partialClipRect)));this.chart.styledMode||(a.rect[d](q,w).shadow(c.shadow,null,t),l&&(m(r)||(r={}),m(c.partialFill)&&(r=g(c.partialFill,r)),b=r.fill||F(q.fill).brighten(-.3).get()||F(b.color||this.color).brighten(-.3).get(),q.fill=b,a.partRect[H](q,w).shadow(c.shadow,null,t)))}};v.prototype.drawPoints=function(){var b=this,d=b.getAnimationVerb(); b.points.forEach(function(c){b.drawPoint(c,d)})};v.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};v.prototype.isPointInside=function(b){var d=b.shapeArgs,c=b.plotX,g=b.plotY;return d?"undefined"!==typeof c&&"undefined"!==typeof g&&0<=g&&g<=this.yAxis.len&&0<=(d.x||0)+(d.width||0)&&c<=this.xAxis.len:e.prototype.isPointInside.apply(this,arguments)};v.defaultOptions=g(l.defaultOptions,{colorByPoint:!0,dataLabels:{formatter:function(){var d= this.point.partialFill;m(d)&&(d=d.amount);if(x(d)&&0{point.x} - {point.x2}
',pointFormat:'\u25cf {series.name}: {point.yCategory}
'},borderRadius:3,pointRange:0});return v}(l);v(C.prototype,{type:"xrange",parallelArrays:["x","x2","y"],requireSorting:!1,animate:B.prototype.animate,cropShoulder:1,getExtremesFromAll:!0,autoIncrement:e.noop, buildKDTree:e.noop,pointClass:D});E.registerSeriesType("xrange",C);"";return C});P(e,"Series/Gantt/GanttPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,v){var q=this&&this.__extends||function(){var e=function(q,v){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var k in l)l.hasOwnProperty(k)&&(e[k]=l[k])};return e(q,v)};return function(q,v){function B(){this.constructor=q}e(q,v);q.prototype=null===v?Object.create(v): (B.prototype=v.prototype,new B)}}(),C=v.pick;return function(e){function v(){var q=null!==e&&e.apply(this,arguments)||this;q.options=void 0;q.series=void 0;return q}q(v,e);v.setGanttPointAliases=function(e){function q(l,k){"undefined"!==typeof k&&(e[l]=k)}q("x",C(e.start,e.x));q("x2",C(e.end,e.x2));q("partialFill",C(e.completed,e.partialFill))};v.prototype.applyOptions=function(q,B){q=e.prototype.applyOptions.call(this,q,B);v.setGanttPointAliases(q);return q};v.prototype.isValid=function(){return("number"=== typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return v}(e.seriesTypes.xrange.prototype.pointClass)});P(e,"Core/Axis/BrokenAxis.js",[e["Core/Axis/Axis.js"],e["Core/Series/Series.js"],e["Extensions/Stacking.js"],e["Core/Utilities.js"]],function(e,v,E,C){var q=C.addEvent,A=C.find,F=C.fireEvent,B=C.isArray,l=C.isNumber,k=C.pick,d;(function(b){function d(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks, !1)}function I(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function x(){var b=this.brokenAxis;if(b&&b.hasBreaks){for(var c=this.tickPositions,d=this.tickPositions.info,a=[],f=0;fc.to||g>c.from&&mc.from&&mc.from&&m>c.to&&ma&&c>=this.basePointRange&&(a=c),g=void 0;f--;)g&&!1!== g.visible||(g=b[f+1]),c=b[f],!1!==g.visible&&!1!==c.visible&&(g.x-c.x>a&&(g=(c.x+g.x)/2,b.splice(f+1,0,{isNull:!0,x:g}),d.stacking&&this.options.stacking&&(g=d.stacking.stacks[this.stackKey][g]=new E(d,d.options.stackLabels,!1,g,this.stack),g.total=0)),g=c);return this.getGraphPath(b)}b.compose=function(b,c){if(-1===b.keepProps.indexOf("brokenAxis")){b.keepProps.push("brokenAxis");var e=v.prototype;e.drawBreaks=J;e.gappedPath=D;q(b,"init",m);q(b,"afterInit",d);q(b,"afterSetTickPositions",x);q(b,"afterSetOptions", I);q(c,"afterGeneratePoints",g);q(c,"afterRender",n)}return b};var z=function(){function b(c){this.hasBreaks=!1;this.axis=c}b.isInBreak=function(c,b){var a=c.repeat||Infinity,d=c.from,g=c.to-c.from;b=b>=d?(b-d)%a:a-(d-b)%a;return c.inclusive?b<=g:b=c)break;else f.to=c)break;else if(b.isInBreak(g,c)){a-=c-g.from;break}}return a};b.prototype.findBreakAt=function(c,b){return A(b,function(a){return a.fromq;)x-=n;for(;xa?h.hide():h.show()),(h=this.ticks[c].label)&&(c-d>a?h.hide():h.show()),(b=this.ticks[c].mark)&&(c-dg&&!a.startOnTick&&(b[0]=g),f>e&&f-hn?m:n;t=t+1+k.descendants;B=Math.max(k.height+1,B);return k});k&&(k.start=C(k.start,g),k.end=C(k.end,n));q(v,{children:m,descendants:t,height:B});"function"===typeof x&&x(v,b);return v};return{getListOfParents:D,getNode:A,getTree:function(e,q){var l=e.map(function(e){return e.id});e=D(e,l);return A("",null,1,null,e,q)}}});P(e,"Core/Axis/TreeGridTick.js", [e["Core/Color/Palette.js"],e["Core/Utilities.js"]],function(e,v){var q=v.addEvent,C=v.isObject,D=v.isNumber,A=v.pick,F=v.wrap,B;(function(l){function k(){this.treeGrid||(this.treeGrid=new x(this))}function d(b,d){b=b.treeGrid;var g=!b.labelIcon,m=d.renderer,k=d.xy,l=d.options,q=l.width||0,c=l.height||0,h=k.x-q/2-(l.padding||0);k=k.y-c/2;var a=d.collapsed?90:180,f=d.show&&D(k),t=b.labelIcon;t||(b.labelIcon=t=m.path(m.symbols[l.type](l.x||0,l.y||0,q,c)).addClass("highcharts-label-icon").add(d.group)); t.attr({y:f?0:-9999});m.styledMode||t.attr({cursor:"pointer",fill:A(d.color,e.neutralColor60),"stroke-width":1,stroke:l.lineColor,strokeWidth:l.lineWidth||0});t[g?"attr":"animate"]({translateX:h,translateY:k,rotation:a})}function b(b,d,e,k,l,q,t,c,h){var a=A(this.options&&this.options.labels,q);q=this.pos;var f=this.axis,g="treegrid"===f.options.type;b=b.apply(this,[d,e,k,l,a,t,c,h]);g&&(d=a&&C(a.symbol,!0)?a.symbol:{},a=a&&D(a.indentation)?a.indentation:0,q=(q=(f=f.treeGrid.mapOfPosToGridNode)&& f[q])&&q.depth||1,b.x+=(d.width||0)+2*(d.padding||0)+(q-1)*a);return b}function t(b){var e=this,m=e.pos,k=e.axis,l=e.label,t=k.treeGrid.mapOfPosToGridNode,u=k.options,c=A(e.options&&e.options.labels,u&&u.labels),h=c&&C(c.symbol,!0)?c.symbol:{},a=(t=t&&t[m])&&t.depth;u="treegrid"===u.type;var f=-1=c&&(a-=.5);return{from:a,to:b,showPoints:!1}}function A(a,c,d){var f=[],e=[],g={},h="boolean"===typeof c?c:!1,m={},k=-1;a=E.getTree(a,{after:function(a){a=m[a.pos];var c=0,b=0;a.children.forEach(function(a){b+=(a.descendants||0)+1;c=Math.max((a.height||0)+1,c)});a.descendants=b;a.height=c;a.collapsed&&e.push(a)},before:function(a){var c=b(a.data,!0)?a.data:{},d=t(c.name)?c.name:"",e=g[a.parent];e=b(e,!0)?m[e.pos]:null;var n= function(a){return a.name===d},r;h&&b(e,!0)&&(r=l(e.children,n))?(n=r.pos,r.nodes.push(a)):n=k++;m[n]||(m[n]=r={depth:e?e.depth+1:0,name:d,id:c.id,nodes:[a],children:[],pos:n},-1!==n&&f.push(d),b(e,!0)&&e.children.push(r));t(a.id)&&(g[a.id]=a);r&&!0===c.collapsed&&(r.collapsed=!0);a.pos=n}});m=function(a,c){var d=function(a,f,e){var g=f+(-1===f?0:c-1),h=(g-f)/2,m=f+h;a.nodes.forEach(function(a){var c=a.data;b(c,!0)&&(c.y=f+(c.seriesIndex||0),delete c.seriesIndex);a.pos=m});e[m]=a;a.pos=m;a.tickmarkOffset= h+.5;a.collapseStart=g+.5;a.children.forEach(function(a){d(a,g+1,e);g=(a.collapseEnd||0)-.5});a.collapseEnd=g+.5;return e};return d(a["-1"],-1,{})}(m,d);return{categories:f,mapOfIdToNode:g,mapOfPosToGridNode:m,collapsedNodes:e,tree:a}}function z(a){a.target.axes.filter(function(a){return"treegrid"===a.options.type}).forEach(function(c){var f=c.options||{},e=f.labels,g=f.uniqueNames;f=f.max;var h=0;if(!c.treeGrid.mapOfPosToGridNode||c.series.some(function(a){return!a.hasRendered||a.isDirtyData||a.isDirty})){var m= c.series.reduce(function(a,c){c.visible&&((c.options.data||[]).forEach(function(d){c.options.keys&&c.options.keys.length&&(d=c.pointClass.prototype.optionsToObject.call({series:c},d),c.pointClass.setGanttPointAliases(d));b(d,!0)&&(d.seriesIndex=h,a.push(d))}),!0===g&&h++);return a},[]);if(f&&m.length=c&&f<=b)||a.brokenAxis&&a.brokenAxis.isInAnyBreak(f)||d.push(f);return d},[])};a.prototype.isCollapsed= function(a){var c=this.axis,b=c.options.breaks||[],d=n(a,c.max);return b.some(function(a){return a.from===d.from&&a.to===d.to})};a.prototype.toggleCollapse=function(a){return this.isCollapsed(a)?this.expand(a):this.collapse(a)};return a}();g.Additions=f})(g||(g={}));return g});P(e,"Extensions/CurrentDateIndication.js",[e["Core/Axis/Axis.js"],e["Core/Color/Palette.js"],e["Core/Axis/PlotLineOrBand.js"],e["Core/Utilities.js"]],function(e,v,E,C){var q=C.addEvent,A=C.merge;C=C.wrap;var F={color:v.highlightColor20, width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(e,l){return this.axis.chart.time.dateFormat(l||"",e)},rotation:0,style:{fontSize:"10px"}}};q(e,"afterSetOptions",function(){var e=this.options,l=e.currentDateIndicator;l&&(l="object"===typeof l?A(F,l):A(F),l.value=Date.now(),l.className="highcharts-current-date-indicator",e.plotLines||(e.plotLines=[]),e.plotLines.push(l))});q(E,"render",function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})});C(E.prototype, "getLabelText",function(e,l){var k=this.options;return k&&k.className&&-1!==k.className.indexOf("highcharts-current-date-indicator")&&k.label&&"function"===typeof k.label.formatter?(k.value=Date.now(),k.label.formatter.call(this,k.value,k.label.format)):e.call(this,l)})});P(e,"Extensions/StaticScale.js",[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(e,v,E){var q=E.addEvent,D=E.defined,A=E.isNumber,F=E.pick;q(e,"afterSetOptions",function(){var e=this.chart.options.chart; !this.horiz&&A(this.options.staticScale)&&(!e.height||e.scrollablePlotArea&&e.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)});v.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach(function(e){var l=e.chart,k=!!l.initiatedScale&&l.options.animation,d=e.options.staticScale;if(e.staticScale&&D(e.min)){var b=F(e.brokenAxis&&e.brokenAxis.unitLength,e.max+e.tickInterval-e.min)*d;b=Math.max(b,d);d=b-l.plotHeight;!l.scrollablePixelsY&& 1<=Math.abs(d)&&(l.plotHeight=b,l.redrawTrigger="adjustHeight",l.setSize(void 0,l.chartHeight+d,k));e.series.forEach(function(b){(b=b.sharedClipKey&&l.sharedClips[b.sharedClipKey])&&b.attr(l.inverted?{width:l.plotHeight}:{height:l.plotHeight})})}}),this.initiatedScale=!0);this.redrawTrigger=null};q(v,"render",v.prototype.adjustHeight)});P(e,"Extensions/ArrowSymbols.js",[e["Core/Renderer/SVG/SVGRenderer.js"]],function(e){function q(e,q,v,B){return[["M",e,q+B/2],["L",e+v,q],["L",e,q+B/2],["L",e+v,q+ B]]}function E(e,q,v,B){return[["M",e+v,q],["L",e,q+B/2],["L",e+v,q+B],["Z"]]}function C(e,q,v,B){return E(e,q,v/2,B)}e=e.prototype.symbols;e.arrow=q;e["arrow-filled"]=E;e["arrow-filled-half"]=C;e["arrow-half"]=function(e,v,C,B){return q(e,v,C/2,B)};e["triangle-left"]=E;e["triangle-left-half"]=C;return e});P(e,"Gantt/Connection.js",[e["Core/Globals.js"],e["Core/DefaultOptions.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,v,E,C){function q(b){var d=b.shapeArgs;return d?{xMin:d.x|| 0,xMax:(d.x||0)+(d.width||0),yMin:d.y||0,yMax:(d.y||0)+(d.height||0)}:(d=b.graphic&&b.graphic.getBBox())?{xMin:b.plotX-d.width/2,xMax:b.plotX+d.width/2,yMin:b.plotY-d.height/2,yMax:b.plotY+d.height/2}:null}"";var A=C.defined,F=C.error,B=C.extend,l=C.merge,k=C.objectEach,d=e.deg2rad,b=Math.max,t=Math.min;B(v.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}}); v=function(){function e(b,d,e){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(b,d,e)}e.prototype.init=function(b,d,e){this.fromPoint=b;this.toPoint=d;this.options=e;this.chart=b.series.chart;this.pathfinder=this.chart.pathfinder};e.prototype.renderPath=function(b,d,e){var g=this.chart,m=g.styledMode,k=g.pathfinder,l=!g.options.chart.forExport&&!1!==e,q=this.graphics&&this.graphics.path;k.group||(k.group=g.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(g.seriesGroup)); k.group.translate(g.plotLeft,g.plotTop);q&&q.renderer||(q=g.renderer.path().add(k.group),m||q.attr({opacity:0}));q.attr(d);b={d:b};m||(b.opacity=1);q[l?"animate":"attr"](b,e);this.graphics=this.graphics||{};this.graphics.path=q};e.prototype.addMarker=function(b,e,g){var m=this.fromPoint.series.chart,k=m.pathfinder;m=m.renderer;var l="start"===b?this.fromPoint:this.toPoint,q=l.getPathfinderAnchorPoint(e);if(e.enabled&&((g="start"===b?g[1]:g[g.length-2])&&"M"===g[0]||"L"===g[0])){g={x:g[1],y:g[2]}; g=l.getRadiansToVector(g,q);q=l.getMarkerVector(g,e.radius,q);g=-g/d;if(e.width&&e.height){var t=e.width;var c=e.height}else t=c=2*e.radius;this.graphics=this.graphics||{};q={x:q.x-t/2,y:q.y-c/2,width:t,height:c,rotation:g,rotationOriginX:q.x,rotationOriginY:q.y};this.graphics[b]?this.graphics[b].animate(q):(this.graphics[b]=m.symbol(e.symbol).addClass("highcharts-point-connecting-path-"+b+"-marker").attr(q).add(k.group),m.styledMode||this.graphics[b].attr({fill:e.color||this.fromPoint.color,stroke:e.lineColor, "stroke-width":e.lineWidth,opacity:0}).animate({opacity:1},l.series.options.animation))}};e.prototype.getPath=function(b){var d=this.pathfinder,e=this.chart,k=d.algorithms[b.type],q=d.chartObstacles;if("function"!==typeof k)return F('"'+b.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]};k.requiresObstacles&&!q&&(q=d.chartObstacles=d.getChartObstacles(b),e.options.connectors.algorithmMargin=b.algorithmMargin,d.chartObstacleMetrics=d.getObstacleMetrics(q));return k(this.fromPoint.getPathfinderAnchorPoint(b.startMarker), this.toPoint.getPathfinderAnchorPoint(b.endMarker),l({chartObstacles:q,lineObstacles:d.lineObstacles||[],obstacleMetrics:d.chartObstacleMetrics,hardBounds:{xMin:0,xMax:e.plotWidth,yMin:0,yMax:e.plotHeight},obstacleOptions:{margin:b.algorithmMargin},startDirectionX:d.getAlgorithmStartDirection(b.startMarker)},b))};e.prototype.render=function(){var d=this.fromPoint,e=d.series,g=e.chart,k=g.pathfinder,q=l(g.options.connectors,e.options.connectors,d.options.connectors,this.options),v={};g.styledMode|| (v.stroke=q.lineColor||d.color,v["stroke-width"]=q.lineWidth,q.dashStyle&&(v.dashstyle=q.dashStyle));v["class"]="highcharts-point-connecting-path highcharts-color-"+d.colorIndex;q=l(v,q);A(q.marker.radius)||(q.marker.radius=t(b(Math.ceil((q.algorithmMargin||8)/2)-1,1),5));d=this.getPath(q);g=d.path;d.obstacles&&(k.lineObstacles=k.lineObstacles||[],k.lineObstacles=k.lineObstacles.concat(d.obstacles));this.renderPath(g,v,e.options.animation);this.addMarker("start",l(q.marker,q.startMarker),g);this.addMarker("end", l(q.marker,q.endMarker),g)};e.prototype.destroy=function(){this.graphics&&(k(this.graphics,function(b){b.destroy()}),delete this.graphics)};return e}();e.Connection=v;B(E.prototype,{getPathfinderAnchorPoint:function(b){var d=q(this);switch(b.align){case "right":var e="xMax";break;case "left":e="xMin"}switch(b.verticalAlign){case "top":var g="yMin";break;case "bottom":g="yMax"}return{x:e?d[e]:(d.xMin+d.xMax)/2,y:g?d[g]:(d.yMin+d.yMax)/2}},getRadiansToVector:function(b,d){var e;A(d)||(e=q(this))&&(d= {x:(e.xMin+e.xMax)/2,y:(e.yMin+e.yMax)/2});return Math.atan2(d.y-b.y,b.x-d.x)},getMarkerVector:function(b,d,e){var g=2*Math.PI,k=q(this),m=k.xMax-k.xMin,l=k.yMax-k.yMin,t=Math.atan2(l,m),u=!1;m/=2;var c=l/2,h=k.xMin+m;k=k.yMin+c;for(var a=h,f=k,x=1,v=1;b<-Math.PI;)b+=g;for(;b>Math.PI;)b-=g;g=Math.tan(b);b>-t&&b<=t?(v=-1,u=!0):b>t&&b<=Math.PI-t?v=-1:b>Math.PI-t||b<=-(Math.PI-t)?(x=-1,u=!0):x=-1;u?(a+=x*m,f+=v*m*g):(a+=l/(2*g)*x,f+=v*c);e.x!==h&&(a=e.x);e.y!==k&&(f=e.y);return{x:a+d*Math.cos(b),y:f- d*Math.sin(b)}}});return v});P(e,"Gantt/PathfinderAlgorithms.js",[e["Core/Utilities.js"]],function(e){function q(d,b,e){e=e||0;var k=d.length-1;b-=1e-7;for(var l,m;e<=k;)if(l=k+e>>1,m=b-d[l].xMin,0m)k=l-1;else return l;return 0=b.x)k=d[e],k=b.x<=k.xMax&&b.x>=k.xMin&&b.y<=k.yMax&&b.y>=k.yMin;if(k)return e}return-1}function C(d){var b=[];if(d.length){b.push(["M",d[0].start.x,d[0].start.y]);for(var e=0;el(c[d]-b[d+"Max"]);return k(c,d,b,d+(a?"Max":"Min"),a?1:-1)}var m=[],g=A(e.startDirectionX,l(b.x-d.x)>l(b.y-d.y))?"x":"y",n=e.chartObstacles,t=E(n,d);e=E(n,b);if(-1=d[g]===e[g]>=z[g]&&(g="y"===g?"x":"y",b=d[g]e?F(q(y,g.x),y.length-1):0;y[d]&&(0e&&y[d].xMax>=f.x);){if(y[d].xMin<=g.x&&y[d].xMax>=f.x&&y[d].yMin<=k.y&&y[d].yMax>=h.y)return b?{y:a.y,x:a.x=f[h+"Max"];f=a[h+"Min"]<=f[h+"Min"];var r=a[h+"Max"]>=g[h+"Max"];g=a[h+ "Min"]<=g[h+"Min"];var w=l(a[h+"Min"]-c[h]),q=l(a[h+"Max"]-c[h]);b=10>l(w-q)?c[h]l(b.y-d.y)),v=n?"x":"y",O=[],z=!1,u=e.obstacleMetrics,c=F(d.x,b.x)-u.maxWidth-10,h=B(d.x,b.x)+u.maxWidth+10,a=F(d.y,b.y)-u.maxHeight-10,f=B(d.y,b.y)+ u.maxHeight+10,y=e.chartObstacles;var L=q(y,c);u=q(y,h);y=y.slice(L,u+1);if(-1<(u=E(y,b))){var K=g(y[u],b,d);O.push({end:b,start:K});b=K}for(;-1<(u=E(y,b));)L=0>b[v]-d[v],K={x:b.x,y:b.y},K[v]=y[u][L?v+"Max":v+"Min"]+(L?1:-1),O.push({end:b,start:K}),b=K;d=m(d,b,n);d=d.concat(O.reverse());return{path:C(d),obstacles:d}};k.requiresObstacles=!0;return{fastAvoid:k,straight:function(d,b){return{path:[["M",d.x,d.y],["L",b.x,b.y]],obstacles:[{start:d,end:b}]}},simpleConnect:e}});P(e,"Gantt/Pathfinder.js", [e["Gantt/Connection.js"],e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/DefaultOptions.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"],e["Gantt/PathfinderAlgorithms.js"]],function(e,v,E,C,D,A,F){function q(b){var d=b.shapeArgs;return d?{xMin:d.x||0,xMax:(d.x||0)+(d.width||0),yMin:d.y||0,yMax:(d.y||0)+(d.height||0)}:(d=b.graphic&&b.graphic.getBBox())?{xMin:b.plotX-d.width/2,xMax:b.plotX+d.width/2,yMin:b.plotY-d.height/2,yMax:b.plotY+d.height/2}:null}function l(b){for(var d=b.length,c= 0,e,a,f=[],g=function(a,c,b){b=m(b,10);var d=a.yMax+b>c.yMin-b&&a.yMin-bc.xMin-b&&a.xMin-bc.xMax?a.xMin-c.xMax:c.xMin-a.xMax:Infinity,h=e?a.yMin>c.yMax?a.yMin-c.yMax:c.yMin-a.yMax:Infinity;return e&&d?b?g(a,c,Math.floor(b/2)):Infinity:J(f,h)};ca&&f.push(a);f.push(80);return n(Math.floor(f.sort(function(a,c){return a-c})[Math.floor(f.length/10)]/2-1),1)}function k(b){if(b.options.pathfinder||b.series.reduce(function(b, c){c.options&&x(!0,c.options.connectors=c.options.connectors||{},c.options.pathfinder);return b||c.options&&c.options.pathfinder},!1))x(!0,b.options.connectors=b.options.connectors||{},b.options.pathfinder),t('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}"";var d=A.addEvent,b=A.defined,t=A.error,I=A.extend,x=A.merge,m=A.pick,g=A.splat,n=Math.max,J=Math.min;I(C.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center", verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var O=function(){function k(b){this.lineObstacles=this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(b)}k.prototype.init=function(b){this.chart=b;this.connections=[];d(b,"redraw",function(){this.pathfinder.update()})};k.prototype.update=function(b){var c=this.chart,d=this,a=d.connections;d.connections=[];c.series.forEach(function(a){a.visible&& !a.options.isInternal&&a.points.forEach(function(a){var b=a.options;b&&b.dependency&&(b.connect=b.dependency);var f;b=a.options&&a.options.connect&&g(a.options.connect);a.visible&&!1!==a.isInside&&b&&b.forEach(function(b){f=c.get("string"===typeof b?b:b.to);f instanceof D&&f.series.visible&&f.visible&&!1!==f.isInside&&d.connections.push(new e(a,f,"string"===typeof b?{}:b))})})});for(var f=0,k=void 0,l=void 0,m=a.length,n=d.connections.length;fMath.PI;)b-=e;e=Math.tan(b);b>-k&&b<=k?(x=-1,l=!0):b>k&&b<=Math.PI-k?x=-1:b>Math.PI-k||b<=-(Math.PI-k)?(u=-1,l=!0):u=-1;l?(t+=u*f,w+=x*f*e):(t+=g/(2*e)*u,w+=x*m);c.x!==n&&(t=c.x);c.y!==a&&(w=c.y);return{x:t+d*Math.cos(b),y:w-d*Math.sin(b)}}});v.prototype.callbacks.push(function(b){!1!==b.options.connectors.enabled&&(k(b),this.pathfinder=new O(this),this.pathfinder.update(!0))}); return O});P(e,"Series/Gantt/GanttSeries.js",[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Series/Gantt/GanttPoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"],e["Core/Axis/TreeGridAxis.js"]],function(e,v,E,C,D,A,F){var q=this&&this.__extends||function(){var b=function(d,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var e in d)d.hasOwnProperty(e)&&(b[e]=d[e])};return b(d,e)};return function(d, e){function g(){this.constructor=d}b(d,e);d.prototype=null===e?Object.create(e):(g.prototype=e.prototype,new g)}}(),l=C.series,k=C.seriesTypes.xrange,d=A.extend,b=A.isNumber,t=A.merge,I=A.splat;F.compose(e,v,l,D);e=function(d){function e(){var b=null!==d&&d.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}q(e,d);e.prototype.drawPoint=function(d,e){var g=this.options,l=this.chart.renderer,m=d.shapeArgs,n=d.plotY,c=d.graphic,h=d.selected&&"select",a=g.stacking&&!g.borderRadius; if(d.options.milestone)if(b(n)&&null!==d.y&&!1!==d.visible){m=l.symbols.diamond(m.x||0,m.y||0,m.width||0,m.height||0);if(c)c[e]({d:m});else d.graphic=l.path(m).addClass(d.getClassName(),!0).add(d.group||this.group);this.chart.styledMode||d.graphic.attr(this.pointAttribs(d,h)).shadow(g.shadow,null,a)}else c&&(d.graphic=c.destroy());else k.prototype.drawPoint.call(this,d,e)};e.prototype.translatePoint=function(b){k.prototype.translatePoint.call(this,b);if(b.options.milestone){var d=b.shapeArgs;var e= d.height||0;b.shapeArgs={x:(d.x||0)-e/2,y:d.y,width:e,height:e}}};e.defaultOptions=t(k.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'{series.name}
',pointFormat:null,pointFormatter:function(){var b=this.series,d=b.chart.tooltip,e=b.xAxis,k=b.tooltipOptions.dateTimeLabelFormats,l=e.options.startOfWeek,m=b.tooltipOptions,c=m.xDateFormat,h=this.options.milestone,a=""+(this.name||this.yCategory)+"";if(m.pointFormat)return this.tooltipFormatter(m.pointFormat); c||(c=I(d.getDateFormat(e.closestPointRange,this.start,l,k))[0]);d=b.chart.time.dateFormat(c,this.start);b=b.chart.time.dateFormat(c,this.end);a+="
";return h?a+(d+"
"):a+("Start: "+d+"
End: ")+(b+"
")}},connectors:{type:"simpleConnect",animation:{reversed:!0},startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}});return e}(k);d(e.prototype,{keyboardMoveVertical:!1,pointArrayMap:["start","end","y"],pointClass:E,setData:l.prototype.setData}); C.registerSeriesType("gantt",e);"";return e});P(e,"Core/Chart/GanttChart.js",[e["Core/Chart/Chart.js"],e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(e,v,E){var q=this&&this.__extends||function(){var e=function(k,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var e in d)d.hasOwnProperty(e)&&(b[e]=d[e])};return e(k,d)};return function(k,d){function b(){this.constructor=k}e(k,d);k.prototype=null===d?Object.create(d):(b.prototype= d.prototype,new b)}}(),D=v.getOptions,A=E.isArray,F=E.merge,B=E.splat;e=function(e){function k(){return null!==e&&e.apply(this,arguments)||this}q(k,e);k.prototype.init=function(d,b){var k=D(),l=d.xAxis,q=d.yAxis,m;d.xAxis=d.yAxis=void 0;var g=F(!0,{chart:{type:"gantt"},title:{text:null},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},d,{isGantt:!0});d.xAxis=l;d.yAxis=q;g.xAxis=(A(d.xAxis)?d.xAxis:[d.xAxis||{},{}]).map(function(b,d){1===d&&(m=0);return F(k.xAxis,{grid:{enabled:!0}, opposite:!0,linkedTo:m},b,{type:"datetime"})});g.yAxis=B(d.yAxis||{}).map(function(b){return F(k.yAxis,{grid:{enabled:!0},staticScale:50,reversed:!0,type:b.categories?b.type:"treegrid"},b)});e.prototype.init.call(this,g,b)};return k}(e);(function(e){e.ganttChart=function(k,d,b){return new e(k,d,b)}})(e||(e={}));return e});P(e,"Core/Axis/ScrollbarAxis.js",[e["Core/Utilities.js"]],function(e){var q=e.addEvent,E=e.defined,C=e.pick;return function(){function e(){}e.compose=function(e,v){var A=function(e){var k= C(e.options&&e.options.min,e.min),d=C(e.options&&e.options.max,e.max);return{axisMin:k,axisMax:d,scrollMin:E(e.dataMin)?Math.min(k,e.min,e.dataMin,C(e.threshold,Infinity)):k,scrollMax:E(e.dataMax)?Math.max(d,e.max,e.dataMax,C(e.threshold,-Infinity)):d}};q(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 v(e.chart.renderer,e.options.scrollbar,e.chart), q(e.scrollbar,"changed",function(k){var d=A(e),b=d.axisMax,l=d.scrollMin,q=d.scrollMax-l;E(d.axisMin)&&E(b)&&(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(d=l+q*this.to,l+=q*this.from):(d=l+q*(1-this.from),l+=q*(1-this.to)),this.shouldUpdateExtremes(k.DOMType)?e.setExtremes(l,d,!0,"mousemove"!==k.DOMType&&"touchmove"!==k.DOMType,k):this.setRange(this.from,this.to))}))});q(e,"afterRender",function(){var e=A(this),k=e.scrollMin,d=e.scrollMax;e=this.scrollbar;var b=this.axisTitleMargin+(this.titleOffset|| 0),q=this.chart.scrollbarsOffsets,v=this.options.margin||0;e&&(this.horiz?(this.opposite||(q[1]+=b),e.position(this.left,this.top+this.height+2+q[1]-(this.opposite?v:0),this.width,this.height),this.opposite||(q[1]+=v),b=1):(this.opposite&&(q[0]+=b),e.position(this.left+this.width+2+q[0]-(this.opposite?0:v),this.top,this.width,this.height),this.opposite&&(q[0]+=v),b=0),q[b]+=e.size+e.options.margin,isNaN(k)||isNaN(d)||!E(this.min)||!E(this.max)||this.min===this.max?e.setRange(0,1):(q=(this.min-k)/ (d-k),k=(this.max-k)/(d-k),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(q,k):e.setRange(1-k,1-q)))});q(e,"afterGetOffset",function(){var e=this.horiz?2:1,k=this.scrollbar;k&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=k.size+k.options.margin)});return e};return e}()});P(e,"Core/ScrollbarDefaults.js",[e["Core/Globals.js"],e["Core/Color/Palette.js"]],function(e,v){return{height:e.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10, minWidth:6,step:.2,zIndex:3,barBackgroundColor:v.neutralColor20,barBorderWidth:1,barBorderColor:v.neutralColor20,buttonArrowColor:v.neutralColor80,buttonBackgroundColor:v.neutralColor10,buttonBorderColor:v.neutralColor20,buttonBorderWidth:1,rifleColor:v.neutralColor80,trackBackgroundColor:v.neutralColor5,trackBorderColor:v.neutralColor5,trackBorderWidth:1}});P(e,"Core/Scrollbar.js",[e["Core/DefaultOptions.js"],e["Core/Globals.js"],e["Core/Axis/ScrollbarAxis.js"],e["Core/ScrollbarDefaults.js"],e["Core/Utilities.js"]], function(e,v,E,C,D){var q=e.defaultOptions,F=D.addEvent,B=D.correctFloat,l=D.defined,k=D.destroyObjectProperties,d=D.fireEvent,b=D.merge,t=D.pick,I=D.removeEvent;e=function(){function e(b,d,e){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track= void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(b,d,e)}e.compose=function(b){E.compose(b,e)};e.swapXY=function(b,d){d&&b.forEach(function(b){for(var d=b.length,e,g=0;gthis.calculatedWidth?d.minWidth:0;return{chartX:(b.chartX-this.x-this.xOffset)/(this.barWidth-d),chartY:(b.chartY- this.y-this.yOffset)/(this.barWidth-d)}};e.prototype.destroy=function(){var b=this,d=b.chart.scroller;b.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(d){b[d]&&b[d].destroy&&(b[d]=b[d].destroy())});d&&b===d.scrollbar&&(d.scrollbar=null,k(d.scrollbarButtons))};e.prototype.drawScrollbarButton=function(b){var d=this.renderer,k=this.scrollbarButtons,m=this.options,l=this.size,q=d.g().add(this.group);k.push(q);q=d.rect().addClass("highcharts-scrollbar-button").add(q); this.chart.styledMode||q.attr({stroke:m.buttonBorderColor,"stroke-width":m.buttonBorderWidth,fill:m.buttonBackgroundColor});q.attr(q.crisp({x:-.5,y:-.5,width:l+1,height:l+1,r:m.buttonBorderRadius},q.strokeWidth()));q=d.path(e.swapXY([["M",l/2+(b?-1:1),l/2-3],["L",l/2+(b?-1:1),l/2+3],["L",l/2+(b?2:-2),l/2]],m.vertical)).addClass("highcharts-scrollbar-arrow").add(k[b]);this.chart.styledMode||q.attr({fill:m.buttonArrowColor})};e.prototype.init=function(d,e,k){this.scrollbarButtons=[];this.renderer=d; this.userOptions=e;this.options=b(C,q.scrollbar,e);this.chart=k;this.size=t(this.options.size,this.options.height);e.enabled&&(this.render(),this.addEvents())};e.prototype.mouseDownHandler=function(b){b=this.chart.pointer.normalize(b);b=this.cursorToScrollbarPosition(b);this.chartX=b.chartX;this.chartY=b.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};e.prototype.mouseMoveHandler=function(b){var e=this.chart.pointer.normalize(b),k=this.options.vertical?"chartY":"chartX",l=this.initPositions|| [];!this.grabbedCenter||b.touches&&0===b.touches[0][k]||(e=this.cursorToScrollbarPosition(e)[k],k=this[k],k=e-k,this.hasDragged=!0,this.updatePosition(l[0]+k,l[1]+k),this.hasDragged&&d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b}))};e.prototype.mouseUpHandler=function(b){this.hasDragged&&d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};e.prototype.position= function(b,d,e,k){var g=this.options.vertical,l=this.rendered?"animate":"attr",m=0;this.x=b;this.y=d+this.trackBorderWidth;this.width=e;this.xOffset=this.height=k;this.yOffset=m;g?(this.width=this.yOffset=e=m=this.size,this.xOffset=d=0,this.barWidth=k-2*e,this.x=b+=this.options.margin):(this.height=this.xOffset=k=d=this.size,this.barWidth=e-2*k,this.y+=this.options.margin);this.group[l]({translateX:b,translateY:this.y});this.track[l]({width:e,height:k});this.scrollbarButtons[1][l]({translateX:g?0: e-d,translateY:g?k-m:0})};e.prototype.removeEvents=function(){this._events.forEach(function(b){I.apply(null,b)});this._events.length=0};e.prototype.render=function(){var b=this.renderer,d=this.options,k=this.size,l=this.chart.styledMode,q=b.g("scrollbar").attr({zIndex:d.zIndex,translateY:-99999}).add();this.group=q;this.track=b.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:d.trackBorderRadius||0,height:k,width:k}).add(q);l||this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor, "stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=b.g().add(q);this.scrollbar=b.rect().addClass("highcharts-scrollbar-thumb").attr({height:k,width:k,r:d.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=b.path(e.swapXY([["M",-3,k/4],["L",-3,2*k/3],["M",0,k/4],["L",0,2*k/3],["M",3,k/4],["L",3,2*k/3]],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);l||(this.scrollbar.attr({fill:d.barBackgroundColor, stroke:d.barBorderColor,"stroke-width":d.barBorderWidth}),this.scrollbarRifles.attr({stroke:d.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};e.prototype.setRange=function(b,d){var e=this.options,g=e.vertical,k=e.minWidth,m=this.barWidth,q=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged? "attr":"animate";if(l(m)){var c=m*Math.min(d,1);b=Math.max(b,0);var h=Math.ceil(m*b);this.calculatedWidth=c=B(c-h);c=c?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===e.showFull&&(0>=b&&1<=d?this.group.hide():this.group.show());this.rendered=!0}};e.prototype.shouldUpdateExtremes=function(b){return t(this.options.liveRedraw,v.svg&&!v.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===b||"touchend"===b||!l(b)};e.prototype.trackClick=function(b){var e=this.chart.pointer.normalize(b),k=this.to-this.from,l=this.y+this.scrollbarTop,m=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>l|| !this.options.vertical&&e.chartX>m?this.updatePosition(this.from+k,this.to+k):this.updatePosition(this.from-k,this.to-k);d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})};e.prototype.update=function(d){this.destroy();this.init(this.chart.renderer,b(!0,this.options,d),this.chart)};e.prototype.updatePosition=function(b,d){1b&&(d=B(d-b),b=0);this.from=b;this.to=d};e.defaultOptions=C;return e}();q.scrollbar=b(!0,e.defaultOptions,q.scrollbar);return e}); P(e,"Extensions/RangeSelector.js",[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/DefaultOptions.js"],e["Core/Color/Palette.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(e,v,E,C,D,A,F){function q(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),c="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&c?"datetime-local":b?"date":c?"time":"text"}var l=C.defaultOptions, k=F.addEvent,d=F.createElement,b=F.css,t=F.defined,I=F.destroyObjectProperties,x=F.discardElement,m=F.extend,g=F.find,n=F.fireEvent,J=F.isNumber,O=F.merge,z=F.objectEach,u=F.pad,c=F.pick,h=F.pInt,a=F.splat;m(l,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y", inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:D.highlightColor80,cursor:"pointer"},labelStyle:{color:D.neutralColor60}}});m(l.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var f=function(){function f(a){this.buttons=void 0;this.buttonOptions=f.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0; this.chart=a;this.init(a)}f.prototype.clickButton=function(b,d){var f=this.chart,g=this.buttonOptions[b],h=f.xAxis[0],l=f.scroller&&f.scroller.getUnionExtremes()||h||{},m=l.dataMin,p=l.dataMax,r=h&&Math.round(Math.min(h.max,c(p,h.max))),q=g.type;l=g._range;var u,v=g.dataGrouping;if(null!==m&&null!==p){f.fixedRange=l;this.setSelected(b);v&&(this.forcedDataGrouping=!0,e.prototype.setDataGrouping.call(h||{chart:this.chart},v,!1),this.frozenStates=g.preserveDataGrouping);if("month"===q||"year"===q)if(h){q= {range:g,max:r,chart:f,dataMin:m,dataMax:p};var x=h.minFromRange.call(q);J(q.newMax)&&(r=q.newMax)}else l=g;else if(l)x=Math.max(r-l,m),r=Math.min(x+l,p);else if("ytd"===q)if(h)"undefined"===typeof p&&(m=Number.MAX_VALUE,p=Number.MIN_VALUE,f.series.forEach(function(a){a=a.xData;m=Math.min(a[0],m);p=Math.max(a[a.length-1],p)}),d=!1),r=this.getYTDExtremes(p,m,f.time.useUTC),x=u=r.min,r=r.max;else{this.deferredYTDClick=b;return}else"all"===q&&h&&(f.navigator&&f.navigator.baseSeries[0]&&(f.navigator.baseSeries[0].xAxis.options.range= void 0),x=m,r=p);t(x)&&(x+=g._offsetMin);t(r)&&(r+=g._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=b+1);if(h)h.setExtremes(x,r,c(d,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:g});else{var y=a(f.options.xAxis)[0];var G=y.range;y.range=l;var z=y.min;y.min=u;k(f,"load",function(){y.range=G;y.min=z})}n(this,"afterBtnClick")}};f.prototype.setSelected=function(a){this.selected=this.options.selected=a};f.prototype.init=function(a){var b=this,c=a.options.rangeSelector,d=c.buttons|| b.defaultButtons.slice(),e=c.selected,f=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&n(a,"blur");c&&c.blur&&n(c,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=d;this.eventsToUnbind=[];this.eventsToUnbind.push(k(a.container,"mousedown",f));this.eventsToUnbind.push(k(a,"resize",f));d.forEach(b.computeButtonRange);"undefined"!==typeof e&&d[e]&&this.clickButton(e,!1);this.eventsToUnbind.push(k(a,"load",function(){a.xAxis&&a.xAxis[0]&&k(a.xAxis[0],"setExtremes",function(c){this.max- this.min!==a.fixedRange&&"rangeSelectorButton"!==c.trigger&&"updatedData"!==c.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};f.prototype.updateButtonStates=function(){var a=this,b=this.chart,c=this.dropdown,d=b.xAxis[0],e=Math.round(d.max-d.min),f=!d.hasVisibleSeries,g=b.scroller&&b.scroller.getUnionExtremes()||d,h=g.dataMin,k=g.dataMax;b=a.getYTDExtremes(k,h,b.time.useUTC);var l=b.min,m=b.max,n=a.selected,q=J(n),t=a.options.allButtonsEnabled,u=a.buttons;a.buttonOptions.forEach(function(b, g){var p=b._range,r=b.type,w=b.count||1,H=u[g],v=0,x=b._offsetMax-b._offsetMin;b=g===n;var y=p>k-h,z=p=864E5*{month:28,year:365}[r]*w-x&&e-36E5<=864E5*{month:31,year:366}[r]*w+x?p=!0:"ytd"===r?(p=m-l+x===e,G=!b):"all"===r&&(p=d.max-d.min>=k-h,M=!b&&q&&p);r=!t&&(y||z||M||f);w=b&&p||p&&!q&&!G||b&&a.frozenStates;r?v=3:w&&(q=!0,v=2);H.state!==v&&(H.setState(v),c&&(c.options[g+1].disabled=r,2===v&&(c.selectedIndex=g+1)),0===v&&n===g&&a.setSelected())})}; f.prototype.computeButtonRange=function(a){var b=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*d;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*d;a._offsetMin=c(a.offsetMin,0);a._offsetMax=c(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};f.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser|| this.defaultInputDateParser)(a.value,c.useUTC,c):0};f.prototype.setInputValue=function(a,b){var c=this.options,d=this.chart.time,e="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(e){var f=e.getAttribute("data-hc-time");f=t(f)?Number(f):void 0;t(b)&&(t(f)&&e.setAttribute("data-hc-time-previous",f),e.setAttribute("data-hc-time",b),f=b);e.value=d.dateFormat(this.inputTypeFormats[e.type]||c.inputEditDateFormat,f);a&&a.attr({text:d.dateFormat(c.inputDateFormat,f)})}}; f.prototype.setInputExtremes=function(a,b,c){if(a="min"===a?this.minInput:this.maxInput){var d=this.inputTypeFormats[a.type],e=this.chart.time;d&&(b=e.dateFormat(d,b),a.min!==b&&(a.min=b),c=e.dateFormat(d,c),a.max!==c&&(a.max=c))}};f.prototype.showInput=function(a){var c="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&c&&this.inputGroup){var d="text"===a.type,e=this.inputGroup,f=e.translateX;e=e.translateY;var g=this.options.inputBoxWidth;b(a,{width:d?c.width+ (g?-2:20)+"px":"auto",height:d?c.height-2+"px":"auto",border:"2px solid silver"});d&&g?b(a,{left:f+c.x+"px",top:e+"px"}):b(a,{left:Math.min(Math.round(c.x+f-(a.offsetWidth-c.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:e-(a.offsetHeight-c.height)/2+"px"})}};f.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&b(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};f.prototype.defaultInputDateParser=function(a,b,c){var d=a.split("/").join("-").split(" ").join("T"); -1===d.indexOf("T")&&(d+="T00:00");if(b)d+="Z";else{var e;if(e=E.isSafari)e=d,e=!(6=e?"+"+u(-e)+":00":"-"+u(e)+":00")}d=Date.parse(d);J(d)||(a=a.split("-"),d=Date.UTC(h(a[0]),h(a[1])-1,h(a[2])));c&&b&&J(d)&&(d+=c.getTimezoneOffset(d));return d};f.prototype.drawInput=function(a){function c(){var b=h.getInputValue(a),c=e.xAxis[0],d=e.scroller&&e.scroller.xAxis?e.scroller.xAxis: c,f=d.dataMin;d=d.dataMax;var g=h.maxInput,k=h.minInput;b!==Number(u.getAttribute("data-hc-time-previous"))&&J(b)&&(u.setAttribute("data-hc-time-previous",b),r&&g&&J(f)?b>Number(g.getAttribute("data-hc-time"))?b=void 0:bd&&(b=d)),"undefined"!==typeof b&&c.setExtremes(r?b:c.min,r?c.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var e=this.chart,f=this.div,g=this.inputGroup,h=this,k=e.renderer.style||{},p=e.renderer,n=e.options.rangeSelector, r="min"===a,t=l.lang[r?"rangeSelectorFrom":"rangeSelectorTo"];t=p.label(t,0).addClass("highcharts-range-label").attr({padding:t?2:0,height:t?n.inputBoxHeight:0}).add(g);p=p.label("",0).addClass("highcharts-range-input").attr({padding:2,width:n.inputBoxWidth,height:n.inputBoxHeight,"text-align":"center"}).on("click",function(){h.showInput(a);h[a+"Input"].focus()});e.styledMode||p.attr({stroke:n.inputBoxBorderColor,"stroke-width":1});p.add(g);var u=d("input",{name:a,className:"highcharts-range-selector"}, void 0,f);u.setAttribute("type",q(n.inputDateFormat||"%b %e, %Y"));e.styledMode||(t.css(O(k,n.labelStyle)),p.css(O({color:D.neutralColor80},k,n.inputStyle)),b(u,m({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:k.fontSize,fontFamily:k.fontFamily,top:"-9999em"},n.inputStyle)));u.onfocus=function(){h.showInput(a)};u.onblur=function(){u===E.doc.activeElement&&c();h.hideInput(a);h.setInputValue(a);u.blur()};var v=!1;u.onchange= function(){v||(c(),h.hideInput(a),u.blur())};u.onkeypress=function(a){13===a.keyCode&&c()};u.onkeydown=function(a){v=!0;38!==a.keyCode&&40!==a.keyCode||c()};u.onkeyup=function(){v=!1};return{dateBox:p,input:u,label:t}};f.prototype.getPosition=function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}};f.prototype.getYTDExtremes=function(a,b,c){var d=this.chart.time,e=new d.Date(a), f=d.get("FullYear",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}};f.prototype.render=function(a,b){var e=this.chart,f=e.renderer,g=e.container,h=e.options,k=h.rangeSelector,l=c(h.chart.style&&h.chart.style.zIndex,0)+1;h=k.inputEnabled;if(!1!==k.enabled){this.rendered||(this.group=f.g("range-selector-group").attr({zIndex:7}).add(),this.div=d("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(), g.parentNode&&g.parentNode.insertBefore(this.div,g),h&&(this.inputGroup=f.g("input-group").add(this.group),f=this.drawInput("min"),this.minDateBox=f.dateBox,this.minLabel=f.label,this.minInput=f.input,f=this.drawInput("max"),this.maxDateBox=f.dateBox,this.maxLabel=f.label,this.maxInput=f.input));if(h&&(this.setInputValue("min",a),this.setInputValue("max",b),a=e.scroller&&e.scroller.getUnionExtremes()||e.xAxis[0]||{},t(a.dataMin)&&t(a.dataMax)&&(e=e.xAxis[0].minRange||0,this.setInputExtremes("min", a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-e),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+e,a.dataMax)),this.inputGroup)){var m=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:m}),m+=b+k.inputSpacing)}})}this.alignElements();this.rendered=!0}};f.prototype.renderButtons=function(){var a=this,b=this.buttons,e=this.options,f=l.lang,g=this.chart.renderer,h=O(e.buttonTheme),m=h&&h.states, p=h.width||28;delete h.width;delete h.states;this.buttonGroup=g.g("range-selector-buttons").add(this.group);var q=this.dropdown=d("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);k(q,"touchstart",function(){q.style.fontSize="16px"});[[E.isMS?"mouseover":"mouseenter"],[E.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(c){var d=c[0],e=c[1];k(q,d,function(){var c=b[a.currentButtonIndex()];c&&n(c.element, e||d)})});this.zoomText=g.label(f&&f.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(e.labelStyle),h["stroke-width"]=c(h["stroke-width"],0));d("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,q);this.buttonOptions.forEach(function(c,e){d("option",{textContent:c.title||c.text},void 0,q);b[e]=g.button(c.text,0,0,function(b){var d=c.events&&c.events.click, f;d&&(f=d.call(c,b));!1!==f&&a.clickButton(e);a.isActive=!0},h,m&&m.hover,m&&m.select,m&&m.disabled).attr({"text-align":"center",width:p}).add(a.buttonGroup);c.title&&b[e].attr("title",c.title)})};f.prototype.alignElements=function(){var a=this,b=this.buttonGroup,d=this.buttons,e=this.chart,f=this.group,g=this.inputGroup,h=this.options,k=this.zoomText,l=e.options,m=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=h.buttonPosition;var n=h.inputPosition,q=h.verticalAlign, t=function(b,c){return m&&a.titleCollision(e)&&"top"===q&&"right"===c.align&&c.y-b.getBBox().height-12<(m.y||0)+(m.height||0)+e.spacing[0]?-40:0},u=e.plotLeft;if(f&&l&&n){var v=l.x-e.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var x=0;k&&(x+=k.getBBox().width+5);d.forEach(function(a,b){x+=a.width;b!==d.length-1&&(x+=h.buttonSpacing)});this.initialButtonGroupWidth=x}u-=e.spacing[3];this.updateButtonStates();k=t(b,l);this.alignButtonGroup(k);f.placed=b.placed=e.hasLoaded}b= 0;g&&(b=t(g,n),"left"===n.align?v=u:"right"===n.align&&(v=-Math.max(e.axisOffset[1],-b)),g.align({y:n.y,width:g.getBBox().width,align:n.align,x:n.x+v-2},!0,e.spacingBox),g.placed=e.hasLoaded);this.handleCollision(b);f.align({verticalAlign:q},!0,e.spacingBox);g=f.alignAttr.translateY;b=f.getBBox().height+20;t=0;"bottom"===q&&(t=(t=e.legend&&e.legend.options)&&"bottom"===t.verticalAlign&&t.enabled&&!t.floating?e.legend.legendHeight+c(t.margin,10):0,b=b+t-20,t=g-b-(h.floating?0:h.y)-(e.titleOffset?e.titleOffset[2]: 0)-10);if("top"===q)h.floating&&(t=0),e.titleOffset&&e.titleOffset[0]&&(t=e.titleOffset[0]),t+=e.margin[0]-e.spacing[0]||0;else if("middle"===q)if(n.y===l.y)t=g;else if(n.y||l.y)t=0>n.y||0>l.y?t-Math.min(n.y,l.y):g-b;f.translate(h.x,h.y+Math.floor(t));l=this.minInput;n=this.maxInput;g=this.dropdown;h.inputEnabled&&l&&n&&(l.style.marginTop=f.translateY+"px",n.style.marginTop=f.translateY+"px");g&&(g.style.marginTop=f.translateY+"px")}};f.prototype.alignButtonGroup=function(a,b){var d=this.chart,e= this.buttonGroup,f=this.options.buttonPosition,g=d.plotLeft-d.spacing[3],h=f.x-d.spacing[3];"right"===f.align?h+=a-g:"center"===f.align&&(h-=g/2);e&&e.align({y:f.y,width:c(b,this.initialButtonGroupWidth),align:f.align,x:h},!0,d.spacingBox)};f.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,d=this.options,e=this.zoomText,f=b.hasLoaded?"animate":"attr",g=d.buttonPosition,h=b.plotLeft,k=h;e&&"hidden"!==e.visibility&&(e[f]({x:c(h+g.x,h)}),k+=g.x+e.getBBox().width+5);this.buttonOptions.forEach(function(b, c){if("hidden"!==a[c].visibility)a[c][f]({x:k}),k+=a[c].width+d.buttonSpacing;else a[c][f]({x:h})})};f.prototype.handleCollision=function(a){var b=this,c=this.chart,d=this.buttonGroup,e=this.inputGroup,f=this.options,g=f.buttonPosition,h=f.dropdown,k=f.inputPosition;f=function(){var a=0;b.buttons.forEach(function(b){b=b.getBBox();b.width>a&&(a=b.width)});return a};var l=function(b){if(e&&d){var c=e.alignAttr.translateX+e.alignOptions.x-a+e.getBBox().x+2,f=e.alignOptions.width,h=d.alignAttr.translateX+ d.getBBox().x;return h+b>c&&c+f>h&&g.y=-a?0:-a),translateY:e.alignAttr.translateY+d.getBBox().height+10})};if(d){if("always"===h){this.collapseButtons(a);l(f())&&m();return}"never"===h&&this.expandButtons()}e&&d?k.align===g.align||l(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(a),l(f())&&m()):m():"responsive"===h&&this.expandButtons():d&&"responsive"===h&&(this.initialButtonGroupWidth> c.plotWidth?this.collapseButtons(a):this.expandButtons())};f.prototype.collapseButtons=function(a){var b=this.buttons,d=this.buttonOptions,e=this.chart,f=this.dropdown,g=this.options,h=this.zoomText,k=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},l=function(a){return{text:a?a+" \u25be":"\u25be",width:"auto",paddingLeft:c(g.buttonTheme.paddingLeft,k.padding,8),paddingRight:c(g.buttonTheme.paddingRight,k.padding,8)}};h&&h.hide();var m=!1;d.forEach(function(a,c){c=b[c];2!== c.state?c.hide():(c.show(),c.attr(l(a.text)),m=!0)});m||(f&&(f.selectedIndex=0),b[0].show(),b[0].attr(l(this.zoomText&&this.zoomText.textStr)));d=g.buttonPosition.align;this.positionButtons();"right"!==d&&"center"!==d||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};f.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,d=this.options,e=this.zoomText;this.hideDropdown();e&&e.show();b.forEach(function(b,e){e=a[e];e.show();e.attr({text:b.text, width:d.buttonTheme.width||28,paddingLeft:c(d.buttonTheme.paddingLeft,"unset"),paddingRight:c(d.buttonTheme.paddingRight,"unset")});2>e.state&&e.setState(0)});this.positionButtons()};f.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0e&&0>d||0l&&(k?d=b-m:b=d+m);F(d)&&F(b)||(d=b=void 0);return{min:d,max:b}};return e}();return function(){function e(){}e.compose=function(d){d.keepProps.push("navigatorAxis");C(d,"init",function(){this.navigatorAxis||(this.navigatorAxis=new l(this))});C(d,"zoom",function(b){var d=this.chart.options,e=d.navigator,k=this.navigatorAxis,l=d.chart.pinchType,g=d.rangeSelector;d=d.chart.zoomType;this.isXAxis&&(e&&e.enabled||g&&g.enabled)&&("y"===d?b.zoomed= !1:(!q&&"xy"===d||q&&"xy"===l)&&this.options.range&&(e=k.previousZoom,A(b.newMin)?k.previousZoom=[this.min,this.max]:e&&(b.newMin=e[0],b.newMax=e[1],k.previousZoom=void 0)));"undefined"!==typeof b.zoomed&&b.preventDefault()})};e.AdditionsClass=l;return e}()});P(e,"Core/Navigator.js",[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Axis/NavigatorAxis.js"],e["Core/DefaultOptions.js"],e["Core/Color/Palette.js"],e["Core/Renderer/RendererRegistry.js"], e["Core/Scrollbar.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,v,E,C,D,A,F,B,l,k,d,b){E=E.parse;var q=C.hasTouch,I=C.isTouchDevice,x=A.defaultOptions,m=b.addEvent,g=b.clamp,n=b.correctFloat,J=b.defined,O=b.destroyObjectProperties,z=b.erase,u=b.extend,c=b.find,h=b.isArray,a=b.isNumber,f=b.merge,y=b.pick,L=b.removeEvent,K=b.splat,r=function(b){for(var c=[],d=1;dx&&(this.grabbedLeft?d=l.toPixels(c-x-m,!0):this.grabbedRight&&(e=l.toPixels(b+x+m,!0)));this.zoomedMax=g(Math.max(d,e),0,t);this.zoomedMin=g(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d,e),0,t);this.range=this.zoomedMax-this.zoomedMin;t=Math.round(this.zoomedMax);d=Math.round(this.zoomedMin);r&&(this.navigatorGroup.attr({visibility:"visible"}),w=w&&!this.hasDragged?"animate":"attr",this.drawMasks(d,t,u,w),this.drawOutline(d,t,u,w),this.navigatorOptions.handles.enabled&& (this.drawHandle(d,0,u,w),this.drawHandle(t,1,u,w)));this.scrollbar&&(u?(u=this.top-h,q=this.left-h+(r||!q.opposite?0:(q.titleOffset||0)+q.axisTitleMargin),h=k+2*h):(u=this.top+(r?this.height:-h),q=this.left-h),this.scrollbar.position(q,u,f,h),this.scrollbar.setRange(this.zoomedMin/(k||1),this.zoomedMax/(k||1)));this.rendered=!0}};b.prototype.addMouseEvents=function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)}; d=a.getPartsEvents("mousedown");d.push(m(b.renderTo,"mousemove",e),m(c.ownerDocument,"mouseup",f));q&&(d.push(m(b.renderTo,"touchmove",e),m(c.ownerDocument,"touchend",f)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(m(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};b.prototype.getPartsEvents=function(a){var b=this,c=[];["shades","handles"].forEach(function(d){b[d].forEach(function(e,f){c.push(m(e.element,a,function(a){b[d+ "Mousedown"](a,f)}))})});return c};b.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,k=a.chartX;c.inverted&&(k=a.chartY,f=this.top);if(1===b)this.grabbedCenter=k,this.fixedWidth=h,this.dragOffset=k-e;else{a=k-f-h/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+h>=g)if(a=g-h,this.reversedExtremes){a-=h;var l=this.getUnionExtremes().dataMin}else var m=this.getUnionExtremes().dataMax;a!==e&&(this.fixedWidth= h,b=d.navigatorAxis.toFixedRange(a,a+h,l,m),J(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};b.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null};b.prototype.onMouseMove= function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,h&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+g-f&&(c=e+g-f),b.render(0,0,c-g,c-g+f)),b.hasDragged&&b.scrollbar&&y(b.scrollbar.options.liveRedraw,C.svg&&!I&&!this.chart.isBoosting)&& (a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};b.prototype.onMouseUp=function(b){var c=this.chart,d=this.xAxis,e=this.scrollbar,f=b.DOMEvent||b,g=c.inverted,h=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!e||!e.hasDragged)||"scrollbar"===b.trigger){e=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var k=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var l=this.fixedExtreme;this.zoomedMax===this.size&&(l=this.reversedExtremes? e.dataMin:e.dataMax);0===this.zoomedMin&&(k=this.reversedExtremes?e.dataMax:e.dataMin);d=d.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,k,l);J(d.min)&&c.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:f})}"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset= null);this.navigatorEnabled&&a(this.zoomedMin)&&a(this.zoomedMax)&&(c=Math.round(this.zoomedMin),b=Math.round(this.zoomedMax),this.shades&&this.drawMasks(c,b,g,h),this.outline&&this.drawOutline(c,b,g,h),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(c,0,g,h),this.drawHandle(b,1,g,h)))};b.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()}; b.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){L(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&L(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};b.prototype.init=function(a){var b=a.options,c=b.navigator,d=c.enabled,g=b.scrollbar,h=g.enabled;b=d?c.height:0;var k=h?g.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height= b;this.scrollbarHeight=k;this.scrollbarEnabled=h;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=g;this.outlineHeight=b+k;this.opposite=y(c.opposite,!(d||!a.inverted));var n=this;d=n.baseSeries;g=a.xAxis.length;h=a.yAxis.length;var q=d&&d[0]&&d[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;n.navigatorEnabled?(n.xAxis=new e(a,f({breaks:q.options.breaks,ordinal:q.options.ordinal},c.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:g,isInternal:!0, offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[k,0,-k,0],width:b}:{offsets:[0,-k,0,k],height:b})),n.yAxis=new e(a,f(c.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:h,isInternal:!0,reversed:y(c.yAxis&&c.yAxis.reversed,a.yAxis[0]&&a.yAxis[0].reversed,!1),zoomEnabled:!1},a.inverted?{width:b}:{height:b})),d||c.series.data?n.updateNavigatorSeries(!1):0===a.series.length&&(n.unbindRedraw=m(a,"beforeRedraw",function(){0< a.series.length&&!n.series&&(n.setBaseSeries(),n.unbindRedraw())})),n.reversedExtremes=a.inverted&&!n.xAxis.reversed||!a.inverted&&n.xAxis.reversed,n.renderElements(),n.addMouseEvents()):(n.xAxis={chart:a,navigatorAxis:{fake:!0},translate:function(b,c){var d=a.xAxis[0],e=d.getExtremes(),f=d.len-2*k,g=r("min",d.options.min,e.dataMin);d=r("max",d.options.max,e.dataMax)-g;return c?b*d/f+g:f*(b-g)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)}},n.xAxis.navigatorAxis.axis= n.xAxis,n.xAxis.navigatorAxis.toFixedRange=D.AdditionsClass.prototype.toFixedRange.bind(n.xAxis.navigatorAxis));a.options.scrollbar.enabled&&(a.scrollbar=n.scrollbar=new l(a.renderer,f(a.options.scrollbar,{margin:n.navigatorEnabled?0:10,vertical:a.inverted}),a),m(n.scrollbar,"changed",function(a){var b=n.size,c=b*this.to;b*=this.from;n.hasDragged=n.scrollbar.hasDragged;n.render(0,0,b,c);this.shouldUpdateExtremes(a.DOMType)&&setTimeout(function(){n.onMouseUp(a)})}));n.addBaseSeriesEvents();n.addChartEvents()}; b.prototype.getUnionExtremes=function(a){var b=this.chart.xAxis[0],c=this.xAxis,d=c.options,e=b.options,f;a&&null===b.dataMin||(f={dataMin:y(d&&d.min,r("min",e.min,b.dataMin,c.dataMin,c.min)),dataMax:y(d&&d.max,r("max",e.max,b.dataMax,c.dataMax,c.max))});return f};b.prototype.setBaseSeries=function(a,b){var d=this.chart,e=this.baseSeries=[];a=a||d.options&&d.options.navigator.baseSeries||(d.series.length?c(d.series,function(a){return!a.options.isInternal}).index:0);(d.series||[]).forEach(function(b, c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||e.push(b)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,b)};b.prototype.updateNavigatorSeries=function(a,b){var c=this,d=c.chart,e=c.baseSeries,g,k,l=c.navigatorOptions.series,m,n={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}}, q=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>e.indexOf(b)?(b&&(L(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});e&&e.length&&e.forEach(function(a){var p=a.navigatorSeries,r=u({color:a.color,visible:a.visible},h(l)?x.navigator.series:l);p&&!1===c.navigatorOptions.adaptToUpdatedData||(n.name="Navigator "+e.length,g=a.options||{},m=g.navigatorOptions||{},r.dataLabels=K(r.dataLabels),k=f(g,n,r,m),k.pointRange=y(r.pointRange,m.pointRange, x.plotOptions[k.type||"line"].pointRange),r=m.data||r.data,c.hasNavigatorData=c.hasNavigatorData||!!r,k.data=r||g.data&&g.data.slice(0),p&&p.options?p.update(k,b):(a.navigatorSeries=d.initSeries(k),a.navigatorSeries.baseSeries=a,q.push(a.navigatorSeries)))});if(l.data&&(!e||!e.length)||h(l))c.hasNavigatorData=!1,l=K(l),l.forEach(function(a,b){n.name="Navigator "+(q.length+1);k=f(x.navigator.series,{color:d.series[b]&&!d.series[b].options.isInternal&&d.series[b].color||d.options.colors[b]||d.options.colors[0]}, n,a);k.data=a.data;k.data&&(c.hasNavigatorData=!0,q.push(d.initSeries(k)))});a&&this.addBaseSeriesEvents()};b.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(m(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(b){b.eventsToUnbind.push(m(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));b.eventsToUnbind.push(m(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1, !1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(m(b,"updatedData",this.updatedDataHandler));b.eventsToUnbind.push(m(b,"remove",function(){this.navigatorSeries&&(z(a.series,this.navigatorSeries),J(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};b.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,b.xData?b.xData[0]:a)},a)};b.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))};b.prototype.modifyBaseAxisExtremes=function(){var b=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax;c=c.max-c.min;var f=b.stickToMin,g=b.stickToMax,h=y(this.options.overscroll,0),k=b.series&&b.series[0],l=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(f){var m=d;var n= m+c}g&&(n=e+h,f||(m=Math.max(d,n-c,b.getBaseSeriesMin(k&&k.xData?k.xData[0]:-Number.MAX_VALUE))));l&&(f||g)&&a(m)&&(this.min=this.userMin=m,this.max=this.userMax=n)}b.stickToMin=b.stickToMax=null};b.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=a.shouldStickToMin(this,a);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data, !1,null,!1))};b.prototype.shouldStickToMin=function(b,c){c=c.getBaseSeriesMin(b.xData[0]);var d=b.xAxis;b=d.max;var e=d.min;d=d.options.range;var f=!0;a(b)&&a(e)&&(f=d&&0