/** * Highcharts JS v11.2.0 (2023-10-30) * * Dependency wheel module * * (c) 2010-2021 Torstein Honsi * * License: www.highcharts.com/license */!function(e){"object"==typeof module&&module.exports?(e.default=e,module.exports=e):"function"==typeof define&&define.amd?define("highcharts/modules/dependency-wheel",["highcharts","highcharts/modules/sankey"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var t=e?e._modules:{};function n(e,t,n,o){e.hasOwnProperty(t)||(e[t]=o.apply(null,n),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:t,module:e[t]}})))}n(t,"Series/DependencyWheel/DependencyWheelPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,t){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=e.seriesTypes.sankey.prototype.pointClass,i=t.pInt,a=t.wrap;return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.angle=void 0,t.fromNode=void 0,t.index=void 0,t.linksFrom=void 0,t.linksTo=void 0,t.options=void 0,t.series=void 0,t.shapeArgs=void 0,t.toNode=void 0,t}return o(t,e),t.prototype.getDataLabelPath=function(e){var t,n=this,o=n.series.chart.renderer,r=n.shapeArgs,s=n.angle<0||n.angle>Math.PI,c=r.start||0,d=r.end||0;return n.dataLabelPath?(n.dataLabelPath=n.dataLabelPath.destroy(),delete n.dataLabelPath):a(e,"destroy",function(e){return n.dataLabelPath&&(n.dataLabelPath=n.dataLabelPath.destroy()),e.call(this)}),n.dataLabelPath=o.arc({open:!0,longArc:Math.abs(Math.abs(c)-Math.abs(d))n.index){i=i.slice(0,a).reverse().concat(i.slice(a).reverse()),t=!0;break}t||i.reverse();for(var a=0;aMath.PI&&(i=2*Math.PI-i),(i*=p)