!/**
 * Highcharts Gantt JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/grid-axis
 * @requires highcharts
 *
 * GridAxis
 *
 * (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(require("highcharts"),require("highcharts").Axis):"function"==typeof define&&define.amd?define("highcharts/modules/grid-axis",[["highcharts/highcharts"],["highcharts/highcharts","Axis"]],i):"object"==typeof exports?exports["highcharts/modules/grid-axis"]=i(require("highcharts"),require("highcharts").Axis):t.Highcharts=i(t.Highcharts,t.Highcharts.Axis)}(this,function(t,i){return function(){"use strict";var e,s,r={532:function(t){t.exports=i},944:function(i){i.exports=t}},o={};function n(t){var i=o[t];if(void 0!==i)return i.exports;var e=o[t]={exports:{}};return r[t](e,e.exports,n),e.exports}n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,{a:i}),i},n.d=function(t,i){for(var e in i)n.o(i,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:i[e]})},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var h={};n.d(h,{default:function(){return D}});var a=n(944),l=n.n(a),d=n(532),c=n.n(d),u=l().dateFormats,f=l().addEvent,g=l().defined,p=l().erase,m=l().find,x=l().isArray,v=l().isNumber,k=l().merge,b=l().pick,P=l().timeUnits,y=l().wrap;function w(t){return l().isObject(t,!0)}function L(t,i){var e={width:0,height:0};if(i.forEach(function(i){var s,r=t[i],o=0,n=0;w(r)&&(o=(s=w(r.label)?r.label:{}).getBBox?s.getBBox().height:0,s.textStr&&!v(s.textPxLength)&&(s.textPxLength=s.getBBox().width),n=v(s.textPxLength)?Math.round(s.textPxLength):0,s.textStr&&(n=Math.round(s.getBBox().width)),e.height=Math.max(o,e.height),e.width=Math.max(n,e.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){var s=this.treeGrid.mapOfPosToGridNode[-1].height||0;e.width+=this.options.labels.indentation*(s-1)}return e}function B(t){var i=this.grid,e=3===this.side;if(e||t.apply(this),!(null==i?void 0:i.isColumn)){var s=(null==i?void 0:i.columns)||[];e&&(s=s.slice().reverse()),s.forEach(function(t){t.getOffset()})}e&&t.apply(this)}function O(t){if(!0===(this.options.grid||{}).enabled){var i=this.axisTitle,e=this.height,r=this.horiz,o=this.left,n=this.offset,h=this.opposite,a=this.options,l=this.top,d=this.width,c=this.tickSize(),u=null==i?void 0:i.getBBox().width,f=a.title.x,g=a.title.y,p=b(a.title.margin,r?5:10),m=i?this.chart.renderer.fontMetrics(i).f:0,x=(r?l+e:o)+(r?1:-1)*(h?-1:1)*(c?c[0]/2:0)+(this.side===s.bottom?m:0);t.titlePosition.x=r?o-(u||0)/2-p+f:x+(h?d:0)+n+f,t.titlePosition.y=r?x-(h?e:0)+(h?m:-m)/2+n+g:l-p+g}}function T(){var t,i=this.chart,e=this.options.grid,s=void 0===e?{}:e,r=this.userOptions;if(s.enabled&&((t=this.options).labels.align=b(t.labels.align,"center"),this.categories||(t.showLastLabel=!1),this.labelRotation=0,t.labels.rotation=0,t.minTickInterval=1),s.columns)for(var o=this.grid.columns=[],n=this.grid.columnIndex=0;++n<s.columns.length;){var h=k(r,s.columns[n],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),a=new(c())(this.chart,h,"yAxis");a.grid.isColumn=!0,a.grid.columnIndex=n,p(i.axes,a),p(i[this.coll]||[],a),o.push(a)}}function M(){var t,i,e=this.axisTitle,r=this.grid,o=this.options;if(!0===(o.grid||{}).enabled){var n=this.min||0,h=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 l=o.lineWidth;if(l){var d=this.getLinePath(l),c=d[0],u=d[1],f=(this.tickSize("tick")||[1])[0]*(this.side===s.top||this.side===s.left?-1:1);if("M"===c[0]&&"L"===u[0]&&(this.horiz?(c[2]+=f,u[2]+=f):(c[1]+=f,u[1]+=f)),!this.horiz&&this.chart.marginRight){var g=["L",this.left,c[2]||0],p=[c,g],m=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(h+this.tickmarkOffset)],x=[["M",u[1]||0,this.toPixels(h+this.tickmarkOffset)],m];this.grid.upperBorder||n%1==0||(this.grid.upperBorder=this.grid.renderBorder(p)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:o.lineColor,"stroke-width":o.lineWidth}),this.grid.upperBorder.animate({d:p})),this.grid.lowerBorder||h%1==0||(this.grid.lowerBorder=this.grid.renderBorder(x)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:o.lineColor,"stroke-width":o.lineWidth}),this.grid.lowerBorder.animate({d:x}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:o.lineColor,"stroke-width":o.lineWidth}),this.grid.axisLineExtra.animate({d:d})):this.grid.axisLineExtra=this.grid.renderBorder(d),this.axisLine[this.showAxis?"show":"hide"]()}}if(((null==r?void 0:r.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,k=this.tickPositions[this.tickPositions.length-1],b=this.tickPositions[0],P=void 0,y=void 0;(P=this.hiddenLabels.pop())&&P.element;)P.show();for(;(y=this.hiddenMarks.pop())&&y.element;)y.show();(P=this.ticks[b].label)&&(n-b>v?this.hiddenLabels.push(P.hide()):P.show()),(P=this.ticks[k].label)&&(k-h>v?this.hiddenLabels.push(P.hide()):P.show());var w=this.ticks[k].mark;w&&k-h<v&&k-h>0&&this.ticks[k].isLast&&this.hiddenMarks.push(w.hide())}}}function W(){var t,i=null==(t=this.tickPositions)?void 0:t.info,e=this.options,s=e.grid||{},r=this.userOptions.labels||{};s.enabled&&(this.horiz?(this.series.forEach(function(t){t.options.pointRange=0}),i&&e.dateTimeLabelFormats&&e.labels&&!g(r.align)&&(!1===e.dateTimeLabelFormats[i.unitName].range||i.count>1)&&(e.labels.align="left",g(r.x)||(e.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function S(t){var i,e=this.options,s=t.userOptions,r=e&&w(e.grid)?e.grid:{};!0===r.enabled&&(i=k(!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&&(g(s.linkedTo)&&!g(s.tickPixelInterval)&&(i.tickPixelInterval=350),!(!g(s.tickPixelInterval)&&g(s.linkedTo))||g(s.tickPositioner)||g(s.tickInterval)||g(s.units)||(i.tickPositioner=function(t,e){var s,r,o=null==(r=null==(s=this.linkedParent)?void 0:s.tickPositions)?void 0:r.info;if(o){for(var n=i.units||[],h=void 0,a=1,l="year",d=0;d<n.length;d++){var c=n[d];if(c&&c[0]===o.unitName){h=d;break}}var u=v(h)&&n[h+1];if(u){l=u[0]||"year";var f=u[1];a=(null==f?void 0:f[0])||1}else"year"===o.unitName&&(a=10*o.count);var g=P[l];return this.tickInterval=g*a,this.chart.time.getTimeTicks({unitRange:g,count:a,unitName:l},t,e,this.options.startOfWeek)}})),k(!0,this.options,i),this.horiz&&(e.minPadding=b(s.minPadding,0),e.maxPadding=b(s.maxPadding,0)),v(e.grid.borderWidth)&&(e.tickWidth=e.lineWidth=r.borderWidth))}function A(t){var i=t.userOptions,e=(null==i?void 0:i.grid)||{},s=e.columns;e.enabled&&s&&k(!0,this.options,s[0])}function z(){(this.grid.columns||[]).forEach(function(t){return t.setScale()})}function E(t){var i=this.horiz,e=this.maxLabelDimensions,s=this.options.grid,r=void 0===s?{}:s;if(r.enabled&&e){var o=2*this.options.labels.distance,n=i?r.cellHeight||o+e.height:o+e.width;x(t.tickSize)?t.tickSize[0]=n:t.tickSize=[n,0]}}function I(){this.axes.forEach(function(t){var i;((null==(i=t.grid)?void 0:i.columns)||[]).forEach(function(t){t.setAxisSize(),t.setAxisTranslation()})})}function C(t){var i=this.grid;(i.columns||[]).forEach(function(i){return i.destroy(t.keepEvents)}),i.columns=void 0}function G(t){var i=t.userOptions||{},e=i.grid||{};e.enabled&&g(e.borderColor)&&(i.tickColor=i.lineColor=e.borderColor),this.grid||(this.grid=new j(this)),this.hiddenLabels=[],this.hiddenMarks=[]}function N(t){var i=this.label,e=this.axis,r=e.reversed,o=e.chart,n=e.options.grid||{},h=e.options.labels,a=h.align,l=s[e.side],d=t.tickmarkOffset,c=e.tickPositions,u=this.pos-d,f=v(c[t.index+1])?c[t.index+1]-d:(e.max||0)+d,g=e.tickSize("tick"),p=g?g[0]:0,m=g?g[1]/2:0;if(!0===n.enabled){var x,k=void 0,b=void 0,P=void 0;if("top"===l?x=(k=e.top+e.offset)-p:"bottom"===l?k=(x=o.chartHeight-e.bottom+e.offset)+p:(k=e.top+e.len-(e.translate(r?f:u)||0),x=e.top+e.len-(e.translate(r?u:f)||0)),"right"===l?P=(b=o.chartWidth-e.right+e.offset)+p:"left"===l?b=(P=e.left+e.offset)-p:(b=Math.round(e.left+(e.translate(r?f:u)||0))-m,P=Math.min(Math.round(e.left+(e.translate(r?u:f)||0))-m,e.left+e.len)),this.slotWidth=P-b,t.pos.x="left"===a?b:"right"===a?P:b+(P-b)/2,t.pos.y=x+(k-x)/2,i){var y=o.renderer.fontMetrics(i),w=i.getBBox().height;if(h.useHTML)t.pos.y+=y.b+-(w/2);else{var L=Math.round(w/y.h);t.pos.y+=(y.b-(y.h-y.f))/2+-((L-1)*y.h/2)}}t.pos.x+=e.horiz&&h.x||0}}function H(t){var i,e=t.axis,s=t.value;if(null==(i=e.options.grid)?void 0:i.enabled){var r=e.tickPositions,o=(e.linkedParent||e).series[0],n=s===r[0],h=s===r[r.length-1],a=o&&m(o.options.data,function(t){return t[e.isXAxis?"x":"y"]===s}),d=void 0;a&&o.is("gantt")&&(d=k(a),l().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(d,e.chart)),t.isFirst=n,t.isLast=h,t.point=d}}function F(){var t,i,e=this.options,s=e.grid||{},r=this.categories,o=this.tickPositions,n=o[0],h=o[1],a=o[o.length-1],l=o[o.length-2],d=null==(t=this.linkedParent)?void 0:t.min,c=null==(i=this.linkedParent)?void 0:i.max,u=d||this.min,f=c||this.max,g=this.tickInterval,p=v(u)&&u>=n+g&&u<h,m=v(u)&&n<u&&n+g>u,x=v(f)&&a>f&&a-g<f,k=v(f)&&f<=a-g&&f>l;!0===s.enabled&&!r&&(this.isXAxis||this.isLinked)&&((m||p)&&!e.startOnTick&&(o[0]=u),(x||k)&&!e.endOnTick&&(o[o.length-1]=f))}function R(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)))}(e=s||(s={}))[e.top=0]="top",e[e.right=1]="right",e[e.bottom=2]="bottom",e[e.left=3]="left";var j=function(){function t(t){this.axis=t}return t.prototype.isOuterAxis=function(){var t,i=this.axis,e=i.chart,s=i.grid.columnIndex,r=(null==(t=i.linkedParent)?void 0:t.grid.columns)||i.grid.columns||[],o=s?i.linkedParent:i,n=-1,h=0;return 3===i.side&&!e.inverted&&r.length?!i.linkedParent:((e[i.coll]||[]).forEach(function(t,e){t.side!==i.side||t.options.isInternal||(h=e,t===o&&(n=e))}),h===n&&(!v(s)||r.length===s))},t.prototype.renderBorder=function(t){var i=this.axis,e=i.chart.renderer,s=i.options,r=e.path(t).addClass("highcharts-axis-line").add(i.axisGroup);return e.styledMode||r.attr({stroke:s.lineColor,"stroke-width":s.lineWidth,zIndex:7}),r},t}();u.E=function(t){return this.dateFormat("%a",t,!0).charAt(0)},u.W=function(t){var i=this.toParts(t),e=(i[7]+6)%7,s=i.slice(0);s[2]=i[2]-e+3;var r=this.toParts(this.makeTime(s[0],0,1));return 4!==r[7]&&(i[1]=0,i[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()};var q=l();({compose:function(t,i,e){return t.keepProps.includes("grid")||(t.keepProps.push("grid"),t.prototype.getMaxLabelDimensions=L,y(t.prototype,"unsquish",R),y(t.prototype,"getOffset",B),f(t,"init",G),f(t,"afterGetTitlePosition",O),f(t,"afterInit",T),f(t,"afterRender",M),f(t,"afterSetAxisTranslation",W),f(t,"afterSetOptions",S),f(t,"afterSetOptions",A),f(t,"afterSetScale",z),f(t,"afterTickSize",E),f(t,"trimTicks",F),f(t,"destroy",C),f(i,"afterSetChartSize",I),f(e,"afterGetLabelPosition",N),f(e,"labelFormat",H)),t}}).compose(q.Axis,q.Chart,q.Tick);var D=l();return h.default}()});