/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/pareto
 * @requires highcharts
 *
 * Pareto series type for Highcharts
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Sebastian Bochan
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */import*as e from"../highcharts.js";var t,s={};s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let r=e.default;var i=s.n(r);let n=e.default.Series;var o=s.n(n);let{doc:a,win:l}=i();function c(e,t,s,r={}){let n="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(n,"hcEvents")||(n.hcEvents={});let o=n.hcEvents;i().Point&&e instanceof i().Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let a=e.addEventListener;a&&a.call(e,t,s,!!i().supportsPassiveEvents&&{passive:void 0===r.passive?-1!==t.indexOf("touch"):r.passive,capture:!1}),o[t]||(o[t]=[]);let l={fn:s,order:"number"==typeof r.order?r.order:1/0};return o[t].push(l),o[t].sort((e,t)=>e.order-t.order),function(){!function(e,t,s){function r(t,s){let r=e.removeEventListener;r&&r.call(e,t,s,!1)}function i(s){let i,n;e.nodeName&&(t?(i={})[t]=!0:i=s,f(i,function(e,t){if(s[t])for(n=s[t].length;n--;)r(t,s[t][n].fn)}))}let n="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(n,"hcEvents")){let e=n.hcEvents;if(t){let n=e[t]||[];s?(e[t]=n.filter(function(e){return s!==e.fn}),r(t,s)):(i(e),e[t]=[])}else i(e),delete n.hcEvents}}(e,t,s)}}function u(e){return p(e)&&"number"==typeof e.nodeType}function p(e,t){let s;return!!e&&"object"==typeof e&&(!t||"[object Array]"!==(s=Object.prototype.toString.call(e))&&"[object Array Iterator]"!==s)}function f(e,t,s){for(let r in e)Object.hasOwnProperty.call(e,r)&&t.call(s||e[r],e[r],r,e)}Array.prototype.find;let{noop:h}=i();!function(e){function t(){o().prototype.init.apply(this,arguments),this.initialised=!1,this.baseSeries=null,this.eventRemovers=[],this.addEvents()}function s(){let e=this.chart,t=this.options.baseSeries,s=null!=t&&(e.series[t]||e.get(t));this.baseSeries=s||null}function r(){this.eventRemovers.push(c(this.chart,"afterLinkSeries",()=>{this.setBaseSeries(),this.baseSeries&&!this.initialised&&(this.setDerivedData(),this.addBaseSeriesEvents(),this.initialised=!0)}))}function i(){this.eventRemovers.push(c(this.baseSeries,"updatedData",()=>{this.setDerivedData()}),c(this.baseSeries,"destroy",()=>{this.baseSeries=null,this.initialised=!1}))}function n(){this.eventRemovers.forEach(e=>{e()}),o().prototype.destroy.apply(this,arguments)}e.hasDerivedData=!0,e.setDerivedData=h,e.compose=function(e){let o=e.prototype;return o.addBaseSeriesEvents=i,o.addEvents=r,o.destroy=n,o.init=t,o.setBaseSeries=s,e},e.init=t,e.setBaseSeries=s,e.addEvents=r,e.addBaseSeriesEvents=i,e.destroy=n}(t||(t={}));let d=t,v=e.default.SeriesRegistry;var y=s.n(v);let{line:b}=y().seriesTypes;class m extends b{sumPointsPercents(e,t,s,r){let i=[],n=0,o=0,a=0,l;for(let u of e){if(null!==u)if(r)o+=u;else{var c;l=u/s*100,i.push([t[n],(c=a+l)>1e14?c:parseFloat(c.toPrecision(14))]),a+=l}++n}return r?o:i}setDerivedData(){let e=this.baseSeries?.getColumn("x")||[],t=this.baseSeries?.getColumn("y")||[],s=this.sumPointsPercents(t,e,null,!0);this.setData(this.sumPointsPercents(t,e,s,!1),!1)}}m.defaultOptions=function(e,...t){let s,r=[e,...t],i={},n=function(e,t){return"object"!=typeof e&&(e={}),f(t,function(s,r){if("__proto__"!==r&&"constructor"!==r){let i;!p(s,!0)||(i=s?.constructor,p(s,!0)&&!u(s)&&i?.name&&"Object"!==i.name)||u(s)?e[r]=t[r]:e[r]=n(e[r]||{},s)}}),e};!0===e&&(i=r[1],r=Array.prototype.slice.call(r,2));let o=r.length;for(s=0;s<o;s++)i=n(i,r[s]);return i}(b.defaultOptions,{zIndex:3}),function(e,t){let s;for(s in e||(e={}),t)e[s]=t[s]}(m.prototype,{hasDerivedData:d.hasDerivedData}),d.compose(m),y().registerSeriesType("pareto",m);let S=i();export{S as default};