!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/broken-axis
 * @requires highcharts
 *
 * (c) 2009-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.StackItem):"function"==typeof define&&define.amd?define("highcharts/modules/broken-axis",["highcharts/highcharts"],function(t){return e(t,t.StackItem)}):"object"==typeof exports?exports["highcharts/modules/broken-axis"]=e(t._Highcharts,t._Highcharts.StackItem):t.Highcharts=e(t.Highcharts,t.Highcharts.StackItem)}("u"<typeof window?this:window,function(t,e){return function(){"use strict";var n,r={184:function(t){t.exports=e},944:function(e){e.exports=t}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}};return r[t](n,n.exports,o),n.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var s={};o.d(s,{default:function(){return y}});var a=o(944),f=o.n(a),l=o(184),u=o.n(l),c=f().doc;function h(t,e,n,r){void 0===r&&(r={});var i="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(i,"hcEvents")||(i.hcEvents={});var o=i.hcEvents;f().Point&&t instanceof f().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,e,n,!!f().supportsPassiveEvents&&{passive:void 0===r.passive?-1!==e.indexOf("touch"):r.passive,capture:!1}),o[e]||(o[e]=[]);var a={fn:n,order:"number"==typeof r.order?r.order:1/0};return o[e].push(a),o[e].sort(function(t,e){return t.order-e.order}),function(){!function(t,e,n){function r(e,n){var r=t.removeEventListener;r&&r.call(t,e,n,!1)}function i(n){var i,o;if(t.nodeName){e?(i={})[e]=!0:i=n;var s=i,a=function(t,e){if(n[e])for(o=n[e].length;o--;)r(e,n[e][o].fn)};for(var f in s)Object.hasOwnProperty.call(s,f)&&a.call(s[f],s[f],f,s)}}var o="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(o,"hcEvents")){var s=o.hcEvents;if(e){var a=s[e]||[];n?(s[e]=a.filter(function(t){return n!==t.fn}),r(e,n)):(i(s),s[e]=[])}else i(s),delete o.hcEvents}}(t,e,n)}}function v(t,e){var n;for(n in t||(t={}),e)t[n]=e[n];return t}function p(t,e,n,r){if(n=n||{},(null==c?void 0:c.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==f())){var i=c.createEvent("Events");i.initEvent(e,!0,!0),n=v(i,n),t.dispatchEvent?t.dispatchEvent(n):t.fireEvent(e,n)}else if(t.hcEvents){n.target||v(n,{preventDefault:function(){n.defaultPrevented=!0},target:t,type:e});for(var o=[],s=t,a=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[e]&&(o.length&&(a=!0),o.unshift.apply(o,s.hcEvents[e])),s=Object.getPrototypeOf(s);a&&o.sort(function(t,e){return t.order-e.order}),o.forEach(function(e){!1===e.fn.call(t,n,t)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(t,n)}f().win;var d=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var n,r=t.length;for(n=0;n<r;n++)if(e(t[n],n))return t[n]};function k(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function m(){for(var t=arguments,e=t.length,n=0;n<e;n++){var r=t[n];if(null!=r)return r}}!function(t){function e(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function n(){var t;Object.keys((null==(t=this.options.breaks)?void 0:t[0])||{}).length&&(this.options.ordinal=!1)}function r(){var t=this.brokenAxis;if(null==t?void 0:t.hasBreaks){for(var e=this.tickPositions,n=this.tickPositions.info,r=[],i=0;i<e.length;i++)t.isInAnyBreak(e[i])||r.push(e[i]);this.tickPositions=r,this.tickPositions.info=n}}function i(){this.brokenAxis||(this.brokenAxis=new l(this))}function o(){var t,e,n=this.isDirty,r=this.options.connectNulls,i=this.points,o=this.xAxis,s=this.yAxis;if(n)for(var a=i.length;a--;){var f=i[a],l=(null!==f.y||!1!==r)&&((null==(t=null==o?void 0:o.brokenAxis)?void 0:t.isInAnyBreak(f.x,!0))||(null==(e=null==s?void 0:s.brokenAxis)?void 0:e.isInAnyBreak(f.y,!0)));f.visible=!l&&!1!==f.options.visible}}function s(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,m(this.pointArrayMap,["y"]))}function a(t,e){var n,r,i,o,s=this,a=s.points;if(null==(n=null==t?void 0:t.brokenAxis)?void 0:n.hasBreaks){var f=t.brokenAxis;e.forEach(function(e){r=(null==f?void 0:f.breakArray)||[],i=t.isXAxis?t.min:m(s.options.threshold,t.min),a.forEach(function(n){var s;o=null!=(s=n["stack"+e.toUpperCase()])?s:n[e],r.forEach(function(e){if(k(i)&&k(o)){var r="";i<e.from&&o>e.to||i>e.from&&o<e.from?r="pointBreak":(i<e.from&&o>e.from&&o<e.to||i>e.from&&o>e.to&&o<e.from)&&(r="pointInBreak"),r&&p(t,r,{point:n,brk:e})}})})})}}function f(){var t,e=this.currentDataGrouping,n=null==e?void 0:e.gapSize,r=this.points.slice(),i=this.yAxis,o=this.options.gapSize,s=r.length-1;if(o&&s>0){"value"!==this.options.gapUnit&&(o*=this.basePointRange),n&&n>o&&n>=this.basePointRange&&(o=n);for(var a=void 0,f=void 0;s--;)if(f&&!1!==f.visible||(f=r[s+1]),a=r[s],!1!==f.visible&&!1!==a.visible){if(f.x-a.x>o){var l=(a.x+f.x)/2;r.splice(s+1,0,{isNull:!0,x:l}),i.stacking&&this.options.stacking&&((i.stacking.stacks[this.stackKey][l]=new(u())(i,i.options.stackLabels,!1,l,null!=(t=this.stack)?t:"")).total=0)}f=a}}return this.getGraphPath(r)}t.compose=function(t,l){if(!t.keepProps.includes("brokenAxis")){t.keepProps.push("brokenAxis"),h(t,"init",i),h(t,"afterInit",e),h(t,"afterSetTickPositions",r),h(t,"afterSetOptions",n);var u=l.prototype;u.drawBreaks=a,u.gappedPath=f,h(l,"afterGeneratePoints",o),h(l,"afterRender",s)}return t};var l=function(){function t(t){this.axis=t}return t.isInBreak=function(t,e){var n=t.repeat||1/0,r=t.from,i=t.to-t.from,o=e>=r?(e-r)%n:n-(r-e)%n;return t.inclusive?o<=i:o<i&&0!==o},t.lin2Val=function(e){var n=this.min||0,r=this.brokenAxis,i=null==r?void 0:r.breakArray;if(!(null==i?void 0:i.length)||!k(e))return e;var o=e;if(e>n)for(var s=0;s<i.length;s++){var a=i[s];if(a.from>o)break;a.to<=o&&a.to>n?o+=a.len:t.isInBreak(a,o)&&(o+=a.len)}else if(e<n)for(var f=0;f<i.length;f++){var a=i[f];if(a.from>n)break;a.from>=o&&a.from<n?o-=a.len:t.isInBreak(a,o)&&(o-=a.len)}return o},t.val2Lin=function(e){var n=this.min||0,r=this.brokenAxis,i=null==r?void 0:r.breakArray;if(!(null==i?void 0:i.length)||!k(e))return e;var o=e;if(e>n)for(var s=0;s<i.length;s++){var a=i[s];if(a.to<=e&&a.to>n)o-=a.len;else if(a.from>e)break;else if(t.isInBreak(a,e)){o-=e-a.from;break}}else if(e<n)for(var f=0;f<i.length;f++){var a=i[f];if(a.from>=e&&a.from<n)o+=a.len;else if(a.from>n)break;else if(t.isInBreak(a,e)){o+=a.to-e;break}}return o},t.prototype.findBreakAt=function(t,e){return d(e,function(e){return e.from<t&&t<e.to})},t.prototype.isInAnyBreak=function(e,n){var r,i,o,s=this.axis,a=s.options.breaks||[],f=a.length;if(f&&k(e)){for(;f--;)t.isInBreak(a[f],e)&&(r=!0,i||(i=m(a[f].showPoints,!s.isXAxis)));o=r&&n?r&&!i:r}return o},t.prototype.setBreaks=function(e,n){var r,i,o=this,s=o.axis,a=s.chart.time,f=("[object Array]"===(r=Object.prototype.toString.call(e))||"[object Array Iterator]"===r)&&!!Object.keys((null==e?void 0:e[0])||{}).length;s.isDirty=(null!=(i=o.hasBreaks)&&i)!==f,o.hasBreaks=f,null==e||e.forEach(function(t){t.from=a.parse(t.from)||0,t.to=a.parse(t.to)||0}),e!==s.options.breaks&&(s.options.breaks=s.userOptions.breaks=e),s.forceRedraw=!0,s.series.forEach(function(t){t.isDirty=!0}),f||s.val2lin!==t.val2Lin||(delete s.val2lin,delete s.lin2val),f&&(s.userOptions.ordinal=!1,s.lin2val=t.lin2Val,s.val2lin=t.val2Lin,s.setExtremes=function(t,e,n,r,i){var a;if(o.hasBreaks&&!(null==(a=s.treeGrid)?void 0:a.tree)){for(var f=this.brokenAxis.breakArray||[],l=void 0;l=o.findBreakAt(t,f);)t=l.to;for(;l=o.findBreakAt(e,f);)e=l.from;e<t&&(e=t)}s.constructor.prototype.setExtremes.call(this,t,e,n,r,i)},s.setAxisTranslation=function(){if(s.constructor.prototype.setAxisTranslation.call(this),o.unitLength=void 0,o.hasBreaks){var e,n,r,i,a,f,l,u,c,h,v=s.options.breaks||[],d=[],m=[],b=null!=(e=s.pointRangePadding)?e:0,x=0,y=null!=(n=s.userMin)?n:s.min,g=null!=(r=s.userMax)?r:s.max,A=null!=(i=s.dataMin)?i:y,E=null!=(a=s.dataMax)?a:g;k(s.threshold)&&(A=Math.min(null!=A?A:s.threshold,s.threshold),E=Math.max(null!=E?E:s.threshold,s.threshold)),(null==(f=s.treeGrid)?void 0:f.tree)||v.forEach(function(e){u=e.repeat||1/0,k(y)&&k(g)&&(t.isInBreak(e,y)&&(y+=e.to%u-y%u),t.isInBreak(e,g)&&(g-=g%u-e.from%u))}),k(A)&&k(E)&&v.forEach(function(t){for(c=t.from,u=t.repeat||1/0;c-u>A;)c-=u;for(;c<A;)c+=u;for(h=c;h<E;h+=u)d.push({value:h,move:"in"}),d.push({value:h+t.to-t.from,move:"out",size:t.breakSize})}),d.sort(function(t,e){return t.value===e.value?("in"!==t.move)-("in"!==e.move):t.value-e.value}),l=0,c=A,d.forEach(function(t){1===(l+="in"===t.move?1:-1)&&"in"===t.move&&(c=t.value),0===l&&k(c)&&(m.push({from:c,to:t.value,len:t.value-c-(t.size||0)}),k(y)&&k(g)&&c<g&&t.value>y&&(x+=t.value-c-(t.size||0)))}),o.breakArray=m,k(y)&&k(g)&&k(s.min)&&(o.unitLength=g-y-x+b,p(s,"afterBreaks"),s.staticScale?s.transA=s.staticScale:o.unitLength&&(s.transA*=(g-s.min+b)/o.unitLength),b&&(s.minPixelPadding=s.transA*(s.minPointOffset||0)),s.min=y,s.max=g)}}),m(n,!0)&&s.chart.redraw()},t}();t.Additions=l}(n||(n={}));var b=n,x=f();x.BrokenAxis=x.BrokenAxis||b,x.BrokenAxis.compose(x.Axis,x.Series);var y=f();return s.default}()});