/*
 Highcharts Gantt JS v10.3.2 (2022-11-28)

 Gantt series

 (c) 2016-2021 Lars A. V. Cabrera

 License: www.highcharts.com/license
*/
(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/gantt",["highcharts"],function(J){c(J);c.Highcharts=J;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function J(c,z,G,w){c.hasOwnProperty(z)||(c[z]=w.apply(null,G),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:c[z]}})))}c=c?c._modules:{};J(c,"Core/Axis/NavigatorAxisComposition.js",
[c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,z){function D(){this.navigatorAxis||(this.navigatorAxis=new A(this))}function w(p){var h=this.chart.options,r=h.navigator,a=this.navigatorAxis,e=h.chart.zooming.pinchType,q=h.rangeSelector;h=h.chart.zooming.type;this.isXAxis&&(r&&r.enabled||q&&q.enabled)&&("y"===h?p.zoomed=!1:(!H&&"xy"===h||H&&"xy"===e)&&this.options.range&&(r=a.previousZoom,y(p.newMin)?a.previousZoom=[this.min,this.max]:r&&(p.newMin=r[0],p.newMax=r[1],a.previousZoom=void 0)));
"undefined"!==typeof p.zoomed&&p.preventDefault()}var H=c.isTouchDevice,v=z.addEvent,l=z.correctFloat,y=z.defined,p=z.isNumber,I=z.pick,t=[],A=function(){function x(h){this.axis=h}x.compose=function(h){-1===t.indexOf(h)&&(t.push(h),h.keepProps.push("navigatorAxis"),v(h,"init",D),v(h,"zoom",w))};x.prototype.destroy=function(){this.axis=void 0};x.prototype.toFixedRange=function(h,r,a,e){var q=this.axis,t=q.chart;h=I(a,q.translate(h,!0,!q.horiz));r=I(e,q.translate(r,!0,!q.horiz));t=t&&t.fixedRange;q=
(q.pointRange||0)/2;var x=t&&(r-h)/t;y(a)||(h=l(h+q));y(e)||(r=l(r-q));.7<x&&1.3>x&&(e?h=r-t:r=h+t);p(h)&&p(r)||(h=r=void 0);return{min:h,max:r}};return x}();return A});J(c,"Stock/Navigator/NavigatorDefaults.js",[c["Core/Color/Color.js"],c["Core/Series/SeriesRegistry.js"]],function(c,z){c=c.parse;z=z.seriesTypes;z={height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:c("#6685c2").setOpacity(.3).get(),
outlineColor:"#cccccc",outlineWidth:1,series:{type:"undefined"===typeof z.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,
zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},
tickLength:0,tickWidth:0}};"";return z});J(c,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(c,z,G,w,H){void 0===H&&(H={});c=H.width?H.width/2:G;z=Math.round(c/3)+.5;w=H.height||w;return[["M",-c-1,.5],["L",c,.5],["L",c,w+.5],["L",-c-1,w+.5],["L",-c-1,.5],["M",-z,4],["L",-z,w-3],["M",z-1,4],["L",z-1,w-3]]}}});J(c,"Stock/Navigator/NavigatorComposition.js",[c["Core/Defaults.js"],c["Core/Globals.js"],c["Core/Axis/NavigatorAxisComposition.js"],c["Stock/Navigator/NavigatorDefaults.js"],
c["Stock/Navigator/NavigatorSymbols.js"],c["Core/Renderer/RendererRegistry.js"],c["Core/Utilities.js"]],function(c,z,G,w,H,v,l){function y(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function p(){var d=this.legend,b=this.navigator;if(b){var m=d&&d.options;var E=b.xAxis;var F=b.yAxis;var f=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f-b.height:this.spacing[3]+f,b.top=this.plotTop+f):(b.left=k(E.left,this.plotLeft+f),b.top=b.navigatorOptions.top||this.chartHeight-
b.height-f-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(m&&"bottom"===m.verticalAlign&&"proximate"!==m.layout&&m.enabled&&!m.floating?d.legendHeight+k(m.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));E&&F&&(this.inverted?E.options.left=F.options.left=b.left:E.options.top=F.options.top=b.top,E.setAxisSize(),F.setAxisSize())}}function I(g){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=
this.navigator=new d(this),k(g.redraw,!0)&&this.redraw(g.animation))}function t(){var g=this.options;if(g.navigator.enabled||g.scrollbar.enabled)this.scroller=this.navigator=new d(this)}function A(){var d=this.options,b=d.navigator,m=d.rangeSelector;if((b&&b.enabled||m&&m.enabled)&&(!q&&"x"===d.chart.zooming.type||q&&"x"===d.chart.zooming.pinchType))return!1}function x(d){var b=d.navigator;b&&d.xAxis[0]&&(d=d.xAxis[0].getExtremes(),b.render(d.min,d.max))}function h(d){var b=d.options.navigator||{},
m=d.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!m.enabled||(n(!0,this.options.navigator,b),n(!0,this.options.scrollbar,m),delete d.options.navigator,delete d.options.scrollbar)}function r(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var a=c.defaultOptions,e=c.setOptions,q=z.isTouchDevice,K=v.getRendererType,L=l.addEvent,u=l.extend,n=l.merge,k=l.pick,f=[],d;return{compose:function(g,b,m,E){G.compose(g);d=m;-1===f.indexOf(b)&&(f.push(b),
b.prototype.callbacks.push(x),L(b,"afterAddSeries",y),L(b,"afterSetChartSize",p),L(b,"afterUpdate",I),L(b,"beforeRender",t),L(b,"beforeShowResetZoom",A),L(b,"update",h));-1===f.indexOf(E)&&(f.push(E),L(E,"afterUpdate",r));-1===f.indexOf(K)&&(f.push(K),u(K().prototype.symbols,H));-1===f.indexOf(e)&&(f.push(e),u(a,{navigator:w}))}}});J(c,"Core/Axis/ScrollbarAxis.js",[c["Core/Utilities.js"]],function(c){var z=c.addEvent,D=c.defined,w=c.pick;return function(){function c(){}c.compose=function(v,l){if(-1===
c.composed.indexOf(v))c.composed.push(v);else return v;var y=function(p){var l=w(p.options&&p.options.min,p.min),t=w(p.options&&p.options.max,p.max);return{axisMin:l,axisMax:t,scrollMin:D(p.dataMin)?Math.min(l,p.min,p.dataMin,w(p.threshold,Infinity)):l,scrollMax:D(p.dataMax)?Math.max(t,p.max,p.dataMax,w(p.threshold,-Infinity)):t}};z(v,"afterInit",function(){var p=this;p.options&&p.options.scrollbar&&p.options.scrollbar.enabled&&(p.options.scrollbar.vertical=!p.horiz,p.options.startOnTick=p.options.endOnTick=
!1,p.scrollbar=new l(p.chart.renderer,p.options.scrollbar,p.chart),z(p.scrollbar,"changed",function(l){var t=y(p),c=t.axisMax,x=t.scrollMin,h=t.scrollMax-x;D(t.axisMin)&&D(c)&&(p.horiz&&!p.reversed||!p.horiz&&p.reversed?(t=x+h*this.to,x+=h*this.from):(t=x+h*(1-this.from),x+=h*(1-this.to)),this.shouldUpdateExtremes(l.DOMType)?p.setExtremes(x,t,!0,"mousemove"!==l.DOMType&&"touchmove"!==l.DOMType,l):this.setRange(this.from,this.to))}))});z(v,"afterRender",function(){var p=y(this),l=p.scrollMin,t=p.scrollMax;
p=this.scrollbar;var c=this.axisTitleMargin+(this.titleOffset||0),x=this.chart.scrollbarsOffsets,h=this.options.margin||0;p&&(this.horiz?(this.opposite||(x[1]+=c),p.position(this.left,this.top+this.height+2+x[1]-(this.opposite?h:0),this.width,this.height),this.opposite||(x[1]+=h),c=1):(this.opposite&&(x[0]+=c),p.position(p.options.opposite?this.left+this.width+2+x[0]-(this.opposite?0:h):this.opposite?0:h,this.top,this.width,this.height),this.opposite&&(x[0]+=h),c=0),x[c]+=p.size+p.options.margin,
isNaN(l)||isNaN(t)||!D(this.min)||!D(this.max)||this.min===this.max?p.setRange(0,1):(x=(this.min-l)/(t-l),l=(this.max-l)/(t-l),this.horiz&&!this.reversed||!this.horiz&&this.reversed?p.setRange(x,l):p.setRange(1-l,1-x)))});z(v,"afterGetOffset",function(){var p=this.scrollbar&&!this.scrollbar.options.opposite;p=this.horiz?2:p?3:1;var l=this.scrollbar;l&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[p]+=l.size+l.options.margin)});return v};c.composed=[];return c}()});J(c,"Stock/Scrollbar/ScrollbarDefaults.js",
[c["Core/Globals.js"]],function(c){return{height:c.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}});J(c,"Stock/Scrollbar/Scrollbar.js",[c["Core/Defaults.js"],
c["Core/Globals.js"],c["Core/Axis/ScrollbarAxis.js"],c["Stock/Scrollbar/ScrollbarDefaults.js"],c["Core/Utilities.js"]],function(c,z,G,w,H){var v=c.defaultOptions,l=H.addEvent,y=H.correctFloat,p=H.defined,I=H.destroyObjectProperties,t=H.fireEvent,A=H.merge,x=H.pick,h=H.removeEvent;c=function(){function r(a,e,q){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(a,e,q)}r.compose=function(a){G.compose(a,r)};r.swapXY=function(a,e){e&&a.forEach(function(a){for(var e=a.length,q,u=0;u<e;u+=2)q=a[u+1],"number"===typeof q&&(a[u+1]=a[u+2],a[u+2]=q)});return a};r.prototype.addEvents=function(){var a=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,q=this.scrollbarGroup.element,
r=this.track.element,h=this.mouseDownHandler.bind(this),u=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this);a=[[e[a[0]].element,"click",this.buttonToMinClick.bind(this)],[e[a[1]].element,"click",this.buttonToMaxClick.bind(this)],[r,"click",this.trackClick.bind(this)],[q,"mousedown",h],[q.ownerDocument,"mousemove",u],[q.ownerDocument,"mouseup",n]];z.hasTouch&&a.push([q,"touchstart",h],[q.ownerDocument,"touchmove",u],[q.ownerDocument,"touchend",n]);a.forEach(function(a){l.apply(null,
a)});this._events=a};r.prototype.buttonToMaxClick=function(a){var e=(this.to-this.from)*x(this.options.step,.2);this.updatePosition(this.from+e,this.to+e);t(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};r.prototype.buttonToMinClick=function(a){var e=y(this.to-this.from)*x(this.options.step,.2);this.updatePosition(y(this.from-e),y(this.to-e));t(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};r.prototype.cursorToScrollbarPosition=function(a){var e=
this.options;e=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-e)}};r.prototype.destroy=function(){var a=this,e=a.chart.scroller;a.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){a[e]&&a[e].destroy&&(a[e]=a[e].destroy())});e&&a===e.scrollbar&&(e.scrollbar=null,I(e.scrollbarButtons))};r.prototype.drawScrollbarButton=function(a){var e=this.renderer,
q=this.scrollbarButtons,h=this.options,l=this.size,u=e.g().add(this.group);q.push(u);u=e.rect().addClass("highcharts-scrollbar-button").add(u);this.chart.styledMode||u.attr({stroke:h.buttonBorderColor,"stroke-width":h.buttonBorderWidth,fill:h.buttonBackgroundColor});u.attr(u.crisp({x:-.5,y:-.5,width:l+1,height:l+1,r:h.buttonBorderRadius},u.strokeWidth()));u=e.path(r.swapXY([["M",l/2+(a?-1:1),l/2-3],["L",l/2+(a?-1:1),l/2+3],["L",l/2+(a?2:-2),l/2]],h.vertical)).addClass("highcharts-scrollbar-arrow").add(q[a]);
this.chart.styledMode||u.attr({fill:h.buttonArrowColor})};r.prototype.init=function(a,e,q){this.scrollbarButtons=[];this.renderer=a;this.userOptions=e;this.options=A(w,v.scrollbar,e);this.chart=q;this.size=x(this.options.size,this.options.height);e.enabled&&(this.render(),this.addEvents())};r.prototype.mouseDownHandler=function(a){a=this.chart.pointer.normalize(a);a=this.cursorToScrollbarPosition(a);this.chartX=a.chartX;this.chartY=a.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=
!0};r.prototype.mouseMoveHandler=function(a){var e=this.chart.pointer.normalize(a),q=this.options.vertical?"chartY":"chartX",h=this.initPositions||[];!this.grabbedCenter||a.touches&&0===a.touches[0][q]||(e=this.cursorToScrollbarPosition(e)[q],q=this[q],q=e-q,this.hasDragged=!0,this.updatePosition(h[0]+q,h[1]+q),this.hasDragged&&t(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};r.prototype.mouseUpHandler=function(a){this.hasDragged&&t(this,"changed",{from:this.from,
to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};r.prototype.position=function(a,e,q,h){var r=this.options.vertical,u=this.rendered?"animate":"attr",n=h,k=0;this.group.show();this.x=a;this.y=e+this.trackBorderWidth;this.width=q;this.height=h;this.xOffset=n;this.yOffset=k;r?(this.width=this.yOffset=q=k=this.size,this.xOffset=n=0,this.barWidth=h-2*q,this.x=a+=this.options.margin):(this.height=this.xOffset=h=n=this.size,this.barWidth=
q-2*h,this.y+=this.options.margin);this.group[u]({translateX:a,translateY:this.y});this.track[u]({width:q,height:h});this.scrollbarButtons[1][u]({translateX:r?0:q-n,translateY:r?h-k:0})};r.prototype.removeEvents=function(){this._events.forEach(function(a){h.apply(null,a)});this._events.length=0};r.prototype.render=function(){var a=this.renderer,e=this.options,q=this.size,h=this.chart.styledMode,l=a.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=l;this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,
r:e.trackBorderRadius||0,height:q,width:q}).add(l);h||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a.g().add(l);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:q,width:q,r:e.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a.path(r.swapXY([["M",-3,q/4],["L",-3,2*q/3],["M",0,q/4],
["L",0,2*q/3],["M",3,q/4],["L",3,2*q/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);h||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};r.prototype.setRange=
function(a,e){var h=this.options,r=h.vertical,l=h.minWidth,u=this.barWidth,n=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(p(u)){var k=u*Math.min(e,1);a=Math.max(a,0);var f=Math.ceil(u*a);this.calculatedWidth=k=y(k-f);k<l&&(f=(u-l+k)*a,k=l);l=Math.floor(f+this.xOffset+this.yOffset);u=k/2-.5;this.from=a;this.to=e;r?(this.scrollbarGroup[n]({translateY:l}),this.scrollbar[n]({height:k}),this.scrollbarRifles[n]({translateY:u}),this.scrollbarTop=
l,this.scrollbarLeft=0):(this.scrollbarGroup[n]({translateX:l}),this.scrollbar[n]({width:k}),this.scrollbarRifles[n]({translateX:u}),this.scrollbarLeft=l,this.scrollbarTop=0);12>=k?this.scrollbarRifles.hide():this.scrollbarRifles.show();!1===h.showFull&&(0>=a&&1<=e?this.group.hide():this.group.show());this.rendered=!0}};r.prototype.shouldUpdateExtremes=function(a){return x(this.options.liveRedraw,z.svg&&!z.isTouchDevice&&!this.chart.boosted)||"mouseup"===a||"touchend"===a||!p(a)};r.prototype.trackClick=
function(a){var e=this.chart.pointer.normalize(a),h=this.to-this.from,r=this.y+this.scrollbarTop,l=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>r||!this.options.vertical&&e.chartX>l?this.updatePosition(this.from+h,this.to+h):this.updatePosition(this.from-h,this.to-h);t(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};r.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,A(!0,this.options,a),this.chart)};r.prototype.updatePosition=function(a,
e){1<e&&(a=y(1-y(e-a)),e=1);0>a&&(e=y(e-a),a=0);this.from=a;this.to=e};r.defaultOptions=w;return r}();v.scrollbar=A(!0,c.defaultOptions,v.scrollbar);return c});J(c,"Stock/Navigator/Navigator.js",[c["Core/Axis/Axis.js"],c["Core/Defaults.js"],c["Core/Globals.js"],c["Core/Axis/NavigatorAxisComposition.js"],c["Stock/Navigator/NavigatorComposition.js"],c["Stock/Scrollbar/Scrollbar.js"],c["Core/Utilities.js"]],function(c,z,G,w,H,v,l){function y(d){for(var b=[],m=1;m<arguments.length;m++)b[m-1]=arguments[m];
b=[].filter.call(b,u);if(b.length)return Math[d].apply(0,b)}var p=z.defaultOptions,I=G.hasTouch,t=G.isTouchDevice,A=l.addEvent,x=l.clamp,h=l.correctFloat,r=l.defined,a=l.destroyObjectProperties,e=l.erase,q=l.extend,K=l.find,D=l.isArray,u=l.isNumber,n=l.merge,k=l.pick,f=l.removeEvent,d=l.splat;return function(){function g(b){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=
this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(b)}g.compose=function(b,m,d){H.compose(b,m,g,d)};g.prototype.drawHandle=function(b,m,d,F){var E=this.navigatorOptions.handles.height;this.handles[m][F](d?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(b,10)+.5-E)}:{translateX:Math.round(this.left+parseInt(b,10)),translateY:Math.round(this.top+this.height/2-E/2-1)})};
g.prototype.drawOutline=function(b,m,d,F){var E=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,a=g%2/2;g=this.outlineHeight;var k=this.scrollbarHeight||0,C=this.size,B=this.left-k,e=this.top;d?(B-=f,d=e+m+a,m=e+b+a,a=[["M",B+g,e-k-a],["L",B+g,d],["L",B,d],["L",B,m],["L",B+g,m],["L",B+g,e+C+k]],E&&a.push(["M",B+g,d-f],["L",B+g,m+f])):(b+=B+k-a,m+=B+k-a,e+=f,a=[["M",B,e],["L",b,e],["L",b,e+g],["L",m,e+g],["L",m,e],["L",B+C+2*k,e]],E&&a.push(["M",b-f,e],["L",m+f,e]));this.outline[F]({d:a})};
g.prototype.drawMasks=function(b,m,d,g){var E=this.left,F=this.top,f=this.height;if(d){var a=[E,E,E];var k=[F,F+b,F+m];var C=[f,f,f];var B=[b,m-b,this.size-m]}else a=[E,E+b,E+m],k=[F,F,F],C=[b,m-b,this.size-m],B=[f,f,f];this.shades.forEach(function(b,m){b[g]({x:a[m],y:k[m],width:C[m],height:B[m]})})};g.prototype.renderElements=function(){var b=this,m=b.navigatorOptions,d=m.maskInside,g=b.chart,f=g.renderer,a={cursor:g.inverted?"ns-resize":"ew-resize"},k=b.navigatorGroup=f.g("navigator").attr({zIndex:8,
visibility:"hidden"}).add();[!d,d,!d].forEach(function(d,E){var F=f.rect().addClass("highcharts-navigator-mask"+(1===E?"-inside":"-outside")).add(k);g.styledMode||(F.attr({fill:d?m.maskFill:"rgba(0,0,0,0)"}),1===E&&F.css(a));b.shades[E]=F});b.outline=f.path().addClass("highcharts-navigator-outline").add(k);g.styledMode||b.outline.attr({"stroke-width":m.outlineWidth,stroke:m.outlineColor});if(m.handles&&m.handles.enabled){var e=m.handles,n=e.height,C=e.width;[0,1].forEach(function(m){b.handles[m]=
f.symbol(e.symbols[m],-C/2-1,0,C,n,e);g.inverted&&b.handles[m].attr({rotation:90,rotationOriginX:Math.floor(-C/2),rotationOriginY:(n+C)/2});b.handles[m].attr({zIndex:7-m}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][m]).add(k);g.styledMode||b.handles[m].attr({fill:e.backgroundColor,stroke:e.borderColor,"stroke-width":e.lineWidth}).css(a)})}};g.prototype.update=function(b){(this.series||[]).forEach(function(b){b.baseSeries&&delete b.baseSeries.navigatorSeries});
this.destroy();n(!0,this.chart.options.navigator,b);this.init(this.chart)};g.prototype.render=function(b,m,d,g){var E=this.chart,F=this.xAxis,f=F.pointRange||0,a=F.navigatorAxis.fake?E.xAxis[0]:F,e=this.navigatorEnabled,C=this.rendered,B=E.inverted,n=E.xAxis[0].minRange,l=E.xAxis[0].options.maxRange,q=this.scrollbarHeight,p;if(!this.hasDragged||r(d)){b=h(b-f/2);m=h(m+f/2);if(!u(b)||!u(m))if(C)d=0,g=k(F.width,a.width);else return;this.left=k(F.left,E.plotLeft+q+(B?E.plotWidth:0));var c=this.size=p=
k(F.len,(B?E.plotHeight:E.plotWidth)-2*q);E=B?q:p+2*q;d=k(d,F.toPixels(b,!0));g=k(g,F.toPixels(m,!0));u(d)&&Infinity!==Math.abs(d)||(d=0,g=E);b=F.toValue(d,!0);m=F.toValue(g,!0);var t=Math.abs(h(m-b));t<n?this.grabbedLeft?d=F.toPixels(m-n-f,!0):this.grabbedRight&&(g=F.toPixels(b+n+f,!0)):r(l)&&h(t-f)>l&&(this.grabbedLeft?d=F.toPixels(m-l-f,!0):this.grabbedRight&&(g=F.toPixels(b+l+f,!0)));this.zoomedMax=x(Math.max(d,g),0,c);this.zoomedMin=x(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d,
g),0,c);this.range=this.zoomedMax-this.zoomedMin;c=Math.round(this.zoomedMax);d=Math.round(this.zoomedMin);e&&(this.navigatorGroup.attr({visibility:"inherit"}),C=C&&!this.hasDragged?"animate":"attr",this.drawMasks(d,c,B,C),this.drawOutline(d,c,B,C),this.navigatorOptions.handles.enabled&&(this.drawHandle(d,0,B,C),this.drawHandle(c,1,B,C)));this.scrollbar&&(B?(B=this.top-q,a=this.left-q+(e||!a.opposite?0:(a.titleOffset||0)+a.axisTitleMargin),q=p+2*q):(B=this.top+(e?this.height:-q),a=this.left-q),this.scrollbar.position(a,
B,E,q),this.scrollbar.setRange(this.zoomedMin/(p||1),this.zoomedMax/(p||1)));this.rendered=!0}};g.prototype.addMouseEvents=function(){var b=this,m=b.chart,d=m.container,g=[],f,a;b.mouseMoveHandler=f=function(m){b.onMouseMove(m)};b.mouseUpHandler=a=function(m){b.onMouseUp(m)};g=b.getPartsEvents("mousedown");g.push(A(m.renderTo,"mousemove",f),A(d.ownerDocument,"mouseup",a));I&&(g.push(A(m.renderTo,"touchmove",f),A(d.ownerDocument,"touchend",a)),g.concat(b.getPartsEvents("touchstart")));b.eventsToUnbind=
g;b.series&&b.series[0]&&g.push(A(b.series[0].xAxis,"foundExtremes",function(){m.navigator.modifyNavigatorAxisExtremes()}))};g.prototype.getPartsEvents=function(b){var m=this,d=[];["shades","handles"].forEach(function(E){m[E].forEach(function(g,F){d.push(A(g.element,b,function(b){m[E+"Mousedown"](b,F)}))})});return d};g.prototype.shadesMousedown=function(b,m){b=this.chart.pointer.normalize(b);var d=this.chart,g=this.xAxis,f=this.zoomedMin,a=this.size,k=this.range,e=this.left,n=b.chartX;d.inverted&&
(n=b.chartY,e=this.top);if(1===m)this.grabbedCenter=n,this.fixedWidth=k,this.dragOffset=n-f;else{b=n-e-k/2;if(0===m)b=Math.max(0,b);else if(2===m&&b+k>=a)if(b=a-k,this.reversedExtremes){b-=k;var C=this.getUnionExtremes().dataMin}else var B=this.getUnionExtremes().dataMax;b!==f&&(this.fixedWidth=k,m=g.navigatorAxis.toFixedRange(b,b+k,C,B),r(m.min)&&d.xAxis[0].setExtremes(Math.min(m.min,m.max),Math.max(m.min,m.max),!0,null,{trigger:"navigator"}))}};g.prototype.handlesMousedown=function(b,m){this.chart.pointer.normalize(b);
b=this.chart;var d=b.xAxis[0],g=this.reversedExtremes;0===m?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=g?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=g?d.max:d.min);b.fixedRange=null};g.prototype.onMouseMove=function(b){var m=this,d=m.chart,g=m.navigatorSize,f=m.range,a=m.dragOffset,e=d.inverted,n=m.left;b.touches&&0===b.touches[0].pageX||(b=d.pointer.normalize(b),d=b.chartX,e&&(n=m.top,d=b.chartY),m.grabbedLeft?(m.hasDragged=
!0,m.render(0,0,d-n,m.otherHandlePos)):m.grabbedRight?(m.hasDragged=!0,m.render(0,0,m.otherHandlePos,d-n)):m.grabbedCenter&&(m.hasDragged=!0,d<a?d=a:d>g+a-f&&(d=g+a-f),m.render(0,0,d-a,d-a+f)),m.hasDragged&&m.scrollbar&&k(m.scrollbar.options.liveRedraw,G.svg&&!t&&!this.chart.boosted)&&(b.DOMType=b.type,setTimeout(function(){m.onMouseUp(b)},0)))};g.prototype.onMouseUp=function(b){var m=this.chart,d=this.xAxis,g=this.scrollbar,f=b.DOMEvent||b,a=m.inverted,k=this.rendered&&!this.hasDragged?"animate":
"attr";if(this.hasDragged&&(!g||!g.hasDragged)||"scrollbar"===b.trigger){g=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var e=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var n=this.fixedExtreme;this.zoomedMax===this.size&&(n=this.reversedExtremes?g.dataMin:g.dataMax);0===this.zoomedMin&&(e=this.reversedExtremes?g.dataMax:g.dataMin);d=d.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,e,n);r(d.min)&&m.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&&u(this.zoomedMin)&&u(this.zoomedMax)&&(m=Math.round(this.zoomedMin),b=Math.round(this.zoomedMax),this.shades&&this.drawMasks(m,b,a,k),this.outline&&this.drawOutline(m,b,a,k),this.navigatorOptions.handles.enabled&&
Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(m,0,a,k),this.drawHandle(b,1,a,k)))};g.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(b){b()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};g.prototype.removeBaseSeriesEvents=function(){var b=this.baseSeries||[];this.navigatorEnabled&&b[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&b.forEach(function(b){f(b,"updatedData",this.updatedDataHandler)},this),b[0].xAxis&&
f(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};g.prototype.init=function(b){var d=b.options,g=d.navigator||{},f=g.enabled,a=d.scrollbar||{},e=a.enabled;d=f&&g.height||0;var u=e&&a.height||0;this.handles=[];this.shades=[];this.chart=b;this.setBaseSeries();this.height=d;this.scrollbarHeight=u;this.scrollbarEnabled=e;this.navigatorEnabled=f;this.navigatorOptions=g;this.scrollbarOptions=a;this.outlineHeight=d+u;this.opposite=k(g.opposite,!(f||!b.inverted));var h=this;f=h.baseSeries;a=b.xAxis.length;
e=b.yAxis.length;var q=f&&f[0]&&f[0].xAxis||b.xAxis[0]||{options:{}};b.isDirtyBox=!0;h.navigatorEnabled?(h.xAxis=new c(b,n({breaks:q.options.breaks,ordinal:q.options.ordinal},g.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:a,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},b.inverted?{offsets:[u,0,-u,0],width:d}:{offsets:[0,-u,0,u],height:d})),h.yAxis=new c(b,n(g.yAxis,{id:"navigator-y-axis",alignTicks:!1,
offset:0,index:e,isInternal:!0,reversed:k(g.yAxis&&g.yAxis.reversed,b.yAxis[0]&&b.yAxis[0].reversed,!1),zoomEnabled:!1},b.inverted?{width:d}:{height:d})),f||g.series.data?h.updateNavigatorSeries(!1):0===b.series.length&&(h.unbindRedraw=A(b,"beforeRedraw",function(){0<b.series.length&&!h.series&&(h.setBaseSeries(),h.unbindRedraw())})),h.reversedExtremes=b.inverted&&!h.xAxis.reversed||!b.inverted&&h.xAxis.reversed,h.renderElements(),h.addMouseEvents()):(h.xAxis={chart:b,navigatorAxis:{fake:!0},translate:function(d,
m){var g=b.xAxis[0],f=g.getExtremes(),a=g.len-2*u,E=y("min",g.options.min,f.dataMin);g=y("max",g.options.max,f.dataMax)-E;return m?d*g/a+E:a*(d-E)/g},toPixels:function(b){return this.translate(b)},toValue:function(b){return this.translate(b,!0)}},h.xAxis.navigatorAxis.axis=h.xAxis,h.xAxis.navigatorAxis.toFixedRange=w.prototype.toFixedRange.bind(h.xAxis.navigatorAxis));b.options.scrollbar.enabled&&(b.scrollbar=h.scrollbar=new v(b.renderer,n(b.options.scrollbar,{margin:h.navigatorEnabled?0:10,vertical:b.inverted}),
b),A(h.scrollbar,"changed",function(b){var d=h.size,m=d*this.to;d*=this.from;h.hasDragged=h.scrollbar.hasDragged;h.render(0,0,d,m);this.shouldUpdateExtremes(b.DOMType)&&setTimeout(function(){h.onMouseUp(b)})}));h.addBaseSeriesEvents();h.addChartEvents()};g.prototype.getUnionExtremes=function(b){var d=this.chart.xAxis[0],g=this.xAxis,f=g.options,a=d.options,e;b&&null===d.dataMin||(e={dataMin:k(f&&f.min,y("min",a.min,d.dataMin,g.dataMin,g.min)),dataMax:k(f&&f.max,y("max",a.max,d.dataMax,g.dataMax,g.max))});
return e};g.prototype.setBaseSeries=function(b,d){var m=this.chart,g=this.baseSeries=[];b=b||m.options&&m.options.navigator.baseSeries||(m.series.length?K(m.series,function(b){return!b.options.isInternal}).index:0);(m.series||[]).forEach(function(d,m){d.options.isInternal||!d.options.showInNavigator&&(m!==b&&d.options.id!==b||!1===d.options.showInNavigator)||g.push(d)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,d)};g.prototype.updateNavigatorSeries=function(b,m){var g=
this,a=g.chart,e=g.baseSeries,h={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}}},u=g.series=(g.series||[]).filter(function(b){var d=b.baseSeries;return 0>e.indexOf(d)?(d&&(f(d,"updatedData",g.updatedDataHandler),delete d.navigatorSeries),b.chart&&b.destroy(),!1):!0}),l,r,C=g.navigatorOptions.series,B;e&&e.length&&e.forEach(function(b){var f=b.navigatorSeries,
E=q({color:b.color,visible:b.visible},D(C)?p.navigator.series:C);f&&!1===g.navigatorOptions.adaptToUpdatedData||(h.name="Navigator "+e.length,l=b.options||{},B=l.navigatorOptions||{},E.dataLabels=d(E.dataLabels),r=n(l,h,E,B),r.pointRange=k(E.pointRange,B.pointRange,p.plotOptions[r.type||"line"].pointRange),E=B.data||E.data,g.hasNavigatorData=g.hasNavigatorData||!!E,r.data=E||l.data&&l.data.slice(0),f&&f.options?f.update(r,m):(b.navigatorSeries=a.initSeries(r),b.navigatorSeries.baseSeries=b,u.push(b.navigatorSeries)))});
if(C.data&&(!e||!e.length)||D(C))g.hasNavigatorData=!1,C=d(C),C.forEach(function(b,d){h.name="Navigator "+(u.length+1);r=n(p.navigator.series,{color:a.series[d]&&!a.series[d].options.isInternal&&a.series[d].color||a.options.colors[d]||a.options.colors[0]},h,b);r.data=b.data;r.data&&(g.hasNavigatorData=!0,u.push(a.initSeries(r)))});b&&this.addBaseSeriesEvents()};g.prototype.addBaseSeriesEvents=function(){var b=this,d=this,g=d.baseSeries||[];g[0]&&g[0].xAxis&&g[0].eventsToUnbind.push(A(g[0].xAxis,"foundExtremes",
this.modifyBaseAxisExtremes));g.forEach(function(m){m.eventsToUnbind.push(A(m,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));m.eventsToUnbind.push(A(m,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==b.navigatorOptions.adaptToUpdatedData&&m.xAxis&&m.eventsToUnbind.push(A(m,"updatedData",b.updatedDataHandler));m.eventsToUnbind.push(A(m,"remove",function(){this.navigatorSeries&&(e(d.series,this.navigatorSeries),r(this.navigatorSeries.options)&&
this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})};g.prototype.getBaseSeriesMin=function(b){return this.baseSeries.reduce(function(b,d){return Math.min(b,d.xData&&d.xData.length?d.xData[0]:b)},b)};g.prototype.modifyNavigatorAxisExtremes=function(){var b=this.xAxis;if("undefined"!==typeof b.getExtremes){var d=this.getUnionExtremes(!0);!d||d.dataMin===b.min&&d.dataMax===b.max||(b.min=d.dataMin,b.max=d.dataMax)}};g.prototype.modifyBaseAxisExtremes=function(){var b=this.chart.navigator,
d=this.getExtremes(),g=d.dataMin,f=d.dataMax;d=d.max-d.min;var a=b.stickToMin,e=b.stickToMax,h=k(this.options.overscroll,0),n=b.series&&b.series[0],r=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(a){var C=g;var B=C+d}e&&(B=f+h,a||(C=Math.max(g,B-d,b.getBaseSeriesMin(n&&n.xData?n.xData[0]:-Number.MAX_VALUE))));r&&(a||e)&&u(C)&&(this.min=this.userMin=C,this.max=this.userMax=B)}b.stickToMin=b.stickToMax=null};g.prototype.updatedDataHandler=function(){var b=
this.chart.navigator,d=this.navigatorSeries;b.stickToMax=k(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,b.reversedExtremes?0===Math.round(b.zoomedMin):Math.round(b.zoomedMax)>=Math.round(b.size));b.stickToMin=b.shouldStickToMin(this,b);d&&!b.hasNavigatorData&&(d.options.pointStart=this.xData[0],d.setData(this.options.data,!1,null,!1))};g.prototype.shouldStickToMin=function(b,d){d=d.getBaseSeriesMin(b.xData[0]);var m=b.xAxis;b=m.max;var g=m.min;m=m.options.range;return u(b)&&
u(g)?m&&0<b-d?b-d<m:g<=d:!1};g.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(A(this.chart,"redraw",function(){var b=this.navigator,d=b&&(b.baseSeries&&b.baseSeries[0]&&b.baseSeries[0].xAxis||this.xAxis[0]);d&&b.render(d.min,d.max)}),A(this.chart,"getMargins",function(){var b=this.navigator,d=b.opposite?"plotTop":"marginBottom";this.inverted&&(d=b.opposite?"marginRight":"plotLeft");this[d]=(this[d]||0)+(b.navigatorEnabled||!this.inverted?
b.outlineHeight:0)+b.navigatorOptions.margin}))};g.prototype.destroy=function(){var b=this;this.removeEvents();this.xAxis&&(e(this.chart.xAxis,this.xAxis),e(this.chart.axes,this.xAxis));this.yAxis&&(e(this.chart.yAxis,this.yAxis),e(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(b){b.destroy&&b.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(d){b[d]&&b[d].destroy&&b[d].destroy();
b[d]=null});[this.handles].forEach(function(b){a(b)})};return g}()});J(c,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"},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:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}});J(c,"Stock/RangeSelector/RangeSelectorComposition.js",[c["Core/Defaults.js"],c["Stock/RangeSelector/RangeSelectorDefaults.js"],c["Core/Utilities.js"]],function(c,z,G){function w(){var f=this.range,d=f.type,g=this.max,b=this.chart.time,m=function(m,
g){var a="year"===d?"FullYear":"Month",f=new b.Date(m),e=b.get(a,f);b.set(a,f,e+g);e===b.get(a,f)&&b.set("Date",f,0);return f.getTime()-m};if(q(f)){var a=g-f;var e=f}else f&&(a=g+m(g,-(f.count||1)),this.chart&&(this.chart.fixedRange=g-a));var k=D(this.dataMin,Number.MIN_VALUE);q(a)||(a=k);a<=k&&(a=k,"undefined"===typeof e&&(e=m(a,f.count)),this.newMax=Math.min(a+e,D(this.dataMax,Number.MAX_VALUE)));q(g)?!q(f)&&f&&f._offsetMin&&(a+=f._offsetMin):a=void 0;return a}function H(){this.options.rangeSelector&&
this.options.rangeSelector.enabled&&(this.rangeSelector=new k(this))}function v(){var a=this.axes,d=this.rangeSelector;d&&(q(d.deferredYTDClick)&&(d.clickButton(d.deferredYTDClick),delete d.deferredYTDClick),a.forEach(function(d){d.updateNames();d.setScale()}),this.getAxisMargins(),d.render(),a=d.options.verticalAlign,d.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))}function l(a){var d,g,b,m,f=a.rangeSelector,k=function(){f&&(d=a.xAxis[0].getExtremes(),
g=a.legend,m=f&&f.options.verticalAlign,q(d.min)&&f.render(d.min,d.max),g.display&&"top"===m&&m===g.options.verticalAlign&&(b=K(a.spacingBox),b.y="vertical"===g.options.layout?a.plotTop:b.y+f.getHeight(),g.group.placed=!1,g.align(b)))};f&&(e(u,function(b){return b[0]===a})||u.push([a,[h(a.xAxis[0],"afterSetExtremes",function(b){f&&f.render(b.min,b.max)}),h(a,"redraw",k)]]),k())}function y(){for(var a=0,d=u.length;a<d;++a){var g=u[a];if(g[0]===this){g[1].forEach(function(b){return b()});u.splice(a,
1);break}}}function p(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))}function I(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))}function t(a){var d=a.options.rangeSelector;a=this.extraBottomMargin;var g=this.extraTopMargin,b=this.rangeSelector;d&&d.enabled&&!r(b)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=
!0,this.rangeSelector=b=new k(this));this.extraTopMargin=this.extraBottomMargin=!1;b&&(l(this),d=d&&d.verticalAlign||b.options&&b.options.verticalAlign,b.options.floating||("bottom"===d?this.extraBottomMargin=!0:"middle"!==d&&(this.extraTopMargin=!0)),this.extraBottomMargin!==a||this.extraTopMargin!==g)&&(this.isDirtyBox=!0)}var A=c.defaultOptions,x=c.setOptions,h=G.addEvent,r=G.defined,a=G.extend,e=G.find,q=G.isNumber,K=G.merge,D=G.pick,u=[],n=[],k;return{compose:function(f,d,g){k=g;-1===n.indexOf(f)&&
(n.push(f),f.prototype.minFromRange=w);-1===n.indexOf(d)&&(n.push(d),h(d,"afterGetContainer",H),h(d,"beforeRender",v),h(d,"destroy",y),h(d,"getMargins",p),h(d,"render",I),h(d,"update",t),d.prototype.callbacks.push(l));-1===n.indexOf(x)&&(a(A,{rangeSelector:z.rangeSelector}),a(A.lang,z.lang))}}});J(c,"Stock/RangeSelector/RangeSelector.js",[c["Core/Axis/Axis.js"],c["Core/Defaults.js"],c["Core/Globals.js"],c["Stock/RangeSelector/RangeSelectorComposition.js"],c["Core/Renderer/SVG/SVGElement.js"],c["Core/Utilities.js"]],
function(c,z,G,w,H,v){function l(a){if(-1!==a.indexOf("%L"))return"text";var d="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),g="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return d&&g?"datetime-local":d?"date":g?"time":"text"}var y=z.defaultOptions,p=v.addEvent,I=v.createElement,t=v.css,A=v.defined,x=v.destroyObjectProperties,h=v.discardElement,r=v.extend,a=v.fireEvent,e=v.isNumber,q=v.merge,K=v.objectEach,D=v.pad,u=v.pick,n=v.pInt,k=v.splat;z=function(){function f(d){this.buttons=
void 0;this.buttonOptions=f.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=d;this.init(d)}f.compose=function(d,g){w.compose(d,g,f)};f.prototype.clickButton=function(d,g){var b=this.chart,m=this.buttonOptions[d],f=b.xAxis[0],F=b.scroller&&b.scroller.getUnionExtremes()||f||{},h=m.type,n=m.dataGrouping,r=F.dataMin,l=F.dataMax,q=f&&Math.round(Math.min(f.max,u(l,f.max)));F=m._range;var C,B=!0;if(null!==r&&null!==l){b.fixedRange=F;this.setSelected(d);n&&(this.forcedDataGrouping=
!0,c.prototype.setDataGrouping.call(f||{chart:this.chart},n,!1),this.frozenStates=m.preserveDataGrouping);if("month"===h||"year"===h)if(f){h={range:m,max:q,chart:b,dataMin:r,dataMax:l};var t=f.minFromRange.call(h);e(h.newMax)&&(q=h.newMax);B=!1}else F=m;else if(F)t=Math.max(q-F,r),q=Math.min(t+F,l),B=!1;else if("ytd"===h)if(f){if("undefined"===typeof l||"undefined"===typeof r)r=Number.MAX_VALUE,l=Number.MIN_VALUE,b.series.forEach(function(b){if(b=b.xData)r=Math.min(b[0],r),l=Math.max(b[b.length-1],
l)}),g=!1;h=this.getYTDExtremes(l,r,b.time.useUTC);t=C=h.min;q=h.max}else{this.deferredYTDClick=d;return}else"all"===h&&f&&(b.navigator&&b.navigator.baseSeries[0]&&(b.navigator.baseSeries[0].xAxis.options.range=void 0),t=r,q=l);B&&m._offsetMin&&A(t)&&(t+=m._offsetMin);m._offsetMax&&A(q)&&(q+=m._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=d+1);if(f)f.setExtremes(t,q,u(g,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:m});else{var x=k(b.options.xAxis)[0];var y=x.range;x.range=
F;var I=x.min;x.min=C;p(b,"load",function(){x.range=y;x.min=I})}a(this,"afterBtnClick")}};f.prototype.setSelected=function(d){this.selected=this.options.selected=d};f.prototype.init=function(d){var g=this,b=d.options.rangeSelector,m=b.buttons||g.defaultButtons.slice(),f=b.selected,e=function(){var b=g.minInput,d=g.maxInput;b&&b.blur&&a(b,"blur");d&&d.blur&&a(d,"blur")};g.chart=d;g.options=b;g.buttons=[];g.buttonOptions=m;this.eventsToUnbind=[];this.eventsToUnbind.push(p(d.container,"mousedown",e));
this.eventsToUnbind.push(p(d,"resize",e));m.forEach(g.computeButtonRange);"undefined"!==typeof f&&m[f]&&this.clickButton(f,!1);this.eventsToUnbind.push(p(d,"load",function(){d.xAxis&&d.xAxis[0]&&p(d.xAxis[0],"setExtremes",function(b){this.max-this.min!==d.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!==b.trigger&&g.forcedDataGrouping&&!g.frozenStates&&this.setDataGrouping(!1,!1)})}))};f.prototype.updateButtonStates=function(){var d=this,g=this.chart,b=this.dropdown,m=g.xAxis[0],a=Math.round(m.max-
m.min),f=!m.hasVisibleSeries,k=g.scroller&&g.scroller.getUnionExtremes()||m,h=k.dataMin,n=k.dataMax;g=d.getYTDExtremes(n,h,g.time.useUTC);var u=g.min,r=g.max,C=d.selected,B=d.options.allButtonsEnabled,l=d.buttons,q=e(C);d.buttonOptions.forEach(function(g,e){var k=g._range,F=g.type,E=g.count||1,c=l[e],p=g._offsetMax-g._offsetMin,t=e===C,x=k>n-h,R=k<m.minRange;g=0;var N=!1,M=!1;k=k===a;("month"===F||"year"===F)&&a+36E5>=864E5*{month:28,year:365}[F]*E-p&&a-36E5<=864E5*{month:31,year:366}[F]*E+p?k=!0:
"ytd"===F?(k=r-u+p===a,N=!t):"all"===F&&(k=m.max-m.min>=n-h,M=!t&&q&&k);F=!B&&(x||R||M||f);E=t&&k||k&&!q&&!N||t&&d.frozenStates;F?g=3:E&&(q=!0,g=2);c.state!==g&&(c.setState(g),b&&(b.options[e+1].disabled=F,2===g&&(b.selectedIndex=e+1)),0===g&&C===e&&d.setSelected())})};f.prototype.computeButtonRange=function(d){var g=d.type,b=d.count||1,m={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(m[g])d._range=m[g]*b;else if("month"===g||"year"===g)d._range=864E5*{month:30,year:365}[g]*
b;d._offsetMin=u(d.offsetMin,0);d._offsetMax=u(d.offsetMax,0);d._range+=d._offsetMax-d._offsetMin};f.prototype.getInputValue=function(d){d="min"===d?this.minInput:this.maxInput;var g=this.chart.options.rangeSelector,b=this.chart.time;return d?("text"===d.type&&g.inputDateParser||this.defaultInputDateParser)(d.value,b.useUTC,b):0};f.prototype.setInputValue=function(d,g){var b=this.options,m=this.chart.time,a="min"===d?this.minInput:this.maxInput;d="min"===d?this.minDateBox:this.maxDateBox;if(a){var f=
a.getAttribute("data-hc-time");f=A(f)?Number(f):void 0;A(g)&&(A(f)&&a.setAttribute("data-hc-time-previous",f),a.setAttribute("data-hc-time",g),f=g);a.value=m.dateFormat(this.inputTypeFormats[a.type]||b.inputEditDateFormat,f);d&&d.attr({text:m.dateFormat(b.inputDateFormat,f)})}};f.prototype.setInputExtremes=function(d,g,b){if(d="min"===d?this.minInput:this.maxInput){var m=this.inputTypeFormats[d.type],a=this.chart.time;m&&(g=a.dateFormat(m,g),d.min!==g&&(d.min=g),b=a.dateFormat(m,b),d.max!==b&&(d.max=
b))}};f.prototype.showInput=function(d){var g="min"===d?this.minDateBox:this.maxDateBox;if((d="min"===d?this.minInput:this.maxInput)&&g&&this.inputGroup){var b="text"===d.type,m=this.inputGroup,a=m.translateX;m=m.translateY;var f=this.options.inputBoxWidth;t(d,{width:b?g.width+(f?-2:20)+"px":"auto",height:b?g.height-2+"px":"auto",border:"2px solid silver"});b&&f?t(d,{left:a+g.x+"px",top:m+"px"}):t(d,{left:Math.min(Math.round(g.x+a-(d.offsetWidth-g.width)/2),this.chart.chartWidth-d.offsetWidth)+"px",
top:m-(d.offsetHeight-g.height)/2+"px"})}};f.prototype.hideInput=function(d){(d="min"===d?this.minInput:this.maxInput)&&t(d,{top:"-9999em",border:0,width:"1px",height:"1px"})};f.prototype.defaultInputDateParser=function(d,g,b){var m=d.split("/").join("-").split(" ").join("T");-1===m.indexOf("T")&&(m+="T00:00");if(g)m+="Z";else{var a;if(a=G.isSafari)a=m,a=!(6<a.length&&(a.lastIndexOf("-")===a.length-6||a.lastIndexOf("+")===a.length-6));a&&(a=(new Date(m)).getTimezoneOffset()/60,m+=0>=a?"+".concat(D(-a),
":00"):"-".concat(D(a),":00"))}m=Date.parse(m);e(m)||(d=d.split("-"),m=Date.UTC(n(d[0]),n(d[1])-1,n(d[2])));b&&g&&e(m)&&(m+=b.getTimezoneOffset(m));return m};f.prototype.drawInput=function(d){function g(){var g=k.maxInput,a=k.minInput,m=b.xAxis[0],f=b.scroller&&b.scroller.xAxis?b.scroller.xAxis:m,h=f.dataMin;f=f.dataMax;var n=k.getInputValue(d);n!==Number(C.getAttribute("data-hc-time-previous"))&&e(n)&&(C.setAttribute("data-hc-time-previous",n),c&&g&&e(h)?n>Number(g.getAttribute("data-hc-time"))?
n=void 0:n<h&&(n=h):a&&e(f)&&(n<Number(a.getAttribute("data-hc-time"))?n=void 0:n>f&&(n=f)),"undefined"!==typeof n&&m.setExtremes(c?n:m.min,c?m.max:n,void 0,void 0,{trigger:"rangeSelectorInput"}))}var b=this.chart,a=this.div,f=this.inputGroup,k=this,h=b.renderer.style||{},n=b.renderer,u=b.options.rangeSelector,c="min"===d,p=y.lang[c?"rangeSelectorFrom":"rangeSelectorTo"]||"";p=n.label(p,0).addClass("highcharts-range-label").attr({padding:p?2:0,height:p?u.inputBoxHeight:0}).add(f);n=n.label("",0).addClass("highcharts-range-input").attr({padding:2,
width:u.inputBoxWidth,height:u.inputBoxHeight,"text-align":"center"}).on("click",function(){k.showInput(d);k[d+"Input"].focus()});b.styledMode||n.attr({stroke:u.inputBoxBorderColor,"stroke-width":1});n.add(f);var C=I("input",{name:d,className:"highcharts-range-selector"},void 0,a);C.setAttribute("type",l(u.inputDateFormat||"%b %e, %Y"));b.styledMode||(p.css(q(h,u.labelStyle)),n.css(q({color:"#333333"},h,u.inputStyle)),t(C,r({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",
height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,top:"-9999em"},u.inputStyle)));C.onfocus=function(){k.showInput(d)};C.onblur=function(){C===G.doc.activeElement&&g();k.hideInput(d);k.setInputValue(d);C.blur()};var B=!1;C.onchange=function(){B||(g(),k.hideInput(d),C.blur())};C.onkeypress=function(b){13===b.keyCode&&g()};C.onkeydown=function(b){B=!0;38!==b.keyCode&&40!==b.keyCode||g()};C.onkeyup=function(){B=!1};return{dateBox:n,input:C,label:p}};f.prototype.getPosition=
function(){var d=this.chart,g=d.options.rangeSelector;d="top"===g.verticalAlign?d.plotTop-d.axisOffset[0]:0;return{buttonTop:d+g.buttonPosition.y,inputTop:d+g.inputPosition.y-10}};f.prototype.getYTDExtremes=function(d,g,b){var a=this.chart.time,f=new a.Date(d),k=a.get("FullYear",f);b=b?a.Date.UTC(k,0,1):+new a.Date(k,0,1);g=Math.max(g,b);f=f.getTime();return{max:Math.min(d||f,f),min:g}};f.prototype.render=function(d,a){var b=this.chart,g=b.renderer,f=b.container,k=b.options,e=k.rangeSelector,n=u(k.chart.style&&
k.chart.style.zIndex,0)+1;k=e.inputEnabled;if(!1!==e.enabled){this.rendered||(this.group=g.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:n}),this.buttonOptions.length&&this.renderButtons(),f.parentNode&&f.parentNode.insertBefore(this.div,f),k&&(this.inputGroup=g.g("input-group").add(this.group),g=this.drawInput("min"),this.minDateBox=g.dateBox,this.minLabel=g.label,this.minInput=g.input,g=this.drawInput("max"),this.maxDateBox=g.dateBox,
this.maxLabel=g.label,this.maxInput=g.input));if(k&&(this.setInputValue("min",d),this.setInputValue("max",a),d=b.scroller&&b.scroller.getUnionExtremes()||b.xAxis[0]||{},A(d.dataMin)&&A(d.dataMax)&&(b=b.xAxis[0].minRange||0,this.setInputExtremes("min",d.dataMin,Math.min(d.dataMax,this.getInputValue("max"))-b),this.setInputExtremes("max",Math.max(d.dataMin,this.getInputValue("min"))+b,d.dataMax)),this.inputGroup)){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(b){if(b){var d=
b.getBBox().width;d&&(b.attr({x:h}),h+=d+e.inputSpacing)}})}this.alignElements();this.rendered=!0}};f.prototype.renderButtons=function(){var d=this,g=this.buttons,b=this.options,m=y.lang,f=this.chart.renderer,k=q(b.buttonTheme),e=k&&k.states,n=k.width||28;delete k.width;delete k.states;this.buttonGroup=f.g("range-selector-buttons").add(this.group);var h=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);
p(h,"touchstart",function(){h.style.fontSize="16px"});[[G.isMS?"mouseover":"mouseenter"],[G.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(b){var m=b[0],f=b[1];p(h,m,function(){var b=g[d.currentButtonIndex()];b&&a(b.element,f||m)})});this.zoomText=f.label(m&&m.rangeSelectorZoom||"",0).attr({padding:b.buttonTheme.padding,height:b.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(b.labelStyle),k["stroke-width"]=u(k["stroke-width"],
0));I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,h);this.buttonOptions.forEach(function(b,a){I("option",{textContent:b.title||b.text},void 0,h);g[a]=f.button(b.text,0,0,function(g){var m=b.events&&b.events.click,f;m&&(f=m.call(b,g));!1!==f&&d.clickButton(a);d.isActive=!0},k,e&&e.hover,e&&e.select,e&&e.disabled).attr({"text-align":"center",width:n}).add(d.buttonGroup);b.title&&g[a].attr("title",b.title)})};f.prototype.alignElements=function(){var d=this,g=this.buttonGroup,b=this.buttons,
a=this.chart,f=this.group,k=this.inputGroup,e=this.options,h=this.zoomText,n=a.options,r=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions;n=e.buttonPosition;var q=e.inputPosition,C=e.verticalAlign,B=function(b,g){return r&&d.titleCollision(a)&&"top"===C&&"right"===g.align&&g.y-b.getBBox().height-12<(r.y||0)+(r.height||0)+a.spacing[0]?-40:0},l=a.plotLeft;if(f&&n&&q){var p=n.x-a.spacing[3];if(g){this.positionButtons();if(!this.initialButtonGroupWidth){var c=0;h&&(c+=h.getBBox().width+
5);b.forEach(function(d,a){c+=d.width;a!==b.length-1&&(c+=e.buttonSpacing)});this.initialButtonGroupWidth=c}l-=a.spacing[3];this.updateButtonStates();h=B(g,n);this.alignButtonGroup(h);f.placed=g.placed=a.hasLoaded}g=0;k&&(g=B(k,q),"left"===q.align?p=l:"right"===q.align&&(p=-Math.max(a.axisOffset[1],-g)),k.align({y:q.y,width:k.getBBox().width,align:q.align,x:q.x+p-2},!0,a.spacingBox),k.placed=a.hasLoaded);this.handleCollision(g);f.align({verticalAlign:C},!0,a.spacingBox);k=f.alignAttr.translateY;g=
f.getBBox().height+20;B=0;"bottom"===C&&(B=(B=a.legend&&a.legend.options)&&"bottom"===B.verticalAlign&&B.enabled&&!B.floating?a.legend.legendHeight+u(B.margin,10):0,g=g+B-20,B=k-g-(e.floating?0:e.y)-(a.titleOffset?a.titleOffset[2]:0)-10);if("top"===C)e.floating&&(B=0),a.titleOffset&&a.titleOffset[0]&&(B=a.titleOffset[0]),B+=a.margin[0]-a.spacing[0]||0;else if("middle"===C)if(q.y===n.y)B=k;else if(q.y||n.y)B=0>q.y||0>n.y?B-Math.min(q.y,n.y):k-g;f.translate(e.x,e.y+Math.floor(B));n=this.minInput;q=
this.maxInput;k=this.dropdown;e.inputEnabled&&n&&q&&(n.style.marginTop=f.translateY+"px",q.style.marginTop=f.translateY+"px");k&&(k.style.marginTop=f.translateY+"px")}};f.prototype.alignButtonGroup=function(d,a){var b=this.chart,g=this.buttonGroup,f=this.options.buttonPosition,k=b.plotLeft-b.spacing[3],e=f.x-b.spacing[3];"right"===f.align?e+=d-k:"center"===f.align&&(e-=k/2);g&&g.align({y:f.y,width:u(a,this.initialButtonGroupWidth),align:f.align,x:e},!0,b.spacingBox)};f.prototype.positionButtons=function(){var d=
this.buttons,a=this.chart,b=this.options,f=this.zoomText,k=a.hasLoaded?"animate":"attr",e=b.buttonPosition,n=a=a.plotLeft;f&&"hidden"!==f.visibility&&(f[k]({x:u(a+e.x,a)}),n+=e.x+f.getBBox().width+5);f=0;for(e=this.buttonOptions.length;f<e;++f)if("hidden"!==d[f].visibility)d[f][k]({x:n}),n+=d[f].width+b.buttonSpacing;else d[f][k]({x:a})};f.prototype.handleCollision=function(d){var a=this,b=this.chart,f=this.buttonGroup,k=this.inputGroup,e=this.options,n=e.buttonPosition,h=e.dropdown,u=e.inputPosition;
e=function(){var b=0;a.buttons.forEach(function(d){d=d.getBBox();d.width>b&&(b=d.width)});return b};var q=function(b){if(k&&f){var a=k.alignAttr.translateX+k.alignOptions.x-d+k.getBBox().x+2,g=k.alignOptions.width,m=f.alignAttr.translateX+f.getBBox().x;return m+b>a&&a+g>m&&n.y<u.y+k.getBBox().height}return!1},r=function(){k&&f&&k.attr({translateX:k.alignAttr.translateX+(b.axisOffset[1]>=-d?0:-d),translateY:k.alignAttr.translateY+f.getBBox().height+10})};if(f){if("always"===h){this.collapseButtons(d);
q(e())&&r();return}"never"===h&&this.expandButtons()}k&&f?u.align===n.align||q(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(d),q(e())&&r()):r():"responsive"===h&&this.expandButtons():f&&"responsive"===h&&(this.initialButtonGroupWidth>b.plotWidth?this.collapseButtons(d):this.expandButtons())};f.prototype.collapseButtons=function(d){var a=this.buttons,b=this.buttonOptions,f=this.chart,k=this.dropdown,e=this.options,n=this.zoomText,h=f.userOptions.rangeSelector&&f.userOptions.rangeSelector.buttonTheme||
{},q=function(b){return{text:b?""+b+" \u25be":"\u25be",width:"auto",paddingLeft:u(e.buttonTheme.paddingLeft,h.padding,8),paddingRight:u(e.buttonTheme.paddingRight,h.padding,8)}};n&&n.hide();var r=!1;b.forEach(function(b,d){d=a[d];2!==d.state?d.hide():(d.show(),d.attr(q(b.text)),r=!0)});r||(k&&(k.selectedIndex=0),a[0].show(),a[0].attr(q(this.zoomText&&this.zoomText.textStr)));b=e.buttonPosition.align;this.positionButtons();"right"!==b&&"center"!==b||this.alignButtonGroup(d,a[this.currentButtonIndex()].getBBox().width);
this.showDropdown()};f.prototype.expandButtons=function(){var d=this.buttons,a=this.buttonOptions,b=this.options,f=this.zoomText;this.hideDropdown();f&&f.show();a.forEach(function(a,g){g=d[g];g.show();g.attr({text:a.text,width:b.buttonTheme.width||28,paddingLeft:u(b.buttonTheme.paddingLeft,"unset"),paddingRight:u(b.buttonTheme.paddingRight,"unset")});2>g.state&&g.setState(0)});this.positionButtons()};f.prototype.currentButtonIndex=function(){var d=this.dropdown;return d&&0<d.selectedIndex?d.selectedIndex-
1:0};f.prototype.showDropdown=function(){var d=this.buttonGroup,a=this.buttons,b=this.chart,f=this.dropdown;if(d&&f){var k=d.translateX;d=d.translateY;a=a[this.currentButtonIndex()].getBBox();t(f,{left:b.plotLeft+k+"px",top:d+.5+"px",width:a.width+"px",height:a.height+"px"});this.hasVisibleDropdown=!0}};f.prototype.hideDropdown=function(){var d=this.dropdown;d&&(t(d,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};f.prototype.getHeight=function(){var d=this.options,a=this.group,
b=d.y,f=d.buttonPosition.y,k=d.inputPosition.y;if(d.height)return d.height;this.alignElements();d=a?a.getBBox(!0).height+13+b:0;a=Math.min(k,f);if(0>k&&0>f||0<k&&0<f)d+=Math.abs(a);return d};f.prototype.titleCollision=function(d){return!(d.options.title.text||d.options.subtitle.text)};f.prototype.update=function(d){var a=this.chart;q(!0,a.options.rangeSelector,d);this.destroy();this.init(a);this.render()};f.prototype.destroy=function(){var d=this,a=d.minInput,b=d.maxInput;d.eventsToUnbind&&(d.eventsToUnbind.forEach(function(b){return b()}),
d.eventsToUnbind=void 0);x(d.buttons);a&&(a.onfocus=a.onblur=a.onchange=null);b&&(b.onfocus=b.onblur=b.onchange=null);K(d,function(b,a){b&&"chart"!==a&&(b instanceof H?b.destroy():b instanceof window.HTMLElement&&h(b));b!==f.prototype[a]&&(d[a]=null)},this)};return f}();r(z.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},
{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});"";return z});J(c,"Series/XRange/XRangeSeriesDefaults.js",[c["Core/Utilities.js"]],function(c){var z=c.correctFloat,D=c.isNumber,w=c.isObject;"";return{colorByPoint:!0,dataLabels:{formatter:function(){var c=this.point.partialFill;w(c)&&(c=c.amount);if(D(c)&&0<c)return z(100*c)+"%"},inside:!0,verticalAlign:"middle"},
tooltip:{headerFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}});J(c,"Series/XRange/XRangePoint.js",[c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,z){var D=this&&this.__extends||function(){var c=function(v,l){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var p in c)c.hasOwnProperty(p)&&
(l[p]=c[p])};return c(v,l)};return function(v,l){function y(){this.constructor=v}c(v,l);v.prototype=null===l?Object.create(l):(y.prototype=l.prototype,new y)}}(),w=c.series.prototype.pointClass.prototype;z=z.extend;c=function(c){function v(){var l=null!==c&&c.apply(this,arguments)||this;l.options=void 0;l.series=void 0;return l}D(v,c);v.getColorByCategory=function(l,c){var p=l.options.colors||l.chart.options.colors;l=c.y%(p?p.length:l.chart.options.chart.colorCount);return{colorIndex:l,color:p&&p[l]}};
v.prototype.resolveColor=function(){var l=this.series;if(l.options.colorByPoint&&!this.options.color){var c=v.getColorByCategory(l,this);l.chart.styledMode||(this.color=c.color);this.options.colorIndex||(this.colorIndex=c.colorIndex)}else this.color||(this.color=l.color)};v.prototype.init=function(){w.init.apply(this,arguments);this.y||(this.y=0);return this};v.prototype.setState=function(){w.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};v.prototype.getLabelConfig=
function(){var c=w.getLabelConfig.call(this),y=this.series.yAxis.categories;c.x2=this.x2;c.yCategory=this.yCategory=y&&y[this.y];return c};v.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return v}(c.seriesTypes.column.prototype.pointClass);z(c.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});"";return c});J(c,"Series/XRange/XRangeSeries.js",[c["Core/Globals.js"],c["Core/Color/Color.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"],c["Series/XRange/XRangeSeriesDefaults.js"],
c["Series/XRange/XRangePoint.js"]],function(c,z,G,w,H,v){function l(){if(this.isXAxis){var a=K(this.dataMax,-Number.MAX_VALUE);for(var e=0,k=this.series;e<k.length;e++){var f=k[e];if(f.x2Data){var d=0;for(f=f.x2Data;d<f.length;d++){var g=f[d];if(g&&g>a){a=g;var b=!0}}}}b&&(this.dataMax=a)}}var y=this&&this.__extends||function(){var a=function(e,k){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(e,
k)};return function(e,k){function f(){this.constructor=e}a(e,k);e.prototype=null===k?Object.create(k):(f.prototype=k.prototype,new f)}}();c=c.noop;var p=z.parse,I=G.series.prototype,t=G.seriesTypes.column,A=w.addEvent,x=w.clamp,h=w.defined;z=w.extend;var r=w.find,a=w.isNumber,e=w.isObject,q=w.merge,K=w.pick,D=[];w=function(u){function n(){var a=null!==u&&u.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}y(n,u);n.compose=function(a){-1===D.indexOf(a)&&(D.push(a),
A(a,"afterGetSeriesExtremes",l))};n.prototype.init=function(){u.prototype.init.apply(this,arguments);this.options.stacking=void 0};n.prototype.getColumnMetrics=function(){var a=this,f=function(){for(var d=0,b=a.chart.series;d<b.length;d++){var f=b[d],k=f.xAxis;f.xAxis=f.yAxis;f.yAxis=k}};f();var d=u.prototype.getColumnMetrics.call(this);f();return d};n.prototype.cropData=function(a,f,d,g){f=I.cropData.call(this,this.x2Data,f,d,g);f.xData=a.slice(f.start,f.end);return f};n.prototype.findPointIndex=
function(k){var f=this.cropStart,d=this.points,g=k.id;if(g)var b=(b=r(d,function(b){return b.id===g}))?b.index:void 0;"undefined"===typeof b&&(b=(b=r(d,function(b){return b.x===k.x&&b.x2===k.x2&&!b.touched}))?b.index:void 0);this.cropped&&a(b)&&a(f)&&b>=f&&(b-=f);return b};n.prototype.alignDataLabel=function(a){var f=a.plotX;a.plotX=K(a.dlBox&&a.dlBox.centerX,a.plotX);u.prototype.alignDataLabel.apply(this,arguments);a.plotX=f};n.prototype.translatePoint=function(k){var f=this.xAxis,d=this.yAxis,g=
this.columnMetrics,b=this.options,m=b.minPointLength||0,n=(k.shapeArgs&&k.shapeArgs.width||0)/2,u=this.pointXOffset=g.offset,c=K(k.x2,k.x+(k.len||0)),r=k.plotX,l=f.translate(c,0,0,0,1);c=Math.abs(l-r);var p=this.chart.inverted,t=K(b.borderWidth,1)%2/2,C=g.offset,B=Math.round(g.width);m&&(m-=c,0>m&&(m=0),r-=m/2,l+=m/2);r=Math.max(r,-10);l=x(l,-10,f.len+10);h(k.options.pointWidth)&&(C-=(Math.ceil(k.options.pointWidth)-B)/2,B=Math.ceil(k.options.pointWidth));b.pointPlacement&&a(k.plotY)&&d.categories&&
(k.plotY=d.translate(k.y,0,1,0,1,b.pointPlacement));b=Math.floor(Math.min(r,l))+t;b={x:b,y:Math.floor(k.plotY+C)+t,width:Math.floor(Math.max(r,l))+t-b,height:B,r:this.options.borderRadius};k.shapeArgs=b;p?k.tooltipPos[1]+=u+n:k.tooltipPos[0]-=n+u-b.width/2;n=b.x;u=n+b.width;0>n||u>f.len?(n=x(n,0,f.len),u=x(u,0,f.len),l=u-n,k.dlBox=q(b,{x:n,width:u-n,centerX:l?l/2:null})):k.dlBox=null;n=k.tooltipPos;u=p?1:0;l=p?0:1;g=this.columnMetrics?this.columnMetrics.offset:-g.width/2;n[u]=p?n[u]+b.width/2:n[u]+
(f.reversed?-1:0)*b.width;n[l]=x(n[l]+(p?-1:1)*g,0,d.len-1);if(d=k.partialFill)e(d)&&(d=d.amount),a(d)||(d=0),k.partShapeArgs=q(b,{r:this.options.borderRadius}),r=Math.max(Math.round(c*d+k.plotX-r),0),k.clipRectArgs={x:f.reversed?b.x+c-r:b.x,y:b.y,width:r,height:b.height}};n.prototype.translate=function(){u.prototype.translate.apply(this,arguments);for(var a=0,f=this.points;a<f.length;a++)this.translatePoint(f[a])};n.prototype.drawPoint=function(a,f){var d=this.options,g=this.chart.renderer,b=a.shapeType,
m=a.shapeArgs,k=a.partShapeArgs,n=a.clipRectArgs,h=d.stacking&&!d.borderRadius,u=a.state,c=d.states[u||"normal"]||{},r="undefined"===typeof u?"attr":f;u=this.pointAttribs(a,u);c=K(this.chart.options.chart.animation,c.animation);var l=a.graphic,C=a.partialFill;if(a.isNull||!1===a.visible)l&&(a.graphic=l.destroy());else{if(l)l.rect[f](m);else a.graphic=l=g.g("point").addClass(a.getClassName()).add(a.group||this.group),l.rect=g[b](q(m)).addClass(a.getClassName()).addClass("highcharts-partfill-original").add(l);
k&&(l.partRect?(l.partRect[f](q(k)),l.partialClipRect[f](q(n))):(l.partialClipRect=g.clipRect(n.x,n.y,n.width,n.height),l.partRect=g[b](k).addClass("highcharts-partfill-overlay").add(l).clip(l.partialClipRect)));this.chart.styledMode||(l.rect[f](u,c).shadow(d.shadow,null,h),k&&(e(C)||(C={}),e(d.partialFill)&&(C=q(d.partialFill,C)),a=C.fill||p(u.fill).brighten(-.3).get()||p(a.color||this.color).brighten(-.3).get(),u.fill=a,l.partRect[r](u,c).shadow(d.shadow,null,h)))}};n.prototype.drawPoints=function(){for(var a=
this.getAnimationVerb(),f=0,d=this.points;f<d.length;f++)this.drawPoint(d[f],a)};n.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};n.prototype.isPointInside=function(a){var f=a.shapeArgs,d=a.plotX,g=a.plotY;return f?"undefined"!==typeof d&&"undefined"!==typeof g&&0<=g&&g<=this.yAxis.len&&0<=(f.x||0)+(f.width||0)&&d<=this.xAxis.len:u.prototype.isPointInside.apply(this,arguments)};n.defaultOptions=q(t.defaultOptions,H);return n}(t);
z(w.prototype,{pointClass:v,cropShoulder:1,getExtremesFromAll:!0,parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:I.animate,autoIncrement:c,buildKDTree:c});G.registerSeriesType("xrange",w);return w});J(c,"Series/Gantt/GanttPoint.js",[c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,z){var D=this&&this.__extends||function(){var c=function(v,l){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var p in l)l.hasOwnProperty(p)&&
(c[p]=l[p])};return c(v,l)};return function(v,l){function y(){this.constructor=v}c(v,l);v.prototype=null===l?Object.create(l):(y.prototype=l.prototype,new y)}}(),w=z.pick;return function(c){function v(){var l=null!==c&&c.apply(this,arguments)||this;l.options=void 0;l.series=void 0;return l}D(v,c);v.setGanttPointAliases=function(c){function l(l,v){"undefined"!==typeof v&&(c[l]=v)}l("x",w(c.start,c.x));l("x2",w(c.end,c.x2));l("partialFill",w(c.completed,c.partialFill))};v.prototype.applyOptions=function(l,
y){l=c.prototype.applyOptions.call(this,l,y);v.setGanttPointAliases(l);return l};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}(c.seriesTypes.xrange.prototype.pointClass)});J(c,"Core/Axis/BrokenAxis.js",[c["Core/Axis/Stacking/StackItem.js"],c["Core/Utilities.js"]],function(c,z){var D=z.addEvent,w=z.find,H=z.fireEvent,v=z.isArray,l=z.isNumber,y=z.pick,p;(function(p){function t(){"undefined"!==
typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function A(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function x(){var a=this.brokenAxis;if(a&&a.hasBreaks){for(var e=this.tickPositions,k=this.tickPositions.info,f=[],d=0;d<e.length;d++)a.isInAnyBreak(e[d])||f.push(e[d]);this.tickPositions=f;this.tickPositions.info=k}}function h(){this.brokenAxis||(this.brokenAxis=new z(this))}function r(){var a=this.options.connectNulls,e=this.points,k=this.xAxis,
f=this.yAxis;if(this.isDirty)for(var d=e.length;d--;){var g=e[d],b=!(null===g.y&&!1===a)&&(k&&k.brokenAxis&&k.brokenAxis.isInAnyBreak(g.x,!0)||f&&f.brokenAxis&&f.brokenAxis.isInAnyBreak(g.y,!0));g.visible=b?!1:!1!==g.options.visible}}function a(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,y(this.pointArrayMap,["y"]))}function e(a,e){var k=this,f=k.points,d,g,b,m;if(a&&a.brokenAxis&&a.brokenAxis.hasBreaks){var n=a.brokenAxis;e.forEach(function(e){d=n&&n.breakArray||[];g=a.isXAxis?
a.min:y(k.options.threshold,a.min);f.forEach(function(f){m=y(f["stack"+e.toUpperCase()],f[e]);d.forEach(function(d){if(l(g)&&l(m)){b=!1;if(g<d.from&&m>d.to||g>d.from&&m<d.from)b="pointBreak";else if(g<d.from&&m>d.from&&m<d.to||g>d.from&&m>d.to&&m<d.from)b="pointInBreak";b&&H(a,b,{point:f,brk:d})}})})})}}function q(){var a=this.currentDataGrouping,e=a&&a.gapSize;a=this.points.slice();var k=this.yAxis,f=this.options.gapSize,d=a.length-1,g;if(f&&0<d)for("value"!==this.options.gapUnit&&(f*=this.basePointRange),
e&&e>f&&e>=this.basePointRange&&(f=e),g=void 0;d--;)g&&!1!==g.visible||(g=a[d+1]),e=a[d],!1!==g.visible&&!1!==e.visible&&(g.x-e.x>f&&(g=(e.x+g.x)/2,a.splice(d+1,0,{isNull:!0,x:g}),k.stacking&&this.options.stacking&&(g=k.stacking.stacks[this.stackKey][g]=new c(k,k.options.stackLabels,!1,g,this.stack),g.total=0)),g=e);return this.getGraphPath(a)}var I=[];p.compose=function(c,n){-1===I.indexOf(c)&&(I.push(c),c.keepProps.push("brokenAxis"),D(c,"init",h),D(c,"afterInit",t),D(c,"afterSetTickPositions",
x),D(c,"afterSetOptions",A));if(-1===I.indexOf(n)){I.push(n);var k=n.prototype;k.drawBreaks=e;k.gappedPath=q;D(n,"afterGeneratePoints",r);D(n,"afterRender",a)}return c};var z=function(){function a(a){this.hasBreaks=!1;this.axis=a}a.isInBreak=function(a,e){var f=a.repeat||Infinity,d=a.from,g=a.to-a.from;e=e>=d?(e-d)%f:f-(d-e)%f;return a.inclusive?e<=g:e<g&&0!==e};a.lin2Val=function(e){var k=this.brokenAxis;k=k&&k.breakArray;if(!k||!l(e))return e;var f;for(f=0;f<k.length;f++){var d=k[f];if(d.from>=
e)break;else d.to<e?e+=d.len:a.isInBreak(d,e)&&(e+=d.len)}return e};a.val2Lin=function(e){var k=this.brokenAxis;k=k&&k.breakArray;if(!k||!l(e))return e;var f=e,d;for(d=0;d<k.length;d++){var g=k[d];if(g.to<=e)f-=g.len;else if(g.from>=e)break;else if(a.isInBreak(g,e)){f-=e-g.from;break}}return f};a.prototype.findBreakAt=function(a,e){return w(e,function(f){return f.from<a&&a<f.to})};a.prototype.isInAnyBreak=function(e,k){var f=this.axis,d=f.options.breaks||[],g=d.length,b;if(g&&l(e)){for(;g--;)if(a.isInBreak(d[g],
e)){var m=!0;b||(b=y(d[g].showPoints,!f.isXAxis))}var h=m&&k?m&&!b:m}return h};a.prototype.setBreaks=function(e,k){var f=this,d=f.axis,g=v(e)&&!!e.length;d.isDirty=f.hasBreaks!==g;f.hasBreaks=g;d.options.breaks=d.userOptions.breaks=e;d.forceRedraw=!0;d.series.forEach(function(b){b.isDirty=!0});g||d.val2lin!==a.val2Lin||(delete d.val2lin,delete d.lin2val);g&&(d.userOptions.ordinal=!1,d.lin2val=a.lin2Val,d.val2lin=a.val2Lin,d.setExtremes=function(b,a,e,g,k){if(f.hasBreaks){for(var m=this.options.breaks||
[],h;h=f.findBreakAt(b,m);)b=h.to;for(;h=f.findBreakAt(a,m);)a=h.from;a<b&&(a=b)}d.constructor.prototype.setExtremes.call(this,b,a,e,g,k)},d.setAxisTranslation=function(){d.constructor.prototype.setAxisTranslation.call(this);f.unitLength=void 0;if(f.hasBreaks){var b=d.options.breaks||[],e=[],g=[],k=y(d.pointRangePadding,0),h=0,c,n=d.userMin||d.min,r=d.userMax||d.max,q;b.forEach(function(b){c=b.repeat||Infinity;l(n)&&l(r)&&(a.isInBreak(b,n)&&(n+=b.to%c-n%c),a.isInBreak(b,r)&&(r-=r%c-b.from%c))});b.forEach(function(b){B=
b.from;c=b.repeat||Infinity;if(l(n)&&l(r)){for(;B-c>n;)B-=c;for(;B<n;)B+=c;for(q=B;q<r;q+=c)e.push({value:q,move:"in"}),e.push({value:q+b.to-b.from,move:"out",size:b.breakSize})}});e.sort(function(b,a){return b.value===a.value?("in"===b.move?0:1)-("in"===a.move?0:1):b.value-a.value});var C=0;var B=n;e.forEach(function(b){C+="in"===b.move?1:-1;1===C&&"in"===b.move&&(B=b.value);0===C&&l(B)&&(g.push({from:B,to:b.value,len:b.value-B-(b.size||0)}),h+=b.value-B-(b.size||0))});f.breakArray=g;l(n)&&l(r)&&
l(d.min)&&(f.unitLength=r-n-h+k,H(d,"afterBreaks"),d.staticScale?d.transA=d.staticScale:f.unitLength&&(d.transA*=(r-d.min+k)/f.unitLength),k&&(d.minPixelPadding=d.transA*(d.minPointOffset||0)),d.min=n,d.max=r)}});y(k,!0)&&d.chart.redraw()};return a}();p.Additions=z})(p||(p={}));return p});J(c,"Core/Axis/GridAxis.js",[c["Core/Axis/Axis.js"],c["Core/Axis/AxisDefaults.js"],c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,z,G,w){function D(b,a){var d={width:0,height:0};a.forEach(function(a){a=
b[a];if(w.isObject(a,!0)){var f=w.isObject(a.label,!0)?a.label:{};a=f.getBBox?f.getBBox().height:0;f.textStr&&!m(f.textPxLength)&&(f.textPxLength=f.getBBox().width);var e=m(f.textPxLength)?Math.round(f.textPxLength):0;f.textStr&&(e=Math.round(f.getBBox().width));d.height=Math.max(a,d.height);d.width=Math.max(e,d.width)}});"treegrid"===this.options.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode&&(d.width+=this.options.labels.indentation*((this.treeGrid.mapOfPosToGridNode[-1].height||0)-1));
return d}function v(){var b=this.grid;(b&&b.columns||[]).forEach(function(b){b.getOffset()})}function l(b){if(!0===(this.options.grid||{}).enabled){var a=this.axisTitle,d=this.height,f=this.horiz,e=this.left,g=this.offset,k=this.opposite,m=this.options,h=this.top,c=this.width,n=this.tickSize(),l=a&&a.getBBox().width,r=m.title.x,q=m.title.y,C=F(m.title.margin,f?5:10);a=this.chart.renderer.fontMetrics(m.title.style.fontSize,a).f;n=(f?h+d:e)+(f?1:-1)*(k?-1:1)*(n?n[0]/2:0)+(this.side===M.bottom?a:0);
b.titlePosition.x=f?e-(l||0)/2-C+r:n+(k?c:0)+g+r;b.titlePosition.y=f?n-(k?d:0)+(k?a:-a)/2+g+q:h-C+q}}function y(){var b=this.chart,a=this.options.grid;a=void 0===a?{}:a;var f=this.userOptions;if(a.enabled){var e=this.options;e.labels.align=F(e.labels.align,"center");this.categories||(e.showLastLabel=!1);this.labelRotation=0;e.labels.rotation=0}if(a.columns){e=this.grid.columns=[];for(var g=this.grid.columnIndex=0;++g<a.columns.length;){var k=E(f,a.columns[a.columns.length-g-1],{linkedTo:0,type:"category",
scrollbar:{enabled:!1}});delete k.grid.columns;k=new c(this.chart,k);k.grid.isColumn=!0;k.grid.columnIndex=g;d(b.axes,k);d(b[this.coll],k);e.push(k)}}}function p(){var b=this.grid,a=this.options;if(!0===(a.grid||{}).enabled){var d=this.min||0,f=this.max||0;this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine){var e=a.lineWidth;if(e){e=this.getLinePath(e);var g=e[0],k=e[1],m=((this.tickSize("tick")||
[1])[0]-1)*(this.side===M.top||this.side===M.left?-1:1);"M"===g[0]&&"L"===k[0]&&(this.horiz?(g[2]+=m,k[2]+=m):(g[1]+=m,k[1]+=m));!this.horiz&&this.chart.marginRight&&(g=[g,["L",this.left,g[2]||0]],m=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(f+this.tickmarkOffset)],k=[["M",k[1]||0,this.toPixels(f+this.tickmarkOffset)],m],this.grid.upperBorder||0===d%1||(this.grid.upperBorder=this.grid.renderBorder(g)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:a.lineColor,"stroke-width":a.lineWidth}),
this.grid.upperBorder.animate({d:g})),this.grid.lowerBorder||0===f%1||(this.grid.lowerBorder=this.grid.renderBorder(k)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:a.lineColor,"stroke-width":a.lineWidth}),this.grid.lowerBorder.animate({d:k})));this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:a.lineColor,"stroke-width":a.lineWidth}),this.grid.axisLineExtra.animate({d:e})):this.grid.axisLineExtra=this.grid.renderBorder(e);this.axisLine[this.showAxis?"show":"hide"]()}}(b&&
b.columns||[]).forEach(function(b){return b.render()});if(!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)){b=this.tickmarkOffset;a=this.tickPositions[this.tickPositions.length-1];e=this.tickPositions[0];for(g=k=void 0;(k=this.hiddenLabels.pop())&&k.element;)k.show();for(;(g=this.hiddenMarks.pop())&&g.element;)g.show();(k=this.ticks[e].label)&&(d-e>b?this.hiddenLabels.push(k.hide()):k.show());(k=this.ticks[a].label)&&(a-f>b?this.hiddenLabels.push(k.hide()):
k.show());(d=this.ticks[a].mark)&&a-f<b&&0<a-f&&this.ticks[a].isLast&&this.hiddenMarks.push(d.hide())}}}function I(){var b=this.tickPositions&&this.tickPositions.info,a=this.options,d=this.userOptions.labels||{};(a.grid||{}).enabled&&(this.horiz?(this.series.forEach(function(b){b.options.pointRange=0}),b&&a.dateTimeLabelFormats&&a.labels&&!f(d.align)&&(!1===a.dateTimeLabelFormats[b.unitName].range||1<b.count)&&(a.labels.align="left",f(d.x)||(a.labels.x=3))):"treegrid"!==this.options.type&&this.grid&&
this.grid.columns&&(this.minPointOffset=this.tickInterval))}function t(b){var a=this.options;b=b.userOptions;var d=a&&w.isObject(a.grid,!0)?a.grid:{};if(!0===d.enabled){var e=E(!0,{className:"highcharts-grid-axis "+(b.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b","%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0},
units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},b);"xAxis"===this.coll&&(f(b.linkedTo)&&!f(b.tickPixelInterval)&&(e.tickPixelInterval=350),f(b.tickPixelInterval)||!f(b.linkedTo)||f(b.tickPositioner)||f(b.tickInterval)||(e.tickPositioner=function(b,a){var d=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(d){for(var f=e.units||[],g=void 0,k=1,h="year",c=0;c<f.length;c++){var n=
f[c];if(n&&n[0]===d.unitName){g=c;break}}(f=m(g)&&f[g+1])?(h=f[0]||"year",k=(k=f[1])&&k[0]||1):"year"===d.unitName&&(k=10*d.count);d=N[h];this.tickInterval=d*k;return this.chart.time.getTimeTicks({unitRange:d,count:k,unitName:h},b,a,this.options.startOfWeek)}}));E(!0,this.options,e);this.horiz&&(a.minPadding=F(b.minPadding,0),a.maxPadding=F(b.maxPadding,0));m(a.grid.borderWidth)&&(a.tickWidth=a.lineWidth=d.borderWidth)}}function A(b){b=(b=b.userOptions)&&b.grid||{};var a=b.columns;b.enabled&&a&&E(!0,
this.options,a[a.length-1])}function x(){(this.grid.columns||[]).forEach(function(b){return b.setScale()})}function h(a){var d=z.defaultLeftAxisOptions,f=this.horiz,e=this.maxLabelDimensions,g=this.options.grid;g=void 0===g?{}:g;g.enabled&&e&&(d=2*Math.abs(d.labels.x),f=f?g.cellHeight||d+e.height:d+e.width,b(a.tickSize)?a.tickSize[0]=f:a.tickSize=[f,0])}function r(){this.axes.forEach(function(b){(b.grid&&b.grid.columns||[]).forEach(function(b){b.setAxisSize();b.setAxisTranslation()})})}function a(b){var a=
this.grid;(a.columns||[]).forEach(function(a){return a.destroy(b.keepEvents)});a.columns=void 0}function e(b){b=b.userOptions||{};var a=b.grid||{};a.enabled&&f(a.borderColor)&&(b.tickColor=b.lineColor=a.borderColor);this.grid||(this.grid=new Q(this));this.hiddenLabels=[];this.hiddenMarks=[]}function q(b){var a=this.label,d=this.axis,f=d.reversed,e=d.chart,g=d.options.grid||{},k=d.options.labels,h=k.align,c=M[d.side],n=b.tickmarkOffset,r=d.tickPositions,l=this.pos-n;r=m(r[b.index+1])?r[b.index+1]-
n:(d.max||0)+n;var q=d.tickSize("tick");n=q?q[0]:0;q=q?q[1]/2:0;if(!0===g.enabled){if("top"===c){g=d.top+d.offset;var u=g-n}else"bottom"===c?(u=e.chartHeight-d.bottom+d.offset,g=u+n):(g=d.top+d.len-(d.translate(f?r:l)||0),u=d.top+d.len-(d.translate(f?l:r)||0));"right"===c?(c=e.chartWidth-d.right+d.offset,f=c+n):"left"===c?(f=d.left+d.offset,c=f-n):(c=Math.round(d.left+(d.translate(f?r:l)||0))-q,f=Math.min(Math.round(d.left+(d.translate(f?l:r)||0))-q,d.left+d.len));this.slotWidth=f-c;b.pos.x="left"===
h?c:"right"===h?f:c+(f-c)/2;b.pos.y=u+(g-u)/2;e=e.renderer.fontMetrics(k.style.fontSize,a&&a.element);a=a?a.getBBox().height:0;k.useHTML?b.pos.y+=e.b+-(a/2):(a=Math.round(a/e.h),b.pos.y+=(e.b-(e.h-e.f))/2+-((a-1)*e.h/2));b.pos.x+=d.horiz&&k.x||0}}function K(b){var a=b.axis,d=b.value;if(a.options.grid&&a.options.grid.enabled){var f=a.tickPositions,e=(a.linkedParent||a).series[0],k=d===f[0];f=d===f[f.length-1];var m=e&&g(e.options.data,function(b){return b[a.isXAxis?"x":"y"]===d}),h=void 0;m&&e.is("gantt")&&
(h=E(m),G.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(h));b.isFirst=k;b.isLast=f;b.point=h}}function L(){var b=this.options,a=this.categories,d=this.tickPositions,f=d[0],e=d[d.length-1],g=this.linkedParent&&this.linkedParent.min||this.min,k=this.linkedParent&&this.linkedParent.max||this.max,m=this.tickInterval;!0!==(b.grid||{}).enabled||a||!this.horiz&&!this.isLinked||(f<g&&f+m>g&&!b.startOnTick&&(d[0]=g),e>k&&e-m<k&&!b.endOnTick&&(d[d.length-1]=k))}function u(b){var a=this.options.grid;
return!0===(void 0===a?{}:a).enabled&&this.categories?this.tickInterval:b.apply(this,Array.prototype.slice.call(arguments,1))}var n=G.dateFormats,k=w.addEvent,f=w.defined,d=w.erase,g=w.find,b=w.isArray,m=w.isNumber,E=w.merge,F=w.pick,N=w.timeUnits,P=w.wrap,M;(function(b){b[b.top=0]="top";b[b.right=1]="right";b[b.bottom=2]="bottom";b[b.left=3]="left"})(M||(M={}));var O=[],Q=function(){function b(b){this.axis=b}b.prototype.isOuterAxis=function(){var b=this.axis,a=b.grid.columnIndex,d=b.linkedParent&&
b.linkedParent.grid.columns||b.grid.columns,f=a?b.linkedParent:b,e=-1,g=0;(b.chart[b.coll]||[]).forEach(function(a,d){a.side!==b.side||a.options.isInternal||(g=d,a===f&&(e=d))});return g===e&&(m(a)?d.length===a:!0)};b.prototype.renderBorder=function(b){var a=this.axis,d=a.chart.renderer,f=a.options;b=d.path(b).addClass("highcharts-axis-line").add(a.axisBorder);d.styledMode||b.attr({stroke:f.lineColor,"stroke-width":f.lineWidth,zIndex:7});return b};return b}();n.E=function(b){return this.dateFormat("%a",
b,!0).charAt(0)};n.W=function(b){var a=this,d=new this.Date(b);["Hours","Milliseconds","Minutes","Seconds"].forEach(function(b){a.set(b,d,0)});var f=(this.get("Day",d)+6)%7;b=new this.Date(d.valueOf());this.set("Date",b,this.get("Date",d)-f+3);f=new this.Date(this.get("FullYear",b),0,1);4!==this.get("Day",f)&&(this.set("Month",d,0),this.set("Date",d,1+(11-this.get("Day",f))%7));return(1+Math.floor((b.valueOf()-f.valueOf())/6048E5)).toString()};"";return{compose:function(b,d,f){-1===O.indexOf(b)&&
(O.push(b),b.keepProps.push("grid"),b.prototype.getMaxLabelDimensions=D,P(b.prototype,"unsquish",u),k(b,"init",e),k(b,"afterGetOffset",v),k(b,"afterGetTitlePosition",l),k(b,"afterInit",y),k(b,"afterRender",p),k(b,"afterSetAxisTranslation",I),k(b,"afterSetOptions",t),k(b,"afterSetOptions",A),k(b,"afterSetScale",x),k(b,"afterTickSize",h),k(b,"trimTicks",L),k(b,"destroy",a));-1===O.indexOf(d)&&k(d,"afterSetChartSize",r);-1===O.indexOf(f)&&(k(f,"afterGetLabelPosition",q),k(f,"labelFormat",K));return b}}});
J(c,"Gantt/Tree.js",[c["Core/Utilities.js"]],function(c){var z=c.extend,D=c.isNumber,w=c.pick,H=function(c,v){var l=c.reduce(function(c,l){var p=w(l.parent,"");"undefined"===typeof c[p]&&(c[p]=[]);c[p].push(l);return c},{});Object.keys(l).forEach(function(c,p){var t=l[c];""!==c&&-1===v.indexOf(c)&&(t.forEach(function(c){p[""].push(c)}),delete p[c])});return l},v=function(c,y,p,I,t,A){var l=0,h=0,r=A&&A.after,a=A&&A.before;y={data:I,depth:p-1,id:c,level:p,parent:y};var e,q;"function"===typeof a&&a(y,
A);a=(t[c]||[]).map(function(a){var r=v(a.id,c,p+1,a,t,A),u=a.start;a=!0===a.milestone?u:a.end;e=!D(e)||u<e?u:e;q=!D(q)||a>q?a:q;l=l+1+r.descendants;h=Math.max(r.height+1,h);return r});I&&(I.start=w(I.start,e),I.end=w(I.end,q));z(y,{children:a,descendants:l,height:h});"function"===typeof r&&r(y,A);return y};return{getListOfParents:H,getNode:v,getTree:function(c,y){var l=c.map(function(c){return c.id});c=H(c,l);return v("",null,1,null,c,y)}}});J(c,"Core/Axis/TreeGrid/TreeGridTick.js",[c["Core/Utilities.js"]],
function(c){function z(){this.treeGrid||(this.treeGrid=new A(this))}function D(c,h){c=c.treeGrid;var r=!c.labelIcon,a=h.renderer,e=h.xy,l=h.options,t=l.width||0,x=l.height||0,u=e.x-t/2-(l.padding||0);e=e.y-x/2;var n=h.collapsed?90:180,k=h.show&&y(e),f=c.labelIcon;f||(c.labelIcon=f=a.path(a.symbols[l.type](l.x||0,l.y||0,t,x)).addClass("highcharts-label-icon").add(h.group));f[k?"show":"hide"]();a.styledMode||f.attr({cursor:"pointer",fill:p(h.color,"#666666"),"stroke-width":1,stroke:l.lineColor,strokeWidth:l.lineWidth||
0});f[r?"attr":"animate"]({translateX:u,translateY:e,rotation:n})}function w(c,h,r,a,e,q,t,A,u){var n=p(this.options&&this.options.labels,q);q=this.pos;var k=this.axis,f="treegrid"===k.options.type;c=c.apply(this,[h,r,a,e,n,t,A,u]);f&&(h=n&&l(n.symbol,!0)?n.symbol:{},n=n&&y(n.indentation)?n.indentation:0,q=(q=(k=k.treeGrid.mapOfPosToGridNode)&&k[q])&&q.depth||1,c.x+=(h.width||0)+2*(h.padding||0)+(q-1)*n);return c}function H(c){var h=this,r=h.pos,a=h.axis,e=h.label,q=a.treeGrid.mapOfPosToGridNode,
t=a.options,x=p(h.options&&h.options.labels,t&&t.labels),u=x&&l(x.symbol,!0)?x.symbol:{},n=(q=q&&q[r])&&q.depth;t="treegrid"===t.type;var k=-1<a.tickPositions.indexOf(r);r=a.chart.styledMode;t&&q&&e&&e.element&&e.addClass("highcharts-treegrid-node-level-"+n);c.apply(h,Array.prototype.slice.call(arguments,1));t&&e&&e.element&&q&&q.descendants&&0<q.descendants&&(a=a.treeGrid.isCollapsed(q),D(h,{color:!r&&e.styles&&e.styles.color||"",collapsed:a,group:e.parentGroup,options:u,renderer:e.renderer,show:k,
xy:e.xy}),u="highcharts-treegrid-node-"+(a?"expanded":"collapsed"),e.addClass("highcharts-treegrid-node-"+(a?"collapsed":"expanded")).removeClass(u),r||e.css({cursor:"pointer"}),[e,h.treeGrid.labelIcon].forEach(function(a){a&&!a.attachedTreeGridEvents&&(v(a.element,"mouseover",function(){e.addClass("highcharts-treegrid-node-active");e.renderer.styledMode||e.css({textDecoration:"underline"})}),v(a.element,"mouseout",function(){var a=l(x.style)?x.style:{};e.removeClass("highcharts-treegrid-node-active");
e.renderer.styledMode||e.css({textDecoration:a.textDecoration})}),v(a.element,"click",function(){h.treeGrid.toggleCollapse()}),a.attachedTreeGridEvents=!0)}))}var v=c.addEvent,l=c.isObject,y=c.isNumber,p=c.pick,I=c.wrap,t=[],A=function(){function c(c){this.tick=c}c.compose=function(c){-1===t.indexOf(c)&&(t.push(c),v(c,"init",z),I(c.prototype,"getLabelPosition",w),I(c.prototype,"renderLabel",H),c.prototype.collapse=function(c){this.treeGrid.collapse(c)},c.prototype.expand=function(c){this.treeGrid.expand(c)},
c.prototype.toggleCollapse=function(c){this.treeGrid.toggleCollapse(c)})};c.prototype.collapse=function(c){var h=this.tick,a=h.axis,e=a.brokenAxis;e&&a.treeGrid.mapOfPosToGridNode&&(h=a.treeGrid.collapse(a.treeGrid.mapOfPosToGridNode[h.pos]),e.setBreaks(h,p(c,!0)))};c.prototype.destroy=function(){this.labelIcon&&this.labelIcon.destroy()};c.prototype.expand=function(c){var h=this.tick,a=h.axis,e=a.brokenAxis;e&&a.treeGrid.mapOfPosToGridNode&&(h=a.treeGrid.expand(a.treeGrid.mapOfPosToGridNode[h.pos]),
e.setBreaks(h,p(c,!0)))};c.prototype.toggleCollapse=function(c){var h=this.tick,a=h.axis,e=a.brokenAxis;e&&a.treeGrid.mapOfPosToGridNode&&(h=a.treeGrid.toggleCollapse(a.treeGrid.mapOfPosToGridNode[h.pos]),e.setBreaks(h,p(c,!0)))};return c}();return A});J(c,"Series/TreeUtilities.js",[c["Core/Color/Color.js"],c["Core/Utilities.js"]],function(c,z){function D(c,l){var t=l.before,x=l.idRoot,h=l.mapIdToNode[x],r=l.points[c.i],a=r&&r.options||{},e=[],q=0;c.levelDynamic=c.level-(!1!==l.levelIsConstant?0:
h.level);c.name=p(r&&r.name,"");c.visible=x===c.id||!0===l.visible;"function"===typeof t&&(c=t(c,l));c.children.forEach(function(a,h){var r=w({},l);w(r,{index:h,siblings:c.children.length,visible:c.visible});a=D(a,r);e.push(a);a.visible&&(q+=a.val)});t=p(a.value,q);c.visible=0<=t&&(0<q||c.visible);c.children=e;c.childrenTotal=q;c.isLeaf=c.visible&&!q;c.val=t;return c}var w=z.extend,H=z.isArray,v=z.isNumber,l=z.isObject,y=z.merge,p=z.pick;return{getColor:function(l,t){var v=t.index,x=t.mapOptionsToLevel,
h=t.parentColor,r=t.parentColorIndex,a=t.series,e=t.colors,q=t.siblings,y=a.points,w=a.chart.options.chart,u;if(l){y=y[l.i];l=x[l.level]||{};if(x=y&&l.colorByPoint){var n=y.index%(e?e.length:w.colorCount);var k=e&&e[n]}if(!a.chart.styledMode){e=y&&y.options.color;w=l&&l.color;if(u=h)u=(u=l&&l.colorVariation)&&"brightness"===u.key&&v&&q?c.parse(h).brighten(v/q*u.to).get():h;u=p(e,w,k,u,a.color)}var f=p(y&&y.options.colorIndex,l&&l.colorIndex,n,r,t.colorIndex)}return{color:u,colorIndex:f}},getLevelOptions:function(c){var t=
{};if(l(c)){var A=v(c.from)?c.from:1;var x=c.levels;var h={};var r=l(c.defaults)?c.defaults:{};H(x)&&(h=x.reduce(function(a,e){if(l(e)&&v(e.level)){var c=y({},e);var h=p(c.levelIsConstant,r.levelIsConstant);delete c.levelIsConstant;delete c.level;e=e.level+(h?0:A-1);l(a[e])?y(!0,a[e],c):a[e]=c}return a},{}));x=v(c.to)?c.to:1;for(c=0;c<=x;c++)t[c]=y({},r,l(h[c])?h[c]:{})}return t},setTreeValues:D,updateRootId:function(c){if(l(c)){var t=l(c.options)?c.options:{};t=p(c.rootNode,t.rootId,"");l(c.userOptions)&&
(c.userOptions.rootId=t);c.rootNode=t}return t}}});J(c,"Core/Axis/TreeGrid/TreeGridAxis.js",[c["Core/Axis/BrokenAxis.js"],c["Core/Axis/GridAxis.js"],c["Gantt/Tree.js"],c["Core/Axis/TreeGrid/TreeGridTick.js"],c["Series/TreeUtilities.js"],c["Core/Utilities.js"]],function(c,z,G,w,H,v){function l(a,b){var d=a.collapseEnd||0;a=a.collapseStart||0;d>=b&&(a-=.5);return{from:a,to:d,showPoints:!1}}function y(a,b,d){var f=[],e=[],g={},c="boolean"===typeof b?b:!1,k={},m=-1;a=G.getTree(a,{after:function(b){b=
k[b.pos];var a=0,d=0;b.children.forEach(function(b){d+=(b.descendants||0)+1;a=Math.max((b.height||0)+1,a)});b.descendants=d;b.height=a;b.collapsed&&e.push(b)},before:function(b){var a=q(b.data,!0)?b.data:{},d=K(a.name)?a.name:"",e=g[b.parent];e=q(e,!0)?k[e.pos]:null;var h=function(b){return b.name===d},n;c&&q(e,!0)&&(n=r(e.children,h))?(h=n.pos,n.nodes.push(b)):h=m++;k[h]||(k[h]=n={depth:e?e.depth+1:0,name:d,id:a.id,nodes:[b],children:[],pos:h},-1!==h&&f.push(d),q(e,!0)&&e.children.push(n));K(b.id)&&
(g[b.id]=b);n&&!0===a.collapsed&&(n.collapsed=!0);b.pos=h}});k=function(b,a){var d=function(b,f,e){var g=f+(-1===f?0:a-1),c=(g-f)/2,k=f+c;b.nodes.forEach(function(b){var a=b.data;q(a,!0)&&(a.y=f+(a.seriesIndex||0),delete a.seriesIndex);b.pos=k});e[k]=b;b.pos=k;b.tickmarkOffset=c+.5;b.collapseStart=g+.5;b.children.forEach(function(b){d(b,g+1,e);g=(b.collapseEnd||0)-.5});b.collapseEnd=g+.5;return e};return d(b["-1"],-1,{})}(k,d);return{categories:f,mapOfIdToNode:g,mapOfPosToGridNode:k,collapsedNodes:e,
tree:a}}function p(a){a.target.axes.filter(function(b){return"treegrid"===b.options.type}).forEach(function(b){var d=b.options||{},f=d.labels,g=d.uniqueNames;d=d.max;var c=0;if(!b.treeGrid.mapOfPosToGridNode||b.series.some(function(b){return!b.hasRendered||b.isDirtyData||b.isDirty})){var k=b.series.reduce(function(b,a){a.visible&&((a.options.data||[]).forEach(function(d){a.options.keys&&a.options.keys.length&&(d=a.pointClass.prototype.optionsToObject.call({series:a},d),a.pointClass.setGanttPointAliases(d));
q(d,!0)&&(d.seriesIndex=c,b.push(d))}),!0===g&&c++);return b},[]);if(d&&k.length<d)for(var h=k.length;h<=d;h++)k.push({name:h+"\u200b"});d=y(k,g||!1,!0===g?c:1);b.categories=d.categories;b.treeGrid.mapOfPosToGridNode=d.mapOfPosToGridNode;b.hasNames=!0;b.treeGrid.tree=d.tree;b.series.forEach(function(b){var a=(b.options.data||[]).map(function(a){e(a)&&b.options.keys&&b.options.keys.length&&k.forEach(function(b){0<=a.indexOf(b.x)&&0<=a.indexOf(b.x2)&&(a=b)});return q(a,!0)?L(a):a});b.visible&&b.setData(a,
!1)});b.treeGrid.mapOptionsToLevel=x({defaults:f,from:1,levels:f&&f.levels,to:b.treeGrid.tree&&b.treeGrid.tree.height});"beforeRender"===a.type&&(b.treeGrid.collapsedNodes=d.collapsedNodes)}})}function D(a,b){var d=this.treeGrid.mapOptionsToLevel||{},e=this.ticks,g=e[b],c;if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var k=this.treeGrid.mapOfPosToGridNode[b];(d=d[k.depth])&&(c={labels:d});!g&&f?e[b]=new f(this,b,void 0,void 0,{category:k.name,tickmarkOffset:k.tickmarkOffset,
options:c}):(g.parameters.category=k.name,g.options=c,g.addLabel())}else a.apply(this,Array.prototype.slice.call(arguments,1))}function t(a,b,f){var e=this,g="treegrid"===f.type;e.treeGrid||(e.treeGrid=new d(e));g&&(h(b,"beforeRender",p),h(b,"beforeRedraw",p),h(b,"addSeries",function(b){b.options.data&&(b=y(b.options.data,f.uniqueNames||!1,1),e.treeGrid.collapsedNodes=(e.treeGrid.collapsedNodes||[]).concat(b.collapsedNodes))}),h(e,"foundExtremes",function(){e.treeGrid.collapsedNodes&&e.treeGrid.collapsedNodes.forEach(function(b){var a=
e.treeGrid.collapse(b);e.brokenAxis&&(e.brokenAxis.setBreaks(a,!1),e.treeGrid.collapsedNodes&&(e.treeGrid.collapsedNodes=e.treeGrid.collapsedNodes.filter(function(a){return b.collapseStart!==a.collapseStart||b.collapseEnd!==a.collapseEnd})))})}),h(e,"afterBreaks",function(){"yAxis"===e.coll&&!e.staticScale&&e.chart.options.chart.height&&(e.isDirty=!0)}),f=L({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,
width:10,padding:5}},uniqueNames:!1},f,{reversed:!0,grid:{columns:void 0}}));a.apply(e,[b,f]);g&&(e.hasNames=!0,e.options.showLastLabel=!0)}function A(d){var b=this.options;"treegrid"===b.type?(this.min=u(this.userMin,b.min,this.dataMin),this.max=u(this.userMax,b.max,this.dataMax),a(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):d.apply(this,Array.prototype.slice.call(arguments,
1))}var x=H.getLevelOptions,h=v.addEvent,r=v.find,a=v.fireEvent,e=v.isArray,q=v.isObject,K=v.isString,L=v.merge,u=v.pick,n=v.wrap,k=[],f,d=function(){function a(b){this.axis=b}a.compose=function(b,a,d,e){if(-1===k.indexOf(b)){k.push(b);-1===b.keepProps.indexOf("treeGrid")&&b.keepProps.push("treeGrid");var g=b.prototype;n(g,"generateTick",D);n(g,"init",t);n(g,"setTickInterval",A);g.utils={getNode:G.getNode}}-1===k.indexOf(e)&&(k.push(e),f||(f=e));z.compose(b,a,e);c.compose(b,d);w.compose(e);return b};
a.prototype.setCollapsedStatus=function(b){var a=this.axis,d=a.chart;a.series.forEach(function(a){var e=a.options.data;if(b.id&&e){var f=d.get(b.id);a=e[a.data.indexOf(f)];f&&a&&(f.collapsed=b.collapsed,a.collapsed=b.collapsed)}})};a.prototype.collapse=function(b){var a=this.axis,d=a.options.breaks||[],e=l(b,a.max);d.push(e);b.collapsed=!0;a.treeGrid.setCollapsedStatus(b);return d};a.prototype.expand=function(b){var a=this.axis,d=a.options.breaks||[],e=l(b,a.max);b.collapsed=!1;a.treeGrid.setCollapsedStatus(b);
return d.reduce(function(b,a){a.to===e.to&&a.from===e.from||b.push(a);return b},[])};a.prototype.getTickPositions=function(){var b=this.axis,a=Math.floor(b.min/b.tickInterval)*b.tickInterval,d=Math.ceil(b.max/b.tickInterval)*b.tickInterval;return Object.keys(b.treeGrid.mapOfPosToGridNode||{}).reduce(function(e,f){f=+f;!(f>=a&&f<=d)||b.brokenAxis&&b.brokenAxis.isInAnyBreak(f)||e.push(f);return e},[])};a.prototype.isCollapsed=function(b){var a=this.axis,d=a.options.breaks||[],e=l(b,a.max);return d.some(function(b){return b.from===
e.from&&b.to===e.to})};a.prototype.toggleCollapse=function(b){return this.isCollapsed(b)?this.expand(b):this.collapse(b)};return a}();return d});J(c,"Extensions/CurrentDateIndication.js",[c["Core/Axis/Axis.js"],c["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],c["Core/Utilities.js"]],function(c,z,G){var w=G.addEvent,D=G.merge;G=G.wrap;var v={color:"#ccd6eb",width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(c,v){return this.axis.chart.time.dateFormat(v||"",c)},rotation:0,style:{fontSize:"10px"}}};
w(c,"afterSetOptions",function(){var c=this.options,y=c.currentDateIndicator;y&&(y="object"===typeof y?D(v,y):D(v),y.value=Date.now(),y.className="highcharts-current-date-indicator",c.plotLines||(c.plotLines=[]),c.plotLines.push(y))});w(z,"render",function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})});G(z.prototype,"getLabelText",function(c,v){var l=this.options;return l&&l.className&&-1!==l.className.indexOf("highcharts-current-date-indicator")&&l.label&&"function"===
typeof l.label.formatter?(l.value=Date.now(),l.label.formatter.call(this,l.value,l.label.format)):c.call(this,v)})});J(c,"Extensions/StaticScale.js",[c["Core/Axis/Axis.js"],c["Core/Chart/Chart.js"],c["Core/Utilities.js"]],function(c,z,G){var w=G.addEvent,D=G.defined,v=G.isNumber,l=G.pick;w(c,"afterSetOptions",function(){var c=this.chart.options.chart;!this.horiz&&v(this.options.staticScale)&&(!c.height||c.scrollablePlotArea&&c.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)});
z.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach(function(c){var p=c.chart,v=!!p.initiatedScale&&p.options.animation,t=c.options.staticScale;if(c.staticScale&&D(c.min)){var A=l(c.brokenAxis&&c.brokenAxis.unitLength,c.max+c.tickInterval-c.min)*t;A=Math.max(A,t);t=A-p.plotHeight;!p.scrollablePixelsY&&1<=Math.abs(t)&&(p.plotHeight=A,p.redrawTrigger="adjustHeight",p.setSize(void 0,p.chartHeight+t,v));c.series.forEach(function(c){(c=c.sharedClipKey&&p.sharedClips[c.sharedClipKey])&&
c.attr(p.inverted?{width:p.plotHeight}:{height:p.plotHeight})})}}),this.initiatedScale=!0);this.redrawTrigger=null};w(z,"render",z.prototype.adjustHeight)});J(c,"Extensions/ArrowSymbols.js",[c["Core/Renderer/SVG/SVGRenderer.js"]],function(c){function z(c,v,l,y){return[["M",c,v+y/2],["L",c+l,v],["L",c,v+y/2],["L",c+l,v+y]]}function D(c,v,l,y){return[["M",c+l,v],["L",c,v+y/2],["L",c+l,v+y],["Z"]]}function w(c,v,l,y){return D(c,v,l/2,y)}c=c.prototype.symbols;c.arrow=z;c["arrow-filled"]=D;c["arrow-filled-half"]=
w;c["arrow-half"]=function(c,v,l,y){return z(c,v,l/2,y)};c["triangle-left"]=D;c["triangle-left-half"]=w;return c});J(c,"Gantt/Connection.js",[c["Core/Defaults.js"],c["Core/Globals.js"],c["Core/Series/Point.js"],c["Core/Utilities.js"]],function(c,z,G,w){function D(c){var h=c.shapeArgs;return h?{xMin:h.x||0,xMax:(h.x||0)+(h.width||0),yMin:h.y||0,yMax:(h.y||0)+(h.height||0)}:(h=c.graphic&&c.graphic.getBBox())?{xMin:c.plotX-h.width/2,xMax:c.plotX+h.width/2,yMin:c.plotY-h.height/2,yMax:c.plotY+h.height/
2}:null}var v=c.defaultOptions,l=w.defined,y=w.error;c=w.extend;var p=w.merge,I=w.objectEach;"";var t=z.deg2rad,A=Math.max,x=Math.min;c(v,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});w=function(){function c(c,a,e){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(c,a,e)}c.prototype.init=function(c,a,e){this.fromPoint=c;
this.toPoint=a;this.options=e;this.chart=c.series.chart;this.pathfinder=this.chart.pathfinder};c.prototype.renderPath=function(c,a,e){var h=this.chart,l=h.styledMode,r=h.pathfinder,u=!h.options.chart.forExport&&!1!==e,n=this.graphics&&this.graphics.path;r.group||(r.group=h.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(h.seriesGroup));r.group.translate(h.plotLeft,h.plotTop);n&&n.renderer||(n=h.renderer.path().add(r.group),l||n.attr({opacity:0}));n.attr(a);c={d:c};l||(c.opacity=
1);n[u?"animate":"attr"](c,e);this.graphics=this.graphics||{};this.graphics.path=n};c.prototype.addMarker=function(c,a,e){var h=this.fromPoint.series.chart,l=h.pathfinder;h=h.renderer;var r="start"===c?this.fromPoint:this.toPoint,u=r.getPathfinderAnchorPoint(a);if(a.enabled&&((e="start"===c?e[1]:e[e.length-2])&&"M"===e[0]||"L"===e[0])){e={x:e[1],y:e[2]};e=r.getRadiansToVector(e,u);u=r.getMarkerVector(e,a.radius,u);e=-e/t;if(a.width&&a.height){var n=a.width;var k=a.height}else n=k=2*a.radius;this.graphics=
this.graphics||{};u={x:u.x-n/2,y:u.y-k/2,width:n,height:k,rotation:e,rotationOriginX:u.x,rotationOriginY:u.y};this.graphics[c]?this.graphics[c].animate(u):(this.graphics[c]=h.symbol(a.symbol).addClass("highcharts-point-connecting-path-"+c+"-marker").attr(u).add(l.group),h.styledMode||this.graphics[c].attr({fill:a.color||this.fromPoint.color,stroke:a.lineColor,"stroke-width":a.lineWidth,opacity:0}).animate({opacity:1},r.series.options.animation))}};c.prototype.getPath=function(c){var a=this.pathfinder,
e=this.chart,h=a.algorithms[c.type],l=a.chartObstacles;if("function"!==typeof h)return y('"'+c.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]};h.requiresObstacles&&!l&&(l=a.chartObstacles=a.getChartObstacles(c),e.options.connectors.algorithmMargin=c.algorithmMargin,a.chartObstacleMetrics=a.getObstacleMetrics(l));return h(this.fromPoint.getPathfinderAnchorPoint(c.startMarker),this.toPoint.getPathfinderAnchorPoint(c.endMarker),p({chartObstacles:l,lineObstacles:a.lineObstacles||[],obstacleMetrics:a.chartObstacleMetrics,
hardBounds:{xMin:0,xMax:e.plotWidth,yMin:0,yMax:e.plotHeight},obstacleOptions:{margin:c.algorithmMargin},startDirectionX:a.getAlgorithmStartDirection(c.startMarker)},c))};c.prototype.render=function(){var c=this.fromPoint,a=c.series,e=a.chart,h=e.pathfinder,t=p(e.options.connectors,a.options.connectors,c.options.connectors,this.options),v={};e.styledMode||(v.stroke=t.lineColor||c.color,v["stroke-width"]=t.lineWidth,t.dashStyle&&(v.dashstyle=t.dashStyle));v["class"]="highcharts-point-connecting-path highcharts-color-"+
c.colorIndex;t=p(v,t);l(t.marker.radius)||(t.marker.radius=x(A(Math.ceil((t.algorithmMargin||8)/2)-1,1),5));c=this.getPath(t);e=c.path;c.obstacles&&(h.lineObstacles=h.lineObstacles||[],h.lineObstacles=h.lineObstacles.concat(c.obstacles));this.renderPath(e,v,a.options.animation);this.addMarker("start",p(t.marker,t.startMarker),e);this.addMarker("end",p(t.marker,t.endMarker),e)};c.prototype.destroy=function(){this.graphics&&(I(this.graphics,function(c){c.destroy()}),delete this.graphics)};return c}();
z.Connection=w;c(G.prototype,{getPathfinderAnchorPoint:function(c){var h=D(this);switch(c.align){case "right":var a="xMax";break;case "left":a="xMin"}switch(c.verticalAlign){case "top":var e="yMin";break;case "bottom":e="yMax"}return{x:a?h[a]:(h.xMin+h.xMax)/2,y:e?h[e]:(h.yMin+h.yMax)/2}},getRadiansToVector:function(c,r){var a;l(r)||(a=D(this))&&(r={x:(a.xMin+a.xMax)/2,y:(a.yMin+a.yMax)/2});return Math.atan2(r.y-c.y,c.x-r.x)},getMarkerVector:function(c,l,a){var e=2*Math.PI,h=D(this),t=h.xMax-h.xMin,
r=h.yMax-h.yMin,u=Math.atan2(r,t),n=!1;t/=2;var k=r/2,f=h.xMin+t;h=h.yMin+k;for(var d=f,g=h,b=1,m=1;c<-Math.PI;)c+=e;for(;c>Math.PI;)c-=e;e=Math.tan(c);c>-u&&c<=u?(m=-1,n=!0):c>u&&c<=Math.PI-u?m=-1:c>Math.PI-u||c<=-(Math.PI-u)?(b=-1,n=!0):b=-1;n?(d+=b*t,g+=m*t*e):(d+=r/(2*e)*b,g+=m*k);a.x!==f&&(d=a.x);a.y!==h&&(g=a.y);return{x:d+l*Math.cos(c),y:g-l*Math.sin(c)}}});return w});J(c,"Gantt/PathfinderAlgorithms.js",[c["Core/Utilities.js"]],function(c){function z(c,l,p){p=p||0;var h=c.length-1;l-=1e-7;
for(var t,a;p<=h;)if(t=h+p>>1,a=l-c[t].xMin,0<a)p=t+1;else if(0>a)h=t-1;else return t;return 0<p?p-1:0}function D(c,l){for(var t=z(c,l.x+1)+1;t--;){var h;if(h=c[t].xMax>=l.x)h=c[t],h=l.x<=h.xMax&&l.x>=h.xMin&&l.y<=h.yMax&&l.y>=h.yMin;if(h)return t}return-1}function w(c){var l=[];if(c.length){l.push(["M",c[0].start.x,c[0].start.y]);for(var t=0;t<c.length;++t)l.push(["L",c[t].end.x,c[t].end.y])}return l}function H(c,p){c.yMin=y(c.yMin,p.yMin);c.yMax=l(c.yMax,p.yMax);c.xMin=y(c.xMin,p.xMin);c.xMax=l(c.xMax,
p.xMax)}var v=c.pick,l=Math.min,y=Math.max,p=Math.abs;c=function(c,l,x){function h(a,c,e,d,g){a={x:a.x,y:a.y};a[c]=e[d||c]+(g||0);return a}function r(a,c,e){var d=p(c[e]-a[e+"Min"])>p(c[e]-a[e+"Max"]);return h(c,e,a,e+(d?"Max":"Min"),d?1:-1)}var a=[],e=v(x.startDirectionX,p(l.x-c.x)>p(l.y-c.y))?"x":"y",q=x.chartObstacles,t=D(q,c);x=D(q,l);if(-1<x){var y=q[x];x=r(y,l,e);y={start:x,end:l};var u=x}else u=l;-1<t&&(q=q[t],x=r(q,c,e),a.push({start:c,end:x}),x[e]>=c[e]===x[e]>=u[e]&&(e="y"===e?"x":"y",l=
c[e]<l[e],a.push({start:x,end:h(x,e,q,e+(l?"Max":"Min"),l?1:-1)}),e="y"===e?"x":"y"));c=a.length?a[a.length-1].end:c;x=h(c,e,u);a.push({start:c,end:x});e=h(x,"y"===e?"x":"y",u);a.push({start:x,end:e});a.push(y);return{path:w(a),obstacles:a}};c.requiresObstacles=!0;var I=function(c,A,x){function h(a,d,c){var e,f=a.x<d.x?1:-1;if(a.x<d.x){var g=a;var k=d}else g=d,k=a;if(a.y<d.y){var h=a;var m=d}else h=d,m=a;for(e=0>f?l(z(b,k.x),b.length-1):0;b[e]&&(0<f&&b[e].xMin<=k.x||0>f&&b[e].xMax>=g.x);){if(b[e].xMin<=
k.x&&b[e].xMax>=g.x&&b[e].yMin<=m.y&&b[e].yMax>=h.y)return c?{y:a.y,x:a.x<d.x?b[e].xMin-1:b[e].xMax+1,obstacle:b[e]}:{x:a.x,y:a.y<d.y?b[e].yMin-1:b[e].yMax+1,obstacle:b[e]};e+=f}return d}function r(b,a,d,c,e){var f=e.soft,g=e.hard,k=c?"x":"y",l={x:a.x,y:a.y},m={x:a.x,y:a.y};e=b[k+"Max"]>=f[k+"Max"];f=b[k+"Min"]<=f[k+"Min"];var n=b[k+"Max"]>=g[k+"Max"];g=b[k+"Min"]<=g[k+"Min"];var u=p(b[k+"Min"]-a[k]),q=p(b[k+"Max"]-a[k]);d=10>p(u-q)?a[k]<d[k]:q<u;m[k]=b[k+"Min"];l[k]=b[k+"Max"];b=h(a,m,c)[k]!==m[k];
a=h(a,l,c)[k]!==l[k];d=b?a?d:!0:a?!1:d;d=f?e?d:!0:e?!1:d;return g?n?d:!0:n?!1:d}function a(c,e,m){if(c.x===e.x&&c.y===e.y)return[];var n=m?"x":"y",q=x.obstacleOptions.margin;var p={soft:{xMin:k,xMax:f,yMin:d,yMax:g},hard:x.hardBounds};var t=D(b,c);if(-1<t){t=b[t];p=r(t,c,e,m,p);H(t,x.hardBounds);var v=m?{y:c.y,x:t[p?"xMax":"xMin"]+(p?1:-1)}:{x:c.x,y:t[p?"yMax":"yMin"]+(p?1:-1)};var w=D(b,v);-1<w&&(w=b[w],H(w,x.hardBounds),v[n]=p?y(t[n+"Max"]-q+1,(w[n+"Min"]+t[n+"Max"])/2):l(t[n+"Min"]+q-1,(w[n+"Max"]+
t[n+"Min"])/2),c.x===v.x&&c.y===v.y?(u&&(v[n]=p?y(t[n+"Max"],w[n+"Max"])+1:l(t[n+"Min"],w[n+"Min"])-1),u=!u):u=!1);c=[{start:c,end:v}]}else n=h(c,{x:m?e.x:c.x,y:m?c.y:e.y},m),c=[{start:c,end:{x:n.x,y:n.y}}],n[m?"x":"y"]!==e[m?"x":"y"]&&(p=r(n.obstacle,n,e,!m,p),H(n.obstacle,x.hardBounds),p={x:m?n.x:n.obstacle[p?"xMax":"xMin"]+(p?1:-1),y:m?n.obstacle[p?"yMax":"yMin"]+(p?1:-1):n.y},m=!m,c=c.concat(a({x:n.x,y:n.y},p,m)));return c=c.concat(a(c[c.length-1].end,e,!m))}function e(b,a,d){var c=l(b.xMax-a.x,
a.x-b.xMin)<l(b.yMax-a.y,a.y-b.yMin);d=r(b,a,d,c,{soft:x.hardBounds,hard:x.hardBounds});return c?{y:a.y,x:b[d?"xMax":"xMin"]+(d?1:-1)}:{x:a.x,y:b[d?"yMax":"yMin"]+(d?1:-1)}}var q=v(x.startDirectionX,p(A.x-c.x)>p(A.y-c.y)),t=q?"x":"y",I=[],u=!1,n=x.obstacleMetrics,k=l(c.x,A.x)-n.maxWidth-10,f=y(c.x,A.x)+n.maxWidth+10,d=l(c.y,A.y)-n.maxHeight-10,g=y(c.y,A.y)+n.maxHeight+10,b=x.chartObstacles;var m=z(b,k);n=z(b,f);b=b.slice(m,n+1);if(-1<(n=D(b,A))){var E=e(b[n],A,c);I.push({end:A,start:E});A=E}for(;-1<
(n=D(b,A));)m=0>A[t]-c[t],E={x:A.x,y:A.y},E[t]=b[n][m?t+"Max":t+"Min"]+(m?1:-1),I.push({end:A,start:E}),A=E;c=a(c,A,q);c=c.concat(I.reverse());return{path:w(c),obstacles:c}};I.requiresObstacles=!0;return{fastAvoid:I,straight:function(c,l){return{path:[["M",c.x,c.y],["L",l.x,l.y]],obstacles:[{start:c,end:l}]}},simpleConnect:c}});J(c,"Gantt/Pathfinder.js",[c["Gantt/Connection.js"],c["Core/Chart/Chart.js"],c["Core/Defaults.js"],c["Core/Globals.js"],c["Core/Series/Point.js"],c["Core/Utilities.js"],c["Gantt/PathfinderAlgorithms.js"]],
function(c,z,G,w,H,v,l){function y(a){var c=a.shapeArgs;return c?{xMin:c.x||0,xMax:(c.x||0)+(c.width||0),yMin:c.y||0,yMax:(c.y||0)+(c.height||0)}:(c=a.graphic&&a.graphic.getBBox())?{xMin:a.plotX-c.width/2,xMax:a.plotX+c.width/2,yMin:a.plotY-c.height/2,yMax:a.plotY+c.height/2}:null}function p(c){for(var e=c.length,k=0,f,d,g=[],b=function(d,c,e){e=a(e,10);var f=d.yMax+e>c.yMin-e&&d.yMin-e<c.yMax+e,g=d.xMax+e>c.xMin-e&&d.xMin-e<c.xMax+e,k=f?d.xMin>c.xMax?d.xMin-c.xMax:c.xMin-d.xMax:Infinity,h=g?d.yMin>
c.yMax?d.yMin-c.yMax:c.yMin-d.yMax:Infinity;return g&&f?e?b(d,c,Math.floor(e/2)):Infinity:J(k,h)};k<e;++k)for(f=k+1;f<e;++f)d=b(c[k],c[f]),80>d&&g.push(d);g.push(80);return q(Math.floor(g.sort(function(b,a){return b-a})[Math.floor(g.length/10)]/2-1),1)}function D(a){if(a.options.pathfinder||a.series.reduce(function(a,c){c.options&&r(!0,c.options.connectors=c.options.connectors||{},c.options.pathfinder);return a||c.options&&c.options.pathfinder},!1))r(!0,a.options.connectors=a.options.connectors||
{},a.options.pathfinder),x('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}G=G.defaultOptions;var t=v.addEvent,A=v.defined,x=v.error,h=v.extend,r=v.merge,a=v.pick,e=v.splat;"";var q=Math.max,J=Math.min;h(G,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var L=function(){function h(a){this.lineObstacles=
this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(a)}h.prototype.init=function(a){this.chart=a;this.connections=[];t(a,"redraw",function(){this.pathfinder.update()})};h.prototype.update=function(a){var k=this.chart,f=this,d=f.connections;f.connections=[];k.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 d;b=a.options&&a.options.connect&&e(a.options.connect);
a.visible&&!1!==a.isInside&&b&&b.forEach(function(b){d=k.get("string"===typeof b?b:b.to);d instanceof H&&d.series.visible&&d.visible&&!1!==d.isInside&&f.connections.push(new c(a,d,"string"===typeof b?{}:b))})})});for(var g=0,b=void 0,h=void 0,l=d.length,n=f.connections.length;g<l;++g){h=!1;var q=d[g];for(b=0;b<n;++b){var p=f.connections[b];if((q.options&&q.options.type)===(p.options&&p.options.type)&&q.fromPoint===p.fromPoint&&q.toPoint===p.toPoint){p.graphics=q.graphics;h=!0;break}}h||q.destroy()}delete this.chartObstacles;
delete this.lineObstacles;f.renderConnections(a)};h.prototype.renderConnections=function(a){a?this.chart.series.forEach(function(a){var c=function(){var d=a.chart.pathfinder;(d&&d.connections||[]).forEach(function(d){d.fromPoint&&d.fromPoint.series===a&&d.render()});a.pathfinderRemoveRenderEvent&&(a.pathfinderRemoveRenderEvent(),delete a.pathfinderRemoveRenderEvent)};!1===a.options.animation?c():a.pathfinderRemoveRenderEvent=t(a,"afterAnimate",c)}):this.connections.forEach(function(a){a.render()})};
h.prototype.getChartObstacles=function(c){for(var e=[],f=this.chart.series,d=a(c.algorithmMargin,0),g,b=0,h=f.length;b<h;++b)if(f[b].visible&&!f[b].options.isInternal){var l=0,n=f[b].points.length,q=void 0;for(q=void 0;l<n;++l)q=f[b].points[l],q.visible&&(q=y(q))&&e.push({xMin:q.xMin-d,xMax:q.xMax+d,yMin:q.yMin-d,yMax:q.yMax+d})}e=e.sort(function(a,b){return a.xMin-b.xMin});A(c.algorithmMargin)||(g=c.algorithmMargin=p(e),e.forEach(function(a){a.xMin-=g;a.xMax+=g;a.yMin-=g;a.yMax+=g}));return e};h.prototype.getObstacleMetrics=
function(a){for(var c=0,e=0,d,g,b=a.length;b--;)d=a[b].xMax-a[b].xMin,g=a[b].yMax-a[b].yMin,c<d&&(c=d),e<g&&(e=g);return{maxHeight:e,maxWidth:c}};h.prototype.getAlgorithmStartDirection=function(a){var c="top"!==a.verticalAlign&&"bottom"!==a.verticalAlign;return"left"!==a.align&&"right"!==a.align?c?void 0:!1:c?!0:void 0};return h}();L.prototype.algorithms=l;w.Pathfinder=L;h(H.prototype,{getPathfinderAnchorPoint:function(a){var c=y(this);switch(a.align){case "right":var e="xMax";break;case "left":e=
"xMin"}switch(a.verticalAlign){case "top":var f="yMin";break;case "bottom":f="yMax"}return{x:e?c[e]:(c.xMin+c.xMax)/2,y:f?c[f]:(c.yMin+c.yMax)/2}},getRadiansToVector:function(a,c){var e;A(c)||(e=y(this))&&(c={x:(e.xMin+e.xMax)/2,y:(e.yMin+e.yMax)/2});return Math.atan2(c.y-a.y,a.x-c.x)},getMarkerVector:function(a,c,e){var f=2*Math.PI,d=y(this),g=d.xMax-d.xMin,b=d.yMax-d.yMin,k=Math.atan2(b,g),h=!1;g/=2;var l=b/2,n=d.xMin+g;d=d.yMin+l;for(var q=n,p=d,r=1,t=1;a<-Math.PI;)a+=f;for(;a>Math.PI;)a-=f;f=
Math.tan(a);a>-k&&a<=k?(t=-1,h=!0):a>k&&a<=Math.PI-k?t=-1:a>Math.PI-k||a<=-(Math.PI-k)?(r=-1,h=!0):r=-1;h?(q+=r*g,p+=t*g*f):(q+=b/(2*f)*r,p+=t*l);e.x!==n&&(q=e.x);e.y!==d&&(p=e.y);return{x:q+c*Math.cos(a),y:p-c*Math.sin(a)}}});z.prototype.callbacks.push(function(a){!1!==a.options.connectors.enabled&&(D(a),this.pathfinder=new L(this),this.pathfinder.update(!0))});return L});J(c,"Series/Gantt/GanttSeries.js",[c["Core/Axis/Axis.js"],c["Core/Chart/Chart.js"],c["Series/Gantt/GanttPoint.js"],c["Core/Series/SeriesRegistry.js"],
c["Core/Axis/Tick.js"],c["Core/Utilities.js"],c["Core/Axis/TreeGrid/TreeGridAxis.js"]],function(c,z,G,w,H,v,l){var y=this&&this.__extends||function(){var c=function(h,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return c(h,a)};return function(h,a){function e(){this.constructor=h}c(h,a);h.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),p=w.series,D=w.seriesTypes.xrange,
t=v.extend,A=v.isNumber,x=v.merge;l.compose(c,z,p,H);c=function(c){function h(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}y(h,c);h.prototype.drawPoint=function(a,c){var e=this.options,h=this.chart.renderer,l=a.shapeArgs,p=a.plotY,n=a.graphic,k=a.selected&&"select",f=e.stacking&&!e.borderRadius;if(a.options.milestone)if(A(p)&&null!==a.y&&!1!==a.visible){l=h.symbols.diamond(l.x||0,l.y||0,l.width||0,l.height||0);if(n)n[c]({d:l});else a.graphic=
h.path(l).addClass(a.getClassName(),!0).add(a.group||this.group);this.chart.styledMode||a.graphic.attr(this.pointAttribs(a,k)).shadow(e.shadow,null,f)}else n&&(a.graphic=n.destroy());else D.prototype.drawPoint.call(this,a,c)};h.prototype.translatePoint=function(a){D.prototype.translatePoint.call(this,a);if(a.options.milestone){var c=a.shapeArgs;var h=c.height||0;a.shapeArgs={x:(c.x||0)-h/2,y:c.y,width:h,height:h}}};h.defaultOptions=x(D.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',
pointFormat:null,pointFormatter:function(){var a=this.series,c=a.xAxis,h=a.tooltipOptions.dateTimeLabelFormats,l=c.options.startOfWeek,p=a.tooltipOptions,t=p.xDateFormat,n=this.options.milestone,k="<b>"+(this.name||this.yCategory)+"</b>";if(p.pointFormat)return this.tooltipFormatter(p.pointFormat);!t&&A(this.start)&&(t=a.chart.time.getDateFormat(c.closestPointRange,this.start,l,h||{}));c=a.chart.time.dateFormat(t,this.start);a=a.chart.time.dateFormat(t,this.end);k+="<br/>";return n?k+(c+"<br/>"):
k+("Start: "+c+"<br/>End: ")+(a+"<br/>")}},connectors:{type:"simpleConnect",animation:{reversed:!0},startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}});return h}(D);t(c.prototype,{pointArrayMap:["start","end","y"],pointClass:G,setData:p.prototype.setData});w.registerSeriesType("gantt",c);"";return c});J(c,"Core/Chart/GanttChart.js",[c["Core/Chart/Chart.js"],c["Core/Defaults.js"],c["Core/Utilities.js"]],function(c,z,G){var w=this&&
this.__extends||function(){var c=function(l,p){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var h in l)l.hasOwnProperty(h)&&(c[h]=l[h])};return c(l,p)};return function(l,p){function t(){this.constructor=l}c(l,p);l.prototype=null===p?Object.create(p):(t.prototype=p.prototype,new t)}}(),D=z.getOptions,v=G.isArray,l=G.merge,y=G.splat;c=function(c){function p(){return null!==c&&c.apply(this,arguments)||this}w(p,c);p.prototype.init=function(p,
w){var t=D(),h=p.xAxis,r=p.yAxis,a;p.xAxis=p.yAxis=void 0;var e=l(!0,{chart:{type:"gantt"},title:{text:null},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},p,{isGantt:!0});p.xAxis=h;p.yAxis=r;e.xAxis=(v(p.xAxis)?p.xAxis:[p.xAxis||{},{}]).map(function(c,e){1===e&&(a=0);return l(t.xAxis,{grid:{enabled:!0},opposite:!0,linkedTo:a},c,{type:"datetime"})});e.yAxis=y(p.yAxis||{}).map(function(a){return l(t.yAxis,{grid:{enabled:!0},staticScale:50,reversed:!0,type:a.categories?
a.type:"treegrid"},a)});c.prototype.init.call(this,e,w)};return p}(c);(function(c){c.ganttChart=function(l,p,v){return new c(l,p,v)}})(c||(c={}));return c});J(c,"masters/modules/gantt.src.js",[c["Core/Globals.js"],c["Stock/Navigator/Navigator.js"],c["Stock/Scrollbar/Scrollbar.js"],c["Stock/RangeSelector/RangeSelector.js"],c["Series/XRange/XRangeSeries.js"],c["Core/Chart/GanttChart.js"]],function(c,z,G,w,H,v){c.GanttChart=v;c.ganttChart=v.ganttChart;c.Navigator=z;c.RangeSelector=w;c.Scrollbar=G;z.compose(c.Axis,
c.Chart,c.Series);w.compose(c.Axis,c.Chart);G.compose(c.Axis);H.compose(c.Axis)})});
//# sourceMappingURL=gantt.js.map