/** * Highcharts JS v11.2.0 (2023-10-30) * * Item series type for Highcharts * * (c) 2019 Torstein Honsi * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/item-series",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function o(t,e,o,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,o),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}o(e,"Series/Item/ItemPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=t.series.prototype.pointClass,s=t.seriesTypes.pie.prototype.pointClass,n=e.extend,a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e}return i(e,t),e}(s);return n(a.prototype,{haloPath:r.prototype.haloPath}),a}),o(e,"Series/Item/ItemSeriesDefaults.js",[e["Core/Series/SeriesDefaults.js"],e["Core/Utilities.js"]],function(t,e){return{endAngle:void 0,innerSize:"40%",itemPadding:.1,layout:"vertical",marker:(0,e.merge)(t.marker,{radius:null}),rows:void 0,crisp:!1,showInLegend:!0,startAngle:void 0}}),o(e,"Series/Item/ItemSeries.js",[e["Series/Item/ItemPoint.js"],e["Series/Item/ItemSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o,i){var r,s=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=o.seriesTypes.pie,a=i.defined,l=i.extend,h=i.fireEvent,p=i.isNumber,u=i.merge,c=i.pick,d=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return s(o,t),o.prototype.animate=function(t){var e=this.group;e&&(t?e.attr({opacity:0}):e.animate({opacity:1},this.options.animation))},o.prototype.drawDataLabels=function(){if(this.center&&this.slots)t.prototype.drawDataLabels.call(this);else for(var e=0,o=this.points;e1)for(i=Math.ceil(i);i>0&&!(o/i/i>t);)i--;else for(i=Math.floor(i);im+(p&&v?p.length:0);){h=_,f.length=0,_=0,p=u,u=[],l=d/++S/2,y?(w=(l-y)/l*d)>=0?l=y:(w=0,b=1):l=Math.floor(l*b);for(var M=l;M>0;M--)r=Math.ceil((i=g*(o=(w+M/l*(d-w-S))/2))/S),u.push({rowRadius:o,rowLength:i,colCount:r}),_+=r+1}if(p){for(var j=h-this.total-(v?p.length:0),A=function(t){j>0&&(t.row.colCount--,j--)};j>0;)p.map(function(t){return{angle:t.colCount/t.rowLength,row:t}}).sort(function(t,e){return e.angle-t.angle}).slice(0,Math.min(j,Math.ceil(p.length/2))).forEach(A);for(var C=0,P=p;C