@hir4ta/mneme 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.claude-plugin/plugin.json +29 -0
  2. package/.mcp.json +18 -0
  3. package/README.ja.md +400 -0
  4. package/README.md +410 -0
  5. package/bin/mneme.js +203 -0
  6. package/dist/lib/db.js +340 -0
  7. package/dist/lib/fuzzy-search.js +214 -0
  8. package/dist/lib/github.js +121 -0
  9. package/dist/lib/similarity.js +193 -0
  10. package/dist/lib/utils.js +62 -0
  11. package/dist/public/apple-touch-icon.png +0 -0
  12. package/dist/public/assets/index-BgqCALAg.css +1 -0
  13. package/dist/public/assets/index-EMvn4VEa.js +330 -0
  14. package/dist/public/assets/react-force-graph-2d-DWoBaKmT.js +46 -0
  15. package/dist/public/favicon-128-max.png +0 -0
  16. package/dist/public/favicon-256-max.png +0 -0
  17. package/dist/public/favicon-32-max.png +0 -0
  18. package/dist/public/favicon-512-max.png +0 -0
  19. package/dist/public/favicon-64-max.png +0 -0
  20. package/dist/public/index.html +15 -0
  21. package/dist/server.js +4791 -0
  22. package/dist/servers/db-server.js +30558 -0
  23. package/dist/servers/search-server.js +30366 -0
  24. package/hooks/default-tags.json +1055 -0
  25. package/hooks/hooks.json +61 -0
  26. package/hooks/post-tool-use.sh +96 -0
  27. package/hooks/pre-compact.sh +187 -0
  28. package/hooks/session-end.sh +567 -0
  29. package/hooks/session-start.sh +380 -0
  30. package/hooks/user-prompt-submit.sh +253 -0
  31. package/package.json +77 -0
  32. package/servers/db-server.ts +993 -0
  33. package/servers/search-server.ts +675 -0
  34. package/skills/AGENTS.override.md +5 -0
  35. package/skills/harvest/skill.md +295 -0
  36. package/skills/init-mneme/skill.md +101 -0
  37. package/skills/plan/skill.md +422 -0
  38. package/skills/report/skill.md +74 -0
  39. package/skills/resume/skill.md +278 -0
  40. package/skills/review/skill.md +419 -0
  41. package/skills/save/skill.md +482 -0
  42. package/skills/search/skill.md +175 -0
  43. package/skills/using-mneme/skill.md +185 -0
