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