!/**
 * Highcharts Gantt JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/gantt
 * @requires highcharts
 *
 * Gantt series
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Lars A. V. Cabrera
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,i){"object"==typeof exports&&"object"==typeof module?module.exports=i(t._Highcharts,t._Highcharts.Chart,t._Highcharts.Axis,t._Highcharts.Color,t._Highcharts.SeriesRegistry,t._Highcharts.RendererRegistry,t._Highcharts.SVGElement,t._Highcharts.Templating,t._Highcharts.Point,t._Highcharts.StackItem):"function"==typeof define&&define.amd?define("highcharts/modules/gantt",["highcharts/highcharts"],function(t){return i(t,t.Chart,t.Axis,t.Color,t.SeriesRegistry,t.RendererRegistry,t.SVGElement,t.Templating,t.Point,t.StackItem)}):"object"==typeof exports?exports["highcharts/modules/gantt"]=i(t._Highcharts,t._Highcharts.Chart,t._Highcharts.Axis,t._Highcharts.Color,t._Highcharts.SeriesRegistry,t._Highcharts.RendererRegistry,t._Highcharts.SVGElement,t._Highcharts.Templating,t._Highcharts.Point,t._Highcharts.StackItem):t.Highcharts=i(t.Highcharts,t.Highcharts.Chart,t.Highcharts.Axis,t.Highcharts.Color,t.Highcharts.SeriesRegistry,t.Highcharts.RendererRegistry,t.Highcharts.SVGElement,t.Highcharts.Templating,t.Highcharts.Point,t.Highcharts.StackItem)}("u"<typeof window?this:window,function(t,i,e,o,n,r,s,a,h,l){return function(){"use strict";var d,c,p,u,f,g,x,v,m,y,b,M,k,w,A={28:function(t){t.exports=s},184:function(t){t.exports=l},260:function(t){t.exports=h},512:function(t){t.exports=n},532:function(t){t.exports=e},608:function(t){t.exports=r},620:function(t){t.exports=o},944:function(i){i.exports=t},960:function(t){t.exports=i},984:function(t){t.exports=a}},O={};function P(t){var i=O[t];if(void 0!==i)return i.exports;var e=O[t]={exports:{}};return A[t](e,e.exports,P),e.exports}P.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return P.d(i,{a:i}),i},P.d=function(t,i){for(var e in i)P.o(i,e)&&!P.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:i[e]})},P.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var S={};P.d(S,{default:function(){return eU}});var B=P(944),E=P.n(B);function T(t,i,e,o){return[["M",t,i+o/2],["L",t+e,i],["L",t,i+o/2],["L",t+e,i+o]]}function C(t,i,e,o){return T(t,i,e/2,o)}function D(t,i,e,o){return[["M",t+e,i],["L",t,i+o/2],["L",t+e,i+o],["Z"]]}function I(t,i,e,o){return D(t,i,e/2,o)}var L=function(t){var i=t.prototype.symbols;i.arrow=T,i["arrow-filled"]=D,i["arrow-filled-half"]=I,i["arrow-half"]=C,i["triangle-left"]=D,i["triangle-left-half"]=I},z=function(t,i,e){if(e||2==arguments.length)for(var o,n=0,r=i.length;n<r;n++)!o&&n in i||(o||(o=Array.prototype.slice.call(i,0,n)),o[n]=i[n]);return t.concat(o||Array.prototype.slice.call(i))},R=E().doc;function G(t,i,e,o){void 0===o&&(o={});var n="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(n,"hcEvents")||(n.hcEvents={});var r=n.hcEvents;E().Point&&t instanceof E().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,i,e,!!E().supportsPassiveEvents&&{passive:void 0===o.passive?-1!==i.indexOf("touch"):o.passive,capture:!1}),r[i]||(r[i]=[]);var a={fn:e,order:"number"==typeof o.order?o.order:1/0};return r[i].push(a),r[i].sort(function(t,i){return t.order-i.order}),function(){tr(t,i,e)}}function W(t,i,e){return t>i?t<e?t:e:i}function H(t,i){return t>1e14?t:parseFloat(t.toPrecision(i||14))}function N(t,i,e,o,n){var r=R.createElement(t);return i&&j(r,i),n&&F(r,{padding:"0",border:"none",margin:"0"}),e&&F(r,e),o&&o.appendChild(r),r}function _(t,i,e){void 0===i&&(i=0);var o=i%2/2,n=e?-1:1;return(Math.round(t*n-o)+o)*n}function F(t,i){j(t.style,i)}function X(t){return null!=t}function Y(t,i,e){ti(t,function(o,n){o!==i&&(null==o?void 0:o.destroy)&&o.destroy(),((null==o?void 0:o.destroy)||!e)&&delete t[n]})}function U(t,i){for(var e=t.length;e--;)if(t[e]===i){t.splice(e,1);break}}function j(t,i){var e;for(e in t||(t={}),i)t[e]=i[e];return t}function V(t,i,e,o){if(e=e||{},(null==R?void 0:R.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==E())){var n=R.createEvent("Events");n.initEvent(i,!0,!0),e=j(n,e),t.dispatchEvent?t.dispatchEvent(e):t.fireEvent(i,e)}else if(t.hcEvents){e.target||j(e,{preventDefault:function(){e.defaultPrevented=!0},target:t,type:i});for(var r=[],s=t,a=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[i]&&(r.length&&(a=!0),r.unshift.apply(r,s.hcEvents[i])),s=Object.getPrototypeOf(s);a&&r.sort(function(t,i){return t.order-i.order}),r.forEach(function(i){!1===i.fn.call(t,e,t)&&e.preventDefault()})}o&&!e.defaultPrevented&&o.call(t,e)}E().win;var q=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){var e,o=t.length;for(e=0;e<o;e++)if(i(t[e],e))return t[e]};function Z(t){return Q(t)&&"number"==typeof t.nodeType}function K(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function $(t){return"string"==typeof t}function J(t){var i=Object.prototype.toString.call(t);return"[object Array]"===i||"[object Array Iterator]"===i}function Q(t,i){return!!t&&"object"==typeof t&&(!i||!J(t))}function tt(t){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var o,n=z([t],i,!0),r={},s=function(t,i){return"object"!=typeof t&&(t={}),ti(i,function(e,o){if("__proto__"!==o&&"constructor"!==o){var n;!Q(e,!0)||(n=null==e?void 0:e.constructor,Q(e,!0)&&!Z(e)&&(null==n?void 0:n.name)&&"Object"!==n.name)||Z(e)?t[o]=i[o]:t[o]=s(t[o]||{},e)}}),t};!0===t&&(r=n[1],n=Array.prototype.slice.call(n,2));var a=n.length;for(o=0;o<a;o++)r=s(r,n[o]);return r}function ti(t,i,e){for(var o in t)Object.hasOwnProperty.call(t,o)&&i.call(e||t[o],t[o],o,t)}function te(){for(var t=arguments,i=t.length,e=0;e<i;e++){var o=t[e];if(null!=o)return o}}function to(t,i){return 0>t.indexOf(i)&&!!t.push(i)}function tn(t,i,e){return/%$/.test(t)?i*parseFloat(t)/100+(e||0):parseFloat(t)}function tr(t,i,e){function o(i,e){var o=t.removeEventListener;o&&o.call(t,i,e,!1)}function n(e){var n,r;t.nodeName&&(i?(n={})[i]=!0:n=e,ti(n,function(t,i){if(e[i])for(r=e[i].length;r--;)o(i,e[i][r].fn)}))}var r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){var s=r.hcEvents;if(i){var a=s[i]||[];e?(s[i]=a.filter(function(t){return e!==t.fn}),o(i,e)):(n(s),s[i]=[])}else n(s),delete r.hcEvents}}function ts(t){return J(t)?t:[t]}function ta(t,i,e){var o=t[i];t[i]=function(){var t=arguments,i=this;return e.apply(this,[function(){return o.apply(i,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}var th=E().deg2rad,tl=Math.max,td=Math.min,tc=function(){function t(t,i,e){this.init(t,i,e)}return t.prototype.init=function(t,i,e){this.fromPoint=t,this.toPoint=i,this.options=e,this.chart=t.series.chart,this.pathfinder=this.chart.pathfinder},t.prototype.renderPath=function(t,i){var e=this.chart,o=e.styledMode,n=this.pathfinder,r={},s=this.graphics&&this.graphics.path;n.group||(n.group=e.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(e.seriesGroup)),n.group.translate(e.plotLeft,e.plotTop),!(s&&s.renderer)&&(s=e.renderer.path().add(n.group),o||s.attr({opacity:0})),s.attr(i),r.d=t,o||(r.opacity=1),s.animate(r),this.graphics=this.graphics||{},this.graphics.path=s},t.prototype.addMarker=function(t,i,e){var o,n,r,s,a,h,l,d=this.fromPoint.series.chart,c=d.pathfinder,p=d.renderer,u="start"===t?this.fromPoint:this.toPoint,f=u.getPathfinderAnchorPoint(i);i.enabled&&((l="start"===t?e[1]:e[e.length-2])&&"M"===l[0]||"L"===l[0])&&(h={x:l[1],y:l[2]},n=u.getRadiansToVector(h,f),o=u.getMarkerVector(n,i.radius,f),i.width&&i.height?(s=i.width,a=i.height):s=a=2*i.radius,this.graphics=this.graphics||{},r={x:o.x-s/2,y:o.y-a/2,width:s,height:a,rotation:-n/th,rotationOriginX:o.x,rotationOriginY:o.y},this.graphics[t]?this.graphics[t].animate(r):(this.graphics[t]=p.symbol(i.symbol).addClass("highcharts-point-connecting-path-"+t+"-marker highcharts-color-"+this.fromPoint.colorIndex).attr(r).add(c.group),p.styledMode||this.graphics[t].attr({fill:i.color||this.fromPoint.color,stroke:i.lineColor,"stroke-width":i.lineWidth,opacity:0}).animate({opacity:1},u.series.options.animation)))},t.prototype.getPath=function(t){var i=this.pathfinder,e=this.chart,o=i.algorithms[t.type],n=i.chartObstacles;return"function"!=typeof o?((0,B.error)('"'+t.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]}):(o.requiresObstacles&&!n&&(n=i.chartObstacles=i.getChartObstacles(t),e.options.connectors.algorithmMargin=t.algorithmMargin,i.chartObstacleMetrics=i.getObstacleMetrics(n)),o(this.fromPoint.getPathfinderAnchorPoint(t.startMarker),this.toPoint.getPathfinderAnchorPoint(t.endMarker),tt({chartObstacles:n,lineObstacles:i.lineObstacles||[],obstacleMetrics:i.chartObstacleMetrics,hardBounds:{xMin:0,xMax:e.plotWidth,yMin:0,yMax:e.plotHeight},obstacleOptions:{margin:t.algorithmMargin},startDirectionX:i.getAlgorithmStartDirection(t.startMarker)},t)))},t.prototype.render=function(){var t=this.fromPoint,i=t.series,e=i.chart,o=e.pathfinder,n={},r=tt(e.options.connectors,i.options.connectors,t.options.connectors,this.options);!e.styledMode&&(n.stroke=r.lineColor||t.color,n["stroke-width"]=r.lineWidth,r.dashStyle&&(n.dashstyle=r.dashStyle)),n.class="highcharts-point-connecting-path highcharts-color-"+t.colorIndex,X((r=tt(n,r)).marker.radius)||(r.marker.radius=td(tl(Math.ceil((r.algorithmMargin||8)/2)-1,1),5));var s=this.getPath(r),a=s.path;s.obstacles&&(o.lineObstacles=o.lineObstacles||[],o.lineObstacles=o.lineObstacles.concat(s.obstacles)),this.renderPath(a,n),this.addMarker("start",tt(r.marker,r.startMarker),a),this.addMarker("end",tt(r.marker,r.endMarker),a)},t.prototype.destroy=function(){this.graphics&&(ti(this.graphics,function(t){t.destroy()}),delete this.graphics)},t}(),tp=E().composed,tu={color:"#ccd3ff",width:2,label:{format:"%[abdYHM]",formatter:function(t,i){return this.axis.chart.time.dateFormat(i||"",t,!0)},rotation:0,style:{fontSize:"0.7em"}}};function tf(){var t=this.options,i=t.currentDateIndicator;if(i){var e="object"==typeof i?tt(tu,i):tt(tu);e.value=Date.now(),e.className="highcharts-current-date-indicator",t.plotLines||(t.plotLines=[]),t.plotLines.push(e)}}function tg(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})}function tx(t,i){var e=this.options;return e&&e.className&&-1!==e.className.indexOf("highcharts-current-date-indicator")&&e.label&&"function"==typeof e.label.formatter?(e.value=Date.now(),e.label.formatter.call(this,e.value,e.label.format,this)):t.call(this,i)}var tv=P(960),tm=P.n(tv),ty=(d=function(t,i){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)i.hasOwnProperty(e)&&(t[e]=i[e])})(t,i)},function(t,i){function e(){this.constructor=t}d(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),tb=E().defaultOptions,tM=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ty(i,t),i.prototype.init=function(i,e){var o,n=i.xAxis,r=i.yAxis;i.xAxis=i.yAxis=void 0;var s=tt(!0,{chart:{type:"gantt"},title:{text:""},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},i,{isGantt:!0});i.xAxis=n,i.yAxis=r,s.xAxis=(!J(i.xAxis)?[i.xAxis||{},{}]:i.xAxis).map(function(t,i){var e,n,r,s,a;return 1===i&&(o=0),tt({grid:{borderColor:(null==(n=null==(e=tb.xAxis)?void 0:e.grid)?void 0:n.borderColor)||"#cccccc",enabled:!0},opposite:null==(a=null!=(s=null==(r=tb.xAxis)?void 0:r.opposite)?s:t.opposite)||a,linkedTo:o},t,{type:"datetime"})}),s.yAxis=ts(i.yAxis||{}).map(function(t){var i,e;return tt({grid:{borderColor:(null==(e=null==(i=tb.yAxis)?void 0:i.grid)?void 0:e.borderColor)||"#cccccc",enabled:!0},staticScale:50,reversed:!0,type:t.categories?t.type:"treegrid"},t)}),t.prototype.init.call(this,s,e)},i}(tm());(c=tM||(tM={})).ganttChart=function(t,i,e){return new c(t,i,e)};var tk=tM,tw=P(532),tA=P.n(tw),tO=E().isTouchDevice,tP=[];function tS(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function tB(){var t,i,e,o,n=this.legend,r=this.navigator;if(r){i=n&&n.options,e=r.xAxis,o=r.yAxis;var s=r.scrollbarHeight,a=r.scrollButtonSize;this.inverted?(r.left=r.opposite?this.chartWidth-s-r.height:this.spacing[3]+s,r.top=this.plotTop+a):(r.left=te(e.left,this.plotLeft+a),r.top=r.navigatorOptions.top||this.chartHeight-r.height-s-((null==(t=this.scrollbar)?void 0:t.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&"bottom"===i.verticalAlign&&"proximate"!==i.layout&&i.enabled&&!i.floating?n.legendHeight+te(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&o&&(this.inverted?e.options.left=o.options.left=r.left:e.options.top=o.options.top=r.top,e.setAxisSize(),o.setAxisSize())}}function tE(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new v(this),te(t.redraw,!0)&&this.redraw(t.animation))}function tT(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new v(this))}function tC(){var t=this.options,i=t.navigator,e=t.rangeSelector;if((i&&i.enabled||e&&e.enabled)&&(!tO&&"x"===this.zooming.type||tO&&"x"===this.zooming.pinchType))return!1}function tD(t){var i=t.navigator;if(i&&t.xAxis[0]){var e=t.xAxis[0].getExtremes();i.render(e.min,e.max)}}function tI(t){var i=t.options.navigator||{},e=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(i.enabled||e.enabled)&&(tt(!0,this.options.navigator,i),tt(!0,this.options.scrollbar,e),delete t.options.navigator,delete t.options.scrollbar)}var tL=function(t,i){if(to(tP,t)){var e=t.prototype;v=i,e.callbacks.push(tD),G(t,"afterAddSeries",tS),G(t,"afterSetChartSize",tB),G(t,"afterUpdate",tE),G(t,"beforeRender",tT),G(t,"beforeShowResetZoom",tC),G(t,"update",tI)}},tz=E().isTouchDevice;function tR(){this.navigatorAxis||(this.navigatorAxis=new tW(this))}function tG(t){var i,e=this.chart,o=e.options,n=o.navigator,r=this.navigatorAxis,s=e.zooming.pinchType,a=o.rangeSelector,h=e.zooming.type;if(this.isXAxis&&((null==n?void 0:n.enabled)||(null==a?void 0:a.enabled))){if("y"===h&&"zoom"===t.trigger)i=!1;else if(("zoom"===t.trigger&&"xy"===h||tz&&"xy"===s)&&this.options.range){var l=r.previousZoom;X(t.min)?r.previousZoom=[this.min,this.max]:l&&(t.min=l[0],t.max=l[1],r.previousZoom=void 0)}}void 0!==i&&t.preventDefault()}var tW=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),G(t,"init",tR),G(t,"setExtremes",tG))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,i,e,o){var n=this.axis,r=(n.pointRange||0)/2,s=te(e,n.translate(t,!0,!n.horiz)),a=te(o,n.translate(i,!0,!n.horiz));return X(e)||(s=H(s+r)),X(o)||(a=H(a-r)),K(s)&&K(a)||(s=a=void 0),{min:s,max:a}},t}(),tH=P(620),tN=P.n(tH),t_=P(512),tF=P.n(t_),tX=tN().parse,tY=tF().seriesTypes,tU={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:tX("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===tY.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},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:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}},tj=function(t,i,e){if(e||2==arguments.length)for(var o,n=0,r=i.length;n<r;n++)!o&&n in i||(o||(o=Array.prototype.slice.call(i,0,n)),o[n]=i[n]);return t.concat(o||Array.prototype.slice.call(i))},tV={"navigator-handle":function(t,i,e,o,n){void 0===n&&(n={});var r,s,a,h,l,d=n.width?n.width/2:e,c=tn(n.borderRadius||0,Math.min(2*d,o));return tj([["M",-1.5,(o=n.height||o)/2-3.5],["L",-1.5,o/2+4.5],["M",.5,o/2-3.5],["L",.5,o/2+4.5]],(r=-d-1,s=.5,a=2*d+1,h=o,(l={r:c},l.r)?function(t,i,e,o,n){var r=(null==n?void 0:n.r)||0;return[["M",t+r,i],["L",t+e-r,i],["A",r,r,0,0,1,t+e,i+r],["L",t+e,i+o-r],["A",r,r,0,0,1,t+e-r,i+o],["L",t+r,i+o],["A",r,r,0,0,1,t,i+o-r],["L",t,i+r],["A",r,r,0,0,1,t+r,i],["Z"]]}(r,.5,a,h,l):[["M",r,.5],["L",r+a,.5],["L",r+a,.5+h],["L",r,.5+h],["Z"]]),!0)}},tq=P(608),tZ=P.n(tq),tK=E().defaultOptions,t$=E().composed,tJ=tZ().getRendererType,tQ={setFixedRange:function(t){var i=this.xAxis[0];X(i.dataMax)&&X(i.dataMin)&&t?this.fixedRange=Math.min(t,i.dataMax-i.dataMin):this.fixedRange=t}}.setFixedRange;function t0(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var t1=function(t,i,e){tW.compose(i),to(t$,"Navigator")&&(t.prototype.setFixedRange=tQ,j(tJ().prototype.symbols,tV),j(tK,{navigator:tU}),G(e,"afterUpdate",t0))},t2=E().composed;!function(t){var i;function e(t){var i,e,o,n,r,s,a,h,l=te(null==(i=t.options)?void 0:i.min,t.min),d=te(null==(e=t.options)?void 0:e.max,t.max);return{axisMin:l,axisMax:d,scrollMin:X(t.dataMin)?Math.min(l,null!=(o=t.min)?o:1/0,t.dataMin,null!=(n=t.threshold)?n:1/0):l,scrollMax:null!=(s=null==(r=t.treeGrid)?void 0:r.adjustedMax)?s:X(t.dataMax)?Math.max(d,null!=(a=t.max)?a:-1/0,t.dataMax,null!=(h=t.threshold)?h:-1/0):d}}function o(){var t=this.scrollbar,i=t&&!t.options.opposite,e=this.horiz?2:i?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=t.size+(t.options.margin||0))}function n(){var t,o,n=this;(null==(o=null==(t=n.options)?void 0:t.scrollbar)?void 0:o.enabled)&&(n.options.scrollbar.vertical=!n.horiz,n.options.startOnTick=n.options.endOnTick=!1,n.scrollbar=new i(n.chart.renderer,n.options.scrollbar,n.chart),G(n.scrollbar,"changed",function(t){var i,o,r=e(n),s=r.axisMin,a=r.axisMax,h=r.scrollMin,l=r.scrollMax,d=n.toPixels(h),c=n.toPixels(l)-d;if(X(s)&&X(a))if(n.horiz&&!n.reversed||!n.horiz&&n.reversed?(i=Math.min(l,n.toValue(d+c*this.to)),o=Math.max(h,n.toValue(d+c*this.from))):(i=Math.min(l,n.toValue(d+c*(1-this.from))),o=Math.max(h,n.toValue(d+c*(1-this.to)))),this.shouldUpdateExtremes(t.DOMType)){var p="mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&void 0;n.setExtremes(H(o),H(i),!0,p,t)}else this.setRange(this.from,this.to)}))}function r(){var t,i,o,n=e(this),r=n.scrollMin,s=n.scrollMax,a=this.scrollbar,h=(this.axisTitleMargin||0)+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,d=this.options.margin||0;if(a&&l){if(this.horiz)this.opposite||(l[1]+=h),a.position(this.left,this.top+this.height+2+l[1]-(this.opposite?d:0),this.width,this.height),this.opposite||(l[1]+=d),t=1;else{this.opposite&&(l[0]+=h);var c=void 0;c=a.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:d):this.opposite?0:d,a.position(c,this.top,this.width,this.height),this.opposite&&(l[0]+=d),t=0}if(l[t]+=a.size+(a.options.margin||0),isNaN(r)||isNaN(s)||!X(this.min)||!X(this.max)||X(this.dataMin)&&this.dataMin===this.dataMax)a.setRange(0,1);else if(this.min===this.max){var p=this.pointRange/(this.dataMax+1);i=p*this.min,o=p*(this.max+1),a.setRange(i,o)}else i=(this.toPixels(this.min)-this.toPixels(r))/(this.toPixels(s)-this.toPixels(r)),o=(this.toPixels(this.max)-this.toPixels(r))/(this.toPixels(s)-this.toPixels(r)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(i,o):a.setRange(1-o,1-i)}}t.compose=function(t,e){to(t2,"Axis.Scrollbar")&&(i=e,G(t,"afterGetOffset",o),G(t,"afterInit",n),G(t,"afterRender",r))}}(m||(m={}));var t3=m,t5={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},t6=E().defaultOptions,t4=E().composed,t9=function(){function t(t,i,e){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,i,e)}return t.compose=function(i){t3.compose(i,t),to(t4,"Scrollbar")&&j(t6,{scrollbar:t5})},t.swapXY=function(t,i){return i&&t.forEach(function(t){for(var i,e=t.length,o=0;o<e;o+=2)"number"==typeof(i=t[o+1])&&(t[o+1]=t[o+2],t[o+2]=i)}),t},t.prototype.addEvents=function(){var t=this.options.inverted?[1,0]:[0,1],i=this.scrollbarButtons,e=this.scrollbarGroup.element,o=this.track.element,n=this.mouseDownHandler.bind(this),r=this.mouseMoveHandler.bind(this),s=this.mouseUpHandler.bind(this),a=[[i[t[0]].element,"click",this.buttonToMinClick.bind(this)],[i[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[o,"click",this.trackClick.bind(this)],[e,"mousedown",n],[e.ownerDocument,"mousemove",r],[e.ownerDocument,"mouseup",s],[e,"touchstart",n],[e.ownerDocument,"touchmove",r],[e.ownerDocument,"touchend",s]];a.forEach(function(t){G.apply(null,t)}),this._events=a},t.prototype.buttonToMaxClick=function(t){var i=(this.to-this.from)*te(this.options.step,.2);this.updatePosition(this.from+i,this.to+i),V(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var i=H(this.to-this.from)*te(this.options.step,.2);this.updatePosition(H(this.from-i),H(this.to-i)),V(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.cursorToScrollbarPosition=function(t){var i=this.options,e=i.minWidth>this.calculatedWidth?i.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-e)}},t.prototype.destroy=function(){var t=this,i=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(i){t[i]&&t[i].destroy&&(t[i]=t[i].destroy())}),i&&t===i.scrollbar&&(i.scrollbar=null,Y(i.scrollbarButtons))},t.prototype.drawScrollbarButton=function(i){var e=this.renderer,o=this.scrollbarButtons,n=this.options,r=this.size,s=e.g().add(this.group);if(o.push(s),n.buttonsEnabled){var a=e.rect().addClass("highcharts-scrollbar-button").add(s);this.chart.styledMode||a.attr({stroke:n.buttonBorderColor,"stroke-width":n.buttonBorderWidth,fill:n.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:r,height:r,r:n.buttonBorderRadius},a.strokeWidth()));var h=e.path(t.swapXY([["M",r/2+(i?-1:1),r/2-3],["L",r/2+(i?-1:1),r/2+3],["L",r/2+(i?2:-2),r/2]],n.vertical)).addClass("highcharts-scrollbar-arrow").add(o[i]);this.chart.styledMode||h.attr({fill:n.buttonArrowColor})}},t.prototype.init=function(t,i,e){this.scrollbarButtons=[],this.renderer=t,this.userOptions=i,this.options=tt(t5,t6.scrollbar,i),this.options.margin=te(this.options.margin,10),this.chart=e,this.size=te(this.options.size,this.options.height),i.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){var i,e=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t,o=this.cursorToScrollbarPosition(e);this.chartX=o.chartX,this.chartY=o.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var i,e,o=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t,n=this.options.vertical?"chartY":"chartX",r=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][n])&&(e=this.cursorToScrollbarPosition(o)[n]-this[n],this.hasDragged=!0,this.updatePosition(r[0]+e,r[1]+e),this.hasDragged&&V(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&V(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,i,e,o){var n=this.options,r=n.buttonsEnabled,s=n.margin,a=void 0===s?0:s,h=n.vertical,l=this.rendered?"animate":"attr",d=o,c=0;this.group.show(),this.x=t,this.y=i+this.trackBorderWidth,this.width=e,this.height=o,this.xOffset=d,this.yOffset=c,h?(this.width=this.yOffset=e=c=this.size,this.xOffset=d=0,this.yOffset=c=r?this.size:0,this.barWidth=o-(r?2*e:0),this.x=t+=a):(this.height=o=this.size,this.xOffset=d=r?this.size:0,this.barWidth=e-(r?2*o:0),this.y=this.y+a),this.group[l]({translateX:t,translateY:this.y}),this.track[l]({width:e,height:o}),this.scrollbarButtons[1][l]({translateX:h?0:e-d,translateY:h?o-c:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){tr.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var i=this.renderer,e=this.options,o=this.size,n=this.chart.styledMode,r=i.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=r,this.track=i.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:o,width:o}).add(r),n||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});var s=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-_(0,s),y:-_(0,s)}),this.scrollbarGroup=i.g().add(r),this.scrollbar=i.rect().addClass("highcharts-scrollbar-thumb").attr({height:o-s,width:o-s,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=i.path(t.swapXY([["M",-3,o/4],["L",-3,2*o/3],["M",0,o/4],["L",0,2*o/3],["M",3,o/4],["L",3,2*o/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),n||(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(-_(0,this.scrollbarStrokeWidth),-_(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,i){var e,o,n=this.options,r=n.vertical,s=n.minWidth,a=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(X(a)){var l=a*Math.min(i,1);e=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=o=H(l-e),o<s&&(e=(a-s+o)*t,o=s);var d=Math.floor(e+this.xOffset+this.yOffset),c=o/2-.5;this.from=t,this.to=i,r?(this.scrollbarGroup[h]({translateY:d}),this.scrollbar[h]({height:o}),this.scrollbarRifles[h]({translateY:c}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:d}),this.scrollbar[h]({width:o}),this.scrollbarRifles[h]({translateX:c}),this.scrollbarLeft=d,this.scrollbarTop=0),o<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===n.showFull&&(t<=0&&i>=1?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return te(this.options.liveRedraw,E().svg&&!E().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!X(t)},t.prototype.trackClick=function(t){var i,e=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t,o=this.to-this.from,n=this.y+this.scrollbarTop,r=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>n||!this.options.vertical&&e.chartX>r?this.updatePosition(this.from+o,this.to+o):this.updatePosition(this.from-o,this.to-o),V(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,tt(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,i){i>1&&(t=H(1-H(i-t)),i=1),t<0&&(i=H(i-t),t=0),this.from=t,this.to=i},t.defaultOptions=t5,t}(),t8=function(){return(t8=Object.assign||function(t){for(var i,e=1,o=arguments.length;e<o;e++)for(var n in i=arguments[e])Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n]);return t}).apply(this,arguments)},t7=function(t,i,e){if(e||2==arguments.length)for(var o,n=0,r=i.length;n<r;n++)!o&&n in i||(o||(o=Array.prototype.slice.call(i,0,n)),o[n]=i[n]);return t.concat(o||Array.prototype.slice.call(i))},it=E().defaultOptions,ii=E().isTouchDevice;function ie(t){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var o=[].filter.call(i,K);if(o.length)return Math[t].apply(0,o)}var io=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(i,e,o){tL(i,t),t1(i,e,o)},t.prototype.drawHandle=function(t,i,e,o){var n=this.navigatorOptions.handles.height;this.handles[i][o](e?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-n)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-n/2-1)})},t.prototype.drawOutline=function(t,i,e,o){var n,r,s=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),h=a/2,l=a%2/2,d=this.scrollButtonSize,c=this.size,p=this.top,u=this.height,f=p-h,g=p+u,x=this.left;e?(n=p+i+l,i=p+t+l,r=[["M",x+u,p-d-l],["L",x+u,n],["L",x,n],["M",x,i],["L",x+u,i],["L",x+u,p+c+d]],s&&r.push(["M",x+u,n-h],["L",x+u,i+h])):(x-=d,t+=x+d-l,i+=x+d-l,r=[["M",x,f],["L",t,f],["L",t,g],["M",i,g],["L",i,f],["L",x+c+2*d,f]],s&&r.push(["M",t-h,f],["L",i+h,f])),this.outline[o]({d:r})},t.prototype.drawMasks=function(t,i,e,o){var n,r,s,a,h=this.left,l=this.top,d=this.height;e?(s=[h,h,h],a=[l,l+t,l+i],r=[d,d,d],n=[t,i-t,this.size-i]):(s=[h,h+t,h+i],a=[l,l,l],r=[t,i-t,this.size-i],n=[d,d,d]),this.shades.forEach(function(t,i){t[o]({x:s[i],y:a[i],width:r[i],height:n[i]})})},t.prototype.renderElements=function(){var t,i,e,o=this,n=o.navigatorOptions,r=n.maskInside,s=o.chart,a=s.inverted,h=s.renderer,l={cursor:a?"ns-resize":"ew-resize"},d=null!=(t=o.navigatorGroup)?t:o.navigatorGroup=h.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!r,r,!r].forEach(function(t,i){var e,r=null!=(e=o.shades[i])?e:o.shades[i]=h.rect().addClass("highcharts-navigator-mask"+(1===i?"-inside":"-outside")).add(d);s.styledMode||(r.attr({fill:t?n.maskFill:"rgba(0,0,0,0)"}),1===i&&r.css(l))}),o.outline||(o.outline=h.path().addClass("highcharts-navigator-outline").add(d)),s.styledMode||o.outline.attr({"stroke-width":n.outlineWidth,stroke:n.outlineColor}),null==(i=n.handles)?void 0:i.enabled){var c=!1,p=n.handles,u=p.height,f=p.width;[0,1].forEach(function(t){var i,e,n=p.symbols[t];(c=c||(null==(i=o.handles[t])?void 0:i.symbolName)!==n)&&(null==(e=o.handles[t])||e.destroy(),o.handles[t]=h.symbol(n,-f/2-1,0,f,u,p),o.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(d)),s.inverted&&o.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-f/2),rotationOriginY:(u+f)/2}),s.styledMode||o.handles[t].attr({fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.lineWidth,width:p.width,height:p.height,x:-f/2-1,y:0}).css(l)}),c&&(null==(e=o.partsEventsToUnbind)||e.forEach(function(t){t()}),o.partsEventsToUnbind=t7(t7([],o.getPartsEvents("mousedown"),!0),o.getPartsEvents("touchstart"),!0))}},t.prototype.update=function(t,i){var e,o,n,r,s=this;void 0===i&&(i=!1);var a=this.chart,h=a.options.chart.inverted!==(null==(n=a.scrollbar)?void 0:n.options.vertical);if(tt(!0,a.options.navigator,t),this.navigatorOptions=a.options.navigator||{},this.setOpposite(),X(t.enabled)||h)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(a);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){tr(t,"updatedData",s.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push(G(t,"updatedData",s.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=null!=(r=t.height)?r:this.height;var l=this.getXAxisOffsets();this.xAxis.update(t8(t8({},t.xAxis),((e={offsets:l})[a.inverted?"width":"height"]=this.height,e[a.inverted?"height":"width"]=void 0,e)),!1),this.yAxis.update(t8(t8({},t.yAxis),((o={})[a.inverted?"width":"height"]=this.height,o)),!1)}i&&a.redraw()},t.prototype.render=function(t,i,e,o){var n,r,s,a,h,l,d=this.chart,c=this.xAxis,p=c.pointRange||0,u=c.navigatorAxis.fake?d.xAxis[0]:c,f=this.navigatorEnabled,g=this.rendered,x=d.inverted,v=d.xAxis[0].minRange,m=d.xAxis[0].options.maxRange,y=this.scrollButtonSize,b=this.scrollbarHeight;if(!this.hasDragged||X(e)){if(this.isDirty&&this.renderElements(),t=H(t-p/2),i=H(i+p/2),!K(t)||!K(i))if(!g)return;else e=0,o=te(c.width,u.width);this.left=te(c.left,d.plotLeft+y+(x?d.plotWidth:0));var M=this.size=h=te(c.len,(x?d.plotHeight:d.plotWidth)-2*y);r=x?b:h+2*y,e=te(e,c.toPixels(t,!0)),o=te(o,c.toPixels(i,!0)),K(e)&&Math.abs(e)!==1/0||(e=0,o=r);var k=c.toValue(e,!0),w=c.toValue(o,!0),A=Math.abs(H(w-k));X(v)&&A<v?this.grabbedLeft?e=c.toPixels(w-v-p,!0):this.grabbedRight&&(o=c.toPixels(k+v+p,!0)):X(m)&&H(A-p)>m&&(this.grabbedLeft?e=c.toPixels(w-m-p,!0):this.grabbedRight&&(o=c.toPixels(k+m+p,!0))),this.zoomedMax=W(Math.max(e,o),0,M),this.zoomedMin=W(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,o),0,M),this.range=this.zoomedMax-this.zoomedMin,M=Math.round(this.zoomedMax);var O=Math.round(this.zoomedMin);f&&(this.navigatorGroup.attr({visibility:"inherit"}),l=g&&!this.hasDragged?"animate":"attr",this.drawMasks(O,M,x,l),this.drawOutline(O,M,x,l),(null==(n=this.navigatorOptions.handles)?void 0:n.enabled)&&(this.drawHandle(O,0,x,l),this.drawHandle(M,1,x,l))),this.scrollbar&&(x?(a=this.top-y,s=this.left-b+(f||!u.opposite?0:(u.titleOffset||0)+u.axisTitleMargin),b=h+2*y):(a=this.top+(f?this.height:-b),s=this.left-y),this.scrollbar.position(s,a,r,b),this.scrollbar.setRange(this.zoomedMin/(h||1),this.zoomedMax/(h||1))),this.rendered=!0,this.isDirty=!1,V(this,"afterRender")}},t.prototype.addMouseEvents=function(){var t,i,e=this,o=e.chart,n=o.container,r=[];e.mouseMoveHandler=t=function(t){e.onMouseMove(t)},e.mouseUpHandler=i=function(t){e.onMouseUp(t)},r.push(G(o.renderTo,"mousemove",t),G(n.ownerDocument,"mouseup",i),G(o.renderTo,"touchmove",t),G(n.ownerDocument,"touchend",i)),e.eventsToUnbind=r,e.series&&e.series[0]&&r.push(G(e.series[0].xAxis,"foundExtremes",function(){var t;null==(t=o.navigator)||t.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(t){var i=this,e=[];return["shades","handles"].forEach(function(o){i[o].forEach(function(n,r){e.push(G(n.element,t,function(t){i[""+o+"Mousedown"](t,r)}))})}),e},t.prototype.shadesMousedown=function(t,i){t=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t;var e,o,n,r,s,a,h,l=this.chart,d=this.xAxis,c=this.zoomedMin,p=this.size,u=this.range,f=this.left,g=t.chartX;l.inverted&&(g=t.chartY,f=this.top),1===i?(this.grabbedCenter=g,this.fixedWidth=u,this.dragOffset=g-c):(h=g-f-u/2,0===i?h=Math.max(0,h):2===i&&h+u>=p&&(h=p-u,this.reversedExtremes?(h-=u,s=null==(o=this.getUnionExtremes())?void 0:o.dataMin):r=null==(n=this.getUnionExtremes())?void 0:n.dataMax),h!==c&&(this.fixedWidth=u,X((a=d.navigatorAxis.toFixedRange(h,h+u,s,r)).min)&&V(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,eventArguments:{trigger:"navigator"}})))},t.prototype.handlesMousedown=function(t,i){t=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t;var e,o=this.chart,n=o.xAxis[0],r=this.reversedExtremes;0===i?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=r?n.min:n.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=r?n.max:n.min),o.setFixedRange(void 0)},t.prototype.onMouseMove=function(t){var i,e,o,n=this,r=n.chart,s=n.navigatorSize,a=n.range,h=n.dragOffset,l=r.inverted,d=n.left;(!t.touches||0!==t.touches[0].pageX)&&(o=(t=(null==(i=r.pointer)?void 0:i.normalize(t))||t).chartX,l&&(d=n.top,o=t.chartY),n.grabbedLeft?(n.hasDragged=!0,n.render(0,0,o-d,n.otherHandlePos)):n.grabbedRight?(n.hasDragged=!0,n.render(0,0,n.otherHandlePos,o-d)):n.grabbedCenter&&h&&(n.hasDragged=!0,o<h?o=h:o>s+h-a&&(o=s+h-a),n.render(0,0,o-h,o-h+a)),n.hasDragged&&te(null==(e=n.scrollbarOptions)?void 0:e.liveRedraw,!ii&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){n.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var i,e,o,n,r,s,a,h=this.chart,l=this.xAxis,d=this.scrollbar,c=t.DOMEvent||t,p=h.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===t.trigger)&&(n=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?r=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(s=this.fixedExtreme),this.zoomedMax===this.size&&(s=this.reversedExtremes?n.dataMin:n.dataMax),0===this.zoomedMin&&(r=this.reversedExtremes?n.dataMax:n.dataMin),X((a=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,r,s)).min)&&V(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:c}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&K(this.zoomedMin)&&K(this.zoomedMax)&&(o=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(o,e,p,u),this.outline&&this.drawOutline(o,e,p,u),(null==(i=this.navigatorOptions.handles)?void 0:i.enabled)&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(o,0,p,u),this.drawHandle(e,1,p,u)))},t.prototype.removeEvents=function(){var t;null==(t=this.eventsToUnbind)||t.forEach(function(t){t()}),this.eventsToUnbind=void 0,this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){tr(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&tr(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.getXAxisOffsets=function(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]},t.prototype.init=function(t){var i,e,o,n=t.options,r=n.navigator||{},s=r.enabled,a=n.scrollbar||{},h=a.enabled,l=s&&r.height||0,d=h&&a.height||0,c=a.buttonsEnabled&&d||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=l,this.scrollbarHeight=d,this.scrollButtonSize=c,this.scrollbarEnabled=h,this.navigatorEnabled=!!s,this.navigatorOptions=r,this.scrollbarOptions=a,this.setOpposite();var p=this,u=p.baseSeries,f=t.xAxis.length,g=t.yAxis.length,x=u&&u[0]&&u[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,p.navigatorEnabled){var v=this.getXAxisOffsets();p.xAxis=new(tA())(t,tt({breaks:x.options.breaks,ordinal:x.options.ordinal,overscroll:x.options.overscroll},r.xAxis,{type:"datetime",yAxis:null==(i=r.yAxis)?void 0:i.id,index:f,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:x.options.ordinal?0:x.options.minPadding,maxPadding:x.options.ordinal?0:x.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:v,width:l}:{offsets:v,height:l}),"xAxis"),p.yAxis=new(tA())(t,tt(r.yAxis,{alignTicks:!1,offset:0,index:g,isInternal:!0,reversed:te(r.yAxis&&r.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:l}:{height:l}),"yAxis"),u||(null==(e=r.series)?void 0:e.data)?p.updateNavigatorSeries(!1):0===t.series.length&&(p.unbindRedraw=G(t,"beforeRedraw",function(){var i;t.series.length>0&&!p.series&&(p.setBaseSeries(),null==(i=p.unbindRedraw)||i.call(p))})),p.reversedExtremes=t.inverted&&!p.xAxis.reversed||!t.inverted&&p.xAxis.reversed,p.renderElements(),p.addMouseEvents()}else p.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(i,e){var o=t.xAxis[0],n=o.getExtremes(),r=o.len-2*c,s=ie("min",o.options.min,n.dataMin),a=ie("max",o.options.max,n.dataMax)-s;return e?i*a/r+s:r*(i-s)/a},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},p.xAxis.navigatorAxis.axis=p.xAxis,p.xAxis.navigatorAxis.toFixedRange=tW.prototype.toFixedRange.bind(p.xAxis.navigatorAxis);if(null==(o=t.options.scrollbar)?void 0:o.enabled){var m=tt(t.options.scrollbar,{vertical:t.inverted});K(m.margin)||(m.margin=t.inverted?-3:3),t.scrollbar=p.scrollbar=new t9(t.renderer,m,t),G(p.scrollbar,"changed",function(t){var i,e=p.size,o=e*this.to,n=e*this.from;p.hasDragged=null==(i=p.scrollbar)?void 0:i.hasDragged,p.render(0,0,n,o),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){p.onMouseUp(t)})})}p.addBaseSeriesEvents(),p.addChartEvents()},t.prototype.setOpposite=function(){var t=this.navigatorOptions,i=this.navigatorEnabled,e=this.chart;this.opposite=te(t.opposite,!!(!i&&e.inverted))},t.prototype.getUnionExtremes=function(t){var i,e=this.chart.xAxis[0],o=this.chart.time,n=this.xAxis,r=n.options,s=e.options;return t&&null===e.dataMin||(i={dataMin:te(o.parse(null==r?void 0:r.min),ie("min",o.parse(s.min),e.dataMin,n.dataMin,n.min)),dataMax:te(o.parse(null==r?void 0:r.max),ie("max",o.parse(s.max),e.dataMax,n.dataMax,n.max))}),i},t.prototype.setBaseSeries=function(t,i){var e,o=this.chart,n=this.baseSeries=[];t=t||(null==(e=o.options.navigator)?void 0:e.baseSeries)||(o.series.length?q(o.series,function(t){return!t.options.isInternal}).index:0),(o.series||[]).forEach(function(i,e){!i.options.isInternal&&(i.options.showInNavigator||(e===t||i.options.id===t)&&!1!==i.options.showInNavigator)&&n.push(i)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,i)},t.prototype.updateNavigatorSeries=function(t,i){var e,o,n,r,s,a=this,h=a.chart,l=a.baseSeries,d={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:null==(e=this.navigatorOptions.xAxis)?void 0:e.id,yAxis:null==(o=this.navigatorOptions.yAxis)?void 0:o.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=a.series=(a.series||[]).filter(function(t){var i=t.baseSeries;return!(i&&0>l.indexOf(i))||(i&&(tr(i,"updatedData",a.updatedDataHandler),delete i.navigatorSeries),t.chart&&t.destroy(),!1)}),p=a.navigatorOptions.series;l&&l.length&&l.forEach(function(t){var e,o,u=t.navigatorSeries,f=j({color:t.color,visible:t.visible},J(p)?it.navigator.series:p);if(!u||!1!==a.navigatorOptions.adaptToUpdatedData){d.name="Navigator "+l.length,s=(n=t.options||{}).navigatorOptions||{},f.dataLabels=ts(f.dataLabels),(r=tt(n,d,f,s)).pointRange=te(f.pointRange,s.pointRange,null==(e=it.plotOptions[r.type||"line"])?void 0:e.pointRange);var g=s.data||f.data;a.hasNavigatorData=a.hasNavigatorData||!!g,r.data=g||(null==(o=n.data)?void 0:o.slice(0)),u&&u.options?u.update(r,i):(t.navigatorSeries=h.initSeries(r),h.setSortedData(),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries))}}),((null==p?void 0:p.data)&&!(l&&l.length)||J(p))&&(a.hasNavigatorData=!1,(p=ts(p)).forEach(function(t,i){var e,o,n;d.name="Navigator "+(c.length+1),(r=tt(null==(e=it.navigator)?void 0:e.series,{color:h.series[i]&&!h.series[i].options.isInternal&&h.series[i].color||(null==(o=h.options.colors)?void 0:o[i])||(null==(n=h.options.colors)?void 0:n[0])},d,t)).data=t.data,r.data&&(a.hasNavigatorData=!0,c.push(h.initSeries(r)))})),t&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var t=this,i=this,e=i.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(G(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(o){o.eventsToUnbind.push(G(o,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),o.eventsToUnbind.push(G(o,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&o.xAxis&&o.eventsToUnbind.push(G(o,"updatedData",t.updatedDataHandler)),o.eventsToUnbind.push(G(o,"remove",function(){e&&U(e,o),this.navigatorSeries&&i.series&&(U(i.series,this.navigatorSeries),X(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce(function(t,i){var e;return Math.min(t,null!=(e=i.getColumn("x")[0])?e:t)},t)},t.prototype.modifyNavigatorAxisExtremes=function(){var t=this.xAxis;if(void 0!==t.getExtremes){var i=this.getUnionExtremes(!0);i&&(i.dataMin!==t.min||i.dataMax!==t.max)&&(t.min=i.dataMin,t.max=i.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var t,i,e,o=this.chart.navigator,n=this.getExtremes(),r=n.min,s=n.max,a=n.dataMin,h=n.dataMax,l=s-r,d=null==o?void 0:o.stickToMin,c=null==o?void 0:o.stickToMax,p=te(null==(t=this.ordinal)?void 0:t.convertOverscroll(this.options.overscroll),0),u=o.series&&o.series[0],f=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(d&&(i=(e=a)+l),c&&(i=h+p,d||(e=Math.max(a,i-l,o.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),f&&(d||c)&&K(e)&&(this.min=this.userMin=e,this.max=this.userMax=i)),o.stickToMin=o.stickToMax=null},t.prototype.updatedDataHandler=function(){var t=this.chart.navigator,i=this.navigatorSeries,e=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=te(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,e),t.stickToMin=t.shouldStickToMin(this,t),i&&!t.hasNavigatorData&&(i.options.pointStart=this.getColumn("x")[0],i.setData(this.options.data,!1,void 0,!1))},t.prototype.shouldStickToMin=function(t,i){var e=i.getBaseSeriesMin(t.getColumn("x")[0]),o=t.xAxis,n=o.max,r=o.min,s=o.options.range;return!!(K(n)&&K(r))&&(s&&n-e>0?n-e<s:r<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(G(this.chart,"redraw",function(){var t=this.navigator,i=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);i&&t.render(i.min,i.max)}),G(this.chart,"getMargins",function(){var t,i=this.navigator,e=i.opposite?"plotTop":"marginBottom";this.inverted&&(e=i.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(i.navigatorEnabled||!this.inverted?i.height+((null==(t=this.scrollbar)?void 0:t.options.margin)||0)+i.scrollbarHeight:0)+(i.navigatorOptions.margin||0)}),G(this,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))},t.prototype.destroy=function(){var t=this;this.removeEvents(),this.xAxis&&(U(this.chart.xAxis,this.xAxis),U(this.chart.axes,this.xAxis)),this.yAxis&&(U(this.chart.yAxis,this.yAxis),U(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(t){t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(i){t[i]&&t[i].destroy&&t[i].destroy(),t[i]=null}),[this.handles].forEach(function(t){Y(t)}),this.baseSeries.forEach(function(t){t.navigatorSeries=void 0}),this.navigatorEnabled=!1},t}(),ir={rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→",rangeSelector:{allText:"All",allTitle:"View all",monthText:"{count}m",monthTitle:"View {count} {#eq count 1}month{else}months{/eq}",yearText:"{count}y",yearTitle:"View {count} {#eq count 1}year{else}years{/eq}",ytdText:"YTD",ytdTitle:"View year to date"}},is={allButtonsEnabled:!1,buttons:[{type:"month",count:1},{type:"month",count:3},{type:"month",count:6},{type:"ytd"},{type:"year",count:1},{type:"all"}],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:"%[ebY]",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:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}},ia=E().defaultOptions,ih=E().composed,il=[];function id(){var t,i,e=this.range,o=e.type,n=this.max,r=this.chart.time,s=function(t,i){var e=r.toParts(t),n=e.slice();"year"===o?n[0]+=i:n[1]+=i;var s=r.makeTime.apply(r,n),a=r.toParts(s);return"month"===o&&e[1]===a[1]&&1===Math.abs(i)&&(n[0]=e[0],n[1]=e[1],n[2]=0),(s=r.makeTime.apply(r,n))-t};K(e)?(t=n-e,i=e):e&&(t=n+s(n,-(e.count||1)),this.chart&&this.chart.setFixedRange(n-t));var a=te(this.dataMin,5e-324);return K(t)||(t=a),t<=a&&(t=a,void 0===i&&(i=s(t,e.count)),this.newMax=Math.min(t+i,te(this.dataMax,Number.MAX_VALUE))),K(n)?!K(e)&&e&&e._offsetMin&&(t+=e._offsetMin):t=void 0,t}function ic(){var t;null==(t=this.rangeSelector)||t.redrawElements()}function ip(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new y(this))}function iu(){var t=this.rangeSelector;if(t){K(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick);var i=t.options.verticalAlign;t.options.floating||("bottom"===i?this.extraBottomMargin=!0:"top"===i&&(this.extraTopMargin=!0))}}function ig(){var t,i=this.rangeSelector;if(i){var e=this.xAxis[0].getExtremes(),o=this.legend,n=i&&i.options.verticalAlign;K(e.min)&&i.render(e.min,e.max),(null==o?void 0:o.display)&&"top"===n&&n===o.options.verticalAlign&&(t=tt(this.spacingBox),"vertical"===o.options.layout?t.y=this.plotTop:t.y+=i.getHeight(),o.group.placed=!1,o.align(t))}}function ix(){for(var t=0,i=il.length;t<i;++t){var e=il[t];if(e[0]===this){e[1].forEach(function(t){return t()}),il.splice(t,1);return}}}function iv(){var t,i=this.rangeSelector;if(null==(t=null==i?void 0:i.options)?void 0:t.enabled){var e=this.xAxis[0].getExtremes(),o=e.min,n=e.max;K(o)&&i.inputGroup&&i.inputGroup.getBBox().width<20&&i.render(o,n);var r=i.getHeight(),s=i.options.verticalAlign;i.options.floating||("bottom"===s?this.marginBottom+=r:"middle"!==s&&(this.plotTop+=r))}}function im(t){var i=t.options.rangeSelector,e=this.extraBottomMargin,o=this.extraTopMargin,n=this.rangeSelector;if(i&&i.enabled&&!X(n)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=n=new y(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,n){var r=i&&i.verticalAlign||n.options&&n.options.verticalAlign;n.options.floating||("bottom"===r?this.extraBottomMargin=!0:"middle"!==r&&(this.extraTopMargin=!0)),(this.extraBottomMargin!==e||this.extraTopMargin!==o)&&(this.isDirtyBox=!0)}}var iy=function(t,i,e){if(y=e,to(ih,"RangeSelector")){var o=i.prototype;t.prototype.minFromRange=id,G(i,"afterGetContainer",ip),G(i,"beforeRender",iu),G(i,"destroy",ix),G(i,"getMargins",iv),G(i,"redraw",ig),G(i,"update",im),G(i,"beforeRedraw",ic),o.callbacks.push(ig),j(ia,{rangeSelector:is}),j(ia.lang,ir)}},ib=P(28),iM=P.n(ib),ik=P(984),iw=P.n(ik),iA=E().defaultOptions,iO=iw().format;function iP(t){var i=function(i){return new RegExp("%[[a-zA-Z]*".concat(i)).test(t)};if($(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";var e=$(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(i):t.dateStyle||t.day||t.month||t.year,o=$(t)?["H","k","I","l","M","S"].some(i):t.timeStyle||t.hour||t.minute||t.second;return e&&o?"datetime-local":e?"date":o?"time":"text"}var iS=function(){function t(t){var i=this;this.isDirty=!1,this.buttonOptions=[],this.initialButtonGroupWidth=0,this.maxButtonWidth=function(){var t=0;return i.buttons.forEach(function(i){var e=i.getBBox();e.width>t&&(t=e.width)}),t},this.init(t)}return t.compose=function(i,e){iy(i,e,t)},t.prototype.clickButton=function(t,i){var e,o,n,r,s,a=this.chart,h=this.buttonOptions[t],l=a.xAxis[0],d=a.scroller&&a.scroller.getUnionExtremes()||l||{},c=h.type,p=h.dataGrouping,u=d.dataMin,f=d.dataMax,g=K(null==l?void 0:l.max)?Math.round(Math.min(l.max,null!=f?f:l.max)):void 0,x=h._range,v=!0;if(null!==u&&null!==f){if(this.setSelected(t),p&&(this.forcedDataGrouping=!0,tA().prototype.setDataGrouping.call(l||{chart:this.chart},p,!1),this.frozenStates=h.preserveDataGrouping),"month"===c||"year"===c)l?(r={range:h,max:g,chart:a,dataMin:u,dataMax:f},e=l.minFromRange.call(r),K(r.newMax)&&(g=r.newMax),v=!1):x=h;else if(x)K(g)&&(g=Math.min((e=Math.max(g-x,u))+x,f),v=!1);else if("ytd"===c)if(l)!l.hasData()||K(f)&&K(u)||(u=Number.MAX_VALUE,f=-Number.MAX_VALUE,a.series.forEach(function(t){var i=t.getColumn("x");i.length&&(u=Math.min(i[0],u),f=Math.max(i[i.length-1],f))}),i=!1),K(f)&&K(u)&&(e=n=(s=this.getYTDExtremes(f,u)).min,g=s.max);else{this.deferredYTDClick=t;return}else"all"===c&&l&&(a.navigator&&a.navigator.baseSeries[0]&&(a.navigator.baseSeries[0].xAxis.options.range=void 0),e=u,g=f);if(v&&h._offsetMin&&X(e)&&(e+=h._offsetMin),h._offsetMax&&X(g)&&(g+=h._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),l)(K(e)||K(g))&&(l.setExtremes(e,g,te(i,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:h}),a.setFixedRange(h._range));else{o=ts(a.options.xAxis||{})[0];var m=G(a,"afterCreateAxes",function(){var t=a.xAxis[0];t.range=t.options.range=x,t.min=t.options.min=n});G(a,"load",function(){var t=a.xAxis[0];a.setFixedRange(h._range),t.options.range=o.range,t.options.min=o.min,m()})}V(this,"afterBtnClick")}},t.prototype.setSelected=function(t){this.selected=this.options.selected=t},t.prototype.init=function(t){var i=this,e=t.options.rangeSelector,o=t.options.lang,n=e.buttons,r=e.selected,s=function(){var t=i.minInput,e=i.maxInput;t&&t.blur&&V(t,"blur"),e&&e.blur&&V(e,"blur")};i.chart=t,i.options=e,i.buttons=[],i.buttonOptions=n.map(function(t){return t.type&&o.rangeSelector&&(null!=t.text||(t.text=o.rangeSelector[""+t.type+"Text"]),null!=t.title||(t.title=o.rangeSelector[""+t.type+"Title"])),t.text=iO(t.text,{count:t.count||1}),t.title=iO(t.title,{count:t.count||1}),t}),this.eventsToUnbind=[],this.eventsToUnbind.push(G(t.container,"mousedown",s)),this.eventsToUnbind.push(G(t,"resize",s)),n.forEach(i.computeButtonRange),void 0!==r&&n[r]&&this.clickButton(r,!1),this.eventsToUnbind.push(G(t,"load",function(){t.xAxis&&t.xAxis[0]&&G(t.xAxis[0],"setExtremes",function(e){K(this.max)&&K(this.min)&&this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==e.trigger&&"updatedData"!==e.trigger&&i.forcedDataGrouping&&!i.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()},t.prototype.updateButtonStates=function(){var t=this,i=this.chart,e=this.dropdown,o=this.dropdownLabel,n=i.xAxis[0],r=Math.round(n.max-n.min),s=!n.hasVisibleSeries,a=24*36e5,h=i.scroller&&i.scroller.getUnionExtremes()||n,l=h.dataMin,d=h.dataMax,c=t.getYTDExtremes(d,l),p=c.min,u=c.max,f=t.selected,g=t.options.allButtonsEnabled,x=Array(t.buttonOptions.length).fill(0),v=K(f),m=t.buttons,y=!1,b=null;t.buttonOptions.forEach(function(i,e){var o,h=i._range,c=i.type,m=i.count||1,M=i._offsetMax-i._offsetMin,k=e===f,w=h>d-l,A=h<n.minRange,O=!1,P=h===r;if(k&&w&&(y=!0),n.isOrdinal&&(null==(o=n.ordinal)?void 0:o.positions)&&h&&r<h){var S=n.ordinal.positions;S[S.length-1]-S[0]>h&&(P=!0)}else("month"===c||"year"===c)&&r+36e5>=({month:28,year:365})[c]*a*m-M&&r-36e5<=({month:31,year:366})[c]*a*m+M?P=!0:"ytd"===c?(P=u-p+M===r,O=!k):"all"===c&&(P=n.max-n.min>=d-l);var B=!g&&!(y&&"all"===c)&&(w||A||s),E=y&&"all"===c||!O&&P||k&&t.frozenStates;B?x[e]=3:E&&(!v||e===f)&&(b=e)}),null!==b?(x[b]=2,t.setSelected(b),this.dropdown&&(this.dropdown.selectedIndex=b+1)):(t.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),o&&(o.setState(0),o.attr({text:(iA.lang.rangeSelectorZoom||"")+" ▾"})));for(var M=0;M<x.length;M++){var k=x[M],w=m[M];if(w.state!==k&&(w.setState(k),e)){e.options[M+1].disabled=3===k,2===k&&(o&&(o.setState(2),o.attr({text:t.buttonOptions[M].text+" ▾"})),e.selectedIndex=M+1);var A=o.getBBox();F(e,{width:""+A.width+"px",height:""+A.height+"px"})}}},t.prototype.computeButtonRange=function(t){var i=t.type,e=t.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[i]?t._range=o[i]*e:("month"===i||"year"===i)&&(t._range=24*({month:30,year:365})[i]*36e5*e),t._offsetMin=te(t.offsetMin,0),t._offsetMax=te(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},t.prototype.getInputValue=function(t){var i="min"===t?this.minInput:this.maxInput,e=this.chart.options.rangeSelector,o=this.chart.time;return i?("text"===i.type&&e.inputDateParser||this.defaultInputDateParser)(i.value,"UTC"===o.timezone,o):0},t.prototype.setInputValue=function(t,i){var e=this.options,o=this.chart.time,n="min"===t?this.minInput:this.maxInput,r="min"===t?this.minDateBox:this.maxDateBox;if(n){n.setAttribute("type",iP(e.inputDateFormat||"%e %b %Y"));var s=n.getAttribute("data-hc-time"),a=X(s)?Number(s):void 0;if(X(i)){var h=a;X(h)&&n.setAttribute("data-hc-time-previous",h),n.setAttribute("data-hc-time",i),a=i}n.value=o.dateFormat(this.inputTypeFormats[n.type]||e.inputEditDateFormat,a),r&&r.attr({text:o.dateFormat(e.inputDateFormat,a)})}},t.prototype.setInputExtremes=function(t,i,e){var o="min"===t?this.minInput:this.maxInput;if(o){var n=this.inputTypeFormats[o.type],r=this.chart.time;if(n){var s=r.dateFormat(n,i);o.min!==s&&(o.min=s);var a=r.dateFormat(n,e);o.max!==a&&(o.max=a)}}},t.prototype.showInput=function(t){var i="min"===t?this.minDateBox:this.maxDateBox,e="min"===t?this.minInput:this.maxInput;if(e&&i&&this.inputGroup){var o="text"===e.type,n=this.inputGroup,r=n.translateX,s=void 0===r?0:r,a=n.translateY,h=void 0===a?0:a,l=i.x,d=void 0===l?0:l,c=i.width,p=void 0===c?0:c,u=i.height,f=void 0===u?0:u,g=this.options.inputBoxWidth;F(e,{width:o?p+(g?-2:20)+"px":"auto",height:f-2+"px",border:"2px solid silver"}),o&&g?F(e,{left:s+d+"px",top:h+"px"}):F(e,{left:Math.min(Math.round(d+s-(e.offsetWidth-p)/2),this.chart.chartWidth-e.offsetWidth)+"px",top:h-(e.offsetHeight-f)/2+"px"})}},t.prototype.hideInput=function(t){var i="min"===t?this.minInput:this.maxInput;i&&F(i,{top:"-9999em",border:0,width:"1px",height:"1px"})},t.prototype.defaultInputDateParser=function(t,i,e){return(null==e?void 0:e.parse(t))||0},t.prototype.drawInput=function(t){var i=this.chart,e=this.div,o=this.inputGroup,n=this,r=i.renderer.style||{},s=i.renderer,a=i.options.rangeSelector,h=iA.lang,l="min"===t;function d(t){var e,o=n.maxInput,r=n.minInput,s=i.xAxis[0],a=(null==(e=i.scroller)?void 0:e.getUnionExtremes())||s,h=a.dataMin,d=a.dataMax,c=i.xAxis[0].getExtremes()[t],p=n.getInputValue(t);K(p)&&p!==c&&(l&&o&&K(h)?p>Number(o.getAttribute("data-hc-time"))?p=void 0:p<h&&(p=h):r&&K(d)&&(p<Number(r.getAttribute("data-hc-time"))?p=void 0:p>d&&(p=d)),void 0!==p&&s.setExtremes(l?p:s.min,l?s.max:p,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=h[l?"rangeSelectorFrom":"rangeSelectorTo"]||"",p=s.label(c,0).addClass("highcharts-range-label").attr({padding:2*!!c,height:c?a.inputBoxHeight:0}).add(o),u=s.label("",0).addClass("highcharts-range-input").attr({padding:2,width:a.inputBoxWidth,height:a.inputBoxHeight,"text-align":"center"}).on("click",function(){n.showInput(t),n[t+"Input"].focus()});i.styledMode||u.attr({stroke:a.inputBoxBorderColor,"stroke-width":1}),u.add(o);var f=N("input",{name:t,className:"highcharts-range-selector"},void 0,e);f.setAttribute("type",iP(a.inputDateFormat||"%e %b %Y")),i.styledMode||(p.css(tt(r,a.labelStyle)),u.css(tt({color:"#333333"},r,a.inputStyle)),F(f,j({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:r.fontSize,fontFamily:r.fontFamily,top:"-9999em"},a.inputStyle))),f.onfocus=function(){n.showInput(t)},f.onblur=function(){f===E().doc.activeElement&&d(t),n.hideInput(t),n.setInputValue(t),f.blur()};var g=!1;return f.onchange=function(){g||(d(t),n.hideInput(t),f.blur())},f.onkeypress=function(i){13===i.keyCode&&d(t)},f.onkeydown=function(i){g=!0,("ArrowUp"===i.key||"ArrowDown"===i.key||"Tab"===i.key)&&d(t)},f.onkeyup=function(){g=!1},{dateBox:u,input:f,label:p}},t.prototype.getPosition=function(){var t=this.chart,i=t.options.rangeSelector,e="top"===i.verticalAlign?t.plotTop-t.axisOffset[0]:0;return{buttonTop:e+i.buttonPosition.y,inputTop:e+i.inputPosition.y-10}},t.prototype.getYTDExtremes=function(t,i){var e=this.chart.time,o=e.toParts(t)[0];return{max:t,min:Math.max(i,e.makeTime(o,0))}},t.prototype.createElements=function(){var t,i=this.chart,e=i.renderer,o=i.container,n=i.options,r=n.rangeSelector,s=r.inputEnabled,a=te(null==(t=n.chart.style)?void 0:t.zIndex,0)+1;!1!==r.enabled&&(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=N("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),o.parentNode&&o.parentNode.insertBefore(this.div,o),s&&this.createInputs())},t.prototype.createInputs=function(){this.inputGroup=this.chart.renderer.g("input-group").add(this.group);var t=this.drawInput("min");this.minDateBox=t.dateBox,this.minLabel=t.label,this.minInput=t.input;var i=this.drawInput("max");this.maxDateBox=i.dateBox,this.maxLabel=i.label,this.maxInput=i.input},t.prototype.render=function(t,i){if(!1!==this.options.enabled){var e,o,n=this.chart,r=n.options.rangeSelector;if(r.inputEnabled){this.inputGroup||this.createInputs(),this.setInputValue("min",t),this.setInputValue("max",i),this.chart.styledMode||(null==(e=this.maxLabel)||e.css(r.labelStyle),null==(o=this.minLabel)||o.css(r.labelStyle));var s=n.scroller&&n.scroller.getUnionExtremes()||n.xAxis[0]||{};if(X(s.dataMin)&&X(s.dataMax)){var a=n.xAxis[0].minRange||0;this.setInputExtremes("min",s.dataMin,Math.min(s.dataMax,this.getInputValue("max"))-a),this.setInputExtremes("max",Math.max(s.dataMin,this.getInputValue("min"))+a,s.dataMax)}if(this.inputGroup){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(t){if(t){var i=t.getBBox().width;i&&(t.attr({x:h}),h+=i+r.inputSpacing)}})}}else this.inputGroup&&(this.inputGroup.destroy(),delete this.inputGroup);!this.chart.styledMode&&this.zoomText&&this.zoomText.css(r.labelStyle),this.alignElements(),this.updateButtonStates()}},t.prototype.renderButtons=function(){var t,i,e=this,o=this.chart,n=this.options,r=iA.lang,s=o.renderer,a=tt(n.buttonTheme),h=a&&a.states;delete a.width,delete a.states,this.buttonGroup=s.g("range-selector-buttons").add(this.group);var l=this.dropdown=N("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),d=null==(t=o.userOptions.rangeSelector)?void 0:t.buttonTheme;this.dropdownLabel=s.button("",0,0,function(){},tt(a,{"stroke-width":te(a["stroke-width"],0),width:"auto",paddingLeft:te(n.buttonTheme.paddingLeft,null==d?void 0:d.padding,8),paddingRight:te(n.buttonTheme.paddingRight,null==d?void 0:d.padding,8)}),h&&h.hover,h&&h.select,h&&h.disabled).hide().add(this.group),G(l,"touchstart",function(){l.style.fontSize="16px"});var c=E().isMS?"mouseover":"mouseenter",p=E().isMS?"mouseout":"mouseleave";G(l,c,function(){V(e.dropdownLabel.element,c)}),G(l,p,function(){V(e.dropdownLabel.element,p)}),G(l,"change",function(){V(e.buttons[l.selectedIndex-1].element,"click")}),this.zoomText=s.label(r.rangeSelectorZoom||"",0).attr({padding:n.buttonTheme.padding,height:n.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(n.labelStyle),null!=(i=n.buttonTheme)["stroke-width"]||(i["stroke-width"]=0)),N("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,l),this.createButtons()},t.prototype.createButtons=function(){var t=this,i=tt(this.options.buttonTheme),e=i&&i.states,o=i.width||28;delete i.width,delete i.states,this.buttonOptions.forEach(function(i,n){t.createButton(i,n,o,e)})},t.prototype.createButton=function(t,i,e,o){var n,r=this,s=this.dropdown,a=this.buttons,h=this.chart,l=this.options,d=h.renderer,c=tt(l.buttonTheme);null==s||s.add(N("option",{textContent:t.title||t.text}),i+2),a[i]=d.button(null!=(n=t.text)?n:"",0,0,function(e){var o,n=t.events&&t.events.click;n&&(o=n.call(t,e)),!1!==o&&r.clickButton(i),r.isActive=!0},c,o&&o.hover,o&&o.select,o&&o.disabled).attr({"text-align":"center",width:e}).add(this.buttonGroup),t.title&&a[i].attr("title",t.title)},t.prototype.alignElements=function(){var t,i=this,e=this.buttonGroup,o=this.buttons,n=this.chart,r=this.group,s=this.inputGroup,a=this.options,h=this.zoomText,l=n.options,d=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions,c=a.buttonPosition,p=a.inputPosition,u=a.verticalAlign,f=function(t,e,o){return d&&i.titleCollision(n)&&"top"===u&&o&&e.y-t.getBBox().height-12<(d.y||0)+(d.height||0)+n.spacing[0]?-40:0},g=n.plotLeft;if(r&&c&&p){var x=c.x-n.spacing[3];if(e){if(this.positionButtons(),!this.initialButtonGroupWidth){var v=0;h&&(v+=h.getBBox().width+5),o.forEach(function(t,i){v+=t.width||0,i!==o.length-1&&(v+=a.buttonSpacing)}),this.initialButtonGroupWidth=v}g-=n.spacing[3];var m=f(e,c,"right"===c.align||"right"===p.align);this.alignButtonGroup(m),(null==(t=this.buttonGroup)?void 0:t.translateY)&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),r.placed=e.placed=n.hasLoaded}var y=0;a.inputEnabled&&s&&(y=f(s,p,"right"===c.align||"right"===p.align),"left"===p.align?x=g:"right"===p.align&&(x=-Math.max(n.axisOffset[1],-y)),s.align({y:p.y,width:s.getBBox().width,align:p.align,x:p.x+x-2},!0,n.spacingBox),s.placed=n.hasLoaded),this.handleCollision(y),r.align({verticalAlign:u},!0,n.spacingBox);var b=r.alignAttr.translateY,M=r.getBBox().height+20,k=0;if("bottom"===u){var w=n.legend&&n.legend.options;k=b-(M=M+(w&&"bottom"===w.verticalAlign&&w.enabled&&!w.floating?n.legend.legendHeight+te(w.margin,10):0)-20)-(a.floating?0:a.y)-(n.titleOffset?n.titleOffset[2]:0)-10}"top"===u?(a.floating&&(k=0),n.titleOffset&&n.titleOffset[0]&&(k=n.titleOffset[0]),k+=n.margin[0]-n.spacing[0]||0):"middle"===u&&(p.y===c.y?k=b:(p.y||c.y)&&(p.y<0||c.y<0?k-=Math.min(p.y,c.y):k=b-M)),r.translate(a.x,a.y+Math.floor(k));var A=this.minInput,O=this.maxInput,P=this.dropdown;a.inputEnabled&&A&&O&&(A.style.marginTop=r.translateY+"px",O.style.marginTop=r.translateY+"px"),P&&(P.style.marginTop=r.translateY+"px")}},t.prototype.redrawElements=function(){var t,i,e,o,n,r,s,a=this.chart,h=this.options,l=h.inputBoxHeight,d=h.inputBoxBorderColor;if(null==(t=this.maxDateBox)||t.attr({height:l}),null==(i=this.minDateBox)||i.attr({height:l}),a.styledMode||(null==(e=this.maxDateBox)||e.attr({stroke:d}),null==(o=this.minDateBox)||o.attr({stroke:d})),this.isDirty){this.isDirty=!1,this.isCollapsed=void 0;var c=null!=(n=this.options.buttons)?n:[],p=Math.min(c.length,this.buttonOptions.length),u=this.dropdown,f=tt(this.options.buttonTheme),g=f&&f.states,x=f.width||28;if(c.length<this.buttonOptions.length)for(var v=this.buttonOptions.length-1;v>=c.length;v--){var m=this.buttons.pop();null==m||m.destroy(),null==(r=this.dropdown)||r.options.remove(v+1)}for(var v=p-1;v>=0;v--){var y=c[v];this.buttons[v].destroy(),null==u||u.options.remove(v+1),this.createButton(y,v,x,g),this.computeButtonRange(y)}if(c.length>this.buttonOptions.length)for(var v=this.buttonOptions.length;v<c.length;v++)this.createButton(c[v],v,x,g),this.computeButtonRange(c[v]);this.buttonOptions=null!=(s=this.options.buttons)?s:[],X(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}},t.prototype.alignButtonGroup=function(t,i){var e=this.chart,o=this.options,n=this.buttonGroup,r=this.dropdown,s=this.dropdownLabel,a=o.buttonPosition,h=e.plotLeft-e.spacing[3],l=a.x-e.spacing[3],d=e.plotLeft;"right"===a.align?(l+=t-h,this.hasVisibleDropdown&&(d=e.chartWidth+t-this.maxButtonWidth()-20)):"center"===a.align&&(l-=h/2,this.hasVisibleDropdown&&(d=e.chartWidth/2-this.maxButtonWidth())),r&&F(r,{left:d+"px",top:(null==n?void 0:n.translateY)+"px"}),null==s||s.attr({x:d}),n&&n.align({y:a.y,width:te(i,this.initialButtonGroupWidth),align:a.align,x:l},!0,e.spacingBox)},t.prototype.positionButtons=function(){var t=this.buttons,i=this.chart,e=this.options,o=this.zoomText,n=i.hasLoaded?"animate":"attr",r=e.buttonPosition,s=i.plotLeft,a=s;o&&"hidden"!==o.visibility&&(o[n]({x:te(s+r.x,s)}),a+=r.x+o.getBBox().width+5);for(var h=0,l=this.buttonOptions.length;h<l;++h)"hidden"!==t[h].visibility?(t[h][n]({x:a}),a+=(t[h].width||0)+e.buttonSpacing):t[h][n]({x:s})},t.prototype.handleCollision=function(t){var i=this.chart,e=this.buttonGroup,o=this.inputGroup,n=this.initialButtonGroupWidth,r=this.options,s=r.buttonPosition,a=r.dropdown,h=r.inputPosition,l=function(){o&&e&&o.attr({translateX:o.alignAttr.translateX+(i.axisOffset[1]>=-t?0:-t),translateY:o.alignAttr.translateY+e.getBBox().height+10})};o&&e?h.align===s.align?(l(),n>i.plotWidth+t-20?this.collapseButtons():this.expandButtons()):n-t+o.getBBox().width>i.plotWidth?"responsive"===a||"always"===a?this.collapseButtons():l():this.expandButtons():e&&"responsive"===a&&(n>i.plotWidth?this.collapseButtons():this.expandButtons()),e&&("always"===a&&this.collapseButtons(),"never"===a&&this.expandButtons()),this.alignButtonGroup(t)},t.prototype.collapseButtons=function(){var t=this.buttons,i=this.zoomText;!0!==this.isCollapsed&&(this.isCollapsed=!0,i.hide(),t.forEach(function(t){t.hide()}),this.showDropdown())},t.prototype.expandButtons=function(){var t=this.buttons,i=this.zoomText;!1!==this.isCollapsed&&(this.isCollapsed=!1,this.hideDropdown(),i.show(),t.forEach(function(t){t.show()}),this.positionButtons())},t.prototype.showDropdown=function(){var t=this.buttonGroup,i=this.dropdownLabel,e=this.dropdown;t&&e&&(i.show(),F(e,{visibility:"inherit"}),this.hasVisibleDropdown=!0)},t.prototype.hideDropdown=function(){var t=this.dropdown;t&&(this.dropdownLabel.hide(),F(t,{visibility:"hidden"}),this.hasVisibleDropdown=!1)},t.prototype.getHeight=function(){var t=this.options,i=this.group,e=t.inputPosition,o=t.buttonPosition,n=t.y,r=o.y,s=e.y,a=0;if(t.height)return t.height;this.alignElements(),a=i?i.getBBox(!0).height+13+n:0;var h=Math.min(s,r);return(s<0&&r<0||s>0&&r>0)&&(a+=Math.abs(h)),a},t.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},t.prototype.update=function(t,i){void 0===i&&(i=!0);var e=this.chart;if(tt(!0,this.options,t),this.options.selected&&this.options.selected>=this.options.buttons.length&&(this.options.selected=void 0,e.options.rangeSelector.selected=void 0),X(t.enabled))return this.destroy(),this.init(e);this.isDirty=!!t.buttons||!!t.buttonTheme,i&&this.render()},t.prototype.destroy=function(){var i=this,e=i.minInput,o=i.maxInput;i.eventsToUnbind&&(i.eventsToUnbind.forEach(function(t){return t()}),i.eventsToUnbind=void 0),Y(i.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),o&&(o.onfocus=o.onblur=o.onchange=null),ti(i,function(e,o){if(e&&"chart"!==o){if(e instanceof iM())e.destroy();else{var n;e instanceof window.HTMLElement&&(null==(n=null==e?void 0:e.parentElement)||n.removeChild(e))}delete i[o]}e!==t.prototype[o]&&(i[o]=null)},this),this.buttons=[]},t}();j(iS.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});function iB(t,i){for(var e=[],o=0;o<t.length;o++){var n=t[o][1],r=t[o][2];if("number"==typeof n&&"number"==typeof r)if(0===o)e.push(["M",n,r]);else if(o===t.length-1)e.push(["L",n,r]);else if(i){var s=t[o-1],a=t[o+1];if(s&&a){var h=s[1],l=s[2],d=a[1],c=a[2];if("number"==typeof h&&"number"==typeof d&&"number"==typeof l&&"number"==typeof c&&h!==d&&l!==c){var p=h<d?1:-1,u=l<c?1:-1;e.push(["L",n-p*Math.min(Math.abs(n-h),i),r-u*Math.min(Math.abs(r-l),i)],["C",n,r,n,r,n+p*Math.min(Math.abs(n-d),i),r+u*Math.min(Math.abs(r-c),i)])}}}else e.push(["L",n,r])}return e}var iE=Math.min,iT=Math.max,iC=Math.abs;function iD(t,i,e){for(var o,n,r=i-1e-7,s=e||0,a=t.length-1;s<=a;)if((n=r-t[o=a+s>>1].xMin)>0)s=o+1;else{if(!(n<0))return o;a=o-1}return s>0?s-1:0}function iI(t,i){for(var e,o=iD(t,i.x+1)+1;o--;)if(t[o].xMax>=i.x&&(e=t[o],i.x<=e.xMax&&i.x>=e.xMin&&i.y<=e.yMax&&i.y>=e.yMin))return o;return -1}function iL(t){var i=[];if(t.length){i.push(["M",t[0].start.x,t[0].start.y]);for(var e=0;e<t.length;++e)i.push(["L",t[e].end.x,t[e].end.y])}return i}function iz(t,i){t.yMin=iT(t.yMin,i.yMin),t.yMax=iE(t.yMax,i.yMax),t.xMin=iT(t.xMin,i.xMin),t.xMax=iE(t.xMax,i.xMax)}var iR=function(t,i,e){var o,n,r,s,a,h=[],l=e.chartObstacles,d=iI(l,t),c=iI(l,i),p=te(e.startDirectionX,iC(i.x-t.x)>iC(i.y-t.y))?"x":"y";function u(t,i,e,o,n){var r={x:t.x,y:t.y};return r[i]=e[o||i]+(n||0),r}function f(t,i,e){var o=iC(i[e]-t[e+"Min"])>iC(i[e]-t[e+"Max"]);return u(i,e,t,e+(o?"Max":"Min"),o?1:-1)}c>-1?(o={start:r=f(l[c],i,p),end:i},a=r):a=i,d>-1&&(r=f(n=l[d],t,p),h.push({start:t,end:r}),r[p]>=t[p]==r[p]>=a[p]&&(s=t[p="y"===p?"x":"y"]<i[p],h.push({start:r,end:u(r,p,n,p+(s?"Max":"Min"),s?1:-1)}),p="y"===p?"x":"y"));var g=h.length?h[h.length-1].end:t;r=u(g,p,a),h.push({start:g,end:r});var x=u(r,p="y"===p?"x":"y",a);return h.push({start:r,end:x}),h.push(o),{path:iB(iL(h),e.radius),obstacles:h}};function iG(t,i,e){var o,n,r,s,a,h,l,d=te(e.startDirectionX,iC(i.x-t.x)>iC(i.y-t.y)),c=d?"x":"y",p=[],u=e.obstacleMetrics,f=iE(t.x,i.x)-u.maxWidth-10,g=iT(t.x,i.x)+u.maxWidth+10,x=iE(t.y,i.y)-u.maxHeight-10,v=iT(t.y,i.y)+u.maxHeight+10,m=!1,y=e.chartObstacles,b=iD(y,g),M=iD(y,f);function k(t,i,e){var o,n,r,s,a=t.x<i.x?1:-1;t.x<i.x?(o=t,n=i):(o=i,n=t),t.y<i.y?(s=t,r=i):(s=i,r=t);for(var h=a<0?iE(iD(y,n.x),y.length-1):0;y[h]&&(a>0&&y[h].xMin<=n.x||a<0&&y[h].xMax>=o.x);){if(y[h].xMin<=n.x&&y[h].xMax>=o.x&&y[h].yMin<=r.y&&y[h].yMax>=s.y){if(e)return{y:t.y,x:t.x<i.x?y[h].xMin-1:y[h].xMax+1,obstacle:y[h]};return{x:t.x,y:t.y<i.y?y[h].yMin-1:y[h].yMax+1,obstacle:y[h]}}h+=a}return i}function w(t,i,e,o,n){var r=n.soft,s=n.hard,a=o?"x":"y",h={x:i.x,y:i.y},l={x:i.x,y:i.y},d=t[a+"Max"]>=r[a+"Max"],c=t[a+"Min"]<=r[a+"Min"],p=t[a+"Max"]>=s[a+"Max"],u=t[a+"Min"]<=s[a+"Min"],f=iC(t[a+"Min"]-i[a]),g=iC(t[a+"Max"]-i[a]),x=10>iC(f-g)?i[a]<e[a]:g<f;l[a]=t[a+"Min"],h[a]=t[a+"Max"];var v=k(i,l,o)[a]!==l[a],m=k(i,h,o)[a]!==h[a];return x=v?!m||x:!m&&x,x=c?!d||x:!d&&x,x=u?!p||x:!p&&x}for((b=iI(y=y.slice(M,b+1),i))>-1&&(o=y[b],n=i,r=iE(o.xMax-n.x,n.x-o.xMin)<iE(o.yMax-n.y,n.y-o.yMin),s=w(o,n,t,r,{soft:e.hardBounds,hard:e.hardBounds}),l=r?{y:n.y,x:o[s?"xMax":"xMin"]+(s?1:-1)}:{x:n.x,y:o[s?"yMax":"yMin"]+(s?1:-1)},p.push({end:i,start:l}),i=l);(b=iI(y,i))>-1;)h=i[c]-t[c]<0,(l={x:i.x,y:i.y})[c]=y[b][h?c+"Max":c+"Min"]+(h?1:-1),p.push({end:i,start:l}),i=l;return{path:iL(a=(a=function t(i,o,n){if(i.x===o.x&&i.y===o.y)return[];var r,s,a,h,l,d,c,p=n?"x":"y",u=e.obstacleOptions.margin,b={soft:{xMin:f,xMax:g,yMin:x,yMax:v},hard:e.hardBounds};return(l=iI(y,i))>-1?(h=w(l=y[l],i,o,n,b),iz(l,e.hardBounds),c=n?{y:i.y,x:l[h?"xMax":"xMin"]+(h?1:-1)}:{x:i.x,y:l[h?"yMax":"yMin"]+(h?1:-1)},(d=iI(y,c))>-1&&(iz(d=y[d],e.hardBounds),c[p]=h?iT(l[p+"Max"]-u+1,(d[p+"Min"]+l[p+"Max"])/2):iE(l[p+"Min"]+u-1,(d[p+"Max"]+l[p+"Min"])/2),i.x===c.x&&i.y===c.y?(m&&(c[p]=h?iT(l[p+"Max"],d[p+"Max"])+1:iE(l[p+"Min"],d[p+"Min"])-1),m=!m):m=!1),s=[{start:i,end:c}]):(r=k(i,{x:n?o.x:i.x,y:n?i.y:o.y},n),s=[{start:i,end:{x:r.x,y:r.y}}],r[n?"x":"y"]!==o[n?"x":"y"]&&(h=w(r.obstacle,r,o,!n,b),iz(r.obstacle,e.hardBounds),a={x:n?r.x:r.obstacle[h?"xMax":"xMin"]+(h?1:-1),y:n?r.obstacle[h?"yMax":"yMin"]+(h?1:-1):r.y},n=!n,s=s.concat(t({x:r.x,y:r.y},a,n)))),s=s.concat(t(s[s.length-1].end,o,!n))}(t,i,d)).concat(p.reverse())),obstacles:a}}iR.requiresObstacles=!0,iG.requiresObstacles=!0;var iW={connectors:{type:"straight",radius:0,lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}},iH=E().setOptions;function iN(t){var i=t.shapeArgs;if(i)return{xMin:i.x||0,xMax:(i.x||0)+(i.width||0),yMin:i.y||0,yMax:(i.y||0)+(i.height||0)};var e=t.graphic&&t.graphic.getBBox();return e?{xMin:t.plotX-e.width/2,xMax:t.plotX+e.width/2,yMin:t.plotY-e.height/2,yMax:t.plotY+e.height/2}:null}!function(t){function i(t){var i,e,o=iN(this);switch(t.align){case"right":i="xMax";break;case"left":i="xMin"}switch(t.verticalAlign){case"top":e="yMin";break;case"bottom":e="yMax"}return{x:i?o[i]:(o.xMin+o.xMax)/2,y:e?o[e]:(o.yMin+o.yMax)/2}}function e(t,i){var e;return!X(i)&&(e=iN(this))&&(i={x:(e.xMin+e.xMax)/2,y:(e.yMin+e.yMax)/2}),Math.atan2(i.y-t.y,t.x-i.x)}function o(t,i,e){for(var o=2*Math.PI,n=iN(this),r=n.xMax-n.xMin,s=n.yMax-n.yMin,a=Math.atan2(s,r),h=r/2,l=s/2,d=n.xMin+h,c=n.yMin+l,p={x:d,y:c},u=t,f=1,g=!1,x=1,v=1;u<-Math.PI;)u+=o;for(;u>Math.PI;)u-=o;return f=Math.tan(u),u>-a&&u<=a?(v=-1,g=!0):u>a&&u<=Math.PI-a?v=-1:u>Math.PI-a||u<=-(Math.PI-a)?(x=-1,g=!0):x=-1,g?(p.x+=x*h,p.y+=v*h*f):(p.x+=s/(2*f)*x,p.y+=v*l),e.x!==d&&(p.x=e.x),e.y!==c&&(p.y=e.y),{x:p.x+i*Math.cos(u),y:p.y-i*Math.sin(u)}}t.compose=function(t,n,r){var s=r.prototype;s.getPathfinderAnchorPoint||(t.prototype.callbacks.push(function(t){!1!==t.options.connectors.enabled&&((t.options.pathfinder||t.series.reduce(function(t,i){return i.options&&tt(!0,i.options.connectors=i.options.connectors||{},i.options.pathfinder),t||i.options&&i.options.pathfinder},!1))&&(tt(!0,t.options.connectors=t.options.connectors||{},t.options.pathfinder),(0,B.error)('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')),this.pathfinder=new n(this),this.pathfinder.update(!0))}),s.getMarkerVector=o,s.getPathfinderAnchorPoint=i,s.getRadiansToVector=e,iH(iW))}}(b||(b={}));var i_=b,iF=P(260),iX=P.n(iF),iY=Math.max,iU=Math.min,ij=function(){function t(t){this.init(t)}return t.compose=function(i,e){i_.compose(i,t,e)},t.prototype.init=function(t){this.chart=t,this.connections=[],G(t,"redraw",function(){this.pathfinder.update()})},t.prototype.update=function(t){var i=this.chart,e=this,o=e.connections;e.connections=[],i.series.forEach(function(t){t.visible&&!t.options.isInternal&&t.points.forEach(function(t){var o,n,r=t.options;r&&r.dependency&&(r.connect=r.dependency);var s=(null==(o=t.options)?void 0:o.connect)?ts(t.options.connect):[];t.visible&&!1!==t.isInside&&s.forEach(function(o){var r="string"==typeof o?o:o.to;r&&(n=i.get(r)),n instanceof iX()&&n.series.visible&&n.visible&&!1!==n.isInside&&e.connections.push(new tc(t,n,"string"==typeof o?{}:o))})})});for(var n=0,r=void 0,s=void 0,a=o.length,h=e.connections.length;n<a;++n){s=!1;var l=o[n];for(r=0;r<h;++r){var d=e.connections[r];if((l.options&&l.options.type)===(d.options&&d.options.type)&&l.fromPoint===d.fromPoint&&l.toPoint===d.toPoint){d.graphics=l.graphics,s=!0;break}}s||l.destroy()}delete this.chartObstacles,delete this.lineObstacles,e.renderConnections(t)},t.prototype.renderConnections=function(t){t?this.chart.series.forEach(function(t){var i=function(){var i=t.chart.pathfinder;(i&&i.connections||[]).forEach(function(i){i.fromPoint&&i.fromPoint.series===t&&i.render()}),t.pathfinderRemoveRenderEvent&&(t.pathfinderRemoveRenderEvent(),delete t.pathfinderRemoveRenderEvent)};!1===t.options.animation?i():t.pathfinderRemoveRenderEvent=G(t,"afterAnimate",i)}):this.connections.forEach(function(t){t.render()})},t.prototype.getChartObstacles=function(t){for(var i,e=this.chart.series,o=te(t.algorithmMargin,0),n=[],r=0,s=e.length;r<s;++r)if(e[r].visible&&!e[r].options.isInternal)for(var a=0,h=e[r].points.length,l=void 0,d=void 0;a<h;++a)(d=e[r].points[a]).visible&&(l=function(t){var i=t.shapeArgs;if(i)return{xMin:i.x||0,xMax:(i.x||0)+(i.width||0),yMin:i.y||0,yMax:(i.y||0)+(i.height||0)};var e=t.graphic&&t.graphic.getBBox();return e?{xMin:t.plotX-e.width/2,xMax:t.plotX+e.width/2,yMin:t.plotY-e.height/2,yMax:t.plotY+e.height/2}:null}(d))&&n.push({xMin:l.xMin-o,xMax:l.xMax+o,yMin:l.yMin-o,yMax:l.yMax+o});return n=n.sort(function(t,i){return t.xMin-i.xMin}),X(t.algorithmMargin)||(i=t.algorithmMargin=function(t){for(var i,e=t.length,o=[],n=0;n<e;++n)for(var r=n+1;r<e;++r)(i=function t(i,e,o){var n=te(o,10),r=i.yMax+n>e.yMin-n&&i.yMin-n<e.yMax+n,s=i.xMax+n>e.xMin-n&&i.xMin-n<e.xMax+n,a=r?i.xMin>e.xMax?i.xMin-e.xMax:e.xMin-i.xMax:1/0,h=s?i.yMin>e.yMax?i.yMin-e.yMax:e.yMin-i.yMax:1/0;return s&&r?n?t(i,e,Math.floor(n/2)):1/0:iU(a,h)}(t[n],t[r]))<80&&o.push(i);return o.push(80),iY(Math.floor(o.sort(function(t,i){return t-i})[Math.floor(o.length/10)]/2-1),1)}(n),n.forEach(function(t){t.xMin-=i,t.xMax+=i,t.yMin-=i,t.yMax+=i})),n},t.prototype.getObstacleMetrics=function(t){for(var i,e,o=0,n=0,r=t.length;r--;)i=t[r].xMax-t[r].xMin,e=t[r].yMax-t[r].yMin,o<i&&(o=i),n<e&&(n=e);return{maxHeight:n,maxWidth:o}},t.prototype.getAlgorithmStartDirection=function(t){var i="left"!==t.align&&"right"!==t.align,e="top"!==t.verticalAlign&&"bottom"!==t.verticalAlign;return i?!!e&&void 0:!!e||void 0},t}();ij.prototype.algorithms={fastAvoid:iG,straight:function(t,i){return{path:[["M",t.x,t.y],["L",i.x,i.y]],obstacles:[{start:t,end:i}]}},simpleConnect:iR};/**
 * @license Highcharts Gantt JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/pathfinder
 * @requires highcharts
 *
 * Pathfinder
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Øystein Moseng
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */var iV=E();function iq(){var t,i=this.chart.userOptions.chart;!this.horiz&&K(this.options.staticScale)&&(!(null==i?void 0:i.height)||(null==(t=i.scrollablePlotArea)?void 0:t.minHeight))&&(this.staticScale=this.options.staticScale)}function iZ(){var t,i;if("adjustHeight"!==this.redrawTrigger){for(var e=0,o=this.axes||[];e<o.length;e++)!function(e){var o=e.chart,n=e.options.staticScale;if(e.staticScale&&n&&X(e.min)&&X(e.max)){var r=(null!=(i=null==(t=e.brokenAxis)?void 0:t.unitLength)?i:e.max+e.tickInterval-e.min)*n,s=(r=Math.max(r,n))-o.plotHeight;!o.scrollablePixelsY&&Math.abs(s)>=1&&(o.plotHeight=r,o.redrawTrigger="adjustHeight",o.setSize(void 0,o.chartHeight+s,!!o.initiatedScale&&void 0)),e.series.forEach(function(t){var i=t.sharedClipKey&&o.sharedClips[t.sharedClipKey];i&&i.attr(o.inverted?{width:o.plotHeight}:{height:o.plotHeight})})}}(o[e]);this.initiatedScale=!0}this.redrawTrigger=void 0}iV.Pathfinder=iV.Pathfinder||ij,L(iV.SVGRenderer),iV.Pathfinder.compose(iV.Chart,iV.Point);var iK=function(t,i){var e=i.prototype;e.adjustHeight||(G(t,"afterSetOptions",iq),e.adjustHeight=iZ,G(i,"render",e.adjustHeight))},i$=E();iK(i$.Axis,i$.Chart);var iJ={colorByPoint:!0,dataLabels:{formatter:function(){var t=this.partialFill;if(Q(t)&&(t=t.amount),K(t)&&t>0)return H(100*t)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{ucfirst point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0},iQ=(p=function(t,i){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}p(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),i0=function(t){function i(i,e){var o=t.call(this,i,e)||this;return o.y||(o.y=0),o}return iQ(i,t),i.getColorByCategory=function(t,i){var e=t.options.colors||t.chart.options.colors,o=e?e.length:t.chart.options.chart.colorCount,n=i.y%o,r=null==e?void 0:e[n];return{colorIndex:n,color:r}},i.prototype.resolveColor=function(){var t=this.series;if(t.options.colorByPoint&&!this.options.color){var e=i.getColorByCategory(t,this);t.chart.styledMode||(this.color=e.color),(void 0===this.options.colorIndex||null===this.options.colorIndex)&&(this.colorIndex=e.colorIndex)}else this.color=this.options.color||t.color},i.prototype.applyOptions=function(i,e){var o;return t.prototype.applyOptions.call(this,i,e),this.x2=this.series.chart.time.parse(this.x2),this.isNull=!(null==(o=this.isValid)?void 0:o.call(this)),this.formatPrefix=this.isNull?"null":"point",this},i.prototype.setState=function(){t.prototype.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())},i.prototype.isValid=function(){return"number"==typeof this.x&&"number"==typeof this.x2},i}(tF().seriesTypes.column.prototype.pointClass);j(i0.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});var i1=(u=function(t,i){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}u(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),i2=E().composed,i3=E().noop,i5=tN().parse,i6=tF().seriesTypes.column;function i4(){var t,i;if(this.isXAxis){t=te(this.dataMax,-Number.MAX_VALUE);for(var e=0,o=this.series;e<o.length;e++){var n=o[e],r=n.dataTable.getColumn("x2",!0)||n.dataTable.getColumn("end",!0);if(r)for(var s=0;s<r.length;s++){var a=r[s];K(a)&&a>t&&(t=a,i=!0)}}i&&(this.dataMax=t)}}var i9=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return i1(i,t),i.compose=function(t){to(i2,"Series.XRange")&&G(t,"afterGetSeriesExtremes",i4)},i.prototype.init=function(){t.prototype.init.apply(this,arguments),this.options.stacking=void 0},i.prototype.getColumnMetrics=function(){var i=this,e=function(){for(var t=0,e=i.chart.series;t<e.length;t++){var o=e[t],n=o.xAxis;o.xAxis=o.yAxis,o.yAxis=n}};e();var o=t.prototype.getColumnMetrics.call(this);return e(),o},i.prototype.cropData=function(i,e,o){var n=i.getColumn("x")||[],r=i.getColumn("x2");i.setColumn("x",r,void 0,{silent:!0});var s=t.prototype.cropData.call(this,i,e,o);return i.setColumn("x",n.slice(s.start,s.end),void 0,{silent:!0}),s},i.prototype.findPointIndex=function(t){var i,e=this.cropStart,o=this.points,n=t.id;if(n){var r=q(o,function(t){return t.id===n});i=r?r.index:void 0}if(void 0===i){var r=q(o,function(i){return i.x===t.x&&i.x2===t.x2&&!i.touched});i=r?r.index:void 0}return this.cropped&&K(i)&&K(e)&&i>=e&&(i-=e),i},i.prototype.alignDataLabel=function(i){var e,o,n=i.plotX;i.plotX=te(null==(e=i.dlBox)?void 0:e.centerX,i.plotX),i.dataLabel&&(null==(o=i.shapeArgs)?void 0:o.width)&&i.dataLabel.css({width:""+i.shapeArgs.width+"px"}),t.prototype.alignDataLabel.apply(this,arguments),i.plotX=n},i.prototype.translatePoint=function(t){var i,e,o,n,r,s,a,h,l,d,c=this.xAxis,p=this.yAxis,u=this.columnMetrics,f=this.options,g=f.minPointLength||0,x=((null==(i=t.shapeArgs)?void 0:i.width)||0)/2,v=this.pointXOffset=u.offset,m=te(t.x2,t.x+(t.len||0)),y=f.borderRadius,b=this.chart.plotTop,M=this.chart.plotLeft,k=t.plotX,w=c.translate(m,0,0,0,1),A=Math.abs(w-k),O=this.chart.inverted,P=te(f.borderWidth,1),S=u.offset,B=Math.round(u.width);g&&((r=g-A)<0&&(r=0),k-=r/2,w+=r/2),k=Math.max(k,-10),w=W(w,-10,c.len+10),X(t.options.pointWidth)&&(S-=(Math.ceil(t.options.pointWidth)-B)/2,B=Math.ceil(t.options.pointWidth)),f.pointPlacement&&K(t.plotY)&&p.categories&&(t.plotY=p.translate(t.y,0,1,0,1,f.pointPlacement));var E=_(Math.min(k,w),P),T=_(Math.max(k,w),P)-E,C=Math.min(tn("object"==typeof y?y.radius:y||0,B),Math.min(T,B)/2),D={x:E,y:_((t.plotY||0)+S,P),width:T,height:B,r:C};t.shapeArgs=D,O?t.tooltipPos[1]+=v+x:t.tooltipPos[0]-=x+v-D.width/2,h=(a=D.x)+D.width,a<0||h>c.len?(a=W(a,0,c.len),l=(h=W(h,0,c.len))-a,t.dlBox=tt(D,{x:a,width:h-a,centerX:l?l/2:null})):t.dlBox=null;var I=t.tooltipPos,L=+!!O,z=+!O,R=this.columnMetrics?this.columnMetrics.offset:-u.width/2;O?I[L]+=D.width/2:I[L]=W(I[L]+(c.reversed?-1:0)*D.width,c.left-M,c.left+c.len-M-1),I[z]=W(I[z]+(O?-1:1)*R,p.top-b,p.top+p.len-b-1),(s=null!=(e=t.partialFill)?e:0)&&(Q(s)&&(s=s.amount||0),K(s)||(s=0),t.partShapeArgs=tt(D),d=Math.max(Math.round(A*s+t.plotX-k),0),t.clipRectArgs={x:c.reversed?D.x+A-d:D.x,y:D.y,width:d,height:D.height}),t.key=t.category||t.name,t.yCategory=null==(o=p.categories)?void 0:o[null!=(n=t.y)?n:-1]},i.prototype.translate=function(){t.prototype.translate.apply(this,arguments);for(var i=0,e=this.points;i<e.length;i++){var o=e[i];this.translatePoint(o)}},i.prototype.drawPoint=function(t,i){var e=this.options,o=this.chart.renderer,n=t.shapeType,r=t.shapeArgs,s=t.partShapeArgs,a=t.clipRectArgs,h=t.state,l=e.states[h||"normal"]||{},d=void 0===h?"attr":i,c=this.pointAttribs(t,h),p=te(this.chart.options.chart.animation,l.animation),u=t.graphic,f=t.partialFill;if(t.isNull||!1===t.visible)u&&(t.graphic=u.destroy());else if(u?u.rect[i](r):(t.graphic=u=o.g("point").addClass(t.getClassName()).add(t.group||this.group),u.rect=o[n](tt(r)).addClass(t.getClassName()).addClass("highcharts-partfill-original").add(u)),s&&(u.partRect?(u.partRect[i](tt(s)),u.partialClipRect[i](tt(a))):(u.partialClipRect=o.clipRect(a.x,a.y,a.width,a.height),u.partRect=o[n](s).addClass("highcharts-partfill-overlay").add(u).clip(u.partialClipRect))),!this.chart.styledMode&&(u.rect[i](c,p).shadow(e.shadow),s)){Q(f)||(f={}),Q(e.partialFill)&&(f=tt(e.partialFill,f));var g=f.fill||i5(c.fill).brighten(-.3).get()||i5(t.color||this.color).brighten(-.3).get();c.fill=g,u.partRect[d](c,p).shadow(e.shadow)}},i.prototype.drawPoints=function(){for(var t=this.getAnimationVerb(),i=0,e=this.points;i<e.length;i++){var o=e[i];this.drawPoint(o,t)}},i.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"},i.prototype.isPointInside=function(i){var e=i.shapeArgs,o=i.plotX,n=i.plotY;return e?void 0!==o&&void 0!==n&&n>=0&&n<=this.yAxis.len&&(e.x||0)+(e.width||0)>=0&&o<=this.xAxis.len:t.prototype.isPointInside.apply(this,arguments)},i.defaultOptions=tt(i6.defaultOptions,iJ),i}(i6);j(i9.prototype,{pointClass:i0,pointArrayMap:["x2","y"],getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:tF().series.prototype.animate,autoIncrement:i3,buildKDTree:i3}),tF().registerSeriesType("xrange",i9);/**
 * @license Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/xrange
 * @requires highcharts
 *
 * X-range series
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi, Lars A. V. Cabrera
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */var i8=E();i9.compose(i8.Axis);var i7=(f=function(t,i){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}f(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),et=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return i7(i,t),i.setGanttPointAliases=function(t,i){var e,o,n;t.x=t.start=i.time.parse(null!=(e=t.start)?e:t.x),t.x2=t.end=i.time.parse(null!=(o=t.end)?o:t.x2),t.partialFill=t.completed=null!=(n=t.completed)?n:t.partialFill},i.prototype.applyOptions=function(e,o){var n,r=t.prototype.applyOptions.call(this,e,o);return i.setGanttPointAliases(r,r.series.chart),this.isNull=!(null==(n=this.isValid)?void 0:n.call(this)),this.formatPrefix=this.isNull?"null":"point",r},i.prototype.isValid=function(){return("number"==typeof this.start||"number"==typeof this.x)&&("number"==typeof this.end||"number"==typeof this.x2||this.milestone)},i}(tF().seriesTypes.xrange.prototype.pointClass),ei={grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var t=this.series,i=t.xAxis,e=t.tooltipOptions.dateTimeLabelFormats,o=i.options.startOfWeek,n=t.tooltipOptions,r=this.options.milestone,s=n.xDateFormat,a="<b>"+(this.name||this.yCategory)+"</b>";if(n.pointFormat)return this.tooltipFormatter(n.pointFormat);!s&&K(this.start)&&(s=t.chart.time.getDateFormat(i.closestPointRange,this.start,o,e||{}));var h=t.chart.time.dateFormat(s,this.start),l=t.chart.time.dateFormat(s,this.end);return a+="<br/>",r?a+=h+"<br/>":a+="Start: "+h+"<br/>"+("End: "+l)+"<br/>",a}},connectors:{type:"simpleConnect",animation:{reversed:!0},radius:0,startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,align:"left"},endMarker:{enabled:!1,align:"right"}}},ee=P(184),eo=P.n(ee);!function(t){function i(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function e(){var t;Object.keys((null==(t=this.options.breaks)?void 0:t[0])||{}).length&&(this.options.ordinal=!1)}function o(){var t=this.brokenAxis;if(null==t?void 0:t.hasBreaks){for(var i=this.tickPositions,e=this.tickPositions.info,o=[],n=0;n<i.length;n++)t.isInAnyBreak(i[n])||o.push(i[n]);this.tickPositions=o,this.tickPositions.info=e}}function n(){this.brokenAxis||(this.brokenAxis=new l(this))}function r(){var t,i,e=this.isDirty,o=this.options.connectNulls,n=this.points,r=this.xAxis,s=this.yAxis;if(e)for(var a=n.length;a--;){var h=n[a],l=(null!==h.y||!1!==o)&&((null==(t=null==r?void 0:r.brokenAxis)?void 0:t.isInAnyBreak(h.x,!0))||(null==(i=null==s?void 0:s.brokenAxis)?void 0:i.isInAnyBreak(h.y,!0)));h.visible=!l&&!1!==h.options.visible}}function s(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,te(this.pointArrayMap,["y"]))}function a(t,i){var e,o,n,r,s=this,a=s.points;if(null==(e=null==t?void 0:t.brokenAxis)?void 0:e.hasBreaks){var h=t.brokenAxis;i.forEach(function(i){o=(null==h?void 0:h.breakArray)||[],n=t.isXAxis?t.min:te(s.options.threshold,t.min),a.forEach(function(e){var s;r=null!=(s=e["stack"+i.toUpperCase()])?s:e[i],o.forEach(function(i){if(K(n)&&K(r)){var o="";n<i.from&&r>i.to||n>i.from&&r<i.from?o="pointBreak":(n<i.from&&r>i.from&&r<i.to||n>i.from&&r>i.to&&r<i.from)&&(o="pointInBreak"),o&&V(t,o,{point:e,brk:i})}})})})}}function h(){var t,i=this.currentDataGrouping,e=null==i?void 0:i.gapSize,o=this.points.slice(),n=this.yAxis,r=this.options.gapSize,s=o.length-1;if(r&&s>0){"value"!==this.options.gapUnit&&(r*=this.basePointRange),e&&e>r&&e>=this.basePointRange&&(r=e);for(var a=void 0,h=void 0;s--;)if(h&&!1!==h.visible||(h=o[s+1]),a=o[s],!1!==h.visible&&!1!==a.visible){if(h.x-a.x>r){var l=(a.x+h.x)/2;o.splice(s+1,0,{isNull:!0,x:l}),n.stacking&&this.options.stacking&&((n.stacking.stacks[this.stackKey][l]=new(eo())(n,n.options.stackLabels,!1,l,null!=(t=this.stack)?t:"")).total=0)}h=a}}return this.getGraphPath(o)}t.compose=function(t,l){if(!t.keepProps.includes("brokenAxis")){t.keepProps.push("brokenAxis"),G(t,"init",n),G(t,"afterInit",i),G(t,"afterSetTickPositions",o),G(t,"afterSetOptions",e);var d=l.prototype;d.drawBreaks=a,d.gappedPath=h,G(l,"afterGeneratePoints",r),G(l,"afterRender",s)}return t};var l=function(){function t(t){this.axis=t}return t.isInBreak=function(t,i){var e=t.repeat||1/0,o=t.from,n=t.to-t.from,r=i>=o?(i-o)%e:e-(o-i)%e;return t.inclusive?r<=n:r<n&&0!==r},t.lin2Val=function(i){var e=this.min||0,o=this.brokenAxis,n=null==o?void 0:o.breakArray;if(!(null==n?void 0:n.length)||!K(i))return i;var r=i;if(i>e)for(var s=0;s<n.length;s++){var a=n[s];if(a.from>r)break;a.to<=r&&a.to>e?r+=a.len:t.isInBreak(a,r)&&(r+=a.len)}else if(i<e)for(var h=0;h<n.length;h++){var a=n[h];if(a.from>e)break;a.from>=r&&a.from<e?r-=a.len:t.isInBreak(a,r)&&(r-=a.len)}return r},t.val2Lin=function(i){var e=this.min||0,o=this.brokenAxis,n=null==o?void 0:o.breakArray;if(!(null==n?void 0:n.length)||!K(i))return i;var r=i;if(i>e)for(var s=0;s<n.length;s++){var a=n[s];if(a.to<=i&&a.to>e)r-=a.len;else if(a.from>i)break;else if(t.isInBreak(a,i)){r-=i-a.from;break}}else if(i<e)for(var h=0;h<n.length;h++){var a=n[h];if(a.from>=i&&a.from<e)r+=a.len;else if(a.from>e)break;else if(t.isInBreak(a,i)){r+=a.to-i;break}}return r},t.prototype.findBreakAt=function(t,i){return q(i,function(i){return i.from<t&&t<i.to})},t.prototype.isInAnyBreak=function(i,e){var o,n,r,s=this.axis,a=s.options.breaks||[],h=a.length;if(h&&K(i)){for(;h--;)t.isInBreak(a[h],i)&&(o=!0,n||(n=te(a[h].showPoints,!s.isXAxis)));r=o&&e?o&&!n:o}return r},t.prototype.setBreaks=function(i,e){var o,n=this,r=n.axis,s=r.chart.time,a=J(i)&&!!Object.keys((null==i?void 0:i[0])||{}).length;r.isDirty=(null!=(o=n.hasBreaks)&&o)!==a,n.hasBreaks=a,null==i||i.forEach(function(t){t.from=s.parse(t.from)||0,t.to=s.parse(t.to)||0}),i!==r.options.breaks&&(r.options.breaks=r.userOptions.breaks=i),r.forceRedraw=!0,r.series.forEach(function(t){t.isDirty=!0}),a||r.val2lin!==t.val2Lin||(delete r.val2lin,delete r.lin2val),a&&(r.userOptions.ordinal=!1,r.lin2val=t.lin2Val,r.val2lin=t.val2Lin,r.setExtremes=function(t,i,e,o,s){var a;if(n.hasBreaks&&!(null==(a=r.treeGrid)?void 0:a.tree)){for(var h=this.brokenAxis.breakArray||[],l=void 0;l=n.findBreakAt(t,h);)t=l.to;for(;l=n.findBreakAt(i,h);)i=l.from;i<t&&(i=t)}r.constructor.prototype.setExtremes.call(this,t,i,e,o,s)},r.setAxisTranslation=function(){if(r.constructor.prototype.setAxisTranslation.call(this),n.unitLength=void 0,n.hasBreaks){var i,e,o,s,a,h,l,d,c,p,u=r.options.breaks||[],f=[],g=[],x=null!=(i=r.pointRangePadding)?i:0,v=0,m=null!=(e=r.userMin)?e:r.min,y=null!=(o=r.userMax)?o:r.max,b=null!=(s=r.dataMin)?s:m,M=null!=(a=r.dataMax)?a:y;K(r.threshold)&&(b=Math.min(null!=b?b:r.threshold,r.threshold),M=Math.max(null!=M?M:r.threshold,r.threshold)),(null==(h=r.treeGrid)?void 0:h.tree)||u.forEach(function(i){d=i.repeat||1/0,K(m)&&K(y)&&(t.isInBreak(i,m)&&(m+=i.to%d-m%d),t.isInBreak(i,y)&&(y-=y%d-i.from%d))}),K(b)&&K(M)&&u.forEach(function(t){for(c=t.from,d=t.repeat||1/0;c-d>b;)c-=d;for(;c<b;)c+=d;for(p=c;p<M;p+=d)f.push({value:p,move:"in"}),f.push({value:p+t.to-t.from,move:"out",size:t.breakSize})}),f.sort(function(t,i){return t.value===i.value?("in"!==t.move)-("in"!==i.move):t.value-i.value}),l=0,c=b,f.forEach(function(t){1===(l+="in"===t.move?1:-1)&&"in"===t.move&&(c=t.value),0===l&&K(c)&&(g.push({from:c,to:t.value,len:t.value-c-(t.size||0)}),K(m)&&K(y)&&c<y&&t.value>m&&(v+=t.value-c-(t.size||0)))}),n.breakArray=g,K(m)&&K(y)&&K(r.min)&&(n.unitLength=y-m-v+x,V(r,"afterBreaks"),r.staticScale?r.transA=r.staticScale:n.unitLength&&(r.transA*=(y-r.min+x)/n.unitLength),x&&(r.minPixelPadding=r.transA*(r.minPointOffset||0)),r.min=m,r.max=y)}}),te(e,!0)&&r.chart.redraw()},t}();t.Additions=l}(M||(M={}));var en=M,er=E().dateFormats;(g=k||(k={}))[g.top=0]="top",g[g.right=1]="right",g[g.bottom=2]="bottom",g[g.left=3]="left";function es(t,i){var e={width:0,height:0};if(i.forEach(function(i){var o,n=t[i],r=0,s=0;Q(n,!0)&&(r=(o=Q(n.label,!0)?n.label:{}).getBBox?o.getBBox().height:0,o.textStr&&!K(o.textPxLength)&&(o.textPxLength=o.getBBox().width),s=K(o.textPxLength)?Math.round(o.textPxLength):0,o.textStr&&(s=Math.round(o.getBBox().width)),e.height=Math.max(r,e.height),e.width=Math.max(s,e.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){var o=this.treeGrid.mapOfPosToGridNode[-1].height||0;e.width+=this.options.labels.indentation*(o-1)}return e}function ea(t){var i=this.grid,e=3===this.side;if(e||t.apply(this),!(null==i?void 0:i.isColumn)){var o=(null==i?void 0:i.columns)||[];e&&(o=o.slice().reverse()),o.forEach(function(t){t.getOffset()})}e&&t.apply(this)}function eh(t){if(!0===(this.options.grid||{}).enabled){var i=this.axisTitle,e=this.height,o=this.horiz,n=this.left,r=this.offset,s=this.opposite,a=this.options,h=this.top,l=this.width,d=this.tickSize(),c=null==i?void 0:i.getBBox().width,p=a.title.x,u=a.title.y,f=te(a.title.margin,o?5:10),g=i?this.chart.renderer.fontMetrics(i).f:0,x=(o?h+e:n)+(o?1:-1)*(s?-1:1)*(d?d[0]/2:0)+(this.side===k.bottom?g:0);t.titlePosition.x=o?n-(c||0)/2-f+p:x+(s?l:0)+r+p,t.titlePosition.y=o?x-(s?e:0)+(s?g:-g)/2+r+u:h-f+u}}function el(){var t,i=this.chart,e=this.options.grid,o=void 0===e?{}:e,n=this.userOptions;if(o.enabled&&((t=this.options).labels.align=te(t.labels.align,"center"),this.categories||(t.showLastLabel=!1),this.labelRotation=0,t.labels.rotation=0,t.minTickInterval=1),o.columns)for(var r=this.grid.columns=[],s=this.grid.columnIndex=0;++s<o.columns.length;){var a=tt(n,o.columns[s],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),h=new(tA())(this.chart,a,this.coll);h.grid.isColumn=!0,h.grid.columnIndex=s,U(i.axes,h),U(i[this.coll]||[],h),r.push(h)}}function ed(){var t,i,e=this.axisTitle,o=this.grid,n=this.options;if(!0===(n.grid||{}).enabled){var r=this.min||0,s=this.max||0,a=this.ticks[this.tickPositions[0]];if(e&&!this.chart.styledMode&&(null==a?void 0:a.slotWidth)&&!this.options.title.style.width&&e.css({width:""+a.slotWidth+"px"}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),(null==(t=this.grid)?void 0:t.isOuterAxis())&&this.axisLine){var h=n.lineWidth;if(h){var l=this.getLinePath(h),d=l[0],c=l[1],p=(this.tickSize("tick")||[1])[0]*(this.side===k.top||this.side===k.left?-1:1);if("M"===d[0]&&"L"===c[0]&&(this.horiz?(d[2]+=p,c[2]+=p):(d[1]+=p,c[1]+=p)),!this.horiz&&this.chart.marginRight){var u=["L",this.left,d[2]||0],f=[d,u],g=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(s+this.tickmarkOffset)],x=[["M",c[1]||0,this.toPixels(s+this.tickmarkOffset)],g];this.grid.upperBorder||r%1==0||(this.grid.upperBorder=this.grid.renderBorder(f)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:n.lineColor,"stroke-width":n.lineWidth}),this.grid.upperBorder.animate({d:f})),this.grid.lowerBorder||s%1==0||(this.grid.lowerBorder=this.grid.renderBorder(x)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:n.lineColor,"stroke-width":n.lineWidth}),this.grid.lowerBorder.animate({d:x}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:n.lineColor,"stroke-width":n.lineWidth}),this.grid.axisLineExtra.animate({d:l})):this.grid.axisLineExtra=this.grid.renderBorder(l),this.axisLine[this.showAxis?"show":"hide"]()}}if(((null==o?void 0:o.columns)||[]).forEach(function(t){return t.render()}),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||(null==(i=this.linkedParent)?void 0:i.scrollbar))&&this.tickPositions.length){for(var v=this.tickmarkOffset,m=this.tickPositions[this.tickPositions.length-1],y=this.tickPositions[0],b=void 0,M=void 0;(b=this.hiddenLabels.pop())&&b.element;)b.show();for(;(M=this.hiddenMarks.pop())&&M.element;)M.show();(b=this.ticks[y].label)&&(r-y>v?this.hiddenLabels.push(b.hide()):b.show()),(b=this.ticks[m].label)&&(m-s>v?this.hiddenLabels.push(b.hide()):b.show());var w=this.ticks[m].mark;w&&m-s<v&&m-s>0&&this.ticks[m].isLast&&this.hiddenMarks.push(w.hide())}}}function ec(){var t,i=null==(t=this.tickPositions)?void 0:t.info,e=this.options,o=e.grid||{},n=this.userOptions.labels||{};o.enabled&&(this.horiz?(this.series.forEach(function(t){t.options.pointRange=0}),i&&e.dateTimeLabelFormats&&e.labels&&!X(n.align)&&(!1===e.dateTimeLabelFormats[i.unitName].range||i.count>1)&&(e.labels.align="left",X(n.x)||(e.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function ep(t){var i,e=this.options,o=t.userOptions,n=e&&Q(e.grid,!0)?e.grid:{};!0===n.enabled&&(i=tt(!0,{className:"highcharts-grid-axis "+(o.className||""),dateTimeLabelFormats:{hour:{list:["%[HM]","%[H]"]},day:{list:["%[AeB]","%[aeb]","%[E]"]},week:{list:["Week %W","W%W"]},month:{list:["%[B]","%[b]","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"0.9em"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0,style:{textOverflow:"ellipsis"}},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},o),"xAxis"===this.coll&&(X(o.linkedTo)&&!X(o.tickPixelInterval)&&(i.tickPixelInterval=350),!(!X(o.tickPixelInterval)&&X(o.linkedTo))||X(o.tickPositioner)||X(o.tickInterval)||X(o.units)||(i.tickPositioner=function(t,e){var o,n,r=null==(n=null==(o=this.linkedParent)?void 0:o.tickPositions)?void 0:n.info;if(r){for(var s=i.units||[],a=void 0,h=1,l="year",d=0;d<s.length;d++){var c=s[d];if(c&&c[0]===r.unitName){a=d;break}}var p=K(a)&&s[a+1];if(p){l=p[0]||"year";var u=p[1];h=(null==u?void 0:u[0])||1}else"year"===r.unitName&&(h=10*r.count);var f=B.timeUnits[l];return this.tickInterval=f*h,this.chart.time.getTimeTicks({unitRange:f,count:h,unitName:l},t,e,this.options.startOfWeek)}})),tt(!0,this.options,i),this.horiz&&(e.minPadding=te(o.minPadding,0),e.maxPadding=te(o.maxPadding,0)),K(e.grid.borderWidth)&&(e.tickWidth=e.lineWidth=n.borderWidth))}function eu(t){var i=t.userOptions,e=(null==i?void 0:i.grid)||{},o=e.columns;e.enabled&&o&&tt(!0,this.options,o[0])}function ef(){(this.grid.columns||[]).forEach(function(t){return t.setScale()})}function eg(t){var i=this.horiz,e=this.maxLabelDimensions,o=this.options.grid,n=void 0===o?{}:o;if(n.enabled&&e){var r=2*this.options.labels.distance,s=i?n.cellHeight||r+e.height:r+e.width;J(t.tickSize)?t.tickSize[0]=s:t.tickSize=[s,0]}}function ex(){this.axes.forEach(function(t){var i;((null==(i=t.grid)?void 0:i.columns)||[]).forEach(function(t){t.setAxisSize(),t.setAxisTranslation()})})}function ev(t){var i=this.grid;(i.columns||[]).forEach(function(i){return i.destroy(t.keepEvents)}),i.columns=void 0}function em(t){var i=t.userOptions||{},e=i.grid||{};e.enabled&&X(e.borderColor)&&(i.tickColor=i.lineColor=e.borderColor),this.grid||(this.grid=new ew(this)),this.hiddenLabels=[],this.hiddenMarks=[]}function ey(t){var i=this.label,e=this.axis,o=e.reversed,n=e.chart,r=e.options.grid||{},s=e.options.labels,a=s.align,h=k[e.side],l=t.tickmarkOffset,d=e.tickPositions,c=this.pos-l,p=K(d[t.index+1])?d[t.index+1]-l:(e.max||0)+l,u=e.tickSize("tick"),f=u?u[0]:0,g=u?u[1]/2:0;if(!0===r.enabled){var x,v=void 0,m=void 0,y=void 0;if("top"===h?x=(v=e.top+e.offset)-f:"bottom"===h?v=(x=n.chartHeight-e.bottom+e.offset)+f:(v=e.top+e.len-(e.translate(o?p:c)||0),x=e.top+e.len-(e.translate(o?c:p)||0)),"right"===h?y=(m=n.chartWidth-e.right+e.offset)+f:"left"===h?m=(y=e.left+e.offset)-f:(m=Math.round(e.left+(e.translate(o?p:c)||0))-g,y=Math.min(Math.round(e.left+(e.translate(o?c:p)||0))-g,e.left+e.len)),this.slotWidth=y-m,t.pos.x="left"===a?m:"right"===a?y:m+(y-m)/2,t.pos.y=x+(v-x)/2,i){var b=n.renderer.fontMetrics(i),M=i.getBBox().height;if(s.useHTML)t.pos.y+=b.b+-(M/2);else{var w=Math.round(M/b.h);t.pos.y+=(b.b-(b.h-b.f))/2+-((w-1)*b.h/2)}}t.pos.x+=e.horiz&&s.x||0}}function eb(t){var i,e=t.axis,o=t.value;if(null==(i=e.options.grid)?void 0:i.enabled){var n=e.tickPositions,r=(e.linkedParent||e).series[0],s=o===n[0],a=o===n[n.length-1],h=r&&q(r.options.data,function(t){return t[e.isXAxis?"x":"y"]===o}),l=void 0;h&&r.is("gantt")&&(l=tt(h),E().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(l,e.chart)),t.isFirst=s,t.isLast=a,t.point=l}}function eM(){var t,i,e=this.options,o=e.grid||{},n=this.categories,r=this.tickPositions,s=r[0],a=r[1],h=r[r.length-1],l=r[r.length-2],d=null==(t=this.linkedParent)?void 0:t.min,c=null==(i=this.linkedParent)?void 0:i.max,p=d||this.min,u=c||this.max,f=this.tickInterval,g=K(p)&&p>=s+f&&p<a,x=K(p)&&s<p&&s+f>p,v=K(u)&&h>u&&h-f<u,m=K(u)&&u<=h-f&&u>l;!0===o.enabled&&!n&&(this.isXAxis||this.isLinked)&&((x||g)&&!e.startOnTick&&(r[0]=p),(v||m)&&!e.endOnTick&&(r[r.length-1]=u))}function ek(t){var i,e=this.options.grid;return!0===(void 0===e?{}:e).enabled&&this.categories?this.tickInterval:t.apply(this,(i=arguments,Array.prototype.slice.call(i,1)))}var ew=function(){function t(t){this.axis=t}return t.prototype.isOuterAxis=function(){var t,i=this.axis,e=i.chart,o=i.grid.columnIndex,n=(null==(t=i.linkedParent)?void 0:t.grid.columns)||i.grid.columns||[],r=o?i.linkedParent:i,s=-1,a=0;return 3===i.side&&!e.inverted&&n.length?!i.linkedParent:((e[i.coll]||[]).forEach(function(t,e){t.side!==i.side||t.options.isInternal||(a=e,t===r&&(s=e))}),a===s&&(!K(o)||n.length===o))},t.prototype.renderBorder=function(t){var i=this.axis,e=i.chart.renderer,o=i.options,n=e.path(t).addClass("highcharts-axis-line").add(i.axisGroup);return e.styledMode||n.attr({stroke:o.lineColor,"stroke-width":o.lineWidth,zIndex:7}),n},t}();er.E=function(t){return this.dateFormat("%a",t,!0).charAt(0)},er.W=function(t){var i=this.toParts(t),e=(i[7]+6)%7,o=i.slice(0);o[2]=i[2]-e+3;var n=this.toParts(this.makeTime(o[0],0,1));return 4!==n[7]&&(i[1]=0,i[2]=1+(11-n[7])%7),(1+Math.floor((this.makeTime(o[0],o[1],o[2])-this.makeTime(n[0],n[1],n[2]))/6048e5)).toString()};var eA=function(t,i){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>i.indexOf(o)&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)0>i.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(e[o[n]]=t[o[n]]);return e};function eO(t,i,e,o,n,r){var s,a,h=r&&r.after,l=r&&r.before,d={data:o,depth:e-1,id:t,level:e,parent:i||""},c=0,p=0;"function"==typeof l&&l(d,r);var u=(n[t]||[]).map(function(i){var o=eO(i.id,t,e+1,i,n,r),h=i.start||NaN,l=!0===i.milestone?h:i.end||NaN;return s=!K(s)||h<s?h:s,a=!K(a)||l>a?l:a,c=c+1+o.descendants,p=Math.max(o.height+1,p),o});return o&&(o.start=te(o.start,s),o.end=te(o.end,a)),j(d,{children:u,descendants:c,height:p}),"function"==typeof h&&h(d,r),d}var eP=function(t,i){var e,o;return eO("",null,1,null,(e=[],Object.keys(o=t.reduce(function(t,i){var o=i.parent,n=void 0===o?"":o,r=i.id;return void 0===t[n]&&(t[n]=[]),t[n].push(i),r&&e.push(r),t},{})).forEach(function(t){var i;if(""!==t&&-1===e.indexOf(t)){var n=o[t].map(function(t){return eA(t,[])});(i=o[""]).push.apply(i,n),delete o[t]}}),o),i)};function eS(){this.treeGrid||(this.treeGrid=new eT(this))}function eB(t,i,e,o,n,r,s,a,h){var l,d,c,p,u=te(null==(l=this.options)?void 0:l.labels,r),f=this.pos,g=this.axis,x="treegrid"===g.type,v=t.apply(this,[i,e,o,n,u,s,a,h]);if(x){var m=u&&Q(u.symbol,!0)?u.symbol:{},y=m.width,b=m.padding,M=void 0===b?5*!g.linkedParent:b,k=u&&K(u.indentation)?u.indentation:0;p=(null==(c=null==(d=g.treeGrid.mapOfPosToGridNode)?void 0:d[f])?void 0:c.depth)||1,v.x+=(void 0===y?0:y)+2*M+(p-1)*k}return v}function eE(t){var i,e,o,n,r,s,a,h,l,d,c,p,u,f,g,x=this.pos,v=this.axis,m=this.label,y=this.treeGrid,b=this.options,M=null==y?void 0:y.labelIcon,k=null==m?void 0:m.element,w=v.treeGrid,A=v.options,O=v.chart,P=v.tickPositions,S=w.mapOfPosToGridNode,B=te(null==b?void 0:b.labels,null==A?void 0:A.labels),E=B&&Q(B.symbol,!0)?B.symbol:{},T=null==S?void 0:S[x],C=T||{},D=C.descendants,I=C.depth,L=T&&D&&D>0,z="treegrid"===v.type&&k,R=P.indexOf(x)>-1,W="highcharts-treegrid-node-",H=W+"level-",N=O.styledMode;(z&&T&&m.removeClass(RegExp(H+".*")).addClass(H+I),t.apply(this,Array.prototype.slice.call(arguments,1)),z&&L)?(g=w.isCollapsed(T),i={color:!N&&m.styles.color||"",collapsed:g,group:m.parentGroup,options:E,renderer:m.renderer,show:R,xy:m.xy},n=!(o=this.treeGrid).labelIcon,r=i.renderer,s=i.xy,h=(a=i.options).width||0,l=a.height||0,d=5*(null!=(e=a.padding)?!e:!this.axis.linkedParent),c={x:s.x-h/2-d,y:s.y-l/2},p=i.collapsed?90:180,u=i.show&&K(c.y),(f=o.labelIcon)||(o.labelIcon=f=r.path(r.symbols[a.type](a.x||0,a.y||0,h,l)).addClass("highcharts-label-icon").add(i.group)),f[u?"show":"hide"](),r.styledMode||f.attr({cursor:"pointer",fill:te(i.color,"#666666"),"stroke-width":1,stroke:a.lineColor,strokeWidth:a.lineWidth||0}),f[n?"attr":"animate"]({translateX:c.x,translateY:c.y,rotation:p}),m.addClass(W+(g?"collapsed":"expanded")).removeClass(W+(g?"expanded":"collapsed")),N||m.css({cursor:"pointer"}),[m,M].forEach(function(t){t&&!t.attachedTreeGridEvents&&(G(t.element,"mouseover",function(){m.addClass("highcharts-treegrid-node-active"),m.renderer.styledMode||m.css({textDecoration:"underline"})}),G(t.element,"mouseout",function(){var t;t=Q(B.style)?B.style:{},m.removeClass("highcharts-treegrid-node-active"),m.renderer.styledMode||m.css({textDecoration:t.textDecoration||"none"})}),G(t.element,"click",function(){y.toggleCollapse()}),t.attachedTreeGridEvents=!0)})):M&&(tr(k),null==m||m.css({cursor:"default"}),M.destroy(),y.labelIcon=void 0)}var eT=function(){function t(t){this.tick=t}return t.compose=function(t){var i=t.prototype;i.toggleCollapse||(G(t,"init",eS),ta(i,"getLabelPosition",eB),ta(i,"renderLabel",eE),i.collapse=function(t){this.treeGrid.collapse(t)},i.expand=function(t){this.treeGrid.expand(t)},i.toggleCollapse=function(t){this.treeGrid.toggleCollapse(t)})},t.prototype.collapse=function(t){var i=this.tick,e=i.pos,o=i.axis,n=o.treeGrid,r=o.brokenAxis,s=n.mapOfPosToGridNode;r&&s&&r.setBreaks(n.collapse(s[e]),null==t||t)},t.prototype.destroy=function(){var t;null==(t=this.labelIcon)||t.destroy()},t.prototype.expand=function(t){var i=this.tick,e=i.pos,o=i.axis,n=o.treeGrid,r=o.brokenAxis,s=n.mapOfPosToGridNode;r&&s&&r.setBreaks(n.expand(s[e]),null==t||t)},t.prototype.toggleCollapse=function(t){void 0===t&&(t=!0);var i,e,o=this.tick,n=o.axis,r=o.pos,s=n.brokenAxis,a=n.treeGrid;if(s&&a.mapOfPosToGridNode){var h=!!(n.scrollbar&&n.staticScale),l=n.pos+n.len+(a.pendingSizeAdjustment||0);if(a.pendingSizeAdjustment=0,s.setBreaks(a.toggleCollapse(a.mapOfPosToGridNode[r]),h&&t),h){var d=n.toValue(n.toPixels(n.dataMax)),c=n.toValue(l)-n.tickmarkOffset,p=null!=(i=n.userMin)?i:n.min;if(a.adjustedMax=d!==n.dataMax?d-n.tickmarkOffset:void 0,c>n.dataMax){var u=l-n.toPixels(n.dataMax+n.tickmarkOffset);c=null!=(e=a.adjustedMax)?e:n.dataMax,(p=n.toValue(n.toPixels(p-n.tickmarkOffset)-u)+n.tickmarkOffset)<n.dataMin&&(u=n.toPixels(n.dataMin)-n.toPixels(p),p=n.dataMin,a.pendingSizeAdjustment=u)}n.setExtremes(H(p),H(c),!1,!1,{trigger:"toggleCollapse"})}t&&n.chart.redraw()}},t}(),eC=function(t){var i,e,o,n,r,s,a={};if(Q(t))for(n=K(t.from)?t.from:1,s=t.levels,e={},i=Q(t.defaults)?t.defaults:{},J(s)&&(e=s.reduce(function(t,e){var o,r,s;return Q(e)&&K(e.level)&&(r=te((s=tt({},e)).levelIsConstant,i.levelIsConstant),delete s.levelIsConstant,delete s.level,Q(t[o=e.level+(r?0:n-1)])?tt(!0,t[o],s):t[o]=s),t},{})),r=K(t.to)?t.to:1,o=0;o<=r;o++)a[o]=tt({},i,Q(e[o])?e[o]:{});return a};function eD(t){return{from:t.collapseStart||0,to:t.collapseEnd||0,showPoints:!1}}function eI(t,i,e){var o,n,r=[],s=[],a={},h=i||!1,l={},d=-1,c=eP(t,{after:function(t){var i=l[t.pos],e=0,o=0;i.children.forEach(function(t){o+=(t.descendants||0)+1,e=Math.max((t.height||0)+1,e)}),i.descendants=o,i.height=e,i.collapsed&&s.push(i)},before:function(t){var i,e,o=Q(t.data,!0)?t.data:{},n=$(o.name)?o.name:"",s=a[t.parent],c=Q(s,!0)?l[s.pos]:null;h&&Q(c,!0)&&(i=q(c.children,function(t){return t.name===n}))?(e=i.pos,i.nodes.push(t)):e=d++,!l[e]&&(l[e]=i={depth:c?c.depth+1:0,name:n,id:o.id,nodes:[t],children:[],pos:e},-1!==e&&r.push(n),Q(c,!0)&&c.children.push(i)),$(t.id)&&(a[t.id]=t),i&&!0===o.collapsed&&(i.collapsed=!0),t.pos=e}});return o=l,{categories:r,mapOfIdToNode:a,mapOfPosToGridNode:l=(n=function(t,i,o){var r=t.nodes,s=i+(-1===i?0:e-1),a=(s-i)/2,h=i+a;return r.forEach(function(t){var e=t.data;Q(e,!0)&&(e.y=i+(e.seriesIndex||0),delete e.seriesIndex),t.pos=h}),o[h]=t,t.pos=h,t.tickmarkOffset=a+.5,t.collapseStart=s+.5,t.children.forEach(function(t){n(t,s+1,o),s=(t.collapseEnd||0)-.5}),t.collapseEnd=s+.5,o})(o["-1"],-1,{}),collapsedNodes:s,tree:c}}function eL(t){var i=t.target;i.axes.filter(function(t){return"treegrid"===t.type}).forEach(function(e){var o,n,r,s=e.options,a=s.labels,h=e.uniqueNames,l=i.time.parse(s.max),d=!e.treeGrid.mapOfPosToGridNode||e.series.some(function(t){return!t.hasRendered||t.isDirtyData||t.isDirty}),c=0;if(d){var p=[];if(n=e.series.reduce(function(t,e){var o=e.options.data||[],n=o[0],r=Array.isArray(n)&&!n.find(function(t){return"object"==typeof t});return p.push(r),e.visible&&(o.forEach(function(o){var n;(r||(null==(n=e.options.keys)?void 0:n.length))&&(o=e.pointClass.prototype.optionsToObject.call({series:e},o),e.pointClass.setGanttPointAliases(o,i)),Q(o,!0)&&(o.seriesIndex=c,t.push(o))}),!0===h&&c++),t},[]),l&&n.length<l)for(var u=n.length;u<=l;u++)n.push({name:u+"​"});e.categories=(r=eI(n,h||!1,!0===h?c:1)).categories,e.treeGrid.mapOfPosToGridNode=r.mapOfPosToGridNode,e.hasNames=!0,e.treeGrid.tree=r.tree,e.series.forEach(function(t,i){var e=(t.options.data||[]).map(function(e){var o;return(p[i]||J(e)&&(null==(o=t.options.keys)?void 0:o.length))&&n.forEach(function(t){var i=ts(e);i.indexOf(t.x||0)>=0&&i.indexOf(t.x2||0)>=0&&(e=t)}),Q(e,!0)?tt(e):e});t.visible&&t.setData(e,!1)}),e.treeGrid.mapOptionsToLevel=eC({defaults:a,from:1,levels:null==a?void 0:a.levels,to:null==(o=e.treeGrid.tree)?void 0:o.height}),"beforeRender"===t.type&&(e.treeGrid.collapsedNodes=r.collapsedNodes)}})}function ez(t,i){var e,o,n,r=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,a=this.ticks,h=a[i];s&&this.treeGrid.mapOfPosToGridNode?((e=r[(n=this.treeGrid.mapOfPosToGridNode[i]).depth])&&(o={labels:e}),!h&&w?a[i]=h=new w(this,i,void 0,void 0,{category:n.name,tickmarkOffset:n.tickmarkOffset,options:o}):(h.parameters.category=n.name,h.options=o,h.addLabel())):t.apply(this,Array.prototype.slice.call(arguments,1))}function eR(t,i,e,o){var n=this,r="treegrid"===e.type;n.treeGrid||(n.treeGrid=new eH(n)),r&&(G(i,"beforeRender",eL),G(i,"beforeRedraw",eL),G(i,"addSeries",function(t){if(t.options.data){var i=eI(t.options.data,e.uniqueNames||!1,1);n.treeGrid.collapsedNodes=(n.treeGrid.collapsedNodes||[]).concat(i.collapsedNodes)}}),G(n,"foundExtremes",function(){var t;null==(t=n.treeGrid.collapsedNodes)||t.forEach(function(t){var i=n.treeGrid.collapse(t);n.brokenAxis&&(n.brokenAxis.setBreaks(i,!1),n.treeGrid.collapsedNodes&&(n.treeGrid.collapsedNodes=n.treeGrid.collapsedNodes.filter(function(i){return t.collapseStart!==i.collapseStart||t.collapseEnd!==i.collapseEnd})))})}),G(n,"afterBreaks",function(){"yAxis"===n.coll&&!n.staticScale&&n.chart.options.chart.height&&(n.isDirty=!0)}),e=tt({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}},uniqueNames:!1},e,{reversed:!0})),t.apply(n,[i,e,o]),r&&(n.hasNames=!0,n.options.showLastLabel=!0)}function eG(t){var i,e,o,n,r,s,a,h=this.options,l=this.chart.time,d="number"==typeof h.linkedTo?null==(i=this.chart[this.coll])?void 0:i[h.linkedTo]:void 0;if("treegrid"===this.type){if(this.min=null!=(o=null!=(e=this.userMin)?e:l.parse(h.min))?o:this.dataMin,this.max=null!=(r=null!=(n=this.userMax)?n:l.parse(h.max))?r:this.dataMax,V(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],d){var c=d.getExtremes();this.min=null!=(s=c.min)?s:c.dataMin,this.max=null!=(a=c.max)?a:c.dataMax,this.tickPositions=d.tickPositions}this.linkedParent=d}else t.apply(this,Array.prototype.slice.call(arguments,1))}function eW(t){var i=this;"treegrid"===this.type&&i.visible&&i.tickPositions.forEach(function(t){var e,o=i.ticks[t];(null==(e=o.label)?void 0:e.attachedTreeGridEvents)&&(tr(o.label.element),o.label.attachedTreeGridEvents=!1)}),t.apply(i,Array.prototype.slice.call(arguments,1))}var eH=function(){function t(t){this.pendingSizeAdjustment=0,this.axis=t}return t.compose=function(t,i,e,o){if(!t.keepProps.includes("treeGrid")){var n,r,s,a=t.prototype;t.keepProps.push("treeGrid"),ta(a,"generateTick",ez),ta(a,"init",eR),ta(a,"setTickInterval",eG),ta(a,"redraw",eW),a.utils={getNode:eO},w||(w=o)}return n=t,r=i,s=o,n.keepProps.includes("grid")||(n.keepProps.push("grid"),n.prototype.getMaxLabelDimensions=es,ta(n.prototype,"unsquish",ek),ta(n.prototype,"getOffset",ea),G(n,"init",em),G(n,"afterGetTitlePosition",eh),G(n,"afterInit",el),G(n,"afterRender",ed),G(n,"afterSetAxisTranslation",ec),G(n,"afterSetOptions",ep),G(n,"afterSetOptions",eu),G(n,"afterSetScale",ef),G(n,"afterTickSize",eg),G(n,"trimTicks",eM),G(n,"destroy",ev),G(r,"afterSetChartSize",ex),G(s,"afterGetLabelPosition",ey),G(s,"labelFormat",eb)),en.compose(t,e),eT.compose(o),t},t.prototype.setCollapsedStatus=function(t){var i=this.axis,e=i.chart;i.series.forEach(function(i){var o=i.options.data;if(t.id&&o){var n=e.get(t.id),r=o[i.data.indexOf(n)];n&&r&&(n.collapsed=t.collapsed,r.collapsed=t.collapsed)}})},t.prototype.collapse=function(t){var i=this.axis,e=i.options.breaks||[],o=eD(t);return e.push(o),t.collapsed=!0,i.treeGrid.setCollapsedStatus(t),e},t.prototype.expand=function(t){var i,e=this.axis,o=eD(t);return t.collapsed=!1,e.treeGrid.setCollapsedStatus(t),(null==(i=e.options.breaks)?void 0:i.reduce(function(t,i){return(i.to!==o.to||i.from!==o.from)&&t.push(i),t},[]))||[]},t.prototype.getTickPositions=function(){var t=this.axis,i=Math.floor(t.min/t.tickInterval)*t.tickInterval,e=Math.ceil(t.max/t.tickInterval)*t.tickInterval;return Object.keys(t.treeGrid.mapOfPosToGridNode||{}).reduce(function(o,n){var r,s=+n;return s>=i&&s<=e&&!(null==(r=t.brokenAxis)?void 0:r.isInAnyBreak(s))&&o.push(s),o},[])},t.prototype.isCollapsed=function(t){var i=this.axis.options.breaks||[],e=eD(t);return i.some(function(t){return t.from===e.from&&t.to===e.to})},t.prototype.toggleCollapse=function(t){return this.isCollapsed(t)?this.expand(t):this.collapse(t)},t}(),eN=(x=function(t,i){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}x(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),e_=tF().series,eF=tF().seriesTypes.xrange,eX=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return eN(i,t),i.compose=function(t,i,e,o){eF.compose(t),i&&(iK(t,i),!e||(ij.compose(i,e.prototype.pointClass),o&&eH.compose(t,i,e,o)))},i.prototype.drawPoint=function(i,e){var o,n=this.options,r=this.chart.renderer,s=i.shapeArgs,a=i.plotY,h=i.selected&&"select",l=n.stacking&&!n.borderRadius,d=i.graphic;i.options.milestone?K(a)&&null!==i.y&&!1!==i.visible?(o=r.symbols.diamond(s.x||0,s.y||0,s.width||0,s.height||0),d?d[e]({d:o}):i.graphic=d=r.path(o).addClass(i.getClassName(),!0).add(i.group||this.group),this.chart.styledMode||i.graphic.attr(this.pointAttribs(i,h)).shadow(n.shadow,null,l)):d&&(i.graphic=d.destroy()):t.prototype.drawPoint.call(this,i,e)},i.prototype.translatePoint=function(i){var e,o;t.prototype.translatePoint.call(this,i),i.options.milestone&&(o=(e=i.shapeArgs).height||0,i.shapeArgs={x:(e.x||0)-o/2,y:e.y,width:o,height:o})},i.defaultOptions=tt(eF.defaultOptions,ei),i}(eF);j(eX.prototype,{pointArrayMap:["start","end","y"],pointClass:et,setData:e_.prototype.setData}),tF().registerSeriesType("gantt",eX);var eY=E();eY.Connection=eY.Connection||tc,eY.GanttChart=eY.GanttChart||tk,eY.Navigator=eY.Navigator||io,eY.RangeSelector=eY.RangeSelector||iS,eY.Scrollbar=eY.Scrollbar||t9,eY.ganttChart=eY.GanttChart.ganttChart,L(eY.SVGRenderer),({compose:function(t,i){to(tp,"CurrentDateIndication")&&(G(t,"afterSetOptions",tf),G(i,"render",tg),ta(i.prototype,"getLabelText",tx))}}).compose(eY.Axis,eY.PlotLineOrBand),eX.compose(eY.Axis,eY.Chart,eY.Series,eY.Tick),eY.Navigator.compose(eY.Chart,eY.Axis,eY.Series),eY.RangeSelector.compose(eY.Axis,eY.Chart),eY.Scrollbar.compose(eY.Axis);var eU=E();return S.default}()});