!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.f6=n():t.f6=n()}(this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=401)}({10:function(t,n,e){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),o=this&&this.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(n,"__esModule",{value:!0}),o(e(11),n),o(e(12),n),o(e(13),n),o(e(14),n),o(e(15),n),o(e(16),n)},11:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelize=n.isString=void 0;n.isString=function(t){return"string"==typeof t};var r,o,i=/-(\w)/g;n.camelize=(r=function(t){return t.replace(i,(function(t,n){return n?n.toUpperCase():""}))},o=Object.create(null),function(t){return o[t]||(o[t]=r(t))})},12:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isArray=void 0,n.isArray=Array.isArray},13:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.toNumber=n.isNaN=n.isNumber=void 0;n.isNumber=function(t){return"number"==typeof t};n.isNaN=function(t){return Number.isNaN(Number(t))};n.toNumber=function(t){var e=parseFloat(t);return n.isNaN(e)?t:e}},14:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.traverseTreeUp=n.scaleMatrix=n.getAdjMatrix=n.floydWarshall=n.getDegree=void 0;n.getDegree=function(t,n,e){for(var r=[],o=0;on[r][i]+n[i][o]&&(n[r][o]=n[r][i]+n[i][o]);return n};n.getAdjMatrix=function(t,n){var e=t.nodes,r=t.edges,o=[],i={};if(!e)throw new Error("invalid nodes data!");return e&&e.forEach((function(t,n){i[t.id]=n;o.push([])})),r&&r.forEach((function(t){var e=t.source,r=t.target,u=i[e],c=i[r];o[u][c]=1,n||(o[c][u]=1)})),o};n.scaleMatrix=function(t,n){var e=[];return t.forEach((function(t){var r=[];t.forEach((function(t){r.push(t*n)})),e.push(r)})),e};n.traverseTreeUp=function(t,n){"function"==typeof n&&function t(n,e){if(n&&n.children)for(var r=n.children.length-1;r>=0;r--)if(!t(n.children[r],e))return;return!!e(n)}(t,n)}},15:function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e=(i=(p+g)/2))?p=i:g=i,(l=e>=(u=(v+_)/2))?v=u:_=u,o=d,!(d=d[s=l<<1|a]))return o[s]=y,t;if(c=+t._x.call(null,d.data),f=+t._y.call(null,d.data),n===c&&e===f)return y.next=d,o?o[s]=y:t._root=y,t;do{o=o?o[s]=new Array(4):t._root=new Array(4),(a=n>=(i=(p+g)/2))?p=i:g=i,(l=e>=(u=(v+_)/2))?v=u:_=u}while((s=l<<1|a)==(h=(f>=u)<<1|c>=i));return o[h]=d,o[s]=y,t}var i=function(t,n,e,r,o){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=o};function u(t){return t[0]}function c(t){return t[1]}function f(t,n,e){var r=new a(null==n?u:n,null==e?c:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function a(t,n,e,r,o,i){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function l(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var s=f.prototype=a.prototype;s.copy=function(){var t,n,e=new a(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=l(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var o=0;o<4;++o)(n=r.source[o])&&(n.length?t.push({source:n,target:r.target[o]=new Array(4)}):r.target[o]=l(n));return e},s.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return o(this.cover(n,e),n,e,t)},s.addAll=function(t){var n,e,r,i,u=t.length,c=new Array(u),f=new Array(u),a=1/0,l=1/0,s=-1/0,h=-1/0;for(e=0;es&&(s=r),ih&&(h=i));if(a>s||l>h)return this;for(this.cover(a,l).cover(s,h),e=0;et||t>=o||r>n||n>=i;)switch(c=(nd||(u=a.y0)>y||(c=a.x1)=_)<<1|t>=g)&&(a=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=a)}else{var x=t-+this._x.call(null,v.data),b=n-+this._y.call(null,v.data),w=x*x+b*b;if(w=(c=(y+v)/2))?y=c:v=c,(l=u>=(f=(p+g)/2))?p=f:g=f,n=d,!(d=d[s=l<<1|a]))return this;if(!d.length)break;(n[s+1&3]||n[s+2&3]||n[s+3&3])&&(e=n,h=s)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(o=d.next)&&delete d.next,r?(o?r.next=o:delete r.next,this):n?(o?n[s]=o:delete n[s],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=o,this)},s.removeAll=function(t){for(var n=0,e=t.length;nl+y||is+y||ua.index){var p=l-c.x-c.vx,g=s-c.y-c.vy,_=p*p+g*g;_t.r&&(t.r=t[n].r)}function a(){if(n){var r,o,i=n.length;for(e=new Array(i),r=0;r=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function O(t,n){for(var e,r=0,o=t.length;r0)for(var e,r,o=new Array(e),i=0;i=0&&n._call.call(null,t),n=n._next;--P}()}finally{P=0,function(){var t,n,e=E,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:E=n);A=t,W(r)}(),L=0}}function I(){var t=U.now(),n=t-T;n>1e3&&(F-=n,T=t)}function W(t){P||(z&&(z=clearTimeout(z)),t-L>24?(t<1/0&&(z=setTimeout(G,t-U.now()-F)),D&&(D=clearInterval(D))):(D||(T=U.now(),D=setInterval(I,1e3)),P=1,C(G)))}Y.prototype=R.prototype={constructor:Y,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?q():+e)+(null==n?0:+n),this._next||A===this||(A?A._next=this:E=this,A=this),this._call=t,this._time=e,W()},stop:function(){this._call&&(this._call=null,this._time=1/0,W())}};var X=4294967296;function K(t){return t.x}function H(t){return t.y}var J=Math.PI*(3-Math.sqrt(5)),Q=function(t){var n,e,r=1,o=.001,i=1-Math.pow(o,1/300),u=0,c=.6,f=new Map,a=R(h),l=M("tick","end"),s=(e=1,function(){return(e=(1664525*e+1013904223)%X)/X});function h(){d(),l.call("tick",n),r1?(null==e?f.delete(t):f.set(t,p(e)),n):f.get(t)},find:function(n,e,r){var o,i,u,c,f,a=0,l=t.length;for(null==r?r=1/0:r*=r,a=0;a1?(l.on(t,e),n):l.on(t)}}},V=function(){var t,n,e,r,o,i=h(-30),u=1,c=1/0,a=.81;function l(e){var o,i=t.length,u=f(t,K,H).visitAfter(y);for(r=e,o=0;o=c)){(t.data!==n||t.next)&&(0===s&&(p+=(s=d(e))*s),0===h&&(p+=(h=d(e))*h),p-1||(n[r]=t[r])})),n})),this.ticking=!1},n.prototype.execute=function(t){var n=this,e=n.nodes,r=n.edges;if(!n.ticking){var o=n.forceSimulation,i=n.alphaMin,u=n.alphaDecay,c=n.alpha;if(o){if(t)if(n.clustering&&n.clusterForce&&(n.clusterForce.nodes(e),n.clusterForce.links(r)),o.nodes(e),r&&n.edgeForce)n.edgeForce.links(r);else if(r&&!n.edgeForce){h=a.forceLink().id((function(t){return t.id})).links(r);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}n.preventOverlap&&n.overlapProcess(o),o.alpha(c).restart(),this.ticking=!0}else try{var f=a.forceManyBody();if(n.nodeStrength&&f.strength(n.nodeStrength),o=a.forceSimulation().nodes(e),n.clustering){var s=l.default();s.centerX(n.center[0]).centerY(n.center[1]).template("force").strength(n.clusterFociStrength),r&&s.links(r),e&&s.nodes(e),s.forceLinkDistance(n.clusterEdgeDistance).forceLinkStrength(n.clusterEdgeStrength).forceCharge(n.clusterNodeStrength).forceNodeSize(n.clusterNodeSize),n.clusterForce=s,o.force("group",s)}if(o.force("center",a.forceCenter(n.center[0],n.center[1])).force("charge",f).alpha(c).alphaDecay(u).alphaMin(i),n.preventOverlap&&n.overlapProcess(o),r){var h=a.forceLink().id((function(t){return t.id})).links(r);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}if(n.workerEnabled&&!p()&&(n.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),n.workerEnabled){o.stop();for(var y=function(t){var n=t.alphaMin(),e=t.alphaTarget(),r=t.alpha(),o=Math.log((n-e)/(r-e))/Math.log(1-t.alphaDecay());return Math.ceil(o)}(o),v=1;v<=y;v++)o.tick(),postMessage({nodes:e,currentTick:v,totalTicks:y,type:d.LAYOUT_MESSAGE.TICK},void 0);n.ticking=!1}else o.on("tick",(function(){n.tick()})).on("end",(function(){n.ticking=!1,n.onLayoutEnd&&n.onLayoutEnd()})),n.ticking=!0;n.forceSimulation=o,n.ticking=!0}catch(t){n.ticking=!1,console.warn(t)}}},n.prototype.overlapProcess=function(t){var n,e,r=this.nodeSize,o=this.nodeSpacing,i=this.collideStrength;if(e=s.isNumber(o)?function(){return o}:s.isFunction(o)?o:function(){return 0},r)if(s.isFunction(r))n=function(t){return r(t)+e(t)};else if(s.isArray(r)){var u=(r[0]>r[1]?r[0]:r[1])/2;n=function(t){return u+e(t)}}else if(s.isNumber(r)){var c=r/2;n=function(t){return c+e(t)}}else n=function(){return 10};else n=function(t){return t.size?s.isArray(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+e(t):t.size/2+e(t):10+e(t)};t.force("collisionForce",a.forceCollide(n).strength(i))},n.prototype.updateCfg=function(t){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.forceSimulation=null,Object.assign(this,t)},n.prototype.destroy=function(){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.nodes=null,this.edges=null,this.destroyed=!0},n}(h.Base);function p(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}n.ForceLayout=y},403:function(t,n,e){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return o(n,t),n};Object.defineProperty(n,"__esModule",{value:!0});var u=i(e(167));n.default=function(){function t(t){return function(){return t}}var n,e=function(t){return t.cluster},r=t(1),o=t(-1),i=t(100),c=t(.1),f=[0,0],a=[],l={},s=[],h=100,d=100,y={none:{x:0,y:0}},p=[],v="force",g=!0,_=.1;function x(t){if(!g)return x;n.tick(),w();for(var r=0,o=a.length,i=void 0,u=t*_;r