Hacked By AnonymousFox
!/**
* Highcharts JS v12.1.2 (2025-01-09)
* @module highcharts/modules/wordcloud
* @requires highcharts
*
* (c) 2016-2024 Highsoft AS
* Authors: Jon Arild Nygard
*
* License: 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,o,i={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 i[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,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},p={draw:function(t,e){var r=e.animatableAttribs,o=e.onComplete,i=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||(s="text"===e.shapeType?n.text():"image"===e.shapeType?n.image(e.imageUrl||"").attr(e.shapeArgs||{}):n[e.shapeType](e.shapeArgs||{}),t.graphic=s,s.add(e.group)),i&&s.css(i),s.attr(e.attribs).animate(r,!e.isNew&&a,o);else if(s){var h=function(){t.graphic=s=s&&s.destroy(),"function"==typeof o&&o()};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 o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),g=f().seriesTypes.column.prototype.pointClass,m=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}(g);m(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,w=l().find,M=l().isNumber,A=l().isObject,S=l().merge;function _(t){var e,r=t.axes||[];return r.length||(r=[],t.concat([t[0]]).reduce(function(t,e){var o,i,n=(o=e[0]-t[0],[[-(i=e[1]-t[1]),o],[i,-o]])[0];return w(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],o=t[1];return r*e[0]+o*e[1]});return{min:Math.min.apply(this,r),max:Math.max.apply(this,r)}}function P(t,e){var r=_(t),o=_(e);return!w(r.concat(o),function(r){var o,i;return o=O(t,r),!!((i=O(e,r)).min>o.max||i.max<o.min)})}function j(t,e){var r=4*t,o=Math.ceil((Math.sqrt(r)-1)/2),i=function(t){return"boolean"==typeof t},n=2*o+1,a=Math.pow(n,2),s=!1;return n-=1,t<=1e4&&(i(s)&&r>=a-n&&(s={x:o-(a-r),y:-o}),a-=n,i(s)&&r>=a-n&&(s={x:-o,y:-o+(a-r)}),a-=n,i(s)&&(s=r>=a-n?{x:-o+(a-r),y:o}:{x:o,y:o-(a-r-n)}),s.x*=5,s.y*=5),s}function F(t,e){var r=Math.pow(10,M(e)?e:14);return Math.round(t*r)/r}function T(t,e){var r=t[0],o=t[1],i=-(b*e),n=Math.cos(i),a=Math.sin(i);return[F(r*n-o*a),F(r*a+o*n)]}function z(t,e,r){var o=T([t[0]-e[0],t[1]-e[1]],r);return[o[0]+e[0],o[1]+e[1]]}var C=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}),i=Math.max(o.maxHeight,o.maxWidth,.85*Math.sqrt(o.area)),n=t>e?t/e:1,a=e>t?e/t:1;return{width:i*n,height:i*a,ratioX:n,ratioY:a}},X=function(t,e,r){var o=2*Math.max(Math.abs(r.top),Math.abs(r.bottom)),i=2*Math.max(Math.abs(r.left),Math.abs(r.right));return Math.min(i>0?1/i*t:1,o>0?1/o*e:1)},N=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]}},W=(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)}),H=l().noop,q=f().seriesTypes.column,E=l().extend,R=l().isArray,Y=l().isNumber,D=l().isObject,L=l().merge,U=function(t,e){var r,o,i,n,a,s,h,l;return A(t)&&A(e)?(r=e.bottom-e.top,s=(a=(o=e.right-e.left)*(i=t.ratioX)>r*(n=t.ratioY)?o:r)*i,h=a*n,l=S(t,{width:t.width+2*s,height:t.height+2*h})):l=t,l},V=function(t,e,r,o,i){var n=[t,e],a=t-r/2,s=t+r/2,h=e-o/2,l=e+o/2;return[[a,h],[s,h],[s,l],[a,l]].map(function(t){return z(t,n,-i)})},B=function(t){return Math.round(t*(Math.random()+.5)/2)},k=function(t,e,r,o){var i,n=!1;return M(t)&&M(e)&&M(r)&&M(o)&&t>0&&e>-1&&o>r&&(i=(o-r)/(t-1||1),n=r+e%t*i),n},I=function(t,e){var r,o,i,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,g={x:0,y:0};for(t.polygon=p,t.rotation=e.rotation;!1!==g&&(r=t.rect,o=t.polygon,i=t.lastCollidedWith,n=function(e){var i,n=!((i=e.rect).left>r.right||i.right<r.left||i.top>r.bottom||i.bottom<r.top);return n&&(t.rotation%90||e.rotation%90)&&(n=P(o,e.polygon)),n},a=!1,!i||(a=n(i))||delete t.lastCollidedWith,a||(a=!!w(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));)A(g=c(d))&&(f.left=u.left+g.x,f.right=u.right+g.x,f.top=u.top+g.y,f.bottom=u.bottom+g.y,t.polygon=function(t,e,r){return r.map(function(r){return[r[0]+t,r[1]+e]})}(g.x,g.y,p)),d++;return g},G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return W(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 o=Y(t)?t:0,i=Y(e)?e:1;return Math.floor(Math.max(Y(r)?r:1,o*i))},e.prototype.drawPoints=function(){var t,e=this.hasRendered,r=this.xAxis,o=this.yAxis,i=this.chart,n=this.group,a=this.options,s=a.animation,h=a.allowExtendPlayingField,l=i.renderer,u=[],c=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}),y=l.text().add(n);this.group.attr({scaleX:1,scaleY:1});for(var x=0;x<m.length;x++){var b=m[x],v=1/g*b.weight,w=this.deriveFontSize(v,a.maxFontSize,a.minFontSize),A=E({fontSize:w+"px"},a.style);y.css(A).attr({x:0,y:0,text:b.name});var S=y.getBBox(!0);b.dimensions={height:S.height,width:S.width}}t=C(r.len,o.len,m);for(var _=N(this.spirals[a.spiral],{field:t}),O=0;O<m.length;O++){var P,b=m[O],v=1/g*b.weight,w=this.deriveFontSize(v,a.maxFontSize,a.minFontSize),A=E({fontSize:w+"px"},a.style),j=c(b,{data:m,field:t,placed:u,rotation:f}),F=E(this.pointAttribs(b,b.selected&&"select"),{align:"center","alignment-baseline":"middle","dominant-baseline":"middle",x:j.x,y:j.y,text:b.name,rotation:Y(j.rotation)?j.rotation:void 0}),T=V(j.x,j.y,b.dimensions.width,b.dimensions.height,j.rotation),z=T.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}),W=I(b,{rectangle:z,polygon:T,field:t,placed:u,spiral:_,rotation:j.rotation}),H=void 0;!W&&h&&(t=U(t,z),W=I(b,{rectangle:z,polygon:T,field:t,placed:u,spiral:_,rotation:j.rotation})),D(W)?(F.x=(F.x||0)+W.x,F.y=(F.y||0)+W.y,z.left+=W.x,z.right+=W.x,z.top+=W.y,z.bottom+=W.y,(!M((P=t).left)||P.left>z.left)&&(P.left=z.left),(!M(P.right)||P.right<z.right)&&(P.right=z.right),(!M(P.top)||P.top>z.top)&&(P.top=z.top),(!M(P.bottom)||P.bottom<z.bottom)&&(P.bottom=z.bottom),t=P,u.push(b),b.isNull=!1,b.isInside=!0):b.isNull=!0,s&&(H={x:F.x,y:F.y},e?(delete F.x,delete F.y):(F.x=0,F.y=0)),p.draw(b,{animatableAttribs:H,attribs:F,css:A,group:n,renderer:l,shapeArgs:void 0,shapeType:"text"})}y=y.destroy();var q=X(r.len,o.len,t);this.group.attr({scaleX:q,scaleY:q})},e.prototype.hasData=function(){return D(this)&&!0===this.visible&&R(this.points)&&this.points.length>0},e.prototype.getPlotBox=function(){var t=this.chart,e=t.inverted,r=this[e?"yAxis":"xAxis"],o=this[e?"xAxis":"yAxis"],i=r?r.len:t.plotWidth,n=o?o.len:t.plotHeight;return{translateX:(r?r.left:t.plotLeft)+i/2,translateY:(o?o.top:t.plotTop)+n/2,scaleX:1,scaleY:1}},e.defaultOptions=L(q.defaultOptions,x),e}(q);E(G.prototype,{animate:H,animateDrilldown:H,animateDrillupFrom:H,isCartesian:!1,pointClass:y,setClip:H,placementStrategy:{random:function(t,e){var r=e.field,o=e.rotation;return{x:B(r.width)-r.width/2,y:B(r.height)-r.height/2,rotation:k(o.orientations,t.index,o.from,o.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,o=r.width*r.width+r.height*r.height,i=.8*t,n=!1;return t<=1e4&&!(Math.min(Math.abs((n={x:i*Math.cos(i),y:i*Math.sin(i)}).x),Math.abs(n.y))<o)&&(n=!1),n},rectangular:function(t,e){var r=j(t,e),o=e.field;return r&&(r.x*=o.ratioX,r.y*=o.ratioY),r},square:j},utils:{extendPlayingField:U,getRotation:k,isPolygonsColliding:P,rotate2DToOrigin:T,rotate2DToPoint:z}}),f().registerSeriesType("wordcloud",G);var J=l();return s.default}()});
Hacked By AnonymousFox1.0, Coded By AnonymousFox