!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/data-sorting
 * @requires highcharts
 *
 * Data sorting module
 *
 * (c) 2025-2025 Torstein Honsi
 *
 * License: www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/modules/data-sorting",["highcharts/highcharts"],function(t){return e(t)}):"object"==typeof exports?exports["highcharts/modules/data-sorting"]=e(t._Highcharts):t.Highcharts=e(t.Highcharts)}("u"<typeof window?this:window,function(t){return function(){"use strict";var e={944:function(e){e.exports=t}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var i={};r.d(i,{default:function(){return u}});var o=r(944),a=r.n(o);function s(t){t.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0}).forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})}function d(t){var e;(0,o.extend)(t,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),null!=(e=t.options).pointRange||(e.pointRange=1)}var c=a();({compose:function(t,e){(0,o.wrap)(e.prototype,"setData",function(t,e){for(var n,r,i,a,s,d,c=[],u=2;u<arguments.length;u++)c[u-2]=arguments[u];if(null==(d=this.options.dataSorting)?void 0:d.enabled){if(!this.chart.hasInitializedLinkedSeries)return this;Array.isArray(e)&&(n=this,r=e,a=void 0===(i=(n.options.dataSorting||{}).sortKey)?"y":i,s=function(t,e){return(0,o.defined)(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}},r.forEach(function(t,e){r[e]=s(n,t),r[e].index=e}),r.concat().sort(function(t,e){var n=(0,o.getNestedProperty)(a,t),r=(0,o.getNestedProperty)(a,e);return r<n?-1:+(r>n)}).forEach(function(t,e){t.x=e}),n.linkedSeries&&n.linkedSeries.forEach(function(t){var e,n=t.options,i=n.data;(null==(e=n.dataSorting)?void 0:e.enabled)||!i||(i.forEach(function(e,n){i[n]=s(t,e),r[n]&&(i[n].x=r[n].x,i[n].index=n)}),t.setData(i,!1))}),e=r)}return t.apply(this,[e].concat(c))}),(0,o.addEvent)(t,"beforeRender",function(){s(this)}),(0,o.addEvent)(t,"afterLinkSeries",function(){this.series.forEach(function(t){var e;(null==(e=t.linkedParent)?void 0:e.enabledDataSorting)&&d(t)}),this.hasInitializedLinkedSeries=!0}),(0,o.addEvent)(t,"afterAddSeries",function(t){var e=t.series;e.enabledDataSorting&&e.setData(e.options.data,!1)}),(0,o.addEvent)(e,"afterUpdate",function(){s(this.chart)}),(0,o.addEvent)(e,"afterInit",function(){var t;(null==(t=this.options.dataSorting)?void 0:t.enabled)&&d(this)})}}).compose(c.Chart,c.Series);var u=a();return i.default}()});