import{o as C}from"./entry.223f6570.js";function O(h,r){for(var e=0;e<r.length;e++){const o=r[e];if(typeof o!="string"&&!Array.isArray(o)){for(const t in o)if(t!=="default"&&!(t in h)){const s=Object.getOwnPropertyDescriptor(o,t);s&&Object.defineProperty(h,t,s.get?s:{enumerable:!0,get:()=>o[t]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}};(function(h){(function(r){h.exports?(r.default=r,h.exports=r):r(typeof Highcharts<"u"?Highcharts:void 0)})(function(r){var e=r?r._modules:{};function o(t,s,c,u){t.hasOwnProperty(s)||(t[s]=u.apply(null,c),typeof CustomEvent=="function"&&r.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:t[s]}})))}o(e,"Series/DerivedComposition.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(t,s,c){var u;let{noop:S}=t,{addEvent:v,defined:y}=c;return function(a){function d(){s.prototype.init.apply(this,arguments),this.initialised=!1,this.baseSeries=null,this.eventRemovers=[],this.addEvents()}function D(){let n=this.chart,i=this.options.baseSeries,m=y(i)&&(n.series[i]||n.get(i));this.baseSeries=m||null}function p(){this.eventRemovers.push(v(this.chart,"afterLinkSeries",()=>{this.setBaseSeries(),this.baseSeries&&!this.initialised&&(this.setDerivedData(),this.addBaseSeriesEvents(),this.initialised=!0)}))}function l(){this.eventRemovers.push(v(this.baseSeries,"updatedData",()=>{this.setDerivedData()}),v(this.baseSeries,"destroy",()=>{this.baseSeries=null,this.initialised=!1}))}function f(){this.eventRemovers.forEach(n=>{n()}),s.prototype.destroy.apply(this,arguments)}a.hasDerivedData=!0,a.setDerivedData=S,a.compose=function(n){let i=n.prototype;return i.addBaseSeriesEvents=l,i.addEvents=p,i.destroy=f,i.init=d,i.setBaseSeries=D,n},a.init=d,a.setBaseSeries=D,a.addEvents=p,a.addBaseSeriesEvents=l,a.destroy=f}(u||(u={})),u}),o(e,"Series/ParetoSeries/ParetoSeriesDefaults.js",[],function(){return{zIndex:3}}),o(e,"Series/ParetoSeries/ParetoSeries.js",[e["Series/DerivedComposition.js"],e["Series/ParetoSeries/ParetoSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,s,c,u){let{line:S}=c.seriesTypes,{correctFloat:v,merge:y,extend:a}=u;class d extends S{sumPointsPercents(p,l,f,n){let i=[],m=0,j=0,P=0,g;for(let b of p)b!==null&&(n?j+=b:(g=b/f*100,i.push([l[m],v(P+g)]),P+=g)),++m;return n?j:i}setDerivedData(){let p=this.baseSeries.xData,l=this.baseSeries.yData,f=this.sumPointsPercents(l,p,null,!0);this.setData(this.sumPointsPercents(l,p,f,!1),!1)}}return d.defaultOptions=y(S.defaultOptions,s),a(d.prototype,{hasDerivedData:t.hasDerivedData}),t.compose(d),c.registerSeriesType("pareto",d),d}),o(e,"masters/modules/pareto.src.js",[e["Core/Globals.js"]],function(t){return t})})})(E);var x=E.exports;const B=C(x),R=O({__proto__:null,default:B},[x]);export{R as p};
