Hacked By AnonymousFox
!/**
* Highcharts JS v12.1.2 (2025-01-09)
* @module highcharts/modules/networkgraph
* @requires highcharts
*
* Force directed graph module
*
* (c) 2010-2024 Torstein Honsi
*
* License: www.highcharts.com/license
*/function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").SVGElement,require("highcharts").SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/networkgraph",[["highcharts/highcharts"],["highcharts/highcharts","SVGElement"],["highcharts/highcharts","SeriesRegistry"]],e):"object"==typeof exports?exports["highcharts/modules/networkgraph"]=e(require("highcharts"),require("highcharts").SVGElement,require("highcharts").SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SVGElement,t.Highcharts.SeriesRegistry)}(this,function(t,e,o){return function(){"use strict";var i,s,r,n={28:function(t){t.exports=e},512:function(t){t.exports=o},944:function(e){e.exports=t}},a={};function h(t){var e=a[t];if(void 0!==e)return e.exports;var o=a[t]={exports:{}};return n[t](o,o.exports,h),o.exports}h.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return h.d(e,{a:e}),e},h.d=function(t,e){for(var o in e)h.o(e,o)&&!h.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},h.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var p={};h.d(p,{default:function(){return tC}});var d=h(944),l=h.n(d),u=h(28),c=h.n(u),f=l().composed,y=l().addEvent,m=l().pushUnique;function g(){var t,e,o,i=this;i.container&&(t=y(i.container,"mousedown",function(t){var s=i.hoverPoint;s&&s.series&&s.series.hasDraggableNodes&&s.series.options.draggable&&(s.series.onMouseDown(s,t),e=y(i.container,"mousemove",function(t){return s&&s.series&&s.series.onMouseMove(s,t)}),o=y(i.container.ownerDocument,"mouseup",function(t){return e(),o(),s&&s.series&&s.series.onMouseUp(s,t)}))})),y(i,"destroy",function(){t()})}var v={compose:function(t){m(f,"DragNodes")&&y(t,"load",g)},onMouseDown:function(t,e){var o,i=(null===(o=this.chart.pointer)||void 0===o?void 0:o.normalize(e))||e;t.fixedPosition={chartX:i.chartX,chartY:i.chartY,plotX:t.plotX,plotY:t.plotY},t.inDragMode=!0},onMouseMove:function(t,e){var o;if(t.fixedPosition&&t.inDragMode){var i=this.chart,s=(null===(o=i.pointer)||void 0===o?void 0:o.normalize(e))||e,r=t.fixedPosition.chartX-s.chartX,n=t.fixedPosition.chartY-s.chartY,a=i.graphLayoutsLookup,h=void 0,p=void 0;(Math.abs(r)>5||Math.abs(n)>5)&&(h=t.fixedPosition.plotX-r,p=t.fixedPosition.plotY-n,i.isInsidePlot(h,p)&&(t.plotX=h,t.plotY=p,t.hasDragged=!0,this.redrawHalo(t),a.forEach(function(t){t.restartSimulation()})))}},onMouseUp:function(t){t.fixedPosition&&(t.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),t.inDragMode=t.hasDragged=!1,this.options.fixedDraggable||delete t.fixedPosition)},redrawHalo:function(t){t&&this.halo&&this.halo.attr({d:t.haloPath(this.options.states.hover.halo.size)})}},b=l().setAnimation,x=l().composed,k=l().addEvent,N=l().pushUnique;function L(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(t){t.updateSimulation()}),this.redraw())}function P(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(t){t.updateSimulation(!1)}),this.redraw())}function w(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(t){t.stop()})}function S(){var t,e=!1,o=function(o){o.maxIterations--&&isFinite(o.temperature)&&!o.isStable()&&!o.enableSimulation&&(o.beforeStep&&o.beforeStep(),o.step(),t=!1,e=!0)};if(this.graphLayoutsLookup){for(b(!1,this),this.graphLayoutsLookup.forEach(function(t){return t.start()});!t;)t=!0,this.graphLayoutsLookup.forEach(o);e&&this.series.forEach(function(t){t&&t.layout&&t.render()})}}var M={compose:function(t){N(x,"GraphLayout")&&(k(t,"afterPrint",L),k(t,"beforePrint",P),k(t,"predraw",w),k(t,"render",S))},integrations:{},layouts:{}},T=h(512),X=h.n(T),Y=X().series,D=Y.prototype,E=Y.prototype.pointClass.prototype,F=l().defined,O=l().extend,C=l().find,A=l().merge,I=l().pick;!function(t){function e(){return this.data=[].concat(this.points||[],this.nodes),D.destroy.apply(this,arguments)}function o(){this.nodes&&(this.nodes.forEach(function(t){t.destroy()}),this.nodes.length=0),D.setData.apply(this,arguments)}function i(t){var e=arguments,o=this.isNode?this.linksTo.concat(this.linksFrom):[this.fromNode,this.toNode];"select"!==t&&o.forEach(function(t){t&&t.series&&(E.setState.apply(t,e),!t.isNode&&(t.fromNode.graphic&&E.setState.apply(t.fromNode,e),t.toNode&&t.toNode.graphic&&E.setState.apply(t.toNode,e)))}),E.setState.apply(this,e)}function s(t,e,o,i){var s=this,r=this.series.options.nodes,n=this.series.options.data,a=(null==n?void 0:n.length)||0,h=null==n?void 0:n[this.index];if(E.update.call(this,t,!this.isNode&&e,o,i),this.isNode){var p=(r||[]).reduce(function(t,e,o){return s.id===e.id?o:t},-1),d=A(r&&r[p]||{},(null==n?void 0:n[this.index])||{});n&&(h?n[this.index]=h:n.length=a),r?p>=0?r[p]=d:r.push(d):this.series.options.nodes=[d],I(e,!0)&&this.series.chart.redraw(o)}}t.compose=function(t,r){var n=t.prototype,a=r.prototype;return n.setNodeState=i,n.setState=i,n.update=s,a.destroy=e,a.setData=o,r},t.createNode=function(t){var e,o=this.pointClass,i=function(t,e){return C(t,function(t){return t.id===e})},s=i(this.nodes,t);if(!s){e=this.options.nodes&&i(this.options.nodes,t);var r=new o(this,O({className:"highcharts-node",isNode:!0,id:t,y:1},e));r.linksTo=[],r.linksFrom=[],r.getSum=function(){var t=0,e=0;return r.linksTo.forEach(function(e){t+=e.weight||0}),r.linksFrom.forEach(function(t){e+=t.weight||0}),Math.max(t,e)},r.offset=function(t,e){for(var o=0,i=0;i<r[e].length;i++){if(r[e][i]===t)return o;o+=r[e][i].weight}},r.hasShape=function(){var t=0;return r.linksTo.forEach(function(e){e.outgoing&&t++}),!r.linksTo.length||t!==r.linksTo.length},r.index=this.nodes.push(r)-1,s=r}return s.formatPrefix="node",s.name=s.name||s.options.id||"",s.mass=I(s.options.mass,s.options.marker&&s.options.marker.radius,this.options.marker&&this.options.marker.radius,4),s},t.destroy=e,t.generatePoints=function(){var t=this,e=this.chart,o={};D.generatePoints.call(this),this.nodes||(this.nodes=[]),this.colorCounter=0,this.nodes.forEach(function(t){t.linksFrom.length=0,t.linksTo.length=0,t.level=t.options.level}),this.points.forEach(function(i){F(i.from)&&(o[i.from]||(o[i.from]=t.createNode(i.from)),o[i.from].linksFrom.push(i),i.fromNode=o[i.from],e.styledMode?i.colorIndex=I(i.options.colorIndex,o[i.from].colorIndex):i.color=i.options.color||o[i.from].color),F(i.to)&&(o[i.to]||(o[i.to]=t.createNode(i.to)),o[i.to].linksTo.push(i),i.toNode=o[i.to]),i.name=i.name||i.id},this),this.nodeLookup=o},t.setNodeState=i,t.updateNode=s}(r||(r={}));var R=r,q=(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),_=X().series,B=_.prototype,G=_.prototype.pointClass,H=l().addEvent,j=l().css,K=l().defined,U=l().extend,z=l().pick,V=function(t){function e(e,o,i){var s=t.call(this,e,o,i)||this;return s.series.options.draggable&&!s.series.chart.styledMode&&(H(s,"mouseOver",function(){j(this.series.chart.container,{cursor:"move"})}),H(s,"mouseOut",function(){j(this.series.chart.container,{cursor:"default"})})),s}return q(e,t),e.prototype.destroy=function(){return this.isNode&&this.linksFrom.concat(this.linksTo).forEach(function(t){t.destroyElements&&t.destroyElements()}),this.series.layout.removeElementFromCollection(this,this.series.layout[this.isNode?"nodes":"links"]),G.prototype.destroy.apply(this,arguments)},e.prototype.getDegree=function(){var t=this.isNode?this.linksFrom.length+this.linksTo.length:0;return 0===t?1:t},e.prototype.getLinkAttributes=function(){var t=this.series.options.link,e=this.options;return{"stroke-width":z(e.width,t.width),stroke:e.color||t.color,dashstyle:e.dashStyle||t.dashStyle,opacity:z(e.opacity,t.opacity,1)}},e.prototype.getLinkPath=function(){var t=this.fromNode,e=this.toNode;return t.plotX>e.plotX&&(t=this.toNode,e=this.fromNode),[["M",t.plotX||0,t.plotY||0],["L",e.plotX||0,e.plotY||0]]},e.prototype.getMass=function(){var t=this.fromNode.mass,e=this.toNode.mass,o=t+e;return{fromNode:1-t/o,toNode:1-e/o}},e.prototype.isValid=function(){return!this.isNode||K(this.id)},e.prototype.redrawLink=function(){var t,e=this.getLinkPath();if(this.graphic){this.shapeArgs={d:e},this.series.chart.styledMode||(t=this.series.pointAttribs(this),this.graphic.attr(t),(this.dataLabels||[]).forEach(function(e){e&&e.attr({opacity:t.opacity})})),this.graphic.animate(this.shapeArgs);var o=e[0],i=e[1];"M"===o[0]&&"L"===i[0]&&(this.plotX=(o[1]+i[1])/2,this.plotY=(o[2]+i[2])/2)}},e.prototype.remove=function(t,e){var o,i=this.series,s=i.options.nodes||[],r=s.length;if(this.isNode){for(i.points=[],[].concat(this.linksFrom).concat(this.linksTo).forEach(function(t){(o=t.fromNode.linksFrom.indexOf(t))>-1&&t.fromNode.linksFrom.splice(o,1),(o=t.toNode.linksTo.indexOf(t))>-1&&t.toNode.linksTo.splice(o,1),B.removePoint.call(i,i.data.indexOf(t),!1,!1)}),i.points=i.data.slice(),i.nodes.splice(i.nodes.indexOf(this),1);r--;)if(s[r].id===this.options.id){i.options.nodes.splice(r,1);break}this&&this.destroy(),i.isDirty=!0,i.isDirtyData=!0,t&&i.chart.redraw(t)}else i.removePoint(i.data.indexOf(this),t,e)},e.prototype.renderLink=function(){var t;this.graphic||(this.graphic=this.series.chart.renderer.path(this.getLinkPath()).addClass(this.getClassName(),!0).add(this.series.group),this.series.chart.styledMode||(t=this.series.pointAttribs(this),this.graphic.attr(t),(this.dataLabels||[]).forEach(function(e){e&&e.attr({opacity:t.opacity})})))},e}(G);U(V.prototype,{setState:R.setNodeState});var Q={stickyTracking:!1,inactiveOtherPoints:!0,marker:{enabled:!0,states:{inactive:{opacity:.3,animation:{duration:50}}}},states:{inactive:{linkOpacity:.3,animation:{duration:50}}},dataLabels:{formatter:function(){var t;return String(null!==(t=this.key)&&void 0!==t?t:"")},linkFormatter:function(){return this.fromNode.name+"<br>"+this.toNode.name},linkTextPath:{enabled:!0},textPath:{enabled:!1},style:{transition:"opacity 2000ms"},defer:!0,animation:{defer:1e3}},link:{color:"rgba(100, 100, 100, 0.5)",width:1},draggable:!0,layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:1,enableSimulation:!1,theta:.5,maxSpeed:10,approximation:"none",type:"reingold-fruchterman",integration:"euler",maxIterations:1e3,gravitationalConstant:.0625,friction:-.981},showInLegend:!1},W={attractive:function(t,e,o,i){var s=t.getMass(),r=o.x/i*e,n=o.y/i*e;t.fromNode.fixedPosition||(t.fromNode.dispX-=r*s.fromNode/t.fromNode.degree,t.fromNode.dispY-=n*s.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=r*s.toNode/t.toNode.degree,t.toNode.dispY+=n*s.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return t*t/e},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,o=this.barycenter.yFactor;this.nodes.forEach(function(i){if(!i.fixedPosition){var s=i.getDegree(),r=s*(1+s/2);i.dispX+=(e-i.plotX)*t*r/i.degree,i.dispY+=(o-i.plotY)*t*r/i.degree}})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.3)},integrate:function(t,e){e.dispX+=e.dispX*t.options.friction,e.dispY+=e.dispY*t.options.friction;var o=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==o&&(e.plotX+=e.dispX/o*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/o*Math.min(Math.abs(e.dispY),t.temperature))},repulsive:function(t,e,o,i){t.dispX+=o.x/i*e/t.degree,t.dispY+=o.y/i*e/t.degree},repulsiveForceFunction:function(t,e){return e*e/t}},J=function(){function t(t){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=t,this.boxSize=Math.min(t.width,t.height)}return t.prototype.divideBox=function(){var e=this.box.width/2,o=this.box.height/2;this.nodes[0]=new t({left:this.box.left,top:this.box.top,width:e,height:o}),this.nodes[1]=new t({left:this.box.left+e,top:this.box.top,width:e,height:o}),this.nodes[2]=new t({left:this.box.left+e,top:this.box.top+o,width:e,height:o}),this.nodes[3]=new t({left:this.box.left,top:this.box.top+o,width:e,height:o})},t.prototype.getBoxPosition=function(t){var e=t.plotX<this.box.left+this.box.width/2,o=t.plotY<this.box.top+this.box.height/2;return e?o?0:3:o?1:2},t.prototype.insert=function(e,o){var i;this.isInternal?this.nodes[this.getBoxPosition(e)].insert(e,o-1):(this.isEmpty=!1,this.body?o?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,o-1),this.body=!0),this.nodes[this.getBoxPosition(e)].insert(e,o-1)):((i=new t({top:e.plotX||NaN,left:e.plotY||NaN,width:.1,height:.1})).body=e,i.isInternal=!1,this.nodes.push(i)):(this.isInternal=!1,this.body=e))},t.prototype.updateMassAndCenter=function(){var t=0,e=0,o=0;if(this.isInternal){for(var i=0,s=this.nodes;i<s.length;i++){var r=s[i];r.isEmpty||(t+=r.mass,e+=r.plotX*r.mass,o+=r.plotY*r.mass)}e/=t,o/=t}else this.body&&(t=this.body.mass,e=this.body.plotX,o=this.body.plotY);this.mass=t,this.plotX=e,this.plotY=o},t}(),Z=function(){function t(t,e,o,i){this.box={left:t,top:e,width:o,height:i},this.maxDepth=25,this.root=new J(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return t.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(t){t.updateMassAndCenter()})},t.prototype.insertNodes=function(t){for(var e=0;e<t.length;e++){var o=t[e];this.root.insert(o,this.maxDepth)}},t.prototype.visitNodeRecursive=function(t,e,o){var i;if(t||(t=this.root),t===this.root&&e&&(i=e(t)),!1!==i){for(var s=0,r=t.nodes;s<r.length;s++){var n=r[s];if(n.isInternal){if(e&&(i=e(n)),!1===i)continue;this.visitNodeRecursive(n,e,o)}else n.body&&e&&e(n.body);o&&o(n)}t===this.root&&o&&o(t)}},t}(),$={attractive:function(t,e,o){var i=t.getMass(),s=-o.x*e*this.diffTemperature,r=-o.y*e*this.diffTemperature;t.fromNode.fixedPosition||(t.fromNode.plotX-=s*i.fromNode/t.fromNode.degree,t.fromNode.plotY-=r*i.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=s*i.toNode/t.toNode.degree,t.toNode.plotY+=r*i.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return(e-t)/t},barycenter:function(){var t=this.options.gravitationalConstant||0,e=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*t,o=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*t;this.nodes.forEach(function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=o/t.mass/t.degree)})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)},integrate:function(t,e){var o=-t.options.friction,i=t.options.maxSpeed,s=e.prevX,r=e.prevY,n=(e.plotX+e.dispX-s)*o,a=(e.plotY+e.dispY-r)*o,h=Math.abs,p=h(n)/(n||1),d=h(a)/(a||1),l=p*Math.min(i,Math.abs(n)),u=d*Math.min(i,Math.abs(a));e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=l,e.plotY+=u,e.temperature=t.vectorLength({x:l,y:u})},repulsive:function(t,e,o){var i=e*this.diffTemperature/t.mass/t.degree;t.fixedPosition||(t.plotX+=o.x*i,t.plotY+=o.y*i)},repulsiveForceFunction:function(t,e){return(e-t)/t*(e>t?1:0)}},tt=l().win,te=l().clamp,to=l().defined,ti=l().isFunction,ts=l().fireEvent,tr=l().pick,tn=function(){function t(){this.box={},this.currentStep=0,this.initialRendering=!0,this.links=[],this.nodes=[],this.series=[],this.simulation=!1}return t.compose=function(e){M.compose(e),M.integrations.euler=W,M.integrations.verlet=$,M.layouts["reingold-fruchterman"]=t},t.prototype.init=function(t){this.options=t,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=M.integrations[t.integration],this.enableSimulation=t.enableSimulation,this.attractiveForce=tr(t.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=tr(t.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=t.approximation},t.prototype.updateSimulation=function(t){this.enableSimulation=tr(t,this.options.enableSimulation)},t.prototype.start=function(){var t=this.series,e=this.options;this.currentStep=0,this.forces=t[0]&&t[0].forces||[],this.chart=t[0]&&t[0].chart,this.initialRendering&&(this.initPositions(),t.forEach(function(t){t.finishedAnimating=!0,t.render()})),this.setK(),this.resetSimulation(e),this.enableSimulation&&this.step()},t.prototype.step=function(){var t=this,e=this.series;this.currentStep++,"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var o=0,i=this.forces||[];o<i.length;o++)this[i[o]+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(var s=0;s<e.length;s++){var r=e[s];r.chart&&r.render()}this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&tt.cancelAnimationFrame(this.simulation),this.simulation=tt.requestAnimationFrame(function(){return t.step()})):(this.simulation=!1,this.series.forEach(function(t){ts(t,"afterSimulation")}))}},t.prototype.stop=function(){this.simulation&&tt.cancelAnimationFrame(this.simulation)},t.prototype.setArea=function(t,e,o,i){this.box={left:t,top:e,width:o,height:i}},t.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},t.prototype.addElementsToCollection=function(t,e){for(var o=0;o<t.length;o++){var i=t[o];-1===e.indexOf(i)&&e.push(i)}},t.prototype.removeElementFromCollection=function(t,e){var o=e.indexOf(t);-1!==o&&e.splice(o,1)},t.prototype.clear=function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},t.prototype.resetSimulation=function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},t.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))},t.prototype.setMaxIterations=function(t){this.maxIterations=tr(t,this.options.maxIterations)},t.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},t.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},t.prototype.setInitialRendering=function(t){this.initialRendering=t},t.prototype.createQuadTree=function(){this.quadTree=new Z(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},t.prototype.initPositions=function(){var t=this.options.initialPositions;if(ti(t)){t.call(this);for(var e=0,o=this.nodes;e<o.length;e++){var i=o[e];to(i.prevX)||(i.prevX=i.plotX),to(i.prevY)||(i.prevY=i.plotY),i.dispX=0,i.dispY=0}}else"circle"===t?this.setCircularPositions():this.setRandomPositions()},t.prototype.setCircularPositions=function(){for(var t,e=this.box,o=this.nodes,i=2*Math.PI/(o.length+1),s=o.filter(function(t){return 0===t.linksTo.length}),r={},n=this.options.initialPositionRadius,a=function(t){for(var e=0,o=t.linksFrom||[];e<o.length;e++){var i=o[e];r[i.toNode.id]||(r[i.toNode.id]=!0,h.push(i.toNode),a(i.toNode))}},h=[],p=0;p<s.length;p++){var d=s[p];h.push(d),a(d)}if(h.length)for(var l=0;l<o.length;l++){var u=o[l];-1===h.indexOf(u)&&h.push(u)}else h=o;for(var c=0,f=h.length;c<f;++c)(t=h[c]).plotX=t.prevX=tr(t.plotX,e.width/2+n*Math.cos(c*i)),t.plotY=t.prevY=tr(t.plotY,e.height/2+n*Math.sin(c*i)),t.dispX=0,t.dispY=0},t.prototype.setRandomPositions=function(){for(var t,e=this.box,o=this.nodes,i=o.length+1,s=function(t){var e=t*t/Math.PI;return e-Math.floor(e)},r=0,n=o.length;r<n;++r)(t=o[r]).plotX=t.prevX=tr(t.plotX,e.width*s(r)),t.plotY=t.prevY=tr(t.plotY,e.height*s(i+r)),t.dispX=0,t.dispY=0},t.prototype.force=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];this.integration[t].apply(this,e)},t.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},t.prototype.getBarycenter=function(){for(var t=0,e=0,o=0,i=0,s=this.nodes;i<s.length;i++){var r=s[i];e+=r.plotX*r.mass,o+=r.plotY*r.mass,t+=r.mass}return this.barycenter={x:e,y:o,xFactor:e/t,yFactor:o/t},this.barycenter},t.prototype.barnesHutApproximation=function(t,e){var o,i,s=this.getDistXY(t,e),r=this.vectorLength(s);return t!==e&&0!==r&&(e.isInternal?e.boxSize/r<this.options.theta&&0!==r?(i=this.repulsiveForce(r,this.k),this.force("repulsive",t,i*e.mass,s,r),o=!1):o=!0:(i=this.repulsiveForce(r,this.k),this.force("repulsive",t,i*e.mass,s,r))),o},t.prototype.repulsiveForces=function(){var t=this;if("barnes-hut"===this.approximation)for(var e=function(e){o.quadTree.visitNodeRecursive(null,function(o){return t.barnesHutApproximation(e,o)})},o=this,i=0,s=this.nodes;i<s.length;i++){var r=s[i];e(r)}else for(var n=void 0,a=void 0,h=void 0,p=0,d=this.nodes;p<d.length;p++)for(var r=d[p],l=0,u=this.nodes;l<u.length;l++){var c=u[l];r===c||r.fixedPosition||(h=this.getDistXY(r,c),0!==(a=this.vectorLength(h))&&(n=this.repulsiveForce(a,this.k),this.force("repulsive",r,n*c.mass,h,a)))}},t.prototype.attractiveForces=function(){for(var t,e,o,i=0,s=this.links;i<s.length;i++){var r=s[i];r.fromNode&&r.toNode&&(t=this.getDistXY(r.fromNode,r.toNode),0!==(e=this.vectorLength(t))&&(o=this.attractiveForce(e,this.k),this.force("attractive",r,o,t,e)))}},t.prototype.applyLimits=function(){for(var t=this.nodes,e=0;e<t.length;e++){var o=t[e];o.fixedPosition||(this.integration.integrate(this,o),this.applyLimitBox(o,this.box),o.dispX=0,o.dispY=0)}},t.prototype.applyLimitBox=function(t,e){var o=t.radius;t.plotX=te(t.plotX,e.left+o,e.width-o),t.plotY=te(t.plotY,e.top+o,e.height-o)},t.prototype.coolDown=function(t,e,o){return t-e*o},t.prototype.isStable=function(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0},t.prototype.getSystemTemperature=function(){for(var t=0,e=0,o=this.nodes;e<o.length;e++)t+=o[e].temperature;return t},t.prototype.vectorLength=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.prototype.getDistR=function(t,e){var o=this.getDistXY(t,e);return this.vectorLength(o)},t.prototype.getDistXY=function(t,e){var o=t.plotX-e.plotX,i=t.plotY-e.plotY;return{x:o,y:i,absX:Math.abs(o),absY:Math.abs(i)}},t}(),ta=l().merge,th=l().syncTimeout,tp=l().animObject,td={initDataLabels:function(){var t=this.options.dataLabels;if(!this.dataLabelsGroup){var e=this.initDataLabelsGroup();return!this.chart.styledMode&&(null==t?void 0:t.style)&&e.css(t.style),e.attr({opacity:0}),this.visible&&e.show(),e}return this.dataLabelsGroup.attr(ta({opacity:1},this.getPlotBox("data-labels"))),this.dataLabelsGroup},initDataLabelsDefer:function(){var t,e=this,o=this.options.dataLabels;(null==o?void 0:o.defer)&&(null===(t=this.options.layoutAlgorithm)||void 0===t?void 0:t.enableSimulation)?th(function(){e.deferDataLabels=!1},o?tp(o.animation).defer:0):this.deferDataLabels=!1}},tl=l().deg2rad,tu=l().addEvent,tc=l().merge,tf=l().uniqueKey,ty=l().defined,tm=l().extend;function tg(t,e){var o=this;e=tc(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var i=this.renderer.url,s=this.text||this,r=s.textPath,n=e.attributes,a=e.enabled;if(t=t||r&&r.path,r&&r.undo(),t&&a){var h=tu(s,"afterModifyTree",function(e){if(t&&a){var r=t.attr("id");r||t.attr("id",r=tf());var h={x:0,y:0};ty(n.dx)&&(h.dx=n.dx,delete n.dx),ty(n.dy)&&(h.dy=n.dy,delete n.dy),s.attr(h),o.attr({transform:""}),o.box&&(o.box=o.box.destroy());var p=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:tm(n,{"text-anchor":n.textAnchor,href:""+i+"#".concat(r)}),children:p}}});s.textPath={path:t,undo:h}}else s.attr({dx:0,dy:0}),delete s.textPath;return this.added&&(s.textCache="",this.renderer.buildText(s)),this}function tv(t){var e,o=t.bBox,i=null===(e=this.element)||void 0===e?void 0:e.querySelector("textPath");if(i){for(var s=[],r=this.renderer.fontMetrics(this.element),n=r.b,a=r.h-n,h=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),p=i.innerHTML.replace(h,"").split(/<tspan class="highcharts-br"[^>]*>/),d=p.length,l=function(t,e){var o=e.x,s=e.y,r=(i.getRotationOfChar(t)-90)*tl,h=Math.cos(r),p=Math.sin(r);return[[o-a*h,s-a*p],[o+n*h,s+n*p]]},u=0,c=0;c<d;c++){for(var f=p[c].length,y=0;y<f;y+=5)try{var m=u+y+c,g=l(m,i.getStartPositionOfChar(m)),v=g[0],b=g[1];0===y?(s.push(b),s.push(v)):(0===c&&s.unshift(b),c===d-1&&s.push(v))}catch(t){break}u+=f-1;try{var m=u+c,x=i.getEndPositionOfChar(m),k=l(m,x),v=k[0],b=k[1];s.unshift(b),s.unshift(v)}catch(t){break}}s.length&&s.push(s[0].slice()),o.polygon=s}return o}function tb(t){var e,o=t.labelOptions,i=t.point,s=o[i.formatPrefix+"TextPath"]||o.textPath;s&&!o.useHTML&&(this.setTextPath((null===(e=i.getDataLabelPath)||void 0===e?void 0:e.call(i,this))||i.graphic,s),i.dataLabelPath&&!s.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy()))}var tx=(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(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 o(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),tk=l().noop,tN=X().series,tL=X().seriesTypes,tP=tL.column.prototype,tw=tL.line.prototype,tS=td.initDataLabels,tM=td.initDataLabelsDefer,tT=l().addEvent,tX=l().defined,tY=l().extend,tD=l().merge,tE=l().pick;({compose:function(t){tu(t,"afterGetBBox",tv),tu(t,"beforeAddingDataLabel",tb);var e=t.prototype;e.setTextPath||(e.setTextPath=tg)}}).compose(c());var tF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deferDataLabels=!0,e}return tx(e,t),e.compose=function(t){v.compose(t),tn.compose(t)},e.prototype.deferLayout=function(){var t,e=this.options.layoutAlgorithm,o=this.chart.options.chart,i=this.chart.graphLayoutsStorage,s=this.chart.graphLayoutsLookup;this.visible&&(i||(this.chart.graphLayoutsStorage=i={},this.chart.graphLayoutsLookup=s=[]),(t=i[e.type])||(e.enableSimulation=tX(o.forExport)?!o.forExport:e.enableSimulation,i[e.type]=t=new M.layouts[e.type],t.init(e),s.splice(t.index,0,t)),this.layout=t,t.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),t.addElementsToCollection([this],t.series),t.addElementsToCollection(this.nodes,t.nodes),t.addElementsToCollection(this.points,t.links))},e.prototype.destroy=function(){this.layout&&this.layout.removeElementFromCollection(this,this.layout.series),R.destroy.call(this)},e.prototype.drawDataLabels=function(){if(!this.deferDataLabels){var t,e=this.options.dataLabels;(null==e?void 0:e.textPath)&&(t=e.textPath),tN.prototype.drawDataLabels.call(this,this.nodes),(null==e?void 0:e.linkTextPath)&&(e.textPath=e.linkTextPath),tN.prototype.drawDataLabels.call(this,this.data),(null==e?void 0:e.textPath)&&(e.textPath=t)}},e.prototype.generatePoints=function(){var t,e;for(R.generatePoints.apply(this,arguments),this.options.nodes&&this.options.nodes.forEach(function(t){this.nodeLookup[t.id]||(this.nodeLookup[t.id]=this.createNode(t.id))},this),e=this.nodes.length-1;e>=0;e--)(t=this.nodes[e]).degree=t.getDegree(),t.radius=tE(t.marker&&t.marker.radius,this.options.marker&&this.options.marker.radius,0),t.key=t.name,this.nodeLookup[t.id]||t.remove();this.data.forEach(function(t){t.formatPrefix="link"}),this.indexateNodes()},e.prototype.getPointsCollection=function(){return this.nodes||[]},e.prototype.indexateNodes=function(){this.nodes.forEach(function(t,e){t.index=e})},e.prototype.init=function(e,o){var i=this;return t.prototype.init.call(this,e,o),tM.call(this),tT(this,"updatedData",function(){i.layout&&i.layout.stop()}),tT(this,"afterUpdate",function(){i.nodes.forEach(function(t){t&&t.series&&t.resolveColor()})}),tT(this,"afterSimulation",function(){this.deferDataLabels=!1,this.drawDataLabels()}),this},e.prototype.markerAttribs=function(t,e){var o=tN.prototype.markerAttribs.call(this,t,e);return tX(t.plotY)||(o.y=0),o.x=(t.plotX||0)-(o.width||0)/2,o},e.prototype.pointAttribs=function(t,e){var o=e||t&&t.state||"normal",i=this.options.states[o],s=tN.prototype.pointAttribs.call(this,t,o);return t&&!t.isNode&&(s=t.getLinkAttributes(),i&&(s={stroke:i.linkColor||s.stroke,dashstyle:i.linkDashStyle||s.dashstyle,opacity:tE(i.linkOpacity,s.opacity),"stroke-width":i.linkColor||s["stroke-width"]})),s},e.prototype.render=function(){var t=this.points,e=this.chart.hoverPoint,o=[];this.points=this.nodes,tw.render.call(this),this.points=t,t.forEach(function(t){t.fromNode&&t.toNode&&(t.renderLink(),t.redrawLink())}),e&&e.series===this&&this.redrawHalo(e),this.chart.hasRendered&&!this.options.dataLabels.allowOverlap&&(this.nodes.concat(this.points).forEach(function(t){t.dataLabel&&o.push(t.dataLabel)}),this.chart.hideOverlappingLabels(o))},e.prototype.setState=function(t,e){e?(this.points=this.nodes.concat(this.data),tN.prototype.setState.apply(this,arguments),this.points=this.data):tN.prototype.setState.apply(this,arguments),this.layout.simulation||t||this.render()},e.prototype.translate=function(){this.generatePoints(),this.deferLayout(),this.nodes.forEach(function(t){t.isInside=!0,t.linksFrom.forEach(function(t){t.shapeType="path",t.y=1})})},e.defaultOptions=tD(tN.defaultOptions,Q),e}(tN);tY(tF.prototype,{pointClass:V,animate:void 0,directTouch:!0,drawGraph:void 0,forces:["barycenter","repulsive","attractive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["from","to"],requireSorting:!1,trackerGroups:["group","markerGroup","dataLabelsGroup"],initDataLabels:tS,buildKDTree:tk,createNode:R.createNode,drawTracker:tP.drawTracker,onMouseDown:v.onMouseDown,onMouseMove:v.onMouseMove,onMouseUp:v.onMouseUp,redrawHalo:v.redrawHalo}),X().registerSeriesType("networkgraph",tF);var tO=l();tF.compose(tO.Chart);var tC=l();return p.default}()});
Hacked By AnonymousFox1.0, Coded By AnonymousFox