@@ -0,0 +1,46 @@
1
+ import{i as zt,r as ot,R as Di,c as On,a as En,b as $i,o as ji,m as zn,d as Rn,g as Fi}from"./index-EMvn4VEa.js";function Ui(e,n){let r=0;for(let i of e)(i=+i)&&(r+=i);return r}var In=180/Math.PI,Xe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Pr(e,n,r,i,o,a){var s,u,f;return(s=Math.sqrt(e*e+n*n))&&(e/=s,n/=s),(f=e*r+n*i)&&(r-=e*f,i-=n*f),(u=Math.sqrt(r*r+i*i))&&(r/=u,i/=u,f/=u),e*i<n*r&&(e=-e,n=-n,f=-f,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(n,e)*In,skewX:Math.atan(f)*In,scaleX:s,scaleY:u}}var fe;function Li(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?Xe:Pr(n.a,n.b,n.c,n.d,n.e,n.f)}function qi(e){return e==null||(fe||(fe=document.createElementNS("http://www.w3.org/2000/svg","g")),fe.setAttribute("transform",e),!(e=fe.transform.baseVal.consolidate()))?Xe:(e=e.matrix,Pr(e.a,e.b,e.c,e.d,e.e,e.f))}function Or(e,n,r,i){function o(l){return l.length?l.pop()+" ":""}function a(l,h,c,d,p,y){if(l!==c||h!==d){var m=p.push("translate(",null,n,null,r);y.push({i:m-4,x:zt(l,c)},{i:m-2,x:zt(h,d)})}else(c||d)&&p.push("translate("+c+n+d+r)}function s(l,h,c,d){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),d.push({i:c.push(o(c)+"rotate(",null,i)-2,x:zt(l,h)})):h&&c.push(o(c)+"rotate("+h+i)}function u(l,h,c,d){l!==h?d.push({i:c.push(o(c)+"skewX(",null,i)-2,x:zt(l,h)}):h&&c.push(o(c)+"skewX("+h+i)}function f(l,h,c,d,p,y){if(l!==c||h!==d){var m=p.push(o(p)+"scale(",null,",",null,")");y.push({i:m-4,x:zt(l,c)},{i:m-2,x:zt(h,d)})}else(c!==1||d!==1)&&p.push(o(p)+"scale("+c+","+d+")")}return function(l,h){var c=[],d=[];return l=e(l),h=e(h),a(l.translateX,l.translateY,h.translateX,h.translateY,c,d),s(l.rotate,h.rotate,c,d),u(l.skewX,h.skewX,c,d),f(l.scaleX,l.scaleY,h.scaleX,h.scaleY,c,d),l=h=null,function(p){for(var y=-1,m=d.length,_;++y<m;)c[(_=d[y]).i]=_.x(p);return c.join("")}}}var Hi=Or(Li,"px, ","px)","deg)"),Vi=Or(qi,", ",")",")"),Gi=1e-12;function Nn(e){return((e=Math.exp(e))+1/e)/2}function Wi(e){return((e=Math.exp(e))-1/e)/2}function Bi(e){return((e=Math.exp(2*e))-1)/(e+1)}const Xi=(function e(n,r,i){function o(a,s){var u=a[0],f=a[1],l=a[2],h=s[0],c=s[1],d=s[2],p=h-u,y=c-f,m=p*p+y*y,_,g;if(m<Gi)g=Math.log(d/l)/n,_=function(S){return[u+S*p,f+S*y,l*Math.exp(n*S*g)]};else{var w=Math.sqrt(m),C=(d*d-l*l+i*m)/(2*l*r*w),b=(d*d-l*l-i*m)/(2*d*r*w),x=Math.log(Math.sqrt(C*C+1)-C),A=Math.log(Math.sqrt(b*b+1)-b);g=(A-x)/n,_=function(S){var T=S*g,R=Nn(x),O=l/(r*w)*(R*Bi(n*T+x)-Wi(x));return[u+O*p,f+O*y,l*R/Nn(n*T+x)]}}return _.duration=g*1e3*n/Math.SQRT2,_}return o.rho=function(a){var s=Math.max(.001,+a),u=s*s,f=u*u;return e(s,u,f)},o})(Math.SQRT2,2,4);function Yi(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],f=!0,l=!1;try{if(a=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);f=!0);}catch(h){l=!0,o=h}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return u}}function Zi(e,n,r){return n=io(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Dn(e,n){return Ji(e)||Yi(e,n)||Er(e,n)||no()}function Ki(e){return Qi(e)||to(e)||Er(e)||eo()}function Qi(e){if(Array.isArray(e))return Ye(e)}function Ji(e){if(Array.isArray(e))return e}function to(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Er(e,n){if(e){if(typeof e=="string")return Ye(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ye(e,n)}}function Ye(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function eo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function no(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ro(e,n){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function io(e){var n=ro(e,"string");return typeof n=="symbol"?n:String(n)}var oo=function(n,r){var i=new Set(r);return Object.assign.apply(Object,[{}].concat(Ki(Object.entries(n).filter(function(o){var a=Dn(o,1),s=a[0];return!i.has(s)}).map(function(o){var a=Dn(o,2),s=a[0],u=a[1];return Zi({},s,u)}))))};function Ze(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function ao(e){if(Array.isArray(e))return e}function so(e){if(Array.isArray(e))return Ze(e)}function uo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lo(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],f=!0,l=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(f=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);f=!0);}catch(h){l=!0,o=h}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return u}}function fo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function co(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ho(e,n){return ao(e)||lo(e,n)||zr(e,n)||fo()}function $n(e){return so(e)||uo(e)||zr(e)||co()}function zr(e,n){if(e){if(typeof e=="string")return Ze(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ze(e,n):void 0}}function po(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.wrapperElementType,i=r===void 0?"div":r,o=n.nodeMapper,a=o===void 0?function(h){return h}:o,s=n.methodNames,u=s===void 0?[]:s,f=n.initPropNames,l=f===void 0?[]:f;return ot.forwardRef(function(h,c){var d=ot.useRef(),p=ot.useMemo(function(){var _=Object.fromEntries(l.filter(function(g){return h.hasOwnProperty(g)}).map(function(g){return[g,h[g]]}));return e(_)},[]);jn(function(){p(a(d.current))},ot.useLayoutEffect),jn(function(){return p._destructor instanceof Function?p._destructor:void 0});var y=ot.useCallback(function(_){for(var g=arguments.length,w=new Array(g>1?g-1:0),C=1;C<g;C++)w[C-1]=arguments[C];return p[_]instanceof Function?p[_].apply(p,w):void 0},[p]),m=ot.useRef({});return Object.keys(oo(h,[].concat($n(u),$n(l)))).filter(function(_){return m.current[_]!==h[_]}).forEach(function(_){return y(_,h[_])}),m.current=h,ot.useImperativeHandle(c,function(){return Object.fromEntries(u.map(function(_){return[_,function(){for(var g=arguments.length,w=new Array(g),C=0;C<g;C++)w[C]=arguments[C];return y.apply(void 0,[_].concat(w))}]}))},[y]),Di.createElement(i,{ref:d})})}function jn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ot.useEffect,r=ot.useRef(),i=ot.useRef(!1),o=ot.useRef(!1),a=ot.useState(0),s=ho(a,2);s[0];var u=s[1];i.current&&(o.current=!0),n(function(){return i.current||(r.current=e(),i.current=!0),u(function(f){return f+1}),function(){o.current&&r.current&&r.current()}},[])}var Ke="http://www.w3.org/1999/xhtml";const Fn={svg:"http://www.w3.org/2000/svg",xhtml:Ke,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Oe(e){var n=e+="",r=n.indexOf(":");return r>=0&&(n=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Fn.hasOwnProperty(n)?{space:Fn[n],local:e}:e}function go(e){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===Ke&&n.documentElement.namespaceURI===Ke?n.createElement(e):n.createElementNS(r,e)}}function yo(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Rr(e){var n=Oe(e);return(n.local?yo:go)(n)}function _o(){}function pn(e){return e==null?_o:function(){return this.querySelector(e)}}function vo(e){typeof e!="function"&&(e=pn(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,u=i[o]=new Array(s),f,l,h=0;h<s;++h)(f=a[h])&&(l=e.call(f,f.__data__,h,a))&&("__data__"in f&&(l.__data__=f.__data__),u[h]=l);return new nt(i,this._parents)}function mo(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function bo(){return[]}function Ir(e){return e==null?bo:function(){return this.querySelectorAll(e)}}function xo(e){return function(){return mo(e.apply(this,arguments))}}function wo(e){typeof e=="function"?e=xo(e):e=Ir(e);for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var s=n[a],u=s.length,f,l=0;l<u;++l)(f=s[l])&&(i.push(e.call(f,f.__data__,l,s)),o.push(f));return new nt(i,o)}function Nr(e){return function(){return this.matches(e)}}function Dr(e){return function(n){return n.matches(e)}}var ko=Array.prototype.find;function Ao(e){return function(){return ko.call(this.children,e)}}function Co(){return this.firstElementChild}function So(e){return this.select(e==null?Co:Ao(typeof e=="function"?e:Dr(e)))}var To=Array.prototype.filter;function Mo(){return Array.from(this.children)}function Po(e){return function(){return To.call(this.children,e)}}function Oo(e){return this.selectAll(e==null?Mo:Po(typeof e=="function"?e:Dr(e)))}function Eo(e){typeof e!="function"&&(e=Nr(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,u=i[o]=[],f,l=0;l<s;++l)(f=a[l])&&e.call(f,f.__data__,l,a)&&u.push(f);return new nt(i,this._parents)}function $r(e){return new Array(e.length)}function zo(){return new nt(this._enter||this._groups.map($r),this._parents)}function be(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}be.prototype={constructor:be,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Ro(e){return function(){return e}}function Io(e,n,r,i,o,a){for(var s=0,u,f=n.length,l=a.length;s<l;++s)(u=n[s])?(u.__data__=a[s],i[s]=u):r[s]=new be(e,a[s]);for(;s<f;++s)(u=n[s])&&(o[s]=u)}function No(e,n,r,i,o,a,s){var u,f,l=new Map,h=n.length,c=a.length,d=new Array(h),p;for(u=0;u<h;++u)(f=n[u])&&(d[u]=p=s.call(f,f.__data__,u,n)+"",l.has(p)?o[u]=f:l.set(p,f));for(u=0;u<c;++u)p=s.call(e,a[u],u,a)+"",(f=l.get(p))?(i[u]=f,f.__data__=a[u],l.delete(p)):r[u]=new be(e,a[u]);for(u=0;u<h;++u)(f=n[u])&&l.get(d[u])===f&&(o[u]=f)}function Do(e){return e.__data__}function $o(e,n){if(!arguments.length)return Array.from(this,Do);var r=n?No:Io,i=this._parents,o=this._groups;typeof e!="function"&&(e=Ro(e));for(var a=o.length,s=new Array(a),u=new Array(a),f=new Array(a),l=0;l<a;++l){var h=i[l],c=o[l],d=c.length,p=jo(e.call(h,h&&h.__data__,l,i)),y=p.length,m=u[l]=new Array(y),_=s[l]=new Array(y),g=f[l]=new Array(d);r(h,c,m,_,g,p,n);for(var w=0,C=0,b,x;w<y;++w)if(b=m[w]){for(w>=C&&(C=w+1);!(x=_[C])&&++C<y;);b._next=x||null}}return s=new nt(s,i),s._enter=u,s._exit=f,s}function jo(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Fo(){return new nt(this._exit||this._groups.map($r),this._parents)}function Uo(e,n,r){var i=this.enter(),o=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),n!=null&&(o=n(o),o&&(o=o.selection())),r==null?a.remove():r(a),i&&o?i.merge(o).order():o}function Lo(e){for(var n=e.selection?e.selection():e,r=this._groups,i=n._groups,o=r.length,a=i.length,s=Math.min(o,a),u=new Array(o),f=0;f<s;++f)for(var l=r[f],h=i[f],c=l.length,d=u[f]=new Array(c),p,y=0;y<c;++y)(p=l[y]||h[y])&&(d[y]=p);for(;f<o;++f)u[f]=r[f];return new nt(u,this._parents)}function qo(){for(var e=this._groups,n=-1,r=e.length;++n<r;)for(var i=e[n],o=i.length-1,a=i[o],s;--o>=0;)(s=i[o])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function Ho(e){e||(e=Vo);function n(c,d){return c&&d?e(c.__data__,d.__data__):!c-!d}for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a){for(var s=r[a],u=s.length,f=o[a]=new Array(u),l,h=0;h<u;++h)(l=s[h])&&(f[h]=l);f.sort(n)}return new nt(o,this._parents).order()}function Vo(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function Go(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Wo(){return Array.from(this)}function Bo(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null}function Xo(){let e=0;for(const n of this)++e;return e}function Yo(){return!this.node()}function Zo(e){for(var n=this._groups,r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length,u;a<s;++a)(u=o[a])&&e.call(u,u.__data__,a,o);return this}function Ko(e){return function(){this.removeAttribute(e)}}function Qo(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Jo(e,n){return function(){this.setAttribute(e,n)}}function ta(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function ea(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function na(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function ra(e,n){var r=Oe(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((n==null?r.local?Qo:Ko:typeof n=="function"?r.local?na:ea:r.local?ta:Jo)(r,n))}function jr(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ia(e){return function(){this.style.removeProperty(e)}}function oa(e,n,r){return function(){this.style.setProperty(e,n,r)}}function aa(e,n,r){return function(){var i=n.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function sa(e,n,r){return arguments.length>1?this.each((n==null?ia:typeof n=="function"?aa:oa)(e,n,r??"")):Ft(this.node(),e)}function Ft(e,n){return e.style.getPropertyValue(n)||jr(e).getComputedStyle(e,null).getPropertyValue(n)}function ua(e){return function(){delete this[e]}}function la(e,n){return function(){this[e]=n}}function fa(e,n){return function(){var r=n.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function ca(e,n){return arguments.length>1?this.each((n==null?ua:typeof n=="function"?fa:la)(e,n)):this.node()[e]}function Fr(e){return e.trim().split(/^|\s+/)}function gn(e){return e.classList||new Ur(e)}function Ur(e){this._node=e,this._names=Fr(e.getAttribute("class")||"")}Ur.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Lr(e,n){for(var r=gn(e),i=-1,o=n.length;++i<o;)r.add(n[i])}function qr(e,n){for(var r=gn(e),i=-1,o=n.length;++i<o;)r.remove(n[i])}function ha(e){return function(){Lr(this,e)}}function da(e){return function(){qr(this,e)}}function pa(e,n){return function(){(n.apply(this,arguments)?Lr:qr)(this,e)}}function ga(e,n){var r=Fr(e+"");if(arguments.length<2){for(var i=gn(this.node()),o=-1,a=r.length;++o<a;)if(!i.contains(r[o]))return!1;return!0}return this.each((typeof n=="function"?pa:n?ha:da)(r,n))}function ya(){this.textContent=""}function _a(e){return function(){this.textContent=e}}function va(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function ma(e){return arguments.length?this.each(e==null?ya:(typeof e=="function"?va:_a)(e)):this.node().textContent}function ba(){this.innerHTML=""}function xa(e){return function(){this.innerHTML=e}}function wa(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function ka(e){return arguments.length?this.each(e==null?ba:(typeof e=="function"?wa:xa)(e)):this.node().innerHTML}function Aa(){this.nextSibling&&this.parentNode.appendChild(this)}function Ca(){return this.each(Aa)}function Sa(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ta(){return this.each(Sa)}function Ma(e){var n=typeof e=="function"?e:Rr(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Pa(){return null}function Oa(e,n){var r=typeof e=="function"?e:Rr(e),i=n==null?Pa:typeof n=="function"?n:pn(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Ea(){var e=this.parentNode;e&&e.removeChild(this)}function za(){return this.each(Ea)}function Ra(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function Ia(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function Na(e){return this.select(e?Ia:Ra)}function Da(e){return arguments.length?this.property("__data__",e):this.node().__data__}function $a(e){return function(n){e.call(this,n,this.__data__)}}function ja(e){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");return i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),{type:n,name:r}})}function Fa(e){return function(){var n=this.__on;if(n){for(var r=0,i=-1,o=n.length,a;r<o;++r)a=n[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):n[++i]=a;++i?n.length=i:delete this.__on}}}function Ua(e,n,r){return function(){var i=this.__on,o,a=$a(n);if(i){for(var s=0,u=i.length;s<u;++s)if((o=i[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=r),o.value=n;return}}this.addEventListener(e.type,a,r),o={type:e.type,name:e.name,value:n,listener:a,options:r},i?i.push(o):this.__on=[o]}}function La(e,n,r){var i=ja(e+""),o,a=i.length,s;if(arguments.length<2){var u=this.node().__on;if(u){for(var f=0,l=u.length,h;f<l;++f)for(o=0,h=u[f];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value}return}for(u=n?Ua:Fa,o=0;o<a;++o)this.each(u(i[o],n,r));return this}function Hr(e,n,r){var i=jr(e),o=i.CustomEvent;typeof o=="function"?o=new o(n,r):(o=i.document.createEvent("Event"),r?(o.initEvent(n,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(n,!1,!1)),e.dispatchEvent(o)}function qa(e,n){return function(){return Hr(this,e,n)}}function Ha(e,n){return function(){return Hr(this,e,n.apply(this,arguments))}}function Va(e,n){return this.each((typeof n=="function"?Ha:qa)(e,n))}function*Ga(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&(yield s)}var Vr=[null];function nt(e,n){this._groups=e,this._parents=n}function se(){return new nt([[document.documentElement]],Vr)}function Wa(){return this}nt.prototype=se.prototype={constructor:nt,select:vo,selectAll:wo,selectChild:So,selectChildren:Oo,filter:Eo,data:$o,enter:zo,exit:Fo,join:Uo,merge:Lo,selection:Wa,order:qo,sort:Ho,call:Go,nodes:Wo,node:Bo,size:Xo,empty:Yo,each:Zo,attr:ra,style:sa,property:ca,classed:ga,text:ma,html:ka,raise:Ca,lower:Ta,append:Ma,insert:Oa,remove:za,clone:Na,datum:Da,on:La,dispatch:Va,[Symbol.iterator]:Ga};function at(e){return typeof e=="string"?new nt([[document.querySelector(e)]],[document.documentElement]):new nt([[e]],Vr)}function Ba(e){let n;for(;n=e.sourceEvent;)e=n;return e}function pt(e,n){if(e=Ba(e),n===void 0&&(n=e.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]}if(n.getBoundingClientRect){var o=n.getBoundingClientRect();return[e.clientX-o.left-n.clientLeft,e.clientY-o.top-n.clientTop]}}return[e.pageX,e.pageY]}var Xa={value:()=>{}};function ue(){for(var e=0,n=arguments.length,r={},i;e<n;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new ge(r)}function ge(e){this._=e}function Ya(e,n){return e.trim().split(/^|\s+/).map(function(r){var i="",o=r.indexOf(".");if(o>=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}ge.prototype=ue.prototype={constructor:ge,on:function(e,n){var r=this._,i=Ya(e+"",r),o,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((o=(e=i[a]).type)&&(o=Za(r[o],e.name)))return o;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++a<s;)if(o=(e=i[a]).type)r[o]=Un(r[o],e.name,n);else if(n==null)for(o in r)r[o]=Un(r[o],e.name,null);return this},copy:function(){var e={},n=this._;for(var r in n)e[r]=n[r].slice();return new ge(e)},call:function(e,n){if((o=arguments.length-2)>0)for(var r=new Array(o),i=0,o,a;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,o=a.length;i<o;++i)a[i].value.apply(n,r)},apply:function(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(n,r)}};function Za(e,n){for(var r=0,i=e.length,o;r<i;++r)if((o=e[r]).name===n)return o.value}function Un(e,n,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===n){e[i]=Xa,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:n,value:r}),e}const Ka={passive:!1},re={capture:!0,passive:!1};function je(e){e.stopImmediatePropagation()}function jt(e){e.preventDefault(),e.stopImmediatePropagation()}function Gr(e){var n=e.document.documentElement,r=at(e).on("dragstart.drag",jt,re);"onselectstart"in n?r.on("selectstart.drag",jt,re):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Wr(e,n){var r=e.document.documentElement,i=at(e).on("dragstart.drag",null);n&&(i.on("click.drag",jt,re),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const ce=e=>()=>e;function Qe(e,{sourceEvent:n,subject:r,target:i,identifier:o,active:a,x:s,y:u,dx:f,dy:l,dispatch:h}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:f,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:h}})}Qe.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Qa(e){return!e.ctrlKey&&!e.button}function Ja(){return this.parentNode}function ts(e,n){return n??{x:e.x,y:e.y}}function es(){return navigator.maxTouchPoints||"ontouchstart"in this}function ns(){var e=Qa,n=Ja,r=ts,i=es,o={},a=ue("start","drag","end"),s=0,u,f,l,h,c=0;function d(b){b.on("mousedown.drag",p).filter(i).on("touchstart.drag",_).on("touchmove.drag",g,Ka).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(b,x){if(!(h||!e.call(this,b,x))){var A=C(this,n.call(this,b,x),b,x,"mouse");A&&(at(b.view).on("mousemove.drag",y,re).on("mouseup.drag",m,re),Gr(b.view),je(b),l=!1,u=b.clientX,f=b.clientY,A("start",b))}}function y(b){if(jt(b),!l){var x=b.clientX-u,A=b.clientY-f;l=x*x+A*A>c}o.mouse("drag",b)}function m(b){at(b.view).on("mousemove.drag mouseup.drag",null),Wr(b.view,l),jt(b),o.mouse("end",b)}function _(b,x){if(e.call(this,b,x)){var A=b.changedTouches,S=n.call(this,b,x),T=A.length,R,O;for(R=0;R<T;++R)(O=C(this,S,b,x,A[R].identifier,A[R]))&&(je(b),O("start",b,A[R]))}}function g(b){var x=b.changedTouches,A=x.length,S,T;for(S=0;S<A;++S)(T=o[x[S].identifier])&&(jt(b),T("drag",b,x[S]))}function w(b){var x=b.changedTouches,A=x.length,S,T;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),S=0;S<A;++S)(T=o[x[S].identifier])&&(je(b),T("end",b,x[S]))}function C(b,x,A,S,T,R){var O=a.copy(),z=pt(R||A,x),I,j,k;if((k=r.call(b,new Qe("beforestart",{sourceEvent:A,target:d,identifier:T,active:s,x:z[0],y:z[1],dx:0,dy:0,dispatch:O}),S))!=null)return I=k.x-z[0]||0,j=k.y-z[1]||0,function E(M,N,$){var F=z,U;switch(M){case"start":o[T]=E,U=s++;break;case"end":delete o[T],--s;case"drag":z=pt($||N,x),U=s;break}O.call(M,b,new Qe(M,{sourceEvent:N,subject:k,target:d,identifier:T,active:U,x:z[0]+I,y:z[1]+j,dx:z[0]-F[0],dy:z[1]-F[1],dispatch:O}),S)}}return d.filter=function(b){return arguments.length?(e=typeof b=="function"?b:ce(!!b),d):e},d.container=function(b){return arguments.length?(n=typeof b=="function"?b:ce(b),d):n},d.subject=function(b){return arguments.length?(r=typeof b=="function"?b:ce(b),d):r},d.touchable=function(b){return arguments.length?(i=typeof b=="function"?b:ce(!!b),d):i},d.on=function(){var b=a.on.apply(a,arguments);return b===a?d:b},d.clickDistance=function(b){return arguments.length?(c=(b=+b)*b,d):Math.sqrt(c)},d}var Ut=0,Zt=0,qt=0,Br=1e3,xe,Kt,we=0,Nt=0,Ee=0,ie=typeof performance=="object"&&performance.now?performance:Date,Xr=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function yn(){return Nt||(Xr(rs),Nt=ie.now()+Ee)}function rs(){Nt=0}function ke(){this._call=this._time=this._next=null}ke.prototype=_n.prototype={constructor:ke,restart:function(e,n,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?yn():+r)+(n==null?0:+n),!this._next&&Kt!==this&&(Kt?Kt._next=this:xe=this,Kt=this),this._call=e,this._time=r,Je()},stop:function(){this._call&&(this._call=null,this._time=1/0,Je())}};function _n(e,n,r){var i=new ke;return i.restart(e,n,r),i}function is(){yn(),++Ut;for(var e=xe,n;e;)(n=Nt-e._time)>=0&&e._call.call(void 0,n),e=e._next;--Ut}function Ln(){Nt=(we=ie.now())+Ee,Ut=Zt=0;try{is()}finally{Ut=0,as(),Nt=0}}function os(){var e=ie.now(),n=e-we;n>Br&&(Ee-=n,we=e)}function as(){for(var e,n=xe,r,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(r=n._next,n._next=null,n=e?e._next=r:xe=r);Kt=e,Je(i)}function Je(e){if(!Ut){Zt&&(Zt=clearTimeout(Zt));var n=e-Nt;n>24?(e<1/0&&(Zt=setTimeout(Ln,e-ie.now()-Ee)),qt&&(qt=clearInterval(qt))):(qt||(we=ie.now(),qt=setInterval(os,Br)),Ut=1,Xr(Ln))}}function qn(e,n,r){var i=new ke;return n=n==null?0:+n,i.restart(o=>{i.stop(),e(o+n)},n,r),i}var ss=ue("start","end","cancel","interrupt"),us=[],Yr=0,Hn=1,tn=2,ye=3,Vn=4,en=5,_e=6;function ze(e,n,r,i,o,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;ls(e,r,{name:n,index:i,group:o,on:ss,tween:us,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Yr})}function vn(e,n){var r=ht(e,n);if(r.state>Yr)throw new Error("too late; already scheduled");return r}function _t(e,n){var r=ht(e,n);if(r.state>ye)throw new Error("too late; already running");return r}function ht(e,n){var r=e.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function ls(e,n,r){var i=e.__transition,o;i[n]=r,r.timer=_n(a,0,r.time);function a(l){r.state=Hn,r.timer.restart(s,r.delay,r.time),r.delay<=l&&s(l-r.delay)}function s(l){var h,c,d,p;if(r.state!==Hn)return f();for(h in i)if(p=i[h],p.name===r.name){if(p.state===ye)return qn(s);p.state===Vn?(p.state=_e,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[h]):+h<n&&(p.state=_e,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete i[h])}if(qn(function(){r.state===ye&&(r.state=Vn,r.timer.restart(u,r.delay,r.time),u(l))}),r.state=tn,r.on.call("start",e,e.__data__,r.index,r.group),r.state===tn){for(r.state=ye,o=new Array(d=r.tween.length),h=0,c=-1;h<d;++h)(p=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(o[++c]=p);o.length=c+1}}function u(l){for(var h=l<r.duration?r.ease.call(null,l/r.duration):(r.timer.restart(f),r.state=en,1),c=-1,d=o.length;++c<d;)o[c].call(e,h);r.state===en&&(r.on.call("end",e,e.__data__,r.index,r.group),f())}function f(){r.state=_e,r.timer.stop(),delete i[n];for(var l in i)return;delete e.__transition}}function ve(e,n){var r=e.__transition,i,o,a=!0,s;if(r){n=n==null?null:n+"";for(s in r){if((i=r[s]).name!==n){a=!1;continue}o=i.state>tn&&i.state<en,i.state=_e,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}a&&delete e.__transition}}function fs(e){return this.each(function(){ve(this,e)})}function cs(e,n){var r,i;return function(){var o=_t(this,e),a=o.tween;if(a!==r){i=r=a;for(var s=0,u=i.length;s<u;++s)if(i[s].name===n){i=i.slice(),i.splice(s,1);break}}o.tween=i}}function hs(e,n,r){var i,o;if(typeof r!="function")throw new Error;return function(){var a=_t(this,e),s=a.tween;if(s!==i){o=(i=s).slice();for(var u={name:n,value:r},f=0,l=o.length;f<l;++f)if(o[f].name===n){o[f]=u;break}f===l&&o.push(u)}a.tween=o}}function ds(e,n){var r=this._id;if(e+="",arguments.length<2){for(var i=ht(this.node(),r).tween,o=0,a=i.length,s;o<a;++o)if((s=i[o]).name===e)return s.value;return null}return this.each((n==null?cs:hs)(r,e,n))}function mn(e,n,r){var i=e._id;return e.each(function(){var o=_t(this,i);(o.value||(o.value={}))[n]=r.apply(this,arguments)}),function(o){return ht(o,i).value[n]}}function Zr(e,n){var r;return(typeof n=="number"?zt:n instanceof On?En:(r=On(n))?(n=r,En):$i)(e,n)}function ps(e){return function(){this.removeAttribute(e)}}function gs(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ys(e,n,r){var i,o=r+"",a;return function(){var s=this.getAttribute(e);return s===o?null:s===i?a:a=n(i=s,r)}}function _s(e,n,r){var i,o=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===i?a:a=n(i=s,r)}}function vs(e,n,r){var i,o,a;return function(){var s,u=r(this),f;return u==null?void this.removeAttribute(e):(s=this.getAttribute(e),f=u+"",s===f?null:s===i&&f===o?a:(o=f,a=n(i=s,u)))}}function ms(e,n,r){var i,o,a;return function(){var s,u=r(this),f;return u==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),f=u+"",s===f?null:s===i&&f===o?a:(o=f,a=n(i=s,u)))}}function bs(e,n){var r=Oe(e),i=r==="transform"?Vi:Zr;return this.attrTween(e,typeof n=="function"?(r.local?ms:vs)(r,i,mn(this,"attr."+e,n)):n==null?(r.local?gs:ps)(r):(r.local?_s:ys)(r,i,n))}function xs(e,n){return function(r){this.setAttribute(e,n.call(this,r))}}function ws(e,n){return function(r){this.setAttributeNS(e.space,e.local,n.call(this,r))}}function ks(e,n){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&ws(e,a)),r}return o._value=n,o}function As(e,n){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&xs(e,a)),r}return o._value=n,o}function Cs(e,n){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var i=Oe(e);return this.tween(r,(i.local?ks:As)(i,n))}function Ss(e,n){return function(){vn(this,e).delay=+n.apply(this,arguments)}}function Ts(e,n){return n=+n,function(){vn(this,e).delay=n}}function Ms(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?Ss:Ts)(n,e)):ht(this.node(),n).delay}function Ps(e,n){return function(){_t(this,e).duration=+n.apply(this,arguments)}}function Os(e,n){return n=+n,function(){_t(this,e).duration=n}}function Es(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?Ps:Os)(n,e)):ht(this.node(),n).duration}function zs(e,n){if(typeof n!="function")throw new Error;return function(){_t(this,e).ease=n}}function Rs(e){var n=this._id;return arguments.length?this.each(zs(n,e)):ht(this.node(),n).ease}function Is(e,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;_t(this,e).ease=r}}function Ns(e){if(typeof e!="function")throw new Error;return this.each(Is(this._id,e))}function Ds(e){typeof e!="function"&&(e=Nr(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,u=i[o]=[],f,l=0;l<s;++l)(f=a[l])&&e.call(f,f.__data__,l,a)&&u.push(f);return new Mt(i,this._parents,this._name,this._id)}function $s(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var f=n[u],l=r[u],h=f.length,c=s[u]=new Array(h),d,p=0;p<h;++p)(d=f[p]||l[p])&&(c[p]=d);for(;u<i;++u)s[u]=n[u];return new Mt(s,this._parents,this._name,this._id)}function js(e){return(e+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function Fs(e,n,r){var i,o,a=js(n)?vn:_t;return function(){var s=a(this,e),u=s.on;u!==i&&(o=(i=u).copy()).on(n,r),s.on=o}}function Us(e,n){var r=this._id;return arguments.length<2?ht(this.node(),r).on.on(e):this.each(Fs(r,e,n))}function Ls(e){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==e)return;n&&n.removeChild(this)}}function qs(){return this.on("end.remove",Ls(this._id))}function Hs(e){var n=this._name,r=this._id;typeof e!="function"&&(e=pn(e));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var u=i[s],f=u.length,l=a[s]=new Array(f),h,c,d=0;d<f;++d)(h=u[d])&&(c=e.call(h,h.__data__,d,u))&&("__data__"in h&&(c.__data__=h.__data__),l[d]=c,ze(l[d],n,r,d,l,ht(h,r)));return new Mt(a,this._parents,n,r)}function Vs(e){var n=this._name,r=this._id;typeof e!="function"&&(e=Ir(e));for(var i=this._groups,o=i.length,a=[],s=[],u=0;u<o;++u)for(var f=i[u],l=f.length,h,c=0;c<l;++c)if(h=f[c]){for(var d=e.call(h,h.__data__,c,f),p,y=ht(h,r),m=0,_=d.length;m<_;++m)(p=d[m])&&ze(p,n,r,m,d,y);a.push(d),s.push(h)}return new Mt(a,s,n,r)}var Gs=se.prototype.constructor;function Ws(){return new Gs(this._groups,this._parents)}function Bs(e,n){var r,i,o;return function(){var a=Ft(this,e),s=(this.style.removeProperty(e),Ft(this,e));return a===s?null:a===r&&s===i?o:o=n(r=a,i=s)}}function Kr(e){return function(){this.style.removeProperty(e)}}function Xs(e,n,r){var i,o=r+"",a;return function(){var s=Ft(this,e);return s===o?null:s===i?a:a=n(i=s,r)}}function Ys(e,n,r){var i,o,a;return function(){var s=Ft(this,e),u=r(this),f=u+"";return u==null&&(f=u=(this.style.removeProperty(e),Ft(this,e))),s===f?null:s===i&&f===o?a:(o=f,a=n(i=s,u))}}function Zs(e,n){var r,i,o,a="style."+n,s="end."+a,u;return function(){var f=_t(this,e),l=f.on,h=f.value[a]==null?u||(u=Kr(n)):void 0;(l!==r||o!==h)&&(i=(r=l).copy()).on(s,o=h),f.on=i}}function Ks(e,n,r){var i=(e+="")=="transform"?Hi:Zr;return n==null?this.styleTween(e,Bs(e,i)).on("end.style."+e,Kr(e)):typeof n=="function"?this.styleTween(e,Ys(e,i,mn(this,"style."+e,n))).each(Zs(this._id,e)):this.styleTween(e,Xs(e,i,n),r).on("end.style."+e,null)}function Qs(e,n,r){return function(i){this.style.setProperty(e,n.call(this,i),r)}}function Js(e,n,r){var i,o;function a(){var s=n.apply(this,arguments);return s!==o&&(i=(o=s)&&Qs(e,s,r)),i}return a._value=n,a}function tu(e,n,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;return this.tween(i,Js(e,n,r??""))}function eu(e){return function(){this.textContent=e}}function nu(e){return function(){var n=e(this);this.textContent=n??""}}function ru(e){return this.tween("text",typeof e=="function"?nu(mn(this,"text",e)):eu(e==null?"":e+""))}function iu(e){return function(n){this.textContent=e.call(this,n)}}function ou(e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&iu(o)),n}return i._value=e,i}function au(e){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,ou(e))}function su(){for(var e=this._name,n=this._id,r=Qr(),i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],u=s.length,f,l=0;l<u;++l)if(f=s[l]){var h=ht(f,n);ze(f,e,r,l,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Mt(i,this._parents,e,r)}function uu(){var e,n,r=this,i=r._id,o=r.size();return new Promise(function(a,s){var u={value:s},f={value:function(){--o===0&&a()}};r.each(function(){var l=_t(this,i),h=l.on;h!==e&&(n=(e=h).copy(),n._.cancel.push(u),n._.interrupt.push(u),n._.end.push(f)),l.on=n}),o===0&&a()})}var lu=0;function Mt(e,n,r,i){this._groups=e,this._parents=n,this._name=r,this._id=i}function Qr(){return++lu}var bt=se.prototype;Mt.prototype={constructor:Mt,select:Hs,selectAll:Vs,selectChild:bt.selectChild,selectChildren:bt.selectChildren,filter:Ds,merge:$s,selection:Ws,transition:su,call:bt.call,nodes:bt.nodes,node:bt.node,size:bt.size,empty:bt.empty,each:bt.each,on:Us,attr:bs,attrTween:Cs,style:Ks,styleTween:tu,text:ru,textTween:au,remove:qs,tween:ds,delay:Ms,duration:Es,ease:Rs,easeVarying:Ns,end:uu,[Symbol.iterator]:bt[Symbol.iterator]};function fu(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var cu={time:null,delay:0,duration:250,ease:fu};function hu(e,n){for(var r;!(r=e.__transition)||!(r=r[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return r}function du(e){var n,r;e instanceof Mt?(n=e._id,e=e._name):(n=Qr(),(r=cu).time=yn(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],u=s.length,f,l=0;l<u;++l)(f=s[l])&&ze(f,e,n,l,s,r||hu(f,n));return new Mt(i,this._parents,e,n)}se.prototype.interrupt=fs;se.prototype.transition=du;const he=e=>()=>e;function pu(e,{sourceEvent:n,target:r,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Ct(e,n,r){this.k=e,this.x=n,this.y=r}Ct.prototype={constructor:Ct,scale:function(e){return e===1?this:new Ct(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Ct(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var bn=new Ct(1,0,0);dt.prototype=Ct.prototype;function dt(e){for(;!e.__zoom;)if(!(e=e.parentNode))return bn;return e.__zoom}function Fe(e){e.stopImmediatePropagation()}function Ht(e){e.preventDefault(),e.stopImmediatePropagation()}function gu(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function yu(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Gn(){return this.__zoom||bn}function _u(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function vu(){return navigator.maxTouchPoints||"ontouchstart"in this}function mu(e,n,r){var i=e.invertX(n[0][0])-r[0][0],o=e.invertX(n[1][0])-r[1][0],a=e.invertY(n[0][1])-r[0][1],s=e.invertY(n[1][1])-r[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function bu(){var e=gu,n=yu,r=mu,i=_u,o=vu,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,f=Xi,l=ue("start","zoom","end"),h,c,d,p=500,y=150,m=0,_=10;function g(k){k.property("__zoom",Gn).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",O).filter(o).on("touchstart.zoom",z).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}g.transform=function(k,E,M,N){var $=k.selection?k.selection():k;$.property("__zoom",Gn),k!==$?x(k,E,M,N):$.interrupt().each(function(){A(this,arguments).event(N).start().zoom(null,typeof E=="function"?E.apply(this,arguments):E).end()})},g.scaleBy=function(k,E,M,N){g.scaleTo(k,function(){var $=this.__zoom.k,F=typeof E=="function"?E.apply(this,arguments):E;return $*F},M,N)},g.scaleTo=function(k,E,M,N){g.transform(k,function(){var $=n.apply(this,arguments),F=this.__zoom,U=M==null?b($):typeof M=="function"?M.apply(this,arguments):M,L=F.invert(U),q=typeof E=="function"?E.apply(this,arguments):E;return r(C(w(F,q),U,L),$,s)},M,N)},g.translateBy=function(k,E,M,N){g.transform(k,function(){return r(this.__zoom.translate(typeof E=="function"?E.apply(this,arguments):E,typeof M=="function"?M.apply(this,arguments):M),n.apply(this,arguments),s)},null,N)},g.translateTo=function(k,E,M,N,$){g.transform(k,function(){var F=n.apply(this,arguments),U=this.__zoom,L=N==null?b(F):typeof N=="function"?N.apply(this,arguments):N;return r(bn.translate(L[0],L[1]).scale(U.k).translate(typeof E=="function"?-E.apply(this,arguments):-E,typeof M=="function"?-M.apply(this,arguments):-M),F,s)},N,$)};function w(k,E){return E=Math.max(a[0],Math.min(a[1],E)),E===k.k?k:new Ct(E,k.x,k.y)}function C(k,E,M){var N=E[0]-M[0]*k.k,$=E[1]-M[1]*k.k;return N===k.x&&$===k.y?k:new Ct(k.k,N,$)}function b(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function x(k,E,M,N){k.on("start.zoom",function(){A(this,arguments).event(N).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(N).end()}).tween("zoom",function(){var $=this,F=arguments,U=A($,F).event(N),L=n.apply($,F),q=M==null?b(L):typeof M=="function"?M.apply($,F):M,Y=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),X=$.__zoom,ut=typeof E=="function"?E.apply($,F):E,vt=f(X.invert(q).concat(Y/X.k),ut.invert(q).concat(Y/ut.k));return function(lt){if(lt===1)lt=ut;else{var mt=vt(lt),$e=Y/mt[2];lt=new Ct($e,q[0]-mt[0]*$e,q[1]-mt[1]*$e)}U.zoom(null,lt)}})}function A(k,E,M){return!M&&k.__zooming||new S(k,E)}function S(k,E){this.that=k,this.args=E,this.active=0,this.sourceEvent=null,this.extent=n.apply(k,E),this.taps=0}S.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,E){return this.mouse&&k!=="mouse"&&(this.mouse[1]=E.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=E.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=E.invert(this.touch1[0])),this.that.__zoom=E,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var E=at(this.that).datum();l.call(k,this.that,new pu(k,{sourceEvent:this.sourceEvent,target:g,transform:this.that.__zoom,dispatch:l}),E)}};function T(k,...E){if(!e.apply(this,arguments))return;var M=A(this,E).event(k),N=this.__zoom,$=Math.max(a[0],Math.min(a[1],N.k*Math.pow(2,i.apply(this,arguments)))),F=pt(k);if(M.wheel)(M.mouse[0][0]!==F[0]||M.mouse[0][1]!==F[1])&&(M.mouse[1]=N.invert(M.mouse[0]=F)),clearTimeout(M.wheel);else{if(N.k===$)return;M.mouse=[F,N.invert(F)],ve(this),M.start()}Ht(k),M.wheel=setTimeout(U,y),M.zoom("mouse",r(C(w(N,$),M.mouse[0],M.mouse[1]),M.extent,s));function U(){M.wheel=null,M.end()}}function R(k,...E){if(d||!e.apply(this,arguments))return;var M=k.currentTarget,N=A(this,E,!0).event(k),$=at(k.view).on("mousemove.zoom",q,!0).on("mouseup.zoom",Y,!0),F=pt(k,M),U=k.clientX,L=k.clientY;Gr(k.view),Fe(k),N.mouse=[F,this.__zoom.invert(F)],ve(this),N.start();function q(X){if(Ht(X),!N.moved){var ut=X.clientX-U,vt=X.clientY-L;N.moved=ut*ut+vt*vt>m}N.event(X).zoom("mouse",r(C(N.that.__zoom,N.mouse[0]=pt(X,M),N.mouse[1]),N.extent,s))}function Y(X){$.on("mousemove.zoom mouseup.zoom",null),Wr(X.view,N.moved),Ht(X),N.event(X).end()}}function O(k,...E){if(e.apply(this,arguments)){var M=this.__zoom,N=pt(k.changedTouches?k.changedTouches[0]:k,this),$=M.invert(N),F=M.k*(k.shiftKey?.5:2),U=r(C(w(M,F),N,$),n.apply(this,E),s);Ht(k),u>0?at(this).transition().duration(u).call(x,U,N,k):at(this).call(g.transform,U,N,k)}}function z(k,...E){if(e.apply(this,arguments)){var M=k.touches,N=M.length,$=A(this,E,k.changedTouches.length===N).event(k),F,U,L,q;for(Fe(k),U=0;U<N;++U)L=M[U],q=pt(L,this),q=[q,this.__zoom.invert(q),L.identifier],$.touch0?!$.touch1&&$.touch0[2]!==q[2]&&($.touch1=q,$.taps=0):($.touch0=q,F=!0,$.taps=1+!!h);h&&(h=clearTimeout(h)),F&&($.taps<2&&(c=q[0],h=setTimeout(function(){h=null},p)),ve(this),$.start())}}function I(k,...E){if(this.__zooming){var M=A(this,E).event(k),N=k.changedTouches,$=N.length,F,U,L,q;for(Ht(k),F=0;F<$;++F)U=N[F],L=pt(U,this),M.touch0&&M.touch0[2]===U.identifier?M.touch0[0]=L:M.touch1&&M.touch1[2]===U.identifier&&(M.touch1[0]=L);if(U=M.that.__zoom,M.touch1){var Y=M.touch0[0],X=M.touch0[1],ut=M.touch1[0],vt=M.touch1[1],lt=(lt=ut[0]-Y[0])*lt+(lt=ut[1]-Y[1])*lt,mt=(mt=vt[0]-X[0])*mt+(mt=vt[1]-X[1])*mt;U=w(U,Math.sqrt(lt/mt)),L=[(Y[0]+ut[0])/2,(Y[1]+ut[1])/2],q=[(X[0]+vt[0])/2,(X[1]+vt[1])/2]}else if(M.touch0)L=M.touch0[0],q=M.touch0[1];else return;M.zoom("touch",r(C(U,L,q),M.extent,s))}}function j(k,...E){if(this.__zooming){var M=A(this,E).event(k),N=k.changedTouches,$=N.length,F,U;for(Fe(k),d&&clearTimeout(d),d=setTimeout(function(){d=null},p),F=0;F<$;++F)U=N[F],M.touch0&&M.touch0[2]===U.identifier?delete M.touch0:M.touch1&&M.touch1[2]===U.identifier&&delete M.touch1;if(M.touch1&&!M.touch0&&(M.touch0=M.touch1,delete M.touch1),M.touch0)M.touch0[1]=this.__zoom.invert(M.touch0[0]);else if(M.end(),M.taps===2&&(U=pt(U,this),Math.hypot(c[0]-U[0],c[1]-U[1])<_)){var L=at(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return g.wheelDelta=function(k){return arguments.length?(i=typeof k=="function"?k:he(+k),g):i},g.filter=function(k){return arguments.length?(e=typeof k=="function"?k:he(!!k),g):e},g.touchable=function(k){return arguments.length?(o=typeof k=="function"?k:he(!!k),g):o},g.extent=function(k){return arguments.length?(n=typeof k=="function"?k:he([[+k[0][0],+k[0][1]],[+k[1][0],+k[1][1]]]),g):n},g.scaleExtent=function(k){return arguments.length?(a[0]=+k[0],a[1]=+k[1],g):[a[0],a[1]]},g.translateExtent=function(k){return arguments.length?(s[0][0]=+k[0][0],s[1][0]=+k[1][0],s[0][1]=+k[0][1],s[1][1]=+k[1][1],g):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},g.constrain=function(k){return arguments.length?(r=k,g):r},g.duration=function(k){return arguments.length?(u=+k,g):u},g.interpolate=function(k){return arguments.length?(f=k,g):f},g.on=function(){var k=l.on.apply(l,arguments);return k===l?g:k},g.clickDistance=function(k){return arguments.length?(m=(k=+k)*k,g):Math.sqrt(m)},g.tapDistance=function(k){return arguments.length?(_=+k,g):_},g}var xu=typeof global=="object"&&global&&global.Object===Object&&global,wu=typeof self=="object"&&self&&self.Object===Object&&self,Jr=xu||wu||Function("return this")(),Ae=Jr.Symbol,ti=Object.prototype,ku=ti.hasOwnProperty,Au=ti.toString,Vt=Ae?Ae.toStringTag:void 0;function Cu(e){var n=ku.call(e,Vt),r=e[Vt];try{e[Vt]=void 0;var i=!0}catch{}var o=Au.call(e);return i&&(n?e[Vt]=r:delete e[Vt]),o}var Su=Object.prototype,Tu=Su.toString;function Mu(e){return Tu.call(e)}var Pu="[object Null]",Ou="[object Undefined]",Wn=Ae?Ae.toStringTag:void 0;function Eu(e){return e==null?e===void 0?Ou:Pu:Wn&&Wn in Object(e)?Cu(e):Mu(e)}function zu(e){return e!=null&&typeof e=="object"}var Ru="[object Symbol]";function Iu(e){return typeof e=="symbol"||zu(e)&&Eu(e)==Ru}var Nu=/\s/;function Du(e){for(var n=e.length;n--&&Nu.test(e.charAt(n)););return n}var $u=/^\s+/;function ju(e){return e&&e.slice(0,Du(e)+1).replace($u,"")}function Ce(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Bn=NaN,Fu=/^[-+]0x[0-9a-f]+$/i,Uu=/^0b[01]+$/i,Lu=/^0o[0-7]+$/i,qu=parseInt;function Xn(e){if(typeof e=="number")return e;if(Iu(e))return Bn;if(Ce(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Ce(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=ju(e);var r=Uu.test(e);return r||Lu.test(e)?qu(e.slice(2),r?2:8):Fu.test(e)?Bn:+e}var Ue=function(){return Jr.Date.now()},Hu="Expected a function",Vu=Math.max,Gu=Math.min;function ei(e,n,r){var i,o,a,s,u,f,l=0,h=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(Hu);n=Xn(n)||0,Ce(r)&&(h=!!r.leading,c="maxWait"in r,a=c?Vu(Xn(r.maxWait)||0,n):a,d="trailing"in r?!!r.trailing:d);function p(A){var S=i,T=o;return i=o=void 0,l=A,s=e.apply(T,S),s}function y(A){return l=A,u=setTimeout(g,n),h?p(A):s}function m(A){var S=A-f,T=A-l,R=n-S;return c?Gu(R,a-T):R}function _(A){var S=A-f,T=A-l;return f===void 0||S>=n||S<0||c&&T>=a}function g(){var A=Ue();if(_(A))return w(A);u=setTimeout(g,m(A))}function w(A){return u=void 0,d&&i?p(A):(i=o=void 0,s)}function C(){u!==void 0&&clearTimeout(u),l=0,i=f=o=u=void 0}function b(){return u===void 0?s:w(Ue())}function x(){var A=Ue(),S=_(A);if(i=arguments,o=this,f=A,S){if(u===void 0)return y(f);if(c)return clearTimeout(u),u=setTimeout(g,n),p(f)}return u===void 0&&(u=setTimeout(g,n)),s}return x.cancel=C,x.flush=b,x}var Wu="Expected a function";function Bu(e,n,r){var i=!0,o=!0;if(typeof e!="function")throw new TypeError(Wu);return Ce(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),ei(e,n,{leading:i,maxWait:n,trailing:o})}var It=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return e},Out:function(e){return e},InOut:function(e){return e}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(e){var n=1.70158;return e===1?1:e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return e===0?0:--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}}),Bounce:Object.freeze({In:function(e){return 1-It.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?It.Bounce.In(e*2)*.5:It.Bounce.Out(e*2-1)*.5+.5}}),generatePow:function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(n){return Math.pow(n,e)},Out:function(n){return 1-Math.pow(1-n,e)},InOut:function(n){return n<.5?Math.pow(n*2,e)/2:(1-Math.pow(2-n*2,e))/2+.5}}}}),Qt=function(){return performance.now()},ni=(function(){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,n)}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(r){return n._tweens[r]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];(n=s._group)===null||n===void 0||n.remove(s),s._group=this,this._tweens[s.getId()]=s,this._tweensAddedDuringUpdate[s.getId()]=s}},e.prototype.remove=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];a._group=void 0,delete this._tweens[a.getId()],delete this._tweensAddedDuringUpdate[a.getId()]}},e.prototype.allStopped=function(){return this.getAll().every(function(n){return!n.isPlaying()})},e.prototype.update=function(n,r){n===void 0&&(n=Qt()),r===void 0&&(r=!0);var i=Object.keys(this._tweens);if(i.length!==0)for(;i.length>0;){this._tweensAddedDuringUpdate={};for(var o=0;o<i.length;o++){var a=this._tweens[i[o]],s=!r;a&&a.update(n,s)===!1&&!r&&this.remove(a)}i=Object.keys(this._tweensAddedDuringUpdate)}},e})(),nn={Linear:function(e,n){var r=e.length-1,i=r*n,o=Math.floor(i),a=nn.Utils.Linear;return n<0?a(e[0],e[1],i):n>1?a(e[r],e[r-1],r-i):a(e[o],e[o+1>r?r:o+1],i-o)},Utils:{Linear:function(e,n,r){return(n-e)*r+e}}},ri=(function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e})(),rn=new ni,Yn=(function(){function e(n,r){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=It.Linear.None,this._interpolationFunction=nn.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=ri.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=n,typeof r=="object"?(this._group=r,r.add(this)):r===!0&&(this._group=rn,rn.add(this))}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(n,r){if(r===void 0&&(r=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=n,this._propertiesAreSetUp=!1,this._duration=r<0?0:r,this},e.prototype.duration=function(n){return n===void 0&&(n=1e3),this._duration=n<0?0:n,this},e.prototype.dynamic=function(n){return n===void 0&&(n=!1),this._isDynamic=n,this},e.prototype.start=function(n,r){if(n===void 0&&(n=Qt()),r===void 0&&(r=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var i in this._valuesStartRepeat)this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,!this._propertiesAreSetUp||r){if(this._propertiesAreSetUp=!0,!this._isDynamic){var o={};for(var a in this._valuesEnd)o[a]=this._valuesEnd[a];this._valuesEnd=o}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,r)}return this},e.prototype.startFromCurrentValues=function(n){return this.start(n,!0)},e.prototype._setupProperties=function(n,r,i,o,a){for(var s in i){var u=n[s],f=Array.isArray(u),l=f?"array":typeof u,h=!f&&Array.isArray(i[s]);if(!(l==="undefined"||l==="function")){if(h){var c=i[s];if(c.length===0)continue;for(var d=[u],p=0,y=c.length;p<y;p+=1){var m=this._handleRelativeValue(u,c[p]);if(isNaN(m)){h=!1,console.warn("Found invalid interpolation list. Skipping.");break}d.push(m)}h&&(i[s]=d)}if((l==="object"||f)&&u&&!h){r[s]=f?[]:{};var _=u;for(var g in _)r[s][g]=_[g];o[s]=f?[]:{};var c=i[s];if(!this._isDynamic){var w={};for(var g in c)w[g]=c[g];i[s]=c=w}this._setupProperties(_,r[s],c,o[s],a)}else(typeof r[s]>"u"||a)&&(r[s]=u),f||(r[s]*=1),h?o[s]=i[s].slice().reverse():o[s]=r[s]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},e.prototype.pause=function(n){return n===void 0&&(n=Qt()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=Qt()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this)},e.prototype.stopChainedTweens=function(){for(var n=0,r=this._chainedTweens.length;n<r;n++)this._chainedTweens[n].stop();return this},e.prototype.group=function(n){return n?(n.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},e.prototype.remove=function(){var n;return(n=this._group)===null||n===void 0||n.remove(this),this},e.prototype.delay=function(n){return n===void 0&&(n=0),this._delayTime=n,this},e.prototype.repeat=function(n){return n===void 0&&(n=0),this._initialRepeat=n,this._repeat=n,this},e.prototype.repeatDelay=function(n){return this._repeatDelayTime=n,this},e.prototype.yoyo=function(n){return n===void 0&&(n=!1),this._yoyo=n,this},e.prototype.easing=function(n){return n===void 0&&(n=It.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=nn.Linear),this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this._chainedTweens=n,this},e.prototype.onStart=function(n){return this._onStartCallback=n,this},e.prototype.onEveryStart=function(n){return this._onEveryStartCallback=n,this},e.prototype.onUpdate=function(n){return this._onUpdateCallback=n,this},e.prototype.onRepeat=function(n){return this._onRepeatCallback=n,this},e.prototype.onComplete=function(n){return this._onCompleteCallback=n,this},e.prototype.onStop=function(n){return this._onStopCallback=n,this},e.prototype.update=function(n,r){var i=this,o;if(n===void 0&&(n=Qt()),r===void 0&&(r=e.autoStartOnUpdate),this._isPaused)return!0;var a;if(!this._goToEnd&&!this._isPlaying)if(r)this.start(n,!0);else return!1;if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var s=n-this._startTime,u=this._duration+((o=this._repeatDelayTime)!==null&&o!==void 0?o:this._delayTime),f=this._duration+this._repeat*u,l=function(){if(i._duration===0||s>f)return 1;var m=Math.trunc(s/u),_=s-m*u,g=Math.min(_/i._duration,1);return g===0&&s===i._duration?1:g},h=l(),c=this._easingFunction(h);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,c),this._onUpdateCallback&&this._onUpdateCallback(this._object,h),this._duration===0||s>=this._duration)if(this._repeat>0){var d=Math.min(Math.trunc((s-this._duration)/u)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=d);for(a in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[a]=="string"&&(this._valuesStartRepeat[a]=this._valuesStartRepeat[a]+parseFloat(this._valuesEnd[a])),this._yoyo&&this._swapEndStartRepeatValues(a),this._valuesStart[a]=this._valuesStartRepeat[a];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=u*d,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var p=0,y=this._chainedTweens.length;p<y;p++)this._chainedTweens[p].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,r,i,o){for(var a in i)if(r[a]!==void 0){var s=r[a]||0,u=i[a],f=Array.isArray(n[a]),l=Array.isArray(u),h=!f&&l;h?n[a]=this._interpolationFunction(u,o):typeof u=="object"&&u?this._updateProperties(n[a],s,u,o):(u=this._handleRelativeValue(s,u),typeof u=="number"&&(n[a]=s+(u-s)*o))}},e.prototype._handleRelativeValue=function(n,r){return typeof r!="string"?r:r.charAt(0)==="+"||r.charAt(0)==="-"?n+parseFloat(r):parseFloat(r)},e.prototype._swapEndStartRepeatValues=function(n){var r=this._valuesStartRepeat[n],i=this._valuesEnd[n];typeof i=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(i):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=r},e.autoStartOnUpdate=!1,e})();ri.nextId;var yt=rn;yt.getAll.bind(yt);yt.removeAll.bind(yt);yt.add.bind(yt);yt.remove.bind(yt);yt.update.bind(yt);function Zn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function Xu(e){if(Array.isArray(e))return e}function Yu(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Zu(e,n,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Ku(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],f=!0,l=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(f=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);f=!0);}catch(h){l=!0,o=h}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return u}}function Qu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ju(e,n){return Xu(e)||Ku(e,n)||tl(e,n)||Qu()}function tl(e,n){if(e){if(typeof e=="string")return Zn(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zn(e,n):void 0}}var el=Zu(function e(n,r){var i=r.default,o=i===void 0?null:i,a=r.triggerUpdate,s=a===void 0?!0:a,u=r.onChange,f=u===void 0?function(l,h){}:u;Yu(this,e),this.name=n,this.defaultVal=o,this.triggerUpdate=s,this.onChange=f});function xn(e){var n=e.stateInit,r=n===void 0?function(){return{}}:n,i=e.props,o=i===void 0?{}:i,a=e.methods,s=a===void 0?{}:a,u=e.aliases,f=u===void 0?{}:u,l=e.init,h=l===void 0?function(){}:l,c=e.update,d=c===void 0?function(){}:c,p=Object.keys(o).map(function(y){return new el(y,o[y])});return function y(){for(var m=arguments.length,_=new Array(m),g=0;g<m;g++)_[g]=arguments[g];var w=!!(this instanceof y&&this.constructor),C=w?_.shift():void 0,b=_[0],x=b===void 0?{}:b,A=Object.assign({},r instanceof Function?r(x):r,{initialised:!1}),S={};function T(z){return R(z,x),O(),T}var R=function(I,j){h.call(T,I,A,j),A.initialised=!0},O=ei(function(){A.initialised&&(d.call(T,A,S),S={})},1);return p.forEach(function(z){T[z.name]=I(z);function I(j){var k=j.name,E=j.triggerUpdate,M=E===void 0?!1:E,N=j.onChange,$=N===void 0?function(L,q){}:N,F=j.defaultVal,U=F===void 0?null:F;return function(L){var q=A[k];if(!arguments.length)return q;var Y=L===void 0?U:L;return A[k]=Y,$.call(T,Y,A,q),!S.hasOwnProperty(k)&&(S[k]=q),M&&O(),T}}}),Object.keys(s).forEach(function(z){T[z]=function(){for(var I,j=arguments.length,k=new Array(j),E=0;E<j;E++)k[E]=arguments[E];return(I=s[z]).call.apply(I,[T,A].concat(k))}}),Object.entries(f).forEach(function(z){var I=Ju(z,2),j=I[0],k=I[1];return T[j]=T[k]}),T.resetProps=function(){return p.forEach(function(z){T[z.name](z.defaultVal)}),T},T.resetProps(),A._rerender=O,w&&C&&T(C),T}}var H=(function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}});function Se(e){"@babel/helpers - typeof";return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Se(e)}var nl=/^\s+/,rl=/\s+$/;function D(e,n){if(e=e||"",n=n||{},e instanceof D)return e;if(!(this instanceof D))return new D(e,n);var r=il(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}D.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),r,i,o,a,s,u;return r=n.r/255,i=n.g/255,o=n.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),o<=.03928?u=o/12.92:u=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*u},setAlpha:function(n){return this._a=ii(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=Qn(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=Qn(this._r,this._g,this._b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.v*100);return this._a==1?"hsv("+r+", "+i+"%, "+o+"%)":"hsva("+r+", "+i+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var n=Kn(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=Kn(this._r,this._g,this._b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.l*100);return this._a==1?"hsl("+r+", "+i+"%, "+o+"%)":"hsla("+r+", "+i+"%, "+o+"%, "+this._roundA+")"},toHex:function(n){return Jn(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return ul(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(W(this._r,255)*100)+"%",g:Math.round(W(this._g,255)*100)+"%",b:Math.round(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(W(this._r,255)*100)+"%, "+Math.round(W(this._g,255)*100)+"%, "+Math.round(W(this._b,255)*100)+"%)":"rgba("+Math.round(W(this._r,255)*100)+"%, "+Math.round(W(this._g,255)*100)+"%, "+Math.round(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:bl[Jn(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var r="#"+tr(this._r,this._g,this._b,this._a),i=r,o=this._gradientType?"GradientType = 1, ":"";if(n){var a=D(n);i="#"+tr(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+i+")"},toString:function(n){var r=!!n;n=n||this._format;var i=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return a?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(i=this.toRgbString()),n==="prgb"&&(i=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(i=this.toHexString()),n==="hex3"&&(i=this.toHexString(!0)),n==="hex4"&&(i=this.toHex8String(!0)),n==="hex8"&&(i=this.toHex8String()),n==="name"&&(i=this.toName()),n==="hsl"&&(i=this.toHslString()),n==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return D(this.toString())},_applyModification:function(n,r){var i=n.apply(null,[this].concat([].slice.call(r)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(hl,arguments)},brighten:function(){return this._applyModification(dl,arguments)},darken:function(){return this._applyModification(pl,arguments)},desaturate:function(){return this._applyModification(ll,arguments)},saturate:function(){return this._applyModification(fl,arguments)},greyscale:function(){return this._applyModification(cl,arguments)},spin:function(){return this._applyModification(gl,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(vl,arguments)},complement:function(){return this._applyCombination(yl,arguments)},monochromatic:function(){return this._applyCombination(ml,arguments)},splitcomplement:function(){return this._applyCombination(_l,arguments)},triad:function(){return this._applyCombination(er,[3])},tetrad:function(){return this._applyCombination(er,[4])}};D.fromRatio=function(e,n){if(Se(e)=="object"){var r={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?r[i]=e[i]:r[i]=Jt(e[i]));e=r}return D(e,n)};function il(e){var n={r:0,g:0,b:0},r=1,i=null,o=null,a=null,s=!1,u=!1;return typeof e=="string"&&(e=Al(e)),Se(e)=="object"&&(xt(e.r)&&xt(e.g)&&xt(e.b)?(n=ol(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):xt(e.h)&&xt(e.s)&&xt(e.v)?(i=Jt(e.s),o=Jt(e.v),n=sl(e.h,i,o),s=!0,u="hsv"):xt(e.h)&&xt(e.s)&&xt(e.l)&&(i=Jt(e.s),a=Jt(e.l),n=al(e.h,i,a),s=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=ii(r),{ok:s,format:e.format||u,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function ol(e,n,r){return{r:W(e,255)*255,g:W(n,255)*255,b:W(r,255)*255}}function Kn(e,n,r){e=W(e,255),n=W(n,255),r=W(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,u=(i+o)/2;if(i==o)a=s=0;else{var f=i-o;switch(s=u>.5?f/(2-i-o):f/(i+o),i){case e:a=(n-r)/f+(n<r?6:0);break;case n:a=(r-e)/f+2;break;case r:a=(e-n)/f+4;break}a/=6}return{h:a,s,l:u}}function al(e,n,r){var i,o,a;e=W(e,360),n=W(n,100),r=W(r,100);function s(l,h,c){return c<0&&(c+=1),c>1&&(c-=1),c<1/6?l+(h-l)*6*c:c<1/2?h:c<2/3?l+(h-l)*(2/3-c)*6:l}if(n===0)i=o=a=r;else{var u=r<.5?r*(1+n):r+n-r*n,f=2*r-u;i=s(f,u,e+1/3),o=s(f,u,e),a=s(f,u,e-1/3)}return{r:i*255,g:o*255,b:a*255}}function Qn(e,n,r){e=W(e,255),n=W(n,255),r=W(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,u=i,f=i-o;if(s=i===0?0:f/i,i==o)a=0;else{switch(i){case e:a=(n-r)/f+(n<r?6:0);break;case n:a=(r-e)/f+2;break;case r:a=(e-n)/f+4;break}a/=6}return{h:a,s,v:u}}function sl(e,n,r){e=W(e,360)*6,n=W(n,100),r=W(r,100);var i=Math.floor(e),o=e-i,a=r*(1-n),s=r*(1-o*n),u=r*(1-(1-o)*n),f=i%6,l=[r,s,a,a,u,r][f],h=[u,r,r,s,a,a][f],c=[a,a,u,r,r,s][f];return{r:l*255,g:h*255,b:c*255}}function Jn(e,n,r,i){var o=[ct(Math.round(e).toString(16)),ct(Math.round(n).toString(16)),ct(Math.round(r).toString(16))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function ul(e,n,r,i,o){var a=[ct(Math.round(e).toString(16)),ct(Math.round(n).toString(16)),ct(Math.round(r).toString(16)),ct(oi(i))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function tr(e,n,r,i){var o=[ct(oi(i)),ct(Math.round(e).toString(16)),ct(Math.round(n).toString(16)),ct(Math.round(r).toString(16))];return o.join("")}D.equals=function(e,n){return!e||!n?!1:D(e).toRgbString()==D(n).toRgbString()};D.random=function(){return D.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ll(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.s-=n/100,r.s=Re(r.s),D(r)}function fl(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.s+=n/100,r.s=Re(r.s),D(r)}function cl(e){return D(e).desaturate(100)}function hl(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.l+=n/100,r.l=Re(r.l),D(r)}function dl(e,n){n=n===0?0:n||10;var r=D(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),D(r)}function pl(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.l-=n/100,r.l=Re(r.l),D(r)}function gl(e,n){var r=D(e).toHsl(),i=(r.h+n)%360;return r.h=i<0?360+i:i,D(r)}function yl(e){var n=D(e).toHsl();return n.h=(n.h+180)%360,D(n)}function er(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var r=D(e).toHsl(),i=[D(e)],o=360/n,a=1;a<n;a++)i.push(D({h:(r.h+a*o)%360,s:r.s,l:r.l}));return i}function _l(e){var n=D(e).toHsl(),r=n.h;return[D(e),D({h:(r+72)%360,s:n.s,l:n.l}),D({h:(r+216)%360,s:n.s,l:n.l})]}function vl(e,n,r){n=n||6,r=r||30;var i=D(e).toHsl(),o=360/r,a=[D(e)];for(i.h=(i.h-(o*n>>1)+720)%360;--n;)i.h=(i.h+o)%360,a.push(D(i));return a}function ml(e,n){n=n||6;for(var r=D(e).toHsv(),i=r.h,o=r.s,a=r.v,s=[],u=1/n;n--;)s.push(D({h:i,s:o,v:a})),a=(a+u)%1;return s}D.mix=function(e,n,r){r=r===0?0:r||50;var i=D(e).toRgb(),o=D(n).toRgb(),a=r/100,s={r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a};return D(s)};D.readability=function(e,n){var r=D(e),i=D(n);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)};D.isReadable=function(e,n,r){var i=D.readability(e,n),o,a;switch(a=!1,o=Cl(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7;break}return a};D.mostReadable=function(e,n,r){var i=null,o=0,a,s,u,f;r=r||{},s=r.includeFallbackColors,u=r.level,f=r.size;for(var l=0;l<n.length;l++)a=D.readability(e,n[l]),a>o&&(o=a,i=D(n[l]));return D.isReadable(e,i,{level:u,size:f})||!s?i:(r.includeFallbackColors=!1,D.mostReadable(e,["#fff","#000"],r))};var on=D.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},bl=D.hexNames=xl(on);function xl(e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);return n}function ii(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function W(e,n){wl(e)&&(e="100%");var r=kl(e);return e=Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function Re(e){return Math.min(1,Math.max(0,e))}function et(e){return parseInt(e,16)}function wl(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function kl(e){return typeof e=="string"&&e.indexOf("%")!=-1}function ct(e){return e.length==1?"0"+e:""+e}function Jt(e){return e<=1&&(e=e*100+"%"),e}function oi(e){return Math.round(parseFloat(e)*255).toString(16)}function nr(e){return et(e)/255}var ft=(function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+e+")",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function xt(e){return!!ft.CSS_UNIT.exec(e)}function Al(e){e=e.replace(nl,"").replace(rl,"").toLowerCase();var n=!1;if(on[e])e=on[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ft.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ft.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ft.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ft.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ft.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ft.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ft.hex8.exec(e))?{r:et(r[1]),g:et(r[2]),b:et(r[3]),a:nr(r[4]),format:n?"name":"hex8"}:(r=ft.hex6.exec(e))?{r:et(r[1]),g:et(r[2]),b:et(r[3]),format:n?"name":"hex"}:(r=ft.hex4.exec(e))?{r:et(r[1]+""+r[1]),g:et(r[2]+""+r[2]),b:et(r[3]+""+r[3]),a:nr(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=ft.hex3.exec(e))?{r:et(r[1]+""+r[1]),g:et(r[2]+""+r[2]),b:et(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function Cl(e){var n,r;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}function an(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function Sl(e){if(Array.isArray(e))return an(e)}function ai(e,n,r){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:r;throw new TypeError("Private element is not present on this object")}function Tl(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ml(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function rt(e,n){return e.get(ai(e,n))}function rr(e,n,r){Tl(e,n),n.set(e,r)}function ir(e,n,r){return e.set(ai(e,n),r),r}function Pl(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Nl(i.key),i)}}function Ol(e,n,r){return n&&Pl(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function El(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zl(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rl(e){return Sl(e)||El(e)||Dl(e)||zl()}function Il(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Nl(e){var n=Il(e,"string");return typeof n=="symbol"?n:n+""}function Dl(e,n){if(e){if(typeof e=="string")return an(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?an(e,n):void 0}}var $l=123,jl=function(n){return"#".concat(Math.min(n,Math.pow(2,24)).toString(16).padStart(6,"0"))},si=function(n,r,i){return(n<<16)+(r<<8)+i},Fl=function(n){var r=D(n).toRgb(),i=r.r,o=r.g,a=r.b;return si(i,o,a)},or=function(n,r){return n*$l%Math.pow(2,r)},Et=new WeakMap,wt=new WeakMap,Ul=(function(){function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6;Ml(this,e),rr(this,Et,void 0),rr(this,wt,void 0),ir(wt,this,n),this.reset()}return Ol(e,[{key:"reset",value:function(){ir(Et,this,["__reserved for background__"])}},{key:"register",value:function(r){if(rt(Et,this).length>=Math.pow(2,24-rt(wt,this)))return null;var i=rt(Et,this).length,o=or(i,rt(wt,this)),a=jl(i+(o<<24-rt(wt,this)));return rt(Et,this).push(r),a}},{key:"lookup",value:function(r){if(!r)return null;var i=typeof r=="string"?Fl(r):si.apply(void 0,Rl(r));if(!i)return null;var o=i&Math.pow(2,24-rt(wt,this))-1,a=i>>24-rt(wt,this)&Math.pow(2,rt(wt,this))-1;return or(o,rt(wt,this))!==a||o>=rt(Et,this).length?null:rt(Et,this)[o]}}])})(),le,B,ui,li,Rt,ar,fi,ci,hi,wn,sn,un,oe={},di=[],Ll=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ie=Array.isArray;function gt(e,n){for(var r in n)e[r]=n[r];return e}function kn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ql(e,n,r){var i,o,a,s={};for(a in n)a=="key"?i=n[a]:a=="ref"?o=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?le.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)s[a]===void 0&&(s[a]=e.defaultProps[a]);return te(e,s,i,o,null)}function te(e,n,r,i,o){var a={type:e,props:n,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++ui,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(a),a}function Ne(e){return e.children}function me(e,n){this.props=e,this.context=n}function Lt(e,n){if(n==null)return e.__?Lt(e.__,e.__i+1):null;for(var r;n<e.__k.length;n++)if((r=e.__k[n])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Lt(e):null}function pi(e){var n,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((r=e.__k[n])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return pi(e)}}function sr(e){(!e.__d&&(e.__d=!0)&&Rt.push(e)&&!Te.__r++||ar!=B.debounceRendering)&&((ar=B.debounceRendering)||fi)(Te)}function Te(){for(var e,n,r,i,o,a,s,u=1;Rt.length;)Rt.length>u&&Rt.sort(ci),e=Rt.shift(),u=Rt.length,e.__d&&(r=void 0,i=void 0,o=(i=(n=e).__v).__e,a=[],s=[],n.__P&&((r=gt({},i)).__v=i.__v+1,B.vnode&&B.vnode(r),An(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,o??Lt(i),!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,_i(a,r,s),i.__e=i.__=null,r.__e!=o&&pi(r)));Te.__r=0}function gi(e,n,r,i,o,a,s,u,f,l,h){var c,d,p,y,m,_,g,w=i&&i.__k||di,C=n.length;for(f=Hl(r,n,w,f,C),c=0;c<C;c++)(p=r.__k[c])!=null&&(d=p.__i==-1?oe:w[p.__i]||oe,p.__i=c,_=An(e,p,d,o,a,s,u,f,l,h),y=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&Cn(d.ref,null,p),h.push(p.ref,p.__c||y,p)),m==null&&y!=null&&(m=y),(g=!!(4&p.__u))||d.__k===p.__k?f=yi(p,f,e,g):typeof p.type=="function"&&_!==void 0?f=_:y&&(f=y.nextSibling),p.__u&=-7);return r.__e=m,f}function Hl(e,n,r,i,o){var a,s,u,f,l,h=r.length,c=h,d=0;for(e.__k=new Array(o),a=0;a<o;a++)(s=n[a])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[a]=te(null,s,null,null,null):Ie(s)?s=e.__k[a]=te(Ne,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[a]=te(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[a]=s,f=a+d,s.__=e,s.__b=e.__b+1,u=null,(l=s.__i=Vl(s,r,f,c))!=-1&&(c--,(u=r[l])&&(u.__u|=2)),u==null||u.__v==null?(l==-1&&(o>h?d--:o<h&&d++),typeof s.type!="function"&&(s.__u|=4)):l!=f&&(l==f-1?d--:l==f+1?d++:(l>f?d--:d++,s.__u|=4))):e.__k[a]=null;if(c)for(a=0;a<h;a++)(u=r[a])!=null&&(2&u.__u)==0&&(u.__e==i&&(i=Lt(u)),mi(u,u));return i}function yi(e,n,r,i){var o,a;if(typeof e.type=="function"){for(o=e.__k,a=0;o&&a<o.length;a++)o[a]&&(o[a].__=e,n=yi(o[a],n,r,i));return n}e.__e!=n&&(i&&(n&&e.type&&!n.parentNode&&(n=Lt(e)),r.insertBefore(e.__e,n||null)),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType==8);return n}function Vl(e,n,r,i){var o,a,s,u=e.key,f=e.type,l=n[r],h=l!=null&&(2&l.__u)==0;if(l===null&&u==null||h&&u==l.key&&f==l.type)return r;if(i>(h?1:0)){for(o=r-1,a=r+1;o>=0||a<n.length;)if((l=n[s=o>=0?o--:a++])!=null&&(2&l.__u)==0&&u==l.key&&f==l.type)return s}return-1}function ur(e,n,r){n[0]=="-"?e.setProperty(n,r??""):e[n]=r==null?"":typeof r!="number"||Ll.test(n)?r:r+"px"}function de(e,n,r,i,o){var a,s;t:if(n=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(n in i)r&&n in r||ur(e.style,n,"");if(r)for(n in r)i&&r[n]==i[n]||ur(e.style,n,r[n])}else if(n[0]=="o"&&n[1]=="n")a=n!=(n=n.replace(hi,"$1")),s=n.toLowerCase(),n=s in e||n=="onFocusOut"||n=="onFocusIn"?s.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+a]=r,r?i?r.u=i.u:(r.u=wn,e.addEventListener(n,a?un:sn,a)):e.removeEventListener(n,a?un:sn,a);else{if(o=="http://www.w3.org/2000/svg")n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!="width"&&n!="height"&&n!="href"&&n!="list"&&n!="form"&&n!="tabIndex"&&n!="download"&&n!="rowSpan"&&n!="colSpan"&&n!="role"&&n!="popover"&&n in e)try{e[n]=r??"";break t}catch{}typeof r=="function"||(r==null||r===!1&&n[4]!="-"?e.removeAttribute(n):e.setAttribute(n,n=="popover"&&r==1?"":r))}}function lr(e){return function(n){if(this.l){var r=this.l[n.type+e];if(n.t==null)n.t=wn++;else if(n.t<r.u)return;return r(B.event?B.event(n):n)}}}function An(e,n,r,i,o,a,s,u,f,l){var h,c,d,p,y,m,_,g,w,C,b,x,A,S,T,R,O,z=n.type;if(n.constructor!==void 0)return null;128&r.__u&&(f=!!(32&r.__u),a=[u=n.__e=r.__e]),(h=B.__b)&&h(n);t:if(typeof z=="function")try{if(g=n.props,w="prototype"in z&&z.prototype.render,C=(h=z.contextType)&&i[h.__c],b=h?C?C.props.value:h.__:i,r.__c?_=(c=n.__c=r.__c).__=c.__E:(w?n.__c=c=new z(g,b):(n.__c=c=new me(g,b),c.constructor=z,c.render=Wl),C&&C.sub(c),c.state||(c.state={}),c.__n=i,d=c.__d=!0,c.__h=[],c._sb=[]),w&&c.__s==null&&(c.__s=c.state),w&&z.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=gt({},c.__s)),gt(c.__s,z.getDerivedStateFromProps(g,c.__s))),p=c.props,y=c.state,c.__v=n,d)w&&z.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),w&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(w&&z.getDerivedStateFromProps==null&&g!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(g,b),n.__v==r.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(g,c.__s,b)===!1){for(n.__v!=r.__v&&(c.props=g,c.state=c.__s,c.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(I){I&&(I.__=n)}),x=0;x<c._sb.length;x++)c.__h.push(c._sb[x]);c._sb=[],c.__h.length&&s.push(c);break t}c.componentWillUpdate!=null&&c.componentWillUpdate(g,c.__s,b),w&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,y,m)})}if(c.context=b,c.props=g,c.__P=e,c.__e=!1,A=B.__r,S=0,w){for(c.state=c.__s,c.__d=!1,A&&A(n),h=c.render(c.props,c.state,c.context),T=0;T<c._sb.length;T++)c.__h.push(c._sb[T]);c._sb=[]}else do c.__d=!1,A&&A(n),h=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++S<25);c.state=c.__s,c.getChildContext!=null&&(i=gt(gt({},i),c.getChildContext())),w&&!d&&c.getSnapshotBeforeUpdate!=null&&(m=c.getSnapshotBeforeUpdate(p,y)),R=h,h!=null&&h.type===Ne&&h.key==null&&(R=vi(h.props.children)),u=gi(e,Ie(R)?R:[R],n,r,i,o,a,s,u,f,l),c.base=n.__e,n.__u&=-161,c.__h.length&&s.push(c),_&&(c.__E=c.__=null)}catch(I){if(n.__v=null,f||a!=null)if(I.then){for(n.__u|=f?160:128;u&&u.nodeType==8&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,n.__e=u}else{for(O=a.length;O--;)kn(a[O]);ln(n)}else n.__e=r.__e,n.__k=r.__k,I.then||ln(n);B.__e(I,n,r)}else a==null&&n.__v==r.__v?(n.__k=r.__k,n.__e=r.__e):u=n.__e=Gl(r.__e,n,r,i,o,a,s,f,l);return(h=B.diffed)&&h(n),128&n.__u?void 0:u}function ln(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(ln)}function _i(e,n,r){for(var i=0;i<r.length;i++)Cn(r[i],r[++i],r[++i]);B.__c&&B.__c(n,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){B.__e(a,o.__v)}})}function vi(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Ie(e)?e.map(vi):gt({},e)}function Gl(e,n,r,i,o,a,s,u,f){var l,h,c,d,p,y,m,_=r.props||oe,g=n.props,w=n.type;if(w=="svg"?o="http://www.w3.org/2000/svg":w=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),a!=null){for(l=0;l<a.length;l++)if((p=a[l])&&"setAttribute"in p==!!w&&(w?p.localName==w:p.nodeType==3)){e=p,a[l]=null;break}}if(e==null){if(w==null)return document.createTextNode(g);e=document.createElementNS(o,w,g.is&&g),u&&(B.__m&&B.__m(n,a),u=!1),a=null}if(w==null)_===g||u&&e.data==g||(e.data=g);else{if(a=a&&le.call(e.childNodes),!u&&a!=null)for(_={},l=0;l<e.attributes.length;l++)_[(p=e.attributes[l]).name]=p.value;for(l in _)if(p=_[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=p;else if(!(l in g)){if(l=="value"&&"defaultValue"in g||l=="checked"&&"defaultChecked"in g)continue;de(e,l,null,p,o)}}for(l in g)p=g[l],l=="children"?d=p:l=="dangerouslySetInnerHTML"?h=p:l=="value"?y=p:l=="checked"?m=p:u&&typeof p!="function"||_[l]===p||de(e,l,p,_[l],o);if(h)u||c&&(h.__html==c.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),n.__k=[];else if(c&&(e.innerHTML=""),gi(n.type=="template"?e.content:e,Ie(d)?d:[d],n,r,i,w=="foreignObject"?"http://www.w3.org/1999/xhtml":o,a,s,a?a[0]:r.__k&&Lt(r,0),u,f),a!=null)for(l=a.length;l--;)kn(a[l]);u||(l="value",w=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[l]||w=="progress"&&!y||w=="option"&&y!=_[l])&&de(e,l,y,_[l],o),l="checked",m!=null&&m!=e[l]&&de(e,l,m,_[l],o))}return e}function Cn(e,n,r){try{if(typeof e=="function"){var i=typeof e.__u=="function";i&&e.__u(),i&&n==null||(e.__u=e(n))}else e.current=n}catch(o){B.__e(o,r)}}function mi(e,n,r){var i,o;if(B.unmount&&B.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||Cn(i,null,n)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){B.__e(a,n)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&mi(i[o],n,r||typeof e.type!="function");r||kn(e.__e),e.__c=e.__=e.__e=void 0}function Wl(e,n,r){return this.constructor(e,r)}function Bl(e,n,r){var i,o,a,s;n==document&&(n=document.documentElement),B.__&&B.__(e,n),o=(i=!1)?null:n.__k,a=[],s=[],An(n,e=n.__k=ql(Ne,null,[e]),o||oe,oe,n.namespaceURI,o?null:n.firstChild?le.call(n.childNodes):null,a,o?o.__e:n.firstChild,i,s),_i(a,e,s)}function bi(e,n,r){var i,o,a,s,u=gt({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),n)a=="key"?i=n[a]:a=="ref"?o=n[a]:u[a]=n[a]===void 0&&s!=null?s[a]:n[a];return arguments.length>2&&(u.children=arguments.length>3?le.call(arguments,2):r),te(e.type,u,i||e.key,o||e.ref,null)}le=di.slice,B={__e:function(e,n,r,i){for(var o,a,s;n=n.__;)if((o=n.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,i||{}),s=o.__d),s)return o.__E=o}catch(u){e=u}throw e}},ui=0,li=function(e){return e!=null&&e.constructor===void 0},me.prototype.setState=function(e,n){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=gt({},this.state),typeof e=="function"&&(e=e(gt({},r),this.props)),e&&gt(r,e),e!=null&&this.__v&&(n&&this._sb.push(n),sr(this))},me.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),sr(this))},me.prototype.render=Ne,Rt=[],fi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ci=function(e,n){return e.__v.__b-n.__v.__b},Te.__r=0,hi=/(PointerCapture)$|Capture$/i,wn=0,sn=lr(!1),un=lr(!0);function fr(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function Xl(e){if(Array.isArray(e))return e}function Yl(e,n,r){return(n=ef(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Zl(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],f=!0,l=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(f=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);f=!0);}catch(h){l=!0,o=h}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return u}}function Kl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cr(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function Ql(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?cr(Object(r),!0).forEach(function(i){Yl(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cr(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Jl(e,n){return Xl(e)||Zl(e,n)||nf(e,n)||Kl()}function tf(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ef(e){var n=tf(e,"string");return typeof n=="symbol"?n:n+""}function Me(e){"@babel/helpers - typeof";return Me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Me(e)}function nf(e,n){if(e){if(typeof e=="string")return fr(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fr(e,n):void 0}}var fn=function(n){if(Me(n)!=="object")return n;var r=bi(n);if(r.props){var i;r.props=Ql({},r.props),r!=null&&(i=r.props)!==null&&i!==void 0&&i.children&&(r.props.children=Array.isArray(r.props.children)?r.props.children.map(fn):fn(r.props.children))}return r},rf=function(n){return li(bi(n))},of=function(n,r){delete r.__k,Bl(fn(n),r)};function af(e,n){n===void 0&&(n={});var r=n.insertAt;if(!(typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var sf=`.float-tooltip-kap {
9
+ position: absolute;
10
+ width: max-content; /* prevent shrinking near right edge */
11
+ max-width: max(50%, 150px);
12
+ padding: 3px 5px;
13
+ border-radius: 3px;
14
+ font: 12px sans-serif;
15
+ color: #eee;
16
+ background: rgba(0,0,0,0.6);
17
+ pointer-events: none;
18
+ }
19
+ `;af(sf);var uf=xn({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.style,a=o===void 0?{}:o,s=!!n&&Me(n)==="object"&&!!n.node&&typeof n.node=="function",u=at(s?n.node():n);u.style("position")==="static"&&u.style("position","relative"),r.tooltipEl=u.append("div").attr("class","float-tooltip-kap"),Object.entries(a).forEach(function(l){var h=Jl(l,2),c=h[0],d=h[1];return r.tooltipEl.style(c,d)}),r.tooltipEl.style("left","-10000px").style("display","none");var f="tooltip-".concat(Math.round(Math.random()*1e12));r.mouseInside=!1,u.on("mousemove.".concat(f),function(l){r.mouseInside=!0;var h=pt(l),c=u.node(),d=c.offsetWidth,p=c.offsetHeight,y=[r.offsetX===null||r.offsetX===void 0?"-".concat(h[0]/d*100,"%"):typeof r.offsetX=="number"?"calc(-50% + ".concat(r.offsetX,"px)"):r.offsetX,r.offsetY===null||r.offsetY===void 0?p>130&&p-h[1]<100?"calc(-100% - 6px)":"21px":typeof r.offsetY=="number"?r.offsetY<0?"calc(-100% - ".concat(Math.abs(r.offsetY),"px)"):"".concat(r.offsetY,"px"):r.offsetY];r.tooltipEl.style("left",h[0]+"px").style("top",h[1]+"px").style("transform","translate(".concat(y.join(","),")")),r.content&&r.tooltipEl.style("display","inline")}),u.on("mouseover.".concat(f),function(){r.mouseInside=!0,r.content&&r.tooltipEl.style("display","inline")}),u.on("mouseout.".concat(f),function(){r.mouseInside=!1,r.tooltipEl.style("display","none")})},update:function(n){n.tooltipEl.style("display",n.content&&n.mouseInside?"inline":"none"),n.content?n.content instanceof HTMLElement?(n.tooltipEl.text(""),n.tooltipEl.append(function(){return n.content})):typeof n.content=="string"?n.tooltipEl.html(n.content):rf(n.content)?(n.tooltipEl.text(""),of(n.content,n.tooltipEl.node())):(n.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",n.content,n.content.toString())):n.tooltipEl.text("")}});function lf(e,n,r){var i,o=1;e==null&&(e=0),n==null&&(n=0),r==null&&(r=0);function a(){var s,u=i.length,f,l=0,h=0,c=0;for(s=0;s<u;++s)f=i[s],l+=f.x||0,h+=f.y||0,c+=f.z||0;for(l=(l/u-e)*o,h=(h/u-n)*o,c=(c/u-r)*o,s=0;s<u;++s)f=i[s],l&&(f.x-=l),h&&(f.y-=h),c&&(f.z-=c)}return a.initialize=function(s){i=s},a.x=function(s){return arguments.length?(e=+s,a):e},a.y=function(s){return arguments.length?(n=+s,a):n},a.z=function(s){return arguments.length?(r=+s,a):r},a.strength=function(s){return arguments.length?(o=+s,a):o},a}function ff(e){const n=+this._x.call(null,e);return xi(this.cover(n),n,e)}function xi(e,n,r){if(isNaN(n))return e;var i,o=e._root,a={data:r},s=e._x0,u=e._x1,f,l,h,c,d;if(!o)return e._root=a,e;for(;o.length;)if((h=n>=(f=(s+u)/2))?s=f:u=f,i=o,!(o=o[c=+h]))return i[c]=a,e;if(l=+e._x.call(null,o.data),n===l)return a.next=o,i?i[c]=a:e._root=a,e;do i=i?i[c]=new Array(2):e._root=new Array(2),(h=n>=(f=(s+u)/2))?s=f:u=f;while((c=+h)==(d=+(l>=f)));return i[d]=o,i[c]=a,e}function cf(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,r=new Float64Array(n);let i=1/0,o=-1/0;for(let a=0,s;a<n;++a)isNaN(s=+this._x.call(null,e[a]))||(r[a]=s,s<i&&(i=s),s>o&&(o=s));if(i>o)return this;this.cover(i).cover(o);for(let a=0;a<n;++a)xi(this,r[a],e[a]);return this}function hf(e){if(isNaN(e=+e))return this;var n=this._x0,r=this._x1;if(isNaN(n))r=(n=Math.floor(e))+1;else{for(var i=r-n||1,o=this._root,a,s;n>e||e>=r;)switch(s=+(e<n),a=new Array(2),a[s]=o,o=a,i*=2,s){case 0:r=n+i;break;case 1:n=r-i;break}this._root&&this._root.length&&(this._root=o)}return this._x0=n,this._x1=r,this}function df(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function pf(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function Tt(e,n,r){this.node=e,this.x0=n,this.x1=r}function gf(e,n){var r,i=this._x0,o,a,s=this._x1,u=[],f=this._root,l,h;for(f&&u.push(new Tt(f,i,s)),n==null?n=1/0:(i=e-n,s=e+n);l=u.pop();)if(!(!(f=l.node)||(o=l.x0)>s||(a=l.x1)<i))if(f.length){var c=(o+a)/2;u.push(new Tt(f[1],c,a),new Tt(f[0],o,c)),(h=+(e>=c))&&(l=u[u.length-1],u[u.length-1]=u[u.length-1-h],u[u.length-1-h]=l)}else{var d=Math.abs(e-+this._x.call(null,f.data));d<n&&(n=d,i=e-d,s=e+d,r=f.data)}return r}function yf(e){if(isNaN(f=+this._x.call(null,e)))return this;var n,r=this._root,i,o,a,s=this._x0,u=this._x1,f,l,h,c,d;if(!r)return this;if(r.length)for(;;){if((h=f>=(l=(s+u)/2))?s=l:u=l,n=r,!(r=r[c=+h]))return this;if(!r.length)break;n[c+1&1]&&(i=n,d=c)}for(;r.data!==e;)if(o=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,o?(a?o.next=a:delete o.next,this):n?(a?n[c]=a:delete n[c],(r=n[0]||n[1])&&r===(n[1]||n[0])&&!r.length&&(i?i[d]=r:this._root=r),this):(this._root=a,this)}function _f(e){for(var n=0,r=e.length;n<r;++n)this.remove(e[n]);return this}function vf(){return this._root}function mf(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function bf(e){var n=[],r,i=this._root,o,a,s;for(i&&n.push(new Tt(i,this._x0,this._x1));r=n.pop();)if(!e(i=r.node,a=r.x0,s=r.x1)&&i.length){var u=(a+s)/2;(o=i[1])&&n.push(new Tt(o,u,s)),(o=i[0])&&n.push(new Tt(o,a,u))}return this}function xf(e){var n=[],r=[],i;for(this._root&&n.push(new Tt(this._root,this._x0,this._x1));i=n.pop();){var o=i.node;if(o.length){var a,s=i.x0,u=i.x1,f=(s+u)/2;(a=o[0])&&n.push(new Tt(a,s,f)),(a=o[1])&&n.push(new Tt(a,f,u))}r.push(i)}for(;i=r.pop();)e(i.node,i.x0,i.x1);return this}function wf(e){return e[0]}function kf(e){return arguments.length?(this._x=e,this):this._x}function wi(e,n){var r=new Sn(n??wf,NaN,NaN);return e==null?r:r.addAll(e)}function Sn(e,n,r){this._x=e,this._x0=n,this._x1=r,this._root=void 0}function hr(e){for(var n={data:e.data},r=n;e=e.next;)r=r.next={data:e.data};return n}var tt=wi.prototype=Sn.prototype;tt.copy=function(){var e=new Sn(this._x,this._x0,this._x1),n=this._root,r,i;if(!n)return e;if(!n.length)return e._root=hr(n),e;for(r=[{source:n,target:e._root=new Array(2)}];n=r.pop();)for(var o=0;o<2;++o)(i=n.source[o])&&(i.length?r.push({source:i,target:n.target[o]=new Array(2)}):n.target[o]=hr(i));return e};tt.add=ff;tt.addAll=cf;tt.cover=hf;tt.data=df;tt.extent=pf;tt.find=gf;tt.remove=yf;tt.removeAll=_f;tt.root=vf;tt.size=mf;tt.visit=bf;tt.visitAfter=xf;tt.x=kf;function Af(e){const n=+this._x.call(null,e),r=+this._y.call(null,e);return ki(this.cover(n,r),n,r,e)}function ki(e,n,r,i){if(isNaN(n)||isNaN(r))return e;var o,a=e._root,s={data:i},u=e._x0,f=e._y0,l=e._x1,h=e._y1,c,d,p,y,m,_,g,w;if(!a)return e._root=s,e;for(;a.length;)if((m=n>=(c=(u+l)/2))?u=c:l=c,(_=r>=(d=(f+h)/2))?f=d:h=d,o=a,!(a=a[g=_<<1|m]))return o[g]=s,e;if(p=+e._x.call(null,a.data),y=+e._y.call(null,a.data),n===p&&r===y)return s.next=a,o?o[g]=s:e._root=s,e;do o=o?o[g]=new Array(4):e._root=new Array(4),(m=n>=(c=(u+l)/2))?u=c:l=c,(_=r>=(d=(f+h)/2))?f=d:h=d;while((g=_<<1|m)===(w=(y>=d)<<1|p>=c));return o[w]=a,o[g]=s,e}function Cf(e){var n,r,i=e.length,o,a,s=new Array(i),u=new Array(i),f=1/0,l=1/0,h=-1/0,c=-1/0;for(r=0;r<i;++r)isNaN(o=+this._x.call(null,n=e[r]))||isNaN(a=+this._y.call(null,n))||(s[r]=o,u[r]=a,o<f&&(f=o),o>h&&(h=o),a<l&&(l=a),a>c&&(c=a));if(f>h||l>c)return this;for(this.cover(f,l).cover(h,c),r=0;r<i;++r)ki(this,s[r],u[r],e[r]);return this}function Sf(e,n){if(isNaN(e=+e)||isNaN(n=+n))return this;var r=this._x0,i=this._y0,o=this._x1,a=this._y1;if(isNaN(r))o=(r=Math.floor(e))+1,a=(i=Math.floor(n))+1;else{for(var s=o-r||1,u=this._root,f,l;r>e||e>=o||i>n||n>=a;)switch(l=(n<i)<<1|e<r,f=new Array(4),f[l]=u,u=f,s*=2,l){case 0:o=r+s,a=i+s;break;case 1:r=o-s,a=i+s;break;case 2:o=r+s,i=a-s;break;case 3:r=o-s,i=a-s;break}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=i,this._x1=o,this._y1=a,this}function Tf(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function Mf(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Q(e,n,r,i,o){this.node=e,this.x0=n,this.y0=r,this.x1=i,this.y1=o}function Pf(e,n,r){var i,o=this._x0,a=this._y0,s,u,f,l,h=this._x1,c=this._y1,d=[],p=this._root,y,m;for(p&&d.push(new Q(p,o,a,h,c)),r==null?r=1/0:(o=e-r,a=n-r,h=e+r,c=n+r,r*=r);y=d.pop();)if(!(!(p=y.node)||(s=y.x0)>h||(u=y.y0)>c||(f=y.x1)<o||(l=y.y1)<a))if(p.length){var _=(s+f)/2,g=(u+l)/2;d.push(new Q(p[3],_,g,f,l),new Q(p[2],s,g,_,l),new Q(p[1],_,u,f,g),new Q(p[0],s,u,_,g)),(m=(n>=g)<<1|e>=_)&&(y=d[d.length-1],d[d.length-1]=d[d.length-1-m],d[d.length-1-m]=y)}else{var w=e-+this._x.call(null,p.data),C=n-+this._y.call(null,p.data),b=w*w+C*C;if(b<r){var x=Math.sqrt(r=b);o=e-x,a=n-x,h=e+x,c=n+x,i=p.data}}return i}function Of(e){if(isNaN(h=+this._x.call(null,e))||isNaN(c=+this._y.call(null,e)))return this;var n,r=this._root,i,o,a,s=this._x0,u=this._y0,f=this._x1,l=this._y1,h,c,d,p,y,m,_,g;if(!r)return this;if(r.length)for(;;){if((y=h>=(d=(s+f)/2))?s=d:f=d,(m=c>=(p=(u+l)/2))?u=p:l=p,n=r,!(r=r[_=m<<1|y]))return this;if(!r.length)break;(n[_+1&3]||n[_+2&3]||n[_+3&3])&&(i=n,g=_)}for(;r.data!==e;)if(o=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,o?(a?o.next=a:delete o.next,this):n?(a?n[_]=a:delete n[_],(r=n[0]||n[1]||n[2]||n[3])&&r===(n[3]||n[2]||n[1]||n[0])&&!r.length&&(i?i[g]=r:this._root=r),this):(this._root=a,this)}function Ef(e){for(var n=0,r=e.length;n<r;++n)this.remove(e[n]);return this}function zf(){return this._root}function Rf(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function If(e){var n=[],r,i=this._root,o,a,s,u,f;for(i&&n.push(new Q(i,this._x0,this._y0,this._x1,this._y1));r=n.pop();)if(!e(i=r.node,a=r.x0,s=r.y0,u=r.x1,f=r.y1)&&i.length){var l=(a+u)/2,h=(s+f)/2;(o=i[3])&&n.push(new Q(o,l,h,u,f)),(o=i[2])&&n.push(new Q(o,a,h,l,f)),(o=i[1])&&n.push(new Q(o,l,s,u,h)),(o=i[0])&&n.push(new Q(o,a,s,l,h))}return this}function Nf(e){var n=[],r=[],i;for(this._root&&n.push(new Q(this._root,this._x0,this._y0,this._x1,this._y1));i=n.pop();){var o=i.node;if(o.length){var a,s=i.x0,u=i.y0,f=i.x1,l=i.y1,h=(s+f)/2,c=(u+l)/2;(a=o[0])&&n.push(new Q(a,s,u,h,c)),(a=o[1])&&n.push(new Q(a,h,u,f,c)),(a=o[2])&&n.push(new Q(a,s,c,h,l)),(a=o[3])&&n.push(new Q(a,h,c,f,l))}r.push(i)}for(;i=r.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function Df(e){return e[0]}function $f(e){return arguments.length?(this._x=e,this):this._x}function jf(e){return e[1]}function Ff(e){return arguments.length?(this._y=e,this):this._y}function Ai(e,n,r){var i=new Tn(n??Df,r??jf,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function Tn(e,n,r,i,o,a){this._x=e,this._y=n,this._x0=r,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function dr(e){for(var n={data:e.data},r=n;e=e.next;)r=r.next={data:e.data};return n}var J=Ai.prototype=Tn.prototype;J.copy=function(){var e=new Tn(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,r,i;if(!n)return e;if(!n.length)return e._root=dr(n),e;for(r=[{source:n,target:e._root=new Array(4)}];n=r.pop();)for(var o=0;o<4;++o)(i=n.source[o])&&(i.length?r.push({source:i,target:n.target[o]=new Array(4)}):n.target[o]=dr(i));return e};J.add=Af;J.addAll=Cf;J.cover=Sf;J.data=Tf;J.extent=Mf;J.find=Pf;J.remove=Of;J.removeAll=Ef;J.root=zf;J.size=Rf;J.visit=If;J.visitAfter=Nf;J.x=$f;J.y=Ff;function Uf(e){const n=+this._x.call(null,e),r=+this._y.call(null,e),i=+this._z.call(null,e);return Ci(this.cover(n,r,i),n,r,i,e)}function Ci(e,n,r,i,o){if(isNaN(n)||isNaN(r)||isNaN(i))return e;var a,s=e._root,u={data:o},f=e._x0,l=e._y0,h=e._z0,c=e._x1,d=e._y1,p=e._z1,y,m,_,g,w,C,b,x,A,S,T;if(!s)return e._root=u,e;for(;s.length;)if((b=n>=(y=(f+c)/2))?f=y:c=y,(x=r>=(m=(l+d)/2))?l=m:d=m,(A=i>=(_=(h+p)/2))?h=_:p=_,a=s,!(s=s[S=A<<2|x<<1|b]))return a[S]=u,e;if(g=+e._x.call(null,s.data),w=+e._y.call(null,s.data),C=+e._z.call(null,s.data),n===g&&r===w&&i===C)return u.next=s,a?a[S]=u:e._root=u,e;do a=a?a[S]=new Array(8):e._root=new Array(8),(b=n>=(y=(f+c)/2))?f=y:c=y,(x=r>=(m=(l+d)/2))?l=m:d=m,(A=i>=(_=(h+p)/2))?h=_:p=_;while((S=A<<2|x<<1|b)===(T=(C>=_)<<2|(w>=m)<<1|g>=y));return a[T]=s,a[S]=u,e}function Lf(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,r=new Float64Array(n),i=new Float64Array(n),o=new Float64Array(n);let a=1/0,s=1/0,u=1/0,f=-1/0,l=-1/0,h=-1/0;for(let c=0,d,p,y,m;c<n;++c)isNaN(p=+this._x.call(null,d=e[c]))||isNaN(y=+this._y.call(null,d))||isNaN(m=+this._z.call(null,d))||(r[c]=p,i[c]=y,o[c]=m,p<a&&(a=p),p>f&&(f=p),y<s&&(s=y),y>l&&(l=y),m<u&&(u=m),m>h&&(h=m));if(a>f||s>l||u>h)return this;this.cover(a,s,u).cover(f,l,h);for(let c=0;c<n;++c)Ci(this,r[c],i[c],o[c],e[c]);return this}function qf(e,n,r){if(isNaN(e=+e)||isNaN(n=+n)||isNaN(r=+r))return this;var i=this._x0,o=this._y0,a=this._z0,s=this._x1,u=this._y1,f=this._z1;if(isNaN(i))s=(i=Math.floor(e))+1,u=(o=Math.floor(n))+1,f=(a=Math.floor(r))+1;else{for(var l=s-i||1,h=this._root,c,d;i>e||e>=s||o>n||n>=u||a>r||r>=f;)switch(d=(r<a)<<2|(n<o)<<1|e<i,c=new Array(8),c[d]=h,h=c,l*=2,d){case 0:s=i+l,u=o+l,f=a+l;break;case 1:i=s-l,u=o+l,f=a+l;break;case 2:s=i+l,o=u-l,f=a+l;break;case 3:i=s-l,o=u-l,f=a+l;break;case 4:s=i+l,u=o+l,a=f-l;break;case 5:i=s-l,u=o+l,a=f-l;break;case 6:s=i+l,o=u-l,a=f-l;break;case 7:i=s-l,o=u-l,a=f-l;break}this._root&&this._root.length&&(this._root=h)}return this._x0=i,this._y0=o,this._z0=a,this._x1=s,this._y1=u,this._z1=f,this}function Hf(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function Vf(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function V(e,n,r,i,o,a,s){this.node=e,this.x0=n,this.y0=r,this.z0=i,this.x1=o,this.y1=a,this.z1=s}function Gf(e,n,r,i){var o,a=this._x0,s=this._y0,u=this._z0,f,l,h,c,d,p,y=this._x1,m=this._y1,_=this._z1,g=[],w=this._root,C,b;for(w&&g.push(new V(w,a,s,u,y,m,_)),i==null?i=1/0:(a=e-i,s=n-i,u=r-i,y=e+i,m=n+i,_=r+i,i*=i);C=g.pop();)if(!(!(w=C.node)||(f=C.x0)>y||(l=C.y0)>m||(h=C.z0)>_||(c=C.x1)<a||(d=C.y1)<s||(p=C.z1)<u))if(w.length){var x=(f+c)/2,A=(l+d)/2,S=(h+p)/2;g.push(new V(w[7],x,A,S,c,d,p),new V(w[6],f,A,S,x,d,p),new V(w[5],x,l,S,c,A,p),new V(w[4],f,l,S,x,A,p),new V(w[3],x,A,h,c,d,S),new V(w[2],f,A,h,x,d,S),new V(w[1],x,l,h,c,A,S),new V(w[0],f,l,h,x,A,S)),(b=(r>=S)<<2|(n>=A)<<1|e>=x)&&(C=g[g.length-1],g[g.length-1]=g[g.length-1-b],g[g.length-1-b]=C)}else{var T=e-+this._x.call(null,w.data),R=n-+this._y.call(null,w.data),O=r-+this._z.call(null,w.data),z=T*T+R*R+O*O;if(z<i){var I=Math.sqrt(i=z);a=e-I,s=n-I,u=r-I,y=e+I,m=n+I,_=r+I,o=w.data}}return o}const Wf=(e,n,r,i,o,a)=>Math.sqrt((e-i)**2+(n-o)**2+(r-a)**2);function Bf(e,n,r,i){const o=[],a=e-i,s=n-i,u=r-i,f=e+i,l=n+i,h=r+i;return this.visit((c,d,p,y,m,_,g)=>{if(!c.length)do{const w=c.data;Wf(e,n,r,this._x(w),this._y(w),this._z(w))<=i&&o.push(w)}while(c=c.next);return d>f||p>l||y>h||m<a||_<s||g<u}),o}function Xf(e){if(isNaN(d=+this._x.call(null,e))||isNaN(p=+this._y.call(null,e))||isNaN(y=+this._z.call(null,e)))return this;var n,r=this._root,i,o,a,s=this._x0,u=this._y0,f=this._z0,l=this._x1,h=this._y1,c=this._z1,d,p,y,m,_,g,w,C,b,x,A;if(!r)return this;if(r.length)for(;;){if((w=d>=(m=(s+l)/2))?s=m:l=m,(C=p>=(_=(u+h)/2))?u=_:h=_,(b=y>=(g=(f+c)/2))?f=g:c=g,n=r,!(r=r[x=b<<2|C<<1|w]))return this;if(!r.length)break;(n[x+1&7]||n[x+2&7]||n[x+3&7]||n[x+4&7]||n[x+5&7]||n[x+6&7]||n[x+7&7])&&(i=n,A=x)}for(;r.data!==e;)if(o=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,o?(a?o.next=a:delete o.next,this):n?(a?n[x]=a:delete n[x],(r=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&r===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!r.length&&(i?i[A]=r:this._root=r),this):(this._root=a,this)}function Yf(e){for(var n=0,r=e.length;n<r;++n)this.remove(e[n]);return this}function Zf(){return this._root}function Kf(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function Qf(e){var n=[],r,i=this._root,o,a,s,u,f,l,h;for(i&&n.push(new V(i,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));r=n.pop();)if(!e(i=r.node,a=r.x0,s=r.y0,u=r.z0,f=r.x1,l=r.y1,h=r.z1)&&i.length){var c=(a+f)/2,d=(s+l)/2,p=(u+h)/2;(o=i[7])&&n.push(new V(o,c,d,p,f,l,h)),(o=i[6])&&n.push(new V(o,a,d,p,c,l,h)),(o=i[5])&&n.push(new V(o,c,s,p,f,d,h)),(o=i[4])&&n.push(new V(o,a,s,p,c,d,h)),(o=i[3])&&n.push(new V(o,c,d,u,f,l,p)),(o=i[2])&&n.push(new V(o,a,d,u,c,l,p)),(o=i[1])&&n.push(new V(o,c,s,u,f,d,p)),(o=i[0])&&n.push(new V(o,a,s,u,c,d,p))}return this}function Jf(e){var n=[],r=[],i;for(this._root&&n.push(new V(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));i=n.pop();){var o=i.node;if(o.length){var a,s=i.x0,u=i.y0,f=i.z0,l=i.x1,h=i.y1,c=i.z1,d=(s+l)/2,p=(u+h)/2,y=(f+c)/2;(a=o[0])&&n.push(new V(a,s,u,f,d,p,y)),(a=o[1])&&n.push(new V(a,d,u,f,l,p,y)),(a=o[2])&&n.push(new V(a,s,p,f,d,h,y)),(a=o[3])&&n.push(new V(a,d,p,f,l,h,y)),(a=o[4])&&n.push(new V(a,s,u,y,d,p,c)),(a=o[5])&&n.push(new V(a,d,u,y,l,p,c)),(a=o[6])&&n.push(new V(a,s,p,y,d,h,c)),(a=o[7])&&n.push(new V(a,d,p,y,l,h,c))}r.push(i)}for(;i=r.pop();)e(i.node,i.x0,i.y0,i.z0,i.x1,i.y1,i.z1);return this}function tc(e){return e[0]}function ec(e){return arguments.length?(this._x=e,this):this._x}function nc(e){return e[1]}function rc(e){return arguments.length?(this._y=e,this):this._y}function ic(e){return e[2]}function oc(e){return arguments.length?(this._z=e,this):this._z}function Si(e,n,r,i){var o=new Mn(n??tc,r??nc,i??ic,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Mn(e,n,r,i,o,a,s,u,f){this._x=e,this._y=n,this._z=r,this._x0=i,this._y0=o,this._z0=a,this._x1=s,this._y1=u,this._z1=f,this._root=void 0}function pr(e){for(var n={data:e.data},r=n;e=e.next;)r=r.next={data:e.data};return n}var Z=Si.prototype=Mn.prototype;Z.copy=function(){var e=new Mn(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),n=this._root,r,i;if(!n)return e;if(!n.length)return e._root=pr(n),e;for(r=[{source:n,target:e._root=new Array(8)}];n=r.pop();)for(var o=0;o<8;++o)(i=n.source[o])&&(i.length?r.push({source:i,target:n.target[o]=new Array(8)}):n.target[o]=pr(i));return e};Z.add=Uf;Z.addAll=Lf;Z.cover=qf;Z.data=Hf;Z.extent=Vf;Z.find=Gf;Z.findAllWithinRadius=Bf;Z.remove=Xf;Z.removeAll=Yf;Z.root=Zf;Z.size=Kf;Z.visit=Qf;Z.visitAfter=Jf;Z.x=ec;Z.y=rc;Z.z=oc;function St(e){return function(){return e}}function At(e){return(e()-.5)*1e-6}function ac(e){return e.index}function gr(e,n){var r=e.get(n);if(!r)throw new Error("node not found: "+n);return r}function sc(e){var n=ac,r=d,i,o=St(30),a,s,u,f,l,h,c=1;e==null&&(e=[]);function d(g){return 1/Math.min(f[g.source.index],f[g.target.index])}function p(g){for(var w=0,C=e.length;w<c;++w)for(var b=0,x,A,S,T=0,R=0,O=0,z,I;b<C;++b)x=e[b],A=x.source,S=x.target,T=S.x+S.vx-A.x-A.vx||At(h),u>1&&(R=S.y+S.vy-A.y-A.vy||At(h)),u>2&&(O=S.z+S.vz-A.z-A.vz||At(h)),z=Math.sqrt(T*T+R*R+O*O),z=(z-a[b])/z*g*i[b],T*=z,R*=z,O*=z,S.vx-=T*(I=l[b]),u>1&&(S.vy-=R*I),u>2&&(S.vz-=O*I),A.vx+=T*(I=1-I),u>1&&(A.vy+=R*I),u>2&&(A.vz+=O*I)}function y(){if(s){var g,w=s.length,C=e.length,b=new Map(s.map((A,S)=>[n(A,S,s),A])),x;for(g=0,f=new Array(w);g<C;++g)x=e[g],x.index=g,typeof x.source!="object"&&(x.source=gr(b,x.source)),typeof x.target!="object"&&(x.target=gr(b,x.target)),f[x.source.index]=(f[x.source.index]||0)+1,f[x.target.index]=(f[x.target.index]||0)+1;for(g=0,l=new Array(C);g<C;++g)x=e[g],l[g]=f[x.source.index]/(f[x.source.index]+f[x.target.index]);i=new Array(C),m(),a=new Array(C),_()}}function m(){if(s)for(var g=0,w=e.length;g<w;++g)i[g]=+r(e[g],g,e)}function _(){if(s)for(var g=0,w=e.length;g<w;++g)a[g]=+o(e[g],g,e)}return p.initialize=function(g,...w){s=g,h=w.find(C=>typeof C=="function")||Math.random,u=w.find(C=>[1,2,3].includes(C))||2,y()},p.links=function(g){return arguments.length?(e=g,y(),p):e},p.id=function(g){return arguments.length?(n=g,p):n},p.iterations=function(g){return arguments.length?(c=+g,p):c},p.strength=function(g){return arguments.length?(r=typeof g=="function"?g:St(+g),m(),p):r},p.distance=function(g){return arguments.length?(o=typeof g=="function"?g:St(+g),_(),p):o},p}const uc=1664525,lc=1013904223,yr=4294967296;function fc(){let e=1;return()=>(e=(uc*e+lc)%yr)/yr}var _r=3;function Le(e){return e.x}function vr(e){return e.y}function cc(e){return e.z}var hc=10,dc=Math.PI*(3-Math.sqrt(5)),pc=Math.PI*20/(9+Math.sqrt(221));function gc(e,n){n=n||2;var r=Math.min(_r,Math.max(1,Math.round(n))),i,o=1,a=.001,s=1-Math.pow(a,1/300),u=0,f=.6,l=new Map,h=_n(p),c=ue("tick","end"),d=fc();e==null&&(e=[]);function p(){y(),c.call("tick",i),o<a&&(h.stop(),c.call("end",i))}function y(g){var w,C=e.length,b;g===void 0&&(g=1);for(var x=0;x<g;++x)for(o+=(u-o)*s,l.forEach(function(A){A(o)}),w=0;w<C;++w)b=e[w],b.fx==null?b.x+=b.vx*=f:(b.x=b.fx,b.vx=0),r>1&&(b.fy==null?b.y+=b.vy*=f:(b.y=b.fy,b.vy=0)),r>2&&(b.fz==null?b.z+=b.vz*=f:(b.z=b.fz,b.vz=0));return i}function m(){for(var g=0,w=e.length,C;g<w;++g){if(C=e[g],C.index=g,C.fx!=null&&(C.x=C.fx),C.fy!=null&&(C.y=C.fy),C.fz!=null&&(C.z=C.fz),isNaN(C.x)||r>1&&isNaN(C.y)||r>2&&isNaN(C.z)){var b=hc*(r>2?Math.cbrt(.5+g):r>1?Math.sqrt(.5+g):g),x=g*dc,A=g*pc;r===1?C.x=b:r===2?(C.x=b*Math.cos(x),C.y=b*Math.sin(x)):(C.x=b*Math.sin(x)*Math.cos(A),C.y=b*Math.cos(x),C.z=b*Math.sin(x)*Math.sin(A))}(isNaN(C.vx)||r>1&&isNaN(C.vy)||r>2&&isNaN(C.vz))&&(C.vx=0,r>1&&(C.vy=0),r>2&&(C.vz=0))}}function _(g){return g.initialize&&g.initialize(e,d,r),g}return m(),i={tick:y,restart:function(){return h.restart(p),i},stop:function(){return h.stop(),i},numDimensions:function(g){return arguments.length?(r=Math.min(_r,Math.max(1,Math.round(g))),l.forEach(_),i):r},nodes:function(g){return arguments.length?(e=g,m(),l.forEach(_),i):e},alpha:function(g){return arguments.length?(o=+g,i):o},alphaMin:function(g){return arguments.length?(a=+g,i):a},alphaDecay:function(g){return arguments.length?(s=+g,i):+s},alphaTarget:function(g){return arguments.length?(u=+g,i):u},velocityDecay:function(g){return arguments.length?(f=1-g,i):1-f},randomSource:function(g){return arguments.length?(d=g,l.forEach(_),i):d},force:function(g,w){return arguments.length>1?(w==null?l.delete(g):l.set(g,_(w)),i):l.get(g)},find:function(){var g=Array.prototype.slice.call(arguments),w=g.shift()||0,C=(r>1?g.shift():null)||0,b=(r>2?g.shift():null)||0,x=g.shift()||1/0,A=0,S=e.length,T,R,O,z,I,j;for(x*=x,A=0;A<S;++A)I=e[A],T=w-I.x,R=C-(I.y||0),O=b-(I.z||0),z=T*T+R*R+O*O,z<x&&(j=I,x=z);return j},on:function(g,w){return arguments.length>1?(c.on(g,w),i):c.on(g)}}}function yc(){var e,n,r,i,o,a=St(-30),s,u=1,f=1/0,l=.81;function h(y){var m,_=e.length,g=(n===1?wi(e,Le):n===2?Ai(e,Le,vr):n===3?Si(e,Le,vr,cc):null).visitAfter(d);for(o=y,m=0;m<_;++m)r=e[m],g.visit(p)}function c(){if(e){var y,m=e.length,_;for(s=new Array(m),y=0;y<m;++y)_=e[y],s[_.index]=+a(_,y,e)}}function d(y){var m=0,_,g,w=0,C,b,x,A,S=y.length;if(S){for(C=b=x=A=0;A<S;++A)(_=y[A])&&(g=Math.abs(_.value))&&(m+=_.value,w+=g,C+=g*(_.x||0),b+=g*(_.y||0),x+=g*(_.z||0));m*=Math.sqrt(4/S),y.x=C/w,n>1&&(y.y=b/w),n>2&&(y.z=x/w)}else{_=y,_.x=_.data.x,n>1&&(_.y=_.data.y),n>2&&(_.z=_.data.z);do m+=s[_.data.index];while(_=_.next)}y.value=m}function p(y,m,_,g,w){if(!y.value)return!0;var C=[_,g,w][n-1],b=y.x-r.x,x=n>1?y.y-r.y:0,A=n>2?y.z-r.z:0,S=C-m,T=b*b+x*x+A*A;if(S*S/l<T)return T<f&&(b===0&&(b=At(i),T+=b*b),n>1&&x===0&&(x=At(i),T+=x*x),n>2&&A===0&&(A=At(i),T+=A*A),T<u&&(T=Math.sqrt(u*T)),r.vx+=b*y.value*o/T,n>1&&(r.vy+=x*y.value*o/T),n>2&&(r.vz+=A*y.value*o/T)),!0;if(y.length||T>=f)return;(y.data!==r||y.next)&&(b===0&&(b=At(i),T+=b*b),n>1&&x===0&&(x=At(i),T+=x*x),n>2&&A===0&&(A=At(i),T+=A*A),T<u&&(T=Math.sqrt(u*T)));do y.data!==r&&(S=s[y.data.index]*o/T,r.vx+=b*S,n>1&&(r.vy+=x*S),n>2&&(r.vz+=A*S));while(y=y.next)}return h.initialize=function(y,...m){e=y,i=m.find(_=>typeof _=="function")||Math.random,n=m.find(_=>[1,2,3].includes(_))||2,c()},h.strength=function(y){return arguments.length?(a=typeof y=="function"?y:St(+y),c(),h):a},h.distanceMin=function(y){return arguments.length?(u=y*y,h):Math.sqrt(u)},h.distanceMax=function(y){return arguments.length?(f=y*y,h):Math.sqrt(f)},h.theta=function(y){return arguments.length?(l=y*y,h):Math.sqrt(l)},h}function _c(e,n,r,i){var o,a,s=St(.1),u,f;typeof e!="function"&&(e=St(+e)),n==null&&(n=0),r==null&&(r=0),i==null&&(i=0);function l(c){for(var d=0,p=o.length;d<p;++d){var y=o[d],m=y.x-n||1e-6,_=(y.y||0)-r||1e-6,g=(y.z||0)-i||1e-6,w=Math.sqrt(m*m+_*_+g*g),C=(f[d]-w)*u[d]*c/w;y.vx+=m*C,a>1&&(y.vy+=_*C),a>2&&(y.vz+=g*C)}}function h(){if(o){var c,d=o.length;for(u=new Array(d),f=new Array(d),c=0;c<d;++c)f[c]=+e(o[c],c,o),u[c]=isNaN(f[c])?0:+s(o[c],c,o)}}return l.initialize=function(c,...d){o=c,a=d.find(p=>[1,2,3].includes(p))||2,h()},l.strength=function(c){return arguments.length?(s=typeof c=="function"?c:St(+c),h(),l):s},l.radius=function(c){return arguments.length?(e=typeof c=="function"?c:St(+c),h(),l):e},l.x=function(c){return arguments.length?(n=+c,l):n},l.y=function(c){return arguments.length?(r=+c,l):r},l.z=function(c){return arguments.length?(i=+c,l):i},l}const{abs:Gt,cos:kt,sin:Dt,acos:vc,atan2:Wt,sqrt:Pt,pow:it}=Math;function Bt(e){return e<0?-it(-e,1/3):it(e,1/3)}const Ti=Math.PI,pe=2*Ti,Ot=Ti/2,mc=1e-6,qe=Number.MAX_SAFE_INTEGER||9007199254740991,He=Number.MIN_SAFE_INTEGER||-9007199254740991,bc={x:0,y:0,z:0},P={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){const r=n(e);let i=r.x*r.x+r.y*r.y;return typeof r.z<"u"&&(i+=r.z*r.z),Pt(i)},compute:function(e,n,r){if(e===0)return n[0].t=0,n[0];const i=n.length-1;if(e===1)return n[i].t=1,n[i];const o=1-e;let a=n;if(i===0)return n[0].t=e,n[0];if(i===1){const u={x:o*a[0].x+e*a[1].x,y:o*a[0].y+e*a[1].y,t:e};return r&&(u.z=o*a[0].z+e*a[1].z),u}if(i<4){let u=o*o,f=e*e,l,h,c,d=0;i===2?(a=[a[0],a[1],a[2],bc],l=u,h=o*e*2,c=f):i===3&&(l=u*o,h=u*e*3,c=o*f*3,d=e*f);const p={x:l*a[0].x+h*a[1].x+c*a[2].x+d*a[3].x,y:l*a[0].y+h*a[1].y+c*a[2].y+d*a[3].y,t:e};return r&&(p.z=l*a[0].z+h*a[1].z+c*a[2].z+d*a[3].z),p}const s=JSON.parse(JSON.stringify(n));for(;s.length>1;){for(let u=0;u<s.length-1;u++)s[u]={x:s[u].x+(s[u+1].x-s[u].x)*e,y:s[u].y+(s[u+1].y-s[u].y)*e},typeof s[u].z<"u"&&(s[u].z=s[u].z+(s[u+1].z-s[u].z)*e);s.splice(s.length-1,1)}return s[0].t=e,s[0]},computeWithRatios:function(e,n,r,i){const o=1-e,a=r,s=n;let u=a[0],f=a[1],l=a[2],h=a[3],c;if(u*=o,f*=e,s.length===2)return c=u+f,{x:(u*s[0].x+f*s[1].x)/c,y:(u*s[0].y+f*s[1].y)/c,z:i?(u*s[0].z+f*s[1].z)/c:!1,t:e};if(u*=o,f*=2*o,l*=e*e,s.length===3)return c=u+f+l,{x:(u*s[0].x+f*s[1].x+l*s[2].x)/c,y:(u*s[0].y+f*s[1].y+l*s[2].y)/c,z:i?(u*s[0].z+f*s[1].z+l*s[2].z)/c:!1,t:e};if(u*=o,f*=1.5*o,l*=3*o,h*=e*e*e,s.length===4)return c=u+f+l+h,{x:(u*s[0].x+f*s[1].x+l*s[2].x+h*s[3].x)/c,y:(u*s[0].y+f*s[1].y+l*s[2].y+h*s[3].y)/c,z:i?(u*s[0].z+f*s[1].z+l*s[2].z+h*s[3].z)/c:!1,t:e}},derive:function(e,n){const r=[];for(let i=e,o=i.length,a=o-1;o>1;o--,a--){const s=[];for(let u=0,f;u<a;u++)f={x:a*(i[u+1].x-i[u].x),y:a*(i[u+1].y-i[u].y)},n&&(f.z=a*(i[u+1].z-i[u].z)),s.push(f);r.push(s),i=s}return r},between:function(e,n,r){return n<=e&&e<=r||P.approximately(e,n)||P.approximately(e,r)},approximately:function(e,n,r){return Gt(e-n)<=(r||mc)},length:function(e){const r=P.Tvalues.length;let i=0;for(let o=0,a;o<r;o++)a=.5*P.Tvalues[o]+.5,i+=P.Cvalues[o]*P.arcfn(a,e);return .5*i},map:function(e,n,r,i,o){const a=r-n,s=o-i,u=e-n,f=u/a;return i+s*f},lerp:function(e,n,r){const i={x:n.x+e*(r.x-n.x),y:n.y+e*(r.y-n.y)};return n.z!==void 0&&r.z!==void 0&&(i.z=n.z+e*(r.z-n.z)),i},pointToString:function(e){let n=e.x+"/"+e.y;return typeof e.z<"u"&&(n+="/"+e.z),n},pointsToString:function(e){return"["+e.map(P.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,n,r){const i=n.x-e.x,o=n.y-e.y,a=r.x-e.x,s=r.y-e.y,u=i*s-o*a,f=i*a+o*s;return Wt(u,f)},round:function(e,n){const r=""+e,i=r.indexOf(".");return parseFloat(r.substring(0,i+1+n))},dist:function(e,n){const r=e.x-n.x,i=e.y-n.y;return Pt(r*r+i*i)},closest:function(e,n){let r=it(2,63),i,o;return e.forEach(function(a,s){o=P.dist(n,a),o<r&&(r=o,i=s)}),{mdist:r,mpos:i}},abcratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=it(e,n)+it(1-e,n),i=r-1;return Gt(i/r)},projectionratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=it(1-e,n),i=it(e,n)+r;return r/i},lli8:function(e,n,r,i,o,a,s,u){const f=(e*i-n*r)*(o-s)-(e-r)*(o*u-a*s),l=(e*i-n*r)*(a-u)-(n-i)*(o*u-a*s),h=(e-r)*(a-u)-(n-i)*(o-s);return h==0?!1:{x:f/h,y:l/h}},lli4:function(e,n,r,i){const o=e.x,a=e.y,s=n.x,u=n.y,f=r.x,l=r.y,h=i.x,c=i.y;return P.lli8(o,a,s,u,f,l,h,c)},lli:function(e,n){return P.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new G(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=qe,r=qe,i=He,o=He;return e.forEach(function(a){const s=a.bbox();n>s.x.min&&(n=s.x.min),r>s.y.min&&(r=s.y.min),i<s.x.max&&(i=s.x.max),o<s.y.max&&(o=s.y.max)}),{x:{min:n,mid:(n+i)/2,max:i,size:i-n},y:{min:r,mid:(r+o)/2,max:o,size:o-r}}},shapeintersections:function(e,n,r,i,o){if(!P.bboxoverlap(n,i))return[];const a=[],s=[e.startcap,e.forward,e.back,e.endcap],u=[r.startcap,r.forward,r.back,r.endcap];return s.forEach(function(f){f.virtual||u.forEach(function(l){if(l.virtual)return;const h=f.intersects(l,o);h.length>0&&(h.c1=f,h.c2=l,h.s1=e,h.s2=r,a.push(h))})}),a},makeshape:function(e,n,r){const i=n.points.length,o=e.points.length,a=P.makeline(n.points[i-1],e.points[0]),s=P.makeline(e.points[o-1],n.points[0]),u={startcap:a,forward:e,back:n,endcap:s,bbox:P.findbbox([a,e,n,s])};return u.intersections=function(f){return P.shapeintersections(u,u.bbox,f,f.bbox,r)},u},getminmax:function(e,n,r){if(!r)return{min:0,max:0};let i=qe,o=He,a,s;r.indexOf(0)===-1&&(r=[0].concat(r)),r.indexOf(1)===-1&&r.push(1);for(let u=0,f=r.length;u<f;u++)a=r[u],s=e.get(a),s[n]<i&&(i=s[n]),s[n]>o&&(o=s[n]);return{min:i,mid:(i+o)/2,max:o,size:o-i}},align:function(e,n){const r=n.p1.x,i=n.p1.y,o=-Wt(n.p2.y-i,n.p2.x-r),a=function(s){return{x:(s.x-r)*kt(o)-(s.y-i)*Dt(o),y:(s.x-r)*Dt(o)+(s.y-i)*kt(o)}};return e.map(a)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};const r=e.length-1,i=P.align(e,n),o=function(S){return 0<=S&&S<=1};if(r===2){const S=i[0].y,T=i[1].y,R=i[2].y,O=S-2*T+R;if(O!==0){const z=-Pt(T*T-S*R),I=-S+T,j=-(z+I)/O,k=-(-z+I)/O;return[j,k].filter(o)}else if(T!==R&&O===0)return[(2*T-R)/(2*T-2*R)].filter(o);return[]}const a=i[0].y,s=i[1].y,u=i[2].y,f=i[3].y;let l=-a+3*s-3*u+f,h=3*a-6*s+3*u,c=-3*a+3*s,d=a;if(P.approximately(l,0)){if(P.approximately(h,0))return P.approximately(c,0)?[]:[-d/c].filter(o);const S=Pt(c*c-4*h*d),T=2*h;return[(S-c)/T,(-c-S)/T].filter(o)}h/=l,c/=l,d/=l;const p=(3*c-h*h)/3,y=p/3,m=(2*h*h*h-9*h*c+27*d)/27,_=m/2,g=_*_+y*y*y;let w,C,b,x,A;if(g<0){const S=-p/3,T=S*S*S,R=Pt(T),O=-m/(2*R),z=O<-1?-1:O>1?1:O,I=vc(z),j=Bt(R),k=2*j;return b=k*kt(I/3)-h/3,x=k*kt((I+pe)/3)-h/3,A=k*kt((I+2*pe)/3)-h/3,[b,x,A].filter(o)}else{if(g===0)return w=_<0?Bt(-_):-Bt(_),b=2*w-h/3,x=-w-h/3,[b,x].filter(o);{const S=Pt(g);return w=Bt(-_+S),C=Bt(_+S),[w-C-h/3].filter(o)}}},droots:function(e){if(e.length===3){const n=e[0],r=e[1],i=e[2],o=n-2*r+i;if(o!==0){const a=-Pt(r*r-n*i),s=-n+r,u=-(a+s)/o,f=-(-a+s)/o;return[u,f]}else if(r!==i&&o===0)return[(2*r-i)/(2*(r-i))];return[]}if(e.length===2){const n=e[0],r=e[1];return n!==r?[n/(n-r)]:[]}return[]},curvature:function(e,n,r,i,o){let a,s,u,f,l=0,h=0;const c=P.compute(e,n),d=P.compute(e,r),p=c.x*c.x+c.y*c.y;if(i?(a=Pt(it(c.y*d.z-d.y*c.z,2)+it(c.z*d.x-d.z*c.x,2)+it(c.x*d.y-d.x*c.y,2)),s=it(p+c.z*c.z,3/2)):(a=c.x*d.y-c.y*d.x,s=it(p,3/2)),a===0||s===0)return{k:0,r:0};if(l=a/s,h=s/a,!o){const y=P.curvature(e-.001,n,r,i,!0).k,m=P.curvature(e+.001,n,r,i,!0).k;f=(m-l+(l-y))/2,u=(Gt(m-l)+Gt(l-y))/2}return{k:l,r:h,dk:f,adk:u}},inflections:function(e){if(e.length<4)return[];const n=P.align(e,{p1:e[0],p2:e.slice(-1)[0]}),r=n[2].x*n[1].y,i=n[3].x*n[1].y,o=n[1].x*n[2].y,a=n[3].x*n[2].y,s=18*(-3*r+2*i+3*o-a),u=18*(3*r-i-3*o),f=18*(o-r);if(P.approximately(s,0)){if(!P.approximately(u,0)){let d=-f/u;if(0<=d&&d<=1)return[d]}return[]}const l=2*s;if(P.approximately(l,0))return[];const h=u*u-4*s*f;if(h<0)return[];const c=Math.sqrt(h);return[(c-u)/l,-(u+c)/l].filter(function(d){return 0<=d&&d<=1})},bboxoverlap:function(e,n){const r=["x","y"],i=r.length;for(let o=0,a,s,u,f;o<i;o++)if(a=r[o],s=e[a].mid,u=n[a].mid,f=(e[a].size+n[a].size)/2,Gt(s-u)>=f)return!1;return!0},expandbox:function(e,n){n.x.min<e.x.min&&(e.x.min=n.x.min),n.y.min<e.y.min&&(e.y.min=n.y.min),n.z&&n.z.min<e.z.min&&(e.z.min=n.z.min),n.x.max>e.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,r){const i=e.bbox(),o=n.bbox(),a=1e5,s=r||.5;if(i.x.size+i.y.size<s&&o.x.size+o.y.size<s)return[(a*(e._t1+e._t2)/2|0)/a+"/"+(a*(n._t1+n._t2)/2|0)/a];let u=e.split(.5),f=n.split(.5),l=[{left:u.left,right:f.left},{left:u.left,right:f.right},{left:u.right,right:f.right},{left:u.right,right:f.left}];l=l.filter(function(c){return P.bboxoverlap(c.left.bbox(),c.right.bbox())});let h=[];return l.length===0||(l.forEach(function(c){h=h.concat(P.pairiteration(c.left,c.right,s))}),h=h.filter(function(c,d){return h.indexOf(c)===d})),h},getccenter:function(e,n,r){const i=n.x-e.x,o=n.y-e.y,a=r.x-n.x,s=r.y-n.y,u=i*kt(Ot)-o*Dt(Ot),f=i*Dt(Ot)+o*kt(Ot),l=a*kt(Ot)-s*Dt(Ot),h=a*Dt(Ot)+s*kt(Ot),c=(e.x+n.x)/2,d=(e.y+n.y)/2,p=(n.x+r.x)/2,y=(n.y+r.y)/2,m=c+u,_=d+f,g=p+l,w=y+h,C=P.lli8(c,d,m,_,p,y,g,w),b=P.dist(C,e);let x=Wt(e.y-C.y,e.x-C.x),A=Wt(n.y-C.y,n.x-C.x),S=Wt(r.y-C.y,r.x-C.x),T;return x<S?((x>A||A>S)&&(x+=pe),x>S&&(T=S,S=x,x=T)):S<A&&A<x?(T=S,S=x,x=T):S+=pe,C.s=x,C.e=S,C.r=b,C},numberSort:function(e,n){return e-n}};class ee{constructor(n){this.curves=[],this._3d=!1,n&&(this.curves=n,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(n){return P.pointsToString(n.points)}).join(", ")+"]"}addCurve(n){this.curves.push(n),this._3d=this._3d||n._3d}length(){return this.curves.map(function(n){return n.length()}).reduce(function(n,r){return n+r})}curve(n){return this.curves[n]}bbox(){const n=this.curves;for(var r=n[0].bbox(),i=1;i<n.length;i++)P.expandbox(r,n[i].bbox());return r}offset(n){const r=[];return this.curves.forEach(function(i){r.push(...i.offset(n))}),new ee(r)}}const{abs:Xt,min:mr,max:br,cos:xc,sin:wc,acos:kc,sqrt:Yt}=Math,Ac=Math.PI;class G{constructor(n){let r=n&&n.forEach?n:Array.from(arguments).slice(),i=!1;if(typeof r[0]=="object"){i=r.length;const p=[];r.forEach(function(y){["x","y","z"].forEach(function(m){typeof y[m]<"u"&&p.push(y[m])})}),r=p}let o=!1;const a=r.length;if(i){if(i>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");o=!0}}else if(a!==6&&a!==8&&a!==9&&a!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const s=this._3d=!o&&(a===9||a===12)||n&&n[0]&&typeof n[0].z<"u",u=this.points=[];for(let p=0,y=s?3:2;p<a;p+=y){var f={x:r[p],y:r[p+1]};s&&(f.z=r[p+2]),u.push(f)}const l=this.order=u.length-1,h=this.dims=["x","y"];s&&h.push("z"),this.dimlen=h.length;const c=P.align(u,{p1:u[0],p2:u[l]}),d=P.dist(u[0],u[l]);this._linear=c.reduce((p,y)=>p+Xt(y.y),0)<d/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,r,i,o){if(typeof o>"u"&&(o=.5),o===0)return new G(r,r,i);if(o===1)return new G(n,r,r);const a=G.getABC(2,n,r,i,o);return new G(n,a.A,i)}static cubicFromPoints(n,r,i,o,a){typeof o>"u"&&(o=.5);const s=G.getABC(3,n,r,i,o);typeof a>"u"&&(a=P.dist(r,s.C));const u=a*(1-o)/o,f=P.dist(n,i),l=(i.x-n.x)/f,h=(i.y-n.y)/f,c=a*l,d=a*h,p=u*l,y=u*h,m={x:r.x-c,y:r.y-d},_={x:r.x+p,y:r.y+y},g=s.A,w={x:g.x+(m.x-g.x)/(1-o),y:g.y+(m.y-g.y)/(1-o)},C={x:g.x+(_.x-g.x)/o,y:g.y+(_.y-g.y)/o},b={x:n.x+(w.x-n.x)/o,y:n.y+(w.y-n.y)/o},x={x:i.x+(C.x-i.x)/(1-o),y:i.y+(C.y-i.y)/(1-o)};return new G(n,b,x,i)}static getUtils(){return P}getUtils(){return G.getUtils()}static get PolyBezier(){return ee}valueOf(){return this.toString()}toString(){return P.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const n=this.points,r=n[0].x,i=n[0].y,o=["M",r,i,this.order===2?"Q":"C"];for(let a=1,s=n.length;a<s;a++)o.push(n[a].x),o.push(n[a].y);return o.join(" ")}setRatios(n){if(n.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=n,this._lut=[]}verify(){const n=this.coordDigest();n!==this._print&&(this._print=n,this.update())}coordDigest(){return this.points.map(function(n,r){return""+r+n.x+n.y+(n.z?n.z:0)}).join("")}update(){this._lut=[],this.dpoints=P.derive(this.points,this._3d),this.computedirection()}computedirection(){const n=this.points,r=P.angle(n[0],n[this.order],n[1]);this.clockwise=r>0}length(){return P.length(this.derivative.bind(this))}static getABC(n=2,r,i,o,a=.5){const s=P.projectionratio(a,n),u=1-s,f={x:s*r.x+u*o.x,y:s*r.y+u*o.y},l=P.abcratio(a,n);return{A:{x:i.x+(i.x-f.x)/l,y:i.y+(i.y-f.y)/l},B:i,C:f,S:r,E:o}}getABC(n,r){r=r||this.get(n);let i=this.points[0],o=this.points[this.order];return G.getABC(this.order,i,r,o,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n+1)return this._lut;this._lut=[],n++,this._lut=[];for(let r=0,i,o;r<n;r++)o=r/(n-1),i=this.compute(o),i.t=o,this._lut.push(i);return this._lut}on(n,r){r=r||5;const i=this.getLUT(),o=[];for(let a=0,s,u=0;a<i.length;a++)s=i[a],P.dist(s,n)<r&&(o.push(s),u+=a/i.length);return o.length?t/=o.length:!1}project(n){const r=this.getLUT(),i=r.length-1,o=P.closest(r,n),a=o.mpos,s=(a-1)/i,u=(a+1)/i,f=.1/i;let l=o.mdist,h=s,c=h,d;l+=1;for(let p;h<u+f;h+=f)d=this.compute(h),p=P.dist(n,d),p<l&&(l=p,c=h);return c=c<0?0:c>1?1:c,d=this.compute(c),d.t=c,d.d=l,d}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?P.computeWithRatios(n,this.points,this.ratios,this._3d):P.compute(n,this.points,this._3d,this.ratios)}raise(){const n=this.points,r=[n[0]],i=n.length;for(let o=1,a,s;o<i;o++)a=n[o],s=n[o-1],r[o]={x:(i-o)/i*a.x+o/i*s.x,y:(i-o)/i*a.y+o/i*s.y};return r[i]=n[i-1],new G(r)}derivative(n){return P.compute(n,this.dpoints[0],this._3d)}dderivative(n){return P.compute(n,this.dpoints[1],this._3d)}align(){let n=this.points;return new G(P.align(n,{p1:n[0],p2:n[n.length-1]}))}curvature(n){return P.curvature(n,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return P.inflections(this.points)}normal(n){return this._3d?this.__normal3(n):this.__normal2(n)}__normal2(n){const r=this.derivative(n),i=Yt(r.x*r.x+r.y*r.y);return{t:n,x:-r.y/i,y:r.x/i}}__normal3(n){const r=this.derivative(n),i=this.derivative(n+.01),o=Yt(r.x*r.x+r.y*r.y+r.z*r.z),a=Yt(i.x*i.x+i.y*i.y+i.z*i.z);r.x/=o,r.y/=o,r.z/=o,i.x/=a,i.y/=a,i.z/=a;const s={x:i.y*r.z-i.z*r.y,y:i.z*r.x-i.x*r.z,z:i.x*r.y-i.y*r.x},u=Yt(s.x*s.x+s.y*s.y+s.z*s.z);s.x/=u,s.y/=u,s.z/=u;const f=[s.x*s.x,s.x*s.y-s.z,s.x*s.z+s.y,s.x*s.y+s.z,s.y*s.y,s.y*s.z-s.x,s.x*s.z-s.y,s.y*s.z+s.x,s.z*s.z];return{t:n,x:f[0]*r.x+f[1]*r.y+f[2]*r.z,y:f[3]*r.x+f[4]*r.y+f[5]*r.z,z:f[6]*r.x+f[7]*r.y+f[8]*r.z}}hull(n){let r=this.points,i=[],o=[],a=0;for(o[a++]=r[0],o[a++]=r[1],o[a++]=r[2],this.order===3&&(o[a++]=r[3]);r.length>1;){i=[];for(let s=0,u,f=r.length-1;s<f;s++)u=P.lerp(n,r[s],r[s+1]),o[a++]=u,i.push(u);r=i}return o}split(n,r){if(n===0&&r)return this.split(r).left;if(r===1)return this.split(n).right;const i=this.hull(n),o={left:this.order===2?new G([i[0],i[3],i[5]]):new G([i[0],i[4],i[7],i[9]]),right:this.order===2?new G([i[5],i[4],i[2]]):new G([i[9],i[8],i[6],i[3]]),span:i};return o.left._t1=P.map(0,0,1,this._t1,this._t2),o.left._t2=P.map(n,0,1,this._t1,this._t2),o.right._t1=P.map(n,0,1,this._t1,this._t2),o.right._t2=P.map(1,0,1,this._t1,this._t2),r?(r=P.map(r,n,1,0,1),o.right.split(r).left):o}extrema(){const n={};let r=[];return this.dims.forEach((function(i){let o=function(s){return s[i]},a=this.dpoints[0].map(o);n[i]=P.droots(a),this.order===3&&(a=this.dpoints[1].map(o),n[i]=n[i].concat(P.droots(a))),n[i]=n[i].filter(function(s){return s>=0&&s<=1}),r=r.concat(n[i].sort(P.numberSort))}).bind(this)),n.values=r.sort(P.numberSort).filter(function(i,o){return r.indexOf(i)===o}),n}bbox(){const n=this.extrema(),r={};return this.dims.forEach((function(i){r[i]=P.getminmax(this,i,n[i])}).bind(this)),r}overlaps(n){const r=this.bbox(),i=n.bbox();return P.bboxoverlap(r,i)}offset(n,r){if(typeof r<"u"){const i=this.get(n),o=this.normal(n),a={c:i,n:o,x:i.x+o.x*r,y:i.y+o.y*r};return this._3d&&(a.z=i.z+o.z*r),a}if(this._linear){const i=this.normal(0),o=this.points.map(function(a){const s={x:a.x+n*i.x,y:a.y+n*i.y};return a.z&&i.z&&(s.z=a.z+n*i.z),s});return[new G(o)]}return this.reduce().map(function(i){return i._linear?i.offset(n)[0]:i.scale(n)})}simple(){if(this.order===3){const o=P.angle(this.points[0],this.points[3],this.points[1]),a=P.angle(this.points[0],this.points[3],this.points[2]);if(o>0&&a<0||o<0&&a>0)return!1}const n=this.normal(0),r=this.normal(1);let i=n.x*r.x+n.y*r.y;return this._3d&&(i+=n.z*r.z),Xt(kc(i))<Ac/3}reduce(){let n,r=0,i=0,o=.01,a,s=[],u=[],f=this.extrema().values;for(f.indexOf(0)===-1&&(f=[0].concat(f)),f.indexOf(1)===-1&&f.push(1),r=f[0],n=1;n<f.length;n++)i=f[n],a=this.split(r,i),a._t1=r,a._t2=i,s.push(a),r=i;return s.forEach(function(l){for(r=0,i=0;i<=1;)for(i=r+o;i<=1+o;i+=o)if(a=l.split(r,i),!a.simple()){if(i-=o,Xt(r-i)<o)return[];a=l.split(r,i),a._t1=P.map(r,0,1,l._t1,l._t2),a._t2=P.map(i,0,1,l._t1,l._t2),u.push(a),r=i;break}r<1&&(a=l.split(r,1),a._t1=P.map(r,0,1,l._t1,l._t2),a._t2=l._t2,u.push(a))}),u}translate(n,r,i){i=typeof i=="number"?i:r;const o=this.order;let a=this.points.map((s,u)=>(1-u/o)*r+u/o*i);return new G(this.points.map((s,u)=>({x:s.x+n.x*a[u],y:s.y+n.y*a[u]})))}scale(n){const r=this.order;let i=!1;if(typeof n=="function"&&(i=n),i&&r===2)return this.raise().scale(i);const o=this.clockwise,a=this.points;if(this._linear)return this.translate(this.normal(0),i?i(0):n,i?i(1):n);const s=i?i(0):n,u=i?i(1):n,f=[this.offset(0,10),this.offset(1,10)],l=[],h=P.lli4(f[0],f[0].c,f[1],f[1].c);if(!h)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(c){const d=l[c*r]=P.copy(a[c*r]);d.x+=(c?u:s)*f[c].n.x,d.y+=(c?u:s)*f[c].n.y}),i?([0,1].forEach(function(c){if(!(r===2&&c)){var d=a[c+1],p={x:d.x-h.x,y:d.y-h.y},y=i?i((c+1)/r):n;i&&!o&&(y=-y);var m=Yt(p.x*p.x+p.y*p.y);p.x/=m,p.y/=m,l[c+1]={x:d.x+y*p.x,y:d.y+y*p.y}}}),new G(l)):([0,1].forEach(c=>{if(r===2&&c)return;const d=l[c*r],p=this.derivative(c),y={x:d.x+p.x,y:d.y+p.y};l[c+1]=P.lli4(d,y,h,a[c+1])}),new G(l))}outline(n,r,i,o){if(r=r===void 0?n:r,this._linear){const x=this.normal(0),A=this.points[0],S=this.points[this.points.length-1];let T,R,O;i===void 0&&(i=n,o=r),T={x:A.x+x.x*n,y:A.y+x.y*n},O={x:S.x+x.x*i,y:S.y+x.y*i},R={x:(T.x+O.x)/2,y:(T.y+O.y)/2};const z=[T,R,O];T={x:A.x-x.x*r,y:A.y-x.y*r},O={x:S.x-x.x*o,y:S.y-x.y*o},R={x:(T.x+O.x)/2,y:(T.y+O.y)/2};const I=[O,R,T],j=P.makeline(I[2],z[0]),k=P.makeline(z[2],I[0]),E=[j,new G(z),k,new G(I)];return new ee(E)}const a=this.reduce(),s=a.length,u=[];let f=[],l,h=0,c=this.length();const d=typeof i<"u"&&typeof o<"u";function p(x,A,S,T,R){return function(O){const z=T/S,I=(T+R)/S,j=A-x;return P.map(O,0,1,x+z*j,x+I*j)}}a.forEach(function(x){const A=x.length();d?(u.push(x.scale(p(n,i,c,h,A))),f.push(x.scale(p(-r,-o,c,h,A)))):(u.push(x.scale(n)),f.push(x.scale(-r))),h+=A}),f=f.map(function(x){return l=x.points,l[3]?x.points=[l[3],l[2],l[1],l[0]]:x.points=[l[2],l[1],l[0]],x}).reverse();const y=u[0].points[0],m=u[s-1].points[u[s-1].points.length-1],_=f[s-1].points[f[s-1].points.length-1],g=f[0].points[0],w=P.makeline(_,y),C=P.makeline(m,g),b=[w].concat(u).concat([C]).concat(f);return new ee(b)}outlineshapes(n,r,i){r=r||n;const o=this.outline(n,r).curves,a=[];for(let s=1,u=o.length;s<u/2;s++){const f=P.makeshape(o[s],o[u-s],i);f.startcap.virtual=s>1,f.endcap.virtual=s<u/2-1,a.push(f)}return a}intersects(n,r){return n?n.p1&&n.p2?this.lineIntersects(n):(n instanceof G&&(n=n.reduce()),this.curveintersects(this.reduce(),n,r)):this.selfintersects(r)}lineIntersects(n){const r=mr(n.p1.x,n.p2.x),i=mr(n.p1.y,n.p2.y),o=br(n.p1.x,n.p2.x),a=br(n.p1.y,n.p2.y);return P.roots(this.points,n).filter(s=>{var u=this.get(s);return P.between(u.x,r,o)&&P.between(u.y,i,a)})}selfintersects(n){const r=this.reduce(),i=r.length-2,o=[];for(let a=0,s,u,f;a<i;a++)u=r.slice(a,a+1),f=r.slice(a+2),s=this.curveintersects(u,f,n),o.push(...s);return o}curveintersects(n,r,i){const o=[];n.forEach(function(s){r.forEach(function(u){s.overlaps(u)&&o.push({left:s,right:u})})});let a=[];return o.forEach(function(s){const u=P.pairiteration(s.left,s.right,i);u.length>0&&(a=a.concat(u))}),a}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,r,i,o){const a=(o-i)/4,s=this.get(i+a),u=this.get(o-a),f=P.dist(n,r),l=P.dist(n,s),h=P.dist(n,u);return Xt(l-f)+Xt(h-f)}_iterate(n,r){let i=0,o=1,a;do{a=0,o=1;let s=this.get(i),u,f,l,h,c=!1,d=!1,p,y=o,m=1;do if(d=c,h=l,y=(i+o)/2,u=this.get(y),f=this.get(o),l=P.getccenter(s,u,f),l.interval={start:i,end:o},c=this._error(l,s,i,o)<=n,p=d&&!c,p||(m=o),c){if(o>=1){if(l.interval.end=m=1,h=l,o>1){let g={x:l.x+l.r*xc(l.e),y:l.y+l.r*wc(l.e)};l.e+=P.angle({x:l.x,y:l.y},g,this.get(1))}break}o=o+(o-i)/2}else o=y;while(!p&&a++<100);if(a>=100)break;h=h||l,r.push(h),i=m}while(o<1);return r}}function cn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function Cc(e){if(Array.isArray(e))return e}function Sc(e){if(Array.isArray(e))return cn(e)}function Tc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mc(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],f=!0,l=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(f=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);f=!0);}catch(h){l=!0,o=h}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return u}}function Pc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ec(e,n){if(e==null)return{};var r,i,o=zc(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function zc(e,n){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(n.includes(i))continue;r[i]=e[i]}return r}function Rc(e,n){return Cc(e)||Mc(e,n)||Mi(e,n)||Pc()}function Ic(e){return Sc(e)||Tc(e)||Mi(e)||Oc()}function Nc(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Dc(e){var n=Nc(e,"string");return typeof n=="symbol"?n:n+""}function Mi(e,n){if(e){if(typeof e=="string")return cn(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cn(e,n):void 0}}var $c=(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=(n instanceof Array?n.length?n:[void 0]:[n]).map(function(u){return{keyAccessor:u,isProp:!(u instanceof Function)}}),a=e.reduce(function(u,f){var l=u,h=f;return o.forEach(function(c,d){var p=c.keyAccessor,y=c.isProp,m;if(y){var _=h,g=_[p],w=Ec(_,[p].map(Dc));m=g,h=w}else m=p(h,d);d+1<o.length?(l.hasOwnProperty(m)||(l[m]={}),l=l[m]):r?(l.hasOwnProperty(m)||(l[m]=[]),l[m].push(h)):l[m]=h}),u},{});r instanceof Function&&(function u(f){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;l===o.length?Object.keys(f).forEach(function(h){return f[h]=r(f[h])}):Object.values(f).forEach(function(h){return u(h,l+1)})})(a);var s=a;return i&&(s=[],(function u(f){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];l.length===o.length?s.push({keys:l,vals:f}):Object.entries(f).forEach(function(h){var c=Rc(h,2),d=c[0],p=c[1];return u(p,[].concat(Ic(l),[d]))})})(a),n instanceof Array&&n.length===0&&s.length===1&&(s[0].keys=[])),s});function jc(e){for(var n=e.length/6|0,r=new Array(n),i=0;i<n;)r[i]="#"+e.slice(i*6,++i*6);return r}const Fc=jc("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");function Uc(e,n){n===void 0&&(n={});var r=n.insertAt;if(!(typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var Lc=`.force-graph-container canvas {
22
+ display: block;
23
+ user-select: none;
24
+ outline: none;
25
+ -webkit-tap-highlight-color: transparent;
26
+ }
27
+
28
+ .force-graph-container .clickable {
29
+ cursor: pointer;
30
+ }
31
+
32
+ .force-graph-container .grabbable {
33
+ cursor: move;
34
+ cursor: grab;
35
+ cursor: -moz-grab;
36
+ cursor: -webkit-grab;
37
+ }
38
+
39
+ .force-graph-container .grabbable:active {
40
+ cursor: grabbing;
41
+ cursor: -moz-grabbing;
42
+ cursor: -webkit-grabbing;
43
+ }
44
+ `;Uc(Lc);function hn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function qc(e){if(Array.isArray(e))return e}function Hc(e){if(Array.isArray(e))return hn(e)}function xr(e,n,r){if(Pi())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,n);var o=new(e.bind.apply(e,i));return o}function ae(e,n,r){return(n=Yc(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Pi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pi=function(){return!!e})()}function Vc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gc(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],f=!0,l=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(f=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);f=!0);}catch(h){l=!0,o=h}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return u}}function Wc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
45
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wr(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function $t(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?wr(Object(r),!0).forEach(function(i){ae(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wr(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function ne(e,n){return qc(e)||Gc(e,n)||Oi(e,n)||Wc()}function st(e){return Hc(e)||Vc(e)||Oi(e)||Bc()}function Xc(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Yc(e){var n=Xc(e,"string");return typeof n=="symbol"?n:n+""}function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dn(e)}function Oi(e,n){if(e){if(typeof e=="string")return hn(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hn(e,n):void 0}}var Zc=ji(Fc);function kr(e,n,r){!n||typeof r!="string"||e.filter(function(i){return!i[r]}).forEach(function(i){i[r]=Zc(n(i))})}function Kc(e,n){var r=e.nodes,i=e.links,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.nodeFilter,s=a===void 0?function(){return!0}:a,u=o.onLoopError,f=u===void 0?function(p){throw"Invalid DAG structure! Found cycle in node path: ".concat(p.join(" -> "),".")}:u,l={};r.forEach(function(p){return l[n(p)]={data:p,out:[],depth:-1,skip:!s(p)}}),i.forEach(function(p){var y=p.source,m=p.target,_=b(y),g=b(m);if(!l.hasOwnProperty(_))throw"Missing source node with id: ".concat(_);if(!l.hasOwnProperty(g))throw"Missing target node with id: ".concat(g);var w=l[_],C=l[g];w.out.push(C);function b(x){return dn(x)==="object"?n(x):x}});var h=[];d(Object.values(l));var c=Object.assign.apply(Object,[{}].concat(st(Object.entries(l).filter(function(p){var y=ne(p,2),m=y[1];return!m.skip}).map(function(p){var y=ne(p,2),m=y[0],_=y[1];return ae({},m,_.depth)}))));return c;function d(p){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,_=function(){var b=p[g];if(y.indexOf(b)!==-1){var x=[].concat(st(y.slice(y.indexOf(b))),[b]).map(function(A){return n(A.data)});return h.some(function(A){return A.length===x.length&&A.every(function(S,T){return S===x[T]})})||(h.push(x),f(x)),1}m>b.depth&&(b.depth=m,d(b.out,[].concat(st(y),[b]),m+(b.skip?0:1)))},g=0,w=p.length;g<w;g++)_()}}var Qc=2,K=function(n,r){return r.onNeedsRedraw&&r.onNeedsRedraw()},Ar=function(n,r){if(!r.isShadow){var i=H(r.linkDirectionalParticles);r.graphData.links.forEach(function(o){var a=Math.round(Math.abs(i(o)));a?o.__photons=st(Array(a)).map(function(){return{}}):delete o.__photons})}},Pe=xn({props:{graphData:{default:{nodes:[],links:[]},onChange:function(n,r){r.engineRunning=!1,Ar(n,r)}},dagMode:{onChange:function(n,r){!n&&(r.graphData.nodes||[]).forEach(function(i){return i.fx=i.fy=void 0})}},dagLevelDistance:{},dagNodeFilter:{default:function(n){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:K},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:K},nodeColor:{default:"color",triggerUpdate:!1,onChange:K},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:K},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:K},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:K},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:K},linkColor:{default:"color",triggerUpdate:!1,onChange:K},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:K},linkWidth:{default:1,triggerUpdate:!1,onChange:K},linkCurvature:{default:0,triggerUpdate:!1,onChange:K},linkCanvasObject:{triggerUpdate:!1,onChange:K},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:K},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:K},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:K},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:K},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:Ar},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleOffset:{default:0,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},linkDirectionalParticleCanvasObject:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(n,r){r.forceLayout.alphaDecay(n)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(n,r){r.forceLayout.alphaTarget(n)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(n,r){r.forceLayout.velocityDecay(n)}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1},onNeedsRedraw:{triggerUpdate:!1},isShadow:{default:!1,triggerUpdate:!1}},methods:{d3Force:function(n,r,i){return i===void 0?n.forceLayout.force(r):(n.forceLayout.force(r,i),this)},d3ReheatSimulation:function(n){return n.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(n){return n.cntTicks=0,n.startTickTime=new Date,n.engineRunning=!0,this},isEngineRunning:function(n){return!!n.engineRunning},tickFrame:function(n){return!n.isShadow&&r(),o(),!n.isShadow&&a(),!n.isShadow&&s(),i(),this;function r(){n.engineRunning&&(++n.cntTicks>n.cooldownTicks||new Date-n.startTickTime>n.cooldownTime||n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin?(n.engineRunning=!1,n.onEngineStop()):(n.forceLayout.tick(),n.onEngineTick()))}function i(){var u=H(n.nodeVisibility),f=H(n.nodeVal),l=H(n.nodeColor),h=H(n.nodeCanvasObjectMode),c=n.ctx,d=n.isShadow/n.globalScale,p=n.graphData.nodes.filter(u);c.save(),p.forEach(function(y){var m=h(y);if(n.nodeCanvasObject&&(m==="before"||m==="replace")&&(n.nodeCanvasObject(y,c,n.globalScale),m==="replace")){c.restore();return}var _=Math.sqrt(Math.max(0,f(y)||1))*n.nodeRelSize+d;c.beginPath(),c.arc(y.x,y.y,_,0,2*Math.PI,!1),c.fillStyle=l(y)||"rgba(31, 120, 180, 0.92)",c.fill(),n.nodeCanvasObject&&m==="after"&&n.nodeCanvasObject(y,n.ctx,n.globalScale)}),c.restore()}function o(){var u=H(n.linkVisibility),f=H(n.linkColor),l=H(n.linkWidth),h=H(n.linkLineDash),c=H(n.linkCurvature),d=H(n.linkCanvasObjectMode),p=n.ctx,y=n.isShadow*2,m=n.graphData.links.filter(u);m.forEach(A);var _=[],g=[],w=m;if(n.linkCanvasObject){var C=[],b=[];m.forEach(function(S){return({before:_,after:g,replace:C}[d(S)]||b).push(S)}),w=[].concat(st(_),g,b),_=_.concat(C)}p.save(),_.forEach(function(S){return n.linkCanvasObject(S,p,n.globalScale)}),p.restore();var x=$c(w,[f,l,h]);p.save(),Object.entries(x).forEach(function(S){var T=ne(S,2),R=T[0],O=T[1],z=!R||R==="undefined"?"rgba(0,0,0,0.15)":R;Object.entries(O).forEach(function(I){var j=ne(I,2),k=j[0],E=j[1],M=(k||1)/n.globalScale+y;Object.entries(E).forEach(function(N){var $=ne(N,2);$[0];var F=$[1],U=h(F[0]);p.beginPath(),F.forEach(function(L){var q=L.source,Y=L.target;if(!(!q||!Y||!q.hasOwnProperty("x")||!Y.hasOwnProperty("x"))){p.moveTo(q.x,q.y);var X=L.__controlPoints;X?p[X.length===2?"quadraticCurveTo":"bezierCurveTo"].apply(p,st(X).concat([Y.x,Y.y])):p.lineTo(Y.x,Y.y)}}),p.strokeStyle=z,p.lineWidth=M,p.setLineDash(U||[]),p.stroke()})})}),p.restore(),p.save(),g.forEach(function(S){return n.linkCanvasObject(S,p,n.globalScale)}),p.restore();function A(S){var T=c(S);if(!T){S.__controlPoints=null;return}var R=S.source,O=S.target;if(!(!R||!O||!R.hasOwnProperty("x")||!O.hasOwnProperty("x"))){var z=Math.sqrt(Math.pow(O.x-R.x,2)+Math.pow(O.y-R.y,2));if(z>0){var I=Math.atan2(O.y-R.y,O.x-R.x),j=z*T,k={x:(R.x+O.x)/2+j*Math.cos(I-Math.PI/2),y:(R.y+O.y)/2+j*Math.sin(I-Math.PI/2)};S.__controlPoints=[k.x,k.y]}else{var E=T*70;S.__controlPoints=[O.x,O.y-E,O.x+E,O.y]}}}}function a(){var u=1.6,f=.2,l=H(n.linkDirectionalArrowLength),h=H(n.linkDirectionalArrowRelPos),c=H(n.linkVisibility),d=H(n.linkDirectionalArrowColor||n.linkColor),p=H(n.nodeVal),y=n.ctx;y.save(),n.graphData.links.filter(c).forEach(function(m){var _=l(m);if(!(!_||_<0)){var g=m.source,w=m.target;if(!(!g||!w||!g.hasOwnProperty("x")||!w.hasOwnProperty("x"))){var C=Math.sqrt(Math.max(0,p(g)||1))*n.nodeRelSize,b=Math.sqrt(Math.max(0,p(w)||1))*n.nodeRelSize,x=Math.min(1,Math.max(0,h(m))),A=d(m)||"rgba(0,0,0,0.28)",S=_/u/2,T=m.__controlPoints&&xr(G,[g.x,g.y].concat(st(m.__controlPoints),[w.x,w.y])),R=T?function(M){return T.get(M)}:function(M){return{x:g.x+(w.x-g.x)*M||0,y:g.y+(w.y-g.y)*M||0}},O=T?T.length():Math.sqrt(Math.pow(w.x-g.x,2)+Math.pow(w.y-g.y,2)),z=C+_+(O-C-b-_)*x,I=R(z/O),j=R((z-_)/O),k=R((z-_*(1-f))/O),E=Math.atan2(I.y-j.y,I.x-j.x)-Math.PI/2;y.beginPath(),y.moveTo(I.x,I.y),y.lineTo(j.x+S*Math.cos(E),j.y+S*Math.sin(E)),y.lineTo(k.x,k.y),y.lineTo(j.x-S*Math.cos(E),j.y-S*Math.sin(E)),y.fillStyle=A,y.fill()}}}),y.restore()}function s(){var u=H(n.linkDirectionalParticles),f=H(n.linkDirectionalParticleSpeed),l=H(n.linkDirectionalParticleOffset),h=H(n.linkDirectionalParticleWidth),c=H(n.linkVisibility),d=H(n.linkDirectionalParticleColor||n.linkColor),p=n.ctx;p.save(),n.graphData.links.filter(c).forEach(function(y){var m=u(y);if(!(!y.hasOwnProperty("__photons")||!y.__photons.length)){var _=y.source,g=y.target;if(!(!_||!g||!_.hasOwnProperty("x")||!g.hasOwnProperty("x"))){var w=f(y),C=Math.abs(l(y)),b=y.__photons||[],x=Math.max(0,h(y)/2)/Math.sqrt(n.globalScale),A=d(y)||"rgba(0,0,0,0.28)";p.fillStyle=A;var S=y.__controlPoints?xr(G,[_.x,_.y].concat(st(y.__controlPoints),[g.x,g.y])):null,T=0,R=!1;b.forEach(function(O){var z=!!O.__singleHop;if(O.hasOwnProperty("__progressRatio")||(O.__progressRatio=z?0:(T+C)/m),!z&&T++,O.__progressRatio+=w,O.__progressRatio>=1)if(!z)O.__progressRatio=O.__progressRatio%1;else{R=!0;return}var I=O.__progressRatio,j=S?S.get(I):{x:_.x+(g.x-_.x)*I||0,y:_.y+(g.y-_.y)*I||0};n.linkDirectionalParticleCanvasObject?n.linkDirectionalParticleCanvasObject(j.x,j.y,y,p,n.globalScale):(p.beginPath(),p.arc(j.x,j.y,x,0,2*Math.PI,!1),p.fill())}),R&&(y.__photons=y.__photons.filter(function(O){return!O.__singleHop||O.__progressRatio<=1}))}}}),p.restore()}},emitParticle:function(n,r){return r&&(!r.__photons&&(r.__photons=[]),r.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:gc().force("link",sc()).force("charge",yc()).force("center",lf()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(n,r){r.ctx=n},update:function(n,r){n.engineRunning=!1,n.onUpdate(),n.nodeAutoColorBy!==null&&kr(n.graphData.nodes,H(n.nodeAutoColorBy),n.nodeColor),n.linkAutoColorBy!==null&&kr(n.graphData.links,H(n.linkAutoColorBy),n.linkColor),n.graphData.links.forEach(function(d){d.source=d[n.linkSource],d.target=d[n.linkTarget]}),n.forceLayout.stop().alpha(1).nodes(n.graphData.nodes);var i=n.forceLayout.force("link");i&&i.id(function(d){return d[n.nodeId]}).links(n.graphData.links);var o=n.dagMode&&Kc(n.graphData,function(d){return d[n.nodeId]},{nodeFilter:n.dagNodeFilter,onLoopError:n.onDagError||void 0}),a=Math.max.apply(Math,st(Object.values(o||[]))),s=n.dagLevelDistance||n.graphData.nodes.length/(a||1)*Qc*(["radialin","radialout"].indexOf(n.dagMode)!==-1?.7:1);if(["lr","rl","td","bu"].includes(r.dagMode)){var u=["lr","rl"].includes(r.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(d){return delete d[u]})}if(["lr","rl","td","bu"].includes(n.dagMode)){var f=["rl","bu"].includes(n.dagMode),l=function(p){return(o[p[n.nodeId]]-a/2)*s*(f?-1:1)},h=["lr","rl"].includes(n.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(d){return d[h]=l(d)})}n.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(n.dagMode)!==-1?_c(function(d){var p=o[d[n.nodeId]]||-1;return(n.dagMode==="radialin"?a-p:p)*s}).strength(function(d){return n.dagNodeFilter(d)?1:0}):null);for(var c=0;c<n.warmupTicks&&!(n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin);c++)n.forceLayout.tick();this.resetCountdown(),n.onFinishUpdate()}});function Ei(e,n){var r=e instanceof Array?e:[e],i=new n;return i._destructor&&i._destructor(),{linkProp:function(a){return{default:i[a](),onChange:function(u,f){r.forEach(function(l){return f[l][a](u)})},triggerUpdate:!1}},linkMethod:function(a){return function(s){for(var u=arguments.length,f=new Array(u>1?u-1:0),l=1;l<u;l++)f[l-1]=arguments[l];var h=[];return r.forEach(function(c){var d=s[c],p=d[a].apply(d,f);p!==d&&h.push(p)}),h.length?h[0]:this}}}}var Jc=800,th=4,eh=5,zi=Ei("forceGraph",Pe),nh=Ei(["forceGraph","shadowGraph"],Pe),rh=Object.assign.apply(Object,st(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleOffset","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleCanvasObject","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map(function(e){return ae({},e,zi.linkProp(e))})).concat(st(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map(function(e){return ae({},e,nh.linkProp(e))})))),ih=Object.assign.apply(Object,st(["d3Force","d3ReheatSimulation","emitParticle"].map(function(e){return ae({},e,zi.linkMethod(e))})));function Ve(e){if(e.canvas){var n=e.canvas.width,r=e.canvas.height;n===300&&r===150&&(n=r=0);var i=window.devicePixelRatio;n/=i,r/=i,[e.canvas,e.shadowCanvas].forEach(function(a){a.style.width="".concat(e.width,"px"),a.style.height="".concat(e.height,"px"),a.width=e.width*i,a.height=e.height*i,!n&&!r&&a.getContext("2d").scale(i,i)});var o=dt(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-n)/2/o,(e.height-r)/2/o),e.needsRedraw=!0}}function Ri(e){var n=window.devicePixelRatio;e.setTransform(n,0,0,n,0,0)}function Cr(e,n,r){e.save(),Ri(e),e.clearRect(0,0,n,r),e.restore()}var oh=xn({props:$t({width:{default:window.innerWidth,onChange:function(n,r){return Ve(r)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(n,r){return Ve(r)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(n,r){[n.nodes,n.links].every(function(o){return(o||[]).every(function(a){return!a.hasOwnProperty("__indexColor")})})&&r.colorTracker.reset(),[{type:"Node",objs:n.nodes},{type:"Link",objs:n.links}].forEach(i),r.forceGraph.graphData(n),r.shadowGraph.graphData(n);function i(o){var a=o.type,s=o.objs;s.filter(function(u){if(!u.hasOwnProperty("__indexColor"))return!0;var f=r.colorTracker.lookup(u.__indexColor);return!f||!f.hasOwnProperty("d")||f.d!==u}).forEach(function(u){u.__indexColor=r.colorTracker.register({type:a,d:u})})}},triggerUpdate:!1},backgroundColor:{onChange:function(n,r){r.canvas&&n&&(r.canvas.style.background=n)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(n,r){r.shadowGraph.nodeCanvasObject(n?function(i,o,a){return n(i,i.__indexColor,o,a)}:null),r.flushShadowCanvas&&r.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(n,r){r.shadowGraph.linkCanvasObject(n?function(i,o,a){return n(i,i.__indexColor,o,a)}:null),r.flushShadowCanvas&&r.flushShadowCanvas()},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(n,r){r.zoom.scaleExtent([n,r.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(n,r){r.zoom.scaleExtent([r.zoom.scaleExtent()[0],n])},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},enableZoomInteraction:{default:!0,triggerUpdate:!1},enablePanInteraction:{default:!0,triggerUpdate:!1},enableZoomPanInteraction:{default:!0,triggerUpdate:!1},enablePointerInteraction:{default:!0,onChange:function(n,r){r.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},showPointerCursor:{default:!0,triggerUpdate:!1},onZoom:{triggerUpdate:!1},onZoomEnd:{triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},rh),aliases:{stopAnimation:"pauseAnimation"},methods:$t({graph2ScreenCoords:function(n,r,i){var o=dt(n.canvas);return{x:r*o.k+o.x,y:i*o.k+o.y}},screen2GraphCoords:function(n,r,i){var o=dt(n.canvas);return{x:(r-o.x)/o.k,y:(i-o.y)/o.k}},centerAt:function(n,r,i,o){if(!n.canvas)return null;if(r!==void 0||i!==void 0){var a=Object.assign({},r!==void 0?{x:r}:{},i!==void 0?{y:i}:{});return o?n.tweenGroup.add(new Yn(s()).to(a,o).easing(It.Quadratic.Out).onUpdate(u).start()):u(a),this}return s();function s(){var f=dt(n.canvas);return{x:(n.width/2-f.x)/f.k,y:(n.height/2-f.y)/f.k}}function u(f){var l=f.x,h=f.y;n.zoom.translateTo(n.zoom.__baseElem,l===void 0?s().x:l,h===void 0?s().y:h),n.needsRedraw=!0}},zoom:function(n,r,i){if(!n.canvas)return null;if(r!==void 0)return i?n.tweenGroup.add(new Yn({k:o()}).to({k:r},i).easing(It.Quadratic.Out).onUpdate(function(s){var u=s.k;return a(u)}).start()):a(r),this;return o();function o(){return dt(n.canvas).k}function a(s){n.zoom.scaleTo(n.zoom.__baseElem,s),n.needsRedraw=!0}},zoomToFit:function(n){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];var u=this.getGraphBbox.apply(this,a);if(u){var f={x:(u.x[0]+u.x[1])/2,y:(u.y[0]+u.y[1])/2},l=Math.max(1e-12,Math.min(1e12,(n.width-i*2)/(u.x[1]-u.x[0]),(n.height-i*2)/(u.y[1]-u.y[0])));this.centerAt(f.x,f.y,r),this.zoom(l,r)}return this},getGraphBbox:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},i=H(n.nodeVal),o=function(u){return Math.sqrt(Math.max(0,i(u)||1))*n.nodeRelSize},a=n.graphData.nodes.filter(r).map(function(s){return{x:s.x,y:s.y,r:o(s)}});return a.length?{x:[zn(a,function(s){return s.x-s.r}),Rn(a,function(s){return s.x+s.r})],y:[zn(a,function(s){return s.y-s.r}),Rn(a,function(s){return s.y+s.r})]}:null},pauseAnimation:function(n){return n.animationFrameRequestId&&(cancelAnimationFrame(n.animationFrameRequestId),n.animationFrameRequestId=null),this},resumeAnimation:function(n){return n.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},ih),stateInit:function(){return{lastSetZoom:1,zoom:bu(),forceGraph:new Pe,shadowGraph:new Pe().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new Ul,tweenGroup:new ni}},init:function(n,r){var i=this;n.innerHTML="";var o=document.createElement("div");o.classList.add("force-graph-container"),o.style.position="relative",n.appendChild(o),r.canvas=document.createElement("canvas"),r.backgroundColor&&(r.canvas.style.background=r.backgroundColor),o.appendChild(r.canvas),r.shadowCanvas=document.createElement("canvas");var a=r.canvas.getContext("2d"),s=r.shadowCanvas.getContext("2d",{willReadFrequently:!0}),u={x:-1e12,y:-1e12},f=function(){var c=null,d=window.devicePixelRatio,p=u.x>0&&u.y>0?s.getImageData(u.x*d,u.y*d,1,1):null;return p&&(c=r.colorTracker.lookup(p.data)),c};at(r.canvas).call(ns().subject(function(){if(!r.enableNodeDrag)return null;var h=f();return h&&h.type==="Node"?h.d:null}).on("start",function(h){var c=h.subject;c.__initialDragPos={x:c.x,y:c.y,fx:c.fx,fy:c.fy},h.active||(c.fx=c.x,c.fy=c.y),r.canvas.classList.add("grabbable")}).on("drag",function(h){var c=h.subject,d=c.__initialDragPos,p=h,y=dt(r.canvas).k,m={x:d.x+(p.x-d.x)/y-c.x,y:d.y+(p.y-d.y)/y-c.y};["x","y"].forEach(function(_){return c["f".concat(_)]=c[_]=d[_]+(p[_]-d[_])/y}),!(!c.__dragged&&eh>=Math.sqrt(Ui(["x","y"].map(function(_){return Math.pow(h[_]-d[_],2)}))))&&(r.forceGraph.d3AlphaTarget(.3).resetCountdown(),r.isPointerDragging=!0,c.__dragged=!0,r.onNodeDrag(c,m))}).on("end",function(h){var c=h.subject,d=c.__initialDragPos,p={x:c.x-d.x,y:c.y-d.y};d.fx===void 0&&(c.fx=void 0),d.fy===void 0&&(c.fy=void 0),delete c.__initialDragPos,r.forceGraph.d3AlphaTarget()&&r.forceGraph.d3AlphaTarget(0).resetCountdown(),r.canvas.classList.remove("grabbable"),r.isPointerDragging=!1,c.__dragged&&(delete c.__dragged,r.onNodeDragEnd(c,p))})),r.zoom(r.zoom.__baseElem=at(r.canvas)),r.zoom.__baseElem.on("dblclick.zoom",null),r.zoom.filter(function(h){return!h.button&&r.enableZoomPanInteraction&&(h.type!=="wheel"||H(r.enableZoomInteraction)(h))&&(h.type==="wheel"||H(r.enablePanInteraction)(h))}).on("zoom",function(h){var c=h.transform;[a,s].forEach(function(d){Ri(d),d.translate(c.x,c.y),d.scale(c.k,c.k)}),r.isPointerDragging=!0,r.onZoom&&r.onZoom($t($t({},c),i.centerAt())),r.needsRedraw=!0}).on("end",function(h){r.isPointerDragging=!1,r.onZoomEnd&&r.onZoomEnd($t($t({},h.transform),i.centerAt()))}),Ve(r),r.forceGraph.onNeedsRedraw(function(){return r.needsRedraw=!0}).onFinishUpdate(function(){dt(r.canvas).k===r.lastSetZoom&&r.graphData.nodes.length&&(r.zoom.scaleTo(r.zoom.__baseElem,r.lastSetZoom=th/Math.cbrt(r.graphData.nodes.length)),r.needsRedraw=!0)}),r.tooltip=new uf(o),["pointermove","pointerdown"].forEach(function(h){return o.addEventListener(h,function(c){h==="pointerdown"&&(r.isPointerPressed=!0,r.pointerDownEvent=c),!r.isPointerDragging&&c.type==="pointermove"&&r.onBackgroundClick&&(c.pressure>0||r.isPointerPressed)&&(c.pointerType==="mouse"||c.movementX===void 0||[c.movementX,c.movementY].some(function(y){return Math.abs(y)>1}))&&(r.isPointerDragging=!0);var d=p(o);u.x=c.pageX-d.left,u.y=c.pageY-d.top;function p(y){var m=y.getBoundingClientRect(),_=window.pageXOffset||document.documentElement.scrollLeft,g=window.pageYOffset||document.documentElement.scrollTop;return{top:m.top+g,left:m.left+_}}},{passive:!0})}),o.addEventListener("pointerup",function(h){if(r.isPointerPressed){if(r.isPointerPressed=!1,r.isPointerDragging){r.isPointerDragging=!1;return}var c=[h,r.pointerDownEvent];requestAnimationFrame(function(){if(h.button===0)if(r.hoverObj){var d=r["on".concat(r.hoverObj.type,"Click")];d&&d.apply(void 0,[r.hoverObj.d].concat(c))}else r.onBackgroundClick&&r.onBackgroundClick.apply(r,c);if(h.button===2)if(r.hoverObj){var p=r["on".concat(r.hoverObj.type,"RightClick")];p&&p.apply(void 0,[r.hoverObj.d].concat(c))}else r.onBackgroundRightClick&&r.onBackgroundRightClick.apply(r,c)})}},{passive:!0}),o.addEventListener("contextmenu",function(h){return!r.onBackgroundRightClick&&!r.onNodeRightClick&&!r.onLinkRightClick?!0:(h.preventDefault(),!1)}),r.forceGraph(a),r.shadowGraph(s);var l=Bu(function(){Cr(s,r.width,r.height),r.shadowGraph.linkWidth(function(c){return H(r.linkWidth)(c)+r.linkHoverPrecision});var h=dt(r.canvas);r.shadowGraph.globalScale(h.k).tickFrame()},Jc);r.flushShadowCanvas=l.flush,(this._animationCycle=function h(){var c=!r.autoPauseRedraw||!!r.needsRedraw||r.forceGraph.isEngineRunning()||r.graphData.links.some(function(C){return C.__photons&&C.__photons.length});if(r.needsRedraw=!1,r.enablePointerInteraction){var d=r.isPointerDragging?null:f();if(d!==r.hoverObj){var p=r.hoverObj,y=p?p.type:null,m=d?d.type:null;if(y&&y!==m){var _=r["on".concat(y,"Hover")];_&&_(null,p.d)}if(m){var g=r["on".concat(m,"Hover")];g&&g(d.d,y===m?p.d:null)}r.tooltip.content(d&&H(r["".concat(d.type.toLowerCase(),"Label")])(d.d)||null),r.canvas.classList[(d&&r["on".concat(m,"Click")]||!d&&r.onBackgroundClick)&&H(r.showPointerCursor)(d==null?void 0:d.d)?"add":"remove"]("clickable"),r.hoverObj=d}c&&l()}if(c){Cr(a,r.width,r.height);var w=dt(r.canvas).k;r.onRenderFramePre&&r.onRenderFramePre(a,w),r.forceGraph.globalScale(w).tickFrame(),r.onRenderFramePost&&r.onRenderFramePost(a,w)}r.tweenGroup.update(),r.animationFrameRequestId=requestAnimationFrame(h)})()},update:function(n){}}),Ge={exports:{}},We,Sr;function ah(){if(Sr)return We;Sr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return We=e,We}var Be,Tr;function sh(){if(Tr)return Be;Tr=1;var e=ah();function n(){}function r(){}return r.resetWarningCache=n,Be=function(){function i(s,u,f,l,h,c){if(c!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}i.isRequired=i;function o(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:n};return a.PropTypes=a,a},Be}var Mr;function uh(){return Mr||(Mr=1,Ge.exports=sh()()),Ge.exports}var lh=uh();const v=Fi(lh),De={width:v.number,height:v.number,graphData:v.shape({nodes:v.arrayOf(v.object).isRequired,links:v.arrayOf(v.object).isRequired}),backgroundColor:v.string,nodeRelSize:v.number,nodeId:v.string,nodeLabel:v.oneOfType([v.string,v.func]),nodeVal:v.oneOfType([v.number,v.string,v.func]),nodeVisibility:v.oneOfType([v.bool,v.string,v.func]),nodeColor:v.oneOfType([v.string,v.func]),nodeAutoColorBy:v.oneOfType([v.string,v.func]),onNodeHover:v.func,onNodeClick:v.func,linkSource:v.string,linkTarget:v.string,linkLabel:v.oneOfType([v.string,v.func]),linkVisibility:v.oneOfType([v.bool,v.string,v.func]),linkColor:v.oneOfType([v.string,v.func]),linkAutoColorBy:v.oneOfType([v.string,v.func]),linkWidth:v.oneOfType([v.number,v.string,v.func]),linkCurvature:v.oneOfType([v.number,v.string,v.func]),linkDirectionalArrowLength:v.oneOfType([v.number,v.string,v.func]),linkDirectionalArrowColor:v.oneOfType([v.string,v.func]),linkDirectionalArrowRelPos:v.oneOfType([v.number,v.string,v.func]),linkDirectionalParticles:v.oneOfType([v.number,v.string,v.func]),linkDirectionalParticleSpeed:v.oneOfType([v.number,v.string,v.func]),linkDirectionalParticleOffset:v.oneOfType([v.number,v.string,v.func]),linkDirectionalParticleWidth:v.oneOfType([v.number,v.string,v.func]),linkDirectionalParticleColor:v.oneOfType([v.string,v.func]),onLinkHover:v.func,onLinkClick:v.func,dagMode:v.oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:v.number,dagNodeFilter:v.func,onDagError:v.func,d3AlphaMin:v.number,d3AlphaDecay:v.number,d3VelocityDecay:v.number,warmupTicks:v.number,cooldownTicks:v.number,cooldownTime:v.number,onEngineTick:v.func,onEngineStop:v.func,getGraphBbox:v.func},Ii={zoomToFit:v.func,onNodeRightClick:v.func,onNodeDrag:v.func,onNodeDragEnd:v.func,onLinkRightClick:v.func,linkHoverPrecision:v.number,onBackgroundClick:v.func,onBackgroundRightClick:v.func,showPointerCursor:v.oneOfType([v.bool,v.func]),enablePointerInteraction:v.bool,enableNodeDrag:v.bool},Pn={showNavInfo:v.bool,nodeOpacity:v.number,nodeResolution:v.number,nodeThreeObject:v.oneOfType([v.object,v.string,v.func]),nodeThreeObjectExtend:v.oneOfType([v.bool,v.string,v.func]),nodePositionUpdate:v.func,linkOpacity:v.number,linkResolution:v.number,linkCurveRotation:v.oneOfType([v.number,v.string,v.func]),linkMaterial:v.oneOfType([v.object,v.string,v.func]),linkThreeObject:v.oneOfType([v.object,v.string,v.func]),linkThreeObjectExtend:v.oneOfType([v.bool,v.string,v.func]),linkPositionUpdate:v.func,linkDirectionalArrowResolution:v.number,linkDirectionalParticleResolution:v.number,linkDirectionalParticleThreeObject:v.oneOfType([v.object,v.string,v.func]),forceEngine:v.oneOf(["d3","ngraph"]),ngraphPhysics:v.object,numDimensions:v.oneOf([1,2,3])},fh=Object.assign({},De,Ii,{linkLineDash:v.oneOfType([v.arrayOf(v.number),v.string,v.func]),nodeCanvasObjectMode:v.oneOfType([v.string,v.func]),nodeCanvasObject:v.func,nodePointerAreaPaint:v.func,linkCanvasObjectMode:v.oneOfType([v.string,v.func]),linkCanvasObject:v.func,linkPointerAreaPaint:v.func,linkDirectionalParticleCanvasObject:v.func,autoPauseRedraw:v.bool,minZoom:v.number,maxZoom:v.number,enableZoomInteraction:v.oneOfType([v.bool,v.func]),enablePanInteraction:v.oneOfType([v.bool,v.func]),onZoom:v.func,onZoomEnd:v.func,onRenderFramePre:v.func,onRenderFramePost:v.func});Object.assign({},De,Ii,Pn,{enableNavigationControls:v.bool,controlType:v.oneOf(["trackball","orbit","fly"]),rendererConfig:v.object,extraRenderers:v.arrayOf(v.shape({render:v.func.isRequired}))});Object.assign({},De,Pn,{nodeDesc:v.oneOfType([v.string,v.func]),linkDesc:v.oneOfType([v.string,v.func])});Object.assign({},De,Pn,{markerAttrs:v.object,yOffset:v.number,glScale:v.number});const Ni=po(oh,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});Ni.displayName="ForceGraph2D";Ni.propTypes=fh;export{Ni as default};
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html lang="ja">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>mneme - Dashboard</title>
7
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32-max.png" />
8
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
9
+ <script type="module" crossorigin src="/assets/index-EMvn4VEa.js"></script>
10
+ <link rel="stylesheet" crossorigin href="/assets/index-BgqCALAg.css">
11
+ </head>
12
+ <body>
13
+ <div id="root"></div>
14
+ </body>
15
+ </html>