/*
 Highcharts JS v6.0.4 (2017-12-15)
 Gantt series

 (c) 2016 Lars A. V. Cabrera

 --- WORK IN PROGRESS ---

 License: www.highcharts.com/license
*/
(function(l){"object"===typeof module&&module.exports?module.exports=l:l(Highcharts)})(function(l){(function(g){var l=g.dateFormat,r=g.each,q=g.isObject,v=g.pick,n=g.wrap,m=g.Axis,t=g.Chart,u=g.Tick;m.prototype.isOuterAxis=function(){var b=this,e=-1,d=!0;r(this.chart.axes,function(f,a){f.side===b.side&&(f===b?e=a:0<=e&&a>e&&(d=!1))});return d};u.prototype.getLabelWidth=function(){return this.label.getBBox().width};m.prototype.getMaxLabelLength=function(b){var e=this.tickPositions,d=this.ticks,f=0;
if(!this.maxLabelLength||b)r(e,function(a){(a=d[a])&&a.labelLength>f&&(f=a.labelLength)}),this.maxLabelLength=f;return this.maxLabelLength};m.prototype.addTitle=function(){var b=this.chart.renderer,e=this.axisParent,d=this.horiz,f=this.opposite,a=this.options,c=a.title,k;this.showAxis=k=this.hasData()||v(a.showEmpty,!0);a.title="";this.axisTitle||((a=c.textAlign)||(a=(d?{low:"left",middle:"center",high:"right"}:{low:f?"right":"left",middle:"center",high:f?"left":"right"})[c.align]),this.axisTitle=
b.text(c.text,0,0,c.useHTML).attr({zIndex:7,rotation:c.rotation||0,align:a}).addClass("highcharts-axis-title").add(e),this.axisTitle.isNew=!0);this.axisTitle[k?"show":"hide"](!0)};g.dateFormats={W:function(b){b=new Date(b);var e=0===b.getUTCDay()?7:b.getUTCDay(),d=b.getTime(),f=new Date(b.getUTCFullYear(),0,1,-6);b.setDate(b.getUTCDate()+4-e);return 1+Math.floor(Math.floor((d-f)/864E5)/7)},E:function(b){return l("%a",b,!0).charAt(0)}};n(u.prototype,"addLabel",function(b){var e=this.axis,d=void 0!==
e.options.categories,f=e.tickPositions,f=this.pos!==f[f.length-1];(!e.options.grid||d||f)&&b.apply(this)});n(u.prototype,"getLabelPosition",function(b,e,d,f){var a=b.apply(this,Array.prototype.slice.call(arguments,1)),c=this.axis,k=c.options,h=k.tickInterval||1,p,g;k.grid&&(p=k.labels.style.fontSize,g=c.chart.renderer.fontMetrics(p,f),p=g.b,g=g.h,c.horiz&&void 0===k.categories?(k=c.axisGroup.getBBox().height,h=this.pos+h/2,a.x=c.translate(h)+c.left,h=k/2+g/2-Math.abs(g-p),a.y=0===c.side?d-h:d+h):
(void 0===k.categories&&(h=this.pos+h/2,a.y=c.translate(h)+c.top+p/2),h=this.getLabelWidth()/2-c.maxLabelLength/2,a.x=3===c.side?a.x+h:a.x-h));return a});n(m.prototype,"tickSize",function(b){var e=b.apply(this,Array.prototype.slice.call(arguments,1)),d;this.options.grid&&!this.horiz&&(d=2*Math.abs(this.defaultLeftAxisOptions.labels.x),this.maxLabelLength||(this.maxLabelLength=this.getMaxLabelLength()),d=this.maxLabelLength+d,e[0]=d);return e});n(m.prototype,"getOffset",function(b){var e=this.chart.axisOffset,
d=this.side,f,a,c=this.options,k=c.title,h=k&&k.text&&!1!==k.enabled;this.options.grid&&q(this.options.title)?(a=this.tickSize("tick")[0],e[d]&&a&&(f=e[d]+a),h&&this.addTitle(),b.apply(this,Array.prototype.slice.call(arguments,1)),e[d]=v(f,e[d]),c.title=k):b.apply(this,Array.prototype.slice.call(arguments,1))});n(m.prototype,"renderUnsquish",function(b){this.options.grid&&(this.labelRotation=0,this.options.labels.rotation=0);b.apply(this)});n(m.prototype,"setOptions",function(b,e){e.grid&&this.horiz&&
(e.startOnTick=!0,e.minPadding=0,e.endOnTick=!0);b.apply(this,Array.prototype.slice.call(arguments,1))});n(m.prototype,"render",function(b){var e=this.options,d,f,a,c,k,h,p=this.chart.renderer;if(e.grid){if(d=2*Math.abs(this.defaultLeftAxisOptions.labels.x),d=this.maxLabelLength+d,f=e.lineWidth,this.rightWall&&this.rightWall.destroy(),b.apply(this),b=this.axisGroup.getBBox(),this.horiz&&(this.rightWall=p.path(["M",b.x+this.width+1,b.y,"L",b.x+this.width+1,b.y+b.height]).attr({stroke:e.tickColor||
"#ccd6eb","stroke-width":e.tickWidth||1,zIndex:7,class:"grid-wall"}).add(this.axisGroup)),this.isOuterAxis()&&this.axisLine&&(this.horiz&&(d=b.height-1),f)){b=this.getLinePath(f);k=b.indexOf("M")+1;h=b.indexOf("L")+1;a=b.indexOf("M")+2;c=b.indexOf("L")+2;if(0===this.side||3===this.side)d=-d;this.horiz?(b[a]+=d,b[c]+=d):(b[k]+=d,b[h]+=d);this.axisLineExtra?this.axisLineExtra.animate({d:b}):this.axisLineExtra=p.path(b).attr({stroke:e.lineColor,"stroke-width":f,zIndex:7}).add(this.axisGroup);this.axisLine[this.showAxis?
"show":"hide"](!0)}}else b.apply(this)});n(t.prototype,"render",function(b){var e=25/11,d,f;r(this.axes,function(a){var c=a.options;c.grid&&(f=c.labels.style.fontSize,d=a.chart.renderer.fontMetrics(f),"datetime"===c.type&&(c.units=[["millisecond",[1]],["second",[1]],["minute",[1]],["hour",[1]],["day",[1]],["week",[1]],["month",[1]],["year",null]]),a.horiz?c.tickLength=c.cellHeight||d.h*e:(c.tickWidth=1,c.lineWidth||(c.lineWidth=1)))});b.apply(this)})})(l);(function(g){var l=g.defined,r=g.seriesTypes.column,
q=g.each,v=g.isNumber,n=g.isObject,m=g.merge,t=g.pick,u=g.seriesType,b=g.wrap,e=g.Axis,d=g.Point,f=g.Series;u("xrange","column",{colorByPoint:!0,dataLabels:{verticalAlign:"middle",inside:!0,formatter:function(){var a=this.point.partialFill;n(a)&&(a=a.amount);l(a)||(a=0);return 100*a+"%"}},tooltip:{headerFormat:'\x3cspan style\x3d"font-size: 0.85em"\x3e{point.x} - {point.x2}\x3c/span\x3e\x3cbr/\x3e',pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.yCategory}\x3c/b\x3e\x3cbr/\x3e'},
borderRadius:3,pointRange:0},{type:"xrange",parallelArrays:["x","x2","y"],requireSorting:!1,animate:g.seriesTypes.line.prototype.animate,cropShoulder:1,getExtremesFromAll:!0,getColumnMetrics:function(){function a(){q(b.series,function(a){var c=a.xAxis;a.xAxis=a.yAxis;a.yAxis=c})}var c,b=this.chart;a();c=r.prototype.getColumnMetrics.call(this);a();return c},cropData:function(a,c,b,h){c=f.prototype.cropData.call(this,this.x2Data,c,b,h);c.xData=a.slice(c.start,c.end);return c},translatePoint:function(a){var c=
this.xAxis,b=this.columnMetrics,h=this.options.minPointLength||0,d=a.plotX,e=t(a.x2,a.x+(a.len||0)),f=c.translate(e,0,0,0,1),e=f-d,g=this.chart.inverted,l=t(this.options.borderWidth,1)%2/2;h&&(h-=e,0>h&&(h=0),d-=h/2,f+=h/2);d=Math.max(d,-10);f=Math.min(Math.max(f,-10),c.len+10);a.shapeArgs={x:Math.floor(Math.min(d,f))+l,y:Math.floor(a.plotY+b.offset)+l,width:Math.round(Math.abs(f-d)),height:Math.round(b.width),r:this.options.borderRadius};d=a.shapeArgs.x;h=d+a.shapeArgs.width;0>d||h>c.len?(d=Math.min(c.len,
Math.max(0,d)),h=Math.max(0,Math.min(h,c.len)),c=h-d,a.dlBox=m(a.shapeArgs,{x:d,width:h-d,centerX:c?c/2:null})):a.dlBox=null;a.tooltipPos[0]+=g?0:e/2;a.tooltipPos[1]-=g?e/2:b.width/2;if(c=a.partialFill)n(c)&&(c=c.amount),v(c)||(c=0),b=a.shapeArgs,a.partShapeArgs={x:b.x,y:b.y,width:b.width,height:b.height,r:this.options.borderRadius},a.clipRectArgs={x:b.x,y:b.y,width:Math.round(b.width*c),height:b.height}},translate:function(){r.prototype.translate.apply(this,arguments);q(this.points,function(a){this.translatePoint(a)},
this)},drawPoint:function(a,b){var c=this.chart.renderer,d=a.graphic,e=a.shapeType,f=a.shapeArgs,g=a.partShapeArgs,l=a.clipRectArgs;if(a.isNull)d&&(a.graphic=d.destroy());else{if(d)a.graphicOriginal[b](m(f));else a.graphic=d=c.g("point").addClass(a.getClassName()).add(a.group||this.group),a.graphicOriginal=c[e](f).addClass(a.getClassName()).addClass("highcharts-partfill-original").add(d);g&&(a.graphicOverlay?(a.graphicOverlay[b](m(g)),a.clipRect.animate(m(l))):(a.clipRect=c.clipRect(l.x,l.y,l.width,
l.height),a.graphicOverlay=c[e](g).addClass("highcharts-partfill-overlay").add(d).clip(a.clipRect)))}},drawPoints:function(){var a=this,b=this.chart.pointCount<(a.options.animationLimit||250)?"animate":"attr";q(a.points,function(c){a.drawPoint(c,b)})}},{init:function(){d.prototype.init.apply(this,arguments);var a=this.series.chart.options.chart.colorCount;this.y||(this.y=0);this.colorIndex=this.y%a;return this},getLabelConfig:function(){var a=d.prototype.getLabelConfig.call(this),b=this.series.yAxis.categories;
a.x2=this.x2;a.yCategory=this.yCategory=b&&b[this.y];return a},tooltipDateKeys:["x","x2"],isValid:function(){return"number"===typeof this.x&&"number"===typeof this.x2}});b(e.prototype,"getSeriesExtremes",function(a){var b=this.series,d,e;a.call(this);this.isXAxis&&(d=t(this.dataMax,-Number.MAX_VALUE),q(b,function(a){a.x2Data&&q(a.x2Data,function(a){a>d&&(d=a,e=!0)})}),e&&(this.dataMax=d))})})(l)});