"use strict";import U from"../parts/Utilities.js";var correctFloat=U.correctFloat,merge=U.merge,seriesType=U.seriesType;import"../parts/Options.js";import derivedSeriesMixin from"../mixins/derived-series.js";seriesType("pareto","line",{zIndex:3},merge(derivedSeriesMixin,{setDerivedData:function(){var e=this.baseSeries.xData,s=this.baseSeries.yData,r=this.sumPointsPercents(s,e,null,!0);this.setData(this.sumPointsPercents(s,e,r,!1),!1)},sumPointsPercents:function(e,s,r,i){var t,n=0,a=0,o=[];return e.forEach(function(e,c){null!==e&&(i?n+=e:(t=e/r*100,o.push([s[c],correctFloat(a+t)]),a+=t))}),i?n:o}}));