!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/wordcloud
 * @requires highcharts
 *
 * (c) 2016-2026 Highsoft AS
 * Authors: Jon Arild Nygard
 *
 * 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(require("highcharts"),require("highcharts").SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/wordcloud",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"]],e):"object"==typeof exports?exports["highcharts/modules/wordcloud"]=e(require("highcharts"),require("highcharts").SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}(this,function(t,e){return function(){"use strict";var r,i,o={512:function(t){t.exports=e},944:function(e){e.exports=t}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return o[t](r,r.exports,a),r.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var s={};a.d(s,{default:function(){return J}});var h=a(944),l=a.n(h),u=function(){return(u=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},p=function(t,e){var r=e.animatableAttribs,i=e.onComplete,o=e.css,n=e.renderer,a=t.series&&t.series.chart.hasRendered?void 0:t.series&&t.series.options.animation,s=t.graphic;if(e.attribs=u(u({},e.attribs),{class:t.getClassName()}),t.shouldDraw())s||(t.graphic=s="text"===e.shapeType?n.text():"image"===e.shapeType?n.image(e.imageUrl||"").attr(e.shapeArgs||{}):n[e.shapeType](e.shapeArgs||{}),s.add(e.group)),o&&s.css(o),s.attr(e.attribs).animate(r,!e.isNew&&a,i);else if(s){var h=function(){t.graphic=s=s&&s.destroy(),"function"==typeof i&&i()};Object.keys(r).length?s.animate(r,void 0,function(){return h()}):h()}},c=a(512),f=a.n(c),d=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),m=f().seriesTypes.column.prototype.pointClass,g=l().extend,y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.isValid=function(){return!0},e}(m);g(y.prototype,{weight:1});var x={allowExtendPlayingField:!0,animation:{duration:500},borderWidth:0,clip:!1,colorByPoint:!0,cropThreshold:1/0,minFontSize:1,maxFontSize:25,placementStrategy:"center",rotation:{from:0,orientations:2,to:90},showInLegend:!1,spiral:"rectangular",style:{fontFamily:"sans-serif",fontWeight:"900",whiteSpace:"nowrap"},tooltip:{followPointer:!0,pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.weight}</b><br/>'}},b=l().deg2rad,v=l().extend,M=l().find,w=l().isNumber,S=l().isObject,A=l().merge;function _(t){var e,r=t.axes||[];return r.length||(r=[],(e=t.concat([t[0]])).reduce(function(t,e){var i,o,n=(i=e[0]-t[0],[[-(o=e[1]-t[1]),i],[o,-i]])[0];return M(r,function(t){return t[0]===n[0]&&t[1]===n[1]})||r.push(n),e}),t.axes=r),r}function O(t,e){var r=t.map(function(t){var r=t[0],i=t[1];return r*e[0]+i*e[1]});return{min:Math.min.apply(this,r),max:Math.max.apply(this,r)}}function X(t,e){var r=_(t),i=_(e);return!M(r.concat(i),function(r){var i,o;return i=O(t,r),!!((o=O(e,r)).min>i.max||o.max<i.min)})}function z(t,e){var r=4*t,i=Math.ceil((Math.sqrt(r)-1)/2),o=function(t){return"boolean"==typeof t},n=2*i+1,a=Math.pow(n,2),s=!1;return n-=1,t<=1e4&&(o(s)&&r>=a-n&&(s={x:i-(a-r),y:-i}),a-=n,o(s)&&r>=a-n&&(s={x:-i,y:-i+(a-r)}),a-=n,o(s)&&(s=r>=a-n?{x:-i+(a-r),y:i}:{x:i,y:i-(a-r-n)}),s.x*=5,s.y*=5),s}function P(t,e){var r=Math.pow(10,w(e)?e:14);return Math.round(t*r)/r}function j(t,e){var r=t[0],i=t[1],o=-(b*e),n=Math.cos(o),a=Math.sin(o);return[P(r*n-i*a),P(r*a+i*n)]}function F(t,e,r){var i=j([t[0]-e[0],t[1]-e[1]],r);return[i[0]+e[0],i[1]+e[1]]}var Y=function(t,e,r){var i=r.reduce(function(t,e){var r=e.dimensions,i=Math.max(r.width,r.height);return t.maxHeight=Math.max(t.maxHeight,r.height),t.maxWidth=Math.max(t.maxWidth,r.width),t.area+=i*i,t},{maxHeight:0,maxWidth:0,area:0}),o=Math.max(i.maxHeight,i.maxWidth,.85*Math.sqrt(i.area)),n=t>e?t/e:1,a=e>t?e/t:1;return{width:o*n,height:o*a,ratioX:n,ratioY:a}},T=function(t,e,r){var i=2*Math.max(Math.abs(r.top),Math.abs(r.bottom)),o=2*Math.max(Math.abs(r.left),Math.abs(r.right));return Math.min(o>0?1/o*t:1,i>0?1/i*e:1)},C=function(t,e){for(var r=[],i=1;i<1e4;i++)r.push(t(i,e));return function(t){return t<=1e4&&r[t-1]}},N=(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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 r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),W=l().noop,H=f().seriesTypes.column,q=l().extend,E=l().isArray,R=l().isNumber,D=l().isObject,L=l().merge,U=function(t,e){var r,i,o,n,a,s;return S(t)&&S(e)?(r=e.bottom-e.top,i=e.right-e.left,a=i*(o=t.ratioX)>r*(n=t.ratioY)?i:r,s=A(t,{width:t.width+a*o*2,height:t.height+a*n*2})):s=t,s},V=function(t,e,r,i,o){var n=[t,e],a=t-r/2,s=t+r/2,h=e-i/2,l=e+i/2;return[[a,h],[s,h],[s,l],[a,l]].map(function(t){return F(t,n,-o)})},B=function(t){return Math.round(t*(Math.random()+.5)/2)},k=function(t,e,r,i){var o,n=!1;return w(t)&&w(e)&&w(r)&&w(i)&&t>0&&e>-1&&i>r&&(o=(i-r)/(t-1||1),n=r+e%t*o),n},I=function(t,e){var r,i,o,n,a,s,h=e.placed,l=e.field,u=e.rectangle,p=e.polygon,c=e.spiral,f=t.rect=v({},u),d=1,m={x:0,y:0};for(t.polygon=p,t.rotation=e.rotation;!1!==m&&(r=t.rect,i=t.polygon,o=t.lastCollidedWith,n=function(e){var o,n,a=(o=r,!((n=e.rect).left>o.right||n.right<o.left||n.top>o.bottom||n.bottom<o.top));return a&&(t.rotation%90||e.rotation%90)&&(a=X(i,e.polygon)),a},a=!1,o&&!(a=n(o))&&delete t.lastCollidedWith,!a&&(a=!!M(h,function(e){var r=n(e);return r&&(t.lastCollidedWith=e),r})),a||!((s={left:-(l.width/2),right:l.width/2,top:-(l.height/2),bottom:l.height/2}).left<f.left&&s.right>f.right&&s.top<f.top&&s.bottom>f.bottom));)S(m=c(d))&&(f.left=u.left+m.x,f.right=u.right+m.x,f.top=u.top+m.y,f.bottom=u.bottom+m.y,t.polygon=function(t,e,r){return r.map(function(r){return[r[0]+t,r[1]+e]})}(m.x,m.y,p)),d++;return m},G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N(e,t),e.prototype.pointAttribs=function(t,e){var r=l().seriesTypes.column.prototype.pointAttribs.call(this,t,e);return delete r.stroke,delete r["stroke-width"],r},e.prototype.deriveFontSize=function(t,e,r){var i=R(t)?t:0,o=R(e)?e:1;return Math.floor(Math.max(R(r)?r:1,i*o))},e.prototype.drawPoints=function(){if(!this.zooming&&(!this.defaultScale||this.group.scaleX===this.defaultScale)){var t,e=this.hasRendered,r=this.xAxis,i=this.yAxis,o=this.chart,n=this.group,a=this.options,s=a.animation,h=a.allowExtendPlayingField,l=o.renderer,u=[],c=this.placementStrategy[a.placementStrategy],f=a.rotation,d=this.points.map(function(t){return t.weight}),m=Math.max.apply(null,d),g=this.points.concat().sort(function(t,e){return e.weight-t.weight}),y=l.text().add(n);this.group.attr({scaleX:1,scaleY:1});for(var x=0;x<g.length;x++){var b=g[x],v=1/m*b.weight,M=this.deriveFontSize(v,a.maxFontSize,a.minFontSize),S=q({fontSize:M+"px"},a.style);y.css(S).attr({x:0,y:0,text:b.name});var A=y.getBBox(!0);b.dimensions={height:A.height,width:A.width}}t=Y(r.len,i.len,g);for(var _=C(this.spirals[a.spiral],{field:t}),O=0;O<g.length;O++){var X,z,b=g[O],v=1/m*b.weight,M=this.deriveFontSize(v,a.maxFontSize,a.minFontSize),S=q({fontSize:M+"px"},a.style),P=c(b,{data:g,field:t,placed:u,rotation:f}),j=q(this.pointAttribs(b,b.selected&&"select"),{align:"center","alignment-baseline":"middle","dominant-baseline":"middle",x:P.x,y:P.y,text:b.name,rotation:R(P.rotation)?P.rotation:void 0}),F=V(P.x,P.y,b.dimensions.width,b.dimensions.height,P.rotation),N=F.reduce(function(t,e){var r=e[0],i=e[1];return t.left=Math.min(r,t.left),t.right=Math.max(r,t.right),t.bottom=Math.max(i,t.bottom),t.top=Math.min(i,t.top),t},{left:Number.MAX_VALUE,right:-Number.MAX_VALUE,bottom:-Number.MAX_VALUE,top:Number.MAX_VALUE}),W=I(b,{rectangle:N,polygon:F,field:t,placed:u,spiral:_,rotation:P.rotation}),H=void 0;!W&&h&&(t=U(t,N),W=I(b,{rectangle:N,polygon:F,field:t,placed:u,spiral:_,rotation:P.rotation})),D(W)?(j.x=(j.x||0)+W.x,j.y=(j.y||0)+W.y,N.left+=W.x,N.right+=W.x,N.top+=W.y,N.bottom+=W.y,X=t,z=N,(!w(X.left)||X.left>z.left)&&(X.left=z.left),(!w(X.right)||X.right<z.right)&&(X.right=z.right),(!w(X.top)||X.top>z.top)&&(X.top=z.top),(!w(X.bottom)||X.bottom<z.bottom)&&(X.bottom=z.bottom),t=X,u.push(b),b.isNull=!1,b.isInside=!0):b.isNull=!0,s&&(H={x:j.x,y:j.y},e?(delete j.x,delete j.y):(j.x=0,j.y=0)),p(b,{animatableAttribs:H,attribs:j,css:S,group:n,renderer:l,shapeArgs:void 0,shapeType:"text"})}y=y.destroy(),this.defaultScale=T(r.len,i.len,t),this.field=t,this.group.attr({scaleX:this.defaultScale,scaleY:this.defaultScale})}},e.prototype.hasData=function(){return D(this)&&!0===this.visible&&E(this.points)&&this.points.length>0},e.prototype.getPlotBox=function(t){var e,r=this.chart,i=this.group,o=this.zooming,n=r.plotSizeX,a=void 0===n?0:n,s=r.plotSizeY,h=void 0===s?0:s,l=r.inverted,u=this[l?"yAxis":"xAxis"],p=this[l?"xAxis":"yAxis"],c=u?u.len:r.plotWidth,f=p?p.len:r.plotHeight,d=u?u.left:r.plotLeft,m=p?p.top:r.plotTop,g=this.field,y=0,x=0,b=d+c/2,v=m+f/2,M=b,w=v,S=this.defaultScale||1,A=0,_=0;if(g&&(A=2*Math.max(Math.abs(g.top),Math.abs(g.bottom)),_=2*Math.max(Math.abs(g.left),Math.abs(g.right))),l&&(_=(e=[A,_])[0],A=e[1]),i&&o){var O=d+Math.max(_*(S=Math.max(o.scale,this.defaultScale||1)),c)/2,X=m+Math.max(A*S,f)/2,z=S-(i.scaleX||1);y=z*((a-_)/2+o.zoomX*a-c/2),x=z*((h-A)/2+o.zoomY*h-f/2),"series"===t&&(o.x=Math.max(0,Math.min(1-o.width,o.x+o.panX/o.scale)),y+=o.panX*a,o.panX=0,o.y=Math.max(0,Math.min(1-o.height,o.y+o.panY/o.scale)),x+=o.panY*h,o.panY=0),R(i.translateX)&&R(i.translateY)&&(M=i.translateX,w=i.translateY),b=M-y,(v=w-x)>X?v=X:v<2*m+f-X&&(v=2*m+f-X),b>O?b=O:b<2*d+c-O&&(b=2*d+c-O)}return{translateX:b,translateY:v,scaleX:S,scaleY:S}},e.defaultOptions=L(H.defaultOptions,x),e}(H);q(G.prototype,{animate:W,animateDrilldown:W,animateDrillupFrom:W,isCartesian:!1,pointClass:y,setClip:W,placementStrategy:{random:function(t,e){var r=e.field,i=e.rotation;return{x:B(r.width)-r.width/2,y:B(r.height)-r.height/2,rotation:k(i.orientations,t.index,i.from,i.to)}},center:function(t,e){var r=e.rotation;return{x:0,y:0,rotation:k(r.orientations,t.index,r.from,r.to)}}},pointArrayMap:["weight"],spirals:{archimedean:function(t,e){var r=e.field,i=r.width*r.width+r.height*r.height,o=.8*t,n=!1;return t<=1e4&&(Math.min(Math.abs((n={x:o*Math.cos(o),y:o*Math.sin(o)}).x),Math.abs(n.y))<i||(n=!1)),n},rectangular:function(t,e){var r=z(t,e),i=e.field;return r&&(r.x*=i.ratioX,r.y*=i.ratioY),r},square:z},utils:{extendPlayingField:U,getRotation:k,isPolygonsColliding:X,rotate2DToOrigin:j,rotate2DToPoint:F}}),f().registerSeriesType("wordcloud",G);var J=l();return s.default}()});