!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/variable-pie
 * @requires highcharts
 *
 * Variable Pie module for Highcharts
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Grzegorz Blachliński
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/variable-pie",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/variable-pie"]=e(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,e){return function(){"use strict";var n,r={512:function(t){t.exports=e},944:function(e){e.exports=t}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}};return r[t](n,n.exports,o),n.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var a={};o.d(a,{default:function(){return b}});var s=o(944),c=o.n(s),h=o(512),l=o.n(h),u={minPointSize:"10%",maxPointSize:"100%",zMin:void 0,zMax:void 0,sizeBy:"area",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}<br/>Value: {point.y}<br/>Size: {point.z}<br/>'}},p=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},f=c().doc;function d(t,e){var n;for(n in t||(t={}),e)t[n]=e[n];return t}function y(t){return v(t)&&"number"==typeof t.nodeType}function v(t,e){var n;return!!t&&"object"==typeof t&&(!e||"[object Array]"!==(n=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==n)}function g(){for(var t=arguments,e=t.length,n=0;n<e;n++){var r=t[n];if(null!=r)return r}}c().win,Array.prototype.find;var M=(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),P=l().seriesTypes.pie,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return M(e,t),e.prototype.calculateExtremes=function(){for(var t,e,n,r,i,o=this.chart,a=o.plotWidth,s=o.plotHeight,c=this.options,h=2*(c.slicedOffset||0),l=this.getColumn("z"),u=Math.min(a,s)-h,p={},f=this.center||this.getCenter(),d=0,y=["minPointSize","maxPointSize"];d<y.length;d++){var v=y[d],M=c[v],P=/%$/.test(M);M=parseInt(M,10),p[v]=P?u*M/100:2*M}this.minPxSize=f[3]+p.minPointSize,this.maxPxSize=(t=f[2],e=f[3]+p.minPointSize,n=p.maxPointSize,t>e?t<n?t:n:e),l.length&&(r=g(c.zMin,function(t){for(var e=t.length,n=t[0];e--;)t[e]<n&&(n=t[e]);return n}(l.filter(this.zValEval))),i=g(c.zMax,function(t){for(var e=t.length,n=t[0];e--;)t[e]>n&&(n=t[e]);return n}(l.filter(this.zValEval))),this.getRadii(r,i,this.minPxSize,this.maxPxSize))},e.prototype.getRadii=function(t,e,n,r){for(var i,o,a,s=this.getColumn("z"),c=[],h="radius"!==this.options.sizeBy,l=e-t,u=0;u<s.length;u++)(o=this.zValEval(s[u])?s[u]:t)<=t?a=n/2:o>=e?a=r/2:(i=l>0?(o-t)/l:.5,h&&(i=Math.sqrt(i)),a=Math.ceil(n+i*(r-n))/2),c.push(a);this.radii=c},e.prototype.redraw=function(){this.center=null,t.prototype.redraw.call(this)},e.prototype.getDataLabelPosition=function(t,e){var n=this.center,r=this.options,i=t.angle||0,o=this.radii[t.index],a=n[0]+Math.cos(i)*o,s=n[1]+Math.sin(i)*o,c=Math.min((r.slicedOffset||0)+(r.borderWidth||0),e/5);return{distance:e,natural:{x:a+Math.cos(i)*e,y:s+Math.sin(i)*e},computed:{},alignment:t.half?"right":"left",connectorPosition:{breakAt:{x:a+Math.cos(i)*c,y:s+Math.sin(i)*c},touchingSliceAt:{x:a,y:s}}}},e.prototype.translate=function(t){this.generatePoints();var e,n,r,i,o,a,s,h=this.options,l=h.slicedOffset,u=h.startAngle||0,p=Math.PI/180*(u-90),y=Math.PI/180*(g(h.endAngle,u+360)-90),v=y-p,M=this.points,P=h.ignoreHiddenPoint,m=0;this.startAngleRad=p,this.endAngleRad=y,this.calculateExtremes(),t||(this.center=t=this.getCenter());for(var b=0;b<M.length;b++)a=M[b],s=this.radii[b],e=p+m*v,(!P||a.visible)&&(m+=a.percentage/100),n=p+m*v,a.shapeType="arc",a.shapeArgs={x:t[0],y:t[1],r:s,innerR:t[3]/2,start:Math.round(1e3*e)/1e3,end:Math.round(1e3*n)/1e3},(r=(n+e)/2)>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(r)*l),translateY:Math.round(Math.sin(r)*l)},i=Math.cos(r)*t[2]/2,o=Math.sin(r)*t[2]/2,a.tooltipPos=[t[0]+.7*i,t[1]+.7*o],a.half=+(r<-Math.PI/2||r>Math.PI/2),a.angle=r;!function(t,e,n,r){if(n=n||{},(null==f?void 0:f.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==c())){var i=f.createEvent("Events");i.initEvent(e,!0,!0),n=d(i,n),t.dispatchEvent?t.dispatchEvent(n):t.fireEvent(e,n)}else if(t.hcEvents){n.target||d(n,{preventDefault:function(){n.defaultPrevented=!0},target:t,type:e});for(var o=[],a=t,s=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[e]&&(o.length&&(s=!0),o.unshift.apply(o,a.hcEvents[e])),a=Object.getPrototypeOf(a);s&&o.sort(function(t,e){return t.order-e.order}),o.forEach(function(e){!1===e.fn.call(t,n,t)&&n.preventDefault()})}}(this,"afterTranslate")},e.prototype.zValEval=function(t){return!("number"!=typeof t||isNaN(t))||null},e.defaultOptions=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,i=p([t],e,!0),o={},a=function(t,e){return"object"!=typeof t&&(t={}),function(t,e,n){for(var r in t)Object.hasOwnProperty.call(t,r)&&e.call((0,t[r]),t[r],r,t)}(e,function(n,r){if("__proto__"!==r&&"constructor"!==r){var i;!v(n,!0)||(i=null==n?void 0:n.constructor,v(n,!0)&&!y(n)&&(null==i?void 0:i.name)&&"Object"!==i.name)||y(n)?t[r]=e[r]:t[r]=a(t[r]||{},n)}}),t};!0===t&&(o=i[1],i=Array.prototype.slice.call(i,2));var s=i.length;for(r=0;r<s;r++)o=a(o,i[r]);return o}(P.defaultOptions,u),e}(P);d(m.prototype,{pointArrayMap:["y","z"],parallelArrays:["x","y","z"]}),l().registerSeriesType("variablepie",m);var b=c();return a.default}()});