!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @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
 */function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("highcharts"),require("highcharts").Series,require("highcharts").SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/pareto",[["highcharts/highcharts"],["highcharts/highcharts","Series"],["highcharts/highcharts","SeriesRegistry"]],t):"object"==typeof exports?exports["highcharts/modules/pareto"]=t(require("highcharts"),require("highcharts").Series,require("highcharts").SeriesRegistry):e.Highcharts=t(e.Highcharts,e.Highcharts.Series,e.Highcharts.SeriesRegistry)}(this,function(e,t,r){return function(){"use strict";var i,s,n={512:function(e){e.exports=r},820:function(e){e.exports=t},944:function(t){t.exports=e}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var h={};a.d(h,{default:function(){return E}});var u=a(944),c=a.n(u),p=a(820),d=a.n(p),f=c().noop,l=c().addEvent,v=c().defined;!function(e){function t(){d().prototype.init.apply(this,arguments),this.initialised=!1,this.baseSeries=null,this.eventRemovers=[],this.addEvents()}function r(){var e=this.chart,t=this.options.baseSeries,r=v(t)&&(e.series[t]||e.get(t));this.baseSeries=r||null}function i(){var e=this;this.eventRemovers.push(l(this.chart,"afterLinkSeries",function(){e.setBaseSeries(),e.baseSeries&&!e.initialised&&(e.setDerivedData(),e.addBaseSeriesEvents(),e.initialised=!0)}))}function s(){var e=this;this.eventRemovers.push(l(this.baseSeries,"updatedData",function(){e.setDerivedData()}),l(this.baseSeries,"destroy",function(){e.baseSeries=null,e.initialised=!1}))}function n(){this.eventRemovers.forEach(function(e){e()}),d().prototype.destroy.apply(this,arguments)}e.hasDerivedData=!0,e.setDerivedData=f,e.compose=function(e){var o=e.prototype;return o.addBaseSeriesEvents=s,o.addEvents=i,o.destroy=n,o.init=t,o.setBaseSeries=r,e},e.init=t,e.setBaseSeries=r,e.addEvents=i,e.addBaseSeriesEvents=s,e.destroy=n}(s||(s={}));var y=s,g={zIndex:3},S=a(512),m=a.n(S),b=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),D=m().seriesTypes.line,x=c().correctFloat,P=c().merge,_=c().extend,O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t.prototype.sumPointsPercents=function(e,t,r,i){for(var s,n=[],o=0,a=0,h=0,u=0;u<e.length;u++){var c=e[u];null!==c&&(i?a+=c:(s=c/r*100,n.push([t[o],x(h+s)]),h+=s)),++o}return i?a:n},t.prototype.setDerivedData=function(){var e,t,r=(null==(e=this.baseSeries)?void 0:e.getColumn("x"))||[],i=(null==(t=this.baseSeries)?void 0:t.getColumn("y"))||[],s=this.sumPointsPercents(i,r,null,!0);this.setData(this.sumPointsPercents(i,r,s,!1),!1)},t.defaultOptions=P(D.defaultOptions,g),t}(D);_(O.prototype,{hasDerivedData:y.hasDerivedData}),y.compose(O),m().registerSeriesType("pareto",O);var E=c();return h.default}()});