/* Highcharts JS v10.2.1 (2022-08-29) (c) 2016-2021 Highsoft AS Authors: Jon Arild Nygard License: www.highcharts.com/license */ (function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/wordcloud",["highcharts"],function(h){b(h);b.Highcharts=h;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function h(b,g,k,l){b.hasOwnProperty(g)||(b[g]=l.apply(null,k),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:g,module:b[g]}})))}b=b?b._modules:{};h(b, "Series/DrawPointUtilities.js",[b["Core/Utilities.js"]],function(b){function g(b){switch(b.series&&b.series.type){case "treemap":return k(b.plotY)&&null!==b.y;default:return!b.isNull}}var k=b.isNumber;return{draw:function(b,e){var n=e.animatableAttribs,f=e.onComplete,l=e.css,q=e.renderer,k=b.series&&b.series.chart.hasRendered?void 0:b.series&&b.series.options.animation,p=b.graphic;e.attribs=e.attribs||{};e.attribs["class"]=b.getClassName();if(g(b))p||(b.graphic=p="text"===e.shapeType?q.text():q[e.shapeType](e.shapeArgs|| {}),p.add(e.group)),l&&p.css(l),p.attr(e.attribs).animate(n,e.isNew?!1:k,f);else if(p){var h=function(){b.graphic=p=p&&p.destroy();"function"===typeof f&&f()};Object.keys(n).length?p.animate(n,void 0,function(){return h()}):h()}},shouldDraw:g}});h(b,"Series/Wordcloud/WordcloudPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,g){var k=this&&this.__extends||function(){var b=function(e,n){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__= e}||function(b,e){for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])};return b(e,n)};return function(e,n){function f(){this.constructor=e}b(e,n);e.prototype=null===n?Object.create(n):(f.prototype=n.prototype,new f)}}();g=g.extend;b=function(b){function e(){var e=null!==b&&b.apply(this,arguments)||this;e.dimensions=void 0;e.options=void 0;e.polygon=void 0;e.rect=void 0;e.series=void 0;return e}k(e,b);e.prototype.isValid=function(){return!0};return e}(b.seriesTypes.column.prototype.pointClass);g(b.prototype, {weight:1});return b});h(b,"Series/Wordcloud/WordcloudUtils.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,g){function k(a,c){return!(c.left>a.right||c.righta.bottom||c.bottomb.max||d.max=a&&("boolean"===typeof f&&c>=e-b&&(f={x:d-(e-c),y:-d}),e-=b,"boolean"===typeof f&&c>=e-b&&(f={x:-d,y:-d+(e-c)}),e-=b,"boolean"===typeof f&&(f=c>=e-b?{x:-d+(e-c),y:d}:{x:d,y:d-(e-c-b)}),f.x*=5,f.y*=5);return f}function t(a,c){var d=c.width/2,b=-(c.height/2),e=c.height/2;return!(-(c.width/2)a.right&&ba.bottom)}function p(a,c,d){return d.map(function(d){return[d[0]+a,d[1]+c]})}function w(a,c){c=m(c)? c:14;c=Math.pow(10,c);return Math.round(a*c)/c}function v(a,c){var d=a[0];a=a[1];var b=y*-c;c=Math.cos(b);b=Math.sin(b);return[w(d*c-a*b),w(d*b+a*c)]}function B(a,c,d){a=v([a[0]-c[0],a[1]-c[1]],d);return[a[0]+c[0],a[1]+c[1]]}var y=b.deg2rad,D=g.extend,A=g.find,m=g.isNumber,C=g.isObject,z=g.merge;return{archimedeanSpiral:function(a,c){var d=c.field;c=!1;d=d.width*d.width+d.height*d.height;var b=.8*a;1E4>=a&&(c={x:b*Math.cos(b),y:b*Math.sin(b)},Math.min(Math.abs(c.x),Math.abs(c.y))d*e?b:d;a=z(a,{width:a.width+d*c*2,height:a.height+d*e*2})}return a},getBoundingBoxFromPolygon:function(a){return a.reduce(function(a,d){var c=d[0];d=d[1];a.left=Math.min(c,a.left);a.right=Math.max(c,a.right);a.bottom=Math.max(d,a.bottom);a.top=Math.min(d,a.top);return a},{left:Number.MAX_VALUE,right:-Number.MAX_VALUE,bottom:-Number.MAX_VALUE,top:Number.MAX_VALUE})},getPlayingField:function(a, c,d){d=d.reduce(function(a,c){c=c.dimensions;var b=Math.max(c.width,c.height);a.maxHeight=Math.max(a.maxHeight,c.height);a.maxWidth=Math.max(a.maxWidth,c.width);a.area+=b*b;return a},{maxHeight:0,maxWidth:0,area:0});d=Math.max(d.maxHeight,d.maxWidth,.85*Math.sqrt(d.area));var b=a>c?a/c:1;a=c>a?c/a:1;return{width:d*b,height:d*a,ratioX:b,ratioY:a}},getPolygon:function(a,c,b,e,f){var d=[a,c],g=a-b/2;a+=b/2;b=c-e/2;c+=e/2;return[[g,b],[a,b],[a,c],[g,c]].map(function(a){return B(a,d,-f)})},getRandomPosition:function(a){return Math.round(a* (Math.random()+.5)/2)},getRotation:function(a,c,b,e){var d=!1;m(a)&&m(c)&&m(b)&&m(e)&&0b&&(d=b+c%a*((e-b)/(a-1||1)));return d},getScale:function(a,c,b){var d=2*Math.max(Math.abs(b.top),Math.abs(b.bottom));b=2*Math.max(Math.abs(b.left),Math.abs(b.right));return Math.min(0b;b++)e.push(a(b,c));return function(a){return 1E4>=a?e[a-1]:!1}},intersectionTesting:function(a,b){var c=b.placed,e=b.field,f=b.rectangle,g=b.polygon, n=b.spiral,h=1,k={x:0,y:0},m=a.rect=D({},f);a.polygon=g;for(a.rotation=b.rotation;!1!==k&&(H(a,c)||t(m,e));)k=n(h),C(k)&&(m.left=f.left+k.x,m.right=f.right+k.x,m.top=f.top+k.y,m.bottom=f.bottom+k.y,a.polygon=p(k.x,k.y,g)),h++;return k},isPolygonsColliding:f,isRectanglesIntersecting:k,rectangularSpiral:function(a,b){a=q(a,b);b=b.field;a&&(a.x*=b.ratioX,a.y*=b.ratioY);return a},rotate2DToOrigin:v,rotate2DToPoint:B,squareSpiral:q,updateFieldBoundaries:function(a,b){if(!m(a.left)||a.left>b.left)a.left= b.left;if(!m(a.right)||a.rightb.top)a.top=b.top;if(!m(a.bottom)||a.bottom\u25cf {series.name}: {point.weight}
'}});return e}(t);p(f.prototype,{animate:q,animateDrilldown:q,animateDrillupFrom:q,pointClass:n,setClip:q,placementStrategy:{random:function(b,c){var d=c.field;c=c.rotation;return{x:z(d.width)-d.width/2,y:z(d.height)-d.height/2, rotation:a(c.orientations,b.index,c.from,c.to)}},center:function(b,c){c=c.rotation;return{x:0,y:0,rotation:a(c.orientations,b.index,c.from,c.to)}}},pointArrayMap:["weight"],spirals:{archimedean:e,rectangular:x,square:L},utils:{extendPlayingField:D,getRotation:a,isPolygonsColliding:I,rotate2DToOrigin:J,rotate2DToPoint:K}});h.registerSeriesType("wordcloud",f);"";return f});h(b,"masters/modules/wordcloud.src.js",[],function(){})}); //# sourceMappingURL=wordcloud.js.map