!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/variwide
 * @requires highcharts
 *
 * Highcharts variwide module
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/variwide",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/variwide"]=r(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=r(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,r){return function(){"use strict";var e,i,o={512:function(t){t.exports=r},944:function(r){r.exports=t}},n={};function s(t){var r=n[t];if(void 0!==r)return r.exports;var e=n[t]={exports:{}};return o[t](e,e.exports,s),e.exports}s.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(r,{a:r}),r},s.d=function(t,r){for(var e in r)s.o(r,e)&&!s.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},s.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};var a={};s.d(a,{default:function(){return H}});var c=s(944),p=s.n(c),h=s(512),u=s.n(h),l=function(t,r,e){if(e||2==arguments.length)for(var i,o=0,n=r.length;o<n;o++)!i&&o in r||(i||(i=Array.prototype.slice.call(r,0,o)),i[o]=r[o]);return t.concat(i||Array.prototype.slice.call(r))};function f(t,r,e,i){void 0===i&&(i={});var o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});var n=o.hcEvents;p().Point&&t instanceof p().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,r,e,!!p().supportsPassiveEvents&&{passive:void 0===i.passive?-1!==r.indexOf("touch"):i.passive,capture:!1}),n[r]||(n[r]=[]);var a={fn:e,order:"number"==typeof i.order?i.order:1/0};return n[r].push(a),n[r].sort(function(t,r){return t.order-r.order}),function(){!function(t,r,e){function i(r,e){var i=t.removeEventListener;i&&i.call(t,r,e,!1)}function o(e){var o,n;t.nodeName&&(r?(o={})[r]=!0:o=e,x(o,function(t,r){if(e[r])for(n=e[r].length;n--;)i(r,e[r][n].fn)}))}var n="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(n,"hcEvents")){var s=n.hcEvents;if(r){var a=s[r]||[];e?(s[r]=a.filter(function(t){return e!==t.fn}),i(r,e)):(o(s),s[r]=[])}else o(s),delete n.hcEvents}}(t,r,e)}}function d(t,r,e){void 0===r&&(r=0);var i=r%2/2,o=e?-1:1;return(Math.round(t*o-i)+i)*o}function v(t){return g(t)&&"number"==typeof t.nodeType}function y(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function g(t,r){var e;return!!t&&"object"==typeof t&&(!r||"[object Array]"!==(e=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==e)}function x(t,r,e){for(var i in t)Object.hasOwnProperty.call(t,i)&&r.call(e||t[i],t[i],i,t)}function b(){for(var t=arguments,r=t.length,e=0;e<r;e++){var i=t[e];if(null!=i)return i}}p().doc,p().win,Array.prototype.find;var w=p().composed;function O(t){var r;this.variwide&&this.cross&&this.cross.attr("stroke-width",null==(r=t.point)?void 0:r.crosshairWidth)}function m(){var t=this;this.chart.labelCollectors.push(function(){return t.variwide?t.tickPositions.filter(function(r){return!!t.ticks[r].label}).map(function(r,e){var i,o=t.ticks[r].label;return o.labelrank=null==(i=t.zData)?void 0:i[e],o}):[]})}function _(t){var r=this.axis,e=r.horiz?"x":"y";r.variwide&&(this[e+"Orig"]=t.pos[e],this.postTranslate(t.pos,e,this.pos))}function A(t,r,e){var i=this.axis,o=t[r]-i.pos;i.horiz||(o=i.len-o),o=i.series[0].postTranslate(e,o),i.horiz||(o=i.len-o),t[r]=i.pos+o}function P(t,r,e,i,o,n,s,a){var c=Array.prototype.slice.call(arguments,1),p=o?"x":"y";this.axis.variwide&&"number"==typeof this[p+"Orig"]&&(c[+!o]=this[p+"Orig"]);var h=t.apply(this,c);return this.axis.variwide&&this.axis.categories&&this.postTranslate(h,p,this.pos),h}var j=function(t,r){var e;if(e="Variwide",0>w.indexOf(e)&&w.push(e)){var i,o,n=r.prototype;f(t,"afterDrawCrosshair",O),f(t,"afterRender",m),f(r,"afterGetPosition",_),n.postTranslate=A,o=n[i="getLabelPosition"],n[i]=function(){var t=arguments,r=this;return P.apply(this,[function(){return o.apply(r,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}},T=(e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)},function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}),k=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return T(r,t),r.prototype.isValid=function(){return y(this.y)&&y(this.z)},r}(u().seriesTypes.column.prototype.pointClass),E={pointPadding:0,groupPadding:0},z=(i=function(t,r){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])})(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}i(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),S=u().seriesTypes.column,C=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return z(r,t),r.prototype.processData=function(t){this.totalZ=0,this.relZ=[],u().seriesTypes.column.prototype.processData.call(this,t);var r=this.getColumn("z");(this.xAxis.reversed?r.slice().reverse():r).forEach(function(t,r){this.relZ[r]=this.totalZ,this.totalZ+=t},this),this.xAxis.categories&&(this.xAxis.variwide=!0,this.xAxis.zData=r)},r.prototype.postTranslate=function(t,r,e){var i=this.xAxis,o=this.relZ,n=i.reversed?o.length-t:t,s=i.reversed?-1:1,a=i.toPixels(i.reversed?(i.dataMax||0)+i.pointRange:i.dataMin||0),c=i.toPixels(i.reversed?i.dataMin||0:(i.dataMax||0)+i.pointRange),p=Math.abs(c-a),h=this.totalZ,u=this.chart.inverted?c-(this.chart.plotTop-s*i.minPixelPadding):a-this.chart.plotLeft-s*i.minPixelPadding,l=n/o.length*p,f=(n+s)/o.length*p,d=b(o[n],h)/h*p,v=b(o[n+s],h)/h*p;return e&&(e.crosshairWidth=v-d),u+d+(r-(u+l))*(v-d)/(f-l)},r.prototype.translate=function(){this.crispOption=this.options.crisp,this.options.crisp=!1,t.prototype.translate.call(this),this.options.crisp=this.crispOption},r.prototype.correctStackLabels=function(){for(var t,r,e,i,o=this.options,n=this.yAxis,s=0,a=this.points;s<a.length;s++){var c=a[s];i=c.x,r=c.shapeArgs.width,(e=n.stacking.stacks[(this.negStacks&&c.y<(o.startFromThreshold?0:o.threshold)?"-":"")+this.stackKey])&&(t=e[i])&&!c.isNull&&t.setOffset(-(r/2)||0,r||0,void 0,void 0,c.plotX,this.xAxis)}},r.prototype.getXExtremes=function(t){var r=function(t){for(var r=t.length,e=t[0];r--;)t[r]>e&&(e=t[r]);return e}(t),e=this.getColumn("z")[t.indexOf(r)];return{min:function(t){for(var r=t.length,e=t[0];r--;)t[r]<e&&(e=t[r]);return e}(t),max:r+(this.xAxis.categories?0:e)}},r.compose=j,r.defaultOptions=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i,o=l([t],r,!0),n={},s=function(t,r){return"object"!=typeof t&&(t={}),x(r,function(e,i){if("__proto__"!==i&&"constructor"!==i){var o;!g(e,!0)||(o=null==e?void 0:e.constructor,g(e,!0)&&!v(e)&&(null==o?void 0:o.name)&&"Object"!==o.name)||v(e)?t[i]=r[i]:t[i]=s(t[i]||{},e)}}),t};!0===t&&(n=o[1],o=Array.prototype.slice.call(o,2));var a=o.length;for(i=0;i<a;i++)n=s(n,o[i]);return n}(S.defaultOptions,E),r}(S);f(C,"afterColumnTranslate",function(){for(var t=this.xAxis,r=this.chart.inverted,e=-1,i=0,o=this.points;i<o.length;i++){var n=o[i];++e;var s=n.shapeArgs||{},a=s.x,c=void 0===a?0:a,p=s.width,h=void 0===p?0:p,u=n.plotX,l=void 0===u?0:u,f=n.tooltipPos,v=n.z,y=void 0===v?0:v,g=void 0,x=void 0;t.variwide?(g=this.postTranslate(e,c,n),x=this.postTranslate(e,c+h)):(g=l,x=t.translate(n.x+y,!1,!1,!1,!0)),this.crispOption&&(g=d(g,this.borderWidth),x=d(x,this.borderWidth)),s.x=g,s.width=Math.max(x-g,1),n.plotX=(g+x)/2,f&&(r?f[1]=t.len-s.x-s.width/2:f[0]=s.x+s.width/2)}this.options.stacking&&this.correctStackLabels()},{order:2}),function(t,r){var e;for(e in t||(t={}),r)t[e]=r[e]}(C.prototype,{irregularWidths:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],parallelArrays:["x","y","z"],pointClass:k}),u().registerSeriesType("variwide",C);var M=p();C.compose(M.Axis,M.Tick);var H=p();return a.default}()});