!/**
 * Highcharts Gantt JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/treegrid
 * @requires highcharts
 *
 * Tree Grid
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Jon Arild Nygård
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(e._Highcharts,e._Highcharts.StackItem,e._Highcharts.Axis,e._Highcharts.Color):"function"==typeof define&&define.amd?define("highcharts/modules/treegrid",["highcharts/highcharts"],function(e){return t(e,e.StackItem,e.Axis,e.Color)}):"object"==typeof exports?exports["highcharts/modules/treegrid"]=t(e._Highcharts,e._Highcharts.StackItem,e._Highcharts.Axis,e._Highcharts.Color):e.Highcharts=t(e.Highcharts,e.Highcharts.StackItem,e.Highcharts.Axis,e.Highcharts.Color)}("u"<typeof window?this:window,(e,t,i,s)=>(()=>{"use strict";let r;var o,n,a,l={184:e=>{e.exports=t},532:e=>{e.exports=i},620:e=>{e.exports=s},944:t=>{t.exports=e}},d={};function h(e){var t=d[e];if(void 0!==t)return t.exports;var i=d[e]={exports:{}};return l[e](i,i.exports,h),i.exports}h.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{for(var i in t)h.o(t,i)&&!h.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var c={};h.d(c,{default:()=>er});var p=h(944),f=h.n(p),u=h(184),m=h.n(u);!function(e){function t(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function i(){Object.keys(this.options.breaks?.[0]||{}).length&&(this.options.ordinal=!1)}function s(){let e=this.brokenAxis;if(e?.hasBreaks){let t=this.tickPositions,i=this.tickPositions.info,s=[];for(let i=0;i<t.length;i++)e.isInAnyBreak(t[i])||s.push(t[i]);this.tickPositions=s,this.tickPositions.info=i}}function r(){this.brokenAxis||(this.brokenAxis=new d(this))}function o(){let{isDirty:e,options:{connectNulls:t},points:i,xAxis:s,yAxis:r}=this;if(e){let e=i.length;for(;e--;){let o=i[e],n=(null!==o.y||!1!==t)&&(s?.brokenAxis?.isInAnyBreak(o.x,!0)||r?.brokenAxis?.isInAnyBreak(o.y,!0));o.visible=!n&&!1!==o.options.visible}}}function n(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,(0,p.pick)(this.pointArrayMap,["y"]))}function a(e,t){let i,s,r,o=this,n=o.points;if(e?.brokenAxis?.hasBreaks){let a=e.brokenAxis;t.forEach(function(t){i=a?.breakArray||[],s=e.isXAxis?e.min:(0,p.pick)(o.options.threshold,e.min),n.forEach(function(o){r=o["stack"+t.toUpperCase()]??o[t],i.forEach(function(t){if((0,p.isNumber)(s)&&(0,p.isNumber)(r)){let i="";s<t.from&&r>t.to||s>t.from&&r<t.from?i="pointBreak":(s<t.from&&r>t.from&&r<t.to||s>t.from&&r>t.to&&r<t.from)&&(i="pointInBreak"),i&&(0,p.fireEvent)(e,i,{point:o,brk:t})}})})})}}function l(){let e=this.currentDataGrouping,t=e?.gapSize,i=this.points.slice(),s=this.yAxis,r=this.options.gapSize,o=i.length-1;if(r&&o>0){let e,n;for("value"!==this.options.gapUnit&&(r*=this.basePointRange),t&&t>r&&t>=this.basePointRange&&(r=t);o--;)if(n&&!1!==n.visible||(n=i[o+1]),e=i[o],!1!==n.visible&&!1!==e.visible){if(n.x-e.x>r){let t=(e.x+n.x)/2;i.splice(o+1,0,{isNull:!0,x:t}),s.stacking&&this.options.stacking&&((s.stacking.stacks[this.stackKey][t]=new(m())(s,s.options.stackLabels,!1,t,this.stack??"")).total=0)}n=e}}return this.getGraphPath(i)}e.compose=function(e,d){if(!e.keepProps.includes("brokenAxis")){e.keepProps.push("brokenAxis"),(0,p.addEvent)(e,"init",r),(0,p.addEvent)(e,"afterInit",t),(0,p.addEvent)(e,"afterSetTickPositions",s),(0,p.addEvent)(e,"afterSetOptions",i);let h=d.prototype;h.drawBreaks=a,h.gappedPath=l,(0,p.addEvent)(d,"afterGeneratePoints",o),(0,p.addEvent)(d,"afterRender",n)}return e};class d{static isInBreak(e,t){let i=e.repeat||1/0,s=e.from,r=e.to-e.from,o=t>=s?(t-s)%i:i-(s-t)%i;return e.inclusive?o<=r:o<r&&0!==o}static lin2Val(e){let t=this.min||0,i=this.brokenAxis,s=i?.breakArray;if(!s?.length||!(0,p.isNumber)(e))return e;let r=e;if(e>t)for(let e of s)if(e.from>r)break;else e.to<=r&&e.to>t?r+=e.len:d.isInBreak(e,r)&&(r+=e.len);else if(e<t)for(let e of s)if(e.from>t)break;else e.from>=r&&e.from<t?r-=e.len:d.isInBreak(e,r)&&(r-=e.len);return r}static val2Lin(e){let t=this.min||0,i=this.brokenAxis,s=i?.breakArray;if(!s?.length||!(0,p.isNumber)(e))return e;let r=e;if(e>t){for(let i of s)if(i.to<=e&&i.to>t)r-=i.len;else if(i.from>e)break;else if(d.isInBreak(i,e)){r-=e-i.from;break}}else if(e<t){for(let i of s)if(i.from>=e&&i.from<t)r+=i.len;else if(i.from>t)break;else if(d.isInBreak(i,e)){r+=i.to-e;break}}return r}constructor(e){this.axis=e}findBreakAt(e,t){return(0,p.find)(t,function(t){return t.from<e&&e<t.to})}isInAnyBreak(e,t){let i=this.axis,s=i.options.breaks||[],r=s.length,o,n,a;if(r&&(0,p.isNumber)(e)){for(;r--;)d.isInBreak(s[r],e)&&(o=!0,n||(n=(0,p.pick)(s[r].showPoints,!i.isXAxis)));a=o&&t?o&&!n:o}return a}setBreaks(e,t){let i=this,s=i.axis,r=s.chart.time,o=(0,p.isArray)(e)&&!!Object.keys(e?.[0]||{}).length;s.isDirty=(i.hasBreaks??!1)!==o,i.hasBreaks=o,e?.forEach(e=>{e.from=r.parse(e.from)||0,e.to=r.parse(e.to)||0}),e!==s.options.breaks&&(s.options.breaks=s.userOptions.breaks=e),s.forceRedraw=!0,s.series.forEach(function(e){e.isDirty=!0}),o||s.val2lin!==d.val2Lin||(delete s.val2lin,delete s.lin2val),o&&(s.userOptions.ordinal=!1,s.lin2val=d.lin2Val,s.val2lin=d.val2Lin,s.setExtremes=function(e,t,r,o,n){if(i.hasBreaks&&!s.treeGrid?.tree){let s,r=this.brokenAxis.breakArray||[];for(;s=i.findBreakAt(e,r);)e=s.to;for(;s=i.findBreakAt(t,r);)t=s.from;t<e&&(t=e)}s.constructor.prototype.setExtremes.call(this,e,t,r,o,n)},s.setAxisTranslation=function(){if(s.constructor.prototype.setAxisTranslation.call(this),i.unitLength=void 0,i.hasBreaks){let e=s.options.breaks||[],t=[],r=[],o=s.pointRangePadding??0,n=0,a,l,h=s.userMin??s.min,c=s.userMax??s.max,f,u,m=(0,p.isNumber)(h)?Math.min(s.dataMin??h,h):s.dataMin??h,g=(0,p.isNumber)(c)?Math.max(s.dataMax??c,c):s.dataMax??c;s.treeGrid?.tree||e.forEach(function(e){l=e.repeat||1/0,(0,p.isNumber)(h)&&(0,p.isNumber)(c)&&(d.isInBreak(e,h)&&(h+=e.to%l-h%l),d.isInBreak(e,c)&&(c-=c%l-e.from%l))}),(0,p.isNumber)(m)&&(0,p.isNumber)(g)&&e.forEach(function(e){for(f=e.from,l=e.repeat||1/0;f-l>m;)f-=l;for(;f<m;)f+=l;for(u=f;u<g;u+=l)t.push({value:u,move:"in"}),t.push({value:u+e.to-e.from,move:"out",size:e.breakSize})}),t.sort(function(e,t){return e.value===t.value?("in"!==e.move)-("in"!==t.move):e.value-t.value}),a=0,f=m,t.forEach(e=>{1===(a+="in"===e.move?1:-1)&&"in"===e.move&&(f=e.value),0===a&&(0,p.isNumber)(f)&&(r.push({from:f,to:e.value,len:e.value-f-(e.size||0)}),(0,p.isNumber)(h)&&(0,p.isNumber)(c)&&f<c&&e.value>h&&(n+=e.value-f-(e.size||0)))}),i.breakArray=r,(0,p.isNumber)(h)&&(0,p.isNumber)(c)&&(0,p.isNumber)(s.min)&&(i.unitLength=c-h-n+o,(0,p.fireEvent)(s,"afterBreaks"),s.staticScale?s.transA=s.staticScale:i.unitLength&&(s.transA*=(c-s.min+o)/i.unitLength),o&&(s.minPixelPadding=s.transA*(s.minPointOffset||0)),s.min=h,s.max=c)}}),(0,p.pick)(t,!0)&&s.chart.redraw()}}e.Additions=d}(n||(n={}));let g=n;var k=h(532),b=h.n(k);let{dateFormats:x}=f();function v(e){return(0,p.isObject)(e,!0)}function y(e,t){let i={width:0,height:0};if(t.forEach(function(t){let s=e[t],r=0,o=0,n;v(s)&&(r=(n=v(s.label)?s.label:{}).getBBox?n.getBBox().height:0,n.textStr&&!(0,p.isNumber)(n.textPxLength)&&(n.textPxLength=n.getBBox().width),o=(0,p.isNumber)(n.textPxLength)?Math.round(n.textPxLength):0,n.textStr&&(o=Math.round(n.getBBox().width)),i.height=Math.max(r,i.height),i.width=Math.max(o,i.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){let e=this.treeGrid.mapOfPosToGridNode[-1].height||0;i.width+=this.options.labels.indentation*(e-1)}return i}function P(e){let{grid:t}=this,i=3===this.side;if(i||e.apply(this),!t?.isColumn){let e=t?.columns||[];i&&(e=e.slice().reverse()),e.forEach(e=>{e.getOffset()})}i&&e.apply(this)}function O(e){if(!0===(this.options.grid||{}).enabled){let{axisTitle:t,height:i,horiz:s,left:r,offset:o,opposite:n,options:l,top:d,width:h}=this,c=this.tickSize(),p=t?.getBBox().width,f=l.title,{x:u,y:m}=f,g=f.margin??(s?5:10),k=t?this.chart.renderer.fontMetrics(t).f:0,b=(s?d+i:r)+(s?1:-1)*(n?-1:1)*(c?c[0]/2:0)+(this.side===a.bottom?k:0);if(e.titlePosition.x=s?r-(p||0)/2-g+u:b+(n?h:0)+o+u,e.titlePosition.y=s?b-(n?i:0)+(n?k:-k)/2+o+m:d-g+m,!s){let[t=0]=c||[];"left"===f.textAlign?e.titlePosition.x-=t/2:"right"===f.textAlign&&(e.titlePosition.x+=t/2)}}}function E(){let e,{chart:t,options:{grid:i={}},userOptions:s}=this;if(i.enabled&&((e=this.options).labels.align=(0,p.pick)(e.labels.align,"center"),this.categories||(e.showLastLabel=!1),this.labelRotation=0,e.labels.rotation=0,e.minTickInterval=1),i.columns){let e=this.grid.columns=[],r=this.grid.columnIndex=0;for(;++r<i.columns.length;){let o=(0,p.merge)(s,i.columns[r],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),n=new(b())(this.chart,o,this.coll);n.grid.isColumn=!0,n.grid.columnIndex=r,(0,p.erase)(t.axes,n),(0,p.erase)(t[this.coll]||[],n),e.push(n)}}}function N(){let{axisTitle:e,grid:t,options:i}=this;if(!0===(i.grid||{}).enabled){let s=this.min||0,r=this.max||0,o=this.ticks[this.tickPositions[0]];if(e&&!this.chart.styledMode&&o?.slotWidth&&!this.options.title.style.width&&e.css({width:`${o.slotWidth}px`}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),this.grid?.isOuterAxis()&&this.axisLine){let e=i.lineWidth;if(e){let t=this.getLinePath(e),o=t[0],n=t[1],l=(this.tickSize("tick")||[1])[0]*(this.side===a.top||this.side===a.left?-1:1);if("M"===o[0]&&"L"===n[0]&&(this.horiz?(o[2]+=l,n[2]+=l):(o[1]+=l,n[1]+=l)),!this.horiz&&this.chart.marginRight){let e=["L",this.left,o[2]||0],t=[o,e],a=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(r+this.tickmarkOffset)],l=[["M",n[1]||0,this.toPixels(r+this.tickmarkOffset)],a];this.grid.upperBorder||s%1==0||(this.grid.upperBorder=this.grid.renderBorder(t)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.upperBorder.animate({d:t})),this.grid.lowerBorder||r%1==0||(this.grid.lowerBorder=this.grid.renderBorder(l)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.lowerBorder.animate({d:l}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.axisLineExtra.animate({d:t})):this.grid.axisLineExtra=this.grid.renderBorder(t),this.axisLine[this.showAxis?"show":"hide"]()}}if((t?.columns||[]).forEach(e=>e.render()),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent?.scrollbar)&&this.tickPositions.length){let e,t,i=this.tickmarkOffset,o=this.tickPositions[this.tickPositions.length-1],n=this.tickPositions[0];for(;(e=this.hiddenLabels.pop())&&e.element;)e.show();for(;(t=this.hiddenMarks.pop())&&t.element;)t.show();(e=this.ticks[n].label)&&(s-n>i?this.hiddenLabels.push(e.hide()):e.show()),(e=this.ticks[o].label)&&(o-r>i?this.hiddenLabels.push(e.hide()):e.show());let a=this.ticks[o].mark;a&&o-r<i&&o-r>0&&this.ticks[o].isLast&&this.hiddenMarks.push(a.hide())}}}function A(){let e=this.tickPositions?.info,t=this.options,i=t.grid||{},s=this.userOptions.labels||{};i.enabled&&(this.horiz?(this.series.forEach(e=>{e.options.pointRange=0}),e&&t.dateTimeLabelFormats&&t.labels&&!(0,p.defined)(s.align)&&(!1===t.dateTimeLabelFormats[e.unitName].range||e.count>1)&&(t.labels.align="left",(0,p.defined)(s.x)||(t.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function w(e){let t,i=this.options,s=e.userOptions,r=i&&v(i.grid)?i.grid:{};!0===r.enabled&&(t=(0,p.merge)(!0,{className:"highcharts-grid-axis "+(s.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]]},s),"xAxis"===this.coll&&((0,p.defined)(s.linkedTo)&&!(0,p.defined)(s.tickPixelInterval)&&(t.tickPixelInterval=350),!(!(0,p.defined)(s.tickPixelInterval)&&(0,p.defined)(s.linkedTo))||(0,p.defined)(s.tickPositioner)||(0,p.defined)(s.tickInterval)||(0,p.defined)(s.units)||(t.tickPositioner=function(e,i){let s=this.linkedParent?.tickPositions?.info;if(s){let r=t.units||[],o,n=1,a="year";for(let e=0;e<r.length;e++){let t=r[e];if(t&&t[0]===s.unitName){o=e;break}}let l=(0,p.isNumber)(o)&&r[o+1];if(l){a=l[0]||"year";let e=l[1];n=e?.[0]||1}else"year"===s.unitName&&(n=10*s.count);let d=p.timeUnits[a];return this.tickInterval=d*n,this.chart.time.getTimeTicks({unitRange:d,count:n,unitName:a},e,i,this.options.startOfWeek)}})),(0,p.merge)(!0,this.options,t),this.horiz&&(i.minPadding=(0,p.pick)(s.minPadding,0),i.maxPadding=(0,p.pick)(s.maxPadding,0)),(0,p.isNumber)(i.grid.borderWidth)&&(i.tickWidth=i.lineWidth=r.borderWidth))}function G(e){let t=e.userOptions,i=t?.grid||{},s=i.columns;i.enabled&&s&&(0,p.merge)(!0,this.options,s[0])}function I(){(this.grid.columns||[]).forEach(e=>e.setScale())}function B(e){let{horiz:t,maxLabelDimensions:i,options:{grid:s={}}}=this;if(s.enabled&&i){let r=2*this.options.labels.distance,o=t?s.cellHeight||r+i.height:r+i.width;(0,p.isArray)(e.tickSize)?e.tickSize[0]=o:e.tickSize=[o,0]}}function T(){this.axes.forEach(e=>{(e.grid?.columns||[]).forEach(e=>{e.setAxisSize(),e.setAxisTranslation()})})}function M(e){let{grid:t}=this;(t.columns||[]).forEach(t=>t.destroy(e.keepEvents)),t.columns=void 0}function C(e){let t=e.userOptions||{},i=(0,p.merge)({borderColor:"var(--highcharts-neutral-color-20)"},t.grid||{});i.enabled&&(0,p.defined)(i.borderColor)&&(t.tickColor=t.lineColor=i.borderColor),this.grid||(this.grid=new W(this)),this.hiddenLabels=[],this.hiddenMarks=[],this.clippable=!1}function L(e){let t=this.label,i=this.axis,s=i.reversed,r=i.chart,o=i.options.grid||{},n=i.options.labels,l=n.align,d=a[i.side],h=e.tickmarkOffset,c=i.tickPositions,f=this.pos-h,u=(0,p.isNumber)(c[e.index+1])?c[e.index+1]-h:(i.max||0)+h,m=i.tickSize("tick"),g=m?m[0]:0,k=m?m[1]/2:0;if(!0===o.enabled){let o,a,h,c;if("top"===d?a=(o=i.top+i.offset)-g:"bottom"===d?o=(a=r.chartHeight-i.bottom+i.offset)+g:(o=i.top+i.len-(i.translate(s?u:f)||0),a=i.top+i.len-(i.translate(s?f:u)||0)),"right"===d?c=(h=r.chartWidth-i.right+i.offset)+g:"left"===d?h=(c=i.left+i.offset)-g:(h=Math.round(i.left+(i.translate(s?u:f)||0))-k,c=Math.min(Math.round(i.left+(i.translate(s?f:u)||0))-k,i.left+i.len)),this.slotWidth=c-h,e.pos.x="left"===l?h:"right"===l?c:h+(c-h)/2,e.pos.y=a+(o-a)/2,t){let i=r.renderer.fontMetrics(t),s=t.getBBox().height;if(n.useHTML)e.pos.y+=i.b+-(s/2);else{let t=Math.round(s/i.h);e.pos.y+=(i.b-(i.h-i.f))/2+-((t-1)*i.h/2)}}e.pos.x+=i.horiz&&n.x||0}}function S(e){let{axis:t,value:i}=e;if(t.options.grid?.enabled){let s,r=t.tickPositions,o=(t.linkedParent||t).series,n=o.reduce((e,t)=>t.is("gantt")?e?.concat(t.options?.data??[]):e,[])??[],a=i===r[0],l=i===r[r.length-1],d=o[0]&&(0,p.find)(n,function(e){return e[t.isXAxis?"x":"y"]===i});d&&(s=(0,p.merge)(d),f().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(s,t.chart)),e.isFirst=a,e.isLast=l,e.point=s}}function j(){let e=this.options,t=e.grid||{},i=this.categories,s=this.tickPositions,r=s[0],o=s[1],n=s[s.length-1],a=s[s.length-2],l=this.linkedParent?.min,d=this.linkedParent?.max,h=l||this.min,c=d||this.max,f=this.tickInterval,u=(0,p.isNumber)(h)&&h>=r+f&&h<o,m=(0,p.isNumber)(h)&&r<h&&r+f>h,g=(0,p.isNumber)(c)&&n>c&&n-f<c,k=(0,p.isNumber)(c)&&c<=n-f&&c>a;!0===t.enabled&&!i&&(this.isXAxis||this.isLinked)&&((m||u)&&!e.startOnTick&&(s[0]=h),(g||k)&&!e.endOnTick&&(s[s.length-1]=c))}function z(e){var t;let{options:{grid:i={}}}=this;return!0===i.enabled&&this.categories?this.tickInterval:e.apply(this,(t=arguments,Array.prototype.slice.call(t,1)))}(o=a||(a={}))[o.top=0]="top",o[o.right=1]="right",o[o.bottom=2]="bottom",o[o.left=3]="left";class W{constructor(e){this.axis=e}isOuterAxis(){let e=this.axis,t=e.chart,i=e.grid.columnIndex,s=e.linkedParent?.grid.columns||e.grid.columns||[],r=i?e.linkedParent:e,o=-1,n=0;return 3===e.side&&!t.inverted&&s.length?!e.linkedParent:((t[e.coll]||[]).forEach((t,i)=>{t.side!==e.side||t.options.isInternal||(n=i,t===r&&(o=i))}),n===o&&(!(0,p.isNumber)(i)||s.length===i))}renderBorder(e){let t=this.axis,i=t.chart.renderer,s=t.options,r=i.path(e).addClass("highcharts-axis-line").add(t.axisGroup);return i.styledMode||r.attr({stroke:s.lineColor,"stroke-width":s.lineWidth,zIndex:7}),r}}x.E=function(e){return this.dateFormat("%a",e,!0).charAt(0)},x.W=function(e){let t=this.toParts(e),i=(t[7]+6)%7,s=t.slice(0);s[2]=t[2]-i+3;let r=this.toParts(this.makeTime(s[0],0,1));return 4!==r[7]&&(t[1]=0,t[2]=1+(11-r[7])%7),(1+Math.floor((this.makeTime(s[0],s[1],s[2])-this.makeTime(r[0],r[1],r[2]))/6048e5)).toString()};function R(e,t,i,s,r,o){let n=o&&o.after,a=o&&o.before,l={data:s,depth:i-1,id:e,level:i,parent:t||""},d=0,h=0,c,f;"function"==typeof a&&a(l,o);let u=(r[e]||[]).map(t=>{let s=R(t.id,e,i+1,t,r,o),n=t.start||NaN,a=!0===t.milestone?n:t.end||NaN;return c=!(0,p.isNumber)(c)||n<c?n:c,f=!(0,p.isNumber)(f)||a>f?a:f,d=d+1+s.descendants,h=Math.max(s.height+1,h),s});return s&&(s.start??(s.start=c),s.end??(s.end=f)),(0,p.extend)(l,{children:u,descendants:d,height:h}),"function"==typeof n&&n(l,o),l}let H=function(e,t){let i,s;return R("",null,1,null,(i=[],Object.keys(s=e.reduce((e,t)=>{let{parent:s="",id:r}=t;return void 0===e[s]&&(e[s]=[]),e[s].push(t),r&&i.push(r),e},{})).forEach(e=>{if(""!==e&&-1===i.indexOf(e)){let t=s[e].map(function(e){let{...t}=e;return t});s[""].push(...t),delete s[e]}}),s),t)};function D(){this.treeGrid||(this.treeGrid=new V(this))}function _(e,t,i,s,r,o,n,a,l){let d,h,c,f=(0,p.pick)(this.options?.labels,o),u=this.pos,m=this.axis,g="treegrid"===m.type,k=e.apply(this,[t,i,s,r,f,n,a,l]);if(g){let{width:e=0,padding:t=5*!m.linkedParent}=f&&(0,p.isObject)(f.symbol,!0)?f.symbol:{},i=f&&(0,p.isNumber)(f.indentation)?f.indentation:0;d=m.treeGrid.mapOfPosToGridNode,h=d?.[u],c=h?.depth||1,k.x+=e+2*t+(c-1)*i}return k}function F(e){let t,{pos:i,axis:s,label:r,treeGrid:o,options:n}=this,a=o?.labelIcon,l=r?.element,{treeGrid:d,options:h,chart:c,tickPositions:f}=s,u=d.mapOfPosToGridNode,m=(0,p.pick)(n?.labels,h?.labels),g=m&&(0,p.isObject)(m.symbol,!0)?m.symbol:{},k=u?.[i],{descendants:b,depth:x}=k||{},v=k&&b&&b>0,y="treegrid"===s.type&&l,P=f.indexOf(i)>-1,O="highcharts-treegrid-node-",E=O+"level-",N=c.styledMode;if(y&&k&&r.removeClass(RegExp(E+".*")).addClass(E+x),e.apply(this,Array.prototype.slice.call(arguments,1)),y&&v){var A;let e,i,s,n,l,h,c,f,u,b,x,v;t=d.isCollapsed(k),A={color:!N&&r.styles.color||"",collapsed:t,group:r.parentGroup,options:g,renderer:r.renderer,show:P,xy:r.xy},i=!(e=this.treeGrid).labelIcon,s=A.renderer,n=A.xy,h=(l=A.options).width||0,c=l.height||0,f=l.padding??this.axis.linkedParent?0:5,u={x:n.x-h/2-f,y:n.y-c/2},b=A.collapsed?90:180,x=A.show&&(0,p.isNumber)(u.y),(v=e.labelIcon)||(e.labelIcon=v=s.path(s.symbols[l.type](l.x||0,l.y||0,h,c)).addClass("highcharts-label-icon").add(A.group)),v[x?"show":"hide"](),s.styledMode||v.attr({cursor:"pointer",fill:A.color||"var(--highcharts-neutral-color-60)","stroke-width":1,stroke:l.lineColor,strokeWidth:l.lineWidth||0}),v[i?"attr":"animate"]({translateX:u.x,translateY:u.y,rotation:b}),r.addClass(O+(t?"collapsed":"expanded")).removeClass(O+(t?"expanded":"collapsed")),N||r.css({cursor:"pointer"}),[r,a].forEach(e=>{e&&!e.attachedTreeGridEvents&&((0,p.addEvent)(e.element,"mouseover",function(){r.addClass("highcharts-treegrid-node-active"),r.renderer.styledMode||r.css({textDecoration:"underline"})}),(0,p.addEvent)(e.element,"mouseout",function(){let e;e=(0,p.isObject)(m.style)?m.style:{},r.removeClass("highcharts-treegrid-node-active"),r.renderer.styledMode||r.css({textDecoration:e.textDecoration||"none"})}),(0,p.addEvent)(e.element,"click",function(){o.toggleCollapse()}),e.attachedTreeGridEvents=!0)})}else a&&((0,p.removeEvent)(l),r?.css({cursor:"default"}),a.destroy(),o.labelIcon=void 0)}class V{static compose(e){let t=e.prototype;t.toggleCollapse||((0,p.addEvent)(e,"init",D),(0,p.wrap)(t,"getLabelPosition",_),(0,p.wrap)(t,"renderLabel",F),t.collapse=function(e){this.treeGrid.collapse(e)},t.expand=function(e){this.treeGrid.expand(e)},t.toggleCollapse=function(e){this.treeGrid.toggleCollapse(e)})}constructor(e){this.tick=e}collapse(e){let{pos:t,axis:i}=this.tick,{treeGrid:s,brokenAxis:r}=i,o=s.mapOfPosToGridNode;r&&o&&r.setBreaks(s.collapse(o[t]),e??!0)}destroy(){this.labelIcon?.destroy()}expand(e){let{pos:t,axis:i}=this.tick,{treeGrid:s,brokenAxis:r}=i,o=s.mapOfPosToGridNode;r&&o&&r.setBreaks(s.expand(o[t]),e??!0)}toggleCollapse(e=!0){let{axis:t,pos:i}=this.tick,{brokenAxis:s,treeGrid:r}=t;if(s&&r.mapOfPosToGridNode){let o=!!(t.scrollbar&&t.staticScale),n=t.pos+t.len+(r.pendingSizeAdjustment||0);if(r.pendingSizeAdjustment=0,s.setBreaks(r.toggleCollapse(r.mapOfPosToGridNode[i]),o&&e),o){let e=t.toValue(t.toPixels(t.dataMax)),i=t.toValue(n)-t.tickmarkOffset,s=t.userMin??t.min;if(r.adjustedMax=e!==t.dataMax?e-t.tickmarkOffset:void 0,i>t.dataMax){let e=n-t.toPixels(t.dataMax+t.tickmarkOffset);i=r.adjustedMax??t.dataMax,(s=t.toValue(t.toPixels(s-t.tickmarkOffset)-e)+t.tickmarkOffset)<t.dataMin&&(e=t.toPixels(t.dataMin)-t.toPixels(s),s=t.dataMin,r.pendingSizeAdjustment=e)}t.setExtremes((0,p.correctFloat)(s),(0,p.correctFloat)(i),!1,!1,{trigger:"toggleCollapse"})}e&&t.chart.redraw()}}}var X=h(620),q=h.n(X);let{getLevelOptions:U}={getColor:function(e,t){let i,s,r,o,n,a,l=t.index,d=t.mapOptionsToLevel,h=t.parentColor,c=t.parentColorIndex,f=t.series,u=t.colors,m=t.siblings,g=f.points,k=f.chart.options.chart;if(e){let b;i=g[e.i],s=d[e.level]||{},i&&s.colorByPoint&&(o=i.index%(u?u.length:k.colorCount),r=u&&u[o]),f.chart.styledMode||(n=(0,p.pick)(i&&i.options.color,s&&s.color,r,h&&((b=s&&s.colorVariation)&&"brightness"===b.key&&l&&m?q().parse(h).brighten(b.to*(l/m)).get():h),f.color)),a=(0,p.pick)(i&&i.options.colorIndex,s&&s.colorIndex,o,c,t.colorIndex)}return{color:n,colorIndex:a}},getLevelOptions:function(e){let t,i,s,r,o,n,a={};if((0,p.isObject)(e))for(r=(0,p.isNumber)(e.from)?e.from:1,n=e.levels,i={},t=(0,p.isObject)(e.defaults)?e.defaults:{},(0,p.isArray)(n)&&(i=n.reduce((e,i)=>{let s,o,n;return(0,p.isObject)(i)&&(0,p.isNumber)(i.level)&&(n=(0,p.merge)({},i),o=(0,p.pick)(n.levelIsConstant,t.levelIsConstant),delete n.levelIsConstant,delete n.level,s=i.level+(o?0:r-1),(0,p.isObject)(e[s])?(0,p.merge)(!0,e[s],n):e[s]=n),e},{})),o=(0,p.isNumber)(e.to)?e.to:1,s=0;s<=o;s++)a[s]=(0,p.merge)({},t,(0,p.isObject)(i[s])?i[s]:{});return a},getNodeWidth:function(e,t){let{chart:i,options:s}=e,{nodeDistance:r=0,nodeWidth:o=0}=s,{plotSizeX:n=1}=i;if("auto"===o){if("string"==typeof r&&/%$/.test(r))return n/(t+parseFloat(r)/100*(t-1));let e=Number(r);return(n+e)/(t||1)-e}return(0,p.relativeLength)(o,n)},setTreeValues:function e(t,i){let s=i.before,r=i.idRoot,o=i.mapIdToNode[r],n=!1!==i.levelIsConstant,a=i.points[t.i],l=a&&a.options||{},d=[],h=0;t.levelDynamic=t.level-(n?0:o.level),t.name=(0,p.pick)(a&&a.name,""),t.visible=r===t.id||!0===i.visible,"function"==typeof s&&(t=s(t,i)),t.children.forEach((s,r)=>{let o=(0,p.extend)({},i);(0,p.extend)(o,{index:r,siblings:t.children.length,visible:t.visible}),s=e(s,o),d.push(s),s.visible&&(h+=s.val)});let c=(0,p.pick)(l.value,h);return t.visible=c>=0&&(h>0||t.visible),t.children=d,t.childrenTotal=h,t.isLeaf=t.visible&&!h,t.val=c,t},updateRootId:function(e){let t,i;return(0,p.isObject)(e)&&(i=(0,p.isObject)(e.options)?e.options:{},t=(0,p.pick)(e.rootNode,i.rootId,""),(0,p.isObject)(e.userOptions)&&(e.userOptions.rootId=t),e.rootNode=t),t}};function $(e){return Array(e.dataTable.rowCount).fill(void 0).map((t,i)=>e.dataTable.getRowObject(i))}function K(e){return{from:e.collapseStart||0,to:e.collapseEnd||0,showPoints:!1}}function Y(e,t,i){var s;let r,o=[],n=[],a={},l=t||!1,d={},h=-1,c=H(e,{after:function(e){let t=d[e.pos],i=0,s=0;t.children.forEach(function(e){s+=(e.descendants||0)+1,i=Math.max((e.height||0)+1,i)}),t.descendants=s,t.height=i,t.collapsed&&n.push(t)},before:function(e){let t,i,s=(0,p.isObject)(e.data,!0)?e.data:{},r=(0,p.isString)(s.name)?s.name:"",n=a[e.parent],c=(0,p.isObject)(n,!0)?d[n.pos]:null;l&&(0,p.isObject)(c,!0)&&(t=(0,p.find)(c.children,function(e){return e.name===r}))?(i=t.pos,t.nodes.push(e)):i=h++,!d[i]&&(d[i]=t={depth:c?c.depth+1:0,name:r,id:s.id,nodes:[e],children:[],pos:i},-1!==i&&o.push(r),(0,p.isObject)(c,!0)&&c.children.push(t)),(0,p.isString)(e.id)&&(a[e.id]=e),t&&!0===s.collapsed&&(t.collapsed=!0),e.pos=i}});return s=d,{categories:o,mapOfIdToNode:a,mapOfPosToGridNode:d=(r=function(e,t,s){let o=e.nodes,n=t+(-1===t?0:i-1),a=(n-t)/2,l=t+a;return o.forEach(function(e){let i=e.data;(0,p.isObject)(i,!0)&&(i.y=t+(i.yIndex||0)),e.pos=l}),s[l]=e,e.pos=l,e.tickmarkOffset=a+.5,e.collapseStart=n+.5,e.children.forEach(function(e){r(e,n+1,s),n=(e.collapseEnd||0)-.5}),e.collapseEnd=n+.5,s})(s["-1"],-1,{}),collapsedNodes:n,tree:c}}function J(e){let t=e.target;t.axes.filter(e=>"treegrid"===e.type).forEach(function(i){let s=i.options,r=s.labels,o=i.uniqueNames,n=t.time.parse(s.max),a=!i.treeGrid.mapOfPosToGridNode||i.series.some(function(e){return!e.hasRendered||e.isDirtyData||e.isDirty}),l=0,d,h;if(a){let s=[];if(d=i.series.reduce(function(e,i){let r=$(i),n=r[0],a=Array.isArray(n)&&!n.find(e=>"object"==typeof e);return s.push(a),i.visible&&(r.forEach(function(s){(a||i.options.keys?.length)&&(s=i.pointClass.prototype.optionsToObject.call({series:i},s),i.pointClass.setGanttPointAliases(s,t)),(0,p.isObject)(s,!0)&&(s.yIndex=l,s.seriesIndex=i.index,e.push(s))}),!0===o&&l++),e},[]),n&&d.length<n)for(let e=d.length;e<=n;e++)d.push({name:e+"​"});i.categories=(h=Y(d,o||!1,!0===o?l:1)).categories,i.treeGrid.mapOfPosToGridNode=h.mapOfPosToGridNode,i.hasNames=!0,i.treeGrid.tree=h.tree,i.series.forEach(e=>{let t=d.filter(t=>t.seriesIndex===e.index);t.forEach(e=>{delete e.seriesIndex,delete e.yIndex}),e.visible&&e.setData(t,!1)}),i.treeGrid.mapOptionsToLevel=U({defaults:r,from:1,levels:r?.levels,to:i.treeGrid.tree?.height}),"beforeRender"===e.type&&(i.treeGrid.collapsedNodes=h.collapsedNodes)}})}function Q(e,t){let i=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,o=this.ticks,n=o[t],a,l,d;s&&this.treeGrid.mapOfPosToGridNode?((a=i[(d=this.treeGrid.mapOfPosToGridNode[t]).depth])&&(l={labels:a}),!n&&r?o[t]=n=new r(this,t,void 0,void 0,{category:d.name,tickmarkOffset:d.tickmarkOffset,options:l}):(n.parameters.category=d.name,n.options=l,n.addLabel(),this.isDirty=!0)):e.apply(this,Array.prototype.slice.call(arguments,1))}function Z(e,t,i,s){let r=this,o="treegrid"===i.type;r.treeGrid||(r.treeGrid=new ei(r)),o&&((0,p.addEvent)(t,"beforeRender",J),(0,p.addEvent)(t,"beforeRedraw",J),(0,p.addEvent)(t,"addSeries",function(e){if(e.options.data){let t=Y(e.options.data,i.uniqueNames||!1,1);r.treeGrid.collapsedNodes=(r.treeGrid.collapsedNodes||[]).concat(t.collapsedNodes)}}),(0,p.addEvent)(r,"foundExtremes",function(){r.treeGrid.collapsedNodes?.forEach(function(e){let t=r.treeGrid.collapse(e);r.brokenAxis&&(r.brokenAxis.setBreaks(t,!1),r.treeGrid.collapsedNodes&&(r.treeGrid.collapsedNodes=r.treeGrid.collapsedNodes.filter(t=>e.collapseStart!==t.collapseStart||e.collapseEnd!==t.collapseEnd)))})}),(0,p.addEvent)(r,"afterBreaks",function(){"yAxis"===r.coll&&!r.staticScale&&r.chart.options.chart.height&&(r.isDirty=!0)}),i=(0,p.merge)({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-3,height:6,width:8}},uniqueNames:!1},i,{reversed:!0})),e.apply(r,[t,i,s]),o&&(r.hasNames=!0,r.options.showLastLabel=!0)}function ee(e){let t=this.options,i=this.chart.time,s="number"==typeof t.linkedTo?this.chart[this.coll]?.[t.linkedTo]:void 0;if("treegrid"===this.type){if(this.min=this.userMin??i.parse(t.min)??this.dataMin,this.max=this.userMax??i.parse(t.max)??this.dataMax,(0,p.fireEvent)(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],s){let e=s.getExtremes();this.min=e.min??e.dataMin,this.max=e.max??e.dataMax,this.tickPositions=s.tickPositions}this.linkedParent=s}else e.apply(this,Array.prototype.slice.call(arguments,1))}function et(e){let t=this;"treegrid"===this.type&&t.visible&&t.tickPositions.forEach(function(e){let i=t.ticks[e];i.label?.attachedTreeGridEvents&&((0,p.removeEvent)(i.label.element),i.label.attachedTreeGridEvents=!1)}),e.apply(t,Array.prototype.slice.call(arguments,1))}class ei{static compose(e,t,i,s){var o,n,a;if(!e.keepProps.includes("treeGrid")){let t=e.prototype;e.keepProps.push("treeGrid"),(0,p.wrap)(t,"generateTick",Q),(0,p.wrap)(t,"init",Z),(0,p.wrap)(t,"setTickInterval",ee),(0,p.wrap)(t,"redraw",et),t.utils={getNode:R},r||(r=s)}return o=e,n=t,a=s,o.keepProps.includes("grid")||(o.keepProps.push("grid"),o.prototype.getMaxLabelDimensions=y,(0,p.wrap)(o.prototype,"unsquish",z),(0,p.wrap)(o.prototype,"getOffset",P),(0,p.addEvent)(o,"init",C),(0,p.addEvent)(o,"afterGetTitlePosition",O),(0,p.addEvent)(o,"afterInit",E),(0,p.addEvent)(o,"afterRender",N),(0,p.addEvent)(o,"afterSetAxisTranslation",A),(0,p.addEvent)(o,"afterSetOptions",w),(0,p.addEvent)(o,"afterSetOptions",G),(0,p.addEvent)(o,"afterSetScale",I),(0,p.addEvent)(o,"afterTickSize",B),(0,p.addEvent)(o,"trimTicks",j),(0,p.addEvent)(o,"destroy",M),(0,p.addEvent)(n,"afterSetChartSize",T),(0,p.addEvent)(a,"afterGetLabelPosition",L),(0,p.addEvent)(a,"labelFormat",S)),g.compose(e,i),V.compose(s),e}constructor(e){this.pendingSizeAdjustment=0,this.axis=e}setCollapsedStatus(e){let t=this.axis,i=t.chart;t.series.forEach(function(t){let s=$(t);if(e.id&&s){let r=i.get(e.id),o=s[t.data.indexOf(r)];t.dataTable.setRow({collapsed:e.collapsed},t.data.indexOf(r)),r&&(0,p.isObject)(o,!0)&&(r.collapsed=e.collapsed,o.collapsed=e.collapsed)}})}collapse(e){let t=this.axis,i=t.options.breaks||[],s=K(e);return i.push(s),e.collapsed=!0,t.treeGrid.setCollapsedStatus(e),i}expand(e){let t=this.axis,i=K(e);return e.collapsed=!1,t.treeGrid.setCollapsedStatus(e),t.options.breaks?.reduce(function(e,t){return(t.to!==i.to||t.from!==i.from)&&e.push(t),e},[])||[]}getTickPositions(){let e=this.axis,t=Math.floor(e.min/e.tickInterval)*e.tickInterval,i=Math.ceil(e.max/e.tickInterval)*e.tickInterval;return Object.keys(e.treeGrid.mapOfPosToGridNode||{}).reduce(function(s,r){let o=+r;return o>=t&&o<=i&&!e.brokenAxis?.isInAnyBreak(o)&&s.push(o),s},[])}isCollapsed(e){let t=this.axis.options.breaks||[],i=K(e);return t.some(function(e){return e.from===i.from&&e.to===i.to})}toggleCollapse(e){return this.isCollapsed(e)?this.expand(e):this.collapse(e)}}let es=f();ei.compose(es.Axis,es.Chart,es.Series,es.Tick);let er=f();return c.default})());